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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 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 IR,rml,YPl,VE,hm,ldB,$q,F$,tm,Lw,VKR,Eq$,mK,eK,xcB,hlm,Hu,puE,gqu,add,h_,$cU,FKR,tKl,WKP,LKK,t_,T4,m3,e3,jRu,j3,HwB,H4,v4,oD,Rlm,G4,kC,KKw,OwR,oqd,fq,Amw,Cq,ZwB,VV,QRl,E7,GBB,qPc,fUB,JU,IUP,CVu,Ysl,lUR,V3E,m6,u$R,WB,Dcd,r_E,p4m,dTU,zgq,Kq,M3U,gCm,aUl,X4u,$TB,F3B,TBU,BB,L3U,egd,jDq,vCK,K3K,u2,Cj,y_R,QDK,VG,A_R,BBw,G4K,Sa,k4q,EW,NB$,br,pj,d2,xH,zy,DTq,qsK,uXB,Ne,rUU,fpm,IpR,Y7c,C2d,mo,lpq,Vdw,aM,S7E,x6P,HE,wBU,d6R,vE,XBP,bqK,NsB,$6$,F6$,L6l,Tsw,sW,oM,e1R,jYd,Hq$,K6$,oiU,Bsw,f$R,EH$,Vs,xeR,wEl,h6,
bM,pK,dn,zC,t6,cL,WL,gHw,iM,XEB,FoU,A6,Zz,taR,BL,q3,uM,Dz,cg$,Wo$,LoK,meK,eL$,JgP,jM$,Hjm,ijR,vHB,YV,Ci,KoK,ygP,UeE,Ojm,sMq,oHu,b_,AgR,pi,ni,dO,zs,gO,Gyw,XJ,B2E,fzR,$V,IzB,CMU,YRP,PG,lzB,VFK,ta,Ts,x3B,WG,bKu,pLE,Li,d3E,n1u,znw,MFU,g1d,azR,Ja,XLK,Nnm,jP,$3U,FXq,HG,i_,Rk,vG,PME,Tnc,tFU,Ki,WX$,LXR,m3P,Ug,Og,ok,QY,Aa,Zj,kV,enm,J6R,jwE,HKm,iKK,Rnm,v1K,KXu,y6u,U3w,swc,qa,OKw,o1E,r5,Qwc,Ic,Co,A6E,kCU,Bnq,qRR,D3d,raK,fj$,lj$,VPK,EVB,Sgq,xam,hUc,wGd,daw,Vv,zU$,MPP,gV$,ajl,XGK,NOq,F_K,iiU,RUm,vVq,yaE,Ua$,no,
skP,zZ,ZiU,GsK,ksc,BOR,qgP,uJR,DaR,roR,NS,I8E,QkB,C3R,YZd,l8w,Vjw,EX$,SZP,xSK,h4E,wkw,nXR,pk$,Mju,dSw,z4P,XkB,N5R,$SR,gXK,P3d,a8q,T5E,vk,cou,Ko,UZ,WIl,mSc,e4P,HoK,QcB,R4c,iol,KId,US$,vXE,B5K,Zo$,qZw,u0w,DSc,ryR,fEK,CEl,IEl,lEB,V4c,Eaw,SDK,hiR,bXw,phw,naE,ziR,duU,W9u,L9U,muR,Ao,eiw,jZE,HXq,iXK,RiK,vaq,yyU,Uu$,sZU,D8,rL,OXq,kHR,CX,Ya,Du$,f3P,w9E,X9K,S4,UkR,Qzd,Oyu,oLR,nX,ARl,ZyK,kAR,BIE,qmE,uRR,Dku,rnP,fY$,CkU,YQE,VHU,lY$,xCU,FF,TH,wwK,bzw,pwR,nEP,dCR,zSq,gEP,XwK,aYU,KX,UD,mCc,sD,oZ,Hzm,Q$,izK,RSR,
ZE,KOu,vE$,Ggl,kgB,qQE,rdR,fyK,Chd,YHc,lyq,EBR,hGP,wdd,DE,dUR,gBR,ayu,Xdq,Nl$,$Ul,MhR,nBR,pdP,fy,bfU,FMP,thl,cdU,mUP,WMu,YL,JdB,HfU,ifR,RGK,vBq,Sb,KMP,UUB,ydB,s1R,oBR,wI,u8B,rVP,IsR,Yju,lsw,Eoc,Mk,gI,SjK,VMU,bWu,P9,z9$,TA,c9,asu,$4c,PxK,tM$,TUK,W9,cVR,W8R,L8q,e9w,JVP,jhl,HWw,R9w,mb,voE,K8P,JR,id,shu,OWw,ooU,v9,ZWK,GOB,BUR,Q3,IWd,Czu,Yem,lWw,Vql,qk,ud,D3,rt,xWc,Iv,hcB,wRl,bNK,pRw,dWl,zcl,nld,YE,Mql,NpE,lk,XRK,$Wd,gl$,FNU,EQ,tqw,TpB,c7R,WNK,mWE,LNR,ecE,HNu,J7c,Rcm,ONK,Q5R,ZNK,kLR,uou,qec,Bpw,DWB,fmU,
CKK,Imc,YCP,VJc,EfP,gt,w8R,NC,nfU,p8P,d7U,Fl,Pw,zRq,tn,MJc,amR,NbB,PKq,Tbc,tJK,QM,cqU,X8q,HEE,iER,RRR,kE,vfw,yqd,OER,Aqd,Q6K,Bb$,qCR,uKm,D7c,fom,V5$,IoB,YlP,loE,EAR,xyR,Sll,wjl,hHK,Sh,bAR,nAU,dyc,aoK,zU,MU,XjU,NdK,gl,t5c,F8,Pd,td,L0m,TU,J1u,Lf,jom,HAw,iAP,RHm,Jd,vAE,y1$,UyB,OAE,Qol,GIR,Bdw,sH,ql$,u6K,Dym,rZ$,fkP,Ikq,Cmc,Y_R,QD,EIP,S_u,xoK,hdd,wFu,beR,pFm,nIK,doB,zdK,M_P,gIq,akR,Dy,edK,JZR,rU,fW,Ih,jlw,HeK,iec,RdB,vIB,KwP,yZ$,QlP,AZu,ZeP,GMw,kMl,V9,SM,xo,hV,nW,zO,M4,q_q,ah,Doq,X_,rQK,fx$,N4,Ixq,CX$,
YrR,p1c,djR,X1c,PXP,FQB,nxc,tou,WQd,O2w,H2R,G3R,Rku,Z2P,k3R,cW,qrP,LW,Djq,rNU,IhK,CAB,YiE,VlK,JV,Si$,xGE,hEK,wtB,bJE,ptq,nOl,EO$,Ml$,gOR,ahq,HW,W4K,L4u,cNB,eEc,JNU,HJu,iJR,jbq,OJq,QbP,ZJc,kFP,Q9,f1K,rGq,VS$,S$$,xvK,hDd,wcR,bxK,pcR,I5,$vd,P7P,Xcl,a1K,FWu,dvc,TmR,vNw,LWq,mvE,eDB,GXK,BmE,ZxE,I5q,AG$,nNq,f5U,WWR,RDE,kXu,tSq,MSl,zDu,gNR,Nmw,QsK,gp,M$u,a5R,XIu,NFK,$dq,esE,vYE,KvU,eq,UdR,oYl,Gil,Zv$,BFw,q6U,r8w,DdK,fbP,YkK,CBK,se,lbK,VuB,Skw,EZE,Oe,nZ$,plc,bQc,gZR,dm$,abK,MuR,XlP,Qy,NW$,tud,FCc,PBK,c8K,
WCd,mmK,kl,jC$,ehc,HQP,KCd,y8P,OQR,QCc,DW,rb,kYE,BWE,fE,I6,qkR,CE,Yf,uAw,lK,DmR,Vt,rv$,fKc,SJ,IKq,C6K,Y0K,lKR,VOR,S0P,E4B,h3E,poc,bFE,n4w,dIU,xIu,z3w,aKK,g4E,woR,XoB,NuR,pE,$Il,tOu,P6K,Tud,cv$,LV$,WVR,mIB,db,Jvu,jKd,e3R,iFK,R3B,v4U,sKm,QKU,BuE,rHm,M7,C1u,Y1K,gb,lNU,$f,FK,wSK,XK,T5,bHm,pSK,dpE,ztU,gUR,XS$,NYq,$pU,FGU,TYm,etq,LGd,tBR,JHR,jVd,mF,mpE,HHB,jJ,iHm,Rt$,vUd,KGw,OHP,yHR,sVu,ZHB,GN$,DpB,unK,Icm,SdR,xil,waK,pal,nwR,zBw,MQP,gwK,XaK,NMK,$iU,tQm,Lym,mid,TMR,JFu,HGw,jpm,eBw,iGE,vwl,KyR,yFu,UiP,spK,
Zm,G5,q7,Dm,QpK,AFu,GWB,qdR,rd,fA,uCK,Io,fnE,InR,Cfd,YA,Svu,bDR,npq,d2$,zQK,Mgl,gpP,Nhd,Vw,$2m,tg$,El,Thm,LtP,m2c,eQE,WtR,vpE,U2c,KtU,sJ$,QJP,ZDl,kbw,D2u,uzU,CwK,by,YoR,lRR,pA,V2U,nA,E2K,SoK,xB$,wYu,hvR,b9q,pYu,n2P,dB$,$Bm,PwU,TeB,t2$,aRK,M2K,WY$,mBB,i9U,Rvu,yJK,AJm,G1K,gd,k1m,qoq,uWR,rAB,YUE,VXq,SUR,xKd,h0u,w7R,z0c,bdE,X7K,NiK,FTw,Ny,tXK,Tiq,cAK,WT$,LTB,mKl,e0R,jPR,HdU,TI,R0c,vkP,UKU,cj,yAd,Odd,ZdR,LA,Ghc,khK,BiR,DKE,rBR,qUU,IBc,Vmw,Ecl,Sal,iy,xJB,pz$,ncE,yw,MmR,dJK,zWd,aBK,NPq,$Jm,TPK,Llq,Wlw,cBc,
mJB,JBw,jHm,yBE,H$$,UJc,ocK,sH$,BPK,DJP,fVl,C0U,bVc,n6$,drl,aVl,Nfm,Mo,TM,ckE,e_P,mrE,jjU,HVU,R_l,iVq,v6K,Kdq,Le,NGP,Wdm,JkR,LdU,PF,yR,sjK,OVU,ZVm,G9P,k9m,Bfq,qEU,uVR,Dru,O_,rhl,ol,fiU,IiB,CCl,Y5u,Zk,liu,S5q,hmK,wKE,g3K,XKq,N8u,$Xd,PCq,trR,Ir,chm,WmK,Lml,mXB,emK,JhR,H6w,RmE,Kmd,yhm,AhE,o3B,Z6E,B8c,q5d,xx,uqw,DXq,rP$,CNU,l4E,YKE,E7R,xs$,p2,wqU,O7d,hbE,o7$,QEP,Z7K,kdK,Gdu,BxK,APq,qKP,uSw,DsE,rLP,f0l,I0K,CRm,Ywc,l0$,Sw$,E$l,xhB,w_l,hq$,n2,blu,dhu,X_K,p_R,NaB,$h$,FRc,PRB,JLP,HlR,ilm,v$$,KRR,tQ,Oll,Zlm,
kKU,T3,DhU,uDU,r9K,L2,fvm,Iv$,CH$,lvP,VNu,EPR,SGd,h6U,wPd,Njw,MNc,avu,FZd,$Aw,PHE,tNE,c9l,LZB,e6c,jad,oPE,Z3m,k$B,BjK,qGK,ugl,DAd,fGK,IGP,lGP,Vvw,EJl,SnE,xbE,hMc,wDc,bhd,dbK,XDc,Or,or,QC,AQ,NQm,kx,FgB,JKE,KgU,RMB,fHB,IHm,Cnc,tvm,eMR,Wgq,Yfm,lH$,VpR,HhP,SfE,hVR,bTP,dzm,zVc,Ei,Ful,$zq,ciK,mzB,Jiu,HTu,iTU,KuE,UzU,yiw,onR,AiR,Dzd,qfK,GJc,uGB,kJc,rWK,YSB,ab,pHR,hIU,dMw,zIc,gGR,aLK,NG,XHP,FBK,PQR,tWP,TvU,HYU,jNE,LJ,iA,sNu,OYE,vt,oGP,QNR,AW$,ZYR,GDB,kDc,Bvw,qSP,uI$,DMR,rYR,fPl,IPq,CaK,YTK,KJ,lPR,Vcd,E0$,
STR,xVm,hjw,wrK,b_R,prK,n0U,dVK,zjd,Ui,g0$,XrR,$Vl,tcm,WJK,LJl,mVK,JYB,H_K,i_B,RjK,KJU,O_R,UVR,o0m,Q9B,AYU,k7R,rcq,f2E,Cc$,E$,l2E,l7,EgB,Sql,SS,x5R,hrq,w3c,bcK,hG,zr$,ggd,Fql,$5R,tiK,TNR,Mv,ccu,WqU,m5E,JcB,jtc,icR,Rrm,erd,vgP,OcB,ZcR,Gtc,gm,ktK,BNB,fMd,qqu,D5K,rId,Ehl,CFu,SJu,hXP,bBU,pgR,nhK,dPU,zX$,M9B,aMK,Xg$,NAq,$PR,F5m,t9$,cIE,mPq,HBP,vhB,yIR,OBl,tG,ohB,QQm,AIl,ZBE,GfK,BAK,qJq,uh$,DPd,r2U,fSd,ISq,CuP,YXl,lSm,Vnc,SXP,Erm,wZR,pZP,Wc,nrR,Mn$,z2l,mW,XZU,NKU,tnR,Wx$,TKP,PuR,e2U,mQK,R2P,J2P,i7,HUm,
orR,y2B,UQc,suR,OU$,QuE,ZUR,A2R,Rs,vc,rru,kQP,DQl,uvl,BKR,qXK,C4P,lAw,EMl,VyK,wOu,h$K,nMP,dDB,MyU,gMU,z$K,aAP,NzR,XOB,F$U,TzR,AG,cr$,W$E,e$U,R$R,OPq,GX,Qiq,kTB,DDu,ubm,Bzm,qpR,D1,YBc,fwE,IwU,lwu,EKR,VRE,hPE,wAc,pAw,nKc,d8m,zPK,MRw,awK,XAl,wF,$8U,pv,FcB,ctu,WcR,Md,Lcw,ePc,U8u,$Y,inP,yt$,RPm,vKB,QyK,Atl,oKc,Znc,GnP,uQ$,knR,D8q,rCK,PI,Itc,CZ$,Y4R,ftu,Vtc,ltB,t3,hfR,Mtd,gyd,atw,Xmw,N6P,$Fq,T6d,PZ$,ttP,FeU,Wed,efm,Hs$,isu,vyl,mv,KeR,yC$,UF$,Osm,oy$,QdK,ACK,ZsR,GEq,B6$,iT,q4R,r4q,DFU,IJK,fJK,CWm,Ybq,lJq,
RB,ERK,aJP,Mkl,$Hw,FfR,LfU,mHd,exU,J4R,jXR,Hgu,vRP,Kfl,y4q,UHl,oRw,QXK,A4U,Zgl,G_R,k_m,BkP,qbR,uxR,DHw,rbc,IqE,Cpl,Yu$,VYU,SuU,hAc,n5E,pCB,bIK,wCm,zAq,MYl,CQ,g5$,aqq,XCK,NwE,Ppd,$qK,tYm,Fhc,Twc,Ek,cbu,Whu,Lhw,mqq,eAu,iIw,RAK,v5c,Uqm,ybP,Khq,bB,s3w,OIE,o5P,Q3d,AbK,ZIu,kuU,BwR,quE,uMu,fam,rTE,VLl,DqR,nQ,EFB,Iaq,laK,hKR,b0U,MLB,dlu,zKB,nFK,ppK,Nm,gFd,Xp$,N4$,$lE,FLK,Pq$,FA,Pl,LLq,T4q,tLU,cTq,UlR,KLu,WLR,vFl,Grd,kru,B4K,vl,q8R,uYU,DlK,IrB,Ycd,VG$,Scw,x$u,hpK,nTP,p5P,d$K,MGK,A8,X5$,N7K,$$q,FSq,GY,kZ,T7B,
LSd,iMU,ypB,U$K,sfq,OME,oTE,ApE,GGU,ZME,kG$,B7B,uwl,D$R,r5U,fCP,IC$,CiB,fF,EtE,YNu,IK,x_R,SNU,hTK,MDE,gtE,ntq,psR,zTE,d_l,FAP,Pid,tDl,l6,T9P,c5u,WAB,LAu,m_m,j0U,eT$,J5B,HLP,RT$,KAc,U_U,OLw,Q0K,kzm,B9B,qNu,u5w,D_P,SO,f9m,rxq,x4,I9q,Yyc,l9c,VTR,E_K,bSK,p0B,n_E,d1q,z5q,MTU,g_$,du,X0w,NgP,$1R,PbK,FkE,tTP,cxl,Wkw,LkR,e5R,JxB,m1K,Kkm,sgP,OSP,o_$,Qgc,ZSB,AxK,Gql,uLq,D1w,rXR,fuq,CLc,IuR,lud,hZR,xfK,bOR,pfR,n8q,auK,XfK,NZm,$fm,cXR,TZE,tU$,mfK,JXK,eZw,j8q,Jv,HOR,iOd,yXl,Kpm,Ufu,s8R,OOw,o8U,ZOd,GcR,kc$,BZ$,
qIP,usK,DfK,rMd,fIw,IIB,CeK,YAd,VIE,lIB,Eem,SAd,x0R,hym,wnq,b4w,pnU,neK,zyd,MIU,d0B,O0,XnR,$0B,F1P,Pel,tIw,cMd,W1m,H4w,i4K,U0u,O4R,oew,Z4U,Glw,klB,Bcd,qAw,uUc,r$U,fOq,C5R,lOl,EvR,wXl,xZE,ShK,haP,bm$,dZd,pXR,nvq,MxK,XX$,NoR,$Zl,P5U,txE,Tom,WsK,mZB,c$w,eaK,J$K,jWK,HmK,imR,vvm,KsB,y$E,UZR,Omq,sWB,ovw,QWl,A$c,Zm$,GaK,kam,Bow,qhK,r0q,fZB,uaK,DZR,Y9K,EDE,S9B,aZU,dww,gDU,XeE,MV$,fH,NHR,$wE,P$R,c0B,THd,W7K,L7m,IV,YU,eYc,J0R,E1,SB,RYP,j7E,HZ$,y0$,OZE,Q7q,A0E,ZZR,Gjd,kjl,q9d,upq,DwK,ruc,fDP,ID$,Com,wY,YVK,
lDU,pH,VzK,ESE,SVd,xtl,h7q,wVu,zN,Mp,bkm,pVl,gY,nSR,dtd,z7K,Mzm,aDK,XVd,$tl,cuU,TSP,tzw,WDR,LDu,iku,JuU,jLE,e7B,HkR,Xn,yum,Utl,sLB,OkK,oS$,AuK,BSd,G2d,Np,ZkB,fTw,CDR,YLE,lTE,VAK,Eju,huP,wiq,njd,dnK,zuU,MAl,aTq,Xim,Nr$,$nB,PDc,tAR,TrP,WHK,LHR,euq,JSR,vjP,KHK,yS$,smU,Un$,ojP,Qml,ASU,Zpw,GvK,kvl,ujU,Br$,Dnl,IlE,Esu,Sxc,xEP,hOw,bCc,LH,eB,mG,p6l,nsB,dEq,zOP,Mw$,alU,X6l,NCw,$Ew,P9K,TCR,cDP,WEc,JH,LER,eOR,JDK,iCR,ROd,jB,HS,yDw,vsE,UEP,osm,s4w,Q4R,RV,ZCP,G0E,qx$,DEU,vS,fgu,Igd,C8B,Y3R,lgB,V1K,Ezm,wbK,bbu,
dRE,pbl,nzB,z8q,M1B,N1B,gzl,Xb$,$Rm,FUE,P8P,cOP,WUu,LUR,mRR,e8P,vzU,R8R,ozl,Zb$,BS,Gxw,Jyc,kx$,B1q,u7w,rzP,ffK,SMK,xLw,fG,hNw,wy$,brl,pyw,n9P,zNB,g9m,dLm,MCB,NVd,XyK,F2u,PSq,tC$,TV$,czU,W2P,L2l,mLq,HrE,v9q,irK,K2K,yzB,ULq,Yw,s2P,OrU,VW,Q2m,o9E,AzK,ZrK,kSE,BVK,uHl,DLB,rfU,f7U,I7q,l7R,SYP,wQR,hzE,buE,pQE,zzm,T$B,XQU,Wr$,Lrd,ezP,JfB,HuB,vdB,yfw,KrB,sAd,OuR,odu,QAK,AfK,Zuw,keU,urE,DYR,rlq,fQ$,YFK,Cjq,SFd,xgu,heR,wUl,bRP,pUE,dgP,FC,M0d,ca,aQK,N0K,$gR,clE,LaU,jSu,iRu,Re$,Kaq,ylm,Ugq,ORK,QSU,Alu,kmE,qFc,
rjE,DgR,u4B,jQ,I_P,f_U,CYm,Y2K,l_u,VeP,Ebq,S2B,xOm,wv$,baK,pvc,dOE,gbK,nbU,zJB,a_E,Xvl,NTw,$Ou,PYK,teu,jUK,HaU,iaR,RJR,vbm,UOm,Ud,ZaR,GPl,kPR,BTw,q2R,sd,Od,y$,lXR,QW,V7K,hwP,b5w,w$B,AF,p$K,nQP,QMK;_.fw=function(r,f){if(Error.captureStackTrace)Error.captureStackTrace(this,_.fw);else{var I=Error().stack;I&&(this.stack=I)}r&&(this.message=String(r));f!==void 0&&(this.cause=f)};
IR=function(){throw Error("B");};
rml=function(r,f){f=String.fromCharCode.apply(null,f);return r==null?f:r+f};
YPl=function(r){var f=!1;f=f===void 0?!1:f;if(fdB){if(f&&(Idq?!r.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(r)))throw Error("C");r=(CUq||(CUq=new TextEncoder)).encode(r)}else{for(var I=0,C=new Uint8Array(3*r.length),Y=0;Y<r.length;Y++){var V=r.charCodeAt(Y);if(V<128)C[I++]=V;else{if(V<2048)C[I++]=V>>6|192;else{if(V>=55296&&V<=57343){if(V<=56319&&Y<r.length){var S=r.charCodeAt(++Y);if(S>=56320&&S<=57343){V=(V-55296)*1024+S-56320+65536;C[I++]=V>>18|
240;C[I++]=V>>12&63|128;C[I++]=V>>6&63|128;C[I++]=V&63|128;continue}else Y--}if(f)throw Error("C");V=65533}C[I++]=V>>12|224;C[I++]=V>>6&63|128}C[I++]=V&63|128}}r=I===C.length?C:C.subarray(0,I)}return r};
VE=function(r){_.Yq.setTimeout(function(){throw r;},0)};
_.xq=function(r,f){return r.lastIndexOf(f,0)==0};
hm=function(r,f){var I=r.length-f.length;return I>=0&&r.indexOf(f,I)==I};
_.bU=function(r){return/^[\s\xa0]*$/.test(r)};
_.pw=function(r,f){return r.indexOf(f)!=-1};
_.nw=function(r,f){return _.pw(r.toLowerCase(),f.toLowerCase())};
_.zB=function(r,f){var I=0;r=dR(String(r)).split(".");f=dR(String(f)).split(".");for(var C=Math.max(r.length,f.length),Y=0;I==0&&Y<C;Y++){var V=r[Y]||"",S=f[Y]||"";do{V=/(\d*)(\D*)(.*)/.exec(V)||["","","",""];S=/(\d*)(\D*)(.*)/.exec(S)||["","","",""];if(V[0].length==0&&S[0].length==0)break;I=ldB(V[1].length==0?0:parseInt(V[1],10),S[1].length==0?0:parseInt(S[1],10))||ldB(V[2].length==0,S[2].length==0)||ldB(V[2],S[2]);V=V[3];S=S[3]}while(I==0)}return I};
ldB=function(r,f){return r<f?-1:r>f?1:0};
_.Mc=function(){var r=_.Yq.navigator;return r&&(r=r.userAgent)?r:""};
$q=function(r){if(!aR||!Nc)return!1;for(var f=0;f<Nc.brands.length;f++){var I=Nc.brands[f].brand;if(I&&_.pw(I,r))return!0}return!1};
F$=function(r){return _.pw(_.Mc(),r)};
tm=function(){return aR?!!Nc&&Nc.brands.length>0:!1};
Lw=function(){return tm()?!1:F$("Opera")};
VKR=function(){return tm()?!1:F$("Trident")||F$("MSIE")};
Eq$=function(){return tm()?$q("Microsoft Edge"):F$("Edg/")};
mK=function(){return F$("Firefox")||F$("FxiOS")};
_.jK=function(){return F$("Safari")&&!(eK()||(tm()?0:F$("Coast"))||Lw()||(tm()?0:F$("Edge"))||Eq$()||(tm()?$q("Opera"):F$("OPR"))||mK()||F$("Silk")||F$("Android"))};
eK=function(){return tm()?$q("Chromium"):(F$("Chrome")||F$("CriOS"))&&!(tm()?0:F$("Edge"))||F$("Silk")};
_.SPl=function(){return F$("Android")&&!(eK()||mK()||Lw()||F$("Silk"))};
xcB=function(r){var f={};r.forEach(function(I){f[I[0]]=I[1]});
return function(I){return f[I.find(function(C){return C in f})]||""}};
hlm=function(r){var f=_.Mc();if(r==="Internet Explorer"){if(VKR())if((r=/rv: *([\d\.]*)/.exec(f))&&r[1])f=r[1];else{r="";var I=/MSIE +([\d\.]+)/.exec(f);if(I&&I[1])if(f=/Trident\/(\d.\d)/.exec(f),I[1]=="7.0")if(f&&f[1])switch(f[1]){case "4.0":r="8.0";break;case "5.0":r="9.0";break;case "6.0":r="10.0";break;case "7.0":r="11.0"}else r="7.0";else r=I[1];f=r}else f="";return f}var C=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");I=[];for(var Y;Y=C.exec(f);)I.push([Y[1],Y[2],Y[3]||void 0]);
f=xcB(I);switch(r){case "Opera":if(Lw())return f(["Version","Opera"]);if(tm()?$q("Opera"):F$("OPR"))return f(["OPR"]);break;case "Microsoft Edge":if(tm()?0:F$("Edge"))return f(["Edge"]);if(Eq$())return f(["Edg"]);break;case "Chromium":if(eK())return f(["Chrome","CriOS","HeadlessChrome"])}return r==="Firefox"&&mK()||r==="Safari"&&_.jK()||r==="Android Browser"&&_.SPl()||r==="Silk"&&F$("Silk")?(f=I[2])&&f[1]||"":""};
_.wuU=function(r){if(tm()&&r!=="Silk"){var f=Nc.brands.find(function(I){return I.brand===r});
if(!f||!f.version)return NaN;f=f.version.split(".")}else{f=hlm(r);if(f==="")return NaN;f=f.split(".")}return f.length===0?NaN:Number(f[0])};
Hu=function(){return aR?!!Nc&&!!Nc.platform:!1};
_.bwR=function(){return Hu()?Nc.platform==="Android":F$("Android")};
puE=function(){return F$("iPhone")&&!F$("iPod")&&!F$("iPad")};
_.RR=function(){return puE()||F$("iPad")||F$("iPod")};
_.nql=function(){return Hu()?Nc.platform==="macOS":F$("Macintosh")};
_.dcw=function(){return Hu()?Nc.platform==="Windows":F$("Windows")};
_.zlR=function(){return Hu()?Nc.platform==="Chrome OS":F$("CrOS")};
_.Kw=function(r){return r[r.length-1]};
_.yE=function(r,f,I){f=_.MKE(r,f,I);return f<0?null:typeof r==="string"?r.charAt(f):r[f]};
_.MKE=function(r,f,I){for(var C=r.length,Y=typeof r==="string"?r.split(""):r,V=0;V<C;V++)if(V in Y&&f.call(I,Y[V],V,r))return V;return-1};
gqu=function(r){for(var f=_.sP,I=typeof r==="string"?r.split(""):r,C=r.length-1;C>=0;C--)if(C in I&&f.call(void 0,I[C],C,r))return C;return-1};
_.Am=function(r,f){return _.QE(r,f)>=0};
_.Zd=function(r,f){_.Am(r,f)||r.push(f)};
_.uU=function(r,f){f=_.QE(r,f);var I;(I=f>=0)&&_.GB(r,f);return I};
_.GB=function(r,f){Array.prototype.splice.call(r,f,1)};
_.f8=function(r){var f=r.length;if(f>0){for(var I=Array(f),C=0;C<f;C++)I[C]=r[C];return I}return[]};
_.YC=function(r,f){for(var I=1;I<arguments.length;I++){var C=arguments[I];if(_.ID(C)){var Y=r.length||0,V=C.length||0;r.length=Y+V;for(var S=0;S<V;S++)r[Y+S]=C[S]}else r.push(C)}};
_.XuE=function(r,f,I,C){Array.prototype.splice.apply(r,add(arguments,1))};
add=function(r,f,I){return arguments.length<=2?Array.prototype.slice.call(r,f):Array.prototype.slice.call(r,f,I)};
h_=function(r,f){f=f||r;for(var I=0,C=0,Y={};C<r.length;){var V=r[C++],S=_.lV(V)?"o"+_.S3(V):(typeof V).charAt(0)+V;Object.prototype.hasOwnProperty.call(Y,S)||(Y[S]=!0,f[I++]=V)}f.length=I};
_.NRd=function(r,f,I){I=I||_.bV;for(var C=0,Y=r.length,V;C<Y;){var S=C+(Y-C>>>1);var h=I(f,r[S]);h>0?C=S+1:(Y=S,V=!h)}return V?C:-C-1};
_.n8=function(r,f,I){if(!_.ID(r)||!_.ID(f)||r.length!=f.length)return!1;var C=r.length;I=I||$cU;for(var Y=0;Y<C;Y++)if(!I(r[Y],f[Y]))return!1;return!0};
_.bV=function(r,f){return r>f?1:r<f?-1:0};
$cU=function(r,f){return r===f};
FKR=function(r,f,I){f=Array.prototype.splice.call(r,f,1);Array.prototype.splice.call(r,I,0,f[0])};
tKl=function(r){return PUm[r]||""};
WKP=function(r){if(!TRw)return _.MT(r);r=cmB.test(r)?r.replace(cmB,tKl):r;r=atob(r);for(var f=new Uint8Array(r.length),I=0;I<r.length;I++)f[I]=r.charCodeAt(I);return f};
LKK=function(r,f){r.__closure__error__context__984382||(r.__closure__error__context__984382={});r.__closure__error__context__984382.severity=f};
_.NT=function(r){r=Error(r);LKK(r,"warning");return r};
t_=function(r,f){if(r!=null){var I;var C=(I=mcR)!=null?I:mcR={};I=C[r]||0;I>=f||(C[r]=I+1,r=Error(),LKK(r,"incident"),VE(r))}};
T4=function(r,f,I){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(I===void 0?0:I)&&Symbol.for&&r?Symbol.for(r):r!=null?Symbol(r):Symbol():f};
m3=function(r,f){c4||_.L8 in r||elE(r,JmU);r[_.L8]|=f};
e3=function(r,f){c4||_.L8 in r||elE(r,JmU);r[_.L8]=f};
jRu=function(r){if(4&r)return 512&r?512:1024&r?1024:0};
j3=function(r){m3(r,34);return r};
HwB=function(r){m3(r,32);return r};
H4=function(){return typeof BigInt==="function"};
v4=function(r,f){return f===void 0?r.copyOnWrite!==RD&&!!(2&(r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.L8]|0)):!!(2&f)&&r.copyOnWrite!==RD};
_.Os=function(r,f){if(r!=null)if(typeof r==="string")r=r?new K8(r,Us):_.ss();else if(r.constructor!==K8)if(iwK&&r!=null&&r instanceof Uint8Array)r=r.length?new K8(new Uint8Array(r),Us):_.ss();else{if(!f)throw Error();r=void 0}return r};
oD=function(r,f){if(typeof f!=="number"||f<0||f>=r.length)throw Error();};
Rlm=function(r,f,I){f=f&128?0:-1;var C=r.length,Y;if(Y=!!C)Y=r[C-1],Y=Y!=null&&typeof Y==="object"&&Y.constructor===Object;for(var V=C+(Y?-1:0),S=0;S<V;S++)I(S-f,r[S]);if(Y){r=r[C-1];for(var h in r)!isNaN(h)&&I(+h,r[h])}};
G4=function(r){return r&128?A_:void 0};
kC=function(r){r.isGuard_doNotManuallySetPrettyPlease=!0;return r};
KKw=function(){var r=vqw;return kC(function(f){for(var I in r)if(f===r[I]&&!/^[0-9]+$/.test(I))return!0;return!1})};
_.uV=function(r){var f=r;if(ymc(f)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(f))throw Error(String(f));}else if(Ucm(f)&&!Number.isSafeInteger(f))throw Error(String(f));return B4?BigInt(r):r=sRK(r)?r?"1":"0":ymc(r)?r.trim()||"0":String(r)};
OwR=function(r,f){if(r.length>f.length)return!1;if(r.length<f.length||r===f)return!0;for(var I=0;I<r.length;I++){var C=r[I],Y=f[I];if(C>Y)return!1;if(C<Y)return!0}};
oqd=function(r){var f=r>>>0;DU=f;rs=(r-f)/4294967296>>>0};
fq=function(r){if(r<0){oqd(-r);var f=_.E(QRl(DU,rs));r=f.next().value;f=f.next().value;DU=r>>>0;rs=f>>>0}else oqd(r)};
Amw=function(r,f){var I=f*4294967296+(r>>>0);return Number.isSafeInteger(I)?I:_.IY(r,f)};
Cq=function(r,f){var I=f&2147483648;I&&(r=~r+1>>>0,f=~f>>>0,r==0&&(f=f+1>>>0));r=Amw(r,f);return typeof r==="number"?I?-r:r:I?"-"+r:r};
_.IY=function(r,f){f>>>=0;r>>>=0;if(f<=2097151)var I=""+(4294967296*f+r);else H4()?I=""+(BigInt(f)<<BigInt(32)|BigInt(r)):(I=(r>>>24|f<<8)&16777215,f=f>>16&65535,r=(r&16777215)+I*6777216+f*6710656,I+=f*8147497,f*=2,r>=1E7&&(I+=r/1E7>>>0,r%=1E7),I>=1E7&&(f+=I/1E7>>>0,I%=1E7),I=f+ZwB(I)+ZwB(r));return I};
ZwB=function(r){r=String(r);return"0000000".slice(r.length)+r};
_.Yi=function(r,f){f&2147483648?H4()?r=""+(BigInt(f|0)<<BigInt(32)|BigInt(r>>>0)):(f=_.E(QRl(r,f)),r=f.next().value,f=f.next().value,r="-"+_.IY(r,f)):r=_.IY(r,f);return r};
VV=function(r){if(r.length<16)fq(Number(r));else if(H4())r=BigInt(r),DU=Number(r&BigInt(4294967295))>>>0,rs=Number(r>>BigInt(32)&BigInt(4294967295));else{var f=+(r[0]==="-");rs=DU=0;for(var I=r.length,C=f,Y=(I-f)%6+f;Y<=I;C=Y,Y+=6)C=Number(r.slice(C,Y)),rs*=1E6,DU=DU*1E6+C,DU>=4294967296&&(rs+=Math.trunc(DU/4294967296),rs>>>=0,DU>>>=0);f&&(f=_.E(QRl(DU,rs)),r=f.next().value,f=f.next().value,DU=r,rs=f)}};
QRl=function(r,f){f=~f;r?r=~r+1:f+=1;return[r,f]};
E7=function(r){return Array.prototype.slice.call(r)};
_.Sd=function(r,f){throw Error(f===void 0?"unexpected value "+r+"!":f);};
_.xi=function(r){if(r!=null&&typeof r!=="number")throw Error("I`"+typeof r+"`"+r);return r};
_.ds=function(r){if(r==null||typeof r==="number")return r;if(r==="NaN"||r==="Infinity"||r==="-Infinity")return Number(r)};
GBB=function(r){if(r!=null&&typeof r!=="boolean")throw Error("J`"+_.z6(r)+"`"+r);return r};
_.kB$=function(r){if(r==null||typeof r==="boolean")return r;if(typeof r==="number")return!!r};
_.X3=function(r){switch(typeof r){case "bigint":return!0;case "number":return gs(r);case "string":return BRc.test(r);default:return!1}};
_.$i=function(r){if(!gs(r))throw _.NT("enum");return r|0};
_.F3=function(r){return r==null?r:gs(r)?r|0:void 0};
qPc=function(r){if(typeof r!=="number")throw _.NT("int32");if(!gs(r))throw _.NT("int32");return r|0};
_.PB=function(r){return r==null?r:qPc(r)};
_.tU=function(r){if(r==null)return r;if(typeof r==="string"&&r)r=+r;else if(typeof r!=="number")return;return gs(r)?r|0:void 0};
_.cB=function(r){if(r==null)return r;if(typeof r==="string"&&r)r=+r;else if(typeof r!=="number")return;return gs(r)?r>>>0:void 0};
fUB=function(r){var f=0;f=f===void 0?0:f;if(!_.X3(r))throw _.NT("int64");var I=typeof r;switch(f){case 512:switch(I){case "string":return WB(r);case "bigint":return String(Lq(64,r));default:return u$R(r)}case 1024:switch(I){case "string":return Dcd(r);case "bigint":return _.uV(Lq(64,r));default:return r_E(r)}case 0:switch(I){case "string":return WB(r);case "bigint":return _.uV(Lq(64,r));default:return m6(r)}default:return _.Sd(f,"Unknown format requested type for int64")}};
JU=function(r){return r==null?r:fUB(r)};
IUP=function(r){if(r[0]==="-")return!1;var f=r.length;return f<20?!0:f===20&&Number(r.substring(0,6))<184467};
CVu=function(r){var f=r.length;return r[0]==="-"?f<20?!0:f===20&&Number(r.substring(0,7))>-922337:f<19?!0:f===19&&Number(r.substring(0,6))<922337};
Ysl=function(r){if(r<0){fq(r);var f=_.IY(DU,rs);r=Number(f);return jd(r)?r:f}f=String(r);if(IUP(f))return f;fq(r);return Amw(DU,rs)};
lUR=function(r){if(CVu(r))return r;VV(r);return _.Yi(DU,rs)};
V3E=function(r){if(IUP(r))return r;VV(r);return _.IY(DU,rs)};
m6=function(r){r=HB(r);jd(r)||(fq(r),r=Cq(DU,rs));return r};
_.ECU=function(r){r=HB(r);return r>=0&&jd(r)?r:Ysl(r)};
u$R=function(r){r=HB(r);if(jd(r))r=String(r);else{var f=String(r);CVu(f)?r=f:(fq(r),r=_.Yi(DU,rs))}return r};
_.Ssu=function(r){r=HB(r);if(r>=0&&jd(r))r=String(r);else{var f=String(r);IUP(f)?r=f:(fq(r),r=_.IY(DU,rs))}return r};
WB=function(r){var f=HB(Number(r));if(jd(f))return String(f);f=r.indexOf(".");f!==-1&&(r=r.substring(0,f));return lUR(r)};
Dcd=function(r){var f=HB(Number(r));if(jd(f))return _.uV(f);f=r.indexOf(".");f!==-1&&(r=r.substring(0,f));return H4()?_.uV(Lq(64,BigInt(r))):_.uV(lUR(r))};
r_E=function(r){return jd(r)?_.uV(m6(r)):_.uV(u$R(r))};
_.xTR=function(r){return jd(r)?_.uV(_.ECU(r)):_.uV(_.Ssu(r))};
_.hgK=function(r){var f=HB(Number(r));if(jd(f)&&f>=0)return String(f);f=r.indexOf(".");f!==-1&&(r=r.substring(0,f));return V3E(r)};
_.w4R=function(r){var f=HB(Number(r));if(jd(f)&&f>=0)return _.uV(f);f=r.indexOf(".");f!==-1&&(r=r.substring(0,f));return H4()?_.uV((0,_.i2)(64,BigInt(r))):_.uV(V3E(r))};
_.b8B=function(r){if(r==null)return r;if(typeof r==="bigint")return RY(r)?r=Number(r):(r=Lq(64,r),r=RY(r)?Number(r):String(r)),r;if(_.X3(r))return typeof r==="number"?m6(r):WB(r)};
p4m=function(r,f){f=f===void 0?!1:f;var I=typeof r;if(r==null)return r;if(I==="bigint")return String(Lq(64,r));if(_.X3(r))return I==="string"?WB(r):f?u$R(r):m6(r)};
_.nCP=function(r){var f=typeof r;if(r==null)return r;if(f==="bigint")return _.uV(Lq(64,r));if(_.X3(r))return f==="string"?Dcd(r):r_E(r)};
dTU=function(r){if(r==null)return r;var f=typeof r;if(f==="bigint")return String(Lq(64,r));if(_.X3(r)){if(f==="string")return WB(r);if(f==="number")return m6(r)}};
zgq=function(r){if(r==null)return r;var f=typeof r;if(f==="bigint")return String((0,_.i2)(64,r));if(_.X3(r)){if(f==="string")return _.hgK(r);if(f==="number")return _.ECU(r)}};
_.vB=function(r){if(typeof r!=="string")throw Error();return r};
Kq=function(r){if(r!=null&&typeof r!=="string")throw Error();return r};
_.yV=function(r){return r==null||typeof r==="string"?r:void 0};
M3U=function(r,f,I,C){if(r!=null&&r[U7]===oY)return r;if(!Array.isArray(r))return I?C&2?((r=f[QV])||(r=new f,j3(r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),r=f[QV]=r),f=r):f=new f:f=void 0,f;I=r[_.L8]|0;C=I|C&32|C&2;C!==I&&e3(r,C);return new f(r)};
gCm=function(r,f,I){r=f?qPc(r):_.tU(r);return r==null?I?0:void 0:r|0};
aUl=function(r){return r};
X4u=function(r){return r};
$TB=function(r,f,I,C,Y,V){r=M3U(r,C,I,V);Y&&(r=NB$(r));return r};
F3B=function(r){return[r,this.get(r)]};
TBU=function(){return PVP||(PVP=new Zp(j3([]),void 0,void 0,void 0,t3R))};
BB=function(r){var f=G6(ki);return f?r[f]:void 0};
L3U=function(r,f){var I=I===void 0?!1:I;if(G6(c_u)&&G6(ki)&&void 0===c_u){var C=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=C[ki];if(!Y)return;if(Y=Y.reviveUnknownFields)try{Y(C,f,W3u);return}catch(V){VE(V)}}I&&(r=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(I=G6(ki))&&I in r&&(r=r[I])&&delete r[f])};
egd=function(r,f){var I=G6(ki),C;c4&&I&&((C=r[I])==null?void 0:C[f])!=null&&t_(mTR,3)};
jDq=function(r,f){f<100||t_(J_q,1)};
vCK=function(r,f,I,C){var Y=C!==void 0;C=!!C;var V=G6(ki),S;!Y&&c4&&V&&(S=r[V])&&q6(S,jDq);V=[];var h=r.length;S=4294967295;var w=!1,n=!!(f&64),d=n?f&128?0:-1:void 0;if(!(f&1)){var z=h&&r[h-1];z!=null&&typeof z==="object"&&z.constructor===Object?(h--,S=h):z=void 0;if(n&&!(f&128)&&!Y){w=!0;var g;S=((g=H8R)!=null?g:aUl)(S-d,d,r,z)+d}}f=void 0;for(g=0;g<h;g++){var X=r[g];if(X!=null&&(X=I(X,C))!=null)if(n&&g>=S){var P=g-d,W=void 0;((W=f)!=null?W:f={})[P]=X}else V[g]=X}if(z)for(var m in z)h=z[m],h!=null&&
(h=I(h,C))!=null&&(g=+m,X=void 0,n&&!Number.isNaN(g)&&(X=g+d)<S?V[X]=h:(g=void 0,((g=f)!=null?g:f={})[m]=h));f&&(w?V.push(f):V[S]=f);Y&&G6(ki)&&(r=BB(r))&&r instanceof i8K&&(V[ki]=RgK(r));return V};
K3K=function(r){r[0]=u2(r[0]);r[1]=u2(r[1]);return r};
u2=function(r){switch(typeof r){case "number":return Number.isFinite(r)?r:""+r;case "bigint":return RY(r)?Number(r):""+r;case "boolean":return r?1:0;case "object":if(Array.isArray(r)){var f=r[_.L8]|0;return r.length===0&&f&1?void 0:vCK(r,f,u2)}if(r!=null&&r[U7]===oY)return y_R(r);if(r instanceof K8){f=r.JSC$6710_value_;if(f==null)r="";else if(typeof f==="string")r=f;else{if(TRw){for(var I="",C=0,Y=f.length-10240;C<Y;)I+=String.fromCharCode.apply(null,f.subarray(C,C+=10240));I+=String.fromCharCode.apply(null,
C?f.subarray(C):f);f=btoa(I)}else f=_.Dp(f);r=r.JSC$6710_value_=f}return r}if(r instanceof Zp)return r=r.size!==0?Array.from(fj.prototype.entries.call(r),K3K):void 0,r;return}return r};
Cj=function(r,f){if(f){H8R=f==null||f===aUl||f[UTP]!==sDm?aUl:f;try{return y_R(r)}finally{H8R=void 0}}return y_R(r)};
y_R=function(r){r=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return vCK(r,r[_.L8]|0,u2)};
QDK=function(r){switch(typeof r){case "boolean":return O8l||(O8l=[0,void 0,!0]);case "number":return r>0?void 0:r===0?oCq||(oCq=[0,void 0]):[-r,void 0];case "string":return[0,r];case "object":return r}};
VG=function(r,f,I){return r=_.YH(r,f[0],f[1],I?1:2)};
_.YH=function(r,f,I,C){C=C===void 0?0:C;if(r==null){var Y=32;I?(r=[I],Y|=128):r=[];f&&(Y=Y&-8380417|(f&1023)<<13)}else{if(!Array.isArray(r))throw Error("L");Y=r[_.L8]|0;2048&Y&&!(2&Y)&&A_R();if(Y&256)throw Error("N");if(Y&64)return C!==0||Y&2048||e3(r,Y|2048),r;if(I&&(Y|=128,I!==r[0]))throw Error("O");a:{I=r;Y|=64;var V=I.length;if(V){var S=V-1,h=I[S];if(h!=null&&typeof h==="object"&&h.constructor===Object){f=Y&128?0:-1;S-=f;if(S>=1024)throw Error("Q");for(var w in h)V=+w,V<S&&(I[V+f]=h[w],delete h[w]);
Y=Y&-8380417|(S&1023)<<13;break a}}if(f){w=Math.max(f,V-(Y&128?0:-1));if(w>1024)throw Error("R");Y=Y&-8380417|(w&1023)<<13}}}Y|=64;C===0&&(Y|=2048);e3(r,Y);return r};
A_R=function(){t_(Z8d,5)};
BBw=function(r,f){if(typeof r!=="object")return r;if(Array.isArray(r)){var I=r[_.L8]|0;return r.length===0&&I&1?void 0:G4K(r,I,f)}if(r!=null&&r[U7]===oY)return k4q(r);if(r instanceof Zp){f=r.arrayState;if(f&2)return r;if(!r.size)return;I=j3(Array.from(fj.prototype.entries.call(r)));if(r.valueCtor)for(r=0;r<I.length;r++){var C=I[r],Y=C[1];Y==null||typeof Y!=="object"?Y=void 0:Y!=null&&Y[U7]===oY?Y=k4q(Y):Array.isArray(Y)?Y=G4K(Y,Y[_.L8]|0,!!(f&32)):Y=void 0;C[1]=Y}return I}if(r instanceof K8)return r};
G4K=function(r,f,I){if(f&2)return r;!I||4096&f||16&f?r=EW(r,f,!1,I&&!(f&16)):(m3(r,34),f&4&&Object.freeze(r));return r};
Sa=function(r,f,I){r=new r.constructor(f);I&&(r.copyOnWrite=RD);r.noLegacyNull=RD;return r};
k4q=function(r){var f=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=f[_.L8]|0;return v4(r,I)?r:xH(r,f,I)?Sa(r,f):EW(f,I)};
EW=function(r,f,I,C){C!=null||(C=!!(34&f));r=vCK(r,f,BBw,C);C=32;I&&(C|=2);f=f&8380609|C;e3(r,f);return r};
NB$=function(r){var f=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=f[_.L8]|0;return v4(r,I)?xH(r,f,I)?Sa(r,f,!0):new r.constructor(EW(f,I,!1)):r};
br=function(r){if(r.copyOnWrite!==RD)return!1;var f=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;f=EW(f,f[_.L8]|0);m3(f,2048);r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=f;r.copyOnWrite=void 0;r.noLegacyNull=void 0;return!0};
pj=function(r){if(!br(r)&&v4(r,r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.L8]|0))throw Error();};
d2=function(r,f){f===void 0&&(f=r[_.L8]|0);f&32&&!(f&4096)&&e3(r,f|4096)};
xH=function(r,f,I){return I&2?!0:I&32&&!(I&4096)?(e3(f,I|2),r.copyOnWrite=RD,!0):!1};
zy=function(r,f,I,C,Y){var V=I+(Y?0:-1),S=r.length-1;if(S>=1+(Y?0:-1)&&V>=S){var h=r[S];if(h!=null&&typeof h==="object"&&h.constructor===Object)return h[I]=C,f}if(V<=S)return r[V]=C,f;if(C!==void 0){var w;S=((w=f)!=null?w:f=r[_.L8]|0)>>13&1023||536870912;I>=S?C!=null&&(V={},r[S+(Y?0:-1)]=(V[I]=C,V)):r[V]=C}return f};
_.X9=function(r,f,I,C,Y){var V=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=V[_.L8]|0;C=v4(r,S)?1:C;Y=!!Y||C===3;C===2&&br(r)&&(V=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=V[_.L8]|0);r=qsK(V,f);var h=r===Me?7:r[_.L8]|0,w=uXB(h,S);var n=4&w?!1:!0;if(n){4&w&&(r=E7(r),h=0,w=aM(w,S),S=zy(V,S,f,r));for(var d=0,z=0;d<r.length;d++){var g=I(r[d]);g!=null&&(r[z++]=g)}z<d&&(r.length=z);I=(w|4)&-513;w=I&=-1025;w&=-4097}w!==h&&(e3(r,w),2&w&&Object.freeze(r));return r=DTq(r,w,V,
S,f,C,n,Y)};
DTq=function(r,f,I,C,Y,V,S,h){var w=f;V===1||(V!==4?0:2&f||!(16&f)&&32&C)?Ne(f)||(f|=!r.length||S&&!(4096&f)||32&C&&!(4096&f||16&f)?2:256,f!==w&&e3(r,f),Object.freeze(r)):(V===2&&Ne(f)&&(r=E7(r),w=0,f=aM(f,C),C=zy(I,C,Y,r)),Ne(f)||(h||(f|=16),f!==w&&e3(r,f)));2&f||!(4096&f||16&f)||d2(I,C);return r};
qsK=function(r,f,I){r=$H(r,f,I);return Array.isArray(r)?r:Me};
uXB=function(r,f){2&f&&(r|=2);return r|1};
Ne=function(r){return!!(2&r)&&!!(4&r)||!!(256&r)};
rUU=function(r){return _.Os(r,!0)};
fpm=function(r,f){var I=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=I[_.L8]|0;a:{var Y=C;C=v4(r,C);!C&&br(r)&&(I=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=I[_.L8]|0);var V=$H(I,f);r=!1;if(V==null){if(C){f=TBU();break a}V=[]}else if(V.constructor===Zp)if(V.arrayState&2&&!C)V=Array.from(fj.prototype.entries.call(V));else{f=V;break a}else Array.isArray(V)?r=!!((V[_.L8]|0)&2):V=[];if(C){if(!V.length){f=TBU();break a}r||(r=!0,j3(V))}else if(r){r=!1;C=V;C=E7(C);for(V=0;V<
C.length;V++){var S=C[V]=E7(C[V]);Array.isArray(S[1])&&(S[1]=j3(S[1]))}V=C}!r&&Y&32&&HwB(V);C=new Zp(V,void 0,gCm,gCm);Y=zy(I,Y,f,C);r||d2(I,Y);f=C}return f};
_.PE=function(r,f,I,C){pj(r);var Y=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=Y[_.L8]|0;if(I==null)return zy(Y,V,f),r;var S=I===Me?7:I[_.L8]|0,h=S,w=Ne(S),n=w||Object.isFrozen(I);w||(S=0);n||(I=E7(I),h=0,S=aM(S,V),n=!1);S|=5;var d;w=(d=jRu(S))!=null?d:0;for(d=0;d<I.length;d++){var z=I[d],g=C(z,w);Object.is(z,g)||(n&&(I=E7(I),h=0,S=aM(S,V),n=!1),I[d]=g)}S!==h&&(n&&(I=E7(I),S=aM(S,V)),e3(I,S));zy(Y,V,f,I);return r};
_.Ty=function(r,f,I,C,Y){pj(r);var V=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;zy(V,V[_.L8]|0,f,(C==="0"?Number(I)===0:I===C)?void 0:I,Y);return r};
_.cE=function(r,f,I){if(f&2)throw Error();var C=G4(f),Y=qsK(r,I,C),V=Y===Me?7:Y[_.L8]|0,S=uXB(V,f);if(2&S||Ne(S)||16&S)Y=E7(Y),V=0,S=aM(S,f),zy(r,f,I,Y,C);S&=-13;S!==V&&e3(Y,S);return Y};
IpR=function(r){if(c4){var f;return(f=r[WE])!=null?f:r[WE]=new Map}if(WE in r)return r[WE];f=new Map;Object.defineProperty(r,WE,{value:f});return f};
Y7c=function(r,f,I,C,Y){var V=IpR(r),S=C2d(V,r,f,I,Y);S!==C&&(S&&(f=zy(r,f,S,void 0,Y)),V.set(I,C));return f};
C2d=function(r,f,I,C,Y){var V=r.get(C);if(V!=null)return V;for(var S=V=0;S<C.length;S++){var h=C[S];$H(f,h,Y)!=null&&(V!==0&&(I=zy(f,I,V,void 0,Y)),V=h)}r.set(C,V);return V};
mo=function(r,f,I,C,Y){var V=!1;C=$H(r,C,Y,function(S){var h=M3U(S,I,!1,f);V=h!==S&&h!=null;return h});
if(C!=null)return V&&!v4(C)&&d2(r,f),C};
lpq=function(r,f,I,C,Y,V,S,h){var w=v4(r,I);V=w?1:V;S=!!S||V===3;w=h&&!w;(V===2||w)&&br(r)&&(f=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I=f[_.L8]|0);r=qsK(f,Y);var n=r===Me?7:r[_.L8]|0,d=uXB(n,I);if(h=!(4&d)){var z=r,g=I,X=!!(2&d);X&&(g|=2);for(var P=!X,W=!0,m=0,v=0;m<z.length;m++){var O=M3U(z[m],C,!1,g);if(O instanceof C){if(!X){var k=v4(O);P&&(P=!k);W&&(W=k)}z[v++]=O}}v<m&&(z.length=v);d|=4;d=W?d&-4097:d|4096;d=P?d|8:d&-9}d!==n&&(e3(r,d),2&d&&Object.freeze(r));if(w&&!(8&d||!r.length&&
(V===1||(V!==4?0:2&d||!(16&d)&&32&I)))){Ne(d)&&(r=E7(r),d=aM(d,I),I=zy(f,I,Y,r));C=r;w=d;for(n=0;n<C.length;n++)z=C[n],d=NB$(z),z!==d&&(C[n]=d);w|=8;d=w=C.length?w|4096:w&-4097;e3(r,d)}return r=DTq(r,d,f,I,Y,V,h,S)};
Vdw=function(r){r==null&&(r=void 0);return r};
aM=function(r,f){return r=(2&f?r|2:r&-3)&-273};
_.Eiu=function(r,f,I,C,Y){pj(r);f=_.X9(r,f,Y,2,!0);var V;Y=(V=jRu(f===Me?7:f[_.L8]|0))!=null?V:0;f.push(I(C,Y));return r};
S7E=function(r,f,I,C,Y,V,S){pj(r);var h=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;r=lpq(r,h,h[_.L8]|0,I,f,2,!0);if(V&&S)Y!=null||(Y=r.length-1),oD(r,Y),r.splice(Y,V),r.length||(r[_.L8]&=-4097);else{if(V){if(typeof Y!=="number"||Y<0||Y>r.length)throw Error();}else C=C!=null?C:new I;Y!=void 0?r.splice(Y,V,C):r.push(C);Y=I=r===Me?7:r[_.L8]|0;(C=v4(C))?(I&=-9,r.length===1&&(I&=-4097)):I|=4096;I!==Y&&e3(r,I);C||d2(h)}};
x6P=function(r,f){if(typeof r==="string")return new ea(WKP(r),f);if(Array.isArray(r))return new ea(new Uint8Array(r),f);if(r.constructor===Uint8Array)return new ea(r,!1);if(r.constructor===ArrayBuffer)return r=new Uint8Array(r),new ea(r,!1);if(r.constructor===K8)return f=Jg(r)||new Uint8Array(0),new ea(f,!0,r);if(r instanceof Uint8Array)return r=r.constructor===Uint8Array?r:new Uint8Array(r.buffer,r.byteOffset,r.byteLength),new ea(r,!1);throw Error();};
HE=function(){var r=function(){throw Error();};
Object.setPrototypeOf(r,r.prototype);return r};
wBU=function(r,f){var I=I===void 0?h1U:I;return new ir(r,f,I)};
d6R=function(r,f,I,C,Y){f=bqK(f,C);f!=null&&(I=_.pBU(r,I),Y(f,r),_.niw(r,I))};
vE=function(r,f,I,C){var Y=C[r];if(Y)return Y;Y={};Y.binaryFields=C;Y.messageMetadata=QDK(C[0]);var V=C[1],S=1;V&&V.constructor===Object&&(Y.extensions=V,V=C[++S],typeof V==="function"&&(Y.isMessageSet=!0,z1w!=null||(z1w=V),MdE!=null||(MdE=C[S+1]),V=C[S+=2]));for(var h={};V&&Array.isArray(V)&&V.length&&typeof V[0]==="number"&&V[0]>0;){for(var w=0;w<V.length;w++)h[V[w]]=V;V=C[++S]}for(w=1;V!==void 0;){typeof V==="number"&&(w+=V,V=C[++S]);var n=void 0;if(V instanceof ir)var d=V;else d=giw,S--;V=void 0;
if((V=d)==null?0:V.$$isMsg){V=C[++S];n=C;var z=S;typeof V==="function"&&(V=V(),n[z]=V);n=V}V=C[++S];z=w+1;typeof V==="number"&&V<0&&(z-=V,V=C[++S]);for(;w<z;w++){var g=h[w];n?I(Y,w,d,n,g):f(Y,w,d,g)}}return C[r]=Y};
XBP=function(r){return Array.isArray(r)?r[0]instanceof ir?r:[apU,r]:[r,void 0]};
bqK=function(r,f){if(r instanceof _.Kj)return r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(r))return VG(r,f,!1)};
NsB=function(r,f,I,C){var Y=I.$$binaryReaderFn;r[f]=C?function(V,S,h){return Y(V,S,h,C)}:Y};
$6$=function(r,f,I,C,Y){var V=I.$$binaryReaderFn,S,h;r[f]=function(w,n,d){return V(w,n,d,h||(h=vE(yG,NsB,$6$,C).messageMetadata),S||(S=F6$(C)),Y)}};
F6$=function(r){var f=r[P2w];if(f!=null)return f;var I=vE(yG,NsB,$6$,r);f=I.isMessageSet?function(C,Y){return z1w(C,Y,I)}:function(C,Y){for(;tdE(Y)&&Y.nextWireType_!=4;){var V=Y.nextField_,S=I[V];
if(S==null){var h=I.extensions;h&&(h=h[V])&&(h=Tsw(h),h!=null&&(S=I[V]=h))}if(S==null||!S(Y,C,V)){h=Y;S=h.fieldCursor_;UW(h);if(h.discardUnknownFields)var w=void 0;else{var n=h.decoder_.cursor_-S;h.decoder_.cursor_=S;w=cUB(h.decoder_,n)}n=h=S=void 0;var d=C;w&&((S=(h=(n=d[ki])!=null?n:d[ki]=new i8K)[V])!=null?S:h[V]=[]).push(w)}}if(C=BB(C))C.reviveUnknownFields=I.binaryFields[W6w];return!0};
r[P2w]=f;r[W6w]=L6l.bind(r);return f};
L6l=function(r,f,I,C){var Y=this[yG],V=this[P2w],S=VG(void 0,Y.messageMetadata,!1),h=BB(r);if(h){var w=!1,n=Y.extensions;if(n){Y=function(P,W,m){if(m.length!==0)if(n[W])for(P=_.E(m),W=P.next();!W.done;W=P.next()){W=m6P(W.value);try{w=!0,V(S,W)}finally{W.free()}}else C==null||C(r,W,m)};
if(f==null)q6(h,Y);else if(h!=null){var d=h[f];d&&Y(h,f,d)}if(w){var z=r[_.L8]|0;if(z&2&&z&2048&&(I==null||!I.reviveIntoImmutable))throw Error();var g=G4(z),X=function(P,W){if($H(r,P,g)!=null)switch(I==null?void 0:I.resolutionBehavior){case 1:return;default:throw Error();}W!=null&&(z=zy(r,z,P,W,g));delete h[P]};
f==null?Rlm(S,S[_.L8]|0,function(P,W){X(P,W)}):X(f,$H(S,f,g))}}}};
Tsw=function(r){r=XBP(r);var f=r[0].$$binaryReaderFn;if(r=r[1]){var I=F6$(r),C=vE(yG,NsB,$6$,r).messageMetadata;return function(Y,V,S){return f(Y,V,S,C,I)}}return f};
sW=function(r,f,I){r[f]=I.$$binaryWriterFn};
oM=function(r,f,I,C){var Y,V,S=I.$$binaryWriterFn;r[f]=function(h,w,n){return S(h,w,n,V||(V=vE(OW,sW,oM,C).messageMetadata),Y||(Y=e1R(C)))}};
e1R=function(r){var f=r[JUl];if(!f){var I=vE(OW,sW,oM,r);f=function(C,Y){return jYd(C,Y,I)};
r[JUl]=f}return f};
jYd=function(r,f,I){Rlm(r,r[_.L8]|0,function(C,Y){if(Y!=null){var V=Hq$(I,C);V?V(f,Y,C):C<500||t_(iqw,3)}});
(r=BB(r))&&q6(r,function(C,Y,V){QG(f,f.encoder_.end());for(C=0;C<V.length;C++)QG(f,Jg(V[C])||new Uint8Array(0))})};
Hq$=function(r,f){var I=r[f];if(I)return I;if(I=r.extensions)if(I=I[f]){I=XBP(I);var C=I[0].$$binaryWriterFn;if(I=I[1]){var Y=e1R(I),V=vE(OW,sW,oM,I).messageMetadata;I=r.isMessageSet?MdE(V,Y):function(S,h,w){return C(S,h,w,V,Y)}}else I=C;
return r[f]=I}};
_.R1u=function(r,f,I){if(Array.isArray(f)){var C=f[_.L8]|0;if(C&4)return f;for(var Y=0,V=0;Y<f.length;Y++){var S=r(f[Y]);S!=null&&(f[V++]=S)}V<Y&&(f.length=V);I&&(e3(f,(C|5)&-1537),C&2&&Object.freeze(f));return f}};
_.Ag=function(r,f,I){return new ir(r,f,I)};
_.viR=function(r,f,I){return new ir(r,f,I)};
_.Z$=function(r,f,I){zy(r,r[_.L8]|0,f,I,G4(r[_.L8]|0))};
K6$=function(r,f,I){f=_.ds(f);f!=null&&(_.kH(r,I,1),r=r.encoder_,I=BE||(BE=new DataView(new ArrayBuffer(8))),I.setFloat64(0,+f,!0),DU=I.getUint32(0,!0),rs=I.getUint32(4,!0),_.qe(r,DU),_.qe(r,rs))};
_.ur=function(r,f,I){f=dTU(f);if(f!=null){switch(typeof f){case "string":yUB(f)}if(f!=null)switch(_.kH(r,I,0),typeof f){case "number":r=r.encoder_;fq(f);U6R(r,DU,rs);break;case "bigint":I=BigInt.asUintN(64,f);I=new sYK(Number(I&BigInt(4294967295)),Number(I>>BigInt(32)));U6R(r.encoder_,I.JSC$6762_lo,I.JSC$6762_hi);break;default:I=yUB(f),U6R(r.encoder_,I.JSC$6762_lo,I.JSC$6762_hi)}}};
oiU=function(r,f,I){f=_.tU(f);f!=null&&f!=null&&(_.kH(r,I,0),_.OqU(r.encoder_,f))};
_.AUq=function(r,f,I){QYl(r,I,zgq(f))};
_.ZqK=function(r,f,I){f=_.kB$(f);f!=null&&(_.kH(r,I,0),r.encoder_.JSC$6764_buffer_.push(f?1:0))};
_.k6P=function(r,f,I){f=_.yV(f);f!=null&&G6q(r,I,YPl(f))};
Bsw=function(r,f,I,C,Y){f=bqK(f,C);f!=null&&(I=_.pBU(r,I),Y(f,r),_.niw(r,I))};
_.u3U=function(r,f,I){f=f==null||typeof f=="string"||f instanceof K8?f:void 0;f!=null&&G6q(r,I,x6P(f,!0).buffer)};
_.D6U=function(r,f,I){f=_.tU(f);f!=null&&(f=parseInt(f,10),_.kH(r,I,0),_.OqU(r.encoder_,f))};
_.D$=function(r,f){return function(I,C){var Y={treatNewDataAsImmutable:!0};C&&Object.assign(Y,C);I=m6P(I,void 0,void 0,Y);try{var V=new r,S=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;F6$(f)(S,I);var h=V}finally{I.free()}return h}};
_.rn=function(r){return function(f){return rgK(f,r)}};
f$R=function(r){return function(){return rgK(this,r)}};
_.I$P=function(r){return kC(function(f){return f instanceof r&&!v4(f)})};
_.fK=function(r){return function(f){return CrB(r,f)}};
EH$=function(r,f){return YWR({child:r,origin:f||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:l$K,getPayloadCase:function(I){return I.getPayloadCase()},
createInitMessage:function(I){var C=new Iw,Y=new VaU;I=_.CK(Y,1,I);return _.Y1(C,5,lM,I)}})};
Vs=function(r){return{valueOf:r}.valueOf()};
xeR=function(){var r=null;if(!SW$)return r;try{var f=function(I){return I};
r=SW$.createPolicy("goog#html",{createHTML:f,createScript:f,createScriptURL:f})}catch(I){}return r};
wEl=function(){hLu===void 0&&(hLu=xeR());return hLu};
_.SF=function(r){var f=wEl();r=f?f.createScriptURL(r):r;return new ER(r)};
_.x1=function(r){if(r instanceof ER)return r.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
h6=function(r){return r.toString().indexOf("`")===-1};
bM=function(r){return new _.wn(bjR,r)};
pK=function(r){return r instanceof _.wn};
_.nK=function(r){if(pK(r))return r.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
dn=function(r){return new pER(function(f){return f.substr(0,r.length+1).toLowerCase()===r+":"})};
zC=function(r,f){f=f===void 0?nHU:f;if(pK(r))return r;for(var I=0;I<f.length;++I){var C=f[I];if(C instanceof pER&&C.isValid(r))return bM(r)}};
_.gn=function(r,f){f=f===void 0?nHU:f;return zC(r,f)||M3};
_.aw=function(r){var f=window;if(typeof MediaSource!=="undefined"&&r instanceof MediaSource||typeof f.ManagedMediaSource!=="undefined"&&r instanceof f.ManagedMediaSource)return bM(URL.createObjectURL(r));f=r.type;f.toLowerCase()==="application/octet-stream"?f=!0:(f=f.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),f=(f==null?void 0:f.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(f[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(f[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(f[1])||/^font\/[\w-]+$/i.test(f[1])));if(!f)throw Error("da");return bM(URL.createObjectURL(r))};
_.$1=function(r){for(var f=_.XE.apply(1,arguments),I=[r[0]],C=0;C<f.length;C++)I.push(String(f[C])),I.push(r[C+1]);return bM(I.join(""))};
_.zLu=function(r){if(!deU){a:{var f=document.createElement("a");try{f.href=r}catch(I){r=void 0;break a}r=f.protocol;r=r===":"||r===""?"https:":r}return r}try{f=new URL(r)}catch(I){return"https:"}return f.protocol};
_.PL=function(r){r instanceof _.wn?r=_.nK(r):r=MaP.test(r)?r:void 0;return r};
t6=function(r,f){f=_.PL(f);f!==void 0&&(r.href=f)};
cL=function(r){var f=wEl();r=f?f.createHTML(r):r;return new TC(r)};
WL=function(r){if(r instanceof TC)return r.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.LK=function(r,f){r.src=_.x1(f).toString()};
gHw=function(r,f){r.setAttribute("sandbox","");for(var I=0;I<f.length;I++)r.sandbox.supports&&!r.sandbox.supports(f[I])||r.sandbox.add(f[I])};
_.a$c=function(r,f,I){r.removeAttribute("srcdoc");switch(f){case 0:if(I instanceof ER)throw new mX("TrustedResourceUrl",0);gHw(r,[]);f=_.PL(I);f!==void 0&&(r.src=f);break;case 1:if(!(I instanceof ER))throw new mX(typeof I,1);gHw(r,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.LK(r,I);break;case 2:if(I instanceof ER)throw new mX("TrustedResourceUrl",2);gHw(r,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
f=_.PL(I);f!==void 0&&(r.src=f);break;default:_.Sd(f)}};
_.eF=function(r,f,I,C){f=_.PL(f);return f!==void 0?r.open(f,I,C):null};
_.J6=function(r){r=r===void 0?document:r;var f,I;r=(I=(f=r).querySelector)==null?void 0:I.call(f,"script[nonce]");return r==null?"":r.nonce||r.getAttribute("nonce")||""};
_.HL=function(r){var f=wEl();r=f?f.createScript(r):r;return new _.jF(r)};
iM=function(r){if(r instanceof _.jF)return r.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
XEB=function(r){var f=_.J6(r.ownerDocument);f&&r.setAttribute("nonce",f)};
_.Rw=function(r,f){r.textContent=iM(f);XEB(r)};
_.vL=function(r,f){r.src=_.x1(f);XEB(r)};
_.KK=function(r,f){if(r.nodeType===1&&/^(script|style)$/i.test(r.tagName))throw Error("da");r.innerHTML=WL(f)};
_.ys=function(r,f,I,C){if(r.length===0)throw Error("da");r=r.map(function(V){if(V instanceof N2K)V=V.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return V});
var Y=I.toLowerCase();if(r.every(function(V){return Y.indexOf(V)!==0}))throw Error("ea`"+I);
f.setAttribute(I,C)};
_.UR=function(r,f,I){if(f instanceof ER)r.href=_.x1(f).toString(),r.rel=I;else{if($eK.indexOf(I)===-1)throw Error("fa`"+I);f=_.PL(f);f!==void 0&&(r.href=f,r.rel=I)}};
FoU=function(r){return"function"==typeof _.sR&&r instanceof _.sR};
_.Prm=function(r){if(FoU(r))return r.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.Qs=function(r,f){f=_.PL(f);f!==void 0&&(r.href=f)};
A6=function(r,f){r&&(f=r.indexOf(f),0<=f&&r.splice(f,1))};
Zz=function(r){return typeof r==="function"};
taR=function(r){return r instanceof GC||r&&"closed"in r&&Zz(r.remove)&&Zz(r.add)&&Zz(r.unsubscribe)};
BL=function(){};
q3=function(r){T2R(function(){throw r;})};
uM=function(r){return r};
Dz=function(){return cg$(_.XE.apply(0,arguments))};
cg$=function(r){return r.length===0?uM:r.length===1?r[0]:function(f){return r.reduce(function(I,C){return C(I)},f)}};
Wo$=function(r){var f;return(f=r!=null?r:void 0)!=null?f:Promise};
LoK=function(r,f){return new rO(function(I){var C=0;return f.schedule(function(){C===r.length?I.complete():(I.next(r[C++]),I.closed||this.schedule())})})};
meK=function(r,f){if(!r)throw Error("ga");return new rO(function(I){var C=new GC;C.add(f.schedule(function(){var Y=r[Symbol.asyncIterator]();C.add(f.schedule(function(){var V=this;Y.next().then(function(S){S.done?I.complete():(I.next(S.value),V.schedule())})}))}));
return C})};
eL$=function(r,f,I){f=f.schedule(function(){try{I.call(this)}catch(C){r.error(C)}},0);
r.add(f)};
JgP=function(r,f){return new rO(function(I){var C;I.add(f.schedule(function(){C=r[fi]();eL$(I,f,function(){var Y=C.next(),V=Y.value;Y.done?I.complete():(I.next(V),this.schedule())})}));
return function(){var Y;return Zz((Y=C)==null?void 0:Y.return)&&C.return()}})};
jM$=function(r,f){return new rO(function(I){var C=new GC;C.add(f.schedule(function(){var Y=r[Ik]();C.add(Y.subscribe({next:function(V){C.add(f.schedule(function(){return I.next(V)}))},
error:function(V){C.add(f.schedule(function(){return I.error(V)}))},
complete:function(){C.add(f.schedule(function(){return I.complete()}))}}))}));
return C})};
Hjm=function(r,f){return new rO(function(I){return f.schedule(function(){return r.then(function(C){I.add(f.schedule(function(){I.next(C);I.add(f.schedule(function(){return I.complete()}))}))},function(C){I.add(f.schedule(function(){return I.error(C)}))})})})};
ijR=function(r){return new TypeError("ha`"+(r!==null&&typeof r==="object"?"an invalid object":"'"+r+"'"))};
vHB=function(r,f){if(r!=null){if(Zz(r[Ik]))return jM$(r,f);if(RLw(r))return LoK(r,f);if(Zz(r==null?void 0:r.then))return Hjm(r,f);if(Symbol.asyncIterator&&Zz(r==null?void 0:r[Symbol.asyncIterator]))return meK(r,f);if(Zz(r==null?void 0:r[fi]))return JgP(r,f)}throw ijR(r);};
YV=function(r,f){return f?vHB(r,f):Ci(r)};
Ci=function(r){if(r instanceof rO)return r;if(r!=null){if(Zz(r[Ik]))return KoK(r);if(RLw(r))return ygP(r);if(Zz(r==null?void 0:r.then))return UeE(r);if(Symbol.asyncIterator&&Zz(r==null?void 0:r[Symbol.asyncIterator]))return sMq(r);if(Zz(r==null?void 0:r[fi]))return Ojm(r)}throw ijR(r);};
KoK=function(r){return new rO(function(f){var I=r[Ik]();if(Zz(I.subscribe))return I.subscribe(f);throw new TypeError("ia");})};
ygP=function(r){return new rO(function(f){for(var I=0;I<r.length&&!f.closed;I++)f.next(r[I]);f.complete()})};
UeE=function(r){return new rO(function(f){r.then(function(I){f.closed||(f.next(I),f.complete())},function(I){return f.error(I)}).then(null,q3)})};
Ojm=function(r){return new rO(function(f){for(var I=r[fi]();!f.closed;){var C=I.next(),Y=C.value;C.done?f.complete():f.next(Y)}return function(){return Zz(I==null?void 0:I.return)&&I.return()}})};
sMq=function(r){return new rO(function(f){oHu(r,f).catch(function(I){return f.error(I)})})};
oHu=function(r,f){var I,C,Y,V,S,h;return _.x(function(w){switch(w.nextAddress){case 1:_.l_(w,2,3);var n=r[Symbol.asyncIterator];V=n!==void 0?n.call(r):new QMK(_.E(r));case 5:return _.b(w,V.next(),8);case 8:C=w.yieldResult;if(C.done){w.jumpTo(3);break}S=C.value;f.next(S);w.jumpTo(5);break;case 3:_.VY(w);_.SP(w,9);if(!C||C.done||!(Y=V.return)){w.jumpTo(9);break}return _.b(w,Y.call(V),9);case 9:_.VY(w,0,0,1);if(I)throw I.error;_.xV(w,10,1);break;case 10:_.xV(w,4);break;case 2:h=_.ha(w);I={error:h};w.jumpTo(3);
break;case 4:f.complete(),_.wO(w)}})};
b_=function(r,f){return f?LoK(r,f):ygP(r)};
AgR=function(r){return Zz(r[r.length-1])?r.pop():void 0};
pi=function(r){var f=r[r.length-1];return f&&Zz(f.schedule)?r.pop():void 0};
ni=function(){var r=_.XE.apply(0,arguments),f=pi(r);return f?LoK(r,f):b_(r)};
dO=function(r){var f=Zz(r)?r:function(){return r};
return new rO(function(I){return I.error(f())})};
zs=function(r){return function(f){if(Zz(f==null?void 0:f.lift))return f.lift(function(I){try{return r(I,this)}catch(C){this.error(C)}});
throw new TypeError("ja");}};
gO=function(){return zs(function(r,f){var I=null;r._refCount++;var C=new Ma(f,void 0,void 0,void 0,function(){if(!r||r._refCount<=0||0<--r._refCount)I=null;else{var Y=r._connection,V=I;I=null;!Y||V&&Y!==V||Y.unsubscribe();f.unsubscribe()}});
r.subscribe(C);C.closed||(I=r.connect())})};
Gyw=function(){var r=Zj$;var f=f===void 0?0:f;return zs(function(I,C){C.add(r.schedule(function(){return I.subscribe(C)},f))})};
XJ=function(r){return zs(function(f,I){var C=0;f.subscribe(new Ma(I,function(Y){I.next(r.call(void 0,Y,C++))}))})};
B2E=function(r){return XJ(function(f){return kyK(f)?r.apply(null,_.Na(f)):r(f)})};
fzR=function(r){if(r.length===1){var f=r[0];if(qWK(f))return{args:f,keys:null};if(f&&typeof f==="object"&&u9K(f)===DeB)return r=r6P(f),{args:r.map(function(I){return f[I]}),
keys:r}}return{args:r,keys:null}};
$V=function(){var r=_.XE.apply(0,arguments),f=pi(r),I=AgR(r);r=fzR(r);var C=r.args,Y=r.keys;if(C.length===0)return YV([],f);f=new rO(IzB(C,f,Y?function(V){for(var S={},h=0;h<V.length;h++)S[Y[h]]=V[h];return S}:uM));
return I?f.pipe(B2E(I)):f};
IzB=function(r,f,I){I=I===void 0?uM:I;return function(C){CMU(f,function(){for(var Y=r.length,V=Array(Y),S=Y,h=r.map(function(){return!1}),w=!0,n={i$jscomp$260:0};n.i$jscomp$260<Y;n={i$jscomp$260:n.i$jscomp$260},n.i$jscomp$260++)CMU(f,function(d){return function(){YV(r[d.i$jscomp$260],f).subscribe(new FJ(C,function(z){V[d.i$jscomp$260]=z;
w&&(h[d.i$jscomp$260]=!0,w=!h.every(uM));w||C.next(I(V.slice()))},function(){return--S===0}))}}(n),C)},C)}};
CMU=function(r,f,I){r?I.add(r.schedule(f)):f()};
YRP=function(r,f,I,C){var Y=[],V=0,S=0,h=!1,w=function(n){V++;Ci(I(n,S++)).subscribe(new Ma(f,function(d){f.next(d)},void 0,function(){V--;
for(var d={};Y.length&&V<C;d={bufferedValue:void 0})d.bufferedValue=Y.shift(),w(d.bufferedValue);!h||Y.length||V||f.complete()}))};
r.subscribe(new Ma(f,function(n){return V<C?w(n):Y.push(n)},void 0,function(){h=!0;
!h||Y.length||V||f.complete()}));
return function(){Y=null}};
PG=function(r,f){var I=I===void 0?Infinity:I;if(Zz(f))return PG(function(C,Y){return XJ(function(V,S){return f(C,V,Y,S)})(Ci(r(C,Y)))},I);
typeof f==="number"&&(I=f);return zs(function(C,Y){return YRP(C,Y,r,I)})};
lzB=function(r){r=r===void 0?Infinity:r;return PG(uM,r)};
VFK=function(){var r=_.XE.apply(0,arguments);return lzB(1)(b_(r,pi(r)))};
ta=function(r){return new rO(function(f){Ci(r()).subscribe(f)})};
Ts=function(r,f,I){if(Zz(I)){var C=I;I=void 0}if(C)return Ts(r,f,I).pipe(B2E(C));C=_.E(Zz(r.addEventListener)&&Zz(r.removeEventListener)?E1E.map(function(S){return function(h){return r[S](f,h,I)}}):Zz(r.addListener)&&Zz(r.removeListener)?SRw.map(x3B(r,f)):Zz(r.on)&&Zz(r.off)?hnK.map(x3B(r,f)):[]);
var Y=C.next().value,V=C.next().value;return!Y&&RLw(r)?PG(function(S){return Ts(S,f,I)})(b_(r)):new rO(function(S){if(!Y)throw new TypeError("ka");
var h=function(){var w=_.XE.apply(0,arguments);return S.next(1<w.length?w:w[0])};
Y(h);return function(){return V(h)}})};
x3B=function(r,f){return function(I){return function(C){return r[I](f,C)}}};
WG=function(){var r=_.XE.apply(0,arguments),f=pi(r);var I=typeof r[r.length-1]==="number"?r.pop():Infinity;return r.length?r.length===1?Ci(r[0]):lzB(I)(b_(r,f)):cG};
bKu=function(r){return r.length===1&&wLK(r[0])?r[0]:r};
pLE=function(){var r=bKu(_.XE.apply(0,arguments));return zs(function(f,I){var C=[f].concat(_.Na(r)),Y=function(){if(!I.closed)if(C.length>0){try{var V=Ci(C.shift())}catch(h){Y();return}var S=new Ma(I,void 0,BL,BL);I.add(V.subscribe(S));S.add(Y)}else I.complete()};
Y()})};
Li=function(r){return zs(function(f,I){var C=0;f.subscribe(new Ma(I,function(Y){return r.call(void 0,Y,C++)&&I.next(Y)}))})};
d3E=function(){var r=_.XE.apply(0,arguments);r=bKu(r);return r.length===1?Ci(r[0]):new rO(n1u(r))};
n1u=function(r){return function(f){for(var I=[],C={i$jscomp$263:0};I&&!f.closed&&C.i$jscomp$263<r.length;C={i$jscomp$263:C.i$jscomp$263},C.i$jscomp$263++)I.push(Ci(r[C.i$jscomp$263]).subscribe(new Ma(f,function(Y){return function(V){if(I){for(var S=0;S<I.length;S++)S!==Y.i$jscomp$263&&I[S].unsubscribe();I=null}f.next(V)}}(C))))}};
znw=function(){var r=_.XE.apply(0,arguments),f=AgR(r),I=bKu(r);return I.length?new rO(function(C){var Y=I.map(function(){return[]}),V=I.map(function(){return!1});
C.add(function(){Y=V=null});
for(var S={sourceIndex$jscomp$1:0};!C.closed&&S.sourceIndex$jscomp$1<I.length;S={sourceIndex$jscomp$1:S.sourceIndex$jscomp$1},S.sourceIndex$jscomp$1++)Ci(I[S.sourceIndex$jscomp$1]).subscribe(new Ma(C,function(h){return function(w){Y[h.sourceIndex$jscomp$1].push(w);Y.every(function(n){return n.length})&&(w=Y.map(function(n){return n.shift()}),C.next(f?f.apply(null,_.Na(w)):w),Y.some(function(n,d){return!n.length&&V[d]})&&C.complete())}}(S),void 0,function(h){return function(){V[h.sourceIndex$jscomp$1]=
!0;
!Y[h.sourceIndex$jscomp$1].length&&C.complete()}}(S)));
return function(){Y=V=null}}):cG};
MFU=function(r){var f,I,C;return!!r&&typeof r.active==="boolean"&&typeof((f=r.clock)==null?void 0:f.now)==="function"&&((I=r.clock)==null?void 0:I.timeline)!==void 0&&!((C=r.lastMeasurement)==null||!C.timestamp)&&typeof r.equivalentTo==="function"&&typeof r.extrapolateToNow==="function"&&typeof r.extrapolateToTime==="function"&&typeof r.map==="function"&&typeof r.joinWith==="function"};
g1d=function(r){function f(I){return typeof I==="boolean"||typeof I==="string"||typeof I==="number"||I===void 0||I===null}
return f(r)?!0:Array.isArray(r)?r.every(f):typeof r==="object"?Object.keys(r).every(function(I){return typeof I==="string"})&&Object.values(r).every(function(I){return Array.isArray(I)?I.every(f):f(I)}):!1};
azR=function(r){if(g1d(r))return r;if(MFU(r))return{lastMeasurement:{value:azR(r.lastMeasurement.value),timestamp:m_(r.lastMeasurement.timestamp,new eP(0,r.lastMeasurement.timestamp.timeline))},active:r.active};try{return JSON.parse(JSON.stringify(r))}catch(f){}return String(r)};
Ja=function(r,f){return function(I){return new rO(function(C){return I.subscribe(function(Y){r.timeExecution(f,function(){C.next(Y)})()},function(Y){r.timeExecution(f,function(){C.error(Y)})()},function(){r.timeExecution(f,function(){C.complete()})()})})}};
XLK=function(r,f){var I=!1;return new rO(function(C){var Y=r.setTimeout(function(){I=!0;C.next(!0);C.complete()},f);
return function(){I||r.clearTimeout(Y)}})};
Nnm=function(r){r=r.global;if(r.fetchLater)return r.fetchLater.bind(r)};
jP=function(r){return zs(function(f,I){var C=null,Y=!1,V;C=f.subscribe(new Ma(I,void 0,function(S){V=Ci(r(S,jP(r)(f)));C?(C.unsubscribe(),C=null,V.subscribe(I)):Y=!0}));
Y&&(C.unsubscribe(),C=null,V.subscribe(I))})};
$3U=function(r,f,I){return function(C,Y){var V=I,S=f,h=0;C.subscribe(new Ma(Y,function(w){var n=h++;S=V?r(S,w,n):(V=!0,w);Y.next(S)},void 0,void 0))}};
FXq=function(r){r=r===void 0?null:r;return zs(function(f,I){var C=!1;f.subscribe(new Ma(I,function(Y){C=!0;I.next(Y)},void 0,function(){C||I.next(r);
I.complete()}))})};
HG=function(){return zs(function(r,f){r.subscribe(new Ma(f,BL))})};
i_=function(r){return zs(function(f,I){f.subscribe(new Ma(I,function(){return I.next(r)}))})};
Rk=function(r){return r<=0?function(){return cG}:zs(function(f,I){var C=0;
f.subscribe(new Ma(I,function(Y){++C<=r&&(I.next(Y),r<=C&&I.complete())}))})};
vG=function(r){var f=f===void 0?uM:f;var I;r=(I=r)!=null?I:PME;return zs(function(C,Y){var V,S=!0;C.subscribe(new Ma(Y,function(h){var w=f(h);if(S||!r(V,w))S=!1,V=w,Y.next(h)}))})};
PME=function(r,f){return r===f};
Tnc=function(r){r=r===void 0?tFU:r;return zs(function(f,I){var C=!1;f.subscribe(new Ma(I,function(Y){C=!0;I.next(Y)},void 0,function(){return C?I.complete():I.error(r())}))})};
tFU=function(){return new c6u};
Ki=function(){var r=_.XE.apply(0,arguments);return function(f){return VFK(f,ni.apply(null,_.Na(r)))}};
WX$=function(r){return zs(function(f,I){var C=0;f.subscribe(new Ma(I,function(Y){r.call(void 0,Y,C++,f)||(I.next(!1),I.complete())},void 0,function(){I.next(!0);
I.complete()}))})};
LXR=function(){return zs(function(r,f){var I=[];r.subscribe(new Ma(f,function(C){I.push(C);1<I.length&&I.shift()},void 0,function(){for(var C=_.E(I),Y=C.next();!Y.done;Y=C.next())f.next(Y.value);
f.complete()},function(){I=null}))})};
m3P=function(r,f){var I=arguments.length>=2;return function(C){return C.pipe(r?Li(function(Y,V){return r(Y,V,C)}):uM,LXR(),I?FXq(f):Tnc(function(){return new c6u}))}};
Ug=function(r){var f=Zz(r)?r:function(){return r};
return Zz()?zs(function(I,C){var Y=f();(void 0)(Y).subscribe(C).add(I.subscribe(Y))}):function(I){var C=new yY(I,f);
Zz(I==null?void 0:I.lift)&&(C.lift=I.lift);C.source=I;C.subjectFactory=f;return C}};
Og=function(r){var f=new sg(r,void 0,void 0);return function(I){return Ug(function(){return f})(I)}};
ok=function(r,f){return zs($3U(r,f,arguments.length>=2))};
QY=function(){var r=_.XE.apply(0,arguments),f=pi(r);return zs(function(I,C){(f?VFK(r,I,f):VFK(r,I)).subscribe(C)})};
Aa=function(r){return zs(function(f,I){var C=null,Y=0,V=!1;f.subscribe(new Ma(I,function(S){var h;(h=C)==null||h.unsubscribe();h=Y++;Ci(r(S,h)).subscribe(C=new Ma(I,function(w){return I.next(w)},void 0,function(){C=null;
V&&!C&&I.complete()}))},void 0,function(){(V=!0,!C)&&I.complete()}))})};
Zj=function(r,f){f=f===void 0?!1:f;return zs(function(I,C){var Y=0;I.subscribe(new Ma(C,function(V){var S=r(V,Y++);(S||f)&&C.next(V);!S&&C.complete()}))})};
kV=function(r,f,I){var C=Zz(r)||f||I?{next:r,error:f,complete:I}:r;return C?zs(function(Y,V){Y.subscribe(new Ma(V,function(S){var h;(h=C.next)==null||h.call(C,S);V.next(S)},function(S){var h;
(h=C.error)==null||h.call(C,S);V.error(S)},function(){var S;
(S=C.complete)==null||S.call(C);V.complete()}))}):uM};
enm=function(){var r=_.XE.apply(0,arguments),f=AgR(r);return zs(function(I,C){for(var Y=r.length,V=Array(Y),S=r.map(function(){return!1}),h=!1,w={i$jscomp$273:0};w.i$jscomp$273<Y;w={i$jscomp$273:w.i$jscomp$273},w.i$jscomp$273++)Ci(r[w.i$jscomp$273]).subscribe(new Ma(C,function(n){return function(d){V[n.i$jscomp$273]=d;
h||S[n.i$jscomp$273]||(S[n.i$jscomp$273]=!0,(h=S.every(uM))&&(S=null))}}(w),void 0,BL));
I.subscribe(new Ma(C,function(n){h&&(n=[n].concat(_.Na(V)),C.next(f?f.apply(null,_.Na(n)):n))}))})};
J6R=function(r){var f=[],I=0,C;for(C in r)f[I++]=C;return f};
jwE=function(r,f){for(var I in r)if(r[I]==f)return!0;return!1};
HKm=function(r,f,I){for(var C in r)if(f.call(I,r[C],C,r))return C};
iKK=function(r){if(!r||typeof r!=="object")return r;if(typeof r.clone==="function")return r.clone();if(typeof Map!=="undefined"&&r instanceof Map)return new Map(r);if(typeof Set!=="undefined"&&r instanceof Set)return new Set(r);if(r instanceof Date)return new Date(r.getTime());var f=Array.isArray(r)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(r)||r instanceof DataView?{}:new r.constructor(r.length),I;for(I in r)f[I]=iKK(r[I]);return f};
Rnm=function(r){var f=arguments.length;if(f==1&&Array.isArray(arguments[0]))return Rnm.apply(null,arguments[0]);if(f%2)throw Error("oa");for(var I={},C=0;C<f;C+=2)I[arguments[C]]=arguments[C+1];return I};
v1K=function(r){var f=arguments.length;if(f==1&&Array.isArray(arguments[0]))return v1K.apply(null,arguments[0]);for(var I={},C=0;C<f;C++)I[arguments[C]]=!0;return I};
_.BG=function(r){return new N2K(r[0].toLowerCase())};
KXu=function(r){try{return new URL(r,window.document.baseURI)}catch(f){return new URL("about:invalid")}};
y6u=function(r,f){var I=f.createRange();I.selectNode(f.body);r=cL(r);return I.createContextualFragment(WL(r))};
U3w=function(r){r=r.nodeName;return typeof r==="string"?r:"FORM"};
swc=function(r){r=r.nodeType;return r===1||typeof r!=="number"};
qa=function(r,f,I){r.setAttribute(f,I)};
OKw=function(r){return r.parts.map(function(f){var I=f.descriptor;return""+f.url+(I?" "+I:"")}).join(" , ")};
_.u_=function(r){var f=_.XE.apply(1,arguments);if(f.length===0)return _.SF(r[0]);for(var I=r[0],C=0;C<f.length;C++)I+=encodeURIComponent(f[C])+r[C+1];return _.SF(I)};
_.Dj=function(r,f){r=_.x1(r).toString();var I=r.split(/[?#]/),C=/[?]/.test(r)?"?"+I[1]:"";return o1E(I[0],C,/[#]/.test(r)?"#"+(C?I[2]:I[1]):"",f)};
o1E=function(r,f,I,C){function Y(S,h){S!=null&&(Array.isArray(S)?S.forEach(function(w){return Y(w,h)}):(f+=V+encodeURIComponent(h)+"="+encodeURIComponent(S),V="&"))}
var V=f.length?"&":"?";C.constructor===Object&&(C=Object.entries(C));Array.isArray(C)?C.forEach(function(S){return Y(S[1],S[0])}):C.forEach(Y);
return _.SF(r+f+I)};
r5=function(r,f,I,C){this.top=r;this.right=f;this.bottom=I;this.left=C};
Qwc=function(r){r=r.global;if(r.PendingGetBeacon)return r.PendingGetBeacon};
Ic=function(r){return function(f){return f.pipe(A6E(r,Ug(new fo)))}};
Co=function(r){return function(f){return f.pipe(A6E(r,Og(1)))}};
A6E=function(r,f){function I(C){return new rO(function(Y){return C.subscribe(function(V){YX(r,function(){return void Y.next(V)},3)},function(V){YX(r,function(){return void Y.error(V)},3)},function(){YX(r,function(){return void Y.complete()},3)})})}
return Dz(I,Gyw(),f,gO(),I)};
kCU=function(r){var f=ZKu(r);return f===null?new l3(null):f.pipe(XJ(function(I){I=I.serialize();if(GCq)I=_.Yq.btoa(I);else{for(var C=[],Y=0,V=0;V<I.length;V++){var S=I.charCodeAt(V);S>255&&(C[Y++]=S&255,S>>=8);C[Y++]=S}I=_.Dp(C)}return I}),Rk(1),Co(r.queue))};
Bnq=function(r){var f=f===void 0?{}:f;if(typeof Event==="function")return new Event(r,f);if(typeof document!=="undefined"){var I=document.createEvent("CustomEvent");I.initCustomEvent(r,f.bubbles||!1,f.cancelable||!1,f.detail);return I}throw Error();};
qRR=function(r){return typeof r==="string"?document.getElementById(r):r};
D3d=function(r){var f=!1;f=f===void 0?!1:f;if(r.tagName==="IMG"){if(r.complete&&(!r.naturalWidth||!r.naturalHeight))return!0;var I;if(f&&((I=r.style)==null?void 0:I.display)==="none")return!0}var C,Y;return uEP.test((C=r.getAttribute("width"))!=null?C:"")&&uEP.test((Y=r.getAttribute("height"))!=null?Y:"")};
raK=function(r,f){if(r.tagName==="IMG")return r.naturalWidth&&r.naturalHeight?!0:!1;try{if(r.readyState)var I=r.readyState;else{var C,Y;I=(C=r.contentWindow)==null?void 0:(Y=C.document)==null?void 0:Y.readyState}return I==="complete"}catch(V){return f===void 0?!1:f}};
fj$=function(r){r||(r=function(f,I,C){f.addEventListener(I,C)});
return r};
lj$=function(r,f){var I=Ijm();I=I===void 0?new C_d:I;if(r=qRR(r)){var C=fj$(C);for(var Y=!1,V=function(m){Y||(Y=!0,f(m))},S,h=2,w=0;w<YgE.length;++w)if(YgE[w]===r.tagName){h=3;
S=[r];break}S||(S=r.querySelectorAll(YgE.join(",")));var n=0,d=0,z=!0,g=r=!1;w={};for(var X=0;X<S.length;w={isImg:void 0},X++){var P=S[X];if(!D3d(P))if(w.isImg=P.tagName==="IMG",raK(P,I.crossDomainLoadedDefault))r=!0,w.isImg&&(z=!0);else{n++;var W=function(m){return function(v){n--;!n&&z&&V(h);m.isImg&&(v=v&&v.type==="error",d--,v||(z=!0),!d&&g&&z&&V(h))}}(w);
C(P,"load",W);w.isImg&&(d++,C(P,"error",W))}}d===0&&(z=!0);S=null;S=_.Yq.document.readyState==="complete";if(n===0&&!r&&S)h=5;else if(n||!r){C(_.Yq,"load",function(){!I.pendingImagesBlockLoad||!d&&z?V(4):g=!0});
return}V(h)}};
VPK=function(r,f,I){if(r)for(var C=0;r!=null&&C<500&&!I(r);++C)r=f(r)};
EVB=function(r,f){VPK(r,function(I){try{return I===I.parent?null:I.parent}catch(C){}return null},f)};
Sgq=function(r,f){if(r.tagName=="IFRAME")f(r);else{r=r.querySelectorAll("IFRAME");for(var I=0;I<r.length&&!f(r[I]);++I);}};
xam=function(r){return(r=r.ownerDocument)&&(r.parentWindow||r.defaultView)||null};
hUc=function(r,f,I){try{var C=JSON.parse(I.data)}catch(S){}if(typeof C==="object"&&C&&C.type==="creativeLoad"){var Y=xam(r);if(I.source&&Y){var V;EVB(I.source,function(S){try{if(S.parent===Y)return V=S,!0}catch(h){}});
V&&Sgq(r,function(S){if(S.contentWindow===V)return f(C),!0})}}};
wGd=function(r){return typeof r==="string"?document.getElementById(r):r};
daw=function(){var r={};return r[0]=_.u_(biK,"current"),r[1]=_.u_(pGd),r[2]=_.u_(nVR),r};
Vv=function(r,f){return r.left===f.left&&r.top===f.top&&r.width===f.width&&r.height===f.height};
zU$=function(r,f){return{left:Math.max(r.left,f.left),top:Math.max(r.top,f.top),width:Math.max(0,Math.min(r.left+r.width,f.left+f.width)-Math.max(r.left,f.left)),height:Math.max(0,Math.min(r.top+r.height,f.top+f.height)-Math.max(r.top,f.top))}};
MPP=function(r,f){return{left:Math.round(r.left+f.x),top:Math.round(r.top+f.y),width:r.width,height:r.height}};
gV$=function(r,f,I){if(r&&f!==null&&f!=f.top){if(!f.top)return new _.EZ(-12245933,-12245933);f=f.top}try{return(I===void 0?0:I)?(new _.EZ(f.innerWidth,f.innerHeight)).round():_.Sj(f).round()}catch(C){return new _.EZ(-12245933,-12245933)}};
ajl=function(r,f,I){try{if(r){if(!f.top)return new r5(-12245933,-12245933,-12245933,-12245933);f=f.top}var C=gV$(r,f,I),Y=C.height,V=C.width;if(V===-12245933)return new r5(V,V,V,V);var S=xX(ho(f.document)),h=S.x,w=S.y;return new r5(w,h+V,w+Y,h)}catch(n){return new r5(-12245933,-12245933,-12245933,-12245933)}};
XGK=function(r){var f;return(f=r.google_tag_data)!=null?f:r.google_tag_data={}};
NOq=function(r){var f,I;return typeof((f=r.navigator)==null?void 0:(I=f.userAgentData)==null?void 0:I.getHighEntropyValues)==="function"};
F_K=function(r){if(!NOq(r))return null;var f=XGK(r);if(f.uach_promise)return f.uach_promise;r=r.navigator.userAgentData.getHighEntropyValues($aR).then(function(I){f.uach!=null||(f.uach=I);return I});
return f.uach_promise=r};
iiU=function(r){var f;return P_m(tPK(TOP(caw(W_R(L_c(maK(eUK(Jam(new jk$,r.architecture||""),r.bitness||""),r.mobile||!1),r.model||""),r.platform||""),r.platformVersion||""),r.uaFullVersion||""),((f=r.fullVersionList)==null?void 0:f.map(function(I){var C=new HiP;C=_.w5(C,1,I.brand);return _.w5(C,2,I.version)}))||[]),r.wow64||!1)};
RUm=function(r){var f,I;return(I=(f=F_K(r))==null?void 0:f.then(function(C){return iiU(C)}))!=null?I:null};
vVq=function(r,f){return new rO(function(I){var C=!1,Y=Array(f.length);Y.fill(void 0);var V=new Set,S=new Set,h=function(z,g){r.running?(Y[g]=z,V.add(g),C||(C=!0,YX(r,function(){C=!1;I.next(_.f8(Y))},1))):I.error(new b3(g))},w=function(z,g){S.add(g);
V.add(g);YX(r,function(){I.error(z)},1)},n=function(z){S.add(z);
YX(r,function(){S.size===f.length&&I.complete()},1)},d=f.map(function(z,g){return z.subscribe(function(X){return void h(X,g)},function(X){return void w(X,g)},function(){return void n(g)})});
return function(){d.forEach(function(z){return void z.unsubscribe()})}})};
yaE=function(r,f,I){function C(){if(f.debugChannel){var m=f.debugChannel,v=m.next;var O={creativeId:f.debugNames.getName(I),requiredSignals:Y,signals:Object.assign({},V),hasPrematurelyCompleted:S,errorMessage:h,erroredSignalKey:w};O={specMajor:2,specMinor:0,specPatch:0,timestamp:m_(f.timeProvider.now(),new eP(0,f.timeProvider.timeline)),instanceId:f.debugNames.getName(f.symbol),creativeState:O};v.call(m,O)}}
for(var Y=Object.keys(r),V={},S=!1,h=null,w=null,n={},d=new Set,z=[],g=[],X=_.E(Y),P=X.next(),W={};!P.done;W={key$jscomp$374:void 0},P=X.next())W.key$jscomp$374=P.value,P=r[W.key$jscomp$374],P instanceof l3?(n[W.key$jscomp$374]=P.value,d.add(W.key$jscomp$374),f.debugChannel&&(V[String(W.key$jscomp$374)]=azR(P.value))):(P=P.pipe(vG(function(m,v){return MFU(m)||MFU(v)?!1:m===v}),XJ(function(m){return function(v){f.debugChannel&&(V[String(m.key$jscomp$374)]=azR(v),C());
var O={};return O[m.key$jscomp$374]=v,O}}(W)),jP(function(m){return function(v){if(v instanceof b3)throw new K_q(String(m.key$jscomp$374));
throw v;}}(W)),kV(function(m){return function(){d.add(m.key$jscomp$374)}}(W),function(m){return function(v){w=String(m.key$jscomp$374);
h=String(v);C()}}(W),function(m){return function(){d.has(m.key$jscomp$374)||(S=!0,C())}}(W))),g.push(W.key$jscomp$374),z.push(P));
(r=Object.keys(V).length>0)&&C();X=vVq(f.queue,z).pipe(jP(function(m){if(m instanceof b3)throw new po(String(g[m.inputObservableIndex]));throw m;}),XJ(function(m){return Object.freeze(Object.assign.apply(Object,[{},
n].concat(_.Na(m))))}));
return(z=z.length>0)&&r?WG(ni(Object.freeze(n)),X):z?X:ni(Object.freeze(n))};
Ua$=function(r,f,I,C,Y){return r.performanceMonitor.timeExecution.bind(r.performanceMonitor)(733,function(){var V={};try{return f.pipe(jP(function(S){C(Object.assign({},V,{error:S}));return cG}),PG(function(S){try{var h=I(r,S)}catch(n){return C(Object.assign({},V,{error:n instanceof Error?n:String(n)})),cG}var w={};
return yaE(h,r,S.symbol).pipe(kV(function(n){w=n}),Og(1),gO()).pipe(Y,jP(function(n){C(Object.assign({},w,{error:n}));
return cG}),Ki(void 0),XJ(function(){return!0}))})).pipe(ok(function(S){return S+1},0),jP(function(S){C(Object.assign({},V,{error:S}));
return cG}))}catch(S){return C(Object.assign({},V,{error:S})),cG}})()};
no=function(r){var f=new Map;if(typeof r!=="object"||r===null)return f;Object.values(r).forEach(function(I){I&&typeof I.extrapolateToNow==="function"&&(f.has(I.clock.timeline)||f.set(I.clock.timeline,I.clock.now()))});
return f};
skP=function(r,f){return typeof r==="string"?encodeURIComponent(r):typeof r==="number"?String(r):Array.isArray(r)?r.map(function(I){return skP(I,f)}).join(","):r instanceof eP?r.toString():r&&typeof r.extrapolateToNow==="function"?skP(r.extrapolateUsingTimestampMap(f).value,f):r===!0?"1":r===!1?"0":r===void 0||r===null?null:r instanceof OiU?oVq(r):[r.top,
r.left,r.top+r.height,r.left+r.width].join()};
zZ=function(r,f){r=Object.entries(r).map(function(I){var C=_.E(I);I=C.next().value;C=C.next().value;C=skP(C,f);return C===null?"":I+"="+C}).filter(function(I){return I!==""});
return r.length?r.join("&"):""};
ZiU=function(r,f){var I=QkB,C=Aaq;f=f===void 0?.01:f;return function(Y){f>0&&Math.random()<=f&&(r.global.HTMLFencedFrameElement&&r.global.fence&&typeof r.global.fence.reportEvent==="function"&&r.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),Y=Object.assign({},Y,{errorMessage:Y.error instanceof Error&&Y.error.message?Y.error.message:String(Y.error),errorStack:Y.error instanceof Error&&Y.error.stack?String(Y.error.stack):null,errorName:Y.error instanceof
Error&&Y.error.name?String(Y.error.name):null,errorContext:String(r.performanceMonitor.timedFunctionContext),errorEscapedQueryId:Y.escapedQueryId}),I(Object.assign({},Y,{payloadMapper:function(){return function(V){try{return C(Object.assign({},V))}catch(S){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),no(Y)).forEach(function(V){r.beaconFactory.makeBeacon(V).sendNow()}))}};
GsK=function(){var r=_.XE.apply(0,arguments);return function(f){var I=f.pipe(Og(1),gO());f=r.map(function(C){return I.pipe(C,Ki(!0))});
return $V(f).pipe(Rk(1),HG())}};
ksc=function(){var r=_.XE.apply(0,arguments);return function(f){var I=f.pipe(Og(1),gO());f=r.map(function(C){return I.pipe(C,Ki(!0))});
return WG.apply(null,_.Na(f)).pipe(Rk(1),HG())}};
BOR=function(r,f){return function(I){var C=I.pipe(Og(1),gO());I=C.pipe(r,Ki(!0));C=C.pipe(Dz(f,Og(),gO()),Ki(!0));I=$V([I,C]);return d3E(I,C).pipe(Rk(1),HG())}};
qgP=function(r,f,I){I(!0)};
uJR=function(r,f){return Dz(Aa(function(I){var C=r(I),Y=f(I),V={};return C&&Y&&V?new rO(function(S){Y(C,V,function(h){S.next(Object.assign({},I,{canEmit:h}));S.complete()});
return function(){}}):MS}),Li(function(I){return I.canEmit}))};
DaR=function(r){var f={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(I){return I.pipe(Aa(function(C){return new rO(function(Y){function V(){h.disconnect();w.unsubscribe()}
var S=r.MutationObserver;if(S&&C.ref!==void 0){var h=new S(function(n){Y.next(n)});
h.observe(C.ref,f);var w=C.JSC$7259_released.subscribe(V);return V}})}))}};
roR=function(r){if(r.measurementDeferralState===3)return null;if(r.timeOnScreenReason!==void 0){var f=r.creativeFound===!1?"n":null;if(f!==null)return f}return r.geometricMeasurementErrors instanceof g5?"msf":r.contextValidationErrors instanceof ac?"c":r.contextVisibilityKnown===!1?"pv":r.geometricMeasurementErrors||r.contextValidationErrors?"x":null};
NS=function(r,f){return r.replace(f8R,function(I,C){try{var Y=_.X0.get(f,C);if(Y==null||Y.toString()==null)return I;Y=Y.toString();if(Y==""||!_.bU(Y==null?"":String(Y)))return encodeURIComponent(Y).replace(/%2C/g,",")}catch(V){}return I})};
I8E=function(r,f){var I=Object.assign({},r),C=r.userAgentClientHints;I=(delete I.userAgentClientHints,I);I=r.payloadMapper(I);var Y=zZ(I,f);return _.$X(r.urlPrefixes,function(V){var S="";typeof C==="string"&&(S="&"+zZ({uach:C},f));var h={};return NS(V,(h.VIEWABILITY=Y,h))+S})};
QkB=function(r,f){var I=r.payloadMapper(r),C=zZ(I,f);return C?_.$X(r.urlPrefixes,function(Y){Y=Y.indexOf("?")>=0?Y:Y+"?";Y="?&".indexOf(Y.slice(-1))>=0?Y:Y+"&";return Y+C}):r.urlPrefixes};
C3R=function(){return Dz(Li(function(r){return r!==void 0}),XJ(function(r){return r}))};
YZd=function(r){return Dz(XJ(function(){return!0}),QY(!1),Co(r))};
l8w=function(r){return r.length<=0?cG:$V(r.map(function(f){var I=0;return f.pipe(XJ(function(C){return{index:I++,value:C}}))})).pipe(Li(function(f){return f.every(function(I){return I.index===f[0].index})}),XJ(function(f){return f.map(function(I){return I.value})}))};
Vjw=function(r,f){r.currentState&&(r.previousState=r.currentState);r.currentState=f;r.previousState&&r.previousState.value?(f=Math.max(0,m_(f.timestamp,r.previousState.timestamp)),r.totalTime+=f,r.consecutiveTime+=f):r.consecutiveTime=0;return r};
EX$=function(){return Dz(ok(Vjw,{totalTime:0,consecutiveTime:0}),XJ(function(r){return r.totalTime}))};
SZP=function(){return Dz(ok(Vjw,{totalTime:0,consecutiveTime:0}),XJ(function(r){return r.consecutiveTime}))};
xSK=function(r,f){return function(I){return l8w(f.map(function(C){return I.pipe(r(C))}))}};
h4E=function(){var r;return Dz(kV(function(f){return void(r=f.timestamp)}),SZP(),XJ(function(f){return{timestamp:r,
value:Math.round(f)}}))};
wkw=function(r,f){return Vv(r.topWindowViewportExternalGeometry,f.topWindowViewportExternalGeometry)&&Vv(r.elementGeometry,f.elementGeometry)&&Vv(r.exposedViewportLocalGeometry,f.exposedViewportLocalGeometry)&&Vv(r.intersectionGeometry,f.intersectionGeometry)&&r.elementGeometrySourceName===f.elementGeometrySourceName&&r.measurementRequests===f.measurementRequests&&r.viewportGeometrySourceName===f.viewportGeometrySourceName&&r.viewportLocalAppOffset.x===f.viewportLocalAppOffset.x&&r.viewportLocalAppOffset.y===
f.viewportLocalAppOffset.y};
nXR=function(r,f){return function(I){return function(C){var Y=C.pipe(Ug(new fo),gO());C=I.element.pipe(vG());Y=Y.pipe(XJ(function(V){return V.value}));
return $V([C,Y,f]).pipe(XJ(function(V){var S=_.E(V);V=S.next().value;var h=S.next().value;S=S.next().value;if(V.ref===void 0)var w={top:0,left:0,width:0,height:0};else{w=V.ref.getBoundingClientRect();var n=V.ref,d=r.global,z=new _.F0(0,0),g=Pk(_.TZ(n));if(ck(g,"parent")){do{if(g==d)var X=_.Wk(n);else X=bo$(n),X=new _.F0(X.left,X.top);z.x+=X.x;z.y+=X.y}while(g&&g!=d&&g!=g.parent&&(n=g.frameElement)&&(g=g.parent))}w={top:z.y,left:z.x,width:w.width,height:w.height}}w=MPP(w,h.viewportLocalAppOffset);
d=zU$(w,h.exposedViewportLocalGeometry);z=r.timeProvider.now();g=Object;n=g.assign;if(S!==2||r.inCrossDomainIframe||d.width<=0||d.height<=0)var P=!1;else try{var W=r.document.elementFromPoint(d.left+d.width/2,d.top+d.height/2);P=W?!pk$(W,V):!1}catch(m){P=!1}return{timestamp:z,value:n.call(g,{},h,{elementGeometrySourceName:"geo",intersectionGeometry:P?Lo.intersectionGeometry:d,elementGeometry:w})}}),Ic(r.queue))}}};
pk$=function(r,f,I){I=I===void 0?0:I;return r.ref===void 0||f.ref===void 0?!1:r.ref===f.ref||_.mI(f.ref,function(C){return C===r.ref})?!0:f.ref.ownerDocument&&f.ref.ownerDocument.defaultView&&f.ref.ownerDocument.defaultView===f.ref.ownerDocument.defaultView.top?!1:I<10&&f.ref.ownerDocument&&f.ref.ownerDocument.defaultView&&f.ref.ownerDocument.defaultView.frameElement?pk$(r,new ej(f.ref.ownerDocument.defaultView.frameElement),I+1):!0};
Mju=function(r){return function(f){return f.pipe(r.ResizeObserver?dSw(r):z4P(r),Og(1),gO())}};
dSw=function(r){return function(f){return f.pipe(Aa(function(I){var C=r.ResizeObserver;if(!C||I.ref===void 0)return ni(Lo.elementGeometry);var Y=(new rO(function(V){function S(){I.ref!==void 0&&h.unobserve(I.ref);h.disconnect();w.unsubscribe()}
if(I.ref===void 0)return V.complete(),function(){};
var h=new C(function(n){n.forEach(function(d){V.next(d)})});
h.observe(I.ref);var w=I.JSC$7259_released.subscribe(S);return S})).pipe(Ja(r.performanceMonitor,736),XJ(function(V){return V.contentRect}));
return WG(ni(I.ref.getBoundingClientRect()),Y)}),vG(Vv))}};
z4P=function(r){return function(f){var I=f.pipe(DaR(r)),C=r.onResize;I=WG(f.pipe(XJ(function(){return Bnq("resize")})),I,C);
return $V(f,I).pipe(Ja(r.performanceMonitor,737),XJ(function(Y){Y=_.E(Y).next().value;return Y.ref===void 0?void 0:Y.ref.getBoundingClientRect()}),C3R(),vG(Vv))}};
XkB=function(r,f){var I=gXK(r,f).pipe(Og(1),gO());return function(C){return function(Y){Y=Y.pipe(Aa(function(V){return V.element}),vG());
return $V([I,Y]).pipe(Aa(function(V){var S=_.E(V);V=S.next().value;S=S.next().value;return a8q(r,V.intersectionObserver,Mju(r),V.observations,C,V.flushRecords,S)}),Ic(r.queue))}}};
N5R=function(r){return XJ(function(f){return f.value.viewportGeometrySourceName!=="nio"?f:Object.assign({},f,{value:Object.assign({},f.value,{exposedViewportLocalGeometry:Jo(r,!0),topWindowViewportExternalGeometry:Jo(r,!0)})})})};
$SR=function(r,f){return ni(f).pipe(r,XJ(function(){return f}))};
gXK=function(r,f){return r.timeProvider.timeline!==FId?dO(new g5(2)):r.MutationObserver?typeof IntersectionObserver==="undefined"?dO(new g5(0)):(new rO(function(I){var C=new fo,Y=new jj(C.next.bind(C),{threshold:[].concat(_.Na(f))});I.next({observations:C.pipe(Ja(r.performanceMonitor,735)),intersectionObserver:Y,flushRecords:function(V){V=Y.takeRecords(V);V.length>0&&C.next(V)}})})).pipe(Rk(1),Og(1),gO()):dO(new g5(1))};
P3d=function(r){return vHB(r.sort(function(f,I){return f.time-I.time}),Zj$)};
a8q=function(r,f,I,C,Y,V,S){return new rO(function(h){function w(){P||(P=!0,S.ref!==void 0&&f.unobserve(Y,S.ref),d.unsubscribe(),X.unsubscribe(),g.unsubscribe(),W.unsubscribe())}
if(S.ref!==void 0){tjK(f,Y);f.observe(Y,S.ref);var n=new Hk({timestamp:r.timeProvider.now(),value:Object.assign({},Lo,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),d=C.pipe(PG(function(m){return P3d(m)}),Li(function(m){return m.target===S.ref}),XJ(function(m){return{timestamp:new eP(m.time,FId),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:m.rootBounds||i3,topWindowViewportExternalGeometry:m.rootBounds||Jo(r,!0),measurementRequests:z,elementGeometrySourceName:"nio",intersectionGeometry:m.intersectionRect,elementGeometry:m.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:m.isIntersecting,isV2Visible:m.isVisible}}}),Ug(n),gO()).subscribe(h),z=new fo,g=z.subscribe(function(){V(Y);
h.next({timestamp:r.timeProvider.now(),value:n.value.value});S.ref!==void 0&&(f.unobserve(Y,S.ref),f.observe(Y,S.ref))}),X=$SR(I,S).subscribe(function(){z.next()}),P=!1,W=S.JSC$7259_released.subscribe(function(){return w()});
return w}})};
T5E=function(r,f){var I=r.getOnBackgrounded().pipe(XJ(function(){return"b"}));
return d3E(f,I).pipe(Rk(1),Co(r.queue))};
vk=function(r){return function(f){var I;return f.pipe(kV(function(C){return void(I=C.timestamp)}),XJ(function(C){return C.value}),r,XJ(function(C){return{timestamp:I,
value:C}}))}};
cou=function(r){return r.intersectionGeometry.width*r.intersectionGeometry.height/(r.elementGeometry.width*r.elementGeometry.height)};
Ko=function(r,f,I){I=I===void 0?function(C,Y){return C===Y}:I;
return r.timestamp.equals(f.timestamp)&&I(r.value,f.value)};
UZ=function(r,f){return f.pipe(XJ(function(I){return new yv(r.timeProvider,{timestamp:r.timeProvider.now(),value:I})}))};
WIl=function(r){return function(f){return f.pipe(enm(r),XJ(function(I){var C=_.E(I);I=C.next().value;C=C.next().value;var Y=I.value;return{timestamp:I.timestamp,value:Y>=1?!0:Y<=0?!1:Y>=C}}))}};
mSc=function(){return Dz(Li(function(r,f){return f>0}),LIR,QY(-1),vG())};
e4P=function(r,f,I){return r?$V([f,I]).pipe(Li(function(C){var Y=_.E(C);C=Y.next().value;Y=Y.next().value;return C.timestamp.equals(Y.timestamp)}),XJ(function(C){var Y=_.E(C);
C=Y.next().value;Y=Y.next().value;return C.value>Y.value?C:Y})):f};
HoK=function(r){return function(f){var I=f.pipe(Jod),C=f.pipe(jcm);return r instanceof rO?r.pipe(Aa(function(Y){return e4P(Y,I,C)})):e4P(r.value,I,C)}};
QcB=function(r,f,I,C){var Y=C.geometryIsOccluded,V=C.exposureThreshold,S=C.wasLargeAdAtRender,h=C.allowLargeAdThreshold,w=C.largeAdExposureThreshold,n=C.mayUseViewportShareExposure,d=C.hasMeasurementStarted;C=C.useIntersectionObserverV2;f=iol(r,I,f);I=R4c(r,I);C=vXE(f,C);var z=KId(r,Y,n,f),g=z.pipe(XJ(function(Cw){return Cw.value}),vG(),Co(r),ok(function(Cw,rR){return Math.max(Cw,rR)},0)),X=z.pipe(XJ(function(Cw){return Cw.value}),mSc(),Co(r)),P=f.pipe(yow,XJ(function(Cw){return Cw.value}),Rk(2),
vG(),Co(r));
S=US$(r,f,S,h);var W=S.pipe(QY(!1),vG(),XJ(function(Cw){return Cw?w:V}));
h=z.pipe(WIl(W),vG(),Co(r));var m=$V([h,f]).pipe(Li(function(Cw){var rR=_.E(Cw);Cw=rR.next().value;rR=rR.next().value;return Cw.timestamp.equals(rR.timestamp)}),XJ(function(Cw){var rR=_.E(Cw);
Cw=rR.next().value;rR=rR.next().value;return{visible:Cw.value,geometry:rR.value.elementGeometry}}),ok(function(Cw,rR){return!rR.visible&&Cw.visible?Cw:rR},{visible:!1,
geometry:i3}),XJ(function(Cw){return Cw.geometry}),QY(i3),Co(r),vG(Vv));
n=n instanceof rO?n.pipe(vG(),i_()):MS;W=$V([n,W]).pipe(i_());var v=f.pipe(Li(function(Cw){return Cw.value.viewportGeometrySourceName!=="ns"&&Cw.value.elementGeometrySourceName!=="ns"}),ok(function(Cw){return Cw+1},0),QY(0),Co(r)),O=I.pipe(i_(!0),QY(!1),Co(r));
O=$V([d,O]).pipe(XJ(function(Cw){var rR=_.E(Cw);Cw=rR.next().value;rR=rR.next().value;return Cw&&!rR}),Co(r));
var k=f.pipe(scE,vG()),Z=k.pipe(XJ(function(Cw){return Cw.value}),ok(function(Cw,rR){return Math.max(Cw,rR)},0),vG(),Co(r));
r=k.pipe(XJ(function(Cw){return Cw.value}),mSc(),Co(r));
return{shouldResetExposureSignals:n,shouldResetViewabilitySignals:W,geometrySignals:{readyGeometryWithDefault:f,measurementStrategy:f.pipe(OoR),creativePosition:m.pipe(vG(Vv)),visible:h.pipe(vG(Ko)),timestampedExposure:z.pipe(vG(Ko)),maximumExposure:g,minimumExposure:X,browserSize:f.pipe(oX$,vG(_.n8)),timestampedScreenShare:k,maxScreenShare:Z,minScreenShare:r,geometricMeasurementErrors:I,measurementRequests:f.pipe(XJ(function(Cw){return Cw.value.measurementRequests})),
isLargeAd:S,geometryIsOccluded:Y,hasMeasurementStarted:d,geometryMeasurable:O,validMeasurementCount:v,loadTimeExposure:P,v2VisibilityBitVector:C}}};
R4c=function(r,f){return f.pipe(Li(function(){return!1}),XJ(function(I){return I}),jP(function(I){return sZ(new l3(I),r)}))};
iol=function(r,f,I){return f.pipe(pLE(MS),Co(r)).pipe(vG(function(C,Y){return Ko(C,Y,wkw)}),QY({timestamp:I.now(),
value:Lo}),Co(r))};
KId=function(r,f,I,C){I=C.pipe(HoK(I),vk(XJ(function(Y){return Math.round(Y*100)/100})),Co(r));
return f instanceof l3?I:$V([I,f]).pipe(XJ(function(Y){var V=_.E(Y);Y=V.next().value;V=V.next().value;return{timestamp:V.timestamp.maximum(Y.timestamp),value:V.value?0:Y.value}}),vG(Ko),Co(r))};
US$=function(r,f,I,C){f=[f.pipe(XJ(function(Y){return Y.value.elementGeometry.width*Y.value.elementGeometry.height>=242500}))];
I instanceof rO&&f.push(I.pipe(XJ(function(Y){return!!Y})));
I=$V(f);return C?I.pipe(XJ(function(Y){return Y.some(function(V){return V})}),QY(!1),vG(),Co(r)):sZ(new l3(!1),r)};
vXE=function(r,f){r=$V([r,f]).pipe(XJ(function(Y){var V=_.E(Y);Y=V.next().value;if(V.next().value&&Y.value.isIntersecting)return Y.value.isV2Visible}),vG());
var I=r.pipe(XJ(function(Y){return Y===void 0?!0:Y}),ok(function(Y,V){return Y||!V},!1)),C=r.pipe(ok(function(Y,V){return V===void 0?Y:V?!1:Y!=null?Y:!0},void 0),XJ(function(Y){return!!Y}));
return $V([f,znw(r,I,C)]).pipe(XJ(function(Y){var V=_.E(Y);Y=V.next().value;var S=_.E(V.next().value);V=S.next().value;var h=S.next().value;S=S.next().value;var w=0;if(!Y)return 0;if(V===void 0)return 16;V&&(w|=1);V||(w|=2);h&&(w|=4);S&&(w|=8);return w}))};
B5K=function(r,f,I,C,Y){var V=OZ.timeThresholdMs;var S=S===void 0?new Aow(f,C):S;return(new rO(function(h){var w=I.pipe(QY(void 0),Aa(function(){return Zo$(Y)})).pipe(XJ(function(n){var d=n.value;
n=n.timestamp;var z=d.visible;d=d.consecutiveViewTime;var g=d>=V;g||!z?GZU(S):(n=Math.max(0,m_(f.now(),n)),kZE(S,Math.max(0,V-d-n)));return g}),ok(function(n,d){return d||n},!1),vG()).subscribe(h);
return function(){S.dispose();w.unsubscribe()}})).pipe(Zj(function(h){return!h},!0),Co(r))};
Zo$=function(r){return l8w([r,r.pipe(h4E())]).pipe(XJ(function(f){var I=_.E(f);f=I.next().value;I=I.next().value;return{timestamp:f.timestamp,value:{visible:f.value,consecutiveViewTime:I.value}}}),vG(function(f,I){return Ko(f,I,function(C,Y){return C.consecutiveViewTime===Y.consecutiveViewTime&&C.visible===Y.visible})}))};
qZw=function(){return Dz(SZP(),ok(function(r,f){return Math.max(r,f)},0),XJ(function(r){return Math.round(r)}))};
u0w=function(r){return Dz(WIl(ni(r)),qZw())};
DSc=function(r,f){return f instanceof rO?f.pipe(Aa(function(I){return(I=I?15:null)?dO(new g5(I)):r})):(f=f.value?15:null)?dO(new g5(f)):r};
ryR=function(r){var f=new g5(13);if(r.length<1)return{chain:cG,capturedErrors:cG};var I=new fo,C=r[0];return{chain:r.slice(1).reduce(function(Y,V){return Y.pipe(jP(function(S){I.next(S);return V}))},C).pipe(jP(function(Y){I.next(Y);
return dO(f)}),Ug(new fo),gO()),
capturedErrors:I}};
fEK=function(r,f){var I=r.pipe(Ug(new fo),gO());return Aa(function(C){return I.pipe(f(C))})};
CEl=function(r,f){if(r.inCrossDomainIframe)return dO(new g5(6));var I=new fo;return WG(ni({}),f,I).pipe(XJ(function(){return{timestamp:r.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:IEl(r),topWindowViewportExternalGeometry:Jo(r,!0),measurementRequests:I,viewportLocalAppOffset:{x:0,y:0}}}}),Ic(r.queue))};
IEl=function(r){var f=Jo(r,!1);if(!r.inIframe||!YDu(r.global.parent)||r.global.parent===r.global)return f;var I=new oc(r.global.parent,r.debugChannel);I.beaconFactory=r.beaconFactory;I=IEl(I);r=r.global.frameElement.getBoundingClientRect();return zU$(MPP(zU$(I,r),{x:f.left-r.left,y:f.top-r.top}),f)};
lEB=function(r){if(r.prerendering)return 3;var f;return(f={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[r.visibilityState||r.webkitVisibilityState||r.mozVisibilityState||""])!=null?f:0};
V4c=function(r){return r.document.JSC$7270_onVisibilityChange.pipe(XJ(function(f){return f==="visible"}),vG(),Co(r.queue))};
Eaw=function(r,f,I){var C;return f.pipe(vG(),Aa(function(Y){return I.pipe(XJ(function(){if(!C){C=!0;try{Y.next()}finally{C=!1}}return!0}))}),QY(!1),Co(r.queue))};
SDK=function(r){return Dz(vk(XJ(function(f){return f>=1?!0:f<=0?!1:f>=r})),EX$(),XJ(function(f){return Math.round(f)}))};
hiR=function(r,f,I,C,Y){var V=xuc;if(V.length>1)for(var S=0;S<V.length-1;S++)if(V[S]<V[S+1])throw Error();S=Y.pipe(QY(void 0),Aa(function(){return I.pipe(h4E())}),vG(),Co(r));
Y=Y.pipe(QY(void 0),Aa(function(){return I.pipe(qZw())}),vG(),Co(r));
return{totalMeasurementTime:C.pipe(QY(void 0),Aa(function(){return f.pipe(XJ(function(h){return{timestamp:h.timestamp,value:!0}}),EX$())}),vG(),Co(r)),
totalUnviewedTime:C.pipe(QY(void 0),Aa(function(){return f.pipe(XJ(function(h){return{timestamp:h.timestamp,value:h.value===0}}),EX$())}),vG(),Co(r)),
maxTimeOnScreen:C.pipe(QY(void 0),Aa(function(){return f.pipe(xSK(u0w,V))}),vG(_.n8),Co(r)),
timeOnScreen:C.pipe(QY(void 0),Aa(function(){return f.pipe(xSK(SDK,V),XJ(function(h){return h.map(function(w,n){return n>0?w-h[n-1]:w})}))}),vG(_.n8),Co(r)),
maxConsecutiveViewTime:Y,consecutiveViewTime:S.pipe(vG(Ko),Co(r))}};
bXw=function(r){var f=!0;f=f===void 0?!1:f;return Dz(Aa(function(I){return whK(r.document,I,f)}),Co(r.queue))};
phw=function(r,f,I){var C=I.pipe(XJ(function(Y){return{value:Y,timestamp:r.timeProvider.now()}}),vG(Ko));
return f instanceof rO?f.pipe(vG(),Aa(function(Y){return Y?sZ(new l3({value:!1,timestamp:r.timeProvider.now()}),r.queue):C})):f.value===!1?C:new l3(!1)};
naE=function(r,f,I,C,Y,V,S){var h=OZ;f=f instanceof rO?f.pipe(QY(!1),vG()):f;var w=!r.isMobile();I=phw(r,I,C);r=S.measurableCreative.pipe(YZd(r.queue));return Object.assign({},h,{geometryIsOccluded:I,wasLargeAdAtRender:Y,allowLargeAdThreshold:w,mayUseViewportShareExposure:f,hasMeasurementStarted:r,useIntersectionObserverV2:V})};
ziR=function(r,f,I,C,Y,V){var S=1;V=V===void 0?!0:V;S=S===void 0?.01:S;var h=h===void 0?r.timeProvider.intervalObservable(100).pipe(Co(r.queue)):h;return r.performanceMonitor.timeExecution(916,function(){return duU(r,f.pipe(Ic(r.queue)),I.pipe(Ic(r.queue)),C,Y,V,S,h)})()};
duU=function(r,f,I,C,Y,V,S,h){var w=V4c(r).pipe(XJ(function(d){return!d})),n=new M4K(r,[new gaq(r,xuc),
new aEP(r,h)]);h=GsK(XhK,NLw);return Ua$(r,f,function(d,z){var g=sZ(new l3(z.element),d.queue).pipe(bXw(d),Co(d.queue)),X={loadedElement:g,shouldMeasure:g.pipe(i_(!0)),measurableCreative:g.pipe(XJ(function(Cw){var rR=rR===void 0?Symbol():rR;return Object.freeze({symbol:rR,element:sZ(new l3(Cw),d.queue)})})),
creativeSearchResult:sZ(new l3("mue"),d.queue)},P=new l3(!1),W=new l3(!1),m=new l3(17),v=new l3(!1),O=new l3(!1),k=sZ(Qv,d.queue);P=n.buildGeometrySource(X,{inApp:P,useV2:!1,requestSource:sZ(m,d.queue)}).geometrySource;X=naE(d,v,W,w,O,k,X);W=QcB(d.queue,d.timeProvider,P,X);X=W.geometrySignals;v=W.shouldResetViewabilitySignals;W=hiR(d.queue,X.timestampedExposure,X.visible,W.shouldResetExposureSignals,v);v=B5K(d.queue,d.timeProvider,v,X.measurementRequests,X.visible);O=I.pipe(Li(function(Cw){return Cw===
z.element.ref}),XJ(function(){return"ur"}));
k=XLK(d.timeProvider,Y).pipe(i_("t"));O=T5E(d,WG(O,k));k=Eaw(d,X.measurementRequests,O.pipe(Li(function(Cw){return Cw!==null})));
P=O.pipe(Li(function(Cw){return Cw!==null}),XJ(function(){return lEB(d.global.document)===1}));
var Z=$u$(d.document);return Object.assign({},{beaconFactory:new l3(d.beaconFactory),context:new l3(d),inferredPingId:new l3("lidar2"),timeOnScreenPingId:new l3("lidartos"),binaryContext:new l3(17),binaryVersion:new l3(C),requestSource:m,contextValidationErrors:new l3(d.validate()?null:new ac),contextVisibilityKnown:new l3(Z),payloadMapper:new l3(Aaq),endOfSessionReason:O,timeOnScreenReason:O,requestMeasurementOnEndOfSession:k,hasImpressionFired:F9K,crossDomainIframeState:new l3(d.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:Qv,inFetchLaterBeaconExperiment:Qv,isTurtlex:Qv,turtlexReportEventData:new l3(""),reportFencedFrameEvent:MS,isViewableAttributionEnabled:Qv,inViewableAttributionExperiment:new l3(0),fetchBeaconFactory:MS,supportsPendingBeacon:Qv,supportsFetchLater:Qv,emit:new l3(qgP),beginToRenderEvent:new l3(Symbol()),activeViewUnmeasurableEvent:new l3(Symbol()),activeViewViewableEvent:new l3(Symbol()),creativeFound:F9K,immediateUrlPrefixes:new l3(z.immediateUrls),timeOnScreenUrlPrefixes:new l3(z.timeOnScreenUrls),
cpmavUrls:MS,viewableRelayUrls:MS,measurementDeferralState:new l3(2),urlSerializer:new l3(I8E),viewUrlSerializer:new l3(PEw),isCreativeLoaded:g.pipe(YZd(d.queue)),pageVisible:w.pipe(XJ(function(Cw){return!Cw})),
eosPageVisible:P,timestampedExposureHistory:X.timestampedExposure.pipe(ok(function(Cw,rR){Cw.push(rR);return Cw},[]))},X,{viewable:UZ(d,v),
maxTimeOnScreen:UZ(d,W.maxTimeOnScreen),timeOnScreen:UZ(d,W.timeOnScreen),maxConsecutiveViewTime:UZ(d,W.maxConsecutiveViewTime),consecutiveViewTime:W.consecutiveViewTime.pipe(XJ(function(Cw){return new yv(d.timeProvider,Cw)})),
totalMeasurementTime:UZ(d,W.totalMeasurementTime),totalUnviewedTime:UZ(d,W.totalUnviewedTime),userAgentClientHints:kCU(d),clientOrderPingCounter:new l3(new OiU)})},ZiU(r,S),ksc(V?BOR(h,t4l):BOR(h,TLP),cyu))};
W9u=function(r){return new RegExp("[^#]*[?&]"+r+"=([^&#]*)")};
L9U=function(r,f){return(r=f.exec(r))?r[1]:null};
muR=function(r){var f=_.XE.apply(1,arguments).filter(Boolean).join("&");if(!f)return r;var I=r.match(/[?&]adurl=/);return I?r.slice(0,I.index+1)+f+"&"+r.slice(I.index+1):r+(r.indexOf("?")<0?"?":"&")+f};
Ao=function(r,f){return f?"&"+r+"="+encodeURIComponent(f):""};
eiw=function(){try{var r,f;return!!((r=window)==null?0:(f=r.top)==null?0:f.location.href)&&!1}catch(I){return!0}};
_.Z8=function(r){r&&typeof r.dispose=="function"&&r.dispose()};
_.GZ=function(r){for(var f=0,I=arguments.length;f<I;++f){var C=arguments[f];_.ID(C)?_.GZ.apply(null,C):_.Z8(C)}};
jZE=function(){var r=Jyc();r=r===void 0?"bevasrsg":r;return new Promise(function(f){var I=window===window.top?window:eiw()?window:window.top,C=I[r],Y;((Y=C)==null?0:Y.bevasrs)?f(new kX(C.bevasrs)):(C||(C={},C=(C.nqfbel=[],C),I[r]=C),C.nqfbel.push(function(V){f(new kX(V))}))})};
HXq=function(r){var f={c:r.mF,e:r.yPb,mc:r.h9B,me:r.sZA};r.dB&&(f.co={c:r.dB.rdS,a:r.dB.yQl,s:r.dB.qJ9});return f};
iXK=function(r){var f,I,C={mF:r.c,yPb:r.e,h9B:(f=r.mc)!=null?f:!1,sZA:(I=r.me)!=null?I:!1};r.co&&(C.dB={rdS:r.co.c,yQl:r.co.a,qJ9:r.co.s});return C};
RiK=function(r){return function(){var f;return _.x(function(I){if(I.nextAddress==1)return _.b(I,r(),2);f=I.yieldResult;return I.return({f:function(){return f.c0Y()},
c:function(C){return f.bPB(C)},
m:function(C){return f.eB(iXK(C))},
mws:function(C){return f.cI(iXK(C))}})})}};
vaq=function(r,f){var I=Jyc();I=I===void 0?"bevasrsg":I;f={s:function(V){var S;return r.snapshot(Object.assign({},V.c&&{mF:V.c},V.s&&{sxS:V.s},{lqh:(S=V.p)!=null?S:!0}))},
e:function(V){var S;return void((S=r.p9f)==null?void 0:S.call(r,V))},
c:function(V,S){return r.dCr(V,S)},
p:r.oBS,l:function(){return r.gUS()},
wpc:f?RiK(f):void 0};var C=window===window.top?window:eiw()?window:window.top,Y=C[I];if(Y){Y.bevasrs=f;if(Y.nqfbel!==void 0)for(I=_.E(Y.nqfbel),C=I.next();!C.done;C=I.next())C=C.value,C(f);Y.nqfbel=void 0}else Y={},Y=(Y.bevasrs=f,Y.nqfbel=void 0,Y),C[I]=Y};
yyU=function(r){var f=f===void 0?49:f;var I=[];_.Bk(r,K9R,6,_.qS()).forEach(function(C){_.u3(C,2)<=f&&I.push(_.u3(C,1))});
return I};
Uu$=function(r){var f=f===void 0?49:f;var I=[];_.Bk(r,K9R,6,_.qS()).forEach(function(C){_.u3(C,2)>f&&I.push(_.u3(C,1))});
return I};
sZU=function(r){r.then(function(){},function(){})};
D8=function(r){return{fieldType:1,fieldName:r}};
rL=function(r){return{fieldType:2,fieldName:r}};
_.fX=function(r){return{fieldType:3,fieldName:r}};
OXq=function(){function r(){Y[0]=1732584193;Y[1]=4023233417;Y[2]=2562383102;Y[3]=271733878;Y[4]=3285377520;d=n=0}
function f(z){for(var g=S,X=0;X<64;X+=4)g[X/4]=z[X]<<24|z[X+1]<<16|z[X+2]<<8|z[X+3];for(X=16;X<80;X++)z=g[X-3]^g[X-8]^g[X-14]^g[X-16],g[X]=(z<<1|z>>>31)&4294967295;z=Y[0];var P=Y[1],W=Y[2],m=Y[3],v=Y[4];for(X=0;X<80;X++){if(X<40)if(X<20){var O=m^P&(W^m);var k=1518500249}else O=P^W^m,k=1859775393;else X<60?(O=P&W|m&(P|W),k=2400959708):(O=P^W^m,k=3395469782);O=((z<<5|z>>>27)&4294967295)+O+v+k+g[X]&4294967295;v=m;m=W;W=(P<<30|P>>>2)&4294967295;P=z;z=O}Y[0]=Y[0]+z&4294967295;Y[1]=Y[1]+P&4294967295;Y[2]=
Y[2]+W&4294967295;Y[3]=Y[3]+m&4294967295;Y[4]=Y[4]+v&4294967295}
function I(z,g){if(typeof z==="string"){z=unescape(encodeURIComponent(z));for(var X=[],P=0,W=z.length;P<W;++P)X.push(z.charCodeAt(P));z=X}g||(g=z.length);X=0;if(n==0)for(;X+64<g;)f(z.slice(X,X+64)),X+=64,d+=64;for(;X<g;)if(V[n++]=z[X++],d++,n==64)for(n=0,f(V);X+64<g;)f(z.slice(X,X+64)),X+=64,d+=64}
function C(){var z=[],g=d*8;n<56?I(h,56-n):I(h,64-(n-56));for(var X=63;X>=56;X--)V[X]=g&255,g>>>=8;f(V);for(X=g=0;X<5;X++)for(var P=24;P>=0;P-=8)z[g++]=Y[X]>>P&255;return z}
for(var Y=[],V=[],S=[],h=[128],w=1;w<64;++w)h[w]=0;var n,d;r();return{reset:r,update:I,digest:C,digestString:function(){for(var z=C(),g="",X=0;X<z.length;X++)g+="0123456789ABCDEF".charAt(Math.floor(z[X]/16))+"0123456789ABCDEF".charAt(z[X]%16);return g}}};
kHR=function(r,f){f=f===void 0?oaw:f;if(!QZ$){var I;r=(I=r.navigator)==null?void 0:I.userAgentData;if(!r||typeof r.getHighEntropyValues!=="function"||r.brands&&typeof r.brands.map!=="function")return Promise.reject(Error("ya"));Ayu((r.brands||[]).map(function(Y){var V=new ZX$;V=_.w5(V,1,Y.brand);return _.w5(V,2,Y.version)}));
typeof r.mobile==="boolean"&&_.IZ(GHw,2,r.mobile);QZ$=r.getHighEntropyValues(f)}var C=new Set(f);return QZ$.then(function(Y){var V=GHw.clone();C.has("platform")&&_.w5(V,3,Y.platform);C.has("platformVersion")&&_.w5(V,4,Y.platformVersion);C.has("architecture")&&_.w5(V,5,Y.architecture);C.has("model")&&_.w5(V,6,Y.model);C.has("uaFullVersion")&&_.w5(V,7,Y.uaFullVersion);return V.serialize()}).catch(function(){return GHw.serialize()})};
CX=function(r,f,I,C){this.initialValue_=r;this.maxValue_=f;this.currBaseValue_=this.currValue_=r;this.randomFactor_=I||0;this.backoffFactor_=C||2};
Ya=function(r){this.src=r;this.listeners={};this.typeCount_=0};
Du$=function(){for(var r;r=BLu.remove();){try{r.fn.call(r.scope)}catch(f){VE(f)}qDK.put(r)}uFq=!1};
_.rRm=function(r){switch(r){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}};
f3P=function(r){switch(r){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""}};
_.I3R=function(){};
w9E=function(r){return{aBL:new CdE(r),errorCount:new YmR(r),eventCount:new l3q(r),bwu:new Vb$(r),oII:new EL$(r),wcd:new Sml(r),nCr:new xkw(r),mLb:new hoB(r)}};
X9K=function(r,f,I,C){r=byu(p9U(nLm(new _.lE(1828,"0"),r),new dkw));f.length&&zoK(r,MbK(new gLu,f));C!==void 0&&(r.destinationUrl=C);var Y=new a3P(1828,"","",!1,"",r.build());_.V$(Y,r);var V=new ED({flush:function(S){try{Y.flush(S)}catch(h){I(h)}}});
V.addOnDisposeCallback(function(){setTimeout(function(){try{V.snapshotAndFlush()}finally{Y.dispose()}})});
V.invocationLimit=1E5;V.flushInterval=3E4;V.JSC$7686_flushTimer.setInterval(3E4);return V};
S4=function(){var r,f,I;return(I=(r=globalThis.performance)==null?void 0:(f=r.now)==null?void 0:f.call(r))!=null?I:Date.now()};
UkR=function(r,f,I){if(r.disable)return new NIE;f=f?yyU(f):[];if(I)return I.bXc(f),I.share();r={zl:r.zl,pxu:r.yxl,rKS:r.v4h,destinationUrl:r.destinationUrl,hsA:r.hsA,p0:r.p0};I=f;I=I===void 0?[]:I;return new yRd(r,I)};
_.szK=function(r){if(!r)return null;r=_.xa(r,4);return r===null||r===void 0?null:_.SF(r)};
Qzd=function(r,f){return f?Oyu(f):r?oLR(r):Promise.resolve()};
Oyu=function(r){return new Promise(function(f,I){var C=_.wL("SCRIPT"),Y=_.szK(r);_.vL(C,Y);C.onload=function(){_.bE(C);f()};
C.onerror=function(){_.bE(C);I(Error("Ja"))};
(pX("HEAD")[0]||document.documentElement).appendChild(C)})};
oLR=function(r){return new Promise(function(f){var I=_.wL("SCRIPT");if(r){var C=_.xa(r,6);C=C===null||C===void 0?null:_.HL(C)}else C=null;_.Rw(I,C);(pX("HEAD")[0]||document.documentElement).appendChild(I);_.bE(I);f()})};
nX=function(r,f,I){var C,Y=new Promise(function(V){C=setTimeout(V,f)});
return Promise.race([r.finally(function(){return void clearTimeout(C)}),
Y.then(I)])};
ARl=function(r,f){try{return globalThis.sessionStorage.setItem(r,f),!0}catch(I){return!1}};
ZyK=function(r,f,I,C){f=f===void 0?0:f;I=I===void 0?r.length:I;var Y=0;for(C&&(Y=ZyK(C));f<I;f++)C=typeof r==="string"?r.charCodeAt(f):r[f],Y=GAK(31,Y)+C|0;return Y};
kAR=function(r,f){return[ZyK(r,0,r.length>>1,f),ZyK(r,r.length>>1)]};
BIE=function(r){var f=_.E(kAR(r,dL));r=f.next().value;f=f.next().value;return r.toString(16)+f.toString(16)};
qmE=function(r,f){var I=kAR(f);r=new Uint32Array(r.buffer);f=r[0];var C=_.E(I);I=C.next().value;C=C.next().value;for(var Y=1;Y<r.length;Y+=2){for(var V=f,S=Y,h=I,w=C,n=0;n<22;n++)S=S>>>8|S<<24,S+=V|0,S^=h+38293,V=V<<3|V>>>29,V^=S,w=w>>>8|w<<24,w+=h|0,w^=n+38293,h=h<<3|h>>>29,h^=w;V=[V,S];r[Y]^=V[0];Y+1<r.length&&(r[Y+1]^=V[1])}};
uRR=function(r,f,I,C,Y){var V=(4-(dL.length+I.length)%4)%4,S=new Uint8Array(4+V+dL.length+4+I.length),h=new DataView(S.buffer),w=0;h.setUint32(w,Math.random()*4294967295);w=w+4+V;S.set(dL,w);w+=dL.length;h.setUint32(w,Y);S.set(I,w+4);qmE(S,C);return r.insert(f,function(n){return void globalThis.sessionStorage.removeItem(n)})?ARl(f,_.Dp(S))?"s":"t":"i"};
Dku=function(r,f){var I=globalThis.sessionStorage.getItem(r);if(!I)return["m"];try{var C=_.MT(I);qmE(C,f)}catch(Y){return globalThis.sessionStorage.removeItem(r),["c"]}for(f=4;f<7&&C[f]===0;)f++;for(I=0;I<dL.length;I++)if(C[f++]!==dL[I])return globalThis.sessionStorage.removeItem(r),["d"];I=(new DataView(C.buffer)).getUint32(f);return Math.floor(Date.now()/1E3)>=I?(globalThis.sessionStorage.removeItem(r),["e"]):["a",new Uint8Array(C.buffer,f+4)]};
rnP=function(r){return globalThis.TextEncoder?(new TextEncoder).encode(r):_.zH(r)};
fY$=function(r){var f=r,I;return function(){if(f){var C=f;f=void 0;I=C.apply(this,arguments)}return I}};
CkU=function(r){return kC(function(f){if(f instanceof r)return!0;var I,C,Y=f==null?void 0:(I=f.ownerDocument)==null?void 0:(C=I.defaultView)==null?void 0:C[r.name];return IYm(Y)&&f instanceof Y})};
_.aZ=function(r,f,I){_.Mu.call(this);this.JSC$7901_listener_=r;this.JSC$7901_interval_=f||0;this.handler_=I;this.callback_=(0,_.gL)(this.JSC$7903_doAction_,this)};
_.XF=function(r){r=YQE(r);return _.SF(r)};
YQE=function(r){return r===null?"null":r===void 0?"undefined":r};
VHU=function(r){if(r&&r.focus)if(r!==document.activeElement)r.focus();else return lY$(function(){return _.x(function(f){document.activeElement&&document.activeElement.blur();return f.return(lY$(function(){r.focus()}))})})};
_.EEu=function(r){var f=f===void 0?5:f;setTimeout(function(){var I;return _.x(function(C){C.nextAddress==1&&(I=document.activeElement);if(C.nextAddress!=5)return(document.activeElement===I||document.activeElement===document.body)&&f>=0&&r?_.b(C,VHU(r),5):C.jumpTo(0);if(document.activeElement===r)return C.return();r=r.parentElement;--f;return C.jumpTo(2)})},15)};
lY$=function(r){return new Promise(function(f){requestAnimationFrame(function(){f(r())})})};
xCU=function(r){if(_.Nu)r(_.Nu);else{var f;((f=SQl)!=null?f:SQl=[]).push(r)}};
FF=function(){!_.Nu&&_.$a&&_.hSd(_.$a());return _.Nu};
_.hSd=function(r){_.Nu=r;var f;(f=SQl)==null||f.forEach(xCU);SQl=void 0};
_.Ph=function(r){_.Nu&&_.Nu.beforeLoadModuleCode(r)};
_.ty=function(){_.Nu&&_.Nu.JSC$8852_setLoaded()};
TH=function(r){return RY(r)?Number(r):String(r)};
wwK=function(r){this.action=r;this.wfv=!1};
bzw=function(r,f){wwK.call(this,"set-drive-options");this.appId=r;this.appOrigin=f};
pwR=function(r){wwK.call(this,"visibility");this.visible=r};
nEP=function(r,f,I){ch.call(this,r,f,I)};
dCR=function(r){Wh.call(this,r)};
zSq=function(r){r=r&&r.getWindow()||window;return r.gadgets&&r.gadgets.rpc};
gEP=function(r,f){var I=f&&f.getWindow()||window;if(zSq(f))r();else if(MHu)MHu.push(r);else var C=MHu=[r],Y=I.setInterval(function(){if(zSq(f)){I.clearInterval(Y);for(var V=0;V<C.length;V++)C[V]();MHu=null}},100)};
XwK=function(r,f){var I=new LX(r);_.V$(f,I);var C={passive:!1};f.listen(I,"mousewheel",function(Y){return void aYU(r,Y)},C).listen(r,"scroll",function(Y){return void aYU(r,Y)},C)};
aYU=function(r,f){var I;a:{for(I=f.target;I;){if(I.nodeType==1){var C=_.m9(I,"overflowY");if(C=="auto"||C=="scroll")break a}I=I.parentNode}I=null}if(!I||!_.e4(r,I)||I.scrollHeight==I.clientHeight||f.deltaY>0&&Math.abs(I.scrollTop-(I.scrollHeight-I.clientHeight))<=1||f.deltaY<0&&I.scrollTop==0)f.preventDefault(),f.stopPropagation()};
KX=function(r,f,I,C,Y,V,S,h,w){h=h===void 0?!1:h;w=w===void 0?!1:w;ch.call(this,void 0,void 0,void 0);ch.call(this,V?V+" picker modal-dialog":"picker modal-dialog",!0,I);_.Jy(r,"protocol");this.iframeManager_=new Ntl;this.targetId_=j4();this.rpcToken_=j4();r=_.Hh(r);_.iE(r,"hostId");I=_.iE(r,"parent");this.useGapi_=!w&&!0||(I==null?void 0:I.includes("onepick.corp.google.com"));h&&_.RZ(r,"fv2","true");this.setUrl(r.toString());this.preferredDialogWidth_=C;this.preferredDialogHeight_=Y;C!==void 0||
Y!==void 0?C=!0:(C=_.iE(_.Hh(r.toString()),"hostId"),$Cm||($Cm=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),C=!$Cm.has(C));this.autoSizeDialog_=C;this.JSC$8091_gadgetsDomHelper_=S||this.JSC$8042_dom_;f&&(S=this.JSC$8091_gadgetsDomHelper_,f=_.iE(_.Hh(this.JSC$8093_url_),"grugl")=="true"?FOw:PkR,zSq(S)||(S=S||ho(document),C=S.createElement("SCRIPT"),_.vL(C,f),C.type="text/javascript",S.JSC$7225_document_.body.appendChild(C)));
r=r.toString();f=null;S=r.indexOf("/picker?");S>-1?f=r.substring(0,S+8-1):hm(r,"/picker")&&(f=r);f&&this.setRelayUrl(f+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(r=this.buttons_,r.JSC$8076_element_=this.buttonEl_,r.render()):_.KK(this.buttonEl_,tH$),_.vh(this.buttonEl_,!!this.buttons_))};
_.LOK=function(r){var f=f===void 0?Ttm:f;var I=_.S3(r),C=function(V){V=_.E(V);V.next();V=y$(V);return f(I,V)},Y=function(V){var S=_.E(V);
V=S.next().value;S=y$(S);return r.apply(V,S)};
return function(){var V=_.XE.apply(0,arguments),S=this||_.Yq,h=cnq.get(S);h||(h={},cnq.set(S,h));return WOl(h,[this].concat(_.Na(V)),Y,C)}};
UD=function(r){var f={};r=r.replace(/\r/g,"").split("\n");for(var I=0;I<r.length;I++){var C=r[I],Y=C.indexOf(":");Y<0||(f[C.substring(0,Y)]=C.substring(Y+2,C.length))}return f};
mCc=function(r,f,I){I=I===void 0?function(){}:I;
f=_.E(f);for(var C=f.next();!C.done;C=f.next()){var Y=_.E(C.value);C=Y.next().value;Y=Y.next().value;if(C instanceof Array&&C.includes(r)||C===r)return Y()}return I()};
sD=function(r,f,I){I=I===void 0?function(){}:I;
return r?f():I()};
_.JnK=function(r){var f;return((f=eSE.documentOverride)!=null?f:r).__wizdispatcher};
oZ=function(r){var f=OD;OD=r;return f};
Hzm=function(r,f){var I;if((I=r)==null?0:I.isDisposed)throw Error("nb`"+String(r.debugName));for(;r!==void 0;){I=r;if(I.retrieve)return I.retrieve(f,{optional:!0});r=r.parent}return jvl};
Q$=function(r){return{"\u0275prov":{providedIn:"root",token:Symbol(r),factory:void 0,value:void 0}}};
izK=function(r){var f=oZ(r);r={};return r[Symbol.dispose]=function(){oZ(f)},r};
RSR=function(r,f){r.disposables||(r.disposables=[]);r.disposables.push(f)};
ZE=function(r){var f=OD;f&&!f.isDisposed&&(RSR(f,function(){return void vE$(r)}),r.parent=f)};
KOu=function(r){if(r.disposables){for(var f=_.E(r.disposables),I=f.next();!I.done;I=f.next())I=I.value,I();r.disposables.length=0}};
vE$=function(r){if(!r.isDisposed){r.isDisposed=!0;var f;(f=r[Symbol.dispose])==null||f.call(r);delete r.parent;KOu(r)}};
Ggl=function(r){var f={retrieve:function(I){switch(I.\u0275prov.token){case ynR.\u0275prov.token:var C=r.asyncDeps;break;case UCw.\u0275prov.token:C=r.rootElement;break;case svq.\u0275prov.token:C=r.modelRootElement;break;case Ozm.\u0275prov.token:C=r.appContext;break;case oEm.\u0275prov.token:C=r.rendererData;break;case Qvm.\u0275prov.token:C=r.injectingConstructor;break;case AnE.\u0275prov.token:C=r.dispatcher}if(C)I=C;else a:{for(C=f.parent;C;){var Y=C;if(Y.retrieve){I=Y.retrieve(I);break a}C=
C.parent}C=I.\u0275prov.token;Y=Zzc[C];Y!==void 0?I=Y:(Y=I.\u0275prov.providedIn,I.\u0275prov.factory?(I=I.\u0275prov.factory(),C&&Y==="root"&&(Zzc[C]=I)):I=jvl)}return I}};
ZE(f);return f};
kgB=function(r){if(typeof document!=="undefined"&&document&&document.getElementById&&(r=document.getElementById(r))){var f=r.tagName.toUpperCase();if(f=="SCRIPT"||f=="LINK")return r}return null};
qQE=function(r,f){if((r=r===void 0?"":r)&&f)throw Error("ub");var I="";var C=_.Yq._F_jsUrl;(r=f||kgB(r))&&(I=r.src?r.src:r.getAttribute("href"));if(C&&I){if(C!=I)throw Error("vb`"+C+"`"+I);I=C}else I=C||I;if(!Btc(I))throw Error("wb");return I};
rdR=function(){if(!ulR){ulR=!0;try{var r=qQE(_.Yq._F_jsUrl?"":"base-js")}catch(C){return}var f=DC$(GH(r)),I=Object.keys(f);I.length!==0&&xCU(function(C){for(var Y=_.E(I),V=Y.next();!V.done;V=Y.next()){V=V.value;for(var S=_.E(Object.keys(f[V])),h=S.next();!h.done;h=S.next())C.addExtraEdge(V,h.value)}})}};
fyK=function(r,f,I){var C;return r&&f?r+"__"+f:(C=r!=null?r:f)!=null?C:I};
Chd=function(){var r=Object.assign({},IyP);Object.getOwnPropertyNames(IyP).forEach(function(f){ka[f]!==void 0&&(r[f]=ka[f])});
return r};
YHc=function(r,f){if(ka.enablePerformanceTiming){var I,C;(C=(I=performance).mark)==null||C.call(I,r+"Start__"+f)}};
lyq=function(r,f){if(ka.enablePerformanceTiming){var I,C;(C=(I=performance).measure)==null||C.call(I,r+"__"+f,r+"Start__"+f)}};
EBR=function(r,f){var I=Object.create(VhK);I.debugName=f;!OD||ZE(I);f=oZ(I);try{r(I)}finally{oZ(f)}return function(){return void vE$(I)}};
hGP=function(r){return SHc(r)&&xUE in r};
wdd=function(r,f){return Object.is(r,f)};
DE=function(r){var f=Bh;Bh=r;return f};
dUR=function(r){if(rI)throw Error("da");if(Bh!==null){var f=Bh.nextProducerIndex++;bfU(Bh);f<Bh.producerNode.length&&Bh.producerNode[f]!==r&&fy(Bh)&&pdP(Bh.producerNode[f],Bh.producerIndexOfThis[f]);Bh.producerNode[f]!==r&&(Bh.producerNode[f]=r,Bh.producerIndexOfThis[f]=fy(Bh)?nBR(r,Bh,f):0);Bh.producerLastReadVersion[f]=r.version}};
gBR=function(r){if(!fy(r)||r.dirty)if(r.dirty||r.lastCleanEpoch!==zGu)(r.producerMustRecompute(r)||MhR(r))&&r.producerRecomputeValue(r),r.dirty=!1,r.lastCleanEpoch=zGu};
ayu=function(r){if(r.liveConsumerNode!==void 0){var f=rI;rI=!0;try{for(var I=_.E(r.liveConsumerNode),C=I.next();!C.done;C=I.next()){var Y=C.value;Y.dirty||(r=void 0,Y.dirty=!0,ayu(Y),(r=Y.consumerMarkedDirty)==null||r.call(Y,Y))}}finally{rI=f}}};
Xdq=function(){var r;return((r=Bh)==null?void 0:r.consumerAllowSignalWrites)!==!1};
Nl$=function(r){r&&(r.nextProducerIndex=0);return DE(r)};
$Ul=function(r,f){DE(f);if(r&&r.producerNode!==void 0&&r.producerIndexOfThis!==void 0&&r.producerLastReadVersion!==void 0){if(fy(r))for(f=r.nextProducerIndex;f<r.producerNode.length;f++)pdP(r.producerNode[f],r.producerIndexOfThis[f]);for(;r.producerNode.length>r.nextProducerIndex;)r.producerNode.pop(),r.producerLastReadVersion.pop(),r.producerIndexOfThis.pop()}};
MhR=function(r){bfU(r);for(var f=0;f<r.producerNode.length;f++){var I=r.producerNode[f],C=r.producerLastReadVersion[f];if(C!==I.version)return!0;gBR(I);if(C!==I.version)return!0}return!1};
nBR=function(r,f,I){FMP(r);if(r.liveConsumerNode.length===0&&r.producerNode!==void 0)for(var C=0;C<r.producerNode.length;C++)r.producerIndexOfThis[C]=nBR(r.producerNode[C],r,C);r.liveConsumerIndexOfThis.push(I);return r.liveConsumerNode.push(f)-1};
pdP=function(r,f){FMP(r);if(r.liveConsumerNode.length===1&&r.producerNode!==void 0)for(var I=0;I<r.producerNode.length;I++)pdP(r.producerNode[I],r.producerIndexOfThis[I]);I=r.liveConsumerNode.length-1;r.liveConsumerNode[f]=r.liveConsumerNode[I];r.liveConsumerIndexOfThis[f]=r.liveConsumerIndexOfThis[I];r.liveConsumerNode.length--;r.liveConsumerIndexOfThis.length--;f<r.liveConsumerNode.length&&(I=r.liveConsumerIndexOfThis[f],r=r.liveConsumerNode[f],bfU(r),r.producerIndexOfThis[I]=f)};
fy=function(r){var f,I;return r.consumerIsAlwaysLive||((I=r==null?void 0:(f=r.liveConsumerNode)==null?void 0:f.length)!=null?I:0)>0};
bfU=function(r){r.producerNode!=null||(r.producerNode=[]);r.producerIndexOfThis!=null||(r.producerIndexOfThis=[]);r.producerLastReadVersion!=null||(r.producerLastReadVersion=[])};
FMP=function(r){r.liveConsumerNode!=null||(r.liveConsumerNode=[]);r.liveConsumerIndexOfThis!=null||(r.liveConsumerIndexOfThis=[])};
thl=function(r){var f=Object.create(PhE);f.computation=r;r=function(){gBR(f);dUR(f);if(f.value===Iz)throw f.error;return f.value};
r[Cy]=f;return r};
cdU=function(r,f){var I=Object.create(Tlm);I.value=r;f!==void 0&&(I.equal=f);r=function(){dUR(I);return I.value};
r[Cy]=I;return r};
mUP=function(r,f){r=cdU(r,f);var I=r[Cy];return[r,function(C){return WMu(I,C)},
function(C){Xdq()||LMP(I);WMu(I,C(I.value))}]};
WMu=function(r,f){Xdq()||LMP(r);if(!r.equal(r.value,f)){r.value=f;r.version++;zGu++;ayu(r);var I;(I=eGU)==null||I(r)}};
YL=function(r){var f=DE(null);try{return r()}finally{DE(f)}};
_.ld=function(r,f,I){I=I===void 0?"":I;r=mUP(r,f==null?void 0:f.equals);var C=r[0],Y=C[Cy];Y.debugName=fyK(f==null?void 0:f.debugName,I,"[signal]");if(!ka.enablePerformanceTiming)return r;var V=r[1],S=r[2];return[C,function(h){JdB(function(){return void V(h)},Y)},
function(h){JdB(function(){return void S(h)},Y)}]};
JdB=function(r,f){YHc("signalSet",f.debugName);try{r()}finally{lyq("signalSet",f.debugName)}};
HfU=function(r,f){var I=_.E(_.ld(r,void 0,"cPpJzc"));r=I.next().value;I=I.next().value;r[j1m]=I;r[V3]=f;return r};
ifR=function(r){return!!r&&typeof r==="object"&&Object.getPrototypeOf(r)===Object.prototype};
RGK=function(r){return typeof r==="function"&&j1m in r&&typeof r[j1m]==="function"};
vBq=function(r,f){Object.defineProperty(r,V3,{get:function(){return f}})};
Sb=function(r,f){if(Em(r)){var I=r.map(function(V){return Sb(V,f)});
vBq(I,f);return I}if(ifR(r)){I={};r=_.E(Object.entries(r));for(var C=r.next();!C.done;C=r.next()){var Y=_.E(C.value);C=Y.next().value;Y=Y.next().value;I[C]=Sb(Y,f)}vBq(I,f);return I}return HfU(r,f)};
KMP=function(r){if(Em(r))return r.map(function(Y){return KMP(Y)});
if(ifR(r)){var f={};r=_.E(Object.entries(r));for(var I=r.next();!I.done;I=r.next()){var C=_.E(I.value);I=C.next().value;C=C.next().value;f[I]=KMP(C)}return f}return RGK(r)?r():r};
UUB=function(){var r={height:0,width:0};if(!ifR(r))throw Error("Ib");var f=Symbol("Jb");return[Sb(r,f),function(I,C){if(I[V3]===f)if(typeof C==="function"){var Y=[].concat(_.Na(KMP(I)));C=C(Y)||Y;ydB(I,[].concat(_.Na(C)))}else ydB(I,C);else throw Error("Kb");}]};
ydB=function(r,f){if(RGK(r))r[j1m](f);else if(Em(r)&&Em(f))f=Sb(f,r[V3]),r.length=0,r.push.apply(r,_.Na(f));else if((ifR(r)||Em(r))&&(Em(f)||typeof f==="object"&&f!==null)){f=_.E(Object.entries(f));for(var I=f.next();!I.done;I=f.next()){var C=_.E(I.value);I=C.next().value;C=C.next().value;var Y=r,V=Y[I];Object.hasOwn(r,I)?ydB(V,C):Y[I]=Sb(C,r[V3])}}else throw Error("Lb");};
s1R=function(r){return Object.create(Object.assign({},xL,r))};
oBR=function(){var r;return(r=Ofw)!=null?r:Ofw=s1R({consumerAllowSignalWrites:!0})};
_.hR=function(r,f,I){I=I===void 0?"":I;r=thl(r);var C=r[Cy];C.debugName=fyK(f==null?void 0:f.debugName,I,"[computed]");(f==null?void 0:f.equals)!=null&&(C.equal=f.equals);return r};
wI=function(r){var f=DE(Q1P);try{r()}finally{DE(f)}};
u8B=function(r){if(!r.isDisposed)switch(r.effectType){case AdK:ZfP.schedule(r);break;case GUd:kUm.schedule(r);break;case Bld:qHd.schedule(r);break;default:_.Sd(r.effectType)}};
rVP=function(r){DUm.push(r);return function(){var f=DUm.indexOf(r);f!==-1&&DUm.splice(f,1)}};
IsR=function(){if(bd>0)ZfP.flush();else for(var r=_.E(fsP),f=r.next();!f.done;f=r.next())f.value.flush()};
Yju=function(r){for(var f=_.E(r),I=f.next();!I.done;I=f.next()){var C=I.value;for(I=[C];C.parent!==void 0;)C=C.parent,Cxl(C)&&r.has(C)&&I.push(C);for(;I.length>0;){C=I.pop();try{C.run()}finally{r.delete(C)}}}};
lsw=function(r){bd--;if(r){r=_.E(fsP);for(var f=r.next();!f.done;f=r.next())f.value.clear()}else bd>0||IsR()};
Eoc=function(r){var f=r.component;var I=r.debugInstance;r=r.fn;var C=VMU(f);py={name:I?C+" ("+I+")":C,isReactive:f.componentType!==ny,parent:py};f=r();py=py.parent;return f};
Mk=function(){var r=py;return r?r.isReactive:!1};
gI=function(r,f){var I=py;if(f==null?0:f.stack)py=f.stack;try{return r()}catch(V){r=V;f=py;try{var C=SjK(f);if(C&&!r.componentStack&&(r.componentStack=C,ka.enableComponentStacksInErrorMessages)){var Y=r.message+"\n\nComponent stack: "+C;r.stack&&(r.stack=r.stack.replace(r.message,Y));r.message=Y}}catch(S){}if(r!==x4E){h9q=py;C=[];for(Y=OD;Y;)f=void 0,C.push((f=Y.debugName)!=null?f:"[context]"),f=void 0,Y=(f=Y.parent)!=null?f:null;wWE=C.reverse()}x4E=r;throw r;}finally{py=I}};
SjK=function(r){for(var f=0,I="";f<20&&r;)I+=r.name+" > ",r=r.parent,f++;return I.slice(0,-3)};
VMU=function(r){return r.debugName||r.name||"[component]"};
bWu=function(r,f,I){f=Object.create(f);f.componentStack=py;f.effectFn=r;I&&(f.debugName=I);ZE(f);return f};
_.az=function(r,f){r=bWu(r,pWl,f);u8B(r)};
_.Nk=function(r,f){r=bWu(r,noR,f);u8B(r)};
_.$L=function(r){var f=OD;if(f){var I=py;RSR(f,function(){var C=DE(oBR());try{gI(function(){return void r()},{stack:I})}finally{DE(C)}})}};
P9=function(r,f){var I={};(f===void 0||f)&&ZE(I);f=oZ(I);try{r(I)}finally{oZ(f)}return function(){return void vE$(I)}};
_.tR=function(r){return typeof r==="function"?r():(r==null?0:r[d4$])?r.get():r};
z9$=function(r){if(OD)throw Error("rb");P9(r,!1)};
TA=function(r,f){r=oZ(r);try{return YL(f)}finally{oZ(r)}};
c9=function(r,f,I){I=I===void 0?3:I;var C=SjK(h9q),Y,V;var S=(V=(Y=wWE)==null?void 0:Y.slice())!=null?V:[];f={componentStack:C,contextTrace:S,errorSeverity:I,featureFlags:Chd(),tagName:f};return[r,f]};
asu=function(r,f,I){if(Object.hasOwnProperty.call(MMR,r)&&(r=MMR[r],Object.hasOwnProperty.call(r,f)&&(r=r[f],r instanceof Array))){for(var C=null,Y=!1,V=0,S=r.length;V<S;++V){var h=r[V],w=h.contingentAttribute;if(!w)return h.contract;C===null&&(C={});w=Object.hasOwnProperty.call(C,w)?C[w]:C[w]=I(w);if(w===h.requiredValue)return h.contract;w==null&&(Y=!0)}if(Y)return null}f=go$[f];return typeof f==="number"?f:null};
$4c=function(r,f,I){var C=null;(r=XWE[r])&&(C=r[f]);return typeof C!=="number"&&((r=XWE["*"])&&(C=r[f]),typeof C!=="number")?!1:!0===NUK[C][String(I).toLowerCase()]};
PxK=function(r,f){f=asu(r.toLowerCase(),f,function(){var C;(C=ka.handleError)==null||C.call.apply(C,[ka].concat(_.Na(c9(Error("Qb"),r.toLowerCase()))))});
if(f===null)return null;var I;return(I=F8K[f])!=null?I:null};
tM$=function(r,f,I){if(I===null||I===void 0)return I;r=PxK(r,f);return r===null?I:r(f,I)};
TUK=function(){};
W9=function(r,f){for(;r.length>f;)r.pop()};
cVR=function(r){r=Array(r);W9(r,0);return r};
W8R=function(r,f,I){if(I==null)r.removeAttribute(f);else{var C;(C=f.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":f.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?r.setAttributeNS(C,f,I):r.setAttribute(f,I)}};
L8q=function(r,f,I){r[f]=I};
e9w=function(r,f,I){r=r.style;if(typeof I==="string")r.cssText=I;else{r.cssText="";for(var C in I)if(m4u.call(I,C)){f=r;var Y=C,V=I[C];Y.indexOf("-")>=0?f.setProperty(Y,V):f[Y]=V}}};
JVP=function(r,f,I){var C=typeof I;C==="object"||C==="function"?r[f]=I:W8R(r,f,I)};
jhl=function(){var r=new TUK;r[Ly.default]=JVP;r.style=e9w;return r};
HWw=function(r,f,I,C){(C[f]||C[Ly.default])(r,f,I)};
R9w=function(r,f,I){f=new iWK(f,I);return r.__incrementalDOMData=f};
mb=function(r,f){if(r.__incrementalDOMData)return r.__incrementalDOMData;var I=r.nodeType===1?r.localName:r.nodeName,C=r.nodeType===1?r.getAttribute("key"):null;f=R9w(r,I,r.nodeType===1?C||f:null);if(r.nodeType===1&&(r=r.attributes,I=r.length)){C=f._attrsArr||(f._attrsArr=cVR(I*2));for(var Y=0,V=0;Y<I;Y+=1,V+=2){var S=r[Y],h=S.value;C[V]=S.name;C[V+1]=h}}return f};
voE=function(r,f,I,C,Y){return f==I&&C==Y};
K8P=function(r){for(var f=eb,I=JR();I!==r;){var C=I.nextSibling;f.removeChild(I);jb.deleted.push(I);I=C}};
JR=function(){return H9?H9.nextSibling:eb.firstChild};
id=function(){H9=JR()};
shu=function(r,f,I){id();var C;a:{if(C=H9){do{var Y=C,V=r,S=f,h=mb(Y,S);if(yVw(Y,V,h.nameOrCtor,S,h.key))break a}while(f&&(C=C.nextSibling))}C=null}C||(r==="#text"?(I=Rz.createTextNode(""),R9w(I,"#text",null),r=I):(C=Rz,Y=eb,typeof r==="function"?C=new r:C=(Y=r==="svg"?"http://www.w3.org/2000/svg":r==="math"?"http://www.w3.org/1998/Math/MathML":Y==null||mb(Y).nameOrCtor==="foreignObject"?null:Y.namespaceURI)?C.createElementNS(Y,r):C.createElement(r),R9w(C,r,f),r=C,I&&r.setAttribute("nonce",I)),jb.created.push(r),
C=r);I=C;if(I!==H9){if(U4U.indexOf(I)>=0)for(r=eb,f=I.nextSibling,C=H9;C!==null&&C!==I;)Y=C.nextSibling,r.insertBefore(C,f),C=Y;else eb.insertBefore(I,H9);H9=I}};
OWw=function(r,f,I){shu(r,f,I);eb=H9;H9=null;return eb};
ooU=function(){K8P(null);H9=eb;eb=eb.parentNode};
v9=function(){H9=eb.lastChild};
ZWK=function(r,f){f=f===void 0?{}:f;var I=f.matches===void 0?voE:f.matches;return function(C,Y,V){var S=jb,h=Rz,w=U4U,n=Ky,d=y3,z=H9,g=eb,X=yVw;Rz=C.ownerDocument;jb=new QhP(C);yVw=I;Ky=[];y3=[];H9=null;var P=eb=C.parentNode,W,m=AVB.call(C);if((W=m.nodeType===11||m.nodeType===9?m.activeElement:null)&&C.contains(W)){for(m=[];W!==P;)m.push(W),W=W.parentNode||(P?W.host:null);P=m}else P=[];U4U=P;try{return r(C,Y,V)}finally{C=jb,Um&&C.deleted.length>0&&Um(C.deleted),Rz=h,jb=S,yVw=X,Ky=n,y3=d,H9=z,eb=g,
U4U=w}}};
GOB=function(r,f,I,C){sm.push(HWw);sm.push(r);sm.push(f);sm.push(I);sm.push(C)};
BUR=function(r,f,I){var C=y3;f=f._attrsArr||(f._attrsArr=cVR(C.length));for(var Y=!f.length||!1,V=0;V<C.length;V+=2){var S=C[V];if(Y)f[V]=S;else if(f[V]!==S)break;var h=C[V+1];if(Y||f[V+1]!==h)f[V+1]=h,GOB(r,S,h,I)}if(V<C.length||V<f.length){for(V=Y=V;V<f.length;V+=2)oz[f[V]]=f[V+1];for(V=Y;V<C.length;V+=2)Y=C[V],S=C[V+1],oz[Y]!==S&&GOB(r,Y,S,I),f[V]=Y,f[V+1]=S,delete oz[Y];W9(f,C.length);for(var w in oz)GOB(r,w,void 0,I),delete oz[w]}r=kOc;kOc=I=sm.length;for(w=r;w<I;w+=5)(0,sm[w])(sm[w+1],sm[w+
2],sm[w+3],sm[w+4]);kOc=r;W9(sm,r);W9(C,0)};
Q3=function(r){shu("#text",null);var f=H9;var I=mb(f);if(I.text!==r){I=I.text=r;for(var C=1;C<arguments.length;C+=1)I=(0,arguments[C])(I);f.data!==I&&(f.data=I)}};
IWd=function(r,f,I){if(I===!1&&qj$.has(f))W8R(r,f,null);else if(f!=="idomKey"&&f!=="skip"&&f!=="skipchildren"&&f!=="children"&&f!=="el"){if(f.startsWith("on"))if(f[2]===":"){if(I===void 0||I===null){var C;(C=ka.handleError)==null||C.call.apply(C,[ka].concat(_.Na(c9(Error("Wb`"+f),r.tagName))));r[f]=void 0;return}if(typeof I!=="object"||I===null)throw Error("Xb`"+f+"`"+typeof I);if(typeof I.getFn!=="function")throw Error("Yb`"+f+"`"+Object.keys(I));var Y=I.getFn(0),V=f.slice(3);if((C=Mk())&&r["on"+
V]===void 0)r.addEventListener(V,Y),_.$L(function(){return void r.removeEventListener(V,Y)});
else if(C||!u_w.includes(V))r["on"+V]=Y}else{D4m(r,f,I);return}else if(f.startsWith("data-")&&typeof I==="string")try{I=r7$(I)}catch(S){I="zSoyz"}typeof I!=="function"||r._disposeEffects!=null?(ka.enableAttributeSanitization&&(I=tM$(r.tagName,f,I)),f==="style"?fWl(r,f,I):f.startsWith("prop:")?(f=f.slice(5),r[f]=I):D4m(r,f,I)):(r._signalProps||(r._signalProps=[]),r._signalValues||(r._signalValues=[]),r._signalProps.push(f))}};
Czu=function(r,f,I){I=(I===void 0?{}:I).isReactive;if(f==null?0:f.el){var C=f.el;if(typeof C==="function")C(r);else{var Y;(Y=C.onRender)==null||Y.call(C,r);r._disposeRef||(r._disposeRef=function(){var V;(V=C.onUnmount)==null||V.call(C);delete r._disposeRef},I&&_.$L(function(){var V;
return void((V=r._disposeRef)==null?void 0:V.call(r))}))}}};
Yem=function(r){return SHc(r)&&AR in r};
lWw=function(r){return Yem(r)?r[AR].flattened:r};
Vql=function(r,f){var I=_.XE.apply(2,arguments),C;f=(C=f)!=null?C:{};C={};return C.type=r,C.props=f,C.children=I,C[Z3]=!0,C};
_.B9=function(r){return r.children};
qk=function(r){var f=Elm!==Vql;Elm=r?Sed:Vql;return f};
ud=function(r){return _.lV(r)?"nodeType"in r:!1};
D3=function(){return document.createTextNode("")};
rt=function(r){r=document.createTextNode(String(r));r._isSignalTextNode=!0;return r};
xWc=function(r){var f=document.createElement("div");if(!(r instanceof TC)){if(r.contentKind!==fz)throw Error("Ub");r=cL(r.toString())}_.KK(f,r);r=_.E(f.childNodes);for(var I=r.next();!I.done;I=r.next())I.value._isSafeOrSanitizedHtmlNode=!0;return f};
Iv=function(r){r=typeof r;return r==="string"||r==="number"||r==="boolean"};
hcB=function(r){return r instanceof ER||pK(r)||"function"==typeof _.sR&&r instanceof _.sR||!1};
wRl=function(r,f){var I=r.parentElement;if(!I)return f;I.replaceChild(f,r);return f};
bNK=function(r,f){var I=r[0].parentElement;if(I)if(r[0].previousSibling||r[r.length-1].nextSibling){I.insertBefore(f,r[0]);for(var C=r.length-1;C>=0;C--)I.removeChild(r[C])}else I.textContent="",I.appendChild(f);return f};
pRw=function(r,f){if(r[0].parentElement)for(var I=r[0].parentElement,C=f.length,Y=r.length,V=C,S=0,h=0,w=r[Y-1].nextSibling,n=null;S<Y||h<V;)if(r[S]===f[h])S++,h++;else{for(;r[Y-1]===f[V-1];)Y--,V--;if(Y===S)for(var d=V<C?h?f[h-1].nextSibling:f[V-h]:w;h<V;){var z=f[h++];I.insertBefore(z,d)}else if(V===h)for(;S<Y;)d=r[S],n&&n.has(d)||I.removeChild(d),S++;else if(r[S]===f[V-1]&&f[h]===r[Y-1])d=r[--Y].nextSibling,I.insertBefore(f[h++],r[S++].nextSibling),I.insertBefore(f[--V],d),r[Y]=f[V];else{if(!n)for(n=
new Map,d=h;d<V;)n.set(f[d],d++);d=n.get(r[S]);if(d==null)I.removeChild(r[S]),S++;else if(h<d&&d<V){z=S;for(var g=1,X=void 0;++z<Y&&z<V&&(X=n.get(r[z]))!=null&&X===d+g;)g++;if(g>d-h)for(z=r[S];h<d;)I.insertBefore(f[h++],z);else I.replaceChild(f[h++],r[S++])}else S++}}return f};
dWl=function(r){if(Array.isArray(r)){if(r.length>1)throw Error("gc`"+r.length+"`"+r.map(nld).join(", "));r=r[0]}if(r==null)return null;if(!(r instanceof _.jF)){var f,I;if((f=window)==null?0:(I=f.trustedTypes)==null?0:I.isScript(r))throw Error("fc");if(String(r).trim().length===0)return null;throw Error("hc`"+nld(r));}return r};
zcl=function(r){if(Array.isArray(r)){if(r.length>1)throw Error("ic`"+r.length+"`"+r.map(nld).join(", "));r=r[0]}if(r==null)return null;if(!FoU(r)){if(String(r).trim().length===0)return null;throw Error("jc`"+nld(r));}return r};
nld=function(r){return"("+typeof r+") "+(r!=null&&typeof r==="object"?r.constructor.name:typeof r)+" "+r};
YE=function(r,f){function I(){Y=!1;f.isControlFlowComponent&&bd++;var V=C[0],S=C[AR].flattened,h=qk(!0);try{var w=r(),n=Mql(V,w,C);Array.isArray(n)||(C[AR].flattened=[n]);var d=C[AR].flattened;if(S&&(!Array.isArray(S)||S.length!==0)){var z=Array.isArray(S)?S[0]:S,g=z[Cz],X=z._disposeEffects;z._disposeEffects=void 0;z=Array.isArray(d)?d[0]:d;z[Cz]=g;z[Cz]&&(z[Cz].numNodes=z===d?1:d.length);z._disposeEffects=X}C[0]=n;f.isControlFlowComponent&&lsw(!1)}catch(P){throw f.isControlFlowComponent&&lsw(!0),
P;}finally{qk(h)}}
f=f===void 0?{}:f;var C=gl$(),Y=!0;_.Nk(function(){(aWR==null?0:aWR.logger)&&!Y?aWR.logger.logGraft(C[0],I):I()},f.debugName);
return C};
Mql=function(r,f,I){for(;typeof f==="function";)f=f();if(f!=null&&f[Z3]){var C,Y,V;(V=ka.handleError)==null||V.call.apply(V,[ka].concat(_.Na(c9(Error("kc`"+((C=f.type)==null?void 0:C.TAG_NAME)),(Y=f.type)==null?void 0:Y.TAG_NAME))))}if(r==null)return f==null?D3():Iv(f)?rt(f):hcB(f)?rt(f.toString()):ud(f)?f:f.length===0?D3():XRK(f,I);if(ud(r)){if(f==null)return wRl(r,D3());if(Iv(f))return NpE(r,f);if(hcB(f))return NpE(r,f.toString());if(ud(f))return wRl(r,f);if(f.length===0)return wRl(r,D3());f=XRK(f,
I);pRw([r],I[AR].flattened);return f}r=lk(r);if(f==null)return bNK(r,D3());if(Iv(f))return bNK(r,rt(f));if(hcB(f))return bNK(r,rt(f.toString()));if(ud(f))return pRw(r,[f])[0];if(f.length===0)return bNK(r,D3());f=XRK(f,I);pRw(r,I[AR].flattened);return f};
NpE=function(r,f){r.nodeType===Node.TEXT_NODE?r.textContent!==String(f)&&(r.textContent=String(f)):r=wRl(r,rt(f));return r};
lk=function(r,f,I){return $Wd(r,f!=null?f:[],I===void 0?!1:I)};
XRK=function(r,f){var I=lk(r,void 0,!0);if(I.length===0)return D3();f[AR].flattened=I;return r};
$Wd=function(r,f,I,C,Y){f=f===void 0?[]:f;I=I===void 0?!1:I;Y=Y===void 0?-1:Y;if(r==null)return f;if(r instanceof VM)return r=r.render(),$Wd(r,f,I,C,Y);if(ud(f)&&f.nodeType===Node.ELEMENT_NODE)switch(f.tagName){case "SCRIPT":I=dWl(r);I!==null&&_.Rw(f,I);return;case "STYLE":I=zcl(r);I!==null&&(f.textContent=_.Prm(I));return}Iv(r)&&(r=rt(r),C&&I&&(C[Y]=r));if(r!=null&&r.contentKind===fz||r instanceof TC){I=xWc(r);I=Array.from(I.childNodes);I=_.E(I);for(r=I.next();!r.done;r=I.next())FNU(f,r.value);return f}hcB(r)&&
(r=rt(r.toString()),C&&I&&(C[Y]=r));if(ud(r))return FNU(f,r);if(Array.isArray(r)){for(var V=0;V<r.length;V++)$Wd(r[V],f,I,r,V);return f}if(typeof r==="function"){r=YE(r,{debugName:"qmF2ne"})[0];if(Array.isArray(r)){I=_.E(r);for(r=I.next();!r.done;r=I.next())FNU(f,r.value);return f}C&&I&&(C[Y]=r);return FNU(f,r)}if(r!=null&&r[Z3]){C=qk(!0);Y=Elm;try{V=Y.apply(null,[r.type,r.props].concat(_.Na(r.children)))}finally{qk(C)}return $Wd(V,f,I)}var S;(S=ka.handleError)==null||S.call.apply(S,[ka].concat(_.Na(c9(Error("lc")))));
return f};
gl$=function(r){var f={};f=Object.assign([],(f[AR]={flattened:[]},f));if(!r)return f;f[0]=XRK(r,f);return f};
FNU=function(r,f){Array.isArray(r)?r.push(f):r.appendChild(f);return r};
EQ=function(r){if(!ka.enableLazyTsx)return r;if(Array.isArray(r)){for(var f=0;f<r.length;f++)r[f]=EQ(r[f]);return r}return r instanceof VM?(r=r.render(),EQ(r)):r};
tqw=function(r,f){var I,C,Y=VMU(r),V=function(X){C=X;X=qk(!0);var P=DE(SH);YHc("render",Y);try{I=EQ(r(f))}finally{lyq("render",Y),DE(P),qk(X)}};
V=ka.enableContextPerComponent?EBR(V,Y):P9(V,ka.alwaysTrackContexts||!!OD);hGP(C);if(!f.renderedFromIdom){var S=oZ(C);try{return PzK(r,f,I),I}finally{oZ(S)}}!Yem(I)&&Array.isArray(I)&&(I=gl$(I));var h=lWw(I);S=Array.isArray(h)?h[0]:h;var w=!1;if(S){var n,d=(n=f==null?void 0:f.idomKey)!=null?n:r;n=h!==S;S._disposeEffects=V;var z=S[Cz]||{},g=Yem(I)?I:z.sourceDynamicRange;Object.assign(z,{key:d,numNodes:n?h.length:1,context:C,higherOrder:!!S[Cz],sourceDynamicRange:g});S[Cz]=z}else w=!0;(function(){var X=
oZ(C);try{PzK(r,f,h)}finally{oZ(X)}})();
w&&V();return I};
TpB=function(r){var f={},I;for(I in r)f={prev$jscomp$23:void 0,next$jscomp$32:void 0},f.prev$jscomp$23=xE[I],f.next$jscomp$32=r[I],xE[I]=function(C){return function(){var Y=_.XE.apply(0,arguments);C.prev$jscomp$23.apply(null,_.Na(Y));C.next$jscomp$32.apply(null,_.Na(Y))}}(f)};
c7R=function(){if(Mk())throw Error("mc");return hn};
WNK=function(r,f){if(!r.__unmounted&&f){r.__unmounted=!0;try{r.didUnmount()}catch(Y){var I,C;(C=ka.handleError)==null||C.call.apply(C,[ka].concat(_.Na(c9(Y,(I=r.JSC$8167___type)==null?void 0:I.TAG_NAME))))}xE.didUnmount(r);r.el=null;f.__instance&&delete f.__instance}};
mWE=function(r,f,I){r._signalProps!=null&&r._disposeEffects==null&&((I===void 0?0:I)?r._disposeEffects=P9(function(){return void LNR(r,f)},ka.alwaysTrackContexts||!!OD):LNR(r,f))};
LNR=function(r,f){_.Nk(function(){for(var I=r._signalProps,C=r._signalValues,Y=0;Y<I.length;Y++){var V=I[Y],S=f[V]();C[Y]!==S&&(C[Y]=S,IWd(r,V,S))}},"e3YVbb")};
ecE=function(r,f,I){var C,Y=[];r._disposeEffects=P9(function(){_.Nk(function(){var V=I();if(V===null||V===void 0)V="";if(Iv(V)||V===null)C!=null||(C=document.createTextNode("")),C.parentNode!==r&&(C._isSignalTextNode=!0,r.insertBefore(C,f)),C.textContent=String(V);else if(V!=null&&V.contentKind===fz||V instanceof TC){for(var S=Y.length>0?Y[Y.length-1].nextSibling:f,h=_.E(Y),w=h.next();!w.done;w=h.next())r.removeChild(w.value);V=xWc(V);Y=Array.from(V.childNodes);V=_.E(Y);for(h=V.next();!h.done;h=V.next())r.insertBefore(h.value,
S)}else throw w=(h=(S=py)==null?void 0:S.name)!=null?h:"unknown",Error("bc`"+w+"`"+typeof V);},"VvDgC")},ka.alwaysTrackContexts||!!OD)};
HNu=function(r,f){var I=_.XE.apply(2,arguments);f!=null||(f={});return!ka.enableLazyTsx||py!=null&&!Mk()?J7c(r,f,I):new j5c(r,f,I)};
J7c=function(r,f,I){if(r===_.B9)return I;if(typeof r==="function")return py&&!Mk()&&(f.renderedFromIdom=!0),Eoc({component:r,debugInstance:f.debugInstance,fn:function(){var V=iNU(r,f,I);if(V)return V;I.length>0&&(f.children=I.length===1?I[0]:I);V=f;if(r.componentType!==ny)var S=!1;else{V||(V={});var h=new wt(V,r),w=DE(SH);try{S=h.render(V)}finally{DE(w)}S instanceof HTMLElement&&(S.__instance=h,h.el=S,h.JSC$8167___type=r,r.TAG_NAME=S.tagName.toLowerCase(),xE.didPatch(h))}return S===!1?tqw(r,f):S}});
var C=Rcm(r,f),Y;for(Y in f)IWd(C,Y,f[Y]);mWE(C,f);lk(I,C);Czu(C,f,{isReactive:!0});vlR(C,f);return C};
Rcm=function(r,f){r=(KNw.has(r.toLowerCase())?0:y7m.has(r.startsWith("svg:")?r.replace("svg:",""):r))?document.createElementNS("http://www.w3.org/2000/svg",r.startsWith("svg:")?r.replace("svg:",""):r):UW$(r,f)||document.createElement(r);r[s5K]=!0;return r};
ONK=function(r){if(r){var f;(f=r._disposeRef)==null||f.call(r);var I;(I=r._disposeEffects)==null||I.call(r);r.__instance&&r.__instance instanceof bk&&(f=r.__instance,WNK(f,r),f instanceof wt&&f.disposeEffects());for(f=0;f<r.childNodes.length;f++)ONK(r.childNodes[f])}};
Q5R=function(r){olP.push(r)===1&&requestAnimationFrame(function(){setTimeout(function(){var f=[].concat(_.Na(olP));olP=[];f=_.E(f);for(var I=f.next();!I.done;I=f.next()){I=I.value;try{for(var C=0;C<I.length;C++)ONK(I[C])}catch(Y){C=I=void 0,(C=(I=ka).handleError)==null||C.call.apply(C,[I].concat(_.Na(c9(Y))))}}})})};
_.p=function(r,f){return Elm.apply(null,[r,f].concat(_.Na(_.XE.apply(2,arguments))))};
ZNK=function(){var r=document.body.firstElementChild;window.ng||r.__ngContext__||(r.__ngContext__={},r.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=A7U)};
_.M=function(r){var f=r.cond;if(f===void 0)return r.else&&r.else();var I=_.hR(function(){return!!f()},void 0,"y0Xknf"),C=function(){var Y=f();
if(!Y){var V;(V=ka.handleError)==null||V.call.apply(V,[ka].concat(_.Na(c9(GLw.nonNullableCondIsNull()))))}return Y};
return YE(function(){var Y=I(),V;P9(function(){var S=DE(SH);try{V=EQ(Y?r.then(C):r.else&&r.else())}finally{DE(S)}},!0);
return V},{debugName:r.debugInstance,
isControlFlowComponent:!0})};
kLR=function(r){return _.M(r)};
_.pz=function(r){return r.keyBy==="INDEX"?Bpw(r):qec(r)};
uou=function(r){r=_.E(r);for(var f=r.next();!f.done;f=r.next()){var I=void 0;(I=f.value)==null||I()}};
qec=function(r){var f=r.keyBy===void 0||r.keyBy==="REFERENCE",I=f?function(d){return d}:r.keyBy,C=[],Y=[],V=[],S=[],h=[],w=[],n=!0;
_.$L(function(){uou(S)});
return YE(function(){var d=r.each(),z=d.length;if(z===0){if(C.length===0&&!n)return V;uou(S);C=d;Y=[];for(d=0;d<C.length;d++)Y.push(I(C[d]));V=[];S=[];h=[];w=[];r.fallback&&(S[0]=DWB(function(){V[0]=EQ(r.fallback())}));
n=!1;return V}for(var g=new rqu,X=C.length-1;X>=0;X--)g.push(Y[X],X);X=Array(z);for(var P=Array(z),W=Array(z),m=Array(z),v=Array(f?0:z),O={i$jscomp$485:0};O.i$jscomp$485<z;O={i$jscomp$485:O.i$jscomp$485,item$jscomp$103:void 0,key$jscomp$523:void 0},O.i$jscomp$485++){O.item$jscomp$103=d[O.i$jscomp$485];O.key$jscomp$523=I(O.item$jscomp$103);var k=g.pop(O.key$jscomp$523);k!=null?(W[O.i$jscomp$485]=V[k],P[O.i$jscomp$485]=Y[k],X[O.i$jscomp$485]=S[k],m[O.i$jscomp$485]=h[k],f||(v[O.i$jscomp$485]=w[k]),wI(function(Z){return function(){m[Z.i$jscomp$485](Z.i$jscomp$485);
if(!f)v[Z.i$jscomp$485](Z.item$jscomp$103)}}(O)),delete S[k]):X[O.i$jscomp$485]=DWB(function(Z){return function(){var Cw=_.E(_.ld(Z.i$jscomp$485,void 0,"g4fKif")),rR=Cw.next().value;
Cw=Cw.next().value;m[Z.i$jscomp$485]=Cw;P[Z.i$jscomp$485]=Z.key$jscomp$523;if(f)W[Z.i$jscomp$485]=EQ(r.children(Z.item$jscomp$103,rR));else{var EP=_.E(_.ld(Z.item$jscomp$103,void 0,"Ile0Kc"));Cw=EP.next().value;EP=EP.next().value;v[Z.i$jscomp$485]=EP;W[Z.i$jscomp$485]=EQ(r.children(Cw,rR))}}}(O))}uou(S);
C=d;Y=P;V=W;S=X;h=m;w=v;n=!1;return W},{debugName:r.debugInstance,
isControlFlowComponent:!0})};
Bpw=function(r){var f=[],I=[],C=[],Y=[],V=!1;_.$L(function(){for(var S=_.E(Y),h=S.next();!h.done;h=S.next())h=h.value,h()});
return YE(function(){var S=r.each();V&&S.length>0&&(Y.pop()(),f.pop(),V=!1);for(var h=Array(S.length),w={i$jscomp$486:0};w.i$jscomp$486<S.length;w={i$jscomp$486:w.i$jscomp$486},w.i$jscomp$486++)if(w.i$jscomp$486<f.length)f[w.i$jscomp$486]!==S[w.i$jscomp$486]&&(wI(function(d){return function(){return void I[d.i$jscomp$486](S[d.i$jscomp$486])}}(w)),f[w.i$jscomp$486]=S[w.i$jscomp$486]),h[w.i$jscomp$486]=C[w.i$jscomp$486];
else{var n=DWB(function(d){return function(){f[d.i$jscomp$486]=S[d.i$jscomp$486];var z=_.E(_.ld(S[d.i$jscomp$486],void 0,"QVJXFd")),g=z.next().value;z=z.next().value;I[d.i$jscomp$486]=z;h[d.i$jscomp$486]=EQ(r.children(g,d.i$jscomp$486))}}(w));
Y[w.i$jscomp$486]=n}for(;f.length>S.length;)f.pop(),Y.pop()(),I.pop();S.length===0&&!V&&r.fallback&&(w=DWB(function(){h[0]=EQ(r.fallback())}),Y[0]=w,V=!0);
return C=h},{debugName:r.debugInstance,
isControlFlowComponent:!0})};
DWB=function(r){var f=OD;return P9(function(I){var C=DE(SH);try{I.parent=f,r(I)}finally{DE(C)}},!1)};
_.nz=function(r){return r};
_.dt=function(r){return{isDefault:!0,children:r.children}};
_.MC=function(r){var f=fmU(r),I=_.hR(function(){return Imc(f)},void 0,"BHmkEe");
return YE(function(){var C=I(),Y;P9(function(){var V=DE(SH);try{Y=EQ(C())}finally{DE(V)}});
return Y},{debugName:r.debugInstance,
isControlFlowComponent:!0})};
fmU=function(r){r=r.children;return Array.isArray(r)?r:[r]};
CKK=function(r){var f=r.props;r=r.getChildren()[0];return f.when?{when:f.when,children:r}:{isDefault:!0,children:r}};
Imc=function(r){var f=function(){return null};
r=_.E(r);for(var I=r.next();!I.done;I=r.next())if(I=I.value,I!=null&&I[Z3]&&(I=I.type===_.dt?{isDefault:!0,children:I.children[0]}:{when:I.props.when,children:I.children[0]}),I instanceof VM&&(I=CKK(I)),I.isDefault)f=I.children;else if(I.when())return I.children;return f};
YCP=function(r){var f=null,I;return{value:null,onRender:function(C){if(I&&C!==I){var Y;(Y=f)==null||Y();I._disposeRef=void 0}I=C;f=r(C)||null},
onUnmount:function(){var C;(C=f)==null||C();f=null}}};
VJc=function(r){var f=c7R();if(f==null)throw lmK.PRIMITIVE_INVALID_HOOK_CALL();var I=f.hookCounter++;f.hooks||(f.hooks=[]);var C=f.hooks;C[I]||(C[I]={key:r,host:f});if(r!==C[I].key){if(f.JSC$8167___type){var Y;r=(Y=f.JSC$8167___type)==null?void 0:Y.name}else r=f instanceof wt?VMU(f.functionComponent):"<"+f.el.tagName.toLowerCase()+">";throw lmK.OUT_OF_ORDER_HOOK_CALL(r);}return C[I]};
EfP=function(r,f){return!r||r.length!==(f==null?void 0:f.length)||r.some(function(I,C){return I!==f[C]})};
gt=function(r,f){var I=VJc("onChange"),C=c7R();EfP(I.deps,f)&&(I.deps=f,I.pendingEffect=r,C.__syncEffects||(C.__syncEffects=[]),C.__syncEffects.push(I))};
w8R=function(r,f){var I;f!=null?I=f:I=_.JnK(document).getAppContext();I.get(SCK).JSC$25335_getEventTarget().dispatchEvent(new x7w(hRE,r,fz))};
_.av=function(r,f){var I=I===void 0?{enableDevtools:!1}:I;var C=gI(function(){var Y=DE(SH);try{return P9(function(){var V=_.JnK(_.TZ(r)),S;var h=Ggl({rootElement:{value:r},appContext:I.appContext||(V==null?void 0:(S=V.getOptionalAppContext)==null?void 0:S.call(V)),dispatcher:V});V=oZ(h);h=qk(!0);bd++;try{lk(f(),r),lsw(!1)}catch(w){throw lsw(!0),w;}finally{qk(h),oZ(V)}},!1)}finally{DE(Y)}});
r[bEd]=!0;I.legacyTriggerSoyRendererEvents&&w8R(r,I.appContext);return function(){r.textContent="";C();r[bEd]=!1}};
_.Xl=function(r){if(Cxl(Bh)){var f;(f=ka.handleError)==null||f.call.apply(f,[ka].concat(_.Na(c9(Error("ac")))))}var I=OD,C=py;Promise.resolve().then(function(){I&&!I.isDisposed&&gI(function(){var Y=oZ(I);try{r()}finally{oZ(Y)}},{stack:C})})};
NC=function(r,f){gt(function(){return YL(r)},f)};
_.$E=function(r){Mk()?_.Xl(function(){YL(r)}):gt(function(){return YL(r)},[])};
nfU=function(r){var f=[].concat(_.Na(r));r.length=0;r=_.E(f);for(f=r.next();!f.done;f=r.next()){f=f.value;p8P(f);var I=f.pendingEffect;f.pendingEffect=null;if(I=I==null?void 0:I())f.pendingCleanup=I}};
p8P=function(r){var f=r.pendingCleanup;r.pendingCleanup=null;f==null||f()};
d7U=function(r,f){if(Mk())return r();var I=VJc("useMemoInternal");EfP(I.deps,f)&&(I.deps=f,I.value=r());return I.value};
Fl=function(r,f){return d7U(r,f)};
Pw=function(r){return d7U(r,[])};
zRq=function(){var r=_.XE.apply(0,arguments),f=Pw(function(){return r.map(function(I){return _.ld(I,void 0,"lnSD0c")})});
NC(function(){for(var I=0;I<r.length;I++)(0,f[I][1])(r[I])},r);
return f.map(function(I){return _.E(I).next().value})};
tn=function(r){return Pw(function(){return{value:r}})};
_.Tg=function(r,f){if(!r)return null;r=Object.keys(r);r=_.E(r);for(var I=r.next();!I.done;I=r.next()){I=I.value;var C=I.toLowerCase();if(C.indexOf(f,C.length-f.length)>-1)return I}return null};
_.Ww=function(){var r=arguments,f=_.cw;r.length>1?f[r[0]]=r[1]:r.length===1&&Object.assign(f,r[0])};
_.Lz=function(r,f){return r in _.cw?_.cw[r]:f};
_.mO=function(r,f){return!!_.Lz(r,f)};
MJc=function(r){var f=_.cw.EXPERIMENT_FLAGS;return f?f[r]:void 0};
amR=function(r){gfu.forEach(function(f){return f(r)})};
_.Jn=function(r){return r&&window.yterr?function(){try{return r.apply(this,arguments)}catch(f){_.eH(f)}}:r};
_.eH=function(r){var f=_.jH("yt.logging.errors.log");f?f(r,"ERROR",void 0,void 0,void 0,void 0,void 0):(f=_.Lz("ERRORS",[]),f.push([r,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.Ww("ERRORS",f));amR(r)};
_.Hw=function(r,f,I,C,Y){var V=_.jH("yt.logging.errors.log");V?V(r,"WARNING",f,I,C,void 0,Y):(V=_.Lz("ERRORS",[]),V.push([r,"WARNING",f,I,C,void 0,Y]),_.Ww("ERRORS",V))};
NbB=function(r,f){f=r.split(f);for(var I={},C=0,Y=f.length;C<Y;C++){var V=f[C].split("=");if(V.length===1&&V[0]||V.length===2)try{var S=X8q(V[0]||""),h=X8q(V[1]||"");if(S in I){var w=I[S];Array.isArray(w)?_.YC(w,h):I[S]=[w,h]}else I[S]=h}catch(g){var n=g,d=V[0],z=String(NbB);n.args=[{key:d,value:V[1],query:r,method:$7c===z?"unchanged":z}];FFc.hasOwnProperty(d)||_.Hw(n)}}return I};
PKq=function(r){var f=[];_.X0.forEach(r,function(I,C){var Y=_.ik(C);_.Rv(Array.isArray(I)?I:[I],function(V){V==""?f.push(Y):f.push(Y+"="+_.ik(V))})});
return f.join("&")};
_.vw=function(r){r.charAt(0)==="?"&&(r=r.substring(1));return NbB(r,"&")};
_.Kz=function(r){return r.indexOf("?")!==-1?(r=(r||"").split("#")[0],r=r.split("?",2),_.vw(r.length>1?r[1]:r[0])):{}};
_.yM=function(r,f){return tJK(r,f||{},!0)};
Tbc=function(r,f){return tJK(r,f||{},!1)};
tJK=function(r,f,I){var C=r.split("#",2);r=C[0];C=C.length>1?"#"+C[1]:"";var Y=r.split("?",2);r=Y[0];Y=_.vw(Y[1]||"");for(var V in f)if(I||!_.X0.containsKey(Y,V))Y[V]=f[V];return _.UQ(r,Y)+C};
QM=function(r){if(!f)var f=window.location.href;var I=_.sQ(r)[1]||null,C=_.OQ(r);return I&&C?ov(r,f):C?_.OQ(f)===C&&(Number(_.sQ(f)[4]||null)||null)===(Number(_.sQ(r)[4]||null)||null):!0};
_.WFK=function(r){r=cqU(r);return r===null?!1:r[0]==="com"&&r[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
cqU=function(r){r=_.OQ(r);return r!==null?r.split(".").reverse():null};
X8q=function(r){return r&&r.match(LFc)?r:An(r)};
_.ZY=function(r){return new m7R(r)};
_.a=function(){eRu||(eRu=new Jqu);return eRu};
HEE=function(r){var f=_.Gg,I,C;_.x(function(Y){I=_.a();return(C=I.resolve(_.ZY(f)))?(r(C),Y.return(Promise.resolve(C))):Y.return(I.resolve(new j6U(f)).then(function(V){r(V);return V}))})};
_.N=function(r){r=kE(r);return typeof r==="string"&&r==="false"?!1:!!r};
_.Bw=function(r,f){r=kE(r);return r===void 0&&f!==void 0?f:Number(r||0)};
iER=function(r){r=kE(r);return Array.isArray(r)?_.$X(r,function(f){return Number(f||0)}):[Number(r||0)]};
_.qC=function(r){r=kE(r);return r!==void 0?String(r):""};
_.uk=function(r){r=kE(r);return Array.isArray(r)?_.$X(r,function(f){return String(f||"")}):[String(r||"")]};
RRR=function(){return _.Lz("EXPERIMENTS_TOKEN","")};
kE=function(r){return _.Lz("EXPERIMENT_FLAGS",{})[r]};
vfw=function(){for(var r=[],f=_.Lz("EXPERIMENTS_FORCED_FLAGS",{}),I=_.E(Object.keys(f)),C=I.next();!C.done;C=I.next())C=C.value,r.push({key:C,value:String(f[C])});I=_.Lz("EXPERIMENT_FLAGS",{});C=_.E(Object.keys(I));for(var Y=C.next();!Y.done;Y=C.next())Y=Y.value,Y.startsWith("force_")&&f[Y]===void 0&&r.push({key:Y,value:String(I[Y])});return r};
yqd=function(){if(!KFR)return null;var r=KFR();return"open"in r?r:null};
_.U7K=function(r){switch(_.DY(r)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.DY=function(r){return r&&"status"in r?r.status:-1};
_.rl=function(r,f){typeof r==="function"&&(r=_.Jn(r));return window.setTimeout(r,f)};
_.ff=function(r,f){typeof r==="function"&&(r=_.Jn(r));return window.setInterval(r,f)};
_.I1=function(r){window.clearTimeout(r)};
OER=function(r){r=_.Kz(r);for(var f=_.E(s6q),I=f.next();!I.done;I=f.next())if(r[I.value]!==void 0)return!0;return!1};
Aqd=function(r,f,I,C,Y,V,S,h){I=I===void 0?"GET":I;C=C===void 0?"":C;h=h===void 0?!1:h;var w=yqd();if(!w)return null;var n=function(){(w&&"readyState"in w?w.readyState:0)===4&&f&&_.Jn(f)(w)};
"onloadend"in w?w.addEventListener("loadend",n,!1):w.onreadystatechange=n;_.N("debug_forward_web_query_parameters")&&(r=ofK(r,window.location.search));w.open(I,r,!0);V&&(w.responseType=V);S&&(w.withCredentials=!0);I=I==="POST"&&(window.FormData===void 0||!(C instanceof FormData));if(Y=Q6K(r,Y))for(var d in Y)w.setRequestHeader(d,Y[d]),"content-type"===d.toLowerCase()&&(I=!1);I&&w.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(h&&"setAttributionReporting"in XMLHttpRequest.prototype){r=
{eventSourceEligible:!0,triggerEligible:!1};try{w.setAttributionReporting(r)}catch(z){_.Hw(z)}}w.send(C);return w};
Q6K=function(r,f){f=f===void 0?{}:f;var I=QM(r),C=_.Lz("INNERTUBE_CLIENT_NAME"),Y=_.N("web_ajax_ignore_global_headers_if_set"),V;for(V in ZEd){var S=_.Lz(ZEd[V]),h=V==="X-Goog-AuthUser"||V==="X-Goog-PageId";V!=="X-Goog-Visitor-Id"||S||(S=_.Lz("VISITOR_DATA"));var w;if(!(w=!S)){if(!(w=I||(_.OQ(r)?!1:!0))){w=r;var n;if(n=_.N("add_auth_headers_to_remarketing_google_dot_com_ping")&&V==="Authorization"&&(C==="TVHTML5"||C==="TVHTML5_UNPLUGGED"||C==="TVHTML5_SIMPLY"))n=cqU(w),n=n===null?!1:n[1]==="google"?
!0:n[2]==="google"?n[0]==="au"&&n[1]==="com"?!0:n[0]==="uk"&&n[1]==="co"?!0:!1:!1;n&&(w=_.Cf(w)||"",w=w.split("/"),w="/"+(w.length>1?w[1]:""),n=w==="/pagead");w=n?!0:!1}w=!w}w||Y&&f[V]!==void 0||C==="TVHTML5_UNPLUGGED"&&h||(f[V]=S)}"X-Goog-EOM-Visitor-Id"in f&&"X-Goog-Visitor-Id"in f&&delete f["X-Goog-Visitor-Id"];if(I||!_.OQ(r))f["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(I||!_.OQ(r)){try{var d=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(z){}d&&(f["X-YouTube-Time-Zone"]=
d)}document.location.hostname.endsWith("youtubeeducation.com")||!I&&_.OQ(r)||(f["X-YouTube-Ad-Signals"]=PKq(G5$()));return f};
_.k5u=function(r,f){var I=_.OQ(r);_.N("debug_handle_relative_url_for_query_forward_killswitch")||!I&&QM(r)&&(I=document.location.hostname);var C=_.Cf(r);C=(I=I&&(I.endsWith("youtube.com")||I.endsWith("youtube-nocookie.com")))&&C&&C.startsWith("/api/");if(!I||C)return r;var Y=_.vw(f),V={};_.Rv(s6q,function(S){Y[S]&&(V[S]=Y[S])});
return Tbc(r,V)};
Bb$=function(r,f){f.method="POST";f.postParams||(f.postParams={});return _.lh(r,f)};
qCR=function(r,f){var I=_.Lz("XSRF_FIELD_NAME"),C;f.headers&&(C=f.headers["Content-Type"]);return!f.excludeXsrf&&(!_.OQ(r)||f.withCredentials||_.OQ(r)===document.location.hostname)&&f.method==="POST"&&(!C||C==="application/x-www-form-urlencoded")&&!(f.postParams&&f.postParams[I])};
_.lh=function(r,f){var I=f.format||"JSON";r=uKm(r,f);var C=D7c(r,f),Y=!1,V=r1R(r,function(w){if(!Y){Y=!0;h&&_.I1(h);var n=_.U7K(w),d=null,z=400<=w.status&&w.status<500,g=500<=w.status&&w.status<600;if(n||z||g)d=fom(r,I,w,f.convertToSafeHtml);n&&(n=IoB(I,w,d));d=d||{};z=f.context||_.Yq;n?f.onSuccess&&f.onSuccess.call(z,w,d):f.onError&&f.onError.call(z,w,d);f.onFinish&&f.onFinish.call(z,w,d)}},f.method,C,f.headers,f.responseType,f.withCredentials);
C=f.timeout||0;if(f.onTimeout&&C>0){var S=f.onTimeout;var h=_.rl(function(){Y||(Y=!0,V.abort(),_.I1(h),S.call(f.context||_.Yq,V))},C)}return V};
uKm=function(r,f){f.includeDomain&&(r=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+r);var I=_.Lz("XSRF_FIELD_NAME");if(f=f.urlParams)f[I]&&delete f[I],r=_.yM(r,f);return r};
D7c=function(r,f){var I=_.Lz("XSRF_FIELD_NAME"),C=_.Lz("XSRF_TOKEN"),Y=f.postBody||"",V=f.postParams;qCR(r,f)&&(V||(V={}),V[I]=C);(_.N("ajax_parse_query_data_only_when_filled")&&V&&Object.keys(V).length>0||V)&&typeof Y==="string"&&(Y=_.vw(Y),_.X0.extend(Y,V),Y=f.postBodyFormat&&f.postBodyFormat==="JSON"?JSON.stringify(Y):_.VD(Y));V=Y||V&&!_.X0.isEmpty(V);!Cyu&&V&&f.method!=="POST"&&(Cyu=!0,_.eH(Error("Gc")));return Y};
fom=function(r,f,I,C){var Y=null;switch(f){case "JSON":try{var V=I.responseText}catch(S){throw C=Error("Hc"),C.params=r,_.Hw(C),S;}r=I.getResponseHeader("Content-Type")||"";V&&r.indexOf("json")>=0&&(V.substring(0,5)===")]}'\n"&&(V=V.substring(5)),Y=JSON.parse(V));break;case "XML":if(r=(r=I.responseXML)?YlP(r):null)Y={},_.Rv(r.getElementsByTagName("*"),function(S){Y[S.tagName]=loE(S)})}C&&V5$(Y);
return Y};
V5$=function(r){if(_.lV(r))for(var f in r)f==="html_content"||hm(f,"_html")?r[f]=cL(r[f]):V5$(r[f])};
IoB=function(r,f,I){if(f&&f.status===204)return!0;switch(r){case "JSON":return!!I;case "XML":return Number(I&&I.return_code)===0;case "RAW":return!0;default:return!!I}};
YlP=function(r){return r?(r=("responseXML"in r?r.responseXML:r).getElementsByTagName("root"))&&r.length>0?r[0]:null:null};
loE=function(r){var f="";_.Rv(r.childNodes,function(I){f+=I.nodeValue});
return f};
EAR=function(r){if(r.name==="JavaException")return!0;r=r.stack;return r.includes("chrome://")||r.includes("chrome-extension://")||r.includes("moz-extension://")};
_.EH=function(r){_.Mu.call(this);this.JSC$8344_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!r};
xyR=function(r,f){var I=r.length,C=0,Y=function(){return r.charCodeAt(C++)};
do{var V=Sll(Y);if(V===Infinity)break;var S=V>>3;switch(V&7){case 0:V=Sll(Y);if(S===f)return V;break;case 1:if(S===f)return;C+=8;break;case 2:V=Sll(Y);if(S===f)return r.substr(C,V);C+=V;break;case 5:if(S===f)return;C+=4;break;default:return}}while(C<I)};
Sll=function(r){var f=r(),I=f&127;if(f<128)return I;f=r();I|=(f&127)<<7;if(f<128)return I;f=r();I|=(f&127)<<14;if(f<128)return I;f=r();return f<128?I|(f&127)<<21:Infinity};
wjl=function(r,f,I,C){if(r)if(Array.isArray(r)){var Y=C;for(C=0;C<r.length&&!(r[C]&&(Y+=hHK(C,r[C],f,I),Y>500));C++);C=Y}else if(typeof r==="object")for(Y in r){if(r[Y]){var V=Y;var S=r[Y],h=f,w=I;V=typeof S!=="string"||V!=="clickTrackingParams"&&V!=="trackingParams"?0:(S=xyR(atob(S.replace(/-/g,"+").replace(/_/g,"/")),2))?hHK(V+".ve",S,h,w):0;C+=V;C+=hHK(Y,r[Y],f,I);if(C>500)break}}else I[f]=Sh(r),C+=I[f].length;else I[f]=Sh(r),C+=I[f].length;return C};
hHK=function(r,f,I,C){I+="."+r;r=Sh(f);C[I]=r;return I.length+r.length};
Sh=function(r){try{return(typeof r==="string"?r:String(JSON.stringify(r))).substr(0,500)}catch(f){return"unable to serialize "+typeof r+" ("+f.message+")"}};
bAR=function(r){switch(r){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}};
_.hd=function(r,f,I,C,Y){_.xB.set(r,f,{maxAge:I,path:"/",domain:C===void 0?"youtube.com":C,secure:Y===void 0?!1:Y})};
_.pju=function(r,f,I){_.xB.remove(r,f===void 0?"/":f,I===void 0?"youtube.com":I)};
_.wl=function(){if(_.N("embeds_web_enable_cookie_detection_fix")){if(!_.Yq.navigator.cookieEnabled)return!1}else if(!_.xB.isEnabled())return!1;if(!_.xB.isEmpty())return!0;_.N("embeds_web_enable_cookie_detection_fix")?_.xB.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.xB.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.xB.get("TESTCOOKIESENABLED")!=="1")return!1;_.xB.remove("TESTCOOKIESENABLED");return!0};
nAU=function(){var r=_.Yq.navigator;return r?r.connection:void 0};
dyc=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(r){}};
_.M5c=function(){var r=nAU();if(r){var f=zHm[r.type||"unknown"]||"CONN_UNKNOWN";r=zHm[r.effectiveType||"unknown"]||"CONN_UNKNOWN";f==="CONN_CELLULAR_UNKNOWN"&&r!=="CONN_UNKNOWN"&&(f=r);if(f!=="CONN_UNKNOWN")return f;if(r!=="CONN_UNKNOWN")return r}};
aoK=function(){var r=nAU();if(r!=null&&r.effectiveType)return gAc.hasOwnProperty(r.effectiveType)?gAc[r.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.pf=function(){try{return _.bh(),!0}catch(r){return!1}};
_.bh=function(r){if(_.Lz("DATASYNC_ID")!==void 0)return _.Lz("DATASYNC_ID");throw new _.nf("Datasync ID not set",r===void 0?"unknown":r);};
_.dl=function(r){this.mechanism=r};
zU=function(r){this.mechanism=r};
MU=function(r){this.storage_=r;this.cachedIsStorageAvailable_=null};
XjU=function(){var r=null;try{r=_.Yq.localStorage||null}catch(f){}MU.call(this,r)};
NdK=function(){var r=null;try{r=_.Yq.sessionStorage||null}catch(f){}MU.call(this,r)};
gl=function(r,f){this.mechanism_=r;this.JSC$8446_prefix_=f+"::"};
_.$yK=function(r){var f=new XjU;return f.isAvailable()?r?new gl(f,r):f:null};
_.F0l=function(r){var f=new NdK;return f.isAvailable()?r?new gl(f,r):f:null};
t5c=function(){var r;return(r=PyR())==null?void 0:r.get("LAST_RESULT_ENTRY_KEY",!0)};
_.$B=function(r){TdE||(_.a1?_.a1.logError(r):(_.X8.push({type:"ERROR",payload:r}),_.X8.length>10&&_.X8.shift()))};
F8=function(r,f){TdE||(_.a1?_.a1.logEvent(r,f):(_.X8.push({type:"EVENT",eventType:r,payload:f}),_.X8.length>10&&_.X8.shift()))};
Pd=function(r){if(r.indexOf(":")>=0)throw Error("Oc");};
td=function(r){return r.substr(0,r.indexOf(":"))||r};
L0m=function(){return(c1R||W0d)&&TU("applewebkit")&&!TU("version")&&(!TU("safari")||TU("gsa/"))};
TU=function(r){var f=_.Mc();return f?f.toLowerCase().indexOf(r)>=0:!1};
J1u=function(r,f,I,C){f=td(f);var Y=r instanceof Error?r:Error("Pc`"+r);if(Y instanceof cd)return Y;r={objectStoreNames:I,dbName:f,dbVersion:C};if(Y.name==="QuotaExceededError")return new cd("QUOTA_EXCEEDED",r);if(_.Wd&&Y.name==="UnknownError")return new cd("QUOTA_MAYBE_EXCEEDED",r);if(Y instanceof myl)return new cd("MISSING_INDEX",Object.assign({},r,{objectStore:Y.objectStore,index:Y.index}));if(Y.name==="InvalidStateError"&&eH$.some(function(V){return Y.message.includes(V)}))return new cd("EXECUTE_TRANSACTION_ON_CLOSED_DB",
r);
if(Y.name==="AbortError")return new cd("UNKNOWN_ABORT",r,Y.message);Y.args=[Object.assign({},r,{name:"IdbError",originalName:Y.name})];Y.level="WARNING";return Y};
Lf=function(r,f,I){var C=t5c();return new cd("IDB_NOT_SUPPORTED",{context:{caller:r,publicName:f,version:I,hasSucceededOnce:C==null?void 0:C.hasSucceededOnce}})};
jom=function(r){if(!r)throw Error();throw r;};
HAw=function(r){return r};
iAP=function(r,f,I){var C=function(){try{r.removeEventListener("success",Y),r.removeEventListener("error",V)}catch(S){}},Y=function(){f(r.result);
C()},V=function(){I(r.error);
C()};
r.addEventListener("success",Y);r.addEventListener("error",V)};
RHm=function(r){return new Promise(function(f,I){iAP(r,f,I)})};
Jd=function(r){return new mM(new eh(function(f,I){iAP(r,f,I)}))};
vAE=function(r,f){return new mM(new eh(function(I,C){var Y=function(){var V=r?f(r):null;V?V.then(function(S){r=S;Y()},C):I()};
Y()}))};
y1$=function(r,f,I){return new Promise(function(C,Y){var V=f!==void 0?self.indexedDB.open(r,f):self.indexedDB.open(r);var S=I.blocked,h=I.blocking,w=I.terminated,n=I.upgrade,d=I.closed,z,g=function(){z||(z=new jh(V.result,{closed:d}));return z};
V.addEventListener("upgradeneeded",function(X){try{if(X.newVersion===null)throw Error("Uc");if(V.transaction===null)throw Error("Vc");X.dataLoss&&X.dataLoss!=="none"&&F8("IDB_DATA_CORRUPTED",{reason:X.dataLossMessage||"unknown reason",dbName:td(r)});var P=g(),W=new K0R(V.transaction);n&&n(P,function(m){return X.oldVersion<m&&X.newVersion>=m},W);
W.done.catch(function(m){Y(m)})}catch(m){Y(m)}});
V.addEventListener("success",function(){var X=V.result;h&&X.addEventListener("versionchange",function(){h(g())});
X.addEventListener("close",function(){F8("IDB_UNEXPECTEDLY_CLOSED",{dbName:td(r),dbVersion:X.version});w&&w()});
C(g())});
V.addEventListener("error",function(){Y(V.error)});
S&&V.addEventListener("blocked",function(){S()})})};
UyB=function(r,f,I){I=I===void 0?{}:I;return y1$(r,f,I)};
_.ih=function(r,f){f=f===void 0?{}:f;var I,C,Y,V;return _.x(function(S){if(S.nextAddress==1)return _.l_(S,2),I=self.indexedDB.deleteDatabase(r),C=f,(Y=C.blocked)&&I.addEventListener("blocked",function(){Y()}),_.b(S,RHm(I),4);
if(S.nextAddress!=2)return _.Hd(S,0);V=_.ha(S);throw J1u(V,r,"",-1);})};
OAE=function(r,f){var I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,_.R1(soB,f),2);I=C.yieldResult;return C.return(_.vd(I,["databases"],{enableRetries:!0,mode:"readwrite"},function(Y){var V=Y.objectStore("databases");return V.get(r.actualName).then(function(S){if(S?r.actualName!==S.actualName||r.publicName!==S.publicName||r.userIdentifier!==S.userIdentifier:1)return V.put(r).then(function(){})})}))})};
_.Kf=function(r,f){var I;return _.x(function(C){if(C.nextAddress==1)return r?_.b(C,_.R1(soB,f),2):C.return();I=C.yieldResult;return C.return(I.delete("databases",r))})};
_.oAw=function(r,f){var I,C;return _.x(function(Y){return Y.nextAddress==1?(I=[],_.b(Y,_.R1(soB,f),2)):Y.nextAddress!=3?(C=Y.yieldResult,_.b(Y,_.vd(C,["databases"],{enableRetries:!0,mode:"readonly"},function(V){I.length=0;return yD(V.objectStore("databases"),{},function(S){r(S.getValue())&&I.push(S.getValue());return S.continue()})}),3)):Y.return(I)})};
Qol=function(r,f){return _.oAw(function(I){return I.publicName===r&&I.userIdentifier!==void 0},f)};
GIR=function(){var r,f,I,C;return _.x(function(Y){switch(Y.nextAddress){case 1:r=t5c();if((f=r)==null?0:f.hasSucceededOnce)return Y.return(!0);var V;if(V=A1d)V=/WebKit\/([0-9]+)/.exec(_.Mc()),V=!!(V&&parseInt(V[1],10)>=600);V&&(V=/WebKit\/([0-9]+)/.exec(_.Mc()),V=!(V&&parseInt(V[1],10)>=602));if(V||UH)return Y.return(!1);try{if(I=self,!(I.indexedDB&&I.IDBIndex&&I.IDBKeyRange&&I.IDBObjectStore))return Y.return(!1)}catch(S){return Y.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return Y.return(!1);
_.l_(Y,2);C={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.b(Y,OAE(C,ZA$),4);case 4:return _.b(Y,_.Kf("yt-idb-test-do-not-use",ZA$),5);case 5:return Y.return(!0);case 2:return _.ha(Y),Y.return(!1)}})};
Bdw=function(){if(kIw!==void 0)return kIw;TdE=!0;return kIw=GIR().then(function(r){TdE=!1;var f;if((f=PyR())!=null&&f.expiringStorage_){var I;f={hasSucceededOnce:((I=t5c())==null?void 0:I.hasSucceededOnce)||r};var C;(C=PyR())==null||C.set("LAST_RESULT_ENTRY_KEY",f,2592E3,!0)}return r})};
sH=function(){return _.jH("ytglobal.idbToken_")||void 0};
_.o1=function(){var r=sH();return r?Promise.resolve(r):Bdw().then(function(f){(f=f?ZA$:void 0)&&_.OH("ytglobal.idbToken_",f);return f})};
ql$=function(r){if(!_.pf())throw r=new cd("AUTH_INVALID",{dbName:r}),_.$B(r),r;var f=_.bh();return{actualName:r+":"+f,publicName:r,userIdentifier:f}};
u6K=function(r,f,I,C){var Y,V,S,h,w,n;return _.x(function(d){switch(d.nextAddress){case 1:return V=(Y=Error().stack)!=null?Y:"",_.b(d,_.o1(),2);case 2:S=d.yieldResult;if(!S)throw h=Lf("openDbImpl",r,f),_.N("ytidb_async_stack_killswitch")||(h.stack=h.stack+"\n"+V.substring(V.indexOf("\n")+1)),_.$B(h),h;Pd(r);w=I?{actualName:r,publicName:r,userIdentifier:void 0}:ql$(r);_.l_(d,3);return _.b(d,OAE(w,S),5);case 5:return _.b(d,UyB(w.actualName,f,C),6);case 6:return d.return(d.yieldResult);case 3:return n=
_.ha(d),_.l_(d,7),_.b(d,_.Kf(w.actualName,S),9);case 9:_.Hd(d,8);break;case 7:_.ha(d);case 8:throw n;}})};
Dym=function(r,f,I){I=I===void 0?{}:I;return u6K(r,f,!1,I)};
rZ$=function(r,f,I){I=I===void 0?{}:I;return u6K(r,f,!0,I)};
fkP=function(r,f){f=f===void 0?{}:f;var I,C;return _.x(function(Y){if(Y.nextAddress==1)return _.b(Y,_.o1(),2);if(Y.nextAddress!=3){I=Y.yieldResult;if(!I)return Y.return();Pd(r);C=ql$(r);return _.b(Y,_.ih(C.actualName,f),3)}return _.b(Y,_.Kf(C.actualName,I),0)})};
Ikq=function(r,f,I){r=r.map(function(C){return _.x(function(Y){return Y.nextAddress==1?_.b(Y,_.ih(C.actualName,f),2):_.b(Y,_.Kf(C.actualName,I),0)})});
return Promise.all(r).then(function(){})};
Cmc=function(r){var f=f===void 0?{}:f;var I,C;return _.x(function(Y){if(Y.nextAddress==1)return _.b(Y,_.o1(),2);if(Y.nextAddress!=3){I=Y.yieldResult;if(!I)return Y.return();Pd(r);return _.b(Y,Qol(r,I),3)}C=Y.yieldResult;return _.b(Y,Ikq(C,f,I),0)})};
Y_R=function(r,f){f=f===void 0?{}:f;var I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,_.o1(),2);if(C.nextAddress!=3){I=C.yieldResult;if(!I)return C.return();Pd(r);return _.b(C,_.ih(r,f),3)}return _.b(C,_.Kf(r,I),0)})};
QD=function(r,f){return lkq(r,f)};
EIP=function(r){return _.R1(V_q(),r)};
S_u=function(r,f,I,C){var Y,V,S;return _.x(function(h){switch(h.nextAddress){case 1:return Y={config:r,hashData:f,timestamp:C!==void 0?C:(0,_.Ad)()},_.b(h,EIP(I),2);case 2:return V=h.yieldResult,_.b(h,V.clear("hotConfigStore"),3);case 3:return _.b(h,V.put("hotConfigStore",Y),4);case 4:return S=h.yieldResult,h.return(S)}})};
xoK=function(r,f,I,C,Y){var V,S,h;return _.x(function(w){switch(w.nextAddress){case 1:return V={config:r,hashData:f,configData:I,timestamp:Y!==void 0?Y:(0,_.Ad)()},_.b(w,EIP(C),2);case 2:return S=w.yieldResult,_.b(w,S.clear("coldConfigStore"),3);case 3:return _.b(w,S.put("coldConfigStore",V),4);case 4:return h=w.yieldResult,w.return(h)}})};
hdd=function(r){var f,I;return _.x(function(C){return C.nextAddress==1?_.b(C,EIP(r),2):C.nextAddress!=3?(f=C.yieldResult,I=void 0,_.b(C,_.vd(f,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(Y){return _.Zy(Y.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(V){I=V.getValue()})}),3)):C.return(I)})};
wFu=function(r){var f,I;return _.x(function(C){return C.nextAddress==1?_.b(C,EIP(r),2):C.nextAddress!=3?(f=C.yieldResult,I=void 0,_.b(C,_.vd(f,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(Y){return _.Zy(Y.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(V){I=V.getValue()})}),3)):C.return(I)})};
beR=function(){return _.x(function(r){return _.b(r,Cmc("ytGcfConfig"),0)})};
pFm=function(){return"INNERTUBE_API_KEY"in _.cw&&"INNERTUBE_API_VERSION"in _.cw};
_.GU=function(){return{innertubeApiKey:_.Lz("INNERTUBE_API_KEY"),innertubeApiVersion:_.Lz("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Lz("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Lz("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Lz("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Lz("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Lz("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Lz("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Lz("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.mO("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.mO("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Lz("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.XFw=function(r){var f={client:{hl:r.innertubeContextHostLanguage,gl:r.innertubeContextGeoLocation,clientName:r.innertubeContextClientName,clientVersion:r.innertubeContextClientVersion,configInfo:r.innertubeContextClientConfigInfo}};navigator.userAgent&&(f.client.userAgent=String(navigator.userAgent));var I=_.Yq.devicePixelRatio;I&&I!=1&&(f.client.screenDensityFloat=String(I));I=RRR();I!==""&&(f.client.experimentsToken=I);I=vfw();I.length>0&&(f.request={internalExperimentFlags:I});nIK(r,void 0,f);
doB(void 0,f);zdK(void 0,f);M_P(r,void 0,f);gIq(void 0,f);_.N("start_client_gcf")&&akR(void 0,f);_.Lz("DELEGATED_SESSION_ID")&&!_.N("pageid_as_header_web")&&(f.user={onBehalfOfUser:_.Lz("DELEGATED_SESSION_ID")});!_.N("fill_delegate_context_in_gel_killswitch")&&(r=_.Lz("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(f.user=Object.assign({},f.user,{serializedDelegationContext:r}));r=_.Lz("INNERTUBE_CONTEXT");var C;if(_.N("enable_persistent_device_token")&&(r==null?0:(C=r.client)==null?0:C.rolloutToken)){var Y;
f.client.rolloutToken=r==null?void 0:(Y=r.client)==null?void 0:Y.rolloutToken}C=Object;Y=C.assign;r=f.client;I={};for(var V=_.E(Object.entries(_.vw(_.Lz("DEVICE","")))),S=V.next();!S.done;S=V.next()){var h=_.E(S.value);S=h.next().value;h=h.next().value;S==="cbrand"?I.deviceMake=h:S==="cmodel"?I.deviceModel=h:S==="cbr"?I.browserName=h:S==="cbrver"?I.browserVersion=h:S==="cos"?I.osName=h:S==="cosver"?I.osVersion=h:S==="cplatform"&&(I.platform=h)}f.client=Y.call(C,r,I);return f};
nIK=function(r,f,I){r=r.innertubeContextClientName;if(r==="WEB"||r==="MWEB"||r===1||r===2)if(f){I=_.kB(f,NX$,96)||new NX$;var C=$ow();C=Object.keys(FwK).indexOf(C);C=C===-1?null:C;C!==null&&_.Bd(I,3,C);_.CK(f,96,I)}else I&&(I.client.mainAppWebInfo=(C=I.client.mainAppWebInfo)!=null?C:{},I.client.mainAppWebInfo.webDisplayMode=$ow())};
doB=function(r,f){var I=_.jH("yt.embedded_player.embed_url");I&&(r?(f=_.kB(r,PmK,7)||new PmK,_.w5(f,4,I),_.CK(r,7,f)):f&&(f.thirdParty={embedUrl:I}))};
zdK=function(r,f){var I;if(_.N("web_log_memory_total_kbytes")&&((I=_.Yq.navigator)==null?0:I.deviceMemory)){var C;I=(C=_.Yq.navigator)==null?void 0:C.deviceMemory;r?_.qU(r,95,JU(I*1E6)):f&&(f.client.memoryTotalKbytes=""+I*1E6)}};
M_P=function(r,f,I){if(r.appInstallData)if(f){var C;I=(C=_.kB(f,uh,62))!=null?C:new uh;_.w5(I,6,r.appInstallData);_.CK(f,62,I)}else I&&(I.client.configInfo=I.client.configInfo||{},I.client.configInfo.appInstallData=r.appInstallData)};
gIq=function(r,f){var I=_.M5c();I&&(r?_.Bd(r,61,t_$[I]):f&&(f.client.connectionType=I));_.N("web_log_effective_connection_type")&&(I=aoK())&&(r?_.Bd(r,94,TXl[I]):f&&(f.client.effectiveConnectionType=I))};
_.Lwu=function(r,f,I){I=I===void 0?{}:I;var C={};_.Lz("EOM_VISITOR_DATA")?C={"X-Goog-EOM-Visitor-Id":_.Lz("EOM_VISITOR_DATA")}:C={"X-Goog-Visitor-Id":I.visitorData||_.Lz("VISITOR_DATA","")};if(f&&f.includes("www.youtube-nocookie.com"))return C;f=I.authorization||_.Lz("AUTHORIZATION");f||(r?f="Bearer "+_.jH("gapi.auth.getToken")().access_token:(cZK.instance||(cZK.instance=new cZK),r=Wwd(),_.N("pageid_as_header_web")||delete r["X-Goog-PageId"],C=Object.assign({},C,r)));f&&(C.Authorization=f);return C};
akR=function(r,f){var I=moR();if(I){var C=I.coldConfigData,Y=I.coldHashData;I=I.hotHashData;if(r){var V;f=(V=_.kB(r,uh,62))!=null?V:new uh;C=_.w5(f,1,C);_.w5(C,3,Y).setHotHashData(I);_.CK(r,62,f)}else f&&(f.client.configInfo=f.client.configInfo||{},C&&(f.client.configInfo.coldConfigData=C),Y&&(f.client.configInfo.coldHashData=Y),I&&(f.client.configInfo.hotHashData=I))}};
Dy=function(r){for(var f=r.length;--f>=0;)r[f]=0};
edK=function(r,f,I,C,Y){this.static_tree=r;this.extra_bits=f;this.extra_base=I;this.elems=C;this.max_length=Y;this.has_stree=r&&r.length};
JZR=function(r,f){this.dyn_tree=r;this.max_code=0;this.stat_desc=f};
rU=function(r,f){r.pending_buf[r.pending++]=f&255;r.pending_buf[r.pending++]=f>>>8&255};
fW=function(r,f,I){r.bi_valid>16-I?(r.bi_buf|=f<<r.bi_valid&65535,rU(r,r.bi_buf),r.bi_buf=f>>16-r.bi_valid,r.bi_valid+=I-16):(r.bi_buf|=f<<r.bi_valid&65535,r.bi_valid+=I)};
Ih=function(r,f,I){fW(r,I[f*2],I[f*2+1])};
jlw=function(r,f){var I=0;do I|=r&1,r>>>=1,I<<=1;while(--f>0);return I>>>1};
HeK=function(r,f,I){var C=Array(16),Y=0,V;for(V=1;V<=15;V++)C[V]=Y=Y+I[V-1]<<1;for(I=0;I<=f;I++)Y=r[I*2+1],Y!==0&&(r[I*2]=jlw(C[Y]++,Y))};
iec=function(r){var f;for(f=0;f<286;f++)r.dyn_ltree[f*2]=0;for(f=0;f<30;f++)r.dyn_dtree[f*2]=0;for(f=0;f<19;f++)r.bl_tree[f*2]=0;r.dyn_ltree[512]=1;r.opt_len=r.static_len=0;r.last_lit=r.matches=0};
RdB=function(r){r.bi_valid>8?rU(r,r.bi_buf):r.bi_valid>0&&(r.pending_buf[r.pending++]=r.bi_buf);r.bi_buf=0;r.bi_valid=0};
vIB=function(r,f,I){RdB(r);rU(r,I);rU(r,~I);CW.arraySet(r.pending_buf,r.window,f,I,r.pending);r.pending+=I};
KwP=function(r,f,I,C){var Y=f*2,V=I*2;return r[Y]<r[V]||r[Y]===r[V]&&C[f]<=C[I]};
yZ$=function(r,f,I){for(var C=r.heap[I],Y=I<<1;Y<=r.heap_len;){Y<r.heap_len&&KwP(f,r.heap[Y+1],r.heap[Y],r.depth)&&Y++;if(KwP(f,C,r.heap[Y],r.depth))break;r.heap[I]=r.heap[Y];I=Y;Y<<=1}r.heap[I]=C};
QlP=function(r,f,I){var C=0;if(r.last_lit!==0){do{var Y=r.pending_buf[r.d_buf+C*2]<<8|r.pending_buf[r.d_buf+C*2+1];var V=r.pending_buf[r.l_buf+C];C++;if(Y===0)Ih(r,V,f);else{var S=Yo[V];Ih(r,S+256+1,f);var h=Uoc[S];h!==0&&(V-=slq[S],fW(r,V,h));Y--;S=Y<256?lx[Y]:lx[256+(Y>>>7)];Ih(r,S,I);h=Oec[S];h!==0&&(Y-=oIU[S],fW(r,Y,h))}}while(C<r.last_lit)}Ih(r,256,f)};
AZu=function(r,f){var I=f.dyn_tree,C=f.stat_desc.static_tree,Y=f.stat_desc.has_stree,V=f.stat_desc.elems,S,h=-1;r.heap_len=0;r.heap_max=573;for(S=0;S<V;S++)I[S*2]!==0?(r.heap[++r.heap_len]=h=S,r.depth[S]=0):I[S*2+1]=0;for(;r.heap_len<2;){var w=r.heap[++r.heap_len]=h<2?++h:0;I[w*2]=1;r.depth[w]=0;r.opt_len--;Y&&(r.static_len-=C[w*2+1])}f.max_code=h;for(S=r.heap_len>>1;S>=1;S--)yZ$(r,I,S);w=V;do S=r.heap[1],r.heap[1]=r.heap[r.heap_len--],yZ$(r,I,1),C=r.heap[1],r.heap[--r.heap_max]=S,r.heap[--r.heap_max]=
C,I[w*2]=I[S*2]+I[C*2],r.depth[w]=(r.depth[S]>=r.depth[C]?r.depth[S]:r.depth[C])+1,I[S*2+1]=I[C*2+1]=w,r.heap[1]=w++,yZ$(r,I,1);while(r.heap_len>=2);r.heap[--r.heap_max]=r.heap[1];S=f.dyn_tree;w=f.max_code;C=f.stat_desc.static_tree;Y=f.stat_desc.has_stree;V=f.stat_desc.extra_bits;var n=f.stat_desc.extra_base,d=f.stat_desc.max_length,z,g=0;for(z=0;z<=15;z++)r.bl_count[z]=0;S[r.heap[r.heap_max]*2+1]=0;for(f=r.heap_max+1;f<573;f++){var X=r.heap[f];z=S[S[X*2+1]*2+1]+1;z>d&&(z=d,g++);S[X*2+1]=z;if(!(X>
w)){r.bl_count[z]++;var P=0;X>=n&&(P=V[X-n]);var W=S[X*2];r.opt_len+=W*(z+P);Y&&(r.static_len+=W*(C[X*2+1]+P))}}if(g!==0){do{for(z=d-1;r.bl_count[z]===0;)z--;r.bl_count[z]--;r.bl_count[z+1]+=2;r.bl_count[d]--;g-=2}while(g>0);for(z=d;z!==0;z--)for(X=r.bl_count[z];X!==0;)C=r.heap[--f],C>w||(S[C*2+1]!==z&&(r.opt_len+=(z-S[C*2+1])*S[C*2],S[C*2+1]=z),X--)}HeK(I,h,r.bl_count)};
ZeP=function(r,f,I){var C,Y=-1,V=f[1],S=0,h=7,w=4;V===0&&(h=138,w=3);f[(I+1)*2+1]=65535;for(C=0;C<=I;C++){var n=V;V=f[(C+1)*2+1];++S<h&&n===V||(S<w?r.bl_tree[n*2]+=S:n!==0?(n!==Y&&r.bl_tree[n*2]++,r.bl_tree[32]++):S<=10?r.bl_tree[34]++:r.bl_tree[36]++,S=0,Y=n,V===0?(h=138,w=3):n===V?(h=6,w=3):(h=7,w=4))}};
GMw=function(r,f,I){var C,Y=-1,V=f[1],S=0,h=7,w=4;V===0&&(h=138,w=3);for(C=0;C<=I;C++){var n=V;V=f[(C+1)*2+1];if(!(++S<h&&n===V)){if(S<w){do Ih(r,n,r.bl_tree);while(--S!==0)}else n!==0?(n!==Y&&(Ih(r,n,r.bl_tree),S--),Ih(r,16,r.bl_tree),fW(r,S-3,2)):S<=10?(Ih(r,17,r.bl_tree),fW(r,S-3,3)):(Ih(r,18,r.bl_tree),fW(r,S-11,7));S=0;Y=n;V===0?(h=138,w=3):n===V?(h=6,w=3):(h=7,w=4)}}};
kMl=function(r){var f=4093624447,I;for(I=0;I<=31;I++,f>>>=1)if(f&1&&r.dyn_ltree[I*2]!==0)return 0;if(r.dyn_ltree[18]!==0||r.dyn_ltree[20]!==0||r.dyn_ltree[26]!==0)return 1;for(I=32;I<256;I++)if(r.dyn_ltree[I*2]!==0)return 1;return 0};
V9=function(r,f,I){r.pending_buf[r.d_buf+r.last_lit*2]=f>>>8&255;r.pending_buf[r.d_buf+r.last_lit*2+1]=f&255;r.pending_buf[r.l_buf+r.last_lit]=I&255;r.last_lit++;f===0?r.dyn_ltree[I*2]++:(r.matches++,f--,r.dyn_ltree[(Yo[I]+256+1)*2]++,r.dyn_dtree[(f<256?lx[f]:lx[256+(f>>>7)])*2]++);return r.last_lit===r.lit_bufsize-1};
SM=function(r,f){r.msg=Ej[f];return f};
xo=function(r){for(var f=r.length;--f>=0;)r[f]=0};
hV=function(r){var f=r.state,I=f.pending;I>r.avail_out&&(I=r.avail_out);I!==0&&(CW.arraySet(r.output,f.pending_buf,f.pending_out,I,r.next_out),r.next_out+=I,f.pending_out+=I,r.total_out+=I,r.avail_out-=I,f.pending-=I,f.pending===0&&(f.pending_out=0))};
nW=function(r,f){var I=r.block_start>=0?r.block_start:-1,C=r.strstart-r.block_start,Y=0;if(r.level>0){r.strm.data_type===2&&(r.strm.data_type=kMl(r));AZu(r,r.l_desc);AZu(r,r.d_desc);ZeP(r,r.dyn_ltree,r.l_desc.max_code);ZeP(r,r.dyn_dtree,r.d_desc.max_code);AZu(r,r.bl_desc);for(Y=18;Y>=3&&r.bl_tree[BXw[Y]*2+1]===0;Y--);r.opt_len+=3*(Y+1)+5+5+4;var V=r.opt_len+3+7>>>3;var S=r.static_len+3+7>>>3;S<=V&&(V=S)}else V=S=C+5;if(C+4<=V&&I!==-1)fW(r,f?1:0,3),vIB(r,I,C);else if(r.strategy===4||S===V)fW(r,2+(f?
1:0),3),QlP(r,wU,bx);else{fW(r,4+(f?1:0),3);I=r.l_desc.max_code+1;C=r.d_desc.max_code+1;Y+=1;fW(r,I-257,5);fW(r,C-1,5);fW(r,Y-4,4);for(V=0;V<Y;V++)fW(r,r.bl_tree[BXw[V]*2+1],3);GMw(r,r.dyn_ltree,I-1);GMw(r,r.dyn_dtree,C-1);QlP(r,r.dyn_ltree,r.dyn_dtree)}iec(r);f&&RdB(r);r.block_start=r.strstart;hV(r.strm)};
zO=function(r,f){r.pending_buf[r.pending++]=f};
M4=function(r,f){r.pending_buf[r.pending++]=f>>>8&255;r.pending_buf[r.pending++]=f&255};
q_q=function(r,f){var I=r.max_chain_length,C=r.strstart,Y=r.prev_length,V=r.nice_match,S=r.strstart>r.w_size-262?r.strstart-(r.w_size-262):0,h=r.window,w=r.w_mask,n=r.prev,d=r.strstart+258,z=h[C+Y-1],g=h[C+Y];r.prev_length>=r.good_match&&(I>>=2);V>r.lookahead&&(V=r.lookahead);do{var X=f;if(h[X+Y]===g&&h[X+Y-1]===z&&h[X]===h[C]&&h[++X]===h[C+1]){C+=2;for(X++;h[++C]===h[++X]&&h[++C]===h[++X]&&h[++C]===h[++X]&&h[++C]===h[++X]&&h[++C]===h[++X]&&h[++C]===h[++X]&&h[++C]===h[++X]&&h[++C]===h[++X]&&C<d;);
X=258-(d-C);C=d-258;if(X>Y){r.match_start=f;Y=X;if(X>=V)break;z=h[C+Y-1];g=h[C+Y]}}}while((f=n[f&w])>S&&--I!==0);return Y<=r.lookahead?Y:r.lookahead};
ah=function(r){var f=r.w_size,I;do{var C=r.window_size-r.lookahead-r.strstart;if(r.strstart>=f+(f-262)){CW.arraySet(r.window,r.window,f,f,0);r.match_start-=f;r.strstart-=f;r.block_start-=f;var Y=I=r.hash_size;do{var V=r.head[--Y];r.head[Y]=V>=f?V-f:0}while(--I);Y=I=f;do V=r.prev[--Y],r.prev[Y]=V>=f?V-f:0;while(--I);C+=f}if(r.strm.avail_in===0)break;Y=r.strm;I=r.window;V=r.strstart+r.lookahead;var S=Y.avail_in;S>C&&(S=C);S===0?I=0:(Y.avail_in-=S,CW.arraySet(I,Y.input,Y.next_in,S,V),Y.state.wrap===
1?Y.adler=ucR(Y.adler,I,S,V):Y.state.wrap===2&&(Y.adler=gU(Y.adler,I,S,V)),Y.next_in+=S,Y.total_in+=S,I=S);r.lookahead+=I;if(r.lookahead+r.insert>=3)for(C=r.strstart-r.insert,r.ins_h=r.window[C],r.ins_h=(r.ins_h<<r.hash_shift^r.window[C+1])&r.hash_mask;r.insert&&!(r.ins_h=(r.ins_h<<r.hash_shift^r.window[C+3-1])&r.hash_mask,r.prev[C&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=C,C++,r.insert--,r.lookahead+r.insert<3););}while(r.lookahead<262&&r.strm.avail_in!==0)};
Doq=function(r,f){for(var I;;){if(r.lookahead<262){ah(r);if(r.lookahead<262&&f===0)return 1;if(r.lookahead===0)break}I=0;r.lookahead>=3&&(r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+3-1])&r.hash_mask,I=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart);I!==0&&r.strstart-I<=r.w_size-262&&(r.match_length=q_q(r,I));if(r.match_length>=3)if(I=V9(r,r.strstart-r.match_start,r.match_length-3),r.lookahead-=r.match_length,r.match_length<=r.max_lazy_match&&r.lookahead>=3){r.match_length--;
do r.strstart++,r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+3-1])&r.hash_mask,r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart;while(--r.match_length!==0);r.strstart++}else r.strstart+=r.match_length,r.match_length=0,r.ins_h=r.window[r.strstart],r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+1])&r.hash_mask;else I=V9(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++;if(I&&(nW(r,!1),r.strm.avail_out===0))return 1}r.insert=r.strstart<2?r.strstart:2;return f===4?(nW(r,
!0),r.strm.avail_out===0?3:4):r.last_lit&&(nW(r,!1),r.strm.avail_out===0)?1:2};
X_=function(r,f){for(var I,C;;){if(r.lookahead<262){ah(r);if(r.lookahead<262&&f===0)return 1;if(r.lookahead===0)break}I=0;r.lookahead>=3&&(r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+3-1])&r.hash_mask,I=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart);r.prev_length=r.match_length;r.prev_match=r.match_start;r.match_length=2;I!==0&&r.prev_length<r.max_lazy_match&&r.strstart-I<=r.w_size-262&&(r.match_length=q_q(r,I),r.match_length<=5&&(r.strategy===1||r.match_length===3&&
r.strstart-r.match_start>4096)&&(r.match_length=2));if(r.prev_length>=3&&r.match_length<=r.prev_length){C=r.strstart+r.lookahead-3;I=V9(r,r.strstart-1-r.prev_match,r.prev_length-3);r.lookahead-=r.prev_length-1;r.prev_length-=2;do++r.strstart<=C&&(r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+3-1])&r.hash_mask,r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart);while(--r.prev_length!==0);r.match_available=0;r.match_length=2;r.strstart++;if(I&&(nW(r,!1),r.strm.avail_out===0))return 1}else if(r.match_available){if((I=
V9(r,0,r.window[r.strstart-1]))&&nW(r,!1),r.strstart++,r.lookahead--,r.strm.avail_out===0)return 1}else r.match_available=1,r.strstart++,r.lookahead--}r.match_available&&(V9(r,0,r.window[r.strstart-1]),r.match_available=0);r.insert=r.strstart<2?r.strstart:2;return f===4?(nW(r,!0),r.strm.avail_out===0?3:4):r.last_lit&&(nW(r,!1),r.strm.avail_out===0)?1:2};
rQK=function(r,f){for(var I,C,Y,V=r.window;;){if(r.lookahead<=258){ah(r);if(r.lookahead<=258&&f===0)return 1;if(r.lookahead===0)break}r.match_length=0;if(r.lookahead>=3&&r.strstart>0&&(C=r.strstart-1,I=V[C],I===V[++C]&&I===V[++C]&&I===V[++C])){for(Y=r.strstart+258;I===V[++C]&&I===V[++C]&&I===V[++C]&&I===V[++C]&&I===V[++C]&&I===V[++C]&&I===V[++C]&&I===V[++C]&&C<Y;);r.match_length=258-(Y-C);r.match_length>r.lookahead&&(r.match_length=r.lookahead)}r.match_length>=3?(I=V9(r,1,r.match_length-3),r.lookahead-=
r.match_length,r.strstart+=r.match_length,r.match_length=0):(I=V9(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++);if(I&&(nW(r,!1),r.strm.avail_out===0))return 1}r.insert=0;return f===4?(nW(r,!0),r.strm.avail_out===0?3:4):r.last_lit&&(nW(r,!1),r.strm.avail_out===0)?1:2};
fx$=function(r,f){for(var I;;){if(r.lookahead===0&&(ah(r),r.lookahead===0)){if(f===0)return 1;break}r.match_length=0;I=V9(r,0,r.window[r.strstart]);r.lookahead--;r.strstart++;if(I&&(nW(r,!1),r.strm.avail_out===0))return 1}r.insert=0;return f===4?(nW(r,!0),r.strm.avail_out===0?3:4):r.last_lit&&(nW(r,!1),r.strm.avail_out===0)?1:2};
N4=function(r,f,I,C,Y){this.good_length=r;this.max_lazy=f;this.nice_length=I;this.max_chain=C;this.func=Y};
Ixq=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 CW.Buf16(1146);this.dyn_dtree=new CW.Buf16(122);this.bl_tree=new CW.Buf16(78);xo(this.dyn_ltree);xo(this.dyn_dtree);xo(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new CW.Buf16(16);this.heap=new CW.Buf16(573);xo(this.heap);this.heap_max=this.heap_len=0;this.depth=new CW.Buf16(573);xo(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};
CX$=function(r,f){if(!r||!r.state||f>5||f<0)return r?SM(r,-2):-2;var I=r.state;if(!r.output||!r.input&&r.avail_in!==0||I.status===666&&f!==4)return SM(r,r.avail_out===0?-5:-2);I.strm=r;var C=I.last_flush;I.last_flush=f;if(I.status===42)if(I.wrap===2)r.adler=0,zO(I,31),zO(I,139),zO(I,8),I.gzhead?(zO(I,(I.gzhead.text?1:0)+(I.gzhead.hcrc?2:0)+(I.gzhead.extra?4:0)+(I.gzhead.name?8:0)+(I.gzhead.comment?16:0)),zO(I,I.gzhead.time&255),zO(I,I.gzhead.time>>8&255),zO(I,I.gzhead.time>>16&255),zO(I,I.gzhead.time>>
24&255),zO(I,I.level===9?2:I.strategy>=2||I.level<2?4:0),zO(I,I.gzhead.os&255),I.gzhead.extra&&I.gzhead.extra.length&&(zO(I,I.gzhead.extra.length&255),zO(I,I.gzhead.extra.length>>8&255)),I.gzhead.hcrc&&(r.adler=gU(r.adler,I.pending_buf,I.pending,0)),I.gzindex=0,I.status=69):(zO(I,0),zO(I,0),zO(I,0),zO(I,0),zO(I,0),zO(I,I.level===9?2:I.strategy>=2||I.level<2?4:0),zO(I,3),I.status=113);else{var Y=8+(I.w_bits-8<<4)<<8;Y|=(I.strategy>=2||I.level<2?0:I.level<6?1:I.level===6?2:3)<<6;I.strstart!==0&&(Y|=
32);I.status=113;M4(I,Y+(31-Y%31));I.strstart!==0&&(M4(I,r.adler>>>16),M4(I,r.adler&65535));r.adler=1}if(I.status===69)if(I.gzhead.extra){for(Y=I.pending;I.gzindex<(I.gzhead.extra.length&65535)&&(I.pending!==I.pending_buf_size||(I.gzhead.hcrc&&I.pending>Y&&(r.adler=gU(r.adler,I.pending_buf,I.pending-Y,Y)),hV(r),Y=I.pending,I.pending!==I.pending_buf_size));)zO(I,I.gzhead.extra[I.gzindex]&255),I.gzindex++;I.gzhead.hcrc&&I.pending>Y&&(r.adler=gU(r.adler,I.pending_buf,I.pending-Y,Y));I.gzindex===I.gzhead.extra.length&&
(I.gzindex=0,I.status=73)}else I.status=73;if(I.status===73)if(I.gzhead.name){Y=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>Y&&(r.adler=gU(r.adler,I.pending_buf,I.pending-Y,Y)),hV(r),Y=I.pending,I.pending===I.pending_buf_size)){var V=1;break}V=I.gzindex<I.gzhead.name.length?I.gzhead.name.charCodeAt(I.gzindex++)&255:0;zO(I,V)}while(V!==0);I.gzhead.hcrc&&I.pending>Y&&(r.adler=gU(r.adler,I.pending_buf,I.pending-Y,Y));V===0&&(I.gzindex=0,I.status=91)}else I.status=91;if(I.status===
91)if(I.gzhead.comment){Y=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>Y&&(r.adler=gU(r.adler,I.pending_buf,I.pending-Y,Y)),hV(r),Y=I.pending,I.pending===I.pending_buf_size)){V=1;break}V=I.gzindex<I.gzhead.comment.length?I.gzhead.comment.charCodeAt(I.gzindex++)&255:0;zO(I,V)}while(V!==0);I.gzhead.hcrc&&I.pending>Y&&(r.adler=gU(r.adler,I.pending_buf,I.pending-Y,Y));V===0&&(I.status=103)}else I.status=103;I.status===103&&(I.gzhead.hcrc?(I.pending+2>I.pending_buf_size&&hV(r),
I.pending+2<=I.pending_buf_size&&(zO(I,r.adler&255),zO(I,r.adler>>8&255),r.adler=0,I.status=113)):I.status=113);if(I.pending!==0){if(hV(r),r.avail_out===0)return I.last_flush=-1,0}else if(r.avail_in===0&&(f<<1)-(f>4?9:0)<=(C<<1)-(C>4?9:0)&&f!==4)return SM(r,-5);if(I.status===666&&r.avail_in!==0)return SM(r,-5);if(r.avail_in!==0||I.lookahead!==0||f!==0&&I.status!==666){C=I.strategy===2?fx$(I,f):I.strategy===3?rQK(I,f):$o[I.level].func(I,f);if(C===3||C===4)I.status=666;if(C===1||C===3)return r.avail_out===
0&&(I.last_flush=-1),0;if(C===2&&(f===1?(fW(I,2,3),Ih(I,256,wU),I.bi_valid===16?(rU(I,I.bi_buf),I.bi_buf=0,I.bi_valid=0):I.bi_valid>=8&&(I.pending_buf[I.pending++]=I.bi_buf&255,I.bi_buf>>=8,I.bi_valid-=8)):f!==5&&(fW(I,0,3),vIB(I,0,0),f===3&&(xo(I.head),I.lookahead===0&&(I.strstart=0,I.block_start=0,I.insert=0))),hV(r),r.avail_out===0))return I.last_flush=-1,0}if(f!==4)return 0;if(I.wrap<=0)return 1;I.wrap===2?(zO(I,r.adler&255),zO(I,r.adler>>8&255),zO(I,r.adler>>16&255),zO(I,r.adler>>24&255),zO(I,
r.total_in&255),zO(I,r.total_in>>8&255),zO(I,r.total_in>>16&255),zO(I,r.total_in>>24&255)):(M4(I,r.adler>>>16),M4(I,r.adler&65535));hV(r);I.wrap>0&&(I.wrap=-I.wrap);return I.pending!==0?0:1};
YrR=function(r){if(!(this instanceof YrR))return new YrR(r);r=this.options=CW.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},r||{});r.raw&&r.windowBits>0?r.windowBits=-r.windowBits:r.gzip&&r.windowBits>0&&r.windowBits<16&&(r.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new lxE;this.strm.avail_out=0;var f=this.strm;var I=r.level,C=r.method,Y=r.windowBits,V=r.memLevel,S=r.strategy;if(f){var h=1;I===-1&&(I=6);Y<0?(h=0,Y=-Y):Y>15&&
(h=2,Y-=16);if(V<1||V>9||C!==8||Y<8||Y>15||I<0||I>9||S<0||S>4)f=SM(f,-2);else{Y===8&&(Y=9);var w=new Ixq;f.state=w;w.strm=f;w.wrap=h;w.gzhead=null;w.w_bits=Y;w.w_size=1<<w.w_bits;w.w_mask=w.w_size-1;w.hash_bits=V+7;w.hash_size=1<<w.hash_bits;w.hash_mask=w.hash_size-1;w.hash_shift=~~((w.hash_bits+3-1)/3);w.window=new CW.Buf8(w.w_size*2);w.head=new CW.Buf16(w.hash_size);w.prev=new CW.Buf16(w.w_size);w.lit_bufsize=1<<V+6;w.pending_buf_size=w.lit_bufsize*4;w.pending_buf=new CW.Buf8(w.pending_buf_size);
w.d_buf=w.lit_bufsize;w.l_buf=3*w.lit_bufsize;w.level=I;w.strategy=S;w.method=C;if(f&&f.state){f.total_in=f.total_out=0;f.data_type=2;I=f.state;I.pending=0;I.pending_out=0;I.wrap<0&&(I.wrap=-I.wrap);I.status=I.wrap?42:113;f.adler=I.wrap===2?0:1;I.last_flush=0;if(!VoK){C=Array(16);for(V=S=0;V<28;V++)for(slq[V]=S,Y=0;Y<1<<Uoc[V];Y++)Yo[S++]=V;Yo[S-1]=V;for(V=S=0;V<16;V++)for(oIU[V]=S,Y=0;Y<1<<Oec[V];Y++)lx[S++]=V;for(S>>=7;V<30;V++)for(oIU[V]=S<<7,Y=0;Y<1<<Oec[V]-7;Y++)lx[256+S++]=V;for(Y=0;Y<=15;Y++)C[Y]=
0;for(Y=0;Y<=143;)wU[Y*2+1]=8,Y++,C[8]++;for(;Y<=255;)wU[Y*2+1]=9,Y++,C[9]++;for(;Y<=279;)wU[Y*2+1]=7,Y++,C[7]++;for(;Y<=287;)wU[Y*2+1]=8,Y++,C[8]++;HeK(wU,287,C);for(Y=0;Y<30;Y++)bx[Y*2+1]=5,bx[Y*2]=jlw(Y,5);Exm=new edK(wU,Uoc,257,286,15);SrK=new edK(bx,Oec,0,30,15);xjE=new edK([],hkq,0,19,7);VoK=!0}I.l_desc=new JZR(I.dyn_ltree,Exm);I.d_desc=new JZR(I.dyn_dtree,SrK);I.bl_desc=new JZR(I.bl_tree,xjE);I.bi_buf=0;I.bi_valid=0;iec(I);I=0}else I=SM(f,-2);I===0&&(f=f.state,f.window_size=2*f.w_size,xo(f.head),
f.max_lazy_match=$o[f.level].max_lazy,f.good_match=$o[f.level].good_length,f.nice_match=$o[f.level].nice_length,f.max_chain_length=$o[f.level].max_chain,f.strstart=0,f.block_start=0,f.lookahead=0,f.insert=0,f.match_length=f.prev_length=2,f.match_available=0,f.ins_h=0);f=I}}else f=-2;if(f!==0)throw Error(Ej[f]);r.header&&(f=this.strm)&&f.state&&f.state.wrap===2&&(f.state.gzhead=r.header);if(r.dictionary){var n;typeof r.dictionary==="string"?n=w1K(r.dictionary):b2m.call(r.dictionary)==="[object ArrayBuffer]"?
n=new Uint8Array(r.dictionary):n=r.dictionary;r=this.strm;V=n;S=V.length;if(r&&r.state)if(n=r.state,f=n.wrap,f===2||f===1&&n.status!==42||n.lookahead)f=-2;else{f===1&&(r.adler=ucR(r.adler,V,S,0));n.wrap=0;S>=n.w_size&&(f===0&&(xo(n.head),n.strstart=0,n.block_start=0,n.insert=0),I=new CW.Buf8(n.w_size),CW.arraySet(I,V,S-n.w_size,n.w_size,0),V=I,S=n.w_size);I=r.avail_in;C=r.next_in;Y=r.input;r.avail_in=S;r.next_in=0;r.input=V;for(ah(n);n.lookahead>=3;){V=n.strstart;S=n.lookahead-2;do n.ins_h=(n.ins_h<<
n.hash_shift^n.window[V+3-1])&n.hash_mask,n.prev[V&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=V,V++;while(--S);n.strstart=V;n.lookahead=2;ah(n)}n.strstart+=n.lookahead;n.block_start=n.strstart;n.insert=n.lookahead;n.lookahead=0;n.match_length=n.prev_length=2;n.match_available=0;r.next_in=C;r.input=Y;r.avail_in=I;n.wrap=f;f=0}else f=-2;if(f!==0)throw Error(Ej[f]);this._dict_set=!0}};
p1c=function(r,f){f=f||{};f.gzip=!0;f=new YrR(f);f.push(r,!0);if(f.err)throw f.msg||Ej[f.err];return f.result};
djR=function(r,f){var I=nxc();I&&I.publish.call(I,r.toString(),r,f)};
X1c=function(r,f,I){var C=nxc();if(!C)return 0;var Y=C.subscribe(r.toString(),function(V,S){var h=_.jH("ytPubsub2Pubsub2SkipSubKey");h&&h==Y||(h=function(){if(zkK[Y])try{if(S&&r instanceof Mol&&r!=V)try{var w=r.dataClass,n=S;if(!n.args||!n.version)throw Error("Xc");try{if(!w.version_){var d=new w;w.version_=d.version}var z=w.version_}catch(g){}if(!z||n.version!=z)throw Error("Yc");try{S=Reflect.construct(w,_.f8(n.args))}catch(g){throw g.message="yt.pubsub2.Data.deserialize(): "+g.message,g;}}catch(g){throw g.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+r.toString()+": "+g.message,g;}f.call(I||window,S)}catch(g){_.eH(g)}},gxw[r.toString()]?_.jH("yt.scheduler.instance")?_.F_.addLowPriorityJob(h):_.rl(h,0):h())});
zkK[Y]=!0;axE[r.toString()]||(axE[r.toString()]=[]);axE[r.toString()].push(Y);return Y};
PXP=function(){var r=NGP,f=X1c($ju,function(I){r.apply(void 0,arguments);FQB(f)});
return f};
FQB=function(r){var f=nxc();f&&(typeof r==="number"&&(r=[r]),_.Rv(r,function(I){f.unsubscribeByKey(I);delete zkK[I]}))};
nxc=function(){return _.jH("ytPubsub2Pubsub2Instance")};
tou=function(r,f,I){I=I===void 0?{sampleRate:.1}:I;Math.random()<Math.min(.02,I.sampleRate/100)&&djR("meta_logging_csi_event",{timerName:r,timelineData:f})};
_.TG$=function(r){return r?(r=r.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.HL(r):null:null};
_.PW=function(r){return r?(r=r.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.SF(r):null:null};
WQd=function(){cQ$||(cQ$=_.PW(_.Lz("WORKER_SERIALIZATION_URL")));return cQ$||void 0};
_.mjw=function(){var r=WQd();LQq||r===void 0||(LQq=new Worker(_.x1(r),void 0));return LQq};
_.ekw=function(){return typeof Worker==="function"&&WQd()?!0:!1};
_.i2$=function(){if(_.ekw()&&!JQd){var r=function(I){I=I.data;if(I.op==="gzippedGelBatch"){var C=jrq.get(I.key);C&&(H2R(I.gzippedBatch,C.latencyPayload,C.url,C.options,C.sendFn),jrq.delete(I.key))}},f=_.mjw();
f&&(f.addEventListener("message",r),f.onerror=function(){jrq.clear()},JQd=!0)}};
O2w=function(r,f,I,C,Y){Y=Y===void 0?!1:Y;var V={startTime:(0,_.Ad)(),ticks:{},infos:{}};if(tV)try{var S=Rku(f);if(S!=null&&(S>vxU||S<KQq))C(r,I);else{if(_.N("gzip_gel_with_worker")&&(_.N("initial_gzip_use_main_thread")&&!yQd||!_.N("initial_gzip_use_main_thread"))){JQd||_.i2$();var h=_.mjw();if(h&&!Y){jrq.set(UjP,{latencyPayload:V,url:r,options:I,sendFn:C});h.postMessage({op:"gelBatchToGzip",serializedBatch:f,key:UjP});UjP++;return}}var w=p1c(srq(f));H2R(w,V,r,I,C)}}catch(n){_.Hw(n),C(r,I)}else C(r,
I)};
H2R=function(r,f,I,C,Y){yQd=!1;var V=(0,_.Ad)();f.ticks.gelc=V;TO++;_.N("disable_compression_due_to_performance_degredation")&&V-f.startTime>=ox$&&(Qr$++,_.N("abandon_compression_after_N_slow_zips")?TO===_.Bw("compression_disable_point")&&Qr$>AQm&&(tV=!1):tV=!1);Z2P(f);C.headers||(C.headers={});C.headers["Content-Encoding"]="gzip";C.postBody=r;C.postParams=void 0;Y(I,C)};
G3R=function(r){var f=f===void 0?!1:f;var I=I===void 0?!1:I;var C=(0,_.Ad)(),Y={startTime:C,ticks:{},infos:{}},V=f?_.jH("yt.logging.gzipForFetch",!1):!0;if(tV&&V){if(!r.body)return r;try{var S=I?r.body:typeof r.body==="string"?r.body:JSON.stringify(r.body);V=S;if(!I&&typeof S==="string"){var h=Rku(S);if(h!=null&&(h>vxU||h<KQq))return r;I=f?{level:1}:void 0;V=p1c(srq(S),I);var w=(0,_.Ad)();Y.ticks.gelc=w;if(f){TO++;if((_.N("disable_compression_due_to_performance_degredation")||_.N("disable_compression_due_to_performance_degradation_lr"))&&
w-C>=ox$)if(Qr$++,_.N("abandon_compression_after_N_slow_zips")||_.N("abandon_compression_after_N_slow_zips_lr")){f=Qr$/TO;var n=AQm/_.Bw("compression_disable_point");TO>0&&TO%_.Bw("compression_disable_point")===0&&f>=n&&(tV=!1)}else tV=!1;Z2P(Y)}}r.headers=Object.assign({},{"Content-Encoding":"gzip"},r.headers||{});r.body=V;return r}catch(d){return _.Hw(d),r}}else return r};
Rku=function(r){try{return(new Blob(r.split(""))).size}catch(f){return _.Hw(f),null}};
Z2P=function(r){_.N("gel_compression_csi_killswitch")||!_.N("log_gel_compression_latency")&&!_.N("log_gel_compression_latency_lr")||tou("gel_compression",r,{sampleRate:.1})};
k3R=function(){this.blockSize=-1};
cW=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var r=1;r<this.blockSize;++r)this.pad_[r]=0;this.total_=this.inbuf_=0;this.reset()};
qrP=function(r){r=Object.assign({},r);delete r.Authorization;var f=BGl();if(f){var I=new cW;I.update(_.Lz("INNERTUBE_API_KEY"));I.update(f);r.hash=_.Dp(I.digest(),3)}return r};
LW=function(){uNB||(uNB=new _.WW("yt.innertube"));return uNB};
Djq=function(r,f,I,C){if(C)return null;C=LW().get("nextId",!0)||1;var Y=LW().get("requests",!0)||{};Y[C]={method:r,request:f,authState:qrP(I),requestTime:Math.round((0,_.Ad)())};LW().set("nextId",C+1,86400,!0);LW().set("requests",Y,86400,!0);return C};
rNU=function(r){var f=LW().get("requests",!0)||{};delete f[r];LW().set("requests",f,86400,!0)};
IhK=function(r){var f=LW().get("requests",!0);if(f){for(var I in f){var C=f[I];if(!(Math.round((0,_.Ad)())-C.requestTime<6E4)){var Y=C.authState,V=qrP(_.Lwu(!1));_.X0.equals(Y,V)&&(Y=C.request,"requestTimeMs"in Y&&(Y.requestTimeMs=Math.round((0,_.Ad)())),fhu(r,C.method,Y,{}));delete f[I]}}LW().set("requests",f,86400,!0)}};
CAB=function(r){var f;return(r=r==null?void 0:(f=r.error)==null?void 0:f.code)&&r>=400&&r<=599?!1:!0};
YiE=function(r){var f;r=r==null?void 0:(f=r.error)==null?void 0:f.code;return!(r!==400&&r!==415)};
VlK=function(){if(lhR)return lhR();var r={};lhR=QD("LogsDatabaseV2",{objectStores:(r.LogsRequestsStore={addedAtVersion:2},r),shared:!1,upgrade:function(f,I,C){I(2)&&m8(f,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});I(3);I(5)&&(C=C.objectStore("LogsRequestsStore"),C.JSC$8505_wrapped.indexNames.contains("newRequest")&&C.JSC$8505_wrapped.deleteIndex("newRequest"),eM(C,"newRequestV2",["status","interface","timestamp"]));I(7)&&f.JSC$8490_wrapped.objectStoreNames.contains("sapisid")&&f.JSC$8490_wrapped.deleteObjectStore("sapisid");
I(9)&&f.JSC$8490_wrapped.objectStoreNames.contains("SWHealthLog")&&f.JSC$8490_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return lhR()};
JV=function(r){return _.R1(VlK(),r)};
Si$=function(r,f){var I,C,Y,V;return _.x(function(S){if(S.nextAddress==1)return I={startTime:(0,_.Ad)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.b(S,JV(f),2);if(S.nextAddress!=3)return C=S.yieldResult,Y=Object.assign({},r,{options:JSON.parse(JSON.stringify(r.options)),interface:_.Lz("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.b(S,C.put("LogsRequestsStore",Y),3);V=S.yieldResult;I.ticks.tc=(0,_.Ad)();EO$(I);return S.return(V)})};
xGE=function(r,f){var I,C,Y,V,S,h,w,n;return _.x(function(d){if(d.nextAddress==1)return I={startTime:(0,_.Ad)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.b(d,JV(f),2);if(d.nextAddress!=3)return C=d.yieldResult,Y=_.Lz("INNERTUBE_CONTEXT_CLIENT_NAME",0),V=[r,Y,0],S=[r,Y,(0,_.Ad)()],h=IDBKeyRange.bound(V,S),w="prev",_.N("use_fifo_for_networkless")&&(w="next"),n=void 0,_.b(d,_.vd(C,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(z){return _.Zy(z.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:h,direction:w},function(g){g.getValue()&&(n=g.getValue(),r==="NEW"&&(n.status="QUEUED",g.update(n)))})}),3);
I.ticks.tc=(0,_.Ad)();EO$(I);return d.return(n)})};
hEK=function(r,f){var I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,JV(f),2);I=C.yieldResult;return C.return(_.vd(I,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Y){var V=Y.objectStore("LogsRequestsStore");return V.get(r).then(function(S){if(S)return S.status="QUEUED",V.put(S).then(function(){return S})})}))})};
wtB=function(r,f,I,C){I=I===void 0?!0:I;var Y;return _.x(function(V){if(V.nextAddress==1)return _.b(V,JV(f),2);Y=V.yieldResult;return V.return(_.vd(Y,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(S){var h=S.objectStore("LogsRequestsStore");return h.get(r).then(function(w){return w?(w.status="NEW",I&&(w.sendCount+=1),C!==void 0&&(w.options.compress=C),h.put(w).then(function(){return w})):mM.resolve(void 0)})}))})};
bJE=function(r,f){var I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,JV(f),2);I=C.yieldResult;return C.return(I.delete("LogsRequestsStore",r))})};
ptq=function(r){var f,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,JV(r),2);f=C.yieldResult;I=(0,_.Ad)()-2592E6;return _.b(C,_.vd(f,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Y){return yD(Y.objectStore("LogsRequestsStore"),{},function(V){if(V.getValue().timestamp<=I)return V.delete().then(function(){return V.continue()})})}),0)})};
nOl=function(){_.x(function(r){return _.b(r,Cmc("LogsDatabaseV2"),0)})};
EO$=function(r){_.N("nwl_csi_killswitch")||tou("networkless_performance",r,{sampleRate:1})};
_.zEB=function(r){return _.R1(dGw(),r)};
Ml$=function(r){var f,I;_.x(function(C){if(C.nextAddress==1)return _.b(C,_.zEB(r),2);f=C.yieldResult;I=(0,_.Ad)()-2592E6;return _.b(C,_.vd(f,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(Y){return yD(Y.objectStore("SWHealthLog"),{},function(V){if(V.getValue().timestamp<=I)return V.delete().then(function(){return V.continue()})})}),0)})};
gOR=function(r){var f;return _.x(function(I){if(I.nextAddress==1)return _.b(I,_.zEB(r),2);f=I.yieldResult;return _.b(I,f.clear("SWHealthLog"),0)})};
_.jM=function(r,f,I,C,Y,V,S){Y=Y===void 0?"":Y;V=V===void 0?!1:V;S=S===void 0?!1:S;if(r)if(I&&!TU("cobalt"))_.Hw(new _.nf("Legacy referrer-scrubbed ping detected")),r&&ahq(r,void 0,{scrubReferrer:!0});else if(Y)Aqd(r,f,"POST",Y,C);else if(_.Lz("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||C||S)Aqd(r,f,"GET","",C,void 0,V,S);else{b:{try{c:{var h=new XtK({url:r});if(L9U(h.JSC$7375_url_,N_$)==="1")var w=null;else{var n=L9U(h.JSC$7375_url_,$Gd);if(n==="1"){var d=L9U(h.JSC$7375_url_,F4B);if(d)try{w={version:3,
directUrl:decodeURIComponent(d),asyncUrl:muR(h.JSC$7375_url_,"act=1","ri=1",PAl(h))};break c}catch(P){}}w=n==="2"?{version:4,directUrl:muR(h.JSC$7375_url_,"dct=1","suid="+h.suid_,""),asyncUrl:muR(h.JSC$7375_url_,"act=1","ri=1","suid="+h.suid_)}:null}}if(w){var z=_.Cf(r);var g=!(!z||!z.endsWith("/aclk")||_.Jy(r,"ri")!=="1");break b}}catch(P){}g=!1}if(g){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(r,"")){var X=!0;break b}}catch(P){}X=!1}X?(f&&f(),I=!0):I=!1}else I=
!1;I||ahq(r,f)}};
ahq=function(r,f,I){I=I===void 0?{}:I;var C=new Image,Y=""+tld++;T_R[Y]=C;C.onload=C.onerror=function(){f&&T_R[Y]&&f();delete T_R[Y]};
I.scrubReferrer&&(C.referrerPolicy="no-referrer");C.src=r};
HW=function(r,f){cNB(r,f==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
W4K=function(r){var f;return((f=document.featurePolicy)==null?0:f.allowedFeatures().includes("attribution-reporting"))?r+"&nis=6":r+"&nis=5"};
L4u=function(r){if(!r)return!1;try{var f;if(((f=_.vw(r))==null?void 0:f.asm)==="4")return!0}catch(I){_.eH(I)}return!1};
cNB=function(r,f){f?(r=W4K(r),_.jM(r,void 0,void 0,void 0,"",!0,!0)):_.jM(r)};
eEc=function(){mGu||(mGu=new _.WW("yt.offline"));return mGu};
JNU=function(r){if(_.N("offline_error_handling")){var f=eEc().get("errors",!0)||{};f[r.message]={name:r.name,stack:r.stack};r.level&&(f[r.message].level=r.level);eEc().set("errors",f,2592E3,!0)}};
HJu=function(r,f,I,C){C=C===void 0?!1:C;f=_.N("web_fp_via_jspb")?Object.assign({},f):f;_.N("use_cfr_monitor")&&jbq(r,f);if(_.N("use_request_time_ms_header"))f.headers&&QM(r)&&(f.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Ad)())));else{var Y;if((Y=f.postParams)==null?0:Y.requestTimeMs)f.postParams.requestTimeMs=Math.round((0,_.Ad)())}I&&Object.keys(f).length===0?_.jM(r):f.compress?f.postBody?(typeof f.postBody!=="string"&&(f.postBody=JSON.stringify(f.postBody)),O2w(r,f.postBody,
f,_.lh,C)):O2w(r,JSON.stringify(f.postParams),f,Bb$,C):_.lh(r,f)};
iJR=function(r,f){_.N("use_event_time_ms_header")&&QM(r)&&(f.headers||(f.headers={}),f.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.Ad)())));return f};
_.vOq=function(){REm||(REm=new _.ix({logOfflineErrors:!0,enablePolling:!0}));return REm};
jbq=function(r,f){var I=f.onError?f.onError:function(){};
f.onError=function(Y,V){Rh().requestComplete(r,!1);I(Y,V)};
var C=f.onSuccess?f.onSuccess:function(){};
f.onSuccess=function(Y,V){Rh().requestComplete(r,!0);C(Y,V)}};
_.K4m=function(){return _.OQ(document.location.toString())!=="www.youtube-nocookie.com"};
_.sbR=function(){return _.jH("ytNetworklessLoggingInitializationOptions")?_.yNK.isNwlInitialized:_.UGR};
OJq=function(r,f){if(_.N("polymer_on_demand_shady_dom")){var I;var C=(I=r.__shady_native_firstElementChild)!=null?I:r.firstElementChild}else C=r.firstElementChild;for(;C;){if(r=f(C)?C:OJq(C,f))return r;C=C.nextElementSibling}return null};
QbP=function(){var r=document;if("visibilityState"in r)return r.visibilityState;var f=oOU+"VisibilityState";if(f in r)return r[f]};
_.ANR=function(r,f){var I;vW(r,function(C){I=f[C];return!!I});
return I};
_.y9=function(r){var f=ZJc(r);f?f.focus():_.KW(r)};
ZJc=function(r){return(r=OJq(r,function(f){return _.Uj(f)?GFR(f)&&!!f.offsetParent:!1}))?r:null};
_.KW=function(r,f){r.hasAttribute("tabindex")||r.setAttribute("tabindex","-1");r.focus(f)};
kFP=function(r,f,I,C){C=C===void 0?{}:C;r.addEventListener&&(f!="mouseenter"||"onmouseenter"in document?f!="mouseleave"||"onmouseenter"in document?f=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(f="MozMousePixelScroll"):f="mouseout":f="mouseover");return _.X0.findKey(sj,function(Y){var V=typeof Y[4]==="boolean"&&Y[4]==!!C,S=_.lV(Y[4])&&_.lV(C)&&_.X0.equals(Y[4],C);return!!Y.length&&Y[0]==r&&Y[1]==f&&Y[2]==I&&(V||S)})};
_.oh=function(r,f,I,C){C=C===void 0?{}:C;if(!r||!r.addEventListener&&!r.attachEvent)return"";var Y=kFP(r,f,I,C);if(Y)return Y;Y=++B_R.count+"";var V=!(f!="mouseenter"&&f!="mouseleave"||!r.addEventListener||"onmouseenter"in document);var S=V?function(h){h=new Oj(h);if(!_.mI(h.relatedTarget,function(w){return w==r},!0))return h.currentTarget=r,h.type=f,I.call(r,h)}:function(h){h=new Oj(h);
h.currentTarget=r;return I.call(r,h)};
S=_.Jn(S);r.addEventListener?(f=="mouseenter"&&V?f="mouseover":f=="mouseleave"&&V?f="mouseout":f=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(f="MozMousePixelScroll"),qiU()||typeof C==="boolean"?r.addEventListener(f,S,C):r.addEventListener(f,S,!!C.capture)):r.attachEvent("on"+f,S);sj[Y]=[r,f,I,S,C];return Y};
_.DGK=function(r,f,I){var C=C===void 0?{}:C;var Y=_.oh(r,f,function(){_.udu(Y);I.apply(r,arguments)},C)};
_.udu=function(r){r&&(typeof r=="string"&&(r=[r]),_.Rv(r,function(f){if(f in sj){var I=sj[f],C=I[0],Y=I[1],V=I[3];I=I[4];C.removeEventListener?qiU()||typeof I==="boolean"?C.removeEventListener(Y,V,I):C.removeEventListener(Y,V,!!I.capture):C.detachEvent&&C.detachEvent("on"+Y,V);delete sj[f]}}))};
Q9=function(r){this.callback_=r;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(r=0;r<4;r++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.oh(window,"mousemove",(0,_.gL)(this.onMouseMove_,this));this.timerId_=_.ff((0,_.gL)(this.checkPosition_,this),25)};
f1K=function(){var r={};var f=r.preferMobileEvents===void 0?!1:r.preferMobileEvents;r=r.enableScrollEventListener===void 0?!0:r.enableScrollEventListener;if(_.jH("_lact",window)==null){var I=parseInt(_.Lz("LACT"),10);I=isFinite(I)?Date.now()-Math.max(I,0):-1;_.OH("_lact",I,window);_.OH("_fact",I,window);I==-1&&_.AV();_.oh(document,"keydown",_.AV);_.oh(document,"keyup",_.AV);_.oh(document,"mousedown",_.AV);_.oh(document,"mouseup",_.AV);f?_.oh(window,"touchmove",function(){rGq("touchmove",200)},{passive:!0}):
(_.oh(window,"resize",function(){rGq("resize",200)}),r&&_.oh(window,"scroll",function(){rGq("scroll",200)}));
new Q9(function(){rGq("mouse",100)});
_.oh(document,"touchstart",_.AV,{passive:!0});_.oh(document,"touchend",_.AV,{passive:!0})}};
rGq=function(r,f){I1m[r]||(I1m[r]=!0,_.F_.addLowPriorityJob(function(){_.AV();I1m[r]=!1},f))};
_.AV=function(){_.jH("_lact",window)==null&&f1K();var r=Date.now();_.OH("_lact",r,window);_.jH("_fact",window)==-1&&_.OH("_fact",r,window);(r=_.jH("ytglobal.ytUtilActivityCallback_"))&&r()};
_.Zs=function(){var r=_.jH("_lact",window);return r==null?-1:Math.max(Date.now()-r,0)};
_.Ds=function(r,f,I){var C=_.GO();if(C&&f){var Y=C.subscribe(r,function(){var V=arguments,S=function(){q4[Y]&&f.apply&&typeof f.apply=="function"&&f.apply(I||window,V)};
try{_.C7l[r]?S():_.rl(S,0)}catch(h){_.eH(h)}},I);
q4[Y]=!0;ux[r]||(ux[r]=[]);ux[r].push(Y);return Y}return 0};
_.Y$R=function(r){var f=_.GO();f&&(typeof r==="number"?r=[r]:typeof r==="string"&&(r=[parseInt(r,10)]),_.Rv(r,function(I){f.unsubscribeByKey(I);delete q4[I]}))};
_.l1q=function(r,f){var I=_.GO();I&&I.publish.apply(I,arguments)};
_.ENU=function(r){var f=_.GO();if(f)if(f.clear(r),r)VS$(r);else for(var I in ux)VS$(I)};
_.GO=function(){return _.Yq.ytPubsubPubsubInstance};
VS$=function(r){ux[r]&&(r=ux[r],_.Rv(r,function(f){q4[f]&&delete q4[f]}),r.length=0)};
S$$=function(){var r,f;return"h5vcc"in rp&&((r=rp.h5vcc.traceEvent)==null?0:r.traceBegin)&&((f=rp.h5vcc.traceEvent)==null?0:f.traceEnd)?1:"performance"in rp&&rp.performance.mark&&rp.performance.measure?2:0};
xvK=function(r){var f=S$$();switch(f){case 1:rp.h5vcc.traceEvent.traceBegin("YTLR",r);break;case 2:rp.performance.mark(r+"-start");break;case 0:break;default:_.Sd(f,"unknown trace type")}};
hDd=function(r){var f=S$$();switch(f){case 1:rp.h5vcc.traceEvent.traceEnd("YTLR",r);break;case 2:f=r+"-start";var I=r+"-end";rp.performance.mark(I);rp.performance.measure(r,f,I);break;case 0:break;default:_.Sd(f,"unknown trace type")}};
wcR=function(r){var f,I;(I=(f=window).onerror)==null||I.call(f,r.message,"",0,0,r)};
bxK=function(r){if(_.N("web_lifecycle_error_handling_killswitch"))return r();try{return r()}catch(f){wcR(f)}};
pcR=function(r){return[r.auth===void 0?"undefined":r.auth,r.isJspb===void 0?"undefined":r.isJspb,r.cttAuthInfo===void 0?"undefined":r.cttAuthInfo,r.tier===void 0?"undefined":r.tier].join("/")};
_.F=function(r,f){if(r)return r[f.name]};
I5=function(){var r=_.jH("yt.logging.ims");r||(r=new fN,_.OH("yt.logging.ims",r));return r};
$vd=function(r,f){if(r.endpoint==="log_event"){nNq(r);var I=dvc(r),C=zDu(r.payload)||"",Y=MSl(C),V=200;if(Y){if(Y.enabled===!1&&!_.N("web_payload_policy_disabled_killswitch"))return;V=gNR(Y.tier);if(V===400){a1K(r,f);return}}CN[I]=!0;I={cttAuthInfo:I,isJspb:!1,tier:V};I5().storePayload(I,r.payload);Xcl(f,!1,I,Nmw(C))}};
P7P=function(r,f,I){if(f.endpoint==="log_event"){nNq(void 0,f);var C=dvc(f,!0),Y=MSl(r),V=200;if(Y){if(Y.enabled===!1&&!_.N("web_payload_policy_disabled_killswitch"))return;V=gNR(Y.tier);if(V===400){FWu(r,f,I);return}}CN[C]=!0;C={cttAuthInfo:C,isJspb:!0,tier:V};I5().storePayload(C,Cj(f.payload));Xcl(I,!0,C,Nmw(r))}};
Xcl=function(r,f,I,C){f=f===void 0?!1:f;C=C===void 0?!1:C;r&&(Yl=new r);r=_.Bw("tvhtml5_logging_max_batch_ads_fork")||_.Bw("tvhtml5_logging_max_batch")||_.Bw("web_logging_max_batch")||100;var Y=(0,_.Ad)(),V=tSq(f,I.tier),S=V.lastDebounceQueueFromLogTimeMs;C&&(V.useVideoStatsEndPoint=!0);C=0;I&&(C=I5().getSequenceCount(I));var h=function(){TmR({writeThenSend:!0},f,I.tier)};
C>=1E3?h():C>=r?cGl||(cGl=WWR(function(){h();cGl=void 0},0)):Y-S>=10&&(LWq(f,I.tier),V.lastDebounceQueueFromLogTimeMs=Y)};
a1K=function(r,f){if(r.endpoint==="log_event"){_.N("more_accurate_gel_parser")&&I5().storePayload({isJspb:!1},r.payload);nNq(r);var I=dvc(r),C=new Map;C.set(I,[r.payload]);var Y=zDu(r.payload)||"";f&&(Yl=new f);return new _.lz(function(V,S){Yl&&Yl.isReady()?mvE(C,Yl,V,S,{bypassNetworkless:!0},!0,Nmw(Y)):V()})}};
FWu=function(r,f,I){if(f.endpoint==="log_event"){nNq(void 0,f);var C=dvc(f,!0),Y=new Map;Y.set(C,[Cj(f.payload)]);I&&(Yl=new I);return new _.lz(function(V){Yl&&Yl.isReady()?eDB(Y,Yl,V,{bypassNetworkless:!0},!0,Nmw(r)):V()})}};
dvc=function(r,f){var I="";if(r.dangerousLogToVisitorSession)I="visitorOnlyApprovedKey";else if(r.cttAuthInfo){if(f===void 0?0:f){f=r.cttAuthInfo.token;I=r.cttAuthInfo;var C=new JGU;I.videoId?C.setVideoId(I.videoId):I.playlistId&&Vy(C,2,jsu,Kq(I.playlistId));HxR[f]=C}else f=r.cttAuthInfo,I={},f.videoId?I.videoId=f.videoId:f.playlistId&&(I.playlistId=f.playlistId),ixR[r.cttAuthInfo.token]=I;I=r.cttAuthInfo.token}return I};
TmR=function(r,f,I){r=r===void 0?{}:r;f=f===void 0?!1:f;new _.lz(function(C,Y){var V=tSq(f,I),S=V.useVideoStatsEndPoint;V.useVideoStatsEndPoint=!1;RDE(V.queueTimer);RDE(V.queueMaxTimer);V.queueMaxTimer=0;Yl&&Yl.isReady()?I===void 0&&_.N("enable_web_tiered_gel")?vNw(C,Y,r,f,300,S):vNw(C,Y,r,f,I,S):(LWq(f,I),C())})};
vNw=function(r,f,I,C,Y,V){var S=Yl;I=I===void 0?{}:I;C=C===void 0?!1:C;Y=Y===void 0?200:Y;V=V===void 0?!1:V;var h=new Map,w=new Map,n={isJspb:C,cttAuthInfo:void 0,tier:Y},d={isJspb:C,cttAuthInfo:void 0};if(C){f=_.E(Object.keys(CN));for(Y=f.next();!Y.done;Y=f.next())Y=Y.value,w=_.N("enable_web_tiered_gel")?I5().smartExtractMatchingEntries({keys:[n,d],sizeLimit:1E3}):I5().extractMatchingEntries({isJspb:!0,cttAuthInfo:Y}),w.length>0&&h.set(Y,w),(_.N("web_fp_via_jspb_and_json")&&I.writeThenSend||!_.N("web_fp_via_jspb_and_json"))&&
delete CN[Y];eDB(h,S,r,I,!1,V)}else{h=_.E(Object.keys(CN));for(n=h.next();!n.done;n=h.next())n=n.value,d=_.N("enable_web_tiered_gel")?I5().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:n,tier:Y},{isJspb:!1,cttAuthInfo:n}],sizeLimit:1E3}):I5().extractMatchingEntries({isJspb:!1,cttAuthInfo:n}),d.length>0&&w.set(n,d),(_.N("web_fp_via_jspb_and_json")&&I.writeThenSend||!_.N("web_fp_via_jspb_and_json"))&&delete CN[n];mvE(w,S,r,f,I,!1,V)}};
LWq=function(r,f){r=r===void 0?!1:r;f=f===void 0?200:f;var I=function(){TmR({writeThenSend:!0},r,f)},C=tSq(r,f),Y=C===KWK||C===yGR?5E3:Uvq;
_.N("web_gel_timeout_cap")&&!C.queueMaxTimer&&(Y=WWR(function(){I()},Y),C.queueMaxTimer=Y);
RDE(C.queueTimer);Y=_.Lz("LOGGING_BATCH_TIMEOUT",_.Bw("web_gel_debounce_ms",1E4));_.N("shorten_initial_gel_batch_timeout")&&ssR&&(Y=OxB);Y=WWR(function(){_.Bw("gel_min_batch_size")>0?I5().getSequenceCount({cttAuthInfo:void 0,isJspb:r,tier:f})>=oNc&&I():I()},Y);
C.queueTimer=Y};
mvE=function(r,f,I,C,Y,V,S){Y=Y===void 0?{}:Y;var h=Math.round((0,_.Ad)()),w=r.size,n=QsK(S);r=_.E(r);var d=r.next();for(S={};!d.done;S={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},d=r.next()){var z=_.E(d.value);d=z.next().value;z=z.next().value;S.batchRequest=_.X0.unsafeClone({context:_.XFw(f.config_||_.GU())});if(!_.ID(z)&&!_.N("throw_err_when_logevent_malformed_killswitch")){C();break}S.batchRequest.events=z;
(z=ixR[d])&&AG$(S.batchRequest,d,z);delete ixR[d];S.dangerousLogToVisitorSession=d==="visitorOnlyApprovedKey";ZxE(S.batchRequest,h,S.dangerousLogToVisitorSession);GXK(Y);S.onSuccess$jscomp$3=function(g){_.N("start_client_gcf")&&_.F_.addLowPriorityJob(function(){return _.x(function(X){return _.b(X,kXu(g),0)})});
w--;w||I()};
S.networkFailures=0;S.onError$jscomp$5=function(g){return function(){g.networkFailures++;if(Y.bypassNetworkless&&g.networkFailures===1)try{fhu(f,n,g.batchRequest,BmE({writeThenSend:!0},g.dangerousLogToVisitorSession,g.onSuccess$jscomp$3,g.onError$jscomp$5,V)),ssR=!1}catch(X){_.eH(X),C()}w--;w||I()}}(S);
try{fhu(f,n,S.batchRequest,BmE(Y,S.dangerousLogToVisitorSession,S.onSuccess$jscomp$3,S.onError$jscomp$5,V)),ssR=!1}catch(g){_.eH(g),C()}}};
eDB=function(r,f,I,C,Y,V){C=C===void 0?{}:C;var S=Math.round((0,_.Ad)()),h={value:r.size},w=new Map([].concat(_.Na(r)));w=_.E(w);for(var n=w.next();!n.done;n=w.next()){var d=_.E(n.value).next().value,z=r.get(d);n=new q$q;var g=f.config_||_.GU(),X=new Ee,P=new uiE;_.w5(P,1,g.innertubeContextHostLanguage);_.w5(P,2,g.innertubeContextGeoLocation);_.Bd(P,16,g.innertubeContextClientNameFieldNumber);_.w5(P,17,g.innertubeContextClientVersion);if(g.innertubeContextClientConfigInfo){var W=g.innertubeContextClientConfigInfo,
m=new uh;W.coldConfigData&&_.w5(m,1,W.coldConfigData);W.appInstallData&&_.w5(m,6,W.appInstallData);W.coldHashData&&_.w5(m,3,W.coldHashData);W.hotHashData&&m.setHotHashData(W.hotHashData);_.CK(P,62,m)}(W=_.Yq.devicePixelRatio)&&W!=1&&_.qU(P,65,_.xi(W));W=RRR();W!==""&&_.w5(P,54,W);W=vfw();if(W.length>0){m=new Dvm;for(var v=0;v<W.length;v++){var O=new Sq;O.setKey(W[v].key);Vy(O,2,r3u,Kq(W[v].value));xl(m,15,Sq,O)}_.CK(X,5,m)}nIK(g,P);doB(X);zdK(P);M_P(g,P);gIq(P);_.N("start_client_gcf")&&akR(P);_.Lz("DELEGATED_SESSION_ID")&&
!_.N("pageid_as_header_web")&&(g=new h7,_.w5(g,3,_.Lz("DELEGATED_SESSION_ID")));!_.N("fill_delegate_context_in_gel_killswitch")&&(W=_.Lz("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(m=_.kB(X,h7,3)||new h7,g=X,W=_.w5(m,18,W),_.CK(g,3,W));g=P;W=_.E(Object.entries(_.vw(_.Lz("DEVICE",""))));for(m=W.next();!m.done;m=W.next())v=_.E(m.value),m=v.next().value,v=v.next().value,m==="cbrand"?_.w5(g,12,v):m==="cmodel"?_.w5(g,13,v):m==="cbr"?_.w5(g,87,v):m==="cbrver"?_.w5(g,88,v):m==="cos"?_.w5(g,18,
v):m==="cosver"?_.w5(g,19,v):m==="cplatform"&&_.Bd(g,42,bAR(v));X.setClient(P);_.CK(n,1,X);if(P=HxR[d])a:{if(_.xa(P,wp(P,jsu,1)))X=1;else if(P.getPlaylistId())X=2;else break a;_.CK(n,4,P);P=n.getContext()||new Ee;g=_.kB(P,h7,3)||new h7;W=new bz;W.setToken(d);_.Bd(W,1,X);xl(g,12,bz,W);_.CK(P,3,g)}delete HxR[d];d=d==="visitorOnlyApprovedKey";f5U()||_.pN(n,2,S);!d&&(X=_.Lz("EVENT_ID"))&&(P=I5q(),g=new CTP,_.w5(g,1,X),_.pN(g,2,P),_.CK(n,5,g));GXK(C);if(_.N("jspb_serialize_with_worker")&&(X=_.mjw())&&
C.writeThenSend){_.Y6q.set(l5K,{client:f,resolve:I,networklessOptions:C,isIsolated:Y,useVSSEndpoint:V,dangerousLogToVisitorSession:d,requestsOutstanding:h});X.postMessage({op:"gelBatchToSerialize",batchRequest:Cj(n),clientEvents:z,key:l5K});l5K++;break}if(z){X=[];for(P=0;P<z.length;P++)try{X.push(new nN(z[P]))}catch(k){_.eH(new _.nf("Transport failed to deserialize "+String(z[P])))}z=X}else z=[];z=_.E(z);for(X=z.next();!X.done;X=z.next())xl(n,3,nN,X.value);z={startTime:(0,_.Ad)(),ticks:{},infos:{}};
n=n.serialize();z.ticks.geljspc=(0,_.Ad)();_.N("log_jspb_serialize_latency")&&tou("gel_jspb_serialize",z,{sampleRate:.1});_.V$E(n,f,I,C,Y,V,d,h)}};
_.V$E=function(r,f,I,C,Y,V,S,h){C=C===void 0?{}:C;h=h===void 0?{value:0}:h;V=QsK(V);C=BmE(C,S,function(w){_.N("start_client_gcf")&&_.F_.addLowPriorityJob(function(){return _.x(function(n){return _.b(n,kXu(w),0)})});
h.value--;h.value||I()},function(){h.value--;
h.value||I()},Y);
C.headers["Content-Type"]="application/json+protobuf";C.postBodyFormat="JSPB";C.postBody=r;fhu(f,V,"",C);ssR=!1};
GXK=function(r){_.N("always_send_and_write")&&(r.writeThenSend=!1)};
BmE=function(r,f,I,C,Y){r={retry:!0,onSuccess:I,onError:C,networklessOptions:r,dangerousLogToVisitorSession:f,bypassMonitoring:!!Y,headers:{},postBodyFormat:"",postBody:"",compress:_.N("compress_gel")||_.N("compress_gel_lr")};f5U()&&(r.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Ad)())));return r};
ZxE=function(r,f,I){f5U()||(r.requestTimeMs=String(f));_.N("unsplit_gel_payloads_in_logs")&&(r.unsplitGelPayloadsInLogs=!0);!I&&(f=_.Lz("EVENT_ID"))&&(I=I5q(),r.serializedClientEventId={serializedEventId:f,clientCounter:String(I)})};
I5q=function(){var r=_.Lz("BATCH_CLIENT_COUNTER")||0;r||(r=Math.floor(Math.random()*65535/2));r++;r>65535&&(r=1);_.Ww("BATCH_CLIENT_COUNTER",r);return r};
AG$=function(r,f,I){if(I.videoId)var C="VIDEO";else if(I.playlistId)C="PLAYLIST";else return;r.credentialTransferTokenTargetId=I;r.context=r.context||{};r.context.user=r.context.user||{};r.context.user.credentialTransferTokens=[{token:f,scope:C}]};
nNq=function(r,f){var I=_.qC("il_payload_scraping")==="enable_il_payload_scraping";if(!_.jH("yt.logging.transport.enableScrapingForTest"))if(I)EYd=[],_.OH("yt.logging.transport.enableScrapingForTest",!0),_.OH("yt.logging.transport.scrapedPayloadsForTesting",EYd),_.OH("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.OH("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.OH("yt.logging.transport.scrapeClientEvent",!0);else return;I=_.jH("yt.logging.transport.scrapedPayloadsForTesting");var C=_.jH("yt.logging.transport.payloadToScrape");f&&(f=_.jH("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(f.payload)())&&I.push(f);f=_.jH("yt.logging.transport.scrapeClientEvent");if(C&&C.length>=1)for(var Y=0;Y<C.length;Y++)if(r&&r.payload[C[Y]])if(f)I.push(r.payload);else{var V=void 0;I.push(((V=r)==null?void 0:V.payload)[C[Y]])}_.OH("yt.logging.transport.scrapedPayloadsForTesting",
I)};
f5U=function(){return _.N("use_request_time_ms_header")||_.N("lr_use_request_time_ms_header")};
WWR=function(r,f){return _.N("transport_use_scheduler")===!1?_.rl(r,f):_.N("logging_avoid_blocking_during_navigation")||_.N("lr_logging_avoid_blocking_during_navigation")?_.dp(_.F_,function(){if(_.S6K().currentState==="none")r();else{var I={};_.S6K().install((I.none={callback:r},I))}},f):_.dp(_.F_,r,f)};
RDE=function(r){_.N("transport_use_scheduler")?_.F_.cancelJob(r):_.I1(r)};
kXu=function(r){var f,I,C,Y,V,S,h,w,n,d;return _.x(function(z){return z.nextAddress==1?(C=(f=r)==null?void 0:(I=f.responseContext)==null?void 0:I.globalConfigGroup,Y=_.F(C,xd$),S=(V=C)==null?void 0:V.hotHashData,h=_.F(C,hsP),n=(w=C)==null?void 0:w.coldHashData,(d=_.a().resolve(_.ZY(zL)))?S?Y?_.b(z,wId(d,S,Y),2):_.b(z,wId(d,S),2):z.jumpTo(2):z.return()):n?h?_.b(z,bvE(d,n,h),0):_.b(z,bvE(d,n),0):z.jumpTo(0)})};
tSq=function(r,f){f=f===void 0?200:f;return r?f===300?KWK:pIq:f===300?yGR:nYR};
MSl=function(r){if(_.N("enable_web_tiered_gel")){r=ddK[r||""];var f,I,C,Y=_.a().resolve(_.ZY(zL))==null?void 0:(f=zsd())==null?void 0:(I=f.loggingHotConfig)==null?void 0:(C=I.eventLoggingConfig)==null?void 0:C.payloadPolicies;if(Y)for(f=0;f<Y.length;f++)if(Y[f].payloadNumber===r)return Y[f]}};
zDu=function(r){r=Object.keys(r);r=_.E(r);for(var f=r.next();!f.done;f=r.next())if(f=f.value,ddK[f])return f};
gNR=function(r){switch(r){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}};
Nmw=function(r){return r==="gelDebuggingEvent"};
QsK=function(r){return(r===void 0?0:r)&&_.N("vss_through_gel_video_stats")?"video_stats":"log_event"};
gp=function(r,f,I,C){C=C===void 0?{}:C;var Y={},V=Math.round(C.timestamp||(0,_.Ad)());Y.eventTimeMs=V<Number.MAX_SAFE_INTEGER?V:0;Y[r]=f;r=_.Zs();Y.context={lastActivityMs:String(C.timestamp||!isFinite(r)?-1:r)};C.sequenceGroup&&!_.N("web_gel_sequence_info_killswitch")&&(r=Y.context,f=C.sequenceGroup,f={index:M$u(f),groupKey:f},r.sequence=f,C.endOfSequence&&delete MW[C.sequenceGroup]);(C.sendIsolatedPayload?a1K:$vd)({endpoint:"log_event",payload:Y,cttAuthInfo:C.cttAuthInfo,dangerousLogToVisitorSession:C.dangerousLogToVisitorSession},
I)};
M$u=function(r){MW[r]=r in MW?MW[r]+1:0;return MW[r]};
_.NW=function(r,f,I){I=I===void 0?{}:I;var C=a5;_.mO("ytLoggingEventsDefaultDisabled",!1)&&a5===a5&&(C=null);gp(r,f,C,I)};
_.$l=function(){if(_.N("web_fp_via_jspb")){var r=!0;r=r===void 0?!1:r;var f=gYu;gYu=[];if(f){f=_.E(f);for(var I=f.next();!I.done;I=f.next())I=I.value,r?gp(I.payloadName,I.payload,a5,I.options):_.NW(I.payloadName,I.payload,I.options)}TmR(void 0,!0);if(!_.N("web_fp_via_jspb_and_json"))return}TmR(void 0,!1)};
a5R=function(r,f){var I;if((I=f)==null?0:I.componentStack)return f;if(r=r.componentStack)f||(f={}),f.componentStack=r;return f};
XIu=function(){_.Rv(_.Lz("ERRORS")||[],function(r){_.Fo.apply(null,r)});
_.Ww("ERRORS",[])};
_.PR=function(r){_.Fo(r)};
_.t7=function(r){_.Fo(r,"WARNING")};
NFK=function(r){r instanceof Error?_.Fo(r):(r=_.lV(r)?JSON.stringify(r):String(r),r=new _.nf(r),r.name="RejectedPromiseError",_.t7(r))};
$dq=function(r,f,I,C,Y,V){f=f===void 0?"Unknown file":f;I=I===void 0?0:I;var S=!1,h=MJc("log_window_onerror_fraction");if(h&&Math.random()<h)S=!0;else{h=document.getElementsByTagName("script");for(var w=0,n=h.length;w<n;w++)if(h[w].src.indexOf("/debug-")>0){S=!0;break}}S&&(S=!1,Y?S=!0:(typeof r==="string"?h=r:ErrorEvent&&r instanceof ErrorEvent?(S=!0,h=r.message,f=r.filename,I=r.lineno,C=r.colno):(h="Unknown error",f="Unknown file",I=0),Y=new _.nf(h),Y.name="UnhandledWindowError",Y.message=h,Y.fileName=
f,Y.lineNumber=I,isNaN(C)?delete Y.columnNumber:Y.columnNumber=C),_.N("wiz_enable_component_stack_propagation_killswitch")||(V=a5R(Y,V)),V&&_.TL(Y,V),S?_.Fo(Y):_.t7(Y))};
_.Fo=function(r,f,I,C,Y,V,S,h){V=V===void 0?{}:V;V.name=I||_.Lz("INNERTUBE_CONTEXT_CLIENT_NAME",1);V.version=C||_.Lz("INNERTUBE_CONTEXT_CLIENT_VERSION");I=V;f=f===void 0?"ERROR":f;S=S===void 0?!1:S;f=f===void 0?"ERROR":f;S=S===void 0?!1:S;if(r&&(r.hasOwnProperty("level")&&r.level&&(f=r.level),_.N("console_log_js_exceptions")&&(C=[],C.push("Name: "+r.name),C.push("Message: "+r.message),r.hasOwnProperty("params")&&C.push("Error Params: "+JSON.stringify(r.params)),r.hasOwnProperty("args")&&C.push("Error args: "+
JSON.stringify(r.args)),C.push("File name: "+r.fileName),C.push("Stacktrace: "+r.stack),C=C.join("\n"),window.console.log(C,r)),!(FvU>=5))){C=[];Y=_.E(PTU);for(V=Y.next();!V.done;V=Y.next()){V=V.value;try{V()&&C.push(V())}catch(m){}}C=[].concat(_.Na(t$B),_.Na(C));var w=TFR(r);Y=w.message||"Unknown Error";V=w.name||"UnknownError";var n=w.stack||r.stacktrace||"Not available";if(n.startsWith(V+": "+Y)){var d=n.split("\n");d.shift();n=d.join("\n")}d=w.lineNumber||"Not available";w=w.fileName||"Not available";
var z=0;if(r.hasOwnProperty("args")&&r.args&&r.args.length)for(var g=0;g<r.args.length&&!(z=wjl(r.args[g],"params."+g,I,z),z>=500);g++);else if(r.hasOwnProperty("params")&&r.params){var X=r.params;if(typeof r.params==="object")for(g in X){if(X[g]){var P="params."+g,W=Sh(X[g]);I[P]=W;z+=P.length+W.length;if(z>500)break}}else I.params=Sh(X)}if(C.length)for(g=0;g<C.length&&!(z=wjl(C[g],"params.context."+g,I,z),z>=500);g++);navigator.vendor&&!I.hasOwnProperty("vendor")&&(I["device.vendor"]=navigator.vendor);
g={message:Y,name:V,lineNumber:d,fileName:w,stack:n,params:I,sampleWeight:1};I=Number(r.columnNumber);isNaN(I)||(g.lineNumber=g.lineNumber+":"+I);if(r.level==="IGNORED")r=0;else a:{r=c3$();I=_.E(r.messageWeights);for(C=I.next();!C.done;C=I.next())if(C=C.value,g.message&&g.message.match(C.messageRegExp)){r=C.weight;break a}r=_.E(r.callbackWeights);for(I=r.next();!I.done;I=r.next())if(I=I.value,I.callback(g)){r=I.weight;break a}r=1}g.sampleWeight=r;r=_.E(WvR);for(I=r.next();!I.done;I=r.next())if(I=
I.value,I.patternsForType[g.name])for(Y=_.E(I.patternsForType[g.name]),C=Y.next();!C.done;C=Y.next())if(V=C.value,C=g.message.match(V.regexp)){g.params["params.error.original"]=C[0];Y=V.groups;V={};for(d=0;d<Y.length;d++)V[Y[d]]=C[d+1],g.params["params.error."+Y[d]]=C[d+1];g.message=I.messageFn(V);break}g.params||(g.params={});r=c3$();g.params["params.errorServiceSignature"]="msg="+r.messageWeights.length+"&cb="+r.callbackWeights.length;g.params["params.serviceWorker"]="false";_.Yq.document&&_.Yq.document.querySelectorAll&&
(g.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new cR(Lvl,"sample")).constructor!==cR&&(g.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(g);if(g.sampleWeight!==0&&!mdP.has(g.message)){if(S&&_.N("web_enable_error_204"))esE(f===void 0?"ERROR":f,g);else{f=f===void 0?"ERROR":f;f==="ERROR"?(J3m.publish("handleError",g),_.N("record_app_crashed_web")&&jBm===0&&g.sampleWeight===1&&(jBm++,S={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.N("report_client_error_with_app_crash_ks")||(S.systemHealth={crashData:{clientError:{logMessage:{message:g.message}}}}),_.NW("appCrashed",S)),Hvd++):f==="WARNING"&&J3m.publish("handleWarning",g);if(_.N("kevlar_gel_error_routing")){S=f;h=h===void 0?{}:h;b:{r=_.E(ivd);for(I=r.next();!I.done;I=r.next())if(TU(I.value.toLowerCase())){r=!0;break b}r=!1}if(r)h=void 0;else{I={stackTrace:g.stack};g.fileName&&(I.filename=g.fileName);r=g.lineNumber&&g.lineNumber.split?g.lineNumber.split(":"):[];r.length!==
0&&(r.length!==1||isNaN(Number(r[0]))?r.length!==2||isNaN(Number(r[0]))||isNaN(Number(r[1]))||(I.lineNumber=Number(r[0]),I.columnNumber=Number(r[1])):I.lineNumber=Number(r[0]));r={level:"ERROR_LEVEL_UNKNOWN",message:g.message,errorClassName:g.name,sampleWeight:g.sampleWeight};S==="ERROR"?r.level="ERROR_LEVEL_ERROR":S==="WARNING"&&(r.level="ERROR_LEVEL_WARNNING");I={isObfuscated:!0,browserStackInfo:I};h.pageUrl=window.location.href;h.kvPairs=[];_.Lz("FEXP_EXPERIMENTS")&&(h.experimentIds=_.Lz("FEXP_EXPERIMENTS"));
C=_.Lz("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!MJc("web_disable_gel_stp_ecatcher_killswitch")&&C)for(Y=_.E(Object.keys(C)),V=Y.next();!V.done;V=Y.next())V=V.value,h.kvPairs.push({key:V,value:String(C[V])});if(C=g.params)for(Y=_.E(Object.keys(C)),V=Y.next();!V.done;V=Y.next())V=V.value,h.kvPairs.push({key:"client."+V,value:String(C[V])});C=_.Lz("SERVER_NAME");Y=_.Lz("SERVER_VERSION");C&&Y&&(h.kvPairs.push({key:"server.name",value:C}),h.kvPairs.push({key:"server.version",value:Y}));h={errorMetadata:h,
stackTrace:I,logMessage:r}}h&&(_.NW("clientError",h),(S==="ERROR"||_.N("errors_flush_gel_always_killswitch"))&&_.$l())}_.N("suppress_error_204_logging")||esE(f,g)}try{mdP.add(g.message)}catch(m){}FvU++}}};
esE=function(r,f){var I=f.params||{};r={urlParams:{a:"logerror",t:"jserror",type:f.name,msg:f.message.substr(0,250),line:f.lineNumber,level:r,"client.name":I.name},postParams:{url:_.Lz("PAGE_NAME",window.location.href),file:f.fileName},method:"POST"};I.version&&(r["client.version"]=I.version);if(r.postParams){f.stack&&(r.postParams.stack=f.stack);f=_.E(Object.keys(I));for(var C=f.next();!C.done;C=f.next())C=C.value,r.postParams["client."+C]=I[C];if(I=_.Lz("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(f=
_.E(Object.keys(I)),C=f.next();!C.done;C=f.next())C=C.value,r.postParams[C]=I[C];(I=_.Lz("LAVA_VERSION"))&&(r.postParams["lava.version"]=I);I=_.Lz("SERVER_NAME");f=_.Lz("SERVER_VERSION");I&&f&&(r.postParams["server.name"]=I,r.postParams["server.version"]=f)}_.lh(_.Lz("ECATCHER_REPORT_HOST","")+"/error_204",r)};
_.RsU=function(r,f){f=f===void 0?"ERROR":f;var I=I===void 0?{}:I;var C=_.jH("ytbin.polymer.shared.lib.tampering.info");C&&(C=C())&&(I["params.tamperingInfo"]=C.sort().join(","));_.Fo(r,f,void 0,void 0,!0,I)};
_.TL=function(r){var f=_.XE.apply(1,arguments);r.args||(r.args=[]);Array.isArray(r.args)&&r.args.push.apply(r.args,_.Na(f))};
vYE=function(r){r.level="IGNORED"};
KvU=function(r,f){t$B.push(r);f();t$B.pop()};
eq=function(r,f){for(var I in f)f.hasOwnProperty(I)&&(r=_.mN(r,I,f[I]));return r};
_.y3R=function(r,f,I){I=I===void 0?!1:I;if(!r)return null;if(r.adInfoDialogEndpoint||r.backstageImageUploadEndpoint||r.confirmDialogEndpoint||r.clientActionEndpoint||r.createBackstagePostDialogEndpoint||r.createCommentReplyDialogEndpoint||r.flowEndpoint||r.guideBuilderEndpoint||r.liveChatDialogEndpoint||r.modalEndpoint||r.openPopupAction||r.shareEndpoint||r.shareEntityEndpoint||r.showLiveChatItemEndpoint||r.subscriptionManagerEndpoint||r.unlimitedCreateFamilyEndpoint||r.unlimitedFamilyFlowEndpoint||
r.updateCommentDialogEndpoint||r.updateCommentReplyDialogEndpoint||r.userFeedbackEndpoint||r.videoEditorEndpoint||r.ypcCancelSurveyEndpoint)return f=_.Bw("polymer_report_client_url_requested_rate"),!I&&Math.random()<f&&_.t7(new _.nf("urlForEndpoint used on client endpoint",r)),null;var C=_.Bw("polymer_report_missing_web_navigation_endpoint_rate");if(r.liveChatEndpoint||r.liveChatReplayEndpoint)C=0;if(!r.commandMetadata&&!r.clickTrackingParams&&Math.random()<C){var Y={},V;for(V in r)Y[V]="1";_.t7(new _.nf("Missing navigation data",
Y))}Y="";if(r.commandMetadata&&r.commandMetadata.webCommandMetadata&&r.commandMetadata.webCommandMetadata.url)Y=r.commandMetadata.webCommandMetadata.url;else if(r.searchEndpoint)Math.random()<C&&_.t7(new _.nf("Should not manually handle search",r)),Y="/results?search_query="+encodeURIComponent(r.searchEndpoint.query).replace(/%20/g,"+"),r.searchEndpoint.params&&(Y+="&sp="+r.searchEndpoint.params);else if(r.watchEndpoint)Math.random()<C&&_.t7(new _.nf("Should not manually handle watch",r)),Y="/watch?v="+
r.watchEndpoint.videoId,r.watchEndpoint.playlistId&&(Y+="&list="+r.watchEndpoint.playlistId),r.watchEndpoint.index&&(Y+="&index="+r.watchEndpoint.index),r.watchEndpoint.startTimeSeconds&&(Y+="&t="+r.watchEndpoint.startTimeSeconds);else if(r.browseEndpoint)C=r.browseEndpoint.browseId,(V=r.browseEndpoint.canonicalBaseUrl)?Y=V:C&&(Y=C.substr(0,2),Y=Y==="FE"?C==="FEwhat_to_watch"?"/":C==="FEmy_videos"?"/my_videos":"/feed/"+C.substr(2):Y==="VL"?"/playlist?list="+C.substr(2):"/channel/"+C),Y&&r.browseEndpoint.query&&
(Y=eq(Y+"/search",{query:r.browseEndpoint.query})),Y&&r.browseEndpoint.params&&(Y=eq(Y,{params:r.browseEndpoint.params}));else{if(r.urlEndpoint)return r.urlEndpoint.url;r.signInEndpoint?(Y="https://accounts.google.com/ServiceLogin",C={},_.X0.extend(C,f||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),f=C):r.uploadEndpoint?Y="//www.youtube.com/upload":r.liveChatEndpoint?(Y=r.liveChatEndpoint,C=_.X0.clone(Y),_.lV(Y.continuation)&&(V=Object.keys(Y.continuation)[0],
C.continuation=Y.continuation[V].continuation),Y=eq("/youtubei/v1/live_chat/get_live_chat",C)):r.liveChatReplayEndpoint?(Y=_.X0.clone(r.liveChatReplayEndpoint),Y.currentPlayerState&&(_.X0.extend(Y,Y.currentPlayerState),delete Y.currentPlayerState),Y=eq("/youtubei/v1/live_chat/get_live_chat_replay",Y)):r.liveChatItemContextMenuEndpoint?Y=eq("/youtubei/v1/live_chat/get_item_context_menu",r.liveChatItemContextMenuEndpoint):r.liveChatPurchaseMessageEndpoint?Y=eq("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
r.liveChatPurchaseMessageEndpoint):r.openSuperStickerBuyFlowCommand?Y=eq("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",r.openSuperStickerBuyFlowCommand):r.videoEditEndpoint?Y=eq("/edit",{video_id:r.videoEditEndpoint.videoId}):r.liveDashboardEndpoint?Y=r.liveDashboardEndpoint.videoId?eq("/live_dashboard",{v:r.liveDashboardEndpoint.videoId}):"/live_dashboard":r.signalNavigationEndpoint&&r.signalNavigationEndpoint.signal&&r.signalNavigationEndpoint.signal==="WEBCAM"?Y="/webcam":r.getPdgBuyFlowCommand&&
(Y=eq(r.getPdgBuyFlowCommand.buyflowApiPath,{params:r.getPdgBuyFlowCommand.params}))}return Y||I?eq(Y,f||{}):(_.t7(new _.nf("Error: Can't construct url for endpoint","keys:"+Object.keys(r).sort().join(","),r)),null)};
UdR=function(r){if(r){if(r.browseEndpoint)return!!r.browseEndpoint.nofollow;if(r.watchEndpoint)return!!r.watchEndpoint.nofollow;if(r.urlEndpoint)return!!r.urlEndpoint.nofollow}return!1};
_.OvE=function(r,f){var I=f+r,C=sBU.get(I);if(C)return C;r=f+"-"+r.replace(/([A-Z])/g,"-$1").toLowerCase();sBU.set(I,r);return r};
oYl=function(r){var f=_.Tg(r,"action")||_.Tg(r,"command")||_.Tg(r,"endpoint");if(!f)return null;f=_.OvE(f,"yt");_.F(r,_.J7)&&(f+="-"+_.F(r,_.J7).signal.toLowerCase().replace(/_/g,"-"));return f};
Gil=function(r){try{var f=Object.keys(r)}catch(Y){return[]}for(var I=0;I<f.length;I++){var C=f[I];if(QBR.test(C)||A3E.test(C))return Zv$(r[C])}return[]};
Zv$=function(r){return r.command?[r.command]:r.onExecutionAction?[r.onExecutionAction]:r.onResponseReceivedCommand?[r.onResponseReceivedCommand]:r.updateFlowCommand?[r.updateFlowCommand]:r.clientActions?r.clientActions:r.action?[r.action]:r.actions||r.commands||r.onResponseReceivedActions||r.onResponseReceivedCommands||r.onResponseReceivedEndpoints||[]};
BFw=function(r,f){f=f===void 0?!1:f;var I=_.a().resolve(_.ZY(jq));I||(I=new kiP,_.a().addProvider({provide:jq,useValue:I}));return I&&r&&!_.X0.isEmpty(r)?I.getUrl(r,f):""};
q6U=function(r,f,I){I=I===void 0?"":I;if(f){r.data=f;var C=BFw(f);C?(t6(r,C),UdR(f)||!QM(C)?r.rel="nofollow":r.removeAttribute("rel"),_.F(f,_.HR)&&_.F(f,_.HR).target==="TARGET_NEW_WINDOW"?r.target="_blank":I?r.target=I:r.removeAttribute("target")):(r.removeAttribute("href"),r.removeAttribute("rel"),r.removeAttribute("target"))}};
_.KN=function(r,f){var I=OD;if(Mk())u2u(r,function(){var V=_.XE.apply(0,arguments);TA(I,function(){f.apply(null,_.Na(V))})});
else{var C=_.iz.getInstance(),Y=tn(f);gt(function(){Y.value=f});
_.$E(function(){var V={},S=_.R5(C,(V[r]=function(){var h=_.XE.apply(0,arguments);TA(I,function(){Y.value.apply(Y,_.Na(h))})},V));
return function(){var h={};_.vR(C,(h[r]="",h),S)}})}};
_.yy=function(r){return Mk()?DdK(r):r8w(r)};
_.Ue=function(r){return Mk()?DdK(r):r8w(r)};
r8w=function(r){return Pw(function(){return DdK(r)})};
DdK=function(r){var f=YCP(function(I){f.value&&f.value===I||(f.__count=f.__count?f.__count+1:1);f.value=I;var C=function(){var Y=DE(null);try{return r==null?void 0:r(I)}finally{DE(Y)}}();
return function(){C==null||C();f.value=null}});
return f};
fbP=function(r){var f=OD,I=py;return{getFn:function(){return function(C){f.isDisposed||gI(function(){return YL(function(){return r(C)})},{stack:I})!==!0&&C.stopPropagation()}}}};
YkK=function(r,f){if(Mk())Ibw(r,function(C){var Y=DE(null);try{f(C)}finally{DE(Y)}});
else{var I=tn(f);gt(function(){I.value=f});
_.$E(function(){var C=r.value;if(C){var Y=function(V){I.value(V)};
C.addEventListener("yt-service-request-sent",Y,void 0);return function(){C?C.removeEventListener("yt-service-request-sent",Y,void 0):CBK(r)}}CBK(r)})}};
CBK=function(r){var f;(f=ka.handleError)==null||f.call.apply(f,[ka].concat(_.Na(c9(lmK.LOG_NULL_EL_REF_VALUE(),r.__expectedTagName,2))))};
se=function(r){if(typeof r.children==="function")return r.children(),null;r=_.E(r.children);for(var f=r.next();!f.done;f=r.next())f=f.value,f();return null};
lbK=function(r){var f;return((f=r.prototype)==null?void 0:f.render)===void 0};
VuB=function(r){r=r.items.map(r.children);return r.length>0&&typeof r[0]==="string"?r.join(""):r};
Skw=function(r,f,I){I=I===void 0?!1:I;gI(function(){return EZE(r,f,I)})};
EZE=function(r,f,I){I=((I===void 0?0:I)?xmq:hhB)(r,function(){Oe(f)});
return I===null?r:I};
Oe=function(r){if(r!==void 0&&r!==null)if(r instanceof VM)for(var f=eb;JR()!=null&&s5K in JR()&&f.contains(JR());)id();else if(Array.isArray(r))for(f=_.E(r),r=f.next();!r.done;r=f.next())Oe(r.value);else if(r instanceof ER||"function"==typeof _.sR&&r instanceof _.sR)Q3(r.toString());else if(ud(r)){if(JR()!==r){var I,C;f=(C=(I=py)==null?void 0:I.name)!=null?C:"unknown";throw Error("ec`"+r.tagName+"`"+f);}id()}else if(r!=null&&r.contentKind===fz||r instanceof TC)for(f=xWc(r),f=Array.from(f.childNodes),
f=_.E(f),r=f.next();!r.done;r=f.next())eb.appendChild(r.value),id();else if(pK(r)&&(r=r.toString()),I=typeof r,I==="boolean"||I==="number"||I==="string")Q3(r);else if(typeof r==="function"){f=eb;var Y=JR();Y&&(Y._isSignalTextNode||Y._isSafeOrSanitizedHtmlNode)||ecE(f,Y,r);id()}else if(r.type===VuB)Oe(r.type(Object.assign({},r.props,{children:r.children[0]})));else{xE.beforeVisit(r);if(typeof r.type==="string"){a:{r.__open||OWw(r.type,r.props.idomKey);Y=eb;for(f in r.props)if(r.props[f]!==wll){var V=
r.props[f];I=y3;I.push(f);I.push(V)}f=ka.attributes;f=f===void 0?o5:f;V=eb;I=mb(V);BUR(V,I,f);mWE(Y,r.props,!0);if((r.props.skip||r.props.skipchildren)&&eb.hasChildNodes())v9();else{if(r.type==="style"&&zcl(r.children)===null){v9();f=void 0;break a}Oe(r.children)}ooU();r.__open&&(r.__open=!1);Czu(Y,r.props);f=Y}return f}if(r.type===_.B9)Oe(r.children);else if(!bQc(r)){f=r;try{plc(f)}catch(S){r=S,(V=ka.handleError)==null||V.call.apply(V,[ka].concat(_.Na(c9(r,(Y=f.type)==null?void 0:Y.TAG_NAME))))}f.__open&&
(ooU(),f.__open=!1)}}};
nZ$=function(r,f){var I;lbK(r)?I=new wt(f,r):I=new r(f);I.JSC$8167___type=r;I.__updateContext={nextState:I.state,isForced:!1};return I};
plc=function(r){var f=r.type,I=f.TAG_NAME;if(f===se)r.props.children=r.children,f(r.props);else{r.children.length>0&&(r.props.children=r.children);var C;(C=r.props).idomKey||(C.idomKey=f);if(I){var Y=OWw(I,r.props.idomKey);r.__open=!0;var V=Y.__instance}V||(V=nZ$(f,r.props),V.props=null,Y&&(Y.__instance=V,V.el=Y));var S;I=((S=V.__updateContext)!=null?S:{nextState:V.state,isForced:!1}).nextState;V.__updateContext=void 0;f.getDerivedStateFromProps&&(I=f.getDerivedStateFromProps(r.props,I));V.props=
r.props;V.state=I;S=function(){var h=V;xE.beforeRender(h);var w=h.render(h.props);xE.afterRender(h,w);w?(h.props.idomKey&&(w.props.idomKey=h.props.idomKey),h=w):h=void 0;if(w=h)if(w.__open=r.__open,h=Oe(w),r.__open=w.__open,!f.TAG_NAME)if(h)f.TAG_NAME=h.tagName.toLowerCase(),h.__instance=V,V.el=h;else{var n;if((n=V.hooks)==null?0:n.length){var d;(d=ka.handleError)==null||d.call.apply(d,[ka].concat(_.Na(c9(Error("kd")))))}}V.didPatch();xE.didPatch(V)};
(I=V.functionComponent)?Eoc({component:I,debugInstance:V.props.debugInstance,fn:S}):S()}};
bQc=function(r){var f=r.type;if(!lbK(f)||f===se||f.componentType===ny)return!1;r.props.children=r.children.length>1?r.children:r.children[0];var I,C=(I=r.props.idomKey)!=null?I:r.type,Y;if(JR()&&((Y=JR()[Cz])==null?void 0:Y.key)===C){var V=JR(),S=V[Cz];if(!S)throw Error("dc`"+V.tagName);var h;(h=S.updateSignalsFromIdomProps)==null||h.call(S,r.props);dm$(S);return!0}if(zhm.has(f.name))throw h=f.name,f=(S=(V=py)==null?void 0:V.name)!=null?S:"unknown",Error("cc`"+h+"`"+f);iNU(r.type,r.props,r.children);
r.props.renderedFromIdom=!0;(h=Eoc({component:r.type,debugInstance:r.props.debugInstance,fn:function(){return tqw(r.type,r.props)}}))&&MuR(h);
return!0};
gZR=function(r){for(var f=0;f<lk(r).length;f++)id()};
dm$=function(r){var f=abK();if(f)gZR(f);else for(var I=0;I<r.numNodes;I++)(f=abK())?gZR(f):id()};
abK=function(){var r;return(r=JR()[Cz])==null?void 0:r.sourceDynamicRange};
MuR=function(r){r=lWw(r);r=Array.isArray(r)?r:[r];r=_.E(r);for(var f=r.next();!f.done;f=r.next())eb.insertBefore(f.value,JR()),id()};
XlP=function(r){var f=c7R(),I=Pw(function(){return{value:typeof r==="function"?r():r}});
return[I.value,function(C){if(hn!==null){var Y;(Y=ka.handleError)==null||Y.call.apply(Y,[ka].concat(_.Na(c9(Error("ld")))))}I.value=typeof C==="function"?C(I.value):C;f.__updateContext={nextState:f.state,isForced:!0};C=oZ(f.effectContext);Y=qk(!1);try{if(f.el){var V,S={},h=(S.props=f.props,S.type=f.JSC$8167___type,S.children=(V=f.props.children)!=null?V:[],S[Z3]=!0,S);try{Skw(f.el,h,!0)}catch(d){var w,n;(n=ka.handleError)==null||n.call.apply(n,[ka].concat(_.Na(c9(d,(w=f.JSC$8167___type)==null?void 0:
w.TAG_NAME))))}}}finally{qk(Y),oZ(C)}}]};
Qy=function(r,f){var I=OD,C=function(Y){TA(I,function(){f(Y)})};
window.addEventListener(r,C,void 0);_.$L(function(){window.removeEventListener(r,C,void 0)})};
_.ZW=function(r,f){var I=OD;_.$E(function(){var C,Y=(C=f.observer)!=null?C:_.a().resolve(A7);if(C=r.value){var V=NW$(C),S=[];f.showOption&&S.push(Y.observe(C,function(){TA(I,function(){f.visibilityCallback(!0)})},f.showOption));
f.hideOption&&S.push(Y.observe(C,function(){TA(I,function(){f.visibilityCallback(!1)})},f.hideOption));
f.prescanOption&&f.prescanCallback&&S.push(Y.observe(C,function(){TA(I,function(){f.prescanCallback()})},f.prescanOption));
var h;V.visibilityMonitorKeys=((h=V.visibilityMonitorKeys)!=null?h:[]).concat(S)}})};
NW$=function(r){var f;return(f=r.polymerController)!=null?f:r};
_.GL=function(r){r.componentType=ny};
tud=function(r,f){var I=$md;return _.p(_.B9,null,sD(ka.enableLazyTsx,function(){return _.p(FCc,{id:I,value:r,children:f})},function(){var C=PBK(I,r);
ZE(C);C=oZ(C);try{return f()}finally{oZ(C)}}))};
FCc=function(r){var f=r.children;r=PBK(r.id,r.value);ZE(r);r=oZ(r);try{return _.p(_.B9,null,EQ(f()))}finally{oZ(r)}};
PBK=function(r,f){return Object.assign(Object.create(TWq),{id:r,contextValue:f})};
c8K=function(r){var f,I=OD;_.Nk(function(){var C=oZ(I),Y=qk(!f);try{if(f)Skw(f,r.children(),!0);else if(f=EQ(r.children()),!(f instanceof Element))throw Error("md");}finally{qk(Y),oZ(C)}});
return f};
WCd=function(r){var f,I=P9(function(){var C=qk(!0);try{f=lk(r())}finally{qk(C)}},!1);
return[f,I]};
mmK=function(r){r=r.buf.charCodeAt(r.pos++);return LCP[r]};
kl=function(r){var f=0,I=0;do{var C=mmK(r);f|=(C&31)<<I;I+=5}while(C&32);return f<0?f+4294967296:f};
jC$=function(r,f,I){ehc(r,f);r[f][J8E].unshift(I)};
ehc=function(r,f){if(!r[f]||!r[f][J8E]){var I=r[f],C=I?[I]:[];r[f]=function(){for(var Y=_.E(C),V=Y.next();!V.done;V=Y.next())V.value.apply(this,arguments)};
r[f][J8E]=C}};
HQP=function(r){if(!r)return[];var f=[];r=_.E(r);for(var I=r.next();!I.done;I=r.next())I=I.value,Array.isArray(I)?f.push.apply(f,_.Na(HQP(I))):f.push(I);return f};
_.qW=function(r,f){if(r&&iQq.test(r)||r==="//")return r;if(Rhl===void 0){Rhl=!1;try{var I=new URL("b","http://a");I.pathname="c%20d";Rhl=I.href==="http://a/c%20d"}catch(C){}}f||(f=document.baseURI||window.location.href);if(Rhl)try{return(new URL(r,f)).href}catch(C){return r}BR||(BR=document.implementation.createHTMLDocument("temp"),BR.base=BR.createElement("base"),BR.head.appendChild(BR.base),BR.anchor=BR.createElement("a"),BR.body.appendChild(BR.anchor));BR.base.href=f;BR.anchor.href=r;return BR.anchor.href||
r};
KCd=function(r,f){return r.replace(vZl,function(I,C,Y,V){return C+"'"+_.qW(Y.replace(/["']/g,""),f)+"'"+V})};
y8P=function(r){return r.substring(0,r.lastIndexOf("/")+1)};
OQR=function(){UmU=!1;for(var r=uz.length,f=0;f<r;f++){var I=uz[f];if(I)try{I()}catch(C){setTimeout(function(){throw C;})}}uz.splice(0,r);
sC$+=r};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(r){console.log("["+r.is+"]: registered")};
QCc=function(r){oZ$.push(r)};
DW=function(r){return A8K[r]||(A8K[r]=r.indexOf("-")<0?r:r.replace(ZQw,function(f){return f[1].toUpperCase()}))};
rb=function(r){return A8K[r]||(A8K[r]=r.replace(GYd,"-$1").toLowerCase())};
kYE=function(r,f){var I=f.parentInfo&&kYE(r,f.parentInfo);if(I)for(r=I.firstChild,I=0;r;r=r.nextSibling){if(f.parentIndex===I++)return r}else return r};
BWE=function(r,f){r=r._methodHost||r;return function(I){if(r[f])r[f](I,I.detail);else console.warn("listener method `"+f+"` not defined")}};
fE=function(r){return r.indexOf(".")>=0};
I6=function(r){var f=r.indexOf(".");return f===-1?r:r.slice(0,f)};
qkR=function(r,f){return r.indexOf(f+".")===0};
CE=function(r,f){return f.indexOf(r+".")===0};
Yf=function(r,f,I){return f+I.slice(r.length)};
uAw=function(r,f){return r===f||qkR(r,f)||CE(r,f)};
lK=function(r){if(Array.isArray(r)){for(var f=[],I=0;I<r.length;I++)for(var C=r[I].toString().split("."),Y=0;Y<C.length;Y++)f.push(C[Y]);return f.join(".")}return r};
DmR=function(r){return Array.isArray(r)?lK(r).split("."):r.toString().split(".")};
Vt=function(r,f,I){f=DmR(f);for(var C=0;C<f.length;C++){if(!r)return;r=r[f[C]]}I&&(I.path=f.join("."));return r};
rv$=function(r,f,I){var C=DmR(f),Y=C[C.length-1];if(C.length>1){for(f=0;f<C.length-1;f++)if(r=r[C[f]],!r)return;r[Y]=I}else r[f]=I;return C.join(".")};
fKc=function(r,f,I){var C=r[f];if(!C)C=r[f]={};else if(!r.hasOwnProperty(f)&&(C=r[f]=Object.create(r[f]),I))for(var Y in C)for(r=C[Y],f=C[Y]=Array(r.length),I=0;I<r.length;I++)f[I]=r[I];return C};
SJ=function(r,f,I,C,Y,V){if(f){var S=!1,h=EC++,w;for(w in I){var n=Y?I6(w):w;if(n=f[n])for(var d=0,z=n.length,g=void 0;d<z&&(g=n[d]);d++)g.info&&g.info.lastRun===h||Y&&!IKq(w,g.trigger)||(g.info&&(g.info.lastRun=h),g.fn(r,w,I,C,g.info,Y,V),S=!0)}return S}return!1};
IKq=function(r,f){if(f){var I=f.name;return I==r||!(!f.structured||!qkR(I,r))||!(!f.wildcard||!CE(I,r))}return!0};
C6K=function(r,f,I,C,Y){f=typeof Y.method==="string"?r[Y.method]:Y.method;I=Y.property;f?f.call(r,r.__data[I],C[I]):Y.dynamicFn||console.warn("observer method `"+Y.method+"` not defined")};
Y0K=function(r,f,I,C){I={value:I,queueProperty:!0};C&&(I.path=C);(0,_.xf)(r).dispatchEvent(new CustomEvent(f,{detail:I}))};
lKR=function(r,f,I,C,Y,V){V=(C=(V?I6(f):f)!=f?f:null)?Vt(r,C):r.__data[f];C&&V===void 0&&(V=I[f]);Y0K(r,Y.eventName,V,C)};
VOR=function(r,f,I,C,Y){I=r.__data[f];hq&&(I=hq(I,Y.attrName,"attribute",r));r._propertyToAttribute(f,Y.attrName,I)};
S0P=function(r){var f=r.constructor.__orderedComputedDeps;if(!f){f=new Map;for(var I=r.__computeEffects,C=E4B(r),Y=C.counts,V=C.ready,S=C.total;C=V.shift();)f.set(C,f.size),(C=I[C])&&C.forEach(function(h){h=h.info.methodInfo;--S;--Y[h]===0&&V.push(h)});
S!==0&&console.warn("Computed graph for "+r.localName+" incomplete; circular?");r.constructor.__orderedComputedDeps=f}return f};
E4B=function(r){var f=r.__computeInfo,I={};r=r.__computeEffects;var C=[],Y=0,V;for(V in f){var S=f[V];Y+=I[V]=S.args.filter(function(w){return!w.literal}).length+(S.dynamicFn?1:0)}for(var h in r)f[h]||C.push(h);
return{counts:I,ready:C,total:Y}};
h3E=function(r,f,I,C,Y){f=xIu(r,f,I,C,Y);if(f===wb)return!1;Y=Y.methodInfo;if(r.__dataHasAccessor&&r.__dataHasAccessor[Y])return r._setPendingProperty(Y,f,!0);r[Y]=f;return!1};
poc=function(r,f,I,C,Y,V,S){I.bindings=I.bindings||[];C={kind:C,target:Y,parts:V,literal:S,isCompound:V.length!==1};I.bindings.push(C);C.target&&C.kind!="attribute"&&C.kind!="text"&&!C.isCompound&&C.parts[0].mode==="{"&&(I=C.parts[0],V=I.negate,C.listenerEvent=I.event||rb(Y)+"-changed",C.listenerNegate=V);Y=f.nodeInfoList.length;for(I=0;I<C.parts.length;I++){var h=C.parts[I];h.compoundIndex=I;V=r;S=f;var w=C,n=h,d=Y;if(!n.literal)if(w.kind==="attribute"&&w.target[0]==="-")console.warn("Cannot set attribute "+
w.target+' because "-" is not a valid attribute starting character');else for(h=n.dependencies,w={index:d,binding:w,part:n,evaluator:V},n=0;n<h.length;n++)d=h[n],typeof d=="string"&&(d=woR(d),d.wildcard=!0),V._addTemplatePropertyEffect(S,d.rootProperty,{fn:bFE,info:w,trigger:d})}};
bFE=function(r,f,I,C,Y,V,S){S=S[Y.index];var h=Y.binding,w=Y.part;V&&w.source&&f.length>w.source.length&&h.kind=="property"&&!h.isCompound&&S.__isPropertyEffectsClient&&S.__dataHasAccessor&&S.__dataHasAccessor[h.target]?(I=I[f],f=Yf(w.source,h.target,f),S._setPendingPropertyOrPath(f,I,!1,!0)&&r._enqueueClient(S)):(f=Y.evaluator._evaluateBinding(r,w,f,I,C,V),f!==wb&&(h.isCompound&&(I=S.__dataCompoundStorage[h.target],I[w.compoundIndex]=f,f=I.join("")),h.kind==="attribute"||h.target!=="textContent"&&
(h.target!=="value"||S.localName!=="input"&&S.localName!=="textarea")||(f=f==void 0?"":f),w=f,hq&&(w=hq(w,h.target,h.kind,S)),h.kind=="attribute"?r._valueToNodeAttribute(S,w,h.target):(h=h.target,S.__isPropertyEffectsClient&&S.__dataHasAccessor&&S.__dataHasAccessor[h]?S.__readOnly&&S.__readOnly[h]||S._setPendingProperty(h,w)&&r._enqueueClient(S):r._setUnmanagedPropertyToNode(S,h,w))))};
n4w=function(r,f,I){if(I.listenerEvent){var C=I.parts[0];r.addEventListener(I.listenerEvent,function(Y){var V=I.target,S=C.source,h=C.negate,w=Y.detail,n=w&&w.path;n?(S=Yf(V,S,n),Y=w&&w.value):Y=Y.currentTarget[V];f.__readOnly&&f.__readOnly[S]||!f._setPendingPropertyOrPath(S,h?!Y:Y,!0,!!n)||w&&w.queueProperty||f._invalidateProperties()})}};
dIU=function(r,f,I,C,Y,V){V=f.static||V&&(typeof V!=="object"||V[f.methodName]);Y={methodName:f.methodName,args:f.args,methodInfo:Y,dynamicFn:V};for(var S=0,h=void 0;S<f.args.length&&(h=f.args[S]);S++)h.literal||r._addPropertyEffect(h.rootProperty,I,{fn:C,info:Y,trigger:h});V&&r._addPropertyEffect(f.methodName,I,{fn:C,info:Y});return Y};
xIu=function(r,f,I,C,Y){C=r._methodHost||r;var V=C[Y.methodName];if(V)return r=r._marshalArgs(Y.args,f,I),r===wb?wb:V.apply(C,r);Y.dynamicFn||console.warn("method `"+Y.methodName+"` not defined")};
z3w=function(r){for(var f="",I=0;I<r.length;I++)f+=r[I].literal||"";return f};
aKK=function(r){if(r=r.match(/([^\s]+?)\(([\s\S]*)\)/)){var f={methodName:r[1],static:!0,args:MOc};return r[2].trim()?g4E(r[2].replace(/\\,/g,"&comma;").split(","),f):f}return null};
g4E=function(r,f){f.args=r.map(function(I){I=woR(I);I.literal||(f.static=!1);return I},this);
return f};
woR=function(r){r=r.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var f={name:r,value:"",literal:!1},I=r[0];I==="-"&&(I=r[1]);I>="0"&&I<="9"&&(I="#");switch(I){case "'":case '"':f.value=r.slice(1,-1);f.literal=!0;break;case "#":f.value=Number(r),f.literal=!0}f.literal||(f.rootProperty=I6(r),f.structured=fE(r),f.structured&&(f.wildcard=r.slice(-2)==".*",f.wildcard&&(f.name=r.slice(0,-2))));return f};
XoB=function(r,f,I){r=Vt(r,I);r===void 0&&(r=f[I]);return r};
NuR=function(r,f,I,C){C={indexSplices:C};bK&&!r._overrideLegacyUndefined&&(f.splices=C);r.notifyPath(I+".splices",C);r.notifyPath(I+".length",f.length);bK&&!r._overrideLegacyUndefined&&(C.indexSplices=[])};
pE=function(r,f,I,C,Y,V){NuR(r,f,I,[{index:C,addedCount:Y,removed:V,object:f,type:"splice"}])};
$Il=function(r){r=KCd((r.body?r.body:r).textContent,r.baseURI);var f=document.createElement("style");f.textContent=r;return f};
tOu=function(r){r=r.trim().split(/\s+/);for(var f=[],I=0;I<r.length;I++)f.push.apply(f,_.Na(P6K(r[I])));return f};
P6K=function(r){var f=nE.import(r);if(!f)return console.warn("Could not find style data in module named",r),[];if(f._styles===void 0){r=[];r.push.apply(r,_.Na(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(f)));var I=f.querySelector("template");I&&r.push.apply(r,_.Na(Tud(I,f.assetpath)));f._styles=r}return f._styles};
Tud=function(r,f){if(!r._styles){for(var I=[],C=r.content.querySelectorAll("style"),Y=0;Y<C.length;Y++){var V=C[Y],S=V.getAttribute("include");S&&I.push.apply(I,_.Na(tOu(S).filter(function(h,w,n){return n.indexOf(h)===w})));
f&&(V.textContent=KCd(V.textContent,f));I.push(V)}r._styles=I}return r._styles};
cv$=function(r){return(r=nE.import(r))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(r):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(r){var f=[];r=r.querySelectorAll("link[rel=import][type~=css]");for(var I=0;I<r.length;I++){var C=r[I];if(C.import){var Y=C.import;if((C=C.hasAttribute("shady-unscoped"))&&!Y._unscopedStyle){var V=$Il(Y);V.setAttribute("shady-unscoped","");Y._unscopedStyle=V}else Y._style||(Y._style=$Il(Y));f.push(C?Y._unscopedStyle:Y._style)}}return f};
LV$=function(r){r=r.trim().split(/\s+/);for(var f="",I=0;I<r.length;I++)f+=WVR(r[I]);return f};
WVR=function(r){var f=nE.import(r);if(f&&f._cssText===void 0){var I=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(f),C=f.querySelector("template");C&&(I+=mIB(C,f.assetpath));f._cssText=I||null}f||console.warn("Could not find style data in module named",r);return f&&f._cssText||""};
mIB=function(r,f){var I="";r=Tud(r,f);for(f=0;f<r.length;f++){var C=r[f];C.parentNode&&C.parentNode.removeChild(C);I+=C.textContent}return I};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(r){var f="";r=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(r);for(var I=0;I<r.length;I++)f+=r[I].textContent;return f};
db=function(r,f){return{index:r,removed:[],addedCount:f}};
Jvu=function(r,f,I,C){var Y=0,V=0,S=0,h=0,w=Math.min(f-Y,C-V);if(Y==0&&V==0)a:{for(S=0;S<w;S++)if(r[S]!==I[S])break a;S=w}if(f==r.length&&C==I.length){h=r.length;for(var n=I.length,d=0;d<w-S&&e3R(r[--h],I[--n]);)d++;h=d}Y+=S;V+=S;f-=h;C-=h;if(f-Y==0&&C-V==0)return[];if(Y==f){for(f=db(Y,0);V<C;)f.removed.push(I[V++]);return[f]}if(V==C)return[db(Y,f-Y)];w=Y;S=V;C=C-S+1;h=f-w+1;f=Array(C);for(n=0;n<C;n++)f[n]=Array(h),f[n][0]=n;for(n=0;n<h;n++)f[0][n]=n;for(n=1;n<C;n++)for(d=1;d<h;d++)if(r[w+d-1]===
I[S+n-1])f[n][d]=f[n-1][d-1];else{var z=f[n-1][d]+1,g=f[n][d-1]+1;f[n][d]=z<g?z:g}w=f.length-1;S=f[0].length-1;C=f[w][S];for(r=[];w>0||S>0;)w==0?(r.push(2),S--):S==0?(r.push(3),w--):(h=f[w-1][S-1],n=f[w-1][S],d=f[w][S-1],z=n<d?n<h?n:h:d<h?d:h,z==h?(h==C?r.push(0):(r.push(1),C=h),w--,S--):z==n?(r.push(3),w--,C=n):(r.push(2),S--,C=d));r.reverse();f=void 0;w=[];for(S=0;S<r.length;S++)switch(r[S]){case 0:f&&(w.push(f),f=void 0);Y++;V++;break;case 1:f||(f=db(Y,0));f.addedCount++;Y++;f.removed.push(I[V]);
V++;break;case 2:f||(f=db(Y,0));f.addedCount++;Y++;break;case 3:f||(f=db(Y,0)),f.removed.push(I[V]),V++}f&&w.push(f);return w};
jKd=function(r,f){return Jvu(r,r.length,f,f.length)};
e3R=function(r,f){return r===f};
iFK=function(r){if(r instanceof HFu)return r.value;throw Error("Dd`"+r);};
R3B=function(r,f){for(var I in f)I===null?r.style.removeProperty(I):r.style.setProperty(I,f[I])};
v4U=function(r,f){return(r=window.getComputedStyle(r).getPropertyValue(f))?r.trim():""};
sKm=function(r){requestAnimationFrame(function(){KVE?KVE(r):(yvK||(yvK=new Promise(function(f){UIu=f}),document.readyState==="complete"?UIu():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&UIu()})),yvK.then(function(){r&&r()}))})};
QKU=function(r){OFR=r&&r.shimcssproperties?!1:o4K||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
BuE=function(r){if(!(AvE.indexOf(r)>-1)&&r!=="touchend"&&ZFw&&Gkc&&kkP)return{passive:!0}};
rHm=function(r){for(var f=q0B?["click"]:AvE,I=0,C;I<f.length;I++)C=f[I],r?(u1R.length=0,document.addEventListener(C,DId,!0)):document.removeEventListener(C,DId,!0)};
M7=function(r){var f=r.type;return AvE.indexOf(f)>-1?f==="mousemove"?(f=r.buttons===void 0?1:r.buttons,r instanceof window.MouseEvent&&!fNq&&(f=INK[r.which]||0),!!(f&1)):(r.button===void 0?0:r.button)===0:!1};
C1u=function(r){if(r.type==="click"){if(r.detail===0)return!0;var f=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(r);if(!f.nodeType||f.nodeType!==Node.ELEMENT_NODE)return!0;f=f.getBoundingClientRect();var I=r.pageX;r=r.pageY;return!(I>=f.left&&I<=f.right&&r>=f.top&&r<=f.bottom)}return!1};
Y1K=function(r,f,I){r.movefn=f;r.upfn=I;document.addEventListener("mousemove",f);document.addEventListener("mouseup",I)};
gb=function(r){document.removeEventListener("mousemove",r.movefn);document.removeEventListener("mouseup",r.upfn);r.movefn=null;r.upfn=null};
lNU=function(r,f){for(var I=document.elementFromPoint(r,f),C=I;C&&C.shadowRoot&&!window.ShadyDOM;){var Y=C;C=C.shadowRoot.elementFromPoint(r,f);if(Y===C)break;C&&(I=C)}return I};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(r){var f=VBE(r);return f.length>0?f[0]:r.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(r){var f=r.type,I=r.currentTarget.__polymerGestures;if(I&&(I=I[f])){if(!r.__polymerGesturesHandled&&(r.__polymerGesturesHandled={},f.slice(0,5)==="touch")){var C=r.changedTouches[0];f==="touchstart"&&r.touches.length===1&&(EUK=C.identifier);if(EUK!==C.identifier)return;ZFw||(f==="touchstart"||f==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(r)}C=
r.__polymerGesturesHandled;if(!C.skip){for(var Y=0,V;Y<a6.length;Y++)V=a6[Y],I[V.name]&&!C[V.name]&&V.flow&&V.flow.start.indexOf(r.type)>-1&&V.reset&&V.reset();for(Y=0;Y<a6.length;Y++)V=a6[Y],I[V.name]&&!C[V.name]&&(C[V.name]=!0,V[f](r))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(r){var f=r.changedTouches[0],I=r.type;if(I==="touchstart")S1l=f.clientX,xpP=f.clientY,htm=!1;else if(I==="touchmove"&&!htm){htm=!0;I="auto";for(var C=VBE(r),Y=0,V;Y<C.length;Y++)if(V=C[Y],V.__polymerGesturesTouchAction){I=V.__polymerGesturesTouchAction;break}C=!1;Y=Math.abs(S1l-f.clientX);f=Math.abs(xpP-f.clientY);r.cancelable&&(I==="none"?C=!0:I==="pan-x"?C=f>Y:I==="pan-y"&&(C=Y>f));C?r.preventDefault():
XK("track")}};
$f=function(r,f,I){return N7[f]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(r,f,I),!0):!1};
FK=function(r,f,I){return N7[f]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(r,f,I),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(r,f,I){var C=N7[f],Y=C.deps,V=C.name,S=r.__polymerGestures;S||(r.__polymerGestures=S={});for(var h=0,w,n;h<Y.length;h++)w=Y[h],q0B&&AvE.indexOf(w)>-1&&w!=="click"||((n=S[w])||(S[w]=n={_count:0}),n._count===0&&r.addEventListener(w,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,BuE(w)),n[V]=(n[V]||0)+1,n._count=(n._count||0)+1);r.addEventListener(f,I);C.touchAction&&_.P8(r,C.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(r,f,I){var C=N7[f],Y=C.deps;C=C.name;var V=r.__polymerGestures;if(V)for(var S=0,h,w;S<Y.length;S++)h=Y[S],(w=V[h])&&w[C]&&(w[C]=(w[C]||1)-1,w._count=(w._count||1)-1,w._count===0&&r.removeEventListener(h,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,BuE(h)));r.removeEventListener(f,I)};
wSK=function(r){a6.push(r);for(var f=0;f<r.emits.length;f++)N7[r.emits[f]]=r};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(r){for(var f=0,I;f<a6.length;f++){I=a6[f];for(var C=0,Y;C<I.emits.length;C++)if(Y=I.emits[C],Y===r)return I}return null};
_.P8=function(r,f){ZFw&&r instanceof HTMLElement&&tq.run(function(){r.style.touchAction=f});
r.__polymerGesturesTouchAction=f};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(r,f,I){f=new Event(f,{bubbles:!0,cancelable:!0,composed:!0});f.detail=I;(0,_.xf)(r).dispatchEvent(f);f.defaultPrevented&&(r=I.preventer||I.sourceEvent)&&r.preventDefault&&r.preventDefault()};
XK=function(r){r=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(r);r.info&&(r.info.prevent=!0)};
T5=function(r,f,I,C){f&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f,r,{x:I.clientX,y:I.clientY,sourceEvent:I,preventer:C,prevent:function(Y){return XK(Y)}})};
bHm=function(r,f,I){if(r.prevent)return!1;if(r.started)return!0;I=Math.abs(r.y-I);return Math.abs(r.x-f)>=5||I>=5};
pSK=function(r,f,I){if(f){var C=r.moves[r.moves.length-2],Y=r.moves[r.moves.length-1],V=Y.x-r.x,S=Y.y-r.y,h=0;if(C){var w=Y.x-C.x;h=Y.y-C.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f,"track",{state:r.state,x:I.clientX,y:I.clientY,dx:V,dy:S,ddx:w,ddy:h,sourceEvent:I,hover:function(){return lNU(I.clientX,I.clientY)}})}};
dpE=function(r,f,I){var C=Math.abs(f.clientX-r.x),Y=Math.abs(f.clientY-r.y),V=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I||f);!V||nUP[V.localName]&&V.hasAttribute("disabled")||!(isNaN(C)||isNaN(Y)||C<=25&&Y<=25||C1u(f))||r.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V,"tap",{x:f.clientX,y:f.clientY,sourceEvent:f,preventer:I})};
ztU=function(r,f,I,C,Y){var V;Y&&(V=typeof I==="object"&&I!==null)&&(C=r.__dataTemp[f]);C=C!==I&&(C===C||I===I);V&&C&&(r.__dataTemp[f]=I);return C};
gUR=function(){if(c8&&!W8){if(!MBP){MBP=!0;var r=document.createElement("style");r.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(r)}return!0}return!1};
XS$=function(){return aNu};
NYq=function(r,f){aNu=r;Object.setPrototypeOf(r,f.prototype);new f;aNu=null};
$pU=function(r,f){for(var I=0;I<f.length;I++){var C=f[I];if(!!r!=!!C.__hideTemplateChildren__)if(C.nodeType===Node.TEXT_NODE)r?(C.__polymerTextContent__=C.textContent,C.textContent=""):C.textContent=C.__polymerTextContent__;else if(C.localName==="slot")if(r)C.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.xf)((0,_.xf)(C).parentNode).replaceChild(C.__polymerReplaced__,C);else{var Y=C.__polymerReplaced__;Y&&(0,_.xf)((0,_.xf)(Y).parentNode).replaceChild(C,Y)}else C.style&&(r?(C.__polymerDisplay__=
C.style.display,C.style.display="none"):C.style.display=C.__polymerDisplay__);C.__hideTemplateChildren__=r;C._showHideChildren&&C._showHideChildren(r)}};
FGU=function(r){return(r=r.__dataHost)&&r._methodHost||r};
TYm=function(r,f,I){var C=I.mutableData?P1U:LE;mF.mixin&&(C=mF.mixin(C));var Y=function(){return C.apply(this,arguments)||this};
_.t(Y,C);Y.prototype.__templatizeOptions=I;Y.prototype._bindTemplate(r);tBR(Y,r,f,I);return Y};
etq=function(r,f,I,C){var Y=I.forwardHostProp;if(Y&&f.hasHostProps){var V=r.localName=="template",S=f.templatizeTemplateClass;if(!S){if(V){var h=I.mutableData?cHE:WGm;S=function(){return h.apply(this,arguments)||this};
_.t(S,h);S=f.templatizeTemplateClass=S}else{var w=r.constructor;S=function(){return w.apply(this,arguments)||this};
_.t(S,w);S=f.templatizeTemplateClass=S}var n=f.hostProps,d;for(d in n)S.prototype._addPropertyEffect("_host_"+d,S.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:LGd(Y)}),S.prototype._createNotifyingProperty("_host_"+d);eJ&&C&&mpE(f,I,C)}r.__dataProto&&Object.assign(r.__data,r.__dataProto);if(V)NYq(r,S),r.__dataTemp={},r.__dataPending=null,r.__dataOld=null,r._enableProperties();else{Object.setPrototypeOf(r,S.prototype);f=f.hostProps;for(var z in f)z="_host_"+z,z in r&&(f=r[z],delete r[z],r.__data[z]=
f)}}};
LGd=function(r){return function(f,I,C){r.call(f.__templatizeOwner,I.substring(6),C[I])}};
tBR=function(r,f,I,C){var Y=I.hostProps||{},V;for(V in C.instanceProps){delete Y[V];var S=C.notifyInstanceProp;S&&r.prototype._addPropertyEffect(V,r.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:JHR(S)})}if(C.forwardHostProp&&f.__dataHost)for(var h in Y)I.hasHostProps||(I.hasHostProps=!0),r.prototype._addPropertyEffect(h,r.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:jVd()})};
JHR=function(r){return function(f,I,C){r.call(f.__templatizeOwner,f,I,C[I])}};
jVd=function(){return function(r,f,I){r.__dataHost._setPendingPropertyOrPath("_host_"+f,I[f],!0,!0)}};
mF=function(r,f,I){if(Jq&&!FGU(r))throw Error("Jd");I=I||{};if(r.__templatizeOwner)throw Error("Kd");r.__templatizeOwner=f;var C=(f?f.constructor:LE)._parseTemplate(r),Y=C.templatizeInstanceClass;Y||(Y=TYm(r,C,I),C.templatizeInstanceClass=Y);var V=FGU(r);etq(r,C,I,V);I=function(){return Y.apply(this,arguments)||this};
_.t(I,Y);I.prototype._methodHost=V;I.prototype.__dataHost=r;I.prototype.__templatizeOwner=f;I.prototype.__hostProps=C.hostProps;return I};
mpE=function(r,f,I){I=I.constructor._properties;r=r.propertyEffects;f=f.instanceProps;for(var C in r)if(!(I[C]||f&&f[C]))for(var Y=r[C],V=0;V<Y.length;V++){var S=Y[V].info.part;if(!S.signature||!S.signature.static){console.warn("Property '"+C+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
HHB=function(r,f){for(var I;f;)if(I=f.__dataHost?f:f.__templatizeInstance)if(I.__dataHost!=r)f=I.__dataHost;else return I;else f=(0,_.xf)(f).parentNode;return null};
jJ=function(r){return r.localName==="slot"};
iHm=function(){for(var r=H8.prototype,f="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),I={},C=0;C<f.length;I={method$jscomp$32:void 0},C++)I.method$jscomp$32=f[C],r[I.method$jscomp$32]=function(Y){return function(){return this.node[Y.method$jscomp$32].apply(this.node,arguments)}}(I)};
Rt$=function(r,f){for(var I={},C=0;C<f.length;I={name$jscomp$378:void 0},C++)I.name$jscomp$378=f[C],Object.defineProperty(r,I.name$jscomp$378,{get:function(Y){return function(){return this.node[Y.name$jscomp$378]}}(I),
configurable:!0})};
vUd=function(){for(var r=H8.prototype,f=["textContent","innerHTML","className"],I={},C=0;C<f.length;I={name$jscomp$379:void 0},C++)I.name$jscomp$379=f[C],Object.defineProperty(r,I.name$jscomp$379,{get:function(Y){return function(){return this.node[Y.name$jscomp$379]}}(I),
set:function(Y){return function(V){this.node[Y.name$jscomp$379]=V}}(I),
configurable:!0})};
KGw=function(){iK=document.documentElement.getAttribute("dir");iK=document.documentElement.getAttribute("dir");for(var r=0;r<R6.length;r++){var f=R6[r];f.__autoDirOptOut||f.setAttribute("dir",iK)}};
OHP=function(){v8=!0;requestAnimationFrame(function(){v8=!1;yHR(Upu);setTimeout(function(){for(var r=0,f=KE.length;r<f;r++)sVu(KE.shift())})})};
yHR=function(r){for(;r.length;)sVu(r.shift())};
sVu=function(r){var f=r[0],I=r[1];r=r[2];try{I.apply(f,r)}catch(C){setTimeout(function(){throw C;})}};
_.oUE=function(r,f,I){v8||OHP();Upu.push([r,f,I])};
_.UC=function(r,f,I){v8||OHP();KE.push([r,f,I])};
ZHB=function(r,f){f=f===void 0?!1:f;if(!QV$||!AHK||!QV$.handlesDynamicScoping)return null;var I=AHK.ScopingShim;if(!I)return null;var C=I.scopeForNode(r),Y=(0,_.xf)(r).getRootNode(),V=function(S){if((0,_.xf)(S).getRootNode()===Y){var h=Array.from(QV$.nativeMethods.querySelectorAll.call(S,"*"));h.push(S);for(S=0;S<h.length;S++){var w=h[S];if((0,_.xf)(w).getRootNode()===Y){var n=I.currentScopeForNode(w);n!==C&&(n!==""&&I.unscopeNode(w,n),I.scopeNode(w,C))}}}};
V(r);return f?(f=new MutationObserver(function(S){for(var h=0;h<S.length;h++)for(var w=S[h],n=0;n<w.addedNodes.length;n++){var d=w.addedNodes[n];d.nodeType===Node.ELEMENT_NODE&&V(d)}}),f.observe(r,{childList:!0,
subtree:!0}),f):null};
GN$=function(){document.body.removeAttribute("unresolved")};
DpB=function(r){var f=r=r.replace(kNE,"").replace(BYc,""),I=new q1K;I.start=0;I.end=f.length;for(var C=I,Y=0,V=f.length;Y<V;Y++)if(f[Y]==="{"){C.rules||(C.rules=[]);var S=C,h=S.rules[S.rules.length-1]||null;C=new q1K;C.start=Y+1;C.parent=S;C.previous=h;S.rules.push(C)}else f[Y]==="}"&&(C.end=Y+1,C=C.parent||I);return unK(I,r)};
unK=function(r,f){var I=f.substring(r.start,r.end-1);r.parsedCssText=r.cssText=I.trim();r.parent&&(I=f.substring(r.previous?r.previous.end:r.parent.start,r.start-1),I=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(I),I=I.replace(rFw," "),I=I.substring(I.lastIndexOf(";")+1),I=r.parsedSelector=r.selector=I.trim(),r.atRule=I.indexOf("@")===0,r.atRule?I.indexOf("@media")===0?r.type=4:I.match(fcw)&&(r.type=7,r.keyframesName=r.selector.split(rFw).pop()):I.indexOf("--")===
0?r.type=1E3:r.type=1);if(I=r.rules)for(var C=0,Y=I.length,V=void 0;C<Y&&(V=I[C]);C++)unK(V,f);return r};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(r){return r.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var f=arguments[1],I=6-f.length;I--;)f="0"+f;return"\\"+f})};
Icm=function(r,f,I){I=I===void 0?"":I;var C="";if(r.cssText||r.rules){var Y=r.rules;if(Y&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(Y))for(var V=0,S=Y.length,h=void 0;V<S&&(h=Y[V]);V++)C=Icm(h,f,C);else f?f=r.cssText:(f=r.cssText,f=f.replace(COE,"").replace(YdP,""),f=f.replace(lcR,"").replace(VQu,"")),(C=f.trim())&&(C="  "+C+"\n")}C&&(r.selector&&(I+=r.selector+" {\n"),I+=C,r.selector&&(I+="}\n\n"));return I};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(r){r=r[0];return!!r&&!!r.selector&&r.selector.indexOf("--")===0};
SdR=function(r){if(r=EwB[r])r._applyShimCurrentVersion=r._applyShimCurrentVersion||0,r._applyShimValidatingVersion=r._applyShimValidatingVersion||0,r._applyShimNextVersion=(r._applyShimNextVersion||0)+1};
xil=function(r){return r._applyShimCurrentVersion===r._applyShimNextVersion};
waK=function(r){r._applyShimValidatingVersion=r._applyShimNextVersion;r._validating||(r._validating=!0,hBK.then(function(){r._applyShimCurrentVersion=r._applyShimNextVersion;r._validating=!1}))};
pal=function(r){if(!r)return"";typeof r==="string"&&(r=DpB(r));return Icm(r,bGR)};
nwR=function(r){!r.__cssRules&&r.textContent&&(r.__cssRules=DpB(r.textContent));return r.__cssRules||null};
zBw=function(r,f,I,C){if(r){var Y=!1,V=r.type;if(C&&V===4){var S=r.selector.match(diK);S&&(window.matchMedia(S[1]).matches||(Y=!0))}V===1?f(r):I&&V===7?I(r):V===1E3&&(Y=!0);if((r=r.rules)&&!Y)for(Y=0,V=r.length,S=void 0;Y<V&&(S=r[Y]);Y++)zBw(S,f,I,C)}};
MQP=function(r,f){var I=r.indexOf("var(");if(I===-1)return f(r,"","","");a:{var C=0;var Y=I+3;for(var V=r.length;Y<V;Y++)if(r[Y]==="(")C++;else if(r[Y]===")"&&--C===0)break a;Y=-1}C=r.substring(I+4,Y);I=r.substring(0,I);r=MQP(r.substring(Y+1),f);V=C.indexOf(",");if(V===-1)return f(I,C.trim(),"",r);Y=C.substring(0,V).trim();C=C.substring(V+1).trim();return f(I,Y,C,r)};
gwK=function(r){if(sC!==void 0)return sC;if(r.__cssBuild===void 0){var f=r.getAttribute("css-build");if(f)r.__cssBuild=f;else{a:{f=r.localName==="template"?r.content.firstChild:r.firstChild;if(f instanceof Comment&&(f=f.textContent.trim().split(":"),f[0]==="css-build")){f=f[1];break a}f=""}if(f!==""){var I=r.localName==="template"?r.content.firstChild:r.firstChild;I.parentNode.removeChild(I)}r.__cssBuild=f}}return r.__cssBuild||""};
XaK=function(r,f,I,C){for(var Y=f._noAccessors,V=Object.getOwnPropertyNames(f),S=0;S<V.length;S++){var h=V[S];if(!(h in C))if(Y)r[h]=f[h];else{var w=Object.getOwnPropertyDescriptor(f,h);w&&(w.configurable=!0,Object.defineProperty(r,h,w))}}for(var n in acR)f[n]&&(I[n]=I[n]||[],I[n].push(f[n]))};
NMK=function(r,f,I){f=f||[];for(var C=r.length-1;C>=0;C--){var Y=r[C];Y?Array.isArray(Y)?NMK(Y,f):f.indexOf(Y)<0&&(!I||I.indexOf(Y)<0)&&f.unshift(Y):console.warn("behavior is null, check for missing or 404 import")}return f};
$iU=function(r,f){for(var I in f){var C=r[I],Y=f[I];r[I]=!("value"in Y)&&C&&"value"in C?Object.assign({value:C.value},Y):Y}};
tQm=function(r,f,I){var C={},Y=function(){return f.apply(this,arguments)||this};
_.t(Y,f);Y._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(S)for(var w=0,n;w<S.length;w++)n=S[w],n.properties&&this.createProperties(n.properties),n.observers&&this.createObservers(n.observers,n.properties);r.properties&&this.createProperties(r.properties);r.observers&&this.createObservers(r.observers,r.properties);this._prepareTemplate()}else f._finalizeClass.call(this)};
Y.prototype.created=function(){f.prototype.created.call(this);var w=C.created;if(w)for(var n=0;n<w.length;n++)w[n].call(this)};
Y.prototype._registered=function(){var w=Y.prototype;if(!w.hasOwnProperty("__hasRegisterFinished")){w.__hasRegisterFinished=!0;f.prototype._registered.call(this);c8&&h(w);w=Object.getPrototypeOf(this);var n=C.beforeRegister;if(n)for(var d=0;d<n.length;d++)n[d].call(w);if(n=C.registered)for(d=0;d<n.length;d++)n[d].call(w)}};
Y.prototype._applyListeners=function(){f.prototype._applyListeners.call(this);var w=C.listeners;if(w)for(var n=0;n<w.length;n++){var d=w[n];if(d)for(var z in d)this._addMethodEventListenerToNode(this,z,d[z])}};
Y.prototype._ensureAttributes=function(){var w=C.hostAttributes;if(w)for(var n=w.length-1;n>=0;n--){var d=w[n],z;for(z in d)this._ensureAttribute(z,d[z])}f.prototype._ensureAttributes.call(this)};
Y.prototype.ready=function(){f.prototype.ready.call(this);var w=C.ready;if(w)for(var n=0;n<w.length;n++)w[n].call(this)};
Y.prototype.attached=function(){f.prototype.attached.call(this);var w=C.attached;if(w)for(var n=0;n<w.length;n++)w[n].call(this)};
Y.prototype.detached=function(){f.prototype.detached.call(this);var w=C.detached;if(w)for(var n=0;n<w.length;n++)w[n].call(this)};
Y.prototype.attributeChanged=function(w,n,d){f.prototype.attributeChanged.call(this);var z=C.attributeChanged;if(z)for(var g=0;g<z.length;g++)z[g].call(this,w,n,d)};
_.OC.Object.defineProperties(Y,{properties:{configurable:!0,enumerable:!0,get:function(){var w={};if(S)for(var n=0;n<S.length;n++)$iU(w,S[n].properties);$iU(w,r.properties);return w}},
observers:{configurable:!0,enumerable:!0,get:function(){var w=[];if(S)for(var n=0,d;n<S.length;n++)d=S[n],d.observers&&(w=w.concat(d.observers));r.observers&&(w=w.concat(r.observers));return w}}});
if(I){Array.isArray(I)||(I=[I]);var V=f.prototype.behaviors;var S=NMK(I,null,V);Y.prototype.behaviors=V?V.concat(I):S}var h=function(w){if(S)for(var n=S,d=0;d<n.length;d++)XaK(w,n[d],C,Fy$);XaK(w,r,C,POw)};
c8||h(Y.prototype);Y.generatedFrom=r;return Y};
Lym=function(r){var f=typeof r!=="string"?r:{is:r,notifyObserversOnUndefined:!0};f.fastInit===void 0&&(f.fastInit=!0);return function(I){if(!f.disableInheritanceCheck&&Object.getPrototypeOf(I.prototype).constructor!==_.o6)throw Error("Od");var C=I.prototype;C.is=f.is;jC$(C,"created",function(){this.hostElement=this;this.polymerController=this});
TMR(C,I,f.fastInit);f.notifyObserversOnUndefined&&(C._overrideLegacyUndefined=!0);if(cFu)for(var Y=_.E(Object.getOwnPropertyNames(C)),V=Y.next();!V.done;V=Y.next()){V=V.value;var S=Object.getOwnPropertyDescriptor(C,V);S.enumerable===!1&&(S.enumerable=!0,Object.defineProperty(C,V,S))}if("template"in I)var h=function(){return I.template};
else f.template!==void 0&&(h=f.template);if(h!==void 0){var w;Object.defineProperty(C,"_template",{get:function(){w===void 0&&(w=h());return w},
set:function(n){w=n},
configurable:!0,enumerable:!0})}Polymer(C);I[WyE]=C}};
mid=function(r){r=r===void 0?{}:r;r.fastInit===void 0&&(r.fastInit=!0);return function(f){if(!r.disableInheritanceCheck&&Object.getPrototypeOf(f.prototype).constructor!==Qt)throw Error("Pd");TMR(f.prototype,f,r.fastInit)}};
TMR=function(r,f,I){I=I===void 0?!1:I;eBw(f);I?jC$(r,"created",function(){this.disableEnforceFastDefaultValuesCheck||JFu(f,this)}):jC$(r,"ready",function(){for(var C={},Y=_.E(HQP(this.behaviors)),V=Y.next();!V.done;V=Y.next())V=V.value,V.properties&&Object.assign(C,jpm(this,V.properties));
Object.assign(C,jpm(this,this.properties));JFu(f,this);Y=_.E(Object.keys(C));for(V=Y.next();!V.done;V=Y.next())V=V.value,this[V]=C[V]})};
JFu=function(r,f){if(cFu){r=new r;for(var I=_.E(Object.getOwnPropertyNames(r)),C=I.next();!C.done;C=I.next())C=C.value,f[C]=r[C];for(I=f;I&&I!==Object.prototype;I=Object.getPrototypeOf(I)){C=_.E(Object.getOwnPropertyNames(I));for(var Y=C.next();!Y.done;Y=C.next())Y=Y.value,r.hasOwnProperty(Y)||Object.defineProperty(r,Y,HGw(f,Y))}}else r.apply(f)};
HGw=function(r,f){return{get:function(){var I=r[f];return I instanceof Function?I.bind(r):I},
set:function(I){r[f]=I}}};
jpm=function(r,f){if(!f)return{};for(var I={},C=_.E(Object.keys(f)),Y=C.next();!Y.done;Y=C.next())if(Y=Y.value,!f[Y].readOnly){var V=r[Y];V!==void 0&&(I[Y]=V)}return I};
eBw=function(r){var f=new r;r=r.prototype.properties||{};for(var I=_.E(Object.keys(r)),C=I.next();!C.done;C=I.next())if(C=C.value,f.hasOwnProperty(C)){var Y=r[C];typeof Y==="function"&&(r[C]=Y={type:Y});f[C]!=null&&Y.type===Object&&(Y.type=iGE(f[C].constructor))}};
iGE=function(r){for(var f=_.E(RBB),I=f.next();!I.done;I=f.next())if(I=I.value,r===I)return I;return Object};
vwl=function(r){return function(f,I){f.behaviors=f.behaviors||[];f.behaviors.push(r||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",f,I).prototype:void 0));Object.defineProperty(f,I,{get:function(){return this},
enumerable:!0,configurable:!0})}};
KyR=function(r){r=r===void 0?{}:r;return function(f,I){f.properties=f.properties||{};r.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?r.type=iGE(Reflect.getMetadata("design:type",f,I)):r.type=String);var C=r,Y=f.properties[I];f.properties[I]=Y?Object.assign({},Y,C):C}};
yFu=function(r){return function(f,I){f.listeners=f.listeners||{};f.listeners[r]=I}};
UiP=function(){var r=_.XE.apply(0,arguments);if(r.length===0)throw Error("Qd");return function(f,I){f.observers=f.observers||[];f.observers.push(I+"("+r.join(",")+")")}};
spK=function(){var r=_.XE.apply(0,arguments);return function(f,I,C){var Y=Object.getOwnPropertyDescriptor(f,I).get,V="__compute__"+I;Object.defineProperty(f,V,{value:Y,enumerable:!0});f.properties=f.properties||{};Y=f.properties[I];Y||(Y={},f.properties[I]=Y);Y.computed=V+"("+r.join(",")+")";C.get=void 0}};
_.Aq=function(r,f,I){_.Mu.call(this);this.JSC$9118_id_=null;this.usingListeners_=!1;this.JSC$9118_listener_=r;this.handler_=I;this.JSC$9118_win_=f||window;this.callback_=(0,_.gL)(this.JSC$9120_doAction_,this)};
Zm=function(r){this.range_=r};
G5=function(r){this.range_=r};
q7=function(r,f,I){_.Mu.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=r;this.scrollTimer_=new _.kf(50);this.JSC$9197_eventHandler_=new _.B8(this);this.scrollDelta_=new _.F0;this.containerIsActuallyContent_=r.tagName==="BODY"||r.tagName==="HTML";this.containerBounds_=OGU(r);this.containerIsActuallyContent_&&(r=_.Sj(),this.containerBounds_.height=r.height,this.containerBounds_.width=r.width);this.margin_=f||0;if(f){if(f=this.containerBounds_.clone(),r=this.margin_){var C=
Math.min(r,f.height*.25);f.top+=C;f.height-=2*C;r=Math.min(r,f.width*.25);f.left+=r;f.width-=2*r}}else f=this.containerBounds_;this.scrollBounds_=f;I||this.JSC$9197_eventHandler_.listen(_.TZ(this.containerNode_),"mousemove",this.JSC$9199_onMouseMove);this.JSC$9197_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9199_onTick_)};
_.uK=function(r){this.mechanism=r};
Dm=function(r,f){this.JSC$9295_key_=r;this.JSC$9295_value_=f};
QpK=function(r){if(r>=55296&&r<=57343||r>1114111)return"\ufffd";r in owE&&(r=owE[r]);var f="";r>65535&&(r-=65536,f+=String.fromCharCode(r>>>10&1023|55296),r=56320|r&1023);return f+=String.fromCharCode(r)};
AFu=function(r,f){return r<f?1:-1};
GWB=function(){return function(r){return r.charAt(1)==="#"?r.charAt(2)==="X"||r.charAt(2)==="x"?QpK(parseInt(r.substr(3),16)):QpK(parseInt(r.substr(2),10)):ZGu[r.slice(1,-1)]}};
qdR=function(r){return r.slice(1,r.length-1).trim().replace(kWd,function(f){return BMu[f]||" "})};
rd=function(r){return r===32||r===9};
fA=function(r,f){return f<r.length?r.charCodeAt(f):-1};
uCK=function(r){for(;r;){if(r._lastLineBlank)return!0;var f=r.type;if(f==="list"||f==="item")r=r._lastChild;else break}return!1};
Io=function(r){if(DiU.test(r)){var f=1,I=0,C=0;for(r[I]=="|"&&I++;I<r.length;){switch(r[I]){case "|":C=1;break;case " ":break;case "\t":break;default:C&&(C=0,f++)}I++}return rsP.test(r)?-f:f}return 0};
fnE=function(r){return r=="table"||r=="row"||r=="cell"};
InR=function(){return new CA("document",[[1,1],[0,0]])};
Cfd=function(){};
YA=function(){var r={safe:!1};r=r||{};r.softbreak=r.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=r};
Svu=function(r,f){var I="";if(r)if(r=r.toLowerCase(),r===" "||Yvw.test(r))I="space";else if(lnw.test(r))I="esc";else if(r.length==1){if(!f||Vgc.test(r))I=r}else I=Epl.test(r)?r.replace("arrow",""):r=="multiply"?"*":r;return I};
bDR=function(r,f){var I=r.hasModifiers;if(f.key)I=Svu(f.key,I);else if(f.detail&&f.detail.key)I=Svu(f.detail.key,I);else{I=f.keyIdentifier;var C="";I&&(I in x2P?C=x2P[I]:hQU.test(I)?(I=parseInt(I.replace("U+","0x"),16),C=String.fromCharCode(I).toLowerCase()):C=I.toLowerCase());(I=C)||(I=f.keyCode,C="",Number(I)&&(I>=65&&I<=90?C=String.fromCharCode(32+I):I>=112&&I<=123?C="f"+(I-112+1):I>=48&&I<=57?C=String(I-48):I>=96&&I<=105?C=String(I-96):C=wMK[I]),I=C);I=I||""}return I===r.key&&(!r.hasModifiers||
!!f.shiftKey===!!r.shiftKey&&!!f.ctrlKey===!!r.ctrlKey&&!!f.altKey===!!r.altKey&&!!f.metaKey===!!r.metaKey)};
npq=function(r){return r.length===1?{combo:r,key:r,event:"keydown"}:r.split("+").reduce(function(f,I){var C=I.split(":");I=C[0];C=C[1];I in pMU?(f[pMU[I]]=!0,f.hasModifiers=!0):(f.key=I,f.event=C||"keydown");return f},{combo:r.split(":").shift()})};
d2$=function(r){return r.trim().split(" ").map(function(f){return npq(f)})};
zQK=function(r,f){if(r&&r.fn){var I=r.fn;r.fn=function(){try{I.apply(this,arguments)}catch(C){if(C instanceof ly)console.warn("Argument '"+C.arg+"'"+(f?" for method '"+f+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw C;}}}return r};
Mgl=function(){var r=_.XE.apply(0,arguments);return r.length===0?function(f){return f}:r.length===1?r[0]:r.reduce(function(f,I){return function(){return f(I.apply(null,_.Na(_.XE.apply(0,arguments))))}})};
gpP=function(){var r=_.XE.apply(0,arguments);return function(f){return function(I,C){I=f(I,C);var Y=function(){throw Error("Ae");},V={getState:I.getState,
dispatch:function(S){return Y.apply(null,[S].concat(_.Na(_.XE.apply(1,arguments))))}};
C=r.map(function(S){return S(V)});
Y=Mgl.apply(null,_.Na(C))(I.dispatch);return Object.assign({},I,{dispatch:Y})}}};
Nhd=function(r){Object.keys(r).forEach(function(f){var I=r[f];if(typeof I(void 0,{type:anc})==="undefined")throw Error("Be`"+f);if(typeof I(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+XMm()})==="undefined")throw Error("Ce`"+f+"`"+anc);})};
Vw=function(r){for(var f=Object.keys(r),I={},C=0;C<f.length;C++){var Y=f[C];typeof r[Y]==="function"&&(I[Y]=r[Y])}var V=Object.keys(I);try{Nhd(I)}catch(h){var S=h}return function(h,w){h=h===void 0?{}:h;if(S)throw S;for(var n=!1,d={},z=0;z<V.length;z++){var g=V[z],X=h[g],P=(0,I[g])(X,w);if(typeof P==="undefined")throw h=w&&w.type,Error("De`"+(h?'"'+String(h)+'"':"(unknown type)")+"`"+g);d[g]=P;n=n||P!==X}return(n=n||V.length!==Object.keys(h).length)?d:h}};
$2m=function(r,f,I){function C(){if(d)throw Error("Ee");return h}
function Y(X){if(typeof X!=="function")throw Error("Fe`"+typeof X);if(d)throw Error("Ge");var P=!0;n===w&&(n=w.slice());n.push(X);return function(){if(P){if(d)throw Error("He");P=!1;n===w&&(n=w.slice());var W=n.indexOf(X);n.splice(W,1);w=null}}}
function V(X){if(typeof X!=="object"||X===null)var P=!1;else{for(P=X;Object.getPrototypeOf(P)!==null;)P=Object.getPrototypeOf(P);P=Object.getPrototypeOf(X)===P}if(!P)throw Error("Ie`"+typeof X);if(typeof X.type==="undefined")throw Error("Je");if(d)throw Error("Ke");try{d=!0,h=S(h,X)}finally{d=!1}P=w=n;for(var W=0;W<P.length;W++)(0,P[W])();return X}
if(typeof f==="function"&&typeof I==="function"||typeof I==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof f==="function"&&typeof I==="undefined"&&(I=f,f=void 0);if(typeof I!=="undefined"){if(typeof I!=="function")throw Error("Me`"+typeof I);return I($2m)(r,f)}if(typeof r!=="function")throw Error("Ne`"+typeof r);var S=r,h=f,w=[],n=w,d=!1;V({type:anc});var z={},g=(z.dispatch=V,z.subscribe=Y,z.getState=C,z.replaceReducer=function(X){if(typeof X!=="function")throw Error("Oe`"+
typeof X);S=X;V({type:Ft$});return g},z[Pfq]=function(){var X={};
return X.subscribe=function(P){function W(){P.next&&P.next(C())}
if(typeof P!=="object"||P===null)throw new TypeError("Pe`"+typeof P);W();return{unsubscribe:Y(W)}},X[Pfq]=function(){return this},X},z);
return g};
tg$=function(r){function f(){Y&&(Y=!1,r());V&&C()}
function I(){requestAnimationFrame(f)}
function C(){var h=Date.now();if(Y){if(h-S<2)return;V=!0}else Y=!0,V=!1,setTimeout(I,20);S=h}
var Y=!1,V=!1,S=0;return C};
El=function(r){return typeof r==="number"?r:parseFloat(r)||0};
Thm=function(r){return _.XE.apply(1,arguments).reduce(function(f,I){return f+El(r["border-"+I+"-width"])},0)};
_.c=function(r,f){f=WL(cL(f));r.innerHTML=f};
LtP=function(r){var f=csR;f||(f=WtR(),f=csR=_.X0.transpose(f));f=f[r];return typeof f==="string"?f:_.S5(r)};
m2c=function(r){r=String(r).toLowerCase();var f=WtR()[r];return typeof f==="string"?f:_.xA(r)};
eQE=function(r){r=r.toLowerCase();r=WtR()[r];return typeof r==="string"?r:null};
WtR=function(){if(!JsE){for(var r=Object.assign({},jJu),f=_.E(HD$),I=f.next();!I.done;I=f.next())I=I.value,r[I.toLowerCase()]=I;JsE=r}return JsE};
vpE=function(r,f){var I=window.customElements;return I&&I.get(r)||iDK[r]===!0?2:f.name==="HTMLUnknownElement"?1:f.name==="HTMLElement"&&RQK.test(r)?3:0};
U2c=function(r,f){switch(f){case "innerHTML":return KtU(r)===1?2:null;case "textContent":return r=KtU(r),r===1||r===6?1:null;default:var I,C;return(C=(I=ysU[r.localName])==null?void 0:I[f])!=null?C:null}};
KtU=function(r){var f=r.localName,I=vpE(f,r.constructor);switch(I){case 0:case 1:return sJ$(f,r);case 3:case 2:return 1;default:_.Sd(I,"got an unknown element classification")}};
sJ$=function(r,f){var I=Object.hasOwnProperty.call(ODU,r)?ODU[r]:null;return I!==null?I:Object.hasOwnProperty.call(opK,r)&&f instanceof SVGElement?opK[r]:null};
QJP=function(r,f){return f};
ZDl=function(r){return(r=r.split(AsK,2))?{url:r[0],metadata:r[1]}:null};
kbw=function(r){var f=String(r.url).replace(Gbm,encodeURIComponent);if(r=r.metadata){Gbm.lastIndex=0;if(Gbm.test(r))return null;f+=" "+r}return f};
D2u=function(r){function f(n){var d=n.localName;if(!n.getAttribute("is")&&vpE(d,n.constructor)===2){var z;return(z=w)!=null?z:w=document.createElement("polyresinuncustomized")}(n=h[d])||(n=h[d]=document.createElement(d));return n}
var I=r.reportHandler||void 0,C=r.safeTypesBridge||Bh$,Y=/^$/;if(r=r.allowedIdentifierPrefixes){r=_.E(r);for(var V=r.next();!V.done;V=r.next())Y=new RegExp(Y.source+"|^"+_.qvR(V.value))}I&&I(!1,"initResin",null);var S=uzU(Y,C,I),h={},w=null;return function(n,d,z){var g=n.nodeType;if(g!==Node.ELEMENT_NODE){if(g===Node.TEXT_NODE){d=n.parentElement;z=!d;if(d&&d.nodeType===Node.ELEMENT_NODE){g=d.localName;var X=vpE(g,d.constructor);switch(X){case 0:case 1:d=sJ$(g,d);z=d===1||d===6;break;case 3:case 2:z=
!0;break;default:_.Sd(X,"got an unknown element classification")}}if(z)return function(v){return""+C(v,"STRING",v)}}return function(v){if(!v&&v!==document.all)return v;
I&&I(!0,"Failed to sanitize "+(n.parentElement&&n.parentElement.nodeName)+" #text node to value "+v,n.parentElement);return h1}}var P=n.localName;
g=f(n);var W=null;switch(z){case "attribute":if(m2c(d)in g)break;return function(v){return v};
case "property":if(d in g){W=U2c(g,d);break}if((X=eQE(d))&&X in g)break;return function(v){return v};
default:_.Sd(z,"got an unknown resin type, expected either 'property' or 'attribute'")}var m=z==="attribute"?d.toLowerCase():LtP(d);W||(W=asu(P,m,function(v){var O=n.getAttribute(v);return!O||/[\[\{]/.test(v)?null:O}));
return function(v){var O=wd,k=null;if(!v&&v!==document.all)return v;if(W!=null){var Z=S[W],Cw=Z.safeType;k=Z.safeReplacement;Cw&&(O=C(v,Cw,wd));O===wd&&(Z.filterString?(O=String(C(v,"STRING",v)),O=Z.filterString(P,m,O)):Z.filterRaw&&(O=Z.filterRaw(P,m,v,n)),O===k&&(O=wd))}O===wd&&(O=k||h1,I&&I(!0,"Failed to sanitize attribute of <"+P+">: <"+P+" "+m+'="'+v+'">',n));return O}}};
uzU=function(r,f,I){return[,{filterRaw:function(C,Y,V){return V},
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:rJB,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:rJB,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:h1,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:fRq,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(C,Y,V){V=
String(V).toLowerCase();return $4c(C,Y,V)?V:h1},
safeReplacement:h1,safeType:void 0},,{filterRaw:void 0,filterString:function(C,Y,V){return r.test(V)?V:h1},
safeReplacement:h1,safeType:"CONSTANT"},{filterRaw:function(C,Y,V,S){if(typeof V==="string")var h=(h=V.match(IRd))?h.map(ZDl).filter(Boolean):[];else if(Array.isArray(V))h=V;else return rJB;var w=h;h=[];var n=[],d={};if(Array.isArray(w))for(var z=0,g=w.length;z<g;++z){var X=w[z],P=X&&X.url;if(P){var W=f(P,"URL",d);if(W){var m=W!==d;(m?h:n).push({url:m?W:P,metadata:X.metadata})}}}else n.push(w);w=n.length?JSON.stringify(n):null;n=wd;if(h.length){if(!Array.isArray(h))throw Error();n=h.map(kbw).filter(Boolean).join(" , ")||
wd}w&&I&&I(!0,"Failed to sanitize attribute value of <"+C+">: <"+C+" "+Y+'="'+V+'">: '+w,S);return n===wd?rJB:n},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
CwK=function(r){var f=D2u(r);return function(I,C,Y,V){return V||V===document.all?f(I,C,Y)(V):V}};
by=function(r,f){function I(){function Y(h,w,n){for(w=Reflect.getMetadata("parameters",h)||[];w.length<=n;)w.push(null);w[n]=w[n]||[];w[n].push(S);Reflect.defineMetadata(w,h);return h}
var V=_.XE.apply(0,arguments);if(this instanceof I)return C.apply(this,V),this;var S=new (Function.prototype.bind.apply(I,[null].concat(_.Na(V))));Y.annotation=S;return Y}
var C=YoR(f);I.prototype.toString=function(){return"@"+r};
return I.annotationCls=I};
YoR=function(r){return function(){var f=_.XE.apply(0,arguments),I=this;r.forEach(function(C,Y){Y=f[Y];if(Array.isArray(C))I[C[0]]=Y&&Y!==void 0?Y:C[1];else for(var V in C)I[V]=Y&&Y[V]!==void 0?Y[V]:C[V]})}};
lRR=function(r){return r!==void 0&&r!==null};
pA=function(r){if(typeof r==="string")return r;if(r===void 0||r===null)return""+r;if(r.overriddenName)return r.overriddenName;if(r.name)return r.name;r=r.toString();var f=r.indexOf("\n");return f===-1?r:r.substring(0,f)};
V2U=function(r){r.__forward_ref__=V2U;r.toString=function(){return pA(this())};
return r};
nA=function(r){return typeof r==="function"&&r.hasOwnProperty("__forward_ref__")&&r.__forward_ref__===V2U?r():r};
E2K=function(r){return r?r.map(function(f){return new (Function.prototype.bind.apply(f.type.annotationCls,[null].concat(_.Na(f.args?f.args:[]))))}):[]};
SoK=function(r){for(var f=[],I=0;I<r.length;++I){if(f.indexOf(r[I])>-1){f.push(r[I]);break}f.push(r[I])}return f};
xB$=function(r){return r.length>1?" ("+SoK(r.slice().reverse()).map(function(f){return pA(f.token)}).join(" -> ")+")":""};
wYu=function(r,f,I,C){if(C){var Y=Error("We``"+(C instanceof Error?C.message:C));Y.ngOriginalError=C}else Y=Error();Y.addKey=hvR;Y.keys=[f];Y.injectors=[r];Y.constructResolvingMessage=I;Y.message=Y.constructResolvingMessage();Y.ngOriginalError=C;return Y};
hvR=function(r,f){this.injectors.push(r);this.keys.push(f);this.message=this.constructResolvingMessage()};
b9q=function(r,f){return wYu(r,f,function(){return"No provider for "+pA(this.keys[0].token)+"!"+xB$(this.keys)})};
pYu=function(r,f){return wYu(r,f,function(){return"Cannot instantiate cyclic dependency!"+xB$(this.keys)})};
n2P=function(r,f,I){return wYu(r,I,function(){var C=pA(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+C+"!"+xB$(this.keys)+"."},f)};
dB$=function(r,f){for(var I=[],C=0,Y=f.length;C<Y;C++){var V=f[C];V&&V.length!=0?I.push(V.map(pA).join(" ")):I.push("?")}return Error("$e`"+pA(r)+"`"+I.join(", ")+"`"+pA(r))};
$Bm=function(r){var f=void 0,I=void 0;if(r&&r.useClass!==void 0){f=r.useClass;var C=nA(r.useClass);var Y=zvq.factory(C);C=M2K(C)}else r&&r.useExisting!==void 0?(Y=function(V){return V},C=[g2E(dd.get(nA(r.useExisting)))]):r&&r.useFactory!==void 0?(Y=r.useFactory,C=aRK(r.useFactory,r.deps)):(I=r.useValue,Y=function(){return r.useValue},C=XY$);
return new Neq(Y,C,f,I)};
PwU=function(r){return new FYR(dd.get(nA(r.provide)),[$Bm(r)],r.multi)};
TeB=function(r){r=t2$(r,[]).map(PwU);for(var f=new Map,I=0;I<r.length;I++){var C=r[I],Y=f.get(C.key.id);if(Y){if(C.multiProvider!==Y.multiProvider)throw Error("bf`"+Y+"`"+C);if(C.multiProvider)for(var V=0;V<C.resolvedFactories.length;V++)Y.resolvedFactories.push(C.resolvedFactories[V]);else f.set(C.key.id,C)}else Y=void 0,C.multiProvider?Y=new FYR(C.key,C.resolvedFactories.slice(),C.multiProvider):Y=C,f.set(C.key.id,Y)}return Array.from(f.values())};
t2$=function(r,f){r.forEach(function(I){if(I instanceof cJu)f.push({provide:I,useClass:I});else if(I&&typeof I=="object"&&I.provide!==void 0)f.push(I);else if(I instanceof Array)t2$(I,f);else throw Error("Ze`"+I);});
return f};
aRK=function(r,f){if(f){var I=f.map(function(C){return[C]});
return f.map(function(C){return WY$(r,C,I)})}return M2K(r)};
M2K=function(r){var f=zvq.parameters(r);if(!f)return[];if(f.some(function(I){return I==null}))throw dB$(r,f);
return f.map(function(I){return WY$(r,I,f)})};
WY$=function(r,f,I){var C=null,Y=!1;if(!Array.isArray(f))return f instanceof LYq?mBB(f.token,Y,null):mBB(f,Y,null);for(var V=null,S=0;S<f.length;++S){var h=f[S];if(h instanceof cJu)C=h;else if(h instanceof LYq)C=h.token;else if(h instanceof evw)Y=!0;else if(h instanceof JJd||h instanceof jFl)V=h}C=nA(C);if(C!=null)return mBB(C,Y,V);throw dB$(r,I);};
mBB=function(r,f,I){return new H9R(dd.get(nA(r)),f,I)};
i9U=function(r,f){for(var I=Array(r.providers.length),C=0;C<r.providers.length;++C){var Y=C;if(C<0||C>=r.providers.length)throw Error("af`"+C);I[Y]=f(r.providers[C])}return I};
Rvu=function(r){return typeof r==="function"&&zvq.parameters(r).every(function(f){return!!f})};
yJK=function(r){var f=v2R;KYU.get(r)||KYU.set(r,new f);return KYU.get(r)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(r){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(r)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(r){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(r)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(r,f){var I,C;if(r.contains(f))return!0;r=_.zI(r).querySelectorAll("content,slot");for(I=0;I<r.length;++I){var Y=_.zI(r[I]).getDistributedNodes();for(C=0;C<Y.length;++C)if(Y[C].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Y[C],f))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(r){r.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(r)&&r.preventDefault();r.targetTouches&&(r=r.targetTouches[0],UBB=r.pageX,sFl=r.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 r=0,f=My.length;r<f;r++)document.addEventListener(My[r],_._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 r=0,f=My.length;r<f;r++)document.removeEventListener(My[r],_._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(r){var f=_.zI(r).rootTarget;r.type!=="touchmove"&&O9E!==f&&(O9E=f,o2E=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.zI(r).path));if(!o2E.length)return!0;if(r.type==="touchstart")return!1;r=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(r);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(o2E,r.deltaX,r.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(r){for(var f=[],I=r.indexOf(QFP),C=0;C<=I;C++)if(r[C].nodeType===Node.ELEMENT_NODE){var Y=r[C],V=Y.style;V.overflow!=="scroll"&&V.overflow!=="auto"&&(V=window.getComputedStyle(Y));V.overflow!=="scroll"&&V.overflow!=="auto"||f.push(Y)}return f};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(r,f,I){if(f||I)for(var C=Math.abs(I)>=Math.abs(f),Y=0;Y<r.length;Y++){var V=r[Y];if(C?I<0?V.scrollTop>0:V.scrollTop<V.scrollHeight-V.clientHeight:f<0?V.scrollLeft>0:V.scrollLeft<V.scrollWidth-V.clientWidth)return V}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(r){var f={deltaX:r.deltaX,deltaY:r.deltaY};"deltaX"in r||("wheelDeltaX"in r&&"wheelDeltaY"in r?(f.deltaX=-r.wheelDeltaX,f.deltaY=-r.wheelDeltaY):"wheelDelta"in r?(f.deltaX=0,f.deltaY=-r.wheelDelta):"axis"in r?(f.deltaX=r.axis===1?r.detail:0,f.deltaY=r.axis===2?r.detail:0):r.targetTouches&&(r=r.targetTouches[0],f.deltaX=UBB-r.pageX,f.deltaY=sFl-r.pageY));return f};
AJm=function(r){this.element=r;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
G1K=function(r){this.element=r;this.color=window.getComputedStyle(r).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");_.zI(this.waveContainer).appendChild(this.wave);Z9K(this)};
gd=function(r,f){for(var I in r)if(I.toLowerCase()===f.toLowerCase())return r[I]};
k1m=function(r,f){for(var I in r)if(I.toLowerCase()===f.toLowerCase()){delete r[I];break}};
qoq=function(r){r=_.X0.clone(r);for(var f=0;f<BeK.length;++f){var I=BeK[f],C=gd(r,I);C&&(r["X-Goog-Upload-Header-"+I]=C,k1m(r,I))}return r};
uWR=function(r){r=_.X0.clone(r);k1m(r,"X-Goog-Upload-Status")};
rAB=function(r){return DBc.some(function(f){return f.test(r)})};
YUE=function(r,f){var I;var C=(I=r.formContent)==null?void 0:I.locale;I=C==null?void 0:C.split("-")[0];C=C&&feB.includes(C)?C:I&&feB.includes(I)?I:void 0;C=(C!=null?C:"en").replaceAll("-","_").toLowerCase();var Y;r=((Y=r.initializationData)==null?0:Y.useNightlyRelease)?"nightly":"live";var V;return(f==null?0:(V=f.getEnableAlohaBinarySplit)==null?0:V.call(f))?_.u_(IeP,r):_.u_(Cld,r,C)};
VXq=function(r,f,I,C){if(leK)return leK;var Y=YUE(r,C);return leK=f.feedbackV2GlobalObject?Promise.resolve(f.feedbackV2GlobalObject):new Promise(function(V,S){var h=_.wL("SCRIPT");_.vL(h,Y);h.onload=function(){f.feedbackV2GlobalObject?V(f.feedbackV2GlobalObject):S(Error("ef"))};
h.onerror=function(){S(Error("ff`"+Y.toString()))};
I.body.appendChild(h)})};
SUR=function(r,f,I,C){if(Ekw)return Ekw;var Y=YUE(r,C);return Ekw=f.feedbackV2GlobalObject?Promise.resolve(f.feedbackV2GlobalObject):new Promise(function(V,S){var h=_.wL("SCRIPT");_.vL(h,Y);h.onload=function(){f.feedbackV2GlobalObject?V(f.feedbackV2GlobalObject):S(Error("ef"))};
h.onerror=function(){S(Error("ff`"+Y.toString()))};
I.body.appendChild(h)})};
xKd=function(r,f,I,C,Y){Y=Y===void 0?!0:Y;var V,S,h,w,n;return _.x(function(d){switch(d.nextAddress){case 1:return V=Date.now(),_.b(d,VXq(r,I,C,f),2);case 2:S=d.yieldResult;if(!(Y||((w=r.initializationData)==null?0:w.useNightlyRelease)||((n=r.initializationData)==null?0:n.isLocalServer))){h=S.initializeFeedbackClient(r,V,f);d.jumpTo(3);break}return _.b(d,S.initializeFeedbackClientAsync(r,V,f),4);case 4:h=d.yieldResult;case 3:return h.initiateAloha(),d.return(h)}})};
h0u=function(r,f,I,C){var Y,V,S;return _.x(function(h){if(h.nextAddress==1)return Y=Date.now(),_.b(h,SUR(r,I,C.document,f),2);if(h.nextAddress!=3)return V=h.yieldResult,_.b(h,V.initializeFeedbackClientAsync(r,Y,f,C),3);S=h.yieldResult;S.initiateAloha();return h.return(S)})};
w7R=function(r,f,I){var C=!0;C=C===void 0?!0:C;var Y,V,S,h,w,n,d,z,g,X;return _.x(function(P){Y=I||_.Yq;if((V=f)==null?0:(h=(S=V).getEnableAlohaBinarySplit)==null?0:h.call(S)){w=Y;if(w.isFormOpened)throw n=Error("gf"),n.name="DuplicateFormError",n;w.isFormOpened=!0;r.callbacks=r.callbacks||{};d=r.callbacks.onClose||function(){};
r.callbacks.onClose=function(W){w.isFormOpened=!1;d(W)};
try{return P.return(h0u(r,f,w,Y))}catch(W){throw w.isFormOpened=!1,W;}}else{z=Y;if(z.isFormOpened)throw g=Error("gf"),g.name="DuplicateFormError",g;z.isFormOpened=!0;r.callbacks=r.callbacks||{};X=r.callbacks.onClose||function(){};
r.callbacks.onClose=function(W){z.isFormOpened=!1;X(W)};
try{return P.return(xKd(r,f,z,Y.document,C))}catch(W){throw z.isFormOpened=!1,W;}}_.wO(P)})};
z0c=function(r,f){return _.x(function(I){return I.return(new Promise(function(C){var Y=bdE(f!=null?f:"")+"/aloha_form_properties?productId="+r;p7q(Y,function(V){V=V.target;var S=null;try{var h=JSON,w=h.stringify;if(V.JSC$7695_xhr_){var n=V.JSC$7695_xhr_.responseText;n.indexOf(")]}'\n")==0&&(n=n.substring(5));var d=(0,_.ao)(n)}else d=void 0;S=CrB(nkR,w.call(h,d))}catch(z){w=new nkR,d=dKB(),d=_.X6(d,13,!1),d=_.X6(d,14,!0),d=_.X6(d,15,!0),d=_.X6(d,20,!1),S=_.CK(w,1,d)}C(S)},"GET","",{},2E3,!0)}))})};
bdE=function(r){return rAB(r)?r:"https://www.google.com/tools/feedback"};
X7K=function(r){r=r.match(new RegExp(MXK,"gi"))||[];r=_.E(r);for(var f=r.next();!f.done;f=r.next()){f=f.value;a:{var I=_.E(gkl);for(var C=I.next();!C.done;C=I.next())if(C.value.test(f)){I=!1;break a}I=!0}if(!I)a:{I=_.E(ae$);for(C=I.next();!C.done;C=I.next())if(C.value.test(f)){I=!0;break a}I=!1}if(I)return!0}return!1};
NiK=function(r){switch(r){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"}};
FTw=function(r){if(window.crypto&&window.crypto.getRandomValues)try{var f=Array(r),I=new Uint8Array(r);window.crypto.getRandomValues(I);for(var C=0;C<f.length;C++)f[C]=I[C];return f}catch(V){}f=Array(r);for(I=0;I<r;I++){C=Date.now();for(var Y=0;Y<C%23;Y++)f[I]=Math.random();f[I]=Math.floor(Math.random()*256)}if($Kq)for(I=1,C=0;C<$Kq.length;C++)f[I%r]^=f[(I-1)%r]/4^$Kq.charCodeAt(C),I++;return f};
Ny=function(r){r=FTw(r);for(var f=[],I=0;I<r.length;I++)f.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(r[I]&63));return f.join("")};
tXK=function(r){r&&_.NW("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:PlB,clientScreenNonce:r})};
Tiq=function(r){return _.Lz("client-screen-nonce-store",{})[r===void 0?0:r]};
cAK=function(r,f){f=f===void 0?0:f;var I=_.Lz("client-screen-nonce-store");I||(I={},_.Ww("client-screen-nonce-store",I));I[f]=r};
WT$=function(r){r=r===void 0?0:r;return r===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+r};
LTB=function(r){return _.Lz(WT$(r===void 0?0:r))};
_.Pj=function(r){return(r=LTB(r===void 0?0:r))?new _.F6({veType:r,youtubeData:void 0,jspbYoutubeData:void 0}):null};
mKl=function(){var r=_.Lz("csn-to-ctt-auth-info");r||(r={},_.Ww("csn-to-ctt-auth-info",r));return r};
e0R=function(){return Object.values(_.Lz("client-screen-nonce-store",{})).filter(function(r){return r!==void 0})};
_.t1=function(r){r=Tiq(r===void 0?0:r);if(!r&&!_.mO("USE_CSN_FALLBACK",!0))return null;r||(r="UNDEFINED_CSN");return r?r:null};
jPR=function(r){for(var f=_.E(Object.values(JAP)),I=f.next();!I.done;I=f.next())if(_.t1(I.value)===r)return!0;return!1};
HdU=function(r,f,I){var C=mKl();(I=_.t1(I))&&delete C[I];f&&(C[r]=f)};
TI=function(r){return mKl()[r]};
_.idw=function(r,f,I,C){I=I===void 0?0:I;if(r!==Tiq(I)||f!==_.Lz(WT$(I)))if(HdU(r,C,I),cAK(r,I),_.Ww(WT$(I),f),f=function(){setTimeout(function(){tXK(r)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(f)}catch(Y){f()}else f()};
R0c=function(r,f){f=f===void 0?"":f;var I=[],C;for(C in r)if(r.hasOwnProperty(C)){var Y=f!==""?f+"."+C:C;typeof r[C]==="object"?I.push.apply(I,_.Na(R0c(r[C],Y))):I.push([Y,r[C]])}I.sort();return I};
_.KTc=function(r){var f=_.XE.apply(1,arguments);if(!cj(r)||f.some(function(C){return!cj(C)}))throw Error("hf");
f=_.E(f);for(var I=f.next();!I.done;I=f.next())vkP(r,I.value)};
vkP=function(r,f){for(var I in f)if(cj(f[I])){if(I in r&&!cj(r[I]))throw Error("jf");I in r||(r[I]={});vkP(r[I],f[I])}else if(yAd(f[I])){if(I in r&&!yAd(r[I]))throw Error("kf");I in r||(r[I]=[]);UKU(r[I],f[I])}else r[I]=f[I];return r};
UKU=function(r,f){f=_.E(f);for(var I=f.next();!I.done;I=f.next())I=I.value,cj(I)?r.push(vkP({},I)):yAd(I)?r.push(UKU([],I)):r.push(I);return r};
cj=function(r){return typeof r==="object"&&!Array.isArray(r)};
yAd=function(r){return typeof r==="object"&&Array.isArray(r)};
Odd=function(r){for(var f=_.E(Object.entries(sPq)),I=f.next();!I.done;I=f.next())if(I=_.E(I.value),I.next(),I=I.next().value,I==="SLI_STATUS_"+r)return I;return"SLI_STATUS_UNKNOWN"};
_.Wj=function(r,f,I,C){return okq(r,f,function(){return new _.QPK(r,f,I,C)})};
_.AAK=function(){return _.Wj("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
ZdR=function(){return _.Wj("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
LA=function(){return _.Wj("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
Ghc=function(){return _.Wj("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
khK=function(){return _.Wj("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
BiR=function(){return _.Wj("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
DKE=function(r){r&&(r.dataset?r.dataset[qUU()]="true":_.ys([_.BG(uZB)],r,"data-loaded","true".toString()))};
rBR=function(r){return r?r.dataset?r.dataset[qUU()]:r.getAttribute("data-loaded"):null};
qUU=function(){return fBK.loaded||(fBK.loaded="loaded".replace(/\-([a-z])/g,function(r,f){return f.toUpperCase()}))};
_.m0=function(r,f,I){IBc(r,f,I===void 0?null:I)};
_.YaK=function(r,f){r&&f&&(r=""+_.S3(f),(r=CIu[r])&&_.Y$R(r))};
IBc=function(r,f,I){I=I===void 0?null:I;var C=_.lBR(r),Y=document.getElementById(C),V=Y&&rBR(Y),S=Y&&!V;V?f&&f():(f&&(V=_.Ds(C,f),f=""+_.S3(f),CIu[f]=V),S||(Y=Vmw(r,C,function(){rBR(Y)||(DKE(Y),_.l1q(C),_.rl(function(){_.ENU(C)},0))},I)))};
Vmw=function(r,f,I,C){C=C===void 0?null:C;var Y=_.wL("SCRIPT");Y.id=f;Y.onload=function(){I&&setTimeout(I,0)};
Y.onreadystatechange=function(){switch(Y.readyState){case "loaded":case "complete":Y.onload()}};
C&&Y.setAttribute("nonce",C);_.vL(Y,_.XF(r));r=document.getElementsByTagName("head")[0]||document.body;r.insertBefore(Y,r.firstChild);return Y};
_.lBR=function(r){var f=document.createElement("a");t6(f,r);return"js-"+e5(f.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
Ecl=function(r){var f=_.Lz("INNERTUBE_HOST_OVERRIDE");f&&(r=String(f)+String(_.J1(r)));return r};
Sal=function(r){var f={};_.N("json_condensed_response")&&(f.prettyPrint="false");return r=Tbc(r,f)};
_.j5=function(r){return QM(r)?"same-origin":"include"};
_.Hj=function(r){return QM(r)?"same-origin":"cors"};
iy=function(r,f,I){I=I===void 0?{}:I;r={method:f===void 0?"POST":f,mode:_.Hj(r),credentials:_.j5(r)};f={};for(var C=_.E(Object.keys(I)),Y=C.next();!Y.done;Y=C.next())Y=Y.value,I[Y]&&(f[Y]=I[Y]);Object.keys(f).length>0&&(r.headers=f);return r};
_.Ro=function(r,f){f=f===void 0?{}:f;return"service:"+r+"/"+Object.keys(f).sort().map(function(I){return I+":"+f[I]}).join("/")};
xJB=function(r){var f,I,C,Y;r=(f=_.F(r,_.vj))==null?void 0:(I=f.watchEndpointSupportedOnesieConfig)==null?void 0:(C=I.html5PlaybackOnesieConfig)==null?void 0:(Y=C.commonConfig)==null?void 0:Y.url;if(!r)return[];f=new _.KA(r);return f.JSC$7932_domain_?["https://"+f.JSC$7932_domain_+"/generate_204"]:[]};
_.b$R=function(){return hWB()||L0m()||wzR&&TU("version/")?!0:_.Lz("EOM_VISITOR_DATA")?!1:!0};
pz$=function(r){var f=r.docid||r.video_id||r.videoId||r.id;if(f)return f;f=r.raw_player_response;f||(r=r.player_response)&&(f=JSON.parse(r));return f&&f.videoDetails&&f.videoDetails.videoId||null};
ncE=function(r){return r.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
yw=function(r){return!isNaN(Number(r))&&!_.bU(r)};
_.sl=function(r,f,I,C){C=C===void 0?!0:C;var Y=_.Lz("VALID_SESSION_TEMPDATA_DOMAINS",[]),V=_.OQ(window.location.href);V&&Y.push(V);V=_.OQ(r);if(_.Am(Y,V)||!V&&_.xq(r,"/"))if(Y=document.createElement("a"),t6(Y,r),r=Y.href)if(r=_.J1(r),r=_.Ul(r))C&&!f.csn&&(f.itct||f.ved)&&(f=Object.assign({csn:_.t1()},f)),I?(I=parseInt(I,10),isFinite(I)&&I>0&&dJK(r,f,I)):dJK(r,f)};
MmR=function(r){var f=_.Lz("VALID_SESSION_TEMPDATA_DOMAINS",[]),I=_.OQ(window.location.href);I&&f.push(I);I=_.OQ(r);if(!(_.Am(f,I)||!I&&_.xq(r,"/")))return null;r=_.J1(r);(r=_.Ul(r))?(r=zWd(r),r=(r=_.xB.get(r,void 0)||null)?_.vw(r):{}):r=null;return r};
dJK=function(r,f,I){r=zWd(r);f=f?_.VD(f):"";I=I||5;_.b$R()&&_.hd(r,f,I)};
zWd=function(r){for(var f=_.E(gcw),I=f.next();!I.done;I=f.next())r=_.Ol(r,I.value);return"ST-"+e5(r).toString(36)};
aBK=function(r,f){r.commandMetadata&&_.F(r.commandMetadata,_.oo)&&_.F(r.commandMetadata,_.oo).url&&(r=_.Kz(_.F(r.commandMetadata,_.oo).url).adurl)&&_.WFK(r)&&_.sl(_.J1(r),{encoded_ad_playback_context:f})};
_.Xz$=function(r){if(r.requestFullscreen)r=r.requestFullscreen(void 0);else if(r.webkitRequestFullscreen)r=r.webkitRequestFullscreen();else if(r.mozRequestFullScreen)r=r.mozRequestFullScreen();else if(r.msRequestFullscreen)r=r.msRequestFullscreen();else if(r.webkitEnterFullscreen)r=r.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return r instanceof Promise?r:Promise.resolve()};
_.A1=function(r){var f;_.ANR(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.Qw()==r&&(f=document):f=r;if(f&&(r=_.ANR(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],f))){r.call(f)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.Qw=function(){var r=r===void 0?!1:r;var f=_.ANR(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(r)for(;f&&f.shadowRoot;)f=f.shadowRoot.fullscreenElement;return f?f:null};
_.Zo=function(r,f){f=f===void 0?!0:f;r.addEventListener("wheel",NPq);r.overscrollConfig={cooldown:f}};
_.GI=function(r){r.overscrollConfig=void 0;r.removeEventListener("wheel",NPq)};
NPq=function(r){var f=r.deltaY,I=r.target,C=null;if(window.Polymer&&window.Polymer.Element){if(I=r.path||r.composedPath&&r.composedPath()){I=_.E(I);for(var Y=I.next();!Y.done&&(Y=Y.value,!$Jm(Y,f));Y=I.next())if(Y.overscrollConfig){C=Y;break}}}else for(;I&&!$Jm(I,f);){if(I.overscrollConfig){C=I;break}I=I.parentElement}C&&(f=C.overscrollConfig,f.cooldown?(C=r.deltaY,I=f.lastDeltaY||0,f.lastDeltaY=C,Y=f.lastStopped||0,I&&Y&&I>0==C>0?Math.abs(I)>=Math.abs(C)?(C=Y+1200,I=!1):(C=Y+600,I=!0):(C=Date.now()+
600,I=!0),C>Date.now()&&(r.preventDefault(),I&&(f.lastStopped=Date.now()))):r.preventDefault())};
$Jm=function(r,f){return f<0&&r.scrollTop>0||f>0&&r.scrollTop<r.scrollHeight-r.clientHeight-1?(r=getComputedStyle(r).overflowY,r=="auto"||r=="scroll"):!1};
_.kA=function(r,f,I,C){C||(C={bubbles:!0,cancelable:!1,composed:!0});I!==null&&I!==void 0&&(C.detail=I);var Y=new CustomEvent(f,C);_.N("untrack_fire_custom_event_killswitch")?r.dispatchEvent(Y):YL(function(){return void r.dispatchEvent(Y)});
return Y};
_.Bj=function(r,f,I,C){f=new FlU(f,!(C===void 0||!C),I);_.kA(r,"yt-action",f);return f.returnValue};
_.qy=function(r,f,I){return _.Bj(r,f,I,!0)};
_.uy=function(r,f,I){return _.Bj(r,f,I)[0]};
_.rX=function(r,f,I,C){f&&f.length&&f.forEach(function(Y){var V=oYl(Y);V&&(_.N("handle_service_request_actions")&&Y.commandMetadata&&Y.commandMetadata.webCommandMetadata&&Y.commandMetadata.webCommandMetadata.sendPost?_.Do(I?I:r,[Y]):_.qy(r,V,[Y,I,C]))})};
_.Do=function(r,f){var I=[r];f&&I.push.apply(I,f);f=_.Bj(r,"yt-service-request",I);return f.length>0&&(f=f[0],_.kA(r,"yt-service-request-sent",f),f&&f.ajaxPromise)?(f.ajaxPromise.then(function(C){_.kA(r,"yt-service-request-completed",C)},function(C){_.kA(r,"yt-service-request-error",{error:C,
params:I})},r),f.ajaxPromise):_.fe()};
_.Ce=function(r,f){if(_.N("handle_service_request_actions"))_.rX(f,r,f);else{r=_.E(r);for(var I=r.next();!I.done;I=r.next()){I=I.value;var C=void 0;((C=_.F(I,_.Il))==null?0:C.commands)?_.Ce(_.F(I,_.Il).commands,f):(C=void 0,((C=_.F(I,_.YI))==null?0:C.actions)?_.Ce(_.F(I,_.YI).actions,f):(C=void 0,((C=_.F(I.commandMetadata,_.oo))==null?0:C.sendPost)?_.Do(f,[I]):_.rX(f,[I],f)))}}};
_.tml=function(r,f,I){f=f===void 0?{}:f;typeof f==="function"&&(f={callback:f});I||f._c&&f._c.jsl&&f._c.jsl.h||_.X0.extend(f,{_c:{jsl:{h:_.Lz("GAPI_HINT_PARAMS")}}});(f.gapiHintOverride||_.Lz("GAPI_HINT_OVERRIDE"))&&(I=_.Kz(document.location.href).gapi_jsh)&&_.X0.extend(f,{_c:{jsl:{h:I}}});PIR(r,f)};
_.VR=function(r,f,I){f=f===void 0?{}:f;r=(r=r in lm?lm[r]:I)||"";I={};for(var C in f){I={key$jscomp$788:I.key$jscomp$788};I.key$jscomp$788=C;var Y=function(V){return function(){return String(f[V.key$jscomp$788])}}(I);
r=r.replace(new RegExp("\\$\\{"+I.key$jscomp$788+"\\}","gi"),Y);r=r.replace(new RegExp("\\$"+I.key$jscomp$788,"gi"),Y)}return r};
_.E_=function(r,f){return TPK(r in lm?lm[r]:{},f)};
TPK=function(r,f){var I=_.Lz("I18N_PLURAL_RULES");I||(I=function(C){return C==1?"one":"other"});
return(r=r["case"+f]||r[I(f)])?r.replace("#",f.toString()):f+""};
Llq=function(r){var f=cBc(r),I=document.getElementById(f),C=I&&rBR(I);C||I&&!C||(I=Wlw(r,f,function(){if(!rBR(I)){DKE(I);_.l1q(f);var Y=_.S_(_.ENU,f);_.rl(Y,0)}}))};
Wlw=function(r,f,I){var C=document.createElement("link");C.id=f;C.onload=function(){I&&setTimeout(I,0)};
r=_.XF(r);_.UR(C,r,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(C);return C};
cBc=function(r){var f=_.wL("A");t6(f,bM(r));return"css-"+e5(f.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.eWP=function(r){var f=mJB();r!==f&&(f=_.xI(),!_.N("web_autonav_allow_off_by_default")&&r||_.hZ(0,141,!0),_.hZ(0,140,!r),f.save())};
mJB=function(){var r=_.xI();return _.N("web_autonav_allow_off_by_default")&&!r.getFlag(141)&&_.Lz("AUTONAV_OFF_BY_DEFAULT")?!1:!r.getFlag(140)};
JBw=function(r,f){var I,C;r=((I=r.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(C=I.videoAuthorizationToken)==null?void 0:C.credentialTransferTokens)||[];for(I=0;I<r.length;++I)if(r[I].scope===f)return r[I].token||void 0};
jHm=function(r){for(var f=0,I=0;I<r.length;I++)f=f*31+r.charCodeAt(I),I<r.length-1&&(f%=0x800000000000);return f%1E5};
_.wX=function(r){return _.jH("ytcsi."+(r||"")+"data_")||H$$(r)};
_.i$K=function(r){r=_.wX(r);r.metadata||(r.metadata={});return r.metadata};
_.RWR=function(r){r=_.wX(r);r.tick||(r.tick={});return r.tick};
_.vcK=function(r){r=_.wX(r);if(r.gel){var f=r.gel;f.gelInfos||(f.gelInfos={});f.gelTicks||(f.gelTicks={})}else r.gel={gelTicks:{},gelInfos:{}};return r.gel};
_.Klm=function(r){r=_.vcK(r);r.gelInfos||(r.gelInfos={});return r.gelInfos};
yBE=function(r){var f=_.wX(r).nonce;f||(f=Ny(16),_.wX(r).nonce=f);return f};
H$$=function(r){var f={tick:{},info:{}};_.OH("ytcsi."+(r||"")+"data_",f);return f};
UJc=function(){var r=_.jH("ytcsi.debug");r||(r=[],_.OH("ytcsi.debug",r),_.OH("ytcsi.reference",{}));return r};
_.O$c=function(r){r=r||"";var f=sH$();if(f[r])return f[r];var I=UJc(),C={timerName:r,info:{},tick:{},span:{},jspbInfo:[]};I.push(C);return f[r]=C};
ocK=function(r){r=r||"";var f=sH$();f[r]&&delete f[r];var I=UJc(),C={timerName:r,info:{},tick:{},span:{},jspbInfo:[]};I.push(C);f[r]=C};
sH$=function(){var r=_.jH("ytcsi.reference");if(r)return r;UJc();return _.jH("ytcsi.reference")};
_.ABB=function(r){return QH$[r]||"LATENCY_ACTION_UNKNOWN"};
BPK=function(r,f,I){I=I===void 0?{}:I;var C=!1;_.mO("ytLoggingEventsDefaultDisabled",!1)&&(C=!0);C=C?null:a5;I=I===void 0?{}:I;var Y=Math.round(I.timestamp||(0,_.Ad)());_.pN(f,1,Y<Number.MAX_SAFE_INTEGER?Y:0);Y=new Z$m;if(I.lact)_.pN(Y,1,isFinite(I.lact)?I.lact:-1);else if(I.timestamp)_.pN(Y,1,-1);else{var V=_.Zs();_.pN(Y,1,isFinite(V)?V:-1)}if(I.sequenceGroup&&!_.N("web_gel_sequence_info_killswitch")){V=I.sequenceGroup;var S=M$u(V),h=new Gol;_.pN(h,2,S);_.w5(h,1,V);_.CK(Y,3,h);I.endOfSequence&&delete koR[I.sequenceGroup]}_.CK(f,
33,Y);(I.sendIsolatedPayload?FWu:P7P)(r,{endpoint:"log_event",payload:f,cttAuthInfo:I.cttAuthInfo,dangerousLogToVisitorSession:I.dangerousLogToVisitorSession},C)};
_.pe=function(){return(_.N("csi_use_time_origin")||_.N("csi_use_time_origin_tvhtml5"))&&_.bm.timeOrigin?Math.floor(_.bm.timeOrigin):_.bm.timing.navigationStart};
_.qaK=function(r,f){_.ne("_start",r,f)};
_.dX=function(r,f){if(!_.N("web_csi_action_sampling_enabled")||!_.wX(f).actionDisabled){var I=_.O$c(f||"");_.KTc(I.info,r);r.loadType&&(I=r.loadType,_.i$K(f).loadType=I);_.KTc(_.Klm(f),r);I=yBE(f);f=_.wX(f).cttAuthInfo;uBm().info(r,I,f)}};
DJP=function(){var r,f,I,C;return((C=_.a().resolve(_.ZY(zL))==null?void 0:(r=zsd())==null?void 0:(f=r.loggingHotConfig)==null?void 0:(I=f.csiConfig)==null?void 0:I.debugTicks)!=null?C:[]).map(function(Y){return Object.values(Y)[0]})};
_.ne=function(r,f,I){if(!_.N("web_csi_action_sampling_enabled")||!_.wX(I).actionDisabled){var C=yBE(I),Y;if(Y=_.N("web_csi_debug_sample_enabled")&&C){(_.a().resolve(_.ZY(zL))==null?0:zsd())&&!rkE&&(rkE=!0,_.ne("gcfl",(0,_.Ad)(),I));var V,S,h;Y=(_.a().resolve(_.ZY(zL))==null?void 0:(V=zsd())==null?void 0:(S=V.loggingHotConfig)==null?void 0:(h=S.csiConfig)==null?void 0:h.debugSampleWeight)||0;if(V=Y!==0)b:{V=DJP();if(V.length>0)for(S=0;S<V.length;S++)if(r===V[S]){V=!0;break b}V=!1}V?(Y=jHm(C)%Y!==0,
_.wX(I).debugTicksExcludedLogged||(V={},V.debugTicksExcluded=Y,_.dX(V,I)),_.wX(I).debugTicksExcludedLogged=!0):Y=!1}if(!Y){r[0]!=="_"&&fVl(r,I,f);Y=_.O$c(I||"");Y.tick[r]=f||(0,_.Ad)();if(Y.callback&&Y.callback[r])for(Y=_.E(Y.callback[r]),V=Y.next();!V.done;V=Y.next())V=V.value,V();Y=_.vcK(I);Y.gelTicks&&(Y.gelTicks[r]=!0);V=_.RWR(I);Y=f||(0,_.Ad)();_.N("log_repeated_ytcsi_ticks")?r in V||(V[r]=Y):V[r]=Y;V=_.wX(I).cttAuthInfo;r==="_start"?uBm().baseline(C,f,V):uBm().tick(r,C,f,V);_.IVP(I);return Y}}};
fVl=function(r,f,I){if(_.bm.mark)if(r.startsWith("mark_")||(r="mark_"+r),f&&(r+=" ("+f+")"),I===void 0||_.N("web_csi_disable_alt_time_performance_mark"))_.bm.mark(r);else{I=_.N("csi_use_performance_navigation_timing")?I-_.bm.timeOrigin:I-(_.bm.timeOrigin||_.bm.timing.navigationStart);try{_.bm.mark(r,{startTime:I})}catch(C){}}};
C0U=function(){var r,f=(r=_.bm.getEntriesByType)==null?void 0:r.call(_.bm,"mark");f&&f.forEach(function(I){if(I.name.startsWith("mark_")){var C;(C=_.bm.clearMarks)==null||C.call(_.bm,I.name)}})};
_.YEE=function(){switch(QbP()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.lVP=function(r){var f={},I=function(V,S,h){S=S.match("_rid")?S.split("_rid")[0]:S;typeof h==="number"&&(h=JSON.stringify(h));V.requestIds?V.requestIds.push({endpoint:S,id:h}):V.requestIds=[{endpoint:S,id:h}]};
r=_.E(Object.entries(r));for(var C=r.next();!C.done;C=r.next()){var Y=_.E(C.value);C=Y.next().value;Y=Y.next().value;switch(C){case "GetBrowse_rid":I(f,C,Y);break;case "GetGuide_rid":I(f,C,Y);break;case "GetHome_rid":I(f,C,Y);break;case "GetPlayer_rid":I(f,C,Y);break;case "GetSearch_rid":I(f,C,Y);break;case "GetSettings_rid":I(f,C,Y);break;case "GetTrending_rid":I(f,C,Y);break;case "GetWatchNext_rid":I(f,C,Y);break;case "yt_red":f.isRedSubscriber=!!Y;break;case "yt_ad":f.isMonetized=!!Y}}return f};
_.VsR=function(r){var f=_.zM("aft",r);if(f)return f;f=_.Lz((r||"")+"TIMING_AFT_KEYS",["ol"]);for(var I=f.length,C=0;C<I;C++){var Y=_.zM(f[C],r);if(Y)return Y}return NaN};
_.E6m=function(r,f){_.OH("ytglobal.timing"+(f||"")+"ready_",r)};
_.zM=function(r,f){if(r=_.RWR(f)[r])return typeof r==="number"?r:r[r.length-1]};
_.IVP=function(r){var f=_.zM("_start",r),I=_.VsR(r),C=!SEP;f&&I&&C&&(djR(xrw,new h_U(Math.round(I-f),r)),SEP=!0)};
bVc=function(r){H$$(r);wJU();C0U();r||(_.Lz("TIMING_ACTION")&&_.Ww("PREVIOUS_ACTION",_.Lz("TIMING_ACTION")),_.Ww("TIMING_ACTION",""))};
_.pJB=function(r){r=r===void 0?{}:r;_.Jn(function(){Mo();ocK();bVc();_.E6m(!1);r.cttAuthInfo&&(_.wX().cttAuthInfo=r.cttAuthInfo);_.Ww("TIMING_AFT_KEYS",[]);r.isHot?_.gX({loadType:"hot"}):_.gX({loadType:"warm"});_.Ww("TIMING_ACTION","");delete _.Lz("TIMING_INFO",{}).yt_lt;_.Jn(_.qaK)(r.startTime,void 0)})()};
_.al=function(r,f,I,C){f=f===void 0?{}:f;_.Jn(function(){var Y=I?I:r;n6$(Y);var V=f.sampleRate;if(!_.N("web_csi_action_sampling_enabled")||V===void 0||V<=1)V=!1;else{var S=yBE(Y);V=jHm(S)%V!==0}V&&(_.wX(Y).actionDisabled=!0);_.O$c(Y||"").info.actionType=r;f.cttAuthInfo&&(_.wX(Y).cttAuthInfo=f.cttAuthInfo);_.Ww(Y+"TIMING_ACTION",r);_.Jn(_.qaK)(f.startTime,Y);V={actionType:C||_.ABB(r)};f.logPreviousAction&&(V.previousAction=_.ABB(_.Lz("TIMING_ACTION")));(S=_.t1())&&S!=="UNDEFINED_CSN"&&(V.clientScreenNonce=
S);_.gX(V,Y);_.E6m(!0,Y)})()};
n6$=function(r){_.Jn(function(){Mo(r);ocK(r);bVc(r)})()};
drl=function(){_.Jn(function(){var r=[],f;for(f in _.jH("ytcsi.".slice(0,-1)))f.endsWith("data_")&&r.push(f.slice(0,-5));r=_.E(r);for(f=r.next();!f.done;f=r.next())n6$(f.value);Mo()})()};
_.MsR=function(r){return _.Jn(function(){return _.z_w("_start",r)})()};
_.gX=function(r,f,I){_.Jn(_.dX)(r,f,I===void 0?!1:I)};
_.Xc=function(r,f,I){return _.Jn(_.ne)(r,f,I)};
_.z_w=function(r,f){return _.Jn(function(){var I=_.RWR(f);return r in I})()};
aVl=function(r){if(!_.N("universal_csi_network_ticks"))return"";r=_.Cf(r)||"";for(var f=Object.keys(g6K),I=0;I<f.length;I++){var C=f[I];if(r.includes(C))return C}return""};
Nfm=function(r){if(!_.N("universal_csi_network_ticks"))return function(){};
var f=g6K[r];return f?(_.No(f),function(){var I=_.N("universal_csi_network_ticks")?(I=XJm[r])?_.No(I):!1:!1;return I}):function(){}};
_.No=function(r,f,I){return _.Jn(function(){if(_.z_w(r,I))return!1;_.Xc(r,f,I);return!0})()};
_.$I=function(r,f,I){_.Jn(function(){if(!_.MsR(I)||_.z_w(r,I))return!1;_.Xc(r,f,I);return!0})()};
_.Fc=function(r){return _.Jn(_.zM)(r,void 0)};
Mo=function(r){_.MsR(r)&&_.Xc("aa",void 0,r)};
_.TfR=function(r,f,I,C,Y,V,S,h,w){var n=$rl();h=new _.F6({veType:f,youtubeData:V,jspbYoutubeData:h});V=PF({},n);Y&&(V.cttAuthInfo=Y);Y={csn:n,pageVe:h.getAsJson()};_.N("expectation_logging")&&w&&w.screenCreatedLoggingExpectations&&(Y.screenCreatedLoggingExpectations=w.screenCreatedLoggingExpectations);I&&I.visualElement?(Y.implicitGesture={parentCsn:I.clientScreenNonce,gesturedVe:I.visualElement.getAsJson()},S&&(Y.implicitGesture.gestureType=S)):I&&_.t7(new _.nf("newScreen() parent element does not have a VE - rootVe",
f));C&&(Y.cloneCsn=C);r?gp("screenCreated",Y,r,V):_.NW("screenCreated",Y,V);djR($ju,new Fdu(n));tZ.clear();P0w.clear();tsl.clear();return n};
TM=function(r,f,I,C,Y){ckE(r,f,I,[C],Y===void 0?!1:Y)};
ckE=function(r,f,I,C,Y){Y=Y===void 0?!1:Y;for(var V=PF({cttAuthInfo:TI(f)||void 0},f),S=_.E(C),h=S.next();!h.done;h=S.next()){h=h.value;var w=h.getAsJson();(_.X0.isEmpty(w)||!w.trackingParams&&!w.veType)&&_.t7(Error("uf"));if(_.N("no_client_ve_attach_unless_shown")){var n=Wdm(h,f);if(w.veType&&!P0w.has(n)&&!tsl.has(n)&&!Y){if(!_.N("il_attach_cache_limit")||tZ.size<1E3){tZ.set(n,[r,f,I,h]);return}_.N("il_attach_cache_limit")&&tZ.size>1E3&&_.t7(new _.nf("IL Attach cache exceeded limit"))}h=Wdm(I,f);
tZ.has(h)?LdU(I,f):tsl.set(h,!0)}}C=C.filter(function(d){d.csn!==f?(d.csn=f,d=!0):d=!1;return d});
I={csn:f,parentVe:I.getAsJson(),childVes:_.$X(C,function(d){return d.getAsJson()})};
f==="UNDEFINED_CSN"?Le("visualElementAttached",V,I):r?gp("visualElementAttached",I,r,V):_.NW("visualElementAttached",I,V)};
e_P=function(r,f,I,C,Y){mrE(r,f,I,Y)};
mrE=function(r,f,I,C){JkR(I,f);var Y=PF({cttAuthInfo:TI(f)||void 0},f);I={csn:f,ve:I.getAsJson(),eventType:1};C&&(I.clientData=C);f==="UNDEFINED_CSN"?Le("visualElementShown",Y,I):r?gp("visualElementShown",I,r,Y):_.NW("visualElementShown",I,Y)};
jjU=function(r,f,I,C){JkR(I,f);var Y=PF({cttAuthInfo:TI(f)||void 0},f);I={csn:f,ve:I.getAsJson(),eventType:4};C&&(I.clientData=C);f==="UNDEFINED_CSN"?Le("visualElementShown",Y,I):r?gp("visualElementShown",I,r,Y):_.NW("visualElementShown",I,Y)};
HVU=function(r,f,I,C,Y){var V=(C=C===void 0?!1:C)?16:8;C=PF({cttAuthInfo:TI(f)||void 0,endOfSequence:C},f);I={csn:f,ve:I.getAsJson(),eventType:V};Y&&(I.clientData=Y);f==="UNDEFINED_CSN"?Le("visualElementHidden",C,I):r?gp("visualElementHidden",I,r,C):_.NW("visualElementHidden",I,C)};
R_l=function(r,f,I,C,Y){iVq(r,f,I,void 0,C,Y)};
iVq=function(r,f,I,C,Y){JkR(I,f);C=C||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var V=PF({cttAuthInfo:TI(f)||void 0},f);I={csn:f,ve:I.getAsJson(),gestureType:C};Y&&(I.clientData=Y);f==="UNDEFINED_CSN"?Le("visualElementGestured",V,I):r?gp("visualElementGestured",I,r,V):_.NW("visualElementGestured",I,V)};
v6K=function(r,f,I,C){var Y=PF({cttAuthInfo:TI(f)||void 0},f);I={csn:f,ve:I.getAsJson(),clientData:C};f==="UNDEFINED_CSN"?Le("visualElementStateChanged",Y,I):r?gp("visualElementStateChanged",I,r,Y):_.NW("visualElementStateChanged",I,Y)};
Kdq=function(){var r=FTw(16);for(var f=[],I=0;I<r.length;I++)f.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(r[I]&63));return f.join("")};
Le=function(r,f,I){ykR.push({payloadName:r,payload:I,jspbPayload:void 0,options:f});UrP||(UrP=PXP())};
NGP=function(r){if(ykR){for(var f=_.E(ykR),I=f.next();!I.done;I=f.next())I=I.value,I.payload&&(I.payload.csn=r.csn,_.NW(I.payloadName,I.payload,I.options));ykR.length=0}UrP=0};
Wdm=function(r,f){return""+r.getAsJson().veType+r.getAsJson().veCounter+f};
JkR=function(r,f){if(_.N("no_client_ve_attach_unless_shown")){var I=Wdm(r,f);P0w.set(I,!0);LdU(r,f)}};
LdU=function(r,f){r=Wdm(r,f);tZ.has(r)&&(f=tZ.get(r)||[],TM(f[0],f[1],f[2],f[3],!0),tZ.delete(r))};
PF=function(r,f){_.N("log_sequence_info_on_gel_web")&&(r.sequenceGroup=f);return r};
_.mw=function(r,f,I){_.Jn(TM)(void 0,r,f,I)};
_.e_=function(r,f,I){_.Jn(ckE)(void 0,r,f,I)};
_.JZ=function(r,f){_.Jn(e_P)(void 0,r,f,void 0,void 0,void 0)};
_.j_=function(r,f,I){_.Jn(function(){_.Rv(f,function(C){jjU(void 0,r,C,I)})})()};
_.HF=function(r,f,I,C){_.Jn(function(){_.Rv(f,function(Y){HVU(void 0,r,Y,I,C)})})()};
_.im=function(r,f,I){_.Jn(R_l)(void 0,r,f,I,void 0)};
_.Rl=function(r,f,I,C){_.Jn(iVq)(void 0,r,f,I,C,void 0)};
_.vF=function(r,f,I){_.Jn(v6K)(void 0,r,f,I,void 0)};
yR=function(r){return Ke.get(r)};
sjK=function(r,f){Ke.set(r,f)};
OVU=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(r){return(+r^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+r/4).toString(16)})};
ZVm=function(r,f){f=f===void 0?{}:f;if(U_&&U_.sample(r,f)){var I=o6P++,C,Y;r=new Qju(r,f,performance.now(),I,Akl,(Y=(C=s_)==null?void 0:C.traceId)!=null?Y:I);if(s_){var V;(V=s_).children||(V.children=[]);s_.children.push(r)}I=_.E(U_.spanProcessors);for(C=I.next();!C.done;C=I.next())V=Y=void 0,(V=(Y=C.value).onSpanStart)==null||V.call(Y,r);return s_=r}};
G9P=function(r){var f;return(f=U_)==null?void 0:f.sample(r,void 0)};
k9m=function(r){Akl=OVU();U_=r};
Bfq=function(r,f,I){if(!r)return f(I);var C=void 0;try{return f(I)}catch(Y){throw C="error",Y;}finally{r==null||r.close(C)}};
qEU=function(r,f){var I=Object.keys(r);r=new _.nf("[Command Handler] "+f,{filteredCommandNames:I,originalCommand:r});_.Fo(r)};
uVR=function(r,f){qEU(r,f+" was called but not set")};
Dru=function(r){return function(){return new r}};
O_=function(r){return function(){return _.a().resolve(r)}};
rhl=function(r,f){var I=_.F(r,_.J7);if(I&&(I=f[I.signal]))return I();r=_.E(Object.keys(r));for(I=r.next();!I.done;I=r.next())if(I=I.value,f[I]&&(I=f[I]))return I()};
ol=function(r,f,I,C){return{browseEndpoint:{browseId:r},commandMetadata:{webCommandMetadata:{url:f,rootVe:I,webPageType:C===void 0?"WEB_PAGE_TYPE_BROWSE":C}}}};
fiU=function(r,f,I){var C=f=f===void 0?0:f;I=I===void 0?0:I;var Y=I-C;return _.QR(r,"PPSV",void 0,void 0,(Y>600?0:Y<60||I<=0||C/I>.9)?0:f)};
_.QR=function(r,f,I,C,Y){var V="/watch?v="+r;r={videoId:r};f&&(r.playlistId=f,V+="&list="+f);C&&(V+="&pp="+C);Y&&(r.startTimeSeconds=Y,V+="&t="+Y+"s");f={watchEndpoint:r,commandMetadata:{webCommandMetadata:{url:V,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};I&&(f.clickTrackingParams=I);C&&(_.F(f,_.vj).playerParams=C);return f};
IiB=function(r){return{browseEndpoint:{browseId:"VL"+r},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+r,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
CCl=function(r){if(r){var f;if(r){var I=(f=_.F(r.commandMetadata,_.oo))==null?void 0:f.url;f=!(!I||I==="/service_ajax")}else f=!1;if(f)return r;var C;if(r=(C=_.F(r,_.Il))==null?void 0:C.commands)for(C=_.E(r),r=C.next();!r.done;r=C.next())if(r=CCl(r.value))return r}};
_.AZ=function(r){return{runs:[{text:r}]}};
Y5u=function(r,f){return r&&f?{runs:[{text:r,navigationEndpoint:f}]}:void 0};
Zk=function(r){return r?_.AZ(r):void 0};
_.GM=function(r){return r?{simpleText:r}:void 0};
_.kI=function(r){var f=r.type;r=r.payload;f={type:f};r!==void 0&&(f.payload=r);return f};
liu=function(r,f,I){for(var C=Object.assign({},r),Y=_.E(Object.keys(f)),V=Y.next();!V.done;V=Y.next()){V=V.value;var S=r[V],h=f[V];if(h===void 0)delete C[V];else if(S===void 0)C[V]=h;else if(Array.isArray(h)&&Array.isArray(S))C[V]=I?[].concat(_.Na(S),_.Na(h)):h;else if(!Array.isArray(h)&&_.lV(h)&&!Array.isArray(S)&&_.lV(S))C[V]=liu(S,h,I);else if(typeof h===typeof S)C[V]=h;else return f=new _.nf("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:V,originalValue:S,updateValue:h}),
_.Fo(f),r}return C};
S5q=function(r){if(!r.length)return"";try{if(VrK)return VrK.decode(r);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(r)}catch(S){}for(var f=0,I=[],C=r.length;f<C;){for(var Y=0;Y<1024&&f<C;){var V=r[f++];if(V<128)E3w[Y++]=V;else{if(V<224)V=(V&31)<<6|r[f++]&63;else if(V<240)V=(V&15)<<12|(r[f++]&63)<<6|r[f++]&63;else{if(Y+1===1024){--f;break}V=(V&7)<<18|(r[f++]&63)<<12|(r[f++]&63)<<6|r[f++]&63;V-=65536;E3w[Y++]=55296|V>>10;V=56320|V&1023}E3w[Y++]=V}}V=String.fromCharCode.apply(String,
E3w);Y<1024&&(V=V.substring(0,Y));I.push(V)}return I.join("")};
hmK=function(r,f){var I;if((I=xXR)==null?0:I.encodeInto)return f=xXR.encodeInto(r,f),f.read<r.length?r.length*4:f.written;for(var C=I=0;C<r.length;C++){var Y=r.charCodeAt(C);Y<128?f[I++]=Y:(Y<2048?f[I++]=Y>>6|192:((Y&64512)===55296&&C+1<r.length&&(r.charCodeAt(C+1)&64512)===56320?(Y=65536+((Y&1023)<<10)+(r.charCodeAt(++C)&1023),f[I++]=Y>>18|240,f[I++]=Y>>12&63|128):f[I++]=Y>>12|224,f[I++]=Y>>6&63|128),f[I++]=Y&63|128)}return I};
wKE=function(r,f){r=new Uint8Array(r);f&&r.set(f);return r};
_.qo=function(r){r=new b6u(new pKR([_.MT(decodeURIComponent(r))]));if(n3q(r,2)){var f=BF(r);var I=r.pos;var C=r.arrayView;I=I===void 0?0:I;var Y=f===void 0?-1:f;I=I===void 0?0:I;Y=Y===void 0?-1:Y;if(C.totalLength&&Y){Y<0&&(Y=C.totalLength-I);C.focus(I);if(!(I-C.arrayPos+Y<=C.arrays[C.arrayIdx].length)){var V=C.arrayIdx,S=C.arrayPos;C.focus(I+Y-1);S=new Uint8Array(C.arrayPos+C.arrays[C.arrayIdx].length-S);for(var h=0,w=V;w<=C.arrayIdx;w++)S.set(C.arrays[w],h),h+=C.arrays[w].length;C.arrays.splice(V,
C.arrayIdx-V+1,S);C.arrayIdx=0;C.arrayPos=0;C.focus(I)}V=C.arrays[C.arrayIdx];C=new DataView(V.buffer,V.byteOffset+I-C.arrayPos,Y)}else C=new DataView(new ArrayBuffer(0));C=new Uint8Array(C.buffer,C.byteOffset,C.byteLength);r.pos+=f;f=C}else f=void 0;f=f?S5q(f):void 0;r=n3q(r,4)?BF(r):void 0;C=dXl[r];if(typeof C==="undefined")throw r=new _.nf("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:r}),_.Fo(r),r;return{entityTypeFieldNumber:r,entityType:C,entityId:f}};
_.rG=function(r,f,I){I=I===void 0?0:I;var C=new zmR;if(xXR)r=xXR.encode(r);else{var Y=new Uint8Array(Math.ceil(r.length*1.2)),V=hmK(r,Y);Y.length<V&&(Y=new Uint8Array(V),V=hmK(r,Y));Y.length>V&&(Y=Y.subarray(0,V));r=Y}r!==void 0&&(um(C,18),Y=r.length,um(C,Y),Dk(C,Y),C.buf.set(r,C.pos),C.pos+=Y);r=Mrc[f];if(typeof r==="undefined")throw I=new _.nf("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:f}),_.Fo(I),I;r!==void 0&&(um(C,32),um(C,r));um(C,40);um(C,1);f=new Uint8Array(C.buf.buffer,
C.buf.byteOffset,C.pos);return encodeURIComponent(_.Dp(f,I))};
g3K=function(r){r=r.key||r.id;if(!r)throw Error("yf");return r};
XKq=function(r,f){r=r===void 0?{}:r;return ail(r,f)};
N8u=function(r,f,I,C){if(C===void 0)return C=Object.assign({},r[f]||{}),I=(delete C[I],C),C={},Object.assign({},r,(C[f]=I,C));var Y={},V={};return Object.assign({},r,(V[f]=Object.assign({},r[f],(Y[I]=C,Y)),V))};
$Xd=function(r,f,I,C,Y){var V=r[f];if(V==null||!V[I])return r;C=liu(V[I],C,Y==="REPEATED_FIELDS_MERGE_OPTION_APPEND");Y={};V={};return Object.assign({},r,(V[f]=Object.assign({},r[f],(Y[I]=C,Y)),V))};
_.f2=function(r,f,I){return r[f]?r[f][I]||null:null};
PCq=function(){if(FmK)return FmK();var r={};FmK=QD("PersistentEntityStoreDb",{objectStores:(r.EntityStore={addedAtVersion:1},r.EntityAssociationStore={addedAtVersion:2},r),shared:!1,upgrade:function(f,I){I(1)&&eM(m8(f,"EntityStore",{keyPath:"key"}),"entityType","entityType");I(2)&&(f=m8(f,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),eM(f,"byParentEntityKey","parentEntityKey"),eM(f,"byChildEntityKey","childEntityKey"))},
version:3});return FmK()};
trR=function(r){return _.R1(PCq(),r)};
Ir=function(r){return window.Int32Array?new Int32Array(r):Array(r)};
chm=function(r){return _.R1(T8$(),r)};
WmK=function(r){return new C2("WRONG_DATA_TYPE",{encoderVersion:r})};
Lml=function(r){return r instanceof Error?new C2("UNKNOWN_ENCODE_ERROR",{originalMessage:r.message}):new C2("UNKNOWN_ENCODE_ERROR")};
mXB=function(r){return r instanceof Error?new C2("UNKNOWN_DECODE_ERROR",{originalMessage:r.message}):new C2("UNKNOWN_DECODE_ERROR")};
emK=function(r,f){r=r instanceof C2?r:f(r);_.Fo(r);throw r;};
JhR=function(r){r=(new TextEncoder).encode(r).subarray(0,16);var f=new Uint8Array(16);f.set(r);return f};
H6w=function(r){var f=jGu[r];if(f)return f;_.t7(new _.nf("Entity model not found.",{entityType:r}))};
_.Yx=function(){i6$||(i6$=RmE());return i6$};
RmE=function(){var r,f,I;return _.x(function(C){if(C.nextAddress==1)return _.l_(C,2),_.b(C,_.o1(),4);if(C.nextAddress!=2){r=C.yieldResult;if(!r||!_.pf()||typeof _.Yq.BroadcastChannel==="undefined")return C.return();f=new v3m;return C.return(new lX(r,f))}I=_.ha(C);I instanceof Error&&_.Fo(I);return C.return()})};
_.VC=function(r,f){var I;return _.x(function(C){if(C.nextAddress==1){I=r.mutations;if(!I||I.length<=0)return C.return();f&&f.dispatch(_.kI({type:"ENTITY_LOADED",payload:I}));return _.b(C,Kmd(I),2)}I.length=0;_.wO(C)})};
Kmd=function(r){var f;return _.x(function(I){return I.nextAddress==1?_.b(I,_.Yx(),2):(f=I.yieldResult)?_.b(I,_.Er(f,"readwrite",function(C){for(var Y={},V=_.E(r),S=V.next(),h={};!S.done;h={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},S=V.next())h.mutation$jscomp$4=S.value,h.mutation$jscomp$4.entityKey&&yhm(h.mutation$jscomp$4)&&(h.mutationEntityType$jscomp$3=(0,_.X0.getAnyKey)(h.mutation$jscomp$4.payload),S=void 0,h.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(S=function(w){return function(){return _.UXu(C,
w.mutation$jscomp$4.payload[w.mutationEntityType$jscomp$3],w.mutationEntityType$jscomp$3)}}(h)),h.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(S=function(w){return function(){return sGm(C,w.mutation$jscomp$4.entityKey)}}(h)),h.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(S=function(w){return function(){return O6U(C,w.mutation$jscomp$4.entityKey,w.mutation$jscomp$4.payload[w.mutationEntityType$jscomp$3],w.mutationEntityType$jscomp$3)}}(h)),S&&(Y[h.mutation$jscomp$4.entityKey]=
Y[h.mutation$jscomp$4.entityKey]?Y[h.mutation$jscomp$4.entityKey].then(S):S()));
return mM.all(Object.values(Y))}),0):I.return()})};
yhm=function(r){var f;r=(f=r.options)==null?void 0:f.persistenceOption;return r==="ENTITY_PERSISTENCE_OPTION_PERSIST"||r==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
AhE=function(r,f){var I,C;_.x(function(Y){if(Y.nextAddress==1)return _.b(Y,_.Yx(),2);if(Y.nextAddress!=3)return(I=Y.yieldResult)?_.b(Y,_.Er(I,"readonly",function(V){var S={},h=Object.keys(f).map(function(w){var n=f[w]?[].concat(_.Na(f[w])):[];return o3B(V,w,n,S)});
return mM.all(h).then(function(){return S})}),3):Y.return();
C=Y.yieldResult;Object.keys(C).length>0&&r.dispatch(QGu(C));_.wO(Y)})};
o3B=function(r,f,I,C){return So(r,f,I).then(function(Y){C[f]=Z6E(I,Y)})};
Z6E=function(r,f){if(f.length!==r.length)throw Error("Bf");return f.reduce(function(I,C,Y){I[r[Y]]=C;return I},{})};
B8c=function(r){var f=r.filter(function(Y){var V;return(Y==null?void 0:(V=Y.transferEntity)==null?void 0:V.transferState)==="TRANSFER_STATE_COMPLETE"}).length,I=r.filter(function(Y){var V;
return(Y==null?void 0:(V=Y.transferEntity)==null?void 0:V.transferState)==="TRANSFER_STATE_FAILED"}).length,C=r.filter(function(Y){var V;
return(Y==null?void 0:(V=Y.transferEntity)==null?void 0:V.transferState)&&G8$.includes(Y.transferEntity.transferState)});
if(!(f||C!=null&&C.length))return 0;f=_.k8c(C)+f;r=r.length-I;return r===0?0:Math.round(f*100/r)/100};
_.k8c=function(r){var f=[];f=f.concat.apply(f,_.Na(r.filter(function(V){return V.streamEntity}).map(function(V){var S=Object.assign({},V.streamEntity),h,w=(h=V.transferEntity)==null?void 0:h.transferState;
S.streamsProgress=S.streamsProgress||[];S.streamsProgress=S.streamsProgress.map(function(n){var d=Object.assign({},n);d.numBytesDownloaded=w==="TRANSFER_STATE_COMPLETE"?n.numTotalBytes:n.numBytesDownloaded;return d});
return S}).map(function(V){return V.streamsProgress})));
var I=r=0;f=_.E(f);for(var C=f.next();!C.done;C=f.next()){var Y=C.value;C=Number(Y.numBytesDownloaded);Y=Number(Y.numTotalBytes);I+=isNaN(C)?0:C;r+=isNaN(Y)?0:Y}return r===0?0:Math.round(I*100/r)/100};
q5d=function(r){if(!r||!r.expirationTimestamp||!r.action)return!1;var f=(0,_.Ad)()/1E3;return Number(r.expirationTimestamp)>=f};
xx=function(r){return r&&r.expirationTimestamp&&r.action?q5d(r)&&r.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.hQ=function(r){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(r||"TRANSFER_STATE_UNKNOWN")};
uqw=function(r){var f=new zmR;if(r!==void 0){var I=Math.ceil(Math.log2(r.length*4+2)/7);I=I===void 0?2:I;um(f,10);f.submessagePosStack.push(f.pos);f.submessagePosStack.push(I);f.pos+=I;Dk(f,r.length*1.2);I=hmK(r,f.buf.subarray(f.pos));f.pos+I>f.buf.length&&(Dk(f,I),I=hmK(r,f.buf.subarray(f.pos)));f.pos+=I;r=f.submessagePosStack.pop();I=f.submessagePosStack.pop();for(var C=f.pos-I-r;r--;){var Y=r?128:0;f.view.setUint8(I++,C&127|Y);C>>=7}}f=new Uint8Array(f.buf.buffer,f.buf.byteOffset,f.pos);return(new TextDecoder("utf-8")).decode(f)};
_.wG=function(r){var f=0;r=_.E(r);for(var I=r.next(),C={};!I.done;C={transferState$jscomp$3:void 0},I=r.next()){var Y=I.value,V=void 0;I=(V=Y.streamEntity)!=null?V:{};V=void 0;C.transferState$jscomp$3=(V=Y.transferEntity)==null?void 0:V.transferState;V=Y=void 0;((Y=I)==null?0:(V=Y.streamsProgress)==null?0:V.length)&&I.streamsProgress.forEach(function(S){return function(h){h=Number(S.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?h.numTotalBytes:h.numBytesDownloaded);isFinite(h)&&(f+=h)}}(C))}return f};
DXq=function(r){return r.some(function(f){var I;if(!(f==null?0:(I=f.transferEntity)==null?0:I.transferState)){var C;return!(f==null?0:(C=f.policyEntity)==null?0:C.action)||f.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return G8$.includes(f.transferEntity.transferState)})};
rP$=function(r,f){if(!f)return!1;if(_.N("of_pb_en_po_ks"))return!0;var I;r=(I=_.f2(r,"offlineVideoPolicy",_.rG(f,"offlineVideoPolicy")))!=null?I:void 0;return!!r&&xx(r)};
_.I4K=function(r){var f=["TRANSFER_STATE_COMPLETE"];f=f===void 0?f4q:f;return r.filter(function(I){var C,Y;return f.includes((Y=(C=I.transferEntity)==null?void 0:C.transferState)!=null?Y:"TRANSFER_STATE_UNKNOWN")})};
CNU=function(r,f){if(f){var I,C=(I=_.f2(r,"playbackData",_.rG(f,"playbackData")))!=null?I:null,Y;I=(Y=_.f2(r,"transfer",_.rG(f,"transfer")))!=null?Y:null;var V;Y=(V=_.f2(r,"offlineVideoStreams",_.rG(f,"offlineVideoStreams")))!=null?V:null;var S;r=(S=_.f2(r,"offlineVideoPolicy",_.rG(f,"offlineVideoPolicy")))!=null?S:null;if(C||I||Y||r)return{playbackDataEntity:C,transferEntity:I,streamEntity:Y,policyEntity:r}}};
_.bX=function(r){var f=r.playbackData;if(!f)return[];var I=[];f=_.E(Object.keys(f));for(var C=f.next();!C.done;C=f.next()){var Y=C.value;if(!YKE(r,_.qo(Y).entityId)&&(C=CNU(r,_.qo(Y).entityId))){var V=void 0,S=void 0;Y=(S=Number((V=_.f2(r,"playbackData",Y))==null?void 0:V.streamDownloadTimestampSeconds))!=null?S:(0,_.Ad)();I.push({entity:C,streamDownloadTimestamp:Y})}}return I.sort(function(h,w){var n=h.streamDownloadTimestamp,d=w.streamDownloadTimestamp;return d===n?h.entity.streamEntity&&!w.entity.streamEntity?
1:-1:d-n}).map(function(h){return h.entity})};
l4E=function(r){return _.I4K(_.bX(r))};
_.VZm=function(r){return _.bX(r).filter(function(f){var I;if(((I=f.policyEntity)==null?0:I.action)&&f.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var C;if((C=f.transferEntity)==null?0:C.transferState){var Y;return G8$.includes((Y=f.transferEntity)==null?void 0:Y.transferState)}return!0})};
YKE=function(r,f){var I;return((I=_.f2(r,"downloadStatusEntity",_.rG(f,"downloadStatusEntity")))==null?void 0:I.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
E7R=function(r){var f;if(r==null?0:(f=r.playbackDataEntity)==null?0:f.key)return _.qo(r.playbackDataEntity.key).entityId;var I;if(r==null?0:(I=r.transferEntity)==null?0:I.key)return _.qo(r.transferEntity.key).entityId;var C;if(r==null?0:(C=r.streamEntity)==null?0:C.key)return _.qo(r.streamEntity.key).entityId;var Y;if(r==null?0:(Y=r.policyEntity)==null?0:Y.key)return _.qo(r.policyEntity.key).entityId};
xs$=function(r){var f=new Set,I;r=(I=r.mainDownloadsListEntity)==null?void 0:I[SKR];var C;if(!(r==null?0:(C=r.downloads)==null?0:C.length))return f;var Y;r==null||(Y=r.downloads)==null||Y.forEach(function(V){(V==null?0:V.videoItem)&&f.add(V.videoItem)});
return f};
p2=function(r,f){if(f){var I=_.f2(r,"mainVideoEntity",_.rG(f,"mainVideoEntity")),C=_.f2(r,"downloadStatusEntity",_.rG(f,"downloadStatusEntity")),Y=_.f2(r,"ytMainChannelEntity",_.rG(f,"ytMainChannelEntity")),V={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};r=CNU(r,f);C=(C==null?void 0:C.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.N("woffle_render_failed_download_state_ks")&&(C==null?void 0:C.downloadState)==="DOWNLOAD_STATE_FAILED";!r&&C&&(r=V);if(r&&I&&
Y)return Object.assign({},{videoEntity:I,channelEntity:Y},r)}};
wqU=function(r,f){return hbE(r,f)==="TRANSFER_STATE_COMPLETE"&&rP$(r,f)};
O7d=function(r,f){if(!f)return!1;var I;r=(I=_.f2(r,"playbackData",_.rG(f,"playbackData")))!=null?I:void 0;return!!r&&!!r.playerResponseJson};
hbE=function(r,f){if(!f)return"TRANSFER_STATE_UNKNOWN";var I=_.f2(r,"transfer",_.rG(f,"transfer"));if(I){var C;return(C=I.transferState)!=null?C:"TRANSFER_STATE_UNKNOWN"}I=_.f2(r,"offlineOrchestrationActionWrapperEntity",_.rG(f,"offlineOrchestrationActionWrapperEntity"));r=_.f2(r,"mainVideoEntity",_.rG(f,"mainVideoEntity"));return I||r?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
o7$=function(r,f){if(!f)return"TRANSFER_STATE_UNKNOWN";if(r=_.f2(r,"transfer",_.rG(f,"transfer"))){var I;return(I=r.transferState)!=null?I:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
QEP=function(r,f){return f&&(r=_.f2(r,"videoPlaybackPositionEntity",_.rG(f,"videoPlaybackPositionEntity")),r==null?0:r.lastPlaybackPositionSeconds)?Number(r.lastPlaybackPositionSeconds):0};
Z7K=function(r,f){return APq(r).some(function(I){var C;return(I==null?void 0:(C=I.mainPlaylistEntity)==null?void 0:C.playlistId)===f})};
kdK=function(r,f,I){var C=Gdu(r,f);if(!C.length)return[];f=[];C=_.E(C);for(var Y=C.next();!Y.done;Y=C.next()){Y=Y.value;var V=p2(r,Y);I&&hbE(r,Y)!=="TRANSFER_STATE_COMPLETE"||V&&f.push(V)}return f};
Gdu=function(r,f){if(!f)return[];var I=_.rG(f,"mainPlaylistEntity"),C;f=(C=r.mainPlaylistEntity)==null?void 0:C[I];C=[];if(f==null||!f.videos)return C;f=_.E(f.videos);for(I=f.next();!I.done;I=f.next()){I=I.value;var Y=void 0,V=void 0,S=void 0,h=(Y=r)==null?void 0:(V=Y.mainPlaylistVideoEntity)==null?void 0:(S=V[I])==null?void 0:S.video;h&&(I=_.qo(h).entityId)&&C.push(I)}return C};
BxK=function(r,f){if(f){var I=_.f2(r,"mainPlaylistEntity",_.rG(f,"mainPlaylistEntity")),C=_.f2(r,"mainPlaylistDownloadStateEntity",_.rG(f,"mainPlaylistDownloadStateEntity"));r=_.f2(r,"ytMainChannelEntity",_.rG(f,"ytMainChannelEntity"));if(C&&I)return Object.assign({},{mainPlaylistEntity:I,mainPlaylistDownloadStateEntity:C},!!r&&{channelEntity:r})}};
APq=function(r){return qKP(r).sort(function(f,I){return I.addedTimestampMillis-f.addedTimestampMillis}).map(function(f){return f.downloadedPlaylistEntities})};
qKP=function(r){var f=r.mainPlaylistDownloadStateEntity,I=[];if(!f)return I;for(var C=_.E(Object.keys(f)),Y=C.next();!Y.done;Y=C.next()){var V=Y.value;Y=BxK(r,_.qo(V).entityId);var S=void 0;V=Number((S=f[V])==null?void 0:S.addedTimestampMillis);S=isNaN(V)?(0,_.Ad)():V;Y!==void 0&&I.push({downloadedPlaylistEntities:Y,addedTimestampMillis:S})}return I};
uSw=function(r){var f,I=(f=r.mainPlaylistVideoEntity)!=null?f:{};return new Set(APq(r).reduce(function(C,Y){C=C===void 0?[]:C;var V,S;Y==null||(V=Y.mainPlaylistEntity)==null||(S=V.videos)==null||S.forEach(function(h){var w;(h=(w=I[h])==null?void 0:w.video)&&C.push(h)});
return C},[]))};
DsE=function(r){return"downloadedMusicPlaylistEntities"in r};
rLP=function(r){return"mainPlaylistEntity"in r&&"mainPlaylistDownloadStateEntity"in r};
f0l=function(r){return"videoEntity"in r&&"channelEntity"in r};
I0K=function(r){var f=r.musicPlaylistDownloadMetadataEntity,I=[];if(!f)return I;for(var C=_.E(Object.keys(f)),Y=C.next();!Y.done;Y=C.next()){Y=Y.value;a:{var V=r,S=_.qo(Y).entityId;if(S){var h=_.f2(V,"musicPlaylist",_.rG(S,"musicPlaylist"));V=_.f2(V,"musicPlaylistDownloadMetadataEntity",_.rG(S,"musicPlaylistDownloadMetadataEntity"));if(h&&V){h={musicPlaylistEntity:h,musicPlaylistDownloadStateEntity:V};break a}}h=void 0}V=void 0;Y=Number((V=f[Y])==null?void 0:V.addedTimestampMillis);Y=isNaN(Y)?(0,_.Ad)():
Y;h!==void 0&&I.push({downloadedMusicPlaylistEntities:h,addedTimestampMillis:Y})}return I};
CRm=function(r){var f=new Set;r=_.E(r);for(var I=r.next();!I.done;I=r.next())if(I=I.value,"musicPlaylistEntity"in I&&"musicPlaylistDownloadStateEntity"in I){I=_.E(I.musicPlaylistEntity.tracks);for(var C=I.next();!C.done;C=I.next())f.add(C.value)}return f};
Ywc=function(r,f){if(f){var I=_.f2(r,"musicTrack",_.rG(f,"musicTrack")),C=_.f2(r,"musicArtist",_.rG(f,"musicArtist"))||{};if((r=CNU(r,f))&&I&&C)return Object.assign({},{musicTrackEntity:I,musicArtistEntity:C},r)}};
l0$=function(r){var f=r.musicTrackDownloadMetadataEntity,I=[];if(!f)return[];f=_.E(Object.keys(f));for(var C=f.next();!C.done;C=f.next()){var Y=C.value;C=Ywc(r,_.qo(Y).entityId);var V=void 0;Y=Number((V=_.f2(r,"musicTrackDownloadMetadataEntity",Y))==null?void 0:V.addedTimestampMillis);V=isNaN(Y)?(0,_.Ad)():Y;C!==void 0&&I.push({downloadedMusicEntities:C,addedTimestampMillis:V})}return I};
Sw$=function(r,f){if(!f)return[];if(Object.values(V8K).includes(f))return E$l(r,f);f=_.rG(f,"musicPlaylist");var I;r=(I=r.musicPlaylist)==null?void 0:I[f];I=[];if(r==null||!r.tracks)return I;r=_.E(r.tracks);for(f=r.next();!f.done;f=r.next())(f=_.qo(f.value).entityId)&&I.push(f);return I};
E$l=function(r,f){var I=new Set,C=I0K(r).map(function(V){return V.downloadedMusicPlaylistEntities});
C=CRm(C);C=_.E(C);for(var Y=C.next();!Y.done;Y=C.next())(Y=_.qo(Y.value).entityId)&&I.add(Y);return xhB(r).downloadedMusicEntities.filter(function(V){var S;if((S=V.musicTrackEntity)!=null&&S.videoId){V=V.musicTrackEntity;if(S=f==="PPOM"?!0:!I.has(V.videoId))b:switch(V=V.musicVideoType,f){case "PPSE":S=V==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:S=V!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}V=S}else V=!1;return V}).map(function(V){var S;
return(S=V.musicTrackEntity)==null?void 0:S.videoId})};
xhB=function(r){var f=l0$(r).sort(function(I,C){return C.addedTimestampMillis-I.addedTimestampMillis}).map(function(I){return"downloadedMusicEntities"in I?I.downloadedMusicEntities:DsE(I)?I.downloadedMusicPlaylistEntities:{}});
r=I0K(r).sort(function(I,C){return C.addedTimestampMillis-I.addedTimestampMillis}).map(function(I){return"downloadedMusicEntities"in I?I.downloadedMusicEntities:DsE(I)?I.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:f,downloadedMusicPlaylistEntities:r}};
w_l=function(r,f){f=_.Lz("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?Sw$(r,f):Gdu(r,f);if(!f.length)return"TRANSFER_STATE_UNKNOWN";f=f.map(function(I){return o7$(r,I)});
return hq$(f)};
hq$=function(r){var f=new Set(r);if(f.has("TRANSFER_STATE_FAILED")&&f.size===1)return"TRANSFER_STATE_FAILED";f.delete("TRANSFER_STATE_FAILED");if(f.has("TRANSFER_STATE_UNKNOWN")&&f.size===1)return"TRANSFER_STATE_PRE_TRANSFER";f.delete("TRANSFER_STATE_UNKNOWN");if(f.has("TRANSFER_STATE_PRE_TRANSFER")&&f.size===1||f.size===0)return"TRANSFER_STATE_PRE_TRANSFER";r=f.has("TRANSFER_STATE_TRANSFERRING");f=f.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return r||f?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
n2=function(r){var f=r.mainVideoDownloadStateEntity,I=[];if(!f)return[];f=_.E(Object.keys(f));for(var C=f.next();!C.done;C=f.next()){var Y=C.value;if(!YKE(r,_.qo(Y).entityId)){C=p2(r,_.qo(Y).entityId);var V=void 0,S=void 0;Y=(S=Number((V=_.f2(r,"mainVideoDownloadStateEntity",Y))==null?void 0:V.addedTimestampMillis))!=null?S:(0,_.Ad)();C!==void 0&&I.push({downloadedVideoEntities:C,addedTimestampMillis:Y})}}return I};
blu=function(r){return n2(r).sort(function(f,I){return I.addedTimestampMillis-f.addedTimestampMillis}).map(function(f){return f.downloadedVideoEntities})};
_.n$l=function(r){var f=uSw(r),I=_.dG(r),C=xs$(r),Y=n2(r).filter(function(S){var h,w;if((S==null?void 0:(h=S.downloadedVideoEntities)==null?void 0:(w=h.transferEntity)==null?void 0:w.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var n,d;S=S==null?void 0:(n=S.downloadedVideoEntities)==null?void 0:(d=n.videoEntity)==null?void 0:d.key;return _.N("kevlar_use_library_entity")?S&&(C.has(S)||I[S]):S&&!f.has(S)}),V=qKP(r).filter(function(S){return w_l(r,S.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.Na(Y),_.Na(V)).sort(function(S,h){return h.addedTimestampMillis-S.addedTimestampMillis}).map(function(S){return p_R(S)})};
dhu=function(r,f){if(f&&rP$(r,f)){var I,C,Y=(C=(I=_.f2(r,"playbackData",_.rG(f,"playbackData")))!=null?I:void 0)==null?void 0:C.playerResponseJson;if(Y){try{var V=JSON.parse(Y);var S=_.f2(r,"transfer",_.rG(f,"transfer")),h=QEP(r,f);h&&(V=Object.assign({},V,{playerConfig:Object.assign({},V.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+h*1E3}}})}));V.cotn=S==null?void 0:S.cotn}catch(w){}return V}}};
_.g$K=function(r){var f,I,C;r=(C=(I=((f=r.downloadsPageViewConfigurationEntity)!=null?f:{})[zqP])==null?void 0:I.smartDownloadsOptInBannerVisibility)!=null?C:{};var Y;return(Y=_.F(r,M8P))!=null?Y:{}};
_.dG=function(r){var f,I,C;r=(C=(I=((f=r.mainDownloadsListEntity)!=null?f:{})[_.a0P])==null?void 0:I.downloads)!=null?C:[];f={};I=_.E(r);for(C=I.next();!C.done;C=I.next())r=void 0,f[(r=C.value.videoItem)!=null?r:""]=!0;return f};
X_K=function(r){var f=_.dG(r);if(Object.keys(f).length===0)return!1;var I=r.mainVideoEntity;if(!I)return!0;I=_.E(Object.keys(I));for(var C=I.next();!C.done;C=I.next()){C=C.value;var Y=_.qo(C).entityId;if(f[C]&&!YKE(r,Y))return!1}return!0};
_.z3=function(r){var f=_.dG(r);return n2(r).sort(function(I,C){return I.addedTimestampMillis-C.addedTimestampMillis}).map(function(I){return I.downloadedVideoEntities}).filter(function(I){var C;
return(I=I==null?void 0:(C=I.videoEntity)==null?void 0:C.key)&&!!f[I]})};
p_R=function(r){return"downloadedVideoEntities"in r?r.downloadedVideoEntities:"downloadedPlaylistEntities"in r?r.downloadedPlaylistEntities:{}};
NaB=function(r){var f=_.dG(r),I=uSw(r),C=n2(r).filter(function(Y){var V,S;return(Y=Y==null?void 0:(V=Y.downloadedVideoEntities)==null?void 0:(S=V.videoEntity)==null?void 0:S.key)&&!f[Y]&&!I.has(Y)});
r=qKP(r);return[].concat(_.Na(C),_.Na(r)).sort(function(Y,V){return V.addedTimestampMillis-Y.addedTimestampMillis}).map(function(Y){return p_R(Y)})};
_.Mj=function(r){if(!_.N("kevlar_use_library_entity"))return NaB(r);var f=n2(r).filter(function(C){var Y,V;if(Y=C=C==null?void 0:(Y=C.downloadedVideoEntities)==null?void 0:(V=Y.videoEntity)==null?void 0:V.key){var S,h,w;Y=((h=(S=r.mainDownloadsListEntity)==null?void 0:S[SKR])==null?0:(w=h.downloads)==null?0:w.length)?xs$(r).has(C):!1}return Y}),I=qKP(r);
return[].concat(_.Na(f),_.Na(I)).sort(function(C,Y){return Y.addedTimestampMillis-C.addedTimestampMillis}).map(function(C){return p_R(C)})};
$h$=function(r){var f=_.dG(r),I=uSw(r);return blu(r).filter(function(C){var Y;return(C=C==null?void 0:(Y=C.videoEntity)==null?void 0:Y.key)&&!f[C]&&!I.has(C)})};
FRc=function(r){if(!_.N("kevlar_use_library_entity"))return $h$(r);var f=_.dG(r),I=xs$(r);return blu(r).filter(function(C){var Y;return(C=C==null?void 0:(Y=C.videoEntity)==null?void 0:Y.key)&&!f[C]&&I.has(C)})};
PRB=function(r,f){f=_.rG(f,"settingEntity");var I,C,Y;return!!((Y=(C=((I=r.settingEntity)!=null?I:{})[f])==null?void 0:C.settingOptionValue)!=null?Y:{}).boolValue};
_.gG=function(r){var f=_.z3(r);if(DXq(f))return 0;var I=[];f=_.E(f);for(var C=f.next();!C.done;C=f.next()){C=C.value;var Y=void 0,V=void 0;if((Y=C)==null?0:(V=Y.videoEntity)==null?0:V.key)Y=_.qo(C.videoEntity.key).entityId,C=r,Y=_.rG(Y,"mainVideoDownloadStateEntity"),C=_.f2(C,"mainVideoDownloadStateEntity",Y),(C=Number(C==null?void 0:C.addedTimestampMillis))&&I.push(C)}return Math.max.apply(Math,_.Na(I))};
_.ar=function(r){return r.ui.richGridMiniMode};
_.XN=function(r){return r.ui.richGridItemsPerRow};
_.t8$=function(r){return r.ui.richGridSlimItemsPerRow};
_.TaU=function(r){return r.ui.guideIsExpanded};
_.Nj=function(r){return r.ui.miniplayerIsActive};
_.cLc=function(r){return r.ui.singleOptionSurveyIsActive};
_.$x=function(r){return r.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.WRU=function(r){return r.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.LRq=function(r){return r.ui.inlinePreviewIsActive};
_.mhP=function(r){return r.ui.inlinePreviewIsEnabled};
_.eqd=function(r){return r.ui.miniplayerPlaybackState};
JLP=function(r){return r.ui.isOnline};
_.jxK=function(r){return r.ui.frostedGlassMode};
_.FN=function(r,f){return hbE(r.entities,f)};
_.P1=function(r,f){return w_l(r.entities,f)};
HlR=function(r,f){var I;if(f){var C;r=(C=_.f2(r.entities,"offlineVideoPolicy",_.rG(f,"offlineVideoPolicy")))==null?void 0:C.action}else r=void 0;return(I=r)!=null?I:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
ilm=function(r,f){var I;f?(r=_.f2(r.entities,"offlineVideoPolicy",_.rG(f,"offlineVideoPolicy")),r=Number(r==null?void 0:r.expirationTimestamp)):r=void 0;return(I=r)!=null?I:0};
_.Rqq=function(r){return _.bX(r.entities).length};
v$$=function(r,f){return p2(r.entities,f)};
KRR=function(r,f){return BxK(r.entities,f)};
tQ=function(r,f){return(r=p2(r.entities,f))?_.k8c([r]):0};
_.yLd=function(r,f){var I=_.Lz("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(I){var C=r.entities;var Y=Sw$(C,f);if(Y.length){var V=[];Y=_.E(Y);for(var S=Y.next();!S.done;S=Y.next())(S=Ywc(C,S.value))&&V.push(S);C=V}else C=[]}else C=kdK(r.entities,f);var h;if(I){var w=r.entities;f?(f=_.rG(f,"musicPlaylist"),w=(h=w.musicPlaylist)==null?void 0:h[f],h=w!=null&&w.tracks?w.tracks.length:0):h=0}else h=r.entities,f?(f=_.rG(f,"mainPlaylistEntity"),h=(w=h.mainPlaylistEntity)==null?void 0:w[f],h=h!=null&&h.videos?
h.videos.length:0):h=0;return C.length!==h?0:C?B8c(C):0};
_.UhE=function(r){return r.download.isLeaderTab};
_.sxR=function(r,f,I){if(!f&&I){var C=r.entities;if(I){var Y=uqw(I),V,S;f=(S=(V=_.f2(C,"offlineabilityEntity",_.rG(Y,"offlineabilityEntity")))==null?void 0:V.addToOfflineButtonState)!=null?S:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else f="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else V=r.entities,f?(S=uqw(f),f=(Y=(C=_.f2(V,"offlineabilityEntity",_.rG(S,"offlineabilityEntity")))==null?void 0:C.addToOfflineButtonState)!=null?Y:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):f="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return f};
Oll=function(r,f){r=r.entities;if(f){f=uqw(f);var I,C;f=(C=(I=_.f2(r,"offlineabilityEntity",_.rG(f,"offlineabilityEntity")))==null?void 0:I.addToOfflineButtonState)!=null?C:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else f="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return f};
_.o$K=function(r){var f=r.entities;r=JLP(r);var I=PRB(f,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.N("kevlar_modern_downloads_page")&&I)var C=!1;else{var Y,V;f=(V=(Y=((C=f.downloadsPageViewConfigurationEntity)!=null?C:{})[zqP])==null?void 0:Y.smartDownloadsOptInBannerVisibility)!=null?V:{};C=r?!!f.visibleWithConnection:!!f.visibleWithoutConnection}return C};
_.Qxl=function(r){return PRB(r.entities,"SMART_DOWNLOADS_ENABLED")};
_.ALR=function(r){return X_K(r.entities)};
Zlm=function(r){return _.z3(r.entities).every(function(f){var I;return(f==null?void 0:(I=f.transferEntity)==null?void 0:I.transferState)&&!G8$.includes(f.transferEntity.transferState)})};
_.GKw=function(r,f){return YKE(r.entities,f)};
kKU=function(r,f){if(f){var I,C;r=(C=(I=_.f2(r.entities,"downloadStatusEntity",_.rG(f,"downloadStatusEntity")))==null?void 0:I.downloadState)!=null?C:"DOWNLOAD_STATE_UNKNOWN"}else r="DOWNLOAD_STATE_UNKNOWN";return r};
T3=function(r,f){return QEP(r.entities,f)};
DhU=function(r){r=_.Bac(r);var f=r.hours===void 0?0:r.hours,I=r.minutes===void 0?0:r.minutes,C=r.seconds===void 0?0:r.seconds,Y=f>0;r=[];Y&&(f=_.qww(f),r.push(f));f=Y;f=f===void 0?!1:f;I=(["af","be","lt"].includes(_.c1)||f)&&I<10?uDU().format(I):(new Intl.NumberFormat("en-u-nu-latn")).format(I);r.push(I);I=uDU().format(C);r.push(I);I=":";"da fi id si sr sr-Latn".split(" ").includes(_.c1)&&(I=".");return r.join(I)};
_.Bac=function(r){var f=r.hours||0,I=r.minutes||0,C=r.seconds||0;f=C+I*60+f*3600+(r.days||0)*86400+(r.weeks||0)*604800+(r.months||0)*2629800+(r.years||0)*31557600;if(f<=0)return{hours:0,minutes:0,seconds:0};r=f;f=Math.floor(r/3600);r%=3600;I=Math.floor(r/60);C=Math.floor(r%60);return{hours:f,minutes:I,seconds:C}};
_.qww=function(r){r=(new Intl.NumberFormat("en-u-nu-latn")).format(r);var f=["fr"],I="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(_.c1)?r.replace(",","\u00a0"):f.includes(_.c1)?r.replace(",","\u202f"):I.includes(_.c1)?r.replace(",","."):r};
uDU=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
r9K=function(r){try{return(new _.W1(5)).format(r)}catch(f){}};
L2=function(r){return{thumbnailOverlayDownloadingRenderer:{state:r}}};
fvm=function(r){if(r=r9K(r))return{thumbnailOverlaySidePanelRenderer:{text:_.AZ(r),icon:{iconType:"PLAYLISTS"}}}};
Iv$=function(){var r=_.VR("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.AZ(r),icon:{iconType:"PLAY_ALL"}}}};
CH$=function(r){r=_.mQ(r,2);return _.c1!=="ru"&&_.c1!=="es_419"&&_.c1!=="es-419"&&_.c1!=="es"&&_.c1!=="es_US"&&_.c1!=="es-US"&&_.c1!=="fr"&&_.c1!=="pl"&&_.c1!=="it"&&_.c1!=="nl"&&_.c1!=="uk"&&_.c1!=="fr_CA"&&_.c1!=="fr-CA"||r===""?r:r[0].toLocaleUpperCase()+r.substring(1)};
lvP=function(r){return function(f){var I=r(),C=_.mQ(f,I.dateFormat);f=_.mQ(f,I.timeFormat);var Y=YGq.DATETIMEFORMATS[I.joinerStyle];Y=Y.replace(/'(?!')/g,"");Y=Y.replace("{0}",f);Y=Y.replace("{1}",C);return I.capitalize(Y)}};
VNu=function(r){return r?typeof r.seconds==="string"&&(r.nanos===void 0||typeof r.nanos==="number"):!1};
EPR=function(r){return new Date(Number(r.seconds)*1E3+(r.nanos||0)*1E-6)};
_.mQ=function(r,f){if(typeof r.getTime==="function")r={date:r};else if(VNu(r))r={date:EPR(r)};else if(typeof VNu(r.timestamp)&&typeof r.i18nInternalSecondsEastOfUtc==="number")r={date:EPR(r.timestamp),timeZone:eo(-r.i18nInternalSecondsEastOfUtc/60)};else throw Error("Cf`"+JSON.stringify(r));var I=r;r=I.date;I=I.timeZone;f=SGd(f).format(r,I);_.c1==="zh-TW"&&(r=I?Number(SGd("H").format(r,I)):r.getHours(),f=r<5?f.replace("\u4e0a\u5348","\u51cc\u6668"):r<8?f.replace("\u4e0a\u5348","\u65e9\u4e0a"):r<12?
f.replace("\u4e0a\u5348","\u4e0a\u5348"):r<13?f.replace("\u4e0b\u5348","\u4e2d\u5348"):r<19?f.replace("\u4e0b\u5348","\u4e0b\u5348"):f.replace("\u4e0b\u5348","\u665a\u4e0a"));return f};
SGd=function(r){if(xAm.has(r))return xAm.get(r);var f=h6U(r);f=wPd(f);b3l!==!0&&(b3l=!0);pPE=!0;pPE=!1;f=new JQ(f,YGq);xAm.set(r,f);return f};
h6U=function(r){return(new JQ(r,YGq)).patternParts_.map(function(f){return f.type===0?"'"+f.text+"'":f.text}).join("")};
wPd=function(r){return _.c1==="en"||_.c1==="es_US"||_.c1==="es-US"?r:r.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(f,I,C){return"H".repeat(I.length)+C})};
Njw=function(r,f){nPK||(_.H1=_.dA$,nPK=new z6P);var I=nPK;a:if(r=MNc(r),f=MNc(f||new Date),r>f)I=r.getTime()-f.getTime()>6048E5?_.mQ(r,1):gPU(r);else{for(var C=0;avu(r,12*(C+1))<f;)++C;if(C>0)I=I.format(-C,0);else{for(C=0;avu(r,C+1)<f;)++C;if(C>0)I=I.format(-C,2);else{r=f.getTime()-r.getTime();f=_.E(XPm);for(C=f.next();!C.done;C=f.next()){C=C.value;var Y=C.unit,V=Math.floor(r/C.unitDuration);if(V>=(C.threshold===void 0?1:C.threshold)){I=I.format(-V,Y);break a}}I=I.format(-0,7)}}}return I};
MNc=function(r){if(typeof r.getTime==="function")return r;if(VNu(r))return EPR(r);throw Error("Df`"+JSON.stringify(r));};
avu=function(r,f){for(var I=0,C;;++I)if(C=new Date(r.getFullYear(),r.getMonth()+f,r.getDate()-I,r.getHours(),r.getMinutes(),r.getSeconds()),C.getMonth()===(r.getMonth()+f)%12)return C};
_.iX=function(r){return{runs:[{text:r}]}};
_.Rr=function(r){if(r&&r.simpleText)return r.simpleText;var f="";if(r&&r.runs)for(var I=0;I<r.runs.length;I++)r.runs[I].text&&(f+=r.runs[I].text);return f};
FZd=function(r,f,I,C){return r.videoEntity&&!r.policyEntity&&I!=="DOWNLOAD_STATE_FAILED"?[L2("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:xx(r.policyEntity)&&f!=="TRANSFER_STATE_FAILED"&&f!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?f==="TRANSFER_STATE_PAUSED_BY_USER"?[L2("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.hQ(f)?[L2("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:r.videoEntity.lengthSeconds?$Aw(r.videoEntity.lengthSeconds,C):[]:
[L2("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
$Aw=function(r,f){var I=[{thumbnailOverlayTimeStatusRenderer:{text:_.AZ(DhU({seconds:r})),style:"DEFAULT"}}];f&&(r=f<=0||r<=0?0:f>=r?100:Math.ceil(f*100/r),r>0&&I.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:r}}));return I};
PHE=function(r,f,I,C,Y){if(f==="TRANSFER_STATE_UNKNOWN"||!r)return{};if(_.hQ(f)||f==="TRANSFER_STATE_PRE_TRANSFER")var V=[L2("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var S,h;if(f==="TRANSFER_STATE_COMPLETE"&&((S=r.mainPlaylistEntity)==null?0:(h=S.videos)==null?0:h.length)){if(_.N("web_modern_collections_v2")){var w;var n=(V=r.mainPlaylistEntity)==null?void 0:(w=V.videos)==null?void 0:w.length;V=(V=r9K(n))?{thumbnailOverlayBottomPanelRenderer:{text:_.AZ(V),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var d;V=fvm((n=r.mainPlaylistEntity)==null?void 0:(d=n.videos)==null?void 0:d.length)}var z;V=[Iv$(),Object.assign({},(z=V)!=null?z:{})]}else V=[]}z=V;a:if(f==="TRANSFER_STATE_PRE_TRANSFER")I=Zk(_.VR("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(f==="TRANSFER_STATE_TRANSFER_IN_QUEUE")I=Zk(_.VR("WAITING_TO_DOWNLOAD"));else if(_.hQ(f))I=Math.floor(I*100).toString(),I=Zk(_.VR("DOWNLOADING_PERCENT",{percent:I},"Downloading... "+I+"%"));else{if(C&&(_.N("playlist_is_offline_selector_killswitch")&&
(Y=_.a().resolve(_.ix).isNetworkAvailable()),Y)){I=Y5u(_.VR("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),IiB(C));break a}I=void 0}f=f==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.VR("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},z.length?{thumbnailOverlays:z}:{},I?{viewPlaylistText:I}:{viewPlaylistText:_.iX("")},f.length?{badges:f}:{})};
tNE=function(r,f,I,C,Y,V){if(f==="TRANSFER_STATE_UNKNOWN"||!r)return{};if(C==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var S=FZd(r,f,C);if(r.videoEntity&&!r.policyEntity&&C!=="DOWNLOAD_STATE_FAILED"){var h=_.VR("WAITING_TO_DOWNLOAD");if(h)return{shortViewCountText:_.iX(h),publishedTimeText:void 0,thumbnailOverlays:S}}if(!xx(r.policyEntity)){V=r.policyEntity&&!q5d(r.policyEntity)?_.VR("DOWNLOAD_EXPIRED",{},"Download expired"):
_.VR("TRANSFER_FAILED",{},"Download failed");var w;if((w=r.policyEntity)==null?0:w.shortMessageForDisabledAction)V=r.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:Zk(V),publishedTimeText:void 0,thumbnailOverlays:S}}if(f==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.iX(_.VR("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:S};if(f==="TRANSFER_STATE_FAILED"||f==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.iX(_.VR("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:S};if(f==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(w=_.VR("WAITING_TO_DOWNLOAD"),C==="DOWNLOAD_STATE_PAUSED"&&(w=_.VR("DOWNLOAD_PAUSED",{},"Download paused")),w))return{shortViewCountText:_.iX(w),publishedTimeText:void 0,thumbnailOverlays:S};if(_.hQ(f))return r=Math.floor(I*100).toString(),{shortViewCountText:_.iX(_.VR("DOWNLOADING_PERCENT",{percent:r},"Downloading... "+r+"%")),publishedTimeText:void 0,thumbnailOverlays:S};f=void 0;r.videoEntity.publishedTimestampMillis&&
(f=new Date,Y&&(f=new Date(Y)),f=Zk(Njw(new Date(Number(r.videoEntity.publishedTimestampMillis)),f)));Y=[];_.N("kevlar_woffle_badge_killswitch")||(Y=[{metadataBadgeRenderer:{label:_.VR("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var n;r=Zk((n=r.videoEntity.localizedStrings)==null?void 0:n.viewCount);return Object.assign({},V?{shortViewCountText:void 0}:{shortViewCountText:r},V?{}:{publishedTimeText:f},{badges:Y,thumbnailOverlays:S})};
c9l=function(r,f){r=r===void 0?TjR:r;switch(f.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:f.payload.playlistId,inviteLinkURL:f.payload.inviteLinkUrl};default:return r}};
LZB=function(r,f){r=r===void 0?WZl:r;switch(f.type){case "SET_CURRENT_FORM_ID":return f=f.payload.formId,r.currentFormId===f?r:{currentFormId:f,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var I=f.payload;f=I.groupId;I=I.command;if(r.currentFormId){var C=Object.assign({},r.commandsMap);C[f]=I;r=Object.assign({},r,{commandsMap:C})}return r;case "RESET_COMMAND_MAP":return Object.assign({},r,{commandsMap:{}});default:return r}};
e6c=function(r,f){r=r===void 0?mAK:r;switch(f.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},r,{guideIsExpanded:f.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},r,{scrollAtTop:f.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},r,{guideIsVisibleButNotPersistent:f.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},r,{miniplayerIsActive:f.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},r,{singleOptionSurveyIsActive:f.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},r,{slimlineSurveyRatingSelectedIndex:f.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},r,{richGridMiniMode:f.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},r,{richGridItemsPerRow:f.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},r,{richGridSlimItemsPerRow:f.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},r,{richGridContainerWidth:f.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},r,{richGridStyle:f.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},r,{currentPageType:f.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},r,{inlinePreviewIsActive:f.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},r,{inlinePreviewIsEnabled:f.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},r,{darkModeIsEnabled:f.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
r,{miniplayerPlaybackState:f.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},r,{tabGesturesIsActive:f.payload});case "SET_ONLINE_STATUS":return Object.assign({},r,{isOnline:f.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},r,{chipBarIsSticky:f.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},r,{frostedGlassMode:f.payload});default:return r}};
jad=function(r,f){r=r===void 0?J9B:r;switch(f.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},r,{transcription:f.payload});case "SET_OVERLAY_STATE":return Object.assign({},r,{overlay:f.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return r}};
oPE=function(){return Vw(Object.assign({},{continuation:H3R,entities:XKq,download:i3u,reportChannelAbuse:R6U,share:vPE,talkToRecs:KZP,ui:e6c,voiceSearch:jad,watch:y9w,ypc:UA$,shorts:sam,radioButtonGroup:LZB,collabInviteLink:c9l},O3l))};
Z3m=function(){return _.N("web_player_entities_middleware")?new v1(oPE(),[QaU,A9K]):new v1(oPE(),[QaU])};
_.K2=function(){G$E||(G$E=Z3m());return G$E};
k$B=function(r,f,I){if(r.length)return{titleText:_.AZ(f!=null?f:_.VR("DOWNLOADS",void 0,"Downloads")),contents:r.map(function(C){var Y=C.videoEntity;C={videoId:Y.videoId,title:Zk(Y.title),shortBylineText:Zk(C.channelEntity.title),thumbnail:Y.thumbnail};var V=Y.videoId?T3(_.K2().getState(),Y.videoId):0;Y.videoId&&I?C.navigationEndpoint=_.QR(Y.videoId,I,void 0,void 0,V):Y.videoId&&(C.navigationEndpoint=fiU(Y.videoId,V,Y.lengthSeconds));Y.lengthSeconds&&(C.thumbnailOverlays=$Aw(Y.lengthSeconds,V));return{playlistPanelVideoRenderer:C}}),
totalVideos:r.length}};
BjK=function(r){return(r=(0,_.X0.getValueByKeys)(r,"playlistId"))?{playlistId:r}:null};
qGK=function(){return{}};
ugl=function(r,f){return new _.lz(function(I,C){r.then(function(Y){if(Y){if(Y=f(Y))return I(Y);C()}},C)})};
DAd=function(r){var f,I,C,Y=(f=r.contents)==null?void 0:(I=f.twoColumnWatchNextResults)==null?void 0:(C=I.autoplay)==null?void 0:C.autoplay,V,S,h;f=(V=r.contents)==null?void 0:(S=V.twoColumnWatchNextResults)==null?void 0:(h=S.playlist)==null?void 0:h.playlist;return Y&&f&&f.playlistId?{rawResponse:r,autoplayRenderer:Y,playlistPanelRenderer:f,playlistId:f.playlistId}:null};
fGK=function(r){var f=f===void 0?"UNKNOWN_INTERFACE":f;if(r.length===1)return r[0];var I=rKR[f];if(I){I=new RegExp(I);for(var C=_.E(r),Y=C.next();!Y.done;Y=C.next())if(Y=Y.value,I.exec(Y))return Y}var V=[];Object.entries(rKR).forEach(function(S){var h=_.E(S);S=h.next().value;h=h.next().value;f!==S&&V.push(h)});
I=new RegExp(V.join("|"));r.sort(function(S,h){return S.length-h.length});
C=_.E(r);for(Y=C.next();!Y.done;Y=C.next())if(Y=Y.value,!I.exec(Y))return Y;return r[0]};
_.yC=function(r){return"/youtubei/v1/"+fGK(r)};
_.Ur=function(r){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:r}}}}};
_.sr=function(r){return _.Ur(_.iX(r))};
IGP=function(r,f){var I={mode:"NORMAL"};r&&(I.autoplayVideo=r.navigationEndpoint,I.nextButtonVideo=r.navigationEndpoint);f&&(I.previousButtonVideo=f.navigationEndpoint);return I};
lGP=function(r,f,I){if(!I||!I.sets)return{sets:[IGP(r,f)]};var C=I.sets.find(function(S){return S.mode==="NORMAL"}),Y=(0,_.X0.unsafeClone)(I);
if(!C)return Y.sets.push(IGP(r,f)),Y;if(!r)return I;C=_.X0.getValueByKeys.apply(null,[C].concat(_.Na(Cgw)));var V=_.X0.getValueByKeys.apply(null,[r].concat(_.Na(Ynl)));if(C===V)return I;Y.sets=Y.sets.filter(function(S){return S.mode!=="NORMAL"});
Y.sets.push(IGP(r,f));return Y};
Vvw=function(r){return!!r.playlistPanelVideoRenderer&&!r.playlistPanelVideoRenderer.unplayableText};
EJl=function(r){return!!r.playlistPanelVideoRenderer&&!!r.playlistPanelVideoRenderer.title};
SnE=function(r,f){if(f.contents&&!(r>=f.contents.length)&&(r=f.contents.slice(r).find(Vvw)))return r.playlistPanelVideoRenderer};
xbE=function(r,f){if(f.contents)return(f=f.contents.find(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId===r}))?f.playlistPanelVideoRenderer:void 0};
hMc=function(r,f){return f.contents?f.contents.findIndex(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId===r}):-1};
wDc=function(r,f){return f.contents?f.contents.findIndex(function(I){return!!I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.playlistSetVideoId===r}):-1};
bhd=function(r,f){r.contents&&f!==-1&&r.contents.splice(f,1).length===1&&r.totalVideos!==void 0&&(--r.totalVideos,delete r.videoCountText)};
_.pDE=function(r){var f=[];if(!r||!r.contents)return f;r=_.E(r.contents);for(var I=r.next();!I.done;I=r.next())I=I.value,I.playlistPanelVideoRenderer&&I.playlistPanelVideoRenderer.videoId&&f.push(I.playlistPanelVideoRenderer.videoId);return f};
_.nJm=function(r){if(r&&r.contents)return(r=r.contents.find(function(f){return!!f.playlistPanelVideoRenderer&&!!f.playlistPanelVideoRenderer.selected})||r.contents[r.currentIndex])?r.playlistPanelVideoRenderer:void 0};
dbK=function(r,f,I,C,Y,V,S){Y=Y===void 0?!1:Y;V=V===void 0?!1:V;S=S===void 0?!1:S;if(r.contents&&r.contents.length!==0){C&&(r.contents=r.contents.filter(C));C=r.contents.length;for(var h=0;h<C;h++){var w=r.contents[h].playlistPanelVideoRenderer;w&&(h===f?(V&&delete w.menu,w.indexText=_.iX("\u25b6")):Y||r.isInfinite||w.indexText===void 0?delete w.indexText:w.indexText=_.iX((h+1+I).toString()))}r.currentIndex=f+I;S&&(delete r.videoCountText,r.totalVideos=C)}};
_.gJd=function(r){r=zMq(r);if(r){var f=r.length;var I=-99%f;I<0&&(I=f+I);r=r.slice(f-I)+r.slice(0,f-I)}else r="";I="";for(f=0;f<r.length&&r[f]!==MvK;f++)I+=r[f];return I};
_.aGd=function(r,f){var I=document.body;f=f===void 0?function(h){return h}:f;
var C,Y=null;r=_.E(r);for(C=r.next();!C.done;C=r.next()){var V=C.value;C=document.createElement("div");Y||(Y=C);var S=V[0];V=V[1];S&&(C.id=f(S));if(V)for(S=_.E(V),V=S.next();!V.done;V=S.next())C.classList.add(f(V.value));I.appendChild(C);I=C}return[Y,I]};
XDc=function(r,f){for(var I="",C=0;C<f;C++)I+=r.charAt(Math.floor(Math.random()*r.length));return I};
Or=function(r){return XDc("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",r)};
or=function(r){return XDc("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",r)};
QC=function(r){return XDc("0123456789",r)};
AQ=function(){var r=performance.now(),f=new Date;var I="2."+f.getFullYear()+String(f.getMonth()+1).padStart(2,"0")+String(f.getDate()).padStart(2,"0");for(var C,Y=Math.floor(Math.random()*11)+15,V=[],S=0;S<Y;S++)V.push(Math.floor(Math.random()*26476865)+24547720);C=V.join(",");var h=Or(10),w=Or(100),n=Or(102),d=Or(106),z=Or(108),g=Or(11),X=Or(1140),P=Or(123),W=Or(14),m=Or(16),v=Or(1900),O=Or(23),k=Or(26),Z=Or(34),Cw=Or(397),rR=Or(44),EP=Or(5),Pu=Or(72),Wu=Or(74),cu=Or(75),OP=Or(88),iU=Or(91),oR="rr2---sn-q4flrner rr1---sn-ntqe6n7r rr4---sn-5hne6nzk rr1---sn-hgn7ynek rr1---sn-q4fl6n6d rr2---sn-5hneknek rr2---sn-aigzrn7d rr5---sn-q4fl6n6d rr5---sn-hgn7rn7r rr3---sn-q4flrnsk rr1---sn-ntqe6n7k rr5---sn-q4fl6nde rr5---sn-q4flrnes rr4---sn-q4flrney rr4---sn-5hne6nsz rr4---sn-ntq7yned rr4---sn-q4fl6nsy rr3---sn-5hneknee rr5---sn-hgn7rn7k rr2---sn-q4fl6ns7".split(" ");
var vu=oR[Math.floor(Math.random()*oR.length)];var wB=(new Date("2010-01-01")).getTime();var qT=(new Date(wB+Math.random()*((new Date).getTime()-wB))).toISOString().split("T")[0];for(var gB,C8=[],Es=0;Es<4;Es++)C8.push(Math.floor(Math.random()*100));gB=C8.join(".");var J_=Number(QC(5)),xC=Number(QC(6)),r2=Number(QC(7)),F9=Number(QC(9)),SK=QC(1),FX=QC(10),iV=QC(16),s7=QC(19),W4=QC(2),Qq=QC(20),Gs=QC(21),$C=QC(3),kq=QC(4),XX=QC(5),hU=QC(6),P4=QC(7),N6=QC(8),hg=QC(9);var pW=XDc("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var O7=[or(5),or(5),or(5)].join("%2C"),ak=[QC(3),QC(5),QC(5)].join("%2C"),Xo=or(0),yq=or(1),T6=or(10),AU=or(108),w2=or(11),NU=or(12),to=or(13),dI=or(14),YB=or(15),k1=or(16),z5=or(17),X$=or(18),Jm=or(19),UP=or(2),dB=or(20),l2=or(22),Lj=or(23),b2=or(24),aD=or(266),z4=or(3),pq=or(30),tg=or(34),Vq=or(35),N3=or(36),zA=or(4),RM=or(40),Ay=or(43),Rc=or(47),Mb=or(5),hy=or(6),qc=or(7),M6=or(75),ws=or(8),ja=or(80),OR=or(9),lr="https://www."+or(12)+".com",Om={},gh={},KQ={},q7B={},aQ={},oL={},Qp={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:C}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:I},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+or(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:I},{key:"client.name",value:"WEB"},{key:"client.fexp",value:C}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:Gs+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+or(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:RM,ypcGetOfflineUpsellEndpoint:{params:ja}},trackingParams:Vq+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+ak+"&mn="+O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fmp4&ns="+b2+"&cnr="+W4+"&ratebypass=yes&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&c=WEB&txp="+P4+"&n="+m+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:xC,width:640,height:360,lastModified:iV,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:P4,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+ak+"&mn="+
O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fmp4&ns="+b2+"&cnr="+W4+"&ratebypass=yes&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&c=WEB&txp="+P4+"&n="+m+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+AU+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:xC,width:1280,
height:720,lastModified:iV,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:P4,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&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="+ak+"&mn="+O7+"&ms="+
O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fmp4&ns="+b2+"&gir="+z4+"&clen="+hg+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&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="+z,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:r2,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:hg,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:r2,approxDurationMs:P4},{itag:248,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&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="+ak+"&mn="+O7+"&ms="+O7+"&mv="+
yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fwebm&ns="+b2+"&gir="+z4+"&clen="+hg+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:r2,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:hg,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:r2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:399,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&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="+
ak+"&mn="+O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fmp4&ns="+b2+"&gir="+z4+"&clen="+hg+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&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="+z,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:r2,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:hg,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:r2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:136,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&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="+
ak+"&mn="+O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fmp4&ns="+b2+"&gir="+z4+"&clen="+hg+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:r2,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:hg,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:xC,approxDurationMs:P4},{itag:247,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&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="+ak+"&mn="+
O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fwebm&ns="+b2+"&gir="+z4+"&clen="+hg+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:r2,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:hg,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:xC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:398,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&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="+
ak+"&mn="+O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fmp4&ns="+b2+"&gir="+z4+"&clen="+hg+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:r2,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:hg,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:xC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:135,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&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="+
ak+"&mn="+O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fmp4&ns="+b2+"&gir="+z4+"&clen="+N6+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:xC,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:N6,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:xC,approxDurationMs:P4},{itag:244,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&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="+ak+"&mn="+
O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fwebm&ns="+b2+"&gir="+z4+"&clen="+N6+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+AU+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:xC,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:N6,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:xC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:397,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&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="+
ak+"&mn="+O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fmp4&ns="+b2+"&gir="+z4+"&clen="+N6+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&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="+z,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:xC,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:N6,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:xC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:134,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&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="+
ak+"&mn="+O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fmp4&ns="+b2+"&gir="+z4+"&clen="+N6+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:xC,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:N6,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:xC,highReplication:!0,approxDurationMs:P4},{itag:243,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&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="+
ak+"&mn="+O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fwebm&ns="+b2+"&gir="+z4+"&clen="+N6+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:xC,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:N6,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:xC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:396,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&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="+
ak+"&mn="+O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fmp4&ns="+b2+"&gir="+z4+"&clen="+N6+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:xC,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:N6,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:xC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:133,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&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="+
ak+"&mn="+O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fmp4&ns="+b2+"&gir="+z4+"&clen="+N6+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:xC,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:N6,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:xC,approxDurationMs:P4},{itag:242,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&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="+ak+"&mn="+
O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fwebm&ns="+b2+"&gir="+z4+"&clen="+N6+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:xC,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:N6,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:xC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:395,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&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="+
ak+"&mn="+O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fmp4&ns="+b2+"&gir="+z4+"&clen="+N6+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:xC,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:N6,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:xC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:160,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&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="+
ak+"&mn="+O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fmp4&ns="+b2+"&gir="+z4+"&clen="+N6+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:xC,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:N6,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:J_,approxDurationMs:P4},{itag:278,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&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="+ak+"&mn="+
O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fwebm&ns="+b2+"&gir="+z4+"&clen="+N6+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'video/webm; codecs="vp9"',bitrate:xC,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:N6,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:J_,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:394,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&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="+
ak+"&mn="+O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=video%2Fmp4&ns="+b2+"&gir="+z4+"&clen="+N6+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&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="+z,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:J_,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:N6,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:J_,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:P4},{itag:140,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
ak+"&mn="+O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=audio%2Fmp4&ns="+b2+"&gir="+z4+"&clen="+N6+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:xC,
initRange:{start:"0",end:"631"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:N6,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:xC,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:P4,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+ak+"&mn="+O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+
W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=audio%2Fwebm&ns="+b2+"&gir="+z4+"&clen="+P4+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'audio/webm; codecs="opus"',bitrate:J_,initRange:{start:"0",end:"265"},indexRange:{start:$C,
end:kq},lastModified:iV,contentLength:P4,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:J_,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:P4,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+ak+"&mn="+O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=audio%2Fwebm&ns="+
b2+"&gir="+z4+"&clen="+P4+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+P4+"&n="+k1+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'audio/webm; codecs="opus"',bitrate:J_,initRange:{start:"0",end:"265"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:P4,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:J_,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:P4,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+vu+".googlevideo.com/videoplayback?expire="+FX+"&ei="+O+"&ip="+gB+"&id=o-AF"+Ay+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+ak+"&mn="+O7+"&ms="+O7+"&mv="+yq+"&mvi="+SK+"&pl="+W4+"&initcwndbps="+P4+"&siu="+SK+"&spc="+rR+"&vprv="+SK+"&svpuc="+SK+"&mime=audio%2Fwebm&ns="+b2+"&gir="+z4+"&clen="+N6+"&dur="+N6+"&lmt="+iV+"&mt="+FX+"&fvip=3&keepalive="+z4+"&c=WEB&txp="+
P4+"&n="+k1+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+z,mimeType:'audio/webm; codecs="opus"',bitrate:xC,initRange:{start:"0",end:"265"},indexRange:{start:$C,end:kq},lastModified:iV,contentLength:N6,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:xC,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:P4,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="+hg+"&docid="+g+"&ei="+O+"&feature="+h+"&fexp="+Xo+"&ns="+UP+"&plid="+m+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+yq+"&el="+T6+"&len="+kq+"&of="+l2+
"&uga="+W4+"&vm="+aD},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+hg+"&docid="+g+"&ei="+O+"&feature="+h+"&fexp="+Xo+"&ns="+UP+"&plid="+m+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+yq+"&el="+T6+"&len="+kq+"&of="+l2+"&uga="+W4+"&vm="+aD},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+hg+"&docid="+g+"&ei="+O+"&feature="+h+"&fexp="+Xo+"&ns="+UP+"&plid="+m+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
yq+"&el="+T6+"&len="+kq+"&of="+l2+"&uga="+W4+"&vm="+aD},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+O+"&m="+OP+"&oid="+l2+"&plid="+m+"&pltype="+qc+"&ptchn="+l2+"&ptk="+W+"&video_id="+g},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+hg+"&docid="+g+"&ei="+O+"&event="+dI+"&feature="+h+"&fexp="+Xo+"&ns="+UP+"&plid="+m+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+yq},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+g+"&ei="+O+"&feature="+
h+"&len="+kq+"&ns="+UP+"&plid="+m+"&ver="+SK,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+g+"&caps="+z4+"&opi="+hg+"&xoaf="+SK+"&hl="+UP+"&ip="+gB+"&ipbits="+SK+"&expire="+FX+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+gB+"&key="+z4+"&lang="+EP,name:{simpleText:hy},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+g+"&caps="+z4+"&opi="+hg+"&xoaf="+SK+"&hl="+UP+"&ip="+gB+"&ipbits="+SK+"&expire="+FX+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+gB+"&key="+z4+"&kind="+z4+"&lang="+UP,name:{simpleText:w2},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:w2,title:zA,lengthSeconds:"1155",keywords:[OR,ws,w2,hy],
channelId:b2,isOwnerViewing:!1,shortDescription:YB,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+g+"/hqdefault.jpg?sqp=-oaymwE"+N3+"G&rs="+tg,width:168,height:94},{url:"https://i.ytimg.com/vi/"+g+"/hqdefault.jpg?sqp=-oaymwE"+N3+"G&rs="+tg,width:196,height:110},{url:"https://i.ytimg.com/vi/"+g+"/hqdefault.jpg?sqp=-oaymwE"+N3+"G&rs="+Z,width:246,height:138},{url:"https://i.ytimg.com/vi/"+g+"/hqdefault.jpg?sqp=-oaymwE"+N3+"G&rs="+Z,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
g+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:P4,author:to,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:P4,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+l2+"/featured_channel.jpg?v="+ws,width:40,height:40}]},trackingParams:Vq+"=",navigationEndpoint:{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{url:"/channel/"+b2,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:b2}},channelName:to,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:ws}]},subscribed:!1,enabled:!0,type:"FREE",channelId:b2,showPreferences:!1,subscribedButtonText:{runs:[{text:hy}]},unsubscribedButtonText:{runs:[{text:X$}]},trackingParams:Vq+"=",unsubscribeButtonText:{runs:[{text:dB}]},serviceEndpoints:[{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[b2],params:ws}},{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:RM,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Vq+"=",dialogMessages:[{runs:[{text:ws},{text:Jm},{text:k1}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:dB}]},serviceEndpoint:{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[b2],params:ws}},accessibility:{label:qc},trackingParams:Vq+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:NU}]},accessibility:{label:z5},trackingParams:Vq+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:X$}},unsubscribeAccessibility:{accessibilityData:{label:OR}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:N6},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[b2],params:ws}},unsubscribeCommand:{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[b2],params:ws}},addToWatchLaterCommand:{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:w2,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:w2}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+g+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+N3+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
g+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+w2,width:1280,height:720},title:{simpleText:z5},description:{simpleText:Jm},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+z5,externalChannelId:b2,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:P4,category:"Travel & Events",publishDate:qT,ownerChannelName:to,uploadDate:qT}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:qc},trackingParams:Vq+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:RM,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Vq+"="}}],headerText:{simpleText:T6},icon:{infoCardIconRenderer:{trackingParams:Vq+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Vq+"="}},trackingParams:Vq+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Vq+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+w2+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:pW,interpreterSafeUrl:(Om.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+pq+".js",Om),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:to},{text:qc,bold:!0}]},endpoint:{clickTrackingParams:RM,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:Vq+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:X$}]},actionButton:{buttonRenderer:{text:{runs:[{text:dB}]},navigationEndpoint:{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+g,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
g,target:"TARGET_NEW_WINDOW"}},trackingParams:Vq+"="}},trackingParams:Vq+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Pu+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Pu+"=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:P4,endMs:P4,title:{accessibility:{accessibilityData:{label:hy}},simpleText:ws},metadata:{simpleText:z5},callToAction:{simpleText:YB},dismiss:{simpleText:X$},endpoint:{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{url:"/channel/"+b2,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:b2}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:qc}]},subscribed:!1,enabled:!0,type:"FREE",channelId:b2,showPreferences:!1,
subscribedButtonText:{runs:[{text:ws}]},unsubscribedButtonText:{runs:[{text:ws}]},trackingParams:Vq+"=",unsubscribeButtonText:{runs:[{text:T6}]},serviceEndpoints:[{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[b2],params:ws}},{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:RM,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Vq+
"=",dialogMessages:[{runs:[{text:zA},{text:NU},{text:X$}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:T6}]},serviceEndpoint:{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[b2],params:ws}},accessibility:{label:dI},trackingParams:Vq+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Mb}]},
accessibility:{label:ws},trackingParams:Vq+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:k1}},unsubscribeAccessibility:{accessibilityData:{label:Jm}}}},trackingParams:Vq+"=",isSubscribe:!0,id:Qq}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+g+"/hqdefault.jpg?sqp=-oaymwE"+N3+"G&rs="+Z,width:168,height:94},{url:"https://i.ytimg.com/vi/"+g+"/hqdefault.jpg?sqp=-oaymwE"+N3+"G&rs="+tg,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+g+"/hqdefault.jpg?sqp=-oaymwE"+N3+"G&rs="+Z,width:246,height:138},{url:"https://i.ytimg.com/vi/"+g+"/hqdefault.jpg?sqp=-oaymwE"+N3+"G&rs="+Z,width:336,height:188},{url:"https://i.ytimg.com/vi/"+g+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:P4,endMs:P4,title:{accessibility:{accessibilityData:{label:qc}},simpleText:dB},metadata:{simpleText:w2},endpoint:{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
w2,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:w2,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+vu+".googlevideo.com/videoplayback?source=youtube&oeis="+SK+"&c=WEB&oad="+kq+"&ovd="+kq+"&oaad="+XX+"&oavd="+XX+"&ocs="+$C+"&oewis="+SK+"&oputc="+SK+"&ofpcc="+SK+"&siu="+SK+"&msp="+SK+"&odepv="+SK+
"&id=o-AF"+Ay+"&ip="+gB+"&initcwndbps="+P4+"&mt="+FX+"&oweuc="+Xo}}}}},trackingParams:Vq+"=",id:Qq,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:ws}},simpleText:z5},style:"DEFAULT"}}]}}],startMs:P4,trackingParams:Vq+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:SK,offsetEndMilliseconds:XX},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+hg+";dc_trk_cid="+hg+";dc_dbm_token="+z+";ord="+FX+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SK+";dc_rui="+SK+";dc_exteid="+Qq+";dc_av="+$C+";dc_sk="+SK+";dc_ctype="+W4+";dc_ref=http://www.youtube.com/video/"+w2+";dc_pubid="+SK+";dc_btype=23?gclid="+iU+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
X+"____________"+P+"AxAA&sigh="+w2+"&cid="+k+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+SK+"&ns="+SK+"&event="+SK+"&device="+SK+"&content_v="+g+"&el="+T6+"&ei="+O+"&devicever="+I+"&bti="+P4+"&format="+hU+"&break_type="+SK+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+SK+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+gB+"&slot_pos="+SK+"&slot_len="+SK+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+ak+"&ad_len="+XX+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
w2+"&aqi="+O+"&ad_rmp="+SK+"&sli="+SK}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+g+"&cid="+k+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+g+"&cid="+k+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+
";etm1="+SK+";eid1="+W4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+g+"&cid="+k+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+hU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
X+"____________"+P+"AxAA&sigh="+g+"&cid="+k+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+W4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+g+"&cid="+k+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+g+"&cid="+k+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+W4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+g+"&cid="+k+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+P4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+g+"&cid="+k+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
X+"____________"+P+"AxAA&sigh="+g+"&cid="+k+"&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"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&ctype="+$C+"&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"+
X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_engaged_view&ctype="+$C+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+hU+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
hg+";dc_trk_cid="+hg+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SK+";ord="+hg+";dc_rui="+SK+";dc_exteid="+s7+";dc_av="+SK+";dc_sk="+SK+";dc_ctype="+W4+";dc_pubid="+SK+";dc_btype=3?gclid="+iU+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+g+"&cid="+k+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+W4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+n+"&sig="+Lj+"&ad_cpn=[AD_CPN]&id="+hy+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+hy+"&dc_pubid="+SK+"&dc_exteid="+Qq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+g+"&cid="+k+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+n+"&sig="+Lj+"&ad_cpn=[AD_CPN]&id="+hy+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+SK},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+hy+"&avm="+SK+"&dc_pubid="+SK+"&dc_exteid="+
Qq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+g+"&cid="+k+"&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="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+W4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
n+"&sig="+Lj+"&ad_cpn=[AD_CPN]&id="+hy+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+SK},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+hy+"&dc_pubid="+SK+"&dc_exteid="+Qq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+W4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+hU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+W4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+hU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+g+"&cid="+k+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+W4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:RM,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+
$C+"&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/"+g+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Vq+"="},trackingParams:Vq+
"=",templatedCountdown:{templatedAdText:{text:OR,isTemplated:!0,trackingParams:Vq+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:k1,isTemplated:!1,trackingParams:Vq+"="},trackingParams:Vq+"="}},trackingParams:Vq+"=",skipOffsetMilliseconds:5E3}},trackingParams:Vq+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:zA},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Vq+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:T6,isTemplated:!1,trackingParams:Vq+"="},trackingParams:Vq+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:ws,isTemplated:!0,trackingParams:Vq+"="}},trackingParams:Vq+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:RM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(gh.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+v+"&hl="+UP+"&origin=www.youtube.com&ata_theme="+zA,gh),trackingParams:Vq+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Vq+"="}},hoverText:{runs:[{text:dI}]},trackingParams:Vq+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Rc+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Vq+"="},headline:{text:zA,isTemplated:!1,trackingParams:Vq+"="},description:{text:X$,
trackingParams:Vq+"="},actionButton:{buttonRenderer:{text:{simpleText:dI},navigationEndpoint:{clickTrackingParams:RM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+hg+";dc_trk_cid="+hg+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SK+";ord="+hg+";dc_rui="+SK+";dc_exteid="+Qq+";dc_av="+SK+";dc_sk="+SK+";dc_ctype="+W4+";dc_pubid="+SK+";dc_btype=3?gclid="+iU+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Vq+"="}},startMs:SK,trackingParams:Vq+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:qc},elementId:YB}},elementId:OR,trackingParams:Vq+"=",legacyInfoCardVastExtension:k1,sodarExtensionData:{siub:to,bgub:ws,scs:ws,bgp:ws},externalVideoId:w2,adLayoutLoggingData:{serializedAdServingDataEntry:OR},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Rc+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Vq+"="},
headline:{text:ws,isTemplated:!1,trackingParams:Vq+"="},description:{text:dB,isTemplated:!1,trackingParams:Vq+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:hy},navigationEndpoint:{clickTrackingParams:RM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+hg+";dc_trk_cid="+hg+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SK+";ord="+hg+";dc_rui="+SK+";dc_exteid="+
Qq+";dc_av="+SK+";dc_sk="+SK+";dc_ctype="+W4+";dc_pubid="+SK+";dc_btype=3?gclid="+iU+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+
SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Vq+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Vq+"="}},navigationEndpoint:{clickTrackingParams:RM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+hg+";dc_trk_cid="+
hg+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SK+";ord="+hg+";dc_rui="+SK+";dc_exteid="+Qq+";dc_av="+SK+";dc_sk="+SK+";dc_ctype="+W4+";dc_pubid="+SK+";dc_btype=3?gclid="+iU+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+g+"&cid="+k+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+
P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Vq+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Vq+"="},abandonCommands:{commands:[{clickTrackingParams:RM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+g+"&cid="+k+"&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="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+
SK+"="+SK+";etm1="+SK+";eid1="+W4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:RM,commandExecutorCommand:{commands:[{clickTrackingParams:RM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+g+"&cid="+k+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:dI,isTemplated:!1,trackingParams:Vq+
"="},trackingParams:Vq+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:YB},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+g+"&cid="+k+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+P4+";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="+hg+";dc_trk_cid="+hg+";ord="+FX+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SK+";dc_rui="+SK+";dc_exteid="+Qq+";dc_av="+$C+";dc_sk="+SK+";dc_ctype="+W4+";dc_ref=http://www.youtube.com/video/"+w2+";dc_pubid="+SK+";dc_btype=23?gclid="+iU+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+X+"____________"+P+"AxAA&sigh="+w2+"&cid="+k+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+SK+"&ns="+SK+"&event="+SK+"&device="+SK+"&content_v="+g+"&el="+T6+"&ei="+O+"&devicever="+I+"&bti="+P4+"&format="+hU+"&break_type="+SK+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+SK+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+gB+"&slot_pos="+SK+"&slot_len="+SK+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
ak+"&ad_len="+XX+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+w2+"&aqi="+O+"&ad_rmp="+SK+"&sli="+SK}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+w2+"&cid="+k+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+w2+"&cid="+k+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+W4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+w2+"&cid="+k+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+hU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+w2+"&cid="+k+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+W4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+w2+"&cid="+
k+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+w2+"&cid="+k+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+W4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
X+"____________"+P+"AxAA&sigh="+w2+"&cid="+k+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+P4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+w2+"&cid="+k+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+w2+"&cid="+k+"&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"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&ctype="+$C+"&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"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_engaged_view&ctype="+$C+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+hU+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+w2+"&cid="+k+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+W4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+n+"&sig="+Lj+"&ad_cpn=[AD_CPN]&id="+
hy+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+hy+"&dc_pubid="+SK+"&dc_exteid="+Qq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+w2+"&cid="+k+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+n+
"&sig="+Lj+"&ad_cpn=[AD_CPN]&id="+hy+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+SK},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+hy+"&avm="+SK+"&dc_pubid="+SK+"&dc_exteid="+Qq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+w2+"&cid="+k+"&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="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+W4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+n+"&sig="+Lj+"&ad_cpn=[AD_CPN]&id="+hy+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+SK},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+hy+"&dc_pubid="+SK+"&dc_exteid="+Qq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+W4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+hU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+W4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+hU+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+w2+"&cid="+k+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+W4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+
$C+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&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/"+g+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Vq+"="},trackingParams:Vq+"=",templatedCountdown:{templatedAdText:{text:OR,isTemplated:!0,trackingParams:Vq+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:zA,isTemplated:!1,trackingParams:Vq+"="},trackingParams:Vq+"="}},
trackingParams:Vq+"=",skipOffsetMilliseconds:5E3}},trackingParams:Vq+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:z5},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Vq+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:k1,isTemplated:!1,trackingParams:Vq+"="},trackingParams:Vq+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:OR,
isTemplated:!0,trackingParams:Vq+"="}},trackingParams:Vq+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:RM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(KQ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+v+"&hl="+UP+"&origin=www.youtube.com&ata_theme="+zA,KQ),trackingParams:Vq+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Vq+"="}},hoverText:{runs:[{text:Jm}]},trackingParams:Vq+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Wu+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Vq+"="},headline:{text:OR,isTemplated:!1,trackingParams:Vq+"="},description:{text:k1,trackingParams:Vq+"="},actionButton:{buttonRenderer:{text:{simpleText:dI},navigationEndpoint:{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Vq+"="}},startMs:SK,trackingParams:Vq+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:X$},elementId:zA}},elementId:qc,trackingParams:Vq+"=",legacyInfoCardVastExtension:YB,sodarExtensionData:{siub:T6,bgub:ws,scs:qc,bgp:z5},externalVideoId:w2,adLayoutLoggingData:{serializedAdServingDataEntry:Jm},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Wu+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Vq+"="},headline:{text:YB,
isTemplated:!1,trackingParams:Vq+"="},description:{text:z5,isTemplated:!1,trackingParams:Vq+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:dI},navigationEndpoint:{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Vq+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Vq+"="}},navigationEndpoint:{clickTrackingParams:RM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
X+"____________"+P+"AxAA&sigh="+w2+"&cid="+k+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+
SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Vq+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Vq+"="},abandonCommands:{commands:[{clickTrackingParams:RM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+w2+"&cid="+k+"&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="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+W4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:RM,commandExecutorCommand:{commands:[{clickTrackingParams:RM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+w2+"&cid="+k+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:qc,isTemplated:!1,trackingParams:Vq+"="},trackingParams:Vq+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:T6},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+w2+"&cid="+k+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SK+";dc_exteid="+Qq+";met="+SK+";ecn"+SK+"="+SK+";etm1="+SK+";eid1="+
P4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:dI}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:dI}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:XX,offsetEndMilliseconds:hU},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+W4+"&token=ALHj"+Cw+"&index="+SK+"&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="+I+"&m_pos_ms="+XX}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Jm}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:hU,offsetEndMilliseconds:hU},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+$C+"&token=ALHj"+Cw+"&index="+SK+"&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="+
I+"&m_pos_ms="+hU}},adSlotLoggingData:{serializedSlotAdServingDataEntry:qc}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:hU,offsetEndMilliseconds:hU},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+$C+"&token=ALHj"+Cw+"&index="+SK+"&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="+
I+"&m_pos_ms="+hU}},adSlotLoggingData:{serializedSlotAdServingDataEntry:dB}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:hU,offsetEndMilliseconds:hU},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+$C+"&token=ALHj"+Cw+"&index="+SK+"&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="+
I+"&m_pos_ms="+hU}},adSlotLoggingData:{serializedSlotAdServingDataEntry:w2}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:hU,offsetEndMilliseconds:W4},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+$C+"&token=ALHj"+Cw+"&index="+SK+"&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="+
I+"&m_pos_ms="+hU}},adSlotLoggingData:{serializedSlotAdServingDataEntry:dI}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:W4,offsetEndMilliseconds:W4},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+W4+"&token=ALHj"+Cw+"&index="+SK+"&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="+
I+"&m_pos_ms="+W4}},adSlotLoggingData:{serializedSlotAdServingDataEntry:zA}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:dB,isTemplated:!1,trackingParams:Vq+"="},description:{text:to,isTemplated:!1,trackingParams:Vq+"="},actionButton:{buttonRenderer:{text:{simpleText:Mb},navigationEndpoint:{clickTrackingParams:RM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
hg+";dc_trk_cid="+hg+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SK+";ord="+hg+";dc_rui="+SK+";dc_exteid="+Qq+";dc_av="+SK+";dc_sk="+SK+";dc_ctype="+W4+";dc_pubid="+SK+";dc_btype=3?gclid="+iU+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Vq+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Rc+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Vq+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+cu+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Vq+"="},navigationEndpoint:{clickTrackingParams:RM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+hg+";dc_trk_cid="+hg+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SK+";ord="+hg+
";dc_rui="+SK+";dc_exteid="+Qq+";dc_av="+SK+";dc_sk="+SK+";dc_ctype="+W4+";dc_pubid="+SK+";dc_btype=3?gclid="+iU+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Vq+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:RM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(q7B.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+v+"&hl="+UP+"&origin=www.youtube.com&ata_theme="+zA,q7B),trackingParams:Vq+"="}},popupType:"DIALOG"}},trackingParams:Vq+"="}},hoverText:{runs:[{text:ws}]},trackingParams:Vq+"="}},adVideoId:w2,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+g+"&cid="+k+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:w2},associatedCompositePlayerBytesLayoutId:k1}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:X$}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:dI,isTemplated:!1,trackingParams:Vq+"="},description:{text:NU,isTemplated:!1,trackingParams:Vq+"="},actionButton:{buttonRenderer:{text:{simpleText:X$},navigationEndpoint:{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+
P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Vq+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Wu+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Vq+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+M6+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Vq+"="},navigationEndpoint:{clickTrackingParams:RM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+
SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Vq+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:RM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(aQ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+v+"&hl="+UP+"&origin=www.youtube.com&ata_theme="+zA,aQ),trackingParams:Vq+"="}},popupType:"DIALOG"}},trackingParams:Vq+"="}},
hoverText:{runs:[{text:w2}]},trackingParams:Vq+"="}},adVideoId:w2,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+w2+"&cid="+k+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:k1},associatedCompositePlayerBytesLayoutId:k1}},adSlotLoggingData:{serializedSlotAdServingDataEntry:hy}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:k1,
isTemplated:!1,trackingParams:Vq+"="},description:{text:dB,isTemplated:!1,trackingParams:Vq+"="},actionButton:{buttonRenderer:{text:{simpleText:dB},navigationEndpoint:{clickTrackingParams:RM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+hg+";dc_trk_cid="+hg+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SK+";ord="+hg+";dc_rui="+SK+";dc_exteid="+Qq+";dc_av="+SK+";dc_sk="+SK+";dc_ctype="+
W4+";dc_pubid="+SK+";dc_btype=3?gclid="+iU+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+
Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Vq+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Rc+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Vq+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+cu+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Vq+
"="},navigationEndpoint:{clickTrackingParams:RM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+hg+";dc_trk_cid="+hg+";dc_dbm_token="+z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SK+";ord="+hg+";dc_rui="+SK+";dc_exteid="+Qq+";dc_av="+SK+";dc_sk="+SK+";dc_ctype="+W4+";dc_pubid="+SK+";dc_btype=3?gclid="+iU+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+P+"AxAA&ase=2&num="+SK+"&cid="+k+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+lr+"&label=video_click_to_advertiser_site&ctype="+$C+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Vq+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:RM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(oL.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+v+"&hl="+UP+"&origin=www.youtube.com&ata_theme="+zA,oL),trackingParams:Vq+"="}},popupType:"DIALOG"}},trackingParams:Vq+
"="}},hoverText:{runs:[{text:dI}]},trackingParams:Vq+"="}},adVideoId:w2,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+P+"AxAA&sigh="+g+"&cid="+k+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:hy},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:k1}},adSlotLoggingData:{serializedSlotAdServingDataEntry:NU}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:pq,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:pq,command:{innertubeCommand:{clickTrackingParams:RM,ypcGetOfflineUpsellEndpoint:{params:ja}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Vq+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:FX,nanos:F9}}}},FVK=JSON.stringify(Qp),Au=performance.now()-r;return{objectRepresentation:Qp,jsonRepresentation:FVK,generationTime:Au}};
NQm=function(r,f){if(r===f)return!0;if(!r||!f||typeof r!==typeof f)return!1;if(r instanceof Array&&f instanceof Array){if(r.length!==f.length)return!1;for(var I=0;I<r.length;I++)if(!NQm(r[I],f[I]))return!1;return!0}if(typeof r==="object"&&typeof f==="object"&&r&&f){for(I in r)if(!(I in f&&NQm(r[I],f[I])))return!1;for(var C in f)if(!(C in r))return!1;return!0}return!1};
_.G3=function(){if(!Zx){Zx=new ED(new $bu);var r=_.Bw("client_streamz_web_flush_count",-1);r!==-1&&(Zx.invocationLimit=r)}return Zx};
kx=function(r,f,I,C){if(r===f)return!0;if(Array.isArray(r)&&Array.isArray(f)){if(r.length!==f.length)return!1;for(var Y=0;Y<r.length;Y++)if(!kx(r[Y],f[Y],I,C))return!1;return!0}if(r instanceof Set||f instanceof Set){if(r instanceof Set&&f instanceof Set){if(r.size!==f.size)return!1;C=_.E(r.values());for(Y=C.next();!Y.done;Y=C.next())if(!f.has(Y.value))return!1;return!0}return!1}if(r instanceof Function){if(C)return!0;r.name===""&&_.Fo(Error("Hf"),"ERROR");return!1}if(r instanceof Date&&f instanceof
Date)return r.getTime()===f.getTime();if(r instanceof Object&&f instanceof Object){if(FgB(r)&&FgB(f))try{return r.equals(f)}catch(S){_.Fo(Error("If`"+S),"ERROR")}Y=Object.getOwnPropertyNames(r).filter(function(S){return I?r[S]!==void 0:!0});
var V=Object.getOwnPropertyNames(f).filter(function(S){return I?f[S]!==void 0:!0});
if(Y.length!==V.length)return!1;Y=_.E(Y);for(V=Y.next();!V.done;V=Y.next())if(V=V.value,!kx(r[V],f[V],I,C))return!1;return!0}return!1};
FgB=function(r){r=Object.getPrototypeOf(r).equals;return r instanceof Function&&r.length===1};
_.TQl=function(){return _.x(function(r){if(r.nextAddress==1)return PgU!==2?r.jumpTo(2):_.b(r,tvm(),3);r.nextAddress!=2&&(PgU=r.yieldResult);return r.return(PgU)})};
_.LgP=function(){return _.x(function(r){if(r.nextAddress==1)return _.N("ab_pl_man")?cKl!==2?r.jumpTo(2):_.b(r,Wgq(),3):r.return(1);r.nextAddress!=2&&(cKl=r.yieldResult);return r.return(cKl)})};
JKE=function(){return _.x(function(r){if(r.nextAddress==1)return _.N("ab_fk_sk_cl")?mbl!==2?r.jumpTo(2):_.b(r,eMR(),3):r.return(1);r.nextAddress!=2&&(mbl=r.yieldResult);return r.return(mbl)})};
_.ihR=function(){return _.x(function(r){if(r.nextAddress==1)return _.N("ab_det_apb_b")?j_K!==2?r.jumpTo(2):_.b(r,HhP(),3):r.return(1);r.nextAddress!=2&&(j_K=r.yieldResult);return r.return(j_K)})};
KgU=function(){var r;return _.x(function(f){if(f.nextAddress==1)return _.b(f,Promise.all([_.TQl(),_.ihR(),_.LgP(),JKE()]),2);if(f.nextAddress!=3)return RMB()?f.return(!0):_.b(f,_.vJR(),3);r=f.yieldResult;return f.return(r===0)})};
RMB=function(){var r=!1,f=function(I,C){yKR.increment(C,I);I===0&&(r=!0)};
f(_.UbK(),"j.s_");f(PgU,"f.i_");f(j_K,"a.b_");f(cKl,"p.m_");f(mbl,"i.f_");s_q===2&&(s_q=_.OhR(_.aGd(oJK)));f(s_q,"e.h_");_.N("ks_det_gpbl")||f(_.Q_d(),"p.i_");_.N("ks_get_o_pp")||f(_.AKR(),"g.o_");_.N("ab_deg_unex_thr")||f(_.Zhw(),"a.o_");f(GwK,"s.t_");_.N("ab_det_sc_inj_enf")&&f(_.kwP(),"s.i_");f(BQP,"d.p_");f(_.qnm(_.B1),"o.p_");f(_.uTm()===0?0:_.DbE(),"o.a_");return _.N("debug_sk_em_precheck")?!0:r};
fHB=function(){var r=[].concat(_.Na(riB));try{var f=AQ();r.push({jsonRepresentation:f.jsonRepresentation,objectRepresentation:f.objectRepresentation})}catch(I){r=[].concat(_.Na(riB))}return r};
IHm=function(){var r=["adPlacements","adSlots"];try{return r.filter(function(){return!0}).length!==r.length?0:1}catch(f){return 0}};
_.AKR=function(){if(IHm()===0)return 0;var r=AQ(),f=r.objectRepresentation,I=(0,_.X0.unsafeClone)(f),C=[];if(f&&typeof f==="object")for(var Y in f)C.push(Y);else return 4;r=r.objectRepresentation.adPlacements;if(!(r&&r.length>0))return 4;try{if(!NQm(C,Object.getOwnPropertyNames(f)))return 0}catch(V){return 0}return NQm(I,f)?1:0};
_.qnm=function(r){var f=Object.getOwnPropertyNames(Object.prototype);r=_.E(r);for(var I=r.next();!I.done;I=r.next()){I=_.gJd(I.value);for(var C=_.E(f),Y=C.next();!Y.done;Y=C.next())if(I===Y.value)return 0}return 1};
Cnc=function(r){var f=_.gJd(r[1]);if(r[0]===null)return f;r=r[0];for(var I={},C=0;C<r.length;C++){var Y=_.gJd(r[C]);if(C===0)I[Y]=f;else{var V={};V[Y]=I;I=V}}return I};
_.uTm=function(){for(var r=_.qj,f=0;f<r.length;f++){var I=Cnc(r[f]),C=[];C.push(I);if(C.length===0)return 0}return 1};
_.DbE=function(){for(var r=_.qj,f={},I=0;I<r.length;f={xUb:void 0},I++){var C=[Cnc(r[I])];f.xUb=[];C.forEach(function(Y){return function(V){Y.xUb[Y.xUb.length]=V}}(f));
if(f.xUb.length===0)return 0}return 1};
_.UbK=function(){for(var r=_.E(fHB()),f=r.next();!f.done;f=r.next()){var I=f.value;f=I.jsonRepresentation;I=I.objectRepresentation;try{var C=JSON.parse(f);if(!kx(C,I,!1,!1))return 0}catch(Y){return 0}}return 1};
_.kwP=function(){try{var r=_.uk("ab_det_sc_inj_val");r.length===1&&r[0]===""&&(r=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var f=document.querySelectorAll("script"),I=_.E(f),C=I.next();!C.done;C=I.next())for(var Y=C.value,V=_.E(r),S=V.next();!S.done;S=V.next()){var h=S.value;f=void 0;if((f=Y.textContent)==null?0:f.includes(h))return 0}}catch(w){return 4}return 1};
_.vJR=function(){var r,f,I,C,Y,V,S;return _.x(function(h){switch(h.nextAddress){case 1:_.l_(h,2),r=_.E(riB),f=r.next();case 4:if(f.done)return h.return(1);C=I=f.value;Y=C.jsonRepresentation;V=C.objectRepresentation;return _.b(h,(new Response(Y,{status:200})).json(),7);case 7:S=h.yieldResult;if(!kx(S,V,!1,!1))return h.return(0);f=r.next();h.jumpTo(4);break;case 2:return _.ha(h),h.return(4)}})};
_.Zhw=function(){try{btoa("abc")}catch(r){return 0}return 1};
tvm=function(){var r,f,I,C,Y,V,S,h,w,n,d;return _.x(function(z){switch(z.nextAddress){case 1:_.l_(z,2),r=_.E(fHB()),f=r.next();case 4:if(f.done)return z.return(1);C=I=f.value;Y=C.jsonRepresentation;V=C.objectRepresentation;S=btoa(Y);h="data:application/json;base64,"+S;w=new Request(h);Object.defineProperty(w,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(w,"method",{get:function(){return"POST"}});
Object.defineProperty(w,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(w,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(w,"body",{get:function(){return new ReadableStream}});
return _.b(z,fetch(w),7);case 7:return n=z.yieldResult,_.b(z,n.json(),8);case 8:d=z.yieldResult;if(!kx(d,V,!1,!1))return z.return(0);f=r.next();z.jumpTo(4);break;case 2:return _.ha(z),z.return(4)}})};
_.OhR=function(r){var f=_.E(r);r=f.next().value;f=f.next().value;try{var I=document.createElement("div");document.body.appendChild(I);var C=getComputedStyle(I).display;document.body.removeChild(I);if(C==="none")return 4;var Y=getComputedStyle(f).display==="none"?0:1;document.body.removeChild(r);return Y}catch(V){return 4}};
eMR=function(){var r,f,I;return _.x(function(C){r=new _.uX;f=document.createElement("button");f.classList.add("ytp-ad-skip-button");f.style.opacity="0";f.style.height="0px";f.style.width="0px";f.style.padding="0px";f.style.border="none";I=function(){f.parentElement&&f.parentElement.removeChild(f)};
f.onclick=function(){r.resolve(0);I()};
document.body.appendChild(f);setTimeout(function(){I();r.resolve(1)},50);
return C.return(r.promise)})};
Wgq=function(){var r,f,I,C,Y,V,S;return _.x(function(h){r=new _.uX;f=document.createElement("ytd-player");try{document.body.prepend(f)}catch(w){return h.return(4)}I=function(){f.parentElement&&f.parentElement.removeChild(f)};
f.getElementsByTagName("div").length>0?C=f.getElementsByTagName("div")[0]:(C=document.createElement("div"),f.appendChild(C));Y=document.createElement("div");C.appendChild(Y);V=document.createElement("video");S=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"});V.src=_.nK(_.aw(S));V.ontimeupdate=function(){I();r.resolve(0)};
Y.appendChild(V);V.classList.add("html5-main-video");setTimeout(function(){Y.classList.add("ad-interrupting")},200);
setTimeout(function(){I();r.resolve(1)},5E3);
return h.return(r.promise)})};
Yfm=function(r,f){var I,C;return _.x(function(Y){switch(Y.nextAddress){case 1:I=[],C=0;case 2:if(!(C<3)){Y.jumpTo(4);break}return _.b(Y,fetch(r,{cache:"no-store",method:f}).then(function(V){I.push(V.status)}).catch(function(){I.push(-1)}),3);
case 3:C++;Y.jumpTo(2);break;case 4:return Y.return(I)}})};
lH$=function(r){return r.domainLookupStart===0&&r.domainLookupEnd===0&&r.connectStart===0&&r.connectEnd===0};
VpR=function(r,f,I){I=I===void 0?"GET":I;var C,Y,V,S,h,w,n,d,z,g;return _.x(function(X){if(X.nextAddress==1)return _.b(X,Promise.all([Yfm(r,I),Yfm(f,I)]),2);C=X.yieldResult;Y=_.E(C);V=Y.next().value;S=Y.next().value;h=V;w=S;if(Math.min.apply(Math,_.Na(w))!==Math.max.apply(Math,_.Na(w))||Math.min.apply(Math,_.Na(h))!==Math.max.apply(Math,_.Na(h)))return X.return(2);if(Math.min.apply(Math,_.Na(w))===Math.min.apply(Math,_.Na(h)))return X.return(1);d=(n=performance.getEntriesByName(r))==null?void 0:n[0];
g=(z=performance.getEntriesByName(f))==null?void 0:z[0];return d&&g?lH$(g)?X.return(1):lH$(d)?X.return(0):X.return(1):X.return(2)})};
HhP=function(){var r;return _.x(function(f){var I=[];var C;var Y,V,S;(Y=C=(Y=AQ().objectRepresentation.streamingData)==null?void 0:(V=Y.formats)==null?void 0:(S=V[0])==null?void 0:S.url)&&Y&&!C.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(Y=Y.replace("initcwndbps","ctier=L&initcwndbps"),C={testUrl:Y,baseUrl:C,method:"GET"}):C=void 0;C&&I.push(C);_.N("ab_net_tp_e")&&I.push({testUrl:_.Yq.location.origin+"/ad_companion",baseUrl:_.Yq.location.origin+"/generate_204",method:"OPTIONS"});if(_.N("ad_net_pb_ab")){var h;
b:{C=/api\/stats\/ads/;var w,n,d,z;Y=(h=AQ().objectRepresentation.adPlacements)==null?void 0:(w=h[0])==null?void 0:(n=w.adPlacementRenderer)==null?void 0:(d=n.renderer)==null?void 0:(z=d.linearAdSequenceRenderer)==null?void 0:z.linearAds;if(Y!=null&&Y.length&&(h=_.F(Y[0],Enq))&&(h=h.pings,h!=null&&h.impressionPings))for(w=[].concat(_.Na(h.impressionPings)),h.progressPings&&(w=[].concat(_.Na(w),_.Na(h.progressPings))),h=_.E(w),w=h.next();!w.done;w=h.next())if(w=w.value,w.baseUrl&&C.test(w.baseUrl)){h=
w.baseUrl.replace("https://www.youtube.com","");break b}h=void 0}h&&I.push({testUrl:_.Yq.location.origin+h,baseUrl:_.Yq.location.origin+"/feed/download",method:"GET"})}if(_.N("ad_net_pb_pbp")){var g;b:{h=/api\/stats\/qoe/;if(w=AQ().objectRepresentation.playbackTracking){n=[];n.push(w==null?void 0:(g=w.videostatsPlaybackUrl)==null?void 0:g.baseUrl);var X;n.push(w==null?void 0:(X=w.videostatsDelayplayUrl)==null?void 0:X.baseUrl);var P;n.push(w==null?void 0:(P=w.videostatsWatchtimeUrl)==null?void 0:
P.baseUrl);var W;n.push(w==null?void 0:(W=w.ptrackingUrl)==null?void 0:W.baseUrl);var m;n.push(w==null?void 0:(m=w.qoeUrl)==null?void 0:m.baseUrl);var v;n.push(w==null?void 0:(v=w.atrUrl)==null?void 0:v.baseUrl);g=_.E(n);for(X=g.next();!X.done;X=g.next())if((X=X.value)&&h.test(X)){g=X.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}g=void 0}g&&I.push({testUrl:_.Yq.location.origin+g,baseUrl:_.Yq.location.origin+"/feed/download",method:"GET"})}I=I.length!==0?I[Math.floor(Math.random()*
I.length)]:void 0;return(r=I)?f.return(VpR(r.testUrl,r.baseUrl,r.method)):f.return(4)})};
_.Q_d=function(){if(_.Yq.xYD===void 0||_.Yq.xYD===null||typeof _.Yq.xYD!=="function")return 2;try{return _.Yq.xYD()===!0?0:1}catch(r){return 0}};
SfE=function(r){switch(r){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Sd(r,"unknown result type")}};
_.xzR=function(r,f){var I=Number(_.Lz("CATSTAT",0));if(f.ufj===void 0)return I;f=f.ufj;r=SfE(r);return I&~(3<<f)|r<<f};
hVR=function(r){var f,I;if((r=(f=r.auxiliaryUi)==null?void 0:(I=f.messageRenderers)==null?void 0:I.bkaEnforcementMessageViewModel)&&r.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return r};
bTP=function(){for(var r=_.E(Object.values(_.w2q)),f=r.next();!f.done;f=r.next())f=f.value,f.isAsync&&f.ufj&&_.Ww("CATSTAT",_.xzR(2,f))};
_.Ib=function(r,f){r=_.Dx("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",r);(f===void 0?0:f)?_.p2E(r,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.r_(_.fJ(),r,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
dzm=function(){if(!nnd){if(Polymer.Base){var r=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{r.apply(this,arguments)}catch(z){_.eH(z)}};
var f=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{f.apply(this,arguments)}catch(z){_.eH(z)}};
var I=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{I.apply(this,arguments)}catch(z){_.eH(z)}};
var C=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{C.apply(this,arguments)}catch(z){_.eH(z)}};
var Y=Polymer.Base._listen,V=new WeakMap;Polymer.Base._listen=function(z,g,X){var P=function(){try{X.apply(this,arguments)}catch(W){_.eH(W)}};
V.set(X,P);Y.call(this,z,g,P)};
var S=Polymer.Base._unlisten;Polymer.Base._unlisten=function(z,g,X){S.call(this,z,g,V.get(X))}}if(Polymer.Async){var h=Polymer.Async,w=h._atEndOfMicrotask;
h._atEndOfMicrotask=function(){try{w.apply(h,arguments)}catch(z){_.eH(z)}}}if(Polymer.RenderStatus){var n=Polymer.RenderStatus,d=n.afterNextRender;
n.afterNextRender=function(z,g,X){d.call(n,z,function(){try{g.apply(this,arguments)}catch(P){_.eH(P)}},X)}}nnd=!0}};
_.CJ=function(r){var f=r?_.Cf(r):"";if(f){if(f.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(f.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(f.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(f.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(f.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(f.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";f=f.toLowerCase();if(f==="/")return"home";if(f===
"/channel_memberships")return"channel-memberships-shopfront";if(f.indexOf("/feed/trending")===0)return"trending";if(f.indexOf("/feed/explore")===0)return"explore";if(f.indexOf("/live")===0)return"live";if(f.indexOf("/results")===0)return"search";if(f.indexOf("/sports")===0)return"sports";if(f.indexOf("/fashion")===0||f.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(f))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(f))return"learning";
if(f.indexOf("/channel/")===0||f.indexOf("/user/")===0||f.indexOf("/gaming")===0||f.indexOf("/post/")===0)return"channel";if(zVc(r))return"show";if(f==="/playlist"||f.indexOf("/playlist/")===0||f==="/view_play_list"||f.indexOf("/view_play_list/")===0||f.indexOf("/show/")===0)return"playlist";if(f==="/feed/history"||f.indexOf("/feed/history/")===0)return"history";if(f==="/new")return"labs";if(f==="/feed/subscriptions")return"subscriptions";if(f.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(f==="/history_controls")return"standalone";if(f.indexOf("/account")===0||f==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(f.indexOf("/paid_memberships")===0||f.indexOf("/refund")===0||f.indexOf("/purchases")===0||f.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(f.indexOf("/product")===0)return"yts-products";if(f.indexOf("/premium")===0||f.indexOf("/musicpremium")===0)return f.indexOf("/premium/offers")===0||f.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(f===
"/cart/checkout"||f==="/cart")return"ypc-checkout";if(f.indexOf("/feed/downloads")===0||f.indexOf("/redeem")===0||f.indexOf("/reporthistory")===0)return"browse";if(f.indexOf("/hashtag")===0)return"hashtag-landing-page";if(f.indexOf("/handle")===0)return"handle";if(f.indexOf("/source")===0)return"audio-pivot";if(f.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(f.indexOf("/playables")===0)return"playables";if(f.indexOf("/create/live/join")===0)return"open-in-app";if(f.indexOf("/shorts")===
0)return"shorts";if(f.indexOf("/feed/channels")===0)return"subscriptions-channels";(f=r?_.Cf(r):"")&&f.indexOf("/watch")===0&&_.N("web_watch_enable_learning_journey")?(r=_.Kz(r),r=!!r.list&&r.list.indexOf("LJPP")===0):r=!1;if(r)return"learning_journey_watch"}};
_.YO=function(r){var f,I;(r=(I=_.F(r==null?void 0:r.commandMetadata,_.oo))==null?void 0:I.url)&&(f=_.CJ(r));return f};
zVc=function(r){var f=r?_.Cf(r):"";if(!f)return!1;f=f.toLowerCase();return f.indexOf("/show/")===0||f.indexOf("/playlist")===0&&(r=_.Kz(r),r.list&&r.list.indexOf("EL")===0)?!0:!1};
Ei=function(r){var f="unknown",I;var C=((I=_.F(r==null?void 0:r.commandMetadata,_.oo))==null?void 0:I.webPageType)||"";C?(I=C.toLowerCase(),I.startsWith("web_page_type_")&&(I=I.slice(14))):I=C;I&&MpR[I.toUpperCase()]?f=MpR[I.toUpperCase()]:_.F(r,_.lA)||_.F(r,gnu)?f="browse":_.F(r,_.VB)?f="search":_.F(r,_.vj)&&(f="watch");f==="watch"&&_.YO(r||null)==="learning_journey_watch"&&(f="learning_journey_watch");f==="unknown"&&_.t7(Error("Kf`"+JSON.stringify({clickTrackingParams:r==null?void 0:r.clickTrackingParams,
commandMetadata:r==null?void 0:r.commandMetadata,allEndpointKeys:Object.keys(r||[])})));return f};
_.Sl=function(r){if(!_.aHK||r)_.aHK=_.Sj();return _.aHK};
_.X2R=function(r){return!!_.F(r,_.vj)||!!_.F(r,_.xO)&&_.N("kevlar_enable_shorts_prefetch")};
_.NJm=function(r,f){r=_.F(r,_.vj)||_.F(r,_.xO);return"v"+r.videoId+(r.playlistId?"-pl"+r.playlistId:"")+(f?"-an1":"")+(r.params?"-pr"+r.params:"")};
Ful=function(r){var f=_.Bw("web_pbj_log_warning_rate",0);f=f>0&&Math.random()<f;if(!_.F(r,_.xO))return f&&_.t7(Error("Nf")),!1;var I;return _.N("shorts_controller_retrieve_seedless_sequence_v2")&&((I=_.F(r,_.xO))==null?void 0:I.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:$zq(r)?!0:(f&&_.t7(Error("Of")),!1)};
$zq=function(r){var f=(_.F(r,_.vj)||_.F(r,_.xO)).videoId;if(!f||!Pnd.test(f))return!1;var I;return(r=(I=_.F(r.commandMetadata,_.oo))==null?void 0:I.url)&&(r.includes(f)||r.startsWith("/clip"))?!0:!1};
_.TJB=function(){var r=_.xI();return r.getFlag(192)?r.getFlag(190):!(_.N("web_watch_cinematics_disabled_by_default")||_.N("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&tpB())};
_.hN=function(r,f,I){var C={};C.currentUrl=f;C.vis=r.vis!==void 0?r.vis:0;C.splay=!1;f=_.xI();C.autoCaptionsDefaultOn=f.getFlag(66);f.getFlag(141)?f.getFlag(140)?C.autonavState="STATE_OFF":C.autonavState="STATE_ON":C.autonavState="STATE_NONE";C.html5Preference="HTML5_PREF_WANTS";isNaN(_.Lz("STS"))||(C.signatureTimestamp=_.Lz("STS"));r.autonav&&(C.autoplay=!0,C.autonav=!0);r.mutedAutoplay&&(C.autoplay=!0,C.mutedAutoplay=!0);r.inlinePlayback&&(C.autoplay=!0,C.autonav=!1,C.isInlineUnmutedPlayback=!!r.inlineUnmuted);
C.referer=I;C.lactMilliseconds=r.lact!==void 0?r.lact.toString():"-1";_.N("enable_unknown_lact_fix_on_html5")&&C.lactMilliseconds==="-1"&&_.t7(new _.nf("Unknown LACT is set in playbackContext.",{"lact in tempData":r.lact||"undefined",autonav:r.autonav||"undefined"}));r={};f.getFlag(194)&&(r.hasShownAmbientMode=!0);f.getFlag(192)&&(r.hasToggledOffAmbientMode=!0);_.TJB()&&(r.watchAmbientModeEnabled=!0);C.watchAmbientModeContext=r;return C};
ciK=function(r){var f={},I=r.pbis||0;I&&(f.playbackBeginsInSeconds=I);r.prefetch_reason&&r.prefetch_reason==="hc_pbis"&&(f.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return f};
_.Wuu=function(r){var f=new w_(_.Lz("ONE_PICK_URL",""));f.urlParamMap_.set("hostId",r);(r=_.Lz("GAPI_LOCALE"))&&f.urlParamMap_.set("hl",r);(r=_.Lz("SESSION_INDEX"))&&f.urlParamMap_.set("authuser",r);(r=_.Lz("DELEGATED_SESSION_ID"))&&f.urlParamMap_.set("groupId",r);return f};
mzB=function(){var r=_.a(),f=r.resolve(_.bA);r=r.resolve(_.pJ);return new Lud(f,r)};
Jiu=function(r){if(window.IntersectionObserver)return new eVK(r,400);throw new TypeError("Vf");};
HTu=function(){var r=Hammer.TouchAction,f=r.prototype.preventDefaults;r.prototype.preventDefaults=function(I){var C=this.actions.indexOf("pan-down")>-1;if(!C)return f.call(this,I);if(!jOm){var Y=I.srcEvent;I=I.direction;var V;if((V=this.manager)==null?0:V.session.prevented)Y.preventDefault();else if(C&&I&Hammer.DIRECTION_DOWN)return this.preventSrc(Y)}}};
iTU=function(r){if(!r||r.size===0)return Hammer.DIRECTION_ALL;if(r.size===2){if(r.has("up")&&r.has("down"))return Hammer.DIRECTION_VERTICAL;if(r.has("right")&&r.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(r.size===1){if(r.has("up"))return Hammer.DIRECTION_UP;if(r.has("down"))return Hammer.DIRECTION_DOWN;if(r.has("right"))return Hammer.DIRECTION_RIGHT;if(r.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.vnl=function(){return RVK?Promise.resolve(RVK):new Promise(function(r,f){var I=self.indexedDB.open("swpushnotificationsdb");I.onerror=f;I.onsuccess=function(){var C=I.result;if(C.objectStoreNames.contains("swpushnotificationsstore"))RVK=C,r(RVK);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.vnl()};
I.onupgradeneeded=KuE})};
KuE=function(r){r=r.target.result;r.objectStoreNames.contains("swpushnotificationsstore")&&r.deleteObjectStore("swpushnotificationsstore");r.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
UzU=function(r){var f=yiw(),I;return _.x(function(C){switch(C.nextAddress){case 1:return _.l_(C,2),_.b(C,r.match(f,{cacheName:"yt-appshell-assets"}),4);case 4:I=C.yieldResult;_.Hd(C,3);break;case 2:_.ha(C);case 3:return C.return(I)}})};
yiw=function(){var r=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?sOl.registration.scope:OTB;r.endsWith("/")&&(r=r.slice(0,-1));return r+"/app_shell_home"};
onR=function(r){r.map(function(f){return f.source}).join("|")};
_.QOU=function(r){return _.x(function(f){return f.return(UzU(r))})};
AiR=function(){var r=window.caches,f;return _.x(function(I){if(I.nextAddress==1)return _.b(I,_.QOU(r),2);f=I.yieldResult;return I.return(!!f)})};
Dzd=function(){_.x(function(r){if(r.nextAddress==1){if(ZTK)return r.jumpTo(0);ZTK=!0;if(_.N("enable_system_health_primes_monitoring"))return _.ff(GJc,3E4),kJc(),r.return();if(!(Math.random()<_.Bw("web_system_health_fraction")))return r.jumpTo(0);BJw={heightPixels:screen.height,widthPixels:screen.width};nJ&&!isNaN(nJ.jsHeapSizeLimit)&&(BJw.memoryTotalKbytes=String(Math.round(nJ.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(BJw.devicePixelRatio=window.devicePixelRatio);return _.b(r,qfK(),4)}_.ff(GJc,
3E4);return _.b(r,uGB(),0)})};
qfK=function(){return _.x(function(r){if(r.nextAddress==1)return d_.intersectionObserverPresent="IntersectionObserver"in window,d_.serviceWorkerPresent="serviceWorker"in navigator,d_.webSharePresent="share"in navigator,d_.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,d_.cacheStoragePresent="caches"in window,d_.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,d_.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
d_.webkitTemporaryStoragePresent="webkitTemporaryStorage"in zF&&zF.webkitTemporaryStorage&&"queryUsageAndQuota"in zF.webkitTemporaryStorage,d_.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.b(r,Bdw(),2);d_.indexedDbPresent=r.yieldResult;d_.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;d_.broadcastChannelPresent="BroadcastChannel"in window;d_.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(d_.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,d_.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.wO(r)})};
GJc=function(){var r=9E4+Math.random()*2E3;_.Zs()>r||(_.N("enable_system_health_primes_monitoring")?kJc():uGB())};
uGB=function(){var r;return _.x(function(f){if(f.nextAddress==1)return _.b(f,rWK(),2);r=f.yieldResult;_.NW("systemHealthCaptured",r);_.wO(f)})};
kJc=function(){var r={metric:{}},f=fLl();f.networkEvents.length&&(r.metric.networkEvents=ILc(f));_.NW("systemHealthCaptured",r)};
rWK=function(){var r,f,I,C,Y,V,S,h,w,n;return _.x(function(d){switch(d.nextAddress){case 1:r={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)};f=window.screen;_.N("enable_is_extended_monitoring")&&f&&"isExtended"in f&&(r.isExtended=!!f.isExtended);I={metric:{staticContext:BJw,dynamicContext:r,webMetric:CQR,webApiSupport:d_}};
if(C=_.t1())I.csn=C;nJ&&(I.metric.webMetric.currentHeapKbytes=Math.round(nJ.usedJSHeapSize/1E3));window.matchMedia&&(I.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,I.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,I.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in zF&&typeof zF.getBattery==="function")){d.jumpTo(2);break}return _.b(d,zF.getBattery(),3);case 3:if(Y=
d.yieldResult)I.metric.dynamicContext.chargingStatus=Y.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(I.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(d_.storageEstimatePresent)return _.b(d,navigator.storage.estimate(),8);if(!d_.webkitTemporaryStoragePresent){d.jumpTo(5);break}return _.b(d,YSB(),7);case 7:V=d.yieldResult;d.jumpTo(5);break;case 8:V=d.yieldResult;case 5:return I.metric.dynamicContext.deviceStorageQuotaMbytes=((S=V)==null?0:S.quota)?String(Math.round(V.quota/
1048576/10)*10):"-1",I.metric.dynamicContext.deviceStorageUsageMbytes=((h=V)==null?0:h.usage)?String(Math.round(V.usage/1048576/10)*10):"-1",w=I.metric.dynamicContext,_.b(d,AiR(),9);case 9:return w.hasAppShell=d.yieldResult,n=fLl(),n.networkEvents.length&&(I.metric.networkEvents=ILc(n)),d.return(I)}})};
YSB=function(){return new Promise(function(r){var f;d_.webkitTemporaryStoragePresent&&(f=zF.webkitTemporaryStorage)!=null&&f.queryUsageAndQuota?zF.webkitTemporaryStorage.queryUsageAndQuota(function(I,C){r({usage:I,quota:C})}):r(void 0)})};
_.MG=function(r){r&=16777215;r=[(r&16711680)>>16,(r&65280)>>8,r&255];return lL$(r[0],r[1],r[2])};
_.g_=function(r){r=[(r&16711680)>>>16,(r&65280)>>>8,r&255,(r&4278190080)>>>24];var f=_.VWU(r,function(I){return I==(I&255)});
r[3]=(r[3]/255).toFixed(3);if(!f)throw Error("Wf`"+r.join(","));return"rgba("+r.join(",")+")"};
_.EGR=function(r){return[(r&16711680)>>>16,(r&65280)>>>8,r&255]};
_.SS$=function(r){r=r.map(function(f){f/=255;return f<=.03928?f/12.92:Math.pow((f+.05)/1.05,2.4)});
return r[0]*.2126+r[1]*.7152+r[2]*.0722};
ab=function(r,f){r=_.EGR(r);return"rgba("+r[0]+", "+r[1]+", "+r[2]+", "+f+")"};
_.xMK=function(){try{return!!self.localStorage}catch(r){return!1}};
pHR=function(){if(hIU())_.t7(Error("Xf"));else{var r=document.createElement("iframe");r.style.display="none";var f=f===void 0?window.location.href:f;var I=_.PW(_.Lz("PERSIST_IDENTITY_IFRAME_URL"));f=I?I:(new URL(f)).host.indexOf("studio")===0?_.u_(wHR,"persist_identity"):_.u_(bYR,"persist_identity");_.a$c(r,1,f);r.id="persist_identity";var C;(C=document.body)==null||C.appendChild(r)}};
hIU=function(){var r=nGK;r||(r=document.querySelector("#persist_identity"));return r};
dMw=function(){var r=!1;try{r=!!window.sessionStorage.getItem("session_logininfo")}catch(f){r=!0}return(_.Lz("INNERTUBE_CLIENT_NAME")==="WEB"||_.Lz("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&r};
zIc=function(r,f){if(!dMw())return!1;f||(f=_.Lz("LOGIN_INFO"));return f?(r.session_logininfo=f,!0):!1};
gGR=function(r,f){r=r===void 0?!1:r;if((f===void 0||!f)&&MWP!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.mO("LOG_STICKINESS",!1)){f=_.t1();var I=_.Pj(),C={identityStickinessData:{initialState:MWP}};f&&I&&_.vF(f,I,C)}if(f=hIU())if(I=f.src?(new URL(f.src)).origin:"*",r){var Y;(Y=f.contentWindow)==null||Y.postMessage({action:"clear"},I)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(r=window.sessionStorage.getItem("session_logininfo"))){var V;(V=f.contentWindow)==null||V.postMessage({loginInfo:r},I)}};
_.Xd=function(r){r=r===void 0?!0:r;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.Ww("LOGIN_INFO",""),r&&window.sessionStorage.setItem("from_switch_account","1"),gGR(!0,r)}catch(f){}};
aLK=function(r){r&&(r.startsWith("https://accounts.google.com/AddSession")?_.Xd():r.startsWith("https://accounts.google.com/ServiceLogin")?_.Xd():r.startsWith("https://myaccount.google.com")&&_.Hh(r).getPath().endsWith("/youtubeoptions")&&_.Xd())};
NG=function(r,f){aLK(r);if(_.mO("LOGGED_IN",!0)&&dMw()){var I=MmR(r);I==null&&(I={});zIc(I,f)&&_.sl(r,I)}};
XHP=function(){function r(f){for(f=f.target;f&&f.nodeName!=="A";)if(f=f.parentNode,!(f&&f instanceof HTMLElement))return;if(f&&!f.hasAttribute("download")&&f.getAttribute("rel")!=="external"&&f.href)return f.href}
document.addEventListener("mousedown",function(f){f.button!==0&&(f=r(f))&&NG(f)});
document.addEventListener("click",function(f){(f=r(f))&&NG(f)})};
FBK=function(){var r=new Nvd;try{if(_.mO("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(h){r.increment(5,!1);return}if(_.Lz("LOGIN_INFO")){var f=$MB?$MB:window.location;_.Lz("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&pHR();var I=MmR(f.href);I==null&&(I={});var C=I.session_logininfo,Y=Number(window.sessionStorage.getItem("stickiness_reload")),V=C===_.Lz("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
Y>=2||V)Y>=2?r.increment(2,V):V?r.increment(7,V):window.sessionStorage.getItem("session_logininfo")||(r.increment(3,V),MWP="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Lz("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Lz("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))r.increment(4,V),window.sessionStorage.removeItem("stickiness_reload");
else if(Y<2){window.sessionStorage.setItem("stickiness_reload",String(Y+1));var S=f.href;S=_.Ol(S,"sttick");NG(S,window.sessionStorage.getItem("session_logininfo"));S=_.yM(S,{sttick:Y});r.increment(Y,V);_.Qs(f,S)}}else r.increment(6,!1)}else _.Xd(!1)}catch(h){}};
_.$O=function(r,f,I,C,Y){f=f===void 0?{}:f;I=I===void 0?"":I;C=C===void 0?window:C;r=_.UQ(r,f);NG(r);I=_.gn(r+I,Y);_.Qs(C.location,I)};
PQR=function(r){if(r.urlEndpoint){if(r=_.Kz(r.urlEndpoint.url),r.adurl)return An(r.adurl)}else if(r.watchEndpoint)return"//www.youtube.com/watch?v="+r.watchEndpoint.videoId;return null};
tWP=function(r){if(!r||!r.reportingPings)return null;var f={};r.reportingPings.forEach(function(I){I.pingType in f?f[I.pingType].push(I.url):f[I.pingType]=[I.url]});
return{adpings:PKq(f)}};
_.Pt=function(r){r=r===void 0?!1:r;var f=_.xI(),I="USER_INTERFACE_THEME_LIGHT";f.getFlag(165)?I="USER_INTERFACE_THEME_DARK":f.getFlag(174)?I="USER_INTERFACE_THEME_LIGHT":_.Fd()&&(I="USER_INTERFACE_THEME_DARK");return r?I:TvU()||I};
_.cWE=function(){return!_.N("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Fd=function(){return _.cWE()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.tN=function(){var r=_.xI();return _.cWE()&&!r.getFlag(165)&&!r.getFlag(174)};
TvU=function(){var r=r===void 0?window.location.href:r;if(_.N("kevlar_disable_theme_param"))return null;var f=_.Cf(r);if(_.WBE(f))return"USER_INTERFACE_THEME_DARK";try{var I=_.Kz(r).theme;return LBK.get(I)||null}catch(C){}return null};
_.WBE=function(r){return _.N("enable_dark_theme_only_on_shorts")?!(r==null||!r.startsWith("/shorts/")):!1};
_.JWc=function(r,f,I,C,Y){f=f===void 0?!1:f;I=I===void 0?!1:I;var V=_.Lz("INNERTUBE_CONTEXT");if(!V)return _.Fo(Error("ag")),{};V=(0,_.X0.unsafeClone)(V);_.N("web_no_tracking_params_in_shell_killswitch")||delete V.clickTracking;V.client||(V.client={});var S=V.client;S.clientName==="MWEB"&&S.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(S.clientFormFactor=_.Lz("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");S.screenWidthPoints=window.innerWidth;S.screenHeightPoints=window.innerHeight;S.screenPixelDensity=
Math.round(window.devicePixelRatio||1);S.screenDensityFloat=window.devicePixelRatio||1;S.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());S.userInterfaceTheme=_.Pt();if(!f){var h=_.M5c();h&&(S.connectionType=h);_.N("web_log_effective_connection_type")&&(h=aoK())&&(V.client.effectiveConnectionType=h)}var w;if(_.N("web_log_memory_total_kbytes")&&((w=_.Yq.navigator)==null?0:w.deviceMemory)){var n;w=(n=_.Yq.navigator)==null?void 0:n.deviceMemory;V.client.memoryTotalKbytes=""+w*1E6}f&&C&&!_.N("web_it_context_set_original_url_ks")&&
(S.originalUrl=mMm(_.Yq.location.href,C).toString());_.N("web_gcf_hashes_innertube")&&(h=moR())&&(n=h.coldConfigData,w=h.coldHashData,h=h.hotHashData,V.client.configInfo=V.client.configInfo||{},n&&(V.client.configInfo.coldConfigData=n),w&&(V.client.configInfo.coldHashData=w),h&&(V.client.configInfo.hotHashData=h));n=_.Kz(_.Yq.location.href);!_.N("web_populate_internal_geo_killswitch")&&n.internalcountrycode&&(S.internalGeo=n.internalcountrycode);!_.N("web_populate_client_screen_killswitch")&&Y&&(S.clientScreen=
Y);S.clientName==="MWEB"||S.clientName==="WEB"?(S.mainAppWebInfo={graftUrl:C||_.Yq.location.href},_.N("kevlar_woffle")&&_.TF.instance&&(C=_.TF.instance,S.mainAppWebInfo.pwaInstallabilityStatus=!C.appInstalledEventFired&&C.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),S.mainAppWebInfo.webDisplayMode=$ow(),S.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):S.clientName==="TVHTML5"&&(!_.N("web_lr_app_quality_killswitch")&&
(C=_.Lz("LIVING_ROOM_APP_QUALITY"))&&(S.tvAppInfo=Object.assign(S.tvAppInfo||{},{appQuality:C})),C=_.Lz("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(S.tvAppInfo=Object.assign(S.tvAppInfo||{},{certificationScope:C}));!_.N("web_populate_time_zone_itc_killswitch")&&(C=dyc())&&(S.timeZone=C);(C=RRR())?S.experimentsToken=C:delete S.experimentsToken;S=vfw();C=_.eIw();C=(0,_.X0.getValues)(C.tokenJars);V.request=Object.assign({},V.request,{internalExperimentFlags:S,consistencyTokenJars:C});!_.N("web_prequest_context_killswitch")&&
(S=_.Lz("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(V.request.externalPrequestContext=S);C=_.xI();S=C.getFlag(58);C=C.get("gsml","");V.user=Object.assign({},V.user);S&&(V.user.enableSafetyMode=S);C&&(V.user.lockedSafetyMode=!0);_.N("warm_op_csn_cleanup")?I&&(f=_.t1())&&(V.clientScreenNonce=f):!f&&(f=_.t1())&&(V.clientScreenNonce=f);r&&(V.clickTracking={clickTrackingParams:r});if(r=_.jH("yt.mdx.remote.remoteClient_"))V.remoteClient=r;_.ct.getInstance().setLocationOnInnerTubeContext(V);try{var d=G5$(),
z=d.bid;delete d.bid;V.adSignalsInfo={params:[],bid:z};for(var g=_.E(Object.entries(d)),X=g.next();!X.done;X=g.next()){var P=_.E(X.value),W=P.next().value,m=P.next().value;d=W;z=m;r=void 0;(r=V.adSignalsInfo.params)==null||r.push({key:d,value:""+z})}var v,O;if(((v=V.client)==null?void 0:v.clientName)==="TVHTML5"||((O=V.client)==null?void 0:O.clientName)==="TVHTML5_UNPLUGGED"){var k=_.Lz("INNERTUBE_CONTEXT");k.adSignalsInfo&&(V.adSignalsInfo.advertisingId=k.adSignalsInfo.advertisingId,V.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",V.adSignalsInfo.limitAdTracking=k.adSignalsInfo.limitAdTracking)}}catch(Z){_.Fo(Z)}return V};
_.Wt=function(){return{isShellLoad:_.mO("IS_SHELL_LOAD",!1)}};
HYU=function(){navigator.serviceWorker.getRegistrations().then(function(r){r.forEach(jNE)})};
jNE=function(r){r&&_.iYu(RIl,r.scope)};
_.iYu=function(r,f){f={scope:f||_.qC("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.x1(r),f)};
LJ=function(r,f,I,C){if(f&&f.serializedYpcCujLoggingParams){if(I){var Y={};Y.transactionErrorType=I;C&&(Y.errorMessage=C);f.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:Y}}}I={};I.ypcCujContext=f;r=_.Dx("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",r,I);_.r_(_.fJ(),r,"FLOW_TYPE_YPC_ACQUISITION")}};
_.vGK=function(r,f,I,C){var Y={};Y.serializedTransactionFlowLoggingParams=f;I&&(Y.errorType=I);C&&(Y.errorMessage=C);_.NW(r,Y);_.$l()};
_.KBl=function(r){r&&_.vGK("transactionFlowStarted",r)};
_.yWl=function(r){r&&_.vGK("transactionFlowCancelled",r)};
_.m4=function(r,f,I){f&&_.vGK("transactionFlowFailed",f,r,I)};
_.el=function(){this.megabloxUrl_=null};
_.JN=function(r){try{var f=UMP==null?void 0:UMP.composedPath(r)}catch(I){f=r.composedPath?r.composedPath():[]}return f&&f.length>0?f:r.composedPath?r.composedPath():[]};
_.jl=function(r){return _.JN(r)[0]};
_.Ht=function(r){if(!(r instanceof Element))return null;r=r.classList?Array.from(r.classList):void 0;if(!r)return null;var f=r.indexOf("style-scope");return f>-1&&f+1<r.length?r[f+1]:null};
iA=function(r){if(!(r instanceof HTMLElement))return null;var f=r&&(r.$$||r.polymerController)?r.tagName.toLowerCase():null;return f?f:_.Ht(r)};
sNu=function(r,f){return r.replace(/[^a-z]*[^\s]+/g,function(I){return I+".style-scope."+f})};
OYE=function(r,f){return f?r.split(",").map(function(I){return sNu(I.trim(),f)}).join(", "):r};
_.Rb=function(r){var f,I,C,Y;return(Y=(C=(I=(f=r.root)!=null?f:r.shadowRoot)!=null?I:r.__shady_native_shadowRoot)!=null?C:r.__shady_shadowRoot)!=null?Y:r};
vt=function(r){return r instanceof ShadowRoot?ShadowRoot:r instanceof DocumentFragment?DocumentFragment:r instanceof Document?Document:HTMLElement};
oGP=function(r){var f,I,C;return(C=(I=(f=r.parentElement)!=null?f:r.__shady_native_parentElement)!=null?I:r.__shady_parentElement)!=null?C:null};
QNR=function(r){var f,I,C;return(C=(I=(f=r.parentNode)!=null?f:r.__shady_native_parentNode)!=null?I:r.__shady_parentNode)!=null?C:null};
AW$=function(r){var f,I,C;return(C=(I=(f=r.__shady_parentNode)!=null?f:r.__shady_native_parentNode)!=null?I:r.parentNode)!=null?C:null};
ZYR=function(r){var f,I;return(I=(f=QNR(r))!=null?f:r.host)!=null?I:null};
GDB=function(r){var f,I,C;return(C=(I=(f=r.nextSibling)!=null?f:r.__shady_native_nextSibling)!=null?I:r.__shady_nextSibling)!=null?C:null};
kDc=function(r){var f,I,C;return(C=(I=(f=r.previousSibling)!=null?f:r.__shady_native_previousSibling)!=null?I:r.__shady_previousSibling)!=null?C:null};
Bvw=function(r){var f,I,C;return(C=(I=(f=r.nextElementSibling)!=null?f:r.__shady_native_nextElementSibling)!=null?I:r.__shady_nextElementSibling)!=null?C:null};
qSP=function(r){var f,I,C;return(C=(I=(f=r.previousElementSibling)!=null?f:r.__shady_native_previousElementSibling)!=null?I:r.__shady_previousElementSibling)!=null?C:null};
uI$=function(r){var f,I,C;return new Set([].concat(_.Na((f=r.children)!=null?f:[]),_.Na((I=r.__shady_native_children)!=null?I:[]),_.Na((C=r.__shady_children)!=null?C:[])))};
DMR=function(r){var f,I,C;return new Set([].concat(_.Na((f=r.childNodes)!=null?f:[]),_.Na((I=r.__shady_native_childNodes)!=null?I:[]),_.Na((C=r.__shady_childNodes)!=null?C:[])))};
rYR=function(r){if(!r)return null;var f=_.Ht(r);if(!f){var I;return(I=Node.prototype.getRootNode)==null?void 0:I.call(r)}f=f.toUpperCase();for(r=oGP(r);r&&r.tagName!==f;)r=oGP(r);return r?_.Rb(r):null};
fPl=function(r){for(;r&&!(r instanceof HTMLElement);)r=ZYR(r);return r};
IPq=function(r){var f=fPl(r);return r===f?_.Ht(r):f?iA(f):null};
CaK=function(r){return(r=fPl(r))?iA(r):null};
YTK=function(r){if(r instanceof Comment)return!1;if(r instanceof Text){var f,I;if(((I=(f=r.textContent)==null?void 0:f.trim())!=null?I:"")==="")return!1}return!0};
KJ=function(r,f,I){var C=f(r);for(I=I===void 0?CaK(r):I;C&&(IPq(C)!==I||!YTK(C));)r=C,C=f(r);return C};
lPR=function(r,f,I){if(!f)return null;r=CaK(r);return IPq(f)===r&&YTK(f)?f:KJ(f,I,r)};
Vcd=function(r){return KJ(r,AW$,_.Ht(r))};
E0$=function(r){return KJ(r,Bvw)};
STR=function(r){return KJ(r,GDB)};
xVm=function(r){return KJ(r,qSP)};
hjw=function(r){return KJ(r,kDc)};
wrK=function(r){return lPR(r,r.firstChild||r.__shady_native_firstChild||r.__shady_firstChild||null,GDB)};
b_R=function(r){var f,I,C;var Y=(C=(I=(f=r.firstElementChild)!=null?f:r.__shady_native_firstElementChild)!=null?I:r.__shady_firstElementChild)!=null?C:null;return lPR(r,Y,Bvw)};
prK=function(r){var f,I,C;var Y=(C=(I=(f=r.lastChild)!=null?f:r.__shady_native_lastChild)!=null?I:r.__shady_lastChild)!=null?C:null;return lPR(r,Y,kDc)};
n0U=function(r){var f,I,C;var Y=(C=(I=(f=r.lastElementChild)!=null?f:r.__shady_native_lastElementChild)!=null?I:r.__shady_lastElementChild)!=null?C:null;return lPR(r,Y,qSP)};
dVK=function(r){var f=CaK(r);return Array.from(DMR(r)).filter(function(I){return IPq(I)===f})};
zjd=function(r){var f=iA(r);return Array.from(uI$(r)).filter(function(I){return _.Ht(I)===f})};
_.yB=function(r,f,I){if(r instanceof HTMLElement&&_.Ht(r)===I){var C=Array.from(r.classList).indexOf("style-scope");if(C===-1)r.classList.add("style-scope"),r.classList.add(f);else if(!(C+1>=r.classList.length)){C=r.classList[C+1];var Y,V;r==null||(Y=r.classList)==null||(V=Y.replace)==null||V.call(Y,C,f)}}if(r instanceof HTMLElement||r instanceof DocumentFragment)for(Y=_.E(uI$(r)),V=Y.next();!V.done;V=Y.next())_.yB(V.value,f,I);return r};
Ui=function(r,f){if(r instanceof HTMLElement&&_.Ht(r)===f){var I=Array.from(r.classList).indexOf("style-scope");I===-1||I+1>=r.classList.length||r.classList.remove("style-scope",r.classList[I+1])}if(r instanceof HTMLElement||r instanceof DocumentFragment){I=_.E(r.children);for(var C=I.next();!C.done;C=I.next())Ui(C.value,f)}return r};
_.McR=function(r,f){return vt(r).prototype.appendChild.call(r,f)};
g0$=function(r,f){if(r===f)return!0;r=DMR(r);return Array.from(r).some(function(I){return g0$(I,f)})};
_.e=function(r,f){if(r instanceof si)return r;(f==null?0:f.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(r,"ownerDocument")&&Object.defineProperty(r,"ownerDocument",{get:function(){return window.document}});
return new si(r)};
XrR=function(){var r=si.prototype,f=[].concat(_.Na(aPm?[]:["getRootNode"]),["setAttribute","removeAttribute"]);f=_.E(f);for(var I=f.next(),C={};!I.done;C={method$jscomp$50:void 0},I=f.next())C.method$jscomp$50=I.value,r[C.method$jscomp$50]=function(Y){return function(){return this.host[Y.method$jscomp$50].apply(this.host,arguments)}}(C)};
$Vl=function(){var r=si.prototype,f=[].concat(_.Na(aPm?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.Na(NDK?[]:["querySelector","querySelectorAll"]));f=_.E(f);for(var I=f.next(),C={};!I.done;C={method$jscomp$51:void 0},I=f.next())C.method$jscomp$51=I.value,r[C.method$jscomp$51]=function(Y){return function(){return this.root[Y.method$jscomp$51].apply(this.root,arguments)}}(C)};
tcm=function(){var r=si.prototype,f=[].concat(_.Na(FJP?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.Na(PaU?[]:["parentNode"]));f=_.E(f);for(var I=f.next(),C={};!I.done;C={prop$jscomp$62:void 0},I=f.next())C.prop$jscomp$62=I.value,Object.defineProperty(r,C.prop$jscomp$62,{get:function(Y){return function(){return this.host[Y.prop$jscomp$62]}}(C),
configurable:!0})};
WJK=function(){var r=si.prototype,f=["activeElement"].concat(_.Na(FJP?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.Na(TDd?[]:["children"]),_.Na(cYc?[]:["lastChild"]));f=_.E(f);for(var I=f.next(),C={};!I.done;C={prop$jscomp$63:void 0},I=f.next())C.prop$jscomp$63=I.value,Object.defineProperty(r,C.prop$jscomp$63,{get:function(Y){return function(){return this.root[Y.prop$jscomp$63]}}(C),
configurable:!0})};
LJl=function(){for(var r=si.prototype,f=_.E(["innerHTML","textContent"]),I=f.next(),C={};!I.done;C={prop$jscomp$64:void 0},I=f.next())C.prop$jscomp$64=I.value,Object.defineProperty(r,C.prop$jscomp$64,{get:function(Y){return function(){return this.root[Y.prop$jscomp$64]}}(C),
set:function(Y){return function(V){this.root[Y.prop$jscomp$64]=V}}(C),
configurable:!0})};
mVK=function(r){var f=si.prototype;r=_.E(Object.entries(r));for(var I=r.next(),C={};!I.done;C={fn$jscomp$362:void 0},I=r.next()){var Y=_.E(I.value);I=Y.next().value;Y=Y.next().value;C.fn$jscomp$362=Y;f[I]=function(V){return function(){return V.fn$jscomp$362.apply(null,[this.host.node||this.host].concat(_.Na(arguments)))}}(C)}};
JYB=function(){for(var r=si.prototype,f=_.E(Object.entries(ejP)),I=f.next(),C={};!I.done;C={fn$jscomp$363:void 0},I=f.next()){var Y=_.E(I.value);I=Y.next().value;Y=Y.next().value;C.fn$jscomp$363=Y;Object.defineProperty(r,I,{get:function(V){return function(){return V.fn$jscomp$363.apply(null,[this.host.node||this.host].concat(_.Na(arguments)))}}(C),
configurable:!0})}};
_.Oi=function(r){return r instanceof j9R||r instanceof Document?r:new j9R(r)};
H_K=function(){for(var r=j9R.prototype,f=_.E("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),I=f.next(),C={};!I.done;C={method$jscomp$52:void 0},I=f.next())C.method$jscomp$52=I.value,r[C.method$jscomp$52]=function(Y){return function(){return HTMLElement.prototype[Y.method$jscomp$52].call.apply(HTMLElement.prototype[Y.method$jscomp$52],[this.node].concat(_.Na(arguments)))}}(C)};
i_B=function(){for(var r=j9R.prototype,f=_.E("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),I=f.next(),C={};!I.done;C={prop$jscomp$65:void 0},I=f.next())C.prop$jscomp$65=I.value,Object.defineProperty(r,C.prop$jscomp$65,{get:function(Y){return function(){var V;return(V=this.node["__shady_native_"+Y.prop$jscomp$65])!=null?V:this.node[Y.prop$jscomp$65]}}(C),
configurable:!0})};
_.ob=function(r,f,I){I===void 0&&(I=!r.classList.contains(f));I?r.classList.add(f):r.classList.remove(f)};
_.QB=function(r,f,I){I===void 0&&(I=!r.hasAttribute(f));if(f==="class")throw Error("eg");I?_.Oi(r).setAttribute(f,""):_.Oi(r).removeAttribute(f)};
RjK=function(r){return(r.localName!=="slot"?[]:(0,_.AN)(r).assignedNodes({flatten:!0})).filter(function(f){return f.nodeType===Node.ELEMENT_NODE})};
_.v0d=function(r){return(r=_.e(r).querySelector("slot"))&&r.localName==="slot"?RjK(r):[]};
_.Zh=function(r,f){window.ShadyCSS&&window.ShadyCSS.styleSubtree(r,f)};
KJU=function(r,f){var I=f.bind(r);return function(C){I(C,C.detail)}};
_.GF=function(r,f){var I=yYd.get(r);I||(I=new WeakMap,yYd.set(r,I));if(I.has(f))return I.get(f);if(_.N("web_fi_listen_disable_bound_fn_helper")){var C=f.bind(r);r=function(Y){C(Y,Y==null?void 0:Y.detail)}}else r=KJU(r,f);
I.set(f,r);return r};
O_R=function(r,f){UVR(r);r.created[s9R].push(f)};
UVR=function(r){if(!r.created||!r.created[s9R]){var f=r.created,I=f?[f]:[];r.created=function(){for(var C=_.E(I),Y=C.next();!Y.done;Y=C.next())Y.value.apply(this)};
r.created[s9R]=I}};
o0m=function(r){return function(){var f=_.XE.apply(0,arguments);return function(I,C,Y){r.apply(null,_.Na(f))(I,C,Y)}}};
Q9B=function(){return function(){var r=_.XE.apply(0,arguments);return function(f,I,C){vwl.apply(null,_.Na(r))(f,I,C)}}};
_.J=function(r){return Q9B()(r)};
_.R=function(){return o0m(spK).apply(null,_.Na(_.XE.apply(0,arguments)))};
_.kO=function(r){return _.N("pbcm_fi_listen_decorators")?AYU(r):o0m(yFu)(r)};
AYU=function(r){return function(f,I){O_R(f,function(){var C=this[I],Y=_.N("web_fi_listen_disable_bound_fn_helper")?function(V){C(V,V.detail)}.bind(this):KJU(this,C);
Z_R.has(r)?$f(this.hostElement,r,Y):this.hostElement.addEventListener(r,Y)})}};
_.Bt=function(){return o0m(UiP).apply(null,_.Na(_.XE.apply(0,arguments)))};
_.K=function(r){r=r===void 0?{}:r;return o0m(KyR)(r)};
_.qG=function(r){if(r.hostElement&&r!==r.hostElement){var f=_.zI(r.hostElement);f=r.renderIdom?f:f.shadowRoot}f||(r=r.root,f=r instanceof Node?_.zI(r):null);return f};
_.uA=function(r){return G7K?k7R(r):function(f,I){Object.defineProperty(f,I,{get:function(){var C;return(C=_.qG(this))==null?void 0:C.querySelector(r)},
enumerable:!0,configurable:!0})}};
k7R=function(r){return function(f,I){Object.defineProperty(f,I,{get:function(){var C,Y=(C=_.e(this.hostElement))==null?void 0:C.querySelector(r);if(Y)return Y;var V;C=(V=this.is)!=null?V:"yt-undefined-target";BDE!=null||(BDE=Date.now());(e5(C)+BDE)%100>_.Bw("pbcm_fi_query_decorators_fallback_logging_pct")||(qTK!=null||(qTK=new umw),DVc.has(C)||(DVc.add(C),qTK.increment(C)));var S;return(S=_.qG(this))==null?void 0:S.querySelector(r)},
enumerable:!0,configurable:!0})}};
_.Dh=function(r){return G7K?rcq(r):function(f,I){Object.defineProperty(f,I,{get:function(){var C;return(C=_.qG(this))==null?void 0:C.querySelectorAll(r)},
enumerable:!0,configurable:!0})}};
rcq=function(r){return function(f,I){Object.defineProperty(f,I,{get:function(){var C,Y=(C=_.e(this.hostElement))==null?void 0:C.querySelectorAll(r);if(Y==null?0:Y.length)return Y;var V;return(V=_.qG(this))==null?void 0:V.querySelectorAll(r)},
enumerable:!0,configurable:!0})}};
f2E=function(r){return function(f){if(![_.o6,_.y].includes(Object.getPrototypeOf(f.prototype).constructor))throw Error("fg");Lym(Object.assign({},typeof r!=="string"?r:{is:r,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(f)}};
_.fx=function(){var r=r===void 0?{}:r;return function(f){if(![Qt,_.rm].includes(Object.getPrototypeOf(f.prototype).constructor))throw Error("gg");mid(Object.assign({},r,{disableInheritanceCheck:!0}))(f)}};
Cc$=function(r,f){I2u[r]!=null||(I2u[r]=new Set);I2u[r].add(f)};
_.YN=function(){var r=_.Bt.apply(null,_.Na(_.XE.apply(0,arguments)));return function(f,I){Cc$(f.is,I);r(f,I)}};
E$=function(r,f,I){if(l7(r)&&!YqE.has(f)){f=f.replace(/^JSC\$[\d]+_/,"");f=f.replace(/\.\d+(\.|$)/g,function(V,S){return".#"+S});
VQ[r]!=null||(VQ[r]={});var C,Y;(C=VQ[r])[Y=f]!=null||(C[Y]=new Set);VQ[r][f].has(I)||(VQ[r][f].add(I),_.NW("polymerPropertyAccessEvent",{componentName:r,propertyName:f,accessType:I}))}};
l2E=function(){return _.N("polymer_property_access_logging_debug")||_.N("polymer_enable_property_access_logging")};
l7=function(r){if(_.N("polymer_property_access_logging_debug"))return!0;if(!_.N("polymer_enable_property_access_logging"))return!1;ViB||(ViB=Date.now());return(e5(r)+ViB)%100<_.Bw("polymer_property_access_logging_percent")};
EgB=function(r,f){return l7(f)&&r.hostElement.loggingStatus?new Proxy(r,{get:function(I,C,Y){if(I.hostElement.loggingStatus.bypassProxyController)return I[C];I.hostElement.loggingStatus.isExternalGet=!0;var V=I[C];I.hostElement.loggingStatus.isExternalGet=!1;if(V instanceof Function)return function(){var S=_.XE.apply(0,arguments);try{return I.hostElement.loggingStatus.currentExternalCall=C,E$(f,C,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),V.apply(this===Y?I:this,S)}finally{I.hostElement.loggingStatus.currentExternalCall=
void 0}};
E$(f,C,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return V},
set:function(I,C,Y){if(I.hostElement.loggingStatus.bypassProxyController)return I[C]=Y,!0;I.hostElement.loggingStatus.isRendererStamper?E$(f,C,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):I.hostElement.loggingStatus.isDeclarativeExternal||E$(f,C,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{I.hostElement.loggingStatus.currentExternalSet=C,I[C]=Y}finally{I.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):r};
Sql=function(r,f){r&&r.loggingStatus&&!r.loggingStatus.isDeclarativeExternal&&!r.loggingStatus.isExternalGet&&r.loggingStatus.currentExternalSet!==f&&E$(r.tagName.toLowerCase(),f,"PROPERTY_ACCESS_GET_INTERNAL")};
SS=function(r,f,I){r&&(I||r.loggingStatus&&!r.loggingStatus.isInitializing&&!r.loggingStatus.isDefiningPropertyAccessor&&r.loggingStatus.currentExternalSet!==f)&&E$(r.tagName.toLowerCase(),f,"PROPERTY_ACCESS_SET_INTERNAL")};
x5R=function(){return{_definePropertyAccessor:function(r,f){var I=this,C=I.hostElement.loggingStatus;C&&(C.isDefiningPropertyAccessor=!0);var Y=I[r];Y!==void 0&&(I.__data?I._setPendingProperty(r,Y):(I.__dataProto!=null||(I.__dataProto={}),I.__dataProto[r]=Y));C&&(C.isDefiningPropertyAccessor=!1);Object.defineProperty(this,r,{get:function(){Sql(I.hostElement,r);return this.__data[r]},
set:function(V){f||this._setPendingProperty(r,V,!0)&&this._invalidateProperties()}})},
created:function(){var r=this._setPendingProperty.bind(this);this._setPendingProperty=function(f,I,C){SS(this.hostElement,f);return r.apply(this,[f,I,C])}}}};
hrq=function(r){l2E()&&_.J(xN.prototype)(r.prototype,"__templateBindingLoggingBehavior")};
w3c=function(r,f){if(f.resolvedFactories.length!==r.resolvedFactories.length)return!0;f=_.E(f.resolvedFactories.entries());for(var I=f.next();!I.done;I=f.next()){var C=_.E(I.value);I=C.next().value;C=C.next().value;if(C.providerClass){if(C.providerClass!==r.resolvedFactories[I].providerClass)return!0}else if(C.providerValue){if(C.providerValue!==r.resolvedFactories[I].providerValue)return!0}else if(C.factory!==r.resolvedFactories[I].factory)return!0}return!1};
bcK=function(r,f){r=_.E(r);for(var I=r.next();!I.done;I=r.next())if(I=I.value,I.constructor===Array)bcK(I,f);else{var C=f;C.has(I)||(I.inject&&C.add(I),I.behaviors&&bcK(I.behaviors,C))}};
hG=function(r,f){var I=r[f];r[f]=function(){var C=_.XE.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(I)return I.apply(this,C)}};
zr$=function(){_.wm.Class=function(I,C){I=p3l(I,C);hG(I.prototype,"created");return I};
hG(b7.prototype,"_initializeProperties");hG(_.px.prototype,"_initializeProperties");if(ng$)hG(d5P,"created");else{var r=function(){hG(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))r();else{var f=customElements.define;customElements.define=function(I,C,Y){f.call(customElements,I,C,Y);I==="tp-yt-iron-list"&&(r(),customElements.define=f)}}}};
ggd=function(r,f){r.prototype.behaviors=r.prototype.behaviors||[];r.prototype.behaviors.unshift(Mic.InjectBehavior);r.prototype.provide=f};
_.zX=function(r){return function(f){if(!r.disableElementRegistration){r.noInjection||ggd(f,r.providers);var I=f.prototype;I.__templateHelpers||vwl(nx.prototype)(I,"__templateHelpers");I=r.is;a2q||(a2q=Date.now());(e5(I)+a2q)%100<_.Bw("polymer_log_prop_change_observer_percent")&&vwl(dm.prototype)(f.prototype,"__propertyObserverObserver");f.prototype.behaviors=f.prototype.behaviors||[];f.prototype.behaviors.unshift(_.X3K.YtHostElementBehavior);hrq(f);f2E({is:r.is,notifyObserversOnUndefined:r.notifyObserversOnUndefined!==
!1,fastInit:r.fastInit,template:r.template,disableEnforceFastDefaultValuesCheck:!0})(f)}}};
_.U=function(r){return _.zX({is:r.is,template:r.template,disableElementRegistration:r.disableElementRegistration,cssBuildOptOut:r.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
Fql=function(r,f){if(NNP){r=new r;for(var I=_.E(Object.getOwnPropertyNames(r)),C=I.next();!C.done;C=I.next())C=C.value,f[C]=r[C];for(I=f;I&&I!==Object.prototype;I=Object.getPrototypeOf(I)){C=_.E(Object.getOwnPropertyNames(I));for(var Y=C.next();!Y.done;Y=C.next())Y=Y.value,r.hasOwnProperty(Y)||Object.defineProperty(r,Y,$5R(f,Y))}}else r.apply(f)};
$5R=function(r,f){return{get:function(){var I=r[f];return I instanceof Function?I.bind(r):I},
set:function(I){r[f]=I}}};
tiK=function(r,f){for(var I=r._noAccessors,C=_.E(Object.getOwnPropertyNames(r)),Y=C.next();!Y.done;Y=C.next())if(Y=Y.value,!PcR.has(Y))if(I)f[Y]=r[Y];else{var V=Object.getOwnPropertyDescriptor(r,Y);V&&(V.configurable=!0,Object.defineProperty(f,Y,V))}};
TNR=function(r,f,I){return function(C){if(I){var Y=I();C.model=Y}if(r[f])r[f](C,C.detail)}};
Mv=function(r){var f=[];if(typeof r==="string")r.length>0&&f.push.apply(f,_.Na(r.split(".")));else{r=_.E(r);for(var I=r.next();!I.done;I=r.next())I=I.value,typeof I==="string"?f.push.apply(f,_.Na(I.split("."))):f.push(I)}return f};
ccu=function(r,f){if(f[f.length-1]!=="*"&&f[f.length-1]!=="splices"){for(var I=0;I<f.length;I++){if(!r)return;r=r[f[I]]}return r}};
WqU=function(r,f){if(r.length>f.length)return!1;for(var I=0;I<r.length;I++)if(r[I]!==f[I])return!1;return!0};
m5E=function(r,f,I){if(f.type==="compute"){var C=f.getter.bind(I);var Y=f.args}else C=function(){return I[f.method.methodName].apply(I,_.Na(_.XE.apply(0,arguments)))},Y=f.method.args;
LqR(r,f.propertyKey,C,Y,f.value)};
JcB=function(r,f){if(f.readOnly){var I=Object.getOwnPropertyDescriptor(r.model,f.propertyKey);Object.defineProperty(r.model,f.propertyKey,{get:I.get,set:function(){}});
r.model[erd(f.propertyKey)]=I.set}};
jtc=function(r,f,I){if(I){var C=f.propertyKey,Y=f.selector;f=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.Na(f.selectorArgs.map(function(V){return{type:"path",path:V}})));
LqR(r,C,function(V){var S=_.XE.apply(1,arguments);return Y.apply(null,[I.getState()].concat(_.Na(S)))},f)}};
icR=function(r,f,I){var C=_.S5(f.propertyKey)+"-changed";Hcw(r,function(Y){var V={value:Y.value,queueProperty:!0};Y.path.split(".").length>1&&(V.path=Y.path);I.dispatchEvent(new CustomEvent(C,{detail:V}))},[{type:"wildcard",
path:f.propertyKey}])};
Rrm=function(r,f,I){Hcw(r,function(){I[f.method.methodName].apply(I,_.Na(_.XE.apply(0,arguments)))},f.method.args)};
erd=function(r){return"_set"+(r.charAt(0).toUpperCase()+r.slice(1))};
vgP=function(){var r,f=P9(function(I){r=I},!1);
return[r,f]};
OcB=function(r){r=r.trim().replace(KqR,",").replace(ycq,"$1");var f=r[0];f==="-"&&(f=r[1]);if(f>="0"&&f<="9")return{type:"literal",value:Number(r)};if(f==="'"||f==='"')return{type:"literal",value:r.slice(1,-1)};if(f=r.match(U5u)){f=f[1];var I=stU[f];if(I)return{type:I,path:r.slice(0,-(f.length+1))}}return{type:"path",path:r}};
ZcR=function(r){var f=r.match(ogq);if(f)return r={methodName:f[1],args:QtB},f[2].trim()&&(f=f[2].replace(Acu,"&comma;").split(","),r.args=f.map(OcB)),r};
Gtc=function(r,f,I,C){C=C===void 0?!1:C;f=_.S5(f);var Y=hq;Y&&(I=Y(I,f,"attribute",r));gm(r,I,f,C)};
gm=function(r,f,I,C){f=ktK(f,C===void 0?!1:C);f===void 0?r.removeAttribute(I):r.setAttribute(I,f)};
ktK=function(r,f){switch(typeof r){case "object":case "function":if(r instanceof Date)return r.toString();if(r){if((f===void 0?0:f)&&!_.N("polymer_reflect_objects_as_boolean_killswitch"))return r?"":void 0;f=window.trustedTypes?window.trustedTypes.isHTML(r)||window.trustedTypes.isScript(r)||window.trustedTypes.isScriptURL(r):void 0;if(f)return r;try{return JSON.stringify(r)}catch(I){_.t7(Error("Cg`"+r))}}break;case "boolean":return r?"":void 0;default:return r!==null&&r!==void 0?r.toString():void 0}};
BNB=function(r){if(r===void 0)throw Error("Dg");return r};
fMd=function(r,f,I,C){var Y=qqu(C);if(Y.length){C=I;var V="property";uuB.test(I)?V="attribute":I[I.length-1]==="$"&&(I=I.slice(0,-1),V="attribute");var S=D5K(Y);S&&V==="attribute"&&(I==="class"&&r.hasAttribute("class")&&(S+=" "+r.getAttribute(I)),gm(r,S,I));V==="attribute"&&C==="disable-upgrade$"&&r.setAttribute("disable-upgrade","");r.localName==="input"&&C==="value"&&r.setAttribute("value","");r.removeAttribute(C);V==="property"&&(I=_.xA(I));f=BNB(f);rId(f,V,I,Y);return!0}return I.slice(0,3)===
"on-"?(r.removeAttribute(I),(V=f).events!=null||(V.events=[]),f.events.push({name:I.slice(3),value:C}),!0):I==="id"?(f.id=C,!0):!1};
qqu=function(r){for(var f=[],I=0,C;(C=IMq.exec(r))!==null;){C.index>I&&f.push({type:"literal",value:r.slice(I,C.index)});var Y=C[1][0];I=!!C[2];C=C[3].trim();if(Y==="{")throw Error("Eg");(Y=ZcR(C))?f.push({type:"method",negate:I,signature:Y}):f.push({type:"path",negate:I,path:C});I=IMq.lastIndex}I&&I<r.length&&(r=r.substring(I))&&f.push({type:"literal",value:r});return f};
D5K=function(r){for(var f="",I=0;I<r.length;I++){var C=r[I];C.type==="literal"&&(f+=C.value)}return f};
rId=function(r,f,I,C){r.bindings!=null||(r.bindings=[]);r.bindings.push({kind:f,target:I,parts:C})};
Ehl=function(r,f,I){var C=!1;if(r.localName==="template"){C=I;var Y=f.stripWhitespace;Y=CFu(r,Y===void 0?!1:Y);var V=r.content.ownerDocument.createDocumentFragment();Y.content=V;V.appendChild(r.content);C&&(C.templateInfo=Y);C=!0}else r.localName==="slot"&&(f.hasInsertionPoint=!0);if(r.firstChild&&(Y=I,r.localName!=="script"&&r.localName!=="style")){V=0;for(var S=r.firstChild;S;){var h=S;if(h.localName==="template"){var w=h.getAttribute("is");if((S=w==="dom-if")||w==="dom-repeat"){h.removeAttribute("is");
w=h.ownerDocument.createElement("ps-"+w);h.parentNode.replaceChild(w,h);w.appendChild(h);var n=Array.from(h.attributes);n=_.E(n);for(var d=n.next();!d.done;d=n.next())d=d.value,S?YJB.has(d.name)&&gm(w,d.value,d.name):lMK.has(d.name)?gm(w,d.value,d.name):V9m.has(d.name),h.removeAttribute(d.name);S=w}else S=h}if(S.nodeType===Node.TEXT_NODE){h=void 0;w=r;for(n=S;((h=n.nextSibling)==null?void 0:h.nodeType)===Node.TEXT_NODE;)d=void 0,(d=n).textContent!=null||(d.textContent=""),n.nextSibling.textContent&&
(n.textContent+=n.nextSibling.textContent),w.removeChild(n.nextSibling);if(f.stripWhitespace&&S.textContent&&!S.textContent.trim()){r.removeChild(S);S=S.nextSibling;continue}}Ehl(S,f,{parentIndex:V,parentInfo:Y});S.parentNode&&V++;S=S.nextSibling}}var z;if((z=r.hasAttributes)==null?0:z.call(r)){z=I=BNB(I);Y=!1;V=Array.from(r.attributes);V=_.E(V);for(h=V.next();!h.done;h=V.next())h=h.value,Y=fMd(r,z,h.name,h.value)||Y;C=Y||C}r.nodeType===Node.TEXT_NODE&&(z=qqu(r.textContent),z.length&&(r.textContent=
D5K(z)||" ",I=BNB(I),rId(I,"text","textContent",z),C=!0));I&&C&&(I.infoIndex=f.nodeInfoList.push(I)-1)};
CFu=function(r,f){f={nodeInfoList:[],stripWhitespace:(f===void 0?!1:f)||r.hasAttribute("strip-whitespace")};Ehl(r.content,f);return f};
SJu=function(r){Object.assign(r,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
hXP=function(r,f,I){f.signalCache!=null||(f.signalCache={});var C=f.signalCache[I];if(!C){var Y=I.split("."),V,S;C=_.N("web_polysi_immutable_root_fix_killswitch")?!((V=r.options)==null?0:(S=V.immutableProps)==null?0:S.has(Y[0])):!xPq(r,Y[0]);if(Y.length>1&&C){var h=r.getPathMutationSignal(Y);C=function(){var w=TA(r.owner,function(){return r.getWithPath([Y[0]])}),n,d=(n=h())==null?void 0:n.value;
return{rootWasDefined:w!==void 0,value:d}}}else C=function(){var w=r.getWithPath(Y);
return{rootWasDefined:w!==void 0,value:w}};
f.signalCache[I]=C}return C()};
bBU=function(r,f,I,C,Y){f=f.parts.map(function(S,h){if(S.type==="literal"){I.partWasDefined!=null||(I.partWasDefined=[]);var w;(w=I.partWasDefined)[h]||(w[h]=S.value!==void 0);return S.value}var n;if(S.type==="method"){var d,z=(d=(n=I.partWasDefined)==null?void 0:n[h])!=null?d:!1;z||(z=S.signature.args.every(function(P){return P.type==="literal"}));
var g=!1,X=!0;n=S.signature.args.map(function(P){if(P.type==="literal")return P.value;if(P.type!=="path")throw Error("Fg`"+P.type);var W=hXP(r,I,P.path);P=W.value;W=W.rootWasDefined;g||(g=W);X&&(X=W);return P});
z||(z=Y===1?X:g);I.partWasDefined!=null||(I.partWasDefined={});I.partWasDefined[h]=z;if(!z)return;n=(h=hXP(r,I,S.signature.methodName).value)&&typeof h==="function"?h.apply(C,n):void 0}else d=hXP(r,I,S.path),n=d.value,I.partWasDefined!=null||(I.partWasDefined={}),(z=I.partWasDefined)[h]||(z[h]=n!==void 0||d.rootWasDefined);S.negate&&(n=!n);return n});
if(f.length===1){var V;return((V=I.partWasDefined)==null?0:V[0])?f[0]:wgl}return f.join("")};
pgR=function(r){return typeof r==="object"&&!!r&&"notifyPath"in r&&"canNotifyPath"in r};
nhK=function(r){return typeof r==="object"&&!!r&&"notifyPath"in r};
dPU=function(r){return"polymerController"in r};
zX$=function(r,f){f=""+Mv(f)[0];if(pgR(r))return r.canNotifyPath(f);if(dPU(r)&&pgR(r.polymerController))return r.polymerController.canNotifyPath(f);if(nhK(r)){var I;return!((I=r.properties)==null||!I[f])}if(dPU(r)&&nhK(r.polymerController)){var C;return!((C=r.polymerController.properties)==null||!C[f])}return!1};
M9B=function(r,f,I){pgR(r)||nhK(r)?r.notifyPath(f,I):dPU(r)&&(pgR(r.polymerController)||nhK(r.polymerController))&&r.polymerController.notifyPath(f,I)};
aMK=function(r,f,I){if(I!==wgl){r.kind==="attribute"||r.target!=="textContent"&&(r.target!=="value"||f.localName!=="input"&&f.localName!=="textarea")||(I=I===void 0?"":I);var C,Y=(C=ghu.Polymer)==null?void 0:C.sanitizeDOMValue;Y&&(I=Y(I,r.target,r.kind,f));if(r.kind==="attribute"){r=r.target;if(r==="class"||r==="name"||r==="slot")f=(0,_.AN)(f);gm(f,I,r)}else if(r=r.target,I!==f[r]||typeof I==="object")f.loggingStatus&&(f.loggingStatus.isDeclarativeExternal=!0,E$(f.localName,r,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
f[r]=I,f.loggingStatus&&(f.loggingStatus.isDeclarativeExternal=!1)}};
Xg$=function(r,f,I,C){var Y=f.parts[0];if(f.parts.length!==1||Y.type!=="path"||!zX$(I,f.target))return!1;var V=_.E(Y.path.split(".")),S=V.next().value,h=y$(V);if(!_.N("web_polysi_immutable_root_fix_killswitch")&&xPq(r,S))return!1;C.signalCache!=null||(C.signalCache={});V=C.signalCache[Y.path];var w;V=(w=V)==null?void 0:w().value;if((V==null?void 0:V.path)!==void 0){C=Mv(V.path);var n=Mv(Y.path);C=[f.target].concat(_.Na(C.slice(n.length-1)));M9B(I,C,Y.negate?!V.value:V.value);return!0}var d=as(r,S);
var z=d.getChangeRecordSignal(h),g=!1;V=function(){if(!g){var P=TA(r.owner,function(){return d.getWithPath([])});
g||(g=P!==void 0)}return{value:z(),rootWasDefined:g}};
C.signalCache[Y.path]=V;C.partWasDefined!=null||(C.partWasDefined={});V=V();(n=C.partWasDefined)[0]||(n[0]=V.rootWasDefined);var X=TA(r.owner,function(){return d.getWithPath(h)});
C.partWasDefined[0]&&TA(r.owner,function(){return void aMK(f,I,Y.negate?!X:X)});
return!0};
NAq=function(r,f,I,C,Y,V){if(!Xg$(r,f,I,C)){var S=bBU(r,f,C,Y,V);TA(r.owner,function(){return void aMK(f,I,S)})}};
$PR=function(r,f,I,C,Y,V){I=_.E(I);for(var S=I.next(),h={};!S.done;h={infoIndex:void 0},S=I.next()){S=S.value;var w=S.bindings;h.infoIndex=S.infoIndex;S=S.parentInfo;if(w){w=_.E(w);for(var n=w.next(),d={};!n.done;d={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},n=w.next()){d.b$jscomp$254=n.value;if(h.infoIndex===void 0)throw Error("Gg");d.bindingCtx$jscomp$4={};r.effect(function(z,g){return function(){Y&&!Y()||NAq(r,z.b$jscomp$254,f[g.infoIndex],z.bindingCtx$jscomp$4,C,V)}}(d,h))}}S&&$PR(r,f,[S],
C,Y,V)}};
F5m=function(r,f){r=(f.parentInfo?F5m(r,f.parentInfo):r).firstChild;for(var I=0;r;r=r.nextSibling)if(f.parentIndex===I++)return r;throw Error("Hg");};
t9$=function(r,f,I,C){r=document.importNode(r.content,!0);r.__noInsertionPoint=!(C==null?0:C.hasInsertionPoint);for(var Y=Array(f.length),V={},S=0;S<f.length;S++){var h=f[S],w=F5m(r,h);Y[S]=w;h.id&&(V[h.id]=w);if(h.templateInfo){var n=w.parentElement;n&&(n.templateInfo=h.templateInfo,n.parentSignalProxy=I,n.eventListenerHost=C.eventListenerHost,n.stampingEnabled=C.enabledSignal)}n=void 0;if((n=h.events)==null?0:n.length)for(n=0;n<h.events.length;n++){var d=h.events[n];PF$(C.eventListenerHost,w,d.name,
d.value,C.getModel)}}$PR(I,Y,f,C.thisCtx,C.enabledSignal,C.methodInvocationRequirement);return{root:r,nodes:Y,nodesById:V}};
cIE=function(r,f){r=r();var I;(I=TAd.ShadyCSS)==null||I.prepareTemplate(r,f);f=CFu(r);return{template:r,nodeInfoList:f.nodeInfoList,hasInsertionPoint:f.hasInsertionPoint}};
mPq=function(){W5d=!1;for(var r=Xi.length,f=0;f<r;f++){var I=Xi[f];if(I)try{I()}catch(C){Promise.resolve().then(function(){throw C;})}}Xi.splice(0,r);
L5K+=r};
HBP=function(r){W5d||(W5d=!0,eXu.textContent=(JIB++).toString());Xi.push(r);return jQB++};
_.Fi=function(r,f,I){Nv++;r=f?new iBK(Nv,r,f,I):new RXR(Nv,r);$N.set(Nv,r);return Nv};
vhB=function(r){(r=$N.get(r))&&r.cancel()};
yIR=function(r,f){r=K5K.get(r);return r?(f=r.get(f))?f:null:null};
_.Pc=function(r,f,I,C){var Y=yIR(r,f);if(!Y){Y=new UPu;var V=K5K.get(r);V||(V=new Map,K5K.set(r,V));V.set(f,Y)}r=I.bind(r);Y.run(r,C,void 0)};
_.sQl=function(r,f){var I;(I=yIR(r,f))==null||I.cancel()};
OBl=function(r){var f;(f=yIR(r,"doRender"))==null||f.flush()};
tG=function(r){var f;return(f=r.hostElement)!=null?f:r};
ohB=function(r){var f=r.indexOf(".");return f===-1?r:r.slice(0,f)};
QQm=function(r,f,I,C,Y,V){V=(Y=(C=V?ohB(f):f)?f:null)?r.get(Y):r.__data[f];Y&&V===void 0&&(V=I[f]);_.kA(r.hostElement,ncE(C)+"-changed",{value:V,queueProperty:!0,path:Y!=null?Y:void 0},{bubbles:!1,composed:!1})};
AIl=function(r,f){r.__isReflecting=!0;Gtc(r.hostElement,f,r.__data[f]);r.__isReflecting=!1};
ZBE=function(r){if(r._onIronRequestResizeNotifications){var f=r._onIronRequestResizeNotifications.bind(r);r._onIronRequestResizeNotifications=function(I){_.jl(I)!==r.hostElement&&f(I)}}r._ariaActiveAttributeChanged&&(r._ariaActiveAttributeChanged=r._ariaActiveAttributeChanged.bind(r.hostElement));
r._activeChanged&&(r._activeChanged=function(I){r.toggles?gm(r.hostElement,I?"true":"false",r.ariaActiveAttribute):r.hostElement.removeAttribute(r.ariaActiveAttribute);r._changedButtonState()});
r._asyncClick&&(r._asyncClick=function(){_.Fi(function(){r.hostElement.click()},1)});
!r.keyEventTarget||r.keyEventTarget instanceof EventTarget||(r.keyEventTarget=tG(r.keyEventTarget));r._disabledChanged&&(r._disabledChanged=r._disabledChanged.bind(r.hostElement));r._observeItems&&(r._observeItems=function(I){var C=tG(I);return _.zI(C).observeNodes(function(Y){r._updateItems();r._updateSelected();_.kA(C,"iron-items-changed",Y,{bubbles:!1,cancelable:!1})})});
r._updateItems&&r._updateItems===_.TX._updateItems&&(r._updateItems=function(){var I=_.zI(r.hostElement).queryDistributedElements(r.selectable||"*");I=Array.prototype.filter.call(I,r._bindFilterItem);r._setItems(I)});
r._computeKeyboardClass&&(r._computeKeyboardClass=function(I){_.ob(r.hostElement,"keyboard-focus",I)});
r.ensureRipple&&(r.ensureRipple=function(I){if(r.hasRipple&&!r.hasRipple()){if(!r._createRipple)return;r._ripple=r._createRipple();r._ripple.noink=r.noink;var C=r._rippleContainer||r.hostElement;C&&_.e(C).appendChild(r._ripple)}var Y;if(I&&((Y=r._ripple)==null?0:Y.uiDownAction)){C=_.e(r._rippleContainer||r.hostElement);var V;Y=(V=I.composedPath())==null?void 0:V[0];C.contains(Y)&&r._ripple.uiDownAction(I)}});
r._updateMultiselectable&&(r._updateMultiselectable=function(I){I?r.hostElement.setAttribute("aria-multiselectable","true"):r.hostElement.removeAttribute("aria-multiselectable")})};
GfK=function(r,f,I){I=_.E(I);for(var C=I.next();!C.done;C=I.next())Fql(C.value.constructor,r);Fql(f.constructor,r)};
BAK=function(r,f){r=_.E(r);for(var I=r.next();!I.done;I=r.next())if(I=I.value,I.type==="signal"){var C=I.propertyKey;if(f.hasOwnProperty(C)&&f[C]!=null&&I.attributeType===Object){a:{C=f[C].constructor;for(var Y=_.E(kfP),V=Y.next();!V.done;V=Y.next())if(V=V.value,C===V){C=V;break a}C=Object}I.attributeType=C}}};
qJq=function(){};
uh$=function(r){var f;return(f=r.hostElement)!=null?f:r};
DPd=function(){throw Error("Lg");};
r2U=function(r,f){r.constructor.prototype.useSignals=!0;var I=new r.constructor;GfK(I,r,f.behaviors);BAK(f.reactiveSchemas,I);I={};for(var C=_.E(f.reactiveSchemas),Y=C.next();!Y.done;Y=C.next())Y=Y.value,Y.type==="signal"&&(I[Y.propertyKey]=Y.attributeType);var V={copyPropertiesToProto:DPd,didRegister:!1,typesForSignals:I},S=["disable-upgrade"].concat(_.Na(f.observedAttributes)),h=function(w){cc.call(this,r,f,V,w)};
_.t(h,cc);_.OC.Object.defineProperties(h,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return S}}});
V.copyPropertiesToProto=function(){for(var w=0;w<f.behaviors.length;w++)tiK(f.behaviors[w],h.prototype);tiK(r,h.prototype)};
f.legacyOptimizations||V.copyPropertiesToProto();h.prototype.is=r.is;return h};
fSd=function(r,f){if(Object.getPrototypeOf(f.prototype).constructor!==_.y)throw Error("Mg");f.prototype.is=r.is;return r2U(f.prototype,r)};
ISq=function(r){return r.type==="compute"||r.type==="computeWithMethod"};
CuP=function(r){for(var f=r.reactiveSchemas.filter(ISq),I=new Map,C=new Map,Y=new Map,V=_.E(f),S=V.next();!S.done;S=V.next())S=S.value,I.set(S.propertyKey,S),C.set(S.propertyKey,[]),Y.set(S.propertyKey,0);V=0;f=_.E(f);for(S=f.next();!S.done;S=f.next()){S=S.value;for(var h=_.E(S.type==="computeWithMethod"?S.method.args:S.args),w=h.next();!w.done;w=h.next())w=w.value,w.type!=="literal"&&(w=w.path.split(".")[0],C.has(w)&&(C.get(w).push(S.propertyKey),Y.set(S.propertyKey,Y.get(S.propertyKey)+1),V++))}S=
[].concat(_.Na(C.keys())).filter(function(n){return Y.get(n)===0});
for(f=[];S.length;)for(h=S.shift(),f.push(I.get(h)),h=_.E(C.get(h)),w=h.next();!w.done;w=h.next())w=w.value,Y.set(w,Y.get(w)-1),V--,Y.get(w)===0&&S.push(w);I=r.reactiveSchemas.filter(function(n){return!ISq(n)});
r.reactiveSchemas=[].concat(_.Na(I),_.Na(f))};
YXl=function(r,f){if(f.properties)for(var I=_.E(Object.entries(f.properties)),C=I.next();!C.done;C=I.next()){var Y=_.E(C.value);C=Y.next().value;Y=Y.next().value;r.properties[C]=typeof Y==="function"?{type:Y}:Y}f.observers&&r.observers.push.apply(r.observers,_.Na(f.observers));f.disabledPolySiReactions&&r.disabledPolySiReactions.push.apply(r.disabledPolySiReactions,_.Na(f.disabledPolySiReactions))};
lSm=function(r,f){for(var I=f.length-1;I>=0;I--){var C=f[I];Array.isArray(C)?lSm(r,C):r.indexOf(C)<0&&r.unshift(C)}};
Vnc=function(r,f){r.reactiveSchemas=r.reactiveSchemas.filter(function(I){return I.type==="observe"&&f.includes(I.method.methodName)||ISq(I)&&f.includes(I.propertyKey)?!1:!0})};
SXP=function(r,f){var I=f.prototype,C,Y,V={is:r.is,reactiveSchemas:[],observedAttributes:[],behaviors:[Mic.InjectBehavior,nx.prototype],disableElementRegistration:r.disableElementRegistration,provide:(C=r.providers)!=null?C:[],reactivityMode:r.reactivityMode,signalProperties:(Y=I.signalProperties)!=null?Y:[]};"template"in f?V.templateGetter=function(){return f.template}:r.getTemplate&&(V.templateGetter=r.getTemplate);
I.behaviors&&lSm(V.behaviors,I.behaviors);Erm(V,f);return V};
Erm=function(r,f){for(var I=f.prototype,C={properties:{},observers:[],disabledPolySiReactions:[]},Y=_.E(r.behaviors),V=Y.next();!V.done;V=Y.next())YXl(C,V.value);YXl(C,I);if(r.signalProperties)for(I=_.E(r.signalProperties),Y=I.next();!Y.done;Y=I.next())delete C.properties[Y.value];I=_.E(Object.entries(C.properties));for(Y=I.next();!Y.done;Y=I.next()){V=_.E(Y.value);Y=V.next().value;V=V.next().value;var S=void 0;if((S=r.signalProperties)==null||!S.includes(Y)){S=void 0;var h=r,w=V.type;if(!w)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{w=Reflect.getMetadata("design:type",f,Y);for(var n=_.E(xQP),d=n.next();!d.done;d=n.next())if(d=d.value,w===d){w=d;break a}w=Object}else w=String;V.computed||V.selector||(h.reactiveSchemas.push({type:"signal",propertyKey:Y,value:V.value,attributeType:w,readOnly:V.readOnly}),h.observedAttributes.push(_.S5(Y)));V.reflectToAttribute&&h.reactiveSchemas.push({type:"reflect",propertyKey:Y});if(V.computed){w=ZcR(V.computed);if(!w)throw Error("Ng");h.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:Y,method:w,value:V.value})}V.observer&&h.reactiveSchemas.push({type:"observe",method:{methodName:V.observer,args:[{type:"path",path:Y}]}});V.notify&&h.reactiveSchemas.push({type:"notify",propertyKey:Y});V.selector&&h.reactiveSchemas.push({type:"redux",propertyKey:Y,selector:V.selector,selectorArgs:(S=V.selectorArgs)!=null?S:[]})}}h2K&&CuP(r);f=_.E(C.observers);for(Y=f.next();!Y.done;Y=f.next())I=r,Y=Y.value,(V=ZcR(Y))?I.reactiveSchemas.push({type:"observe",method:V}):console.log('Warning: unable to parse observe declaration: "'+
Y+'"');Vnc(r,C.disabledPolySiReactions)};
wZR=function(r,f){for(var I=0;I<f.length;I++){var C=f[I],Y=void 0;(Y=C).showHideApi!=null||(Y.showHideApi={});Y=void 0;!!r!==!((Y=C.showHideApi)==null||!Y.hideTemplateChildren)&&(C.nodeType===Node.TEXT_NODE?r?(C.showHideApi.polymerTextContent=C.textContent,C.textContent=""):(Y=void 0,C.textContent=(Y=C.showHideApi.polymerTextContent)!=null?Y:null):C instanceof Element&&C.localName==="slot"?r?(C.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.AN)((0,_.AN)(C).parentNode).replaceChild(C.showHideApi.polymerReplaced,
C)):(Y=C.showHideApi.polymerReplaced)&&(0,_.AN)((0,_.AN)(Y).parentNode).replaceChild(C,Y):C instanceof HTMLElement&&C.style&&(r?(C.showHideApi.polymerDisplay=C.style.display,C.style.display="none"):C.style.display=C.showHideApi.polymerDisplay));C.showHideApi.hideTemplateChildren=r;C.showHideChildren&&C.showHideChildren(r)}};
pZP=function(){if(!bUK){var r=document.createElement("style");r.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(r);bUK=!0}};
Wc=function(){return _.N("disable_hidden_dom_if_using_stamper")||_.N("creator_disable_hidden_dom_if_using_stamper")};
nrR=function(r,f){var I=_.Lx().getState();return f?r.apply(null,[I].concat(_.Na(f))):r(I)};
Mn$=function(){if(dQu)return dQu;var r=_.E(_.ld(0,void 0,"Nl6eIe")),f=r.next().value;r.next();var I=r.next().value;_.Lx().subscribe(function(){z2l(I)});
return dQu=f};
z2l=function(r){_.N("delay_redux_signal_update_killswitch")?r(function(f){return f+1}):grR||(grR=!0,Promise.resolve().then(function(){r(function(f){return f+1});
grR=!1}))};
_.Lx=function(){return aSl.getAppStore()};
mW=function(r,f){return aSl.getSelectFn()(r,f)};
_.eS=function(r){aSl.getDispatchFn()(r)};
XZU=function(r,f){var I={},C;for(C in r)I[C]=f(r[C],C);return I};
_.JG=function(r,f){return function(){var I;return(I=_.tR(r))!=null?I:f}};
_.jS=function(r,f){var I=Object.assign({},r),C;for(C in f)f.hasOwnProperty(C)&&(I[C]=_.JG(r[C],f[C]));return I};
NKU=function(r,f,I){r instanceof Element&&(I.debugName||(I.debugName="<"+r.tagName.toLowerCase()+(r.tagName.includes("-")?">":"."+r.className+">")),_.N("ytwiz_enable_debug_component_props")&&(r.debugProps||(r.debugProps=XZU(f,function(C){return function(){return C()}}))))};
_.Hc=function(r,f){var I=function(C){var Y={stack:[],error:void 0,hasError:!1};try{var V=$QU={};var S=Fxd(Y,ZVm("component()")),h;if(((h=I)==null?0:h.idomCompat)&&C.renderedFromIdom){S==null||S.attr("idomCompat",!0);var w,n=typeof I.idomCompat==="object"?(w=I)==null?void 0:w.idomCompat.callbacks:{},d=_.E(PuR(C,n,I.debugName)),z=d.next().value;d.next();var g=d.next().value,X=tnR(r,z);V.privateValue=X;$QU=void 0;NKU(X,z,I);S==null||S.attr("debugName",I.debugName);var P=lWw(X),W=Array.isArray(P)?P[0]:
P;W[Cz]||(W[Cz]={});W[Cz].updateSignalsFromIdomProps=g;return X}var m=XZU(C,TKP);var v=tnR(r,m);V.privateValue=v;$QU=void 0;NKU(v,m,I);S==null||S.attr("debugName",I.debugName);return v}catch(O){Y.error=O,Y.hasError=!0}finally{c2K(Y)}};
I.debugName=f===void 0?"":f;return I};
tnR=function(r,f){r=r(f);return EQ(r)};
Wx$=function(r,f){r[f]||(r=new _.nf("IDOM interop setter undefined. Key:",f),_.Fo(r))};
TKP=function(r,f){return f==="children"||f==="ref"||typeof r==="function"||r===void 0?r:function(){return _.tR(r)}};
PuR=function(r,f,I){var C={},Y={},V={},S={},h;for(h in r){S={key$jscomp$886:S.key$jscomp$886};S.key$jscomp$886=h;var w=r[S.key$jscomp$886];if(S.key$jscomp$886==="children"||S.key$jscomp$886==="ref")C[S.key$jscomp$886]=w;else if(typeof w==="function")S.key$jscomp$886 in f||w.length>0?(V[S.key$jscomp$886]=w,C[S.key$jscomp$886]=function(d){return function(){return V[d.key$jscomp$886].apply(V,_.Na(_.XE.apply(0,arguments)))}}(S)):C[S.key$jscomp$886]=w;
else if(!(r[S.key$jscomp$886]===void 0&&S.key$jscomp$886 in f)){var n=_.E(_.ld(r[S.key$jscomp$886],{debugName:"__cwis:"+I+":"+S.key$jscomp$886},"cEBU8c"));w=n.next().value;n=n.next().value;C[S.key$jscomp$886]=w;Y[S.key$jscomp$886]=n}}return[C,Y,function(d){var z={},g;for(g in d)z={key$jscomp$887:z.key$jscomp$887,val$jscomp$116:void 0},z.key$jscomp$887=g,z.val$jscomp$116=d[z.key$jscomp$887],z.key$jscomp$887!=="children"&&z.key$jscomp$887!=="ref"&&(typeof z.val$jscomp$116==="function"?z.key$jscomp$887 in
f?V[z.key$jscomp$887]=z.val$jscomp$116:z.val$jscomp$116.length>0&&(V[z.key$jscomp$887]=z.val$jscomp$116,_.t7(new _.nf("Callback detected that was not set in the idomCompat callbacks map. Key:",z.key$jscomp$887))):z.key$jscomp$887 in f&&z.val$jscomp$116===void 0||(Wx$(Y,z.key$jscomp$887),wI(function(X){return function(){Y[X.key$jscomp$887](X.val$jscomp$116)}}(z))))}]};
e2U=function(r,f,I){var C=tQm(r.prototype,Lxc,r.prototype.behaviors);C.prototype.is=f;C.prototype.localName=f;I&&mQK(C,I);return function(Y){Y&&(C.prototype.hostElement=Y);var V=new C;V.root=V;V.hostElement=Y;return V}};
mQK=function(r,f){var I;Object.defineProperty(r.prototype,"_template",{get:function(){I===void 0&&(I=f());return I},
set:function(C){I=C},
configurable:!0,enumerable:!0})};
R2P=function(r,f,I,C){function Y(){if(!X){for(var P=new Set,W=_.E(d),m=W.next();!m.done;m=W.next()){m=m.value;for(var v=_.E(Object.getOwnPropertyNames(m)),O=v.next();!O.done;O=v.next()){O=O.value;var k=void 0,Z=(k=Object.getOwnPropertyDescriptor(m,O))==null?void 0:k.value;Z&&Z instanceof Function&&!i7(O)&&(!h[O]||_.N("polymer_forward_method_killswitch"))&&P.add(O)}}W=_.E(Object.entries(Object.getOwnPropertyDescriptors(r.prototype)));for(m=W.next();!m.done;m=W.next())v=_.E(m.value),m=v.next().value,
v=v.next().value,v.value instanceof Function&&!i7(m)&&P.add(m);X=P}return X}
J2P(r,f,C==null?void 0:C.providers);TMR(r.prototype,r,!0);var V=e2U(r,f,I),S,h=(S=r.prototype.properties)!=null?S:{},w,n,d=(n=(w=r.prototype.behaviors)==null?void 0:w.flat(Infinity))!=null?n:[];I=_.E(d);for(S=I.next();!S.done;S=I.next())h=Object.assign({},S.value.properties,h);var z=[].concat(_.Na(juK),_.Na(Object.keys(h).map(function(P){return _.S5(P)}))),g=!1,X;
return{ctor:function(P,W){var m=V(P),v,O;P=[].concat(_.Na((v=C==null?void 0:C.allowedProps)!=null?v:[]),_.Na((O=C==null?void 0:C.allowedPropsFromBehaviors)!=null?O:[]));m.allowedProps=P.length>0?P:void 0;v={};O=_.E(z);for(P=O.next();!P.done;P=O.next())P=P.value,v[P]=_.xA(P);m.__dataAttributes=v;var k=m.ready.bind(m);m.ready=function(){W.beforeReady();k();if(l7(f)&&!g){var Z=m.__templateInfo;if(Z==null?0:Z.hostProps){Z=_.E(Object.keys(Z.hostProps));for(var Cw=Z.next();!Cw.done;Cw=Z.next())E$(f,Cw.value,
"PROPERTY_ACCESS_GET_INTERNAL")}g=!0}};
m._overrideLegacyUndefined=!0;return m},
props:h,observedAttributes:z,getInitialMethods:Y,getPropsToForwardBeforeRegister:function(){for(var P=[],W=new Set,m=_.E(Object.keys(h)),v=m.next();!v.done;v=m.next())v=v.value,P.push([v,h[v].readOnly]),W.add(v);m=Y();v=_.E(Object.keys(Object.getOwnPropertyDescriptors(r.prototype)));for(var O=v.next();!O.done;O=v.next())O=O.value,!HUm(O)||m.has(O)||W.has(O)||(P.push([O,!1]),W.add(O));W=_.E(iUw);for(m=W.next();!m.done;m=W.next())P.push([m.value,!0]);return P},
getPropsToForwardBeforeReady:function(P){for(var W=[],m=_.E(Object.entries(P)),v=m.next();!v.done;v=m.next()){var O=_.E(v.value);v=O.next().value;O=O.next().value;if(HUm(v)&&!(O instanceof Function)&&(W.push([v,!1]),l7(f))){var k=O=void 0;(k=(O=P)._createPropertyAccessor)==null||k.call(O,v)}}return W},
shouldForwardProp:HUm,shouldLog:l7}};
J2P=function(r,f,I){ggd(r,I);r.prototype.behaviors.unshift(vrK);if(l2E()){if(l7(f)){var C;(C=r.prototype).behaviors!=null||(C.behaviors=[]);r.prototype.behaviors.unshift(x5R())}hrq(r)}_.J(nx.prototype)(r.prototype,"__templateHelpers")};
i7=function(r){return KxK.has(r)||r.startsWith("__compute__")};
HUm=function(r){return!i7(r)&&!r.startsWith("_")&&!r.endsWith("_")};
orR=function(r,f){function I(){var g=w();g=_.E(g);for(var X=g.next();!X.done;X=g.next()){var P=_.E(X.value);X=P.next().value;P=P.next().value;y2B(z.prototype,X,P)}C=!0}
var C=!1,Y=r.ctor,V=r.getInitialMethods,S=r.observedAttributes,h=r.getPropsToForwardBeforeReady,w=r.getPropsToForwardBeforeRegister,n=r.shouldForwardProp,d=r.shouldLog,z=function(){var g=HTMLElement.call(this)||this;g.didForwardDynamicProps=!1;g.loggingStatus={};C||I();g.inst=Y(g,{beforeReady:function(){g.didForwardDynamicProps||(g.forwardDynamicProps(),g.didForwardDynamicProps=!0)}});
g.controllerProxy=EgB(g.inst,f);g.forwardMethods();return g};
_.t(z,HTMLElement);z.prototype.forwardMethods=function(){for(var g=this,X=_.E(this.inst.getExtraMethodsToForward()),P=X.next(),W={};!P.done;W={method$jscomp$62:void 0},P=X.next()){var m=_.E(P.value);P=m.next().value;m=m.next().value;W.method$jscomp$62=m;this[P]=function(v){return function(){return v.method$jscomp$62.call.apply(v.method$jscomp$62,[g.inst].concat(_.Na(_.XE.apply(0,arguments))))}}(W)}X=_.E(V());
for(W=X.next();!W.done;W=X.next())W=W.value,n(W)&&UQc(this,W),d(f)&&!i7(W)&&suR(this.inst,W)};
z.prototype.forwardDynamicProps=function(){var g=h(this.inst);g=_.E(g);for(var X=g.next();!X.done;X=g.next()){var P=_.E(X.value);X=P.next().value;P=P.next().value;y2B(this,X,P);d(f)&&!i7(X)&&OU$(this.inst,X)}};
z.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
z.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
z.prototype.attributeChangedCallback=function(g,X,P){this.inst.attributeChangedCallbackWrapper(g,X,P)};
_.OC.Object.defineProperties(z.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return f}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.OC.Object.defineProperties(z,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return S}}});
customElements.define(f,z)};
y2B=function(r,f,I){r.hasOwnProperty(f)||Object.defineProperty(r,f,{get:function(){var C,Y=((C=r.is)!=null?C:r.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||E$(Y,f,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,C=this.polymerController[f],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,C},
set:function(C){if(!I){var Y,V=((Y=r.is)!=null?Y:r.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||E$(V,f,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=f,this.loggingStatus.bypassProxyController=!0,this.polymerController[f]!==C&&(Y={},this.polymerController.setProperties((Y[f]=C,Y)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
UQc=function(r,f,I){var C=r.polymerController;r[f]=function(){var Y=_.XE.apply(0,arguments);r.loggingStatus.currentExternalCall=f;r.loggingStatus.bypassProxyController=!0;var V,S=((V=r.is)!=null?V:r.tagName).toLowerCase();E$(S,f,"PROPERTY_ACCESS_CALL_EXTERNAL");var h;V=(h=I!=null?I:C[f])==null?void 0:h.call.apply(h,[C].concat(_.Na(Y)));r.loggingStatus.currentExternalCall=void 0;r.loggingStatus.bypassProxyController=!1;return V}};
suR=function(r,f){var I=r.hostElement,C=r[f];r[f]=function(){var Y=_.XE.apply(0,arguments);if(I.loggingStatus.currentExternalCall!==f){var V,S=((V=I.is)!=null?V:I.tagName).toLowerCase();E$(S,f,"PROPERTY_ACCESS_CALL_INTERNAL")}return C==null?void 0:C.apply(r,Y)}};
OU$=function(r,f){var I=Object.getOwnPropertyDescriptor(r,f);I&&!I.get&&Object.defineProperty(r,f,{get:function(){Sql(r.hostElement,f);return I.value},
set:function(C){SS(r.hostElement,f);I.value=C}})};
QuE=function(r){return _.N("poly_si_dom_repeat_detached_fix_killswitch")||r.tagName!=="PS-DOM-REPEAT"?r.tagName==="DOM-REPEAT":!0};
ZUR=function(r,f){var I=A2R(r);r instanceof Element&&I.unshift(r);r=_.E(I.filter(QuE));for(var C=r.next();!C.done;C=r.next()){var Y=void 0;C=_.E((Y=C.value.__instances)!=null?Y:[]);for(Y=C.next();!Y.done;Y=C.next())if(Y=Y.value,Y.root){Y=Array.from(Y.root.children);Y=_.E(Y);for(var V=Y.next();!V.done;V=Y.next())I.push.apply(I,_.Na(ZUR(V.value,f)))}}return I.filter(function(S){return S.usePatchedLifecycles&&S.lifecycleIsConnected===f})};
A2R=function(r){var f=null;r instanceof Element?f=Element.prototype.querySelectorAll:r instanceof DocumentFragment&&(f=DocumentFragment.prototype.querySelectorAll);return f?Array.from(f.call(r,"*")):[]};
Rs=function(r){YL(function(){for(var f=_.E(ZUR(r,!1)),I=f.next();!I.done;I=f.next()){I=I.value;I.lifecycleIsConnected=!0;try{var C=void 0,Y=void 0,V=void 0,S=void 0;(C=(S=I.polymerController)!=null?S:I)==null||(V=(Y=C).connectedCallback)==null||V.call(Y)}catch(h){_.Fo(h)}}})};
vc=function(r){YL(function(){for(var f=_.E(ZUR(r,!0)),I=f.next();!I.done;I=f.next()){I=I.value;I.lifecycleIsConnected=!1;try{var C=void 0,Y=void 0,V=void 0,S=void 0;(C=(S=I.polymerController)!=null?S:I)==null||(V=(Y=C).disconnectedCallback)==null||V.call(Y)}catch(h){_.Fo(h)}}})};
rru=function(){if(!GQB){GQB=!0;var r=[Node];Kx&&r.push(Kx.Wrapper);var f=Node.prototype.insertBefore,I=Node.prototype.removeChild;r=_.E(r);for(var C=r.next(),Y={};!C.done;Y={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},C=r.next())C=C.value,Y.nativeInsertBefore=C.prototype.insertBefore,C.prototype.insertBefore=function(S){return function(h,w){if(h instanceof DocumentFragment){var n=Array.from(h.children);h=S.nativeInsertBefore.call(this,h,w);
if(this.isConnected&&S.nativeInsertBefore===f)for(w=_.E(n),n=w.next();!n.done;n=w.next())Rs(n.value);return h}n=h instanceof Element&&h.isConnected;w=S.nativeInsertBefore.call(this,h,w);n&&vc(h);this.isConnected&&Rs(h);return w}}(Y),Y.nativeAppendChild=C.prototype.appendChild,C.prototype.appendChild=function(S){return function(h){if(h instanceof DocumentFragment){var w=Array.from(h.children);
h=S.nativeAppendChild.call(this,h);if(this.isConnected){w=_.E(w);for(var n=w.next();!n.done;n=w.next())Rs(n.value)}return h}w=h instanceof Element&&h.isConnected;n=S.nativeAppendChild.call(this,h);w&&vc(h);this.isConnected&&Rs(h);return n}}(Y),Y.nativeRemoveChild=C.prototype.removeChild,C.prototype.removeChild=function(S){return function(h){var w=h instanceof Element&&h.isConnected,n=S.nativeRemoveChild.call(this,h);
w&&I===S.nativeRemoveChild&&vc(h);return n}}(Y),Y.nativeReplaceChild=C.prototype.replaceChild,C.prototype.replaceChild=function(S){return function(h,w){if(h instanceof DocumentFragment){var n=Array.from(h.children);
h=S.nativeReplaceChild.call(this,h,w);if(this.isConnected)for(vc(w),w=_.E(n),n=w.next();!n.done;n=w.next())Rs(n.value);return h}n=h instanceof Element&&h.isConnected;var d=this.isConnected,z=S.nativeReplaceChild.call(this,h,w);d&&vc(w);n&&vc(h);d&&Rs(h);return z}}(Y);
r=[Element];Kx&&r.push(Kx.Wrapper);r=_.E(r);C=r.next();for(Y={};!C.done;Y={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},C=r.next())C=C.value,C.prototype.before=kQP(C.prototype.before),C.prototype.after=kQP(C.prototype.after),Y.nativeReplaceWith=C.prototype.replaceWith,C.prototype.replaceWith=function(S){return function(){var h=_.XE.apply(0,arguments),w=_.E(BKR(h)),n=w.next().value,
d=w.next().value;w=this.isConnected;S.nativeReplaceWith.apply(this,h);h=_.E(d);for(d=h.next();!d.done;d=h.next())vc(d.value);if(w)for(vc(this),n=_.E(n),w=n.next();!w.done;w=n.next())w=w.value,w instanceof Element&&Rs(w)}}(Y),Y.nativeRemove=C.prototype.remove,C.prototype.remove=function(S){return function(){var h=this.isConnected;
S.nativeRemove.call(this);h&&vc(this)}}(Y),Y.nativeInsertAdjacentElement=C.prototype.insertAdjacentElement,C.prototype.insertAdjacentElement=function(S){return function(h,w){var n=w.isConnected;
h=S.nativeInsertAdjacentElement.call(this,h,w);n&&vc(w);h.isConnected&&Rs(h);return h}}(Y),Y.nativeSetAttribute=C.prototype.setAttribute,C.prototype.setAttribute=function(S){return function(h,w){var n=qXK(this);
if(!n.usePatchedLifecycles)return S.nativeSetAttribute.call(this,h,w);var d=this.getAttribute(h);S.nativeSetAttribute.call(this,h,w);w=this.getAttribute(h);uvl(n,h,d,w)}}(Y),Y.nativeRemoveAttribute=C.prototype.removeAttribute,C.prototype.removeAttribute=function(S){return function(h){var w=qXK(this);
if(!w.usePatchedLifecycles)return S.nativeRemoveAttribute.call(this,h);var n=this.getAttribute(h);S.nativeRemoveAttribute.call(this,h);n!==null&&uvl(w,h,n,null)}}(Y),Y.nativeToggleAttribute=C.prototype.toggleAttribute,C.prototype.toggleAttribute=function(S){return function(h,w){var n=qXK(this);
if(!this.usePatchedLifecycles)return S.nativeToggleAttribute.call(this,h,w);var d=this.getAttribute(h),z=d!==null;w=S.nativeToggleAttribute.call(this,h,w);w!==z&&uvl(n,h,d,w?"":null);return w}}(Y);
r=[Document,DocumentFragment,Element,ShadowRoot];Kx&&r.push(Kx.Wrapper);r=_.E(r);for(Y=r.next();!Y.done;Y=r.next())Y=Y.value,Y.prototype.prepend=kQP(Y.prototype.prepend),Y.prototype.append=kQP(Y.prototype.append);(Kx==null?void 0:Kx.noPatch)===!0&&DQl();document.readyState==="complete"?Rs(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Rs(document.body)});
var V=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");V&&V.get&&V.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:V.enumerable,configurable:!0,get:V.get,set:function(S){S||vc(this);V.set.call(this,S);return S}})}};
kQP=function(r){return function(){var f=_.XE.apply(0,arguments),I=_.E(BKR(f)),C=I.next().value;I=I.next().value;r.apply(this,f);f=_.E(I);for(I=f.next();!I.done;I=f.next())vc(I.value);if(this.isConnected)for(C=_.E(C),f=C.next();!f.done;f=C.next())f=f.value,f instanceof Element&&Rs(f)}};
DQl=function(){for(var r=_.E(fAw),f=r.next();!f.done;f=r.next()){f=f.value.prototype;for(var I=_.E(IA$),C=I.next();!C.done;C=I.next()){C=C.value;var Y=Object.getOwnPropertyDescriptor(f,C);Y&&Object.defineProperty(f,"__shady_native_"+C,Y)}}};
uvl=function(r,f,I,C){var Y,V;if((Y=r.polymerController)==null?0:(V=Y.observedAttributes)==null?0:V.includes(f))if(r=r.polymerController,r.attributeChangedCallbackWrapper)r.attributeChangedCallbackWrapper.call(r,f,I,C);else{var S;(S=r.attributeChangedCallback)==null||S.call(r,f,I,C)}};
BKR=function(r){var f=[],I=[];r=_.E(r);for(var C=r.next();!C.done;C=r.next())C=C.value,C instanceof Element&&C.isConnected&&I.push(C),C instanceof DocumentFragment?f.push.apply(f,_.Na(Array.from(C.children))):f.push(C);return[f,I]};
qXK=function(r){return!(r instanceof Element)&&r.node instanceof Element?r.node:r};
C4P=function(r,f){var I=f?["children"].concat(_.Na(f)):["children"];f=[];I=_.E(I);for(var C=I.next();!C.done;C=I.next()){var Y=C.value;if(r.hasOwnProperty(Y)){C=r[Y];C=typeof C==="function"?C():C;C=EQ(Array.isArray(C)?C:[C]).flat();if(Y!=="children"){Y=ncE(Y);for(var V=_.E(C),S=V.next();!S.done;S=V.next())S=S.value,S instanceof Element&&S.setAttribute("slot",Y)}f.push(C)}}f.length===0?r=[]:(r=EQ(_.p("div",null,f)),r=Array.from(r.childNodes));return r};
lAw=function(r,f,I){var C={};_.Nk(function(){var Y={},V;for(V in f)if(f.hasOwnProperty(V)){var S=void 0,h=void 0;if(!(((S=I.slotProps)==null?0:S.includes(V))||V==="children"||((h=I.callbackProps)==null?0:h.includes(V))||V==="ref")&&(S=_.tR(f[V]),C[V]!==S)){C[V]=S;h=void 0;var w=(h=r.hostElement)!=null?h:r;YpP.has(V)&&(w[V]=S);Y[V]=S}}wI(function(){if(r.setProperties)r.setProperties(Y);else for(var n=_.E(Object.entries(Y)),d=n.next();!d.done;d=n.next()){var z=_.E(d.value);d=z.next().value;z=z.next().value;
r[d]=z}})})};
EMl=function(r,f,I,C){var Y=C4P(I,C.slotProps),V=_.N("web_wcw_disable_slot_host_shady_dom_wrap")?r:(0,_.AN)(r);Y=_.E(Y);for(var S=Y.next();!S.done;S=Y.next())V.appendChild(S.value);lAw(f,I,C);C=_.E(C.callbackProps||[]);Y=C.next();for(V={};!Y.done;V={kebabEventName:void 0,eventListener:void 0},Y=C.next())S=Y=Y.value,String(Y).substring(0,2)==="on"&&I[S]?(V.kebabEventName=ncE(String(Y).substring(2)),V.eventListener=I[S],r.addEventListener(V.kebabEventName,V.eventListener),_.$L(function(d){return function(){r.removeEventListener(d.kebabEventName,
d.eventListener)}}(V))):f[S]=I[S];
if(I.ref){I=_.E(VyK(I.ref));var h=I.next().value,w=I.next().value,n=f.attached.bind(f);f.attached=function(){h(r);n()};
_.$L(function(){w()})}};
VyK=function(r){if(typeof r==="function"){var f;return[function(I){f=r(I)},
function(){var I;(I=f)==null||I()}]}if(!r.onRender||!r.onUnmount)throw Error("Rg");
return[r.onRender,r.onUnmount]};
wOu=function(r,f,I,C,Y){C=C===void 0?{}:C;var V=SpE,S=!1;V?(S=!0,SpE=void 0):(xDu=f,V=document.createElement(f),xDu=void 0);var h=V;h.usePatchedLifecycles=!0;h.lifecycleIsConnected=!1;V.loggingStatus={};var w=h$K(r,f,V,C,Y);_.$L(function(){h.lifecycleIsConnected&&(h.lifecycleIsConnected=!1,w.disconnectedCallback())});
S||EMl(V,w,I,C);return V};
h$K=function(r,f,I,C,Y){Y=Y===void 0?R2P:Y;bPK[f]!=null||(bPK[f]=Y(r,f,C==null?void 0:C.getTemplate,C));var V=bPK[f],S=V.ctor;Y=V.getInitialMethods;var h=V.getPropsToForwardBeforeReady;r=V.getPropsToForwardBeforeRegister;C=V.shouldForwardProp;var w=V.observedAttributes,n=V.shouldLog,d=S(I,{beforeReady:function(){var z=d;z._takeAttributes?z._takeAttributes():z.setPropertiesFromInitialAttributeValues&&z.setPropertiesFromInitialAttributeValues();z=_.E(h(I.polymerController));for(var g=z.next();!g.done;g=
z.next()){var X=_.E(g.value);g=X.next().value;X=X.next().value;y2B(I,g,X);n(f)&&!i7(g)&&OU$(I.polymerController,g)}I.polymerController=EgB(d,f)}});
I.polymerController=d;I.polymerController.observedAttributes=w;V=_.E(d.getExtraMethodsToForward());for(S=V.next();!S.done;S=V.next())w=_.E(S.value),S=w.next().value,w=w.next().value,UQc(I,S,w);Y=_.E(Y());for(V=Y.next();!V.done;V=Y.next())V=V.value,C(V)&&UQc(I,V),n(f)&&!i7(V)&&suR(d,V);r=_.E(r());for(C=r.next();!C.done;C=r.next())Y=_.E(C.value),C=Y.next().value,Y=Y.next().value,y2B(I,C,Y);return d};
nMP=function(r,f){return yQ===f?(r.isInert=!0,yQ="",!0):pOc===f?(r.isInert=!0,pOc="",!0):!1};
dDB=function(r){var f=U$;U$=r;return f};
MyU=function(r){if(s$.has(r))pOc=r;else if(O$.has(r)&&U$&&z$K(U$)===r){var f;(f=U$)._numRenders!=null||(f._numRenders=0);U$._numRenders++;if(U$._numRenders>1)throw Error("Sg");return U$}};
gMU=function(r){s$.has(z$K(r))?pOc=z$K(r):O$.has(z$K(r))&&U$!==r&&(r._isInert=!0)};
z$K=function(r){var f;return(f=r==null?void 0:r.tagName.toLowerCase())!=null?f:""};
aAP=function(r,f){if(r.componentType===ny)throw Error("Tg");O$.add(f);var I=function(){var C=HTMLElement.call(this)||this;C.is=f;if(xDu===f)return C.isInert=!0,C;C.createElement();return C};
_.t(I,HTMLElement);I.prototype.createElement=function(){if(!this.isInert){SpE=this;var C=_.E(WCd(function(){return _.p(r,null)})).next().value;
SpE=void 0;SJu(this);return C}};
customElements.define(f,I)};
NzR=function(r,f,I,C,Y){r.prototype.is=f;(C==null?0:C.useSink)?XOB(r,f,I,C,Y):(I=R2P(r,f,I,C),orR(I,f));return r};
XOB=function(r,f,I,C,Y){rru();var V=_.Hc(function(S){return wOu(r,f,S,Object.assign({},C,{getTemplate:I}),Y)},"a");
aAP(V,f);return V};
F$U=function(r){return!$Dd.has(r)};
TzR=function(r,f,I,C){function Y(){if(!z){for(var g=new Set(P4l),X=_.E(V.behaviors),P=X.next();!P.done;P=X.next()){P=P.value;for(var W=_.E(Object.getOwnPropertyNames(P)),m=W.next();!m.done;m=W.next()){m=m.value;var v=void 0,O=(v=Object.getOwnPropertyDescriptor(P,m))==null?void 0:v.value;O&&O instanceof Function&&(!n[m]||_.N("polymer_forward_method_killswitch"))&&g.add(m)}}X=_.E(Object.entries(Object.getOwnPropertyDescriptors(r.prototype)));for(P=X.next();!P.done;P=X.next())W=_.E(P.value),P=W.next().value,
W=W.next().value,W.value instanceof Function&&g.add(P);z=g}return z}
var V=SXP({is:f,disableElementRegistration:!1,getTemplate:I,providers:C==null?void 0:C.providers,reactivityMode:C==null?void 0:C.reactivityMode},r);if((C==null?0:C.allowedProps)||(C==null?0:C.allowedPropsFromBehaviors)){var S,h;V.allowedProps=[].concat(_.Na((S=C.allowedProps)!=null?S:[]),_.Na((h=C.allowedPropsFromBehaviors)!=null?h:[]))}var w=fSd(V,r);f=w.observedAttributes;var n={};I=_.E(V.reactiveSchemas);for(C=I.next();!C.done;C=I.next())if(C=C.value,C.type==="signal")n[C.propertyKey]={readOnly:C.readOnly},
C.readOnly&&(n[erd(C.propertyKey)]={readOnly:!0});else if(C.type==="compute"||C.type==="computeWithMethod"||C.type==="redux")n[C.propertyKey]={readOnly:!0};var d=V.reactiveSchemas.length,z;return{ctor:function(g,X){g=new w(g);g.beforeReady=X.beforeReady;return g},
props:n,observedAttributes:f,getInitialMethods:Y,getPropsToForwardBeforeRegister:function(){for(var g=[],X=new Set,P=_.E(tyq),W=P.next();!W.done;W=P.next())W=W.value,g.push([W,W!=="observers"&&W!=="properties"]),X.add(W);P=_.E(Object.keys(n));for(W=P.next();!W.done;W=P.next())W=W.value,g.push([W,n[W].readOnly]),X.add(W);P=Y();W=_.E(Object.keys(Object.getOwnPropertyDescriptors(r.prototype)));for(var m=W.next();!m.done;m=W.next())m=m.value,!F$U(m)||P.has(m)||X.has(m)||(g.push([m,!1]),X.add(m));g.push(["allowedProps",
!0]);return g},
getPropsToForwardBeforeReady:function(g){var X=[];g=_.E(Object.keys(g));for(var P=g.next();!P.done;P=g.next()){P=P.value;var W=Y();F$U(P)&&!W.has(P)&&X.push([P,!1])}g=_.E(V.reactiveSchemas.slice(d));for(P=g.next();!P.done;P=g.next())P=P.value,P.type!=="compute"&&P.type!=="computeWithMethod"&&P.type!=="redux"&&P.type!=="signal"||X.push([P.propertyKey,P.type==="signal"?P.readOnly:!0]);return X},
shouldForwardProp:F$U,shouldLog:l7}};
_.Q=function(r,f,I,C){var Y,V,S=(V=(Y=C)==null?void 0:Y.mode)!=null?V:0;C!=null||(C={});var h;(h=C).reactivityMode!=null||(h.reactivityMode=0);S===1&&_.uk("creator_poly_si_disable_list").includes(f)&&(S=2);return S===1?NzR(r,f,I,Object.assign({},C,{useSink:!0}),TzR):NzR(r,f,I,Object.assign({},C,{useSink:S===2}))};
_.os=function(){return function(r,f,I,C){var Y,V,S=(V=(Y=C)==null?void 0:Y.mode)!=null?V:2;C!=null||(C={});var h;(h=C).reactivityMode!=null||(h.reactivityMode=0);if(S===0)throw Error("Ug`"+S);return XOB(r,f,I,C,S===1?TzR:void 0)}};
_.QQ=function(r){return _.N("creator_poly_si_killswitch")?!1:_.N("force_all_poly_si_batches")&&(r==="poly_si_all_on_test_check"||r==="creator_poly_si_batch_050"?0:r)||document.documentElement.hasAttribute("use-signals")?!0:!r||_.N(r+"_holdback_enabled")&&_.N("kevlar_polysi_holdback")?!1:_.N(r)};
AG=function(r){return r?r.icon?r.icon.iconType.toLowerCase():r.customThumbnail?"member":"":""};
cr$=function(r){if(!r)return"";r=_.E(r);for(var f=r.next();!f.done;f=r.next())if((f=f.value)&&f.liveChatAuthorBadgeRenderer&&(f=AG(f.liveChatAuthorBadgeRenderer))&&f!=="verified")return f;return""};
W$E=function(r,f){if(!r)return null;var I;return((I=r.find(function(C){return C&&C.liveChatAuthorBadgeRenderer?AG(C.liveChatAuthorBadgeRenderer)===f:!1}))==null?void 0:I.liveChatAuthorBadgeRenderer)||null};
_.HPB=function(r){var f=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;r=L$q(r);f=L$q(f);var I=mD$(r.hex);f=mD$(f.hex);var C=f[0]/255;var Y=f[1]/255,V=f[2]/255,S=Math.max(C,Y,V),h=Math.min(C,Y,V),w=0,n=0,d=.5*(S+h);S!=h&&(S==C?w=60*(Y-V)/(S-h):S==Y?w=60*(V-C)/(S-h)+120:S==V&&(w=60*(C-Y)/(S-h)+240),n=0<d&&d<=.5?(S-h)/(2*d):(S-h)/(2-2*d));C=[Math.round(w+360)%360,n,d];I=e$U(I,f);for(r=JrP(r.hex);I<4.5;){r=C[2]>=.5?r.darker((4.5-I)/2):r.brighter((4.5-I)/2);I=r.toString();
Y=jiK(I);if(!Y.length)throw Error("Sd`"+I);I=Y;I=e$U(I,f)}return r.hex()};
e$U=function(r,f){r=_.SS$(r);f=_.SS$(f);return(Math.max(r,f)+.05)/(Math.min(r,f)+.05)};
_.Z1=function(r){return"#"+("000000"+(r&16777215).toString(16)).slice(-6)};
_.iPK=function(r){for(var f=0,I=0;I<r.length;I++)f=r.charCodeAt(I)+((f<<5)-f);r="#";for(I=0;I<3;I++)r+=("00"+(f>>I*8&255).toString(16)).slice(-2);return r};
R$R=function(r){r=(r||"").split(":");r.length===1&&r.unshift("yt-icons");r[1]=r[1].toLowerCase();return r};
OPq=function(r,f){var I=(f=f===void 0?!1:f)?vMK:K$E,C=f?yr$:UDq;r.getIconNames().forEach(function(Y){Y=f?Y:Y.substring(Y.indexOf(":")+1);r.name==="yt-icons"?siR.add(Y):Y.includes("-filled")?I.add(Y):C.add(Y)})};
GX=function(r,f,I,C){I=I===void 0?!1:I;C=C===void 0?!1:C;var Y,V,S;return _.x(function(h){if(h.nextAddress==1)return _.b(h,oM$,2);if(C)return h.return(siR.has(r));Y=I?vMK:K$E;V=I?yr$:UDq;return f?(S=r.includes("-filled")?r:r.concat("-filled"),h.return(Y.has(S))):h.return(V.has(r))})};
_.ZPE=function(r){if(Qiq(r))return r;var f=r=r.toLowerCase();(r=ArB.get(r))&&(f=r);return f};
_.kN=function(r){if(Qiq(r))return r.toString();var f=GTK.get(r);if(f)return f;f=r.toLowerCase();var I="yt-icons",C=f.replace(/_/g,"-");switch(r){case "MY_CHANNEL":f="account_circle";break;case "ADD_TO_LIBRARY":f="add";break;case "ALERT_WARN_RED":f="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":f="person_music";break;case "BLOCK_USER":f="block";break;case "CAPTIONS":f="closed_caption";break;case "CLOSED_CAPTION":I="av";f="closed-caption";break;case "COLLECTION":I="maps";f="layers";break;case "CONTACT":I=
"icons";f="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":I="ytcp-icons";f=C.split("creator-studio-")[1];break;case "DISMISSAL":f="close";break;case "DO_NOT_DISTURB":f="block";break;case "DOGFOOD":I="icons";f="pets";break;case "DRAFT":f="paper_corner_folded";break;
case "EMPTY_LIKE":f="like_outline";break;case "EXIT_APP":f="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":f=C;break;case "GAMES":I="ytg";f="my-games";break;case "GO_TO_PAGE":f="arrow-forward";break;case "GROUP":I="social";break;case "HIDE":f="not_interested";break;case "INPUT_COMPONENT":I="icons";f="settings-input-component";break;case "KIDS_BLOCK":f="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":I="ytg";f="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":I=
"ytg";f="membership-post-purchase";break;case "MULTIVIEW":f="screen_multi_view";break;case "MY_LOCATION":I="maps";f=C;break;case "NOTIFICATIONS_INBOX":f="NOTIFICATIONS";break;case "NEXT":f="chevron_right";break;case "OFFLINE":f="power-settings-new";break;case "PAUSE":I="miniplayer";break;case "PAYMENT":I="icons";break;case "PHONE_DOWNLOAD":f="phone_download";break;case "PREMIUM_STANDALONE":I="yt-logos";f="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":I="yt-logos";f="premium_standalone_cairo";
break;case "QUESTION_ANSWER":f="question_answer";break;case "REDEEM":I="icons";f="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":f="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":f="library_add";break;case "SCHOOL":I="yt-sys-icons";f="creator_academy";break;case "SETTINGS_LIGHT":f="settings_applications";break;case "SETTINGS_MATERIAL":f="settings";break;case "SEARCH_HISTORY":f="watch_history";break;case "SHOPPING_BAG":f="bag";break;case "SOCIAL":case "PEOPLE":I=
"yt-icons";f="people";break;case "STAFF_PICK":I="ytg";f="spotlight";break;case "START_DVR":f="add";break;case "STOP_DVR":I="av";f="stop";break;case "TAB_LIKED":f="like";break;case "TAB_INBOX":f="mail";break;case "TERMS_OF_SERVICE":I="icons";f="description";break;case "TRENDING":f="fire";break;case "UNBLOCK_USER":f="remove";break;case "UNPLUGGED_DARK_THEME":I="image";f="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":f="live";break;case "UNPLUGGED_SPORTS":I="ytu";f="visibility-off";break;
case "VIDEOS":I="av";f="play-circle-filled";break;case "YOUTUBE":I="yt-logos";f="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":I="yt-logos-ext";f="yt-logo-red-updated";break;case "YOUTUBE_LOGO":I="yt-logos-ext";f="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":I="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":I="shorts";f=C;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":I="yt-sys-icons";f="youtube_improve_tv";break;case "OUTLINE_BAG":I=
"yt-sys-icons";f="bag";break;case "QUEUE_PLAY_LAST":I="yt-sys-icons";f="list_queue_last";break;case "SLASH_CIRCLE_LEFT":f="slash_circle_left";break;case "SPEED_1_POINT_2X":f="1_point_2x";break;case "SPEED_1_POINT_5X":f="1_point_5x";break;case "SPEED_1_POINT_8X":f="1_point_8x";break;case "SPEED_POINT_2X":f="point_2x";break;case "SPEED_POINT_5X":f="point_5x";break;case "SPEED_POINT_8X":f="point_8x";break;case "SPEED_1X":f="1x";break;case "SPEED_2X":f="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":I="yt-sys-icons";
f="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":I="yt-sys-icons";f="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":I="yt-sys-icons",f="tic_tac_toe"}f=I+":"+f;GTK.set(r,f);return f};
Qiq=function(r){var f;_.N("kevlar_use_wil_icons")?f=!!_.a().resolve(_.Bc).resolveIcon({iconName:r.toString()}):f=!1;return f};
_.u7=function(r,f,I,C){I=I===void 0?{}:I;C=C===void 0?!1:C;I===null&&(I={});var Y=_.uk("kevlar_command_handler_command_banlist");Y=_.E(Y);for(var V=Y.next();!V.done;V=Y.next())if(V=r?r.hasOwnProperty(V.value):void 0,V)return!1;Y=_.F(r.commandMetadata,_.oo);return C&&Y!=null&&Y.url?!1:!f.disableCommandHandlerOverride&&_.qv.instance?(C=_.qv.instance,I.form||(I.form={element:f}),I.form.element||(I.form.element=f),!I.clickedVisualElement&&f.visualElement&&(I.clickedVisualElement=f.visualElement),C.resolveCommand(r,
I),!0):!1};
kTB=function(r,f){r=D1(r);for(var I=_.E(r.visibilityMonitorKeys||[]),C=I.next();!C.done;C=I.next())f.unobserveByKey(C.value);r.visibilityMonitorKeys=void 0};
DDu=function(r,f){if(_.t1()){if(_.N("kevlar_vimio_use_shared_monitor"))Bzm(r,f.data);else if(!Bzm(r,f.data))return;var I=f.data,C=qpR(I);if(_.N("enable_client_ve_spec_logging"))kTB(r,f.observer);else{var Y=D1(r);Y.trackedParams&&Y.trackedParams!==C&&kTB(r,f.observer)}Y=D1(r);!I||Y.data&&Y.data===I||(Y.data=I);ubm(r,f);Y.trackedParams=C}};
ubm=function(r,f){var I=f.observer;if(!I&&_.N("web_skip_missing_vimio_observer")){var C,Y;_.t7(new _.nf("VisibilityObserver is not defined.",r.tagName,r.trackedParams,(C=f.data)==null?void 0:C.trackingParams,(Y=f.data)==null?void 0:Y.loggingDirectives))}else{var V=f.layer,S=f.visibilityCallback||function(){},h=f.prescanCallback,w=D1(r);
C=[];f.showOption&&C.push(I.observe(r,function(){f.skipLogging&&f.skipLogging()||_.rF().reportShown(w,void 0,V);S(!0)},f.showOption));
f.hideOption&&C.push(I.observe(r,function(){_.rF().reportHidden(w,void 0,V);S(!1)},f.hideOption));
f.prescanOption&&h&&C.push(I.observe(r,function(){h()},f.prescanOption));
w.visibilityMonitorKeys=C}};
Bzm=function(r,f){r=D1(r);if(r.visualElement&&!f)return!0;if(!f)return!1;var I=!1;if(_.N("enable_client_ve_spec_logging")){var C,Y;I=!!((C=f.loggingDirectives)==null?0:(Y=C.clientVeSpec)==null?0:Y.uiType)}C=qpR(f);if(!C&&!I)return!1;_.N("mweb_component_visibility_logging")&&(r.veContainer||(r.veContainer={}),r.veContainer.trackingParams=C);if(r.trackedParams&&r.trackedParams===C)return!1;var V;if(_.N("enable_client_ve_spec_logging")&&((V=r.visualElement)==null?0:V.isClientVe())){var S;V=(S=r.visualElement)==
null?void 0:S.getAsJspb();var h,w,n,d;if(_.u3(V,2)===((h=f.loggingDirectives)==null?void 0:(w=h.clientVeSpec)==null?void 0:w.uiType)&&_.u3(V,3,-1)===((n=f.loggingDirectives)==null?void 0:(d=n.clientVeSpec)==null?void 0:d.elementIndex))return!1}if(_.N("enable_client_ve_spec_logging")){var z,g;!r.visualElement&&((z=f.loggingDirectives)==null?0:(g=z.clientVeSpec)==null?0:g.uiType)&&(h=f.loggingDirectives.clientVeSpec,f=h.uiType,S=h.elementIndex,h=h.clientYoutubeData,r.visualElement=_.fv(_.IB(),{veType:f,
elementIndex:S,clientYouTubeData:h}))}return!0};
qpR=function(r){if(r==null?0:r.rendererContext){var f=_.F(r.rendererContext,_.rtK);if(f==null?0:f.loggingDirectives)return f.loggingDirectives.trackingParams}return(r==null?0:r.loggingDirectives)?r.loggingDirectives.trackingParams:r==null?void 0:r.trackingParams};
D1=function(r){var f;return(f=r.polymerController)!=null?f:r};
YBc=function(r){_.rF();if(_.Jn(Cv().JSC$10367_elementShouldLogGesture).bind(Cv())(r,4)){fwE(r);var f=IwU(r);CtE.set(r,f)}};
fwE=function(r){CtE.has(r)&&(CtE.get(r).cancel("untrack hover element"),CtE.delete(r))};
IwU=function(r){var f,I=[],C=!1,Y=new _.lz(function(V,S){YY(r,"mouseenter",_.Jn(function(){var h,w,n;return _.x(function(d){if(d.nextAddress==1)return f=(0,_.Ad)(),h=lwu(r),I.push(h),w=VRE(r,function(){C=!0;S(Error("Vg"))}),_.b(d,h,2);
if(d.nextAddress!=3)return w&&lT(w),n=EKR(r),I.push(n),_.b(d,n,3);V();_.wO(d)})}))});
Y.then(function(){var V=(0,_.Ad)()-f;V=Math.round(V);if(!(500>V||6E5<=V)){var S=r.getScreenLayer?r.getScreenLayer():void 0;S=_.t1(S)||"";var h=SBq(_.rF(),r);_.Rl(S,r.visualElement?r.visualElement:_.VH(h),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:V}})}YBc(r)},function(){E6&&(E6(),E6=null);
C&&(fwE(r),YBc(r))});
return Y};
lwu=function(r){var f;return(new _.lz(function(I,C){E6=function(){C(Error("Wg"))};
f=_.F_.debounce(_.Jn(function(){lT(Y);I()}),1,100);
var Y=_.S$(r,"mousemove",f)})).thenCatch(function(){var I=_.F_.cancelDebouncedJobMap.get(f);
I&&_.F_.cancelJob(I)})};
EKR=function(r){var f;return(new _.lz(function(I,C){E6=function(){C(Error("Xg"))};
f=YY(r,"mouseleave",_.Jn(function(){I()}))})).thenCatch(function(){lT(f)})};
VRE=function(r,f){return YY(r,"mouseleave",_.Jn(f))};
hPE=function(r){x8E&&_.xY.cancel(x8E);x8E=_.xY.run(function(){_.kA(r,"yt-visibility-refresh");x8E=0})};
wAc=function(r){r=Number(r);return"rgba("+[r>>16&255,r>>8&255,r&255,(r>>24&255)/255].join()+")"};
pAw=function(r){if(!r)return!1;if(_.F(r,_.bnq))return!0;var f;if(r=(f=_.F(r,_.Il))==null?void 0:f.commands)for(f=_.E(r),r=f.next();!r.done;r=f.next())if(_.F(r.value,_.bnq))return!0;return!1};
nKc=function(r){var f=!0;f=f===void 0?!0:f;if(!r.useSignals&&!r.experimentalPropertiesChanged||_.N("experimental_templating_behavior_nopatch_killswitch")){var I=r._propertiesChanged;r._propertiesChanged=function(C,Y,V){f?r.debounceRender():r.doRender();I&&I.call(r,C,Y,V)}}};
d8m=function(r,f){if(r.useSignals||r.experimentalPropertiesChanged)if(_.N("experimental_templating_behavior_nopatch_killswitch"))r.experimentalPropertiesChanged=function(){};
else return;var I=new Set,C=[r].concat(_.Na(r.behaviors));C=_.E(C);for(var Y=C.next();!Y.done;Y=C.next()){Y=Y.value;for(var V in Y.properties)I.has(V)||(r._addPropertyEffect(V,"function",f),I.add(V))}};
zPK=function(){var r=Polymer.Element,f=r._prepareTemplate;r._prepareTemplate=function(){f.call(this);var I=this.prototype;if(I.experimentalTemplatingInUse&&I.experimentalTemplatingInUse()&&I.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.Fo(Error("Yg"));else{I=this.template.content.childNodes;for(var C=I.length-1;C>=0;C--){var Y=I[C];Y.nodeName!=="STYLE"&&Y.nodeName!=="LINK"&&Y.nodeName!=="SCRIPT"&&Y.nodeName!=="#comment"&&Y.remove()}}}};
MRw=function(r){var f=!0;f=f===void 0?!0:f;zPK();var I=r.ready;r.ready=function(){this._template=null;I.call(this)};
d8m(r,f?r.debounceRender:r.doRender)};
awK=function(r,f,I){if(I===null||I===void 0)return I;var C=asu(r.tagName.toLowerCase(),f,function(){throw Error("Qb");});
if(C===null)return I;C=gKw[C];var Y;if((Y=C.isUnwrappable)==null?0:Y.call(C,I)){if(C.unwrap)return C.unwrap(I);throw Error("ah");}return C.filterString?C.filterString(r.tagName,f,String(I)):I};
XAl=function(r,f,I){var C=f[f.length-1]!=="$",Y=awK(r,f,I);if(C)if(typeof Y==="function"&&f.startsWith("reactiveon")&&f===f.toLowerCase()){var V=OD;L8q(r,f.slice(8),function(S){TA(V,function(){Y(S)})})}else r[f]=Y;
else I=Y==null?null:String(Y),W8R(r,f.slice(0,-1),I)};
wF=function(r){Nyd.length===0&&requestAnimationFrame(function(){setTimeout(function(){var f=Nyd.slice();Nyd.length=0;f=_.E(f);for(var I=f.next();!I.done;I=f.next()){I=I.value;try{I()}catch(C){_.h3(C)}}})});
Nyd.push(r)};
$8U=function(r){if(r){var f=r.component;if(f){var I;f==null||(I=f.events)==null||I.publish("DISCONNECTED");var C;f==null||(C=f.onDisconnected)==null||C.call(f)}var Y,V;(Y=r.__spec)==null||(V=Y.didUnmount)==null||V.call(Y);for(f=0;f<r.childNodes.length;f++)$8U(r.childNodes[f])}};
pv=function(r,f,I){var C=f&&f.key,Y=Ky;Y[0]=r;Y[1]=C;Y[2]=void 0;for(var V in f)f.hasOwnProperty(V)&&(r=f[V],C=y3,C.push(V),C.push(r));f=Ky;a:{if(V=Ky[2])for(r=0;r<V.length;r+=2)if(V[r]==="nonce"){V=V[r+1];break a}V=""}V=OWw(f[0],f[1],V);r=mb(V);C=f[2];if(!r.staticsApplied&&(r.staticsApplied=!0,C&&C.length))if((Y=r._attrsArr)&&Y.length){for(Y=0;Y<C.length;Y+=2)bT[C[Y]]=Y+1;Y=r._attrsArr||(r._attrsArr=cVR(0));for(var S=0,h=0;h<Y.length;h+=2){var w=Y[h],n=Y[h+1],d=bT[w];d?C[d]===n&&delete bT[w]:(Y[S]=
w,Y[S+1]=n,S+=2)}W9(Y,S);for(var z in bT)HWw(V,z,C[bT[z]],o5),delete bT[z]}else for(z=0;z<C.length;z+=2)HWw(V,C[z],C[z+1],o5);BUR(V,r,o5);W9(f,0);I&&I(eb);ooU()};
FcB=function(r){var f=r.toString().toLowerCase();return function(I,C){pv(f,I,C)}};
_.nv=function(r,f,I){I===void 0?delete r[f.name]:r[f.name]=I};
_.dF=function(r){var f={androidIncludeFontPadding:!1},I=0,C=[],Y=[],V=[];if(r.simpleText)return f.content=r.simpleText,f;if(r.runs===void 0)return f.content="",f;r=_.E(r.runs);for(var S=r.next();!S.done;S=r.next()){S=S.value;var h=S.text,w=void 0,n=(w=h)==null?void 0:w.length;if(h&&n){C.push(h);if(S.bold||S.italics||S.strikethrough||S.underline||S.textColor!=null&&S.textColor!==0||S.deemphasize){h=Y;w=h.push;var d={startIndex:I,length:n};S.bold&&(d.weightLabel="FONT_WEIGHT_MEDIUM");S.italics&&(d.italic=
!0);S.strikethrough&&(d.strikethrough="LINE_STYLE_SINGLE");S.underline&&(d.underline="LINE_STYLE_SINGLE");S.textColor!=null&&S.textColor!==0?document.documentElement.hasAttribute("dark")?d.fontColor=S.darkModeTextColor||S.textColor:d.fontColor=S.textColor:S.deemphasize&&(document.documentElement.hasAttribute("dark")?d.fontColor=parseInt("ff"+PtK("#aaa").substring(1),16):d.fontColor=parseInt("ff"+PtK("#606060").substring(1),16));w.call(h,d)}S.navigationEndpoint&&(h=V,w=h.push,d={startIndex:I,length:n,
onTap:{innertubeCommand:S.navigationEndpoint}},S.loggingDirectives&&_.nv(d,tRB,S.loggingDirectives),w.call(h,d));I+=n}}f.content=C.join("");f.styleRuns=Y.length?Y:void 0;f.commandRuns=V.length?V:void 0;return f};
ctu=function(r){if(r==null||!r.runs)return!0;r=_.E(r.runs);for(var f=r.next();!f.done;f=r.next())if(f=f.value,f.bracket||f.errorUnderline||f.deemphasize||_.F(f,zi)||_.F(f,TyP))return!1;return!0};
WcR=function(r,f){return function(I){var C=f.unit;if(C!==I)throw Error("dh`"+r+"`"+C+"`"+I);return f}};
Md=function(r){if(!((r==null?0:r.value)&&(r==null?0:r.unit)))return"";switch(r.unit){case "DIMENSION_UNIT_FRACTION":var f="%";break;default:f="px"}r=r.value;f==="%"&&(r*=100);return""+r+f};
Lcw=function(r){try{return r()}catch(f){_.t7(f)}};
_.aB=function(r){var f=_.F(r,_.gF);if(f)return f;if((f=_.F(r,m8w))&&f.commands)return ePc(f.commands);if((f=_.F(r,JtE))&&f.commands)return ePc(f.commands);if((r=_.F(r,jyB))&&r.identifier&&r.command&&(HnR||(HnR=[]),!HnR.includes(r.identifier)))return HnR.push(r.identifier),_.F(r.command,_.gF)};
ePc=function(r){if(r.length!==0){var f=[];r=_.E(r);for(var I=r.next();!I.done;I=r.next())(I=_.aB(I.value))&&f.push(I);return{commandExecutorCommand:{commands:f}}}};
_.Nd=function(r){var f=r.defaultTarget,I=r.elementConfig,C=r.elementsCommand,Y=r.skipOnClick,V=r.forceNewState,S=r.additionalCommandArgs,h=r.innertubeCommand||_.aB(C);if(h){r={};var w=inP(h);C=w.navigatingCommand;w=w.href;C&&w?(r.href$=w,RPm(r,C,w,f),_.N("web_atagconfig_pointerdown")&&vKB(r,C),V&&(r["force-new-state$"]=!0)):(r.role$="button",r.href$="javascript:void(0);");_.F(h,Kc$)&&(r["aria-haspopup$"]=!0);Y||(r.onclick=function(n){if(yt$(n)){var d=Object.assign({},{form:{element:n.target,event:n}},
S);n.preventDefault();_.X2(h,d)}});
return Object.assign({},I,r)}};
U8u=function(r){if(r.length){if(r.length===1)return r[0];var f={};_.nv(f,_.Il,{commands:r});return f}};
$Y=function(r){return r&&r.href$!=="javascript:void(0);"};
inP=function(r){var f,I=((f=_.F(r,_.Il))==null?void 0:f.commands)||[r];r=_.E(I);for(f=r.next();!f.done;f=r.next()){f=f.value;var C=void 0,Y=void 0;I=(Y=_.F((C=f)==null?void 0:C.commandMetadata,_.oo))==null?void 0:Y.url;_.N("web_remove_web_navigation_endpoint_data")||(C=void 0,I=I||((C=_.F(f,syR))==null?void 0:C.url));if(I&&I!=="/service_ajax"){if(C=zC(I,Onw))return r=_.nK(C),{navigatingCommand:f,href:r};_.t7(new _.nf("AttributedString URL could not be sanitized",I))}}return{}};
yt$=function(r){return r.button!==void 0?r.button===0&&!(r.shiftKey||r.altKey||r.metaKey||r.ctrlKey):!(r.shiftKey||r.altKey||r.metaKey||r.ctrlKey)};
RPm=function(r,f,I,C){I=!QM(I);var Y,V,S;if((Y=_.F(f,_.lA))!=null&&Y.nofollow||(V=_.F(f,_.vj))!=null&&V.nofollow||(S=_.F(f,_.HR))!=null&&S.nofollow||I)r.rel$="nofollow";var h;f=((h=_.F(f,_.HR))==null?void 0:h.target)==="TARGET_NEW_WINDOW"?"_blank":C===void 0?"":C;r.target$=f};
vKB=function(r,f){f.clickTrackingParams&&(r.params={itct:f.clickTrackingParams});r.onpointerdown=function(I){oKc(I)};
r._data=f};
QyK=function(r){(r.loggingUrls||[]).forEach(function(f){HW(f.baseUrl,f.attributionSrcMode)})};
Atl=function(r){r.currentTarget._data&&QyK(r.currentTarget._data)};
oKc=function(r){var f=r.currentTarget;r=Lcw(function(){return f.href});
var I=f.params;r&&_.sl(r,I||{},8,!0)};
Znc=function(r,f){if(f=_.F(f,_.HR))(f==null?void 0:f.target)==="TARGET_NEW_WINDOW"&&(r.target="_blank"),f.nofollow&&(r.rel="nofollow")};
GnP=function(r){r=_.F(r==null?void 0:r.commandMetadata,_.oo);return(r==null?0:r.url)?r.url:null};
_.F2=function(r,f){(r=_.aB(r))&&_.X2(r,f)};
_.X2=function(r,f){HEE(function(I){f?I.resolveCommand(r,f):I.resolveCommand(r)})};
uQ$=function(r,f){var I=["yt-core-attributed-string__link"];f!=null&&f.noLinkColor||((f==null?0:f.isOverlay)?I.push("yt-core-attributed-string__link--overlay-call-to-action-color"):I.push("yt-core-attributed-string__link--call-to-action-color"),(f==null?0:f.linkInheritColor)&&I.push("yt-core-attributed-string--link-inherit-color"));I={className:I.join(" "),tabindex$:"0"};var C=r.onTap||r.onLongPress;if(!C)return I;var Y=knR(r);Y&&(I["aria-label$"]=Y);f=_.Nd({elementsCommand:C,elementConfig:I,skipOnClick:!(f==
null||!f.skipOnClick),forceNewState:!0});r.onLongPress&&(C=new Bym(function(){var V=_.aB(r.onLongPress);V&&_.a().resolve(_.Gg).resolveCommand(V)}),f&&qBm(C,f));
return f||I};
knR=function(r){var f,I;return(f=r.onTapOptions)==null?void 0:(I=f.accessibilityInfo)==null?void 0:I.accessibilityLabel};
D8q=function(r){var f=r;r<=16777215&&(f+=parseInt("ff000000",16));return _.g_(f)};
rCK=function(r){var f=r.isDarkTheme;var I=r.extension;r=r.runColor;var C=void 0;if(I=I==null?void 0:I.colorMap){f=f?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";I=_.E(I);for(var Y=I.next();!Y.done;Y=I.next())if(Y=Y.value,f===Y.key){C=Y.value;break}}C==null&&r&&(C=r);if(C)return D8q(C)};
PI=function(r){var f=r.config;var I=r.image;var C=r.imageConfig;var Y=r.imageWrapperConfig;var V=r.run;var S=r.tag;var h=r.textLength;var w=r.startIndex===void 0?0:r.startIndex;r=r.length;w===void 0&&(w=0);V={run:V,startIndex:w,endIndex:r!==void 0?w+r:h,tag:S};I&&(V.image=I);C&&(V.imageConfig=C);Y&&(V.imageWrapperConfig=Y);f&&(V.config=f);return V};
Itc=function(r,f){var I=[];I.push("yt-core-attributed-string");(f==null?0:f.className)&&I.push(f==null?void 0:f.className);(f==null?0:f.ellipsisTruncate)?I.push("yt-core-attributed-string--ellipsis-truncate"):(f==null?0:f.noWrap)?I.push("yt-core-attributed-string--white-space-no-wrap"):(f==null?0:f.noPreWrap)||I.push("yt-core-attributed-string--white-space-pre-wrap");(f==null?0:f.linkInheritColor)&&I.push("yt-core-attributed-string--link-inherit-color");r.alignment&&I.push(ftu(r.alignment));r.lineBreakMode&&
I.push("yt-core-attributed-string--word-wrapping");return I.join(" ")};
CZ$=function(r){if(r.weight)return r.weight;switch(r.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
Y4R=function(r){switch(r){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"}};
ftu=function(r){switch(r){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"}};
Vtc=function(r,f,I){var C=f;r.content&&I&&(I=r.content.indexOf("\n"),I!==-1&&(C=Math.min(f,I)));if(!r.content||r.content.length<=C)f=r;else if(r.attachmentRuns||r.commandRuns||r.decorationRuns||r.styleRuns||r.paragraphStyleRuns){f=t3(r.content,C);I=C;var Y=r.attachmentRuns;if(Y){var V=[];Y=_.E(Y);for(var S=Y.next();!S.done;S=Y.next())S=Object.assign({},S.value),S.startIndex===void 0||S.startIndex>=I||(S.length||(S.length=0),S.length+S.startIndex>I&&(S.length=I-S.startIndex),V.push(S));I=V}else I=
void 0;V=ltB(C,r.commandRuns);Y=C;var h=r.decorationRuns;if(h){S=[];h=_.E(h);for(var w=h.next();!w.done;w=h.next()){w=w.value;var n=_.F(w.textDecorator,Ti);if(n&&n.startIndex!==void 0&&!(n.startIndex>=Y)){w=Object.assign({},w,{textDecorator:{highlightTextDecorator:Object.assign({},n)}});n=_.F(w.textDecorator,Ti);if(!n.length||n.length+n.startIndex>Y)n.length=Y-n.startIndex;S.push(w)}}Y=S}else Y=void 0;S=ltB(C,r.styleRuns);if(h=r.paragraphStyleRuns)for(r=[],h=_.E(h),w=h.next();!w.done;w=h.next()){var d=
w.value;w=Object.assign({},d);if(!(w.startIndex===void 0||w.startIndex>=C)){if(!w.length||w.length+w.startIndex>C)w.length=C-w.startIndex;n=[];var z=void 0,g=void 0;if((z=d)==null?0:(g=z.listGroup)==null?0:g.listItems)for(d=_.E(d.listGroup.listItems),z=d.next();!z.done;z=d.next())if(z=Object.assign({},z.value),!(z.startIndex===void 0||z.startIndex>=C)){if(!z.length||z.length+z.startIndex>C)z.length=C-z.startIndex;n.push(z)}n.length>0&&(w.listGroup||(w.listGroup={}),w.listGroup=Object.assign({},w.listGroup,
{listItems:n}));r.push(w)}}else r=void 0;f={content:f,attachmentRuns:I,commandRuns:V,decorationRuns:Y,styleRuns:S,paragraphStyleRuns:r}}else f=Object.assign({},r,{content:t3(r.content,C)});return f};
ltB=function(r,f){if(f){var I=[];f=_.E(f);for(var C=f.next();!C.done;C=f.next())if(C=Object.assign({},C.value),!(C.startIndex===void 0||C.startIndex>=r)){if(!C.length||C.length+C.startIndex>r)C.length=r-C.startIndex;I.push(C)}return I}};
t3=function(r,f){var I=f,C;if(C=I>0)C=r.charCodeAt(I-1),C=C>=55296&&C<=56319;C&&(I=r.charCodeAt(I),C=I>=56320&&I<=57343);C&&--f;return r.substring(0,f)};
hfR=function(r,f,I){I=I===void 0?Eyq:I;if(r){var C=_.a().resolve(A7);C||_.N("mweb_no_observer_killswitch")?DDu(r,{data:f,observer:C,visibilityCallback:I,hideOption:S4R,showOption:xFU,layer:r.layer}):_.t7(new _.nf("Warning: monitorVisibility called with null observer",r.tagName,f==null?void 0:f.loggingDirectives,f==null?void 0:f.trackingParams))}else _.t7(new _.nf("Warning: monitorVisibility called with null element",f==null?void 0:f.loggingDirectives,f==null?void 0:f.trackingParams,f==null?void 0:
f.rendererContext))};
Mtd=function(r,f){var I=[],C=r.content.length,Y,V=(Y=_.a().resolve(_.ZY(_.cI)))==null?void 0:Y();if(r.paragraphStyleRuns){Y=_.E(r.paragraphStyleRuns);for(var S=Y.next();!S.done;S=Y.next()){var h=I.push,w=h.apply;var n=void 0;S=S.value;if((n=S.listGroup)!=null&&n.listItems){n=[];b:switch(S.listGroup.listType){case "LIST_TYPE_BULLET":var d="ul";break b;default:d="span"}n.push(PI({run:S,textLength:C,tag:d,config:{className:"yt-core-attributed-string__list-group"},startIndex:S.startIndex,length:S.length}));
d=_.E(S.listGroup.listItems);for(var z=d.next();!z.done;z=d.next()){z=z.value;b:switch(S.listGroup.listType){case "LIST_TYPE_BULLET":var g="li";break b;default:g="span"}n.push(PI({run:S,textLength:C,tag:g,startIndex:z.startIndex,length:z.length}))}S=n}else S=[];w.call(h,I,_.Na(S))}}if(r.styleRuns&&(f==null||!f.noStyleRuns))for(Y=_.E(r.styleRuns),h=Y.next();!h.done;h=Y.next()){h=h.value;w=rCK({extension:_.F(h.styleRunExtensions,wmR),isDarkTheme:V===void 0?!1:V,runColor:h.fontColor});n=[];w&&n.push("yt-core-attributed-string--link-inherit-color");
h.italic&&n.push("yt-core-attributed-string--italicized");h.underline&&h.strikethrough?n.push("yt-core-attributed-string--underline-strikethrough",Y4R(h.underline)):h.underline?n.push("yt-core-attributed-string--underlined",Y4R(h.underline)):h.strikethrough&&n.push("yt-core-attributed-string--strikethrough",Y4R(h.strikethrough));if(h.baselineOffset){a:switch(h.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":S="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":S=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:S="yt-core-attributed-string--baseline-offset-unknown"}n.push(S)}S=n.join(" ");n=h;d={};if(n.weight||n.weightLabel)d.fontWeight=CZ$(n).toString();w&&(d.color=w);I.push(PI({run:h,textLength:C,tag:"span",config:{className:S,style:d},startIndex:h.startIndex,length:h.length}))}if(r.decorationRuns)for(Y=_.E(r.decorationRuns),h=Y.next();!h.done;h=Y.next())h=h.value,w={},h.textDecorator&&(d=h.textDecorator,S=V===void 0?!1:V,z=[],n=
_.F(d,Ti),d=_.F(d,bsw),n?(d=z,z=d.concat,g=[],(S=rCK({extension:_.F(n.highlightTextDecoratorExtensions,pm$),isDarkTheme:S,runColor:n.backgroundColor}))&&g.push("background-color: "+S+";"),n.backgroundCornerRadius!==void 0&&g.push("border-radius: "+n.backgroundCornerRadius+"px;"),n.leftPadding!==void 0&&g.push("padding-left: "+n.leftPadding+"px;"),n.rightPadding!==void 0&&g.push("padding-right: "+n.rightPadding+"px;"),n.topPadding!==void 0&&g.push("padding-top: "+n.topPadding+"px;"),n.bottomPadding!==
void 0&&g.push("padding-bottom: "+n.bottomPadding+"px;"),z=z.call(d,g)):d&&(n=z,z=n.concat,S=S?"#2ba640":"#107516",S=d.color?D8q(d.color):S,S=["padding: 2px;","border-top: solid "+S+" 2px;","border-bottom: solid "+S+" 2px;","background: linear-gradient(135deg, "+S+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+S+" 3px, rgba(0, 0, 0, 0) 3px);"],z=z.call(n,S)),S=z.join(" "),w.style$=S,S=h.textDecorator,n=[],d=_.F(S,bsw),_.F(S,Ti)?n.push("yt-core-attributed-string--highlight-text-decorator"):
d&&n.push("yt-core-attributed-string--bracket-text-decorator"),S=n.join(" "),w.className=S,w.dir="auto"),S=_.F(h.textDecorator,Ti),n=_.F(h.textDecorator,bsw),d=_.F(h.textDecorator,Ti),z=_.F(h.textDecorator,bsw),I.push(PI({run:h,textLength:C,tag:"span",config:w,startIndex:(S==null?void 0:S.startIndex)||(n==null?void 0:n.startIndex)||0,length:(d==null?void 0:d.length)||(z==null?void 0:z.length)||0}));if(r.commandRuns&&(f==null||!f.noEndpoints))for(V=_.E(r.commandRuns),Y=V.next();!Y.done;Y=V.next())Y=
Y.value,h=uQ$(Y,f),I.push(PI({run:Y,textLength:C,tag:"a",config:h,startIndex:Y.startIndex,length:Y.length}));if(r.attachmentRuns)for(r=_.E(r.attachmentRuns),V=r.next();!V.done;V=r.next()){V=V.value;w=h=void 0;Y={className:"yt-core-attributed-string--inline-block-mod"};if((w=V.element)==null?0:w.properties){w=(h=V.element)==null?void 0:h.properties;h=[];w=_.F(w,nyP);if(w==null?0:w.margin)w=w.margin,w.left&&h.push("margin-left: "+Md(w.left)+";"),w.right&&h.push("margin-right: "+Md(w.right)+";"),w.top&&
h.push("margin-top: "+Md(w.top)+";"),w.bottom&&h.push("margin-bottom: "+Md(w.bottom)+";");h=h.length!==0?h.join(" "):void 0;Y.style$=h}S=void 0;h={alt:"",preserveHeight:!0,preserveWidth:!0};w=["yt-core-attributed-string__image-element"];if(V.alignment){a:switch(V.alignment){case "ALIGNMENT_BASELINE":n="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":n="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:n=
"yt-core-attributed-string__image-element--image-alignment-bottom"}w.push(n)}if((S=V.element)==null?0:S.properties)S=[],n=_.F(V.element.properties,nyP),(n==null?0:n.height)&&S.push("height: "+Md(n.height)+";"),(n==null?0:n.width)&&S.push("width: "+Md(n.width)+";"),S=S.length!==0?S.join(" "):void 0,h.style$=S,n=void 0,S=((n=_.F(V.element.properties,dFE))==null?void 0:n.label)||"",h.alt=S;h.className=w.join(" ");w=void 0;d=n=void 0;S=((d=V.element)==null?0:d.type)?(n=_.F(V.element.type,zfm))==null?
void 0:n.image:void 0;I.push(PI({run:V,textLength:C,tag:"img",image:S,imageConfig:h,imageWrapperConfig:Y,startIndex:V.startIndex,length:(w=V.length)!=null?w:0}))}if(f==null?0:f.headerRuns)for(f=_.E(f.headerRuns),r=f.next();!r.done;r=f.next())if(r=r.value,r.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(r.headerMapping)){a:{switch(r.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":V=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":V="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":V="yt-core-attributed-string--heading-3";break a}V=void 0}I.push(PI({run:r,textLength:C,tag:"span",config:V?{className:V}:void 0,startIndex:r.startIndex,length:r.length}))}return I};
_.WI=function(r){return(r==null?void 0:r.content)!==void 0};
gyd=function(r){return _.WI(r)?r:_.dF(r)};
atw=function(r){return r.image!==void 0&&r.imageConfig!==void 0};
Xmw=function(r,f){if(f==null?0:f.userInput)for(r=_.E(r),f=r.next();!f.done;f=r.next())if(f=f.value,f.tag!=="a"&&f.tag!=="li"){var I=void 0;(I=f).config||(I.config={});f.config.dir=f.tag==="ul"?_.a().resolve(_.Lv):"auto"}};
N6P=function(r){return function(f){var I=r.run;(I.onTap!==void 0||I.onLongPress!==void 0)&&_.F(I,tRB)&&hfR(f,{loggingDirectives:_.F(I,tRB)})}};
$Fq=function(r){return function(f){for(var I in r)(o5[I]||o5[Ly["default"]])(f,I,r[I])}};
T6d=function(r,f){FeU(f);var I={data:null,start:0,end:r.length,parts:[]};f=_.E(f);for(var C=f.next();!C.done;C=f.next())C=C.value,PZ$(I,C.startIndex,C.endIndex,C);ttP(r,I);return I};
PZ$=function(r,f,I,C){for(var Y=_.E(r.parts),V=Y.next();!V.done;V=Y.next()){V=V.value;if(typeof V==="string")throw Error("fh");if(V.start<=f&&I<=V.end){PZ$(V,f,I,C);return}}r.parts.push({data:C,parts:[],start:f,end:I})};
ttP=function(r,f){for(var I=f.parts.length;I>=0;I--){var C=f.parts[I],Y=f.parts[I-1],V=I===f.parts.length?f.end:C.start;Y=I===0?f.start:Y.end;V!==Y&&f.parts.splice(I,0,r.slice(Y,V));C&&ttP(r,C)}};
FeU=function(r){r.sort(function(f,I){if(f.startIndex<I.startIndex)return-1;if(I.startIndex<f.startIndex)return 1;f=f.endIndex-f.startIndex;I=I.endIndex-I.startIndex;return f>I?-1:I>f?1:0})};
_.cCK=function(r){var f=r.thumbnails;if(f){r={sources:[]};f=_.E(f);for(var I=f.next();!I.done;I=f.next()){I=I.value;var C={};C.url=I.url;C.width=I.width;C.height=I.height;r.sources.push(C)}return r}};
Wed=function(r,f,I,C){if(!f)return r.length>=1?r[r.length-1]:null;if(C)for(var Y=_.E(r),V=Y.next();!V.done;V=Y.next()){V=V.value;var S=void 0,h=(S=V.url)==null?void 0:S.indexOf(C);if(h!==void 0&&h>=0)return V}C=_.E(r);for(Y=C.next();!Y.done;Y=C.next())if(Y=Y.value,Y.width&&Y.height&&(I&&Y.width>=f||!I&&Y.height>=f))return Y;for(f=r.length-1;f>=0;f--)if(I&&r[f].width||!I&&r[f].height)return r[f];return r[0]};
_.LeK=function(r){var f;return(r=(f=r.sources)==null?void 0:f[0])?r.width/r.height:0};
_.mFR=function(r){if(r.sources){r=_.E(r.sources);for(var f=r.next();!f.done;f=r.next()){f=f.value;var I=void 0;if((I=f.clientResource)==null?0:I.imageName)return f}}};
efm=function(r){var f;if((f=r.clientResource)!=null&&f.imageColor)return _.g_(r.clientResource.imageColor)};
_.jdU=function(r,f,I,C,Y,V,S){if(!f||f.length===0||f[0].clientResource)return null;if(I&&f[0].url)return f[0].url;C===void 0&&(C=!0);if(C){var h;r=JC$*(Y||(r==null?void 0:(h=r.getBoundingClientRect())==null?void 0:h.width)||0)}else{var w;r=JC$*(V||(r==null?void 0:(w=r.getBoundingClientRect())==null?void 0:w.height)||0)}f=Wed(f,r,C,S);return(f==null?0:f.url)?f.url:(f==null?0:f.imageData)?f.imageData:null};
Hs$=function(r,f,I){I=I?[I]:[];r.opacity&&I.push("opacity: "+r.opacity+";");f&&r.placeholderColor?(r=_.g_(r.placeholderColor),I.push("background-color: "+r+";")):I.push("background-color: transparent;");return I.join(" ")};
isu=function(r,f,I,C,Y){var V=["yt-core-image"];f&&V.push(f);I||V.push("yt-core-image--fill-parent-height");C||V.push("yt-core-image--fill-parent-width");switch(r.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":V.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":V.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":V.push("yt-core-image--content-mode-center");break;default:V.push("yt-core-image--content-mode-scale-to-fill")}r.flipForRtlLayout&&
V.push("yt-core-image--flip-rtl");switch(Y){case "TOP_START":var S;V.push(((S=document.body)==null?void 0:S.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return V.join(" ")};
vyl=function(r){var f;if(r==null?0:(f=r.clientResource)==null?0:f.imageName){var I;r=(I=r.clientResource)==null?void 0:I.imageName;a:{switch(r){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":I="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":I="yt-logos-ext:yt-logo-updated";break a}I=void 0}return I||RfR.get(r)||r}};
mv=function(r){return _.N("mweb_wiz_skip_render")?KeR(r):yC$(r)};
KeR=function(r){return function(f){var I=OWw("wink-root");v9();ooU();Skw(I,_.p(r,f))}};
yC$=function(r){var f=f===void 0?!1:f;return function(I){if(!f||!_.N("mweb_skip_keto_to_c3_if_no_data")||I.data!==void 0){var C=qk(!1);try{var Y=I.children;_.N("mweb_render_outside_patch_killswitch")||eb?Y?Oe(_.p(r,I,Y)):Oe(_.p(r,I)):_.t7(new _.nf("ketoToC3 called outside of a patch",{tagName:r.TAG_NAME}))}finally{qk(C)}}}};
UF$=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
Osm=function(r,f){r.onViewportEntered=f;sdm.observe(r)};
oy$=function(){var r={rootMargin:"10%",threshold:.01};_.N("mweb_enable_set_io_root_to_null_safari")?r.root=null:_.N("mweb_enable_set_io_root_to_body_safari")&&(r.root=document.body);return new IntersectionObserver(function(f,I){f.filter(function(C){return C.intersectionRect.height>0}).forEach(function(C){C=C.target;
if(!_.N("mweb_enable_only_update_image_when_connected")||C.isConnected!==!1){var Y;(Y=C.onViewportEntered)==null||Y.call(C);I.unobserve(C)}})},r)};
QdK=function(r,f,I,C,Y){function V(){if(C){var h=C.loadedClass,w=C.notifyOnUnloaded;h&&_.e$(r,h);w&&r.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function S(){var h=I(f,r);h&&r.getAttribute("src")!==h&&(_.N("mweb_enable_only_update_image_when_connected")&&r.isConnected===!1||h===r.src||(r.src=h),V())}
Y=Y===void 0?!0:Y;r.removeAttribute("src");V();f&&(Y?Osm(r,S):S())};
ACK=function(r,f,I){if(!f)return!1;f=I(f,r);I=r.getAttribute("src");return f&&f===I&&r.complete};
ZsR=function(r,f){for(var I in f)I==="className"?r.className=f[I]:(o5[I]||o5[Ly.default])(r,I,f[I])};
GEq=function(r,f,I,C){mv(_.J3)({contentMode:f.contentMode,loadedClass:f.loadedClass,isPreloaded:f.isPreloaded,notifyOnLoaded:f.notifyOnLoaded,notifyOnUnloaded:f.notifyOnUnloaded,preferredThumbnail:f.preferredThumbnail,preserveHeight:f.preserveHeight,preserveWidth:f.preserveWidth,objectPosition:f.objectPosition,targetWidth:f.targetWidth,targetHeight:f.targetHeight,shouldShowPlaceholder:f.shouldShowPlaceholder,useWidth:f.useWidth,alt:f.alt,className:f.className,onerror:f.onerror,onload:f.onload,style$:f.style$,
color:f.color,width:f.width,height:f.height,"aria-hidden$":f["aria-hidden$"],draggable:f.draggable,"data-disabled$":f["data-disabled$"],data:r,callback:I,renderLazy:C===void 0?!0:C,hideOn404:!1})};
B6$=function(r,f,I){I=I===void 0?!1:I;var C=r.sources!==void 0?r:_.cCK(r);if(C){var Y=f.onload;f.onload=function(w){var n=w.target;I&&n.naturalWidth===120||_.j$(n,"yt-core-image--loaded");f.notifyOnLoaded&&n.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));Y==null||Y(w)};
f.targetWidth&&f.preserveWidth&&(f.width=f.targetWidth);f.targetHeight&&f.preserveHeight&&(f.height=f.targetHeight);var V=_.mFR(C),S=V&&vyl(V);if(S)return(r=efm(V))&&(f.color=r),{type:"icon",iconName:S,config:Object.assign({},f,f.alt?{}:{"aria-hidden$":"true"},{"aria-label$":f.alt,role:"img"})};if(r.sources===void 0){f.alt=r.accessibility&&r.accessibility.accessibilityData&&r.accessibility.accessibilityData.label||f.alt;f.style$=Hs$(r,f.shouldShowPlaceholder,f.style$);var h;f.isPreloaded=!((h=_.F(r,
kEm))==null||!h.isPreloaded)}f.contentMode&&!C.contentMode&&(C.contentMode=f.contentMode);f.className=isu(C,f.className,f.preserveHeight,f.preserveWidth,f.objectPosition);f.loadedClass="yt-core-image--loaded";return{type:"image",image:C,config:f}}};
_.HI=function(){var r=_.XE.apply(0,arguments);return _.Ue(function(f){var I=r.map(function(C){return C(f)});
return function(){return void I.forEach(function(C){return void(C==null?void 0:C())})}})};
iT=function(r,f){var I=f==null?void 0:f.initial;return _.hR(function(){_.tR(!0);return I=r(I)},{equals:f==null?void 0:f.isEqual},"rSlKsc")};
q4R=function(r,f){if(r===f)return!0;if(r===void 0||f===void 0)return!1;var I,C,Y,V,S,h,w,n;return r.content===f.content&&((I=r.styleRuns)==null?void 0:I.length)===((C=f.styleRuns)==null?void 0:C.length)&&((Y=r.commandRuns)==null?void 0:Y.length)===((V=f.commandRuns)==null?void 0:V.length)&&((S=r.attachmentRuns)==null?void 0:S.length)===((h=f.attachmentRuns)==null?void 0:h.length)&&((w=r.decorationRuns)==null?void 0:w.length)===((n=f.decorationRuns)==null?void 0:n.length)};
r4q=function(r,f){if(r){var I=gyd(r);if(I!=null&&I.content)if(_.N("attr_string_reactive"))mv(uk$)({text:r,config:f});else{var C=!(f==null||!f.ariaLabel)||!(I.commandRuns&&I.commandRuns.length!==0||I.paragraphStyleRuns&&I.paragraphStyleRuns.length!==0);r=C?f==null?void 0:f.ariaLabel:null;C=C?"text":null;pv("span",{className:Itc(I,f),dir$:(f==null?0:f.userInput)?"auto":void 0,"aria-label$":r,role$:C},function(){if(I.styleRuns||I.commandRuns||I.attachmentRuns||I.decorationRuns){var Y=Mtd(I,f);Xmw(Y,
f);Y=T6d(I.content,Y);Y=_.E(Y.parts);for(var V=Y.next();!V.done;V=Y.next())DFU(V.value)}else Q3(I.content)})}}};
DFU=function(r){typeof r==="string"?Q3(r):atw(r.data)?pv("span",r.data.imageWrapperConfig,function(){GEq(r.data.image,r.data.imageConfig)}):pv(r.data.tag,r.data.config,function(f){N6P(r.data)(f);
f=_.E(r.parts);for(var I=f.next();!I.done;I=f.next())DFU(I.value)})};
IJK=function(r){return r.parts.map(fJK)};
fJK=function(r){if(typeof r==="string")return r;r=atw(r.data)?_.p("span",{el:_.HI($Fq(r.data.imageWrapperConfig))},_.p(_.J3,Object.assign({},{data:r.data.image},r.data.imageConfig))):_.p(r.data.tag,{el:_.HI(N6P(r.data),$Fq(r.data.config))},r.parts.map(fJK));return EQ(r)};
CWm=function(r,f){return r===f?!0:r===void 0||f===void 0?!1:r.noStyleRuns===f.noStyleRuns&&r.noLinkColor===f.noLinkColor&&r.noEndpoints===f.noEndpoints&&r.headerRuns===f.headerRuns&&r.isOverlay===f.isOverlay&&r.linkInheritColor===f.linkInheritColor&&r.userInput===f.userInput};
Ybq=function(r){return function(){var f,I,C,Y,V,S,h,w,n,d,z,g,X,P;return{ariaLabel:(f=r.ariaLabel)==null?void 0:f.call(r),className:(I=r.className)==null?void 0:I.call(r),ellipsisTruncate:(C=r.ellipsisTruncate)==null?void 0:C.call(r),isOverlay:(Y=r.isOverlay)==null?void 0:Y.call(r),linkInheritColor:(V=r.linkInheritColor)==null?void 0:V.call(r),noEndpoints:(S=r.noEndpoints)==null?void 0:S.call(r),noStyleRuns:(h=r.noStyleRuns)==null?void 0:h.call(r),noLinkColor:(w=r.noLinkColor)==null?void 0:w.call(r),
noPreWrap:(n=r.noPreWrap)==null?void 0:n.call(r),noWrap:(d=r.noWrap)==null?void 0:d.call(r),skipOnClick:(z=r.skipOnClick)==null?void 0:z.call(r),stopPropagation:(g=r.stopPropagation)==null?void 0:g.call(r),userInput:(X=r.userInput)==null?void 0:X.call(r),headerRuns:(P=r.headerRuns)==null?void 0:P.call(r)}}};
lJq=function(r){return r.value===""||r.value==="true"?!0:r.value==="false"?!1:isNaN(Number(r.value))?r.value:Number(r.value)};
RB=function(r,f){r=new VkP(r,f);_.Fo(r);throw r;};
ERK=function(r,f,I){var C=dDB(r);r._numRenders=0;try{var Y=WCd(function(){return _.p(f,Object.assign({},I))})}catch(S){var V=function(h){h.args||(h.args=[]);
h.args.push("Error in web component wrapper");h.args.push(r.tagName.toLowerCase());return h};
_.PR(S instanceof Error?V(S):new VkP("Wiz rendering error",r.tagName.toLowerCase()));throw S;}finally{dDB(C)}return Y};
_.Kv=function(r,f,I){function C(d){var z={};d=_.E(d);for(var g=d.next();!g.done;g=d.next()){g=g.value;var X=void 0,P=void 0,W=void 0,m=_.xA((W=(P=(X=g).getAttribute)==null?void 0:P.call(X,"slot"))!=null?W:"children");if(X=z[m])X.push(g);else if(m in V||m==="children")z[m]=[g]}if(Sbd)for(d=_.E(Object.keys(z)),m=d.next(),g={};!m.done;g={content$jscomp$55:void 0},m=d.next())m=m.value,m!=="children"&&(g.content$jscomp$55=z[m],z[m]=function(v){return function(){return v.content$jscomp$55}}(g));
return z}
I=I===void 0?{}:I;r.componentType!==ny||RB("Components must be marked reactive to be used from web component wrapper.",f);s$.has(f)&&RB("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",f);var Y,V=(Y=I.props)!=null?Y:{};O$.add(f);var S=xHl();Y=function(){var d=S.apply(this,arguments)||this;d.rawProps={};d.queuingRender=!1;d.dispose=function(){};
d.isWebComponentWrapper=!0;d.isReparenting=!1;d.hasRendered=!1;return d};
_.t(Y,S);Y.prototype.render=function(){this.hasRendered=!0;for(var d=_.E([].concat(_.Na(this.attributes))),z=d.next();!z.done;z=d.next())z=z.value,z.name!=="slot"&&this.removeAttribute(z.name);d=Object.assign({},this.componentProps,this.slotProps);z=_.E(ERK(this,r,d));d=z.next().value;z=z.next().value;!(d[0]instanceof Element)||d.length>1?RB("Wrapped Wiz components must return a single root element.",f):(d=d[0].tagName.toLowerCase(),d!==f&&RB("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(d+" !== '"+f),f),this.dispose=z)};
Y.prototype.setUpProps=function(){for(var d=this.rawProps,z=this.attributes,g=_.E(Object.keys(V)),X=g.next();!X.done;X=g.next()){X=X.value;var P=void 0;((P=this)==null?0:P[X])&&this[X]!==hxP&&d[X]===void 0&&(d[X]=this[X],(P=Object.getOwnPropertyDescriptor(this.constructor.prototype,X))&&Object.defineProperty(this,X,P))}g=_.E(z);for(X=g.next();!X.done;X=g.next()){P=X.value;X=_.xA(P.name);var W=X==="class"&&!z.getNamedItem("class-name");if(X in V||W)P=lJq(P),X!=="class"||d.className?d[X]=P:d.className=
P}z={};for(var m in V)V[m]===_.vI||Sbd&&V[m]===wTU||(d[m]instanceof Function&&RB("Function props must be configured as STATIC, not SIGNAL.",f),X=_.E(_.ld(d[m],void 0,"uFSkac")),g=X.next().value,X=X.next().value,z[m]=X,d[m]=g);d=_.E([d,z]);this.componentProps=d.next().value;this.setters=d.next().value;this.slotProps=C(this.childNodes)};
Y.prototype.connectedCallback=function(){yQ===f&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in V&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
Y.prototype.disconnectedCallback=function(){if(!this._isInert){var d;a:{if(_.bgc)for(d=this;d;){if(_.pT$.has(d)){d=!0;break a}d=d.parentElement}d=!1}if(d)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){d=_.E([].concat(_.Na(this.attributes)));for(var z=d.next();!z.done;z=d.next())z=z.value,z.name!=="slot"&&this.removeAttribute(z.name)}this.innerText="";SJu(this)}}};
Y.prototype._setPendingPropertyOrPath=function(){};
Y.prototype.notifyPath=function(){};
_.OC.Object.defineProperties(Y.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var h=_.E(Object.keys(V)),w=h.next(),n={};!w.done;n={prop$jscomp$103:void 0},w=h.next())n.prop$jscomp$103=w.value,w=void 0,((w=I.legacyPolymer)==null?0:w.forwardHostProps)&&YpP.has(n.prop$jscomp$103)||Object.defineProperty(Y.prototype,n.prop$jscomp$103,{set:function(d){return function(z){var g=this;this._isInert||(this.setters?wI(function(){var X,P;return void((P=(X=g.setters)[d.prop$jscomp$103])==null?void 0:P.call(X,z))}):(this.rawProps[d.prop$jscomp$103]=z,this.queuingRender&&d.prop$jscomp$103===
"data"&&z!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(n),
get:nRw.has(n.prop$jscomp$103)?void 0:function(){return hxP}});
customElements.define(f,Y)};
_.dHE=function(r,f){return(r=_.yH(r,f))?_.nK(_.gn(r)):null};
_.U6=function(r){if(r=_.yH(r,Number.MAX_VALUE,void 0,"width"))return _.gn(r)};
_.yH=function(r,f,I,C){C=C===void 0?"width":C;if(!r||!r.length)return null;if(_.N("kevlar_tuner_should_always_use_device_pixel_ratio")){var Y=window.devicePixelRatio;_.N("kevlar_tuner_should_clamp_device_pixel_ratio")?Y=Math.min(Y,_.Bw("kevlar_tuner_clamp_device_pixel_ratio")):_.N("kevlar_tuner_should_use_thumbnail_factor")&&(Y=_.Bw("kevlar_tuner_thumbnail_factor"));zxK=Y}else zxK||(zxK=window.devicePixelRatio);Y=zxK;_.N("kevlar_tuner_should_always_use_device_pixel_ratio")?f*=Y:Y>1&&(f*=Y);if(_.N("kevlar_tuner_min_thumbnail_quality"))return r[0].url||
null;Y=r.length;if(_.N("kevlar_tuner_max_thumbnail_quality"))return r[Y-1].url||null;if(I)for(var V=0;V<Y;V++)if(r[V].url.indexOf(I)>=0)return r[V].url||null;for(I=0;I<Y;I++)if(r[I][C]>=f)return r[I].url||null;for(f=Y-1;f>0;f--)if(r[f][C])return r[f].url||null;return r[0].url||null};
aJP=function(){s6.size?setTimeout(function(){O6(Mkl)},0):gRB=0};
Mkl=function(){var r=(0,_.Ad)(),f=null,I=!1;s6.forEach(function(Y){Y.loaded=!0;Y.loadTime=r;Y.pendingPaint=!1;var V=XTq.get(Y);V&&V.resolve(r);f=Y;I||!Y.ftlEligible&&Y.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(I=!0)});
var C;((C=f)==null?0:C.markDirty)&&f.markDirty();s6.clear();gRB=0;I&&NkK(r)};
$Hw=function(r){s6.add(r);r.pendingPaint=!0;gRB||(gRB=_.oB(_.F_,aJP))};
FfR=function(r){r.loaded=!1;r.loadTime=Infinity;var f=XTq.get(r);f&&(f.reject(Error("lh")),XTq.delete(r));r.pendingPaint&&(s6.delete(r),r.pendingPaint=!1)};
_.PWd=function(r){var f=r.indexOf(":");return f===-1?{originalName:r}:{originalName:r.substring(0,f),datasyncId:r.substring(f+1)}};
_.TkP=function(){return _.x(function(r){if(tkd!==void 0)return r.return(tkd);tkd=new Promise(function(f){var I;return _.x(function(C){switch(C.nextAddress){case 1:return _.l_(C,2),_.b(C,_.QH.open("test-only"),4);case 4:return _.b(C,_.QH.delete("test-only"),5);case 5:_.Hd(C,3);break;case 2:if(I=_.ha(C),I instanceof Error&&I.name==="SecurityError")return f(!1),C.return();case 3:f("caches"in window),_.wO(C)}})});
return r.return(tkd)})};
LfU=function(){return _.x(function(r){if(r.nextAddress==1)return _.b(r,_.TkP(),2);if(!r.yieldResult)return r.return(void 0);c4K||(c4K=new WfK);return r.return(c4K)})};
mHd=function(r){var f,I,C,Y;return _.x(function(V){switch(V.nextAddress){case 1:return _.b(V,LfU(),2);case 2:f=V.yieldResult;if(!f)throw Error("nh");return _.b(V,f.open("yt-player-local-img"),3);case 3:return I=V.yieldResult,_.b(V,I.match(r),4);case 4:C=V.yieldResult;if(!C)throw Error("oh");return _.b(V,C.blob(),5);case 5:return Y=V.yieldResult,V.return(Y)}})};
exU=function(r,f){for(var I in r)if(r.hasOwnProperty(I)&&f[I])return I;return null};
J4R=function(r){return"stamp"+r.replace("-","_")+"_"};
jXR=function(r){var f=r.match(/\[\[([\w\.]+)\]\]/);if(f&&f.length>1)return f[1];_.Fo(Error("qh`"+r));return null};
Hgu=function(r){return r===void 0?_.mO("REUSE_COMPONENTS",!1):r||!1};
vRP=function(r,f,I){I&&(f.is?(igw.has(f)&&(r=igw.get(f),I=r.listener,delete f[r.property],I.type==="element"&&f.removeEventListener(I.eventName,I.handler),igw.delete(f)),RxE(f)):f.__proto__==HTMLElement.prototype&&(f=new _.nf("Rendererstamper removed a non custom element","Stamper: "+r+" element: "+(f&&f.nodeName)),_.t7(f)))};
Kfl=function(r,f,I,C){var Y=f.node?f.node:f;_.e(I).parentNode===Y&&(f.removeChild(I),vRP(r,I,C));if(r=A3.get(I))A3.delete(I),_.F_.cancelJob(r);I.hidden=!1};
y4q=function(r,f,I,C){if(f&&f.children&&(I=f.children[I]))if(_.mO("DEFERRED_DETACH"))for(;I&&!A3.has(I);){var Y=r,V=f,S=I,h=C;S.hidden=!0;Y=_.dp(_.F_,Kfl.bind(null,Y,V,S,h),0);A3.set(S,Y);I=I.nextElementSibling}else for(;(S=f.lastElementChild)&&(f.removeChild(S),vRP(r,S,C),S!=I););};
UHl=function(r){var f=_.yy();_.$E(function(){for(var I=_.E(r.slotContent),C=I.next();!C.done;C=I.next())f.value.appendChild(C.value)});
return _.p("__slot-el",{el:f,skip:!0})};
_.Z5=function(r,f,I){I=I===void 0?sXP:I;s$.add(f);var C;(C=I).propNames!=null||(C.propNames=[]);var Y=new Set(I.propNames),V=xHl();C=function(){var n=V.call(this)||this;n.props={};n.isUpdating=!1;n.hasAttached=!1;n.isInert=!1;n.updateQueued=!1;n.initialClasses=[];nMP(n,f);return n};
_.t(C,V);C.prototype.forwardKebabCaseProp=function(n,d){n=_.xA(n);if(Y.has(n)||n==="children")this.props[n]=d};
C.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var n=_.E(this.initialClasses),d=n.next();!d.done;d=n.next())(d=d.value)&&this.classList.add(d);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
C.prototype.handleSlottedContent=function(){for(var n=new Map,d=_.E(this.children),z=d.next();!z.done;z=d.next()){z=z.value;var g=void 0,X=(g=z.getAttribute("slot"))!=null?g:"children";(g=n.get(X))?g.push(z):n.set(X,[z]);if(!z.getAttribute("key")){var P=void 0,W=void 0;z.setAttribute("key",X+"_"+((W=(P=g)==null?void 0:P.length)!=null?W:0))}}n=_.E(n);for(d=n.next();!d.done;d=n.next())z=_.E(d.value),d=z.next().value,z=z.next().value,this.forwardKebabCaseProp(d,_.p(UHl,{slotContent:z}))};
C.prototype.connectedCallback=function(){var n=this;if(!nMP(this,f)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var d=_.E(this.attributes),z=d.next();!z.done;z=d.next())z=z.value,this.forwardKebabCaseProp(z.name,lJq(z));this.handleSlottedContent();I.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){n.afterFirstPatch()});
this.hasAttached=!0}};
C.prototype.attributeChangedCallback=function(n,d,z){this.isInert||this.isUpdating||this.isConnected||n!=="class"||this.initialClasses.push.apply(this.initialClasses,_.Na(z.split(" ")))};
C.prototype.disconnectedCallback=function(){ONK(this)};
C.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var n,d;Skw(this,_.p(r,Object.assign({},this.props,{idomKey:(d=(n=this.__incrementalDOMData)==null?void 0:n.key)!=null?d:f})),!0)}catch(g){var z=g instanceof Error?g:new _.nf("Wiz rendering error");z.args||(z.args=[]);z.args.push("Error in deprecated web component wrapper");z.args.push(f.toLowerCase());_.Fo(z);throw g;}finally{this.updateQueued=this.isUpdating=!1}}};
C.prototype.enqueueUpdate=function(){var n=this;return _.x(function(d){if(I.synchronous)return n.update(),d.return();if(n.updateQueued)return d.return();n.updateQueued=!0;return d.return(Promise.resolve().then(function(){n.update()}))})};
C.prototype.notifyPath=function(){I.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.OC.Object.defineProperties(C,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var S=_.E(I.propNames),h=S.next(),w={};!h.done;w={prop$jscomp$105:void 0},h=S.next())w.prop$jscomp$105=h.value,Object.defineProperty(C.prototype,w.prop$jscomp$105,{set:function(n){return function(d){this.isInert||d===this.props[n.prop$jscomp$105]||(this.props[n.prop$jscomp$105]=d,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(w)});
customElements.define(f,C)};
_.Ogq=function(r,f){return _.f2(r.entities,"markersEngagementPanelSyncEntity",f)};
oRw=function(r,f){return _.f2(r.entities,"fantasyWinProbabilityEntity",f)};
QXK=function(r,f){return _.f2(r.entities,"fantasyTeamEntity",f)};
A4U=function(r,f){return _.f2(r.entities,"fantasyPlayerEntity",f)};
Zgl=function(r,f){return _.f2(r.entities,"booleanEntity",f)};
G_R=function(r,f){return _.f2(r.entities,"qrCodeEntity",f)};
k_m=function(r){return _.f2(r.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
BkP=function(){if(Gi)return Gi;if(window.lottie)return Gi=Promise.resolve(window.lottie);var r=_.PW(_.Lz("LOTTIE_URL"));return r?Gi=new Promise(function(f,I){var C=document.createElement("script");C.addEventListener("load",function(){f(lottie)});
C.addEventListener("error",function(Y){var V="Lottie library failed to load.";Y?Y.message&&(V+=" Original description: "+Y.message,_.TL(Y,V)):Y=Error(V);_.t7(Y);I(Y)});
C.setAttribute("async","");_.vL(C,r);document.head.appendChild(C)}):Promise.reject(Error("rh"))};
qbR=function(){return Gi?Gi:BkP()};
uxR=function(){var r=k_m(_.K2().getState());if(r&&r.animationStyle)switch(r.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":return kY.get("LIKE_VALENTINES25_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":return kY.get("LIKE_VALENTINES25_BROKEN_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":return kY.get("LIKE_YOUTUBE_20TH_BIRTHDAY")}};
DHw=function(r){if(r)switch(r){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.N("kevlar_use_wil_icons"))return(r=uxR())?r:kY.get("LIKE")}};
rbc=function(r){var f=DHw(r);if(f)return f;switch(r){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return kY.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return kY.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return kY.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return kY.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return kY.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return kY.get("NOTIFICATION_BELL")}};
IqE=function(r,f){if(!r||fqP)f=!1;else{if(r.closest){var I=!!DHw(f);I=_.Lz("ID_TOKEN")&&I?!!r.closest("segmented-like-dislike-button-view-model"):!1}else I=!1;if(!I)if(r.closest)if(I=!_.Lz("ID_TOKEN"),r=r.closest("ytd-subscription-notification-toggle-button-renderer-next"),I||!r)I=!1;else{var C;I=((C=r.data)==null?void 0:C.targetId)==="notification-bell"&&f!=="EXPAND_MORE"}else I=!1;f=I}return f};
Cpl=function(r){var f,I;return _.x(function(C){switch(C.nextAddress){case 1:return _.l_(C,2),_.b(C,fetch(r),4);case 4:return f=C.yieldResult,_.b(C,f.json(),5);case 5:return C.return(C.yieldResult);case 2:I=_.ha(C),_.t7(I),_.wO(C)}})};
Yu$=function(r,f){var I,C,Y;return _.x(function(V){if(V.nextAddress==1)return(I=f?r.pathDarkTheme:r.path)?_.b(V,Promise.all([Cpl(I),BkP()]),2):V.return();C=V.yieldResult;Y=C[0];BI.set(I,Y);_.wO(V)})};
_.qd=function(){var r=_.XE.apply(0,arguments);return function(){for(var f="",I=_.E(r),C=I.next();!C.done;C=I.next())if(C=C.value,typeof C==="function"&&(C=C()),C)if(typeof C==="string")f+=" "+C;else for(var Y in C)if(C.hasOwnProperty(Y)){var V=C[Y];typeof V==="function"&&(V=V());V&&(f+=" "+Y)}f=f.trim()||void 0;return _.tR(f)}};
_.uT=function(r){var f;var I=r.data;var C=r.className;var Y=r.animationName;var V=r.animationRef;var S=(f=r.elRefForInterop)||_.yy(),h;_.$L(function(){var d;return void((d=h)==null?void 0:d.destroy())});
var w;_.az(function(){var d=_.tR(Y);if(d!==w){w=d;var z=Object.assign({},{animationName:d,animationRef:_.tR(V)},_.tR(I));try{_.a().resolve(lqw)().then(function(P){var W;(W=h)==null||W.destroy();W=z.animationRef;var m=z.listeners;P=P.loadAnimation(Object.assign({},{container:S.value},z.animationConfig));W&&(W.lottieEl=P);if(m)for(W=_.E(Object.entries(m)),m=W.next();!m.done;m=W.next()){var v=_.E(m.value);m=v.next().value;(v=v.next().value)&&P.addEventListener(m,v)}h=P})}catch(P){d=P;
var g="LottieComponent error.";d.message&&(g+=" Original description: "+d.message);_.TL(d,g);_.t7(d);var X;((X=z.listeners)==null?0:X.error)&&z.listeners.error(d)}}});
var n=_.qd("ytLottieComponentHost",C);return _.p(kLR,{cond:function(){return!f},
then:function(){return _.p("lottie-component",{class:n,el:S})}})};
VYU=function(r){var f=_.yy(),I=_.E(zRq(r.data.animationConfig.name||"",r.className)),C=I.next().value;I=I.next().value;var Y=Pw(function(){return r.data.animationRef});
NC(function(){r.data.animationRef&&(r.data.animationRef.lottieEl=Y==null?void 0:Y.lottieEl)},[r.data.animationRef]);
return _.p("lottie-component",{skip:!0,class:_.qd(I,"ytLottieComponentHost"),el:f},_.p(_.uT,{data:r.data,animationRef:Y,animationName:C,elRefForInterop:f}))};
SuU=function(r,f,I,C){function Y(S,h){if(f.value===h&&r!=null&&r.value){for(;r.value.firstChild;)r.value.removeChild(r.value.firstChild);r.value.classList.add("yt-spec-icon-shape");S(r.value,C)}}
I=_.E5K(_.a().resolve(_.Bc),I);if(typeof I==="function")f.value=null,Y(I,null);else{var V=new _.lz(I.then,I);f.value=V;V.then(function(S){Y(S,V)})}};
hAc=function(r,f){var I=document.createElement("div"),C=_.av(I,function(){return _.p(_.M,{cond:r,then:function(Y){return _.p(xqm,{data:Y,options:f})}})});
return[I,C]};
_.D5=function(){for(var r=[],f=_.E(_.XE.apply(0,arguments)),I=f.next();!I.done;I=f.next())if(I=I.value)if(typeof I==="string")r.push(I);else{I=_.E(Object.entries(I));for(var C=I.next();!C.done;C=I.next()){var Y=_.E(C.value);C=Y.next().value;(Y=Y.next().value)&&r.push(C)}}return r.join(" ")};
n5E=function(r){var f=_.yy(),I=tn(),C=yw(r.character)||yw(r.previousCharacter);gt(function(){if(r.marginMultiplier){var Y;(Y=I.value)==null||Y.cancel();C?(Y=r.previousCharacter?Number(r.previousCharacter)+10:r.rollUp?0:30,r.shouldAnimate||(Y-=wCm(r,Y))):(Y=r.rollUp?0:2,r.shouldAnimate||(Y-=r.rollUp?-1:1));f.value.style.marginTop="-"+Y*r.marginMultiplier+"px";r.shouldAnimate?I.value=bIK(f.value,r,Y,C):f.value.style.display=r.character?"":"none"}});
return _.p("animated-rolling-character",{el:f,class:"animated-rolling-character-wiz"},sD(C,function(){for(var Y=[],V=1;V<30;V++)Y.push(_.p("div",null,V%10));return _.p(_.B9,null,_.p("div",null,"\u00a0"),Y,_.p("div",null,"\u00a0"))},function(){return pCB(r.character)}))};
pCB=function(r){return _.p(_.B9,null,_.p("div",null,"\u00a0"),_.p(_.B9,null,sD(!r||_.bU(r),function(){return _.p("div",null,"\u00a0")},function(){return _.p("div",null,r)})),_.p("div",null,"\u00a0"))};
bIK=function(r,f,I,C){I=new Animation(new KeyframeEffect(r,[{transform:"translateY(0px)"},{transform:"translateY("+(C?wCm(f,I):f.rollUp?-1:1)*f.marginMultiplier+"px)"}],dqw),document.timeline);f.character?(r.style.display="",I.onfinish=null):I.onfinish=function(){r.style.display="none"};
I.play();return I};
wCm=function(r,f){var I=Number(r.character)+10;if(r.previousCharacter)if(r.character){var C=Number(r.character),Y=Number(r.previousCharacter);r=r.rollUp?Y<C?I:I+10:Y<C?I-10:I}else r=r.rollUp?30:0;else r=r.character==="0"?I:r.rollUp?I-10:I+10;return f-r};
_.rW=function(r,f){return function(I){var C={},Y;for(Y in I){var V=void 0,S=void 0;((V=f)==null?0:(S=V.callbacks)==null?0:S[Y])||(C[Y]=I[Y])}return _.p(c8K,null,function(){for(var h in C)I[h]=_.tR(C[h]);I.disableReactiveLogging=!0;return _.p(r,Object.assign({},I))})}};
_.fQ=function(r){var f=tn(),I=tn();NC(function(){f.value=r.numberText;I.value=r.numberValue},[r.numberText]);
var C=r.fontSizeMultiplier?r.heightPx*r.fontSizeMultiplier:r.heightPx,Y=Fl(function(){if(r.numberText){var S=r.numberText;var h=r.forceRollUp||!I.value||!r.numberValue||I.value<r.numberValue;var w=!!r.shouldAnimate,n=f.value,d=[],z=0,g=0,X=(n?n.replace(/\D/g,"").length:0)-(S?S.replace(/\D/g,"").length:0);n=n?n.split(/(\d)/).filter(Boolean):[];for(S=S.split(/(\d)/).filter(Boolean);X<0;){var P=S[g];d.push({character:P,rollUp:h,marginMultiplier:C,shouldAnimate:w});g++;yw(P)&&X++}for(;z<X;)P=n[z],d.push({previousCharacter:P,
rollUp:h,marginMultiplier:C,shouldAnimate:w}),z++,yw(P)||X++;for(;g<S.length;)X=S[g],P=n[z],yw(X)===yw(P)?(g++,z++):yw(X)?(z++,X=void 0):yw(P)&&(g++,P=void 0),d.push({character:X,previousCharacter:P,rollUp:h,marginMultiplier:C,shouldAnimate:w});h=d}else h=[];return h},[r.numberText]),V=r.numberText?["height: "+C+"px;",
"line-height: "+r.heightPx+"px;"].join(" "):"";return _.p("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:V,dir:"ltr","aria-hidden":"true"},Y.map(function(S){return _.p(n5E,Object.assign({},S))}))};
zAq=function(r){var f=r.nodeName;if(r.id)return f+="#"+r.id;if(r.classList)for(var I=_.E(r.classList),C=I.next();!C.done;C=I.next())f+="."+C.value;r.parentElement&&(f=zAq(r.parentElement)+" > "+f);return f};
MYl=function(r){return function(f){var I=ZVm("event",{type:f.type});I&&f.target&&I.attr("nodepath",zAq(f.target));return Bfq(I,r,f)}};
_.IC=function(r){r&&G9P("event")&&(r=MYl(r));return fbP(function(f){var I,C=(I=r)==null?void 0:I(f);return typeof C==="boolean"?C:!0})};
CQ=function(r){return function(){return r()?r():void 0}};
g5$=function(r){return new KeyframeEffect(r,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
aqq=function(r){return new KeyframeEffect(r,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
XCK=function(r){var f=_.E(_.ld(r,void 0,"Clci1e")),I=f.next().value,C=f.next().value;I.current=r;return[I,function(Y){return void C(I.current=Y)}]};
_.YZ=function(r){var f=iT(function(){return XCK(r())},{isEqual:function(I,C){return I[0].current===C[0].current}});
return[function(){return f()[0]()},
function(I){return void f()[1](I)}]};
_.lB=function(r){return function(){var f="",I;for(I in r){for(var C=r[I];typeof C==="function";)C=C();C!==void 0&&C!==null&&(f+="; "+I+": "+C)}return f.length>0?_.tR(f.slice(2)):_.tR()}};
NwE=function(r){switch(r){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"}};
Ppd=function(r,f,I,C,Y,V){var S=$qK(r),h=S.disabled,w=S.iconPosition,n=S.style,d=S.focused,z=function(){return!!P()&&w()==="icon-only"},g=function(){return!!P()&&w()==="icon-only-40"},X=function(){return!!P()&&w()==="icon-with-label"},P=function(){return!!f||!(C==null||!C())};
return{type:function(){return n()==="call-to-action-inverse"?"text":n()==="overlay-dark"&&r().type!=="filled"&&r().type!=="tonal"?"tonal":r().type},
shouldFocus:function(){return(d()||(V==null?void 0:V()))&&!h()},
hasIconLeading:function(){return!!P()&&w()==="leading"},
hasIconTrailing:function(){return!!P()&&w()==="trailing"},
hasIconLeadingTrailing:function(){return!!P()&&!!(I||Y!=null&&Y())&&w()==="leading-trailing"},
hasIconOnly:z,hasIconOnly40:g,hasIconWithLabel:X,iconButton:function(){return z()||g()||X()},
visiblyDisabled:function(){return(h()?"disabled":r().state)==="disabled"||h()},
overrideSmallSizeIcon:function(){return Fhc(r(),P())},
iconToRender:f?f:function(){return _.p(_.V2,{icon:C,size:function(){return Ek(r(),!0)},
active:function(){return r().toggled}})},
secondaryIconToRender:I?I:function(){return _.p(_.V2,{icon:Y,size:function(){return Ek(r(),!0)},
active:function(){return r().toggled}})}}};
$qK=function(r){return{size:function(){return r().size},
style:function(){return r().style},
focused:function(){return r().focused},
disabled:function(){return r().disabled},
onTap:function(f){var I,C;return(C=(I=r()).onTap)==null?void 0:C.call(I,f)},
alignByText:function(){return r().alignByText},
aTagConfig:function(){return r().aTagConfig},
customColors:function(){return r().customColors},
segmentedPosition:function(){return r().segmentedPosition},
toggled:function(){return r().toggled},
toggleable:function(){return r().toggleable},
accessibilityLabel:function(){return r().accessibilityLabel},
onToggle:function(f){var I,C;return(C=(I=r()).onToggle)==null?void 0:C.call(I,f)},
iconPosition:function(){return r().iconPosition},
oneOffCustomTextWrap:function(){return r().oneOffCustomTextWrap},
disableTextEllipsis:function(){return r().disableTextEllipsis},
disableBackdropFilter:function(){return r().disableBackdropFilter},
tooltipText:function(){return r().tooltipText},
ariaHidden:function(){return r().ariaHidden},
tabIndex:function(){return r().tabIndex},
buttonText:function(){return r().buttonText},
formattedButtonText:function(){return r().formattedButtonText},
animatedTextProps:function(){return r().animatedTextProps}}};
tYm=function(r){return r.style==="overlay-dark"?4:r.style==="overlay"?r.type==="filled"?4:3:r.type==="filled"||r.style==="call-to-action-inverse"||r.style==="mono-inverse"?2:1};
Fhc=function(r,f){f=(r.iconPosition==="icon-only"||r.iconPosition==="icon-only-40"||r.iconPosition==="icon-with-label")&&f;return!r.segmentedPosition&&f&&r.size==="S"};
Twc=function(){return!_.N("web_disable_backdrop_filter")};
Ek=function(r,f){switch(r.size){case "XS":return 16;case "S":return Fhc(r,f)?24:16;default:return 24}};
cbu=function(r){switch(r){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"}};
Whu=function(r){switch(r){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"}};
Lhw=function(r){switch(r){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"}};
mqq=function(r){if(r.style==="overlay-dark"&&r.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
eAu=function(r){if(!r)return{};var f=r.color,I=r.backgroundColor;r=r.borderColor;var C="";f&&(C+="color: "+f+";");I&&(C+="background-color: "+I+";");r&&(C+="border-color: "+r+";");return{style:C}};
iIw=function(r,f,I){var C=r.buttonText,Y=r.formattedButtonText,V=r.formattedButtonTextLegacy,S=r.animatedTextProps,h=r.style,w=r.size,n=r.focused,d=r.disabled,z=r.onTap,g=r.alignByText,X=r.aTagConfig,P=r.customColors,W=r.segmentedPosition,m=r.toggled,v=r.toggleable,O=r.accessibilityLabel,k=r.onToggle,Z=r.iconPosition,Cw=r.oneOffCustomTextWrap,rR=r.disableTextEllipsis,EP=r.disableBackdropFilter,Pu=r.tooltipText,Wu=r.ariaHidden,cu=r.tabIndex,OP=r.state,iU=r.type;h==="call-to-action-inverse"&&(iU="text");
h==="overlay-dark"&&iU!=="filled"&&iU!=="tonal"&&(iU="tonal");var oR=!!f&&Z==="leading",vu=!!f&&Z==="trailing",wB=!!f&&!!I&&Z==="leading-trailing",qT=!!f&&Z==="icon-only",gB=!!f&&Z==="icon-only-40",C8=!!f&&Z==="icon-with-label",Es=qT||gB||C8;d&&(OP="disabled");var J_=OP==="disabled"||d;OP=Fhc(r,!!f);var xC={},r2=(xC["yt-spec-button-shape-next"]=!0,xC[cbu(iU)]=!0,xC[Whu(h)]=!J_,xC["yt-spec-button-shape-next--disabled"]=!!J_,xC[Lhw(w)]=!0,xC["yt-spec-button-shape-next--focused"]=!!n&&!d,xC["yt-spec-button-shape-next--icon-trailing"]=
vu,xC["yt-spec-button-shape-next--icon-leading"]=oR,xC["yt-spec-button-shape-next--icon-leading-trailing"]=wB,xC["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=wB&&!(C||Y),xC["yt-spec-button-shape-next--icon-button"]=qT||C8,xC["yt-spec-button-shape-next--icon-only-default"]=gB,xC["yt-spec-button-shape-next--align-by-text"]=!!g,xC["yt-spec-button-shape-next--segmented-start"]=W==="start",xC["yt-spec-button-shape-next--segmented-end"]=W==="end",xC["yt-spec-button-shape-next--override-small-size-icon"]=
OP,xC["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!Cw,xC["yt-spec-button-shape-next--disable-text-ellipsis"]=!!rR,xC["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!EP&&Twc(),xC),F9=function(){if(S)mv(_.fQ)(S);else if(V)V(Z==="icon-with-label"||Cw?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(Y){var Qq=Z==="icon-with-label"||Cw;r4q(Object.assign({},Y,Qq?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:
{}),{noLinkColor:!0,noWrap:!Qq})}else C&&Q3(C)},SK=function(Qq){z==null||z(Qq);
v&&(k==null||k(Qq))},FX=X?JbU:j3R,iV=X?"aria-current$":"aria-pressed$",s7=function(){f&&(oR||wB||Es)&&function(){Su({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){f()})}();
(C||Y||V||S)&&!Es&&function(){Su({className:"yt-spec-button-shape-next__button-text-content"},function(){F9()})}();
vu&&function(){Su({className:"yt-spec-button-shape-next__icon"},function(){f()})}();
wB&&function(){Su({className:"yt-spec-button-shape-next__secondary-icon"},function(){I()})}();
d||mv(_.xZ)({model:{color:tYm(r)}})},W4=function(){var Qq={};
FX(Object.assign({},(Qq.className=_.D5(r2),Qq.onclick=X?void 0:SK,Qq.disabled=d,Qq["aria-disabled$"]=J_,Qq.style=d&&X?"pointer-events:none":void 0,Qq[iV]=v?!!m:void 0,Qq["aria-label$"]=O,Qq.title$=Pu!=null?Pu:"",Qq["aria-hidden$"]=Wu,Qq.tabindex$=cu,Qq),X,eAu(P)),function(){s7()})};
C8?(w={},h=(w["yt-spec-button-shape-with-label"]=!0,w["yt-spec-button-shape-with-label--is-overlay"]=h==="overlay"||h==="overlay-dark",w),HIK({className:_.D5(h)},function(){W4();Su({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},F9)})):W4()};
RAK=function(r,f){if(!OD){var I;z9$(function(){return I=tud(r,f)});
return I}return tud(r,f)};
v5c=function(){var r=Hzm(OD||void 0,$md);return r===jvl||(r==null?void 0:r.name)==="\u0275NotFound"?void 0:r};
Uqm=function(r){var f=r.data;var I=r.icon;var C=r.secondaryIcon;var Y=r.iconName;var V=r.secondaryIconName;v5c();var S=f.size;r=f.style;var h=f.focused,w=f.disabled,n=f.onTap,d=f.alignByText,z=f.aTagConfig,g=f.customColors,X=f.segmentedPosition,P=f.toggled,W=f.toggleable,m=f.accessibilityLabel,v=f.onToggle,O=f.iconPosition,k=f.oneOffCustomTextWrap,Z=f.disableTextEllipsis,Cw=f.disableBackdropFilter,rR=f.tooltipText,EP=f.ariaHidden,Pu=f.tabIndex,Wu=!!I||!!Y,cu=I,OP=C;if(Y){var iU=Ek(f,!0);cu=function(){return _.p(_.V2,
{icon:Y,size:iU,active:f.toggled})}}if(V){var oR=Ek(f,!0);
OP=function(){return _.p(_.V2,{icon:V,size:oR,active:f.toggled})}}var vu=f.state;
I=f.type;r==="call-to-action-inverse"&&(I="text");r==="overlay-dark"&&I!=="filled"&&I!=="tonal"&&(I="tonal");var wB=Wu&&O==="leading",qT=Wu&&O==="trailing",gB=Wu&&(!!C||!!V)&&O==="leading-trailing";C=Wu&&O==="icon-only";var C8=Wu&&O==="icon-only-40";O=Wu&&O==="icon-with-label";var Es=C||C8||O;w&&(vu="disabled");var J_=vu==="disabled"||w;Wu=Fhc(f,Wu);vu={};var xC=_.D5((vu["yt-spec-button-shape-next"]=!0,vu[cbu(I)]=!0,vu[Whu(r)]=!J_,vu["yt-spec-button-shape-next--disabled"]=!!J_,vu[Lhw(S)]=!0,vu["yt-spec-button-shape-next--focused"]=
!!h&&!w,vu["yt-spec-button-shape-next--icon-trailing"]=qT,vu["yt-spec-button-shape-next--icon-leading"]=wB,vu["yt-spec-button-shape-next--icon-leading-trailing"]=gB,vu["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=gB&&!(f.buttonText||f.formattedButtonText),vu["yt-spec-button-shape-next--icon-button"]=C||O,vu["yt-spec-button-shape-next--icon-only-default"]=C8,vu["yt-spec-button-shape-next--align-by-text"]=!!d,vu["yt-spec-button-shape-next--segmented-start"]=X==="start",vu["yt-spec-button-shape-next--segmented-end"]=
X==="end",vu["yt-spec-button-shape-next--override-small-size-icon"]=Wu,vu["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!k,vu["yt-spec-button-shape-next--disable-text-ellipsis"]=!!Z,vu["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!Cw&&Twc(),vu)),r2=_.IC(function(F9){n==null||n(F9);W&&(v==null||v(F9))});
S=function(){return z?_.p(_.h8,{aTagConfig:z,disabled:w,className:xC,style:eAu(g).style,title:rR!=null?rR:"",ariaLabel:m,ariaCurrent:W&&P},_.p(_.B9,null,Khq(f,wB,gB,qT,Es,cu,OP))):_.p("button",{"on:click":r2,class:xC,title:rR!=null?rR:"",style:w&&z?"pointer-events:none":eAu(g).style,disabled:w,"aria-pressed":W?!!P:void 0,"aria-label":m?m:void 0,"aria-disabled":J_,"aria-hidden":EP,tabindex:Pu},_.p(_.B9,null,Khq(f,wB,gB,qT,Es,cu,OP)))};
h={};r=(h["yt-spec-button-shape-with-label"]=!0,h["yt-spec-button-shape-with-label--is-overlay"]=r==="overlay"||r==="overlay-dark",h);return _.p("yt-button-shape",{class:"yt-spec-button-shape-next__button-shape-wiz-class"},O?_.p("label",{class:_.D5(r)},S(),_.p("div",{class:"yt-spec-button-shape-with-label__label","aria-hidden":!0},ybP(f))):S())};
ybP=function(r){var f=r.formattedButtonText,I=r.animatedTextProps,C=r.buttonText,Y=r.oneOffCustomTextWrap;r=r.iconPosition;return I?_.p(_.fQ,{numberText:I.numberText,numberValue:I.numberValue,heightPx:I.heightPx,fontSizeMultiplier:I.fontSizeMultiplier,shouldAnimate:I.shouldAnimate,forceRollUp:I.forceRollUp}):f?(I=r==="icon-with-label"||Y,_.p(_.wW,{text:Object.assign({},f,I?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),noLinkColor:!0,noWrap:!I})):C};
Khq=function(r,f,I,C,Y,V,S){return _.p(_.B9,null,sD(V&&(f||I||Y),function(){return _.p(_.B9,null,_.p("div",{class:"yt-spec-button-shape-next__icon","aria-hidden":"true"},V==null?void 0:V()))}),sD((r.buttonText||r.formattedButtonText||r.animatedTextProps)&&!Y,function(){return _.p(_.B9,null,_.p("div",{class:"yt-spec-button-shape-next__button-text-content"},ybP(r)))}),sD(C,function(){return _.p(_.B9,null,_.p("div",{class:"yt-spec-button-shape-next__icon"},V==null?void 0:V()))}),sD(I,function(){return _.p(_.B9,
null,_.p("div",{class:"yt-spec-button-shape-next__secondary-icon"},S==null?void 0:S()))}),sD(!r.disabled&&!0,function(){return _.p(_.xZ,{model:{color:tYm(r)}})}))};
bB=function(r,f){_.X2(r,Object.assign({},f,{forceClickLogging:!0}))};
s3w=function(r,f,I,C){var Y=void 0;return function(V){var S=_.aB(I?r==null?void 0:r.onDisabledTap:r==null?void 0:r.onTap);if(S){var h;Y=(h=Y)!=null?h:f==null?void 0:f.value;if(S)if(_.N("web_button_vm_click_client_ve_killswitch"))bB(S,Object.assign({},{form:{element:Y,event:V}},void 0));else{var w;h=S==null?void 0:S.clickTrackingParams;var n,d=r==null?void 0:(w=r.loggingDirectives)==null?void 0:(n=w.clientVeSpec)==null?void 0:n.uiType;w=d&&!h?_.pQ(d):void 0;bB(S,Object.assign({},{form:{element:Y,event:V}},
{clickedVisualElement:w}))}}C&&C(V)}};
OIE=function(r){switch(r){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"}};
o5P=function(r){switch(r){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"}};
Q3d=function(r){switch(r){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"}};
AbK=function(r){switch(r){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"}};
ZIu=function(r,f){return _.f2(r.entities,"engagementToolbarStateEntityPayload",f)};
kuU=function(r){(r=_.VH(r))&&_.Guu(r)};
_.Guu=function(r){var f=_.t1();f&&_.JZ(f,r)};
BwR=function(r,f,I){_.Bj(r,"yt-open-popup-action",[f,I||r])};
quE=function(r,f){var I=_.Tg(r,"endpoint"),C=_.Tg(r,"action");return(I=C?C:I)&&f&&(I=f.navigationEndpointPopupMap[I])&&(r=_.jH(I,r),(I=_.Tg(r,"renderer"))&&f.supportedPopups.hasOwnProperty(I))?{openPopupAction:{popupType:f.popupTypeMap[I],popup:r}}:null};
uMu=function(r,f,I,C){if(C){var Y;I=I==null?void 0:(Y=I.data)==null?void 0:Y.contents;(Y=I instanceof Array&&I.length?I[0]:I)&&(I=_.Tg(Y,"renderer"))&&C.supportedPopups.hasOwnProperty(I)&&(f.stopPropagation(),BwR(r,{openPopupAction:{popupType:C.popupTypeMap[I],popup:Y}}))}};
fam=function(r,f,I,C){C=C===void 0?!1:C;var Y=DqR(f);if(Y){Y.href&&NG(Y.href);var V=f.button;V=V!==void 0?V===0&&!nQ(f):!nQ(f);Y.data&&V&&rTE(r,Y,f,I,C)}};
rTE=function(r,f,I,C,Y){Y=Y===void 0?!1:Y;var V=_.Bw("pbj_navigate_limit",-1)===0;Iaq(f);_.a().resolve(_.ZY(jq));var S=f.data;if(Object.keys(S).length!==0)if(!_.N("unplugged_web_disable_actions_for_cec_endpoint")&&_.F(S,_.Il))_.N("endpoint_behavior_command_executor_fix_killswitch")||(I.preventDefault(),I.stopPropagation()),_.rX(r,[S],r);else if(C=quE(S,C))S.loggingUrls&&S.loggingUrls.forEach(function(w){w.baseUrl&&_.jM(w.baseUrl)}),I.preventDefault(),I.stopPropagation(),BwR(r,C,f);
else{var h=Cq$(0,f.data,I);if(r=f.getForm)r=r(),h.tempData=h.tempData||{},h.tempData=Object.assign({},h.tempData,r);r=_.JN(I);if(C=r.find(function(w){return!!w.visualElement}))h.createScreenConfig=h.createScreenConfig||{},h.createScreenConfig.clickedVisualElement=C.visualElement;
if(!V)if(I.preventDefault(),I.stopPropagation(),_.F(S,_.Y8q)&&!Y&&_.qv.instance)_.qv.instance.resolveCommand(S,h);else if(_.N("kevlar_command_handler_formatted_string")&&!Y&&_.qv.instance&&laK(S))Y=r.find(function(w){return!!w.is})||I.target,I={form:Object.assign({},h,{event:I,
element:Y,originatingNode:f})},_.qv.instance.resolveCommand(S,I);else{S=_.JN(I);I=[];for(Y=0;Y<S.length;Y++)(V=S[Y].is)&&I.push(V);KvU({parents:I.join(","),text:f.innerText},function(){_.kA(f,"yt-navigate",h)})}}};
VLl=function(r){if(r=DqR(r))Iaq(r),aLK(r.href)};
DqR=function(r){r=_.JN(r);for(var f,I=0;I<r.length;I++)if(f=r[I],f.tagName==="A"&&f.classList.contains("yt-simple-endpoint")){if(!f.data)break;return f}return null};
nQ=function(r){return r.shiftKey||r.altKey||r.metaKey||r.ctrlKey};
EFB=function(r,f){var I={itct:f.clickTrackingParams};_.N("kevlar_client_side_screens")&&(!_.F(f,_.xO)||_.N("kevlar_exclude_endpoint_killswitch"))&&(I.endpoint=JSON.stringify(f));_.N("enable_unknown_lact_fix_on_html5")&&_.a().resolve(_.ZY(_.dW))&&(I.lact=_.Zs());zIc(I);_.sl(r,I)};
Iaq=function(r){r.href&&Object.keys(r.data).length!==0&&EFB(r.href,r.data)};
laK=function(r){for(var f=_.E(S8c),I=f.next();!I.done;I=f.next())if(r[I.value])return!1;return!0};
_.zY=function(r,f){if(f){var I={};xll.forEach(function(C){C=hKR(f,C,"--yt-lightsource-");Object.assign(I,C)});
wpd.forEach(function(C){C=hKR(f,C,"--yt-basic-");Object.assign(I,C)});
_.Zh(r,I)}};
hKR=function(r,f,I){var C={};C[I+_.S5(f)]=r&&r[f]?_.g_(r[f]):"";return C};
_.gW=function(r,f,I){Mm[r]||(Mm[r]={});Mm[r][f]=I};
_.aC=function(r){Mm[r]||(Mm[r]={});return Mm[r]};
b0U=function(r){if(!r)return{};var f=r.foregroundTitleColor,I=r.backgroundColor;r=r.borderColor;var C="text";r?C="outline":I&&(C="filled");return{type:C,customColors:{color:f?_.g_(f):void 0,backgroundColor:I?_.g_(I):void 0,borderColor:r?_.g_(r):void 0}}};
MLB=function(r){var f=r.renderer;var I=r.element;var C=r.commandController;var Y=r.onTapCallback;var V=r.skipCommandHandling;var S=r.overrides;var h=r.forceIcon;var w=r.forceModernIconButton;var n=r.forceDisabled;var d=r.isSubscribe===void 0?!1:r.isSubscribe;var z=r.isPressed===void 0?!1:r.isPressed;var g=r.useButtonSize===void 0?!1:r.useButtonSize;r=ppK(f);d&&(r.style="mono",r.type="filled");h=!f.icon||!h&&f.text?f.icon?f.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:w?"icon-only":"icon-only-40";h==="icon-only-40"&&(r.type="text");var X;w=Object;d=w.assign;g=nFK(f,g);z=!!f.isSelected||!_.N("web_propagate_is_pressed_killswitch")&&!!z;var P=f.isSelected!==void 0;n=n===void 0?f.isDisabled:n;var W=f.text?_.dF(f.text):void 0;var m,v,O,k=((m=f.accessibilityData)==null?void 0:(v=m.accessibilityData)==null?void 0:v.label)||((O=f.accessibility)==null?void 0:O.label);m=k?k:_.Rr(f.text);I=dlu(f,I,C,Y,V);C=zKB(f);C!=null&&C.length?(C=_.Nd({innertubeCommand:U8u(C),
forceNewState:!0}),C=$Y(C)?C:void 0):C=void 0;return d.call(w,{},r,g,{iconPosition:h},S,{focused:!1,toggled:z,toggleable:P,disabled:n,formattedButtonText:W,accessibilityLabel:m,onTap:I,aTagConfig:C},b0U((X=f.colorData)==null?void 0:X.basicColorPaletteData),{oneOffCustomTextWrap:f.oneOffCustomTextWrap})};
dlu=function(r,f,I,C,Y){return function(V){var S=zKB(r);C(S,V);if(!Y){S=_.E(S);for(var h=S.next();!h.done;h=S.next())bB(h.value,{form:{element:f,event:V},commandController:I})}}};
zKB=function(r){var f=[];r.command&&f.push(r.command);r.serviceEndpoint&&f.push(r.serviceEndpoint);r.navigationEndpoint&&f.push(r.navigationEndpoint);return f};
nFK=function(r,f){if(f)switch(r.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(r.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
ppK=function(r){switch(r.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"}}};
_.XA=function(r){return _.hR(function(){Mn$()();return mW(r)},void 0,"Icv7j")};
Nm=function(r,f){return _.f2(r.entities,"likeStatusEntity",f)};
gFd=function(r,f){return _.f2(r.entities,"likeCountEntity",f)};
_.aaU=function(r,f){return _.f2(r.entities,"stringEntity",f)};
Xp$=function(r,f){if(!r)return!1;var I,C=(I=_.F(r,_.YI))==null?void 0:I.signal;if(C&&f.signalEndpointMap)return!!f.signalEndpointMap[C];var Y;if((I=(Y=_.F(r,_.$Z))==null?void 0:Y.request)&&f.continuationEndpointMap)return!!f.continuationEndpointMap[I];for(var V in r)if(f.commandEndpointMap[V])return!0;return!1};
N4$=function(r,f){if(f.streamingEndpointMap)for(var I in r)if(f.streamingEndpointMap[I]&&(r=f.streamingEndpointMap[I]))return r()};
$lE=function(r,f){var I,C=(I=_.F(r,_.YI))==null?void 0:I.signal;if(C&&f.signalEndpointMap&&(I=f.signalEndpointMap[C]))return I();var Y;if((I=(Y=_.F(r,_.$Z))==null?void 0:Y.request)&&f.continuationEndpointMap&&(Y=f.continuationEndpointMap[I]))return Y();for(var V in r)if(f.commandEndpointMap[V]&&(r=f.commandEndpointMap[V]))return r()};
FLK=function(r){var f={"Content-Type":"application/json"};_.Lz("EOM_VISITOR_DATA")?f["X-Goog-EOM-Visitor-Id"]=_.Lz("EOM_VISITOR_DATA"):_.Lz("VISITOR_DATA")&&(f["X-Goog-Visitor-Id"]=_.Lz("VISITOR_DATA"));f["X-Youtube-Bootstrap-Logged-In"]=_.Lz("LOGGED_IN",!1);_.Lz("DEBUG_SETTINGS_METADATA")&&(f["X-Debug-Settings-Metadata"]=_.Lz("DEBUG_SETTINGS_METADATA"));r!=="cors"&&((r=_.Lz("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(f["X-Youtube-Client-Name"]=r),(r=_.Lz("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(f["X-Youtube-Client-Version"]=
r),(r=_.Lz("CHROME_CONNECTED_HEADER"))&&(f["X-Youtube-Chrome-Connected"]=r),(r=_.Lz("DOMAIN_ADMIN_STATE"))&&(f["X-Youtube-Domain-Admin-State"]=r),_.mO("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(r=_.Lz("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(f["X-YouTube-Lava-Device-Context"]=r));return f};
Pq$=function(r,f){f.watchNextResponse||f.reelItemWatchResponse?f.watchNextResponse?r.content=f.watchNextResponse:r.content=f.reelItemWatchResponse:f.playerResponse?r.player=f.playerResponse:f.reelWatchSequenceResponse&&(r.reelSequence=f.reelWatchSequenceResponse)};
FA=function(r){return function(){return new r}};
Pl=function(r){var f=_.a();return function(){return f.resolve(r)}};
_.t8=function(r){if(!r)return null;for(var f=[],I=0;I<r.textSegments.length;I++){var C=r.textSegments[I];C.text?f.push(C):C.emojiId&&f.push({emoji_id:C.emojiId})}return{text_segments:f}};
LLq=function(r,f,I,C,Y,V,S){V=V===void 0?[]:V;var h=new _.TY;h.endpoint=I;if(!I)return _.PR(new _.nf("handle undefined endpoint",f.tagName)),h;var w=Gil(I);w.length&&(_.rX(r,w,f,C),h.actions=w);I.loggingUrls&&I.loggingUrls.forEach(function(d){d.baseUrl&&HW(d.baseUrl,d.attributionSrcMode)});
w=!_.N("web_skip_impression_click_killswitch")&&C&&C.impression;if(I.clickTrackingParams&&!tLU(I)&&!T4q(f)&&!w&&(w=_.IB(),!_.cl(w,f))){var n=f.getScreenLayer&&f.getScreenLayer();n?w.clickCommand(I,null,n):w.clickCommand(I,null)}w=!1;for(n=0;n<V.length;n++)if((0,V[n])(f,I,C)){w=!0;break}!w&&cTq(I)&&(h.ajaxPromise=WLR(r,f,I,C,Y,S));return h};
T4q=function(r){var f;return(r=(f=r.data)==null?void 0:f.navigationEndpoint)&&!!r.clickTrackingParams};
tLU=function(r){var f=_.F(r,_.YI);if(f&&(f=f.signal)&&mlc.indexOf(f)>=0)return!0;for(var I in r)if(eKl.indexOf(I)>=0)return!0;return!1};
cTq=function(r){var f;if(((f=_.F(r,_.YI))==null?void 0:f.signal)==="CLIENT_SIGNAL")return!1;for(var I in r)if(JTU.indexOf(I)>=0)return!1;r=Object.keys(r);return r.length===1&&r[0]==="loggingUrls"?!1:!0};
UlR=function(r,f,I,C,Y,V,S){var h=_.Wl.instance;if(h&&_.LQ(h,C))var w=_.mC(h,C,Y).then(function(d){return(d==null?0:d.data)?d:{data:d}});
else w=r.requestDataForServiceEndpoint(C,Y),_.F(C,jTK)||_.F(C,H0m)||_.F(C,_.i0B)||_.F(C,RKP)||_.t7(new _.nf("No RequestBuilder for endpoint",C));var n=_.eu();n.promise.thenCatch(function(){var d=_.Tg(C,"action")||_.Tg(C,"command")||_.Tg(C,"endpoint");d&&(d=C[d],d.hasOwnProperty("onFailureAction")?_.rX(f,[d.onFailureAction],I):d.hasOwnProperty("onFailureCommand")&&_.rX(f,d.onFailureCommand,I));w.cancel("Resolver promise rejected")});
w.then(function(d){if(d){var z=d.error;if(z){if(V&&V.onServerError)V.onServerError(C,d);n.reject(new _.nf("Response error",C,z))}else if(d=d.data)if(z=d.error){if(V&&V.onServerError)V.onServerError(C,d);n.reject(new _.nf("Returned error",C,z))}else{vFl(f,I,d,C);KLu(d);if(z=Zv$(d))for(var g=_.E(z),X=g.next();!X.done;X=g.next()){X=X.value;var P=_.a().resolve(_.ZY(yTq))||J8;if(!_.Wl.instance||!P.some(function(m){return!!_.F(C,m)})||_.N("kevlar_response_processor_allowlist_killswitch")){var W=P=void 0;
((W=_.F((P=X)==null?void 0:P.commandMetadata,_.oo))==null?0:W.sendPost)?_.Do(f,[X]):_.rX(f,[X],I)}}(g=_.F(d==null?void 0:d.frameworkUpdates,ju))&&S&&S(g);if(V&&V.onSuccess)V.onSuccess(C,d);n.resolve(new _.Hl(d,z))}}else n.reject(new _.nf("Invalid service endpoint provided",C))},function(d){n.reject(d)});
return n.promise};
KLu=function(r){var f;(r=(f=_.F(r==null?void 0:r.onResponseReceivedCommand,_.sTB))==null?void 0:f.continuationItems)&&(r==null?void 0:r.length)===1&&_.F(r[0],O0m)&&_.Xc("so_r",void 0,"search_overview_answer")};
WLR=function(r,f,I,C,Y,V){var S;return(S=f.getNetworkManager&&f.getNetworkManager()?f.getNetworkManager():_.a().resolve(_.ZY(_.bA)))?UlR(S,r,f,I,C,Y,V):_.h3("No network manager.")};
vFl=function(r,f,I,C){if(I=I.trackingParams||I.loggingDirectives&&I.loggingDirectives.trackingParams){var Y;(_.F(C,oFu)||_.F(C,QT$)||_.F(C,ATu))&&C.clickTrackingParams?Y=_.VH(C.clickTrackingParams):_.N("web_graft_to_parent_command")&&C.clickTrackingParams&&(Y=_.VH(C.clickTrackingParams));var V;C=(V=f.getScreenLayer)==null?void 0:V.call(f);f=_.IB().graftServerVe(I,Y,C);_.qy(r,"yt-store-grafted-ve-action",[f])}};
_.Z0P=function(r){var f=new Image;return new _.lz(function(I,C){f.addEventListener("load",function(){I()});
f.addEventListener("error",function(){C()});
f.src=r})};
Grd=function(r){return!!r};
kru=function(r){return!!r};
B4K=function(r,f,I){var C=r.rowIndex;C!==void 0&&_.qy(r.hostElement,"yt-section-reactive-dismissal",[C,f,I])};
_.iB=function(r,f,I){r=_.E(r);for(var C=r.next();!C.done;C=r.next()){C=C.value;if(C===f)break;for(var Y=_.E(I),V=Y.next();!V.done;V=Y.next())if(V=V.value,C.tagName===V||!_.N("web_event_button_role_check_killswitch")&&C.role==="button"&&V==="BUTTON")return!0}return!1};
_.RC=function(r,f,I){r=_.E(r);for(var C=r.next();!C.done;C=r.next()){C=C.value;if(C===f)break;for(var Y=_.E(I),V=Y.next();!V.done;V=Y.next())if(C.id===V.value)return!0}return!1};
vl=function(r,f){if(!r&&!f)return"medium";r=Math.max(r||0,f||0);return r>=256?"large":r>=96?"medium":"small"};
q8R=function(r){switch(r){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.sk=function(){var r=_.a().resolve(_.ZY(_.y2));return r?(r=r.getCurrentPage())?_.Uk(r):null:null};
_.Ok=function(){var r=_.sk();if(!r){var f=_.a().resolve(_.ZY(_.y2)),I=f?typeof f:"no page manager";f=f?f.getCurrentPage():null;I=new _.nf("Player is missing when requested.",I,f?f.tagName:"no page");_.Fo(I)}return r};
_.Uk=function(r){return r&&r.getPlayer?r.getPlayer():null};
uYU=function(r,f){r={args:{raw_player_response:r}};f&&(r.args=Object.assign({},r.args,f));return r};
DlK=function(r){if(r.args){if(r.args.raw_player_response)return r.args.raw_player_response;if(r.args.player_response)return JSON.parse(r.args.player_response)}};
_.rpw=function(r,f){var I={url:"/watch?v="+r.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};r.playlistId&&(I.url+="&list="+r.playlistId);r.playerParams&&(I.url+="&pp="+r.playerParams);r={watchEndpoint:r,commandMetadata:{webCommandMetadata:I}};f&&(r.clickTrackingParams=f);return r};
IrB=function(){return frR||!!_.jH("yt.player.Application")};
Ycd=function(){return CsR||!!document.querySelector("link#player-css")};
VG$=function(){function r(){frR=!0;lrq.resolve()}
var f,I;return _.x(function(C){lrq||(lrq=new _.uX,IrB()?r():(f=document.createElement("script"),f.addEventListener("load",r),I=_.XF(_.Lz("PLAYER_JS_URL")),_.vL(f,I),document.head.appendChild(f)));return C.return(lrq.promise)})};
Scw=function(){function r(){CsR=!0;ETE.resolve()}
if(!ETE)if(ETE=new _.uX,Ycd())r();else{var f=document.createElement("link");f.id="player-css";f.addEventListener("load",r);var I=_.XF(_.Lz("PLAYER_CSS_URL"));_.UR(f,I,"stylesheet");document.head.appendChild(f)}return ETE.promise};
x$u=function(){return IrB()&&Ycd()?Promise.resolve([]):Promise.all([VG$(),Scw()])};
hpK=function(r,f,I){var C={args:{}};r&&(C.args.raw_player_response=r);f&&(C.args.raw_watch_next_response=f);I&&(C.args=Object.assign({},C.args,I));return C};
nTP=function(r,f,I){var C=!1;C=C===void 0?!0:C;r=typeof r==="string"?_.oC(document,r):r;var Y=w5K+"_"+_.S3(r),V=bMR[Y];if(V&&C)return p5P(f,I)?V.api.loadVideoByPlayerVars(f.args||null):V.loadNewVideoConfig(f),V.api;V=new Q2(r,Y,f,I,void 0);bMR[Y]=V;V.addOnDisposeCallback(function(){delete bMR[V.getId()]});
return V.api};
p5P=function(r,f){return f&&f.serializedExperimentFlags?f.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):r&&r.args&&r.args.fflags?r.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
d$K=function(){var r=new _.uX;r.resolved=!1;var f=r.resolve;r.resolve=function(I){r.resolved=!0;f(I)};
return r};
MGK=function(r){var f={};zpm().install((f.document_disposed={callback:r},f))};
A8=function(r,f){if(!r&&Math.random()<=_.Bw("kevlar_unified_player_logging_threshold")){r=Error("th`"+(f?f:"Unspecified error"));if(_.N("kevlar_unified_player_throw_errors"))throw r;_.t7(r)}};
_.gTR=function(){var r=_.jH("ytDebugData.callbacks");r||(r={},_.OH("ytDebugData.callbacks",r));return r};
X5$=function(r,f){var I=_.gTR();if(_.N("web_dd_iu")||arU.includes(r))I[r]=f};
N7K=function(){return _.x(function(r){return r.return({isLeader:_.UhE(_.K2().getState()),c:_.Lz("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Lz("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
$$q=function(){var r;_.x(function(f){if(f.nextAddress==1)return X5$("APP_STATE",N7K),_.b(f,_.a().resolve(_.Zb),2);r=f.yieldResult;X5$("PI",function(){return _.x(function(I){return I.return(r.getVideoStats())})});
_.wO(f)})};
FSq=function(r){var f=_.Ul(_.J1(_.Yq.location.href));r=_.Ul(_.J1(r));return _.N("kevlar_clear_non_displayable_url_params")?f==GY(r):GY(f)==GY(r)};
GY=function(r){var f=_.Psl(r);r=r.slice(0);var I=["frags"];_.N("kevlar_hide_pp_url_param")&&I.push("pp");_.N("kevlar_hide_time_continue_url_param")&&I.push("time_continue");I=_.E(I);for(var C=I.next();!C.done;C=I.next())C=C.value,r=_.Ol(_.Ul(r),C);return _.Ul(r)+(f?"#"+f:"")};
kZ=function(r,f){f=Number(f)*1E3;var I=Math.round((0,_.Ad)()),C=I.toString();r={innertubeResponse:r,serverDateTimestampMs:C,lastModifiedTimestampMs:C,expireTimestampMs:(I+f).toString()};if(f=_.Lz("INNERTUBE_CONTEXT_CLIENT_NAME"))r.clientName=f;return r};
T7B=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++tGw};
_.cpw=function(){var r=_.Pj(),f=_.t1();f&&r&&_.HF(f,[r],!0)};
LSd=function(r){return r&&WSR.some(function(f){return r.includes(f)})};
iMU=function(r){var f=_.F(r,_.HR);if(!f)return!1;var I=f.url,C=f.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!I)return _.Fo(Error("yh")),!1;if(f.target==="TARGET_NEW_WINDOW"){var Y={};_.N("resolve_url_parent_tracking_params")&&(!_.OQ(I)||ov(window.location.href,I))&&(Y={endpoint:r,itct:r.clickTrackingParams});zIc(Y);r=null;try{if(C){a:{var V=I,S=Y;C=C===void 0?!1:C;S&&_.sl(V,S);var h=_.gn(V),w=_.nK(h);V!=w&&_.Hw(Error("Yf`"+V));V=w;try{if(C){w=V;w=W4K(w);NG(w);r=_.eF(window,w,"_blank",
"attributionsrc");break a}}catch(g){_.eH(g)}NG(V);r=_.eF(window,h,"_blank")}m$K(_.a().resolve(epu),r,I);return!0}}catch(g){_.Fo(g)}_.sl(I,Y);Y={target:"_blank",noopener:_.N("set_window_noopener_ks")&&!f.allowOpener};f=window;h=pK(I)?I:_.gn(typeof I.href!="undefined"?I.href:String(I));r=self.crossOriginIsolated!==void 0;V="strict-origin-when-cross-origin";window.Request&&(V=(new Request("/")).referrerPolicy);w=Y.noreferrer;if(r&&w&&V==="unsafe-url")throw Error("qe");V=w&&!r;w=Y.target||I.target;C=
[];S=[];var n=!1;for(z in Y){var d=Y[z];switch(z){case "width":case "height":case "top":case "left":C.push(z+"="+d);break;case "target":break;case "noopener":case "noreferrer":d?S.push(z):(n=!0,S.push(z+"=false"));break;case "attributionsrc":C.push(z+(d?"="+d:""));break;default:C.push(z+"="+(d?1:0))}}var z=w!==void 0&&!["_blank","_self","_top","_parent",""].includes(w);z=mK()&&z;JpK&&r&&C.length===0&&S.length>0&&!z&&!n?(S.length===2&&(S=["noreferrer"]),_.eF(f,h,w,S[0]),r=jfP()):(z=C.join(","),_.RR()&&
f.navigator&&f.navigator.standalone&&w&&w!="_self"?(z=_.wL("A"),t6(z,h),z.target=w,V&&(z.rel="noreferrer"),((Y=Y.attributionsrc)||Y==="")&&z.setAttribute("attributionsrc",Y),Y=document.createEvent("MouseEvent"),Y.initMouseEvent("click",!0,!0,f,1),z.dispatchEvent(Y),z=jfP()):V?(z=_.eF(f,"",w,z),f=_.nK(h),z&&(z.opener=null,f===""&&(f="javascript:''"),f='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Bl(f)+'">',f=cL(f),(Y=z.document)&&Y.write&&(Y.write(WL(f)),
Y.close()))):((z=_.eF(f,h,w,z))&&Y.noopener&&(z.opener=null),z&&Y.noreferrer&&(z.opener=null)),r=z);m$K(_.a().resolve(epu),r,I);return!0}z=_.Cf(I);z=LSd(z)||I==="https://studio.youtube.com/";f=!(!_.OQ(I)||ov(window.location.href,I));Y=I.indexOf("disable_polymer=1")>=0;if(f||Y||z)NG(I),Mo(),_.$O(I,void 0,void 0,window.top,HMw);else return _.t7(new _.nf("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",r)),!1;return!0};
_.KSd=function(r,f){f=f===void 0?0:f;if(!(_.F(r,RpK)||_.F(r,vTu)||_.F(r,_.HR)&&_.F(r,_.HR).url))return!1;var I,C=(I=_.F(r,_.HR))==null?void 0:I.url;I=C?{externalLinkData:{url:C}}:null;return _.IB().clickCommand(r,I,f)};
_.qm=function(r,f){return _.f2(r.entities,"subscriptionStateEntity",f)};
ypB=function(r,f){return _.f2(r.entities,"subscriptionNotificationStateEntity",f)};
U$K=function(r,f){return _.f2(r.entities,"upcomingEventReminderStateEntity",f)};
sfq=function(r,f){return _.f2(r.entities,"engagementToolbarSurfaceEntityPayload",f)};
OME=function(r,f){return _.f2(r.entities,"triStateButtonStateEntityPayload",f)};
oTE=function(r,f){return _.f2(r.entities,"commerceCartCheckoutButtonEntity",f)};
_.Qfd=function(r,f){return _.f2(r.entities,"playlistLoopStateEntity",f)};
ApE=function(r,f){return _.f2(r.entities,"commandEntity",f)};
GGU=function(r,f,I,C,Y){Y=Y===void 0?{}:Y;return function(V){var S,h;var w=((S=r.loggingDirectives)==null?0:(h=S.clientVeSpec)==null?0:h.uiType)?_.pQ(r.loggingDirectives.clientVeSpec.uiType):void 0;Y.clickedVisualElement||(Y.clickedVisualElement=w);w=ZME(r,f);I(w,V);w=_.E(w);for(S=w.next();!S.done;S=w.next()){S=S.value;h=C;var n=V,d=Y;d.form?d.form.event=n:d.form={element:h,event:n};bB(S,d)}}};
ZME=function(r,f){var I=[];f?(r.toggledCommand&&I.push(r.toggledCommand),r.toggledServiceEndpoint&&I.push(r.toggledServiceEndpoint)):(r.defaultCommand&&I.push(r.defaultCommand),r.defaultServiceEndpoint&&I.push(r.defaultServiceEndpoint),r.defaultNavigationEndpoint&&I.push(r.defaultNavigationEndpoint));return I};
kG$=function(r,f){var I=r.toggledStyle||r.style,C;switch((C=f?I:r.style)==null?void 0:C.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"}}};
B7B=function(r,f){f=f.uniqueId+"-border";var I,C;var Y=(C=(I=_.a().resolve(_.ZY(_.cI)))==null?void 0:I())!=null?C:!1;return{animationRef:r,animationConfig:{name:f,autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+(Y?"dark":"light")+"_v2.json"}}};
_.uB=function(){return _.x(function(r){return r.nextAddress==1?_.b(r,_.a().resolve(_.Zb),2):r.return(_.a().resolve(qcK)())})};
_.Db=function(){return _.a().resolve(qcK)()};
_.ru=function(){return Pw(function(){return{lottieEl:void 0}})};
uwl=function(r,f){return r.startsWith(f.uniqueId)};
D$R=function(r){var f,I;_.x(function(C){if(C.nextAddress==1)return _.b(C,_.uB(),2);f=C.yieldResult;if((I=f)==null||!I.addEventListener)return fF(),C.return();f.addEventListener("onCueRangeEnter",r);_.wO(C)})};
r5U=function(r){var f,I;_.x(function(C){if(C.nextAddress==1)return _.b(C,_.uB(),2);f=C.yieldResult;if((I=f)==null||!I.removeEventListener)return fF(),C.return();f.removeEventListener("onCueRangeEnter",r);_.wO(C)})};
fCP=function(r){var f,I,C,Y,V;_.x(function(S){if(S.nextAddress==1)return _.b(S,_.uB(),2);f=S.yieldResult;if((I=f)==null||!I.addCueRange)return fF(),S.return();C=_.E(r.timings);for(Y=C.next();!Y.done;Y=C.next())V=Y.value,f.addCueRange(r.uniqueId+"-"+V,V/1E3,(V+100)/1E3);_.wO(S)})};
IC$=function(r){var f,I,C,Y,V;_.x(function(S){if(S.nextAddress==1)return _.b(S,_.uB(),2);f=S.yieldResult;if((I=f)==null||!I.removeCueRange)return fF(),S.return();C=_.E(r.timings);for(Y=C.next();!Y.done;Y=C.next())V=Y.value,f.removeCueRange(r.uniqueId+"-"+V);_.wO(S)})};
CiB=function(){var r,f,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,_.uB(),2);r=C.yieldResult;if((f=r)==null||!f.getPlayerState)return fF(),C.return();I=r.getPlayerState();return C.return(I===2)})};
fF=function(){_.t7(new _.nf("Smartimation player does not exist or is corrupted"))};
EtE=function(r){var f=YNu;lCK.push(r);VDl||(f(function(){for(var I=_.E(lCK),C=I.next();!C.done;C=I.next())C=C.value,C();lCK.length=0;VDl=!1}),VDl=!0)};
YNu=function(r){Promise.resolve().then(r)};
IK=function(r){r=_.E(XlP(r));var f=r.next().value,I=r.next().value,C=!1;_.$E(function(){return function(){C=!0}});
return[f,function(Y){EtE(function(){C&&!_.N("cow_prevent_state_setter_after_cleanup_killswitch")||I(Y)})}]};
x_R=function(r){function f(n){var d;return _.x(function(z){if(z.nextAddress==1)return(d=!uwl(n,C)||!C.enabled)?z.jumpTo(2):_.b(z,CiB(),3);z.nextAddress!=2&&(d=z.yieldResult);if(d)return z.return();I();setTimeout(function(){w(!1)},1500);
_.wO(z)})}
function I(){setTimeout(function(){w(!0);var n;(n=V.lottieEl)==null||n.goToAndPlay(0)},150)}
var C=r.settings;var Y=r.className;r=r.children;var V=_.ru(),S=_.E(IK(!1)),h=S.next().value,w=S.next().value;C||(C={uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]},_.t7(new _.nf("Smartimation Settings is undefined")));NC(function(){if(C.experimentEnabled)return C.enabled?D$R(f):(w(!1),r5U(f)),function(){r5U(f)}},[C.enabled,
C.experimentEnabled]);NC(function(){if(C.experimentEnabled)return fCP(C),function(){IC$(C)}},[C.timings.join("")]);
return _.p("yt-smartimation",{class:SNU(Y,h,C)},sD(C.experimentEnabled,function(){return _.p("div",{class:"smartimation__border"},_.p(VYU,{className:"smartimation__border-gradient",data:B7B(V,C)}))}),_.p("div",{class:"smartimation__content"},r))};
SNU=function(r,f,I){var C=["smartimation"];r&&C.push(r);I.experimentEnabled&&C.push("smartimation--experiment-enabled");f&&C.push("smartimation--active-border");try{var Y;var V=(Y=window.CSS)!=null&&Y.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(S){_.t7(new _.nf("Smartimation CSS.supports threw an error")),V=!1}V&&C.push("smartimation--enable-masking");
return C.join(" ")};
hTK=function(){try{var r;return(r=window.CSS)!=null&&r.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(f){return _.t7(new _.nf("Smartimation CSS.supports threw an error")),!1}};
MDE=function(r,f,I,C,Y){var V=r.playlistId?wsm:bLK;f=f();I=I();Y=!!r.videoId&&Y()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.hQ(f))return psR({data:r,actionType:V,disabled:Y},I);if(r.videoId&&C())return ntq({data:r,actionType:V,disabled:Y});switch(f){case "TRANSFER_STATE_UNKNOWN":return ntq({data:r,actionType:V,disabled:Y});case "TRANSFER_STATE_FAILED":return r.videoId?d_l({data:r,actionType:V,disabled:Y}):zTE({data:r,actionType:V,disabled:Y});case "TRANSFER_STATE_COMPLETE":return zTE({data:r,
actionType:V,disabled:Y});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return psR({data:r,actionType:V,disabled:Y},I);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return r.videoId?d_l({data:r,actionType:V,disabled:Y}):ntq({data:r,actionType:V,disabled:Y});default:return ntq({data:r,actionType:V,disabled:Y})}};
gtE=function(r,f){var I=r.onTapCommand,C=_.aB(I);if(r.videoId&&_.F(C,_.CF))return _.F(C,_.CF).action=f,I;r.playlistId&&_.F(C,_.Y4)&&(_.F(C,_.Y4).action=f);return I};
ntq=function(r){var f=r.data;var I=r.actionType;r=r.disabled;return{text:aCE,iconType:"OFFLINE_DOWNLOAD",onTap:gtE(f,I.ACTION_ADD),disabled:r}};
psR=function(r,f){var I=r.data;var C=r.actionType;r=r.disabled;var Y="OFFLINE_DOWNLOAD";f>=0&&f<=.1?Y="OFFLINE_DOWNLOADING_ZERO":f>.1&&f<=.3?Y="OFFLINE_DOWNLOADING_TWENTY":f>.3&&f<=.5?Y="OFFLINE_DOWNLOADING_FORTY":f>.5&&f<=.7?Y="OFFLINE_DOWNLOADING_SIXTY":f>.7&&f<1?Y="OFFLINE_DOWNLOADING_EIGHTY":f===1&&(Y="OFFLINE_PIN");return{text:Xsc,iconType:Y,onTap:gtE(I,C.ACTION_REMOVE_WITH_PROMPT),disabled:r}};
zTE=function(r){var f=r.data;var I=r.actionType;r=r.disabled;return{text:N9R,iconType:"OFFLINE_PIN",onTap:gtE(f,I.ACTION_REMOVE_WITH_PROMPT),disabled:r}};
d_l=function(r){var f=r.data;var I=r.actionType;r=r.disabled;return{text:$_l,iconType:"OFFLINE_DOWNLOAD",onTap:gtE(f,I.ACTION_RETRY),disabled:r}};
FAP=function(){var r=_.E(IK(!1)),f=r.next().value,I=r.next().value;return function(){I(!f)}};
Pid=function(r){return Pw(function(){return{value:r}})};
tDl=function(r,f){var I=Pid(r),C=Pid(f);NC(function(){I.value=r},[r]);
NC(function(){C.value=f},f&&f.length>=1?f:[void 0]);
var Y=Pw(function(){return{value:void 0}});
if(r!==I.value||C.value!==f||Y.value===void 0)Y.value=mW(r,f);var V=FAP();_.$E(function(){function S(){var w=mW(I.value,f);w!==Y.value&&(Y.value=w,V())}
var h=_.Lx().subscribe(S);S();return h});
return Y.value};
l6=function(r,f){return tDl(r,[f])};
_.VS=function(r,f){var I=Mn$();return _.hR(function(){I();return mW(r,[_.tR(f)||""])},void 0,"HaeHEc")};
T9P=function(r){var f=_.VS(_.FN,function(){return r().videoId}),I=_.VS(_.P1,function(){return r().playlistId});
return function(){return r().videoId?f:r().playlistId?I:_.E(_.ld("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
c5u=function(r){var f=_.VS(tQ,function(){return r().videoId}),I=_.VS(_.yLd,function(){return r().playlistId});
return function(){return r().videoId?f:r().playlistId?I:_.E(_.ld(0,void 0,"K4tgOc")).next().value}};
WAB=function(r){var f=_.VS(_.GKw,function(){return r().videoId});
return function(){return r().videoId?f:_.E(_.ld(!1,void 0,"Oaxwcf")).next().value}};
LAu=function(r){var f=_.VS(Oll,function(){return r().videoId});
return function(){return r().videoId?f:_.E(_.ld("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
m_m=function(){return{}};
j0U=function(r){var f=r.backgroundLottieRef;var I=r.foregroundLottieRef;var C=r.children;var Y=r.wrapperClass;r=r.disableAnimation;r=(_.N("web_animated_actions")||_.N("web_animated_actions_v2"))&&!r;return _.p("yt-animated-action",{class:_.qd("animated-action__container",Y)},_.p("div",{class:"animated-action__content-with-background"},sD(r,function(){return _.p(eT$,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:{animationRef:f,animationConfig:{name:"animated-actions-background",
autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(J5B()?"dark":"light")+"_v5.json"}}})}),C),sD(r,function(){return _.p(eT$,{lottiePlayerProps:{animationRef:I,
animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(J5B()?"dark":"light")+"_v4.json"}}})}))};
eT$=function(r){var f=r.wrapperClass;var I=r.lottieClass;r=r.lottiePlayerProps;return _.p("div",{class:_.D5("animated-action__lottie",f),"aria-hidden":"true"},_.p(VYU,{className:I,data:r}))};
J5B=function(){var r,f;return(f=(r=_.a().resolve(_.ZY(_.cI)))==null?void 0:r())!=null?f:!1};
HLP=function(){var r,f;return(f=(r=_.a().resolve(_.ZY(_.cI)))==null?void 0:r())!=null?f:!1};
RT$=function(r,f){r=r===void 0?iLU:r;switch(f.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},r,{isOpen:f.payload});default:return r}};
KAc=function(r,f){r=r===void 0?vtR:r;switch(f.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},r,{isAllowed:f.payload});default:return r}};
U_U=function(r,f){r=r===void 0?y5w:r;switch(f.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},r,{errorMessage:f.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},r,{title:f.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},r,{privacy:f.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},r,{isDisabled:f.payload});default:return r}};
OLw=function(r,f){r=r===void 0?s0R:r;switch(f.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},r,{isOpen:f.payload});default:return r}};
Q0K=function(r,f){r=r===void 0?otw:r;switch(f.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},r,{isFullscreen:f.payload});case "SET_NAVIGATION_BUTTON":var I=f.payload.targetId,C=Object.assign({},r.navigationButtons);C[I]=f.payload.button;return Object.assign({},r,{navigationButtons:C});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},r,{topPanelId:f.payload});case "SET_SECONDARY_HEADER":return I=f.payload.panelId,C=Object.assign({},r.secondaryHeader),C[I]=f.payload.secondaryHeader,
Object.assign({},r,{secondaryHeader:C});default:return r}};
kzm=function(){return Vw(Object.assign({},{entities:XKq,voiceSearch:jad,engagementPanel:Q0K,bottomSheet:RT$,cinematicSetting:KAc,shorts:sam,drawerLayout:OLw,createPlaylist:U_U,locationCollection:A5U,reportChannel:ZLR,reportForm:Gz$},O3l))};
B9B=function(r,f){return"https://www.gstatic.com/youtube/img/lottie/"+r+"/"+f+".json"};
qNu=function(r){return{lottiePlayerProps:{animationConfig:{name:r.name,path:B9B("custom_animated_like_icon",r.path),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:r.totalFrames,lazyLoad:!0}};
u5w=function(r,f){_.F_.addLowPriorityJob(function(){var I,C,Y;return _.x(function(V){switch(V.nextAddress){case 1:return _.l_(V,2),_.b(V,BkP(),4);case 4:return _.b(V,fetch(r),5);case 5:return I=V.yieldResult,_.b(V,I.json(),6);case 6:C=V.yieldResult;BI.set(r,C);requestAnimationFrame(function(){f(C)});
_.Hd(V,0);break;case 2:Y=_.ha(V),_.t7(Y),_.wO(V)}})})};
D_P=function(r){var f={animationConfig:{},listeners:{}},I=function(){r(!0)};
f.listeners.data_failed=I;f.listeners.error=I;f.listeners.data_ready=function(){r(!1)};
return f};
SO=function(r){var f=r.model;var I=r.subscribed;var C=r.isOverlay;var Y=r.element;var V=r.commandController;var S=r.notificationState;if(I){var h,w;var n=(f==null?void 0:(h=f.buttonStyle)==null?void 0:h.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:f==null?void 0:(w=f.unsubscribeButtonContent)==null?void 0:w.buttonText}else{var d;n=f==null?void 0:(d=f.subscribeButtonContent)==null?void 0:d.buttonText}a:{var z;switch(f==null?void 0:(z=f.buttonStyle)==
null?void 0:z.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":h="S";break a;default:h="M"}}a:if(C)C="overlay";else switch(f.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":C="overlay";break a;default:C="mono"}a:if(I)var g="tonal";else switch((g=f.buttonStyle)==
null?void 0:g.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":g="tonal";break a;default:g="filled"}return{style:C,type:g,state:f.disableSubscribeButton?"disabled":"active",size:h,focused:r.focused,toggled:I,accessibilityLabel:rxq(f,I,S),buttonText:n,iconPosition:f.disableNotificationBell?"none":"leading-trailing",onTap:f9m(f,I,Y,V),disableTextEllipsis:!!r.disableTextEllipsis}};
f9m=function(r,f,I,C){return function(Y){if(f){var V;var S=r.disableNotificationBell?_.aB(r==null?void 0:(V=r.unsubscribeButtonContent)==null?void 0:V.onTapCommand):_.aB(r==null?void 0:r.onShowSubscriptionOptions)}else{var h;S=_.aB(r==null?void 0:(h=r.subscribeButtonContent)==null?void 0:h.onTapCommand)}S&&bB(S,{form:{element:I},commandController:C});Y.stopPropagation()}};
rxq=function(r,f,I){if(f){if(r==null?0:r.disableNotificationBell){var C;return r==null?void 0:(C=r.unsubscribeButtonContent)==null?void 0:C.accessibilityText}switch(I){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var Y;return r==null?void 0:(Y=r.bellAccessibilityData)==null?void 0:Y.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var V;return r==null?void 0:(V=r.bellAccessibilityData)==null?void 0:V.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var S;return r==null?void 0:(S=
r.bellAccessibilityData)==null?void 0:S.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var h;return r==null?void 0:(h=r.bellAccessibilityData)==null?void 0:h.disabledLabel;default:var w;return r==null?void 0:(w=r.unsubscribeButtonContent)==null?void 0:w.accessibilityText}}else{var n;return r==null?void 0:(n=r.subscribeButtonContent)==null?void 0:n.accessibilityText}};
x4=function(r){if(!r)return null;switch(r){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":r="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":r="NOTIFICATIONS_OFF";break;default:r="NOTIFICATIONS_NONE"}return r};
I9q=function(r,f,I){I.subscribed!==f&&((I=I.key)&&_.eS(_.hv("subscriptionStateEntity",I,{key:I,subscribed:f})),r.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:f})),f||_.Bj(r,"yt-unsubscribe-action"))};
Yyc=function(r){r=_.F(_.aB(r),_.wu);var f,I,C,Y;return(Y=_.F(r==null?void 0:(f=r.panelLoadingStrategy)==null?void 0:(I=f.inlineContent)==null?void 0:(C=I.sheetViewModel)==null?void 0:C.content,Cbw))==null?void 0:Y.listItems};
l9c=function(r,f){if(r.onShowSubscriptionOptions&&f&&(r=Yyc(r.onShowSubscriptionOptions),r!=null&&r.length)){var I=x4(f);r.forEach(function(C){C=_.F(C,_.b6);var Y,V,S,h,w=C==null?void 0:(Y=C.leadingImage)==null?void 0:(V=Y.sources)==null?void 0:(S=V[0])==null?void 0:(h=S.clientResource)==null?void 0:h.imageName;C&&w&&(C.isSelected=w===I)})}};
VTR=function(r,f,I,C){f&&I?r.style.width=I+"px":!f&&C&&(r.style.width=C+"px")};
E_K=function(r,f,I){var C;(C=r.lottieEl)==null||C.goToAndPlay(0);var Y;(Y=f.lottieEl)==null||Y.goToAndPlay(0);_.pF(_.F_,function(){var V;(V=I.lottieEl)==null||V.goToAndPlay(0)},300)};
bSK=function(r){var f=_.yy(),I=_.yy(),C=_.yy(),Y=_.ru(),V=_.ru(),S=_.ru(),h=_.a().resolve(SyR),w,n=(w=l6(_.qm,r.data.stateEntityStoreKey))!=null?w:void 0,d,z,g,X=(g=l6(ypB,(z=(d=r.data.notificationStateEntityStoreKeys)==null?void 0:d.subsNotificationStateKey)!=null?z:""))!=null?g:void 0;w=!!r.data.disableNotificationBell;var P=!r.data.enableSubscribeButtonPostClickAnimation;d=_.E(IK(0));var W=d.next().value,m=d.next().value;d=_.E(IK(0));var v=d.next().value,O=d.next().value;d=_.E(IK(!1));var k=d.next().value,
Z=d.next().value;d=_.E(IK(!1));var Cw=d.next().value,rR=d.next().value,EP=tn(!1),Pu=tn("");d=_.E(IK(!1));var Wu=d.next().value,cu=d.next().value,OP=function(){rR(!0);_.pF(_.F_,function(){rR(!1)},1500)};
NC(function(){Cw&&!P&&n&&E_K(Y,V,S)},[Cw]);
NC(function(){!P&&n&&(r.animateWidth&&VTR(f.value,!!n.subscribed,W,v),n.subscribed&&n.key===Pu.value&&OP(),n.key&&(Pu.value=n.key))},[n==null?void 0:n.subscribed,
n==null?void 0:n.key]);var iU=Fl(function(){var J_=r.data,xC=!(n==null||!n.subscribed),r2=!!r.isOverlay,F9=k?f.value:void 0,SK=X==null?void 0:X.state;l9c(J_,SK);return SO({model:J_,subscribed:xC,isOverlay:r2,element:F9,notificationState:SK,disableTextEllipsis:!0,focused:Wu})},[r.data,
n,X,Wu,r.isOverlay,k]),oR=function(){var J_=_.a().resolve(_.ZY(_.nF));J_&&cu(J_.isKeyBoardInUse())},vu=function(){cu(!1)};
YkK(f,function(J_){wB();n&&(J_.detail.endpoint.subscribeEndpoint||J_.detail.endpoint.unsubscribeEndpoint)&&I9q(f.value,!n.subscribed,n)});
_.KN("yt-player-subscribe",function(J_){n&&J_===r.data.channelId&&I9q(f.value,!0,n)});
_.KN("yt-player-unsubscribe",function(J_){n&&J_===r.data.channelId&&I9q(f.value,!1,n)});
_.KN("yt-update-subscribe-button-action",function(J_){J_=_.F(J_,x1K);n&&J_&&J_.channelId===r.data.channelId&&I9q(f.value,!!J_.subscribed,n)});
_.$E(function(){f.value&&(f.value.addEventListener("focusin",oR),f.value.addEventListener("focusout",vu));_.dp(_.F_,function(){wB()});
Z(!0);return function(){f.value&&(f.value.removeEventListener("focusin",oR),f.value.removeEventListener("focusout",vu))}});
var wB=function(){if(!P&&r.animateWidth&&(I==null?0:I.value)&&(C==null?0:C.value)&&!EP.value){var J_=_.E((n==null?0:n.subscribed)?[I,C]:[C,I]),xC=J_.next().value;J_=J_.next().value;xC=Math.ceil(xC.value.getBoundingClientRect().width);J_=Math.ceil(J_.value.getBoundingClientRect().width);m(xC);O(J_);VTR(f.value,!(n==null||!n.subscribed),xC,J_);EP.value=!0}},qT=function(){var J_=x4(X==null?void 0:X.state);
return P||J_!=="NOTIFICATIONS_NONE"?function(){return h(J_)}:function(){mv(h5E)({animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:S})}};
d=function(){var J_=x4(X==null?void 0:X.state);return P||J_!=="NOTIFICATIONS_NONE"?function(){return _.p(_.V2,{icon:J_!=null?J_:void 0})}:function(){return _.p(h5E,{animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:S})}};
var gB=!(n==null||!n.subscribed)&&!w&&!(X==null||!X.state),C8=!(n==null?0:n.subscribed),Es=C8&&!w&&!(X==null||!X.state);w={};z={};return _.p("yt-subscribe-button-view-model",{class:_.D5(r.className,"yt-subscribe-button-view-model-wiz",(w["yt-subscribe-button-view-model-wiz__can-animate-width"]=!(n==null||!n.subscribed)&&r.animateWidth&&Cw,w["yt-subscribe-button-view-model-wiz--hidden"]=!(n==null?0:n.subscribed)&&r.data.hideWhenUnsubscribed,w)),el:f},_.p(w0B,{backgroundLottieRef:Y,foregroundLottieRef:V,
wrapperClass:_.D5("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(z["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=r.animateWidth&&Cw,z["yt-subscribe-button-view-model-wiz__static-width"]=!r.animateWidth,z)),disableAnimation:P},_.p("div",{el:I,class:_.D5("yt-subscribe-button-view-model-wiz__container"),idomKey:r.data.channelId},_.N("web_wiz_button_shape")?_.p(Uqm,{data:iU,icon:gB?d():void 0,secondaryIcon:gB?function(){return _.p(_.V2,{icon:"EXPAND"})}:
void 0}):_.p(se,null,function(){iIw(iU,gB?qT():void 0,gB?function(){return h("EXPAND")}:void 0)}))),_.p("div",{el:C,
class:"yt-subscribe-button-view-model-wiz__invisible"},!r.animateWidth||P||EP.value?null:_.N("web_wiz_button_shape")?_.p(Uqm,{data:SO({model:r.data,subscribed:C8,isOverlay:!!r.isOverlay,element:f.value,disableTextEllipsis:!0}),icon:Es?function(){var J_;return _.p(_.V2,{icon:(J_=x4(X==null?void 0:X.state))!=null?J_:void 0})}:void 0,
secondaryIcon:Es?function(){return _.p(_.V2,{icon:"EXPAND"})}:void 0}):_.p(se,null,function(){iIw(SO({model:r.data,
subscribed:C8,isOverlay:!!r.isOverlay,element:f.value,disableTextEllipsis:!0}),Es?function(){return h(x4(X==null?void 0:X.state))}:function(){},Es?function(){return h("EXPAND")}:void 0)})))};
p0B=function(r){if(r){switch(r){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":r="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":r="NOTIFICATIONS_OFF";break;default:r="NOTIFICATIONS_NONE"}return r}};
n_E=function(r,f,I){I.subscribed!==f&&((I=I.key)&&_.eS(_.hv("subscriptionStateEntity",I,{key:I,subscribed:f})),r.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:f})),f||_.Bj(r,"yt-unsubscribe-action"))};
d1q=function(r){r=_.F(_.aB(r),_.wu);var f,I,C,Y;return(Y=_.F(r==null?void 0:(f=r.panelLoadingStrategy)==null?void 0:(I=f.inlineContent)==null?void 0:(C=I.sheetViewModel)==null?void 0:C.content,Cbw))==null?void 0:Y.listItems};
z5q=function(r,f){if(r.onShowSubscriptionOptions&&f&&(r=d1q(r.onShowSubscriptionOptions),r!=null&&r.length)){var I=p0B(f);r.forEach(function(C){C=_.F(C,_.b6);var Y,V,S,h,w=C==null?void 0:(Y=C.leadingImage)==null?void 0:(V=Y.sources)==null?void 0:(S=V[0])==null?void 0:(h=S.clientResource)==null?void 0:h.imageName;C&&w&&(C.isSelected=w===I)})}};
MTU=function(r,f,I,C){f&&I?r.style.width=I+"px":!f&&C&&(r.style.width=C+"px")};
g_$=function(r,f,I){var C;(C=r.lottieEl)==null||C.goToAndPlay(0);var Y;(Y=f.lottieEl)==null||Y.goToAndPlay(0);_.pF(_.F_,function(){var V;(V=I.lottieEl)==null||V.goToAndPlay(0)},300)};
du=function(){return _.a().resolve(_.ZY(a9R))||{}};
X0w=function(r){return typeof r==="function"};
_.zk=function(r){Object.keys(r);var f=function(I,C){var Y=f.mapping||r;if(!I)return _.p(_.B9,null);if(Array.isArray(I)&&(I=NgP(Y,f,I),Array.isArray(I))){if(!I.length)return _.p(_.B9,null);if(I.length>1){for(var V=!1,S=!1,h=[],w={},n=0;n<I.length;w={data$jscomp$1832:void 0},n++)if(w.data$jscomp$1832=I[n],w.data$jscomp$1832){var d=$1R(w.data$jscomp$1832,Y),z=d.mappingEntry;d=d.rendererName;z&&d&&(z&&(!X0w(z)&&FkE(z)&&(S=!0),!X0w(z)&&z.asyncId||(V=!0)),h.push(PbK(w.data$jscomp$1832,z,d,f,C)))}return S&&
!V?_.p(_.B9,null,tTP()):_.p(_.B9,null,h)}I=I[0]}if(!I)return _.p(_.B9,null);I=NgP(Y,f,[I])[0];if(!I)return _.p(_.B9,null);V=$1R(I,Y);Y=V.mappingEntry;V=V.rendererName;return Y&&V?_.p(_.B9,null,PbK(I,Y,V,f,C)):_.p(_.B9,null)};
f.mapping=r;return f};
_.Tgm=function(r){var f=void 0,I;for(I in r)if(r.hasOwnProperty(I)){f=I;break}return f};
NgP=function(r,f,I){var C,Y=(C=du().preProcessOptions)==null?void 0:C.idomOptions;if(!Y)return I;du();return Y.preProcessPropsIdom(r,I,f.triggerRerender)};
$1R=function(r,f){return(r=_.Tgm(r))?{mappingEntry:f[r],rendererName:r}:{mappingEntry:void 0,rendererName:void 0}};
PbK=function(r,f,I,C,Y){if(!f)return _.p(_.B9,null);var V={};Y&&Y[I]&&(V=Object.assign({},Y[I]));r[I]!==void 0&&(V.data=r[I]);if(X0w(f))return f.debugName||(f.debugName=I),_.p(f,V);f.asyncId&&(C.pendingIdsMap=C.pendingIdsMap||{},C.pendingIdsMap[I]=f.asyncId);return f.templateFn?f.templateFn(V):FkE(f)?tTP():_.p(_.B9,null)};
FkE=function(r){var f;return(f=r.showPlaceholder)!=null?f:du().defaultShowPlaceholder};
tTP=function(){var r=du().placeholder;return r()};
cxl=function(r,f){f=f===void 0?{shouldPersist:!0}:f;return{useUpdatableData:function(I,C){var Y=[],V=_.E(_.YZ(function(){var n=I();if(C!=null&&C.length&&Y){var d=Y.length>0;for(var z=!1,g=0;g<C.length;g++){var X=C[g]();d&&X!==Y[g]&&(z=!0);Y[g]=X}d=z}else d=!1;if(d)_.MI.remove(w());else if(d=_.MI.get(w()))return d;return n})),S=V.next().value,h=V.next().value,w=_.hR(function(){return r(I())},void 0,"VFraLb");
_.az(function(){if(w()!=null){gu.set(w(),[S,h,!1]);var n=w();_.$L(function(){gu.delete(n)})}});
return[S,function(n){h(n);f.shouldPersist&&_.MI.set(w(),n)}]},
getData:function(I){var C;return(C=gu.get(r(I)))==null?void 0:C[0]()},
updateData:function(I,C){I=r(I);var Y=gu.get(I);if(!Y)return!1;var V=_.E(Y);Y=V.next().value;V=V.next().value;C=C(Y());V(C);f.shouldPersist&&_.MI.set(I,C);return!0},
useUpdatableDataIdom:function(I,C){var Y=r(I),V=_.MI.get(Y),S=_.E(IK(V!=null?V:I)),h=S.next().value,w=S.next().value,n=tn(V!=null?V:I);NC(function(){if(Y!=null)return gu.set(Y,[function(){return n.value},
function(d){w(d);n.value=d},
gu.has(Y)]),_.F_.addJob(function(){_.aK(_.F_,function(){var d=gu.get(Y);d&&(d[2]=!1)},0)},8),function(){var d;
((d=gu.get(Y))==null?0:d[2])||gu.delete(Y)}},[Y]);
NC(function(){h!==I&&(w(I),n.value=I)},C?[].concat(_.Na(C),[Y]):[Y]);
return[h,w]}}};
Wkw=function(r){var f=_.E(_.ld(!0,void 0,"bKtO6d")),I=f.next().value;f.next();return function(){var C=EQ(r.children());return _.p(_.M,{cond:I,then:function(){return C},
else:r.fallback})}()};
_.X1=function(r){var f=LkR(r),I=f.data,C=f.mapping,Y=f.wrapper;f=f.pendingFallback;var V=function(){return m1K(_.tR(I))},S=function(){var h=V(),w=[];
h=_.E(h);for(var n=h.next();!n.done;n=h.next()){var d=void 0;n=n.value;var z=void 0;for(d in n)if(!(!n).hasOwnProperty(d)){z=d;break}(d=z)&&w.push(d)}return w};
return r.data?_.p(Wkw,{fallback:f},function(){return _.p(_.pz,{each:S},function(h,w){var n=Y?function(z){return Y(function(){return C[h](z,w)},d,w)}:function(z){return C[h](z,w)};
n.debugName||(n.debugName=String(h));if(!C[String(h)])return document.createComment("");var d=e5R(V,h,w);return _.p(n,{data:d})})}):_.p(_.B9,null)};
LkR=function(r){var f=r.targetId||JxB(r.children);if(!r.data||!f||_.N("mweb_new_replaceables_killswitch"))return Object.assign({},r,{mapping:r.children,wrapper:void 0});var I="stamper-"+jg$++,C=function(){var h;return(h=_.tR(r.targetId))!=null?h:I};
f=_.E(HSR(function(){var h=m1K(r.data());h.targetId=C;return h})).next().value;
var Y=Object.assign({},du().replaceableMapping,r.children);if(r.replacementWrapper){var V=Y.notificationTextRenderer,S=Y.notificationMultiActionRenderer;V&&(Y.notificationTextRenderer=function(h,w){return r.replacementWrapper(V({data:h.data},w))});
S&&(Y.notificationMultiActionRenderer=function(h,w){return r.replacementWrapper(S({data:h.data},w))})}return Object.assign({},r,{data:f,
mapping:Y,wrapper:function(h,w,n){return RAK({targetId:C,stamperIndex:n},h)}})};
e5R=function(r,f,I){var C;return _.hR(function(){var Y=r()[I()];if(Y)C=Y[f];else return _.t7(new _.nf("Stamper failed to find "+String(f)+" at index "+I()+" of data array of length "+(r().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),C;return Y[f]},void 0,"DHuMIe")};
JxB=function(r){r=_.E(Object.keys(r));for(var f=r.next();!f.done;f=r.next())if(f=f.value,iSm.includes(f)||R5E.includes(f)||v_d.includes(f))return!0;return!1};
m1K=function(r){return r?Array.isArray(r)?r:[r]:[]};
Kkm=function(r){r=_.F(r,_.NI);return(r==null?void 0:r.iconName)&&!(r==null?0:r.title)};
sgP=function(r,f,I){var C;return _.p(_.B9,null,r==null?void 0:(C=r.actions)==null?void 0:C.map(function(Y){return _.p("div",{class:function(){var V={"yt-flexible-actions-view-model-wiz__action":!0};V["yt-flexible-actions-view-model-wiz__action--row-action"]=f;V["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(Kkm(Y))var S=!0;else if(S=_.F(Y,_.$4),(S==null?0:S.isToggled)&&Kkm(S==null?void 0:S.toggledButtonViewModel)||(S==null||!S.isToggled)&&Kkm(S==null?void 0:S.defaultButtonViewModel))S=
!0;else{var h;S=((h=_.F(Y,yx$))==null?0:h.playlistId)?!0:!1}V=(V["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=S,V["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=I,V);return _.D5(V)}},U1c([Y],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!f}}))}))};
OSP=function(r){var f=r.layout===1,I,C=((I=r.data)==null?void 0:I.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";I={};C=(I["yt-flexible-actions-view-model-wiz"]=!0,I["yt-flexible-actions-view-model-wiz--inline"]=!f,I["yt-flexible-actions-view-model-wiz--scrollable"]=C,I);var Y,V;return _.p("yt-flexible-actions-view-model",{class:_.D5(r.className,C)},(Y=r.data)==null?void 0:(V=Y.actionsRows)==null?void 0:V.map(function(S){if(f){var h;return _.p("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
sgP(S,f,!((h=r.data)==null||!h.respectActionIntrinsicWidth)))}return sgP(S,f,!1)}))};
o_$=function(r){return!(r==null||!r.iconName||(r==null?0:r.title))};
Qgc=function(r){var f=_.F(r.data.toggleButtonViewModel,_.$4),I,C=(I=r.data.dislikeEntityKey)!=null?I:"",Y=l6(Nm,C);f=Object.assign({},f,{isToggled:Y?Y.likeStatus==="DISLIKE":f.isToggled});return _.p("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.p(_.F1,{data:f,buttonShapeOverrides:r.buttonShapeOverrideables,onToggle:function(V){Y&&V!==(Y.likeStatus==="DISLIKE")&&Y.key&&_.eS(_.Po("likeStatusEntity",Y.key,{likeStatus:V?"DISLIKE":"INDIFFERENT",hadUserInteraction:V}))}}))};
ZSB=function(r){var f=_.N("web_supports_animations_api"),I=_.F(r.data.toggleButtonViewModel,_.$4),C,Y,V,S,h=_.E(IK({numberText:(S=(C=r.likeCountEntity)==null?void 0:(Y=C.likeCountIfIndifferent)==null?void 0:Y.content)!=null?S:"",numberValue:Number((V=r.likeCountEntity)==null?void 0:V.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),w=h.next().value,n=h.next().value,d,z,g,X;C=_.E(IK({numberText:(X=(d=r.likeCountEntity)==null?void 0:(z=d.likeCountIfLiked)==null?void 0:z.content)!=null?
X:"",numberValue:Number((g=r.likeCountEntity)==null?void 0:g.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));d=C.next().value;var P=C.next().value;z=_.E(IK());var W=z.next().value,m=z.next().value,v;z=(v=r.data.likeStatusEntityKey)!=null?v:"";var O,k;v=(k=(O=r.likeCountEntity)==null?void 0:O.key)!=null?k:"";var Z=l6(Nm,z),Cw=l6(gFd,v);O=Fl(function(){return(Z==null?void 0:Z.likeStatus)==="LIKE"},[Z]);
NC(function(){var rR,EP=Cw&&((rR=Cw.likeCountIfIndifferent)==null?void 0:rR.content)!==w.numberText;if(!W&&EP){var Pu,Wu;n({numberText:(Wu=Cw==null?void 0:(Pu=Cw.likeCountIfIndifferent)==null?void 0:Pu.content)!=null?Wu:"",numberValue:Number(Cw==null?void 0:Cw.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var cu,OP;P({numberText:(OP=Cw==null?void 0:(cu=Cw.likeCountIfLiked)==null?void 0:cu.content)!=null?OP:"",numberValue:Number(Cw==null?void 0:Cw.likeCountIfLikedNumber),heightPx:36,
shouldAnimate:!0})}},[Cw]);
I=Object.assign({},I,{isToggled:O});f=f&&r.likeCountEntity;return _.p("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.p(_.F1,{data:I,buttonShapeOverrides:r.buttonShapeOverrideables,animatedTextPropsDefault:f?w:void 0,animatedTextPropsToggled:f?d:void 0,onToggle:function(rR){AxK(rR,Z,W,m)},
style:function(){return r.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
AxK=function(r,f,I,C){I&&_.F_.cancelJob(I);I=_.F_.addLowPriorityJob(function(){C(void 0)},5E3);
C(I);f&&r!==(f.likeStatus==="LIKE")&&f.key&&_.eS(_.hv("likeStatusEntity",f.key,{key:f.key,likeStatus:r?"LIKE":"INDIFFERENT",hadUserInteraction:r}))};
Gql=function(r,f,I,C){I&&_.F_.cancelJob(I);I=_.F_.addLowPriorityJob(function(){C(void 0)},5E3);
C(I);f&&r!==(f.likeStatus==="LIKE")&&f.key&&_.eS(_.hv("likeStatusEntity",f.key,{key:f.key,likeStatus:r?"LIKE":"INDIFFERENT",hadUserInteraction:r}))};
uLq=function(r){var f,I=_.F((f=r.data)==null?void 0:f.likeButtonViewModel,tv),C;f=_.F((C=r.data)==null?void 0:C.dislikeButtonViewModel,Tk);var Y,V=(Y=l6(Nm,(I==null?void 0:I.likeStatusEntityKey)||""))!=null?Y:I==null?void 0:I.likeStatusEntity;C=Fl(function(){var S=r.data,h;S=(S==null?void 0:(h=S.timedAnimationData)==null?void 0:h.animationTiming)||[];return{uniqueId:"like-dislike",timings:S,enabled:(V==null?void 0:V.likeStatus)==="INDIFFERENT"&&S.length>0,experimentEnabled:S.length>0}},[r.data,
V]);return _.p("segmented-like-dislike-button-view-model",{class:_.D5(r.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.p(_.kql,{settings:C},_.p("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},I?_.p(BgR,{data:I,likeCountEntity:r.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,f?_.p(qyE,{data:f,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
D1w=function(r,f){var I=yR(r)||{layerNode:f};I.layerNode=f;sjK(r,I);r.getScreenLayer=function(){return co(I.layerNode)}};
rXR=function(r){var f;r=r.parentNode;for(var I;r&&((f=yR(r))==null||!f.isRenderer)&&!((I=r.polymerController)!=null?I:r).isRenderer_;)r=r.parentNode||r.host;if(f=r)return yR(f)};
fuq=function(r){if(r){Ke.delete(r);var f=_.a().resolve(A7);kTB(r,f)}};
CLc=function(r,f,I){if(I===void 0?0:I){if(I=r.getAttribute("client-ve-type"),f.data&&!f.disableReactiveLogging||I)_.Nk(function(){IuR(r,_.tR(f.data))}),_.$L(function(){return void fuq(r)})}else typeof f.data!=="function"&&IuR(r,f.data)};
IuR=function(r,f){YId++;lud(r,f)&&_.F_.addJob(function(){_.aK(_.F_,function(){if(lud(r,f)&&r.ownerDocument.documentElement===document.documentElement&&r){var I;if(r.getAttribute("layer")){var C=I=Number(r.getAttribute("layer")),Y=yR(r);Y?Y.layerNode.layer=C:D1w(r,new VUK(C));(C=rXR(r))&&(Y=yR(r))!=null&&(Y.layerNode.parent=C.layerNode)}else if(I=yR(r))I=co(I.layerNode);else{I=co;C=new VUK;if(Y=rXR(r))C.parent=Y.layerNode;D1w(r,C);I=I(C)}I!=null||(I=0);C=r.getAttribute("client-ve-type");Y=Number(C);
var V=!1;C=!1;var S=yR(r),h;if((h=S)&&!(h=S[Wo]!==f)&&(h=Y)){var w;h=((w=Ke.get(r))==null?void 0:w.clientVeType)===void 0}h&&(S[Wo]=f,V=C=S.isRenderer=!0);Ke.has(r)&&(Ke.get(r).clientVeType=Y);r.visualElement&&(C=!0);(w=f==null?void 0:f.loggingDirectives)&&w.clientVeSpec&&(S=E8B(_.rF(),r),w=_.SIu(_.IB(),w,S||void 0,I))&&(r.visualElement=w);!r.visualElement&&Y&&V&&(r.veType=Y,w=void 0,_.N("wiz_next_client_ve_parent_fix")&&(w=E8B(_.rF(),r)),w=_.fv(_.IB(),r,w,I),r.visualElement=w);C&&(w=_.a().resolve(A7),
DDu(r,{data:f,observer:w,layer:I,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
lud=function(r,f){return(f==null?0:f.trackingParams)||(f==null?0:f.loggingDirectives)||_.F(f==null?void 0:f.rendererContext,_.rtK)||r.getAttribute("client-ve-type")?!0:!1};
hZR=function(r){return _.N("cow_logging_in_component_wrapper")?function(f){CLc(f,r,!0)}:xfK};
xfK=function(){};
_.wfq=function(r,f){return _.f2(r.entities,"accountLinkStatusEntity",f)};
bOR=function(r,f){return _.f2(r.entities,"hatsSurveyEntity",f)};
pfR=function(r,f){return _.f2(r.entities,"hatsSurveyStateEntity",f)};
n8q=function(r,f){return _.f2(r.entities,"quantityIncrementerEntity",f)};
auK=function(r){var f=r.data;var I=r.className===void 0?"":r.className;var C=r.setMinWidth;r=r.forceIconOnly;var Y=_.yy(hZR({data:f}));C=C?"ytwAccountLinkButtonViewModelHostMinWidth":"";var V=_.VS(_.wfq,function(){var z;return(z=_.tR(f).accountLinkStatusEntityKey)!=null?z:""}),S=_.VS(_.wfq,function(){var z;
return(z=_.tR(f).accountLinkStatusSecondaryEntityKey)!=null?z:""}),h=function(){if(!_.N("web_account_link_secondary_killswitch")){var z,g;
return((z=V())==null?void 0:z.linked)||((g=S())==null?void 0:g.linked)}var X;return(X=V())==null?void 0:X.linked};
_.az(function(){var z=V();if(z){var g=dfq(new zZE,MUc(new g8K,!!z.linked));_.uB().then(function(X){X&&(X.setAccountLinkState(_.Dp(g.JSC$9973_serializeBinary(),4)),X.updateAccountLinkingConfig(!!z.linked))})}});
var w=function(){return _.F(_.tR(f).toggleButtonViewModel,_.$4)};
_.KN("yt-signal-action-show-account-link-dialog",function(){if(w()){var z=h()?w().toggledButtonViewModel:w().defaultButtonViewModel;z=_.F(z,_.NI);var g;if((g=V())==null?0:g.isWarning){g=_.F(_.tR(f).warningButtonViewModel,_.NI);if(!g){_.Hw(Error("zh"));return}z=g}var X;(g=_.aB((X=z)==null?void 0:X.onTap))&&_.Ce([g],Y.value)}else _.Hw(Error("Ah"))});
var n=function(){var z=w();return Object.assign({},z,{isToggled:h()})},d=r?{iconPosition:"icon-only"}:{};
return _.p("account-link-button-view-model",{class:_.qd("ytwAccountLinkButtonViewModelHost",function(){return _.tR(I)},C),
el:Y,"button-renderer":!0},_.p("div",null,_.p(_.M,{cond:function(){var z;if((z=V())==null?0:z.isWarning)return(z=_.F(_.tR(f).warningButtonViewModel,_.NI))||_.Hw(Error("zh")),z},
then:function(z){return _.p(_.LF,{data:z,buttonOverrides:d})},
else:function(){return _.p(_.F1,{data:n,buttonShapeOverrides:d})}})))};
XfK=function(r){switch(r){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
NZm=function(r){switch(r){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}};
$fm=function(r){switch(r){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.PLR=function(r){var f=_.Bw("web_generic_client_event_wait_period ",0);f||(f=3E5);var I=Fp$.get(r);!_.N("enable_web_client_experiment_event_timeout_killswitch")&&I&&(0,_.Ad)()-I<f||(Fp$.set(r,(0,_.Ad)()),_.NW("genericClientExperimentEvent",{eventType:r}))};
cXR=function(r){var f=r.data;var I=r.children;var C=tU$(f),Y=(f==null?0:f.thumbnailSize)?f.thumbnailSize:"medium";r=!(f==null||!f.doubleStack);var V=!(f==null||!f.experimentEnabled),S={},h=(S["collections-stack-wiz__collection-stack1"]=!0,S[TZE(Y)]=!0,S);if(f==null?0:f.customClassName1stStack)h[f.customClassName1stStack]=!0;Y={};var w=(Y["collections-stack-wiz__collection-stack2"]=r,Y["collections-stack-wiz__collection-stack2--responsive-mode"]=f==null?void 0:f.enableResponsiveMode,Y);if(f==null?
0:f.customClassName2ndStack)w[f.customClassName2ndStack]=!0;return _.p("yt-collections-stack",{class:"collections-stack-wiz",hidden:!V},sD(f,function(){return _.p("div",null,sD(f.doubleStack,function(){return _.p("div",{class:_.D5(w),style:"background-color:"+C})}),_.p("div",{class:_.D5(h),
style:"background-color:"+C}),I)}))};
TZE=function(r){switch(r){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""}};
tU$=function(r){if(!r)return"";var f,I=(f=_.a().resolve(_.ZY(_.cI)))==null?void 0:f(),C;if(!I&&((C=r.vibrantColorPalette)==null?0:C.iconInactiveColor))return ab(r.vibrantColorPalette.iconInactiveColor,"1");var Y;return I&&((Y=r.darkColorPalette)==null?0:Y.iconInactiveColor)?ab(r.darkColorPalette.iconInactiveColor,"1"):r.color?ab(r.color,"1"):r.sampledThumbnailColor?(r=r.sampledThumbnailColor,"rgba("+r.red+","+r.green+","+r.blue+");"):""};
_.mV=function(r,f){if(!r.includes("DATE_PLACEHOLDER"))return r;var I=new Date(0);I.setUTCSeconds(f);return r.replace("DATE_PLACEHOLDER",WpU(I))};
_.eO=function(r){r=_.LpE(r);return _.N("web_watch_enable_single_column_grid_view")?r:!1};
_.LpE=function(r){return r.watch.isWatchNarrowWidth};
mfK=function(r,f,I){return function(C){var Y=r.command;Y&&(bB(Y,{form:{element:I}}),f([Y],C))}};
JXK=function(r,f,I,C,Y){return function(V){var S=eZw(r,I);S&&bB(S,{form:{element:C},commandController:Y});f&&f.stopPropagation&&V.stopPropagation()}};
eZw=function(r,f){if(r.signInEndpoint&&!_.N("web_subscribe_sign_in_endpoint_killswitch"))return r.signInEndpoint;if(f){if(r.serviceEndpoints)return r.serviceEndpoints[1];if(r.onUnsubscribeEndpoints)return r.onUnsubscribeEndpoints[0]}else{if(r.serviceEndpoints)return r.serviceEndpoints[0];if(r.onSubscribeEndpoints)return r.onSubscribeEndpoints[0]}};
j8q=function(r,f){var I,C,Y,V;f=f&&((I=r.unsubscribeAccessibility)==null?void 0:(C=I.accessibilityData)==null?void 0:C.label)||((Y=r.subscribeAccessibility)==null?void 0:(V=Y.accessibilityData)==null?void 0:V.label);return r.longSubscriberCountText?[f,_.Rr(r.longSubscriberCountText)].filter(function(S){return S}).join(" "):f};
Jv=function(r,f){return f||(r==null?0:r.isChannelDelegate)?"disabled":"active"};
HOR=function(r,f){var I;switch((I=r.style)==null?void 0:I.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Jv(r)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Jv(r)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Jv(r,!0)};case "OVERLAY":return f?{style:"overlay",type:"tonal",state:Jv(r)}:{style:"overlay",type:"filled",state:Jv(r)};default:return f?{style:"mono",type:"tonal",state:Jv(r)}:{style:"mono",type:"filled",state:Jv(r)}}};
iOd=function(r,f){var I=r.map(function(C){return C.toString()});
return _.IC(function(C){if(I.includes(C.key)){f&&C.preventDefault();var Y;(Y=C.currentTarget)==null||Y.click()}})};
_.jO=function(){return iOd(["Enter"])};
_.RZ$=function(){return iOd(["Enter"," "],!0)};
_.Ho=function(r){if(r.composedPath)return r.composedPath();if(!r.__composedPath){for(var f=[],I=r.target;I;)f.push(I),I=I.parentNode;f.push(window);r.__composedPath=f}return r.__composedPath};
_.v8u=function(r,f,I){r=_.E(r);for(var C=r.next();!C.done;C=r.next()){C=C.value;if(C===f)break;for(var Y=_.E(I),V=Y.next();!V.done;V=Y.next())if(V=V.value,C.tagName===V||C.role==="button"&&V==="BUTTON")return!0}return!1};
yXl=function(r,f){var I,C=(I=f.observer)!=null?I:_.a().resolve(A7);if(r){I=Kpm(r);var Y=[];f.showOption&&Y.push(C.observe(r,function(){f.visibilityCallback(!0)},f.showOption));
f.hideOption&&Y.push(C.observe(r,function(){f.visibilityCallback(!1)},f.hideOption));
f.prescanOption&&f.prescanCallback&&Y.push(C.observe(r,function(){f.prescanCallback()},f.prescanOption));
var V;I.visibilityMonitorKeys=((V=I.visibilityMonitorKeys)!=null?V:[]).concat(Y)}};
Kpm=function(r){var f;return(f=r.polymerController)!=null?f:r};
_.RK=function(r){return!!_.i6(r)};
_.vo=function(r,f){var I=v5c();NC(function(){var C=r.value;if(C)return Ufu(C,f),s8R(C,f,void 0,void 0,void 0,I)},[f])};
_.KF=function(r,f,I,C,Y,V){var S=v5c();_.az(function(){var h=r.value;h&&(Ufu(h,f(),V),h=s8R(h,f(),I,C,Y,S),_.$L(h))})};
Ufu=function(r,f,I){var C=OOw(f),Y=o8U(f);f=C&&Q8U;var V=Y&&AXU;(C||Y)&&yXl(r,{visibilityCallback:function(S){var h=_.a().resolve(_.Gg);S&&C?h.resolveCommand(C,{form:{element:I?r:void 0},disableClickTracking:!0}):!S&&Y&&h.resolveCommand(Y,{form:{element:I?r:void 0},disableClickTracking:!0})},
showOption:f,hideOption:V})};
s8R=function(r,f,I,C,Y,V){var S=new Map;if(f=_.i6(f)){var h;r=(C==null?void 0:(h=C.onTap)==null?void 0:h.value)||r;I=ZOd(f,r,I==null?void 0:I.onTap,Y,V);r.addEventListener("click",I);S.set("click",I)}return function(){for(var w=_.E(S),n=w.next();!n.done;n=w.next()){var d=_.E(n.value);n=d.next().value;d=d.next().value;r.removeEventListener(n,d)}}};
_.i6=function(r){var f;return(r=(f=_.F(r,yS))==null?void 0:f.onTap)&&_.aB(r)};
OOw=function(r){var f;return(r=(f=_.F(r,yS))==null?void 0:f.onVisible)&&_.aB(r)};
o8U=function(r){var f;return(r=(f=_.F(r,yS))==null?void 0:f.onHidden)&&_.aB(r)};
ZOd=function(r,f,I,C,Y){var V=function(h){_.a().resolve(_.Gg).resolveCommand(r,h)},S=function(h){C&&_.v8u(_.Ho(h),f,C)||V(h.target?{form:{element:h.target,
sourceData:r,mutationContext:Y}}:void 0)};
I&&(S=function(h){I(h,V)});
return S};
GcR=function(r){var f=r.data;var I=r.className;r=r.alwaysShow;var C=_.yy();_.vo(C,f.rendererContext);a:switch(f.style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var Y="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:Y="ytThumbnailHoverOverlayViewModelStyleCover"}Y=_.D5("ytThumbnailHoverOverlayViewModelScrim",Y);var V,S=(V=_.F(f==null?void 0:f.rendererContext,_.U0))==null?void 0:V.label,h=_.i6(f.rendererContext)!==void 0;V=h?"button":void 0;h=h?0:void 0;var w=_.RZ$(),n={};return _.p("thumbnail-hover-overlay-view-model",
{el:C,class:_.D5("ytThumbnailHoverOverlayViewModelHost",I,(n.ytThumbnailHoverOverlayViewModelHostForceHover=r,n)),"aria-label":S,role:V,tabindex:h,"on:keypress":w},_.p("div",{class:Y},f.icon?_.p(_.J3,{data:f.icon,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"}):null,f.text?_.p(_.wW,{text:f.text,className:"ytThumbnailHoverOverlayViewModelText"}):null))};
kc$=function(r){switch(r){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}};
BZ$=function(r){var f=r.numAvatarsInCluster;switch(r.clusterSize){case "small":return f===2?22:18;case "40":return f===2?24:22;default:return f===2?24:20}};
qIP=function(r,f){return function(I){var C=Object.keys(f);_.az(function(){if(r()){for(var Y=_.E(C),V=Y.next();!V.done;V=Y.next())V=V.value,I.addEventListener(V,f[V]);_.$L(function(){for(var S=_.E(C),h=S.next();!h.done;h=S.next())h=h.value,I.removeEventListener(h,f[h])})}})}};
usK=function(r){switch(BZ$(r)){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""}};
DfK=function(r){switch(r){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""}};
rMd=function(r){switch(BZ$(r)){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""}};
fIw=function(r){switch(r){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""}};
IIB=function(r){switch(r){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}};
CeK=function(r){return r==="medium"||r==="48"||r==="large"||r==="extra-large"||r==="extra-extra-large"||r==="giant"};
YAd=function(r){return!!((r==null?0:r.includes(3))||(r==null?0:r.includes(5)))};
VIE=function(r){return{size:lIB(r.data.avatarImageSize),onTap:r.onTap,decorations:r.decorations||[],badgeText:r.badgeText,accessibilityText:r.accessibilityText,avatarButtonCustomClassName:r.avatarButtonCustomClassName,clusterLayoutConfig:r.clusterLayoutConfig}};
lIB=function(r){switch(r){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"}};
Eem=function(r){switch(r){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
SAd=function(r){switch(r){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""}};
x0R=function(r){var f=r.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",I,C=r.avatars&&r.avatars.length>0?(I=_.F(r.avatars[0],_.s0))==null?void 0:I.avatarImageSize:"AVATAR_SIZE_UNKNOWN";I=Eem(C)||0;if(f){var Y,V=(Y=r.avatarClusterSize)!=null?Y:"AVATAR_SIZE_M";f=Eem(V);var S,h,w=Math.min((h=(S=r.avatars)==null?void 0:S.length)!=null?h:0,4),n;return{avatars:((n=r.avatars)==null?void 0:n.slice(0,4))||[],avatarSizeInPx:I,avatarStackStyle:{width:f+"px",height:f+"px",position:"relative"},avatarStyle:function(z){var g=
BZ$({clusterSize:lIB(V),numAvatarsInCluster:w,avatarIndex:z});var X=Eem(V);w===3&&z===2?(X=(X-g)/2,X=(_.Lz("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*X):X=void 0;return{position:"absolute",top:w===2&&z===1||w===3&&z===2||w===4&&z>=2?"0":void 0,bottom:w===2&&z===0||w>2&&z<2?"0":void 0,left:w===2&&z===1||w>2&&(z===1||z===3)?"0":void 0,right:w<=3&&z===0||w===4&&(z===0||z===2)?"0":void 0,transform:X?"translateX("+X+"px)":void 0,width:g+"px",height:g+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(z){return{clusterSize:lIB(r.avatarClusterSize),numAvatarsInCluster:w,avatarIndex:z}},
avatarButtonCustomClassName:void 0}}var d;return{avatars:((d=r.avatars)==null?void 0:d.slice())||[],avatarSizeInPx:I,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:SAd(C),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
hym=function(r,f,I){return function(){bB(r,{form:{element:f},commandController:I})}};
wnq=function(r){switch(r){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
b4w=function(r){var f=r.data;return _.p("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:r.hidden===void 0?!1:r.hidden},_.p(_.wW,{text:f.title,className:"yt-thumbnail-overlay-title-view-model__title"}),f.subtitle?_.p(_.wW,{text:f.subtitle,className:"yt-thumbnail-overlay-title-view-model__subtitle"}):null)};
pnU=function(r){switch(r){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"}};
neK=function(r){var f=r.data;r=r.hidden===void 0?!1:r.hidden;var I={};r={class:_.D5("yt-page-indicator-view-model",(I["yt-page-indicator-view-model__indicator--hidden"]=!f.indicatorCount,I)),hidden:r};if(f.indicatorCount){I=[];for(var C=0;C<f.indicatorCount;C++){var Y={};Y=_.D5("yt-page-indicator-view-model__indicator",(Y["yt-page-indicator-view-model__indicator--selected"]=f.selectedIndex===C,Y));I.push(_.p("div",{class:Y}))}f=_.p(_.B9,null,I)}else f=_.p(_.B9,null);return _.p("yt-page-indicator-view-model",
r,f)};
zyd=function(r){r&&(d0B(r)?delete r.inlinePlayerData:"inlinePlaybackEndpoint"in r&&delete r.inlinePlaybackEndpoint)};
MIU=function(r){if("accessibilityText"in r)return r.accessibilityText||"";if("title"in r){var f,I,C;return((f=r.title)==null?void 0:(I=f.accessibility)==null?void 0:(C=I.accessibilityData)==null?void 0:C.label)||""}if("accessibility"in r){var Y,V;return((Y=r.accessibility)==null?void 0:(V=Y.accessibilityData)==null?void 0:V.label)||""}return""};
d0B=function(r){return"inlinePlayerData"in r};
O0=function(r){return new ge$(r)};
_.aIu=function(r,f,I,C,Y,V){var S=function(n){n.preventDefault()},h=function(){var n=r.value;
if(n)return(n._data=f)?(n.addEventListener("touchstart",oKc,{passive:!0}),n.addEventListener("click",Atl),f.clickTrackingParams&&(n.params={itct:f.clickTrackingParams}),Znc(n,f),t6(n,GnP(f)||"")):n.addEventListener("click",S),function(){f?(n.removeEventListener("touchstart",oKc,{passive:!0}),n.removeEventListener("click",Atl)):n.removeEventListener("click",S)}},w=function(){var n=r.value;
if(n){var d=_.Nd({innertubeCommand:f,elementsCommand:I,forceNewState:C,stopPropagation:V});if(d)return n._data=d._data,d["aria-haspopup$"]&&n.setAttribute("aria-haspopup",d["aria-haspopup$"].toString()),d["force-new-state$"]&&n.setAttribute("force-new-state",d["force-new-state$"].toString()),d.href$&&t6(n,d.href$),d.rel$&&(n.rel=d.rel$),d.role$&&n.setAttribute("role",d.role$),d.target$&&(n.target=d.target$),n.params=d.params,d.onclick&&n.addEventListener("click",d.onclick),d.onpointerdown&&n.addEventListener("onpointerdown",
d.onpointerdown),function(){d.onclick&&n.removeEventListener("click",d.onclick);d.onpointerdown&&n.removeEventListener("onpointerdown",d.onpointerdown)}}};
NC(Y?w:h,[f,I])};
XnR=function(r){var f=r.children;var I=r.className;var C=r.dir;var Y=r.style;var V=r.role;var S=r.ariaSelected;var h=r.ariaLabel;var w=r.ariaHidden;var n=r.ariaLabelledby;var d=r.ariaDescribedby;var z=r.command;var g=r.elementsCommand;var X=r.forceNewState;var P=r.isPlaceholder;var W=r.tabIdentifier;var m=r.target;var v=r.tabIndex;var O=r.useATagConfig;var k=r.stopPropagation;r=_.yy();_.aIu(r,z,g,X,O,k);g=_.IC(function(){return k===!1});
return _.p("a",{el:r,"on:click":g,class:I,style:Y,dir:C,role:V?V:z?void 0:"group","aria-hidden":w?!0:void 0,"aria-label":h,"aria-labelledby":n,"aria-describedby":d,"aria-selected":S,tabindex:v!==void 0?v:void 0,target:m,"tab-identifier":W,"force-new-state":X?!0:void 0,"is-placeholder":P?!0:void 0},f)};
$0B=function(r){var f=r.data;r=_.IC(function(){var Y=_.F(f.onTap,_.gF);Y&&_.a().resolve(_.Gg).resolveCommand(Y);return!1});
var I={sources:[{url:f.thumbnailUrl,width:120,height:90}]},C=f.rating&&f.ratingA11yLabel&&f.reviewsCount&&f.reviewsCountA11yLabel;return _.p("place-data-view-model",null,f.placeName&&f.placeCategory?_.p("div",{class:"yt-spec-place-data-view-model-shape","on:click":r},_.p(_.J3,{data:I,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail "+Ncl}),_.p(XnR,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.F(f.onTap,_.gF),forceNewState:!0,
useATagConfig:!0},_.p("h3",{class:"yt-spec-place-data-view-model-shape__name",title:f.placeName},f.placeName)),_.p("div",{class:"yt-spec-place-data-view-model-shape__metadata"},C?_.p("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.p("span",{class:"score",title:f.ratingA11yLabel},f.rating),_.p("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.p(_.V2,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.p("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:f.reviewsCountA11yLabel},f.reviewsCount)):_.p("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.p("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.p("span",{class:"category",title:f.placeCategory},f.placeCategory)))):null)};
F1P=function(r){return function(f){r&&(r.thumbnailElRef=f.thumbnailElRef,r.thumbnail=f.thumbnail,r.thumbnailOverlays=f.thumbnailOverlays,r.thumbnailSize=f.thumbnailSize)}};
Pel=function(r){var f;return(f=r.sharedUi)==null?void 0:f.animatedThumbnailEnabled};
tIw=function(r){var f;return(f=r.sharedUi)==null?void 0:f.inlinePreviewEnabled};
_.Tcm=function(r){var f;return(f=r.sharedUi)==null?void 0:f.currentPageSubType};
cMd=function(){return _.p("div",{class:"yt-pinking"},_.p("svg",{class:"yt-pinking__pinking-left"},_.p("defs",null,_.p("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.p("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.p("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.p("svg",{class:"yt-pinking__pinking-right"},_.p("defs",null,_.p("pattern",{id:"right-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.p("polygon",{class:"yt-pinking__pinking",
points:"4,0 0,4 4,8"}))),_.p("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))};
W1m=function(r){switch(r){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
H4w=function(r){var f=[],I=r.data,C=vl(r.width,r.height),Y=_.a().resolve(_.ZY(L1B)),V=_.yy(function(){f.push("elRef.value set")});
_.$E(function(){f.push("onInit");return function(){f.push("onCleanup")}});
_.$E(function(){var m;(m=r.playbackRef)==null||m.call(r,{thumbnailElRef:V,thumbnail:I.image,thumbnailOverlays:I.overlays,thumbnailSize:C})});
var S=tDl(Pel),h,w=(h=r.aspectRatio)!=null?h:0,n=(h=(I.image?_.LeK(I.image):w)<=1&&w===0)?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL",d=function(){V.value||_.t7(new _.nf("Thumbnail elRef.value is null",f.join("\n")));Y&&V.value&&Y(V.value)},z={};
a:{if(!r.disableRounding&&!r.isClip)switch(C){case "large":var g="yt-thumbnail-view-model--large";break a;case "small":g="yt-thumbnail-view-model--small";break a;default:g="yt-thumbnail-view-model--medium";break a}g=void 0}w=_.D5("yt-thumbnail-view-model",r.className,W1m(w),g,(z["yt-thumbnail-view-model--cinematic"]=h,z));z=void 0;var X,P;(g=h?(X=r.data)==null?void 0:(P=X.backgroundColor)==null?void 0:P.lightTheme:void 0)&&(z="background-color:"+ab(g,"1")+";");var W;X=r.hovered&&C!=="large"&&((W=
I.overlays)==null?void 0:W.some(function(m){return _.F(m,m0l)}));
return _.p("yt-thumbnail-view-model",{class:w,style:z,el:V},sD(h,function(){return _.p("div",{class:"yt-thumbnail-view-model__blurred-image"},_.p(_.J3,{data:I.image,alt:"",contentMode:n,targetWidth:r.width,onload:d}))}),_.p("div",{class:"yt-thumbnail-view-model__image"},_.p(_.J3,{data:I.image,
alt:"",contentMode:n,targetWidth:r.width,onload:d}),null),sD(!X,function(){return eyE(I.overlays,{thumbnailOverlayBadgeViewModel:{thumbnailSize:C,isClip:r.isClip},thumbnailOverlayButtonViewModel:{lockupExperiments:r.lockupExperiments}})}),sD(r.hovered,function(){return JMq(I.overlays,{thumbnailHoverOverlayViewModel:{alwaysShow:!0}})}),sD(r.hovered&&S,function(){return jqu(I.overlays)}),sD(r.isClip,function(){return cMd()}))};
i4K=function(r){switch(r){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
U0u=function(r){var f=_.E(IK(-1)),I=f.next().value,C=f.next().value,Y=Pw(function(){return new Rym(C)});
_.$E(function(){vec(Y,r.data.thumbnails.length);return function(){K1K(Y)}});
var V;return _.p("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},(V=r.data.thumbnails)==null?void 0:V.map(function(S,h){var w=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];!r.data.primaryThumbnail&&h===0&&w.push("yt-collection-thumbnail-slideshow--first-slide");h<=I&&w.push("yt-collection-thumbnail-slideshow--show-slide");h=w.join(" ");return _.p("div",{class:h},yMK(S,{thumbnailViewModel:{disableRounding:r.disableRounding}}))}))};
O4R=function(r){var f=_.E(IK(!1)),I=f.next().value,C=f.next().value;_.$E(function(){if(r){var Y=_.a().resolve(_.ZY(sqK));if(Y){var V={triggeringElement:r,onDwellTriggeredFn:function(){C(!0)},
onDwellEndFn:function(){C(!1)}};
Y.registerElement(V);return function(){Y.unregisterElement(V)}}}});
return I};
oew=function(r){var f=_.E(_.ld(!1,void 0,"RIOonf")),I=f.next().value,C=f.next().value;_.$E(function(){var Y=r==null?void 0:r();if(Y){var V=_.a().resolve(_.ZY(sqK));if(V){var S={triggeringElement:Y,onDwellTriggeredFn:function(){C(!0)},
onDwellEndFn:function(){C(!1)}};
V.registerElement(S);_.$L(function(){V.unregisterElement(S)})}}});
return I};
Z4U=function(r){var f,I=(f=_.a().resolve(_.ZY(_.cI)))==null?void 0:f(),C=O4R(r.triggeringElement),Y=!!r.data.primaryThumbnail,V=function(){var h;return _.p("div",null,Qql(r.data.primaryThumbnail,{thumbnailViewModel:{width:r.width,height:r.height,aspectRatio:r.aspectRatio,disableRounding:r.disableRounding,className:Y?"yt-collection-thumbnail-view-model--has-stacks":void 0,hovered:r.hovered,playbackRef:r.playbackRef}}),sD(C&&((h=r.data.thumbnails)==null?void 0:h.length),function(){return _.p("div",
{class:"yt-collection-thumbnail-view-model__slideshow"},_.p(AMU,{data:r.data,disableRounding:!Y}))}))};
f=r.data.stackColor;var S={experimentEnabled:Y,thumbnailSize:vl(r.width,r.height),doubleStack:r.doubleStack,color:I?f==null?void 0:f.darkTheme:f==null?void 0:f.lightTheme,enableResponsiveMode:!1};return _.p("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},sD(Y,function(){return _.p(cXR,{data:S},V())}),sD(!Y,V))};
Glw=function(r,f,I){I?I(f):_.F2(f,r.target?{form:{element:r.target}}:void 0)};
_.oK=function(r,f,I,C){_.az(function(){var Y=r.value;if(Y){var V=new Map,S,h=(S=f())==null?void 0:S.onTap;h&&(S=function(w){a:{var n=w.composedPath();n=_.E(n);for(var d=n.next();!d.done;d=n.next()){d=d.value;if(d===Y)break;if(d.className.indexOf("HostIsClickableAdComponent")>=0||d.tagName==="A".toString()||d.tagName==="BUTTON".toString()){n=!0;break a}}n=!1}n||(_.N("enable_square_image_components_ui_web_with_float_button")?_.kA(r.value,"yt-navigate",{endpoint:_.aB(h)}):Glw(w,h,I))},(C==null?0:C())||
_.N("enable_web_home_top_landscape_image_layout_level_click")?(Y.addEventListener("tap",S),V.set("tap",S)):(Y.addEventListener("click",S),V.set("click",S)));
_.$L(function(){for(var w=_.E(V),n=w.next();!n.done;n=w.next()){var d=_.E(n.value);n=d.next().value;d=d.next().value;Y.removeEventListener(n,d)}})}})};
klB=function(r,f){var I,C=(I=r.interaction)==null?void 0:I.onTap;if(r=_.Nd({elementsCommand:C,forceNewState:!0,skipOnClick:!0}))return r.onclick=function(Y){yt$(Y)&&(Y.preventDefault(),C&&Glw(Y,C,f))},$Y(r)?r:void 0};
Bcd=function(r){switch(r){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
qAw=function(r){switch(r){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"}};
uUc=function(r){switch(r){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"}};
_.D0R=function(r){return _.N("rich_grid_enable_dynamic_offset")&&r?Math.max(Math.round((r-_.Bw("rich_grid_dynamic_offset_anchor_width",1300))/100*_.Bw("rich_grid_dynamic_offset_offset_per_100",10)),_.Bw("rich_grid_dynamic_offset_lower_bound",-60)):0};
r$U=function(r,f){switch(f){case 4:return 16;case 1:return r<528?16:r<1024?32:48;case 2:return(r>=528?16:8)/2;case 3:return(r<528?16:r<1024?32:48)+(r>=528?16:8)/2;default:return 0}};
fOq=function(r){var f=r.originalContainerWidth;var I=r.sizing;var C=r.standardUnit;if(r.isCompactList&&f<528)return 1;switch(I){case "STANDARD":return C;case "COMPACT":return C+1;case "EXTRA_COMPACT":return _.N("web_responsive_extra_compact_2x")?C*2:_.N("web_responsive_current")?C===1?2:C%2===0?C/2*3:C+2:C<4?C*2:Math.ceil(C*3/2);case "MINI":return C>1?C*2:3;default:return C}};
C5R=function(r){var f=r.containerWidth;var I=r.peek;var C=r.gutter;var Y=r.numItems;r=r.ignoreMaxWidthLimit;f=I?Math.max((f-I-C*Y)/Y,0):Math.max((f-C*(Y-1))/Y,0);return r?f:Math.min(f,IOP)};
_.QS=function(r){var f=r.containerWidth;var I=r.hasPeek;var C=r.sizing;var Y=r.marginSettings;var V=r.isCompactList;var S=r.enableFullBleedForSingleCol;var h=r.standardUnitMinWidth;C=C||"STANDARD";I=!!I;r=f>=528?16:8;var w=I?f>=528?48:24:0;Y=r$U(f,Y);var n=Math.max(f-Y*2,0);h=_.N("kevlar_disable_min_width_override")?void 0:h;h=Math.min(Math.max(Math.floor((n-w+r)/((h!=null?h:Yhc)+_.D0R(f)+r)),1),6);var d=(S=!!S&&h===1)||h===1&&C!=="STANDARD";I=I||d?n:Math.min(n,(IOP+r)*h-r);C=fOq({originalContainerWidth:f,
sizing:C,standardUnit:h,isCompactList:V});return{itemWidth:C5R({containerWidth:I,peek:w,gutter:r,numItems:C,ignoreMaxWidthLimit:d}),gutter:r,maxContainerWidth:I,numItems:C,margin:S?0:Y,contentMargin:r$U(f,1),typographyBump:C5R({containerWidth:I,peek:w,gutter:r,numItems:h,ignoreMaxWidthLimit:d})>400&&!(V&&f<528),standardUnit:h}};
lOl=function(r){switch(r){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.VxB=function(r){if(r){var f;if((f=r.responsiveContainerConfiguration)==null?0:f.responsiveSize)return lOl(r.responsiveContainerConfiguration.responsiveSize);if(r.layoutSizing)switch(r.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"}}};
EvR=function(r){if(r.fullbleed)return 1;switch(r.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
wXl=function(r,f,I,C,Y,V,S,h){a:switch(r){case 4:V=!!(V&&V<100);break a;default:V=!1}a:switch(r){case 3:case 4:var w=C==="LOCKUP_CONTENT_TYPE_CHANNEL"||C==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:w=!1}a:switch(r){case 5:var n=!0;break a;case 4:n=!1;break a;default:n=!1}a:if(r===4&&C==="LOCKUP_CONTENT_TYPE_SOURCE")var d=1;else switch(r){case 3:d=1;break a;default:d=0}return{isOverlay:n,isCard:ShK(C,S),sizing:f!=null?f:"STANDARD",typographyBump:I!=null?I:!1,isTiny:V,isCentered:w,isCollection:xZE(C),
arrangement:d,addMarginForFullbleed:r===1&&C!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:r===1&&C==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:haP(C,Y,h),disableRounding:r===5||ShK(C,S)||r===1&&C==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:xZE(C)?2:0,useLegacyTypography:!(h==null||!h.useLegacyTypography),useRichGridLegacyTypography:!(h==null||!h.useRichGridLegacyTypography)&&!_.N("web_enable_typography_bump")}};
xZE=function(r){switch(r){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}};
ShK=function(r,f){if(f&&r==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(r){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
haP=function(r,f,I){if(f&&(I==null||!I.alwaysRespectPodcastShowAspectRatio||r!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(r){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}};
bm$=function(r){switch(r){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"}};
dZd=function(r,f,I){a:switch(r.badgeStyle){case "BADGE_OVERLAY":var C=!0;break a;default:C=!1}return{type:f?16:pXR(r.badgeStyle),brNzRatingBadgeType:nvq(r.badgeStyle),text:r.badgeText,icon:r.iconName,isOverlay:C,modern:I||_.N("web_modern_badge_view_model")}};
pXR=function(r){switch(r){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
nvq=function(r){switch(r){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}};
MxK=function(r){var f=r.data?dZd(r.data,!!r.workaroundShortsIsThumbnailBadge,r.modern):void 0;return _.p("yt-badge-view-model",{class:_.D5("yt-badge-view-model-wiz",r.class)},sD(f==null?void 0:f.brNzRatingBadgeType,function(){return _.p(zam,{data:f})}),sD(f&&!f.brNzRatingBadgeType,function(){return _.p(_.Av,{data:f})}))};
_.ZK=function(r){if(r){var f;return((f=_.a().resolve(_.ZY(_.cI)))==null?0:f())?r.darkThemeImage:r.image}};
XX$=function(r,f,I,C,Y,V){if(!I)return Y&&V&&f==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?"width: "+Y+"px; height: "+V+"px;":"";Y=I.size;I=I.allowFullWidth;if(f==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&I)return"width: 100%;";if(Y===void 0)return"";switch(r){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return"width: "+Y+"px; height: "+Y+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return"width: "+Y+"px; height: "+1/gvP*
Y+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return"width: "+Y*aOd+"px; height: "+Y+"px;";default:return(C==null?0:C.height)&&(C==null?0:C.width)?C.width/C.height>1?"max-width: "+Y*aOd+"px;":"max-width: "+Y+"px;":"max-width: "+Y+"px;"}};
NoR=function(r){var f;return r&&((f=_.ZK(r.themedImage))!=null?f:r.image)};
$Zl=function(r){var f;return r==null?void 0:(f=r.sources)==null?void 0:f[0]};
P5U=function(r,f){var I,C;return!!((r==null?0:(I=r.byline)==null?0:I.hideAvatar)&&((C=_.F(f,Fs$))==null?void 0:C.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
txE=function(r,f){var I,C;return!!((r==null?0:(I=r.byline)==null?0:I.addPadding)&&((C=_.F(f,Fs$))==null?void 0:C.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
Tom=function(r,f,I,C){var Y={},V=(Y["yt-content-metadata-view-model-wiz__delimiter"]=!0,Y["yt-content-metadata-view-model-wiz__delimiter--standalone"]=C,Y);return sD(f-1>I,function(){return _.p("span",{class:_.D5(V),"aria-hidden":!0},r)})};
WsK=function(r,f){return _.p(_.wW,{text:r.text,linkInheritColor:!0,className:c$w(f),userInput:!0})};
mZB=function(r){var f=r.metadataPart;var I=r.isOverlay;var C=r.useMediumText;var Y=r.hideAvatar;var V=1;f.maxLines!==void 0&&(V=f.maxLines);return _.p(_.B9,null,sD(f.avatarStack,function(){return Ls$(f.avatarStack,{avatarStackViewModel:{isOverlay:I,useMediumText:C,hideAvatar:Y}})}),sD(f.text,function(){var S=V;
return _.p(_.B9,null,f.tooltip?_.p("span",{title:f.tooltip,role:"tooltip"},WsK(f,S)):WsK(f,S))}))};
c$w=function(r){switch(r){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"}};
eaK=function(r){var f=r.metadataRow;var I=r.isInline;var C=r.delimiter;var Y=r.isOverlay;var V=r.useMediumText;var S=r.extensions;var h=P5U(S==null?void 0:S.lockupMetadata,f);r=txE(S==null?void 0:S.lockupMetadata,f);S=!!((S==null?0:S.lockupMetadata)&&f.badges);var w={};r=(w["yt-content-metadata-view-model-wiz__metadata-row"]=!0,w["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=I,w["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=r,w["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
S,w);var n,d;return _.p("div",{class:_.D5(r)},(n=f.badges)==null?void 0:n.map(function(z){return _.p("div",{class:"yt-content-metadata-view-model-wiz__badge"},Ls$(z))}),(d=f.metadataParts)==null?void 0:d.map(function(z,g){return _.p(_.B9,null,mZB({metadataPart:z,
isOverlay:Y,useMediumText:V,hideAvatar:h}),Tom(C,f.metadataParts.length,g,!1))}),sD(f.isSpacerRow&&!I,function(){return _.p("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
J$K=function(r){var f=r.className;var I=r.data;var C=r.layout===void 0?0:r.layout;var Y=r.isOverlay===void 0?!1:r.isOverlay;var V=r.useMediumText;var S=r.extensions;r=_.yy();var h=C===0;C={};C=(C["yt-content-metadata-view-model-wiz"]=!0,C["yt-content-metadata-view-model-wiz--inline"]=h,C["yt-content-metadata-view-model-wiz--tappable"]=_.RK(I.rendererContext),C["yt-content-metadata-view-model-wiz--medium-text"]=V,C);_.vo(r,I.rendererContext);return _.p("yt-content-metadata-view-model",{class:_.D5(f,
C),el:r},sD(I.metadataRows,function(){return I.metadataRows.map(function(w,n){return _.p(_.B9,null,eaK({metadataRow:w,isInline:h,delimiter:I.delimiter,isOverlay:Y,useMediumText:V,extensions:S}),sD(h&&!w.isSpacerRow,function(){return Tom(I.delimiter,I.metadataRows.length,n,!0)}))})}))};
jWK=function(r){switch(r){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"}};
HmK=function(r){if(r==null?0:r.isOverlay)return"yt-lockup-metadata-view-model-wiz--overlay";switch(r==null?void 0:r.arrangement){case 1:return"yt-lockup-metadata-view-model-wiz--horizontal";default:return"yt-lockup-metadata-view-model-wiz--vertical"}};
imR=function(r){if(r==null?0:r.isTiny)return"yt-lockup-metadata-view-model-wiz--tiny";switch(r==null?void 0:r.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":return"yt-lockup-metadata-view-model-wiz--compact";default:return"yt-lockup-metadata-view-model-wiz--standard"}};
vvm=function(r){var f,I,C,Y,V,S,h={},w=_.D5(HmK(r.lockupStyle),imR(r.lockupStyle),(h["yt-lockup-metadata-view-model-wiz"]=!0,h["yt-lockup-metadata-view-model-wiz--overlay"]=(f=r.lockupStyle)==null?void 0:f.isOverlay,h["yt-lockup-metadata-view-model-wiz--card"]=(I=r.lockupStyle)==null?void 0:I.isCard,h["yt-lockup-metadata-view-model-wiz--centered"]=(C=r.lockupStyle)==null?void 0:C.isCentered,h["yt-lockup-metadata-view-model-wiz--typography-bump"]=(Y=r.lockupStyle)==null?void 0:Y.typographyBump,h["yt-lockup-metadata-view-model-wiz--legacy-typography"]=
(V=r.lockupStyle)==null?void 0:V.useLegacyTypography,h["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=(S=r.lockupStyle)==null?void 0:S.useRichGridLegacyTypography,h)),n,d,z,g,X,P;return _.p("yt-lockup-metadata-view-model",{class:w},sD(r.data.image,function(){return _.p("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},RaK(r.data.image,{avatarStackViewModel:{overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}}))}),_.p("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},
_.p("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:(n=r.data.title)==null?void 0:n.content},sD(r.data.title,function(){return _.p(_.h8,{command:r.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:r.lockupAccessibilityLabel},_.p(_.wW,{text:r.data.title}))})),_.p("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},RaK(r.data.metadata,{contentMetadataViewModel:{layout:1,
useMediumText:((d=r.lockupStyle)==null?void 0:d.typographyBump)||((z=r.lockupStyle)==null?void 0:z.useRichGridLegacyTypography),extensions:{lockupMetadata:{byline:{hideAvatar:((g=r.lockupStyle)==null?void 0:g.arrangement)===0,addPadding:((X=r.lockupStyle)==null?void 0:X.arrangement)===1}}}}})),sD(r.data.attribution,function(){return _.p("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},RaK(r.data.attribution,{attributionViewModel:{useSmallLayout:!0}}))})),_.p("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},
RaK(r.data.menuButton,((P=r.lockupStyle)==null?0:P.isOverlay)?{buttonViewModel:{buttonOverrides:{style:"overlay"}}}:void 0)))};
KsB=function(r){switch(r.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"}}};
y$E=function(r){var f=_.Tcm(_.Lx().getState())||"";return r?r+f:""};
UZR=function(r){switch(r){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
Omq=function(r){var f=_.E(_.ld(void 0,void 0,"BIquNb")),I=f.next().value,C=f.next().value,Y=_.E(_.ld(void 0,void 0,"eR0GH"));f=Y.next().value;var V=Y.next().value,S=_.E(_.ld(void 0,void 0,"UmkP0"));Y=S.next().value;var h=S.next().value;S=_.IC(function(d){if(sWB(_.Ho(d)))return!1;C(d);V(void 0);h(void 0);return!0});
var w=_.IC(function(d){r==null||r(d);if(sWB(_.Ho(d)))return!1;V(d);C(void 0);h(void 0);return!0}),n=_.IC(function(d){sWB(_.Ho(d))||(h(d),V(void 0),C(void 0))});
return{touchFeedbackEvents:{pointerUpEvent:I,pointerDownEvent:f,pointerLeaveEvent:Y},touchFeedbackOnPointerUp:S,touchFeedbackOnPointerDown:w,touchFeedbackOnPointerLeave:n}};
sWB=function(r){var f=["BUTTON".toString()];r=_.E(r);for(var I=r.next();!I.done;I=r.next()){I=I.value;for(var C=_.E(f),Y=C.next();!Y.done;Y=C.next())if(I.tagName===Y.value)return!0}return!1};
ovw=function(r){switch(r){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"}};
QWl=function(r){var f;return Vtc(r,((f=r.content)==null?void 0:f.length)||0,!0)};
A$c=function(r){var f=QWl(r),I,C;return(((I=r.content)==null?void 0:I.length)||0)>(((C=f.content)==null?void 0:C.length)||0)};
Zm$=function(r){var f=r.isTruncated;var I=r.isAbsoluteButton;var C=r.lineHeight;var Y=r.contentRef.value,V=r.placeholderTruncationTextRef.value,S=r.truncationTextRef.value;r=r.appDirection==="rtl";if(Y&&V){var h=V.offsetLeft;r&&(h=Y.offsetWidth-V.offsetWidth-V.offsetLeft);if(f){f=V.offsetWidth;V=Y.offsetWidth;var w=I?V-f-70:h-70;C="linear-gradient(\n      to top, transparent 0%,\n      transparent "+C+"px,\n      #000 "+C+"px,\n      #000 100%), linear-gradient(\n      to "+((r?"left":"right")+",\n      #000 0px,\n      #000 "+
w+"px,\n      transparent "+(I?V-f:w+70)+"px)");Y.style.setProperty("-webkit-mask-image",C);Y.style.setProperty("mask-image",C)}else Y.style.setProperty("-webkit-mask-image",""),Y.style.setProperty("mask-image","");I?r?(S.style.setProperty("left","0"),S.style.setProperty("right","unset")):(S.style.setProperty("left",""),S.style.setProperty("right","0")):r?(S.style.setProperty("left","unset"),S.style.setProperty("right",h+"px")):(S.style.setProperty("left",h+"px"),S.style.setProperty("right","unset"))}};
GaK=function(r,f,I,C,Y){var V=_.yy(),S=_.yy(),h=_.yy(),w=QWl(r),n=_.a().resolve(_.Lv),d=_.E(IK(A$c(r))),z=d.next().value,g=d.next().value,X=tn(null);NC(function(){function P(){if(V.value&&S.value&&h.value){var v=V.value;v.scrollHeight-v.offsetHeight>1?(g(!0),C||Zm$({isTruncated:!0,isAbsoluteButton:!0,lineHeight:I,contentRef:V,placeholderTruncationTextRef:S,truncationTextRef:h,appDirection:n})):(v=A$c(r),g(v),C||Zm$({isTruncated:v,isAbsoluteButton:!1,lineHeight:I,contentRef:V,placeholderTruncationTextRef:S,
truncationTextRef:h,appDirection:n}))}}
var W,m;(W=X.value)==null||(m=W.stop)==null||m.call(W);W=new _.Gk(P,17);P();X.value=W},[r.content,
f,I,n,C,Y]);_.$E(function(){var P=function(){var m,v;(m=X.value)==null||(v=m.fire)==null||v.call(m)};
if(window.ResizeObserver){var W=new ResizeObserver(P);W.observe(V.value);return function(){var m,v;(m=X.value)==null||(v=m.stop)==null||v.call(m);W.disconnect()}}window.addEventListener("resize",P);
return function(){var m,v;(m=X.value)==null||(v=m.stop)==null||v.call(m);window.removeEventListener("resize",P)}});
return{isTruncated:z,displayText:w,contentRef:V,placeholderTruncationTextRef:S,truncationTextRef:h}};
kam=function(r){return _.p("button",{"aria-disabled":!0,disabled:!0,class:r.className,el:r.elRef,style:"line-height: "+r.lineHeight+"px;"},_.p(_.wW,{text:r.text}))};
Bow=function(r){var f=r.text;var I=r.alwaysShowTruncationText;var C=r.truncationText;var Y=r.onExpandClick;var V=r.lineHeight===void 0?16:r.lineHeight;var S=r.maxLines===void 0?2:r.maxLines;var h=r.disableTextMask===void 0?!1:r.disableTextMask;var w=r.isOverlay===void 0?!1:r.isOverlay;var n=r.accessibilityLabel===void 0?"":r.accessibilityLabel;var d=r.useMediumText===void 0?!1:r.useMediumText;r=_.IC(function(){return void(Y==null?void 0:Y())});
var z=GaK(f,S,V,h,d),g=z.isTruncated;f=z.displayText;var X=z.contentRef,P=z.placeholderTruncationTextRef;z=z.truncationTextRef;var W={};I=_.D5((W["truncated-text-wiz__absolute-button"]=!h,W["truncated-text-wiz__bottom-button"]=h,W["truncated-text-wiz--hidden"]=!(I||g),W));h={};w=_.D5((h["truncated-text-wiz"]=!0,h["truncated-text-wiz--overlay"]=w,h["truncated-text-wiz--medium-text"]=d,h));return _.p("truncated-text",{class:w,"on:click":r,style:"line-height: "+V+"px;"},_.p("truncated-text-content",
{class:"truncated-text-wiz__truncated-text-content",el:X,style:"max-height: "+S*V+"px;"},_.p(_.wW,{text:f}),_.p(kam,{text:C,lineHeight:V,elRef:P,className:"truncated-text-wiz__inline-button"})),_.p("button",{"aria-label":n,class:I,el:z,style:"line-height: "+V+"px;"},_.p(_.wW,{text:C})))};
qhK=function(r){return{content:r!=null?r:""}};
r0q=function(r){var f=r.data;var I;r={class:r.className};a:switch(f.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var C="yt-video-attribute-view-model--vertical";break a;default:C="yt-video-attribute-view-model--horizontal"}a:switch(f.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var Y="yt-video-attribute-view-model--image-small";break a;default:Y="yt-video-attribute-view-model--image-large"}a:switch(f.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var V="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":V="yt-video-attribute-view-model--image-avatar";break a;default:V=""}a:switch(f.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var S="yt-video-attribute-view-model--metadata-header";break a;default:S=""}a:switch(f.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var h="yt-video-attribute-view-model--container-card";break a;default:h=""}var w=_.aB(f.onTap)||_.i6(f.rendererContext)?"yt-video-attribute-view-model--clickable":"";
C=["yt-video-attribute-view-model",C,Y,V,S,h,w].join(" ");if(f.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var n="";else Y=f.lightColorPalette,V=f.darkColorPalette,S=((n=_.a().resolve(_.ZY(_.cI)))==null?0:n())&&V?V:Y,n=(n=S==null?void 0:S.section2Color)?_.g_(n):"";return _.p("yt-video-attribute-view-model",r,_.p("div",{class:C,style:_.lB({"background-color":n})},_.p(XnR,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(I=_.aB(f.onTap))!=
null?I:_.i6(f.rendererContext),role:"group",ariaLabel:f.title,forceNewState:!0},f.heroText||f.image?_.p(uaK,{data:f}):null,_.p(DZR,{data:f,sizeSmall:f.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
fZB=function(r){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:r.overflowMenuA11yLabel,onTap:function(f){f.preventDefault();f.stopPropagation();if(r.overflowMenuOnTap){var I=_.Nd({elementsCommand:r.overflowMenuOnTap,forceNewState:!0});if(I==null?0:I.onclick)I.onclick(f)}}}};
uaK=function(r){r=r.data;var f,I=((f=_.a().resolve(_.ZY(_.cI)))==null?0:f())&&r.darkThemeImage?r.darkThemeImage:r.image;f=fZB(r);return _.p("div",{class:"yt-video-attribute-view-model__hero-section"},I?_.p(_.J3,{data:I,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):r.heroText?_.p("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.p("span",{class:"yt-video-attribute-view-model__hero-text"},r.heroText)):null,r.overflowMenuOnTap?
_.p("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.p(k4,{data:f,iconName:"MORE_VERT"})):null)};
DZR=function(r){var f=r.data;r=r.sizeSmall;var I=f.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",C=_.aB(f.onTap)||_.i6(f.rendererContext);C=_.Nd({innertubeCommand:C});C=$Y(C);var Y={};r={class:_.D5("yt-video-attribute-view-model__metadata",(Y["yt-video-attribute-view-model--small-font"]=r,Y)),role:C?"link":"group"};C=_.p("h1",{class:"yt-video-attribute-view-model__title"},f.title);I=f.subtitle?_.p("h4",{class:"yt-video-attribute-view-model__subtitle"},I?_.p(Bow,{text:qhK(f.subtitle),truncationText:qhK(f.subtitleTruncationText),
maxLines:2}):_.p("span",null,f.subtitle)):null;if(f.secondarySubtitle){Y=f.secondarySubtitle;if(Y!=null&&Y.attachmentRuns){for(var V=[],S=_.E(Y.attachmentRuns),h=S.next();!h.done;h=S.next())h=h.value,h.element&&V.push(Object.assign({},h,{element:Object.assign({},h.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));Y=Object.assign({},Y,{attachmentRuns:V})}Y=_.p("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.p(_.wW,{text:Y}))}else Y=null;return _.p("div",r,C,I,Y,f.buttonViewModel?IZB(f.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
Y9K=function(r){var f={};f=_.D5("video-summary-content-view-model-wiz",r.className,(f["video-summary-content-view-model-wiz--is-search"]=!!r.isSearch,f));var I=_.F(r.data.likeButtonViewModel,tv),C=_.F(r.data.dislikeButtonViewModel,Tk),Y=Fl(function(){var V=[],S,h=(S=r.data)==null?void 0:S.paragraphs;if(h==null||!h.length)return[];for(S=0;S<h.length;S++){var w=_.F(h[S],C$P),n=void 0;S>0&&(n=_.F(h[S-1],C$P));n&&!!n.marker===!!w.marker?V[V.length-1].paragraphs.push(w):V.push({isList:!!w.marker,paragraphs:[w]})}return V},
[r.data]);
return _.p("video-summary-content-view-model",{class:f},Y.map(function(V){return V.isList?_.p("ul",{class:"video-summary-content-view-model-wiz__list"},V.paragraphs.map(function(S){return _.p("li",{class:"video-summary-content-view-model-wiz__list-item"},_.p(_.wW,{text:S.text}))})):V.paragraphs.map(function(S){return _.p("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.p(_.wW,{text:S.text}))})}),sD(!!I&&!!C,function(){return _.p("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},
_.p("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.p(BgR,{data:I,
disableIconAnimation:!0})),_.p(qyE,{data:C}))}))};
_.Bo=function(r,f,I,C,Y){C=C===void 0?{}:C;if(!Y||Math.random()<5E-4){f=f||null;I=I||null;r=r instanceof Error?r:new _.nf(r);if(r.args)for(var V=_.E(r.args),S=V.next();!S.done;S=V.next())S=S.value,S instanceof Object&&(C=Object.assign({},S,C));C.category="H5 Ads Control Flow";f&&(C.slot=f?"slot:  "+f.slotType:"");I&&(C.layout=I?"layout:  "+I.layoutType:"",C.layoutId=I.layoutId);Y&&(C.known_error_aggressively_sampled=!0);r.args=[C];_.t7(r)}};
_.lZm=function(r,f){_.Bj(r,"yt-open-popup-action",[_.Ur(f),r])};
EDE=function(r){if(!r)return"";if(VV$[r])return VV$[r];qI||(qI=_.wL("A"));qI.href!==r&&t6(qI,r);var f=qI.pathname;VV$[r]=f.startsWith("/")?f:"/"+f;return VV$[r]};
S9B=function(){var r=EDE(window.location.href);if(r==="/")return"home";if(r.startsWith("/results"))return"search";if(r.startsWith("/watch"))return"watch";if(r.startsWith("/shorts"))return"shorts";if(r.startsWith("/hashtag"))return"hashtag";if(r.startsWith("/create_channel"))return"create_channel";if(r.startsWith("/@")||r.startsWith("/user/")||r.startsWith("/channel/"))return"channel";if(r.startsWith("/experiments"))return"experiments";if(r.startsWith("/sponsor_channel"))return"sponsorship";if(r.startsWith("/select_site"))return"settings";
if(r.startsWith("/locate"))return"locate";if(r.startsWith("/redeem"))return"redeem";if(r.startsWith("/musicpremium")||r.startsWith("/premium")||r.startsWith("/red"))return"premium";if(r.startsWith("/paid_memberships"))return"paid_memberships";if(r.startsWith("/oops"))return"oops";if(r.startsWith("/clip"))return"clip";var f;return(u6==null?void 0:(f=u6.response)==null?void 0:f.page)==="404"?"404":r.startsWith("/feed/history")?"history":r.startsWith("/feed/library")?"library":r.startsWith("/feed/subscriptions")?
"subscriptions":r.startsWith("/feed/trending")?"trending":r.startsWith("/feed/news_destination")?"news":r.startsWith("/playlist")?"playlist":r.startsWith("/minor_moment")?"minor_moment":r.startsWith("/playable/")||r.match("^/playables/(?!saved).")?"mini_app":r.startsWith("/playables")?"playables":r.startsWith("/create/live/join")?"open_in_app":r.startsWith("/feed/explore")?"explore":"browse"};
_.bZP=function(){var r=u6==null?void 0:u6.response,f=r==null?void 0:r.endpoint;if(!f)return(r==null?void 0:r.page)==="watch"?"watch":S9B();var I;r=(I=_.F(f==null?void 0:f.commandMetadata,_.oo))==null?void 0:I.webPageType;I=!1;if(r&&!xwq.includes(r))switch(r){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 C;return((C=_.F(f==null?void 0:f.commandMetadata,_.oo))==null?0:C.url)&&EDE(_.F(f.commandMetadata,_.oo).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var Y;return(f=(Y=_.F(f,_.lA))==null?void 0:Y.browseId)?hYu[f]||"browse":"browse";default:I=!0}if(_.F(f,_.DK)||_.F(f,weK))return"sponsorship";Y=EDE(window.location.href);if(Y.startsWith("/experiments"))return"experiments";if(Y.startsWith("/create_channel"))return"create_channel";
if(_.F(f,_.HR)&&Y.startsWith("/shorts"))return"shorts";if(_.F(f,_.HR)&&Y.startsWith("/watch"))return"watch";I&&(f=new _.nf("Unsupported mWeb page type",{pathname:Y,webPageType:r}),_.Fo(f));return"browse"};
aZU=function(r){var f=r.data;var I=r.inlineMetadata;var C=r.aspectRatio;var Y=r.scrimStyle;var V=r.useDefaultStyle;var S=r.className;var h=tn(new peK);r=_.N("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";r=V?r==="SHORTS_LOCKUP_STYLE_SLIM":f.style==="SHORTS_LOCKUP_STYLE_SLIM";I=I||r||!1;Y=Y!==void 0?Y:1;var w=_.yy(function(m){h.value&&(h.value.hostElement=m,W())});
_.ZW(w,{visibilityCallback:function(m){m&&f.onFirstVisible&&_.F2(f.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});S=_.D5("shortsLockupViewModelHost",S);var n=_.Nd({elementsCommand:f.onTap}),d=_.yy();_.aIu(d,_.aB(f.onTap));var z=_.IC(function(m){if(n==null?0:n.onclick)n.onclick(m);return!1}),g=_.yy(),X=[];
X.push("shortsLockupViewModelHostThumbnailContainer");C===1?X.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):C===2&&X.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");r||X.push("shortsLockupViewModelHostThumbnailContainerRounded");_.N("web_shorts_2_by_3_lockups_study")||_.N("desktop_search_enable_two_by_three_shorts_aspect_ratio")||X.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var P,W=function(){if(h.value){var m;(m=P)==null||
rY(m);m=h.value;var v;m.hostElement&&((v=m.data)==null?0:v.inlinePlayerData)&&(P=O0({mediaRenderer:m,lockupElement:m.hostElement,thumbnailElement:g.value,videoPreviewOpts:nDE}))}};
NC(function(){h.value&&(h.value.data=f,W())},[f]);
return _.p("ytm-shorts-lockup-view-model",{el:w,class:S},_.p("a",{el:d,"on:click":z,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint ","aria-hidden":!I,tabindex:I?0:-1},_.p("div",{el:g,class:X.join(" ")},sD(f.thumbnail,function(){return _.p(_.B9,null,_.p(_.J3,{data:f.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),I?_.p(dww,{data:f,
scrimStyle:Y,useDefaultStyle:V}):null,zYm(f.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),I&&f.menuOnTap?_.p(MV$,{data:f,inlineMetadata:I}):null,I?null:_.p(gDU,{useDefaultStyle:V,data:f}))};
dww=function(r){var f=r.data;var I=r.scrimStyle;var C=r.useDefaultStyle;var Y=_.N("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";r=C&&_.N("web_hide_primary_text_for_pivot_panel");var V={};C=_.D5("shortsLockupViewModelHostInlineMetadata",(V.shortsLockupViewModelHostMetadataRounded=!(C?Y==="SHORTS_LOCKUP_STYLE_SLIM":f.style==="SHORTS_LOCKUP_STYLE_SLIM"),V.shortsLockupViewModelHostInlineMetadataShortScrim=I===3&&!_.N("enable_shorts_lockup_new_scrim"),
V.shortsLockupViewModelHostInlineMetadataShortScrimNew=I===3&&_.N("enable_shorts_lockup_new_scrim"),V.shortsLockupViewModelHostInlineMetadataMediumScrim=I===2||I===4,V.shortsLockupViewModelHostShowOverPlayer=!0,V));var S,h;Y={};return _.p("div",{class:C+" image-overlay-text"},_.p("h3",{class:_.qd("shortsLockupViewModelHostMetadataTitle",(Y.shortsLockupViewModelHostMetadataTitleTextShadow=I===4,Y)),"aria-label":f.accessibilityText},sD(((S=f.overlayMetadata)==null?void 0:S.primaryText)&&!r,function(){return _.p(_.wW,
{text:f.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((h=f.overlayMetadata)==null?0:h.secondaryText)?_.p(XeE,{data:f,
scrimStyle:I}):null)};
gDU=function(r){var f=r.data;var I=_.N("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";r=(r.useDefaultStyle?I==="SHORTS_LOCKUP_STYLE_SLIM":f.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var C=_.Nd({elementsCommand:f.onTap});I=_.yy();_.aIu(I,_.aB(f.onTap));var Y=_.IC(function(z){if(C==null?0:C.onclick)C.onclick(z);return!1}),V,S,
h,w,n,d={};
return _.p("div",{class:r+" image-overlay-text","on:click":Y},_.p("h3",{class:_.qd("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(d.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((V=f.overlayMetadata)==null?0:(S=V.primaryText)==null?0:S.content),d)),"aria-label":f.accessibilityText},_.p("a",{el:I,"on:click":Y,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(h=f.overlayMetadata)==null?void 0:(w=h.primaryText)==
null?void 0:w.content},sD(f.overlayMetadata,function(){return _.p(_.wW,{text:f.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((n=f.overlayMetadata)==null?0:n.secondaryText)?_.p(XeE,{data:f,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,f.menuOnTap?_.p(MV$,{data:f,inlineMetadata:!1}):null)};
XeE=function(r){var f=r.data;var I=r.scrimStyle;r=r.className;var C,Y={};return _.p("div",{class:_.qd((Y.shortsLockupViewModelHostMetadataSubhead=I!==4,Y.shortsLockupViewModelHostMetadataSubheadNew=_.N("enable_shorts_lockup_new_scrim"),Y.shortsLockupViewModelHostMetadataSubheadTextShadow=I===4,Y),r),"aria-hidden":"true"},_.p(_.wW,{text:(C=f.overlayMetadata)==null?void 0:C.secondaryText,noStyleRuns:!0}))};
MV$=function(r){var f={};f=_.D5((f.shortsLockupViewModelHostInlineMetadataMenu=r.inlineMetadata,f.shortsLockupViewModelHostOutsideMetadataMenu=!r.inlineMetadata,f.shortsLockupViewModelHostShowOverPlayer=!0,f));return _.p("div",{class:f},_.p(k4,{data:{style:r.inlineMetadata?"overlay":"mono",accessibilityLabel:r.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(I){I.preventDefault();I.stopPropagation();var C=_.Nd({elementsCommand:r.data.menuOnTap,forceNewState:!0});
if(C==null?0:C.onclick)C.onclick(I)}},
iconName:"MORE_VERT"}))};
fH=function(r,f,I,C){return r&&f?r!==I||f!==C?(_.Bo(Error("Gh"),void 0,void 0,{"stored-slot":r,"stored-layout":f,"latest-slot":I,"latest-layout":C}),!1):!0:!1};
NHR=function(r,f,I){return r({targetId:f},function(C){return I.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},C,{header:I.continuationItems?I.continuationItems[0]:void 0}):Object.assign({},C,{contents:I.continuationItems?I.continuationItems:[]})})};
$wE=function(r,f,I,C){if(f=f.trackingParams){var Y,V=(Y=I.getScreenLayer)==null?void 0:Y.call(I);I=_.t1(V);Y=_.Pj(V);if(I&&Y){var S=_.VH(f);_.N("combine_ve_grafts")?r.graftServerVe(f,Y,V):_.mw(I,Y,S);C==null||C(S)}}};
P$R=function(r){var f;return((f=F7c.get(r))==null?void 0:f.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
c0B=function(r,f){var I={type:f.slotType,controlFlowManagerLayer:tVl.get(f.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};f.slotEntryTrigger&&(I.entryTriggerType=f.slotEntryTrigger.triggerType);f.slotPhysicalPosition!==1&&(I.slotPhysicalPosition=f.slotPhysicalPosition);if(r){I.debugData={slotId:f.slotId};if(r=f.slotEntryTrigger)I.debugData.slotEntryTriggerData=THd(r);r=f.slotFulfillmentTriggers;I.debugData.fulfillmentTriggerData=[];r=_.E(r);for(var C=r.next();!C.done;C=r.next())I.debugData.fulfillmentTriggerData.push(THd(C.value));
f=f.slotExpirationTriggers;I.debugData.expirationTriggerData=[];f=_.E(f);for(r=f.next();!r.done;r=f.next())I.debugData.expirationTriggerData.push(THd(r.value))}return I};
THd=function(r,f){var I={type:r.triggerType};f!=null&&(I.category=f);r.triggeringSlotId!=null&&(I.triggerSourceData||(I.triggerSourceData={}),I.triggerSourceData.associatedSlotId=r.triggeringSlotId);r.triggeringLayoutId!=null&&(I.triggerSourceData||(I.triggerSourceData={}),I.triggerSourceData.associatedLayoutId=r.triggeringLayoutId);return I};
W7K=function(r,f,I,C){f={opportunityType:f};r&&(C||I)&&(C=_.$X(C||[],function(Y){return c0B(r,Y)}),f.debugData=Object.assign({},I&&I.length>0?{associatedSlotId:I}:{},C.length>0?{slots:C}:{}));
return f};
L7m=function(r){return IV(r.opportunityAdapterMap).concat(IV(r.triggerAdapterMap)).concat(IV(r.fulfillmentAdapterFactoryMap)).concat(IV(r.slotAdapterFactoryMap)).concat(IV(r.layoutRenderingAdapterFactoryMap))};
IV=function(r){var f=[];r=_.E(r.values());for(var I=r.next();!I.done;I=r.next())I=I.value,I.isAdsControlFlowEventListener&&f.push(I);return f};
YU=function(r){var f=r.slotId,I=r.slotType,C=r.slotPhysicalPosition;return f===void 0?new CH("Cannot construct a slot due to the missing id.",{adSlotMetadata:r}):I===void 0?new CH("Cannot construct a slot due to the missing type.",{adSlotMetadata:r}):C===void 0?new CH("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:r}):{slotId:f,slotType:I,slotPhysicalPosition:C,managerLayer:"external",adSlotLoggingData:r.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new mwR}};
eYc=function(r){var f=r.layoutId,I=r.layoutType;return f===void 0?new l1("Cannot construct a layout due to the missing id.",{adLayoutMetadata:r}):I===void 0?new l1("Cannot construct a layout due to the missing type.",{adLayoutMetadata:r}):{layoutId:f,layoutType:I,managerLayer:"external",adLayoutLoggingData:r.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new mwR,interactionLoggingAdsClientData:{}}};
J0R=function(r){if((r=r.value)&&r.querySelector("img")){var f=r.querySelector("img");f.addEventListener("error",function(){mHd(f.src).then(function(I){(I=_.aw(I).toString())?f.src=I:f.removeAttribute("src")}).catch(function(){f.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
E1=function(r,f){if(f&&(j7E(f.viewableCommand)||j7E(f.endOfSessionCommand))){r=r.value;var I=HZ$(f==null?void 0:f.viewableCommand);f=HZ$(f==null?void 0:f.endOfSessionCommand);if(!VU){var C=_.Bw("active_view_tos_timeout_ms");VU=C>0?new iZU(RYP(),C):new iZU(RYP())}vDd(VU,r);K7c(VU,r,I,f)}};
SB=function(r){VU&&vDd(VU,r.value)};
RYP=function(){var r=_.Lz("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(r==null?void 0:r.length)===2?r[1]:null};
j7E=function(r){r=_.aB(r);return!(r==null||!r.loggingUrls)&&r.loggingUrls.length>0};
HZ$=function(r){if(!r)return[];var f=[],I,C;((C=(I=_.aB(r))==null?void 0:I.loggingUrls)!=null?C:[]).forEach(function(Y){Y.baseUrl&&f.push(Y.baseUrl)});
return f};
y0$=function(r){return r.shorts.isDesktopSmallWidth};
_.UwB=function(r){return r.shorts.isWatchWhileMode};
_.xU=function(r){return r.shorts.isFullscreen};
_.hH=function(r){return r.shorts.isShortsPipActive};
OZE=function(r){var f,I;if(r=(f=_.F(r.reelsAdCardButtoned,s7R))==null?void 0:(I=f.animatedRenderingConfig)==null?void 0:I.easeOutSeconds)return r+"s"};
Q7q=function(r,f,I){return _.x(function(C){return C.return(new Promise(function(Y){var V=new Image;V.onload=function(){Y(new oDB(r,f,I,V.naturalWidth,V.naturalHeight))};
V.src=I.toString()}))})};
A0E=function(r,f){return Math.round(r/1E-5)===Math.round(f/1E-5)};
ZZR=function(r,f){return Math.round(r/1E-5)===Math.round(f/1E-5)};
Gjd=function(r,f){return r.year===f.year&&r.month===f.month&&r.day===f.day};
kjl=function(r,f){return r.year!==f.year?r.year<f.year:r.month!==f.month?r.month<f.month:r.day<f.day};
q9d=function(r){return r.day===BH$(r.year,r.month)?r.month===11?{year:r.year+1,month:0,day:1}:{year:r.year,month:r.month+1,day:1}:{year:r.year,month:r.month,day:r.day+1}};
upq=function(){var r=new Date,f={year:r.getFullYear(),month:r.getMonth(),day:r.getDate()};return{start:f,end:{year:r.getFullYear()+2,month:r.getMonth(),day:r.getDate()},selectedDate:q9d(f)}};
DwK=function(r){return(new JQ(2)).format(new Date(r.year,r.month,r.day))};
ruc=function(r){return{year:r.getFullYear(),month:r.getMonth(),day:r.getDate()}};
fDP=function(r,f){r=(r+(Number(f.utcOffsetSec)+(new Date(r*1E3)).getTimezoneOffset()*60))*1E3;f=ruc(new Date(r));return{date:f,secondsSinceMidnight:Math.floor((r-(new Date(f.year,f.month,f.day)).getTime())/1E3)}};
ID$=function(r,f){f=f.months.findIndex(function(I){return I.year===r.year&&I.month===r.month});
return f>=0?f:void 0};
Com=function(r){if(!r)return!1;try{if(r.host&&r.host.tagName==="YT-FORMATTED-STRING"&&r.host.id==="contenteditable-textarea"||r.nodeType===Node.ELEMENT_NODE&&r.tagName==="YTD-COMMENTBOX")return!0}catch(f){return!1}return Com(r.parentNode)};
wY=function(r){return r?!(r.tagName!=="A"||!r.href||!r.classList.contains("yt-simple-endpoint")):!1};
YVK=function(r){return r?r.tagName==="IMG"&&r.classList.contains("emoji"):!1};
lDU=function(r,f,I){if(!r)return null;var C=wY(r);if(C&&I)return f=r.pathname.substring(r.pathname.indexOf("/channel/")+9),document.createTextNode("@"+f);if(C&&!I)return document.createTextNode("");if(YVK(r))return I=r.alt,r=r.dataset.emojiId,!r&&f&&(f=_.b1(f,I))&&f.isCustomEmoji&&(r=f.emojiId),r?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+r+">"):document.createTextNode(I);C=r.cloneNode(!1);for(var Y=0;Y<r.childNodes.length;++Y){var V=lDU(r.childNodes[Y],f,I);V&&C.appendChild(V)}return C};
pH=function(r){return r?wY(r)?r:pH(r.lastChild):null};
VzK=function(r){return r?wY(r)?r:VzK(r.firstChild):null};
ESE=function(r){if(!r)return null;for(var f=r.previousSibling;f;)if(f.nodeType===Node.ELEMENT_NODE&&f.nodeName==="BR")f=f.previousSibling;else if(f.nodeType===Node.TEXT_NODE&&/\s+/.test(f.textContent))f=f.previousSibling;else break;(f=pH(f))?r=f:r=(r=r.parentNode)?pH(r.previousElementSibling):null;return r};
SVd=function(r){if(!r)return null;for(var f=r.nextSibling;f;)if(f.nodeType===Node.ELEMENT_NODE&&f.nodeName==="BR")f=f.nextSibling;else if(f.nodeType===Node.TEXT_NODE&&/\s+/.test(f.textContent))f=f.nextSibling;else break;return(f=VzK(f))?f:SVd(r.parentNode)};
xtl=function(r){var f=_.nH(),I=f.JSC$9151_getStartNode();if(!Com(I.parentNode))return null;f=f.JSC$9151_getStartOffset();if(I.nodeType===Node.TEXT_NODE){var C=_.mI(I,wY);if(C){if(r&&f===0||!r&&f===I.length)return C}else{if(r&&f===I.length)return!I||I.nodeName==="BR"||I.nextElementSibling&&_.dY(I.nextElementSibling,"display")==="block"?null:VzK(I.nextElementSibling);if(!r&&f===0)return I?pH(I.previousElementSibling):null}}if(I.nodeType===Node.ELEMENT_NODE)if(r){if(0<=f&&f<I.childNodes.length)return VzK(I.childNodes[f])}else if(0<
f&&f<=I.childNodes.length)return pH(I.childNodes[f-1]);return null};
h7q=function(r,f,I){if(!r)return null;if(r.nodeType===Node.TEXT_NODE)if(I){var C=ESE(r);if(C&&!/^\s+\S/.test(r.wholeText.substr(0,f)))return C}else if((C=SVd(r))&&!/\S\s+/.test(r.wholeText.substr(f,r.wholeText.length)))return C;return r.nodeType===Node.ELEMENT_NODE?I?ESE(r.childNodes[f]):SVd(r.childNodes[f]):h7q(r.parentNode,f,I)};
wVu=function(r){if(r.hasChildNodes())switch(r.tagName){case "DIV":case "A":case "SPAN":var f="";for(r=r.firstChild;r;r=r.nextSibling)f+=wVu(r);return f;default:return""}else switch(r.nodeType){case 3:return r.textContent;default:return""}};
zN=function(r,f){return r.year===f.year&&r.month===f.month&&r.day===f.day};
Mp=function(r,f){return r.year!==f.year?r.year<f.year:r.month!==f.month?r.month<f.month:r.day<f.day};
bkm=function(r){return{year:r.getFullYear(),month:r.getMonth(),day:r.getDate()}};
pVl=function(r){var f=CH$;f=f===void 0?CH$:f;f(new Date(r.year,r.month,r.day))};
gY=function(r){return bkm(new Date(Number(r.seconds)*1E3))};
nSR=function(r){return r.year!==void 0&&r.month!==void 0&&r.day!==void 0};
dtd=function(r){return r.start!==void 0&&r.end!==void 0};
z7K=function(r){return dtd(r)?r.start:r};
Mzm=function(r){return dtd(r)?r.end:void 0};
aDK=function(r,f){for(var I=[],C=new Date(r.start.year,r.start.month);C.getFullYear()<r.end.year||C.getFullYear()===r.end.year&&C.getMonth()<=r.end.month;){var Y=I,V=Y.push,S=C.getFullYear(),h=C.getMonth(),w=r,n=f,d=void 0,z=[],g=Object.freeze({extraCssClass:"invisible"}),X=new Date(S,h),P=bkm(X);X=X.getDay();for(var W=bkm(new Date);P.month===h;){X!==gSP&&d||(d=Array.from({length:7}).fill(g),z.push(d));var m={date:{year:S,month:h,day:P.day},extraCssClass:"",debugClass:""};m.extraCssClass=n(m.date,
P,W,w).trim();d[(X-gSP+7)%7]=m;P=P.day===BH$(P.year,P.month)?P.month===11?{year:P.year+1,month:0,day:1}:{year:P.year,month:P.month+1,day:1}:{year:P.year,month:P.month,day:P.day+1};X=(X+1)%7}V.call(Y,{weeks:z,monthLabel:aV.SHORTMONTHS[h]+" "+S,year:S,month:h,monthLabelExtraCssClass:z[0][2]===g?"shift-down-label":""});C.setMonth(C.getMonth()+1)}return I};
XVd=function(r,f){f=f.months.findIndex(function(I){return I.year===r.year&&I.month===r.month});
return f>=0?f:void 0};
$tl=function(r,f){a:{var I=I===void 0?[2,3]:I;I=_.E(I);for(var C=I.next();!C.done;C=I.next()){var Y=new Date;if((new NSl(C.value)).parse(f,Y,{validate:!0})){Y.setHours(0,0,0,0);f=Y;break a}}f=null}if(!f)return{isValid:!1,value:void 0};f=bkm(f);I=r.end;return Mp(f,r.start)||Mp(I,f)?{isValid:!1,value:void 0}:{isValid:!0,value:f}};
cuU=function(r){var f=FDB;f=f===void 0?Po$:f;var I=r.columnsToShow||[],C=tzw(r.columnDimensions,r.columnsToShow,r.leftFloatingColumns,f);return I.map(function(Y,V){var S=r.columns[Y];if(S===void 0)throw Error("Mh");var h=C?C[V]:"";var w=r.getCustomTooltip?r.getCustomTooltip(Y,S.headerTooltipParagraphs):S.headerTooltipParagraphs;var n=TSP(r,Y);return{type:Y,index:V,style:h,classes:n,headerName:S.headerName||"",headerIcon:S.headerIcon,headerTooltipParagraphs:w||[],headerTooltipHelpContext:S.headerTooltipHelpContext,
sortOrders:S.sortOrders||[],selectionState:S.isSelectionCheckbox?r.selectionState:void 0}})};
TSP=function(r,f){var I=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],C=r.columns[f];if(C===void 0)return"";var Y=I.includes("DEFAULTS")&&C.cssClass?[C.cssClass]:[];if(I.includes("SORTING")){C.sortOrders&&C.sortOrders.length&&Y.push("sortable");if(r.sorting&&r.sorting.columnType===f)a:switch(r.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var V="column-sorted";break a;default:V=""}else V="";V&&Y.push(V)}I.includes("FLOATING")&&(f=r.columnsToShow.indexOf(f),r.leftFloatingColumns&&f<r.leftFloatingColumns&&
Y.push("floating-column"),r.leftFloatingColumns&&f===r.leftFloatingColumns-1&&Y.push("last-floating-column"));I.includes("RIGHT_ALIGN")&&C.rightAlignHeader&&Y.push("right-align");return Y.filter(function(S){return S}).join(" ")};
tzw=function(r,f,I,C){I=I===void 0?0:I;C=C===void 0?Po$:C;if(r){var Y=[],V=0;WDR(r,f,C).forEach(function(S,h){var w="min-width:"+S.minWidth+"px;padding-left:"+S.paddingLeft+"px;padding-right:"+S.paddingRight+"px;flex:"+S.flexGrow+" 0 "+S.minWidth+"px;";S.maxWidth!==Infinity&&(w=[w,"max-width:"+S.maxWidth+"px;"].join(""));V>0&&h<I&&(w=[w,"left:"+V+"px;"].join(""));Y.push(w);V+=S.minWidth+S.paddingLeft+S.paddingRight});
return Y}};
WDR=function(r,f,I){I=I===void 0?Po$:I;return f.map(function(C,Y){C=r&&r[C]||{};var V=Y===0?I.paddingLeftFirstColumn:I.padding;C.paddingLeft!==void 0&&(V=C.paddingLeft);Y=Y===f.length-1?I.paddingRightLastColumn:I.padding;C.paddingRight!==void 0&&(Y=C.paddingRight);return{paddingLeft:V,paddingRight:Y,minWidth:C.minWidth!==void 0?C.minWidth:I.minWidth,maxWidth:C.maxWidth!==void 0?C.maxWidth:I.maxWidth,flexGrow:C.flexGrow!==void 0?C.flexGrow:I.flexGrow}})};
LDu=function(r){var f=r.reduce(function(C,Y){var V=Y.columnId,S={};Y.headerText&&(S.headerName=_.Rr(Y.headerText));Y.rightAlignHeader&&(S.rightAlignHeader=Y.rightAlignHeader);var h;if((h=Y.headerIcon)==null?0:h.iconType)S.headerIcon=_.kN(Y.headerIcon.iconType);C[V]=S;return C},{}),I=r.filter(function(C){return!C.hideColumn}).map(function(C){return C.columnId});
r=r.filter(function(C){return!!C.dimensions}).reduce(function(C,Y){C[Y.columnId]=Y.dimensions;
return C},{});
return{columns:f,columnsToShow:I,columnDimensions:r}};
_.mtU=function(r){return r?r.simpleText?r.simpleText:r.runs?r.runs.map(function(f){return f.text}).join(""):"":""};
iku=function(r){var f=r.data;var I=r.onTap;var C=r.isSelected;var Y=r.onFocusIn;if(!f)return{};r=e7B(f);C===void 0&&(C=f==null?void 0:f.isSelected);var V;return{text:JuU(f,r),startIcon:(V=f.icon)==null?void 0:V.iconType,state:C?0:2,type:0,onTap:jLE(f,I),accessibilityLabel:HkR(f,r),onFocusIn:function(){return Y==null?void 0:Y()}}};
JuU=function(r,f){if(!f)return r.text?_.mtU(r.text):void 0};
jLE=function(r,f){return function(I){f==null||f(I,r)}};
e7B=function(r){r=r.style&&r.style.styleType;return!R7K&&r==="STYLE_EXPLORE_LAUNCHER_CHIP"};
HkR=function(r,f){if(f){var I,C,Y;return(Y=(I=r.accessibilityData)==null?void 0:(C=I.accessibilityData)==null?void 0:C.label)!=null?Y:JuU(r,!1)}};
Xn=function(r){return{signalAction:{signal:r}}};
yum=function(){return _.Lz("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?vSw:_.KDd};
Utl=function(r,f){r=r===void 0?"SOFT_RELOAD_PAGE":r;f=f===void 0?49504:f;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.AZ(_.VR("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:f}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:r}}]}}}};
sLB=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.AZ(_.VR("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:yum()}};
OkK=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.AZ(_.VR("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:yum()}};
oS$=function(r,f){var I=_.AZ(_.VR("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),C=_.AZ(_.VR("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),Y={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.AZ(_.VR("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};Y.serviceEndpoint=r?r:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Xn("SOFT_RELOAD_PAGE")]}};return{title:I,bodyText:C,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:Y},
style:{value:f!=null?f:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
AuK=function(r){r=r===void 0?{}:r;return{title:_.AZ(r.localizedZeroStateTitleText===void 0?"":r.localizedZeroStateTitleText),bodyText:_.AZ(r.localizedZeroStateMessage===void 0?"":r.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.AZ(r.localizedZeroStateButtonText===void 0?"":r.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[QLm]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.k2P=function(r,f,I,C,Y,V,S,h){C=C===void 0?!1:C;Y=Y===void 0?!1:Y;V=V===void 0?0:V;S=S===void 0?-Infinity:S;h=h===void 0?!1:h;var w=[],n=_.AZ(_.VR("SMART_DOWNLOADS",void 0,"Smart downloads"));S=_.AZ(ZkB(V,S,r.length));V=void 0;C?V=r.length>0?G2d(r,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.N("kevlar_manual_downloads_above"),n,S):h?{alertBannerViewModel:{heading:{content:I.localizedOptInBannerTitleText===void 0?"":I.localizedOptInBannerTitleText},body:{content:I.localizedPromptMessage===
void 0?"":I.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.VR("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.VR("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:_.a0P}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:{backgroundPromoRenderer:{bodyText:_.AZ(_.VR("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"}}}:Y&&(V={alertBannerViewModel:{heading:{content:I.localizedOptInBannerTitleText===void 0?"":I.localizedOptInBannerTitleText},body:{content:I.localizedOptInMessage===
void 0?"":I.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.VR("TURN_ON",void 0,"Turn on"),accessibilityText:_.VR("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}}}}}});I=_.AZ(_.VR("YOUR_DOWNLOADS",void 0,"Your downloads"));Y=void 0;f.length>0?(Y=void 0,_.N("kevlar_display_downloads_numbers")&&(Y=_.AZ(_.E_("VIDEO_COUNT",f.length))),Y=G2d(f,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,I,Y)):C||r.length||(Y={backgroundPromoRenderer:{bodyText:_.AZ(_.VR("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}}}});V&&!_.N("kevlar_manual_downloads_above")&&w.push({richSectionRenderer:{content:V,loggingDirectives:{clientVeSpec:{uiType:139572}}}});Y&&w.push({richSectionRenderer:{content:Y,loggingDirectives:{clientVeSpec:{uiType:51721}}}});V&&_.N("kevlar_manual_downloads_above")&&w.push({richSectionRenderer:{content:V,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(f.length>0||C&&r.length>0)&&w.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.AZ(_.VR("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}};
_.qVu=function(r){return BSd(r,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.uOq=function(r){return BSd(r,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
BSd=function(r,f){var I=[];r=G2d(r,f,!0);I.push({richSectionRenderer:{content:r}});return{contents:I}};
G2d=function(r,f,I,C,Y){I=I===void 0?!1:I;r={isExpanded:I,contents:Np(r),entitySelectorType:f};C&&(r.title=C);Y&&(r.subtitle=Y);I||(_.N("kevlar_smart_downloads_show_more_button")?(r.showMoreButton={buttonRenderer:{accessibility:{label:_.VR("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.AZ(_.VR("SHOW_MORE",void 0,"Show more"))}},r.showLessButton={buttonRenderer:{accessibility:{label:_.VR("SHOW_LESS",
void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.AZ(_.VR("SHOW_LESS",void 0,"Show less"))}}):(r.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.VR("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}}}},r.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",
accessibilityText:_.VR("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}}}},r.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.VR("VIEW_ALL",void 0,"View all"),accessibilityText:_.VR("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:ol("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:r}};
Np=function(r){var f=[];r=_.E(r);for(var I=r.next();!I.done;I=r.next())if(I=I.value,f0l(I)){var C=f,Y=C.push;var V=void 0;if(I==null?0:(V=I.videoEntity)==null?0:V.videoId){V=T3(_.K2().getState(),I.videoEntity.videoId);var S=_.K2().getState();var h=_.rG(I.videoEntity.videoId,"mainVideoEntity");S=!!_.dG(S.entities)[h];S={videoId:I.videoEntity.videoId,title:Zk(I.videoEntity.title),shortBylineText:Zk(I.channelEntity.title),thumbnail:I.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:S&&_.N("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:fiU(I.videoEntity.videoId,V,I.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.VR("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};I.videoEntity.lengthSeconds&&(S.thumbnailOverlays=$Aw(I.videoEntity.lengthSeconds,V));S.isWatched=V>0;_.N("kevlar_modern_downloads_page")&&(S.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:I.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.VR("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},S.badges=void 0);I=S}else I={};Y.call(C,{richItemRenderer:{content:{videoRenderer:I},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(rLP(I)){C=f;Y=C.push;var w=h=V=void 0,n=void 0,d=void 0,z=void 0,g=void 0,X=void 0,P=void 0,W=void 0,m=void 0,v=void 0;S=I.mainPlaylistEntity.playlistId;var O=I==null?void 0:(v=I.mainPlaylistEntity)==null?void 0:(m=v.thumbnailStyleData)==null?void 0:(W=m[0])==null?void 0:(P=W.value)==null?void 0:(X=P.collageThumbnail)==
null?void 0:X.coverThumbnail;if(S&&O){X=IiB(S);!_.N("enable_offline_playlist_page")&&(I==null?0:(g=I.mainPlaylistEntity)==null?0:g.videos)&&(g=I==null?void 0:(z=I.mainPlaylistEntity)==null?void 0:(d=z.videos)==null?void 0:d[0],d=_.qo(g).entityId,d=JSON.parse(d).videoId,d!==void 0&&(z=T3(_.K2().getState(),d),X=_.QR(d,S,void 0,void 0,z)));d=[];if(I==null?0:(n=I.mainPlaylistEntity)==null?0:(w=n.videos)==null?0:w.length)d=[Iv$(),Object.assign({},(h=fvm(I==null?void 0:I.mainPlaylistEntity.videos.length))!=
null?h:{})];I={playlistId:S,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:O}},navigationEndpoint:X,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:d,title:Zk(I.mainPlaylistEntity.title),shortBylineText:Zk(I==null?void 0:(V=I.channelEntity)==null?void 0:V.title),badges:[{metadataBadgeRenderer:{label:_.VR("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.N("kevlar_modern_downloads_page")&&(I.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:DtR,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:S,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.VR("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},I.badges=void 0)}else I=void 0;Y.call(C,{richItemRenderer:{content:{playlistRenderer:I},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return f};
ZkB=function(r,f,I){r=r?rS$(r):"";f!==void 0&&isFinite(f)?f===0?f=_.VR("UPDATING",void 0,"Updating..."):(f=Njw(new Date(f),new Date),f=_.VR("UPDATED_TIME",{relative_time:f},"Updated "+f)):f="";var C="";r&&f&&(C=" \u2022 ");if(I&&_.N("kevlar_display_downloads_numbers")){I=_.E_("VIDEO_COUNT",I);if(r||f)C=" \u2022 ";return I+C+r+C+f}return r+C+f};
fTw=function(r){return APq(r.entities).length};
_.ITw=function(r,f){var I=lOl(r.responsiveSize),C;r=!((C=r.responsiveMap)==null||!C.some(function(Y){return Y.containerSize==="CONTAINER_SIZE_NARROW"&&Y.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:f,sizing:I,enableFullBleedForSingleCol:!1,isCompactList:I==="COMPACT"&&r}};
CDR=function(r,f){return _.f2(r.entities,"votingEntity",f)};
YLE=function(r){if(r){var f;return((f=_.a().resolve(_.ZY(_.cI)))==null?0:f())?r.darkTheme:r.lightTheme}};
lTE=function(r,f,I){return _.p(_.B9,null,mCc(I,[[0,function(){return _.p("h2",{class:f},r)}],
[1,function(){return _.p("h3",{class:f},r)}],
[2,function(){return _.p("h4",{class:f},r)}]],function(){return _.p("h2",{class:f},r)}))};
VAK=function(r){var f=["shelf-header-layout-wiz"];r.disableHorizontalPadding&&f.push("shelf-header-layout-wiz--disable-horizontal-padding");r.disableVerticalPadding&&f.push("shelf-header-layout-wiz--disable-vertical-padding");r.useResponsiveLayout&&(f.push("shelf-header-layout-wiz--responsive"),r.forceSmallLayout&&f.push("shelf-header-layout-wiz--narrow"));r.isOverlay&&f.push("shelf-header-layout-wiz--is-overlay");r.onClick&&f.push("shelf-header-layout-wiz--tappable");var I=["shelf-header-layout-wiz__title"];
r.forceSmallLayout&&I.push("shelf-header-layout-wiz__title--small-title");var C=["shelf-header-layout-wiz__leading-image"];r.circularImage&&C.push("shelf-header-layout-wiz__leading-image--circular-image");var Y=_.IC(function(n){var d;(d=r.onClick)==null||d.call(r,n)}),V,S,h,w;
return _.p("yt-shelf-header-layout",{class:f.join(" "),"on:click":Y,tabindex:r.onClick?0:void 0},r.leadingIcon?_.p("div",{class:"shelf-header-layout-wiz__leading-icon"},_.p(_.V2,{icon:r.leadingIcon})):r.hasLeadingImage?_.p("div",{class:C.join(" ")},(V=r.leadingImage)==null?void 0:V.call(r)):_.p(_.B9,null),_.p("div",{class:"shelf-header-layout-wiz__label-container"},r.hasSuperlabel?_.p("div",{class:"shelf-header-layout-wiz__superlabel"},(S=r.superlabel)==null?void 0:S.call(r)):_.p(_.B9,null),_.p("div",
{class:"shelf-header-layout-wiz__title-row"},lTE(r.title(),I.join(" "),r.tagLevel),sD(r.hasDetail,function(){var n;return _.p("div",{class:"shelf-header-layout-wiz__detail"},(n=r.detail)==null?void 0:n.call(r))})),r.hasSublabel?_.p("div",{class:"shelf-header-layout-wiz__sublabel"},(h=r.sublabel)==null?void 0:h.call(r)):_.p(_.B9,null)),r.hasTrailingActions?_.p("div",{class:"shelf-header-layout-wiz__trailing-actions"},(w=r.trailingActions)==null?void 0:w.call(r)):_.p(_.B9,null))};
Eju=function(r){var f=_.F(r==null?void 0:r.avatar,_.s0),I,C=(I=r==null?void 0:r.image)!=null?I:_.ZK(r==null?void 0:r.themedImage);return _.p(_.B9,null,sD(C,function(){return _.p(_.J3,{data:C,alt:"",preserveWidth:!0,preserveHeight:!0})}),sD(f,function(){return _.p(_.$U,{data:f})}))};
huP=function(r){var f=_.F(r.bottomBadge,SLE),I=f&&r.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.p(_.B9,null,sD(f,function(){return f&&_.p(xnE,{data:f,class:I})}),sD(r.sublabel,function(){return _.p(_.wW,{text:r.sublabel})}))};
wiq=function(r){var f=_.F(r.topBadge,SLE),I=f&&r.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.p(_.B9,null,sD(f,function(){return f&&_.p(xnE,{data:f,class:I})}),sD(r.superlabel,function(){return _.p(_.wW,{text:r.superlabel})}))};
njd=function(r){var f=r.data;var I=r.disableHorizontalPadding;var C=r.disableVerticalPadding;var Y=r.forceSmallLayout;var V=r.useResponsiveLayout;r=r.isOverlay;var S=f.sublabel||f.bottomBadge,h=f.superlabel||f.topBadge,w=_.RK(f.rendererContext);I={hasDetail:!1,title:function(){return _.p(_.wW,{text:f.headline})},
hasTitle:!0,sublabel:S&&function(){return huP(f)},
hasSublabel:!!S,superlabel:h&&function(){return wiq(f)},
hasSuperlabel:!!h,leadingImage:f.leadingAccessory&&function(){return Eju(f.leadingAccessory)},
hasLeadingImage:!!f.leadingAccessory,trailingActions:f.trailingActions&&function(){return _.p(_.B9,null,bpl(f.trailingActions))},
hasTrailingActions:!!f.trailingActions,disableHorizontalPadding:I,disableVerticalPadding:C,forceSmallLayout:Y,useResponsiveLayout:V,isOverlay:r,onClick:w?function(n){var d=_.i6(f.rendererContext);d&&_.X2(d,{form:{element:n.target,event:n}})}:void 0};
C=(C=YLE(f==null?void 0:f.backgroundColor))?"background-color: "+_.g_(C)+";":void 0;return _.p("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:C},_.p(piu,Object.assign({},I)))};
dnK=function(r,f){if(r.simpleText)return Object.assign({},r,{simpleText:t3(r.simpleText,f)});if(!r.runs)return r;for(var I=Object.assign({},r,{runs:[]}),C=0,Y=_.E(r.runs),V=Y.next();!V.done;V=Y.next())if(V=V.value,V.text)if(C+V.text.length<=f)I.runs.push(V),C+=V.text.length;else return I.runs.push(Object.assign({},V,{text:t3(V.text,f-C)})),I;return r};
zuU=function(r,f){return _.f2(r.entities,"chipBarStateEntity",f)};
MAl=function(r,f){return _.f2(r.entities,"chipEntity",f)};
aTq=function(r,f,I,C){return function(){var Y=gjd.has(r.displayType)&&r.selected,V=Y&&r.deselectCommand?r.deselectCommand:r.tapCommand;!V||Y&&C||_.F2(V,{form:{element:f==null?void 0:f.value}});I==null||I()}};
Xim=function(r){switch(r){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
Nr$=function(r,f){return{triggeringElement:r,onDwellTriggeredFn:function(){var I={triggeringElement:r,loadVideoPreviewEventData:f},C=document.querySelector(".video-preview");C&&C.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:I}))},
onDwellEndFn:function(){var I=document.querySelector(".video-preview");I&&I.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
$nB=function(r,f){var I=_.a().resolve(_.ZY(sqK)),C=function(){var Y=f();return I&&Y?Nr$(r.value,Y):null};
_.az(function(){var Y=C();I&&Y&&Promise.resolve().then(function(){I.registerElement(Y)});
_.$L(function(){I&&Y&&Promise.resolve().then(function(){I.unregisterElement(Y)})})})};
PDc=function(r){var f=r.dataset.resizeObserverId;if(f)return f;f=""+FHP++;return r.dataset.resizeObserverId=f};
tAR=function(r,f){var I=PDc(r);Fn.has(I)||Fn.set(I,new Set);Fn.get(I).add(f);PS.has(I)&&f(Object.assign({},{target:r},PS.get(I)))};
TrP=function(r){r=_.E(r);for(var f=r.next();!f.done;f=r.next()){f=f.value;var I=PDc(f.target),C=Object.assign({},{target:f.target},PS.get(I));if(C!=null&&C.contentRect?C.contentRect.width!==f.contentRect.width||C.contentRect.height!==f.contentRect.height:1)for(PS.set(I,{borderBoxSize:f.borderBoxSize,contentBoxSize:f.contentBoxSize,contentRect:f.contentRect,devicePixelContentBoxSize:f.devicePixelContentBoxSize}),I=_.E(Fn.get(I)||[]),C=I.next();!C.done;C=I.next())C=C.value,C(f)}};
WHK=function(){return tH?tH:tH=new cSq(TrP)};
LHR=function(r,f){var I=PDc(r);Fn.has(I)&&(Fn.get(I).delete(f),Fn.get(I).size===0&&(Fn.delete(I),PS.delete(I),tH.unobserve(r),delete r.dataset.resizeObserverId));Fn.size===0&&tH&&(tH.disconnect(),tH=void 0)};
euq=function(r,f){var I=_.a().resolve(A7);return mn$.map(function(C){return I.observe(r,f,C)})};
JSR=function(r){var f=_.a().resolve(A7);r.forEach(function(I){f.unobserveByKey(I)})};
_.ipR=function(r,f){var I=Object.assign({},jm$,f);f=_.E(UUB());var C=f.next().value,Y=f.next().value,V=function(S){var h=S.contentRect.height;if((S=S.contentRect.width)||h||I.canHaveZeroSize)C.width()===S&&C.height()===h||Y(C,{height:h,width:S})};
_.$E(function(){var S=r instanceof HTMLElement?r:r.value,h=Hpm(V,I.throttleMs),w=[];I.useVisibilityObserver&&(w=euq(S,function(n,d){requestAnimationFrame(function(){d==="visible"?(tAR(S,h),WHK().observe(S)):LHR(S,h)})}));
w.length||(tAR(S,h),WHK().observe(S));_.$L(function(){w.length&&(JSR(w),w.length=0);LHR(S,h)})});
return C};
vjP=function(r){var f=r.data;var I=r.callback;var C=r.enableSingleChipSelection;var Y=r.disableChipsScrollAnimation;var V=_.yy(),S=tn(!1),h=tn(0);r={};r=_.E(IK(f.autoselectedChipIndex!=null?(r[f.autoselectedChipIndex]=!0,r):{}));var w=r.next().value,n=r.next().value,d=function(){var Pu=V.value;return Pu==null||Pu.scrollLeft-1<=0},z=function(){var Pu=V.value;
return Pu==null?!1:Pu.scrollLeft+1>=(Pu==null?NaN:Pu.scrollWidth)-(Pu==null?NaN:Pu.clientWidth)};
r=_.E(IK(d()));var g=r.next().value,X=r.next().value;r=_.E(IK(z()));var P=r.next().value,W=r.next().value;r=f.isHorizontallyScrollable;var m=function(Pu){V.value!=null&&(_.Lz("HTML_DIR")==="rtl"&&(Pu=-Pu),V.value.scrollBy({left:Pu,behavior:Y?"instant":"smooth"}))},v=function(){m(-320)},O=function(){m(320)},k=_.IC(function(Pu){S.value=!0;
h.value=Pu.clientX}),Z=_.IC(function(Pu){if(S.value){Pu=Pu.clientX;
var Wu=Pu-h.value;h.value=Pu;V.value.scrollBy({left:-Wu})}}),Cw=_.IC(function(){var Pu=d(),Wu=z();
Pu!==g&&X(Pu);Wu!==P&&W(Wu)});
Qy("pointerup",function(){S.value&&(S.value=!1)});
var rR={},EP={};return _.p("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},sD(f.title,function(){return _.p("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.p("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},f.title),Ruw(f.overflowButton))}),_.p("div",{class:"ytChipsShelfViewModelChipsShelfContent"},sD(f.previousButton!=null,function(){var Pu={};
return _.p("div",{class:_.D5("ytChipsShelfViewModelLeftArrowContainer",(Pu.ytChipsShelfViewModelLeftArrowContainerIsHidden=g,Pu))},Ruw(f.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:v}}))}),_.p("div",{el:V,
"on:pointerdown":k,"on:pointermove":Z,"on:scroll":Cw,class:_.D5("ytChipsShelfViewModelChipsScrollContainer",(rR.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!r,rR))},_.p("div",{class:_.D5("ytChipsShelfViewModelChipsContainer",(EP.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!r,EP.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!r&&!1,EP))},(f.contents||[]).map(function(Pu,Wu){return _.p("div",{class:"ytChipsShelfViewModelChipWrapper"},
Ruw(Pu,{chipViewModel:{callback:function(cu,OP){if(C){var iU={};n((iU[Wu]=OP,iU))}else iU={},n(Object.assign({},w,(iU[Wu]=OP,iU)));I==null||I(cu,OP,Wu)},
disableDeselection:C,selected:!!w[Wu]}}))}))),sD(f.nextButton!=null,function(){var Pu={};
return _.p("div",{class:_.D5("ytChipsShelfViewModelRightArrowContainer",(Pu.ytChipsShelfViewModelRightArrowContainerIsHidden=P,Pu))},Ruw(f.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:O}}))})))};
KHK=function(){return R7K&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true"};
yS$=function(r,f){if(!((f==null?0:f.entitySelectorType)&&(f==null?0:f.entityKey)))return{};switch(f.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":return r=_.aaU(r,f.entityKey),r=r==null?void 0:r.value,f=!1,r==="CAPTIONS_UNAVAILABLE"&&(f=!0,r=""),Object.assign({},!!r&&{selectionText:{content:r}},{isSelected:!!r},!!r&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:f});default:return{}}};
smU=function(r,f,I,C,Y){r=f?r.switchOffCommand:r.switchOnCommand;if(C&&Y)Un$(r,I,Y);else{var V,S;(V=_.Nd({elementsCommand:r}))==null||(S=V.onclick)==null||S.call(V,I)}};
Un$=function(r,f,I){r=_.Nd({elementsCommand:r,additionalCommandArgs:{commandController:{onSuccess:function(){I(!1)},
onServerError:function(){I(!1)}}}});
if(r==null?0:r.onclick)r.onclick(f),I(!0)};
ojP=function(r){if(r)return _.F(r,Opc)};
Qml=function(r){r=r.selectElementClass;var f={};r=_.D5("checkbox-shape-wiz__checkbox",r,(f["checkbox-shape-wiz__checkbox--checkbox-default-style"]=!r,f));return _.p("div",{class:r,"aria-hidden":"true"},_.p(_.V2,{icon:_.N("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.p(_.V2,{icon:_.N("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))};
ASU=function(r){var f=r.name;var I=r.onChange;var C=r.onClick;var Y=r.checked===void 0?!1:r.checked;var V=r.labelRenderable;var S=r.hasLeadingLabel;var h=r.labelClass;var w=r.isCompact;var n=r.selectElementClass;var d=r.disableHorizontalPadding;r="checkbox"+_.TN(_.cS);var z=_.yy(),g=_.IC(function(W){C==null||C(W);return!1}),X=_.IC(function(W){z.value.checked=Y;
I==null||I(W);return!1}),P={};
h=_.D5("checkbox-shape-wiz",h,(P["checkbox-shape-wiz--compact"]=!!w,P["checkbox-shape-wiz--disable-horizontal-padding"]=!!d,P));return _.p("checkbox-shape",null,_.p("label",{class:h},_.p("input",{el:z,class:"checkbox-shape-wiz__input",id:r,checked:Y,name:f,type:"checkbox","on:change":X,"on:click":g}),sD(!S,function(){return Qml({isLeading:!0,selectElementClass:n})}),sD(V,function(){return _.p("div",{class:"checkbox-shape-wiz__label"},V==null?void 0:V())}),sD(S,function(){return Qml({isLeading:!1,
selectElementClass:n})})))};
Zpw=function(r){var f=r.useCheckIcon===void 0?!1:r.useCheckIcon;var I=r.selectElementClass;r=f?"CHECK":"CIRCLE";var C="",Y=_.N("radio_shape_filled_icon_manual_setting_killswitch");Y&&(C=f?"CHECK":"CIRCLE_FILLED");var V={};I=_.D5("radio-shape-wiz__radio",I,(V["radio-shape-wiz__radio--check-icon"]=!!f,V["radio-shape-wiz__radio--radio-default-style"]=!I,V));return Y?_.p("div",{class:I,"aria-hidden":"true"},_.p(_.V2,{icon:r}),_.p(_.V2,{icon:C,active:!f})):_.p("div",{class:I,"aria-hidden":"true"},_.p(_.V2,
{icon:r}),_.p(_.V2,{icon:r,active:!f}))};
GvK=function(r){function f(){var Z;((Z=_.a().resolve(_.ZY(_.nF)))==null?0:Z.isKeyBoardInUse())&&m.value.classList.add("radio-shape-wiz__label-container--keyboard-focused")}
function I(){m.value.classList.remove("radio-shape-wiz__label-container--keyboard-focused")}
var C=r.name;var Y=r.onChange;var V=r.onClick;var S=r.checked===void 0?!1:r.checked;var h=r.labelRenderable;var w=r.useCheckIcon;var n=r.hasLeadingLabel;var d=r.labelClass;var z=r.isCompact;var g=r.selectElementClass;var X=r.ariaLabel;var P=r.className;r=Pw(function(){return"radio"+_.TN(_.cS)});
var W=_.yy(),m=_.yy(),v=_.IC(function(Z){W.value.checked=S;Y==null||Y(Z);return!1}),O=_.IC(function(Z){V==null||V(Z);
return!1}),k=["radio-shape-wiz"];
P&&k.push(P);P={};d=_.D5("radio-shape-wiz__label-container",d,(P["radio-shape-wiz--compact"]=!!z,P));gt(function(){document.activeElement===W.value&&f()});
_.$E(function(){var Z=W.value;Z.addEventListener("focusin",f);Z.addEventListener("focusout",I);return function(){Z.removeEventListener("focusin",f);Z.removeEventListener("focusout",I)}});
return _.p("radio-shape",{class:k.join(" ")},_.p("input",{el:W,class:"radio-shape-wiz__input",id:r,"prop:checked":S,name:C,type:"radio","on:change":v,"on:click":O,"aria-label":X}),_.p("label",{class:d,for:r,el:m},sD(!n,function(){return Zpw({checked:S,useCheckIcon:w,isLeading:!0,selectElementClass:g})}),sD(h,function(){return _.p("div",{class:"radio-shape-wiz__label",
"aria-hidden":X?"true":"false"},h==null?void 0:h())}),sD(n,function(){return Zpw({checked:S,
useCheckIcon:w,isLeading:!1,selectElementClass:g})})))};
kvl=function(r,f){return!!(f&&(r.leadingImage||r.leadingAccessory)||!f&&(r.trailingImage||r.trailingButton||r.trailingButtons||r.selectionText))};
ujU=function(r){var f=r.data;var I=r.isLeading;var C=r.hideSelectionTextChevron;if(kvl(f,I)){var Y=_.D5("yt-list-item-view-model-wiz__button-container");r={};var V=_.D5("yt-list-item-view-model-wiz__image-container",(r["yt-list-item-view-model-wiz__leading"]=I,r["yt-list-item-view-model-wiz__trailing"]=!I,r)),S=I?f.leadingImage:f.trailingImage,h=_.D5("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");r={};var w=_.D5("yt-list-item-view-model-wiz__accessory",(r["yt-list-item-view-model-wiz__leading"]=
I,r["yt-list-item-view-model-wiz__trailing"]=!I,r)),n=!!f.selectionText,d=Br$(f.listItemIconAfterSelectionText);return function(){var z;return _.p(_.B9,null,sD(S,function(){return _.p("div",{class:V,"aria-hidden":"true"},_.p(_.J3,{data:S,alt:"",preserveWidth:!0,preserveHeight:!0,className:h}))}),sD(I&&f.leadingAccessory,function(){return _.p("div",{class:V},qLP(f.leadingAccessory,{avatarViewModel:{avatarButtonCustomClassName:h}}))}),sD(!I&&f.trailingButton,function(){return _.p("div",{class:Y},qLP(f.trailingButton,
{buttonViewModel:{className:w}}))}),sD(!I&&((z=f.trailingButtons)==null?void 0:z.buttons),function(){var g;
return _.p("div",{class:Y},qLP((g=f.trailingButtons)==null?void 0:g.buttons,{buttonViewModel:{className:w},accountLinkButtonViewModel:{className:w},switchButtonViewModel:{className:w},subscribeButtonViewModel:{className:w,isOverlay:!1,animateWidth:!1},toggleButtonViewModel:{className:w}}))}),sD(!I&&n,function(){return _.p(_.B9,null,_.p(_.wW,{text:f.selectionText,
className:_.D5("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),sD(!C,function(){return _.p(_.V2,{icon:d,className:"yt-list-item-view-model-wiz__chevron-icon"})}))}))}}};
Br$=function(r){switch(r){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":return"expand_more";default:return"chevron_right"}};
Dnl=function(r){return r.title||r.subtitle?function(){return _.p("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.p("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},sD(r.title,function(){return _.p(_.wW,{text:r.title,className:"yt-list-item-view-model-wiz__title"})})),sD(r.subtitle,function(){return _.p(_.wW,{text:r.subtitle,
className:"yt-list-item-view-model-wiz__subtitle"})}))}:function(){return _.p(_.B9,null)}};
IlE=function(r){function f(){var OP;((OP=_.a().resolve(_.ZY(_.nF)))==null?0:OP.isKeyBoardInUse())&&Cw.value.classList.add("yt-list-item-view-model-wiz--keyboard-focused")}
function I(){Cw.value.classList.remove("yt-list-item-view-model-wiz--keyboard-focused")}
var C=r.data;var Y=r.isMenuItem;var V=r.isCompact;var S=r.onTap;var h=r.trailingAccessory;var w=r.hideSelectionTextChevron;var n=r.disabled;var d=r.inPopup;var z=r.disableHorizontalPadding;var g=r.isOverlay;r=tDl(function(OP){return yS$(OP,C)});
var X=_.N("enable_web_shorts_captions_language_command")?Object.assign({},C,r):C;r=!(X.isSelected===void 0||!X.selectionStyle||X.selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED");var P=(_.RK(X.rendererContext)||S)&&!r,W=_.RK(X.rendererContext)||r;n=!!X.isDisabled||!!n;var m={};g=_.D5("yt-list-item-view-model-wiz",(m["yt-list-item-view-model-wiz--is-overlay"]=!!g,m));m={};var v=_.D5("yt-list-item-view-model-wiz__label",(m["yt-list-item-view-model-wiz__container"]=!r,m["yt-list-item-view-model-wiz__container--disabled"]=
n,m["yt-list-item-view-model-wiz__container--has-subtitle"]=!!X.subtitle,m["yt-list-item-view-model-wiz__container--compact"]=!!V,m["yt-list-item-view-model-wiz__container--tappable"]=P,m["yt-list-item-view-model-wiz__container--in-popup"]=!!d,m));n={};n=_.D5("yt-list-item-view-model-wiz__container",(n["yt-list-item-view-model-wiz__container--tappable"]=W,n["yt-list-item-view-model-wiz__container--compact"]=!!V,n["yt-list-item-view-model-wiz__container--in-popup"]=!!d,n["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=
!!z,n));m=X.leadingImage||X.leadingAccessory;var O=_.D5("yt-list-item-view-model-wiz__image-container",m?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"),k=_.N("apply_button_role_to_list_item");d=_.yy();var Z=_.yy(),Cw=k?Z:d,rR=function(){var OP,iU,oR;return _.p(_.B9,null,(OP=ujU({data:X,isLeading:!0,hideSelectionTextChevron:!!w}))==null?void 0:OP(),(iU=Dnl(X))==null?void 0:iU(),h?_.p("div",{class:"yt-list-item-view-model-wiz__trailing"},h()):(oR=ujU({data:X,isLeading:!1,
hideSelectionTextChevron:!!w}))==null?void 0:oR())},EP=function(){return k?_.p("div",{class:v,
el:Z,role:W||P?"button":void 0,tabindex:S||P?0:void 0,"on:keydown":cu,"on:click":Wu},rR()):_.p("div",{class:v,el:Z},rR())},Pu={labelRenderable:EP,
isCompact:V,checked:X.isSelected,hasLeadingLabel:!!m,labelClass:n,selectElementClass:O,disableHorizontalPadding:!!z};_.vo(d,X.rendererContext);var Wu=_.IC(function(OP){return void(S==null?void 0:S(OP))}),cu=_.jO();
_.$E(function(){P&&(Cw.value.addEventListener("focusin",f),Cw.value.addEventListener("focusout",I));return function(){Cw.value&&P&&(Cw.value.removeEventListener("focusin",f),Cw.value.removeEventListener("focusout",I))}});
V=_.IC(function(){return!1});
return _.p("yt-list-item-view-model",{el:d,class:g,role:Y?"menuitem":"listitem",tabindex:k?void 0:S||P?0:void 0,"on:keydown":k?V:cu,"on:click":k?V:Wu},sD(r,function(){return mCc(X.selectionStyle,[["LIST_ITEM_SELECTION_STYLE_CHECKBOX",function(){return _.p(rDu,Object.assign({},Pu))}],
["LIST_ITEM_SELECTION_STYLE_RADIO",function(){return _.p(flE,Object.assign({},Pu))}],
["LIST_ITEM_SELECTION_STYLE_DEFAULT",function(){return _.p(flE,Object.assign({},Pu,{useCheckIcon:!0}))}]],function(){return EP()})},function(){return EP()}))};
Esu=function(r,f,I){if(f)return[C9U];switch(r){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[WS];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return I?[WS]:[YxR,WS];case "TRANSFER_STATE_PAUSED_BY_USER":return[llR,WS];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[Vwl,WS];default:return[C9U]}};
Sxc=function(r,f,I,C){return Esu(r,f,C).map(function(Y){var V=Y.text,S=Y.iconType,h=Y.videoAction;Y=Y.playlistAction;V=V?{content:V}:void 0;S=S&&{sources:[{clientResource:{imageName:S}}]};var w=(0,_.X0.unsafeClone)(I);if(w){var n=_.F(w,_.CF),d=_.F(w,_.Y4);n&&h?n.action=h:d&&Y&&(d.action=Y)}return{title:V,leadingImage:S,rendererContext:w&&{commandContext:{onTap:{innertubeCommand:w}}}}})};
xEP=function(r){r=_.i6(r.rendererContext);var f;return(f=_.F(r,_.Y4))==null?void 0:f.playlistId};
hOw=function(r){var f;return(f=r.listItems)==null?void 0:f.some(function(I){var C;return _.RK((C=_.F(I,_.b6))==null?void 0:C.rendererContext)})};
bCc=function(r){var f=r.data;var I=r.isCompact;var C=r.hideSelectionTextChevron;var Y=r.inPopup;r=r.isOverlay;var V=hOw(f)&&Y,S={};return _.p("yt-list-view-model",{class:_.D5("yt-list-view-model-wiz",(S["yt-list-view-model-wiz--kaios-spat-nav"]=KHK(),S)),role:V?"menu":"list"},w6w(f.listItems,{listItemViewModel:{isMenuItem:V,isCompact:I,hideSelectionTextChevron:C,inPopup:Y,isOverlay:r},downloadListItemViewModel:{isMenuItem:V,isCompact:I,inPopup:Y}}))};
LH=function(r){var f=_.a().resolve(_.ZY(_.cI));return f!=null&&f()?r.darkThemeColorPalette:r.lightThemeColorPalette};
eB=function(r){return{primaryTextColor:mG(r,0),secondaryTextColor:mG(r,1),optionColor:mG(r,2),backgroundColor:mG(r,3),videoBackgroundColor:mG(r,4)}};
mG=function(r,f){if(r){switch(f){case 0:r=r.primaryTitleColor;break;case 1:r=r.secondaryTitleColor;break;case 2:r=r.surgeColor;break;case 3:r=r.section2Color;break;case 4:r=r.section3Color;break;default:return}if(r)return _.MG(r)}};
p6l=function(r){return r?_.g_(r):""};
nsB=function(r){return(r==null?void 0:r.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
dEq=function(r,f){var I;return"linear-gradient(to bottom, "+((I=f==null?void 0:f.map(function(C){var Y=r?C.darkThemeColor:C.lightThemeColor;return Y?_.g_(Y)+" "+((C==null?void 0:C.startLocation)||0)*100+"%":"transparent"}))==null?void 0:I.join(", "))+")"};
zOP=function(r){var f=r.className;var I=r.data;var C=r.isOverlay;var Y=r.maxLinesOverride;var V=r.useMediumText;r=_.yy();var S=I.description,h=I.alwaysShowTruncationText,w=I.truncationText,n=I.maxLines,d,z=!((d=_.F(I.rendererContext,yS))==null||!d.onTap),g,X,P=(X=(g=_.F(I.rendererContext,_.U0))==null?void 0:g.label)!=null?X:"";d=_.E(IK(!1));var W=d.next().value,m=d.next().value;_.vo(r,I.rendererContext);d=_.IC(function(){I.expandOnTap&&m(!W);return!1});
g={};return _.p("yt-description-preview-view-model",{el:r,class:_.D5("yt-description-preview-view-model-wiz",f,(g["yt-description-preview-view-model-wiz--clickable"]=z,g["yt-description-preview-view-model-wiz--is-overlay"]=C,g)),"on:click":d},sD(S,function(){var v={};return W?_.p("div",{class:_.D5("yt-description-preview-view-model-wiz__description",(v["yt-description-preview-view-model-wiz__description--medium-text"]=V,v))},_.p(_.wW,{text:S})):_.p(Bow,{text:S,alwaysShowTruncationText:h,truncationText:w,
maxLines:Y!=null?Y:n,isOverlay:C,accessibilityLabel:P,useMediumText:V})}))};
Mw$=function(r,f,I,C,Y){if(!((C==null?0:C.height)&&(C==null?0:C.width)))return{size:0};var V=C.width;C=C.height;if(Y)return f==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||f==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&V>C?{size:312/aOd}:f==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(I!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||r!==1&&r!==2||f!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&f!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&f!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(f==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||f==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||C===V)switch(r){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(f==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||C>V)switch(r){case 1:case 3:return{size:240*gvP};default:return{size:360*gvP}}switch(r){case 1:case 2:return{size:1/aOd*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.gsK=function(r){if(!("matchMedia"in window))return _.Hw(Error("Nh")),function(){return!1};
var f=window.matchMedia(r);r=_.E(_.ld(f.matches,void 0,"jLJc8e"));var I=r.next().value,C=r.next().value,Y=function(V){C(V.matches)};
f.addEventListener?(f.addEventListener("change",Y),_.$L(function(){f.removeEventListener("change",Y)})):f.addListener&&(f.addListener(Y),_.$L(function(){f.removeListener(Y)}));
return I};
alU=function(r){return r==="IMAGE_BANNER_STYLE_INSET"||r==="IMAGE_BANNER_STYLE_UNKNOWN"};
X6l=function(){if(!("matchMedia"in window))return _.Hw(Error("Nh")),function(){return 0};
var r=Pw(function(){return window.matchMedia("(max-width: 527.9px)")}),f=Pw(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),I=Pw(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),C=Pw(function(){return window.matchMedia("(min-width: 1024px)")}),Y=_.E(_.ld(r.matches,void 0,"og9kEc")),V=Y.next().value,S=Y.next().value;
Y=_.E(_.ld(f.matches,void 0,"ybDWCb"));var h=Y.next().value,w=Y.next().value;Y=_.E(_.ld(I.matches,void 0,"o0Gfh"));var n=Y.next().value,d=Y.next().value;Y=_.E(_.ld(C.matches,void 0,"yqUUgd"));var z=Y.next().value,g=Y.next().value,X=Pw(function(){return function(v){S(v.matches)}}),P=Pw(function(){return function(v){w(v.matches)}}),W=Pw(function(){return function(v){d(v.matches)}}),m=Pw(function(){return function(v){g(v.matches)}});
_.$E(function(){r.addEventListener?(r.addEventListener("change",X),f.addEventListener("change",P),I.addEventListener("change",W),C.addEventListener("change",m)):r.addListener&&(r.addListener(X),f.addListener(P),I.addListener(W),C.addListener(m));_.$L(function(){r.removeEventListener?(r.removeEventListener("change",X),f.removeEventListener("change",P),I.removeEventListener("change",W),C.removeEventListener("change",m)):r.removeListener&&(r.removeListener(X),f.removeListener(P),I.removeListener(W),
C.removeListener(m))})});
return function(){return V()?1:h()?2:n()?3:z()?4:0}};
NCw=function(r){var f=0;r=_.E([r.title,r.metadata,r.actions,r.description,r.attribution]);for(var I=r.next();!I.done;I=r.next())I.value&&f++;return f};
$Ew=function(r){return r===1||r===2?1:0};
P9K=function(r){var f,I=((f=_.a().resolve(_.ZY(_.cI)))==null?0:f())&&r.data.darkThemeImage?r.data.darkThemeImage:r.data.image;f=_.p("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.p("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},I?_.p(_.J3,{data:I,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),FEu(r.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));I=_.p(_.wW,{text:r.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var C=r.data;if(C.bodyText){var Y=[];C=_.E(C.bodyText);for(var V=C.next();!V.done;V=C.next())Y.push(_.p(_.wW,{text:V.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else Y=_.p(_.B9,null);return _.p("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},f,I,Y,FEu(r.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.p(_.wW,{text:r.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.p(_.wW,{text:r.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
TCR=function(r){r=(new twl).parse(r);return(new YA).render(r).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(f){var I=f.split(":").map(Number),C=0,Y=0;if(I.length===3)I=_.E(I),C=I.next().value,Y=I.next().value,I=I.next().value;else if(I.length===2)I=_.E(I),Y=I.next().value,I=I.next().value;else if(I.length===1)I=_.E(I).next().value;else throw Error("Oh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(C*3600+Y*60+I)+'" role="button">'+f+"</span>"})};
cDP=function(r){r=_.E(r.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var f=r.next(),I={};!f.done;I={clickHandler$jscomp$4:void 0},f=r.next()){f=f.value;I.clickHandler$jscomp$4=function(Y){Y=Number(Y.target.getAttribute("data-time"));if(isNaN(Y))throw Error("Ph");var V=document.querySelector("video");V&&(V.currentTime=Y)};
var C=function(Y){return function(V){V.key!=="Enter"&&V.key!=="Space"||(0,Y.clickHandler$jscomp$4)(V)}}(I);
f.setAttribute("tabindex","0");f.removeEventListener("click",I.clickHandler$jscomp$4);f.removeEventListener("keydown",C);f.addEventListener("click",I.clickHandler$jscomp$4);f.addEventListener("keydown",C)}};
WEc=function(){return _.p("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.p(JH,{percentWidth:100}),_.p(JH,{animationDelay:200}),_.p(JH,{animationDelay:400}),_.p(JH,{animationDelay:600}),_.p(JH,{animationDelay:800,percentWidth:60}),_.p("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.p(JH,{percentWidth:100}),_.p(JH,{animationDelay:200}),_.p(JH,{animationDelay:400}),_.p(JH,{animationDelay:600,percentWidth:50}))};
JH=function(r){return _.p("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(r.percentWidth===void 0?100:r.percentWidth)+"%"},_.p("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(r.animationDelay===void 0?0:r.animationDelay)+"ms"}))};
LER=function(){var r=_.E(_.ld(function(){return""},void 0,"v2wS5e")),f=r.next().value;
return[function(){return f()()},
r.next().value]};
eOR=function(r){r=r===void 0?{}:r;return{title:_.AZ(r.localizedOptInBannerTitleText===void 0?"":r.localizedOptInBannerTitleText),titleLength:19,subtitle:_.AZ(r.localizedOptInMessage===void 0?"":r.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.AZ(_.VR("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:_.AZ(_.VR("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:[mEP]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
JDK=function(r,f){r=r?rS$(r):"";f!==void 0&&isFinite(f)?f===0?f=_.VR("UPDATING",void 0,"Updating..."):(f=Njw(new Date(f),new Date),f=_.VR("UPDATED_TIME",{relative_time:f},"Updated "+f)):f="";var I="";r&&f&&(I=" \u2022 ");return _.AZ(r+I+f)};
iCR=function(r,f,I,C,Y,V){f=f===void 0?0:f;var S=j4u[f],h=S.title,w=S.iconType,n=S.topButtonRenderer,d=S.sectionClientVE;S=S.videoClientVE;var z;if(f!==1||r.length){I=[];r=_.E(r);for(C=r.next();!C.done;C=r.next()){var g=C.value;if(f0l(g))I.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:g.videoEntity.videoId,title:Zk(g.videoEntity.title),shortBylineText:Zk(g.channelEntity.title),thumbnail:g.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:g.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.VR("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:S}}}}}});else if(rLP(g)){C=I;var X=C.push;var P=void 0,W=void 0,m=void 0,v=void 0,O=void 0,k=void 0,Z=void 0,Cw=void 0,rR=g.mainPlaylistEntity.playlistId,EP=g==null?void 0:(Cw=g.mainPlaylistEntity)==null?void 0:(Z=Cw.thumbnailStyleData)==null?void 0:(k=Z[0])==null?void 0:(O=k.value)==null?void 0:(v=O.collageThumbnail)==null?void 0:v.coverThumbnail;v=IiB(rR);if(!_.N("enable_offline_playlist_page")&&
(g==null?0:(m=g.mainPlaylistEntity)==null?0:m.videos)){b:{m=g==null?void 0:(W=g.mainPlaylistEntity)==null?void 0:W.videos;W=_.K2().getState().entities;if(m!=null&&m.length&&W)for(m=_.E(m),O=m.next();!O.done;O=m.next())if(O=_.qo(O.value).entityId,(O=JSON.parse(O).videoId)&&o7$(W,O)==="TRANSFER_STATE_COMPLETE"){W=O;break b}W=""}W!==void 0&&(v=T3(_.K2().getState(),W),v=_.QR(W,rR,void 0,void 0,v))}W=Y5u(_.VR("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),IiB(rR));g=rR&&EP&&W?{playlistId:rR,navigationEndpoint:v,
viewPlaylistText:W,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:EP}},title:Zk(g.mainPlaylistEntity.title),shortBylineText:Zk(g==null?void 0:(P=g.channelEntity)==null?void 0:P.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:HCq,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:rR,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.VR("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:S}}}:
void 0;X.call(C,{gridPlaylistRenderer:g})}}S={gridRenderer:{items:I}};f===1&&(z=JDK(Y,V))}else if(C){var Pu=_.AZ((X=I==null?void 0:I.localizedPromptMessage)!=null?X:"");S={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.AZ(_.VR("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.a0P}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.AZ(_.VR("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};z=JDK(Y,V)}else Pu=_.AZ(_.VR("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
S={};return{contents:[{shelfRenderer:{title:h,titleAnnotation:z,icon:{iconType:w},subtitle:Pu,content:S,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:n}]}}}}],loggingDirectives:{clientVeSpec:{uiType:d}}}};
ROd=function(r,f,I,C,Y,V,S,h){I=I===void 0?{}:I;C=C===void 0?!1:C;Y=Y===void 0?!1:Y;V=V===void 0?!1:V;S=S===void 0?0:S;h=h===void 0?-Infinity:h;if(!f.length&&!r.length&&!C)return Y?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:AuK(I)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.AZ(_.VR("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=[];r.length&&w.push(iCR(r,0));C?w.push(iCR(f,1,I,V,S,h)):Y&&w.push({contents:[{statementBannerRenderer:eOR(I)}]});(C&&f.length||r.length)&&w.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.AZ(_.VR("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(n){return{itemSectionRenderer:n}})};
jB=function(r,f){if(typeof r!=="object")return null;r=_.E(Object.entries(r));for(var I=r.next();!I.done;I=r.next()){var C=_.E(I.value);I=C.next().value;C=C.next().value;if(I===f)return I;if(C=jB(C,f))return I+"."+C}return null};
HS=function(r){var f=r.content;return(r=r.styleRuns)&&f?{runs:r.map(function(I){var C={text:f.slice(I.startIndex,I.startIndex+I.length)};I.fontColor&&(C.textColor=I.fontColor);return C})}:{simpleText:f}};
yDw=function(r,f,I,C){var Y=vsE;C&&(r.quantity=C);if(!r.quantity||!r.maxQuantity)return{};C=r.minusButton;var V=r.plusButton,S,h,w,n;return{value:r.quantity,maxValue:r.maxQuantity,onChangeCallback:function(d){Y(r,d)},
minusLabel:(S=_.F(C,KE$))==null?void 0:S.label,minimumReachedLabel:(h=_.F(C,KE$))==null?void 0:h.limitReachedLabel,plusLabel:(w=_.F(V,KE$))==null?void 0:w.label,maximumReachedLabel:(n=_.F(V,KE$))==null?void 0:n.limitReachedLabel,disabled:f,onRemoveCommand:I}};
vsE=function(r,f){var I=r.quantityIncrementerEntityKey;if(I){var C={};C.quantity=f;_.eS(_.Po("quantityIncrementerEntity",I,C));r.onChangeCommand&&_.F2(r.onChangeCommand)}};
UEP=function(r){return _.N("kevlar_comments_clone_data_killswitch")?r:_.X0.unsafeClone(r)};
osm=function(r,f){(r=s4w(r))&&(f?OCl.push({command:r,sourceData:{},commandContext:void 0}):_.a().resolve(_.Gg).resolveCommand(r))};
s4w=function(r){return _.F(r,_.gF)};
Q4R=function(){var r=window.performance.timeOrigin+window.performance.now(),f=(new _.i1).setSeconds(r/1E9);return _.Ty(f,2,_.PB(r%1E9),0)};
RV=function(r,f){var I=_.F(_.F(r,_.gF),ADR);I&&(f&&(I.serializedAdditionalMetadata=_.Dp(f)),osm(r,!0))};
ZCP=function(r){switch(r){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"}};
G0E=function(){return!!_.Lz("ID_TOKEN")};
qx$=function(r){return r instanceof Error&&r.cause instanceof k0E&&r.cause.rpcErrorCode!==void 0?!BCd.includes(r.cause.rpcErrorCode):!0};
DEU=function(){return _.UQ(ueR,{authuser:""+(_.Lz("SESSION_INDEX")||0)})};
vS=function(r,f,I,C){I=I===void 0?"MINI_APP_SDK_API_UNSPECIFIED":I;C=C===void 0?"":C;var Y=new _.nf;I={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:C,sdkApi:I};r instanceof Error&&(Y.message=r.message,Y.name=r.name,r.cause instanceof k0E&&r.cause.rpcErrorCode!==void 0&&(I.rpcErrorCode=r.cause.rpcErrorCode));var V;(V=f.onError)==null||V.call(f,{loggingError:Y,metadata:I})};
fgu=function(r,f,I,C){switch(r){case "MINI_APP_SOURCE_GAMESNACKS":return new KH(f,I,C);default:return new rO$(f,I,C)}};
Igd=function(r){switch(r){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"}};
C8B=function(r){switch(r){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"}};
Y3R=function(r){switch(r){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"}};
lgB=function(){return Math.floor(Math.random()*4)+1};
V1K=function(r,f,I,C){r=_.E(Object.entries(r));for(var Y=r.next(),V={};!Y.done;V={message$jscomp$956:void 0},Y=r.next()){var S=_.E(Y.value);Y=S.next().value;S=S.next().value;V.message$jscomp$956=S;f.push(setTimeout(function(h){return function(){C(!1);I(h.message$jscomp$956.text)}}(V),V.message$jscomp$956.delayMs));
Number(Y)>0&&f.push(setTimeout(function(){C(!0)},V.message$jscomp$956.delayMs-400))}};
Ezm=function(r,f){var I=I===void 0?Eyq:I;_.N("mweb_fix_monitor_visibility_after_render")?r&&wF(function(){hfR(r,f,I)}):wF(function(){hfR(r,f,I)})};
wbK=function(r){S3d||(S3d=xRK(new _.W1(1,void 0,void 0,h8l),0));var f=S3d.format(Math.floor(r));f=_.c1==="be"||_.c1==="bg"||_.c1==="es"||_.c1==="et"||_.c1==="hu"||_.c1==="ka"||_.c1==="lv"||_.c1==="pl"||_.c1==="pt-PT"||_.c1==="sq"?f.replace(new RegExp("^(\\d)"+h8l.GROUP_SEP.replace(".","\\.")+"(\\d+("+h8l.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):f;return r>=1E3&&r<=9999&&f[1]==="."&&(_.c1==="sl"||_.c1==="it")?f.replace(".",""):f};
bbu=function(r,f){pv("ytd-button-renderer",{data:r,className:f?f.className:"",overrides:f==null?void 0:f.buttonOverrides},v9)};
dRE=function(r,f,I,C){if(r)return C=C||r.likeStatus,f?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:C==="LIKE",isDisabled:!r.likesAllowed,defaultIcon:{iconType:I},defaultText:C==="LIKE"?r.likeCountWithUnlikeText:r.likeCountText,toggledText:C==="LIKE"?r.likeCountText:r.likeCountWithLikeText,defaultNavigationEndpoint:pbl(r,"LIKE"),defaultServiceEndpoint:nzB(r,"LIKE"),toggledServiceEndpoint:nzB(r,"INDIFFERENT"),defaultTooltip:_.Rr(r.likeCountTooltipText),toggledTooltip:_.Rr(r.likeCountTooltipText),
targetId:r.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:C==="DISLIKE",isDisabled:!r.likesAllowed,defaultIcon:{iconType:I},defaultText:C==="DISLIKE"?r.dislikeCountWithUndislikeText:r.dislikeCountText,toggledText:C==="DISLIKE"?r.dislikeCountText:r.dislikeCountWithDislikeText,defaultNavigationEndpoint:pbl(r,"DISLIKE"),defaultServiceEndpoint:nzB(r,"DISLIKE"),toggledServiceEndpoint:nzB(r,"INDIFFERENT"),defaultTooltip:_.Rr(r.dislikeCountTooltipText),
toggledTooltip:_.Rr(r.dislikeCountTooltipText)}};
pbl=function(r,f){if(f==="LIKE")return r.likeCommand;if(f==="DISLIKE")return r.dislikeNavigationEndpoint};
nzB=function(r,f){var I;return(I=r.serviceEndpoints)==null?void 0:I.find(function(C){var Y;return((Y=_.F(C,_.yU))==null?void 0:Y.status)===f})};
z8q=function(r,f){f=f===void 0?{}:f;if(r){var I=!!f.activeState,C=f.iconSize,Y=f.className,V=f["aria-hidden$"],S=f["aria-label$"],h=f.role;f=f.style$+";width: "+((f.width||C)+"px;height: ")+((f.height||C)+"px;color: ")+(f.color+";");r={icon:r};I!==void 0&&(r.active=I);C!==void 0&&(r.size=C);f!==void 0&&(r.style=f);Y!==void 0&&(r.className=Y);V!==void 0&&(r.ariaHidden=V);S!==void 0&&(r.ariaLabel=S);h!==void 0&&(r.role=h);pv("yt-icon",r,v9)}};
_.agq=function(r,f,I){return window.spf&&!_.N("web_disable_spfjs_client")?M1B(r,f,I):gzl(r,f)};
M1B=function(r,f,I){var C=null,Y=(new _.lz(function(V,S){var h={};if(f){h.method=f.method;var w=f.postParams||{};qCR(r,f)&&(w[_.Lz("XSRF_FIELD_NAME")]=_.Lz("XSRF_TOKEN"));h.postData=_.VD(w);f.type&&(h.type=f.type);w=f.headers}h.headers=Q6K(r,w);_.N("debug_forward_web_query_parameters")&&(r=_.k5u(r,window.location.search));h.experimental_headers=h.headers;h.onError=function(n){n.err&&n.xhr&&(n.err.params={url:n.xhr.responseURL,response:n.xhr.responseText.substr(0,64)});S(n.err)};
h.onPartDone=function(n){I&&I.call(null,n.part)};
h.onDone=function(n){var d=Xb$(n.response,"xsrf_token");ov(window.location.href,r)&&d&&_.Ww("XSRF_TOKEN",d);if(d=Xb$(n.response,"service_worker_killswitch"))_.Ww("SERVICE_WORKER_KILLSWITCH",d),HYU();V(n.response)};
C=spf.request(r,h)})).then(N1B);
Y.thenCatch(function(V){var S=V instanceof _.oV,h=V&&V.hasOwnProperty("params")&&V.params.response?V.params.response:"";V instanceof Error&&(h?S?vYE(V):h===')]}\'\n{"reload":"now"}'?vYE(V):($Rm(V,r,h),FUE(V,h)?_.t7(V):_.Fo(V)):vYE(V));C&&C.abort()});
return Y};
N1B=function(r){if(r.type==="multipart"){var f=r.timing;r=r.parts.reduce(function(I,C){Object.assign(I,C);return I},{});
r.timing=r.timing||{};Object.assign(r.timing,f);r.type="reduced"}return r};
gzl=function(r,f){f=f===void 0?{}:f;var I=null,C=new _.lz(function(Y,V){f.onFinish=function(S){if(S.readyState===XMLHttpRequest.DONE)if(S.status===200){if(S.responseType!=="json"){var h=S.response;h.substring(0,5)===")]}'\n"&&(h=h.substring(5));try{var w=JSON.parse(h)}catch(n){w=n}}else w=S.response;w instanceof Error?V(w):(h=Xb$(w,"xsrf_token"),ov(window.location.href,r)&&h&&_.Ww("XSRF_TOKEN",h),S=S.responseURL,window.performance&&window.performance.getEntriesByName?(h=window.performance.getEntriesByName(S).pop())?
S={responseStart:(0,_.Ad)()-(h.responseEnd-h.responseStart)}:(Math.random()<.01&&(h=Error("ai"),h.params=S,_.t7(h)),S={responseStart:-1}):S={responseStart:0},w.timing=w.timing||{},Object.assign(w.timing,S),Y(w))}else V(Error("$h`"+S.status))};
(I=_.lh(r,f))||V(Error("$h`"+I.status))});
C.thenCatch(function(Y){Y instanceof Error&&($Rm(Y,r),FUE(Y)&&(Y.level="WARNING"))});
_.N("cancel_pending_navs")&&C.thenCatch(function(){I.abort()});
return C};
Xb$=function(r,f){var I=r[f],C=r.parts;r.type==="multipart"&&C&&(I=(r=C.find(function(Y){return f in Y}))&&r[f]);
return I};
$Rm=function(r,f,I){var C=r.message||"";f={original:C,url:f};if(I)if(C=C.match(/position:?\s*(\d+)/)){C=C&&Number(C[1])?Number(C[1]):0;var Y=Math.max(C-25,0);f.position=C;f.response=I.substring(Y,C+25)}else f.response=I.substring(0,50);_.TL(r,f);try{r.message="JSON parse error"}catch(V){}};
FUE=function(r,f){r=r.message||"";r=!!(r.indexOf("<")>=0||r.indexOf("end of ")>=0||r.indexOf("Unterminated string")>=0||r.indexOf("Unexpected EOF"));if(!r&&f)for(var I=f.length,C=!1,Y=0;Y<I;Y++)if(C&&f[Y]==="\\")Y++;else if(f[Y]==='"')C=!C;else if(f[Y]==="<"&&!C){r=!0;break}return r};
P8P=function(){return document.documentElement.hasAttribute("dark")};
_.t1K=function(r,f){if(r!=="GFEEDBACK"&&r!=="GUIDED_HELP")_.eH(Error("bi`"+r));else{var I=_.a().resolve(_.ZY(_.y2));if(I&&(I=I.getCurrentPage())&&I.getServiceTrackingParams&&(I=I.getServiceTrackingParams()))for(var C=0,Y;Y=I[C++];)if(Y.service===r){if(r=Y.params)for(I=0;C=r[I++];)f[C.key]=C.value;break}}};
_.T1u=function(r){var f=_.sk();f&&(f=f.getPlayer())&&(f.pauseVideo(),r.playback_id=f.getVideoData().cpn,r.eid=f.getVideoData().eventId,Object.assign(r,f.getFeedbackProductData()))};
cOP=function(){var r={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Lz("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(r.enableAnonymousFeedback=!0);_.Lz("SESSION_INDEX")&&(r.authuser=String(_.Lz("SESSION_INDEX")));_.N("enable_pageid_for_feedback")&&_.Lz("DELEGATED_SESSION_ID")&&(r.pageId=String(_.Lz("DELEGATED_SESSION_ID")));return r};
_.QU=function(r){_.N("enable_ypc_spinners")&&_.Bj(r,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},r])};
_.AH=function(r){_.N("enable_ypc_spinners")&&_.Bj(r,"yt-close-popup-action",["yt-loading-renderer"])};
WUu=function(r){return new Promise(function(f,I){_.X2({verifyCommand:{recaptchaToken:r.recaptchaResponse}},{commandController:{onSuccess:function(C,Y){Y||I("ChallengeService did not return a response.");var V;f({challengeCompleted:(V=Y.verified)!=null?V:!1})},
onServerError:function(C,Y){I(Y)}}})})};
LUR=function(r,f,I,C){f({recaptchaResponse:C}).then(function(Y){Y.challengeCompleted?_.wl()?(I(3),_.a().resolve(_.Gg).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:r}})):I(2):I(4)},function(){I(4)})};
mRR=function(r,f,I){_.m0("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.Lz("HL"),function(){var C;(C=window.grecaptcha)==null||C.ready(function(){var Y=window.grecaptcha;Y?(I(Y.render(r,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:LUR.bind(null,r,WUu,f)})),f(1)):f(4)})})};
e8P=function(r,f){return function(){switch(f()){case 0:return r().captchaLoadingMessage;case 1:return r().challengeReason;case 3:return r().captchaSuccessfulMessage;case 2:return r().captchaCookieSetFailureMessage;case 4:return r().captchaFailedMessage;default:return r().challengeReason}}()};
_.ZN=function(){if(!JOP){var r=document.querySelector("#player.skeleton");r&&(_.bE(r),JOP=!0)}};
_.HbK=function(){return j$U=RMB()};
vzU=function(){return _.x(function(r){return ibK!==void 0?r.return():_.b(r,R8R(),0)})};
R8R=function(){return _.x(function(r){if(r.nextAddress==1)return _.b(r,KgU(),2);j$U=r.yieldResult;ibK=_.F_.addLowPriorityJob(R8R,5E3);_.wO(r)})};
ozl=function(r){var f=f===void 0?KUR:f;var I,C,Y=(I=r.responseContext)==null?void 0:(C=I.mainAppWebResponseContext)==null?void 0:C.trackingParam;if(!Y){f.increment("MISSING");var V,S,h,w,n,d;_.t7(new _.nf("282054944_a",{tB7:!!((V=r.responseContext)==null?0:(S=V.mainAppWebResponseContext)==null?0:S.loggedOut),v3p:((h=r.responseContext)==null?void 0:h.mainAppWebResponseContext)===void 0,o3M:r.responseContext===void 0,i6u:(w=r.playabilityStatus)==null?void 0:w.contextParams,cMh:(((n=r.streamingData)==
null?void 0:n.formats)||[]).length>0,lEM:(((d=r.streamingData)==null?void 0:d.adaptiveFormats)||[]).length>0,os:!!r.offlineState,cotn:r.cotn}));return 2}I="";try{I=yOu(Y)}catch(X){return f.increment("C_ERROR"),_.Fo(X),2}try{var z=_.URu(I);var g=s$q(z)}catch(X){return f.increment("P_ERROR"),_.Fo(X),2}g=_.Bk(g,Obd,1,_.qS());Y=[];g=_.E(g);for(z=g.next();!z.done;z=g.next())C=z.value,z=C.getPath(),I=(0,_.X0.getValueByKeys)(r,z.split(".")),I=String(I===void 0||I===null?"":I),C=C.getValue()||"",V=/[+\-\/_]/g,
I.replace(V,"")!==C.replace(V,"")&&(f.increment("MISMATCH"),_.N("ab_mis_log_err")&&(I=new _.nf("282054944_p",{xYM:z,g:String(I),e:String(C)}),_.Fo(I)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(z)||(z.match(/enforcementMessageViewModel/i)?Y.push(3):Y.push(2)));if(Y.length>0)return Math.max.apply(Math,_.Na(Y));f.increment("SUCCESS");return 1};
Zb$=function(r){var f=new GN;if(r.interpreterJavascript){var I=_.TG$(r.interpreterJavascript);I=iM(I).toString();var C=new Q$q;_.w5(C,6,I);_.CK(f,1,C,A_)}else r.interpreterUrl&&(I=_.PW(r.interpreterUrl),I=_.x1(I).toString(),C=new _.AOl,_.w5(C,4,I),_.CK(f,2,C,A_));r.interpreterHash&&_.kU(f,3,r.interpreterHash,A_);r.program&&_.kU(f,4,r.program,A_);r.globalName&&_.kU(f,5,r.globalName,A_);r.clientExperimentsStateBlob&&_.kU(f,7,r.clientExperimentsStateBlob,A_);return f};
BS=function(r){var f={};r=_.E(r.split("&"));for(var I=r.next();!I.done;I=r.next())I=I.value.split("="),I.length===2&&(f[I[0]]=I[1]);return f};
Gxw=function(r){return Number(r.t)||7200};
Jyc=function(){if(_.N("bg_st_hr"))return"havuokmhhs-0";var r,f=((r=performance)==null?void 0:r.timeOrigin)||0;return"havuokmhhs-"+Math.floor(f)};
kx$=function(){return new Promise(function(r){var f=window.top;f.ntpevasrs!==void 0?r(new qp(f.ntpevasrs)):(f.ntpqfbel===void 0&&(f.ntpqfbel=[]),f.ntpqfbel.push(function(I){r(new qp(I))}))})};
B1q=function(r){var f=r.rff.bind(r);_.OH("yt.aba.att",f);r=r.i4y.bind(r);_.OH("yt.aba.att2",r)};
u7w=function(r){switch(_.Cf(r.input)){case _.yC(q3u):var f={};return f.encryptedVideoId=r.innerTubeRequest.externalVideoId,f}return{}};
rzP=function(r){switch(_.Cf(r.input)){case _.yC(q3u):if(_.N("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.yC(u1):if(_.N("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&r.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.yC(DRu):var f,I;if(_.N("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((I=_.F((f=r.config)==null?void 0:f.command,
oFu))==null?0:I.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.IfK=function(r){var f;if(r.playlistVideoRenderer&&((f=r.playlistVideoRenderer)==null?0:f.engagementBar))return ffK(r.playlistVideoRenderer.engagementBar);if(_.F(r,DN)){var I;if(r=(I=_.F(r,DN))==null?void 0:I.engagementBar)return ffK(r)}return""};
ffK=function(r){if(!r)return"";r=_.F(r,_.CSE);if(r==null||!r.actions)return"";r=_.E(r.actions);for(r=r.next();!r.done;r=r.next()){r=_.F(r.value,_.YMU);var f=void 0;if((f=r)==null||!f.itemId)break;return r.itemId}return""};
_.lfq=function(r){var f;if(r.playlistVideoRenderer&&((f=r.playlistVideoRenderer)==null?0:f.videoId))return r.playlistVideoRenderer.videoId;if(_.F(r,DN)){var I,C;if(r=(I=_.F(r,DN))==null?void 0:(C=I.playlistItemData)==null?void 0:C.videoId)return r}return""};
_.VCq=function(r){var f;if(r.playlistVideoRenderer&&((f=r.playlistVideoRenderer)==null?0:f.voteCount))return r.playlistVideoRenderer.voteCount;if(_.F(r,DN)){var I,C;if(r=(I=_.F(r,DN))==null?void 0:(C=I.playlistItemData)==null?void 0:C.voteCount)return r}return 0};
_.rM=function(r,f){return _.f2(r.entities,"flowStateEntity",f)};
SMK=function(r,f,I,C){var Y=void 0;r=_.E(r[f.iconName]||[]);for(var V=r.next();!V.done;V=r.next()){V=V.value;var S=f.iconSize;var h=f.iconStyle;S=!S||S===V[2];var w=E9B[V[0]];C&&C!==V[1]||!S||h&&h!==w?h=!1:Y?(h=E9B[V[0]],h=!!f.iconStyle||h==="youtube_outline",S=Y.version<=V[1],h=(!!f.iconSize||V[2]===24)&&h&&S):h=!0;h&&(Y={name:f.iconName,style:E9B[V[0]],size:V[2],version:V[1],allowMirroring:!!V[3],url:I(f.iconName,V)})}return Y};
xLw=function(r,f,I,C){return r+(""+E9B[I[0]]+((C===void 0?0:C)?"_experimental":"")+"/"+f+"/v"+I[1]+"/")+(I[2]+"px.svg")};
fG=function(r){return _.N("web_bookmark_playlist_save_icon")?"bookmark":r};
hNw=function(r,f){return xLw("https://fonts.gstatic.com/s/i/",r,f)};
wy$=function(r,f){return xLw("https://fonts.gstatic.com/s/i/",r,f,!0)};
brl=function(r,f){return xLw("https://www.gstatic.com/youtube/img/icons/web/",r,f)};
pyw=function(r){var f=r.enabled;var I=r.itemPlaybackModel;var C=r.thumbnailElRef;var Y=r.containerElRef;var V=r.options;var S;_.az(function(){var h=Y==null?void 0:Y.value;var w,n=(w=C())==null?void 0:w.value;w=I();var d=V();if(f&&w&&h&&n&&(d==null?0:d.thumbnail)){var z,g;h={mediaRenderer:{data:w,hostElement:h},lockupElement:h,thumbnailElement:n,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.aB((z=w.inlinePlayerData)==null?void 0:z.onVisible),navigationEndpoint:_.aB((g=w.inlinePlayerData)==
null?void 0:g.onSelect),thumbnail:d.thumbnail,thumbnailOverlays:d.thumbnailOverlays||[],accessibilityText:d.accessibilityText||""},thumbnailSize:d.thumbnailSize,enableRounding:d.enableRounding}}}else h=void 0;if(z=h){var X;(X=S)==null||rY(X);S=O0(z)}});
_.$L(function(){var h;(h=S)==null||rY(h)})};
n9P=function(r){r=atob(r);for(var f=[],I=0;I<r.length;I++)f.push(r.charCodeAt(I));return new Blob([new Uint8Array(f)],{type:"image/png"})};
zNB=function(r,f,I,C){C=C===void 0?"INSERTION_POSITION_UNSPECIFIED":C;return r({targetId:f},function(Y){var V,S=(V=Y.contents)!=null?V:[];V=I!=null?I:[];var h=dLm(S);switch(C){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},Y,{contents:[].concat(_.Na(S.slice(0,h)),_.Na(V),_.Na(S.slice(h+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},Y,{contents:[].concat(_.Na(V),_.Na(S))});case "INSERTION_POSITION_LAST":return Object.assign({},Y,{contents:[].concat(_.Na(S),_.Na(V))});
default:return Y}})};
g9m=function(r,f,I,C,Y){Y=Y===void 0?"RELATIVE_INSERTION_POSITION_AFTER":Y;return r({targetId:f},function(V){var S,h=(S=V.contents)!=null?S:[];S=MCB(h,I);if(S<0)return V;S=Y==="RELATIVE_INSERTION_POSITION_BEFORE"?S:S+1;return Object.assign({},V,{contents:[].concat(_.Na(h.slice(0,S)),_.Na(C),_.Na(h.slice(S)))})})};
dLm=function(r){var f=r.findIndex(function(I){return _.F(I,_.Ip)});
return f>=0?f:r.length};
MCB=function(r,f){return r.map(function(I){return _.F(I,_.afw)}).findIndex(function(I){return(I==null?void 0:I.targetId)===f})};
NVd=function(r,f,I){return r({targetId:f},function(C){var Y,V=(Y=C.contents)!=null?Y:[];return Object.assign({},C,{contents:XyK(V,I)})})};
XyK=function(r,f){return r.filter(function(I){var C=f.includes;a:{I=_.E(Object.values(I));for(var Y=I.next();!Y.done;Y=I.next())if((Y=Y.value)&&Y.targetId){I=Y.targetId;break a}I=""}return!C.call(f,I||"")})};
_.$LR=function(r,f){return{engagementPanelSectionListRenderer:{panelIdentifier:r,identifier:f,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
F2u=function(r){return r.getOption("captions","tracklist",{includeAsr:!0})};
PSq=function(r){var f=F2u(r);if(f==null?0:f.length)return f;r.loadModule("captions");return F2u(r)};
tC$=function(r,f,I){if(r.getVideoData){var C,Y=(C=PSq(r))==null?void 0:C.find(function(V){return V.languageCode===I});
C=_.rG("/youtube/app/player_caption_language_entity_key","stringEntity",2);f.dispatch(_.hv("stringEntity",C,{key:C,value:(Y==null?void 0:Y.displayName)||""}));Y?r.setOption("captions","track",Y):(r.setOption("captions","stickyLoading",{}),r.setOption("captions","track",{}))}};
TV$=function(r){return r.getOption("captions","tracklist",{includeAsr:!0})};
czU=function(r){return r.getOption("captions","tracklist",{includeAsr:!0})};
W2P=function(r){var f=czU(r);if(f==null?0:f.length)return f;r.loadModule("captions");return czU(r)};
L2l=function(r){var f=r.getOption("captions","track");if(f)return f;r.loadModule("captions");return r.getOption("captions","track")};
mLq=function(r){var f=W2P(r);if(f!=null&&f.length){var I=L2l(r);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.VR("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(I==null?0:I.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.Na(f.map(function(C){return{listItemViewModel:{title:{content:C.displayName},
isSelected:C.languageCode===(I==null?void 0:I.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:C.languageCode}}]}}}}}}}})))}}}}}}}}};
HrE=function(r){return new Promise(function(f,I){if(r===void 0)_.Fo(Error("Ci"),"ERROR"),I(Error("Ci"));else{I=new _.eNw;var C=_.JzR();I=I.init();var Y=_.j2u(_.Lz("YPC_MB_URL"),!0);Promise.all([I,Y]).then(function(){var V=payments.business.integration.ClientTokenFactory.createClientToken(r,C);f(V)})}})};
v9q=function(r,f,I,C,Y,V,S){var h=_.eu();I=I.replace(/-/g,"+").replace(/_/g,"/");var w=_.xI().get("hl"),n=_.CG(_.el),d=f==null?void 0:f.element;d&&_.QU(d);irK(f,!0);_.RNB(n,I,h.resolve,function(){d&&_.AH(d)},function(z){d&&_.AH(d);
h.reject(z)},w,C?function(z){C&&_.mC(r,C,{backend_analytics:z})}:void 0,h.resolve,Y,V,S);
return h.promise};
irK=function(r,f){!(r=r==null?void 0:r.element)||r.tagName!=="YT-BUTTON-RENDERER"&&r.tagName!=="YTD-BUTTON-RENDERER"||(r.disabled=f)};
K2K=function(){var r=_.VR("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.AZ(r),actionButton:{buttonRenderer:OkK()}}},popupType:"TOAST"}};
yzB=function(){var r=_.VR("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.AZ(r),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
ULq=function(r){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:r}]}}};
Yw=function(r,f,I,C){var Y;return _.x(function(V){if(V.nextAddress==1)return _.l_(V,2),_.b(V,r,4);if(V.nextAddress!=2)return(Y=_.bX(f.getState().entities).length>0)?V.return({title:_.AZ(_.VR("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.AZ(_.VR("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:sLB()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
V.return(oS$(I,C));_.ha(V);return V.return(oS$(I,C))})};
s2P=function(r,f){return f?f==="PPSV"||Z7K(r,f):!1};
OrU=function(r){r.responseContext||(r.responseContext={});r.responseContext.maxAgeSeconds=0;return r};
VW=function(r){var f;return _.x(function(I){return I.nextAddress==1?_.b(I,o9E(r,"service:topbar:fallback"),2):(f=I.yieldResult)&&_.lO(f)?I.return(OrU(_.lO(f))):I.return()})};
Q2m=function(r){var f;return _.x(function(I){return I.nextAddress==1?_.b(I,o9E(r,"service:downloads_settings:fallback"),2):(f=I.yieldResult)&&_.lO(f)?I.return(f):I.return()})};
o9E=function(r,f){var I;return _.x(function(C){if(C.nextAddress==1)return r?_.b(C,r.get(f),2):C.return();I=C.yieldResult;return!I||!_.lO(I)||!isNaN(Number(I.data.expireTimestampMs))&&I.isExpired()?C.return():C.return(I)})};
AzK=function(r){var f=_.a().resolve(Ed).getState().entities;return r.playlistId?s2P(f,r.playlistId):!1};
ZrK=function(r,f){var I;if(f==null?0:(I=f.requestTemplate)==null?0:I.panelId)r.panelId=f.requestTemplate.panelId;var C;if(f==null?0:(C=f.requestTemplate)==null?0:C.params)r.params=f.requestTemplate.params};
kSE=function(){if(GSP)return GSP();var r=!_.N("idb_response_store_auth_killswitch"),f={};GSP=QD("yt-it-response-store",{objectStores:(f.ResponseStore={addedAtVersion:1},f),shared:!r,upgrade:function(I,C){C(1)&&(I=m8(I,"ResponseStore",{keyPath:["key","clientName"]}),eM(I,"byExpiration","expireTimestampMs"),eM(I,"byInterface","clientName"))},
version:1});return GSP()};
BVK=function(r){return _.R1(kSE(),r)};
uHl=function(r,f){var I;return _.x(function(C){return C.nextAddress==1?_.b(C,_.o1(),2):(I=C.yieldResult)?C.return(new qMl(r,f,I)):C.return()})};
DLB=function(r){var f=Object.keys(r)[0];if(f)return r.screenExit&&(f=f+";"+r.screenExit.screen),f};
rfU=function(r){var f=new Map;r=_.E(r);for(var I=r.next();!I.done;I=r.next())I=I.value,I!=null&&(f.has(I.taskType)||f.set(I.taskType,[]),f.get(I.taskType).push(I));return f};
f7U=function(r){return!isNaN(r)&&r>0};
I7q=function(r){r=[].concat(_.Na(r)).sort(function(I,C){return I-C});
var f=Math.floor(r.length/2);return r.length%2?r[f]:(r[f-1]+r[f])/2};
l7R=function(r,f){r=r===void 0?$dq:r;f=f===void 0?{}:f;_.OH("yt.logging.errors.log",_.Fo);XIu();CvU(c3$(),f);window.onerror=r;YYR=NFK;window.addEventListener("unhandledrejection",function(I){if(I.reason instanceof Error){var C=I.reason;_.TL(C,{source:"unhandledrejection"});C.name==="AbortError"&&(C.level="WARNING")}NFK(I.reason);I.preventDefault()})};
_.Vfm=function(r){return r.a11y.ephemeralAction||null};
_.Edm=function(r){var f,I,C,Y,V,S,h,w,n,d,z,g,X,P,W,m,v,O,k,Z,Cw,rR,EP,Pu,Wu,cu,OP,iU,oR,vu,wB,qT,gB,C8,Es,J_,xC,r2,F9,SK;return _.x(function(FX){if(FX.nextAddress==1)return _.b(FX,_.Er(r,{mode:"readonly",enableRetries:!0},function(iV){return So(iV,"playbackData").then(function(s7){var W4=s7.map(function(kq){return kq.transfer}).filter(function(kq){return!!kq}),Qq=s7.map(function(kq){return kq.offlineVideoPolicy}).filter(function(kq){return!!kq}),Gs=s7.filter(function(kq){return!!kq.key}).map(function(kq){return _.rG(_.qo(kq.key).entityId,
"downloadStatusEntity")});
W4=So(iV,"transfer",W4);Qq=So(iV,"offlineVideoPolicy",Qq);Gs=So(iV,"downloadStatusEntity",Gs);var $C=W4.then(function(kq){kq=kq.reduce(function(XX,hU){(hU==null?0:hU.offlineVideoStreams)&&XX.push.apply(XX,_.Na(hU.offlineVideoStreams));return XX},[]).filter(function(XX){return!!XX});
return So(iV,"offlineVideoStreams",kq)});
return mM.all([W4,Qq,$C,Gs]).then(function(kq){var XX=_.E(kq);kq=XX.next().value;var hU=XX.next().value;var P4=XX.next().value;XX=XX.next().value;return[s7,kq,hU,P4,XX]})})}),2);
if(FX.nextAddress!=3)return f=FX.yieldResult,_.b(FX,_.Er(r,{mode:"readonly",enableRetries:!0},function(iV){return So(iV,"mainDownloadsListEntity").then(function(s7){var W4,Qq;return(Qq=(W4=s7[0])==null?void 0:W4.downloads)!=null?Qq:[]})}),3);
I=FX.yieldResult;C=_.E(f);Y=C.next().value;V=C.next().value;S=C.next().value;h=C.next().value;w=C.next().value;n=Y;d=V;z=S;g=h;X=w;P={};W={};m={};v={};O={};k=[];Z=_.E(d);for(Cw=Z.next();!Cw.done;Cw=Z.next())(rR=Cw.value)&&(P[rR.key]=rR);EP=_.E(z);for(Pu=EP.next();!Pu.done;Pu=EP.next())(Wu=Pu.value)&&(W[Wu.key]=Wu);cu=_.E(X);for(OP=cu.next();!OP.done;OP=cu.next())(iU=OP.value)&&(m[iU.key]=iU);oR=_.E(g);for(vu=oR.next();!vu.done;vu=oR.next())(wB=vu.value)&&(v[wB.key]=wB);qT=_.E(I);for(gB=qT.next();!gB.done;gB=
qT.next())C8=gB.value,Es=void 0,O[(Es=C8.videoItem)!=null?Es:""]=!0,C8.videoItem&&(xC=J_=void 0,r2=(xC=(J_=_.qo(C8.videoItem))==null?void 0:J_.entityId)!=null?xC:"",k.push({externalVideoId:r2}));F9=n.filter(function(iV){if(!iV||!iV.key||!iV.offlineVideoPolicy)return!1;iV=_.qo(iV.key).entityId;iV=_.rG(iV,"downloadStatusEntity");var s7;return!(iV&&((s7=m[iV])==null?void 0:s7.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
SK=F9.map(function(iV){var s7=P[iV.transfer],W4=[];if(s7==null?0:s7.offlineVideoStreams)for(var Qq=_.E(s7.offlineVideoStreams),Gs=Qq.next();!Gs.done;Gs=Qq.next())(Gs=v[Gs.value])&&W4.push(Gs);Qq=W[iV.offlineVideoPolicy];Gs=O;var $C=iV==null?void 0:iV.playerResponseTimestamp,kq=_.qo(Qq.key).entityId;iV=_.rG(kq,"mainVideoEntity");if(Qq.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var XX="OFFLINE_VIDEO_STATE_DISABLED";Qq.expirationTimestamp&&Number(Qq.expirationTimestamp)<Date.now()/1E3&&(XX="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Qq.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")XX="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(s7==null?void 0:s7.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":XX="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":XX="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":XX="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":XX="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":XX="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":XX="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:XX="OFFLINE_VIDEO_STATE_UNKNOWN"}if(XX==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(s7==null?void 0:s7.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":XX="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":XX="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":XX=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}kq={id:kq,videoState:XX};if(s7==null?0:s7.cotn)kq.cotn=s7.cotn;if(s7==null?0:s7.maximumDownloadQuality)kq.selectedVideoQuality=s7==null?void 0:s7.maximumDownloadQuality;if(s7==null?0:s7.lastProgressTimeMs)kq.lastProgressTimeMs=s7.lastProgressTimeMs;$C&&(kq.playerResponseSavedTimeMs=String(Number($C)*1E3));s7=String;$C=0;W4=_.E(W4);for(XX=W4.next();!XX.done;XX=W4.next())if(XX=XX.value,XX.streamsProgress){XX=_.E(XX.streamsProgress);for(var hU=XX.next();!hU.done;hU=
XX.next()){var P4=void 0;$C+=Number((P4=hU.value.numBytesDownloaded)!=null?P4:0)}}kq.downloadedBytes=s7($C);kq.selectedOfflineMode=Gs[iV]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Qq.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(kq.offlinePlaybackDisabledReason=Qq.offlinePlaybackDisabledReason);return kq});
return FX.return({offlineVideos:SK,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:k}}})})};
SYP=function(){var r;return _.x(function(f){return f.nextAddress==1?_.b(f,_.Yx(),2):(r=f.yieldResult)?f.return(_.Edm(r)):f.return({state:"PES Unavailable"})})};
wQR=function(){var r,f,I,C;return _.x(function(Y){if(Y.nextAddress==1)return _.b(Y,_.Yx(),2);if(Y.nextAddress!=3)return(r=Y.yieldResult)?_.b(Y,xYB(r),3):Y.return({state:"PES Unavailable"});f=Y.yieldResult;I={};C=f.reduce(function(V,S){V[S.key]=S;return V},I);
return Y.return(hzE(C))})};
hzE=function(r){for(var f={},I=[],C=_.E(Object.keys(r)),Y=C.next();!Y.done;Y=C.next()){var V=Y.value;Y=r[V];var S=void 0;if(((S=Y)==null?void 0:S.entityType)==="mainVideoEntity"){delete r[V];var h=Y.data;Y={};if(h){var w=void 0;S=(w=h.videoId)!=null?w:"vid-"+V;V=r;Y.video=h;delete Y.video.formattedDescription;delete Y.video.thumbnail;h.owner&&(w=V[h.owner],w==null?0:w.data)&&(delete V[w.key],Y.video.owner=w.data,delete Y.video.owner.avatar);if(h=h.downloadState)if(w=V[h],w==null?0:w.data)if(delete V[h],
h=w.data.playbackData)if(w=V[h],w!=null&&w.data){delete V[h];h=w.data;delete h.playerResponseJson;Y.playbackData=h;if(h.transfer&&(w=V[h.transfer],w==null?0:w.data)){delete V[w.key];var n=w.data;Y.transfer=n;w=[];n=_.E(n.offlineVideoStreams||[]);for(var d=n.next();!d.done;d=n.next())if(d=V[d.value])delete V[d.key],w.push(d.data);w&&(Y.streams=w)}(h=h.offlineVideoPolicy)&&(h=V[h])&&h.data&&(delete V[h.key],Y.offlineVideoPolicy=h.data)}f[S]=Y}}else Y&&Y.entityType==="offlineOrchestrationActionWrapperEntity"&&
Y.data&&(delete r[Y.key],S=Y.data,V=void 0,I.push({id:S.rootActionId,type:((V=S.actionProto)==null?void 0:V.actionType)||"",entity:Y}))}f.wrapperEntities=I;Object.keys(r).length>0&&(f.unknownKeys=r);return f};
buE=function(){var r,f,I,C,Y,V,S,h,w;return _.x(function(n){if(n.nextAddress==1)return r=!!(new _.WW("")).expiringStorage_,C=!!((f=_.Yq.crypto)==null?0:(I=f.subtle)==null?0:I.importKey),Y=!!_.Yq.BroadcastChannel,V=!!_.Yq.navigator.locks,_.b(n,Bdw(),2);S=n.yieldResult;h=r&&C&&Y&&V&&S;w={isSupported:h};if(h)return n.return(w);w.missingBrowserFeatures=[];S||w.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");r||w.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
C||w.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");Y||w.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");V||w.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return n.return(w)})};
pQE=function(){var r;return!((r=SQ?SQ:null)==null||!r.window)};
_.dYl=function(r){if(eK()&&_.wuU("Chromium")>=120){var f=_.ndl().mediaSession;try{f.setActionHandler("enterpictureinpicture",function(){r()})}catch(I){}}};
_.xw=function(){return!!window.documentPictureInPicture&&eK()};
zzm=function(r){for(var f=[],I=_.E(document.styleSheets),C=I.next(),Y={};!C.done;Y={node$jscomp$724:void 0},C=I.next())Y.node$jscomp$724=C.value.ownerNode,Y.node$jscomp$724&&(Y.node$jscomp$724 instanceof HTMLStyleElement||Y.node$jscomp$724 instanceof HTMLLinkElement)&&f.push(new Promise(function(V){return function(S){var h=V.node$jscomp$724.cloneNode(!0);h.onload=function(){S()};
h.onerror=function(){_.t7(Error("ej"));S()};
r.document.head.appendChild(h)}}(Y)));
return Promise.all(f)};
T$B=function(r){var f=[_.BG(Mfc),_.BG(gdw),_.BG(a7w)];XQU(window.document.documentElement,r.document.documentElement,[_.BG(N$P),_.BG($YE),_.BG(Frl),_.BG(Pvl),_.BG(tfc)]);XQU(window.document.body,r.document.body,f)};
XQU=function(r,f,I){r=_.E(r.attributes);for(var C=r.next();!C.done;C=r.next())if(C=C.value)try{_.ys(I,f,C.name,C.value)}catch(Y){}};
Wr$=function(r,f){r=new _.hF(r.document.documentElement);r.start(cfR,f);return r};
Lrd=function(r){var f=r.document.documentElement;f.addEventListener("click",function(I){fam(f,I)});
f.addEventListener("touchstart",function(I){VLl(I)});
f.addEventListener("mousedown",function(I){VLl(I)})};
ezP=function(r,f,I,C){C=C===void 0?!1:C;f=new mYP(f||r,I||r);return{x:r.x+((C===void 0?0:C)?f.lengthX*-1:f.lengthX)*.2,y:r.y+((C===void 0?0:C)?f.lengthY*-1:f.lengthY)*.2}};
JfB=function(r){if(!r)return!1;var f=r.status==="OK"||r.status==="LIVE_STREAM_OFFLINE",I,C,Y,V=(Y=(I=r.errorScreen)==null?void 0:I.playerLegacyDesktopYpcTrailerRenderer)!=null?Y:(C=r.errorScreen)==null?void 0:C.ypcTrailerRenderer;return!!f||!!V};
_.jAK=function(r,f){if(!r)return!1;var I,C=(I=r.errorScreen)==null?void 0:I.playerLegacyDesktopYpcOfferRenderer,Y;f=!!(f==null?0:(Y=f.playerOverlayRenderer)==null?0:Y.gatedActionsOverlayRenderer);return!!JfB(r)||!!C||!!f};
HuB=function(r){return r.includes("gclid")||r.includes("gad_source")};
vdB=function(r){var f=[],I=0;return{push:function(C){f[I]=C;I=(I+1)%r},
iterate:function(){return function Y(){var V,S,h,w;return _.iuB(Y,function(n){switch(n.nextAddress){case 1:_.SP(n,2),V=f.length,S=0;case 4:if(!(S<V)){n.jumpTo(2);break}h=I+S;w=_.RzP;return _.b(n,f[h%V],7);case 7:w(n.yieldResult);S++;n.jumpTo(4);break;case 2:_.VY(n),_.xV(n,0)}})}()}}};
yfw=function(){var r=_.Bw("web_max_tracing_events",0);_.N("web_enable_tracing")&&r>0&&KrB(r)};
KrB=function(r){var f=vdB(r);k9m({sample:function(I,C){return I==="event"?!UY$.has(C==null?void 0:C.type):!1},
spanProcessors:[{onSpanStart:function(I){f.push(I)}}]});
J3m.subscribe("handleError",function(I){Object.assign(I.params,{breadcrumbs:JSON.stringify(Array.from(f.iterate()))})})};
sAd=function(r){return new Promise(function(f){window.setTimeout(f,r)})};
OuR=function(r){var f={bicf:function(V){r.ykU=V},
blc:function(){return r.getLatestChallengeResponse()},
bcr:function(V){r.yyA.push(V)}},I=window.top;
I.ntpevasrs=f;if(I.ntpqfbel!==void 0)for(var C=_.E(I.ntpqfbel),Y=C.next();!Y.done;Y=C.next())Y=Y.value,Y(f);I.ntpqfbel=void 0};
odu=function(r){return _.x(function(f){if(f.nextAddress==1)return _.l_(f,2),_.b(f,r.c0Y(),4);if(f.nextAddress!=2)return _.Hd(f,0);_.ha(f);_.wO(f)})};
QAK=function(r){var f,I;(f=r.ytcsi)==null||(I=f.tick)==null||I.call(f,"pot_ist")};
AfK=function(r){if(r instanceof Error){var f=_.jH("yt.logging.errors.log");f&&f(r,"WARNING")}};
Zuw=function(r){try{var f=JSON.parse(r);if(f.bgChallenge)return f}catch(I){}};
keU=function(){var r=window,f={networkStatusManagerPromise:_.a().resolve(new j6U(_.ix)),initialChallengeSli:_.N("wpo_att_sli")?new _.QPK("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};r=r===void 0?window:r;var I=r.ytAtR,C;f==null||(C=f.initialChallengeSli)==null||_.wM(C);if(I){if(I=Zuw(I)){var Y;f==null||(Y=f.initialChallengeSli)==null||_.bO(Y,"SUCCESS");Geq(I,f)}r.ytAtR=void 0}else r.ytAtRC=function(V){if(V=Zuw(V)){var S;f==null||(S=f.initialChallengeSli)==null||_.bO(S,
"SUCCESS");Geq(V,f);r.ytAtRC=void 0}}};
urE=function(){if(B$U)return B$U;try{var r=_.wL("IFRAME");_.LK(r,_.u_(qYK));r.sandbox.add("allow-same-origin");r.style.display="none";document.body.appendChild(r);return B$U=r}catch(f){r=new _.nf("Failed to create sandbox iframe"),_.Fo(r)}};
DYR=function(r){var f,I;return(I=r==null?void 0:(f=r.contentWindow)==null?void 0:f.fetch)!=null?I:window.fetch};
rlq=function(r){var f,I;return(I=r==null?void 0:(f=r.contentWindow)==null?void 0:f.JSON.parse)!=null?I:JSON.parse};
fQ$=function(r){var f,I;return(I=r==null?void 0:(f=r.contentWindow)==null?void 0:f.Request)!=null?I:window.Request};
YFK=function(){if(QbP()==="hidden")var r="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else QbP()==="visible"&&(r="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",IQd=null);r&&Cjq(r)};
Cjq=function(r){if(r==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||r==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(lQ$===r)return;lQ$=r}var f=9E4+Math.random()*2E3;if(r!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Zs()>f)&&QbP()==="visible"){f=-1;IQd&&(f=Math.round((0,_.Ad)()-IQd));var I=String;var C=_.jH("_fact",window);C=C==null||C==-1?-1:Math.max(Date.now()-C,0);_.NW("foregroundHeartbeat",{firstActivityMs:I(C),clientDocumentNonce:PlB,index:String(V0K),lastEventDeltaMs:String(f),trigger:r});
_.OH("_fact",-1,window);V0K++;IQd=(0,_.Ad)()}};
_.EmU=function(){try{return!!self.sessionStorage}catch(r){return!1}};
SFd=function(){var r=navigator;return new Promise(function(f,I){var C;(C=r.webkitTemporaryStorage)!=null&&C.queryUsageAndQuota?r.webkitTemporaryStorage.queryUsageAndQuota(function(Y,V){f({usage:Y,quota:V})},function(Y){I(Y)}):I(Error("mj"))})};
xgu=function(r,f){var I={errorSeverity:f.errorSeverity.toString(),wizFeatureFlags:Object.entries(f.featureFlags).join("\n")};a5R(f,I);f=f.errorSeverity;f===3?_.Fo(r,"ERROR",void 0,void 0,void 0,I):f===2&&_.Fo(r,"WARNING",void 0,void 0,void 0,I);_.N("cow_if_errors_in_popup")&&f===3&&r.message.indexOf("<If>")!==-1&&window.alert(r.message)};
heR=function(r,f,I){r.componentType!==ny&&I instanceof HTMLElement&&f&&!_.N("cow_logging_in_component_wrapper")&&CLc(I,f,!0)};
wUl=function(r,f,I){f=f===void 0?{}:f;var C,Y=(C=_.F(r.commandMetadata,_.oo))==null?void 0:C.url;C=f.form||{};!I||C.element||C.skipDefaultElement||(f.form=f.form||{},f.form.element=I);if(Y&&Y!=="/service_ajax")return{type:0,command:r,form:f.form};if(_.N("kevlar_service_command_check")){if(_.LQ(_.a().resolve(_.pJ),r))return Object.assign({},{type:1,command:r},f)}else{var V;if((V=_.F(r.commandMetadata,_.oo))==null?0:V.apiUrl)return Object.assign({},{type:1,command:r},f)}return{type:2,command:r,form:f.form}};
bRP=function(r){if(r.form){var f=r.form,I=Object.assign({},f);f=f.element;I=(delete I.element,I);if(f)return[_.Do(f,[r.command,I,r.commandController])]}return[]};
pUE=function(r){if(r.form){var f=r.form,I=Object.assign({},f);f=f.element;I=(delete I.element,I);f&&_.rX(f,[r.command],f,I)}};
dgP=function(r,f,I){var C=new nm$(r,f),Y=new pG(r,f,I);r={"/youtubei/v1/browse":new nG(r,f,I),"/youtubei/v1/player":C,"/youtubei/v1/navigation/resolve_url":new dM,"/youtubei/v1/next":Y,"/youtubei/v1/guide":new zW(I),"/youtubei/v1/search":new Mi(r,f,I),"/youtubei/v1/reel/reel_item_watch":new gM(r,f,I),"/youtubei/v1/get_watch":new ap(C,Y)};r["/youtubei/v1/account/account_menu"]=new XC;r["/youtubei/v1/notification/get_notification_menu"]=new Ni;return r};
FC=function(){var r=_.a().resolve($w);return Promise.resolve(zeU(r,_.Yq.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
M0d=function(r){return r&&(r=_.Pa(_.Psl(r)))?(new URLSearchParams(r)).get("service"):null};
ca=function(r,f){_.oB(_.tF(),function(){_.Xc("adl")});
_.a().resolve(gmq)(f);r=r.root;r.loadData&&r.loadData(f);(f==null?0:f.response)?_.bO(Ghc(),"SUCCESS"):_.t7(new _.nf("Lifecycle: No response in data",_.mO("IS_SHELL_LOAD"),f?f.page:"NO_PAGE",f?f.endpoint:"NO_ENDPOINT"));r.polymerController.$["page-manager"].lazyPrepareCriticalPages((f==null?void 0:f.page)||"",f.endpoint);var I,C;((C=_.F(f==null?void 0:(I=f.endpoint)==null?void 0:I.commandMetadata,_.oo))==null?0:C.webPageType)&&_.K2().dispatch(_.TW(_.F(f.endpoint.commandMetadata,_.oo).webPageType))};
aQK=function(){var r,f;return _.x(function(I){switch(I.nextAddress){case 1:r=window;if(!r.getDataPromise){I.jumpTo(2);break}_.l_(I,3);return _.b(I,r.getDataPromise(),5);case 5:return I.return(I.yieldResult);case 3:return _.ha(I),_.b(I,FC(),6);case 6:return I.return(I.yieldResult);case 2:if(r.getInitialData)return f=r.getInitialData(),r.getInitialData=void 0,I.return(f);throw Error("oj`"+_.Yq.location.href);}})};
N0K=function(){_.Ww("CSI_SERVICE_NAME","youtube");_.gX({loadType:"cold"});_.N("kevlar_log_lcp")&&XUK(function(r){_.Xc("lcp",r.value)})};
$gR=function(){var r=_.Jy(document.location.href,"enable");r&&r.indexOf("scraper")>-1&&_.Ww("ADD_SCRAPER_ATTRIBUTES",!0)};
clE=function(r){var f=r.root;r=[Fal,PjK,_.Wa];_.N("web_feedback_endpoint_autolog_allowlist_killswitch")&&r.push(_.LG,t0K);T0K(function(I,C){return wUl(I,C,f)},function(I){if(!I.command)return[];
var C;((C=I.form)==null?0:C.element)?I.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},I.form,{endpoint:I.command})})):f.handleNavigate(I);return[]},r);
_.a().addProvider({provide:_.Gg,useValue:_.qv.instance})};
LaU=function(){var r={},f={},I;for(I in WaP){var C=_.E(_.ld(WaP[I],void 0,"NBH2te"));r[I]=C.next().value;f[I]=C.next().value}return[r,function(Y){for(var V in Y){var S=void 0;(S=f[V])==null||S(Y[V])}}]};
_.JlR=function(r,f){var I=_.X0.getValueByKeys(r,"contents","twoColumnWatchNextResults","results","results","contents"),C=_.X0.getValueByKeys(r,"contents","twoColumnWatchNextResults","playlist","playlist")||null,Y=null,V=null;if(C)Y=_.X0.getValueByKeys(C,"titleText"),V=_.X0.unsafeClone(_.X0.getValueByKeys(C,"longBylineText")),I="",V&&(I=_.Rr(V)),V=_.iX(I);else if(I){I=_.E(I);for(var S=I.next();!S.done;S=I.next())S=S.value,S.videoPrimaryInfoRenderer&&(Y=_.X0.getValueByKeys.apply(_.X0,[S].concat(_.Na(mg$)))),
S.videoSecondaryInfoRenderer&&(V=_.X0.getValueByKeys.apply(_.X0,[S].concat(_.Na(eeR))))}else _.Hw(Error("tj"));var h;r.currentVideoEndpoint?h=r.currentVideoEndpoint:_.Hw(Error("uj"));var w;f&&(w=_.X0.getValueByKeys(f,"playabilityStatus","miniplayer","miniplayerRenderer"));r={miniplayerTitle:Y,miniplayerSubtitle:V,watchEndpoint:h,playlistData:C};w&&(r.miniplayerRenderer=w);return r};
jSu=function(r){if(r)return _.dF(r)};
_.HRR=function(){return{isFullscreen:function(){throw Error("vj");},
toggleFullscreen:function(){throw Error("wj");},
exitFullscreen:function(){throw Error("xj");},
isAutonavEnabled:function(){throw Error("yj");},
setAutonavEnabled:function(){throw Error("zj");},
isAutoplaySetExplicitly:function(){throw Error("Aj");}}};
iRu=function(r){return r.videoDuration?r.numTaps>1&&r.tapDirection!==0?_.my(r.draggedTime/r.videoDuration,0,1):_.my((r.playedTime||0)/r.videoDuration,0,1):0};
Re$=function(r){return r.videoDuration?r.isDragging||r.numTaps>1&&r.tapDirection!==0?_.my(r.draggedTime/r.videoDuration,0,1):_.my((r.playedTime||0)/r.videoDuration,0,1):0};
Kaq=function(r){var f,I,C;return _.F(r==null?void 0:(f=r.markersMap)==null?void 0:(I=f.find(function(Y){return Y.key==="HEATSEEKER"}))==null?void 0:(C=I.value)==null?void 0:C.heatmap,vmm)};
ylm=function(r){var f,I;return(I=(f=Kaq(r))==null?void 0:f.heatMarkersDecorations)!=null?I:[]};
Ugq=function(r){if(_.N("mweb_supported_chapters_killswitch"))return!0;var f;return!!(r==null?0:(f=r.markersMap)==null?0:f.find(function(I){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(I.key)}))};
_.sSP=function(r){var f=Object,I=f.assign,C;r={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(C=r==null?void 0:r.getPlayerState())!=null?C:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return I.call(f,{},{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},r,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
ORK=function(r){return function(f){var I=r(),C,Y=(C=I.playerApi)==null?void 0:C.getPlayerState();f&&f!==I.playerState&&(f===1||f===2)&&I.setState({playerState:Y})}};
QSU=function(r){return function(f){var I=r(),C=I.playerApi;C&&(f==null?void 0:f.type)==="newdata"&&(oml&&(clearTimeout(oml),oml=void 0),_.N("web_shorts_use_progress_state_for_gapless")?(f=C==null?void 0:C.getProgressState(f==null?void 0:f.playertype),f=f.seekableEnd-f.seekableStart):f=C==null?void 0:C.getDuration(f==null?void 0:f.playertype),I.setState({playedTime:0,videoDuration:f}))}};
Alu=function(r){return function(f){var I=r(),C=I.playerApi;if(C){var Y=C.getPresentingPlayerType();_.N("web_shorts_use_progress_state_for_gapless")?(C=C.getProgressState(Y),C=C.seekableEnd-C.seekableStart):C=C.getDuration(Y);I.setState({playedTime:f,videoDuration:C})}}};
kmE=function(r){var f=r.element;var I=r.veType;var C=r.storedVisualElement===void 0?null:r.storedVisualElement;var Y=r.elementIndex===void 0?0:r.elementIndex;r=r.clientYouTubeData;var V=_.t1();V!==ZRU&&(GmE.clear(),ZRU=V);if(f.visualElement&&GmE.has(f.visualElement))return null;if(C&&GmE.has(C))return f.visualElement=C,null;I=_.fv(_.IB(),{veType:I,elementIndex:Y,clientYouTubeData:r});if(!I)return null;f.visualElement=I;GmE.add(I);return I};
_.eQ=function(r,f,I,C){I=I===void 0?null:I;C=C===void 0?Eyq:C;var Y=Y===void 0?null:Y;wF(function(){if(f){I instanceof Function&&(I=I());var V=kmE({element:f,veType:r,storedVisualElement:I,clientYouTubeData:void 0});V&&(hfR(f,Y),C(V))}})};
qFc=function(r){_.eQ(112394,r,function(){return B0E},function(f){B0E=f})};
rjE=function(r,f){if(!r)return[];var I,C,Y;r=((I=r.markersMap)==null?void 0:(C=I.find(function(V){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(V.key)}))==null?void 0:(Y=C.value)==null?void 0:Y.chapters)||[];
!u4B(r)||(f==null?0:f.ignoreStub)||(r=[DgR()].concat(_.Na(r)));return r};
DgR=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
u4B=function(r){if(r.length===0)return!1;var f;return((f=_.F(r[0],JF))==null?void 0:f.timeRangeStartMillis)!==0};
jQ=function(r){return r?r.timeRangeStartMillis||0:0};
I_P=function(r,f){if(r.isDragging&&f)return r=f_U(r,f),r===-1?DgR():rjE(f)[r]};
f_U=function(r,f){return r.isDragging&&f?rjE(f,{ignoreStub:!0}).findIndex(function(I,C,Y){I=CYm(r);return Y2K(I,Y,C).scrubberHovering}):-1};
CYm=function(r){return Object.assign({},r,{videoDuration:r.videoDuration*1E3,playedTime:r.playedTime*1E3,draggedTime:r.draggedTime*1E3})};
Y2K=function(r,f,I){var C=jQ(_.F(f[I],JF));f=jQ(_.F(f[I+1],JF))||r.videoDuration;I=r.isDragging;var Y;if(Y=r.isDragging)Y=r.draggedTime,Y=Y!==null&&Y>=C&&Y<f;var V=r.playedTime;return V!==null&&V>=C&&V<f?{videoPosition:"active",isScrubbing:I,scrubberHovering:Y}:r.playedTime<C?{videoPosition:"pending",isScrubbing:I,scrubberHovering:Y}:{videoPosition:"seen",isScrubbing:I,scrubberHovering:Y}};
l_u=function(r,f){return r.videoPosition==="seen"||(f===void 0?0:f)>0};
VeP=function(r,f,I){f=r/f.storyboardInterval;var C=rjE(I);if(!C.length)return-f*72;I=0;C=_.E(C);for(var Y=C.next();!Y.done;Y=C.next())if(jQ(_.F(Y.value,JF))/1E3<r)I++;else break;return-(f*72)-I*56};
Ebq=function(r){return r?r.width/r.columns:0};
S2B=function(r){return r.isHovering?r.hoveredTime:r.draggedTime};
xOm=function(r,f){r=r.draggedTime*1E3;return r>=f.visibleTimeRangeStartMillis&&r<=f.visibleTimeRangeEndMillis};
_.hJw=function(r){if(r===void 0||Number.isNaN(r))return"--:--";var f=Math.abs(Math.floor(r)),I=Math.floor(f/86400),C=Math.floor(f%86400/3600),Y=Math.floor(f%3600/60);f=Math.floor(f%60);var V="";I>0&&(V+=I+":",C<10&&(V+="0"));if(I>0||C>0)V+=C+":",Y<10&&(V+="0");V+=Y+":";f<10&&(V+="0");V+=f;return r>=0?V:"-"+V};
wv$=function(r,f){return function(){var I=S2B(r());var C=f();var Y=r().playerApi;if(Y&&Y.getNumberOfStoryboardLevels()!==0){var V=Y.getStoryboardFrameIndex(I,1);V!==-1?C=Y.getStoryboardFrame(V,1):(I=Y.getStoryboardFrameIndex(I,0),Y=Y.getStoryboardFrame(I,0),C&&Y&&(Y.height*=3,Y.width*=3),C=Y)}else C=null;if(!C)return null;f()&&(C.width=90*C.columns,C.height=160*C.rows);return C}};
_.Ha=function(r){if(!r||r.getVideoData)return r};
baK=function(){var r;return{playerApi:(r=_.Db())!=null?r:void 0}};
_.MeK=function(r){function f(rR){rR!==0||z?rR>50&&(z||!X)?(g(!1),P(!0)):rR<=50&&(z||X)&&(g(!1),P(!1)):g(!0)}
function I(){var rR;return _.x(function(EP){if(EP.nextAddress==1)return _.b(EP,_.uB(),2);(rR=EP.yieldResult)&&(rR.isMuted()?g(!0):g(!1));_.wO(EP)})}
var C=r.noSlider;var Y=r.orientation;r=_.yy();var V=_.yy(),S=_.Ue(),h=_.E(IK(!1)),w=h.next().value,n=h.next().value,d=_.E(IK(!1));h=d.next().value;d=d.next().value;var z=h,g=d;d=_.E(IK(!0));h=d.next().value;d=d.next().value;var X=h,P=d;h=Y==="vertical_down";_.$E(function(){function rR(){n(!0)}
function EP(){n(!1)}
C?(I(),f(z?0:100)):S&&S.value&&(S.value.addEventListener("focus",rR),S.value.addEventListener("focusout",EP),pvc(S.value).then(function(){f(Number(nbU(S.value)))}));
V&&V.value&&(V.value.addEventListener("focus",rR),V.value.addEventListener("focusout",EP));return function(){var Pu;S==null||(Pu=S.value)==null||Pu.removeEventListener("focus",rR);var Wu;S==null||(Wu=S.value)==null||Wu.removeEventListener("focusout",EP);V.value.removeEventListener("focus",rR);V.value.removeEventListener("focusout",EP)}});
var W=_.IC(function(){if(S&&S.value){var rR=Number(nbU(S.value));dOE(rR);S.value.style.setProperty("--gradient-percent",rR+"%");f(rR)}return!1});
d={};d=(d.ytdDesktopShortsVolumeControlsHost=!0,d.ytdDesktopShortsVolumeControlsHostVertical=h,d.ytdDesktopShortsVolumeControlsHostExpanded=w,d);var m={},v=(m.ytdDesktopShortsVolumeControlsSliderContainer=!0,m.ytdDesktopShortsVolumeControlsSliderContainerExpanded=w,m.ytdDesktopShortsVolumeControlsSliderContainerVertical=h,m.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=Y==="vertical_down",m.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=w&&h,m);Y={};var O=(Y.ytdDesktopShortsVolumeControlsBackgroundScrim=
!0,Y.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=C?!1:w,Y);w={};w=(w.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=h,w);Y=_.IC(function(){n(!0)});
m=_.IC(function(){n(!1)});
var k=_.IC(function(){if(S&&S.value||C)zJB(S.value,z,C),g(!z);return!1}),Z=_.N("web_shorts_keyboard_enable_mute_shortcut")?z?_.VR("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.VR("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):z?_.VR("UNMUTE_VOLUME",void 0,"Unmute"):_.VR("MUTE_VOLUME",void 0,"Mute"),Cw={sources:[{clientResource:{imageName:z?"VOLUME_OFF_FILLED":X?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]};
return _.p("desktop-shorts-volume-controls",{"on:pointerleave":m,class:_.D5(d),el:r},sD(!h,function(){return _.p("div",{class:_.D5(O)})}),_.p("div",{class:_.D5(w)},_.p("button",{"aria-label":Z,
title:Z,el:V,"on:click":k,"on:pointerenter":Y,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},Cw?_.p(_.J3,{data:Cw,alt:Z,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),sD(!C,function(){return _.p("div",{class:_.D5(v)},_.p("input",{"aria-label":_.VR("VOLUME"),title:_.VR("VOLUME"),el:S,"on:input":W,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
pvc=function(r){var f,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,_.uB(),2);f=C.yieldResult;I=50;f&&(I=f.getVolume(),f.isMuted()?gbK(r,0):gbK(r,I));_.wO(C)})};
dOE=function(r){var f;_.x(function(I){if(I.nextAddress==1)return _.b(I,_.uB(),2);if(f=I.yieldResult)f.unMute(!0),f.setVolume(r,!0);_.wO(I)})};
gbK=function(r,f){r&&(r.value=""+f,r.style.setProperty("--gradient-percent",f+"%"))};
nbU=function(r){var f;return(f=r==null?void 0:r.value)!=null?f:0};
zJB=function(r,f,I){var C;_.x(function(Y){if(Y.nextAddress==1)return _.b(Y,_.uB(),2);C=Y.yieldResult;f&&C?(C.unMute(!0),!I&&r&&gbK(r,C.getVolume())):C&&(C.mute(!0),!I&&r&&gbK(r,0));_.wO(Y)})};
a_E=function(){var r;_.x(function(f){if(f.nextAddress==1)return _.b(f,_.uB(),2);r=f.yieldResult;if(!r)return f.return();r.isMuted()?r.unMute(!0):r.mute(!0);_.wO(f)})};
Xvl=function(r){var f=_.a().resolve(_.iO).getPlayerElement();f&&r&&(r===1?f.pause():f.play())};
NTw=function(r){_.qy(r,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
$Ou=function(r){_.qy(r,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
PYK=function(r){return _.av(r.document.body,function(){return _.p(FPu,null)})};
teu=function(){var r=window.performance.getEntriesByType("navigation");return r?r.map(function(f){return f.type}).includes("reload"):!1};
jUK=function(){Rp(Rp(Rp(Rp(Rp(Rp(Rp(_.a().resolve(_.va),_.TTR),_.cjU),_.WPR),_.LPu),_.mOw),_.eJ$),_.Jjq)};
HaU=function(r,f){f=f===void 0?!1:f;var I,C,Y,V;return _.x(function(S){if(S.nextAddress==1)return f||!_.N("kevlar_shorts_seedless_retry_initial_load")||(I=window,C=!(!I.getDataPromise&&!I.getInitialData),C)?_.b(S,aQK(),2):(setTimeout(HaU.bind(window,r,!0),1E3),S.return());if(S.nextAddress!=3)return Y=S.yieldResult,_.b(S,iaR(Y),3);V=S.yieldResult;ca(r,V);_.wO(S)})};
iaR=function(r){var f;if((f=r.response)==null||!f.replacementEndpoint)return _.fe(r);f=_.a().resolve($w);r=r.response;_.F(r.replacementEndpoint,_.xO)&&r.sequenceContinuation&&(_.F(r.replacementEndpoint,_.xO).sequenceParams=r.sequenceContinuation);return KG(f,r.replacementEndpoint,{},_.Yq.location.href,"shorts",function(){},function(){return!1})};
RJR=function(r){var f=_.K2(),I,C=_.F((I=r.response)==null?void 0:I.frameworkUpdates,ju),Y;I=_.F((Y=r.playerResponse)==null?void 0:Y.frameworkUpdates,ju);var V;r=_.F((V=r.reelWatchSequenceResponse)==null?void 0:V.frameworkUpdates,ju);C&&_.VC(C,f);I&&_.VC(I,f);r&&_.VC(r,f)};
vbm=function(r){var f;_.N("enable_redirect_linking_for_desktop_web_client")&&((f=window.location.hash)==null?0:f.includes("redirect_state"))&&r.url&&(r.url=r.url.toString()+window.location.hash)};
UOm=function(r){var f=_.a(),I=f.resolve($w);f=f.resolve(_.KPP);r.endpoint&&(I=yjE(I,r.endpoint),I.content&&r.response&&_.yW(f,r.response,I.content),I.player&&r.playerResponse&&_.yW(f,r.playerResponse,I.player),I.reelSequence&&r.reelWatchSequenceResponse&&_.yW(f,r.reelWatchSequenceResponse,I.reelSequence))};
Ud=function(r,f){RJR(f);var I;(f==null?0:f.url)&&((I=window.location.hash)==null?0:I.includes("redirect_state"))&&(vbm(f),(I=M0d(f.url))&&_.Bj(r.root,"yt-initialize-third-party",[I,f]));UOm(f);I=_.a();var C=I.resolve(sUK);f.playerResponse&&I.resolve(Oaw).handleResponse(f.playerResponse);if(f.playerResponse){I=void 0;if(_.N("ab_v_vid_sig")&&f.endpoint){var Y,V=(Y=_.F(f.endpoint,_.vj))!=null?Y:_.F(f.endpoint,_.xO);V&&(I=V.videoId)}obU(C,f.playerResponse,I)}f.playerResponse&&hVR(f.playerResponse)&&_.N("web_enable_ab_rsp_cl")?
vzU().then(function(){QUu(C,f.playerResponse);ca(r,f)}):ca(r,f)};
ZaR=function(r){if(r=r.root.data){var f=_.a().resolve(Ajl);r.endpoint&&(r.response&&f.handleResponse(r.response,void 0,document.querySelector("ytd-app")),r.playerResponse&&f.handleResponse(r.playerResponse),r.reelWatchSequenceResponse&&f.handleResponse(r.reelWatchSequenceResponse))}};
GPl=function(r){var f,I,C,Y,V,S;return _.x(function(h){switch(h.nextAddress){case 1:f=window;if(!f.getDataPromise){h.jumpTo(2);break}_.l_(h,3);return _.b(h,f.getDataPromise(),5);case 5:I=h.yieldResult;Ud(r,I);_.Hd(h,4);break;case 3:return _.ha(h),_.b(h,FC(),6);case 6:C=h.yieldResult,ca(r,C);case 4:return h.return();case 2:if(!_.N("sw_nav_preload_pbj")){h.jumpTo(7);break}f.fetchInitialData=function(){var w;return _.x(function(n){if(n.nextAddress==1)return _.b(n,FC(),2);w=n.yieldResult;ca(r,w);_.wO(n)})};
if(f.getInitialData){f.loadInitialData=function(w){Ud(r,w)};
Y=f.getInitialData();f.getInitialData=void 0;Ud(r,Y);h.jumpTo(8);break}f.fetchInitialData=void 0;return _.b(h,FC(),9);case 9:V=h.yieldResult,ca(r,V);case 8:return h.return();case 7:f.getInitialData?(S=f.getInitialData(),f.getInitialData=void 0,Ud(r,S)):f.loadInitialData=function(w){Ud(r,w)},_.wO(h)}})};
kPR=function(r){var f=0;return function(){return f<r.length?{done:!1,value:r[f++]}:{done:!0}}};
BTw=typeof Object.defineProperties=="function"?Object.defineProperty:function(r,f,I){if(r==Array.prototype||r==Object.prototype)return r;r[f]=I.value;return r};
q2R=function(r){r=["object"==typeof globalThis&&globalThis,r,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var f=0;f<r.length;++f){var I=r[f];if(I&&I.Math==Math)return I}throw Error("a");};
_.OC=q2R(this);sd=function(r,f){if(f)a:{var I=_.OC;r=r.split(".");for(var C=0;C<r.length-1;C++){var Y=r[C];if(!(Y in I))break a;I=I[Y]}r=r[r.length-1];C=I[r];f=f(C);f!=C&&f!=null&&BTw(I,r,{configurable:!0,writable:!0,value:f})}};
sd("Symbol",function(r){if(r)return r;var f=function(V,S){this.$jscomp$symbol$id_=V;BTw(this,"description",{configurable:!0,writable:!0,value:S})};
f.prototype.toString=function(){return this.$jscomp$symbol$id_};
var I="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",C=0,Y=function(V){if(this instanceof Y)throw new TypeError("b");return new f(I+(V||"")+"_"+C++,V)};
return Y});
sd("Symbol.iterator",function(r){if(r)return r;r=Symbol("c");for(var f="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),I=0;I<f.length;I++){var C=_.OC[f[I]];typeof C==="function"&&typeof C.prototype[r]!="function"&&BTw(C.prototype,r,{configurable:!0,writable:!0,value:function(){return uyc(kPR(this))}})}return r});
sd("Symbol.asyncIterator",function(r){return r?r:Symbol("d")});
var uyc=function(r){r={next:r};r[Symbol.iterator]=function(){return this};
return r},DOc=typeof Object.create=="function"?Object.create:function(r){var f=function(){};
f.prototype=r;return new f},rEK=function(){function r(){function I(){}
new I;Reflect.construct(I,[],function(){});
return new I instanceof I}
if(typeof Reflect!="undefined"&&Reflect.construct){if(r())return Reflect.construct;var f=Reflect.construct;return function(I,C,Y){I=f(I,C);Y&&Reflect.setPrototypeOf(I,Y.prototype);return I}}return function(I,C,Y){Y===void 0&&(Y=I);
Y=DOc(Y.prototype||Object.prototype);return Function.prototype.apply.call(I,Y,C)||Y}}(),fXq;
if(typeof Object.setPrototypeOf=="function")fXq=Object.setPrototypeOf;else{var IXd;a:{var CPP={a:!0},Yzc={};try{Yzc.__proto__=CPP;IXd=Yzc.a;break a}catch(r){}IXd=!1}fXq=IXd?function(r,f){r.__proto__=f;if(r.__proto__!==f)throw new TypeError("e`"+r);return r}:null}Od=fXq;
_.t=function(r,f){r.prototype=DOc(f.prototype);r.prototype.constructor=r;if(Od)Od(r,f);else for(var I in f)if(I!="prototype")if(Object.defineProperties){var C=Object.getOwnPropertyDescriptor(f,I);C&&Object.defineProperty(r,I,C)}else r[I]=f[I];r.superClass_=f.prototype};
_.E=function(r){var f=typeof Symbol!="undefined"&&Symbol.iterator&&r[Symbol.iterator];if(f)return f.call(r);if(typeof r.length=="number")return{next:kPR(r)};throw Error("f`"+String(r));};
y$=function(r){for(var f,I=[];!(f=r.next()).done;)I.push(f.value);return I};
_.Na=function(r){return r instanceof Array?r:y$(_.E(r))};
_.op=function(r){return lXR(r,r)};
lXR=function(r,f){r.raw=f;Object.freeze&&(Object.freeze(r),Object.freeze(f));return r};
QW=function(r,f){return Object.prototype.hasOwnProperty.call(r,f)};
V7K=typeof Object.assign=="function"?Object.assign:function(r,f){for(var I=1;I<arguments.length;I++){var C=arguments[I];if(C)for(var Y in C)QW(C,Y)&&(r[Y]=C[Y])}return r};
sd("Object.assign",function(r){return r||V7K});
var EQl=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},Szl=function(r){if(r.isRunning_)throw new TypeError("h");
r.isRunning_=!0};
EQl.prototype.JSC$6630_next_=function(r){this.yieldResult=r};
var xxE=function(r,f){r.abruptCompletion_={exception:f,isException:!0};r.nextAddress=r.catchAddress_||r.finallyAddress_};
EQl.prototype.return=function(r){this.abruptCompletion_={return:r};this.nextAddress=this.finallyAddress_};
_.b=function(r,f,I){r.nextAddress=I;return{value:f}};
EQl.prototype.jumpTo=function(r){this.nextAddress=r};
_.wO=function(r){r.nextAddress=0};
_.l_=function(r,f,I){r.catchAddress_=f;I!=void 0&&(r.finallyAddress_=I)};
_.SP=function(r,f){r.catchAddress_=0;r.finallyAddress_=f||0};
_.Hd=function(r,f,I){r.nextAddress=f;r.catchAddress_=I||0};
_.ha=function(r,f){r.catchAddress_=f||0;f=r.abruptCompletion_.exception;r.abruptCompletion_=null;return f};
_.VY=function(r,f,I,C){C?r.finallyContexts_[C]=r.abruptCompletion_:r.finallyContexts_=[r.abruptCompletion_];r.catchAddress_=f||0;r.finallyAddress_=I||0};
_.xV=function(r,f,I){I=r.finallyContexts_.splice(I||0)[0];(I=r.abruptCompletion_=r.abruptCompletion_||I)?I.isException?r.nextAddress=r.catchAddress_||r.finallyAddress_:I.jumpTo!=void 0&&r.finallyAddress_<I.jumpTo?(r.nextAddress=I.jumpTo,r.abruptCompletion_=null):r.nextAddress=r.finallyAddress_:r.nextAddress=f};
hwP=function(r){this.JSC$6635_context_=new EQl;this.program_=r};
b5w=function(r,f){Szl(r.JSC$6635_context_);var I=r.JSC$6635_context_.yieldAllIterator_;if(I)return w$B(r,"return"in I?I["return"]:function(C){return{value:C,done:!0}},f,r.JSC$6635_context_.return);
r.JSC$6635_context_.return(f);return AF(r)};
w$B=function(r,f,I,C){try{var Y=f.call(r.JSC$6635_context_.yieldAllIterator_,I);if(!(Y instanceof Object))throw new TypeError("g`"+Y);if(!Y.done)return r.JSC$6635_context_.isRunning_=!1,Y;var V=Y.value}catch(S){return r.JSC$6635_context_.yieldAllIterator_=null,xxE(r.JSC$6635_context_,S),AF(r)}r.JSC$6635_context_.yieldAllIterator_=null;C.call(r.JSC$6635_context_,V);return AF(r)};
AF=function(r){for(;r.JSC$6635_context_.nextAddress;)try{var f=r.program_(r.JSC$6635_context_);if(f)return r.JSC$6635_context_.isRunning_=!1,{value:f.value,done:!1}}catch(I){r.JSC$6635_context_.yieldResult=void 0,xxE(r.JSC$6635_context_,I)}r.JSC$6635_context_.isRunning_=!1;if(r.JSC$6635_context_.abruptCompletion_){f=r.JSC$6635_context_.abruptCompletion_;r.JSC$6635_context_.abruptCompletion_=null;if(f.isException)throw f.exception;return{value:f.return,done:!0}}return{value:void 0,done:!0}};
p$K=function(r){this.next=function(f){Szl(r.JSC$6635_context_);r.JSC$6635_context_.yieldAllIterator_?f=w$B(r,r.JSC$6635_context_.yieldAllIterator_.next,f,r.JSC$6635_context_.JSC$6630_next_):(r.JSC$6635_context_.JSC$6630_next_(f),f=AF(r));return f};
this.throw=function(f){Szl(r.JSC$6635_context_);r.JSC$6635_context_.yieldAllIterator_?f=w$B(r,r.JSC$6635_context_.yieldAllIterator_["throw"],f,r.JSC$6635_context_.JSC$6630_next_):(xxE(r.JSC$6635_context_,f),f=AF(r));return f};
this.return=function(f){return b5w(r,f)};
this[Symbol.iterator]=function(){return this}};
_.iuB=function(r,f){f=new p$K(new hwP(f));Od&&r.prototype&&Od(f,r.prototype);return f};
nQP=function(r){function f(C){return r.next(C)}
function I(C){return r.throw(C)}
return new Promise(function(C,Y){function V(S){S.done?C(S.value):Promise.resolve(S.value).then(f,I).then(V,Y)}
V(r.next())})};
_.x=function(r){return nQP(new p$K(new hwP(r)))};
QMK=function(r){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return r};
this.next=function(f){return Promise.resolve(r.next(f))};
this["throw"]=function(f){return new Promise(function(I,C){var Y=r["throw"];Y!==void 0?I(Y.call(r,f)):(I=r["return"],I!==void 0&&I.call(r),C(new TypeError("i")))})};
r["return"]!==void 0&&(this["return"]=function(f){return Promise.resolve(r["return"](f))})};
_.XE=function(){for(var r=Number(this),f=[],I=r;I<arguments.length;I++)f[I-r]=arguments[I];return f};
_.RzP=function(r){return r};
sd("globalThis",function(r){return r||_.OC});
sd("Reflect",function(r){return r?r:{}});
sd("Reflect.construct",function(){return rEK});
sd("Reflect.setPrototypeOf",function(r){return r?r:Od?function(f,I){try{return Od(f,I),!0}catch(C){return!1}}:null});
sd("Promise",function(r){function f(){this.batch_=null}
function I(S){return S instanceof Y?S:new Y(function(h){h(S)})}
if(r&&(typeof _.OC.PromiseRejectionEvent!=="undefined"||!_.OC.Promise||_.OC.Promise.toString().indexOf("[native code]")===-1))return r;f.prototype.asyncExecute=function(S){if(this.batch_==null){this.batch_=[];var h=this;this.asyncExecuteFunction(function(){h.executeBatch_()})}this.batch_.push(S)};
var C=_.OC.setTimeout;f.prototype.asyncExecuteFunction=function(S){C(S,0)};
f.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var S=this.batch_;this.batch_=[];for(var h=0;h<S.length;++h){var w=S[h];S[h]=null;try{w()}catch(n){this.asyncThrow_(n)}}}this.batch_=null};
f.prototype.asyncThrow_=function(S){this.asyncExecuteFunction(function(){throw S;})};
var Y=function(S){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var h=this.createResolveAndReject_();try{S(h.resolve,h.reject)}catch(w){h.reject(w)}};
Y.prototype.createResolveAndReject_=function(){function S(n){return function(d){w||(w=!0,n.call(h,d))}}
var h=this,w=!1;return{resolve:S(this.resolveTo_),reject:S(this.JSC$6651_reject_)}};
Y.prototype.resolveTo_=function(S){if(S===this)this.JSC$6651_reject_(new TypeError("j"));else if(S instanceof Y)this.settleSameAsPromise_(S);else{a:switch(typeof S){case "object":var h=S!=null;break a;case "function":h=!0;break a;default:h=!1}h?this.resolveToNonPromiseObj_(S):this.fulfill_(S)}};
Y.prototype.resolveToNonPromiseObj_=function(S){var h=void 0;try{h=S.then}catch(w){this.JSC$6651_reject_(w);return}typeof h=="function"?this.settleSameAsThenable_(h,S):this.fulfill_(S)};
Y.prototype.JSC$6651_reject_=function(S){this.settle_(2,S)};
Y.prototype.fulfill_=function(S){this.settle_(1,S)};
Y.prototype.settle_=function(S,h){if(this.state_!=0)throw Error("k`"+S+"`"+h+"`"+this.state_);this.state_=S;this.result_=h;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
Y.prototype.scheduleUnhandledRejectionCheck_=function(){var S=this;C(function(){if(S.notifyUnhandledRejection_()){var h=_.OC.console;typeof h!=="undefined"&&h.error(S.result_)}},1)};
Y.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var S=_.OC.CustomEvent,h=_.OC.Event,w=_.OC.dispatchEvent;if(typeof w==="undefined")return!0;typeof S==="function"?S=new S("unhandledrejection",{cancelable:!0}):typeof h==="function"?S=new h("unhandledrejection",{cancelable:!0}):(S=_.OC.document.createEvent("CustomEvent"),S.initCustomEvent("unhandledrejection",!1,!0,S));S.promise=this;S.reason=this.result_;return w(S)};
Y.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var S=0;S<this.onSettledCallbacks_.length;++S)V.asyncExecute(this.onSettledCallbacks_[S]);this.onSettledCallbacks_=null}};
var V=new f;Y.prototype.settleSameAsPromise_=function(S){var h=this.createResolveAndReject_();S.callWhenSettled_(h.resolve,h.reject)};
Y.prototype.settleSameAsThenable_=function(S,h){var w=this.createResolveAndReject_();try{S.call(h,w.resolve,w.reject)}catch(n){w.reject(n)}};
Y.prototype.then=function(S,h){function w(g,X){return typeof g=="function"?function(P){try{n(g(P))}catch(W){d(W)}}:X}
var n,d,z=new Y(function(g,X){n=g;d=X});
this.callWhenSettled_(w(S,n),w(h,d));return z};
Y.prototype.catch=function(S){return this.then(void 0,S)};
Y.prototype.callWhenSettled_=function(S,h){function w(){switch(n.state_){case 1:S(n.result_);break;case 2:h(n.result_);break;default:throw Error("l`"+n.state_);}}
var n=this;this.onSettledCallbacks_==null?V.asyncExecute(w):this.onSettledCallbacks_.push(w);this.isRejectionHandled_=!0};
Y.resolve=I;Y.reject=function(S){return new Y(function(h,w){w(S)})};
Y.race=function(S){return new Y(function(h,w){for(var n=_.E(S),d=n.next();!d.done;d=n.next())I(d.value).callWhenSettled_(h,w)})};
Y.all=function(S){var h=_.E(S),w=h.next();return w.done?I([]):new Y(function(n,d){function z(P){return function(W){g[P]=W;X--;X==0&&n(g)}}
var g=[],X=0;do g.push(void 0),X++,I(w.value).callWhenSettled_(z(g.length-1),d),w=h.next();while(!w.done)})};
return Y});
var Zc=function(r,f,I){if(r==null)throw new TypeError("m`"+I);if(f instanceof RegExp)throw new TypeError("n`"+I);return r+""};
sd("String.prototype.startsWith",function(r){return r?r:function(f,I){var C=Zc(this,f,"startsWith"),Y=C.length,V=f.length;I=Math.max(0,Math.min(I|0,C.length));for(var S=0;S<V&&I<Y;)if(C[I++]!=f[S++])return!1;return S>=V}});
sd("Object.setPrototypeOf",function(r){return r||Od});
sd("Symbol.dispose",function(r){return r?r:Symbol("o")});
sd("SuppressedError",function(r){function f(I,C,Y){if(!(this instanceof f))return new f(I,C,Y);Y=Error(Y);"stack"in Y&&(this.stack=Y.stack);this.message=Y.message;this.error=I;this.suppressed=C}
if(r)return r;_.t(f,Error);f.prototype.name="SuppressedError";return f});
var dxc=function(r,f,I){r instanceof String&&(r=String(r));for(var C=r.length,Y=0;Y<C;Y++){var V=r[Y];if(f.call(I,V,Y,r))return{i:Y,v:V}}return{i:-1,v:void 0}};
sd("Array.prototype.find",function(r){return r?r:function(f,I){return dxc(this,f,I).v}});
sd("WeakMap",function(r){function f(){}
function I(w){var n=typeof w;return n==="object"&&w!==null||n==="function"}
function C(w){if(!QW(w,V)){var n=new f;BTw(w,V,{value:n})}}
function Y(w){var n=Object[w];n&&(Object[w]=function(d){if(d instanceof f)return d;Object.isExtensible(d)&&C(d);return n(d)})}
if(function(){if(!r||!Object.seal)return!1;try{var w=Object.seal({}),n=Object.seal({}),d=new r([[w,2],[n,3]]);if(d.get(w)!=2||d.get(n)!=3)return!1;d.delete(w);d.set(n,4);return!d.has(w)&&d.get(n)==4}catch(z){return!1}}())return r;
var V="$jscomp_hidden_"+Math.random();Y("freeze");Y("preventExtensions");Y("seal");var S=0,h=function(w){this.JSC$6658_id_=(S+=Math.random()+1).toString();if(w){w=_.E(w);for(var n;!(n=w.next()).done;)n=n.value,this.set(n[0],n[1])}};
h.prototype.set=function(w,n){if(!I(w))throw Error("p");C(w);if(!QW(w,V))throw Error("q`"+w);w[V][this.JSC$6658_id_]=n;return this};
h.prototype.get=function(w){return I(w)&&QW(w,V)?w[V][this.JSC$6658_id_]:void 0};
h.prototype.has=function(w){return I(w)&&QW(w,V)&&QW(w[V],this.JSC$6658_id_)};
h.prototype.delete=function(w){return I(w)&&QW(w,V)&&QW(w[V],this.JSC$6658_id_)?delete w[V][this.JSC$6658_id_]:!1};
return h});
sd("Map",function(r){if(function(){if(!r||typeof r!="function"||!r.prototype.entries||typeof Object.seal!="function")return!1;try{var h=Object.seal({x:4}),w=new r(_.E([[h,"s"]]));if(w.get(h)!="s"||w.size!=1||w.get({x:4})||w.set({x:4},"t")!=w||w.size!=2)return!1;var n=w.entries(),d=n.next();if(d.done||d.value[0]!=h||d.value[1]!="s")return!1;d=n.next();return d.done||d.value[0].x!=4||d.value[1]!="t"||!n.next().done?!1:!0}catch(z){return!1}}())return r;
var f=new WeakMap,I=function(h){this[0]={};this[1]=V();this.size=0;if(h){h=_.E(h);for(var w;!(w=h.next()).done;)w=w.value,this.set(w[0],w[1])}};
I.prototype.set=function(h,w){h=h===0?0:h;var n=C(this,h);n.list||(n.list=this[0][n.id]=[]);n.entry?n.entry.value=w:(n.entry={next:this[1],previous:this[1].previous,head:this[1],key:h,value:w},n.list.push(n.entry),this[1].previous.next=n.entry,this[1].previous=n.entry,this.size++);return this};
I.prototype.delete=function(h){h=C(this,h);return h.entry&&h.list?(h.list.splice(h.index,1),h.list.length||delete this[0][h.id],h.entry.previous.next=h.entry.next,h.entry.next.previous=h.entry.previous,h.entry.head=null,this.size--,!0):!1};
I.prototype.clear=function(){this[0]={};this[1]=this[1].previous=V();this.size=0};
I.prototype.has=function(h){return!!C(this,h).entry};
I.prototype.get=function(h){return(h=C(this,h).entry)&&h.value};
I.prototype.entries=function(){return Y(this,function(h){return[h.key,h.value]})};
I.prototype.keys=function(){return Y(this,function(h){return h.key})};
I.prototype.values=function(){return Y(this,function(h){return h.value})};
I.prototype.forEach=function(h,w){for(var n=this.entries(),d;!(d=n.next()).done;)d=d.value,h.call(w,d[1],d[0],this)};
I.prototype[Symbol.iterator]=I.prototype.entries;var C=function(h,w){var n=w&&typeof w;n=="object"||n=="function"?f.has(w)?n=f.get(w):(n=""+ ++S,f.set(w,n)):n="p_"+w;var d=h[0][n];if(d&&QW(h[0],n))for(h=0;h<d.length;h++){var z=d[h];if(w!==w&&z.key!==z.key||w===z.key)return{id:n,list:d,index:h,entry:z}}return{id:n,list:d,index:-1,entry:void 0}},Y=function(h,w){var n=h[1];
return uyc(function(){if(n){for(;n.head!=h[1];)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:w(n)};n=null}return{done:!0,value:void 0}})},V=function(){var h={};
return h.previous=h.next=h.head=h},S=0;
return I});
sd("Set",function(r){if(function(){if(!r||typeof r!="function"||!r.prototype.entries||typeof Object.seal!="function")return!1;try{var I=Object.seal({x:4}),C=new r(_.E([I]));if(!C.has(I)||C.size!=1||C.add(I)!=C||C.size!=1||C.add({x:4})!=C||C.size!=2)return!1;var Y=C.entries(),V=Y.next();if(V.done||V.value[0]!=I||V.value[1]!=I)return!1;V=Y.next();return V.done||V.value[0]==I||V.value[0].x!=4||V.value[1]!=V.value[0]?!1:Y.next().done}catch(S){return!1}}())return r;
var f=function(I){this.JSC$6672_map_=new Map;if(I){I=_.E(I);for(var C;!(C=I.next()).done;)this.add(C.value)}this.size=this.JSC$6672_map_.size};
f.prototype.add=function(I){I=I===0?0:I;this.JSC$6672_map_.set(I,I);this.size=this.JSC$6672_map_.size;return this};
f.prototype.delete=function(I){I=this.JSC$6672_map_.delete(I);this.size=this.JSC$6672_map_.size;return I};
f.prototype.clear=function(){this.JSC$6672_map_.clear();this.size=0};
f.prototype.has=function(I){return this.JSC$6672_map_.has(I)};
f.prototype.entries=function(){return this.JSC$6672_map_.entries()};
f.prototype.values=function(){return this.JSC$6672_map_.values()};
f.prototype.keys=f.prototype.values;f.prototype[Symbol.iterator]=f.prototype.values;f.prototype.forEach=function(I,C){var Y=this;this.JSC$6672_map_.forEach(function(V){return I.call(C,V,V,Y)})};
return f});
sd("Math.log2",function(r){return r?r:function(f){return Math.log(f)/Math.LN2}});
sd("Object.values",function(r){return r?r:function(f){var I=[],C;for(C in f)QW(f,C)&&I.push(f[C]);return I}});
sd("Object.is",function(r){return r?r:function(f,I){return f===I?f!==0||1/f===1/I:f!==f&&I!==I}});
sd("Array.prototype.includes",function(r){return r?r:function(f,I){var C=this;C instanceof String&&(C=String(C));var Y=C.length;I=I||0;for(I<0&&(I=Math.max(I+Y,0));I<Y;I++){var V=C[I];if(V===f||Object.is(V,f))return!0}return!1}});
sd("String.prototype.includes",function(r){return r?r:function(f,I){return Zc(this,f,"includes").indexOf(f,I||0)!==-1}});
sd("Array.from",function(r){return r?r:function(f,I,C){I=I!=null?I:function(h){return h};
var Y=[],V=typeof Symbol!="undefined"&&Symbol.iterator&&f[Symbol.iterator];if(typeof V=="function"){f=V.call(f);for(var S=0;!(V=f.next()).done;)Y.push(I.call(C,V.value,S++))}else for(V=f.length,S=0;S<V;S++)Y.push(I.call(C,f[S],S));return Y}});
sd("Object.entries",function(r){return r?r:function(f){var I=[],C;for(C in f)QW(f,C)&&I.push([C,f[C]]);return I}});
sd("Number.isFinite",function(r){return r?r:function(f){return typeof f!=="number"?!1:!isNaN(f)&&f!==Infinity&&f!==-Infinity}});
sd("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
sd("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
sd("Number.isInteger",function(r){return r?r:function(f){return Number.isFinite(f)?f===Math.floor(f):!1}});
sd("Number.isSafeInteger",function(r){return r?r:function(f){return Number.isInteger(f)&&Math.abs(f)<=Number.MAX_SAFE_INTEGER}});
sd("String.prototype.endsWith",function(r){return r?r:function(f,I){var C=Zc(this,f,"endsWith");I===void 0&&(I=C.length);I=Math.max(0,Math.min(I|0,C.length));for(var Y=f.length;Y>0&&I>0;)if(C[--I]!=f[--Y])return!1;return Y<=0}});
var zwl=function(r,f){r instanceof String&&(r+="");var I=0,C=!1,Y={next:function(){if(!C&&I<r.length){var V=I++;return{value:f(V,r[V]),done:!1}}C=!0;return{done:!0,value:void 0}}};
Y[Symbol.iterator]=function(){return Y};
return Y};
sd("Array.prototype.entries",function(r){return r?r:function(){return zwl(this,function(f,I){return[f,I]})}});
sd("Math.imul",function(r){return r?r:function(f,I){f=Number(f);I=Number(I);var C=f&65535,Y=I&65535;return C*Y+((f>>>16&65535)*Y+C*(I>>>16&65535)<<16>>>0)|0}});
sd("Math.trunc",function(r){return r?r:function(f){f=Number(f);if(isNaN(f)||f===Infinity||f===-Infinity||f===0)return f;var I=Math.floor(Math.abs(f));return f<0?-I:I}});
sd("Number.isNaN",function(r){return r?r:function(f){return typeof f==="number"&&isNaN(f)}});
sd("Array.prototype.keys",function(r){return r?r:function(){return zwl(this,function(f){return f})}});
sd("Array.prototype.values",function(r){return r?r:function(){return zwl(this,function(f,I){return I})}});
sd("Array.prototype.fill",function(r){return r?r:function(f,I,C){var Y=this.length||0;I<0&&(I=Math.max(0,Y+I));if(C==null||C>Y)C=Y;C=Number(C);C<0&&(C=Math.max(0,Y+C));for(I=Number(I||0);I<C;I++)this[I]=f;return this}});
var GW=function(r){return r?r:Array.prototype.fill};
sd("Int8Array.prototype.fill",GW);sd("Uint8Array.prototype.fill",GW);sd("Uint8ClampedArray.prototype.fill",GW);sd("Int16Array.prototype.fill",GW);sd("Uint16Array.prototype.fill",GW);sd("Int32Array.prototype.fill",GW);sd("Uint32Array.prototype.fill",GW);sd("Float32Array.prototype.fill",GW);sd("Float64Array.prototype.fill",GW);
sd("Object.fromEntries",function(r){return r?r:function(f){var I={};if(!(Symbol.iterator in f))throw new TypeError("r`"+f);f=f[Symbol.iterator].call(f);for(var C=f.next();!C.done;C=f.next()){C=C.value;if(Object(C)!==C)throw new TypeError("s");I[C[0]]=C[1]}return I}});
sd("String.prototype.replaceAll",function(r){return r?r:function(f,I){if(f instanceof RegExp&&!f.global)throw new TypeError("t");return f instanceof RegExp?this.replace(f,I):this.replace(new RegExp(String(f).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),I)}});
sd("Object.getOwnPropertySymbols",function(r){return r?r:function(){return[]}});
sd("String.prototype.repeat",function(r){return r?r:function(f){var I=Zc(this,null,"repeat");if(f<0||f>1342177279)throw new RangeError("u");f|=0;for(var C="";f;)if(f&1&&(C+=I),f>>>=1)I+=I;return C}});
sd("Array.prototype.findIndex",function(r){return r?r:function(f,I){return dxc(this,f,I).i}});
sd("Array.prototype.flatMap",function(r){return r?r:function(f,I){var C=[];Array.prototype.forEach.call(this,function(Y,V){Y=f.call(I,Y,V,this);Array.isArray(Y)?C.push.apply(C,Y):C.push(Y)});
return C}});
sd("String.prototype.codePointAt",function(r){return r?r:function(f){var I=Zc(this,null,"codePointAt"),C=I.length;f=Number(f)||0;if(f>=0&&f<C){f|=0;var Y=I.charCodeAt(f);if(Y<55296||Y>56319||f+1===C)return Y;f=I.charCodeAt(f+1);return f<56320||f>57343?Y:(Y-55296)*1024+f+9216}}});
sd("String.fromCodePoint",function(r){return r?r:function(f){for(var I="",C=0;C<arguments.length;C++){var Y=Number(arguments[C]);if(Y<0||Y>1114111||Y!==Math.floor(Y))throw new RangeError("v`"+Y);Y<=65535?I+=String.fromCharCode(Y):(Y-=65536,I+=String.fromCharCode(Y>>>10&1023|55296),I+=String.fromCharCode(Y&1023|56320))}return I}});
sd("String.prototype.padStart",function(r){return r?r:function(f,I){var C=Zc(this,null,"padStart");f-=C.length;I=I!==void 0?String(I):" ";return(f>0&&I?I.repeat(Math.ceil(f/I.length)).substring(0,f):"")+C}});
sd("Promise.prototype.finally",function(r){return r?r:function(f){return this.then(function(I){return Promise.resolve(f()).then(function(){return I})},function(I){return Promise.resolve(f()).then(function(){throw I;
})})}});
sd("Object.hasOwn",function(r){return r?r:function(f,I){return Object.prototype.hasOwnProperty.call(f,I)}});
sd("Math.sign",function(r){return r?r:function(f){f=Number(f);return f===0||isNaN(f)?f:f>0?1:-1}});
sd("Array.prototype.flat",function(r){return r?r:function(f){f=f===void 0?1:f;var I=[];Array.prototype.forEach.call(this,function(C){Array.isArray(C)&&f>0?(C=Array.prototype.flat.call(C,f-1),I.push.apply(I,C)):I.push(C)});
return I}});
sd("String.raw",function(r){return r?r:function(f,I){if(f==null)throw new TypeError("w");for(var C=f.raw,Y=C.length,V="",S=0;S<Y;++S)V+=C[S],S+1<Y&&S+1<arguments.length&&(V+=String(arguments[S+1]));return V}});
sd("Reflect.ownKeys",function(r){return r?r:function(f){var I=[],C=Object.getOwnPropertyNames(f);f=Object.getOwnPropertySymbols(f);for(var Y=0;Y<C.length;Y++)(C[Y].substring(0,14)=="jscomp_symbol_"?f:I).push(C[Y]);return I.concat(f)}});
sd("Object.getOwnPropertyDescriptors",function(r){return r?r:function(f){for(var I={},C=Reflect.ownKeys(f),Y=0;Y<C.length;Y++)I[C[Y]]=Object.getOwnPropertyDescriptor(f,C[Y]);return I}});
sd("WeakSet",function(r){if(function(){if(!r||!Object.seal)return!1;try{var I=Object.seal({}),C=Object.seal({}),Y=new r([I]);if(!Y.has(I)||Y.has(C))return!1;Y.delete(I);Y.add(C);return!Y.has(I)&&Y.has(C)}catch(V){return!1}}())return r;
var f=function(I){this.JSC$6679_map_=new WeakMap;if(I){I=_.E(I);for(var C;!(C=I.next()).done;)this.add(C.value)}};
f.prototype.add=function(I){this.JSC$6679_map_.set(I,!0);return this};
f.prototype.has=function(I){return this.JSC$6679_map_.has(I)};
f.prototype.delete=function(I){return this.JSC$6679_map_.delete(I)};
return f});
sd("Promise.allSettled",function(r){function f(C){return{status:"fulfilled",value:C}}
function I(C){return{status:"rejected",reason:C}}
return r?r:function(C){var Y=this;C=Array.from(C,function(V){return Y.resolve(V).then(f,I)});
return Y.all(C)}});
sd("Number.parseInt",function(r){return r||parseInt});
_._DumpException=window._DumpException||function(r){throw r;};
window._DumpException=_._DumpException;var M7w,kw,Ba,qi,gQP,aXR,X$q,NER,G6,$x$;M7w=M7w||{};_.Yq=this||self;_.OH=function(r,f,I){r=r.split(".");I=I||_.Yq;for(var C;r.length&&(C=r.shift());)r.length||f===void 0?I[C]&&I[C]!==Object.prototype[C]?I=I[C]:I=I[C]={}:I[C]=f};
kw=function(r){var f=_.jH("WIZ_global_data.oxN3nb");r=f&&f[r];return r!=null?r:!1};
Ba=_.Yq._F_toggles||[];qi=function(){};
qi.get=function(){return null};
_.jH=function(r,f){r=r.split(".");f=f||_.Yq;for(var I=0;I<r.length;I++)if(f=f[r[I]],f==null)return null;return f};
_.uO=function(r){r.instance_=void 0;r.getInstance=function(){return r.instance_?r.instance_:r.instance_=new r}};
_.z6=function(r){var f=typeof r;return f!="object"?f:r?Array.isArray(r)?"array":f:"null"};
_.ID=function(r){var f=_.z6(r);return f=="array"||f=="object"&&typeof r.length=="number"};
_.lV=function(r){var f=typeof r;return f=="object"&&r!=null||f=="function"};
_.S3=function(r){return Object.prototype.hasOwnProperty.call(r,gQP)&&r[gQP]||(r[gQP]=++aXR)};
gQP="closure_uid_"+(Math.random()*1E9>>>0);aXR=0;X$q=function(r,f,I){return r.call.apply(r.bind,arguments)};
NER=function(r,f,I){if(!r)throw Error();if(arguments.length>2){var C=Array.prototype.slice.call(arguments,2);return function(){var Y=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(Y,C);return r.apply(f,Y)}}return function(){return r.apply(f,arguments)}};
_.gL=function(r,f,I){_.gL=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?X$q:NER;return _.gL.apply(null,arguments)};
_.S_=function(r,f){var I=Array.prototype.slice.call(arguments,1);return function(){var C=I.slice();C.push.apply(C,arguments);return r.apply(this,C)}};
_.Dc=function(){return Date.now()};
G6=function(r){return r};
_.rh=function(r,f){function I(){}
I.prototype=f.prototype;r.superClass_=f.prototype;r.prototype=new I;r.prototype.constructor=r;r.base=function(C,Y,V){for(var S=Array(arguments.length-2),h=2;h<arguments.length;h++)S[h-2]=arguments[h];return f.prototype[Y].apply(C,S)}};
$x$=function(r){return r};var Fxd,c2K;_.A=function(r,f,I,C){var Y=arguments.length,V=Y<3?f:C===null?C=Object.getOwnPropertyDescriptor(f,I):C,S;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")V=Reflect.decorate(r,f,I,C);else for(var h=r.length-1;h>=0;h--)if(S=r[h])V=(Y<3?S(V):Y>3?S(f,I,V):S(f,I))||V;return Y>3&&V&&Object.defineProperty(f,I,V),V};
_.B=function(r,f){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(r,f)};
Fxd=function(r,f){if(f!==null&&f!==void 0){if(typeof f!=="object"&&typeof f!=="function")throw new TypeError("x");if(I===void 0){if(!Symbol.dispose)throw new TypeError("z");var I=f[Symbol.dispose]}if(typeof I!=="function")throw new TypeError("A");r.stack.push({value:f,dispose:I,async:!1})}return f};
c2K=function(r){function f(V){r.error=r.hasError?new SuppressedError(V,r.error,"An error was suppressed during disposal."):V;r.hasError=!0}
function I(){for(;C=r.stack.pop();)try{if(!C.async&&Y===1)return Y=0,r.stack.push(C),Promise.resolve().then(I);if(C.dispose){var V=C.dispose.call(C.value);if(C.async)return Y|=2,Promise.resolve(V).then(I,function(S){f(S);return I()})}else Y|=1}catch(S){f(S)}if(Y===1)return r.hasError?Promise.reject(r.error):Promise.resolve();
if(r.hasError)throw r.error;}
var C,Y=0;I()};_.rh(_.fw,Error);_.fw.prototype.name="CustomError";var FzR;var PPd=void 0,t7K,TEq=typeof TextDecoder!=="undefined",CUq,Idq=typeof String.prototype.isWellFormed==="function",fdB=typeof TextEncoder!=="undefined";var cER;_.zH=function(r){for(var f=[],I=0,C=0;C<r.length;C++){var Y=r.charCodeAt(C);Y<128?f[I++]=Y:(Y<2048?f[I++]=Y>>6|192:((Y&64512)==55296&&C+1<r.length&&(r.charCodeAt(C+1)&64512)==56320?(Y=65536+((Y&1023)<<10)+(r.charCodeAt(++C)&1023),f[I++]=Y>>18|240,f[I++]=Y>>12&63|128):f[I++]=Y>>12|224,f[I++]=Y>>6&63|128),f[I++]=Y&63|128)}return f};
cER=function(r){for(var f=[],I=0,C=0;I<r.length;){var Y=r[I++];if(Y<128)f[C++]=String.fromCharCode(Y);else if(Y>191&&Y<224){var V=r[I++];f[C++]=String.fromCharCode((Y&31)<<6|V&63)}else if(Y>239&&Y<365){V=r[I++];var S=r[I++],h=r[I++];Y=((Y&7)<<18|(V&63)<<12|(S&63)<<6|h&63)-65536;f[C++]=String.fromCharCode(55296+(Y>>10));f[C++]=String.fromCharCode(56320+(Y&1023))}else V=r[I++],S=r[I++],f[C++]=String.fromCharCode((Y&15)<<12|(V&63)<<6|S&63)}return f.join("")};var dR=String.prototype.trim?function(r){return r.trim()}:function(r){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(r)[1]},WzB=/&/g,Lzc=/</g,mxE=/>/g,eww=/"/g,JEB=/'/g,jeU=/\x00/g,H5U=/[\x00&<>"']/;var fD=!!(Ba[0]>>15&1),i5$=!!(Ba[0]>>16&1),Rwc=!!(Ba[0]&2),vQR=!!(Ba[0]&4),KzR=!!(Ba[0]&32),yEq=!!(Ba[0]&512);var aR=fD?i5$:kw(610401301),UxE=fD?Rwc:kw(513659523),sed=fD?vQR:kw(568333945),JpK=fD?KzR:kw(1331761403),O5w=fD?yEq:kw(103340015);var Nc,oQq=_.Yq.navigator;Nc=oQq?oQq.userAgentData||null:null;var vW;_.QE=function(r,f){return Array.prototype.indexOf.call(r,f,void 0)};
_.Rv=function(r,f,I){Array.prototype.forEach.call(r,f,I)};
_.IJ=function(r,f,I){return Array.prototype.filter.call(r,f,I)};
_.$X=function(r,f,I){return Array.prototype.map.call(r,f,I)};
vW=function(r,f,I){return Array.prototype.some.call(r,f,I)};
_.VWU=function(r,f,I){return Array.prototype.every.call(r,f,I)};var CD=function(r){CD[" "](r);return r};
CD[" "]=function(){};
var ck=function(r,f){try{return CD(r[f]),!0}catch(I){}return!1},WOl=function(r,f,I,C){C=C?C(f):f;
return Object.prototype.hasOwnProperty.call(r,C)?r[C]:r[C]=I(f)};var Qec,UH,AEc,Z5R,kV$,BEB,wzR,qz$,ufl,DxK,R7K,fFc,IFP,VEq,Euw,Stl;_.ndl=function(){return _.Yq.navigator||null};
Qec=Lw();_.Yp=VKR();UH=F$("Edge");AEc=UH||_.Yp;_.lf=F$("Gecko")&&!(_.nw(_.Mc(),"WebKit")&&!F$("Edge"))&&!(F$("Trident")||F$("MSIE"))&&!F$("Edge");_.VF=_.nw(_.Mc(),"WebKit")&&!F$("Edge");Z5R=_.VF&&F$("Mobile");_.GVc=_.nql();kV$=_.dcw();BEB=(Hu()?Nc.platform==="Linux":F$("Linux"))||_.zlR();wzR=_.bwR();qz$=puE();ufl=F$("iPad");DxK=F$("iPod");_.rwR=_.RR();R7K=_.nw(_.Mc(),"KaiOS");fFc=function(){var r=_.Yq.document;return r?r.documentMode:void 0};
a:{var CGB="",YtR=function(){var r=_.Mc();if(_.lf)return/rv:([^\);]+)(\)|;)/.exec(r);if(UH)return/Edge\/([\d\.]+)/.exec(r);if(_.Yp)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(r);if(_.VF)return/WebKit\/(\S+)/.exec(r);if(Qec)return/(?:Version)[ \/]?(\S+)/.exec(r)}();
YtR&&(CGB=YtR?YtR[1]:"");if(_.Yp){var lFE=fFc();if(lFE!=null&&lFE>parseFloat(CGB)){IFP=String(lFE);break a}}IFP=CGB}VEq=IFP;Euw={};_.Ev=function(r){return WOl(Euw,r,function(){return _.zB(VEq,r)>=0})};
if(_.Yq.document&&_.Yp){var xNw=fFc();Stl=xNw?xNw:parseInt(VEq,10)||void 0}else Stl=void 0;_.hFE=Stl;var c1R,W0d,wxu;_.Sg=mK();c1R=puE()||F$("iPod");W0d=F$("iPad");wxu=_.SPl();_.xp=eK();_.Wd=_.jK()&&!_.RR();var btK,hs,GCq,zMq,nud,pxc;btK={};hs=null;GCq=_.lf||_.VF||typeof _.Yq.btoa=="function";_.Dp=function(r,f){f===void 0&&(f=0);pxc();f=btK[f];for(var I=Array(Math.floor(r.length/3)),C=f[64]||"",Y=0,V=0;Y<r.length-2;Y+=3){var S=r[Y],h=r[Y+1],w=r[Y+2],n=f[S>>2];S=f[(S&3)<<4|h>>4];h=f[(h&15)<<2|w>>6];w=f[w&63];I[V++]=n+S+h+w}n=0;w=C;switch(r.length-Y){case 2:n=r[Y+1],w=f[(n&15)<<2]||C;case 1:r=r[Y],I[V]=f[r>>2]+f[(r&3)<<4|n>>4]+w+C}return I.join("")};
zMq=function(r){var f="";nud(r,function(I){f+=String.fromCharCode(I)});
return f};
_.URu=function(r){var f=[];nud(r,function(I){f.push(I)});
return f};
_.MT=function(r){var f=r.length,I=f*3/4;I%3?I=Math.floor(I):_.pw("=.",r[f-1])&&(I=_.pw("=.",r[f-2])?I-2:I-1);var C=new Uint8Array(I),Y=0;nud(r,function(V){C[Y++]=V});
return Y!==I?C.subarray(0,Y):C};
nud=function(r,f){function I(w){for(;C<r.length;){var n=r.charAt(C++),d=hs[n];if(d!=null)return d;if(!_.bU(n))throw Error("E`"+n);}return w}
pxc();for(var C=0;;){var Y=I(-1),V=I(0),S=I(64),h=I(64);if(h===64&&Y===-1)break;f(Y<<2|V>>4);S!=64&&(f(V<<4&240|S>>2),h!=64&&f(S<<6&192|h))}};
pxc=function(){if(!hs){hs={};for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),f=["+/=","+/","-_=","-_.","-_"],I=0;I<5;I++){var C=r.concat(f[I].split(""));btK[I]=C;for(var Y=0;Y<C.length;Y++){var V=C[Y];hs[V]===void 0&&(hs[V]=Y)}}}};var iwK=typeof Uint8Array!=="undefined",TRw=!_.Yp&&typeof btoa==="function",cmB=/[-_.]/g,PUm={"-":"+",_:"/",".":"="},Us={};var K8,zFm;K8=function(r,f){if(f!==Us)throw Error("G");this.JSC$6710_value_=r;if(r!=null&&r.length===0)throw Error("F");};
_.ss=function(){return dN$||(dN$=new K8(null,Us))};
zFm=function(r){return new Uint8Array(Jg(r)||0)};
K8.prototype.isEmpty=function(){return this.JSC$6710_value_==null};
K8.prototype.sizeBytes=function(){var r=Jg(this);return r?r.length:0};
var Jg=function(r){if(Us!==Us)throw Error("G");var f=r.JSC$6710_value_;f=f==null||iwK&&f!=null&&f instanceof Uint8Array?f:typeof f==="string"?WKP(f):null;return f==null?f:r.JSC$6710_value_=f},dN$;var mcR=void 0;var c4=typeof Symbol==="function"&&typeof Symbol()==="symbol",MEP=T4("jas",void 0,!0),QV=T4(void 0,"0di"),WE=T4(void 0,"1oa"),ki=T4(void 0,Symbol()),mTR=T4(void 0,"0ub"),J_q=T4(void 0,"0ubs"),iqw=T4(void 0,"0ubsb"),Z8d=T4(void 0,"0actk"),U7=T4("m_m","messagePrototypeMarker",!0),UTP=T4(void 0,"vps"),c_u=T4();var JmU,elE,Me,guR;JmU={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};elE=Object.defineProperties;_.L8=c4?MEP:"internalArrayState";guR=[];e3(guR,7);Me=Object.freeze(guR);var oY={},RD={},aFB=function(r,f,I){this.iterable=r;this.mapper=f;this.thisArg=I};
aFB.prototype.next=function(){var r=this.iterable.next();r.done||(r.value=this.mapper.call(this.thisArg,r.value));return r};
aFB.prototype[Symbol.iterator]=function(){return this};
var Xxw=Object.freeze({}),A_={};_.NqR=kC(function(r){return r!==null&&r!==void 0});var Ucm=kC(function(r){return typeof r==="number"}),ymc=kC(function(r){return typeof r==="string"}),sRK=kC(function(r){return typeof r==="boolean"}),$NE=kC(function(r){return r!=null&&typeof r==="object"&&typeof r.then==="function"}),IYm=kC(function(r){return typeof r==="function"}),SHc=kC(function(r){return!!r&&(typeof r==="object"||typeof r==="function")});var B4=typeof _.Yq.BigInt==="function"&&typeof _.Yq.BigInt(0)==="bigint";var RY=kC(function(r){return B4?r>=Fnu&&r<=PGU:r[0]==="-"?OwR(r,tEU):OwR(r,Tqu)}),tEU=Number.MIN_SAFE_INTEGER.toString(),Fnu=B4?BigInt(Number.MIN_SAFE_INTEGER):void 0,Tqu=Number.MAX_SAFE_INTEGER.toString(),PGU=B4?BigInt(Number.MAX_SAFE_INTEGER):void 0;var cwu=typeof Uint8Array.prototype.slice==="function",DU=0,rs=0,BE;var Lq,jd,gs,HB,BRc;Lq=typeof BigInt==="function"?BigInt.asIntN:void 0;_.i2=typeof BigInt==="function"?BigInt.asUintN:void 0;jd=Number.isSafeInteger;gs=Number.isFinite;HB=Math.trunc;BRc=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var sDm={};var t3R={},WnP=function(){try{var r=function(){return rEK(Map,[],this.constructor)};
_.t(r,Map);CD(new r);return!1}catch(f){return!0}}(),wh=function(){this.JSC$6738_map_=new Map};
_.l=wh.prototype;_.l.get=function(r){return this.JSC$6738_map_.get(r)};
_.l.set=function(r,f){this.JSC$6738_map_.set(r,f);this.size=this.JSC$6738_map_.size;return this};
_.l.delete=function(r){r=this.JSC$6738_map_.delete(r);this.size=this.JSC$6738_map_.size;return r};
_.l.clear=function(){this.JSC$6738_map_.clear();this.size=this.JSC$6738_map_.size};
_.l.has=function(r){return this.JSC$6738_map_.has(r)};
_.l.entries=function(){return this.JSC$6738_map_.entries()};
_.l.keys=function(){return this.JSC$6738_map_.keys()};
_.l.values=function(){return this.JSC$6738_map_.values()};
_.l.forEach=function(r,f){return this.JSC$6738_map_.forEach(r,f)};
wh.prototype[Symbol.iterator]=function(){return this.entries()};
var fj=function(){if(WnP)return Object.setPrototypeOf(wh.prototype,Map.prototype),Object.defineProperties(wh.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),wh;var r=function(){return rEK(Map,[],this.constructor)};
_.t(r,Map);return r}(),Zp=function(r,f,I,C){I=I===void 0?X4u:I;
C=C===void 0?X4u:C;var Y=fj.call(this)||this;Y.arrayState=r[_.L8]|0;Y.valueCtor=f;Y.keyToApi=I;Y.valueToApi=Y.valueCtor?$TB:C;for(var V=0;V<r.length;V++){var S=r[V],h=I(S[0],!1,!0),w=S[1];f?w===void 0&&(w=null):w=C(S[1],!1,!0,void 0,void 0,Y.arrayState);fj.prototype.set.call(Y,h,w)}return Y};
_.t(Zp,fj);var Lnc=function(r){if(r.arrayState&2)throw Error("K");};
_.l=Zp.prototype;_.l.clear=function(){Lnc(this);fj.prototype.clear.call(this)};
_.l.delete=function(r){Lnc(this);return fj.prototype.delete.call(this,this.keyToApi(r,!0,!1))};
_.l.entries=function(){if(this.valueCtor){var r=fj.prototype.keys.call(this);r=new aFB(r,F3B,this)}else r=fj.prototype.entries.call(this);return r};
_.l.values=function(){if(this.valueCtor){var r=fj.prototype.keys.call(this);r=new aFB(r,Zp.prototype.get,this)}else r=fj.prototype.values.call(this);return r};
_.l.forEach=function(r,f){this.valueCtor?fj.prototype.forEach.call(this,function(I,C,Y){r.call(f,Y.get(C),C,Y)}):fj.prototype.forEach.call(this,r,f)};
_.l.set=function(r,f){Lnc(this);r=this.keyToApi(r,!0,!1);return r==null?this:f==null?(fj.prototype.delete.call(this,r),this):fj.prototype.set.call(this,r,this.valueToApi(f,!0,!0,this.valueCtor,!1,this.arrayState))};
_.l.has=function(r){return fj.prototype.has.call(this,this.keyToApi(r,!1,!1))};
_.l.get=function(r){r=this.keyToApi(r,!1,!1);var f=fj.prototype.get.call(this,r);if(f!==void 0){var I=this.valueCtor;return I?(I=this.valueToApi(f,!1,!0,I,this.callToMutableOnAccess,this.arrayState),I!==f&&fj.prototype.set.call(this,r,I),I):f}};
Zp.prototype[Symbol.iterator]=function(){return this.entries()};
Zp.prototype.toJSON=void 0;var PVP;var i8K=function(){},q6=function(r,f){for(var I in r)!isNaN(I)&&f(r,+I,r[I])},RgK=function(r){var f=new i8K;
q6(r,function(I,C,Y){f[C]=E7(Y)});
f.reviveUnknownFields=r.reviveUnknownFields;return f},W3u={reviveIntoImmutable:!0};var H8R;var O8l,oCq;var mNR,$H,Vy,wp,eFK,Xz,xl,Jwc,jnR,PM,HtK,ts,WM,LD;mNR=_.uV(0);_.bf={};_.pD=function(r,f,I,C,Y){f=$H(r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f,I,Y);if(f!==null||C&&r.noLegacyNull!==RD)return f};
$H=function(r,f,I,C){if(f===-1)return null;var Y=f+(I?0:-1),V=r.length-1;if(!(V<1+(I?0:-1))){if(Y>=V){var S=r[V];if(S!=null&&typeof S==="object"&&S.constructor===Object){I=S[f];var h=!0}else if(Y===V)I=S;else return}else I=r[Y];if(C&&I!=null){C=C(I);if(C==null)return C;if(!Object.is(C,I))return h?S[f]=C:r[Y]=C,C}return I}};
_.qU=function(r,f,I,C){pj(r);var Y=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;zy(Y,Y[_.L8]|0,f,I,C);return r};
_.nD=function(r,f,I){r=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return mo(r,r[_.L8]|0,f,I)!==void 0};
_.dh=function(r,f,I,C){var Y=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return mo(Y,Y[_.L8]|0,f,wp(r,C,I))!==void 0};
_.qS=function(r){return r===Xxw?2:4};
_.zb=function(r,f){r=_.pD(r,f,void 0,void 0,rUU);return r==null?_.ss():r};
Vy=function(r,f,I,C){pj(r);var Y=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=Y[_.L8]|0;if(C==null){var S=IpR(Y);if(C2d(S,Y,V,I)===f)S.set(I,0);else return r}else V=Y7c(Y,V,I,f);zy(Y,V,f,C);return r};
_.M2=function(r,f,I,C){var Y=r[_.L8]|0,V=G4(Y);Y=Y7c(r,Y,I,f,V);zy(r,Y,f,C,V)};
wp=function(r,f,I){return _.aJ(r,f)===I?I:-1};
_.aJ=function(r,f){r=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return C2d(IpR(r),r,void 0,f,void 0)};
eFK=function(r,f,I){var C=r[_.L8]|0,Y=G4(C),V=$H(r,I,Y);if(V!=null&&V[U7]===oY){if(!v4(V))return br(V),V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var S=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(V)&&(S=V);if(S){var h=S[_.L8]|0;h&2&&(S=EW(S,h))}S=VG(S,f,!0);S!==V&&zy(r,C,I,S,Y);return S};
_.kB=function(r,f,I,C){var Y=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=Y[_.L8]|0;f=mo(Y,V,f,I,C);if(f==null)return f;V=Y[_.L8]|0;if(!v4(r,V)){var S=NB$(f);S!==f&&(br(r)&&(Y=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=Y[_.L8]|0),f=S,V=zy(Y,V,I,f,C),d2(Y,V))}return f};
_.Bk=function(r,f,I,C){var Y=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return lpq(r,Y,Y[_.L8]|0,f,I,C,!1,!0)};
_.CK=function(r,f,I,C){I=Vdw(I);_.qU(r,f,I,C);I&&!v4(I)&&d2(r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return r};
_.Y1=function(r,f,I,C){C=Vdw(C);Vy(r,f,I,C);C&&!v4(C)&&d2(r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return r};
Xz=function(r,f,I){pj(r);var C=r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=C[_.L8]|0;if(I==null)return zy(C,Y,f),r;for(var V=I===Me?7:I[_.L8]|0,S=V,h=Ne(V),w=h||Object.isFrozen(I),n=!0,d=!0,z=0;z<I.length;z++){var g=I[z];h||(g=v4(g),n&&(n=!g),d&&(d=g))}h||(V=n?13:5,V=d?V&-4097:V|4096);w&&V===S||(I=E7(I),S=0,V=aM(V,Y));V!==S&&e3(I,V);Y=zy(C,Y,f,I);2&V||!(4096&V||16&V)||d2(C,Y);return r};
xl=function(r,f,I,C){S7E(r,f,I,C);return r};
Jwc=function(r,f,I){S7E(r,f,N2,void 0,I,1,!0);return r};
_.$p=function(r,f,I){r=_.pD(r,f,void 0,I);f=typeof r;r=r==null?r:f==="bigint"?_.uV((0,_.i2)(64,r)):_.X3(r)?f==="string"?_.w4R(r):_.xTR(r):void 0;return r};
_.Fz=function(r,f){var I=I===void 0?!1:I;var C;return(C=_.kB$(_.pD(r,f)))!=null?C:I};
_.u3=function(r,f,I){I=I===void 0?0:I;var C;return(C=_.tU(_.pD(r,f)))!=null?C:I};
jnR=function(r,f){var I=I===void 0?0:I;r=_.cB(_.pD(r,f));return r!=null?r:I};
PM=function(r,f,I){I=I===void 0?mNR:I;var C;return(C=_.nCP(_.pD(r,f)))!=null?C:I};
HtK=function(r){var f=f===void 0?mNR:f;var I;return(I=_.$p(r,23))!=null?I:f};
ts=function(r,f){var I=I===void 0?0:I;var C;return(C=_.pD(r,f,void 0,void 0,_.ds))!=null?C:I};
_.Tb=function(r,f,I,C){I=I===void 0?"":I;var Y;return(Y=_.yV(_.pD(r,f,C)))!=null?Y:I};
_.cM=function(r,f){var I=I===void 0?0:I;var C;return(C=_.F3(_.pD(r,f)))!=null?C:I};
WM=function(r,f){var I=I===void 0?"0":I;r=p4m(_.pD(r,f),!0);return r!=null?r:I};
LD=function(r,f,I){return _.Tb(r,wp(r,I,f))};
_.mt=function(r,f,I,C){return _.kB(r,f,wp(r,C,I),void 0)};
_.xa=function(r,f){return _.yV(_.pD(r,f,void 0,_.bf))};
_.IZ=function(r,f,I){return _.qU(r,f,GBB(I))};
_.X6=function(r,f,I){return _.Ty(r,f,GBB(I),!1)};
_.eg=function(r,f,I){return _.qU(r,f,_.PB(I))};
_.pN=function(r,f,I){return _.qU(r,f,JU(I))};
_.w5=function(r,f,I){return _.qU(r,f,Kq(I))};
_.kU=function(r,f,I,C){return _.Ty(r,f,Kq(I),"",C)};
_.Bd=function(r,f,I){return _.qU(r,f,I==null?I:_.$i(I))};
_.Js=function(r,f,I){return _.Ty(r,f,I==null?I:_.$i(I),0)};var ea=function(r,f,I){this.buffer=r;if(I&&!f)throw Error();this.JSC$6750_isImmutable=f};var itU=function(r,f,I,C){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6753_start_=0;this.init(r,f,I,C)},jg,vul,Knw,UN$,cUB,RFl;
_.l=itU.prototype;_.l.init=function(r,f,I,C){var Y=C===void 0?{}:C;C=Y.aliasBytesFields===void 0?!1:Y.aliasBytesFields;Y=Y.treatNewDataAsImmutable===void 0?!1:Y.treatNewDataAsImmutable;this.aliasBytesFields=C;this.treatNewDataAsImmutable=Y;r&&(r=x6P(r,this.treatNewDataAsImmutable),this.bytes_=r.buffer,this.bytesAreImmutable_=r.JSC$6750_isImmutable,this.JSC$6753_start_=f||0,this.end_=I!==void 0?this.JSC$6753_start_+I:this.bytes_.length,this.cursor_=this.JSC$6753_start_)};
_.l.free=function(){this.clear();RFl.length<100&&RFl.push(this)};
_.l.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6753_start_=0;this.aliasBytesFields=!1};
_.l.reset=function(){this.cursor_=this.JSC$6753_start_};
_.l.atEnd=function(){return this.cursor_==this.end_};
_.HM=function(r,f){var I=0,C=0,Y=0,V=r.bytes_,S=r.cursor_;do{var h=V[S++];I|=(h&127)<<Y;Y+=7}while(Y<32&&h&128);Y>32&&(C|=(h&127)>>4);for(Y=3;Y<32&&h&128;Y+=7)h=V[S++],C|=(h&127)<<Y;jg(r,S);if(h<128)return f(I>>>0,C>>>0);throw Error("X");};
jg=function(r,f){r.cursor_=f;if(f>r.end_)throw Error("Y`"+f+"`"+r.end_);};
_.RJ=function(r){var f=r.bytes_,I=r.cursor_,C=f[I++],Y=C&127;if(C&128&&(C=f[I++],Y|=(C&127)<<7,C&128&&(C=f[I++],Y|=(C&127)<<14,C&128&&(C=f[I++],Y|=(C&127)<<21,C&128&&(C=f[I++],Y|=C<<28,C&128&&f[I++]&128&&f[I++]&128&&f[I++]&128&&f[I++]&128&&f[I++]&128)))))throw Error("X");jg(r,I);return Y};
_.vM=function(r){var f=r.bytes_,I=r.cursor_,C=f[I],Y=f[I+1],V=f[I+2];f=f[I+3];jg(r,r.cursor_+4);return(C<<0|Y<<8|V<<16|f<<24)>>>0};
vul=function(r){var f=_.vM(r);r=_.vM(r);return Amw(f,r)};
Knw=function(r){var f=_.vM(r),I=_.vM(r);r=(I>>31)*2+1;var C=I>>>20&2047;f=4294967296*(I&1048575)+f;return C==2047?f?NaN:r*Infinity:C==0?r*4.9E-324*f:r*Math.pow(2,C-1075)*(f+4503599627370496)};
_.ywK=function(r){for(var f=0,I=r.cursor_,C=I+10,Y=r.bytes_;I<C;){var V=Y[I++];f|=V;if((V&128)===0)return jg(r,I),!!(f&127)}throw Error("X");};
UN$=function(r,f){if(f<0)throw Error("Z`"+f);var I=r.cursor_,C=I+f;if(C>r.end_)throw Error("Y`"+(r.end_-I)+"`"+f);r.cursor_=C;return I};
cUB=function(r,f){if(f==0)return _.ss();var I=UN$(r,f);r.aliasBytesFields&&r.bytesAreImmutable_?I=r.bytes_.subarray(I,I+f):(r=r.bytes_,f=I+f,I=I===f?new Uint8Array(0):cwu?r.slice(I,f):new Uint8Array(r.subarray(I,f)));return I.length==0?_.ss():new K8(I,Us)};
RFl=[];var Otc=function(r,f,I,C){if(RFl.length){var Y=RFl.pop();Y.init(r,f,I,C);r=Y}else r=new itU(r,f,I,C);this.decoder_=r;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;snR(this,C)},snR=function(r,f){f=f===void 0?{}:f;
r.discardUnknownFields=f.discardUnknownFields===void 0?!1:f.discardUnknownFields},m6P=function(r,f,I,C){if(ouq.length){var Y=ouq.pop();
snR(Y,C);Y.decoder_.init(r,f,I,C);return Y}return new Otc(r,f,I,C)},tdE,UW,Qn$,ouq;
Otc.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;ouq.length<100&&ouq.push(this)};
Otc.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
tdE=function(r){if(r.decoder_.atEnd())return!1;r.fieldCursor_=r.decoder_.cursor_;var f=_.RJ(r.decoder_)>>>0,I=f>>>3;f&=7;if(!(f>=0&&f<=5))throw Error("T`"+f+"`"+r.fieldCursor_);if(I<1)throw Error("U`"+I+"`"+r.fieldCursor_);r.nextField_=I;r.nextWireType_=f;return!0};
UW=function(r){switch(r.nextWireType_){case 0:r.nextWireType_!=0?UW(r):_.ywK(r.decoder_);break;case 1:r=r.decoder_;jg(r,r.cursor_+8);break;case 2:if(r.nextWireType_!=2)UW(r);else{var f=_.RJ(r.decoder_)>>>0;r=r.decoder_;jg(r,r.cursor_+f)}break;case 5:r=r.decoder_;jg(r,r.cursor_+4);break;case 3:f=r.nextField_;do{if(!tdE(r))throw Error("V");if(r.nextWireType_==4){if(r.nextField_!=f)throw Error("W");break}UW(r)}while(1);break;default:throw Error("T`"+r.nextWireType_+"`"+r.fieldCursor_);}};
Qn$=function(r,f,I){var C=r.decoder_.end_,Y=_.RJ(r.decoder_)>>>0,V=r.decoder_.cursor_+Y,S=V-C;S<=0&&(r.decoder_.end_=V,I(f,r,void 0,void 0,void 0),S=V-r.decoder_.cursor_);if(S)throw Error("S`"+Y+"`"+(Y-S));r.decoder_.cursor_=V;r.decoder_.end_=C};
_.AwK=function(r){var f=_.RJ(r.decoder_)>>>0;r=r.decoder_;var I=UN$(r,f);r=r.bytes_;if(TEq){var C=r,Y;(Y=t7K)||(Y=t7K=new TextDecoder("utf-8",{fatal:!0}));f=I+f;C=I===0&&f===C.length?C:C.subarray(I,f);try{var V=Y.decode(C)}catch(n){if(PPd===void 0){try{Y.decode(new Uint8Array([128]))}catch(d){}try{Y.decode(new Uint8Array([97])),PPd=!0}catch(d){PPd=!1}}!PPd&&(t7K=void 0);throw n;}}else{V=I;f=V+f;I=[];for(var S=null,h,w;V<f;)h=r[V++],h<128?I.push(h):h<224?V>=f?IR():(w=r[V++],h<194||(w&192)!==128?(V--,
IR()):I.push((h&31)<<6|w&63)):h<240?V>=f-1?IR():(w=r[V++],(w&192)!==128||h===224&&w<160||h===237&&w>=160||((Y=r[V++])&192)!==128?(V--,IR()):I.push((h&15)<<12|(w&63)<<6|Y&63)):h<=244?V>=f-2?IR():(w=r[V++],(w&192)!==128||(h<<28)+(w-144)>>30!==0||((Y=r[V++])&192)!==128||((C=r[V++])&192)!==128?(V--,IR()):(h=(h&7)<<18|(w&63)<<12|(Y&63)<<6|C&63,h-=65536,I.push((h>>10&1023)+55296,(h&1023)+56320))):IR(),I.length>=8192&&(S=rml(S,I),I.length=0);V=rml(S,I)}return V};
_.Ztu=function(r){var f=_.RJ(r.decoder_)>>>0;return cUB(r.decoder_,f)};
_.GpB=function(r,f,I){var C=_.RJ(r.decoder_)>>>0;for(C=r.decoder_.cursor_+C;r.decoder_.cursor_<C;)I.push(f(r.decoder_))};
ouq=[];var kpc=function(r,f){this.JSC$6760_lo=r>>>0;this.JSC$6760_hi=f>>>0},qtB=function(r){if(!r)return BqR||(BqR=new kpc(0,0));
if(!/^\d+$/.test(r))return null;VV(r);return new kpc(DU,rs)},BqR,sYK=function(r,f){this.JSC$6762_lo=r>>>0;
this.JSC$6762_hi=f>>>0},yUB=function(r){if(!r)return uPR||(uPR=new sYK(0,0));
if(!/^-?\d+$/.test(r))return null;VV(r);return new sYK(DU,rs)},uPR;var DNd=function(){this.JSC$6764_buffer_=[]},U6R,reK;
DNd.prototype.length=function(){return this.JSC$6764_buffer_.length};
DNd.prototype.end=function(){var r=this.JSC$6764_buffer_;this.JSC$6764_buffer_=[];return r};
U6R=function(r,f,I){for(;I>0||f>127;)r.JSC$6764_buffer_.push(f&127|128),f=(f>>>7|I<<25)>>>0,I>>>=7;r.JSC$6764_buffer_.push(f)};
reK=function(r,f){for(;f>127;)r.JSC$6764_buffer_.push(f&127|128),f>>>=7;r.JSC$6764_buffer_.push(f)};
_.OqU=function(r,f){if(f>=0)reK(r,f);else{for(var I=0;I<9;I++)r.JSC$6764_buffer_.push(f&127|128),f>>=7;r.JSC$6764_buffer_.push(1)}};
_.qe=function(r,f){r.JSC$6764_buffer_.push(f>>>0&255);r.JSC$6764_buffer_.push(f>>>8&255);r.JSC$6764_buffer_.push(f>>>16&255);r.JSC$6764_buffer_.push(f>>>24&255)};var f6$,QG,QYl,G6q;f6$=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new DNd};
QG=function(r,f){f.length!==0&&(r.blocks_.push(f),r.totalLength_+=f.length)};
_.pBU=function(r,f){_.kH(r,f,2);f=r.encoder_.end();QG(r,f);f.push(r.totalLength_);return f};
_.niw=function(r,f){var I=f.pop();for(I=r.totalLength_+r.encoder_.length()-I;I>127;)f.push(I&127|128),I>>>=7,r.totalLength_++;f.push(I);r.totalLength_++};
_.kH=function(r,f,I){reK(r.encoder_,f*8+I)};
QYl=function(r,f,I){if(I!=null){switch(typeof I){case "string":qtB(I)}_.kH(r,f,1);switch(typeof I){case "number":r=r.encoder_;oqd(I);_.qe(r,DU);_.qe(r,rs);break;case "bigint":I=BigInt.asUintN(64,I);I=new kpc(Number(I&BigInt(4294967295)),Number(I>>BigInt(32)));r=r.encoder_;f=I.JSC$6760_hi;_.qe(r,I.JSC$6760_lo);_.qe(r,f);break;default:I=qtB(I),r=r.encoder_,f=I.JSC$6760_hi,_.qe(r,I.JSC$6760_lo),_.qe(r,f)}}};
G6q=function(r,f,I){_.kH(r,f,2);reK(r.encoder_,I.length);QG(r,r.encoder_.end());QG(r,I)};var h1U,YOU,l6R,SOq,x9E;h1U=HE();_.I6u=HE();_.CJm=HE();YOU=HE();l6R=HE();_.V6R=HE();_.yF=HE();_.EWu=HE();SOq=HE();x9E=HE();_.hCU=HE();_.wNq=HE();_.Kj=function(r,f,I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r,f,I)};
_.Kj.prototype.toJSON=function(){return Cj(this)};
_.Kj.prototype.serialize=function(r){return JSON.stringify(Cj(this,r))};
var CrB=function(r,f){if(f==null||f=="")return new r;f=JSON.parse(f);if(!Array.isArray(f))throw Error("$");return new r(HwB(f))};
_.Kj.prototype.getExtension=function(r){egd(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,r.fieldIndex);L3U(this,r.fieldIndex);return r.ctor?r.isRepeated?r.getExtensionFn(this,r.ctor,r.fieldIndex,_.qS(),r.JSC$6775_hasMessageId):r.getExtensionFn(this,r.ctor,r.fieldIndex,r.JSC$6775_hasMessageId):r.isRepeated?r.getExtensionFn(this,r.fieldIndex,_.qS(),r.JSC$6775_hasMessageId):r.getExtensionFn(this,r.fieldIndex,r.defaultValue,r.JSC$6775_hasMessageId)};
_.Kj.prototype.clone=function(){var r=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=r[_.L8]|0;return xH(this,r,f)?Sa(this,r,!0):new this.constructor(EW(r,f,!1))};
_.Kj.prototype[U7]=oY;_.Kj.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var ir=function(r,f,I){this.$$binaryReaderFn=r;this.$$binaryWriterFn=f;r=G6(h1U);this.$$isMsg=!!r&&I===r||!1},giw=wBU(function(r,f,I,C,Y){if(r.nextWireType_!==2)return!1;
Qn$(r,eFK(f,C,I),Y);return!0},d6R),apU=wBU(function(r,f,I,C,Y){if(r.nextWireType_!==2)return!1;
Qn$(r,eFK(f,C,I),Y);return!0},d6R),OW=Symbol(),yG=Symbol(),P2w=Symbol(),JUl=Symbol(),W6w=Symbol(),z1w,MdE;var rgK,b1B,pNw,nWq,d9w,zCP,M6K,gWw,a6P,XNm,N3R,FjE,PJl,T3$,ceB;rgK=function(r,f){var I=new f6$;jYd(r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I,vE(OW,sW,oM,f));QG(I,I.encoder_.end());r=new Uint8Array(I.totalLength_);f=I.blocks_;for(var C=f.length,Y=0,V=0;V<C;V++){var S=f[V];r.set(S,Y);Y+=S.length}I.blocks_=[r];return r};
b1B=_.Ag(function(r,f,I){if(r.nextWireType_!==1)return!1;_.Z$(f,I,Knw(r.decoder_));return!0},K6$,x9E);
pNw=_.Ag(function(r,f,I,C){if(r.nextWireType_!==1)return!1;_.M2(f,I,C,Knw(r.decoder_));return!0},K6$,x9E);
nWq=_.Ag(function(r,f,I,C){if(r.nextWireType_!==5)return!1;var Y=_.vM(r.decoder_);r=(Y>>31)*2+1;var V=Y>>>23&255;Y&=8388607;_.M2(f,I,C,V==255?Y?NaN:r*Infinity:V==0?r*1.401298464324817E-45*Y:r*Math.pow(2,V-150)*(Y+8388608));return!0},function(r,f,I){f=_.ds(f);
f!=null&&(_.kH(r,I,5),r=r.encoder_,I=BE||(BE=new DataView(new ArrayBuffer(8))),I.setFloat32(0,+f,!0),rs=0,DU=I.getUint32(0,!0),_.qe(r,DU))},SOq);
_.Uv=_.Ag(function(r,f,I){if(r.nextWireType_!==0)return!1;_.Z$(f,I,_.HM(r.decoder_,Cq));return!0},_.ur,_.yF);
d9w=_.Ag(function(r,f,I){if(r.nextWireType_!==0)return!1;r=_.HM(r.decoder_,Cq);_.Z$(f,I,r===0?void 0:r);return!0},_.ur,_.yF);
zCP=_.Ag(function(r,f,I,C){if(r.nextWireType_!==0)return!1;_.M2(f,I,C,_.HM(r.decoder_,Cq));return!0},_.ur,_.yF);
_.sv=_.Ag(function(r,f,I){if(r.nextWireType_!==0)return!1;_.Z$(f,I,_.RJ(r.decoder_));return!0},oiU,YOU);
M6K=_.Ag(function(r,f,I){if(r.nextWireType_!==0)return!1;r=_.RJ(r.decoder_);_.Z$(f,I,r===0?void 0:r);return!0},oiU,YOU);
gWw=_.Ag(function(r,f,I,C){if(r.nextWireType_!==0)return!1;_.M2(f,I,C,_.RJ(r.decoder_));return!0},oiU,YOU);
a6P=_.Ag(function(r,f,I){if(r.nextWireType_!==1)return!1;_.Z$(f,I,vul(r.decoder_));return!0},_.AUq,_.EWu);
XNm=_.viR(function(r,f,I){if(r.nextWireType_!==1&&r.nextWireType_!==2)return!1;f=_.cE(f,f[_.L8]|0,I);r.nextWireType_==2?_.GpB(r,vul,f):f.push(vul(r.decoder_));return!0},function(r,f,I){f=_.R1u(zgq,f,!1);
if(f!=null)for(var C=0;C<f.length;C++)QYl(r,I,f[C])},_.EWu);
_.Ov=_.Ag(function(r,f,I){if(r.nextWireType_!==0)return!1;_.Z$(f,I,_.ywK(r.decoder_));return!0},_.ZqK,_.I6u);
N3R=_.Ag(function(r,f,I,C){if(r.nextWireType_!==0)return!1;_.M2(f,I,C,_.ywK(r.decoder_));return!0},_.ZqK,_.I6u);
_.oJ=_.Ag(function(r,f,I){if(r.nextWireType_!==2)return!1;_.Z$(f,I,_.AwK(r));return!0},_.k6P,_.CJm);
_.$9E=_.Ag(function(r,f,I,C){if(r.nextWireType_!==2)return!1;_.M2(f,I,C,_.AwK(r));return!0},_.k6P,_.CJm);
FjE=_.viR(function(r,f,I){if(r.nextWireType_!==2)return!1;r=_.AwK(r);_.cE(f,f[_.L8]|0,I).push(r);return!0},function(r,f,I){f=_.R1u(_.yV,f,!0);
if(f!=null)for(var C=0;C<f.length;C++){var Y=r,V=I,S=f[C];S!=null&&G6q(Y,V,YPl(S))}},_.CJm);
PJl=void 0;PJl=PJl===void 0?h1U:PJl;_.QF=new ir(function(r,f,I,C,Y){if(r.nextWireType_!==2)return!1;C=VG(void 0,C,!0);_.cE(f,f[_.L8]|0,I).push(C);Qn$(r,C,Y);return!0},function(r,f,I,C,Y){if(Array.isArray(f))for(var V=0;V<f.length;V++)Bsw(r,f[V],I,C,Y)},PJl);
_.As=wBU(function(r,f,I,C,Y,V){if(r.nextWireType_!==2)return!1;var S=f[_.L8]|0;Y7c(f,S,V,I,G4(S));f=eFK(f,C,I);Qn$(r,f,Y);return!0},Bsw);
_.t6R=_.Ag(function(r,f,I){if(r.nextWireType_!==2)return!1;_.Z$(f,I,_.Ztu(r));return!0},_.u3U,_.hCU);
T3$=_.Ag(function(r,f,I,C){if(r.nextWireType_!==2)return!1;_.M2(f,I,C,_.Ztu(r));return!0},_.u3U,_.hCU);
ceB=_.Ag(function(r,f,I,C){if(r.nextWireType_!==0)return!1;_.M2(f,I,C,_.RJ(r.decoder_)>>>0);return!0},function(r,f,I){f=_.cB(f);
f!=null&&f!=null&&(_.kH(r,I,0),reK(r.encoder_,f))},l6R);
_.Zn=_.Ag(function(r,f,I){if(r.nextWireType_!==0)return!1;_.Z$(f,I,_.RJ(r.decoder_));return!0},_.D6U,_.wNq);var m9U=function(){var r=Wju,f=LjK;this.fieldIndex=175237375;this.ctor=f;this.isRepeated=0;this.getExtensionFn=_.kB;this.defaultValue=void 0;this.JSC$6775_hasMessageId=r.messageId!=null?A_:void 0};
m9U.prototype.register=function(){CD(this)};var eCK=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(eCK,_.Kj);var Jed=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Jed,_.Kj);var VaU=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(VaU,_.Kj);var jIE=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(jIE,_.Kj);var H1R=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(H1R,_.Kj);var i1m=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(i1m,_.Kj);var RCK=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(RCK,_.Kj);RCK.prototype.getData=function(){return _.zb(this,2)};var vWd=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(vWd,_.Kj);var Kjc=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Kjc,_.Kj);Kjc.prototype.getStyle=function(){return _.kB(this,eCK,1)};var Iw=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Iw,_.Kj);Iw.prototype.getPayloadCase=function(){return _.aJ(this,lM)};
Iw.prototype.getStyle=function(){return _.mt(this,Kjc,6,lM)};
var yem=function(){var r=new Iw,f=new H1R;return _.Y1(r,7,lM,f)},U9K=function(){var r=new Iw,f=new i1m;
return _.Y1(r,8,lM,f)},lM=[1,
2,3,4,5,6,7,8];var sIl=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(sIl,_.Kj);var O1m=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(O1m,_.Kj);var oWq=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(oWq,_.Kj);var QIK=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(QIK,_.Kj);var Aew=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Aew,_.Kj);var Z1E=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Z1E,_.Kj);var GRR=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(GRR,_.Kj);var kRK=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(kRK,_.Kj);kRK.prototype.getData=function(){return _.zb(this,2)};var B3U=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(B3U,_.Kj);var l$K=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(l$K,_.Kj);l$K.prototype.getPayloadCase=function(){return _.aJ(this,Gb)};
var Gb=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var kp=function(r,f){r=Error.call(this,r);this.message=r.message;"stack"in r&&(this.stack=r.stack);this.code=f===void 0?2:f};
_.t(kp,Error);var qOc=Promise;var utq=function(r){this.channelPromise=r};
utq.prototype.send=function(r,f,I){this.channelPromise.then(function(C){C.send(r,f,I)})};var D9P=function(r,f){this.data=r;this.channel=f};
D9P.prototype.reply=function(r,f,I){this.channel.send(r,f,I)};var rmg=function(r){this.JSC$6841_port_=r};
rmg.prototype.send=function(r,f,I){I=I===void 0?[]:I;var C=new MessageChannel;fd4(C.port1,f);this.JSC$6841_port_.postMessage(r,[C.port2].concat(I))};
var IdC=function(r,f){fd4(r,f);return new rmg(r)},fd4=function(r,f){f&&(r.onmessage=function(I){f(new D9P(I.data,IdC(I.ports[0])))})};var CUC=function(r){this.verifier_=r},YPg=function(r){var f=Object.create(null);
(typeof r==="string"?[r]:r).forEach(function(I){if(I==="null")throw Error("ba");f[I]=!0});
return function(I){return f[I]===!0}};_.ld4=function(){if(!_.Yq.addEventListener||!Object.defineProperty)return!1;var r=!1,f=Object.defineProperty({},"passive",{get:function(){r=!0}});
try{var I=function(){};
_.Yq.addEventListener("test",I,f);_.Yq.removeEventListener("test",I,f)}catch(C){}return r}();var VKB;_.BM=function(r){var f=r.destination;var I=r.iframe;var C=r.origin;var Y=r.channelName===void 0?"ZNWN1d":r.channelName;var V=r.onMessage===void 0?void 0:r.onMessage;r=r.onEstablished===void 0?void 0:r.onEstablished;return VKB({destination:f,getSource:function(){return I.contentWindow},
originVerifier:C instanceof CUC?C:typeof C==="function"?new CUC(C):new CUC(YPg(C)),channelName:Y,onMessage:V,onEstablished:r})};
VKB=function(r){var f=r.destination;var I=r.getSource;var C=r.originVerifier;var Y=r.token===void 0?void 0:r.token;var V=r.channelName;var S=r.onMessage===void 0?void 0:r.onMessage;var h=r.onEstablished===void 0?void 0:r.onEstablished;return new utq(new qOc(function(w,n){var d=function(z){z.source&&z.source===I()&&C.verifier_(z.origin)&&(z.data.n||z.data)===V&&(f.removeEventListener("message",d,!1),Y&&z.data.t!==Y?n(Error("ca`"+V+"`"+Y+"`"+z.data.t)):(w(IdC(z.ports[0],S)),h&&h(z)))};
f.addEventListener("message",d,!1)}))};var EqX=function(r){try{r()}catch(f){VE(f)}};var xc4=function(r){var f=this;var I=r.getMessageType;var C=r.onUnregisteredMessage===void 0?function(){}:r.onUnregisteredMessage;
var Y=r.onBeforeRegisteredMessage===void 0?function(){}:r.onBeforeRegisteredMessage;
r=r.onAfterRegisteredMessage===void 0?function(){}:r.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=I;this.onUnregisteredMessage_=C;this.onBeforeRegisteredMessage_=Y;this.onAfterRegisteredMessage_=r;this.onMessage=function(V){return SPg(f,V)}};
xc4.prototype.register=function(r,f){this.registry_.set(r,f);return this};
var SPg=function(r,f){var I=r.getMessageType_(f.data),C=r.registry_.get(I);C?(EqX(function(){return r.onBeforeRegisteredMessage_(f,I)}),EqX(function(){return C(f)}),EqX(function(){return r.onAfterRegisteredMessage_(f,I)})):EqX(function(){return r.onUnregisteredMessage_(f,I)})};var hl_=function(r){this.JSC$6858_channel_=r},bwD,puq;
hl_.prototype.send=function(r,f,I){this.JSC$6858_channel_.send(Cj(r),f,I)};
_.wuV=function(r,f){return function(I){var C=new r(I.data);return f(new D9P(C,I.channel))}};
bwD=function(r){return function(f){return r(new D9P(f.data,new hl_(f.channel)))}};
puq=function(r,f){return bwD(_.wuV(r,f))};var nqg=function(r,f,I,C){this.registry=r;this.delegate=f;this.receiveMessageConstructor=I;this.createInitMessage=C;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},YWR=function(r){var f=new xc4({getMessageType:r.getPayloadCase});
return new nqg(f,new hl_(_.BM({iframe:r.child,destination:window,origin:r.origin,channelName:r.channelName,onMessage:puq(r.receiveMessageConstructor,f.onMessage)})),r.receiveMessageConstructor,r.createInitMessage)},dc8=function(r,f){r.createInitMessage=f};
nqg.prototype.send=function(r){if(!this.initialised)throw new kp("Attempted to send a message before initialisation.");this.delegate.send(r)};
var zlB=function(r,f){return _.x(function(I){if(!r.initialised)throw new kp("Attempted to send a message before initialisation.");return I.return(new Promise(function(C){r.delegate.send(f,puq(r.receiveMessageConstructor,C))}))})};
nqg.prototype.init=function(){var r=this;return _.x(function(f){if(r.initialised)throw new kp("Attempted to initialise twice. The SDK can only be initialised once.");if(r.createInitMessage!==void 0){var I=r.delegate,C=I.send,Y=r.createInitMessage;var V=new Jed;var S=[].concat(_.Na(r.features));V=_.PE(V,1,S,_.$i);C.call(I,Y.call(r,V))}r.initialised=!0;_.wO(f)})};
var q2=function(r,f){if(r.initialised)throw new kp('Attempted to set up API "'+f+'" after initialisation. All APIs must be set up before initialising the SDK.');r.features.add(f);return r.registry};
_.OC.Object.defineProperties(nqg.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var MKq=function(r){this.channel=r;this.registered=!1};
MKq.prototype.update=function(r){if(this.channel.isInitialised){if(!this.registered)throw new kp("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var f=new Iw;var I=new jIE;I=_.IZ(I,1,r);f=_.Y1(f,2,lM,I);this.channel.send(f)}else this.register();this.JSC$6872_audioEnabled=r};
MKq.prototype.register=function(){q2(this.channel,1);this.registered=!0};
MKq.prototype.isAudioEnabled=function(){return this.JSC$6872_audioEnabled};var gq4=function(r){this.channel=r};
_.l=gq4.prototype;_.l.onFirstFrameReady=function(r){q2(this.channel,2).register(11,function(f){f=_.mt(f.data,sIl,11,Gb);if(!f)throw new kp("Unexpectedly nonexistent GameFirstFrameReadyEvent");r(_.Tb(f,1))})};
_.l.onReady=function(r){q2(this.channel,2).register(4,function(f){f=_.mt(f.data,oWq,4,Gb);if(!f)throw new kp("Unexpectedly nonexistent GameReadyEvent");r(_.Tb(f,1))})};
_.l.onLevelComplete=function(r){q2(this.channel,2).register(5,function(f){f=_.mt(f.data,QIK,5,Gb);if(!f)throw new kp("Unexpectedly nonexistent LevelCompleteEvent");r(_.Tb(f,1),_.u3(f,2))})};
_.l.onGameOver=function(r){q2(this.channel,2).register(6,function(f){f=_.mt(f.data,O1m,6,Gb);if(!f)throw new kp("Unexpectedly nonexistent GameOverEvent");r(_.Tb(f,1))})};
_.l.pause=function(){var r=this;if(!this.channel.isInitialised)return q2(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new kp("Using unregistered Game Feature: pause.");var f=yem();return new Promise(function(I){return _.x(function(C){if(C.nextAddress==1)return _.b(C,zlB(r.channel,f),2);I();_.wO(C)})})};
_.l.resume=function(){var r=this;if(!this.channel.isInitialised)return q2(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new kp("Using unregistered Game Feature: resume.");var f=U9K();return new Promise(function(I){return _.x(function(C){if(C.nextAddress==1)return _.b(C,zlB(r.channel,f),2);I();_.wO(C)})})};var adU=function(r){this.channel=r};
adU.prototype.onReady=function(r){q2(this.channel,5).register(8,function(f){if(!_.mt(f.data,Aew,8,Gb))throw new kp("Unexpectedly nonexistent PageReadyEvent");r()})};var Xuq=function(r){this.channel=r};
Xuq.prototype.onChange=function(r){q2(this.channel,3).register(7,function(f){f=_.mt(f.data,Z1E,7,Gb);if(!f)throw new kp("Unexpectedly nonexistent ScoreEvent");r(_.Tb(f,1),_.u3(f,2))})};var NRU={load:function(){throw new kp("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new kp("Storage used, but storage.onSave() listener not set!");}},$cV=function(r){this.channel=r;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},FKD=function(r){q2(r.channel,4).register(2,NRU.load).register(3,NRU.save);
r.initialSetupDone=!0};
$cV.prototype.onLoad=function(r){this.initialSetupDone||FKD(this);this.loadRegistered||(this.loadRegistered=!0,q2(this.channel,4).register(2,function(f){var I,C,Y;return _.x(function(V){if(V.nextAddress==1){I=_.mt(f.data,GRR,2,Gb);if(!I)throw new kp("Unexpectedly nonexistent StorageLoad");C=_.Tb(I,1);return _.b(V,r(C),2)}Y=V.yieldResult;var S=f.reply,h=new Iw;var w=new RCK;w=_.w5(w,1,C);w=_.qU(w,2,_.Os(Y,!1));h=_.Y1(h,3,lM,w);S.call(f,h);_.wO(V)})}))};
$cV.prototype.onSave=function(r){this.initialSetupDone||FKD(this);this.saveRegistered||(this.saveRegistered=!0,q2(this.channel,4).register(3,function(f){var I,C,Y;return _.x(function(V){if(V.nextAddress==1){I=_.mt(f.data,kRK,3,Gb);if(!I)throw new kp("Unexpectedly nonexistent StorageSave");C=_.Tb(I,1);Y=zFm(I.getData());return _.b(V,r(C,Y),2)}var S=f.reply,h=new Iw;var w=new vWd;w=_.w5(w,1,C);h=_.Y1(h,4,lM,w);S.call(f,h);_.wO(V)})}))};var PU_=function(r){this.channel=r};
PU_.prototype.update=function(r){if(!this.channel.features.has(6))throw new kp("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var f=new Iw,I=new Kjc;r=_.CK(I,1,r);f=_.Y1(f,6,lM,r);this.channel.send(f)};
PU_.prototype.register=function(){q2(this.channel,6)};var tKg=function(r){this.channel=r;this.userActivityLoggingIntervalMs=0};
tKg.prototype.onUserActivity=function(r,f){this.userActivityLoggingIntervalMs=f;q2(this.channel,7).register(9,function(I){if(!_.mt(I.data,B3U,9,Gb))throw new kp("Unexpectedly nonexistent ClickEvent");r()})};var TR8=function(r){var f=this;this.channel=r;this.init=this.channel.init.bind(this.channel);this.page=new adU(this.channel);this.game=new gq4(this.channel);this.audio=new MKq(this.channel);this.score=new Xuq(this.channel);this.storage=new $cV(this.channel);this.style=new PU_(this.channel);this.userActivity=new tKg(this.channel);dc8(this.channel,function(I){var C=new VaU;I=_.CK(C,1,I);I=_.eg(I,3,f.userActivity.userActivityLoggingIntervalMs);C=f.audio.isAudioEnabled();C!==void 0&&_.IZ(I,2,C);C=new Iw;
return _.Y1(C,5,lM,I)})};var cm4=function(){this.timedFunctionContext=0};
cm4.prototype.timeExecution=function(r,f){var I=this;return function(){var C=_.XE.apply(0,arguments);I.timedFunctionContext=r;return f.apply(null,_.Na(C))}};var WKs=function(){var r={};this.priorityTasks=(r[3]=[],r[2]=[],r[1]=[],r);this.isFlushing=!1},YX=function(r,f,I){var C=LK3(r,I);
r.priorityTasks[I].push(f);C&&r.priorityTasks[I].length===1&&r.flush()},LK3=function(r,f){return Object.keys(r.priorityTasks).map(function(I){return Number(I)}).filter(function(I){return!isNaN(I)&&I>f}).every(function(I){return r.priorityTasks[I].length===0})};
WKs.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(r){return r.length>0});)mcB(this,3),mcB(this,2),mcB(this,1)}catch(r){throw Object.values(this.priorityTasks).forEach(function(f){return void f.splice(0,f.length)}),r;
}finally{this.isFlushing=!1}}};
var mcB=function(r,f){for(;LK3(r,f)&&r.priorityTasks[f].length>0;)r.priorityTasks[f][0](),r.priorityTasks[f].shift()};
_.OC.Object.defineProperties(WKs.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(r){return r.length>0})}}});var bjR={};var elq=globalThis.trustedTypes,SW$=elq,hLu;var ER=function(r){this.privateDoNotAccessOrElseWrappedResourceUrl=r};
ER.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var JmV=_.op([""]),jR4=lXR(["\x00"],["\\0"]),Hw4=lXR(["\n"],["\\n"]),iw3=lXR(["\x00"],["\\u0000"]);h6(function(r){return r(JmV)})||h6(function(r){return r(jR4)})||h6(function(r){return r(Hw4)})||h6(function(r){return r(iw3)});var M3;_.wn=function(r,f){this.privateDoNotAccessOrElseWrappedUrl=f};
_.wn.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.Rl_=bM("about:blank");M3=bM("about:invalid#zClosurez");var pER=function(r){this.isValid=r},vq8=new pER(function(r){return/^[^:]*([/?#]|$)/.test(r)}),KK8=dn("data"),ymT=dn("http"),Uc_=dn("https"),sR3=dn("ftp"),OwB=dn("mailto"),oqU=dn("intent"),QRg=dn("vnd.youtube"),nHU=[KK8,
ymT,Uc_,OwB,sR3,vq8],deU=Vs(function(){return typeof URL==="function"}),Am8=["data:",
"http:","https:","mailto:","ftp:"],MaP=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var TC=function(r){this.privateDoNotAccessOrElseWrappedHtml=r};
TC.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var tH$=Vs(function(){return new TC(elq?elq.emptyHTML:"")});var Zw4={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"},mX=function(r,f){var I=Error.call(this,r+" cannot be used with intent "+Zw4[f]);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.type=r;this.intent=f;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.t(mX,Error);_.jF=function(r){this.privateDoNotAccessOrElseWrappedScript=r};
_.jF.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var N2K=function(r){this.privateDoNotAccessOrElseWrappedAttributePrefix=r};
N2K.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var $eK="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var TFR=function(r){var f=_.jH("window.location.href");r==null&&(r='Unknown Error of type "null/undefined"');if(typeof r==="string")return{message:r,name:"Unknown error",lineNumber:"Not available",fileName:f,stack:"Not available"};var I=!1;try{var C=r.lineNumber||r.line||"Not available"}catch(S){C="Not available",I=!0}try{var Y=r.fileName||r.filename||r.sourceURL||_.Yq.$googDebugFname||f}catch(S){Y="Not available",I=!0}f=GB4(r);if(!(!I&&r.lineNumber&&r.fileName&&r.stack&&r.message&&r.name)){I=r.message;
if(I==null){if(r.constructor&&r.constructor instanceof Function){if(r.constructor.name)I=r.constructor.name;else if(I=r.constructor,uf[I])I=uf[I];else{I=String(I);if(!uf[I]){var V=/function\s+([^\(]+)/m.exec(I);uf[I]=V?V[1]:"[Anonymous]"}I=uf[I]}I='Unknown Error of type "'+I+'"'}else I="Unknown Error of unknown type";typeof r.toString==="function"&&Object.prototype.toString!==r.toString&&(I+=": "+r.toString())}return{message:I,name:r.name||"UnknownError",lineNumber:C,fileName:Y,stack:f||"Not available"}}return{message:r.message,
name:r.name,lineNumber:r.lineNumber,fileName:r.fileName,stack:f}},GB4=function(r,f){f||(f={});
f[kBX(r)]=!0;var I=r.stack||"",C=r.cause;C&&!f[kBX(C)]&&(I+="\nCaused by: ",C.stack&&C.stack.indexOf(C.toString())==0||(I+=typeof C==="string"?C:C.message+"\n"),I+=GB4(C,f));r=r.errors;if(Array.isArray(r)){C=1;var Y;for(Y=0;Y<r.length&&!(C>4);Y++)f[kBX(r[Y])]||(I+="\nInner error "+C++ +": ",r[Y].stack&&r[Y].stack.indexOf(r[Y].toString())==0||(I+=typeof r[Y]==="string"?r[Y]:r[Y].message+"\n"),I+=GB4(r[Y],f));Y<r.length&&(I+="\n... "+(r.length-Y)+" more inner errors")}return I},kBX=function(r){var f=
"";
typeof r.toString==="function"&&(f=""+r);return f+r.stack},uf={};var BRT,An,Bl,u$B,DcU,qPT,j4,e5,fU4;BRT=function(r,f){for(var I=r.split("%s"),C="",Y=Array.prototype.slice.call(arguments,1);Y.length&&I.length>1;)C+=I.shift()+Y.shift();return C+I.join("%s")};
_.ik=function(r){return encodeURIComponent(String(r))};
An=function(r){return decodeURIComponent(r.replace(/\+/g," "))};
Bl=function(r){H5U.test(r)&&(r.indexOf("&")!=-1&&(r=r.replace(WzB,"&amp;")),r.indexOf("<")!=-1&&(r=r.replace(Lzc,"&lt;")),r.indexOf(">")!=-1&&(r=r.replace(mxE,"&gt;")),r.indexOf('"')!=-1&&(r=r.replace(eww,"&quot;")),r.indexOf("'")!=-1&&(r=r.replace(JEB,"&#39;")),r.indexOf("\x00")!=-1&&(r=r.replace(jeU,"&#0;")));return r};
u$B=function(r){var f={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var I=_.Yq.document.createElement("div");return r.replace(qPT,function(C,Y){var V=f[C];if(V)return V;Y.charAt(0)=="#"&&(Y=Number("0"+Y.slice(1)),isNaN(Y)||(V=String.fromCharCode(Y)));V||(_.KK(I,cL(C+" ")),V=I.firstChild.nodeValue.slice(0,-1));return f[C]=V})};
DcU=function(r){return r.replace(/&([^;]+);/g,function(f,I){switch(I){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return I.charAt(0)!="#"||(I=Number("0"+I.slice(1)),isNaN(I))?f:String.fromCharCode(I)}})};
qPT=/&([^;\s<&]+);?/g;_.qvR=function(r){return String(r).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.r_q=String.prototype.repeat?function(r,f){return r.repeat(f)}:function(r,f){return Array(f+1).join(r)};
_.Dn=function(r,f){if(!Number.isFinite(r))return String(r);r=String(r);var I=r.indexOf(".");I===-1&&(I=r.length);var C=r[0]==="-"?"-":"";C&&(r=r.substring(1));return C+(0,_.r_q)("0",Math.max(0,f-I))+r};
j4=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.Dc()).toString(36)};
e5=function(r){for(var f=0,I=0;I<r.length;++I)f=31*f+r.charCodeAt(I)>>>0;return f};
_.xA=function(r){return String(r).replace(/\-([a-z])/g,function(f,I){return I.toUpperCase()})};
_.S5=function(r){return String(r).replace(/([A-Z])/g,"-$1").toLowerCase()};
fU4=function(r){return r.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(f,I,C){return I+C.toUpperCase()})};var IUs=function(){this.names=new Map};
IUs.prototype.getName=function(r){var f=this.names.get(r);if(f)return f;var I;f=(I=r.description)!=null?I:j4();this.names.set(r,f);return f};var CV4=function(r){var f=Error.call(this,r?r.length+" errors occurred during unsubscription:\n"+r.map(function(I,C){return C+1+") "+I.toString()}).join("\n  "):"");
this.message=f.message;"stack"in f&&(this.stack=f.stack);this.errors=r;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.t(CV4,Error);var GC=function(r){this.initialTeardown=r;this.closed=!1;this._teardowns=this._parentage=null};
_.l=GC.prototype;
_.l.unsubscribe=function(){if(!this.closed){this.closed=!0;var r=this._parentage;if(Array.isArray(r))for(var f=_.E(r),I=f.next();!I.done;I=f.next())I.value.remove(this);else r==null||r.remove(this);f=this.initialTeardown;if(Zz(f))try{f()}catch(V){var C=V instanceof CV4?V.errors:[V]}var Y=this._teardowns;if(Y)for(this._teardowns=null,f=_.E(Y),I=f.next();!I.done;I=f.next()){I=I.value;try{Zz(I)?I():I.unsubscribe()}catch(V){I=void 0,C=(I=C)!=null?I:[],V instanceof CV4?C=[].concat(_.Na(C),_.Na(V.errors)):
C.push(V)}}if(C)throw new CV4(C);}};
_.l.add=function(r){if(r&&r!==this)if(this.closed)Zz(r)?r():r.unsubscribe();else{if(r instanceof GC){if(r.closed||r._hasParent(this))return;r._addParent(this)}var f;(this._teardowns=(f=this._teardowns)!=null?f:[]).push(r)}};
_.l._hasParent=function(r){var f=this._parentage;return f===r||Array.isArray(f)&&f.includes(r)};
_.l._addParent=function(r){var f=this._parentage;this._parentage=Array.isArray(f)?(f.push(r),f):f?[f,r]:r};
_.l._removeParent=function(r){var f=this._parentage;f===r?this._parentage=null:Array.isArray(f)&&A6(f,r)};
_.l.remove=function(r){var f=this._teardowns;f&&A6(f,r);r instanceof GC&&r._removeParent(this)};
var Ysg=new GC;Ysg.closed=!0;GC.JSC$6968_EMPTY=Ysg;var T2R=function(){setTimeout.apply(null,_.Na(_.XE.apply(0,arguments)))};var re=function(r){GC.call(this);this.JSC$6973_isStopped=!1;this.destination=r instanceof re?r:new f9(!r||Zz(r)?{next:r!=null?r:void 0}:r);taR(r)&&r.add(this)};
_.t(re,GC);re.JSC$6968_EMPTY=GC.JSC$6968_EMPTY;re.create=function(r,f,I){return new IF(r,f,I)};
_.l=re.prototype;_.l.next=function(r){this.JSC$6973_isStopped||this._next(r)};
_.l.error=function(r){this.JSC$6973_isStopped||(this.JSC$6973_isStopped=!0,this._error(r))};
_.l.complete=function(){this.JSC$6973_isStopped||(this.JSC$6973_isStopped=!0,this._complete())};
_.l.unsubscribe=function(){this.closed||(this.JSC$6973_isStopped=!0,GC.prototype.unsubscribe.call(this))};
_.l._next=function(r){this.destination.next(r)};
_.l._error=function(r){this.destination.error(r);this.unsubscribe()};
_.l._complete=function(){this.destination.complete();this.unsubscribe()};
var f9=function(r){this.partialObserver=r};
f9.prototype.next=function(r){var f=this.partialObserver;if(f.next)try{f.next(r)}catch(I){q3(I)}};
f9.prototype.error=function(r){var f=this.partialObserver;if(f.error)try{f.error(r)}catch(I){q3(I)}else q3(r)};
f9.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(f){q3(f)}};
var IF=function(r,f,I){re.call(this);var C;Zz(r)||!r?C={next:r!=null?r:void 0,error:f!=null?f:void 0,complete:I!=null?I:void 0}:C=r;this.destination=new f9(C)};
_.t(IF,re);IF.JSC$6968_EMPTY=re.JSC$6968_EMPTY;IF.create=re.create;var Ik=typeof Symbol==="function"&&Symbol.observable||"@@observable";var rO=function(r){r&&(this._subscribe=r)};
_.l=rO.prototype;_.l.lift=function(r){var f=new rO;f.source=this;f.operator=r;return f};
_.l.subscribe=function(r,f,I){r=r&&r instanceof re||r&&Zz(r.next)&&Zz(r.error)&&Zz(r.complete)&&taR(r)?r:new IF(r,f,I);f=this.operator;I=this.source;r.add(f?f.call(r,I):I?this._subscribe(r):this._trySubscribe(r));return r};
_.l._trySubscribe=function(r){try{return this._subscribe(r)}catch(f){r.error(f)}};
_.l.forEach=function(r,f){var I=this;f=Wo$(f);return new f(function(C,Y){var V=I.subscribe(function(S){try{r(S)}catch(h){Y(h),V==null||V.unsubscribe()}},Y,C)})};
_.l._subscribe=function(r){var f;return(f=this.source)==null?void 0:f.subscribe(r)};
rO.prototype[Ik]=function(){return this};
rO.prototype.pipe=function(){var r=_.XE.apply(0,arguments);return r.length?cg$(r)(this):this};
rO.create=function(r){return new rO(r)};var lUB=function(){var r=Error.call(this,"object unsubscribed");this.message=r.message;"stack"in r&&(this.stack=r.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.t(lUB,Error);var fo=function(){this.observers=[];this.hasError=this.JSC$6989_isStopped=this.closed=!1;this.thrownError=null};
_.t(fo,rO);_.l=fo.prototype;_.l.lift=function(r){var f=new C9(this,this);f.operator=r;return f};
_.l._throwIfClosed=function(){if(this.closed)throw new lUB;};
_.l.next=function(r){this._throwIfClosed();if(!this.JSC$6989_isStopped){var f=this.observers.slice();f=_.E(f);for(var I=f.next();!I.done;I=f.next())I.value.next(r)}};
_.l.error=function(r){this._throwIfClosed();if(!this.JSC$6989_isStopped){this.hasError=this.JSC$6989_isStopped=!0;this.thrownError=r;for(var f=this.observers;f.length;)f.shift().error(r)}};
_.l.complete=function(){this._throwIfClosed();if(!this.JSC$6989_isStopped){this.JSC$6989_isStopped=!0;for(var r=this.observers;r.length;)r.shift().complete()}};
_.l.unsubscribe=function(){this.JSC$6989_isStopped=this.closed=!0;this.observers=null};
_.l._trySubscribe=function(r){this._throwIfClosed();return rO.prototype._trySubscribe.call(this,r)};
_.l._subscribe=function(r){this._throwIfClosed();this._checkFinalizedStatuses(r);return this._innerSubscribe(r)};
_.l._innerSubscribe=function(r){var f=this,I=this.JSC$6989_isStopped,C=this.observers;return this.hasError||I?GC.JSC$6968_EMPTY:(C.push(r),new GC(function(){return A6(f.observers,r)}))};
_.l._checkFinalizedStatuses=function(r){var f=this.thrownError,I=this.JSC$6989_isStopped;this.hasError?r.error(f):I&&r.complete()};
fo.create=function(r,f){return new C9(r,f)};
var C9=function(r,f){fo.call(this);this.destination=r;this.source=f};
_.t(C9,fo);C9.create=fo.create;C9.prototype.next=function(r){var f,I;(f=this.destination)==null||(I=f.next)==null||I.call(f,r)};
C9.prototype.error=function(r){var f,I;(f=this.destination)==null||(I=f.error)==null||I.call(f,r)};
C9.prototype.complete=function(){var r,f;(r=this.destination)==null||(f=r.complete)==null||f.call(r)};
C9.prototype._subscribe=function(r){var f,I;return(I=(f=this.source)==null?void 0:f.subscribe(r))!=null?I:GC.JSC$6968_EMPTY};var Hk=function(r){fo.call(this);this._value=r};
_.t(Hk,fo);Hk.create=fo.create;Hk.prototype._subscribe=function(r){var f=fo.prototype._subscribe.call(this,r);!f.closed&&r.next(this._value);return f};
Hk.prototype.getValue=function(){var r=this.thrownError,f=this._value;if(this.hasError)throw r;this._throwIfClosed();return f};
Hk.prototype.next=function(r){fo.prototype.next.call(this,this._value=r)};
_.OC.Object.defineProperties(Hk.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var cG=new rO(function(r){return r.complete()});var fi=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var RLw=function(r){return r&&typeof r.length==="number"&&typeof r!=="function"};var V3q={now:function(){return(V3q.delegate||Date).now()},
delegate:void 0};var sg=function(r,f,I){r=r===void 0?Infinity:r;f=f===void 0?Infinity:f;I=I===void 0?V3q:I;fo.call(this);this.JSC$7011_bufferSize=r;this.windowTime=f;this.timestampProvider=I;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=f===Infinity;this.JSC$7011_bufferSize=Math.max(1,r);this.windowTime=Math.max(1,f)};
_.t(sg,fo);sg.create=fo.create;sg.prototype.next=function(r){var f=this.buffer,I=this.infiniteTimeWindow,C=this.timestampProvider,Y=this.windowTime;this.JSC$6989_isStopped||(f.push(r),!I&&f.push(C.now()+Y));ECV(this);fo.prototype.next.call(this,r)};
sg.prototype._subscribe=function(r){this._throwIfClosed();ECV(this);for(var f=this._innerSubscribe(r),I=this.infiniteTimeWindow,C=this.buffer.slice(),Y=0;Y<C.length&&!r.closed;Y+=I?1:2)r.next(C[Y]);this._checkFinalizedStatuses(r);return f};
var ECV=function(r){var f=r.JSC$7011_bufferSize,I=r.timestampProvider,C=r.buffer;r=r.infiniteTimeWindow;var Y=(r?1:2)*f;f<Infinity&&Y<C.length&&C.splice(0,C.length-Y);if(!r){f=I.now();I=0;for(r=1;r<C.length&&C[r]<=f;r+=2)I=r;I&&C.splice(0,I+1)}};var xTB=function(r,f){f=f===void 0?Ss4:f;this.schedulerActionCtor=r;this.now=f};
xTB.prototype.schedule=function(r,f,I){f=f===void 0?0:f;return(new this.schedulerActionCtor(this,r)).schedule(I,f)};
var Ss4=V3q.now;var c6u=function(){var r=Error.call(this,"no elements in sequence");this.message=r.message;"stack"in r&&(this.stack=r.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.t(c6u,Error);var Ma=function(r,f,I,C,Y){re.call(this,r);this.onUnsubscribe=Y;f&&(this._next=function(V){try{f(V)}catch(S){this.destination.error(S)}});
I&&(this._error=function(V){try{I(V)}catch(S){this.destination.error(S)}this.unsubscribe()});
C&&(this._complete=function(){try{C()}catch(V){this.destination.error(V)}this.unsubscribe()})};
_.t(Ma,re);Ma.JSC$6968_EMPTY=re.JSC$6968_EMPTY;Ma.create=re.create;Ma.prototype.unsubscribe=function(){var r;this.closed||(r=this.onUnsubscribe)!=null&&r.call(this);re.prototype.unsubscribe.call(this)};var yY=function(r,f){this.source=r;this.subjectFactory=f;this._subject=null;this._refCount=0;this._connection=null};
_.t(yY,rO);yY.create=rO.create;yY.prototype._subscribe=function(r){return hg3(this).subscribe(r)};
var hg3=function(r){var f=r._subject;if(!f||f.JSC$6989_isStopped)r._subject=r.subjectFactory();return r._subject};
yY.prototype._teardown=function(){this._refCount=0;var r=this._connection;this._subject=this._connection=null;r==null||r.unsubscribe()};
yY.prototype.connect=function(){var r=this,f=this._connection;if(!f){f=this._connection=new GC;var I=hg3(this);f.add(this.source.subscribe(new Ma(I,void 0,function(C){r._teardown();I.error(C)},function(){r._teardown();
I.complete()},function(){return r._teardown()})));
f.closed&&(this._connection=null,f=GC.JSC$6968_EMPTY)}return f};var kyK=Array.isArray;var qWK=Array.isArray,w4B=Object,u9K=w4B.getPrototypeOf,DeB=w4B.prototype,r6P=w4B.keys;var FJ=function(r,f,I){re.call(this,r);this._next=f;this.shouldComplete=I};
_.t(FJ,re);FJ.JSC$6968_EMPTY=re.JSC$6968_EMPTY;FJ.create=re.create;FJ.prototype._complete=function(){this.shouldComplete()?re.prototype._complete.call(this):this.unsubscribe()};var SRw=["addListener","removeListener"],E1E=["addEventListener","removeEventListener"],hnK=["on","off"];var Y2=function(){GC.call(this)};
_.t(Y2,GC);Y2.JSC$6968_EMPTY=GC.JSC$6968_EMPTY;Y2.prototype.schedule=function(){return this};var b84=function(r,f){return setInterval.apply(null,[r,f].concat(_.Na(_.XE.apply(2,arguments))))};var lw=function(r,f){GC.call(this);this.scheduler=r;this.work=f;this.pending=!1};
_.t(lw,Y2);lw.JSC$6968_EMPTY=Y2.JSC$6968_EMPTY;lw.prototype.schedule=function(r,f){f=f===void 0?0:f;if(this.closed)return this;this.state=r;r=this.id;var I=this.scheduler;r!=null&&(this.id=p4_(this,r,f));this.pending=!0;this.delay=f;this.id=this.id||this.requestAsyncId(I,this.id,f);return this};
lw.prototype.requestAsyncId=function(r,f,I){I=I===void 0?0:I;return b84(r.flush.bind(r,this),I)};
var p4_=function(r,f,I){I=I===void 0?0:I;if(I!=null&&r.delay===I&&r.pending===!1)return f;clearInterval(f)};
lw.prototype.execute=function(r,f){if(this.closed)return Error("la");this.pending=!1;if(r=this._execute(r,f))return r;this.pending===!1&&this.id!=null&&(this.id=p4_(this,this.id,null))};
lw.prototype._execute=function(r){var f=!1;try{this.work(r)}catch(C){f=!0;var I=!!C&&C||Error(C)}if(f)return this.unsubscribe(),I};
lw.prototype.unsubscribe=function(){if(!this.closed){var r=this.id,f=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;A6(f,this);r!=null&&(this.id=p4_(this,r,null));this.delay=null;Y2.prototype.unsubscribe.call(this)}};var nCs=function(r,f){f=f===void 0?Ss4:f;xTB.call(this,r,f);this.actions=[];this.active=!1;this.scheduled=void 0};
_.t(nCs,xTB);nCs.prototype.flush=function(r){var f=this.actions;if(this.active)f.push(r);else{var I;this.active=!0;do if(I=r.execute(r.state,r.delay))break;while(r=f.shift());this.active=!1;if(I){for(;r=f.shift();)r.unsubscribe();throw I;}}};var MS=new rO(BL);var wLK=Array.isArray;var VT=function(r,f){lw.call(this,r,f);this.scheduler=r;this.work=f};
_.t(VT,lw);VT.JSC$6968_EMPTY=lw.JSC$6968_EMPTY;VT.prototype.schedule=function(r,f){f=f===void 0?0:f;if(f>0)return lw.prototype.schedule.call(this,r,f);this.delay=f;this.state=r;this.scheduler.flush(this);return this};
VT.prototype.execute=function(r,f){return f>0||this.closed?lw.prototype.execute.call(this,r,f):this._execute(r,f)};
VT.prototype.requestAsyncId=function(r,f,I){I=I===void 0?0:I;return I!=null&&I>0||I==null&&this.delay>0?lw.prototype.requestAsyncId.call(this,r,f,I):r.flush(this)};var dTV=function(){nCs.apply(this,arguments)};
_.t(dTV,nCs);var Zj$=new dTV(VT);var zgC=function(){this.performanceMonitor=new cm4;this.queue=new WKs;this.internalSymbol=Symbol();this.debugNames=new IUs};
zgC.prototype.getOnBackgrounded=function(){return MS};
_.OC.Object.defineProperties(zgC.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Eo=function(r,f){f=Error.call(this,f?r+": "+f:String(r));this.message=f.message;"stack"in f&&(this.stack=f.stack);this.code=r;this.__proto__=Eo.prototype;this.name=String(r)};
_.t(Eo,Error);var g5=function(r){Eo.call(this,1E3,'sfr:"'+r+'"');this.measurementStrategyFailureReason=r;this.__proto__=g5.prototype};
_.t(g5,Eo);var ac=function(){Eo.call(this,1003);this.__proto__=ac.prototype};
_.t(ac,Eo);var S2=function(){Eo.call(this,1009);this.__proto__=S2.prototype};
_.t(S2,Eo);var M3V=function(){Eo.call(this,1011);this.__proto__=M3V.prototype};
_.t(M3V,Eo);var gC_=function(){Eo.call(this,1007);this.__proto__=ac.prototype};
_.t(gC_,Eo);var b3=function(r){Eo.call(this,1004,String(r));this.inputObservableIndex=r;this.__proto__=b3.prototype};
_.t(b3,Eo);var K_q=function(r){Eo.call(this,1010,r);this.__proto__=po.prototype};
_.t(K_q,Eo);var po=function(r){Eo.call(this,1005,r);this.__proto__=po.prototype};
_.t(po,Eo);var aUg=function(r){var f=_.XE.apply(1,arguments),I=this;this.orderedFactories=[];this.orderedFactories.push(r);f.forEach(function(C){I.orderedFactories.push(C)})};
aUg.prototype.isSupported=function(r){return this.orderedFactories.some(function(f){return f.isSupported(r)})};
aUg.prototype.makeBeacon=function(r,f){for(var I=0;I<this.orderedFactories.length;I++)if(this.orderedFactories[I].isSupported(f))return this.orderedFactories[I].makeBeacon(r,f);throw new S2;};var FId=Symbol("ma"),X44=Symbol("na"),eP=function(r,f){this.value=r;this.timeline=f},m_=function(r,f){if(f.timeline!==r.timeline)throw new gC_;
return r.value-f.value};
_.l=eP.prototype;_.l.equals=function(r){return m_(this,r)===0};
_.l.maximum=function(r){if(r.timeline!==this.timeline)throw new gC_;return this.value>=r.value?this:r};
_.l.round=function(){return new eP(Math.round(this.value),this.timeline)};
_.l.add=function(r){return new eP(this.value+r,this.timeline)};
_.l.toString=function(){return String(this.value)};var x2=function(r,f){this.context=r;this.JSC$7095_pinger=f};
x2.prototype.isSupported=function(r){return this.JSC$7095_pinger.isSupported(r)};
x2.prototype.makeBeacon=function(r,f){if(!this.isSupported(f))throw new S2;return new hJ(this.context,this.JSC$7095_pinger,f!=null?f:void 0,r)};
var hJ=function(r,f,I,C){var Y=this;this.JSC$7101_pinger=f;this.properties=I;this.url=C;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var V;this.method=(V=I==null?void 0:I.beaconMethod)!=null?V:"GET";this.backgroundedSubscription=r.getOnBackgrounded().subscribe(function(){Y.sendNow()})};
hJ.prototype.deactivate=function(){this.internalIsPending=!1};
hJ.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7101_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var r,f;this.JSC$7101_pinger.pingWithHeadersAndBody((r=this.properties)!=null?r:{},this.customHeaders,(f=this.body)!=null?f:"",this.url)}else this.JSC$7101_pinger.ping(this.url);this.internalIsPending=!1}catch(I){}else this.internalIsPending=!1};
hJ.prototype.setHeader=function(r){this.customHeaders.set(r,void 0)};
_.OC.Object.defineProperties(hJ.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var $T4=function(){for(var r=_.E(_.XE.apply(0,arguments)),f=r.next();!f.done;f=r.next())if(f=f.value,f.available()){this.timeProvider=f;return}this.timeProvider=new NBX};
_.l=$T4.prototype;_.l.available=function(){return this.timeProvider.available()};
_.l.now=function(){return this.timeProvider.now()};
_.l.setTimeout=function(r,f){return this.timeProvider.setTimeout(r,f)};
_.l.clearTimeout=function(r){this.timeProvider.clearTimeout(r)};
_.l.interval=function(r,f){var I=this.intervalObservable(r).subscribe(f);return function(){return void I.unsubscribe()}};
_.l.intervalObservable=function(r){return this.timeProvider.intervalObservable(r)};
_.OC.Object.defineProperties($T4.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var NBX=function(){this.timeline=Symbol()};
_.l=NBX.prototype;_.l.available=function(){return!1};
_.l.now=function(){return new eP(0,this.timeline)};
_.l.setTimeout=function(){return 0};
_.l.clearTimeout=function(){};
_.l.interval=function(){return function(){}};
_.l.intervalObservable=function(){return MS};var we=function(r,f){this.intrinsicFunctionNamespace=r;this.performanceMonitor=f};
_.l=we.prototype;_.l.setTimeout=function(r,f){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,r),f)};
_.l.clearTimeout=function(r){this.intrinsicFunctionNamespace.clearTimeout(r)};
_.l.interval=function(r,f){var I=this.intervalObservable(r).subscribe(f);return function(){return void I.unsubscribe()}};
_.l.intervalObservable=function(r){var f=this;return new rO(function(I){var C=0,Y=f.intrinsicFunctionNamespace.setInterval(function(){I.next(C++)},r);
return function(){f.intrinsicFunctionNamespace.clearInterval(Y)}})};
_.l.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var F34=function(r,f){we.call(this,r,f);this.timeline=X44};
_.t(F34,we);F34.prototype.now=function(){return new eP(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
F34.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&we.prototype.available.call(this)};var PVs=function(r,f){we.call(this,r,f);this.timeline=FId};
_.t(PVs,we);PVs.prototype.now=function(){return new eP(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
PVs.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&we.prototype.available.call(this)};var TBV=function(r){this.context=r;if(t3D===void 0)a:{var f,I,C=(f=r.global)==null?void 0:(I=f.document)==null?void 0:I.createElement("meta");if(C)try{C.httpEquiv="origin-trial";C.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";r.global.document.head.append(C);t3D=C;break a}catch(Y){}t3D=void 0}},
t3D;
TBV.prototype.isSupported=function(r){return Nnm(this.context)!==void 0&&!(r==null||!r.endOfSession)&&!bw(this.context)&&!(r==null?0:r.attributionEnabled)&&!(r==null?0:r.customHeaders)&&!(r==null?0:r.customBody)};
TBV.prototype.makeBeacon=function(r,f){if(!this.isSupported(f))throw new S2;return new p9(this.context,r,f)};
var p9=function(r,f,I){this.context=r;this.properties=I;this.JSC$7128_urlWithoutToken=f;var C;this.beaconMethod=(C=I==null?void 0:I.beaconMethod)!=null?C:"GET";r=Nnm(this.context);if(r===void 0)throw Error();this.fetchLater=r;c_4(this,W34(this))},c_4=function(r,f){r.beaconResult&&r.beaconResult.activated||(r.beaconAbort=new AbortController,r.beaconResult=r.fetchLater(f,{method:r.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:r.beaconAbort.signal,activateAfter:96E4}))},W34=function(r){r=r.JSC$7128_urlWithoutToken;
return(r.slice(-1)[0]==="&"?r:r+"&")+"flapi=1"};
p9.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
p9.prototype.sendNow=function(){};
p9.prototype.setHeader=function(){};
_.OC.Object.defineProperties(p9.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7128_urlWithoutToken},
set:function(r){this.JSC$7128_urlWithoutToken=r;r=W34(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);c_4(this,r)}},
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 L3V=function(r){this.context=r};
L3V.prototype.isSupported=function(){return!bw(this.context)&&!!this.context.global.fetch};
L3V.prototype.ping=function(){var r=this;return WG.apply(null,_.Na(_.XE.apply(0,arguments).map(function(f){return YV(r.context.global.fetch(f,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(XJ(function(I){return I.status===200}))}))).pipe(WX$(function(f){return f}),m3P())};
L3V.prototype.pingWithHeadersAndBody=function(r,f,I){for(var C=_.XE.apply(3,arguments),Y=this,V=new Headers,S=_.E(f.entries()),h=S.next();!h.done;h=S.next()){var w=_.E(h.value);h=w.next().value;w=w.next().value;V.set(h,w)}var n,d=(n=r.keepAlive)!=null?n:!1;WG.apply(null,_.Na(C.map(function(z){return YV(Y.context.global.fetch(z,Object.assign({},{method:String(r.beaconMethod),cache:"no-cache"},d?{keepalive:!0}:{},{mode:"no-cors",headers:V,body:I}))).pipe(XJ(function(g){return g.status===200}))}))).pipe(WX$(function(z){return z}),
m3P())};var mTD,Hpm;_.n9=function(){};
_.sP=function(r){return r};
mTD=function(r){var f=f||0;return function(){return r.apply(this,Array.prototype.slice.call(arguments,0,f))}};
_.de=function(r){var f=!1,I;return function(){f||(I=r(),f=!0);return I}};
_.z1=function(r,f){var I=0;return function(C){_.Yq.clearTimeout(I);var Y=arguments;I=_.Yq.setTimeout(function(){r.apply(void 0,Y)},f)}};
Hpm=function(r,f){var I=0,C=!1,Y=[],V=function(){I=0;C&&(C=!1,S())},S=function(){I=_.Yq.setTimeout(V,f);
var h=Y;Y=[];r.apply(void 0,h)};
return function(h){Y=arguments;I?C=!0:S()}};var J_C=function(){return aR&&Nc?Nc.mobile:!egU()&&(F$("iPod")||F$("iPhone")||F$("Android")||F$("IEMobile"))},egU=function(){return aR&&Nc?!Nc.mobile&&(F$("iPad")||F$("Android")||F$("Silk")):F$("iPad")||F$("Android")&&!F$("Mobile")||F$("Silk")};var jDC;_.X0={};jDC="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.X0.add=function(r,f,I){if(r!==null&&f in r)throw Error("pa`"+f);r[f]=I};
_.X0.clear=function(r){for(var f in r)delete r[f]};
_.X0.clone=function(r){var f={},I;for(I in r)f[I]=r[I];return f};
_.X0.contains=function(r,f){return jwE(r,f)};
_.X0.containsKey=function(r,f){return r!==null&&f in r};
_.X0.containsValue=jwE;_.X0.create=Rnm;_.X0.createImmutableView=function(r){var f=r;Object.isFrozen&&!Object.isFrozen(r)&&(f=Object.create(r),Object.freeze(f));return f};
_.X0.createSet=v1K;_.X0.equals=function(r,f){for(var I in r)if(!(I in f)||r[I]!==f[I])return!1;for(var C in f)if(!(C in r))return!1;return!0};
_.X0.every=function(r,f,I){for(var C in r)if(!f.call(I,r[C],C,r))return!1;return!0};
_.X0.extend=function(r,f){for(var I,C,Y=1;Y<arguments.length;Y++){C=arguments[Y];for(I in C)r[I]=C[I];for(var V=0;V<jDC.length;V++)I=jDC[V],Object.prototype.hasOwnProperty.call(C,I)&&(r[I]=C[I])}};
_.X0.filter=function(r,f,I){var C={},Y;for(Y in r)f.call(I,r[Y],Y,r)&&(C[Y]=r[Y]);return C};
_.X0.findKey=HKm;_.X0.findValue=function(r,f,I){return(f=HKm(r,f,I))&&r[f]};
_.X0.forEach=function(r,f,I){for(var C in r)f.call(I,r[C],C,r)};
_.X0.get=function(r,f,I){return r!==null&&f in r?r[f]:I};
_.X0.getAllPropertyNames=function(r,f,I){if(!r)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return J6R(r);for(var C={};r&&(r!==Object.prototype||f)&&(r!==Function.prototype||I);){for(var Y=Object.getOwnPropertyNames(r),V=0;V<Y.length;V++)C[Y[V]]=!0;r=Object.getPrototypeOf(r)}return J6R(C)};
_.X0.getAnyKey=function(r){for(var f in r)return f};
_.X0.getAnyValue=function(r){for(var f in r)return r[f]};
_.X0.getCount=function(r){var f=0,I;for(I in r)f++;return f};
_.X0.getKeys=J6R;_.X0.getSuperClass=function(r){return(r=Object.getPrototypeOf(r.prototype))&&r.constructor};
_.X0.getValueByKeys=function(r,f){var I=_.ID(f),C=I?f:arguments;for(I=I?0:1;I<C.length;I++){if(r==null)return;r=r[C[I]]}return r};
_.X0.getValues=function(r){var f=[],I=0,C;for(C in r)f[I++]=r[C];return f};
_.X0.isEmpty=function(r){for(var f in r)return!1;return!0};
_.X0.isImmutableView=function(r){return!!Object.isFrozen&&Object.isFrozen(r)};
_.X0.map=function(r,f,I){var C={},Y;for(Y in r)C[Y]=f.call(I,r[Y],Y,r);return C};
_.X0.remove=function(r,f){var I;(I=f in r)&&delete r[f];return I};
_.X0.set=function(r,f,I){r[f]=I};
_.X0.setIfUndefined=function(r,f,I){return f in r?r[f]:r[f]=I};
_.X0.setWithReturnValueIfNotSet=function(r,f,I){if(f in r)return r[f];I=I();return r[f]=I};
_.X0.some=function(r,f,I){for(var C in r)if(f.call(I,r[C],C,r))return!0;return!1};
_.X0.transpose=function(r){var f={},I;for(I in r)f[r[I]]=I;return f};
_.X0.unsafeClone=iKK;var MB=function(r,f,I,C,Y){this.allowedElements=r;this.elementPolicies=f;this.allowedGlobalAttributes=I;this.globalAttributePolicies=C;this.globallyAllowedAttributePrefixes=Y},H8B=function(r,f,I){I=r.elementPolicies.get(I);
return(I==null?0:I.has(f))?I.get(f):r.allowedGlobalAttributes.has(f)?{policyAction:1}:(I=r.globalAttributePolicies.get(f))?I:r.globallyAllowedAttributePrefixes&&[].concat(_.Na(r.globallyAllowedAttributePrefixes)).some(function(C){return f.indexOf(C)===0})?{policyAction:1}:{policyAction:0}};var i83="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(" "),
Rg3=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],vC3="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
K33=[["dir",{policyAction:3,conditions:Vs(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:Vs(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:Vs(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:Vs(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],y_B=new MB(new Set(i83),new Map(Rg3),new Set(vC3),new Map(K33)),UTs=new MB(new Set(i83.concat(["BUTTON",
"INPUT"])),new Map(Rg3),new Set(Vs(function(){return vC3.concat(["class","id","name"])})),new Map(Vs(function(){return K33.concat([["style",
{policyAction:1}]])})));var sD_,O8g,QD3;sD_=function(r,f,I,C){this.JSC$7188_sanitizerTable=r;this.styleElementSanitizer=f;this.styleAttributeSanitizer=I;this.JSC$7188_resourceUrlPolicy=C;this.changes=[]};
_.oCC=function(r,f){var I=document.implementation.createHTMLDocument("");r=O8g(r,f,I);I=I.body;I.appendChild(r);I=(new XMLSerializer).serializeToString(I);I=I.slice(I.indexOf(">")+1,I.lastIndexOf("</"));return cL(I)};
O8g=function(r,f,I){f=y6u(f,I);f=document.createTreeWalker(f,5,function(h){if(h.nodeType===3)h=1;else if(swc(h))if(h=U3w(h),h===null)h=2;else{var w=r.JSC$7188_sanitizerTable;h=h!=="FORM"&&(w.allowedElements.has(h)||w.elementPolicies.has(h))?1:2}else h=2;return h});
for(var C=f.nextNode(),Y=I.createDocumentFragment(),V=Y;C!==null;){var S=void 0;if(C.nodeType===3)r.styleElementSanitizer&&V.nodeName==="STYLE"?(C=r.styleElementSanitizer(C.data),S=r.createTextNode(C)):S=r.createTextNode(C.data);else if(swc(C))S=QD3(r,C,I);else throw Error("da");V.appendChild(S);if(C=f.firstChild())V=S;else for(;!(C=f.nextSibling())&&(C=f.parentNode());)V=V.parentNode}return Y};
sD_.prototype.createTextNode=function(r){return document.createTextNode(r)};
QD3=function(r,f,I){var C,Y=U3w(f);I=I.createElement(Y);f=f.attributes;for(var V=_.E(f),S=V.next();!S.done;S=V.next()){var h=S.value;S=h.name;h=h.value;var w=H8B(r.JSC$7188_sanitizerTable,S,Y);a:{if(C=w.conditions){C=_.E(C);for(var n=C.next();!n.done;n=C.next()){var d=_.E(n.value);n=d.next().value;d=d.next().value;var z=void 0;if((n=(z=f.getNamedItem(n))==null?void 0:z.value)&&!d.has(n)){C=!1;break a}}}C=!0}if(C)switch(w.policyAction){case 1:qa(I,S,h);break;case 2:w=_.zLu(h);h=w!==void 0&&Am8.indexOf(w.toLowerCase())!==
-1?h:"about:invalid#zClosurez";qa(I,S,h);break;case 3:qa(I,S,h.toLowerCase());break;case 4:r.styleAttributeSanitizer?(h=r.styleAttributeSanitizer(h),qa(I,S,h)):qa(I,S,h);break;case 5:r.JSC$7188_resourceUrlPolicy?(w={type:2,attributeName:S,elementName:Y},h=KXu(h),(h=r.JSC$7188_resourceUrlPolicy(h,w))&&qa(I,S,h.toString())):qa(I,S,h);break;case 6:if(r.JSC$7188_resourceUrlPolicy){w={type:2,attributeName:S,elementName:Y};C=[];h=_.E(h.split(","));for(n=h.next();!n.done;n=h.next())d=_.E(n.value.trim().split(/\s+/,
2)),n=d.next().value,d=d.next().value,C.push({url:n,descriptor:d});h={parts:[]};C=_.E(C);for(n=C.next();!n.done;n=C.next())n=n.value,d=KXu(n.url),(d=r.JSC$7188_resourceUrlPolicy(d,w))&&h.parts.push({url:d.toString(),descriptor:n.descriptor});qa(I,S,OKw(h))}else qa(I,S,h)}}return I};
_.A_B=Vs(function(){return new sD_(y_B)});
_.Z8U=Vs(function(){return new sD_(UTs)});var G43=function(){this.calledBuild=!1;this.JSC$7200_sanitizerTable=y_B},k4C=function(){G43.apply(this,arguments)};
_.t(k4C,G43);k4C.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new sD_(this.JSC$7200_sanitizerTable,void 0,void 0,this.JSC$7200_resourceUrlPolicy)};var BB8=/[^#]*/;var YDu=function(r){try{return!!r&&r.location.href!=null&&ck(r,"foo")}catch(f){return!1}},uX4=function(r){var f=qs3;
if(f)for(var I in f)Object.prototype.hasOwnProperty.call(f,I)&&r(f[I],I,f)},DTC=function(){var r=[];
uX4(function(f){r.push(f)});
return r},qs3={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"},rUV=_.de(function(){return DTC()}),IpD=function(){var r=fp_("IFRAME"),
f={};
_.Rv(rUV(),function(I){r.sandbox&&r.sandbox.supports&&r.sandbox.supports(I)&&(f[I]=!0)});
return f},fp_=function(r,f){f=f===void 0?document:f;
return f.createElement(String(r).toLowerCase())};var ge;_.my=function(r,f,I){return Math.min(Math.max(r,f),I)};
ge=function(r,f,I){return r+I*(f-r)};_.F0=function(r,f){this.x=r!==void 0?r:0;this.y=f!==void 0?f:0};
_.l=_.F0.prototype;_.l.clone=function(){return new _.F0(this.x,this.y)};
_.l.equals=function(r){return r instanceof _.F0&&(this==r?!0:this&&r?this.x==r.x&&this.y==r.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(r,f){r instanceof _.F0?(this.x+=r.x,this.y+=r.y):(this.x+=Number(r),typeof f==="number"&&(this.y+=f));return this};
_.l.scale=function(r,f){this.x*=r;this.y*=typeof f==="number"?f:r;return this};_.EZ=function(r,f){this.width=r;this.height=f};
_.l=_.EZ.prototype;_.l.clone=function(){return new _.EZ(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(r,f){this.width*=r;this.height*=typeof f==="number"?f:r;return this};var cR=function(r,f){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=r===Lvl&&f||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=C2U};
cR.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var Y7T=function(r){return r instanceof cR&&r.constructor===cR&&r.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===C2U?r.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},C2U={},Lvl={};
new cR(Lvl,"");var ho,pX,XW,lpC,S7q,Ei4,Pk,h1V,bq3,wBV,PY,pBV,XBs,apV,gi8,Ns4,$6X,F6X,P28,GFR,tdq,cU4,W68,Ts8,aF;ho=function(r){return r?new aF(_.TZ(r)):FzR||(FzR=new aF)};
_.oC=function(r,f){return typeof f==="string"?r.getElementById(f):f};
pX=function(r,f){return(f||document).getElementsByTagName(String(r))};
_.Vd8=function(r){return lpC("yt-formatted-string","paper-input-input",r)};
XW=function(r,f,I,C){r=C||r;return(f=f&&f!="*"?String(f).toUpperCase():"")||I?r.querySelectorAll(f+(I?"."+I:"")):r.getElementsByTagName("*")};
lpC=function(r,f,I){var C=document,Y=r&&r!="*"?String(r).toUpperCase():"";return Y||f?(I||C).querySelector(Y+(f?"."+f:"")):XW(C,r,f,I)[0]||null};
S7q=function(r,f){_.X0.forEach(f,function(I,C){C=="style"?r.style.cssText=I:C=="class"?r.className=I:C=="for"?r.htmlFor=I:Ei4.hasOwnProperty(C)?r.setAttribute(Ei4[C],I):_.xq(C,"aria-")||_.xq(C,"data-")?r.setAttribute(C,I):r[C]=I})};
Ei4={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"};_.Sj=function(r){r=(r||window).document;r=r.compatMode=="CSS1Compat"?r.documentElement:r.body;return new _.EZ(r.clientWidth,r.clientHeight)};
_.x6s=function(r){var f=_.NB(r);r=r.defaultView;return new _.F0(r.pageXOffset||f.scrollLeft,r.pageYOffset||f.scrollTop)};
_.NB=function(r){return r.scrollingElement?r.scrollingElement:_.VF||r.compatMode!="CSS1Compat"?r.body||r.documentElement:r.documentElement};
Pk=function(r){return r?r.defaultView:window};
_.$2=function(r,f,I){return h1V(document,arguments)};
h1V=function(r,f){var I=f[1],C=wBV(r,String(f[0]));I&&(typeof I==="string"?C.className=I:Array.isArray(I)?C.className=I.join(" "):S7q(C,I));f.length>2&&bq3(r,C,f,2);return C};
bq3=function(r,f,I,C){function Y(h){h&&f.appendChild(typeof h==="string"?r.createTextNode(h):h)}
for(;C<I.length;C++){var V=I[C];if(!_.ID(V)||_.lV(V)&&V.nodeType>0)Y(V);else{a:{if(V&&typeof V.length=="number"){if(_.lV(V)){var S=typeof V.item=="function"||typeof V.item=="string";break a}if(typeof V==="function"){S=typeof V.item=="function";break a}}S=!1}_.Rv(S?_.f8(V):V,Y)}}};
_.wL=function(r){return wBV(document,r)};
wBV=function(r,f){f=String(f);r.contentType==="application/xhtml+xml"&&(f=f.toLowerCase());return r.createElement(f)};
_.FW=function(){return document.createTextNode("\n")};
PY=function(r){if(r.nodeType!=1)return!1;switch(r.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};
pBV=function(r,f){bq3(_.TZ(r),r,arguments,1)};
_.tJ=function(r){for(var f;f=r.firstChild;)r.removeChild(f)};
_.T1=function(r,f){f.parentNode&&f.parentNode.insertBefore(r,f)};
_.cY=function(r,f){f.parentNode&&f.parentNode.insertBefore(r,f.nextSibling)};
_.bE=function(r){return r&&r.parentNode?r.parentNode.removeChild(r):null};
_.ni8=function(r,f){var I=f.parentNode;I&&I.replaceChild(r,f)};
_.d6B=function(r){var f,I=r.parentNode;if(I&&I.nodeType!=11)if(r.removeNode)r.removeNode(!1);else{for(;f=r.firstChild;)I.insertBefore(f,r);_.bE(r)}};
_.WY=function(r){return r.children!=void 0?r.children:Array.prototype.filter.call(r.childNodes,function(f){return f.nodeType==1})};
_.Mdq=function(r){return r.nextElementSibling!==void 0?r.nextElementSibling:_.z18(r.nextSibling,!0)};
_.z18=function(r,f){for(;r&&r.nodeType!=1;)r=f?r.nextSibling:r.previousSibling;return r};
_.Uj=function(r){return _.lV(r)&&r.nodeType==1};
_.e4=function(r,f){if(!r||!f)return!1;if(r.contains&&f.nodeType==1)return r==f||r.contains(f);if(typeof r.compareDocumentPosition!="undefined")return r==f||!!(r.compareDocumentPosition(f)&16);for(;f&&r!=f;)f=f.parentNode;return f==r};
XBs=function(r,f){if(r==f)return 0;if(r.compareDocumentPosition)return r.compareDocumentPosition(f)&2?1:-1;if("sourceIndex"in r||r.parentNode&&"sourceIndex"in r.parentNode){var I=r.nodeType==1,C=f.nodeType==1;if(I&&C)return r.sourceIndex-f.sourceIndex;var Y=r.parentNode,V=f.parentNode;return Y==V?gi8(r,f):!I&&_.e4(Y,f)?-1*apV(r,f):!C&&_.e4(V,r)?apV(f,r):(I?r.sourceIndex:Y.sourceIndex)-(C?f.sourceIndex:V.sourceIndex)}C=_.TZ(r);I=C.createRange();I.selectNode(r);I.collapse(!0);r=C.createRange();r.selectNode(f);
r.collapse(!0);return I.compareBoundaryPoints(_.Yq.Range.START_TO_END,r)};
apV=function(r,f){var I=r.parentNode;if(I==f)return-1;for(;f.parentNode!=I;)f=f.parentNode;return gi8(f,r)};
gi8=function(r,f){for(;f=f.previousSibling;)if(f==r)return-1;return 1};
Ns4=function(r){var f,I=arguments.length;if(!I)return null;if(I==1)return arguments[0];var C=[],Y=Infinity;for(f=0;f<I;f++){for(var V=[],S=arguments[f];S;)V.unshift(S),S=S.parentNode;C.push(V);Y=Math.min(Y,V.length)}V=null;for(f=0;f<Y;f++){S=C[0][f];for(var h=1;h<I;h++)if(S!=C[h][f])return V;V=S}return V};
_.TZ=function(r){return r.nodeType==9?r:r.ownerDocument||r.document};
$6X=function(r){return r.contentDocument||r.contentWindow.document};
_.L9=function(r,f){if("textContent"in r)r.textContent=f;else if(r.nodeType==3)r.data=String(f);else if(r.firstChild&&r.firstChild.nodeType==3){for(;r.lastChild!=r.firstChild;)r.removeChild(r.lastChild);r.firstChild.data=String(f)}else _.tJ(r),r.appendChild(_.TZ(r).createTextNode(String(f)))};
F6X={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};P28={IMG:" ",BR:"\n"};GFR=function(r){var f;r.tagName=="A"&&r.hasAttribute("href")||r.tagName=="INPUT"||r.tagName=="TEXTAREA"||r.tagName=="SELECT"||r.tagName=="BUTTON"?f=!r.disabled&&(!r.hasAttribute("tabindex")||tdq(r)):f=r.hasAttribute("tabindex")&&tdq(r);return f};
tdq=function(r){r=r.tabIndex;return typeof r==="number"&&r>=0&&r<32768};
cU4=function(r){var f=[];Ts8(r,f,!0);r=f.join("");r=r.replace(/ \xAD /g," ").replace(/\xAD/g,"");r=r.replace(/\u200B/g,"");r=r.replace(/ +/g," ");r!=" "&&(r=r.replace(/^\s*/,""));return r};
W68=function(r){var f=[];Ts8(r,f,!1);return f.join("")};
Ts8=function(r,f,I){if(!(r.nodeName in F6X))if(r.nodeType==3)I?f.push(String(r.nodeValue).replace(/(\r\n|\r|\n)/g,"")):f.push(r.nodeValue);else if(r.nodeName in P28)f.push(P28[r.nodeName]);else for(r=r.firstChild;r;)Ts8(r,f,I),r=r.nextSibling};
_.L6g=function(r,f,I){if(!f&&!I)return null;var C=f?String(f).toUpperCase():null;return _.mI(r,function(Y){return(!C||Y.nodeName==C)&&(!I||typeof Y.className==="string"&&_.Am(Y.className.split(/\s+/),I))},!0)};
_.mI=function(r,f,I){r&&!I&&(r=r.parentNode);for(I=0;r;){if(f(r))return r;r=r.parentNode;I++}return null};
aF=function(r){this.JSC$7225_document_=r||_.Yq.document||document};
_.l=aF.prototype;_.l.getElement=function(r){return _.oC(this.JSC$7225_document_,r)};
_.l.$=aF.prototype.getElement;_.l.getElementsByTagName=function(r,f){return(f||this.JSC$7225_document_).getElementsByTagName(String(r))};
_.l.getElementsByTagNameAndClass=function(r,f,I){return XW(this.JSC$7225_document_,r,f,I)};
_.l.$$=aF.prototype.getElementsByTagNameAndClass;_.l.setProperties=S7q;_.l.JSC$7227_createDom=function(r,f,I){return h1V(this.JSC$7225_document_,arguments)};
_.l.createElement=function(r){return wBV(this.JSC$7225_document_,r)};
_.l.createTextNode=function(r){return this.JSC$7225_document_.createTextNode(String(r))};
_.l.getWindow=function(){return this.JSC$7225_document_.defaultView};
var xX=function(r){return _.x6s(r.JSC$7225_document_)};
_.l=aF.prototype;_.l.appendChild=function(r,f){r.appendChild(f)};
_.l.append=pBV;_.l.canHaveChildren=PY;_.l.removeNode=_.bE;_.l.getChildren=_.WY;_.l.contains=_.e4;_.l=r5.prototype;_.l.getWidth=function(){return this.right-this.left};
_.l.getHeight=function(){return this.bottom-this.top};
_.l.clone=function(){return new r5(this.top,this.right,this.bottom,this.left)};
_.l.contains=function(r){return this&&r?r instanceof r5?r.left>=this.left&&r.right<=this.right&&r.top>=this.top&&r.bottom<=this.bottom:r.x>=this.left&&r.x<=this.right&&r.y>=this.top&&r.y<=this.bottom:!1};
_.l.expand=function(r,f,I,C){_.lV(r)?(this.top-=r.top,this.right+=r.right,this.bottom+=r.bottom,this.left-=r.left):(this.top-=r,this.right+=Number(f),this.bottom+=Number(I),this.left-=Number(C));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(r,f){r instanceof _.F0?(this.left+=r.x,this.right+=r.x,this.top+=r.y,this.bottom+=r.y):(this.left+=r,this.right+=r,typeof f==="number"&&(this.top+=f,this.bottom+=f));return this};
_.l.scale=function(r,f){f=typeof f==="number"?f:r;this.left*=r;this.right*=r;this.top*=f;this.bottom*=f;return this};var mY=function(r,f,I,C){this.left=r;this.top=f;this.width=I;this.height=C};
_.l=mY.prototype;_.l.clone=function(){return new mY(this.left,this.top,this.width,this.height)};
_.l.boundingRect=function(r){var f=Math.max(this.left+this.width,r.left+r.width),I=Math.max(this.top+this.height,r.top+r.height);this.left=Math.min(this.left,r.left);this.top=Math.min(this.top,r.top);this.width=f-this.left;this.height=I-this.top};
_.l.contains=function(r){return r instanceof _.F0?r.x>=this.left&&r.x<=this.left+this.width&&r.y>=this.top&&r.y<=this.top+this.height:this.left<=r.left&&this.left+this.width>=r.left+r.width&&this.top<=r.top&&this.top+this.height>=r.top+r.height};
_.l.distance=function(r){var f=r.x<this.left?this.left-r.x:Math.max(r.x-(this.left+this.width),0);r=r.y<this.top?this.top-r.y:Math.max(r.y-(this.top+this.height),0);return Math.sqrt(f*f+r*r)};
_.l.getSize=function(){return new _.EZ(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(r,f){r instanceof _.F0?(this.left+=r.x,this.top+=r.y):(this.left+=r,typeof f==="number"&&(this.top+=f));return this};
_.l.scale=function(r,f){f=typeof f==="number"?f:r;this.left*=r;this.width*=r;this.top*=f;this.height*=f;return this};var e1D,j2,bo$,JJ,iq8,HqX,R14,OGU,viB,yU4;_.e2=function(r,f,I){if(typeof f==="string")(f=_.m6s(r,f))&&(r.style[f]=I);else for(var C in f){I=r;var Y=f[C],V=_.m6s(I,C);V&&(I.style[V]=Y)}};
e1D={};_.m6s=function(r,f){var I=e1D[f];if(!I){var C=_.xA(f);I=C;r.style[C]===void 0&&(C=(_.VF?"Webkit":_.lf?"Moz":null)+fU4(C),r.style[C]!==void 0&&(I=C));e1D[f]=I}return I};
_.dY=function(r,f){var I=_.TZ(r);return I.defaultView&&I.defaultView.getComputedStyle&&(r=I.defaultView.getComputedStyle(r,null))?r[f]||r.getPropertyValue(f)||"":""};
_.m9=function(r,f){return _.dY(r,f)||(r.currentStyle?r.currentStyle[f]:null)||r.style&&r.style[f]};
_.JUg=function(r){return _.m9(r,"position")};
j2=function(r,f,I){if(f instanceof _.F0){var C=f.x;f=f.y}else C=f,f=I;r.style.left=JJ(C,!1);r.style.top=JJ(f,!1)};
bo$=function(r){try{return r.getBoundingClientRect()}catch(f){return{left:0,top:0,right:0,bottom:0}}};
_.Wk=function(r){var f=_.TZ(r),I=new _.F0(0,0);if(r==(f?_.TZ(f):document).documentElement)return I;r=bo$(r);f=xX(ho(f));I.x=r.left+f.x;I.y=r.top+f.y;return I};
_.jYU=function(r,f,I){if(f instanceof _.EZ)I=f.height,f=f.width;else if(I==void 0)throw Error("sa");r.style.width=JJ(f,!0);r.style.height=JJ(I,!0)};
JJ=function(r,f){typeof r=="number"&&(r=(f?Math.round(r):r)+"px");return r};
iq8=function(r){return HqX(r)};
HqX=function(r){var f=R14;if(_.m9(r,"display")!="none")return f(r);var I=r.style,C=I.display,Y=I.visibility,V=I.position;I.visibility="hidden";I.position="absolute";I.display="inline";r=f(r);I.display=C;I.position=V;I.visibility=Y;return r};
R14=function(r){var f=r.offsetWidth,I=r.offsetHeight,C=_.VF&&!f&&!I;return(f===void 0||C)&&r.getBoundingClientRect?(r=bo$(r),new _.EZ(r.right-r.left,r.bottom-r.top)):new _.EZ(f,I)};
OGU=function(r){var f=_.Wk(r);r=HqX(r);return new mY(f.x,f.y,r.width,r.height)};
viB=function(r,f){r=r.style;"opacity"in r?r.opacity=f:"MozOpacity"in r?r.MozOpacity=f:"filter"in r&&(r.filter=f===""?"":"alpha(opacity="+Number(f)*100+")")};
_.vh=function(r,f){r.style.display=f?"":"none"};
_.K6X=function(r){return"rtl"==_.m9(r,"direction")};
yU4=function(r){var f=_.dY(r,"marginLeft"),I=_.dY(r,"marginRight"),C=_.dY(r,"marginTop");r=_.dY(r,"marginBottom");return new r5(parseFloat(C),parseFloat(I),parseFloat(r),parseFloat(f))};
_.U6D=function(r){var f=_.dY(r,"borderLeftWidth"),I=_.dY(r,"borderRightWidth"),C=_.dY(r,"borderTopWidth");r=_.dY(r,"borderBottomWidth");return new r5(parseFloat(C),parseFloat(I),parseFloat(r),parseFloat(f))};var HY=function(r){this.context=r};
HY.prototype.isSupported=function(r){return(r==null?0:r.attributionEnabled)||(r==null?void 0:r.beaconMethod)==="POST"||(r==null?0:r.customHeaders)||(r==null?0:r.customBody)||(r==null?0:r.keepAlive)?!1:!bw(this.context)};
HY.prototype.ping=function(){var r=this;return ni(_.XE.apply(0,arguments).map(function(f){try{var I=r.context.global,C=!1;C=C===void 0?!1:C;I.google_image_requests||(I.google_image_requests=[]);var Y=fp_("IMG",I.document);C&&(Y.attributionSrc="");Y.src=f;I.google_image_requests.push(Y);return!0}catch(V){return!1}}).every(function(f){return f}))};
HY.prototype.pingWithHeadersAndBody=function(r,f,I){this.ping.apply(this,_.Na(_.XE.apply(3,arguments)))};var sY3=function(r){this.context=r};
sY3.prototype.isSupported=function(r){return OqV&&!bw(this.context)&&Qwc(this.context)!==void 0&&!(r==null?0:r.attributionEnabled)&&(r==null?void 0:r.beaconMethod)!=="POST"&&!(r==null?0:r.customHeaders)&&!(r==null?0:r.customBody)};
sY3.prototype.makeBeacon=function(r,f){if(!this.isSupported(f))throw new S2;return new iw(this.context,r)};
var OqV=!1,iw=function(r,f){this.context=r;this.JSC$7246_urlWithoutToken=f;r=Qwc(this.context);if(r===void 0)throw Error();this.wrappedBeacon=new r(oiV(this),{})},oiV=function(r){r=r.JSC$7246_urlWithoutToken;
return(r.slice(-1)[0]==="&"?r:r+"&")+"pbapi=1"};
iw.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
iw.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
iw.prototype.setHeader=function(){};
_.OC.Object.defineProperties(iw.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7246_urlWithoutToken},
set:function(r){this.JSC$7246_urlWithoutToken=r;this.wrappedBeacon.setURL(oiV(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(r){if(r!=="GET")throw new S2;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var QYg=function(r){this.context=r};
QYg.prototype.isSupported=function(r){if((r==null?0:r.attributionEnabled)||(r==null?void 0:r.beaconMethod)==="GET"||(r==null?0:r.customHeaders)||(r==null?0:r.customBody)||(r==null?0:r.keepAlive))return!1;var f;return!bw(this.context)&&((f=this.context.global.navigator)==null?void 0:f.sendBeacon)!==void 0};
QYg.prototype.ping=function(){var r=this;return ni(_.XE.apply(0,arguments).map(function(f){var I;return(I=r.context.global.navigator)==null?void 0:I.sendBeacon(f)}).every(function(f){return f}))};
QYg.prototype.pingWithHeadersAndBody=function(r,f,I){this.ping.apply(this,_.Na(_.XE.apply(3,arguments)))};var l3=function(r){this.value=r},sZ=function(r,f){return ni(r.value).pipe(Co(f))},Qv=new l3(!1),F9K=new l3(!0);var ej=function(r){this.value=r;this.releasedSubject=new fo};
ej.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.OC.Object.defineProperties(ej.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7259_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var YgE=["FRAME","IMG","IFRAME"],uEP=/^[01](px)?$/,C_d=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},Ijm=function(){var r=new C_d;
r.crossDomainLoadedDefault=!0;r.pendingImagesBlockLoad=!0;return r};var AUC=function(r,f){var I=wGd(r);if(I)if(I.onCreativeLoad)I.onCreativeLoad(f);else{var C=f?[f]:[],Y=function(V){for(var S=0;S<C.length;++S)try{C[S](1,V)}catch(h){}C={push:function(h){h(1,V)}}};
I.onCreativeLoad=function(V){C.push(V)};
I.setAttribute("data-creative-load-listener","");I.addEventListener("creativeLoad",function(V){Y(V.detail)});
_.Yq.addEventListener("message",function(V){hUc(I,Y,V)})}};var RF=function(r,f){var I=this;this.global=r;this.parentContext=f;this.JSC$7270_onVisibilityChange=this.document?WG(ni(!0),Ts(this.document,"visibilitychange")).pipe(Ja(this.parentContext.performanceMonitor,748),XJ(function(){return I.getVisibilityState()}),vG()):ni("visible");
this.document?Ts(this.document,"DOMContentLoaded").pipe(Ja(this.parentContext.performanceMonitor,739),Rk(1)):ni(Bnq("DOMContentLoaded"))},$u$=function(r){return r.document!==null&&r.document.visibilityState!==void 0};
RF.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
RF.prototype.querySelector=function(r){return this.document?this.document.querySelector(r):null};
RF.prototype.querySelectorAll=function(r){return this.document?_.f8(this.document.querySelectorAll(r)):[]};
RF.prototype.elementFromPoint=function(r,f){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;r=this.document.elementFromPoint(r,f);return r===null?null:new ej(r)};
var whK=function(r,f,I){I=I===void 0?!1:I;if(f.ref===void 0||!r.document)return ni(f).pipe(Ja(r.parentContext.performanceMonitor,749));var C=new sg(1),Y=function(){C.next(f)};
I||AUC(f.ref,Y);lj$(f.ref,Y);return C.pipe(Ja(r.parentContext.performanceMonitor,749),Rk(1))};
_.OC.Object.defineProperties(RF.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return ck(this.global,"document")?this.global.document||null:null}}});var biK=_.op(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),pGd=_.op(["./reach_worklet.js"]),nVR=_.op(["./reach_worklet.js"]),Zq3=_.op(["./reach_worklet.html"]),G6C=_.op(["./reach_worklet.js"]),k6s=_.op(["./reach_worklet.js"]);_.u_(Zq3);_.u_(G6C);_.u_(k6s);var i3={left:0,top:0,width:0,height:0};var Bs8,q74,u3V,D6V,ov,f$B,I$s,Cr4,VaV,EHX,SWX,xeB;Bs8=function(r,f,I,C,Y,V,S){var h="";r&&(h+=r+":");I&&(h+="//",f&&(h+=f+"@"),h+=I,C&&(h+=":"+C));Y&&(h+=Y);V&&(h+="?"+V);S&&(h+="#"+S);return h};
q74=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.sQ=function(r){return r.match(q74)};
_.Pa=function(r,f){return r?f?decodeURI(r):decodeURIComponent(r):r};
u3V=function(r){r=_.sQ(r)[1]||null;!r&&_.Yq.self&&_.Yq.self.location&&(r=_.Yq.self.location.protocol.slice(0,-1));return r?r.toLowerCase():""};
_.OQ=function(r){return _.Pa(_.sQ(r)[3]||null,!0)};
_.Cf=function(r){return _.Pa(_.sQ(r)[5]||null,!0)};
_.Psl=function(r){var f=r.indexOf("#");return f<0?null:r.slice(f+1)};
D6V=function(r){r=_.sQ(r);return Bs8(r[1],r[2],r[3],r[4])};
_.rg3=function(r){r=_.sQ(r);return Bs8(r[1],null,r[3],r[4])};
_.J1=function(r){r=_.sQ(r);return Bs8(null,null,null,null,r[5],r[6],r[7])};
_.Ul=function(r){var f=r.indexOf("#");return f<0?r:r.slice(0,f)};
ov=function(r,f){r=_.sQ(r);f=_.sQ(f);return r[3]==f[3]&&r[1]==f[1]&&r[4]==f[4]};
f$B=function(r,f){if(r){r=r.split("&");for(var I=0;I<r.length;I++){var C=r[I].indexOf("="),Y=null;if(C>=0){var V=r[I].substring(0,C);Y=r[I].substring(C+1)}else V=r[I];f(V,Y?An(Y):"")}}};
I$s=function(r){var f=r.indexOf("#");f<0&&(f=r.length);var I=r.indexOf("?");if(I<0||I>f){I=f;var C=""}else C=r.substring(I+1,f);return[r.slice(0,I),C,r.slice(f)]};
Cr4=function(r,f){return f?r?r+"&"+f:f:r};
_.YWD=function(r,f){if(!f)return r;r=I$s(r);r[1]=Cr4(r[1],f);return r[0]+(r[1]?"?"+r[1]:"")+r[2]};
_.l$3=function(r,f,I){if(Array.isArray(f))for(var C=0;C<f.length;C++)_.l$3(r,String(f[C]),I);else f!=null&&I.push(r+(f===""?"":"="+_.ik(f)))};
_.VD=function(r){var f=[],I;for(I in r)_.l$3(I,r[I],f);return f.join("&")};
_.UQ=function(r,f){f=_.VD(f);return _.YWD(r,f)};
_.vY=function(r,f,I){I=I!=null?"="+_.ik(I):"";return _.YWD(r,f+I)};
VaV=function(r,f,I,C){for(var Y=I.length;(f=r.indexOf(I,f))>=0&&f<C;){var V=r.charCodeAt(f-1);if(V==38||V==63)if(V=r.charCodeAt(f+Y),!V||V==61||V==38||V==35)return f;f+=Y+1}return-1};
EHX=/#|$/;_.Jy=function(r,f){var I=r.search(EHX),C=VaV(r,0,f,I);if(C<0)return null;var Y=r.indexOf("&",C);if(Y<0||Y>I)Y=I;C+=f.length+1;return An(r.slice(C,Y!==-1?Y:0))};
SWX=/[?&]($|#)/;_.Ol=function(r,f){for(var I=r.search(EHX),C=0,Y,V=[];(Y=VaV(r,C,f,I))>=0;)V.push(r.substring(C,Y)),C=Math.min(r.indexOf("&",Y)+1||I,I);V.push(r.slice(C));return V.join("").replace(SWX,"$1")};
_.mN=function(r,f,I){return _.vY(_.Ol(r,f),f,I)};
xeB=function(r){var f=I$s(window.location.href),I=f[1],C=[];I&&I.split("&").forEach(function(Y){var V=Y.indexOf("=");V=V>=0?Y.slice(0,V):Y;r.hasOwnProperty(V)||C.push(Y)});
f[1]=Cr4(C.join("&"),_.VD(r));return f[0]+(f[1]?"?"+f[1]:"")+f[2]};var HiP=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(HiP,_.Kj);HiP.prototype.getVersion=function(){return _.Tb(this,2)};var jk$=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(jk$,_.Kj);var caw=function(r,f){return _.w5(r,2,f)},Jam=function(r,f){return _.w5(r,3,f)};
jk$.prototype.getModel=function(){return _.Tb(this,4)};
var L_c=function(r,f){return _.w5(r,4,f)},TOP=function(r,f){return _.w5(r,5,f)},eUK=function(r,f){return _.w5(r,9,f)},tPK=function(r,f){return Xz(r,10,f)},P_m=function(r,f){return _.IZ(r,11,f)},W_R=function(r,f){return _.w5(r,1,f)},maK=function(r,f){return _.IZ(r,7,f)};var $aR="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var oc=function(r,f,I,C){r=r===void 0?window:r;f=f===void 0?null:f;I=I===void 0?new cm4:I;C=C===void 0?daw():C;zgC.call(this);var Y=this;this.global=r;this.debugChannel=f;this.performanceMonitor=I;this.onPageHide=ta(function(){return Ts(Y.global,"pagehide")}).pipe(Ja(this.performanceMonitor,941));
this.onLoad=ta(function(){return Ts(Y.global,"load")}).pipe(Ja(this.performanceMonitor,738),Rk(1));
this.onResize=ta(function(){return Ts(Y.global,"resize")}).pipe(Ja(this.performanceMonitor,741));
this.onMessage=ta(function(){return Ts(Y.global,"message")}).pipe(Ja(this.performanceMonitor,740));
this.document=new RF(this.global,this);this.timeProvider=new $T4(new PVs(this.intrinsicFunctionNamespace,this.performanceMonitor),new F34(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new aUg(new TBV(this),new sY3(this),new x2(this,new L3V(this)),new x2(this,new QYg(this)),new x2(this,new HY(this)))};
_.t(oc,zgC);var bw=function(r){var f=r.global;return!!r.global.HTMLFencedFrameElement&&!!f.fence&&typeof f.fence.reportEvent==="function"};
_.l=oc.prototype;_.l.reportFencedFrameEvent=function(r){bw(this)&&this.global.fence.reportEvent(r)};
_.l.getOnBackgrounded=function(){return this.onPageHide.pipe(Ja(this.performanceMonitor,942),Co(this.queue),XJ(function(){}))};
_.l.postMessage=function(r,f,I){I=I===void 0?[]:I;this.global.postMessage(r,f,I)};
_.l.getWidth=function(){return YDu(this.global)?this.global.width:0};
_.l.getHeight=function(){return YDu(this.global)?this.global.height:0};
_.l.isMobile=function(){return egU()||J_C()};
var Jo=function(r,f){try{var I=ajl(f,r.global,r.isMobile());return{left:I.left,top:I.top,width:I.getWidth(),height:I.getHeight()}}catch(C){return i3}};
oc.prototype.validate=function(){var r=this.beaconFactory.isSupported()||bw(this);return this.global&&this.timeProvider.available()&&r};
var ZKu=function(r){return(r=RUm(r.global))?YV(r):null};
_.OC.Object.defineProperties(oc.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(r){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!YDu(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}}});_.hL4=!_.Yp&&!_.jK();var PEw=function(r){return r};var TLP=function(r){return r.pipe(Li(function(f){var I=f.endOfSessionReason;var C;return((C=f.viewable)==null?void 0:C.extrapolateToNow().value)||I!=void 0}),Rk(1),HG())};var OiU=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},oVq=function(r){var f=r.sequenceNumber.toString(10).padStart(2,"0");
f=""+r.startTime+f;r.sequenceNumber<99&&r.sequenceNumber++;return f};var NLw=Dz(Zj(function(r){return r.endOfSessionReason===void 0}),XJ(function(r){return Object.assign({},r,{timestamps:no(r)})}),Li(function(r){var f=r.viewable;
r=r.timestamps;var I;return(I=f==null?void 0:f.extrapolateUsingTimestampMap(r).value)!=null?I:!1}),XJ(function(r){var f=r.beaconFactory;
var I=r.timestampedExposureHistory;var C=r.timeOnScreen;var Y=r.binaryContext;r=r.timestamps;if(f===void 0||I===void 0||C===void 0||Y===void 0)return!1;if(C.extrapolateUsingTimestampMap(r).value.every(function(V){return V>=0}))return!0;
I=I.map(function(V){return V.timestamp+":"+V.value}).join(",");
C=zZ({bin:Y,tos:C},r);f.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+C+("&eh="+I)).sendNow();return!0}),Zj(function(r){return!r}),HG());var Aaq=function(r){return{id:r.pingId,mcvt:r.maxConsecutiveViewTime,p:r.creativePosition,asp:r.adSpeedPosition,tm:r.totalMeasurementTime,tu:r.totalUnviewedTime,mtos:r.maxTimeOnScreen,tos:r.timeOnScreen,v:r.binaryVersion,bin:r.binaryContext,avms:r.measurementStrategy,bs:r.browserSize,mc:r.maximumExposure,"if":r.crossDomainIframeState,vu:r.delayedImpressionJsState,app:r.inApp,mse:r.mraidError,mtop:r.mraidSituation,itpl:r.injectedTemplateId,adk:r.adKey,exk:r.awbidKey,rs:r.requestSource,la:r.isLargeAd,
cr:r.isContentRecommendationAd,uach:r.userAgentClientHints,vs:r.viewState,r:r.reasonCode,pay:r.hasCpmavUrl,co:r.clientPingOrderCounter,rst:r.adRenderStartTime,rpt:r.adRenderPeriodTime,isd:r.initialScrollDepth,lsd:r.loadedScrollDepth,context:r.errorContext,msg:r.errorMessage,stack:r.errorStack,name:r.errorName,ec:r.hasElementChanged,sfr:r.strategyFailureReasons,met:r.creativeSearchResult,wmsd:r.webMeasurementStartDiagnostic,pv:r.pageVisible,epv:r.eosPageVisible,pbe:r.inStatefulBeaconExperiment,fle:r.inFetchLaterBeaconExperiment,
vae:r.inViewableAttributionExperiment,spb:r.supportsPendingBeacon,sfl:r.supportsFetchLater,ffslot:r.isFencedFrameSlotTurtlex,reach:r.sharedStorageReachMode,io2:r.v2VisibilityBitVector,rxdbg:r.rxDebugger,omida:r.omidAppId,omidp:r.omidPartner,omidpv:r.omidPartnerVersion,omidor:r.omidOcclusionReasons,omidv:r.omidVersion,omids:r.omidSessionType,omidam:r.omidAccessMode,omidct:r.omidCreativeType,omidia:r.omidInApp,omiddc:r.omidDeviceCategory,omidlat:r.omidLastActivity,omiddit:r.omidDeviceIdleTime,qid:r.errorEscapedQueryId}};var t4l=function(r){var f=[];return r.pipe(XJ(function(I){var C=I.beaconFactory,Y=I.fetchBeaconFactory,V=I.timeOnScreen,S=I.timeOnScreenUrlPrefixes,h=I.payloadMapper,w=I.timeOnScreenPingId,n=I.timeOnScreenReason,d=I.urlSerializer,z=I.viewable,g=I.hasImpressionFired,X=I.inStatefulBeaconExperiment,P=I.supportsPendingBeacon,W=I.supportsFetchLater,m=I.turtlexReportEventData;if(!I.geometryMeasurable||!g||I.maxTimeOnScreen===void 0||V===void 0||S===void 0||h===void 0||w===void 0||d===void 0||C===void 0)return!1;
if(I.isTurtlex){if(n===void 0)return!1;S=I.reportFencedFrameEvent;if(!S)return!1;S({eventType:"active-view-time-on-screen",eventData:m!=null?m:"",destination:["buyer"]});return!0}if(!(X||W||n))return!1;m=no(I);var v;z=(v=z==null?void 0:z.extrapolateUsingTimestampMap(m).value)!=null?v:!1;v=d(Object.assign({},I,{pingId:w,viewState:z?4:3,reasonCode:n!=null?n:"u",payloadMapper:h,urlPrefixes:S}),m);if(X){for(;f.length>S.length;)I=void 0,(I=f.shift())==null||I.deactivate();v.forEach(function(k,Z){Z>=f.length?
f.push(C.makeBeacon(k)):f[Z].url=k});
return P&&Y&&n!==void 0?(v.forEach(function(k){Y.makeBeacon(k).sendNow()}),!0):n!==void 0}if(P&&Y&&n!==void 0)return v.forEach(function(k){Y.makeBeacon(k).sendNow()}),!0;
if(W&&Y){for(;f.length>S.length;)P=void 0,(P=f.shift())==null||P.deactivate();var O=d(Object.assign({},I,{pingId:w,viewState:z?4:3,reasonCode:n!=null?n:"u",payloadMapper:h,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),m)[0];v.forEach(function(k,Z){Z>=f.length?f.push(C.makeBeacon(O,{endOfSession:!0})):f[Z].url=O});
return n!==void 0?(v.forEach(function(k){Y.makeBeacon(k).sendNow()}),!0):n!==void 0}return n!==void 0?(v.forEach(function(k){C.makeBeacon(k).sendNow()}),!0):!1}),Zj(function(I){return!I}),HG())};var cyu=Dz(Li(function(r){return r.immediateUrlPrefixes!==void 0&&r.payloadMapper!==void 0&&r.urlSerializer!==void 0&&r.inferredPingId!==void 0&&r.beaconFactory!==void 0}),Li(function(r){return roR(r)!==null}),uJR(function(r){return r.activeViewUnmeasurableEvent},function(r){return r.emit}),XJ(function(r){if(r.isTurtlex){var f=r.reportFencedFrameEvent;
if(f){var I;f({eventType:"active-view-unmeasurable",eventData:(I=r.turtlexReportEventData)!=null?I:"",destination:["buyer"]})}}else{I=void 0;var C=roR(r);if(C==="x"){var Y,V=(Y=r.geometricMeasurementErrors)!=null?Y:r.contextValidationErrors;V&&(f=V.stack,I=V.message)}r.urlSerializer(Object.assign({},r,{urlPrefixes:r.immediateUrlPrefixes,payloadMapper:r.payloadMapper,pingId:r.inferredPingId,viewState:2,reasonCode:C,errorMessage:I,errorStack:f}),no(r)).forEach(function(S){r.beaconFactory.makeBeacon(S).sendNow()})}}),
Rk(1),HG());var f8R=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var XhK=Dz(Li(function(r){return r.payloadMapper!==void 0&&r.immediateUrlPrefixes!==void 0&&r.urlSerializer!==void 0&&r.inferredPingId!==void 0&&r.beaconFactory!==void 0}),XJ(function(r){return Object.assign({},r,{timestamps:no(r)})}),Li(function(r){var f=r.viewable;
var I=r.hasImpressionFired;r=r.timestamps;var C;return!!I&&((C=f==null?void 0:f.extrapolateUsingTimestampMap(r).value)!=null?C:!1)}),uJR(function(r){return r.activeViewViewableEvent},function(r){return r.emit}),XJ(function(r){var f=r.beaconFactory,I=r.turtlexReportEventData;
if(r.isTurtlex){var C=r.reportFencedFrameEvent;if(!C)return!1;C({eventType:"active-view-viewable",eventData:I!=null?I:"",destination:["buyer"]});return!0}I=r.urlSerializer(Object.assign({},r,{urlPrefixes:r.immediateUrlPrefixes,payloadMapper:r.payloadMapper,pingId:r.inferredPingId,viewState:4,reasonCode:"v"}),r.timestamps);(C=r.cpmavUrls)&&C.length>0&&r.viewUrlSerializer&&r.viewUrlSerializer(C,r).forEach(function(Y){f.makeBeacon(Y).sendNow()});
(C=r.viewableRelayUrls)&&C.length>0&&r.viewUrlSerializer&&r.viewUrlSerializer(C,r).forEach(function(Y){f.makeBeacon(Y).sendNow()});
I.forEach(function(Y){f.makeBeacon(Y,{attributionEnabled:r.isViewableAttributionEnabled}).sendNow()});
return!0}),Zj(function(r){return!r}),HG());var oX$=XJ(function(r){return[r.value.topWindowViewportExternalGeometry.width,r.value.topWindowViewportExternalGeometry.height]});var jj=function(r,f){this.callback=r;this.options=f;this.intersectionObserverV2=this.intersectionObserverV1=null},tjK=function(r,f){f?r.intersectionObserverV2||(f=Object.assign({},r.options,{delay:100,
trackVisibility:!0}),r.intersectionObserverV2=new IntersectionObserver(r.callback,f)):r.intersectionObserverV1||(r.intersectionObserverV1=new IntersectionObserver(r.callback,r.options))},wEg=function(r,f){r=f?r.intersectionObserverV2:r.intersectionObserverV1;
if(!r)throw new M3V;return r};
jj.prototype.observe=function(r,f){wEg(this,r).observe(f)};
jj.prototype.unobserve=function(r,f){wEg(this,r).unobserve(f)};
jj.prototype.disconnect=function(r){wEg(this,r).disconnect()};
jj.prototype.takeRecords=function(r){return wEg(this,r).takeRecords()};var Lo={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:i3,topWindowViewportExternalGeometry:i3,measurementRequests:new fo,elementGeometrySourceName:"ns",elementGeometry:i3,intersectionGeometry:i3,viewportLocalAppOffset:{x:0,y:0}};var Jod=vk(Dz(XJ(function(r){var f;return(f=r.exposureOverride)!=null?f:cou(r)}),XJ(function(r){return isFinite(r)?r:0}))),yow=vk(Dz(XJ(function(r){var f;
return(f=r.exposureOverride)!=null?f:cou(r)}),XJ(function(r){return isFinite(r)?r:-1})));var K9=function(r,f){this.a=r;this.b=f;if(r.clock.timeline!==f.clock.timeline)throw Error();};
K9.prototype.equivalentTo=function(r){return r instanceof K9?this.a.equivalentTo(r.a)&&this.b.equivalentTo(r.b):!1};
K9.prototype.extrapolateToTime=function(r){var f=this.a.extrapolateToTime(r).value,I=this.b.extrapolateToTime(r).value;return{timestamp:r,value:[f,I]}};
_.OC.Object.defineProperties(K9.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 r=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),f=this.a.lastMeasurement.timestamp.equals(r)?this.a.lastMeasurement.value:this.a.extrapolateToTime(r).value,I=this.b.lastMeasurement.timestamp.equals(r)?this.b.lastMeasurement.value:this.b.extrapolateToTime(r).value;return{timestamp:r,value:[f,I]}}}});var yT=function(r,f){this.input=r;this.mapFunction=f;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
yT.prototype.equivalentTo=function(r){return r instanceof yT?this.input.equivalentTo(r.input)&&this.mapFunction===r.mapFunction:!1};
yT.prototype.extrapolateToTime=function(r){r=this.input.extrapolateToTime(r);return{timestamp:r.timestamp,value:this.mapFunction(r.value)}};
_.OC.Object.defineProperties(yT.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var Uo=function(){};
Uo.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
Uo.prototype.extrapolateUsingTimestampMap=function(r){var f=this.clock.timeline,I,C=(I=r.get(f))!=null?I:this.clock.now();r.set(f,C);return this.extrapolateToTime(C)};
Uo.prototype.map=function(r){return new bjB(this,r)};
Uo.prototype.joinWith=function(r){return new pED(this,r)};
var pED=function(){K9.apply(this,arguments);this.map=Uo.prototype.map;this.joinWith=Uo.prototype.joinWith;this.extrapolateToNow=Uo.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Uo.prototype.extrapolateUsingTimestampMap};
_.t(pED,K9);var bjB=function(){yT.apply(this,arguments);this.map=Uo.prototype.map;this.joinWith=Uo.prototype.joinWith;this.extrapolateToNow=Uo.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Uo.prototype.extrapolateUsingTimestampMap};
_.t(bjB,yT);var yv=function(r,f){this.lastMeasurement=f;this.extrapolateToNow=Uo.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Uo.prototype.extrapolateUsingTimestampMap;this.map=Uo.prototype.map;this.joinWith=Uo.prototype.joinWith;this.clock=r};
yv.prototype.equivalentTo=function(r){return r.active};
yv.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.OC.Object.defineProperties(yv.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var OoR=XJ(function(r){if(r.value.viewportGeometrySourceName==="omid"){if(r.value.elementGeometrySourceName==="nio")return"omio";if(r.value.elementGeometrySourceName==="geo")return"omgeo"}return r.value.elementGeometrySourceName==="geo"||r.value.elementGeometrySourceName==="nio"?r.value.viewportGeometrySourceName:r.value.elementGeometrySourceName});var LIR=Dz(Li(function(r){return!isNaN(r)}),ok(function(r,f){return isNaN(r)?f:Math.min(r,f)},NaN),vG());var jcm=vk(Dz(XJ(function(r){return r.intersectionGeometry.width*r.intersectionGeometry.height/(r.exposedViewportLocalGeometry.width*r.exposedViewportLocalGeometry.height)}),XJ(function(r){return isFinite(r)?Math.min(1,r):0})));var scE=Dz(vk(XJ(function(r){r=r.exposureOverride?r.elementGeometry.width*r.elementGeometry.height*r.exposureOverride/(r.topWindowViewportExternalGeometry.width*r.topWindowViewportExternalGeometry.height):r.intersectionGeometry.width*r.intersectionGeometry.height/(r.topWindowViewportExternalGeometry.width*r.topWindowViewportExternalGeometry.height);return isFinite(r)?r:0})));var Aow=function(r,f){var I=this;this.timeProvider=r;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=f.pipe(vG()).subscribe(function(C){GZU(I);I.measurementRequestObserver=C})},kZE=function(r,f){GZU(r);
r.lastMeasurementRequest=r.timeProvider.setTimeout(function(){var I;return void((I=r.measurementRequestObserver)==null?void 0:I.next())},f)},GZU=function(r){r.lastMeasurementRequest!==null&&r.timeProvider.clearTimeout(r.lastMeasurementRequest);
r.lastMeasurementRequest=null};
Aow.prototype.dispose=function(){GZU(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var nHV=function(){};var M4K=function(r,f){this.context=r;this.strategies=f};
_.t(M4K,nHV);M4K.prototype.buildGeometrySource=function(r,f){var I=this.strategies.map(function(V){return V.buildGeometrySource(r,f)}),C=ryR(I.map(function(V){return V.geometrySource})),Y=C.capturedErrors.pipe(deV());
return{geometrySource:C.chain.pipe(Co(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:Y,strategyErrors:C.capturedErrors}].concat(_.Na(I.map(function(V){return V.additionalOutputs}))))}};
var deV=function(){return ok(function(r,f){f instanceof g5?r.push(f.measurementStrategyFailureReason):r.push(-1);return r},[])};var aEP=function(r,f){this.context=r;this.poller=f};
_.t(aEP,nHV);aEP.prototype.buildGeometrySource=function(r,f){var I=fEK(CEl(this.context,this.poller),nXR(this.context,f.requestSource));return{geometrySource:DSc(r.measurableCreative.pipe(I),f.inApp),additionalOutputs:{}}};var gaq=function(r,f,I){I=I===void 0?XkB(r,f):I;this.context=r;this.intersectionObserverStrategy=I};
_.t(gaq,nHV);gaq.prototype.buildGeometrySource=function(r,f){var I=this.intersectionObserverStrategy(f.useV2);return{geometrySource:DSc(r.measurableCreative.pipe(I,N5R(this.context)),f.inApp),additionalOutputs:{}}};var zL4=function(r,f,I){var C=C===void 0?Symbol():C;this.element=r;this.immediateUrls=f;this.timeOnScreenUrls=I;this.symbol=C};var OZ=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),xuc=Object.freeze([1,.75,OZ.exposureThreshold,OZ.largeAdExposureThreshold,0]);var iZU=function(r,f){f=f===void 0?36E5:f;var I=I===void 0?!0:I;this.creatives=new fo;this.elementsToUnregister=new fo;this.elementMap=new Map;var C=new oc(window,null);C.beaconFactory=new x2(C,new HY(C));ziR(C,this.creatives,this.elementsToUnregister,r,f,I).subscribe()},K7c=function(r,f,I,C){if(!r.elementMap.has(f)){var Y=new ej(f);
r.elementMap.set(f,Y);r.creatives.next(new zL4(Y,I,C))}},vDd=function(r,f){r.elementsToUnregister.next(f);
var I=r.elementMap.get(f);I!==void 0&&(I.release(),r.elementMap.delete(f))};var F4B=W9u("adurl"),$Gd=W9u("ae"),N_$=W9u("dsh"),XtK=function(r){var f=r.url;r=r.uaDataValues;this.JSC$7375_url_=f;this.uaDataValues_=r;this.suid_=(new Date).getTime()-17040672E5},PAl=function(r){r=r.uaDataValues_;
if(!r)return"";var f=Ao("uap",r.platform)+Ao("uapv",r.platformVersion)+Ao("uafv",r.uaFullVersion)+Ao("uaa",r.architecture)+Ao("uam",r.model)+Ao("uab",r.bitness);r.fullVersionList&&(f+="&uafvl="+encodeURIComponent(r.fullVersionList.map(function(I){return encodeURIComponent(I.brand)+";"+encodeURIComponent(I.version)}).join("|")));
r.wow64!=null&&(f+="&uaw="+Number(r.wow64));return f.slice(1)};var so=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(so,_.Kj);so.prototype.getId=function(){return _.Tb(this,1)};
so.prototype.setId=function(r){return _.kU(this,1,r)};var Oo=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Oo,_.Kj);Oo.prototype.getSeconds=function(){return PM(this,1)};
Oo.prototype.setSeconds=function(r){return _.Ty(this,1,JU(r),"0")};_.i1=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(_.i1,_.Kj);_.i1.prototype.getSeconds=function(){return PM(this,1)};
_.i1.prototype.setSeconds=function(r){return _.Ty(this,1,JU(r),"0")};
_.Mas=function(r){var f=Number(WM(r,1));r=_.u3(r,2);return new Date(f*1E3+r/1E6)};var oF=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(oF,_.Kj);oF.prototype.getUrl=function(){return _.Tb(this,1)};
oF.prototype.setUrl=function(r){return _.kU(this,1,r)};
oF.prototype.getHeight=function(){return _.u3(this,2)};
oF.prototype.getWidth=function(){return _.u3(this,3)};var QT=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(QT,_.Kj);QT.prototype.getAspectRatio=function(){return ts(this,1)};
QT.prototype.setAspectRatio=function(r){return _.Ty(this,1,_.xi(r),0)};
QT.prototype.getDuration=function(){return _.kB(this,Oo,2)};var gH8=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(gH8,_.Kj);var a$T=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(a$T,_.Kj);var XE4=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(XE4,_.Kj);var N23=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(N23,_.Kj);var $e3=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t($e3,_.Kj);var FoV=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(FoV,_.Kj);var Pr_=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Pr_,_.Kj);var taD=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(taD,_.Kj);var T2B=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(T2B,_.Kj);var AJ=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(AJ,_.Kj);var ZR=[2,4,5,6,7];var cgX=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(cgX,_.Kj);var N2=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(N2,_.Kj);_.l=N2.prototype;_.l.getId=function(){return _.kB(this,so,1)};
_.l.setId=function(r){return _.CK(this,1,r)};
_.l.getName=function(){return _.Tb(this,2)};
_.l.setDescription=function(r){return _.kU(this,3,r)};
_.l.getUrl=function(){return _.Tb(this,8)};
_.l.setUrl=function(r){return _.kU(this,8,r)};
var G1=function(r){return _.Bk(r,oF,10,_.qS())};
N2.prototype.getOwner=function(r){var f=_.X9(this,40,_.yV,3,!0);oD(f,r);return f[r]};
N2.prototype.getVersion=function(){return PM(this,45)};
var k2=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(k2,_.Kj);_.WoX=[0,d9w,M6K];_.Lo3=[0,d9w,M6K];var me3=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(me3,_.Kj);var BY=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(BY,_.Kj);BY.prototype.getStatus=function(){return _.cM(this,1)};
BY.prototype.removeItem=function(r){return Jwc(this,2,r)};var eLX=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(eLX,_.Kj);eLX.prototype.getName=function(){return _.Tb(this,8)};var qB=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(qB,_.Kj);qB.prototype.getCommand=function(){return _.cM(this,1)};
qB.prototype.getSource=function(){return _.kB(this,eLX,2)};
qB.prototype.setVisible=function(r){return _.X6(this,5,r)};
qB.prototype.removeItem=function(r){return Jwc(this,7,r)};var Jgs=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Jgs,_.Kj);Jgs.prototype.getCommand=function(){return _.cM(this,1)};
Jgs.prototype.removeItem=function(r){return Jwc(this,4,r)};
var jMX=_.fK(Jgs);var uw=function(r,f,I){I=I===void 0?Error():I;var C=Error.call(this);this.message=C.message;"stack"in C&&(this.stack=C.stack);this.code=r;f+=":";I instanceof Error?(this.message=f+I.message,this.stack=I.stack||""):(this.message=f+String(I),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.t(uw,Error);_.Mu=function(){this.JSC$7433_disposed_=this.JSC$7433_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.Mu.prototype.JSC$7433_disposed_=!1;_.Mu.prototype.isDisposed=function(){return this.JSC$7433_disposed_};
_.Mu.prototype.dispose=function(){this.JSC$7433_disposed_||(this.JSC$7433_disposed_=!0,this.disposeInternal())};
_.Mu.prototype[Symbol.dispose]=function(){this.dispose()};
_.V$=function(r,f){r.addOnDisposeCallback(_.S_(_.Z8,f))};
_.Mu.prototype.addOnDisposeCallback=function(r,f){this.JSC$7433_disposed_?f!==void 0?r.call(f):r():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),f&&(r=r.bind(f)),this.onDisposeCallbacks_.push(r))};
_.Mu.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var DR=function(r){_.Mu.call(this);this.wpc=r};
_.t(DR,_.Mu);DR.prototype.c0Y=function(){return this.wpc.f()};
DR.prototype.bPB=function(r){return this.wpc.c(r)};
DR.prototype.eB=function(r){return this.wpc.m(HXq(r))};
DR.prototype.cI=function(r){return this.wpc.mws(HXq(r))};
var kX=function(r){_.Mu.call(this);var f=this;this.k9=r;this.eEq="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.ahB=void 0;this.oBS=this.k9.p;this.bpz=this.p9f.bind(this);this.addOnDisposeCallback(function(){return void Hj_(f)})};
_.t(kX,_.Mu);var ijD=function(r){var f;return _.x(function(I){if(I.nextAddress==1){if(!r.k9.wpc)throw new uw(30,"NWA");return r.ixS?I.return(r.ixS):_.b(I,r.k9.wpc(),2)}f=I.yieldResult;r.ixS=new DR(f);return I.return(r.ixS)})};
kX.prototype.snapshot=function(r){return this.k9.s(Object.assign({},r.mF&&{c:r.mF},r.sxS&&{s:r.sxS},r.lxA!==void 0&&{p:r.lxA}))};
kX.prototype.p9f=function(r){this.k9.e(r)};
kX.prototype.dCr=function(r,f){return this.k9.c(r,f,!1)};
var Hj_=function(r){r.ahB!==void 0&&(r.eEq.forEach(function(f){var I;(I=r.ahB)==null||I.removeEventListener(f,r.bpz)}),r.ahB=void 0)};
kX.prototype.gUS=function(){return this.k9.l()};var RL8,ri=function(){_.Mu.apply(this,arguments);this.cHA=1;this[RL8]=this.dispose};
_.t(ri,_.Mu);ri.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.cHA++;return this};
ri.prototype.dispose=function(){--this.cHA||_.Mu.prototype.dispose.call(this)};
RL8=Symbol.dispose;var CdE=function(r){this.lxy=r;r.addNewEventMetric("/client_streamz/bg/frs",_.fX("mk"))};
CdE.prototype.record=function(r,f){this.lxy.record("/client_streamz/bg/frs",r,f)};
var EL$=function(r){this.cBq=r;r.addNewEventMetric("/client_streamz/bg/wrl",_.fX("mn"),rL("ac"),rL("sc"),_.fX("rk"),_.fX("mk"))};
EL$.prototype.record=function(r,f,I,C,Y,V){this.cBq.record("/client_streamz/bg/wrl",r,f,I,C,Y,V)};
var l3q=function(r){this.j9u=r;r.addNewCounter("/client_streamz/bg/ec",_.fX("en"),_.fX("mk"))};
l3q.prototype.increment=function(r,f){this.j9u.JSC$7686_incrementCounter("/client_streamz/bg/ec",r,f)};
var Vb$=function(r){this.nSA=r;r.addNewEventMetric("/client_streamz/bg/el",_.fX("en"),_.fX("mk"))};
Vb$.prototype.record=function(r,f,I){this.nSA.record("/client_streamz/bg/el",r,f,I)};
var YmR=function(r){this.yBy=r;r.addNewCounter("/client_streamz/bg/cec",rL("ec"),_.fX("mk"))};
YmR.prototype.increment=function(r,f){this.yBy.JSC$7686_incrementCounter("/client_streamz/bg/cec",r,f)};
var Sml=function(r){this.tUl=r;r.addNewCounter("/client_streamz/bg/po/csc",rL("cs"),_.fX("mk"))};
Sml.prototype.increment=function(r,f){this.tUl.JSC$7686_incrementCounter("/client_streamz/bg/po/csc",r,f)};
var xkw=function(r){this.gSr=r;r.addNewCounter("/client_streamz/bg/po/ctav",_.fX("av"),_.fX("mk"))};
xkw.prototype.increment=function(r,f){this.gSr.JSC$7686_incrementCounter("/client_streamz/bg/po/ctav",r,f)};
var hoB=function(r){this.fxl=r;r.addNewCounter("/client_streamz/bg/po/cwsc",_.fX("su"),_.fX("mk"))};
hoB.prototype.increment=function(r,f){this.fxl.JSC$7686_incrementCounter("/client_streamz/bg/po/cwsc",r,f)};var gLu=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(gLu,_.Kj);var MbK=function(r,f){return _.PE(r,3,f,qPc)};var vH4=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(vH4,_.Kj);var Ko3=[1,2,3];var ygs=[0,Ko3,_.$9E,gWw,N3R];var Ueq=[0,_.QF,[0,b1B,_.Uv]];var sMC=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(sMC,_.Kj);var Oj_=[1,2,3];var oH4=[0,Oj_,zCP,pNw,_.As,Ueq];var QM3=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(QM3,_.Kj);var AgD=[0,_.QF,ygs,oH4];var ZjX=[0,_.oJ];var Gy8=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Gy8,_.Kj);var ky3=[0,_.oJ,-1,_.Ov];var B2q=[0,_.oJ,-1,_.sv,_.Ov];var qW3=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(qW3,_.Kj);var u93=[1,2,3];var De4=[0,u93,_.As,ky3,_.As,B2q,_.As,ZjX];var r6s=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(r6s,_.Kj);r6s.prototype.JSC$7506_serializeBinary=f$R([0,_.oJ,De4,FjE,_.QF,AgD,a6P,XNm]);var fzD=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(fzD,_.Kj);var YRs=function(r){var f=new r6s;f=_.w5(f,1,r.JSC$7622_metricName);var I=Iz4(r);f=_.PE(f,3,I,_.vB);I=[];for(var C=[],Y=_.E(r.cellMap.keys()),V=Y.next();!V.done;V=Y.next())C.push(V.value.split(","));for(Y=0;Y<C.length;Y++){V=C[Y];for(var S=r.cellType,h=r.getCells(V)||[],w=[],n=0;n<h.length;n++){var d=h[n],z=d&&d.cellValue;d=new sMC;switch(S){case 3:z=Number(z);Number.isFinite(z)&&Vy(d,1,Oj_,JU(z));break;case 2:Vy(d,2,Oj_,_.xi(Number(z)))}w.push(d)}S=w;for(h=0;h<S.length;h++){w=S[h];n=new QM3;w=_.CK(n,
2,w);n=[];d=CMV(r);for(z=0;z<d.length;z++){var g=d[z],X=V[z],P=new vH4;switch(g){case 3:Vy(P,1,Ko3,Kq(String(X)));break;case 2:g=Number(X);Number.isFinite(g)&&Vy(P,2,Ko3,_.PB(g));break;case 1:Vy(P,3,Ko3,GBB(X==="true"))}n.push(P)}Xz(w,1,n);I.push(w)}}Xz(f,4,I);return f};var lz4=function(r){if(!r)return"";if(/^about:(?:blank|srcdoc)$/.test(r))return window.origin||"";r.indexOf("blob:")===0&&(r=r.substring(5));r=r.split("#")[0].split("?")[0];r=r.toLowerCase();r.indexOf("//")==0&&(r=window.location.protocol+r);/^[\w\-]*:\/\//.test(r)||(r=window.location.href);var f=r.substring(r.indexOf("://")+3),I=f.indexOf("/");I!=-1&&(f=f.substring(0,I));I=r.substring(0,r.indexOf("://"));if(!I)throw Error("ua`"+r);if(I!=="http"&&I!=="https"&&I!=="chrome-extension"&&I!=="moz-extension"&&
I!=="file"&&I!=="android-app"&&I!=="chrome-search"&&I!=="chrome-untrusted"&&I!=="chrome"&&I!=="app"&&I!=="devtools")throw Error("va`"+I);r="";var C=f.indexOf(":");if(C!=-1){var Y=f.substring(C+1);f=f.substring(0,C);if(I==="http"&&Y!=="80"||I==="https"&&Y!=="443")r=":"+Y}return I+"://"+f+r};var E1q=function(r,f,I){var C=String(_.Yq.location.href);return C&&r&&f?[f,VF3(lz4(C),r,I||null)].join(" "):null},VF3=function(r,f,I){var C=[],Y=[];
if((Array.isArray(I)?2:1)==1)return Y=[f,r],_.Rv(C,function(h){Y.push(h)}),SR8(Y.join(" "));
var V=[],S=[];_.Rv(I,function(h){S.push(h.key);V.push(h.value)});
I=Math.floor((new Date).getTime()/1E3);Y=V.length==0?[I,f,r]:[V.join(":"),I,f,r];_.Rv(C,function(h){Y.push(h)});
r=SR8(Y.join(" "));r=[I,r];S.length==0||r.push(S.join(""));return r.join("_")},SR8=function(r){var f=OXq();
f.update(r);return f.digestString().toLowerCase()};var fd=function(r){this.JSC$7517_document_=r||{cookie:""}},x34;
_.l=fd.prototype;_.l.isEnabled=function(){if(!_.Yq.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(r,f,I){var C=!1;if(typeof I==="object"){var Y=I.sameSite;C=I.secure||!1;var V=I.domain||void 0;var S=I.path||void 0;var h=I.maxAge}if(/[;=\s]/.test(r))throw Error("wa`"+r);if(/[;\r\n]/.test(f))throw Error("xa`"+f);h===void 0&&(h=-1);I=V?";domain="+V:"";S=S?";path="+S:"";C=C?";secure":"";h=h<0?"":h==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+h*1E3)).toUTCString();this.JSC$7517_document_.cookie=r+"="+f+I+S+h+C+(Y!=null?";samesite="+Y:"")};
_.l.get=function(r,f){for(var I=r+"=",C=(this.JSC$7517_document_.cookie||"").split(";"),Y=0,V;Y<C.length;Y++){V=dR(C[Y]);if(V.lastIndexOf(I,0)==0)return V.slice(I.length);if(V==r)return""}return f};
_.l.remove=function(r,f,I){var C=this.containsKey(r);this.set(r,"",{maxAge:0,path:f,domain:I});return C};
_.l.getKeys=function(){return x34(this).keys};
_.l.getValues=function(){return x34(this).values};
_.l.isEmpty=function(){return!this.JSC$7517_document_.cookie};
_.l.getCount=function(){return this.JSC$7517_document_.cookie?(this.JSC$7517_document_.cookie||"").split(";").length:0};
_.l.containsKey=function(r){return this.get(r)!==void 0};
_.l.containsValue=function(r){for(var f=x34(this).values,I=0;I<f.length;I++)if(f[I]==r)return!0;return!1};
_.l.clear=function(){for(var r=x34(this).keys,f=r.length-1;f>=0;f--)this.remove(r[f])};
x34=function(r){r=(r.JSC$7517_document_.cookie||"").split(";");for(var f=[],I=[],C,Y,V=0;V<r.length;V++)Y=dR(r[V]),C=Y.indexOf("="),C==-1?(f.push(""),I.push(Y)):(f.push(Y.substring(0,C)),I.push(Y.substring(C+1)));return{keys:f,values:I}};
_.xB=new fd(typeof document=="undefined"?null:document);var hWB=function(){var r=_.Yq.__SAPISID||_.Yq.__APISID||_.Yq.__3PSAPISID||_.Yq.__1PSAPISID||_.Yq.__OVERRIDE_SID;if(r)return!0;typeof document!=="undefined"&&(r=new fd(document),r=r.get("SAPISID")||r.get("APISID")||r.get("__Secure-3PAPISID")||r.get("__Secure-1PAPISID"));return!!r},hn3=function(r,f,I,C){(r=_.Yq[r])||typeof document==="undefined"||(r=(new fd(document)).get(f));
return r?E1q(r,I,C):null},BGl=function(r){var f=lz4(_.Yq==null?void 0:_.Yq.location.href),I=[];
if(hWB()){f=f.indexOf("https:")==0||f.indexOf("chrome-extension:")==0||f.indexOf("chrome-untrusted://new-tab-page")==0||f.indexOf("moz-extension:")==0;var C=f?_.Yq.__SAPISID:_.Yq.__APISID;C||typeof document==="undefined"||(C=new fd(document),C=C.get(f?"SAPISID":"APISID")||C.get("__Secure-3PAPISID"));(C=C?E1q(C,f?"SAPISIDHASH":"APISIDHASH",r):null)&&I.push(C);f&&((f=hn3("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",r))&&I.push(f),(r=hn3("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",r))&&I.push(r))}return I.length==
0?null:I.join(" ")};var wL3=function(){this.minSize=1024};
wL3.prototype.compress=function(r){var f,I,C,Y;return _.x(function(V){switch(V.nextAddress){case 1:return f=new CompressionStream("gzip"),I=(new Response(f.readable)).arrayBuffer(),C=f.writable.getWriter(),_.b(V,C.write((new TextEncoder).encode(r)),2);case 2:return _.b(V,C.close(),3);case 3:return Y=Uint8Array,_.b(V,I,4);case 4:return V.return(new Y(V.yieldResult))}})};
wL3.prototype.isSupported=function(r){return r<this.minSize?!1:typeof CompressionStream!=="undefined"};var bK4=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(bK4,_.Kj);var IP=function(r,f){this.intervalMs=r;this.callback=f;this.enabled=!1;this.nowFn=function(){return _.Dc()};
this.lastTimeMs=this.nowFn()};
IP.prototype.setInterval=function(r){this.intervalMs=r;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
IP.prototype.start=function(){var r=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){r.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
IP.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
IP.prototype.tick=function(){var r=this;if(this.enabled){var f=Math.max(this.nowFn()-this.lastTimeMs,0);f<this.intervalMs*.8?this.timer=setTimeout(function(){r.tick()},this.intervalMs-f):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var pLq=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(pLq,_.Kj);var n14=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(n14,_.Kj);var d3q=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(d3q,_.Kj);d3q.prototype.getTransmissionType=function(){return _.cM(this,1)};var ZX$=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(ZX$,_.Kj);ZX$.prototype.getVersion=function(){return _.Tb(this,2)};var Cd=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Cd,_.Kj);var Ayu=function(r){Xz(GHw,1,r)};
Cd.prototype.getModel=function(){return _.Tb(this,6)};
var zn8=_.fK(Cd);var MFV=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(MFV,_.Kj);var oaw=["platform","platformVersion","architecture","model","uaFullVersion"],GHw=new Cd,QZ$=null;var g1U=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(g1U,_.Kj);var azD=function(r){return _.Bd(r,1,1)};var XL3=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r,4)};
_.t(XL3,_.Kj);_.Yk=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r,36)};
_.t(_.Yk,_.Kj);_.Yk.prototype.getExperimentIds=function(){return _.kB(this,bK4,16)};var Nn_=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r,19)};
_.t(Nn_,_.Kj);Nn_.prototype.setLogSource=function(r){return _.Bd(this,2,r)};
Nn_.prototype.setScheduler=function(r){return _.Bd(this,10,r)};var FXC=function(r,f){this.isServiceWorkerScope=f=f===void 0?!1:f;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new Nn_;Number.isInteger(r)&&this.logRequest.setLogSource(r);f||(this.locale=document.documentElement.getAttribute("lang"));$3V(this,new g1U)};
FXC.prototype.setLogSource=function(r){this.logRequest.setLogSource(r);return this};
var $3V=function(r,f){_.CK(r.logRequest,1,f);_.cM(f,1)||azD(f);r.isServiceWorkerScope||(f=ll(r),_.Tb(f,5)||_.w5(f,5,r.locale));r.uach&&(f=ll(r),_.kB(f,Cd,9)||_.CK(f,9,r.uach))},PMq=function(r,f){r.transmissionType=f},tFV=function(r){var f=f===void 0?oaw:f;
var I=r.isServiceWorkerScope?void 0:Pk();I?kHR(I,f).then(function(C){r.uach=zn8(C!=null?C:"[]");C=ll(r);_.CK(C,9,r.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},ll=function(r){r=_.kB(r.logRequest,g1U,1);
var f=_.kB(r,MFV,11);f||(f=new MFV,_.CK(r,11,f));return f};
FXC.prototype.build=function(r,f,I,C,Y,V){f=f===void 0?0:f;I=I===void 0?0:I;C=C===void 0?null:C;Y=Y===void 0?0:Y;V=V===void 0?0:V;if(!this.isServiceWorkerScope){var S=ll(this);var h=new d3q;h=_.Bd(h,1,this.transmissionType);h=_.IZ(h,2,this.isFinal);I=_.eg(h,3,I>0?I:void 0);I=_.eg(I,4,Y>0?Y:void 0);I=_.eg(I,5,V>0?V:void 0);Y=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;V=Y[_.L8]|0;I=v4(I,V)?I:xH(I,Y,V)?Sa(I,Y):new I.constructor(EW(Y,V,!0));_.CK(S,10,I)}S=this.logRequest.clone();I=Date.now().toString();
S=_.qU(S,4,JU(I));r=r.slice();r=Xz(S,3,r);C&&(S=new pLq,C=_.eg(S,13,C),S=new n14,C=_.CK(S,2,C),S=new XL3,C=_.CK(S,1,C),C=_.Bd(C,2,9),_.CK(r,18,C));f&&_.pN(r,14,f);return r};CX.prototype.currBackoffCount_=0;CX.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
CX.prototype.getValue=function(){return this.currValue_};
var TnT=function(r){r.currBaseValue_=Math.min(r.maxValue_,r.currBaseValue_*r.backoffFactor_);r.currValue_=Math.min(r.maxValue_,r.currBaseValue_+(r.randomFactor_?Math.round(r.randomFactor_*(Math.random()-.5)*2*r.currBaseValue_):0));r.currBackoffCount_++};var Wju=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r,8)};
_.t(Wju,_.Kj);var c64=_.fK(Wju);var LjK=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(LjK,_.Kj);var Vh;Vh=new m9U;var EU=function(r){_.Mu.call(this);var f=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7595_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$7595_sendBeaconApiEnabled=!1;this.logSource=r.logSource;this.getAuthHeaderValue=
r.getAuthHeaderValue||function(){};
this.logRequestBuilder=new FXC(r.logSource,r.isServiceWorkerScope);this.network=r.network||null;this.productID=r.productID||null;this.clearcutUrl=r.urlOverride||null;this.sessionIndex=r.sessionIndex||null;this.disableAutomaticFlush=r.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!r.disableWithCredentials;this.isServiceWorkerScope=r.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!Pk()&&!!Pk().navigator&&Pk().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(WXX())).searchParams&&!!(new URL(WXX())).searchParams.set;var I=azD(new g1U);$3V(this.logRequestBuilder,I);this.flushBackoff=new CX(1E4,3E5,.1);r=LXB(this,r.backgroundJobDeferrer);this.JSC$7595_flushTimer=new IP(this.flushBackoff.getValue(),r);this.backupTimer=new IP(6E5,r);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){m3s(f);
var C;(C=f.metalogService)==null||C.flush()}}),document.addEventListener("pagehide",function(){m3s(f);
var C;(C=f.metalogService)==null||C.flush()}))};
_.t(EU,_.Mu);var LXB=function(r,f){return r.isBrowserSupported?f?function(){f().then(function(){r.flush()})}:function(){r.flush()}:function(){}};
EU.prototype.disposeInternal=function(){m3s(this);this.JSC$7595_flushTimer.stop();this.backupTimer.stop();_.Mu.prototype.disposeInternal.call(this)};
var en_=function(r){r.clearcutUrl||(r.clearcutUrl=WXX());try{return(new URL(r.clearcutUrl)).toString()}catch(f){return(new URL(r.clearcutUrl,Pk().location.origin)).toString()}};
EU.prototype.dispatch=function(r){if(r instanceof _.Yk)this.log(r);else try{var f=new _.Yk,I=r.serialize();var C=_.w5(f,8,I);this.log(C)}catch(Y){SX(this,4,1)}};
var SX=function(r,f,I){r.metalogService&&r.metalogService.increment(f,I)};
EU.prototype.log=function(r){SX(this,2,1);if(this.isBrowserSupported){r=r.clone();var f=this.sequencePosition++;r=_.pN(r,21,f);this.componentId&&_.w5(r,26,this.componentId);f=r;if(p4m(_.pD(f,1))==null){var I=Date.now();I=Number.isFinite(I)?I.toString():"0";_.qU(f,1,JU(I))}_.b8B(_.pD(f,15))!=null||_.pN(f,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(I=this.experimentIds.clone(),_.CK(f,16,I));SX(this,1,1);f=this.pendingEvents.length-1E3+1;f>0&&(this.pendingEvents.splice(0,f),this.numLogsDroppedSinceLastFlush+=
f,SX(this,3,f));this.pendingEvents.push(r);this.disableAutomaticFlush||this.JSC$7595_flushTimer.enabled||this.JSC$7595_flushTimer.start()}};
EU.prototype.flush=function(r,f){var I=this;if(this.pendingEvents.length===0)r&&r();else if(this.JSC$7595_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,J6B(this);else{var C=Date.now();if(this.noFlushUntilMs>C&&this.startWaitingMs<C)f&&f("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?PMq(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var Y=this.pendingEvents.length,
V=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),S=this.getAuthHeaderValue();if(S&&this.lastFailedAuth===S)f&&f("stale-auth-token");else{this.pendingEvents=[];this.JSC$7595_flushTimer.enabled&&this.JSC$7595_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;C=V.serialize();var h;this.JSC$7595_compressor&&this.JSC$7595_compressor.isSupported(C.length)&&
(h=this.JSC$7595_compressor.compress(C));var w=jwq(this,C,S),n=function(g){I.flushBackoff.reset();I.JSC$7595_flushTimer.setInterval(I.flushBackoff.getValue());if(g){var X=null;try{var P=JSON.stringify(JSON.parse(g.replace(")]}'\n","")));X=c64(P)}catch(W){}X&&(g=Number(PM(X,1,_.uV("-1"))),g>0&&(I.startWaitingMs=Date.now(),I.noFlushUntilMs=I.startWaitingMs+g),egd(X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Vh.fieldIndex),L3U(X,Vh.fieldIndex),X=Vh.ctor?Vh.getExtensionFn(X,Vh.ctor,Vh.fieldIndex,
Vh.JSC$6775_hasMessageId):Vh.getExtensionFn(X,Vh.fieldIndex,null,Vh.JSC$6775_hasMessageId),X=X===null?void 0:X)&&(X=_.u3(X,1,-1),X!==-1&&(I.flushBackoff=new CX(X<1?1:X,3E5,.1),I.JSC$7595_flushTimer.setInterval(I.flushBackoff.getValue())))}r&&r();I.numRetriesSinceLastSuccessfulFlush=0},d=function(g,X){var P=_.Bk(V,_.Yk,3,_.qS());
var W=Number(PM(V,14));TnT(I.flushBackoff);I.JSC$7595_flushTimer.setInterval(I.flushBackoff.getValue());g===401&&S&&(I.lastFailedAuth=S);W&&(I.numLogsDroppedSinceLastFlush+=W);X===void 0&&(X=I.isRetryable(g));X&&(I.pendingEvents=P.concat(I.pendingEvents),I.disableAutomaticFlush||I.JSC$7595_flushTimer.enabled||I.JSC$7595_flushTimer.start());SX(I,7,1);f&&f("net-send-failed",g);++I.numRetriesSinceLastSuccessfulFlush},z=function(){I.network&&I.network.send(w,n,d)};
h?h.then(function(g){SX(I,5,Y);w.requestHeaders["Content-Encoding"]="gzip";w.requestHeaders["Content-Type"]="application/binary";w.body=g;w.bodyType=2;z()},function(){SX(I,6,Y);
z()}):z()}}}};
var jwq=function(r,f,I){I=I===void 0?null:I;var C=C===void 0?r.withCredentials:C;var Y={},V=new URL(en_(r));I&&(Y.Authorization=I);r.sessionIndex&&(Y["X-Goog-AuthUser"]=r.sessionIndex,V.searchParams.set("authuser",r.sessionIndex));r.pageId&&(Object.defineProperty(Y,"X-Goog-PageId",{value:r.pageId}),V.searchParams.set("pageId",r.pageId));return{url:V.toString(),body:f,bodyType:1,requestHeaders:Y,requestType:"POST",withCredentials:C,timeoutMillis:r.timeoutMillis}},m3s=function(r){r.logRequestBuilder.isFinal=
!0;
r.flush();r.logRequestBuilder.isFinal=!1},J6B=function(r){HK_(r,function(f,I){f=new URL(f);
f.searchParams.set("format","json");var C=!1;try{C=Pk().navigator.sendBeacon(f.toString(),I.serialize())}catch(Y){}C||(r.isSendBeaconSupported=!1);return C})},HK_=function(r,f){if(r.pendingEvents.length!==0){var I=new URL(en_(r));
I.searchParams.delete("format");var C=r.getAuthHeaderValue();C&&I.searchParams.set("auth",C);I.searchParams.set("authuser",r.sessionIndex||"0");for(C=0;C<10&&r.pendingEvents.length;++C){var Y=r.pendingEvents.slice(0,32),V=r.logRequestBuilder.build(Y,r.numLogsDroppedSinceLastFlush,r.numRetriesSinceLastSuccessfulFlush,r.productID,r.persistedLogRecoveredCount,r.persistedLogExpiredCount);if(!f(I.toString(),V)){++r.numRetriesSinceLastSuccessfulFlush;break}r.numLogsDroppedSinceLastFlush=0;r.numRetriesSinceLastSuccessfulFlush=
0;r.persistedLogRecoveredCount=0;r.persistedLogExpiredCount=0;r.pendingEvents=r.pendingEvents.slice(Y.length)}r.JSC$7595_flushTimer.enabled&&r.JSC$7595_flushTimer.stop()}};
EU.prototype.isRetryable=function(r){return 500<=r&&r<600||r===401||r===0};
var WXX=function(){return"https://play.google.com/log?format=json&hasfast=true"};var iK3=function(){this.abortSupported=typeof AbortController!=="undefined"};
iK3.prototype.send=function(r,f,I){var C=this,Y,V,S,h,w,n,d,z,g,X;return _.x(function(P){switch(P.nextAddress){case 1:return V=(Y=C.abortSupported?new AbortController:void 0)?setTimeout(function(){Y.abort()},r.timeoutMillis):void 0,_.l_(P,2,3),S=Object.assign({},{method:r.requestType,
headers:Object.assign({},r.requestHeaders)},r.body&&{body:r.body},r.withCredentials&&{credentials:"include"},{signal:r.timeoutMillis&&Y?Y.signal:null}),_.b(P,fetch(r.url,S),5);case 5:h=P.yieldResult;if(h.status!==200){(w=I)==null||w(h.status);P.jumpTo(3);break}if((n=f)==null){P.jumpTo(7);break}return _.b(P,h.text(),8);case 8:n(P.yieldResult);case 7:case 3:_.VY(P);clearTimeout(V);_.xV(P,0);break;case 2:d=_.ha(P);switch((z=d)==null?void 0:z.name){case "AbortError":(g=I)==null||g(408);break;default:(X=
I)==null||X(400)}P.jumpTo(3)}})};
iK3.prototype.getTransmissionType=function(){return 4};_.lE=function(r,f){f=f===void 0?"0":f;_.Mu.call(this);this.logSource=r;this.sessionIndex=f;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7613_clearExperimentIds=this.productID=null;this.JSC$7613_sendBeaconApiEnabled=!1;this.pageId=null};
_.t(_.lE,_.Mu);var nLm=function(r,f){r.buildLabel=f;return r},p9U=function(r,f){r.network=f;
return r},zoK=function(r,f){r.JSC$7613_clearExperimentIds=f},byu=function(r){r.JSC$7613_sendBeaconApiEnabled=!0;
return r};
_.lE.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.lE.prototype.build=function(){this.network||(this.network=new iK3);var r=new EU({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:BGl,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.V$(this,r);if(this.buildLabel){var f=this.buildLabel,I=ll(r.logRequestBuilder);
_.w5(I,7,f)}r.JSC$7595_compressor=new wL3;this.componentId&&(r.componentId=this.componentId);this.productID&&(r.productID=this.productID);this.pageId&&(r.pageId=this.pageId);this.JSC$7613_clearExperimentIds&&((I=this.JSC$7613_clearExperimentIds)?(r.experimentIds||(r.experimentIds=new bK4),f=r.experimentIds,I=I.serialize(),_.w5(f,4,I)):r.experimentIds&&_.qU(r.experimentIds,4));this.JSC$7613_sendBeaconApiEnabled&&(r.JSC$7595_sendBeaconApiEnabled=r.isSendBeaconSupported);tFV(r.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(r);return r};var a3P=function(r,f,I,C,Y,V,S){r=r===void 0?-1:r;f=f===void 0?"":f;I=I===void 0?"":I;C=C===void 0?!1:C;Y=Y===void 0?"":Y;_.Mu.call(this);this.logSource=r;this.componentId=f;V?f=V:(r=new _.lE(r,"0"),r.componentId=f,_.V$(this,r),I!==""&&(r.destinationUrl=I),C&&(r.serviceWorkerScopeEnabled=!0),Y&&nLm(r,Y),S&&p9U(r,S),f=r.build());this.JSC$7617_transport=f};
_.t(a3P,_.Mu);a3P.prototype.flush=function(r){r=r||[];if(r.length){for(var f=new fzD,I=[],C=0;C<r.length;C++){var Y=r[C],V=YRs(Y);I.push(V);Y.clear()}Xz(f,1,I);this.JSC$7617_transport.dispatch(f);this.JSC$7617_transport.flush()}};var Rn_=function(r){this.cellValue=r};var xk=function(r,f,I){this.JSC$7622_metricName=r;this.cellType=f;this.fields=I||[];this.cellMap=new Map},CMV=function(r){return r.fields.map(function(f){return f.fieldType})},Iz4=function(r){return r.fields.map(function(f){return f.fieldName})};
_.l=xk.prototype;_.l.addCell=function(r){var f=_.XE.apply(1,arguments),I=this.getCells(f);I?I.push(new Rn_(r)):this.JSC$7622_setCell(r,f)};
_.l.JSC$7622_setCell=function(r){var f=this.JSC$7622_getKey(_.XE.apply(1,arguments));this.cellMap.set(f,[new Rn_(r)])};
_.l.getCells=function(){var r=this.JSC$7622_getKey(_.XE.apply(0,arguments));return this.cellMap.has(r)?this.cellMap.get(r):void 0};
_.l.getCell=function(){var r=this.getCells(_.XE.apply(0,arguments));return r&&r.length?r[0]:void 0};
_.l.clear=function(){this.cellMap.clear()};
_.l.JSC$7622_getKey=function(){var r=_.XE.apply(0,arguments);return r?r.join(","):"key"};var v13=function(r,f){xk.call(this,r,3,f)};
_.t(v13,xk);v13.prototype.JSC$7625_incrementCounterBy=function(r){var f=_.XE.apply(1,arguments),I=0,C=this.getCell(f);C&&(I=C.cellValue);this.JSC$7622_setCell(I+r,f)};var KX4=function(r,f){xk.call(this,r,2,f)};
_.t(KX4,xk);KX4.prototype.record=function(r){this.addCell(r,_.XE.apply(1,arguments))};_.hA=function(r){this.id=r};
_.hA.prototype.toString=function(){return this.id};_.wi=function(r,f){this.type=r instanceof _.hA?String(r):r;this.currentTarget=this.target=f;this.defaultPrevented=this.propagationStopped_=!1};
_.wi.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.wi.prototype.preventDefault=function(){this.defaultPrevented=!0};_.bl=function(r,f){_.wi.call(this,r?r.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;r&&this.init(r,f)};
_.rh(_.bl,_.wi);
_.bl.prototype.init=function(r,f){var I=this.type=r.type,C=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:null;this.target=r.target||r.srcElement;this.currentTarget=f;f=r.relatedTarget;f||(I=="mouseover"?f=r.fromElement:I=="mouseout"&&(f=r.toElement));this.relatedTarget=f;C?(this.clientX=C.clientX!==void 0?C.clientX:C.pageX,this.clientY=C.clientY!==void 0?C.clientY:C.pageY,this.screenX=C.screenX||0,this.screenY=C.screenY||0):(this.offsetX=_.VF||r.offsetX!==void 0?r.offsetX:r.layerX,
this.offsetY=_.VF||r.offsetY!==void 0?r.offsetY:r.layerY,this.clientX=r.clientX!==void 0?r.clientX:r.pageX,this.clientY=r.clientY!==void 0?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0);this.button=r.button;this.keyCode=r.keyCode||0;this.key=r.key||"";this.charCode=r.charCode||(I=="keypress"?r.keyCode:0);this.ctrlKey=r.ctrlKey;this.altKey=r.altKey;this.shiftKey=r.shiftKey;this.metaKey=r.metaKey;this.pointerId=r.pointerId||0;this.pointerType=r.pointerType;this.state=r.state;
this.timeStamp=r.timeStamp;this.event_=r;r.defaultPrevented&&_.bl.superClass_.preventDefault.call(this)};
_.bl.prototype.stopPropagation=function(){_.bl.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.bl.prototype.preventDefault=function(){_.bl.superClass_.preventDefault.call(this);var r=this.event_;r.preventDefault?r.preventDefault():r.returnValue=!1};var y64="closure_listenable_"+(Math.random()*1E6|0),pd=function(r){return!(!r||!r[y64])};var U38=0;var swT=function(r,f,I,C,Y){this.listener=r;this.proxy=null;this.src=f;this.type=I;this.capture=!!C;this.handler=Y;this.key=++U38;this.removed=this.callOnce=!1},OK8=function(r){r.removed=!0;
r.listener=null;r.proxy=null;r.src=null;r.handler=null};Ya.prototype.add=function(r,f,I,C,Y){var V=r.toString();r=this.listeners[V];r||(r=this.listeners[V]=[],this.typeCount_++);var S=o1q(r,f,C,Y);S>-1?(f=r[S],I||(f.callOnce=!1)):(f=new swT(f,this.src,V,!!C,Y),f.callOnce=I,r.push(f));return f};
Ya.prototype.remove=function(r,f,I,C){r=r.toString();if(!(r in this.listeners))return!1;var Y=this.listeners[r];f=o1q(Y,f,I,C);return f>-1?(OK8(Y[f]),_.GB(Y,f),Y.length==0&&(delete this.listeners[r],this.typeCount_--),!0):!1};
var QwT=function(r,f){var I=f.type;if(!(I in r.listeners))return!1;var C=_.uU(r.listeners[I],f);C&&(OK8(f),r.listeners[I].length==0&&(delete r.listeners[I],r.typeCount_--));return C};
Ya.prototype.removeAll=function(r){r=r&&r.toString();var f=0,I;for(I in this.listeners)if(!r||I==r){for(var C=this.listeners[I],Y=0;Y<C.length;Y++)++f,OK8(C[Y]);delete this.listeners[I];this.typeCount_--}return f};
Ya.prototype.getListener=function(r,f,I,C){r=this.listeners[r.toString()];var Y=-1;r&&(Y=o1q(r,f,I,C));return Y>-1?r[Y]:null};
Ya.prototype.hasListener=function(r,f){var I=r!==void 0,C=I?r.toString():"",Y=f!==void 0;return _.X0.some(this.listeners,function(V){for(var S=0;S<V.length;++S)if(!(I&&V[S].type!=C||Y&&V[S].capture!=f))return!0;return!1})};
var o1q=function(r,f,I,C){for(var Y=0;Y<r.length;++Y){var V=r[Y];if(!V.removed&&V.listener==f&&V.capture==!!I&&V.handler==C)return Y}return-1};var A6q,ZK4,GCC,BnC,qRB,YY,lT,ra3,uEs,D3U,nd,fjX,kCV;A6q="closure_lm_"+(Math.random()*1E6|0);ZK4={};GCC=0;_.S$=function(r,f,I,C,Y){if(C&&C.once)return YY(r,f,I,C,Y);if(Array.isArray(f)){for(var V=0;V<f.length;V++)_.S$(r,f[V],I,C,Y);return null}I=kCV(I);return pd(r)?r.listen(f,I,_.lV(C)?!!C.capture:!!C,Y):BnC(r,f,I,!1,C,Y)};
BnC=function(r,f,I,C,Y,V){if(!f)throw Error("za");var S=_.lV(Y)?!!Y.capture:!!Y,h=nd(r);h||(r[A6q]=h=new Ya(r));I=h.add(f,I,C,S,V);if(I.proxy)return I;C=qRB();I.proxy=C;C.src=r;C.listener=I;if(r.addEventListener)_.ld4||(Y=S),Y===void 0&&(Y=!1),r.addEventListener(f.toString(),C,Y);else if(r.attachEvent)r.attachEvent(uEs(f.toString()),C);else if(r.addListener&&r.removeListener)r.addListener(C);else throw Error("Aa");GCC++;return I};
qRB=function(){var r=D3U,f=function(I){return r.call(f.src,f.listener,I)};
return f};
YY=function(r,f,I,C,Y){if(Array.isArray(f)){for(var V=0;V<f.length;V++)YY(r,f[V],I,C,Y);return null}I=kCV(I);return pd(r)?r.listenOnce(f,I,_.lV(C)?!!C.capture:!!C,Y):BnC(r,f,I,!0,C,Y)};
_.di=function(r,f,I,C,Y){if(Array.isArray(f))for(var V=0;V<f.length;V++)_.di(r,f[V],I,C,Y);else C=_.lV(C)?!!C.capture:!!C,I=kCV(I),pd(r)?r.unlisten(f,I,C,Y):r&&(r=nd(r))&&(f=r.getListener(f,I,C,Y))&&lT(f)};
lT=function(r){if(typeof r==="number"||!r||r.removed)return!1;var f=r.src;if(pd(f))return QwT(f.eventTargetListeners_,r);var I=r.type,C=r.proxy;f.removeEventListener?f.removeEventListener(I,C,r.capture):f.detachEvent?f.detachEvent(uEs(I),C):f.addListener&&f.removeListener&&f.removeListener(C);GCC--;(I=nd(f))?(QwT(I,r),I.typeCount_==0&&(I.src=null,f[A6q]=null)):OK8(r);return!0};
ra3=function(r,f,I,C,Y){I=kCV(I);C=!!C;return pd(r)?r.getListener(f,I,C,Y):r?(r=nd(r))?r.getListener(f,I,C,Y):null:null};
uEs=function(r){return r in ZK4?ZK4[r]:ZK4[r]="on"+r};
D3U=function(r,f){if(r.removed)r=!0;else{f=new _.bl(f,this);var I=r.listener,C=r.handler||r.src;r.callOnce&&lT(r);r=I.call(C,f)}return r};
nd=function(r){r=r[A6q];return r instanceof Ya?r:null};
fjX="__closure_events_fn_"+(Math.random()*1E9>>>0);kCV=function(r){if(typeof r==="function")return r;r[fjX]||(r[fjX]=function(f){return r.handleEvent(f)});
return r[fjX]};_.zh=function(){_.Mu.call(this);this.eventTargetListeners_=new Ya(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.rh(_.zh,_.Mu);_.zh.prototype[y64]=!0;_.l=_.zh.prototype;_.l.setParentEventTarget=function(r){this.parentEventTarget_=r};
_.l.addEventListener=function(r,f,I,C){_.S$(this,r,f,I,C)};
_.l.removeEventListener=function(r,f,I,C){_.di(this,r,f,I,C)};
_.l.dispatchEvent=function(r){var f,I=this.parentEventTarget_;if(I)for(f=[];I;I=I.parentEventTarget_)f.push(I);I=this.actualEventTarget_;var C=r.type||r;if(typeof r==="string")r=new _.wi(r,I);else if(r instanceof _.wi)r.target=r.target||I;else{var Y=r;r=new _.wi(C,I);_.X0.extend(r,Y)}Y=!0;var V;if(f)for(V=f.length-1;!r.propagationStopped_&&V>=0;V--){var S=r.currentTarget=f[V];Y=Ij_(S,C,!0,r)&&Y}r.propagationStopped_||(S=r.currentTarget=I,Y=Ij_(S,C,!0,r)&&Y,r.propagationStopped_||(Y=Ij_(S,C,!1,r)&&
Y));if(f)for(V=0;!r.propagationStopped_&&V<f.length;V++)S=r.currentTarget=f[V],Y=Ij_(S,C,!1,r)&&Y;return Y};
_.l.disposeInternal=function(){_.zh.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.l.listen=function(r,f,I,C){return this.eventTargetListeners_.add(String(r),f,!1,I,C)};
_.l.listenOnce=function(r,f,I,C){return this.eventTargetListeners_.add(String(r),f,!0,I,C)};
_.l.unlisten=function(r,f,I,C){return this.eventTargetListeners_.remove(String(r),f,I,C)};
_.l.removeAllListeners=function(r){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(r):0};
var Ij_=function(r,f,I,C){f=r.eventTargetListeners_.listeners[String(f)];if(!f)return!0;f=f.concat();for(var Y=!0,V=0;V<f.length;++V){var S=f[V];if(S&&!S.removed&&S.capture==I){var h=S.listener,w=S.handler||S.src;S.callOnce&&QwT(r.eventTargetListeners_,S);Y=h.call(w,C)!==!1&&Y}}return Y&&!C.defaultPrevented};
_.zh.prototype.getListener=function(r,f,I,C){return this.eventTargetListeners_.getListener(String(r),f,I,C)};
_.zh.prototype.hasListener=function(r,f){return this.eventTargetListeners_.hasListener(r!==void 0?String(r):void 0,f)};var MK=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(r){return r&&AsyncContext.Snapshot.wrap(r)}:function(r){return r};var C_U=function(r,f){this.create_=r;this.reset_=f;this.occupants_=0;this.JSC$7657_head_=null};
C_U.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var r=this.JSC$7657_head_;this.JSC$7657_head_=r.next;r.next=null}else r=this.create_();return r};
C_U.prototype.put=function(r){this.reset_(r);this.occupants_<100&&(this.occupants_++,r.next=this.JSC$7657_head_,this.JSC$7657_head_=r)};var Ygq=function(){this.workTail_=this.workHead_=null};
Ygq.prototype.add=function(r,f){var I=qDK.get();I.set(r,f);this.workTail_?this.workTail_.next=I:this.workHead_=I;this.workTail_=I};
Ygq.prototype.remove=function(){var r=null;this.workHead_&&(r=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),r.next=null);return r};
var qDK=new C_U(function(){return new ljX},function(r){return r.reset()}),ljX=function(){this.next=this.scope=this.fn=null};
ljX.prototype.set=function(r,f){this.fn=r;this.scope=f;this.next=null};
ljX.prototype.reset=function(){this.next=this.scope=this.fn=null};var VP3,uFq,BLu,EV4;uFq=!1;BLu=new Ygq;_.gi=function(r,f){VP3||EV4();uFq||(VP3(),uFq=!0);BLu.add(r,f)};
EV4=function(){var r=Promise.resolve(void 0);VP3=function(){r.then(Du$)}};var SgC=function(r){r.prototype.$goog_Thenable=!0},xa_=function(r){if(!r)return!1;
try{return!!r.$goog_Thenable}catch(f){return!1}};var hUT,wGU,bi3,nVB,da8,zUX,XG3,F_3,ca8,tP3,YYR;_.lz=function(r,f){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(r!=_.n9)try{var I=this;r.call(f,function(C){I.resolve_(2,C)},function(C){I.resolve_(3,C)})}catch(C){this.resolve_(3,C)}};
hUT=function(){this.next=this.context=this.JSC$7668_onRejected=this.JSC$7668_onFulfilled=this.child=null;this.always=!1};
hUT.prototype.reset=function(){this.context=this.JSC$7668_onRejected=this.JSC$7668_onFulfilled=this.child=null;this.always=!1};
wGU=new C_U(function(){return new hUT},function(r){r.reset()});
bi3=function(r,f,I){var C=wGU.get();C.JSC$7668_onFulfilled=r;C.JSC$7668_onRejected=f;C.context=I;return C};
_.fe=function(r){if(r instanceof _.lz)return r;var f=new _.lz(_.n9);f.resolve_(2,r);return f};
_.h3=function(r){return new _.lz(function(f,I){I(r)})};
nVB=function(r,f,I){pGU(r,f,I,null)||_.gi(_.S_(f,r))};
_.aP=function(r){return new _.lz(function(f,I){var C=r.length,Y=[];if(C)for(var V=function(n,d){C--;Y[n]=d;C==0&&f(Y)},S=function(n){I(n)},h,w=0;w<r.length;w++)h=r[w],nVB(h,_.S_(V,w),S);
else f(Y)})};
da8=function(r){return new _.lz(function(f){var I=r.length,C=[];if(I)for(var Y=function(h,w,n){I--;C[h]=w?{fulfilled:!0,value:n}:{fulfilled:!1,reason:n};I==0&&f(C)},V,S=0;S<r.length;S++)V=r[S],nVB(V,_.S_(Y,S,!0),_.S_(Y,S,!1));
else f(C)})};
zUX=function(r){return new _.lz(function(f,I){var C=r.length,Y=[];if(C)for(var V=function(n){f(n)},S=function(n,d){C--;
Y[n]=d;C==0&&I(Y)},h,w=0;w<r.length;w++)h=r[w],nVB(h,V,_.S_(S,w));
else f(void 0)})};
_.eu=function(){var r,f,I=new _.lz(function(C,Y){r=C;f=Y});
return new MPs(I,r,f)};
_.lz.prototype.then=function(r,f,I){return gVX(this,MK(typeof r==="function"?r:null),MK(typeof f==="function"?f:null),I)};
SgC(_.lz);XG3=function(r,f,I,C){ajg(r,bi3(f||_.n9,I||null,C))};
_.XZ=function(r,f){f=MK(f);f=bi3(f,f);f.always=!0;ajg(r,f);return r};
_.lz.prototype.finally=function(r){var f=this;r=MK(r);return new Promise(function(I,C){XG3(f,function(Y){r();I(Y)},function(Y){r();
C(Y)})})};
_.lz.prototype.thenCatch=function(r,f){return gVX(this,null,MK(r),f)};
_.lz.prototype.catch=_.lz.prototype.thenCatch;_.lz.prototype.cancel=function(r){if(this.state_==0){var f=new _.oV(r);_.gi(function(){NOC(this,f)},this)}};
var NOC=function(r,f){if(r.state_==0)if(r.parent_){var I=r.parent_;if(I.callbackEntries_){for(var C=0,Y=null,V=null,S=I.callbackEntries_;S&&(S.always||(C++,S.child==r&&(Y=S),!(Y&&C>1)));S=S.next)Y||(V=S);Y&&(I.state_==0&&C==1?NOC(I,f):(V?(C=V,C.next==I.callbackEntriesTail_&&(I.callbackEntriesTail_=C),C.next=C.next.next):$aB(I),F_3(I,Y,3,f)))}r.parent_=null}else r.resolve_(3,f)},ajg=function(r,f){r.callbackEntries_||r.state_!=2&&r.state_!=3||P__(r);
r.callbackEntriesTail_?r.callbackEntriesTail_.next=f:r.callbackEntries_=f;r.callbackEntriesTail_=f},gVX=function(r,f,I,C){var Y=bi3(null,null,null);
Y.child=new _.lz(function(V,S){Y.JSC$7668_onFulfilled=f?function(h){try{var w=f.call(C,h);V(w)}catch(n){S(n)}}:V;
Y.JSC$7668_onRejected=I?function(h){try{var w=I.call(C,h);w===void 0&&h instanceof _.oV?S(h):V(w)}catch(n){S(n)}}:S});
Y.child.parent_=r;ajg(r,Y);return Y.child};
_.lz.prototype.unblockAndFulfill_=function(r){this.state_=0;this.resolve_(2,r)};
_.lz.prototype.unblockAndReject_=function(r){this.state_=0;this.resolve_(3,r)};
_.lz.prototype.resolve_=function(r,f){this.state_==0&&(this===f&&(r=3,f=new TypeError("Ba")),this.state_=1,pGU(f,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=f,this.state_=r,this.parent_=null,P__(this),r!=3||f instanceof _.oV||tP3(this,f)))};
var pGU=function(r,f,I,C){if(r instanceof _.lz)return XG3(r,f,I,C),!0;if(xa_(r))return r.then(f,I,C),!0;if(_.lV(r))try{var Y=r.then;if(typeof Y==="function")return TOs(r,Y,f,I,C),!0}catch(V){return I.call(C,V),!0}return!1},TOs=function(r,f,I,C,Y){var V=!1,S=function(w){V||(V=!0,I.call(Y,w))},h=function(w){V||(V=!0,C.call(Y,w))};
try{f.call(r,S,h)}catch(w){h(w)}},P__=function(r){r.executing_||(r.executing_=!0,_.gi(r.executeCallbacks_,r))},$aB=function(r){var f=null;
r.callbackEntries_&&(f=r.callbackEntries_,r.callbackEntries_=f.next,f.next=null);r.callbackEntries_||(r.callbackEntriesTail_=null);return f};
_.lz.prototype.executeCallbacks_=function(){for(var r;r=$aB(this);)F_3(this,r,this.state_,this.result_);this.executing_=!1};
F_3=function(r,f,I,C){if(I==3&&f.JSC$7668_onRejected&&!f.always)for(;r&&r.hadUnhandledRejection_;r=r.parent_)r.hadUnhandledRejection_=!1;if(f.child)f.child.parent_=null,ca8(f,I,C);else try{f.always?f.JSC$7668_onFulfilled.call(f.context):ca8(f,I,C)}catch(Y){YYR.call(null,Y)}wGU.put(f)};
ca8=function(r,f,I){f==2?r.JSC$7668_onFulfilled.call(r.context,I):r.JSC$7668_onRejected&&r.JSC$7668_onRejected.call(r.context,I)};
tP3=function(r,f){r.hadUnhandledRejection_=!0;_.gi(function(){r.hadUnhandledRejection_&&YYR.call(null,f)})};
YYR=VE;_.oV=function(r){_.fw.call(this,r)};
_.rh(_.oV,_.fw);_.oV.prototype.name="cancel";var MPs=function(r,f,I){this.promise=r;this.resolve=f;this.reject=I};var NK;_.kf=function(r,f){_.zh.call(this);this.JSC$7680_interval_=r||1;this.timerObject_=f||_.Yq;this.boundTick_=(0,_.gL)(this.tick_,this);this.last_=_.Dc()};
_.rh(_.kf,_.zh);_.l=_.kf.prototype;_.l.enabled=!1;_.l.JSC$7682_timer_=null;_.l.setInterval=function(r){this.JSC$7680_interval_=r;this.JSC$7682_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7682_timer_&&this.stop()};
_.l.tick_=function(){if(this.enabled){var r=_.Dc()-this.last_;r>0&&r<this.JSC$7680_interval_*.8?this.JSC$7682_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7680_interval_-r):(this.JSC$7682_timer_&&(this.timerObject_.clearTimeout(this.JSC$7682_timer_),this.JSC$7682_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.l.start=function(){this.enabled=!0;this.JSC$7682_timer_||(this.JSC$7682_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7680_interval_),this.last_=_.Dc())};
_.l.stop=function(){this.enabled=!1;this.JSC$7682_timer_&&(this.timerObject_.clearTimeout(this.JSC$7682_timer_),this.JSC$7682_timer_=null)};
_.l.disposeInternal=function(){_.kf.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
NK=function(r,f,I){if(typeof r==="function")I&&(r=(0,_.gL)(r,I));else if(r&&typeof r.handleEvent=="function")r=(0,_.gL)(r.handleEvent,r);else throw Error("Ca");return Number(f)>2147483647?-1:_.Yq.setTimeout(r,f||0)};
_.W_D=function(r){var f=null;return(new _.lz(function(I,C){f=NK(function(){I(void 0)},r);
f==-1&&C(Error("Da"))})).thenCatch(function(I){_.Yq.clearTimeout(f);
throw I;})};var ED=function(r){_.Mu.call(this);this.streamzLogger=r;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7686_flushTimer=new _.kf(this.flushInterval);this.JSC$7686_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.V$(this,this.JSC$7686_flushTimer)};
_.t(ED,_.Mu);ED.prototype.sendIsolatedPayload=function(r){this.shouldSendIsolatedPayload=r;this.invocationLimit=1};
var L_T=function(r){r.JSC$7686_flushTimer.enabled||r.JSC$7686_flushTimer.start();r.invocationCount++;r.invocationCount>=r.invocationLimit&&r.snapshotAndFlush()};
ED.prototype.snapshotAndFlush=function(){var r=this.metricMap.values();r=[].concat(_.Na(r)).filter(function(f){return f.cellMap.size});
r.length&&this.streamzLogger.flush(r,this.shouldSendIsolatedPayload);ma3(r);this.invocationCount=0;this.JSC$7686_flushTimer.enabled&&this.JSC$7686_flushTimer.stop()};
ED.prototype.addNewCounter=function(r){var f=_.XE.apply(1,arguments);this.metricMap.has(r)||this.metricMap.set(r,new v13(r,f))};
ED.prototype.addNewEventMetric=function(r){var f=_.XE.apply(1,arguments);this.metricMap.has(r)||this.metricMap.set(r,new KX4(r,f))};
var eU3=function(r,f){return r.disabledMetrics.has(f)?void 0:r.metricMap.get(f)};
ED.prototype.JSC$7686_incrementCounter=function(r){this.JSC$7686_incrementCounterBy(r,1,_.XE.apply(1,arguments))};
ED.prototype.JSC$7686_incrementCounterBy=function(r,f){var I=_.XE.apply(2,arguments),C=eU3(this,r);C&&C instanceof v13&&(C.JSC$7625_incrementCounterBy(f,I),L_T(this))};
ED.prototype.record=function(r,f){var I=_.XE.apply(2,arguments),C=eU3(this,r);C&&C instanceof KX4&&(C.record(f,I),L_T(this))};
var ma3=function(r){for(var f=0;f<r.length;f++)r[f].clear()};_.$k=function(r,f,I){I=I===void 0?{}:I;f=Error.call(this,f);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.code=r;this.metadata=I;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.t(_.$k,Error);_.$k.prototype.toString=function(){var r="RpcError("+(f3P(this.code)||String(this.code))+")";this.message&&(r+=": "+this.message);return r};_.Ja_=_.Yq.JSON.parse;_.FZ=_.Yq.JSON.stringify;_.ao=_.Yq.JSON.parse;_.jkX=function(r){switch(r){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 His=function(r){switch(r){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var iiV,RU_=function(){};
_.rh(RU_,_.I3R);RU_.prototype.createInstance=function(){return new XMLHttpRequest};
iiV=new RU_;_.P7=function(r){_.zh.call(this);this.headers=new Map;this.JSC$7695_xmlHttpFactory_=r||null;this.JSC$7695_active_=!1;this.JSC$7695_xhr_=null;this.JSC$7695_lastUri_="";this.JSC$7695_lastErrorCode_=0;this.JSC$7695_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7695_timeoutId_=null;this.responseType_="";this.JSC$7695_withCredentials_=!1};
_.rh(_.P7,_.zh);var vVC=/^https?$/i,K_C=["POST","PUT"],yaq=[],p7q=function(r,f,I,C,Y,V,S){var h=new _.P7;yaq.push(h);f&&h.listen("complete",f);h.listenOnce("ready",h.cleanupSend_);V&&(h.timeoutInterval_=Math.max(0,V));S&&(h.JSC$7695_withCredentials_=S);h.send(r,I,C,Y)};
_.P7.prototype.cleanupSend_=function(){this.dispose();_.uU(yaq,this)};
_.P7.prototype.send=function(r,f,I,C){if(this.JSC$7695_xhr_)throw Error("Ea`"+this.JSC$7695_lastUri_+"`"+r);f=f?f.toUpperCase():"GET";this.JSC$7695_lastUri_=r;this.JSC$7695_lastError_="";this.JSC$7695_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7695_active_=!0;this.JSC$7695_xhr_=this.createXhr();this.JSC$7695_xhr_.onreadystatechange=MK((0,_.gL)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7695_xhr_.open(f,String(r),!0),this.inOpen_=!1}catch(S){UaX(this,S);return}r=I||"";I=new Map(this.headers);
if(C)if(Object.getPrototypeOf(C)===Object.prototype)for(var Y in C)I.set(Y,C[Y]);else if(typeof C.keys==="function"&&typeof C.get==="function"){Y=_.E(C.keys());for(var V=Y.next();!V.done;V=Y.next())V=V.value,I.set(V,C.get(V))}else throw Error("Fa`"+String(C));C=Array.from(I.keys()).find(function(S){return"content-type"==S.toLowerCase()});
Y=_.Yq.FormData&&r instanceof _.Yq.FormData;!_.Am(K_C,f)||C||Y||I.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");f=_.E(I);for(C=f.next();!C.done;C=f.next())I=_.E(C.value),C=I.next().value,I=I.next().value,this.JSC$7695_xhr_.setRequestHeader(C,I);this.responseType_&&(this.JSC$7695_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7695_xhr_&&this.JSC$7695_xhr_.withCredentials!==this.JSC$7695_withCredentials_&&(this.JSC$7695_xhr_.withCredentials=this.JSC$7695_withCredentials_);
try{this.JSC$7695_timeoutId_&&(clearTimeout(this.JSC$7695_timeoutId_),this.JSC$7695_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7695_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7695_xhr_.send(r),this.inSend_=!1}catch(S){UaX(this,S)}};
_.P7.prototype.createXhr=function(){return this.JSC$7695_xmlHttpFactory_?this.JSC$7695_xmlHttpFactory_.createInstance():iiV.createInstance()};
_.P7.prototype.timeout_=function(){typeof M7w!="undefined"&&this.JSC$7695_xhr_&&(this.JSC$7695_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7695_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var UaX=function(r,f){r.JSC$7695_active_=!1;r.JSC$7695_xhr_&&(r.inAbort_=!0,r.JSC$7695_xhr_.abort(),r.inAbort_=!1);r.JSC$7695_lastError_=f;r.JSC$7695_lastErrorCode_=5;sks(r);OiV(r)},sks=function(r){r.errorDispatched_||(r.errorDispatched_=!0,r.dispatchEvent("complete"),r.dispatchEvent("error"))};
_.P7.prototype.abort=function(r){this.JSC$7695_xhr_&&this.JSC$7695_active_&&(this.JSC$7695_active_=!1,this.inAbort_=!0,this.JSC$7695_xhr_.abort(),this.inAbort_=!1,this.JSC$7695_lastErrorCode_=r||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),OiV(this))};
_.P7.prototype.disposeInternal=function(){this.JSC$7695_xhr_&&(this.JSC$7695_active_&&(this.JSC$7695_active_=!1,this.inAbort_=!0,this.JSC$7695_xhr_.abort(),this.inAbort_=!1),OiV(this,!0));_.P7.superClass_.disposeInternal.call(this)};
_.P7.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)oVC(this);else this.onReadyStateChangeEntryPoint_()};
_.P7.prototype.onReadyStateChangeEntryPoint_=function(){oVC(this)};
var oVC=function(r){if(r.JSC$7695_active_&&typeof M7w!="undefined")if(r.inSend_&&_.tA(r)==4)setTimeout(r.onReadyStateChange_.bind(r),0);else if(r.dispatchEvent("readystatechange"),r.isComplete()){r.JSC$7695_active_=!1;try{if(r.isSuccess())r.dispatchEvent("complete"),r.dispatchEvent("success");else{r.JSC$7695_lastErrorCode_=6;try{var f=_.tA(r)>2?r.JSC$7695_xhr_.statusText:""}catch(I){f=""}r.JSC$7695_lastError_=f+" ["+r.getStatus()+"]";sks(r)}}finally{OiV(r)}}},OiV=function(r,f){if(r.JSC$7695_xhr_){r.JSC$7695_timeoutId_&&
(clearTimeout(r.JSC$7695_timeoutId_),r.JSC$7695_timeoutId_=null);
var I=r.JSC$7695_xhr_;r.JSC$7695_xhr_=null;f||r.dispatchEvent("ready");try{I.onreadystatechange=null}catch(C){}}};
_.P7.prototype.isActive=function(){return!!this.JSC$7695_xhr_};
_.P7.prototype.isComplete=function(){return _.tA(this)==4};
_.P7.prototype.isSuccess=function(){var r=this.getStatus(),f;if(!(f=His(r))){if(r=r===0)r=u3V(String(this.JSC$7695_lastUri_)),r=!vVC.test(r);f=r}return f};
_.tA=function(r){return r.JSC$7695_xhr_?r.JSC$7695_xhr_.readyState:0};
_.l=_.P7.prototype;_.l.getStatus=function(){try{return _.tA(this)>2?this.JSC$7695_xhr_.status:-1}catch(r){return-1}};
_.l.getResponseText=function(){try{return this.JSC$7695_xhr_?this.JSC$7695_xhr_.responseText:""}catch(r){return""}};
_.l.getResponse=function(){try{if(!this.JSC$7695_xhr_)return null;if("response"in this.JSC$7695_xhr_)return this.JSC$7695_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7695_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7695_xhr_)return this.JSC$7695_xhr_.mozResponseArrayBuffer}return null}catch(r){return null}};
_.l.getAllResponseHeaders=function(){return this.JSC$7695_xhr_&&_.tA(this)>=2?this.JSC$7695_xhr_.getAllResponseHeaders()||"":""};
_.l.getLastError=function(){return typeof this.JSC$7695_lastError_==="string"?this.JSC$7695_lastError_:String(this.JSC$7695_lastError_)};var dkw=function(){};
dkw.prototype.send=function(r,f,I){f=f===void 0?function(){}:f;
I=I===void 0?function(){}:I;
p7q(r.url,function(C){C=C.target;C.isSuccess()?f(C.getResponseText()):I(C.getStatus())},r.requestType,r.body,r.requestHeaders,r.timeoutMillis,r.withCredentials)};
dkw.prototype.getTransmissionType=function(){return 1};var Qk4=function(r,f){this.logger=r;this.event=f;this.startTime=S4()};
Qk4.prototype.done=function(){this.logger.cU(this.event,S4()-this.startTime)};
var Th=function(){ri.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.t(Th,ri);var c7=function(r,f,I){var C=S4();f=f();r.cU(I,S4()-C);return f},NIE=function(){Th.apply(this,arguments)};
_.t(NIE,Th);_.l=NIE.prototype;_.l.qWu=function(){};
_.l.wI=function(){};
_.l.cU=function(){};
_.l.logError=function(){};
_.l.n1=function(){};
_.l.mor=function(){};
_.l.xoK=function(){};
_.l.qz1=function(){};
_.l.bXc=function(){};
var AaC=function(r){Th.call(this);var f=this;this.logger=r;this.TEST_ONLY={g1h:function(){return f.logger},
getExperimentIds:function(){return f.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void f.logger.dispose()})};
_.t(AaC,Th);_.l=AaC.prototype;_.l.update=function(r){this.logger.dispose();this.logger=r};
_.l.wI=function(r){this.logger.wI(r)};
_.l.cU=function(r,f){this.logger.cU(r,f)};
_.l.logError=function(r){this.logger.logError(r)};
_.l.n1=function(){this.logger.n1()};
_.l.mor=function(r){this.logger.mor(r)};
_.l.xoK=function(r){this.logger.xoK(r)};
_.l.qz1=function(r){this.logger.qz1(r)};
_.l.bXc=function(r){this.logger.bXc(r)};
_.l.qWu=function(r){this.logger.qWu(r)};
var ZiV=function(r,f){_.Mu.call(this);var I=this;this.callback=r;this.awi=f;this.gJl=-f;this.addOnDisposeCallback(function(){return void clearTimeout(I.timer)})};
_.t(ZiV,_.Mu);var Gs3=function(r){if(r.timer===void 0){var f=Math.max(0,r.gJl+r.awi-S4());r.timer=setTimeout(function(){try{r.callback()}finally{r.gJl=S4(),r.timer=void 0}},f)}},ksT=function(r,f){Th.call(this);
this.metrics=r;this.zl=f};
_.t(ksT,Th);_.l=ksT.prototype;_.l.qWu=function(r){this.metrics.aBL.record(r,this.zl)};
_.l.wI=function(r){this.metrics.eventCount.increment(r,this.zl)};
_.l.cU=function(r,f){this.metrics.bwu.record(f,r,this.zl)};
_.l.logError=function(r){this.metrics.errorCount.increment(r,this.zl)};
_.l.mor=function(r){this.metrics.wcd.increment(r,this.zl)};
_.l.xoK=function(r){this.metrics.nCr.increment(r,this.zl)};
_.l.qz1=function(r){this.metrics.mLb.increment(r,this.zl)};
var yRd=function(r,f){f=f===void 0?[]:f;var I={zl:r.zl||"_",pxu:r.pxu||[],rKS:r.rKS|0,destinationUrl:r.destinationUrl,hsA:r.hsA||function(){},
p0:r.p0||function(V,S){return X9K(V,S,I.hsA,I.destinationUrl)}},C=I.p0("49",I.pxu.concat(f));
ksT.call(this,w9E(C),I.zl);var Y=this;this.TEST_ONLY={getExperimentIds:function(){return Y.options.pxu.concat(Y.iUj).sort(function(V,S){return V-S})}};
this.options=I;this.service=C;this.kxc=!r.p0;this.flushDebouncer=new ZiV(function(){return void Y.service.snapshotAndFlush()},I.rKS);
this.addOnDisposeCallback(function(){Y.flushDebouncer.dispose();Y.kxc&&Y.service.dispose()});
(this.iUj=f.slice()).sort(_.bV)};
_.t(yRd,ksT);yRd.prototype.bXc=function(r){var f=this;r=r.slice();r.sort(_.bV);_.n8(r,this.iUj)||(this.flushDebouncer.dispose(),this.kxc&&this.service.dispose(),this.service=this.options.p0("49",this.options.pxu.concat(r)),this.flushDebouncer=new ZiV(function(){return void f.service.snapshotAndFlush()},this.options.rKS),this.metrics=w9E(this.service),this.iUj=r)};
yRd.prototype.n1=function(){Gs3(this.flushDebouncer)};var Q$q=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Q$q,_.Kj);_.AOl=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(_.AOl,_.Kj);var GN=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r,0,GN.messageId)};
_.t(GN,_.Kj);var BOB=_.I$P(GN);GN.messageId="bfkj";var K9R=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(K9R,_.Kj);var qgs=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(qgs,_.Kj);var uJB=_.fK(qgs);_.uX=function(){var r=this;this.promise=new Promise(function(f,I){r.resolve=f;r.reject=I})};_.W7=function(r){_.Mu.call(this);var f=this;this.zWC=Math.floor(Math.random()*200);this.koS=new qgs;if("challenge"in r&&BOB(r.challenge)){var I=_.Tb(r.challenge,4,void 0,A_);var C=_.Tb(r.challenge,5,void 0,A_);_.Tb(r.challenge,7,void 0,A_)&&(this.koS=uJB(_.Tb(r.challenge,7,void 0,A_)))}else I=r.program,C=r.globalName;this.addOnDisposeCallback(function(){var P,W,m;return _.x(function(v){if(v.nextAddress==1)return _.b(v,f.vve,2);P=v.yieldResult;W=P.jRw;(m=W)==null||m();_.wO(v)})});
this.logger=UkR(r.l0||{},this.koS,r.vUh);_.V$(this,this.logger);var Y=new _.uX;this.vve=Y.promise;this.logger.wI("t");var V=this.logger.share(),S=new Qk4(V,"t"),h=function(P,W,m,v){if(!f.logger.isDisposed()){var O="k";W?O="h":m&&(O="u");O!=="k"?v!==0&&(f.logger.wI(O),f.logger.cU(O,P)):f.zWC<=0?(f.logger.wI(O),f.logger.cU(O,P),f.zWC=Math.floor(Math.random()*200)):f.zWC--}},w=function(P,W,m,v){Promise.resolve().then(function(){S.done();
V.n1();V.dispose();Y.resolve({ggc:P,jRw:W,u6i:m,mXm:v})})};
if(!_.Yq[C])throw this.logger.logError(25),Error("Ga");if(!_.Yq[C].a)throw this.logger.logError(26),Error("Ha");try{var n=_.Yq[C].a;C=[];for(var d=[],z=yyU(this.koS),g=0;g<z.length;g++)C.push(z[g]),d.push(1);var X=Uu$(this.koS);for(z=0;z<X.length;z++)C.push(X[z]),d.push(2);this.r8M=_.E(n(I,w,!0,r.fzu,h,[C,d],_.Tb(this.koS,5))).next().value;this.oBS=Y.promise.then(function(){})}catch(P){throw this.logger.logError(28),P;
}};
_.t(_.W7,_.Mu);_.W7.prototype.snapshot=function(r){if(this.isDisposed())throw Error("Ia");this.logger.wI("n");var f=this.logger.share();return this.vve.then(function(I){var C=I.ggc;return new Promise(function(Y){var V=new Qk4(f,"n");C(function(S){V.done();f.qWu(S.length);f.n1();f.dispose();Y(S)},[r.mF,
r.sxS,r.hr9,r.lxA])})})};
_.DaB=function(r,f){if(r.isDisposed())throw Error("Ia");r.logger.wI("n");var I=c7(r.logger,function(){return r.r8M([f.mF,f.sxS,f.hr9,f.lxA])},"n");
r.logger.qWu(I.length);r.logger.n1();return I};
_.W7.prototype.p9f=function(r){this.vve.then(function(f){var I;(I=f.u6i)==null||I(r)})};
_.W7.prototype.dCr=function(r,f){return this.vve.then(function(I){var C;return(C=I.mXm)==null?void 0:C(r,f,!1)})};
_.W7.prototype.gUS=function(){return this.logger.share()};var roB=function(){this.vmO={};this.raE=null},f8D=function(){roB.instance||(roB.instance=new roB);
return roB.instance},C3B=function(r,f){return I8q(r,_.kB(f,Q$q,1,A_),_.kB(f,_.AOl,2,A_),_.Tb(f,3,void 0,A_))},I8q=function(r,f,I,C){if(!f&&!I)return Promise.resolve();
if(!C)return Qzd(f,I);var Y;(Y=r.vmO)[C]||(Y[C]=new Promise(function(V,S){Qzd(f,I).then(function(){r.raE=C;V()},function(h){delete r.vmO[C];
S(h)})}));
return r.vmO[C]};var YZU=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(YZU,_.Kj);var l88=function(r,f){return _.kU(r,1,f)},Vj8=function(r,f){return _.kU(r,2,f)};var Ld=function(r){_.Mu.call(this);var f=this;this.options=r;this.kB1=new _.uX;this.oBS=this.kB1.promise;this.q8r=new _.uX;this.e2A=1;this.bub=new _.uX;this.vOw=[];this.tg1=r.tg1||function(){};
this.logger=new AaC(UkR(r.l0||{}));EXX(this,r.oo,r.jqW,r.u8M,r.xVp,Object.assign({},SZs,r.i61||{}));this.addOnDisposeCallback(function(){return void xS3(f)})};
_.t(Ld,_.Mu);Ld.prototype.snapshot=function(r){var f=this;return _.x(function(I){switch(I.nextAddress){case 1:if(f.isDisposed())throw Error("Ia");if(f.uP||f.xxA){I.jumpTo(2);break}return _.b(I,f.q8r.promise,2);case 2:if(!f.uP){I.jumpTo(4);break}return _.b(I,f.uP.snapshot(r),5);case 5:return I.return(I.yieldResult);case 4:throw f.xxA;}})};
var h4q=function(r){var f;return _.x(function(I){if(r.isDisposed())throw Error("Ia");(f=r.v8)!=null&&(f.endTimeMs=0,f.resolver(1));return _.b(I,r.bub.promise,0)})},xS3=function(r){r.xxA=Error("Ka");
r.q8r.resolve();sZU(r.kB1.promise);r.kB1.reject(Error("Ka"));r.logger.dispose();Promise.all(r.vOw).then(function(){var I;return _.x(function(C){(I=r.uP)==null||I.dispose();r.uP=void 0;_.wO(C)})});
r.vOw=[];var f;(f=r.v8)!=null&&(f.endTimeMs=0,f.resolver(1));sZU(r.bub.promise);r.bub.reject(Error("Ka"))};
Ld.prototype.p9f=function(r){var f,I;(f=this.uP)==null||(I=f.p9f)==null||I.call(f,r)};
Ld.prototype.dCr=function(r,f){var I,C,Y;return(Y=(I=this.uP)==null?void 0:(C=I.dCr)==null?void 0:C.call(I,r,f))!=null?Y:Promise.resolve()};
var wk8=function(r,f){var I=r.tg1;r.tg1=function(){I();f()}},boX=function(r,f){r.isDisposed()||(r.uP=f,r.logger.update(f.gUS()),r.q8r.resolve(),r.kB1.resolve(void 0),r.tg1())};
Ld.prototype.handleError=function(r){if(!this.isDisposed()){this.xxA=r;this.q8r.resolve();var f,I;(I=(f=this.options).q5c)==null||I.call(f,r)}};
var pkX=function(r,f){f&&(Promise.all(r.vOw).then(function(){return void f.dispose()}),r.vOw=[])},mT=function(r,f){r.e2A=f;
var I,C;(C=(I=r.options).qds)==null||C.call(I,f)},nXD=function(r){r.isDisposed()||(r.bub.resolve(),r.bub=new _.uX)},EXX=function(r,f,I,C,Y,V){C=C===void 0?f8D():C;
Y=Y===void 0?Promise.resolve(void 0):Y;var S,h,w,n,d,z,g,X,P,W,m,v;_.x(function(O){switch(O.nextAddress){case 1:return _.b(O,0,3);case 3:h=null;if(!S){O.jumpTo(6);break}mT(r,7);_.l_(O,7);return _.b(O,nX(S.snapshot({}),V.aEr,function(){return Promise.resolve("E:CTO")}),9);
case 9:h=O.yieldResult;_.Hd(O,6);break;case 7:_.ha(O),h="E:UCE";case 6:w=void 0,n=S?V.d8k:V.vhm,d=new CX(n,V.adc,V.zGW,V.i7u),z=1;case 10:if(!(z<=V.maxAttempts)){O.jumpTo(12);break}if(z===1){O.jumpTo(13);break}mT(r,0);r.v8=new dS8(d.getValue(),V.caU,V.v5q);return _.b(O,r.v8.promise,14);case 14:g=O.yieldResult,r.v8=void 0,g===1?(z=1,d.reset()):TnT(d);case 13:_.l_(O,15);X=void 0;if(I){X=I;O.jumpTo(17);break}mT(r,5);P=C.raE;return _.b(O,nX(z4s(f,P,h),V.zsc,function(){return Promise.reject(Error("La"))}),
18);
case 18:X=O.yieldResult;case 17:return mT(r,3),_.b(O,nX(C3B(C,X),V.ixA,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return mT(r,8),_.b(O,Y,20);case 20:return W=new _.W7({challenge:X,l0:r.options.l0,fzu:r.options.fzu}),_.b(O,nX(W.oBS,V.lhr,function(){return Promise.reject(Error("Na"))}),21);
case 21:w=W;O.jumpTo(12);break;case 15:m=_.ha(O),r.handleError(m),nXD(r);case 11:z++;O.jumpTo(10);break;case 12:if(r.isDisposed()){O.jumpTo(5);break}w&&(I=void 0,pkX(r,S),S=w,boX(r,w),nXD(r));mT(r,2);r.v8=new dS8(V.jJ6,V.caU,V.v5q);return _.b(O,r.v8.promise,22);case 22:r.v8=void 0;if(r.isDisposed()){O.jumpTo(5);break}O.jumpTo(3);break;case 5:(v=S)==null||v.dispose(),_.wO(O)}})};
Ld.prototype.gUS=function(){return this.logger.share()};
var SZs={jJ6:432E5,caU:3E5,v5q:10,aEr:1E4,zsc:3E4,ixA:3E4,lhr:6E4,vhm:1E3,d8k:6E4,adc:6E5,zGW:.25,i7u:2,maxAttempts:10},dS8=function(r,f,I){var C=this;this.endTimeMs=Date.now()+r;this.promise=new Promise(function(V){C.resolver=V});
var Y=function(){var V=C.endTimeMs-Date.now();V<=I?C.resolver(0):setTimeout(Y,Math.min(V,f))};
Y()};var Mj4,GAK=(Mj4=Math.imul)!=null?Mj4:function(r,f){return r*f|0},dL=[196,
200,224,18],eX=function(r,f,I){I=I===void 0?[]:I;this.maxItems=r;this.uw=f===void 0?0:f;this.mE=I},gX3=function(r){var f=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!f)return new eX(r);var I=f.split(",");if(I.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new eX(r);f=I.slice(1);f.length===1&&f[0]===""&&(f=[]);I=Number(I[0]);return isNaN(I)||I<0||I>f.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new eX(r)):new eX(r,I,f)};
eX.prototype.serialize=function(){return String(this.uw)+","+this.mE.join()};
eX.prototype.insert=function(r,f){var I=void 0;if(this.mE[this.uw]!==r){var C=this.mE.indexOf(r);C!==-1?(this.mE.splice(C,1),C<this.uw&&this.uw--,this.mE.splice(this.uw,0,r)):(I=this.mE[this.uw],this.mE[this.uw]=r)}this.uw=(this.uw+1)%this.maxItems;r=ARl("iU5q-!O9@$",this.serialize());I&&r&&f(I);return r};
var a8C=function(r,f){this.logger=f;try{var I=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(C){I=!1}I&&(this.index=gX3(r))},Xk4=function(r,f,I,C,Y){var V=r.index?c7(r.logger,function(){return uRR(r.index,BIE(f),I,C,Y)},"W"):"u";
r.logger.qz1(V)},N5D=function(r,f,I){var C=_.E(r.index?c7(r.logger,function(){return Dku(BIE(f),I)},"R"):["u"]),Y=C.next().value;
C=C.next().value;r.logger.xoK(Y);return C};var $SD={toString:function(r){var f=[],I=0;r-=-2147483648;f[I++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(r%52);for(r=Math.floor(r/52);r>0;)f[I++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(r%62),r=Math.floor(r/62);return f.join("")}};var tj3=function(r){r=FIU(r);for(var f=2654435769,I=2654435769,C=314159265,Y=r.length,V=Y,S=0,h=function(){f-=I;f-=C;f^=C>>>13;I-=C;I-=f;I^=f<<8;C-=f;C-=I;C^=I>>>13;f-=I;f-=C;f^=C>>>12;I-=C;I-=f;I^=f<<16;C-=f;C-=I;C^=I>>>5;f-=I;f-=C;f^=C>>>3;I-=C;I-=f;I^=f<<10;C-=f;C-=I;C^=I>>>15};V>=12;V-=12,S+=12)f+=P3U(r,S),I+=P3U(r,S+4),C+=P3U(r,S+8),h();
C+=Y;switch(V){case 11:C+=r[S+10]<<24;case 10:C+=r[S+9]<<16;case 9:C+=r[S+8]<<8;case 8:I+=r[S+7]<<24;case 7:I+=r[S+6]<<16;case 6:I+=r[S+5]<<8;case 5:I+=r[S+4];case 4:f+=r[S+3]<<24;case 3:f+=r[S+2]<<16;case 2:f+=r[S+1]<<8;case 1:f+=r[S]}h();return $SD.toString(C)},FIU=function(r){for(var f=[],I=0;I<r.length;I++)f.push(r.charCodeAt(I));
return f},P3U=function(r,f){return r[f]+(r[f+1]<<8)+(r[f+2]<<16)+(r[f+3]<<24)};var T5q,JA=function(r){_.Mu.call(this);this.logger=r;this.zOT=new _.uX;this[T5q]=this.dispose};
_.t(JA,_.Mu);var co4=function(r,f){var I=setTimeout(function(){r.zOT.resolve()},f);
r.addOnDisposeCallback(function(){return void clearTimeout(I)})};
JA.prototype.cI=function(r,f){var I=this.eB(r);f==null||f(I);return c7(this.logger,function(){return _.Dp(I,2)},this.gPf)};
var WIg=function(r,f,I,C){return c7(r.logger,function(){return I?r.cI(f,C):r.eB(f,C)},r.jT)};
T5q=Symbol.dispose;var LID=function(r,f,I,C){JA.call(this,r);this.kdy=f;this.ekU=I;this.jT="m";this.gPf="x";this.p4k=0;co4(this,C)};
_.t(LID,JA);LID.prototype.eB=function(r,f){var I=this;this.logger.wI(this.jT);++this.p4k>=this.ekU&&this.zOT.resolve();var C=r();r=c7(this.logger,function(){return I.kdy(C)},"C");
if(r===void 0)throw new uw(17,"YNJ:Undefined");if(!(r instanceof Uint8Array))throw new uw(18,"ODM:Invalid");f==null||f(r);return r};
var mST=function(r,f,I){JA.call(this,r);this.dvq=f;this.jT="f";this.gPf="z";co4(this,I)};
_.t(mST,JA);mST.prototype.eB=function(){return this.dvq};
var e4s=function(r,f,I){JA.call(this,r);this.sf9=f;this.jT="w";this.gPf="z";co4(this,I)};
_.t(e4s,JA);e4s.prototype.eB=function(){var r=this;return c7(this.logger,function(){return _.MT(r.sf9)},"d")};
e4s.prototype.cI=function(){return this.sf9};
var JoU=function(r,f){JA.call(this,r);this.error=f;this.jT="e";this.gPf="y"};
_.t(JoU,JA);var jc_=function(r,f){var I=(f(r.error.message)+":"+f(r.error.stack)).substring(0,2048);f=I.length+1;I=rnP(I);var C=new Uint8Array(4+I.length);C.set([42,f&127|128,f>>7,r.error.code]);C.set(I,4);return C};
JoU.prototype.eB=function(){if(this.av6)return this.av6;this.av6=jc_(this,function(r){return"_"+tj3(r)});
return jc_(this,function(r){return r})};
var Ho3=function(r,f,I){JA.call(this,r);this.fUm=f;this.clientState=I;this.jT="S";this.gPf="q"};
_.t(Ho3,JA);Ho3.prototype.eB=function(){var r=Math.floor(Date.now()/1E3),f=[Math.random()*255,Math.random()*255],I=f.concat([this.fUm&255,this.clientState],[r>>24&255,r>>16&255,r>>8&255,r&255]);r=new Uint8Array(2+I.length);r[0]=34;r[1]=I.length;r.set(I,2);I=r.subarray(2);for(var C=f=f.length;C<I.length;++C)I[C]^=I[C%f];this.logger.mor(this.clientState);return r};var iog={kPA:3E4,zut:2E4},jX=function(r){_.Mu.call(this);var f=this;this.qTK=new _.uX;this.fif=0;this.e5=void 0;this.state=2;this.k9=r.k9;this.oo=r.oo;this.i61=Object.assign({},iog,r.i61||{});this.logger=r.k9.gUS();var I;this.onError=(I=r.onError)!=null?I:function(){};
this.edB=r.edB||!1;if(R4T(r)){var C=this.k9;this.gTP=function(){return h4q(C).catch(function(S){S=f.reportError(new uw(f.lZ?20:32,"TRG:Disposed",S));f.e5=S;var h;(h=f.lZ)==null||h.dispose();f.lZ=void 0;f.qTK.reject(S)})};
wk8(C,function(){return void vXq(f)});
C.e2A===2&&vXq(this)}else this.gTP=r.pYX,vXq(this);var Y=this.logger.share();Y.wI("o");var V=new Qk4(Y,"o");this.qTK.promise.then(function(){V.done();Y.n1();Y.dispose()},function(){return void Y.dispose()});
this.addOnDisposeCallback(function(){f.lZ?(f.lZ.dispose(),f.lZ=void 0):f.e5?f.logger.n1():(f.e5=f.reportError(new uw(32,"TNP:Disposed")),f.logger.n1(),f.qTK.reject(f.e5))});
_.V$(this,this.logger)};
_.t(jX,_.Mu);jX.prototype.c0Y=function(){return this.qTK.promise};
var KIU=function(r,f){if(!(f instanceof uw))if(f instanceof _.$k){var I=Error(f.toString());I.stack=f.stack;f=new uw(11,"EBH:Error",I)}else f=new uw(12,"BSO:Unknown",f);return r.reportError(f)},vXq=function(r){var f,I,C,Y,V,S,h,w,n,d,z,g,X,P,W;
return _.x(function(m){switch(m.nextAddress){case 1:f=void 0;r.fif++;I=new _.uX;r.k9 instanceof Ld&&r.k9.vOw.push(I.promise);if(!r.edB){m.jumpTo(2);break}C=new _.uX;setTimeout(function(){return void C.resolve()});
return _.b(m,C.promise,2);case 2:return Y=r.logger.share(),_.l_(m,4,5),r.state=5,V={},S=[],_.b(m,nX(r.k9.snapshot({mF:V,hr9:S}),r.i61.zut,function(){return Promise.reject(new uw(15,"MDA:Timeout"))}),7);
case 7:h=m.yieldResult;if(r.isDisposed())throw new uw(r.lZ?20:32,"MDA:Disposed");w=S[0];r.state=6;return _.b(m,nX(yo8(r.oo,h),r.i61.kPA,function(){return Promise.reject(new uw(10,"BWB:Timeout"))}),8);
case 8:n=m.yieldResult;if(r.isDisposed())throw new uw(r.lZ?20:32,"BWB:Disposed");r.state=7;f=c7(Y,function(){var O=USX(r,n,I,w);O.zOT.promise.then(function(){return void r.gTP()});
return O},"i");
case 5:_.VY(m);Y.dispose();_.xV(m,6);break;case 4:d=_.ha(m);(z=f)==null||z.dispose();if(!r.e5){g=KIU(r,d);I.resolve();var v;if(v=r.k9 instanceof Ld&&r.fif<2)a:if(d instanceof uw)v=d.code!==32&&d.code!==20&&d.code!==10;else{if(d instanceof _.$k)switch(d.code){case 2:case 13:case 14:case 4:break;default:v=!1;break a}v=!0}if(v)return X=(1+Math.random()*.25)*(r.lZ?6E4:1E3),P=setTimeout(function(){return void r.gTP()},X),r.addOnDisposeCallback(function(){return void clearTimeout(P)}),m.return();
r.e5=g}Y.logError(r.lZ?13:14);r.qTK.reject(r.e5);return m.return();case 6:r.state=8,r.fif=0,(W=r.lZ)==null||W.dispose(),r.lZ=f,r.qTK.resolve(),_.wO(m)}})},USX=function(r,f,I,C){var Y=jnR(f,2)*1E3;
if(Y<=0)throw new uw(31,"TTM:Invalid");if(_.Tb(f,4))return new e4s(r.logger,_.Tb(f,4),Y);if(!jnR(f,3))return new mST(r.logger,zFm(_.zb(f,1)),Y);if(!C)throw new uw(4,"PMD:Undefined");C=C(zFm(_.zb(f,1)));if(!(C instanceof Function))throw new uw(16,"APF:Failed");r.rWi=Math.floor((Date.now()+Y)/1E3);r=new LID(r.logger,C,jnR(f,3),Y);r.addOnDisposeCallback(function(){return void I.resolve()});
return r};
jX.prototype.eB=function(r){return scq(this,Object.assign({},r),!1)};
jX.prototype.cI=function(r){return scq(this,Object.assign({},r),!0)};
jX.prototype.bPB=function(r){if(r>150)return!1;try{return this.cache=new a8C(r,this.logger),!0}catch(f){return this.reportError(new uw(22,"GBJ:init",f)),!1}};
jX.prototype.reportError=function(r){this.logger.logError(r.code);this.onError(r);return r};
var OoD=function(r,f){f=f instanceof uw?f:new uw(5,"TVD:error",f);return r.reportError(f)},scq=function(r,f,I){try{if(r.isDisposed())throw new uw(21,"BNT:disposed");
if(!r.lZ&&r.e5)throw r.e5;var C,Y;return(Y=(C=oXX(r,f,I))!=null?C:Qc4(r,f,I))!=null?Y:Ao8(r,f,I)}catch(V){if(!f.sZA)throw OoD(r,V);return ZoX(r,I,V)}},oXX=function(r,f,I){var C;
return(C=r.lZ)==null?void 0:WIg(C,function(){return GZV(r,f)},I,function(Y){var V;
if(r.lZ instanceof LID&&((V=f.dB)==null?0:V.qJ9))try{var S;(S=r.cache)==null||Xk4(S,GZV(r,f),Y,f.dB.rdS,r.rWi-120)}catch(h){r.reportError(new uw(24,"ELX:write",h))}})},Qc4=function(r,f,I){var C;
if((C=f.dB)!=null&&C.yQl)try{var Y,V=(Y=r.cache)==null?void 0:N5D(Y,GZV(r,f),f.dB.rdS);return V?I?c7(r.logger,function(){return _.Dp(V,2)},"a"):V:void 0}catch(S){r.reportError(new uw(23,"RXO:read",S))}},Ao8=function(r,f,I){var C={stack:[],
error:void 0,hasError:!1};try{if(!f.h9B)throw new uw(29,"SDF:notready");return WIg(Fxd(C,new Ho3(r.logger,0,r.state)),function(){return GZV(r,f)},I)}catch(Y){C.error=Y,C.hasError=!0}finally{c2K(C)}},ZoX=function(r,f,I){var C={stack:[],
error:void 0,hasError:!1};try{var Y=OoD(r,I);return WIg(Fxd(C,new JoU(r.logger,Y)),function(){return[]},f)}catch(V){C.error=V,C.hasError=!0}finally{c2K(C)}},GZV=function(r,f){return f.yPb?f.yPb:f.mF?c7(r.logger,function(){return f.yPb=rnP(f.mF)},"c"):[]},R4T=function(r){return kC(function(f){if(!SHc(f))return!1;
for(var I=_.E(Object.entries(r)),C=I.next();!C.done;C=I.next()){var Y=_.E(C.value);C=Y.next().value;Y=Y.next().value;if(!(C in f)){if(Y.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!Y(f[C]))return!1}return!0})}({k9:function(r){return kC(function(f){return f instanceof r})}(Ld)},"");var kZq=function(){var r=_.G3();this.JSC$7810_streamzService=r;r.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",D8("cookie_enabled"),D8("cookie_3p_enabled"),_.fX("browser"))};
kZq.prototype.increment=function(r,f,I){this.JSC$7810_streamzService.JSC$7686_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",r,f,I)};
var Nvd=function(){var r=_.G3();this.JSC$7834_streamzService=r;r.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",rL("tick"),D8("from_st_cookie"))};
Nvd.prototype.increment=function(r,f){this.JSC$7834_streamzService.JSC$7686_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",r,f)};
var B53=function(){var r=_.G3();this.JSC$7840_streamzService=r;r.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.fX("status"))};
B53.prototype.increment=function(r){this.JSC$7840_streamzService.JSC$7686_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",r)};
var qZ8=function(){var r=_.G3();this.JSC$7843_streamzService=r;r.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.fX("stage"),D8("is_using_ytd_player"),D8("has_expandable_tiles"))};
qZ8.prototype.increment=function(r,f,I){this.JSC$7843_streamzService.JSC$7686_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",r,f,I)};
var u08=function(){var r=_.G3();this.JSC$7846_streamzService=r;r.addNewCounter("/client_streamz/youtube/web/response_signature",_.fX("check_status"))};
u08.prototype.increment=function(r){this.JSC$7846_streamzService.JSC$7686_incrementCounter("/client_streamz/youtube/web/response_signature",r)};
var DST=function(){var r=_.G3();this.JSC$7849_streamzService=r;r.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.fX("sig"),rL("de"))};
DST.prototype.increment=function(r,f){this.JSC$7849_streamzService.JSC$7686_incrementCounter("/client_streamz/youtube/web/e_sig_log",r,f)};
var ryD=function(){var r=_.G3();this.JSC$7852_streamzService=r;r.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.fX("sig"),rL("de"))};
ryD.prototype.increment=function(r,f){this.JSC$7852_streamzService.JSC$7686_incrementCounter("/client_streamz/youtube/web/e_sig_en",r,f)};
_.fE3=function(){var r=_.G3();this.JSC$7855_streamzService=r;r.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.fX("action"))};
_.fE3.prototype.increment=function(r){this.JSC$7855_streamzService.JSC$7686_incrementCounter("/client_streamz/youtube/web/enforcement_intent",r)};var umw=function(){var r=_.G3();this.JSC$7858_streamzService=r;r.addNewCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",_.fX("tagname"))};
umw.prototype.increment=function(r){this.JSC$7858_streamzService.JSC$7686_incrementCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",r)};var H7=window;var IEg=(new Date).getTime();var CEg=function(r){this.servicePromise_=r;r.then((0,_.gL)(function(){},this),function(){},this)},YD4=function(r,f,I){r.servicePromise_.then(function(C){var Y=C[f];
if(!Y)throw Error("Oa`"+f);return Y.apply(C,I)})},Ea8=function(r,f,I){for(var C=Array(arguments.length-2),Y=2;Y<arguments.length;Y++)C[Y-2]=arguments[Y];
Y=lE4(r,f).then(function(V){return V.apply(null,C)},function(V){V=Error("Pa`"+f+"`"+r,{cause:V});
delete V4T[f];return _.h3(V)});
return new CEg(Y)},V4T={},lE4=function(r,f){var I=V4T[f];
if(I)return I;I=(I=_.jH(f))?_.fe(I):(new _.lz(function(C,Y){var V=(new aF(document)).createElement("SCRIPT");V.async=!0;_.vL(V,_.SF(Y7T(r)));V.onload=V.onreadystatechange=function(){V.readyState&&V.readyState!="loaded"&&V.readyState!="complete"||C()};
V.onerror=function(S){Y(Error("Qa`"+f+"`"+r,{cause:S}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(V)})).then(function(){var C=_.jH(f);
if(!C)throw Error("Ra`"+f+"`"+r);return C});
return V4T[f]=I};var SD3={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},hiB=function(){var r=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=fY$(function(){return _.x(function(f){if(f.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?f.return(Promise.resolve()):_.b(f,xuT(r),2);r.rsaForList.length>
0&&document.addEventListener("click",r.requestAccessForHelpPanel);_.wO(f)})});
this.requestAccessForHelpPanel=function(){if(!(r.rsaForPromises.length>0)){for(var f=_.E(r.rsaForList),I=f.next();!I.done;I=f.next()){I=I.value;try{r.rsaForPromises.push(document.requestStorageAccessFor(I))}catch(C){}}Promise.all(r.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){r.reset()})}}};
hiB.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var xuT=function(r){var f,I,C,Y;return _.x(function(V){switch(V.nextAddress){case 1:f=_.E(Object.values(SD3)),I=f.next();case 2:if(I.done){V.jumpTo(0);break}C=I.value;_.l_(V,5);return _.b(V,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:C}),7);case 7:Y=V.yieldResult;Y.state!=="granted"&&r.rsaForList.push(C);_.Hd(V,3);break;case 5:_.ha(V);V.jumpTo(0);break;case 3:I=f.next(),V.jumpTo(2)}})};(new hiB).initialize();var wh3=function(r){this.JSC$7872_loader_=r};
wh3.prototype.startHelp=function(r){YD4(this.JSC$7872_loader_,"startHelp",arguments)};
wh3.prototype.JSC$7874_loadChatSupport=function(r){YD4(this.JSC$7872_loader_,"loadChatSupport",arguments)};
var ph8=function(r,f){f=f||{};r=Ea8(bX8,"help.service.Lazy.create",r,{apiKey:f.apiKey||f.apiKey,asxUiUri:f.asxUiUri||f.asxUiUri,environment:f.environment||f.environment,flow:f.flow||f.flow,frdProductData:f.frdProductData||f.frdProductData,frdProductDataSerializedJspb:f.frdProductDataSerializedJspb||f.frdProductDataSerializedJspb,helpCenterPath:f.helpCenterPath||f.helpCenterPath,locale:f.locale||f.locale||"en-US".replace(/-/g,"_"),nonce:f.nonce||f.nonce,productData:f.productData||f.productData,receiverUri:f.receiverUri||
f.receiverUri,renderApiUri:f.renderApiUri||f.renderApiUri,theme:f.theme||f.theme,window:f.window||f.window});return new wh3(r)},bX8=new cR(Lvl,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var naq=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(naq,_.Kj);var duV=_.fK(naq);new Uint8Array([]);_.ziD=new function(r,f,I,C){this.configType=r;this.flagName=I;this.defaultValue=C;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 gaC=function(){this.retriever=_.a().resolve(M43)};CkU(Node);CkU(Element);var aEs=CkU(HTMLElement);CkU(SVGElement);var Xh3,NL8,v7,$uX;Xh3=function(r){return typeof r.className=="string"?r.className:r.getAttribute&&r.getAttribute("class")||""};
NL8=function(r){return r.classList?r.classList:Xh3(r).match(/\S+/g)||[]};
_.il=function(r,f){typeof r.className=="string"?r.className=f:r.setAttribute&&r.setAttribute("class",f)};
_.RP=function(r,f){return r.classList?r.classList.contains(f):_.Am(NL8(r),f)};
_.j$=function(r,f){if(r.classList)r.classList.add(f);else if(!_.RP(r,f)){var I=Xh3(r);_.il(r,I+(I.length>0?" "+f:f))}};
v7=function(r,f){if(r.classList)Array.prototype.forEach.call(f,function(Y){_.j$(r,Y)});
else{var I={};Array.prototype.forEach.call(NL8(r),function(Y){I[Y]=!0});
Array.prototype.forEach.call(f,function(Y){I[Y]=!0});
f="";for(var C in I)f+=f.length>0?" "+C:C;_.il(r,f)}};
_.e$=function(r,f){r.classList?r.classList.remove(f):_.RP(r,f)&&_.il(r,Array.prototype.filter.call(NL8(r),function(I){return I!=f}).join(" "))};
$uX=function(r,f){r.classList?Array.prototype.forEach.call(f,function(I){_.e$(r,I)}):_.il(r,Array.prototype.filter.call(NL8(r),function(I){return!_.Am(f,I)}).join(" "))};var F93=function(r){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=r.document},TLs=function(r,f){PE8(r);
var I=document.createElement("div"),C;(C=f.parentNode)==null||C.insertBefore(I,f);I.tabIndex=0;I.id="fc-focus-trap-pre-div";I=document.createElement("div");var Y;(Y=f.parentNode)==null||Y.insertBefore(I,f.nextSibling);I.tabIndex=0;I.id="fc-focus-trap-post-div";var V=t4g(r,f),S=t4g(r,f,!0);V&&S&&(r.focusChangeHandler=function(){var h=r.document.activeElement;if(h)if(_.e4(f,h))r.previouslyFocusedElement=h;else if(h===r.document.activeElement)switch(r.previouslyFocusedElement){case V:S.focus();r.previouslyFocusedElement=
S;break;default:V.focus(),r.previouslyFocusedElement=V}},r.document.addEventListener("focus",r.focusChangeHandler,!0),r.document.addEventListener("focusin",r.focusChangeHandler))},PE8=function(r){r.focusChangeHandler&&(document.removeEventListener("focus",r.focusChangeHandler,!0),document.removeEventListener("focusin",r.focusChangeHandler),r.focusChangeHandler=null);
var f;(f=document.getElementById("fc-focus-trap-pre-div"))==null||f.remove();var I;(I=document.getElementById("fc-focus-trap-post-div"))==null||I.remove()},cy4=function(r,f,I,C,Y){I=I===void 0?!0:I;
var V;Y=(V=Y===void 0?null:Y)!=null?V:t4g(r,f,C===void 0?!1:C);Y!==null&&(Y.focus(),I&&TLs(r,f))};
F93.prototype.disableButton=function(r,f){f=f===void 0?null:f;r.disabled=!0;f&&_.j$(r,f)};
var t4g=function(r,f,I){I=I===void 0?!1:I;if(GFR(f)&&!I)return f;var C=I?[].slice.call(f.children,0).reverse():f.children;C=_.E(C);for(var Y=C.next();!Y.done;Y=C.next())if(Y=Y.value,aEs(Y)&&(Y=t4g(r,Y,I)))return Y;return GFR(f)&&I?f:null};var W94=function(r){this.originalBodyOverflow="";this.JSC$7900_domHelper=ho(r)};_.rh(_.aZ,_.Mu);_.l=_.aZ.prototype;_.l.JSC$7903_id_=0;_.l.disposeInternal=function(){_.aZ.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7901_listener_;delete this.handler_};
_.l.start=function(r){this.stop();this.JSC$7903_id_=NK(this.callback_,r!==void 0?r:this.JSC$7901_interval_)};
_.l.stop=function(){this.isActive()&&_.Yq.clearTimeout(this.JSC$7903_id_);this.JSC$7903_id_=0};
_.l.fire=function(){this.stop();this.JSC$7903_doAction_()};
_.l.isActive=function(){return this.JSC$7903_id_!=0};
_.l.JSC$7903_doAction_=function(){this.JSC$7903_id_=0;this.JSC$7901_listener_&&this.JSC$7901_listener_.call(this.handler_)};_.B8=function(r){_.Mu.call(this);this.handler_=r;this.JSC$7904_keys_={}};
_.rh(_.B8,_.Mu);var L9V=[];_.B8.prototype.listen=function(r,f,I,C){Array.isArray(f)||(f&&(L9V[0]=f.toString()),f=L9V);for(var Y=0;Y<f.length;Y++){var V=_.S$(r,f[Y],I||this.handleEvent,C||!1,this.handler_||this);if(!V)break;this.JSC$7904_keys_[V.key]=V}return this};
_.B8.prototype.listenOnce=function(r,f,I,C){return muD(this,r,f,I,C)};
var muD=function(r,f,I,C,Y,V){if(Array.isArray(I))for(var S=0;S<I.length;S++)muD(r,f,I[S],C,Y,V);else{f=YY(f,I,C||r.handleEvent,Y,V||r.handler_||r);if(!f)return r;r.JSC$7904_keys_[f.key]=f}return r};
_.B8.prototype.unlisten=function(r,f,I,C,Y){if(Array.isArray(f))for(var V=0;V<f.length;V++)this.unlisten(r,f[V],I,C,Y);else if(r=ra3(r,f,I||this.handleEvent,_.lV(C)?!!C.capture:!!C,Y||this.handler_||this))lT(r),delete this.JSC$7904_keys_[r.key];return this};
_.B8.prototype.removeAll=function(){_.X0.forEach(this.JSC$7904_keys_,function(r,f){this.JSC$7904_keys_.hasOwnProperty(f)&&lT(r)},this);
this.JSC$7904_keys_={}};
_.B8.prototype.disposeInternal=function(){_.B8.superClass_.disposeInternal.call(this);this.removeAll()};
_.B8.prototype.handleEvent=function(){throw Error("Sa");};var Kd=function(){_.Mu.call(this);this.services_={}};
_.rh(Kd,_.Mu);_.l=Kd.prototype;_.l.logger=null;_.l.connect=function(r){r&&r()};
_.l.isConnected=function(){return!0};
_.l.registerService=function(r,f,I){this.services_[r]={callback:f,objectPayload:!!I}};
_.l.getService=function(r,f){var I=this.services_[r];return I?I:this.defaultService_?{callback:_.S_(this.defaultService_,r),objectPayload:_.lV(f)}:null};
var ei8=function(r,f){if(f&&typeof r==="string")try{return JSON.parse(r)}catch(I){return null}else if(!f&&typeof r!=="string")return(0,_.FZ)(r);return r};
Kd.prototype.disposeInternal=function(){Kd.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 yh=function(r,f){this.sequence_=[];this.onCancelFunction_=r;this.defaultScope_=f||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};
yh.prototype.cancel=function(r){if(this.fired_)this.result_ instanceof yh&&this.result_.cancel();else{if(this.parent_){var f=this.parent_;delete this.parent_;r?f.cancel(r):(f.branches_--,f.branches_<=0&&f.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new UU(this))}};
yh.prototype.continue_=function(r,f){this.blocked_=!1;JyT(this,r,f)};
var JyT=function(r,f,I){r.fired_=!0;r.result_=I;r.hadError_=!f;jZq(r)},iX3=function(r){if(r.fired_){if(!r.silentlyCanceled_)throw new HXC(r);
r.silentlyCanceled_=!1}};
yh.prototype.callback=function(r){iX3(this);JyT(this,!0,r)};
yh.prototype.errback=function(r){iX3(this);JyT(this,!1,r)};
var Ri3=function(r,f,I){sU(r,f,null,I)};
yh.prototype.finally=function(r){var f=this;return new Promise(function(I,C){sU(f,function(Y){r();I(Y)},function(Y){r();
C(Y)})})};
var sU=function(r,f,I,C){var Y=r.fired_;Y||(f===I?f=I=MK(f):(f=MK(f),I=MK(I)));r.sequence_.push([f,I,C]);Y&&jZq(r)};
yh.prototype.then=function(r,f,I){var C,Y,V=new _.lz(function(S,h){Y=S;C=h});
sU(this,Y,function(S){S instanceof UU?V.cancel():C(S);return vaC},this);
return V.then(r,f,I)};
SgC(yh);var K9B=function(r,f){f instanceof yh?Ri3(r,(0,_.gL)(f.branch,f)):Ri3(r,function(){return f})};
yh.prototype.branch=function(r){var f=new yh;sU(this,f.callback,f.errback,f);r&&(f.parent_=this,this.branches_++);return f};
yh.prototype.isError=function(r){return r instanceof Error};
var yyV=function(r){return vW(r.sequence_,function(f){return typeof f[1]==="function"})},vaC={},jZq=function(r){if(r.unhandledErrorId_&&r.fired_&&yyV(r)){var f=r.unhandledErrorId_,I=UuX[f];
I&&(_.Yq.clearTimeout(I.JSC$7921_id_),delete UuX[f]);r.unhandledErrorId_=0}r.parent_&&(r.parent_.branches_--,delete r.parent_);f=r.result_;for(var C=I=!1;r.sequence_.length&&!r.blocked_;){var Y=r.sequence_.shift(),V=Y[0],S=Y[1];Y=Y[2];if(V=r.hadError_?S:V)try{var h=V.call(Y||r.defaultScope_,f);h===vaC&&(h=void 0);h!==void 0&&(r.hadError_=r.hadError_&&(h==f||r.isError(h)),r.result_=f=h);if(xa_(f)||typeof _.Yq.Promise==="function"&&f instanceof _.Yq.Promise)C=!0,r.blocked_=!0}catch(w){f=w,r.hadError_=
!0,yyV(r)||(I=!0)}}r.result_=f;C&&(h=(0,_.gL)(r.continue_,r,!0),C=(0,_.gL)(r.continue_,r,!1),f instanceof yh?(sU(f,h,C),f.blocking_=!0):f.then(h,C));I&&(f=new sZV(f),UuX[f.JSC$7921_id_]=f,r.unhandledErrorId_=f.JSC$7921_id_)},HXC=function(){_.fw.call(this)};
_.rh(HXC,_.fw);HXC.prototype.message="Deferred has already fired";HXC.prototype.name="AlreadyCalledError";var UU=function(){_.fw.call(this)};
_.rh(UU,_.fw);UU.prototype.message="Deferred was canceled";UU.prototype.name="CanceledError";var sZV=function(r){this.JSC$7921_id_=_.Yq.setTimeout((0,_.gL)(this.throwError,this),0);this.JSC$7921_error_=r};
sZV.prototype.throwError=function(){delete UuX[this.JSC$7921_id_];throw this.JSC$7921_error_;};
var UuX={};var OXC={1:"NativeMessagingTransport"},oa8=["pu","lru","pru","lpu","ppu"],Ay4=function(){for(var r=10,f=QZX,I=f.length,C="";r-- >0;)C+=f.charAt(Math.floor(Math.random()*I));return C},QZX="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var OU=function(r){_.Mu.call(this);this.JSC$7924_domHelper_=r||ho()};
_.rh(OU,_.Mu);OU.prototype.transportType=0;OU.prototype.getWindow=function(){return this.JSC$7924_domHelper_.getWindow()};
OU.prototype.getName=function(){return OXC[String(this.transportType)]||""};var oP=function(r,f,I,C,Y){OU.call(this,I);this.JSC$7927_channel_=r;this.protocolVersion_=Y||2;this.peerHostname_=f||"*";this.JSC$7927_eventHandler_=new _.B8(this);this.maybeAttemptToConnectTimer_=new _.kf(100,this.getWindow());this.oneSidedHandshake_=!!C;this.setupAckReceived_=new yh;this.setupAckSent_=new yh;this.JSC$7927_connected_=new yh;this.endpointId_=Ay4();this.peerEndpointId_=null;this.oneSidedHandshake_?ZXX(this.JSC$7927_channel_)==1?K9B(this.JSC$7927_connected_,this.setupAckReceived_):
K9B(this.JSC$7927_connected_,this.setupAckSent_):(K9B(this.JSC$7927_connected_,this.setupAckReceived_),this.protocolVersion_==2&&K9B(this.JSC$7927_connected_,this.setupAckSent_));Ri3(this.JSC$7927_connected_,this.notifyConnected_,this);this.JSC$7927_connected_.callback(!0);this.JSC$7927_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.rh(oP,OU);oP.prototype.peerProtocolVersion_=null;oP.prototype.initialized_=!1;oP.prototype.transportType=1;var GH8={};oP.prototype.sendTimerId_=0;
var qD3=function(r){var f=r.event_.data;if(typeof f!=="string")return!1;var I=f.indexOf("|"),C=f.indexOf(":");if(I==-1||C==-1)return!1;var Y=f.substring(0,I);I=f.substring(I+1,C);f=f.substring(C+1);if(C=Qh[Y])return C.xpcDeliver(I,f,r.event_.origin),!0;C=kHB(f)[0];for(var V in Qh){var S=Qh[V];if(ZXX(S)==1&&!S.isConnected()&&I=="tp"&&(C=="SETUP"||C=="SETUP_NTPV2")&&BL4(S,r.event_.origin))return delete Qh[S.name],S.name=Y,Qh[Y]=S,S.xpcDeliver(I,f),!0}return!1},uFC=function(r){r.protocolVersion_!=2||
r.peerProtocolVersion_!=null&&r.peerProtocolVersion_!=2||r.send("tp","SETUP_NTPV2,"+r.endpointId_);
r.peerProtocolVersion_!=null&&r.peerProtocolVersion_!=1||r.send("tp","SETUP")},DuX=function(r,f){if(r.protocolVersion_!=2||r.peerProtocolVersion_!=null&&r.peerProtocolVersion_!=2||f!=2){if(r.peerProtocolVersion_!=null&&r.peerProtocolVersion_!=1||f!=1)return;
r.send("tp","SETUP_ACK")}else r.send("tp","SETUP_ACK_NTPV2");r.setupAckSent_.fired_||r.setupAckSent_.callback(!0)},rR_=function(r,f){f>r.peerProtocolVersion_&&(r.peerProtocolVersion_=f);
r.peerProtocolVersion_==1&&(r.setupAckSent_.fired_||r.oneSidedHandshake_||r.setupAckSent_.callback(!0),r.peerEndpointId_=null)};
_.l=oP.prototype;_.l.connect=function(){var r=this.getWindow(),f=_.S3(r),I=GH8[f];typeof I!=="number"&&(I=0);I==0&&_.S$(r.postMessage?r:r.document,"message",qD3,!1,oP);GH8[f]=I+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.l.maybeAttemptToConnect_=function(){var r=ZXX(this.JSC$7927_channel_)==0;this.oneSidedHandshake_&&r||this.JSC$7927_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),uFC(this))};
_.l.send=function(r,f){var I=this.JSC$7927_channel_.peerWindowObject_;I&&(this.send=function(C,Y){var V=this,S=this.JSC$7927_channel_.name;this.sendTimerId_=NK(function(){V.sendTimerId_=0;try{var h=I.postMessage?I:I.document;h.postMessage&&h.postMessage(S+"|"+C+":"+Y,V.peerHostname_)}catch(w){}},0)},this.send(r,f))};
_.l.notifyConnected_=function(){var r=this.JSC$7927_channel_,f=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;r.isConnected()||r.connectionDelay_&&r.connectionDelay_.isActive()||(r.state_=2,_.Z8(r.connectionDelay_),f!==void 0?(r.connectionDelay_=new _.aZ(r.connectCb_,f),r.connectionDelay_.start()):(r.connectionDelay_=null,r.connectCb_()))};
_.l.disposeInternal=function(){if(this.initialized_){var r=this.getWindow(),f=_.S3(r),I=GH8[f];GH8[f]=I-1;I==1&&_.di(r.postMessage?r:r.document,"message",qD3,!1,oP)}this.sendTimerId_&&(_.Yq.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Z8(this.JSC$7927_eventHandler_);delete this.JSC$7927_eventHandler_;_.Z8(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$7927_connected_.cancel();delete this.JSC$7927_connected_;delete this.send;oP.superClass_.disposeInternal.call(this)};
var kHB=function(r){r=r.split(",");r[1]=r[1]||null;return r};_.AA=function(r){if(r.getValues&&typeof r.getValues=="function")return r.getValues();if(typeof Map!=="undefined"&&r instanceof Map||typeof Set!=="undefined"&&r instanceof Set)return Array.from(r.values());if(typeof r==="string")return r.split("");if(_.ID(r)){for(var f=[],I=r.length,C=0;C<I;C++)f.push(r[C]);return f}return _.X0.getValues(r)};
_.f3s=function(r){if(r.getKeys&&typeof r.getKeys=="function")return r.getKeys();if(!r.getValues||typeof r.getValues!="function"){if(typeof Map!=="undefined"&&r instanceof Map)return Array.from(r.keys());if(!(typeof Set!=="undefined"&&r instanceof Set)){if(_.ID(r)||typeof r==="string"){var f=[];r=r.length;for(var I=0;I<r;I++)f.push(I);return f}return _.X0.getKeys(r)}}};
_.I3B=function(r,f,I){if(r.forEach&&typeof r.forEach=="function")r.forEach(f,I);else if(_.ID(r)||typeof r==="string")Array.prototype.forEach.call(r,f,I);else for(var C=_.f3s(r),Y=_.AA(r),V=Y.length,S=0;S<V;S++)f.call(I,Y[S],C&&C[S],r)};var mMm,De,f$,xk8,Cdq,l3C,YmD,Smg,VbX;
_.KA=function(r,f){this.JSC$7932_domain_=this.userInfo_=this.scheme_="";this.JSC$7932_port_=null;this.fragment_=this.JSC$7932_path_="";this.JSC$7932_ignoreCase_=!1;var I;r instanceof _.KA?(this.JSC$7932_ignoreCase_=f!==void 0?f:r.JSC$7932_ignoreCase_,_.Ze(this,r.scheme_),this.userInfo_=r.userInfo_,_.Gh(this,r.JSC$7932_domain_),_.kk(this,r.JSC$7932_port_),_.B7(this,r.getPath()),_.qK(this,r.JSC$7932_queryData_.clone()),_.ul(this,r.fragment_)):r&&(I=_.sQ(String(r)))?(this.JSC$7932_ignoreCase_=!!f,_.Ze(this,
I[1]||"",!0),this.userInfo_=De(I[2]||""),_.Gh(this,I[3]||"",!0),_.kk(this,I[4]),_.B7(this,I[5]||"",!0),_.qK(this,I[6]||"",!0),_.ul(this,I[7]||"",!0)):(this.JSC$7932_ignoreCase_=!!f,this.JSC$7932_queryData_=new _.rP(null,this.JSC$7932_ignoreCase_))};
_.KA.prototype.toString=function(){var r=[],f=this.scheme_;f&&r.push(f$(f,Cdq,!0),":");var I=this.JSC$7932_domain_;if(I||f=="file")r.push("//"),(f=this.userInfo_)&&r.push(f$(f,Cdq,!0),"@"),r.push(_.ik(I).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),I=this.JSC$7932_port_,I!=null&&r.push(":",String(I));if(I=this.getPath())this.JSC$7932_domain_&&I.charAt(0)!="/"&&r.push("/"),r.push(f$(I,I.charAt(0)=="/"?YmD:l3C,!0));(I=this.JSC$7932_queryData_.toString())&&r.push("?",I);(I=this.fragment_)&&r.push("#",f$(I,
VbX));return r.join("")};
_.KA.prototype.resolve=function(r){var f=this.clone(),I=!!r.scheme_;I?_.Ze(f,r.scheme_):I=!!r.userInfo_;I?f.userInfo_=r.userInfo_:I=!!r.JSC$7932_domain_;I?_.Gh(f,r.JSC$7932_domain_):I=r.JSC$7932_port_!=null;var C=r.getPath();if(I)_.kk(f,r.JSC$7932_port_);else if(I=!!r.JSC$7932_path_){if(C.charAt(0)!="/")if(this.JSC$7932_domain_&&!this.JSC$7932_path_)C="/"+C;else{var Y=f.getPath().lastIndexOf("/");Y!=-1&&(C=f.getPath().slice(0,Y+1)+C)}Y=C;if(Y==".."||Y==".")C="";else if(_.pw(Y,"./")||_.pw(Y,"/.")){C=
_.xq(Y,"/");Y=Y.split("/");for(var V=[],S=0;S<Y.length;){var h=Y[S++];h=="."?C&&S==Y.length&&V.push(""):h==".."?((V.length>1||V.length==1&&V[0]!="")&&V.pop(),C&&S==Y.length&&V.push("")):(V.push(h),C=!0)}C=V.join("/")}else C=Y}I?_.B7(f,C):I=r.JSC$7932_queryData_.toString()!=="";I?_.qK(f,r.JSC$7932_queryData_.clone()):I=!!r.fragment_;I&&_.ul(f,r.fragment_);return f};
_.KA.prototype.clone=function(){return new _.KA(this)};
_.Ze=function(r,f,I){r.scheme_=I?De(f,!0):f;r.scheme_&&(r.scheme_=r.scheme_.replace(/:$/,""));return r};
_.Gh=function(r,f,I){r.JSC$7932_domain_=I?De(f,!0):f;return r};
_.kk=function(r,f){if(f){f=Number(f);if(isNaN(f)||f<0)throw Error("Ta`"+f);r.JSC$7932_port_=f}else r.JSC$7932_port_=null;return r};
_.KA.prototype.getPath=function(){return this.JSC$7932_path_};
_.B7=function(r,f,I){r.JSC$7932_path_=I?De(f,!0):f;return r};
_.qK=function(r,f,I){f instanceof _.rP?(r.JSC$7932_queryData_=f,ELX(r.JSC$7932_queryData_,r.JSC$7932_ignoreCase_)):(I||(f=f$(f,Smg)),r.JSC$7932_queryData_=new _.rP(f,r.JSC$7932_ignoreCase_));return r};
_.RZ=function(r,f,I){r.JSC$7932_queryData_.set(f,I);return r};
_.iE=function(r,f){return r.JSC$7932_queryData_.get(f)};
_.ul=function(r,f,I){r.fragment_=I?De(f):f;return r};
_.IH=function(r){_.RZ(r,"zx",j4());return r};
_.Hh=function(r,f){return r instanceof _.KA?r.clone():new _.KA(r,f)};
mMm=function(r,f){r instanceof _.KA||(r=_.Hh(r));f instanceof _.KA||(f=_.Hh(f));return r.resolve(f)};
De=function(r,f){return r?f?decodeURI(r.replace(/%25/g,"%2525")):decodeURIComponent(r):""};
f$=function(r,f,I){return typeof r==="string"?(r=encodeURI(r).replace(f,xk8),I&&(r=r.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),r):null};
xk8=function(r){r=r.charCodeAt(0);return"%"+(r>>4&15).toString(16)+(r&15).toString(16)};
Cdq=/[#\/\?@]/g;l3C=/[#\?:]/g;YmD=/[#\?]/g;Smg=/[#\?@]/g;VbX=/#/g;_.rP=function(r,f){this.count_=this.keyMap_=null;this.encodedQuery_=r||null;this.JSC$7933_ignoreCase_=!!f};
_.C$=function(r){r.keyMap_||(r.keyMap_=new Map,r.count_=0,r.encodedQuery_&&f$B(r.encodedQuery_,function(f,I){r.add(An(f),I)}))};
_.l=_.rP.prototype;_.l.getCount=function(){_.C$(this);return this.count_};
_.l.add=function(r,f){_.C$(this);this.encodedQuery_=null;r=Yc(this,r);var I=this.keyMap_.get(r);I||this.keyMap_.set(r,I=[]);I.push(f);this.count_+=1;return this};
_.l.remove=function(r){_.C$(this);r=Yc(this,r);return this.keyMap_.has(r)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(r).length,this.keyMap_.delete(r)):!1};
_.l.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.l.isEmpty=function(){_.C$(this);return this.count_==0};
_.l.containsKey=function(r){_.C$(this);r=Yc(this,r);return this.keyMap_.has(r)};
_.l.containsValue=function(r){var f=this.getValues();return _.Am(f,r)};
_.l.forEach=function(r,f){_.C$(this);this.keyMap_.forEach(function(I,C){I.forEach(function(Y){r.call(f,Y,C,this)},this)},this)};
_.l.getKeys=function(){_.C$(this);for(var r=Array.from(this.keyMap_.values()),f=Array.from(this.keyMap_.keys()),I=[],C=0;C<f.length;C++)for(var Y=r[C],V=0;V<Y.length;V++)I.push(f[C]);return I};
_.l.getValues=function(r){_.C$(this);var f=[];if(typeof r==="string")this.containsKey(r)&&(f=f.concat(this.keyMap_.get(Yc(this,r))));else{r=Array.from(this.keyMap_.values());for(var I=0;I<r.length;I++)f=f.concat(r[I])}return f};
_.l.set=function(r,f){_.C$(this);this.encodedQuery_=null;r=Yc(this,r);this.containsKey(r)&&(this.count_-=this.keyMap_.get(r).length);this.keyMap_.set(r,[f]);this.count_+=1;return this};
_.l.get=function(r,f){if(!r)return f;r=this.getValues(r);return r.length>0?String(r[0]):f};
_.ho4=function(r,f,I){r.remove(f);I.length>0&&(r.encodedQuery_=null,r.keyMap_.set(Yc(r,f),_.f8(I)),r.count_+=I.length)};
_.rP.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var r=[],f=Array.from(this.keyMap_.keys()),I=0;I<f.length;I++){var C=f[I],Y=_.ik(C);C=this.getValues(C);for(var V=0;V<C.length;V++){var S=Y;C[V]!==""&&(S+="="+_.ik(C[V]));r.push(S)}}return this.encodedQuery_=r.join("&")};
_.rP.prototype.clone=function(){var r=new _.rP;r.encodedQuery_=this.encodedQuery_;this.keyMap_&&(r.keyMap_=new Map(this.keyMap_),r.count_=this.count_);return r};
var Yc=function(r,f){f=String(f);r.JSC$7933_ignoreCase_&&(f=f.toLowerCase());return f},ELX=function(r,f){f&&!r.JSC$7933_ignoreCase_&&(_.C$(r),r.encodedQuery_=null,r.keyMap_.forEach(function(I,C){var Y=C.toLowerCase();
C!=Y&&(this.remove(C),_.ho4(this,Y,I))},r));
r.JSC$7933_ignoreCase_=f};
_.rP.prototype.extend=function(r){for(var f=0;f<arguments.length;f++)_.I3B(arguments[f],function(I,C){this.add(C,I)},this)};var lI=function(r,f){Kd.call(this);for(var I=0,C;C=oa8[I];I++)if(C in r&&!/^https?:\/\//.test(r[C]))throw Error("Va`"+r[C]+"`"+C);this.cfg_=r;this.name=this.cfg_.cn||Ay4();this.JSC$7928_domHelper_=f||ho();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.B8(this);r.lpu=r.lpu||D6V(this.JSC$7928_domHelper_.getWindow().location.href)+"/robots.txt";r.ppu=r.ppu||D6V(r.pu||"")+"/robots.txt";Qh[this.name]=this;ra3(window,"unload",w9q)||YY(window,"unload",w9q)};
_.rh(lI,Kd);var by4=RegExp("^%*tp$"),p9V=RegExp("^%+tp$");_.l=lI.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(r){this.connectCb_=r||_.n9;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?Ri3(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.l.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7928_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var r=this.iframeElement_.contentWindow;r||(r=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=r}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$7928_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new oP(this,this.cfg_.ph,this.JSC$7928_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.l.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Z8(this.transport_);this.connectCb_=this.transport_=null;_.Z8(this.connectionDelay_);this.connectionDelay_=null};
_.l.send=function(r,f){if(this.isConnected()){try{var I=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(Y){I=!1}if(I){_.lV(f)&&(f=(0,_.FZ)(f));I=this.transport_;var C=I.send;by4.test(r)&&(r="%"+r);r=r.replace(/[%:|]/g,encodeURIComponent);C.call(I,r,f)}else this.close()}};
_.l.xpcDeliver=function(r,f,I){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.gL)(this.xpcDeliver,this,r,f,I));else if(BL4(this,I)&&!this.isDisposed()&&this.state_!=3)if(r&&r!="tp")this.isConnected()&&(r=r.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),r=p9V.test(r)?r.substring(1):r,r=this.getService(r,f))&&(f=ei8(f,r.objectPayload),f!=null&&r.callback(f));else switch(r=this.transport_,I=kHB(f),f=I[1],I[0]){case "SETUP_ACK":rR_(r,1);r.setupAckReceived_.fired_||r.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":r.protocolVersion_==2&&(rR_(r,2),r.setupAckReceived_.fired_||r.setupAckReceived_.callback(!0));break;case "SETUP":rR_(r,1);DuX(r,1);break;case "SETUP_NTPV2":r.protocolVersion_==2&&(I=r.peerProtocolVersion_,rR_(r,2),DuX(r,2),I!=1&&r.peerEndpointId_==null||r.peerEndpointId_==f||uFC(r),r.peerEndpointId_=f)}};
var ZXX=function(r){var f=r.cfg_.role;return typeof f==="number"?f:window.parent==r.peerWindowObject_?1:0},BL4=function(r,f){var I=r.cfg_.ph;
return _.bU(f==null?"":String(f))||_.bU(I==null?"":String(I))||f==r.cfg_.ph};
lI.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Qh[this.name];_.Z8(this.peerLoadHandler_);delete this.peerLoadHandler_;lI.superClass_.disposeInternal.call(this)};
var w9q=function(){for(var r in Qh)_.Z8(Qh[r])},Qh={};var dk8=function(r,f){this.JSC$7942_win=r;this.allowAdsHttpEndpoint=f;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7942_domHelper=ho(r);this.scrollManager=new W94(r);this.accessibilityManager=new F93(r);nL_(this)},nL_=function(r){var f=function(){r.allowAdsPopup&&r.allowAdsPopup.style.setProperty("display","none","important");
r.wallElement.style.setProperty("display","","important");PE8(r.accessibilityManager);cy4(r.accessibilityManager,r.wallElement.querySelector(".fc-dialog-container"),!1,!1,r.wallElement.querySelector(".fc-button-whitelist"));var Y=r.scrollManager;Y.JSC$7900_domHelper.JSC$7225_document_.body.style.overflow=Y.originalBodyOverflow};
r.allowAdsPopup=r.JSC$7942_domHelper.JSC$7227_createDom("DIV",{"class":"fc-whitelist-root"});r.allowAdsPopup.style.setProperty("display","none","important");r.JSC$7942_domHelper.appendChild(r.JSC$7942_domHelper.JSC$7225_document_.body,r.allowAdsPopup);var I=r.JSC$7942_domHelper.JSC$7227_createDom("DIV",{"class":"fc-dialog-overlay"});r.JSC$7942_domHelper.appendChild(r.allowAdsPopup,I);var C=r.JSC$7942_domHelper.JSC$7227_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:f});r.JSC$7942_domHelper.appendChild(r.allowAdsPopup,
C);I=r.JSC$7942_domHelper.JSC$7227_createDom("IFRAME");I.className="fc-whitelist-dialog";I.frameBorder="0";I.id="fc-whitelist-iframe";I.tabIndex="0";_.LK(I,r.allowAdsHttpEndpoint);r.JSC$7942_domHelper.appendChild(C,I);C={};C.pu=_.x1(r.allowAdsHttpEndpoint).toString();C.tp=1;C.cn="fc-whitelist-channel";C.ifrid=I.id;C.osh=!0;r.allowAdsCrossPageChannel=new lI(C);r.allowAdsCrossPageChannel.registerService("close",f);r.allowAdsCrossPageChannel.registerService("refresh",function(){r.JSC$7942_win.location.reload()});
r.allowAdsCrossPageChannel.registerService("resize",function(Y){if(Y){var V=r.allowAdsPopup.querySelector(".fc-whitelist-dialog");Y.width&&V.style.setProperty("width",Y.width,"important");Y.height&&V.style.setProperty("height",Y.height,"important")}},!0);
r.allowAdsCrossPageChannel.connect()};
dk8.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$7942_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var Vo=window,Ea=document,zo3=Vo.location,Mb3=function(){},gL4=/\[native code\]/,Sm=function(r,f,I){return r[f]=r[f]||I},a3s=function(r){r=r.sort();
for(var f=[],I=void 0,C=0;C<r.length;C++){var Y=r[C];Y!=I&&f.push(Y);I=Y}return f},hB=function(){var r;
if((r=Object.create)&&gL4.test(r))r=r(null);else{r={};for(var f in r)r[f]=void 0}return r},wP=Sm(Vo,"gapi",{});var bI={};bI=Sm(Vo,"___jsl",hB());Sm(bI,"I",0);Sm(bI,"hel",10);var X93=function(){var r=zo3.href;if(bI.dpo)var f=bI.h;else{f=bI.h;var I=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),C=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(r=r&&(I.exec(r)||C.exec(r)))try{f=decodeURIComponent(r[2])}catch(Y){}}return f},NIq=function(r){var f=Sm(bI,"PQ",[]);
bI.PQ=[];var I=f.length;if(I===0)r();else for(var C=0,Y=function(){++C===I&&r()},V=0;V<I;V++)f[V](Y)},$k4=function(r){return Sm(Sm(bI,"H",hB()),r,hB())};var p$=function(r){this.JSC$7944_obj_=r};
p$.prototype.value=function(){return this.JSC$7944_obj_};
p$.prototype.getWidth=function(){return this.JSC$7944_obj_.width};
p$.prototype.getHeight=function(){return this.JSC$7944_obj_.height};
p$.prototype.getStyle=function(){return this.JSC$7944_obj_.style};var Fb4=function(r){this.JSC$7947_obj_=r||{}};
_.l=Fb4.prototype;_.l.value=function(){return this.JSC$7947_obj_};
_.l.setUrl=function(r){this.JSC$7947_obj_.url=r;return this};
_.l.getUrl=function(){return this.JSC$7947_obj_.url};
_.l.getStyle=function(){return this.JSC$7947_obj_.style};
_.l.setId=function(r){this.JSC$7947_obj_.id=r;return this};
_.l.getId=function(){return this.JSC$7947_obj_.id};
_.l.getContext=function(){return this.JSC$7947_obj_.context};
var Pd4=function(r){r.JSC$7947_obj_.attributes=r.JSC$7947_obj_.attributes||{};return new p$(r.JSC$7947_obj_.attributes)};var tb4=function(){Fb4.apply(this,arguments)};
_.t(tb4,Fb4);var TIX=Sm(bI,"perf",hB());Sm(TIX,"g",hB());var cR4=Sm(TIX,"i",hB());Sm(TIX,"r",[]);hB();hB();var Lbs=function(r,f,I){f&&f.length>0&&(f=Wbg(f),I&&I.length>0&&(f+="___"+Wbg(I)),f.length>28&&(f=f.substr(0,28)+(f.length-28)),I=f,f=Sm(cR4,"_p",hB()),Sm(f,I,hB())[r]=(new Date).getTime(),f=TIX.r,typeof f==="function"?f(r,"_p",I):f.push([r,"_p",I]))},Wbg=function(r){return r.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var mkX=hB(),eoU=[],n$=function(r){throw Error("Ya`"+r);};
eoU.push(["jsl",function(r){for(var f in r)if(Object.prototype.hasOwnProperty.call(r,f)){var I=r[f];typeof I=="object"?bI[f]=Sm(bI,f,[]).concat(I):Sm(bI,f,I)}if(f=r.u)r=Sm(bI,"us",[]),r.push(f),(f=/^https:(.*)$/.exec(f))&&r.push("http:"+f[1])}]);
var JRU=/^(\/[a-zA-Z0-9_\-]+)+$/,jz4=[/\/amp\//,/\/amp$/,/^\/amp$/],Hy3=/^[a-zA-Z0-9\-_\.,!]+$/,iyT=/^gapi\.loaded_[0-9]+$/,Ro3=/^[a-zA-Z0-9,._-]+$/,UkB=function(r,f,I,C,Y){var V=r.split(";"),S=V.shift(),h=mkX[S],w=null;h?w=h(V,f,I,C):n$("no hint processor for: "+S);w||n$("failed to generate load url");f=w;I=f.match(vL3);(C=f.match(Kbs))&&C.length===1&&yRU.test(f)&&I&&I.length===1||n$("failed sanity: "+r);try{r="?";if(Y&&Y.length>0){h_(Y);var n=Y.join(",");w=w+"?le="+n;r="&"}if(bI.rol){var d=bI.ol;
d&&d.length&&(w=""+w+r+"ol="+d.length)}}catch(z){}return w},oLD=function(r,f,I,C){r=sz3(r);
iyT.test(I)||n$("invalid_callback");f=Oy4(f);C=C&&C.length?Oy4(C):null;var Y=function(V){return encodeURIComponent(V).replace(/%2C/g,",")};
return[encodeURIComponent(r.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",Y(r.version),"/m=",Y(f),C?"/exm="+Y(C):"","/rt=j/sv=1/d=1/ed=1",r.activeMods?"/am="+Y(r.activeMods):"",r.resourceSig?"/rs="+Y(r.resourceSig):"",r.zcms?"/t="+Y(r.zcms):"","/cb=",Y(I)].join("")},sz3=function(r){r.charAt(0)!=="/"&&n$("relative path");
for(var f=r.substring(1).split("/"),I=[];f.length;){r=f.shift();if(!r.length||r.indexOf(".")==0)n$("empty/relative directory");else if(r.indexOf("=")>0){f.unshift(r);break}I.push(r)}r={};for(var C=0,Y=f.length;C<Y;++C){var V=f[C].split("="),S=decodeURIComponent(V[0]),h=decodeURIComponent(V[1]);V.length==2&&S&&h&&(r[S]=r[S]||h)}f="/"+I.join("/");JRU.test(f)||n$("invalid_prefix");I=0;for(C=jz4.length;I<C;++I)jz4[I].test(f)&&n$("invalid_prefix");I=QzU(r,"k",!0);C=QzU(r,"am");Y=QzU(r,"rs");r=QzU(r,"t");
return{pathPrefix:f,version:I,activeMods:C,resourceSig:Y,zcms:r}},Oy4=function(r){for(var f=[],I=0,C=r.length;I<C;++I){var Y=r[I].replace(/\./g,"_").replace(/-/g,"_");
Ro3.test(Y)&&f.push(Y)}return f.join(",")},QzU=function(r,f,I){r=r[f];
!r&&I&&n$("missing: "+f);if(r){if(Hy3.test(r))return r;n$("invalid: "+f)}return null},yRU=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,Kbs=/\/cb=/g,vL3=/\/\//g;
mkX.m=function(r,f,I,C){(r=r[0])||n$("missing_hint");return"https://apis.google.com"+oLD(r,f,I,C)};
var ARg=decodeURI("%73cript"),Zy3=/^[-+_0-9\/A-Za-z]+={0,2}$/,GA3=function(r,f){for(var I=[],C=0;C<r.length;++C){var Y=r[C],V;if(V=Y){a:{for(V=0;V<f.length;V++)if(f[V]===Y)break a;V=-1}V=V<0}V&&I.push(Y)}return I},kAB=function(){var r=bI.nonce;
return r!==void 0?r&&r===String(r)&&r.match(Zy3)?r:bI.nonce=null:Ea.querySelector?(r=Ea.querySelector("script[nonce]"))?(r=r.nonce||r.getAttribute("nonce")||"",r&&r===String(r)&&r.match(Zy3)?bI.nonce=r:bI.nonce=null):null:null},uRB=function(r){if(Ea.readyState!="loading")BIq(r);
else{var f=kAB(),I="";f!==null&&(I=' nonce="'+f+'"');r="<"+ARg+' src="'+encodeURI(r)+'"'+I+"></"+ARg+">";Ea.write(qmq?qmq.createHTML(r):r)}},BIq=function(r){var f=Ea.createElement(ARg);
f.setAttribute("src",qmq?qmq.createScriptURL(r):r);r=kAB();r!==null&&f.setAttribute("nonce",r);f.async="true";(r=Ea.getElementsByTagName(ARg)[0])?r.parentNode.insertBefore(f,r):(Ea.head||Ea.body||Ea.documentElement).appendChild(f)},rns=function(r,f,I){Dk4(function(){var C=f===X93()?Sm(wP,"_",hB()):hB();
C=Sm($k4(f),"_",C);r(C)},I)},PIR=function(r,f){var I=f||{};
typeof f=="function"&&(I={},I.callback=f);var C=(f=I)&&f._c;if(C)for(var Y=0;Y<eoU.length;Y++){var V=eoU[Y][0],S=eoU[Y][1];S&&Object.prototype.hasOwnProperty.call(C,V)&&S(C[V],r,f)}f=[];r?f=r.split(":"):I.features&&(f=I.features);if(!(r=I.h)&&(r=X93(),!r))throw Error("Za");fYX(f||[],I,r)},fYX=function(r,f,I){r=a3s(r)||[];
var C=f.callback,Y=f.config,V=f.timeout,S=f.ontimeout,h=f.onerror,w=void 0;typeof h=="function"&&(w=h);var n=null,d=!1;if(V&&!S||!V&&S)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";h=Sm($k4(I),"r",[]).sort();var z=Sm($k4(I),"L",[]).sort(),g=bI.le||[],X=[].concat(h),P=function(k,Z){if(d)return 0;Vo.clearTimeout(n);z.push.apply(z,W);var Cw=((wP||{}).config||{}).update;Cw?Cw(Y):Y&&Sm(bI,"cu",[]).push(Y);if(Z){Lbs("me0",k,X);try{rns(Z,I,w)}finally{Lbs("me1",k,X)}}return 1};
V>0&&(n=Vo.setTimeout(function(){d=!0;S()},V));
var W=GA3(r,z);if(W.length){W=GA3(r,h);var m=Sm(bI,"CP",[]),v=m.length;m[v]=function(k){if(!k)return 0;Lbs("ml1",W,X);var Z=function(rR){m[v]=null;P(W,k)&&NIq(function(){C&&C();rR()})},Cw=function(){var rR=m[v+1];
rR&&rR()};
v>0&&m[v-1]?m[v]=function(){Z(Cw)}:Z(Cw)};
if(W.length){var O="loaded_"+bI.I++;wP[O]=function(k){m[v](k);wP[O]=null};
r=UkB(I,W,"gapi."+O,h,g);h.push.apply(h,W);Lbs("ml0",W,X);f.sync||Vo.___gapisync?uRB(r):BIq(r)}else m[v](Mb3)}else P(W)&&C&&C()},IY_;
var CkV=null,YQq=_.Yq.trustedTypes;if(YQq&&YQq.createPolicy){try{CkV=YQq.createPolicy("goog#gapi",{createHTML:$x$,createScript:$x$,createScriptURL:$x$})}catch(r){_.Yq.console&&_.Yq.console.error(r.message)}IY_=CkV}else IY_=CkV;var qmq=IY_,Dk4=function(r,f){if(bI.hee&&bI.hel>0)try{return r()}catch(I){f&&f(I),bI.hel--,PIR("debug_error",function(){try{window.___jsl.hefn(I)}catch(C){throw I;}})}else try{return r()}catch(I){throw f&&f(I),I;
}},lYX=wP.load;
lYX&&Sm(bI,"ol",[]).push(lYX);wP.load=function(r,f){return Dk4(function(){return PIR(r,f)})};var SQl;var VHV=function(r,f){this.serviceId_=r;this.moduleId_=f||null};
VHV.prototype.toString=function(){return this.serviceId_};
VHV.prototype.getModuleId=function(){return this.moduleId_};var SCK=new VHV("MpJwZc","MpJwZc");var hRE=new _.hA("a"),x7w=function(r,f,I){_.wi.call(this,r,f);this.node=f;this.kind=I};
_.t(x7w,_.wi);var EE4=function(){this.JSC$7960_keys_={};this.urlPrefix_="";this.JSC$7960_queryData_={}};
EE4.prototype.toString=function(){var r=this.urlPrefix_+SQg(this),f=_.VD(this.JSC$7960_queryData_),I="";f!=""&&(I="?"+f);return r+I};
var xCV=function(r){r=dP(r,"md");return!!r&&r!=="0"},SQg=function(r){var f=[],I=(0,_.gL)(function(C){this.JSC$7960_keys_[C]!==void 0&&f.push(C+"="+this.JSC$7960_keys_[C])},r);
xCV(r)?(I("md"),I("k"),I("ck"),I("am"),I("rs"),I("gssmodulesetproto"),I("slk"),I("dti")):(I("sdch"),I("k"),I("ck"),I("am"),I("rt"),"d"in r.JSC$7960_keys_||zo(r,"d","0"),I("d"),I("exm"),I("excm"),(r.JSC$7960_keys_.excm||r.JSC$7960_keys_.exm)&&f.push("ed=1"),I("im"),I("dg"),I("sm"),dP(r,"br")!="1"&&dP(r,"br")!="0"||I("br"),I("br-d"),dP(r,"rb")=="1"&&I("rb"),dP(r,"zs")!=="0"&&I("zs"),hSU(r)!==""&&I("wt"),I("gssmodulesetproto"),I("ujg"),I("sp"),I("rs"),I("cb"),I("ee"),I("slk"),I("dti"),I("m"));return f.join("/")},
dP=function(r,f){return r.JSC$7960_keys_[f]?r.JSC$7960_keys_[f]:null},zo=function(r,f,I){I?r.JSC$7960_keys_[f]=I:delete r.JSC$7960_keys_[f]},ww3=function(r,f){r.urlPrefix_=f},bz8=function(r,f){f&&f.length>0?(f.sort(),zo(r,"exm",f.join(","))):zo(r,"exm",null)},pwD=function(r,f){f&&f.length>0?(f.sort(),zo(r,"excm",f.join(","))):zo(r,"excm",null)},nEs=function(r){return(r=dP(r,"m"))?r.split(","):[]},hSU=function(r){switch(dP(r,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},dCD=function(r,f){var I=Object.keys(f).filter(function(C){return!!Object.keys(f[C]).length}).map(function(C){var Y=Object.keys(f[C]);
Y.length>1&&Y.sort();return C+":"+Y.join(",")});
I.sort();zo(r,"ee",I.join(";"))},DC$=function(r){var f=dP(r,"ee");
if(!f)return{};r={};f=_.E(f.split(";"));for(var I=f.next();!I.done;I=f.next()){var C=_.E(I.value.split(":"));I=C.next().value;C=C.next().value;r[I]={};C=_.E(C.split(","));for(var Y=C.next();!Y.done;Y=C.next())r[I][Y.value]=!0}return r},zSC=function(r){delete r.JSC$7960_keys_.m;
delete r.JSC$7960_keys_.exm;delete r.JSC$7960_keys_.ed};
EE4.prototype.clone=function(){if(O5w){var r=new EE4;r.JSC$7960_keys_=Object.assign({},this.JSC$7960_keys_);r.urlPrefix_=this.urlPrefix_;r.JSC$7960_queryData_=Object.assign({},this.JSC$7960_queryData_);return r}return GH(this.toString())};
var GH=function(r,f){f=f===void 0?!0:f;var I=MH4(r),C=new EE4,Y=_.sQ(I)[5];_.X0.forEach(gEs,function(S){var h=Y.match("/"+S+"=([^/]+)");h&&zo(C,S,h[1])});
var V="";V=r.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";ww3(C,r.substr(0,r.indexOf(V)+V.length));if(!f)return C;(r=_.sQ(I)[6]||null)&&f$B(r,function(S,h){C.JSC$7960_queryData_[S]=h});
return C},Btc=function(r){r=_.Cf(MH4(r));
return r===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(r)?/\/k=/.test(r):!1},MH4=function(r){return r.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?r.substr(65):r},gEs={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"},aYV=RegExp("^loaded_(g|h)?[_\\d]+$");_.MJ=function(r){this.JSC$7972_id_=r;this.opts={}};
_.MJ.prototype.JSC$7974_setLabel=function(r){this.label_=r||void 0;return this};
_.MJ.prototype.addUploadMetadata=function(r,f){var I=this.opts.data||{};I[r]=f;this.opts.data=I;return this};
var Xw3=function(r){var f=_.X0.filter(r.opts,function(I){return I!==null});
f=_.X0.isEmpty(f)?null:f;r=[r.JSC$7972_id_,r.label_,f];f=gqu(r);return r=r.slice(0,f+1)};
_.MJ.prototype.toString=function(){var r=Xw3(this);return"("+_.$X(r,function(f){return JSON.stringify(f)}).join(",")+")"};
_.MJ.prototype.getId=function(){return this.JSC$7972_id_};
_.MJ.prototype.getOptions=function(){return _.X0.clone(this.opts)};var gP=function(){_.MJ.call(this,"image-search")};
_.t(gP,_.MJ);gP.prototype.setSize=function(r){this.opts.imgsz=r;return this};
gP.prototype.JSC$7974_setLabel=function(r){_.MJ.prototype.JSC$7974_setLabel.call(this,r);return this};
gP.prototype.addUploadMetadata=function(r,f){_.MJ.prototype.addUploadMetadata.call(this,r,f);return this};var aH=function(){_.MJ.call(this,"maps")};
_.t(aH,_.MJ);aH.prototype.setZoom=function(r){this.opts.zoom=r;return this};
aH.prototype.JSC$7974_setLabel=function(r){_.MJ.prototype.JSC$7974_setLabel.call(this,r);return this};
aH.prototype.addUploadMetadata=function(r,f){_.MJ.prototype.addUploadMetadata.call(this,r,f);return this};_.XB=function(){_.MJ.call(this,"photos")};
_.t(_.XB,_.MJ);_.XB.prototype.JSC$7974_setLabel=function(r){_.MJ.prototype.JSC$7974_setLabel.call(this,r);return this};
_.XB.prototype.addUploadMetadata=function(r,f){_.MJ.prototype.addUploadMetadata.call(this,r,f);return this};var NJ=function(){_.MJ.call(this,"url")};
_.t(NJ,_.MJ);var Ntg=function(){var r=new NJ;r.opts.type="video";r.opts.site="youtube.com";return r};
NJ.prototype.JSC$7974_setLabel=function(r){_.MJ.prototype.JSC$7974_setLabel.call(this,r);return this};
NJ.prototype.addUploadMetadata=function(r,f){_.MJ.prototype.addUploadMetadata.call(this,r,f);return this};var $c=function(){_.MJ.call(this,"video-search")};
_.t($c,_.MJ);var $C_=function(){var r=new $c;r.opts.site="youtube.com";return r};
$c.prototype.JSC$7974_setLabel=function(r){_.MJ.prototype.JSC$7974_setLabel.call(this,r);return this};
$c.prototype.addUploadMetadata=function(r,f){_.MJ.prototype.addUploadMetadata.call(this,r,f);return this};var FO8=function(){_.MJ.call(this,"web")};
_.t(FO8,_.MJ);FO8.prototype.JSC$7974_setLabel=function(r){_.MJ.prototype.JSC$7974_setLabel.call(this,r);return this};
FO8.prototype.addUploadMetadata=function(r,f){_.MJ.prototype.addUploadMetadata.call(this,r,f);return this};var FB=function(){this.items_=[];this.opts={}},PkD=function(r){switch(r){case "image-search":return new gP;
case "maps":return new aH;case "photos":return new _.XB;case "url":return new NJ;case "video-search":return new $c;case "web":return new FO8}return new _.MJ(r)};
FB.prototype.addView=function(r){this.items_.push(typeof r==="string"?PkD(r):r);return this};
var tHX=function(r){return"("+_.$X(r.items_,function(f){return f.toString()}).join(",")+")"};
FB.prototype.toString=function(){return tHX(this)};
FB.prototype.getViews=function(r,f){f=f===void 0?[]:f;for(var I=this.items_,C=0;C<I.length;C++){var Y=I[C];Y instanceof FB?Y.getViews(r,f):Y.getId()==r&&f.push(Y)}return f};
FB.prototype.getOptions=function(){return _.X0.clone(this.opts)};var Wh=function(r){this.basePickerUrl_=r||"https://docs.google.com/picker";this.nav_=new FB};
Wh.prototype.nav_=null;Wh.prototype.addView=function(r){this.nav_.addView(r);return this};
Wh.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Wh.prototype.getViews=function(r){return this.nav_.getViews(r)};
_.Tt_=function(r,f){r.callback_=f;return r};var cnC=new Map;cnC.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");cnC.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");cnC.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var WOg=new Set;WOg.add("application/vnd.google-apps.kix");WOg.add("application/vnd.google-apps.ritz");WOg.add("application/vnd.google-apps.punch");var UC8=function(r,f,I){var C=I&&_.Tb(I,1);I=LO3(I);var Y=r[0].getId();switch(_.cM(Y,2)){case 13:return mCT(r,f,C,I);case 3:return eSq(r,f,C,I);case 10:return Jn3(r,f,C,I);case 27:return Jn3(r,f,C,I);case 12:return jvg(r,f);case 2:return Hz_(r,f,C,I);case 5:return iz3(r,f,C,I);case 9:return RSD(r,f,C,I);case 6:return vEX(r,f,C,I);case 25:return KO4(r,f,C,I);case 1:return _.nD(r[0],gH8,26)?ynB(r,f,C,I):Jn3(r,f,C,I);default:return{}}},vEX=function(r,f,I,C){r=r.map(function(Y){return{id:Y.getId().getId(),
serviceId:"youtube",name:Y.getName(),description:_.Tb(Y,3),type:Pz(Y),lastEditedUtc:_.Mas(_.kB(Y,_.i1,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Y.getUrl(),embedUrl:_.Tb(Y,13),thumbnails:tB(G1(Y))}});
return{action:f,docs:r,viewToken:C,view:I||"youtube",v2Translated:!0}},Hz_=function(r,f,I,C){var Y=r.map(function(V){var S=V.getId().getId(),h=_.Tb(V,7),w=V.getName(),n=Pz(V),d=_.Mas(_.kB(V,_.i1,12)).getTime(),z=V.getUrl(),g=Number(HtK(V)),X=_.Tb(V,3),P=_.Tb(V,11),W=tB(G1(V));
var m=_.kB(V,k2,21);m=_.Fz(m,1);var v=_.kB(V,k2,21);v=_.Tb(v,10);var O=_.Tb(V,13);var k=_.kB(V,k2,21);k=_.Fz(k,9);var Z=_.kB(V,k2,21);Z=_.Tb(Z,11);S={id:S,serviceId:"docs",mimeType:h,name:w,type:n,lastEditedUtc:d,url:z,sizeBytes:g,description:X,iconUrl:P,thumbnails:W,isShared:m,downloadUrl:v,embedUrl:O,copyable:k,resourceKey:Z};h=_.kB(V,k2,21);_.Fz(h,12)&&(S.uploadState="success",S.isNew=!0);h=_.kB(V,k2,21);_.nD(h,QT,3)&&(V=_.kB(V,k2,21),V=_.kB(V,QT,3),_.nD(V,Oo,2)&&(h=TH(V.getDuration().getSeconds()),
w=V.getDuration(),w=_.u3(w,2),S.duration=h+w/1E9),S.aspectRatio=V.getAspectRatio());return S});
return{action:f,docs:Y,viewToken:C,view:I||"all",extraUserInputs:svC(r),v2Translated:!0}},iz3=function(r,f,I,C){r=r.map(function(Y){var V=_.kB(Y,cgX,15);
V=_.kB(V,oF,1);xl(Y,10,oF,V);return{id:Y.getId().getId(),serviceId:"web",mimeType:_.Tb(Y,7),name:Y.getName(),type:Pz(Y),url:Y.getUrl(),description:_.Tb(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:tB(G1(Y))}});
return{action:f,docs:r,viewToken:C,view:I||"image-search",v2Translated:!0}},RSD=function(r,f,I,C){r=r.map(function(Y){return{serviceId:"url",
name:G1(Y)[0].getUrl().split("/").pop(),type:Pz(Y),mimeType:_.Tb(Y,7),url:Y.getUrl(),description:_.Tb(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:tB(G1(Y))}});
return{action:f,docs:r,viewToken:C,view:I||"url",v2Translated:!0}},ynB=function(r,f,I,C){r=r.map(function(Y){return{id:Y.getId().getId(),
serviceId:"picasa",name:Y.getName(),type:Pz(Y),description:_.Tb(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:tB(G1(Y))}});
return{action:f,docs:r,viewToken:C,view:I||"webcam",v2Translated:!0}},Jn3=function(r,f,I,C){return{action:f,
docs:r.map(Oz_),viewToken:C,view:oE_(I||"upload",r),extraUserInputs:svC(r),v2Translated:!0}},oE_=function(r,f){return f.some(function(I){var C;
return((C=_.kB(I,AJ,30))==null?void 0:_.cM(C,3))===9})?r+"/gmailphotos":r},eSq=function(r,f,I,C){var Y=r.map(function(V){var S={id:V.getId().getId(),
serviceId:"picasa",mimeType:_.Tb(V,7),name:V.getName(),type:Pz(V),lastEditedUtc:_.Mas(_.kB(V,_.i1,12)).getTime(),url:V.getUrl(),sizeBytes:Number(HtK(V)),description:_.Tb(V,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:tB(G1(V)),mediaKey:V.getId().getId(),parentId:_.Tb(V,4)},h,w=(h=_.kB(V,N23,18))==null?void 0:_.kB(h,XE4,3);w&&(S.latitude=ts(w,1),S.longitude=ts(w,2));var n;V=(n=_.kB(V,N23,18))==null?void 0:PM(n,6);n=V!=null?TH(V):void 0;n&&(S.version=
n);return S});
return{action:f,docs:Y,viewToken:C,view:I||"photos",extraUserInputs:svC(r),v2Translated:!0}},mCT=function(r,f,I,C){r=r.map(function(Y){return{id:Y.getId().getId(),
serviceId:"et",name:G1(Y)[0].getUrl().split("/").pop(),description:_.Tb(Y,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:tB(G1(Y),"etjpg")}});
return{action:f,docs:r,viewToken:C,view:I||"et",v2Translated:!0}},KO4=function(r,f,I,C){r=r.map(function(Y){var V=Y.getId().getId(),S=C["2"];
return{id:V,serviceId:S.type!=="gmail_themes"&&S.parent==="6226252643674576769"?"picasa":"static_themes",name:Y.getName(),mimeType:_.Tb(Y,7),type:Pz(Y),description:_.Tb(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Y.getUrl(),embedUrl:Y.getUrl(),thumbnails:tB(G1(Y))}});
return{action:f,docs:r,viewToken:C,view:I||"photos",v2Translated:!0}},jvg=function(r,f){r=r.map(function(I){var C=_.kB(I,a$T,27);
C=_.X9(C,1,_.yV,_.qS())[0];return{id:I.getId().getId(),serviceId:"contacts",mimeType:_.Tb(I,7),name:I.getName(),description:_.Tb(I,3),url:"mailto:"+C,thumbnail:[{url:_.Tb(I,11)}],email:C}});
return{action:f,docs:r,view:"contacts",v2Translated:!0}},LO3=function(r){if(!r)return{};
var f=_.Tb(r,3);f=f&&JSON.parse(f)||{};return{0:_.Tb(r,1),1:_.Tb(r,2),2:f}},tB=function(r,f){f=f===void 0?"":f;
if(!r.length)return null;f=="etjpg"&&(r=r.filter(function(I){return I.getUrl().includes("w1200-h300")}));
return r.map(function(I){return{url:I.getUrl(),height:I.getHeight(),width:I.getWidth(),type:f}})},svC=function(r){return{isAttachment:r.some(function(f){return _.Fz(f,31)})}},Oz_=function(r){var f,I={id:(f=r.getId())==null?void 0:f.getId(),
serviceId:Qv_(r),mimeType:_.Tb(r,7),name:r.getName(),type:Pz(r),sizeBytes:Number(HtK(r)),description:_.Tb(r,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:tB(G1(r)),isNew:!0};if(f=_.kB(r,AJ,30)){I.dataUrl=_.Tb(f,1)||null;a:{var C=_.kB(r,AJ,30);switch(_.cM(C,3)){case 9:C=_.mt(C,taD,2,ZR);C={remoteRefs:C&&_.Tb(C,1)};break a;case 10:case 15:C=_.mt(C,Pr_,4,ZR);var Y=G1(r);C={photo_id:C&&_.Tb(C,1),media_key:r.getId().getId(),media_type:_.cM(r,6)===1?1:2,image_url:Y&&
Y[0].getUrl(),width:Y&&String(Y[0].getWidth()),height:Y&&String(Y[0].getHeight())};break a}C=null}I.uploadMetadata=C;I.uploadId=_.Tb(f,9)||null;I.uploadState=Anq(f)||null}(C=f&&_.mt(f,Pr_,4,ZR))&&(I.id=_.Tb(C,1));(C=f&&_.mt(f,T2B,5,ZR))&&(I.contentId=_.Tb(C,1));(C=f&&_.mt(f,$e3,7,ZR))&&(I.contentId=_.Tb(C,1));(C=f&&_.mt(f,FoV,6,ZR))&&(I.contentId=_.Tb(C,1));(f==null?void 0:_.cM(f,3))===1&&(I.mediaKey=r.getId().getId());return I},Qv_=function(r){var f;
switch(((f=_.kB(r,AJ,30))==null?void 0:_.cM(f,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},Pz=function(r){switch(_.cM(r,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 _.Tb(r,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},Anq=function(r){switch(r==null?void 0:_.cM(r,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 BtT,ZzT,Ggg,kg4;_.To=function(r,f){var I=f||{};f=I.document||document;var C=_.x1(r).toString(),Y=(new aF(f)).createElement("SCRIPT"),V={script_:Y,timeout_:void 0},S=new yh(ZzT,V),h=null,w=I.timeout!=null?I.timeout:5E3;w>0&&(h=window.setTimeout(function(){Ggg(Y,!0);S.errback(new kg4(1,"Timeout reached for loading script "+C))},w),V.timeout_=h);
Y.onload=Y.onreadystatechange=function(){Y.readyState&&Y.readyState!="loaded"&&Y.readyState!="complete"||(Ggg(Y,I.cleanupWhenDone||!1,h),S.callback(null))};
Y.onerror=function(){Ggg(Y,!0,h);S.errback(new kg4(0,"Error while loading script "+C))};
V=I.attributes||{};_.X0.extend(V,{type:"text/javascript",charset:"UTF-8"});S7q(Y,V);_.vL(Y,r);BtT(f).appendChild(Y);return S};
BtT=function(r){var f=pX("HEAD",r);return f&&f.length!==0?f[0]:r.documentElement};
ZzT=function(){if(this&&this.script_){var r=this.script_;r&&r.tagName=="SCRIPT"&&Ggg(r,!0,this.timeout_)}};
Ggg=function(r,f,I){I!=null&&_.Yq.clearTimeout(I);r.onload=function(){};
r.onerror=function(){};
r.onreadystatechange=function(){};
f&&window.setTimeout(function(){_.bE(r)},0)};
kg4=function(r,f){var I="Jsloader error (code #"+r+")";f&&(I+=": "+f);_.fw.call(this,I);this.code=r};
_.rh(kg4,_.fw);var qQq=_.op(["https://apis.google.com/js/api.js"]),ulD=_.u_(qQq),Iys=function(r,f){var I=!1,C=DCX(r,f).then(function(V){I=!0;return V}),Y=_.W_D(5E3).then(function(){return I?DCX(r,f):rdB(f).then(function(V){return fy3(V,r)})});
return zUX([C,Y])},DCX=function(r,f){return ChU(f).then(function(I){return fy3(I,r)})},fy3=function(r,f){var I=_.xq(f,"gapi.")?f.slice(5):f;
return r[I]?_.fe(r[I]):new _.lz(function(C,Y){var V=NK(function(){Y(Error("bb"))},3E4);
r.load(f,{callback:function(){_.Yq.clearTimeout(V);C(r[I])},
onerror:function(S){_.Yq.clearTimeout(V);Y(S)}})})},ChU=function(r){return r.gapi&&r.gapi.load?_.fe(r.gapi):rdB(r)},rdB=function(r){return _.To(ulD,{document:r.document}).then(function(){return r.gapi})},YHT=function(){};
YHT.prototype.load=function(r,f){f=f===void 0?window:f;var I=Date.now();return Iys(r,f).then(function(C){var Y=Date.now();return{library:C,loadStartMs:I,loadEndMs:Y}},function(C){throw C instanceof Error?C:Error(String(C));
})};var Ntl=function(){_.Mu.call(this);this.gapiLoader_=new YHT;this.origin_=null;this.gapiPickerIframeResolver_=_.eu();this.gapiIframesResolver_=_.eu();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.t(Ntl,_.Mu);var lyC=function(r,f){var I=_.jH("gapi.iframes",f);return I?(r=Date.now(),_.fe({library:I,loadStartMs:r,loadEndMs:r})):r.gapiLoader_.load("gapi.iframes",f)},Vh3=function(r,f,I,C,Y,V){var S=!1;
S=S===void 0?!1:S;lyC(r,Pk(f.ownerDocument)).then(function(h){var w=h.library;r.gapiIframesResolver_.resolve(w);h=r.gapiPickerIframeResolver_;var n=h.resolve,d=S;d=d===void 0?!1:d;var z={};z["host-message-handler"]=I;r.hostMessageHandlerInternal_=z;var g=_.Hh(C);g=_.Hh(g);g=_.kk(_.Gh(_.Ze(new _.KA,g.scheme_),g.JSC$7932_domain_),g.JSC$7932_port_).toString();r.origin_=g;g=(new tb4).setUrl(C);g.JSC$7947_obj_.where=f;g.JSC$7947_obj_.allowPost=d;g.JSC$7947_obj_.messageHandlers=z;d=_.jH("makeWhiteListIframesFilter",
w)([r.origin_]);g.JSC$7947_obj_.messageHandlersFilter=d;Y!=null&&g.setId(Y);V!=null&&(g.JSC$7947_obj_.rpctoken=V);d=Pd4(g);d.JSC$7944_obj_.style={display:"block","min-width":"100%",width:"1px"};d.JSC$7944_obj_.height="100%";Pd4(g).value().allow="camera 'src' "+r.origin_;w=w.getContext().openChild(g.value());n.call(h,w)},function(h){r.gapiIframesResolver_.reject(h);
r.gapiPickerIframeResolver_.reject(h)});
return r.gapiPickerIframeResolver_.promise},EBD=function(r,f){return _.aP([r.gapiIframesResolver_.promise,
r.gapiPickerIframeResolver_.promise]).then(function(I){var C=_.E(I);I=C.next().value;return(C=C.next().value)?C.send("picker-message-handler",f,void 0,_.jH("makeWhiteListIframesFilter",I)([r.origin_])):_.h3(Error("cb"))})};
Ntl.prototype.disposeInternal=function(){SHT(this);_.Mu.prototype.disposeInternal.call(this)};
var SHT=function(r){r.gapiPickerIframeResolver_.promise.then(function(f){f&&(f.unregister("host-message-handler"),delete r.hostMessageHandlerInternal_["host-message-handler"])})};var xUq=function(){this.nextId=0};var wdU=function(r,f){switch(r.action){case "select-contacts":r=hGs(r.contacts);break;case "visibility":r=r.visible;var I=new qB;r=_.Js(I,1,7).setVisible(r);I={};I["iframe-command"]=r.serialize();r=I;break;default:r=null}return r?EBD(f,r):_.fe()},hGs=function(r){if(!r||r.length==0)return null;
var f=new qB;_.Js(f,1,11);var I=new xUq;r.forEach(function(C){if(C.email){var Y=new N2;Y=_.kU(Y,2,C.name?C.name:C.email);var V=new a$T;C=_.Eiu(V,1,_.vB,C.email,_.yV);C=_.CK(Y,27,C);Y=C.setId;V=(new so).setId(":"+(I.nextId++).toString(36));V=_.Js(V,2,12);C=Y.call(C,V)}else C=null;C&&xl(f,7,N2,C)});
r={};r["iframe-command"]=f.serialize();return r};_.bfV=function(){if(kV$){var r=/Windows NT ([0-9.]+)/;return(r=r.exec(_.Mc()))?r[1]:"0"}return _.GVc?(r=/1[0|1][_.][0-9_.]+/,(r=r.exec(_.Mc()))?r[0].replace(/_/g,"."):"10"):wzR?(r=/Android\s+([^\);]+)(\)|;)/,(r=r.exec(_.Mc()))?r[1]:""):qz$||ufl||DxK?(r=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(r=r.exec(_.Mc()))?r[1].replace(/_/g,"."):""):""}();var cz;cz=function(r){return(r=r.exec(_.Mc()))?r[1]:""};
_.pds=function(){if(_.Sg)return cz(/Firefox\/([0-9.]+)/);if(_.Yp||UH||Qec)return VEq;if(_.xp){if(_.RR()||_.nql()){var r=cz(/CriOS\/([0-9.]+)/);if(r)return r}return cz(/Chrome\/([0-9.]+)/)}if(_.Wd&&!_.RR())return cz(/Version\/([0-9.]+)/);if(c1R||W0d){if(r=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Mc()))return r[1]+"."+r[2]}else if(wxu)return(r=cz(/Android\s+([0-9.]+)/))?r:cz(/Version\/([0-9.]+)/);return""}();var nBD=function(){};
_.uO(nBD);nBD.prototype.nextId_=0;_.TN=function(r){return":"+(r.nextId_++).toString(36)};var Wz=function(r){_.zh.call(this);this.JSC$8042_dom_=r||ho();this.JSC$8042_id_=null;this.inDocument_=!1;this.JSC$8042_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.rh(Wz,_.zh);Wz.prototype.idGenerator_=nBD.getInstance();Wz.prototype.getId=function(){return this.JSC$8042_id_||(this.JSC$8042_id_=_.TN(this.idGenerator_))};
Wz.prototype.setId=function(r){this.parent_&&this.parent_.childIndex_&&(_.X0.remove(this.parent_.childIndex_,this.JSC$8042_id_),_.X0.add(this.parent_.childIndex_,r,this));this.JSC$8042_id_=r};
Wz.prototype.getElement=function(){return this.JSC$8042_element_};
var L$=function(r){r.googUiComponentHandler_||(r.googUiComponentHandler_=new _.B8(r));return r.googUiComponentHandler_},dUB=function(r,f){if(r==f)throw Error("db");
var I;if(I=f&&r.parent_&&r.JSC$8042_id_){I=r.parent_;var C=r.JSC$8042_id_;I=I.childIndex_&&C?_.X0.get(I.childIndex_,C)||null:null}if(I&&r.parent_!=f)throw Error("db");r.parent_=f;Wz.superClass_.setParentEventTarget.call(r,f)};
Wz.prototype.setParentEventTarget=function(r){if(this.parent_&&this.parent_!=r)throw Error("eb");Wz.superClass_.setParentEventTarget.call(this,r)};
Wz.prototype.JSC$8044_createDom=function(){this.JSC$8042_element_=this.JSC$8042_dom_.createElement("DIV")};
Wz.prototype.render=function(r){zG4(this,r)};
var zG4=function(r,f,I){if(r.inDocument_)throw Error("fb");r.JSC$8042_element_||r.JSC$8044_createDom();f?f.insertBefore(r.JSC$8042_element_,I||null):r.JSC$8042_dom_.JSC$7225_document_.body.appendChild(r.JSC$8042_element_);r.parent_&&!r.parent_.inDocument_||r.enterDocument()};
_.l=Wz.prototype;_.l.decorate=function(r){if(this.inDocument_)throw Error("fb");if(r&&this.canDecorate(r)){this.wasDecorated_=!0;var f=_.TZ(r);this.JSC$8042_dom_&&this.JSC$8042_dom_.JSC$7225_document_==f||(this.JSC$8042_dom_=ho(r));this.decorateInternal(r);this.enterDocument()}else throw Error("gb");};
_.l.canDecorate=function(){return!0};
_.l.decorateInternal=function(r){this.JSC$8042_element_=r};
_.l.enterDocument=function(){this.inDocument_=!0;MhD(this,function(r){!r.inDocument_&&r.getElement()&&r.enterDocument()})};
_.l.exitDocument=function(){MhD(this,function(r){r.inDocument_&&r.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.l.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);MhD(this,function(r){r.dispose()});
!this.wasDecorated_&&this.JSC$8042_element_&&_.bE(this.JSC$8042_element_);this.parent_=this.model_=this.JSC$8042_element_=this.childIndex_=this.children_=null;Wz.superClass_.disposeInternal.call(this)};
_.l.getModel=function(){return this.model_};
_.l.addChild=function(r,f){var I=this.children_?this.children_.length:0;if(r.inDocument_&&(f||!this.inDocument_))throw Error("fb");if(I<0||I>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);r.parent_==this?(_.X0.set(this.childIndex_,r.getId(),r),_.uU(this.children_,r)):_.X0.add(this.childIndex_,r.getId(),r);dUB(r,this);_.XuE(this.children_,I,0,r);r.inDocument_&&this.inDocument_&&r.parent_==this?(f=this.getContentElement(),
(f.childNodes[I]||null)!=r.getElement()&&(r.getElement().parentElement==f&&f.removeChild(r.getElement()),I=f.childNodes[I]||null,f.insertBefore(r.getElement(),I))):f?(this.JSC$8042_element_||this.JSC$8044_createDom(),I=this.children_?this.children_[I+1]||null:null,zG4(r,this.getContentElement(),I?I.JSC$8042_element_:null)):this.inDocument_&&!r.inDocument_&&r.JSC$8042_element_&&r.JSC$8042_element_.parentNode&&r.JSC$8042_element_.parentNode.nodeType==1&&r.enterDocument()};
_.l.getContentElement=function(){return this.JSC$8042_element_};
var MhD=function(r,f){r.children_&&r.children_.forEach(f,void 0)};
Wz.prototype.removeChild=function(r,f){if(r){var I=typeof r==="string"?r:r.getId();r=this.childIndex_&&I?_.X0.get(this.childIndex_,I)||null:null;I&&r&&(_.X0.remove(this.childIndex_,I),_.uU(this.children_,r),f&&(r.exitDocument(),r.JSC$8042_element_&&_.bE(r.JSC$8042_element_)),dUB(r,null))}if(!r)throw Error("ib");return r};_.rh(bzw,wwK);_.rh(pwR,wwK);var gBB;var ay4=function(r,f){f?r.setAttribute("role",f):r.removeAttribute("role")},ml=function(r,f,I){Array.isArray(I)&&(I=I.join(" "));
var C="aria-"+f;I===""||I==void 0?(gBB||(I={},gBB=(I.atomic=!1,I.autocomplete="none",I.dropeffect="none",I.haspopup=!1,I.live="off",I.multiline=!1,I.multiselectable=!1,I.orientation="vertical",I.readonly=!1,I.relevant="additions text",I.required=!1,I.sort="none",I.busy=!1,I.disabled=!1,I.hidden=!1,I.invalid="false",I)),I=gBB,f in I?r.setAttribute(C,I[f]):r.removeAttribute(C)):r.setAttribute(C,I)};var XdC;_.em=function(r,f,I){_.zh.call(this);this.target=r;this.handle=f||r;this.limits=I||new mY(NaN,NaN,NaN,NaN);this.JSC$8047_document_=_.TZ(r);this.JSC$8047_eventHandler_=new _.B8(this);_.V$(this,this.JSC$8047_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;_.S$(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=XdC};
_.rh(_.em,_.zh);XdC=_.Yq.document&&_.Yq.document.documentElement&&!!_.Yq.document.documentElement.setCapture&&!!_.Yq.document.releaseCapture;_.NlX=function(r,f){r.hysteresisDistanceSquared_=Math.pow(f,2)};
_.l=_.em.prototype;_.l.setEnabled=function(r){this.enabled_=r};
_.l.disposeInternal=function(){_.em.superClass_.disposeInternal.call(this);_.di(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8047_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8047_document_.releaseCapture();this.handle=this.target=null};
_.l.startDrag=function(r){var f=r.type=="mousedown";if(!this.enabled_||this.dragging_||f&&(r.event_.button!=0||_.GVc&&r.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new JB("start",this,r.clientX,r.clientY,r)))this.dragging_=!0,f&&r.preventDefault();else return;else f&&r.preventDefault();f=this.JSC$8047_document_;var I=f.documentElement,C=!this.useSetCapture_;this.JSC$8047_eventHandler_.listen(f,["touchmove","mousemove"],this.handleMove_,
{capture:C,passive:!1});this.JSC$8047_eventHandler_.listen(f,["touchend","mouseup"],this.endDrag,C);this.useSetCapture_?(I.setCapture(!1),this.JSC$8047_eventHandler_.listen(I,"losecapture",this.endDrag)):this.JSC$8047_eventHandler_.listen(Pk(f),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8047_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,C);this.clientX=this.startX=r.clientX;this.clientY=this.startY=r.clientY;this.screenX=r.screenX;this.screenY=r.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=xX(ho(this.JSC$8047_document_))}};
_.l.endDrag=function(r,f){this.JSC$8047_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8047_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new JB("end",this,r.clientX,r.clientY,r,$Ug(this,this.deltaX),FMs(this,this.deltaY),f||r.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.l.handleMove_=function(r){if(this.enabled_){var f=r.clientX-this.clientX,I=r.clientY-this.clientY;this.clientX=r.clientX;this.clientY=r.clientY;this.screenX=r.screenX;this.screenY=r.screenY;if(!this.dragging_){var C=this.startX-this.clientX,Y=this.startY-this.clientY;if(C*C+Y*Y>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new JB("start",this,r.clientX,r.clientY,r)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(r);return}}I=Phq(this,f,I);f=I.x;I=I.y;this.dragging_&&this.dispatchEvent(new JB("beforedrag",
this,r.clientX,r.clientY,r,f,I))&&(thg(this,r,f,I),r.preventDefault())}};
var Phq=function(r,f,I){var C=xX(ho(r.JSC$8047_document_));f+=C.x-r.pageScroll.x;I+=C.y-r.pageScroll.y;r.pageScroll=C;r.deltaX+=f;r.deltaY+=I;return new _.F0($Ug(r,r.deltaX),FMs(r,r.deltaY))};
_.em.prototype.onScroll_=function(r){var f=Phq(this,0,0);r.clientX=this.clientX;r.clientY=this.clientY;thg(this,r,f.x,f.y)};
var thg=function(r,f,I,C){r.target.style.left=I+"px";r.target.style.top=C+"px";r.dispatchEvent(new JB("drag",r,f.clientX,f.clientY,f,I,C))},$Ug=function(r,f){var I=r.limits;
r=isNaN(I.left)?null:I.left;I=isNaN(I.width)?0:I.width;return Math.min(r!=null?r+I:Infinity,Math.max(r!=null?r:-Infinity,f))},FMs=function(r,f){var I=r.limits;
r=isNaN(I.top)?null:I.top;I=isNaN(I.height)?0:I.height;return Math.min(r!=null?r+I:Infinity,Math.max(r!=null?r:-Infinity,f))};
_.em.prototype.isDragging=function(){return this.dragging_};
var JB=function(r,f,I,C,Y,V,S){_.wi.call(this,r);this.clientX=I;this.clientY=C;this.browserEvent=Y;this.left=V!==void 0?V:f.deltaX;this.top=S!==void 0?S:f.deltaY};
_.rh(JB,_.wi);var jm=function(r){this.JSC$8054_map_=new Map;var f=arguments.length;if(f>1){if(f%2)throw Error("oa");for(var I=0;I<f;I+=2)this.set(arguments[I],arguments[I+1])}else r&&this.addAll(r)};
_.l=jm.prototype;_.l.getCount=function(){return this.JSC$8054_map_.size};
_.l.getValues=function(){return Array.from(this.JSC$8054_map_.values())};
_.l.getKeys=function(){return Array.from(this.JSC$8054_map_.keys())};
_.l.containsKey=function(r){return this.JSC$8054_map_.has(r)};
_.l.containsValue=function(r){return this.getValues().some(function(f){return f==r})};
_.l.equals=function(r,f){var I=this;f=f===void 0?function(C,Y){return C===Y}:f;
return this===r?!0:this.JSC$8054_map_.size!=r.getCount()?!1:this.getKeys().every(function(C){return f(I.JSC$8054_map_.get(C),r.get(C))})};
_.l.isEmpty=function(){return this.JSC$8054_map_.size==0};
_.l.clear=function(){this.JSC$8054_map_.clear()};
_.l.remove=function(r){return this.JSC$8054_map_.delete(r)};
_.l.get=function(r,f){return this.JSC$8054_map_.has(r)?this.JSC$8054_map_.get(r):f};
_.l.set=function(r,f){this.JSC$8054_map_.set(r,f);return this};
_.l.addAll=function(r){if(r instanceof jm){r=_.E(r.JSC$8054_map_);for(var f=r.next();!f.done;f=r.next()){var I=_.E(f.value);f=I.next().value;I=I.next().value;this.JSC$8054_map_.set(f,I)}}else if(r)for(r=_.E(Object.entries(r)),f=r.next();!f.done;f=r.next())I=_.E(f.value),f=I.next().value,I=I.next().value,this.JSC$8054_map_.set(f,I)};
_.l.forEach=function(r,f){var I=this;f=f===void 0?this:f;this.JSC$8054_map_.forEach(function(C,Y){return r.call(f,C,Y,I)})};
_.l.clone=function(){return new jm(this)};(function(){for(var r=["ms","moz","webkit","o"],f,I=0;f=r[I]&&!_.Yq.requestAnimationFrame;++I)_.Yq.requestAnimationFrame=_.Yq[f+"RequestAnimationFrame"],_.Yq.cancelAnimationFrame=_.Yq[f+"CancelAnimationFrame"]||_.Yq[f+"CancelRequestAnimationFrame"];if(!_.Yq.requestAnimationFrame){var C=0;_.Yq.requestAnimationFrame=function(Y){var V=(new Date).getTime(),S=Math.max(0,16-(V-C));C=V+S;return _.Yq.setTimeout(function(){Y(V+S)},S)};
_.Yq.cancelAnimationFrame||(_.Yq.cancelAnimationFrame=function(Y){clearTimeout(Y)})}})();
var Tl_=[[],[]],cdV=0,WM4=!1,LMs=0,eGV=function(r,f){var I=LMs++,C={measureTask:{id:I,fn:r.measure,context:f},mutateTask:{id:I,fn:r.mutate,context:f},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(C.args||(C.args=[]),C.args.length=0,C.args.push.apply(C.args,arguments),C.args.push(C.state)):C.args&&C.args.length!=0?(C.args[0]=C.state,C.args.length=1):C.args=[C.state];C.isScheduled||(C.isScheduled=!0,Tl_[cdV].push(C));WM4||(WM4=!0,window.requestAnimationFrame(mUs))}},mUs=
function(){WM4=!1;
var r=Tl_[cdV],f=r.length;cdV=(cdV+1)%2;for(var I,C=0;C<f;++C){I=r[C];var Y=I.measureTask;I.isScheduled=!1;Y.fn&&Y.fn.apply(Y.context,I.args)}for(C=0;C<f;++C)I=r[C],Y=I.mutateTask,I.isScheduled=!1,Y.fn&&Y.fn.apply(Y.context,I.args),I.state={};r.length=0};var Jd4=_.op(["about:blank"]),j1_=_.op(["javascript:undefined"]),HfV=_.u_(Jd4);_.x1(HfV);var ifD=_.u_(j1_);_.x1(ifD);var Hz=function(r){_.zh.call(this);this.JSC$8060_element_=r;this.listenKeyIn_=_.S$(this.JSC$8060_element_,"focus",this,!0);this.listenKeyOut_=_.S$(this.JSC$8060_element_,"blur",this,!0)};
_.rh(Hz,_.zh);Hz.prototype.handleEvent=function(r){var f=new _.bl(r.event_);f.type=r.type=="focusin"||r.type=="focus"?"focusin":"focusout";this.dispatchEvent(f)};
Hz.prototype.disposeInternal=function(){Hz.superClass_.disposeInternal.call(this);lT(this.listenKeyIn_);lT(this.listenKeyOut_);delete this.JSC$8060_element_};var RG3=function(r,f){this.JSC$8063_element_=r;this.JSC$8063_dom_=f};var iI=function(r,f){Wz.call(this,f);this.useIframeMask_=!!r;this.lastFocus_=null;this.resizeBackgroundTask_=eGV({mutate:this.resizeBackground_},this);eGV({mutate:this.updateModalAndBackground_},this)};
_.rh(iI,Wz);_.l=iI.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$8044_createDom=function(){iI.superClass_.JSC$8044_createDom.call(this);var r=this.getElement(),f=dR(this.getCssClass()).split(" ");v7(r,f);r.tabIndex=0;_.vh(r,!1);vBC(this);KMs(this)};
var vBC=function(r){if(r.useIframeMask_&&!r.bgIframeEl_){var f=r.JSC$8042_dom_.JSC$7227_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.LK(f,HfV);r.bgIframeEl_=f;r.bgIframeEl_.className=r.getCssClass()+"-bg";_.vh(r.bgIframeEl_,!1);viB(r.bgIframeEl_,0)}r.bgEl_||(r.bgEl_=r.JSC$8042_dom_.JSC$7227_createDom("DIV",r.getCssClass()+"-bg"),_.vh(r.bgEl_,!1))},KMs=function(r){r.tabCatcherElement_||(r.tabCatcherElement_=r.JSC$8042_dom_.createElement("SPAN"),_.vh(r.tabCatcherElement_,
!1),r.tabCatcherElement_.tabIndex=0,r.tabCatcherElement_.style.position="absolute")};
_.l=iI.prototype;_.l.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.l.canDecorate=function(r){return!!r&&r.tagName=="DIV"};
_.l.decorateInternal=function(r){iI.superClass_.decorateInternal.call(this,r);r=dR(this.getCssClass()).split(" ");v7(this.getElement(),r);vBC(this);KMs(this);this.getElement().tabIndex=0;_.vh(this.getElement(),!1)};
_.l.enterDocument=function(){this.bgIframeEl_&&_.T1(this.bgIframeEl_,this.getElement());_.T1(this.bgEl_,this.getElement());iI.superClass_.enterDocument.call(this);_.cY(this.tabCatcherElement_,this.getElement());this.focusHandler_=new Hz(this.JSC$8042_dom_.JSC$7225_document_);L$(this).listen(this.focusHandler_,"focusin",this.onFocus);yd4(this,!1)};
_.l.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Z8(this.focusHandler_);iI.superClass_.exitDocument.call(this);_.bE(this.bgIframeEl_);_.bE(this.bgEl_);_.bE(this.tabCatcherElement_)};
_.l.setVisible=function(r){if(r!=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_&&yd4(this,r),r){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8042_dom_.JSC$7225_document_.activeElement}catch(Y){}this.updateModalAndBackground_();L$(this).listen(this.JSC$8042_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8042_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);UU4(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)YY(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){L$(this).unlisten(this.JSC$8042_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8042_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)YY(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var f=this.JSC$8042_dom_,I=f.JSC$7225_document_.body,C=f.JSC$7225_document_.activeElement||I;if(!this.lastFocus_||this.lastFocus_==I){this.lastFocus_=null;break a}(C==I||f.contains(this.getElement(),C))&&this.lastFocus_.focus()}catch(Y){}this.lastFocus_=
null}}};
var yd4=function(r,f){r.modalAriaVisibilityHelper_||(r.modalAriaVisibilityHelper_=new RG3(r.JSC$8042_element_,r.JSC$8042_dom_));r=r.modalAriaVisibilityHelper_;if(f){r.hiddenElements_||(r.hiddenElements_=[]);f=r.JSC$8063_dom_.getChildren(r.JSC$8063_dom_.JSC$7225_document_.body);for(var I=0;I<f.length;I++){var C=f[I],Y;if(Y=C!=r.JSC$8063_element_)Y=C.getAttribute("aria-hidden"),Y=!(Y==null||Y==void 0?0:String(Y));Y&&(ml(C,"hidden",!0),r.hiddenElements_.push(C))}}else if(r.hiddenElements_){for(f=0;f<
r.hiddenElements_.length;f++)r.hiddenElements_[f].removeAttribute("aria-hidden");r.hiddenElements_=null}};
iI.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var UU4=function(r,f){r.bgIframeEl_&&_.vh(r.bgIframeEl_,f);r.bgEl_&&_.vh(r.bgEl_,f);_.vh(r.getElement(),f);_.vh(r.tabCatcherElement_,f)};
_.l=iI.prototype;_.l.onShow=function(){this.dispatchEvent("show")};
_.l.onHide=function(){UU4(this,!1);this.dispatchEvent("hide")};
_.l.isVisible=function(){return this.visible_};
_.l.focus=function(){this.focusElement_()};
_.l.resizeBackground_=function(){this.bgIframeEl_&&_.vh(this.bgIframeEl_,!1);this.bgEl_&&_.vh(this.bgEl_,!1);var r=this.JSC$8042_dom_.JSC$7225_document_;var f=_.Sj(Pk(this.JSC$8042_dom_.JSC$7225_document_)||window);var I=Math.max(f.width,Math.max(r.body.scrollWidth,r.documentElement.scrollWidth));r=Math.max(f.height,Math.max(r.body.scrollHeight,r.documentElement.scrollHeight));this.bgIframeEl_&&(_.vh(this.bgIframeEl_,!0),_.jYU(this.bgIframeEl_,I,r));this.bgEl_&&(_.vh(this.bgEl_,!0),_.jYU(this.bgEl_,
I,r))};
_.l.reposition=function(){var r;if(_.JUg(this.getElement())=="fixed")var f=r=0;else f=xX(this.JSC$8042_dom_),r=f.x,f=f.y;var I=iq8(this.getElement());var C=_.Sj(Pk(this.JSC$8042_dom_.JSC$7225_document_)||window);r=Math.max(r+C.width/2-I.width/2,0);f=Math.max(f+C.height/2-I.height/2,0);j2(this.getElement(),r,f);j2(this.tabCatcherElement_,r,f)};
_.l.onFocus=function(r){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():r.target==this.tabCatcherElement_&&NK(this.focusElement_,0,this)};
_.l.focusElement_=function(){try{this.getElement().focus()}catch(r){}};
_.l.disposeInternal=function(){_.Z8(this.popupShowTransition_);this.popupShowTransition_=null;_.Z8(this.popupHideTransition_);this.popupHideTransition_=null;_.Z8(this.bgShowTransition_);this.bgShowTransition_=null;_.Z8(this.bgHideTransition_);this.bgHideTransition_=null;iI.superClass_.disposeInternal.call(this)};var ch=function(r,f,I){iI.call(this,f,I);this.JSC$8073_class_=r||"modal-dialog";this.buttons_=(new RH).addButton(s1B,!0).addButton(Of8,!1,!0)};
_.rh(ch,iI);_.l=ch.prototype;_.l.escapeToCancel_=!0;_.l.hasTitleCloseButton_=!0;_.l.modal_=!0;_.l.draggable_=!0;_.l.backgroundElementOpacity_=.5;_.l.title_="";_.l.JSC$8075_dragger_=null;_.l.JSC$8075_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$8073_class_};
_.l.setTitle=function(r){this.title_=r;this.titleTextEl_&&_.L9(this.titleTextEl_,r)};
_.l.getTitle=function(){return this.title_};
_.l.getContent=function(){return""};
_.l.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var oBB=function(r){r.getElement()||r.render();return r.getElement()};
ch.prototype.getBackgroundElement=function(){this.getElement()||this.render();return ch.superClass_.getBackgroundElement.call(this)};
var Q1s=function(r,f){r.backgroundElementOpacity_=f;r.getElement()&&(f=r.getBackgroundElement())&&viB(f,r.backgroundElementOpacity_)};
ch.prototype.setDraggable=function(r){this.draggable_=r;Ad3(this,r&&this.inDocument_)};
ch.prototype.JSC$8075_handleDrag=function(){};
var Ad3=function(r,f){var I=dR(r.JSC$8073_class_+"-title-draggable").split(" ");r.getElement()&&(f?v7(r.titleEl_,I):$uX(r.titleEl_,I));f&&!r.JSC$8075_dragger_?(f=new _.em(r.getElement(),r.titleEl_),r.JSC$8075_dragger_=f,v7(r.titleEl_,I),_.S$(r.JSC$8075_dragger_,"start",r.setDraggerLimits_,!1,r),_.S$(r.JSC$8075_dragger_,"drag",r.JSC$8075_handleDrag,!1,r)):!f&&r.JSC$8075_dragger_&&(r.JSC$8075_dragger_.dispose(),r.JSC$8075_dragger_=null)};
_.l=ch.prototype;
_.l.JSC$8044_createDom=function(){ch.superClass_.JSC$8044_createDom.call(this);var r=this.getElement(),f=this.JSC$8042_dom_;this.titleTextId_=this.getId();var I=this.getId()+".contentEl";this.titleEl_=f.JSC$7227_createDom("DIV",this.JSC$8073_class_+"-title",this.titleTextEl_=f.JSC$7227_createDom("SPAN",{className:this.JSC$8073_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=f.JSC$7227_createDom("SPAN",this.JSC$8073_class_+"-title-close"));pBV(r,this.titleEl_,this.contentEl_=
f.JSC$7227_createDom("DIV",{className:this.JSC$8073_class_+"-content",id:I}),this.buttonEl_=f.JSC$7227_createDom("DIV",this.JSC$8073_class_+"-buttons"));ay4(this.titleTextEl_,"heading");ay4(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;ml(this.titleCloseEl_,"label","Close");ay4(r,"dialog");ml(r,"labelledby",this.titleTextId_||"");_.vh(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(r=this.buttons_,r.JSC$8076_element_=this.buttonEl_,r.render());_.vh(this.buttonEl_,!!this.buttons_);
Q1s(this,this.backgroundElementOpacity_)};
_.l.decorateInternal=function(r){ch.superClass_.decorateInternal.call(this,r);r=this.getElement();var f=this.JSC$8073_class_+"-content";this.contentEl_=XW(document,null,f,r)[0];this.contentEl_||(this.contentEl_=this.JSC$8042_dom_.JSC$7227_createDom("DIV",f),r.appendChild(this.contentEl_));f=this.JSC$8073_class_+"-title";var I=this.JSC$8073_class_+"-title-text",C=this.JSC$8073_class_+"-title-close";(this.titleEl_=XW(document,null,f,r)[0])?(this.titleTextEl_=XW(document,null,I,this.titleEl_)[0],this.titleCloseEl_=
XW(document,null,C,this.titleEl_)[0]):(this.titleEl_=this.JSC$8042_dom_.JSC$7227_createDom("DIV",f),r.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=cU4(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.$2("SPAN",{className:I,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;ml(r,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8042_dom_.JSC$7227_createDom("SPAN",
C),this.titleEl_.appendChild(this.titleCloseEl_));_.vh(this.titleCloseEl_,this.hasTitleCloseButton_);f=this.JSC$8073_class_+"-buttons";(this.buttonEl_=XW(document,null,f,r)[0])?(this.buttons_=new RH(this.JSC$8042_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8042_dom_.JSC$7227_createDom("DIV",f),r.appendChild(this.buttonEl_),this.buttons_&&(r=this.buttons_,r.JSC$8076_element_=this.buttonEl_,r.render()),_.vh(this.buttonEl_,!!this.buttons_));Q1s(this,this.backgroundElementOpacity_)};
_.l.enterDocument=function(){ch.superClass_.enterDocument.call(this);L$(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);L$(this).listen(this.buttonEl_,"click",this.onButtonClick_);Ad3(this,this.draggable_);L$(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var r=this.getElement();ay4(r,"dialog");this.titleTextEl_.id!==""&&ml(r,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){r=this.JSC$8042_dom_;
var f=this.getBackgroundElement();r.removeNode(this.bgIframeEl_);r.removeNode(f)}this.isVisible()&&yd4(this,!1)}};
_.l.exitDocument=function(){this.isVisible()&&this.setVisible(!1);Ad3(this,!1);ch.superClass_.exitDocument.call(this)};
_.l.setVisible=function(r){r!=this.isVisible()&&(this.inDocument_||this.render(),ch.superClass_.setVisible.call(this,r))};
_.l.onShow=function(){ch.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.l.onHide=function(){ch.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8075_disposeOnHide_&&this.dispose()};
_.l.setDraggerLimits_=function(){var r=this.JSC$8042_dom_.JSC$7225_document_,f=_.Sj(Pk(r)||window),I=Math.max(r.body.scrollWidth,f.width);r=Math.max(r.body.scrollHeight,f.height);var C=iq8(this.getElement());_.JUg(this.getElement())=="fixed"?this.JSC$8075_dragger_.limits=new mY(0,0,Math.max(0,f.width-C.width),Math.max(0,f.height-C.height)):this.JSC$8075_dragger_.limits=new mY(0,0,I-C.width,r-C.height)};
_.l.onTitleCloseClick_=function(){Zfs(this)};
var Zfs=function(r){if(r.hasTitleCloseButton_){var f=r.buttons_,I=f&&f.cancelButton_;I?(f=f.get(I),r.dispatchEvent(new vz(I,f))&&r.setVisible(!1)):r.setVisible(!1)}},GUU=function(r){r.hasTitleCloseButton_=!1;
r.titleCloseEl_&&_.vh(r.titleCloseEl_,r.hasTitleCloseButton_)};
ch.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;ch.superClass_.disposeInternal.call(this)};
ch.prototype.onButtonClick_=function(r){a:{for(r=r.target;r!=null&&r!=this.buttonEl_;){if(r.tagName=="BUTTON")break a;r=r.parentNode}r=null}if(r&&!r.disabled){r=r.name;var f=this.buttons_.get(r);this.dispatchEvent(new vz(r,f))&&this.setVisible(!1)}};
ch.prototype.onKey_=function(r){var f=!1,I=!1,C=this.buttons_,Y=r.target;if(r.type=="keydown")if(this.escapeToCancel_&&r.keyCode==27){var V=C&&C.cancelButton_;Y=Y.tagName=="SELECT"&&!Y.disabled;V&&!Y?(I=!0,f=C.get(V),f=this.dispatchEvent(new vz(V,f))):Y||(f=!0)}else{if(r.keyCode==9&&r.shiftKey&&Y==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(d){}NK(this.resetBackwardTabWrap_,0,this)}}else if(r.keyCode==13){if(Y.tagName=="BUTTON"&&!Y.disabled)V=Y.name;
else if(Y==this.titleCloseEl_)Zfs(this);else if(C){var S=C.defaultButton_,h;if(h=S)a:{h=pX("BUTTON",C.JSC$8076_element_);for(var w,n=0;w=h[n];n++)if(w.name==S||w.id==S){h=w;break a}h=null}Y=(Y.tagName=="TEXTAREA"||Y.tagName=="SELECT"||Y.tagName=="A")&&!Y.disabled;!h||h.disabled||Y||(V=S)}V&&C&&(I=!0,f=this.dispatchEvent(new vz(V,String(C.get(V)))))}else Y!=this.titleCloseEl_||r.keyCode!=32&&r.key!=" "||Zfs(this);if(f||I)r.stopPropagation(),r.preventDefault();f&&this.setVisible(!1)};
var vz=function(r,f){this.type="dialogselect";this.key=r;this.caption=f};
_.rh(vz,_.wi);var RH=function(r){jm.call(this);r||ho();this.cancelButton_=this.JSC$8076_element_=this.defaultButton_=null};
_.rh(RH,jm);_.l=RH.prototype;_.l.clear=function(){jm.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.l.set=function(r,f,I,C){jm.prototype.set.call(this,r,f);I&&(this.defaultButton_=r);C&&(this.cancelButton_=r);return this};
_.l.addButton=function(r,f,I){return this.set(r.key,r.caption,f,I)};
_.l.render=function(){if(this.JSC$8076_element_){_.KK(this.JSC$8076_element_,tH$);var r=ho(this.JSC$8076_element_);this.forEach(function(f,I){f=r.JSC$7227_createDom("BUTTON",{name:I},f);I==this.defaultButton_&&(f.className="goog-buttonset-default");this.JSC$8076_element_.appendChild(f)},this)}};
_.l.decorate=function(r){if(r&&r.nodeType==1){this.JSC$8076_element_=r;r=pX("BUTTON",this.JSC$8076_element_);for(var f,I,C,Y=0;f=r[Y];Y++)if(I=f.name||f.id,C=cU4(f)||f.value,I){var V=Y==0;this.set(I,C,V,f.name=="cancel");V&&_.j$(f,"goog-buttonset-default")}}};
_.l.getElement=function(){return this.JSC$8076_element_};
var s1B={key:"ok",caption:"OK"},Of8={key:"cancel",caption:"Cancel"},kU_={key:"yes",caption:"Yes"},BlU={key:"no",caption:"No"},qHU={key:"save",caption:"Save"},u84={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new RH).addButton(s1B,!0,!0),(new RH).addButton(s1B,!0).addButton(Of8,!1,!0),(new RH).addButton(kU_,!0).addButton(BlU,!1,!0),(new RH).addButton(kU_).addButton(BlU,!0).addButton(Of8,!1,!0),(new RH).addButton(u84).addButton(qHU).addButton(Of8,!0,!0));_.rh(nEP,ch);_.rh(dCR,Wh);var DU_=_.op(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),rVs=_.op(["//apis.google.com/js/rpc.js"]),PkR=_.u_(DU_),FOw=_.u_(rVs),MHu=null;var LX=function(r,f){_.zh.call(this);this.JSC$8085_element_=r;r=_.Uj(this.JSC$8085_element_)?this.JSC$8085_element_:this.JSC$8085_element_?this.JSC$8085_element_.body:null;this.isRtl_=!!r&&_.K6X(r);this.listenKey_=_.S$(this.JSC$8085_element_,_.lf?"DOMMouseScroll":"mousewheel",this,f)};
_.rh(LX,_.zh);LX.prototype.handleEvent=function(r){var f=0,I=0,C=r.event_;C.type=="mousewheel"?(r=fss(-C.wheelDelta),C.wheelDeltaX!==void 0?(f=fss(-C.wheelDeltaX),I=fss(-C.wheelDeltaY)):I=r):(r=C.detail,r>100?r=3:r<-100&&(r=-3),C.axis!==void 0&&C.axis===C.HORIZONTAL_AXIS?f=r:I=r);typeof this.maxDeltaX_==="number"&&(f=_.my(f,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(I=_.my(I,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(f=-f);f=new IsB(r,C,f,I);this.dispatchEvent(f)};
var fss=function(r){return _.VF&&(_.GVc||BEB)&&r%40!=0?r:r/40};
LX.prototype.disposeInternal=function(){LX.superClass_.disposeInternal.call(this);lT(this.listenKey_);this.listenKey_=null};
var IsB=function(r,f,I,C){_.bl.call(this,f);this.type="mousewheel";this.detail=r;this.deltaX=I;this.deltaY=C};
_.rh(IsB,_.bl);_.CG=function(r){var f="instance_";if(r.instance_&&r.hasOwnProperty(f))return r.instance_;f=new r;return r.instance_=f};var $Cm;var Cxg=_.op(["https://about:blank"]),Yj4=_.op(['javascript:""']),ls8=_.op(["about:blank"]);_.rh(KX,nEP);_.l=KX.prototype;_.l.JSC$8093_url_="";_.l.JSC$8093_iframe_=null;_.l.iframeLoaded_=!1;_.l.loadedFired_=!1;_.l.callback_=function(){};
_.l.enterDocument=function(){KX.superClass_.enterDocument.call(this);XwK(this.getBackgroundElement(),L$(this))};
_.l.render=function(r){var f=this;KX.superClass_.render.call(this,r);this.useGapi_?lyC(this.iframeManager_,window).then(function(){return VMV(f)}).then(null,function(){f.callback_({action:"error"})}):EoT(this)};
var VMV=function(r){var f=r.JSC$8042_dom_.JSC$7227_createDom("div",["picker-dialog-content","picker-frame"]);_.vh(f,!1);r.getContentElement().appendChild(f);return Vh3(r.iframeManager_,f,function(I){var C=jMX(I["iframe-command"]);switch(C.getCommand()){case 1:I=r.callback_;C=_.kB(C,BY,2);var Y="";switch(C.getStatus()){case 2:Y="cancel";break;case 1:Y="picked";break;case 3:Y="error"}var V=_.Bk(C,N2,2,_.qS(Xxw));C=V.length===0?{action:Y}:UC8(V,Y,_.kB(C,me3,7));I.call(r,C);r.setVisible(!1);break;case 4:GUU(r);
r.callback_({action:"loaded"});break;case 7:case 8:I=r.callback_;a:{Y=C.getCommand();V=_.kB(C,BY,2);switch(Y){case 7:Y="uploadScheduled";break;case 8:Y="uploadStateChange";break;default:C={};break a}C=_.Bk(V,N2,2,_.qS(Xxw));if(C.length===0)C={action:Y};else{var S=_.kB(V,me3,7);V=S&&_.Tb(S,1);S=LO3(S);C=Jn3(C,Y,V,S)}}I.call(r,C)}},r.JSC$8093_url_,r.targetId_,r.rpcToken_).then(function(I){r.JSC$8093_iframe_=I.getIframeEl();
Sj3(r);_.vh(r.JSC$8093_iframe_.parentElement,!0);_.j$(r.getElement(),"picker-dialog");x4q(r);return I})},EoT=function(r){r.JSC$8093_iframe_=r.JSC$8042_dom_.JSC$7227_createDom("IFRAME",{id:r.targetId_,
name:r.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.LK(r.JSC$8093_iframe_,h9C(r));_.j$(r.getElement(),"picker-dialog");r.getContentElement().appendChild(r.JSC$8093_iframe_);L$(r).listen(r.JSC$8093_iframe_,"load",function(){return void Sj3(r)});
r.JSC$8093_iframe_.src=r.JSC$8093_url_;x4q(r)},bW4=function(r){wWq(r,(0,_.gL)(function(f){f.setAuthToken(this.targetId_,this.rpcToken_)},r))},x4q=function(r){var f=_.iE(_.Hh(r.JSC$8093_url_),"title");
f&&r.setTitle(f)},h9C=function(r){return _.wuU("Internet Explorer")>=7&&_.xq(r.JSC$8093_url_,"https")?_.u_(Cxg):_.Yp?_.u_(Yj4):_.u_(ls8)},Sj3=function(r){bW4(r);
r.iframeLoaded_=!0;r.JSC$8093_iframe_.tabIndex=0;r.isVisible()&&r.focus()};
KX.prototype.handleKeydown_=function(r){r.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),r.stopPropagation(),r.preventDefault())};
var wWq=function(r,f){var I=r.JSC$8091_gadgetsDomHelper_;gEP(function(){f(I.getWindow().gadgets.rpc)},I)};
KX.prototype.setUrl=function(r){r=_.RZ(new _.KA(r),"rpcService",this.targetId_);_.RZ(r,"rpctoken",this.rpcToken_);_.ul(r,"rpctoken="+this.rpcToken_);_.Ze(r,"https");this.JSC$8093_url_=r.toString();this.JSC$8093_iframe_&&(this.JSC$8093_iframe_.src=this.JSC$8093_url_)};
var pWg=function(r,f){r.callback_=f;wWq(r,(0,_.gL)(function(I){I.register(this.targetId_,(0,_.gL)(this.handlePickerAction_,this))},r))};
KX.prototype.handlePickerAction_=function(r){var f=r.action;f=="loaded"&&(this.loadedFired_=!0,noB(this,new pwR(this.isVisible())),d4X(this),GUU(this),L$(this).unlisten(this.JSC$8042_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8093_iframe_.tabIndex=0);f!="picked"&&f!="cancel"||this.setVisible(!1);this.callback_(r)};
var d4X=function(r){r.JSC$8093_appId_&&noB(r,new bzw(r.JSC$8093_appId_,window.location.protocol+"//"+window.location.host))};
KX.prototype.setRelayUrl=function(r){wWq(this,(0,_.gL)(function(f){f.setRelayUrl(this.targetId_,r)},this))};
var noB=function(r,f){r.useGapi_&&wdU(f,r.iframeManager_).then(null,function(){r.callback_({action:"error"})});
wWq(r,(0,_.gL)(function(I){I.call(this.targetId_,"picker",null,f)},r))};
KX.prototype.resizePicker_=function(){var r=Pk(this.JSC$8042_dom_.JSC$7225_document_)||window;if(_.iE(_.Hh(this.JSC$8093_url_),"ignoreLimits")=="true")r=new _.EZ(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.iE(_.Hh(this.JSC$8093_url_),"shadeDialog")=="true"){var f=oBB(this);f=yU4(f);var I=_.Sj(r);r=I.width-80;I=I.height-40;f&&(r-=f.left?f.left:0,r-=f.right?f.right:0,I-=f.top?f.top:0,I-=f.bottom?f.bottom:0);r=new _.EZ(r>0?r:0,I>0?I:0)}else(f=this.preferredDialogWidth_)?(f=Math.max(320,
Math.min(1051,f)),(I=this.preferredDialogHeight_)||(I=_.Sj(r).height*.85),I=Math.max(480,Math.min(650,I))):(f=_.Sj(r),I=f.width*.618,I=I<f.height?Math.round(Math.max(480,Math.min(650,I*.85))):Math.round(Math.max(480,Math.min(650,f.height*.85))),f=Math.round(I/.618)),r=_.Sj(r),f=Math.min(f,Math.max(r.width,320)),I=Math.min(I,Math.max(r.height,480)),r=new _.EZ(f,I);_.jYU(this.getContentElement(),r);this.reposition()};
KX.prototype.reposition=function(){if(_.iE(_.Hh(this.JSC$8093_url_),"shadeDialog")=="true"){var r=iq8(this.getElement()),f=_.Sj(this.JSC$8042_dom_.getWindow());r=Math.floor(f.width/2-r.width/2);f=oBB(this);if(f=yU4(f)){var I=f.left?f.left:0;I+=f.right?f.right:0;r=Math.floor(r-I/2)}r=r>0?r:0;f=xX(this.JSC$8042_dom_).y;j2(this.getElement(),r,f)}else KX.superClass_.reposition.call(this)};
KX.prototype.setVisible=function(r){if(r!=this.isVisible()&&this.autoSizeDialog_){var f=this.JSC$8042_dom_.getWindow();r?(this.resizePicker_(),L$(this).listen(f,"resize",this.resizePicker_),this.iframeLoaded_||L$(this).listen(f,"keydown",this.handleKeydown_)):(L$(this).unlisten(f,"resize",this.resizePicker_),this.iframeLoaded_||L$(this).unlisten(f,"keydown",this.handleKeydown_))}KX.superClass_.setVisible.call(this,r);noB(this,new pwR(r))};
KX.prototype.focus=function(){KX.superClass_.focus.call(this);if(this.JSC$8093_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8093_iframe_.focus()}catch(r){}};var w_=function(r,f){f=f===void 0?KX:f;Wh.call(this,r);this.pickerConstructor=f;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(r=window.location.origin)||(r=window.location.protocol+"//"+window.location.host);r&&this.urlParamMap_.set("origin",r);this.postProcessors_=[]};
_.t(w_,dCR);w_.prototype.JSC$8098_disposeOnHide_=!1;
w_.prototype.build=function(){this.JSC$7999_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$7999_appId_);this.getRelayUrl()||this.setRelayUrl(_.B7(_.ul(_.qK(_.Hh(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var r=new this.pickerConstructor(z9X(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);r.JSC$8075_disposeOnHide_=this.JSC$8098_disposeOnHide_;
r.JSC$8093_appId_=this.JSC$7999_appId_;r.loadedFired_&&d4X(r);pWg(r,this.callback_);return r};
var MMB=function(r){r.urlParamMap_.set("multiselectEnabled","true");return r};
w_.prototype.getHeight=function(){return this.dialogHeight_};
w_.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
w_.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
w_.prototype.getWidth=function(){return this.dialogWidth_};
var goX=function(r){r.JSC$8098_disposeOnHide_=void 0;return r};
w_.prototype.setRelayUrl=function(r){this.urlParamMap_.set("parent",r);return this};
var as4=function(r,f){r.urlParamMap_.set("selectButtonLabel",f);return r};
w_.prototype.setSize=function(r,f){this.dialogWidth_=r;this.dialogHeight_=f;return this};
w_.prototype.setTitle=function(r){this.urlParamMap_.set("title",r);return this};
var z9X=function(r){r.postProcessors_.length&&r.urlParamMap_.set("pp",JSON.stringify(r.postProcessors_));r.urlParamMap_.set("nav",tHX(r.nav_));var f=new _.KA(r.getBaseUrl());r.urlParamMap_.forEach(function(I,C){_.RZ(f,C,I)});
return f};var $4T=function(r,f){r.name!==void 0?(this.name=r.name,this.code=XWq[r.name]):(this.code=r=r.code,this.name=NU3(r));_.fw.call(this,BRT("%s %s",this.name,f))};
_.rh($4T,_.fw);var NU3=function(r){var f=_.X0.findKey(XWq,function(I){return r==I});
if(f===void 0)throw Error("lb`"+r);return f},K$={},XWq=(K$.AbortError=3,K$.EncodingError=5,K$.InvalidModificationError=9,K$.InvalidStateError=7,K$.NotFoundError=1,K$.NotReadableError=4,K$.NoModificationAllowedError=6,K$.PathExistsError=12,K$.QuotaExceededError=10,K$.SecurityError=2,K$.SyntaxError=8,K$.TypeMismatchError=11,K$);var F83=function(r,f){_.wi.call(this,r.type,f);this.event_=r};
_.rh(F83,_.wi);var Px3=function(r,f,I){I===void 0&&(I=r.size);return r.slice?r.slice(f,I):null};var cnq=new WeakMap,Ttm=function(r,f){r=[r];for(var I=f.length-1;I>=0;--I)r.push(typeof f[I],f[I]);return r.join("\v")};_.LOK(function(){if(!_.Yq.Blob)return!1;var r=new Uint8Array(100);try{var f=new Blob([r])}catch(I){return!1}return f.size!=100?!1:!0});
var tMX=_.LOK(function(){if(!_.Yq.Blob)return!1;var r=new Uint8Array(100);try{var f=new Blob([r])}catch(I){return!1}return Px3(f,0,1)===null?!1:!0});_.Yq.U3bHHf!=null||(_.Yq.U3bHHf=0);_.Yq.U3bHHf++;var eSE={};var OD=void 0;var jvl=Symbol("tb");var AnE=Q$("WizInjectionContext_Dispatcher");var UCw=Q$("WizInjectionContext_RootElement");var Ozm=Q$("WizInjectionContext_AppContext"),svq=Q$("WizInjectionContext_ModelRootElement"),oEm=Q$("WizInjectionContext_RendererData"),Qvm=Q$("WizInjectionContext_InjectingConstructor"),ynR=Q$("WizInjectionContext_AsyncDeps"),Zzc={};var ulR=!1;var TU3=Symbol("xb"),AdK=Symbol("yb"),Bld=Symbol("zb"),GUd=Symbol("Ab"),Cxl=kC(function(r){return SHc(r)&&TU3 in r});var IyP={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextPerComponent:UxE,enableLazyTsx:sed,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var ka=Object.assign({},{attributes:{},handleError:function(r){throw r;}},IyP);var xUE=Symbol("Bb"),yo={},VhK=(yo[xUE]=!0,yo.debugName="[component]",yo.getComponentStack=function(){for(var r=[],f=this;f;)hGP(f)&&r.push(f.debugName),f=f.parent;return r},yo.registerSignal=function(){},yo.registerEffect=function(){},yo);var Bh=null,rI=!1,zGu=1,Cy=Symbol("Cb"),xL={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var Ua=Symbol("Db"),sa=Symbol("Eb"),Iz=Symbol("Fb"),PhE=Object.assign({},xL,{value:Ua,dirty:!0,error:null,equal:wdd,kind:"computed",producerMustRecompute:function(r){return r.value===Ua||r.value===sa},
producerRecomputeValue:function(r){if(r.value===sa)throw Error("da");var f=r.value;r.value=sa;var I=Nl$(r),C=!1;try{var Y=r.computation();DE(null);C=f!==Ua&&f!==Iz&&Y!==Iz&&r.equal(f,Y)}catch(V){Y=Iz,r.error=V}finally{$Ul(r,I)}C?r.value=f:(r.value=Y,r.version++)}});var LMP=function(){throw Error();};var eGU=null,Tlm=Object.assign({},xL,{equal:wdd,value:void 0,kind:"signal"});Object.assign({},xL,{value:Ua,dirty:!0,error:null,equal:wdd,kind:"linkedSignal",producerMustRecompute:function(r){return r.value===Ua||r.value===sa},
producerRecomputeValue:function(r){if(r.value===sa)throw Error("da");var f=r.value;r.value=sa;var I=Nl$(r);try{var C=r.source();var Y=r.computation(C,f===Ua||f===Iz?void 0:{source:r.sourceValue,value:f});r.sourceValue=C}catch(V){Y=Iz,r.error=V}finally{$Ul(r,I)}f!==Ua&&Y!==Iz&&r.equal(f,Y)?r.value=f:(r.value=Y,r.version++)}});Object.assign({},xL,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(r){r.schedule!==null&&r.schedule(r.ref)},
hasRun:!1,cleanupFn:function(){}});var j1m=Symbol("Gb"),V3=Symbol("Hb");var Em=Array.isArray;var Ofw;var cVB={},Q1P=s1R(Object.assign({},{consumerAllowSignalWrites:!0},cVB)),SH=s1R(Object.assign({},{consumerAllowSignalWrites:!0},cVB));var bd=0,Oa=function(){this.queue=new Set};
Oa.prototype.remove=function(r){this.queue.delete(r)};
Oa.prototype.clear=function(){this.queue.clear()};
var W8B=function(){Oa.apply(this,arguments)};
_.t(W8B,Oa);W8B.prototype.schedule=function(r){this.queue.add(r)};
W8B.prototype.flush=function(){if(this.queue.size)for(var r=_.E(this.queue),f=r.next();!f.done;f=r.next()){f=f.value;this.queue.delete(f);try{f.run()}catch(I){L8C(I)}}};
var m44=new W8B,oH=function(){Oa.apply(this,arguments)};
_.t(oH,Oa);var e98=function(){oH.apply(this,arguments)};
_.t(e98,oH);e98.prototype.schedule=function(r){r.hasRun?this.queue.add(r):r.run()};
e98.prototype.flush=function(){if(this.queue.size){var r=this.queue;this.queue=new Set;Yju(r)}};
var ZfP=new e98,JVs=function(){oH.apply(this,arguments)};
_.t(JVs,oH);JVs.prototype.schedule=function(r){var f=this;return _.x(function(I){if(I.nextAddress==1)return r.hasRun?I.jumpTo(2):_.b(I,Promise.resolve(),3);if(I.nextAddress!=2)return r.run(),I.return();f.queue.add(r);_.wO(I)})};
JVs.prototype.flush=function(){var r=this,f;return _.x(function(I){if(I.nextAddress==1){if(!r.queue.size)return I.return();f=r.queue;r.queue=new Set;return _.b(I,Promise.resolve(),2)}Yju(f);_.wO(I)})};
var qHd=new JVs,jhg=function(){oH.apply(this,arguments)};
_.t(jhg,oH);jhg.prototype.schedule=function(r){this.queue.add(r)};
jhg.prototype.flush=function(){this.queue.size&&Yju(this.queue)};
var kUm=new jhg,fsP=[ZfP,m44,kUm,qHd],HW8=[ZfP,kUm,qHd],DUm=[];eGU=function(){IsR();for(var r=_.E(DUm),f=r.next();!f.done;f=r.next())f=f.value,f()};
var L8C=VE;var ny=Symbol("Mb");var py=null,x4E,h9q=null,wWE;var Qo={},iW3=Object.assign({},xL,(Qo[TU3]=!0,Qo.effectType=AdK,Qo.isResettableContext=!0,Qo.producerNode=void 0,Qo.hasRun=!1,Qo.effectFn=null,Qo.consumerIsAlwaysLive=!0,Qo.consumerAllowSignalWrites=!0,Qo.consumerMarkedDirty=u8B,Qo.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(rI)throw Error("Nb");this.dirty=!1;if(!this.hasRun||MhR(this)){this.hasRun=!0;KOu(this);var r=oZ(this),f=Nl$(this);YHc("effectRun",this.debugName);try{gI(this.effectFn,{stack:this.componentStack})}finally{lyq("effectRun",
this.debugName),$Ul(this,f),oZ(r)}}}},Qo.componentStack=void 0,Qo.debugName="[effect]",Qo[Symbol.dispose]=function(){bfU(this);
if(fy(this))for(var r=0;r<this.producerNode.length;r++)pdP(this.producerNode[r],this.producerIndexOfThis[r]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);r=_.E(HW8);for(var f=r.next();!f.done;f=r.next())f.value.remove(this);vE$(this)},Qo));var pWl=Object.assign({},iW3,{effectType:Bld});var noR=Object.assign({},iW3,{effectType:AdK});var d4$=Symbol("Ob");var qj$=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var Z3=Symbol("Pb");var VM=function(){},bk=function(r){this.props=r;
this.__unmounted=!1};
bk.prototype.didPatch=function(){};
bk.prototype.didMount=function(){};
bk.prototype.didUnmount=function(){};
bk.prototype.didUpdate=function(){};var go$={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,
ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,valign:1,value:1,width:1,wrap:1},MMR={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}]}},ODU={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},NUK=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],XWE={"*":{async:1,dir:0,loading:2,target:3}};var R98=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,AB={},F8K=(AB[1]=null,AB[2]=function(r,f){return f instanceof TC?WL(f):M3.toString()},AB[3]=function(r,f){return pK(f)?_.nK(f):R98.test(String(f))?String(f):M3.toString()},AB[4]=function(r,f){return f instanceof ER?_.x1(f):M3.toString()},AB[5]=function(r,f){return String(f)},AB[7]=null,AB[8]=null,AB[10]=null,AB);var wll=Symbol("Sb");var rS$=function(r){var f=voq,I=r,C="",Y="",V=1;r<0&&(r=-r);if(r===Infinity)r=(Infinity*Math.sign(I)).toString();else{for(var S=0;S<K8s.length;S++){var h=K8s[S];V=f[h];if(r>=V||V<=1&&r>.1*V){C=h;break}}C?(C+="B",Y=" "):V=1;r=Math.round(I/V*10)/10+Y+C}return r},K8s="Y Z E P T G M K  m u n".split(" "),voq={"":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};_.yV8=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 fz={};RegExp.prototype.hasOwnProperty("sticky");var r7$=function(r){r=String(r);for(var f=function(C,Y,V){for(var S=Math.min(Y.length-V,C.length),h=0;h<S;h++){var w=Y[V+h];if(C[h]!==("A"<=w&&w<="Z"?w.toLowerCase():w))return!1}return!0},I=0;(I=r.indexOf("<",I))!=-1;){if(f("\x3c/script",r,I)||f("\x3c!--",r,I))return"zSoyz";
I+=1}return r};var Ly={default:"__default"};var m4u=Object.prototype.hasOwnProperty;TUK.prototype=Object.create(null);var o5=jhl();var Um=null;var QhP=function(r){this.created=[];this.deleted=[];this.node=r};var AVB=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var r=this,f=r;r;)f=r,r=r.parentNode;return f};var iWK=function(r,f){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=r;this.key=f;this.text=void 0};var jb=null,H9=null,eb=null,Rz=null,U4U=[],yVw=voE,Ky=[],y3=[],hhB=function(r){return ZWK(function(f,I,C){eb=H9=f;H9=null;I(C);K8P(null);H9=eb;eb=eb.parentNode;return f},r)}(),xmq=function(r){return ZWK(function(f,I,C){var Y={nextSibling:f};
H9=Y;I(C);eb&&K8P(f.nextSibling);return Y===H9?null:H9},r)}();var sm=[],kOc=0;var oz=new TUK;var bT=new TUK;var U4V=jhl(),D4m=U4V[Ly.default],fWl=U4V.style,u_w=["focusin","focusout"];var iNU=function(){},PzK=function(){},UW$=function(){},vlR=function(){};var AR=Symbol("Zb");var Sed,Elm=Vql;var Cz=Symbol("$b");var aWR={};var y7m=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(" ")),
KNw=new Set(["a","font","script","style","title"]);var xE={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var hn=null,wt=function(r,f){bk.call(this,r);var I=this;this.functionComponent=f;this.hooks=[];this.hookCounter=0;this.disposeEffects=P9(function(C){I.effectContext=C;_.$L(function(){WNK(I,I.el)})},ka.alwaysTrackContexts||!!OD)};
_.t(wt,bk);wt.prototype.render=function(r){var f=hn;hn=this;this.hookCounter=0;var I=DE(SH),C=oZ(this.effectContext);try{return YHc("render",this.componentName),this.functionComponent(r)}finally{lyq("render",this.componentName),oZ(C),DE(I),hn=f}};
_.OC.Object.defineProperties(wt.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return VMU(this.functionComponent)}}});var s5K=Symbol("nc"),j5c=function(r,f,I){this.kind=r;this.props=f;this.children=I};
_.t(j5c,VM);j5c.prototype.render=function(){return J7c(this.kind,this.props,this.children)};
j5c.prototype.getChildren=function(){return this.children};var olP=[];LMP=function(r){throw Error("sb`"+r.debugName);};
(function(){var r=Um;Um=function(f){r==null||r(f);Q5R(f)}})();var sh4=void 0,OW8={},ooV=new WeakMap,A7U={getComponent:function(r){if(r.hasAttribute("ng-version"))return OW8;if(!r.__wizComponent)return null;r=r.__wizComponent;ooV.set(r.propsAndState,r);return r.propsAndState},
getDirectiveMetadata:function(r){if(r===OW8)return{framework:"wiz",name:"<Root>",props:{}};r=ooV.get(r);if(!r)throw Error("oc");return{framework:"wiz",name:r.name,props:Object.fromEntries(Object.keys(r.props).map(function(f){return[f,f]}))}},
"\u0275setProfiler":function(r){var f;(f=sh4)==null||f();sh4=rVP(function(){r(2)})},
isSignal:function(r){return typeof r==="function"&&r[Cy]!==void 0}};var GLw={nonNullableCondIsNull:function(){return Error("sc")}};_.p.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.p.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.p.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var rqu=function(){this.map=new Map};
rqu.prototype.push=function(r,f){var I=this.map;I.has(r)&&(this.multi||(this.multi=new Map),this.multi.set(f,I.get(r)));I.set(r,f)};
rqu.prototype.pop=function(r){var f=this.map,I=f.get(r),C;I!==void 0&&((C=this.multi)==null?0:C.has(I))?(f.set(r,this.multi.get(I)),this.multi.delete(I)):f.delete(r);return I};var lmK={LOG_NULL_EL_REF_VALUE:function(){return Error("tc")},
OUT_OF_ORDER_HOOK_CALL:function(r){return Error("uc`"+r)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("vc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("wc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("xc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(r,f){return Error("yc`"+r+"`"+f)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(r){return Error("zc`"+r)},
USE_ELEMENT_NOT_ASSIGNED:function(r){return Error("Ac`"+String(r))}};Sed=HNu;var bEd=Symbol("Bc");TpB({beforeRender:function(r){var f=oZ(r.effectContext);try{var I;((I=r.__syncEffects)==null?0:I.length)&&nfU(r.__syncEffects)}finally{oZ(f)}},
didPatch:function(r){var f=oZ(r.effectContext);try{var I;((I=r.__syncEffects)==null?0:I.length)&&nfU(r.__syncEffects)}finally{oZ(f)}},
didUnmount:function(r){var f;((f=r.hooks)==null?0:f.length)&&r.hooks.forEach(p8P)}});var Qhs,AV4,ZW3;Qhs=_.Yq.window;_.cw=(Qhs==null?void 0:(AV4=Qhs.yt)==null?void 0:AV4.config_)||(Qhs==null?void 0:(ZW3=Qhs.ytcfg)==null?void 0:ZW3.data_)||{};_.OH("yt.config_",_.cw);var GO4={},gfu=[];_.nf=function(r){var f=_.XE.apply(1,arguments);var I=Error.call(this,r);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.args=[].concat(_.Na(f));Object.setPrototypeOf(this,this.constructor.prototype)};
_.t(_.nf,Error);var FlU=function(r,f,I){this.actionName=r;this.optionalAction=f===void 0?!1:f;this.args=I===void 0?null:I;this.returnValue=[]};_.q=function(r){this.name=r};_.J7=new _.q("signalAction");var LFc=/^[\w.]*$/,FFc={q:!0,search_query:!0},$7c=String(NbB);var ZB;ZB=Symbol("Cc");_.Go=function(r){this.name=r};
_.Go.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var m7R=function(r){this.key=r},j6U=function(r){this.deferredKey=r},Jqu=function(){var r=this;
this.providers=new Map;this.JSC$8314_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(r.providers)}}};
Jqu.prototype.addProvider=function(r){this.providers.set(r.provide,r);var f=this.JSC$8314_deferred.get(r.provide);if(f)try{f.resolver(this.resolve(r.provide))}catch(I){f.rejector(I)}};
Jqu.prototype.resolve=function(r){return r instanceof j6U?kOT(this,r):r instanceof m7R?BUB(this,r.key,[],!0):BUB(this,r,[])};
var kOT=function(r,f){f=f.deferredKey;if(r.JSC$8314_deferred.has(f))return r.JSC$8314_deferred.get(f).promise;var I={};I.promise=new Promise(function(C,Y){I.resolver=C;I.rejector=Y});
r.JSC$8314_deferred.set(f,I);return I.promise},BUB=function(r,f,I,C){C=C===void 0?!1:C;
if(I.indexOf(f)>-1)throw Error("Dc`"+f);if(r.cachedValues.has(f))return r.cachedValues.get(f);if(!r.providers.has(f)){if(C)return;throw Error("Ec`"+f);}C=r.providers.get(f);I.push(f);if(C.useValue!==void 0)var Y=C.useValue;else if(C.useFactory)Y=C[ZB]?qjX(r,C[ZB],I):[],Y=C.useFactory.apply(C,_.Na(Y));else if(C.useClass){Y=C.useClass;var V=Y[ZB]?qjX(r,Y[ZB],I):[];Y=new (Function.prototype.bind.apply(Y,[null].concat(_.Na(V))))}else throw Error("Fc`"+f);I.pop();C.skipCache||r.cachedValues.set(f,Y);return Y},
qjX=function(r,f,I){return f?f.map(function(C){return C instanceof m7R?BUB(r,C.key,I,!0):BUB(r,C,I)}):[]};var eRu;var jq=new _.Go("ENDPOINT_HANDLER_TOKEN");_.HR=new _.q("urlEndpoint");var u_8=function(){this.data=[];this.cachedPackedInt52=-1};
u_8.prototype.set=function(r,f){f=f===void 0?!0:f;0<=r&&r<52&&Number.isInteger(r)&&this.data[r]!==f&&(this.data[r]=f,this.cachedPackedInt52=-1)};
u_8.prototype.get=function(r){return!!this.data[r]};
var D4_=function(r){r.cachedPackedInt52===-1&&(r.cachedPackedInt52=r.data.reduce(function(f,I,C){return f+(I?Math.pow(2,C):0)},0));
return r.cachedPackedInt52};var G5$=function(r){var f=r7X;r=r===void 0?_.jH("yt.ads.biscotti.lastId_")||"":r;var I=Object,C=I.assign,Y={};Y.dt=IEg;Y.flash="0";a:{try{var V=f.JSC$8320_win_.top.location.href}catch(Pu){V=2;break a}V=V?V===f.doc_.location.href?0:1:2}Y=(Y.frm=V,Y);try{Y.u_tz=-(new Date).getTimezoneOffset();var S=S===void 0?H7:S;try{var h=S.history.length}catch(Pu){h=0}Y.u_his=h;var w;Y.u_h=(w=H7.screen)==null?void 0:w.height;var n;Y.u_w=(n=H7.screen)==null?void 0:n.width;var d;Y.u_ah=(d=H7.screen)==null?void 0:d.availHeight;
var z;Y.u_aw=(z=H7.screen)==null?void 0:z.availWidth;var g;Y.u_cd=(g=H7.screen)==null?void 0:g.colorDepth}catch(Pu){}h=f.JSC$8320_win_;try{var X=h.screenX;var P=h.screenY}catch(Pu){}try{var W=h.outerWidth;var m=h.outerHeight}catch(Pu){}try{var v=h.innerWidth;var O=h.innerHeight}catch(Pu){}try{var k=h.screenLeft;var Z=h.screenTop}catch(Pu){}try{v=h.innerWidth,O=h.innerHeight}catch(Pu){}try{var Cw=h.screen.availWidth;var rR=h.screen.availTop}catch(Pu){}X=[k,Z,X,P,Cw,rR,W,m,v,O];P=gV$(!1,f.JSC$8320_win_.top);
W={};var EP=EP===void 0?_.Yq:EP;m=new u_8;"SVGElement"in EP&&"createElementNS"in EP.document&&m.set(0);v=IpD();v["allow-top-navigation-by-user-activation"]&&m.set(1);v["allow-popups-to-escape-sandbox"]&&m.set(2);EP.crypto&&EP.crypto.subtle&&m.set(3);"TextDecoder"in EP&&"TextEncoder"in EP&&m.set(4);EP=D4_(m);f=(W.bc=EP,W.bih=P.height,W.biw=P.width,W.brdim=X.join(),W.vis=lEB(f.doc_),W.wgl=!!H7.WebGLRenderingContext,W);I=C.call(I,Y,f);I.ca_type="image";r&&(I.bid=r);return I},r7X=new function(){var r=
window.document;
this.JSC$8320_win_=window;this.doc_=r};
_.OH("yt.ads_.signals_.getAdSignalsString",function(r){return PKq(G5$(r))});_.Dc();navigator.userAgent.indexOf(" (CrKey ");var KFR="XMLHttpRequest"in _.Yq?function(){return new XMLHttpRequest}:null;var fWg="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),IWU=[].concat(_.Na(fWg),["client_dev_set_cookie"]);var ZEd={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"},s6q="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(_.Na(fWg)),Cyu=!1,ofK=_.k5u,r1R=Aqd;var WvR=[{messageFn:function(r){return"Cannot read property '"+r.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(r){return"Cannot call '"+r.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(r){return r.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var Cz4={messageWeights:[],callbackWeights:[{callback:EAR,weight:500}]};var Ye_=function(){this.callbackWeights=[];this.messageWeights=[]},lW8,c3$=function(){if(!lW8){var r=lW8=new Ye_;
r.messageWeights.length=0;r.callbackWeights.length=0;CvU(r,Cz4)}return lW8},CvU=function(r,f){f.messageWeights&&r.messageWeights.push.apply(r.messageWeights,f.messageWeights);
f.callbackWeights&&r.callbackWeights.push.apply(r.callbackWeights,f.callbackWeights)};_.rh(_.EH,_.Mu);_.EH.prototype.subscribe=function(r,f,I){var C=this.topics_[r];C||(C=this.topics_[r]=[]);var Y=this.JSC$8344_key_;this.subscriptions_[Y]=r;this.subscriptions_[Y+1]=f;this.subscriptions_[Y+2]=I;this.JSC$8344_key_=Y+3;C.push(Y);return Y};
var Vqg=function(r){var f=J3m,I=!1,C=f.subscribe("handleError",function(Y){I||(I=!0,this.unsubscribeByKey(C),r.apply(void 0,arguments))},f)};
_.EH.prototype.unsubscribe=function(r,f,I){if(r=this.topics_[r]){var C=this.subscriptions_;if(r=r.find(function(Y){return C[Y+1]==f&&C[Y+2]==I}))return this.unsubscribeByKey(r)}return!1};
_.EH.prototype.unsubscribeByKey=function(r){var f=this.subscriptions_[r];if(f){var I=this.topics_[f];this.publishDepth_!=0?(this.pendingKeys_.push(r),this.subscriptions_[r+1]=function(){}):(I&&_.uU(I,r),delete this.subscriptions_[r],delete this.subscriptions_[r+1],delete this.subscriptions_[r+2])}return!!f};
_.EH.prototype.publish=function(r,f){var I=this.topics_[r];if(I){var C=Array(arguments.length-1),Y=arguments.length,V;for(V=1;V<Y;V++)C[V-1]=arguments[V];if(this.async_)for(V=0;V<I.length;V++)Y=I[V],El_(this.subscriptions_[Y+1],this.subscriptions_[Y+2],C);else{this.publishDepth_++;try{for(V=0,Y=I.length;V<Y&&!this.isDisposed();V++){var S=I[V];this.subscriptions_[S+1].apply(this.subscriptions_[S+2],C)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;I=this.pendingKeys_.pop();)this.unsubscribeByKey(I)}}return V!=
0}return!1};
var El_=function(r,f,I){_.gi(function(){r.apply(f,I)})};
_.EH.prototype.clear=function(r){if(r){var f=this.topics_[r];f&&(f.forEach(this.unsubscribeByKey,this),delete this.topics_[r])}else this.subscriptions_.length=0,this.topics_={}};
_.EH.prototype.getCount=function(r){if(r){var f=this.topics_[r];return f?f.length:0}r=0;for(f in this.topics_)r+=this.getCount(f);return r};
_.EH.prototype.disposeInternal=function(){_.EH.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var J3m=new _.EH;var uh=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(uh,_.Kj);uh.prototype.getColdHashData=function(){return _.Tb(this,3)};
uh.prototype.getHotHashData=function(){return _.Tb(this,5)};
uh.prototype.setHotHashData=function(r){return _.w5(this,5,r)};var NX$=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(NX$,_.Kj);var uiE=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(uiE,_.Kj);_.l=uiE.prototype;_.l.getDeviceId=function(){return _.Tb(this,6)};
_.l.getExperimentIds=function(r){var f=_.X9(this,9,_.tU,3,!0);oD(f,r);return f[r]};
_.l.getPlayerType=function(){return _.cM(this,36)};
_.l.setHomeGroupInfo=function(r){return _.CK(this,81,r)};
_.l.clearLocationPlayabilityToken=function(){return _.qU(this,89)};var Sq=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Sq,_.Kj);Sq.prototype.setKey=function(r){return _.w5(this,1,r)};
Sq.prototype.getValue=function(){return LD(this,2,r3u)};
var r3u=[2,3,4,5,6];var SeU=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(SeU,_.Kj);SeU.prototype.setTrackingParams=function(r){return _.qU(this,1,_.Os(r,!1))};var Dvm=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Dvm,_.Kj);var PmK=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(PmK,_.Kj);PmK.prototype.getExperimentIds=function(r){var f=_.X9(this,5,_.cB,3,!0);oD(f,r);return f[r]};var bz=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(bz,_.Kj);bz.prototype.getToken=function(){return _.xa(this,2)};
bz.prototype.setToken=function(r){return _.w5(this,2,r)};var h7=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(h7,_.Kj);h7.prototype.setSafetyMode=function(r){return _.Bd(this,5,r)};var Ee=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Ee,_.Kj);Ee.prototype.setClient=function(r){return _.CK(this,1,r)};var FwK={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 $ow;_.TF=function(){var r=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Yq.addEventListener("beforeinstallprompt",function(f){f.preventDefault();r.deferredInstallPrompt=f});
_.Yq.addEventListener("appinstalled",function(){r.appInstalledEventFired=!0},{once:!0})};
$ow=function(){if(!_.Yq.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Yq.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Yq.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Yq.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Yq.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(r){return"WEB_DISPLAY_MODE_UNKNOWN"}};var cZK=function(){this.syncHeaders=!0},Wwd=function(r){var f={},I=[];
"USER_SESSION_ID"in _.cw&&I.push({key:"u",value:_.Lz("USER_SESSION_ID")});if(I=BGl(I))f.Authorization=I,I=r=r==null?void 0:r.sessionIndex,I===void 0&&(I=Number(_.Lz("SESSION_INDEX",0)),I=isNaN(I)?0:I),_.N("voice_search_auth_header_removal")||(f["X-Goog-AuthUser"]=I.toString()),"INNERTUBE_HOST_OVERRIDE"in _.cw||(f["X-Origin"]=window.location.origin),r===void 0&&"DELEGATED_SESSION_ID"in _.cw&&(f["X-Goog-PageId"]=_.Lz("DELEGATED_SESSION_ID"));return f};var xWT={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var kc=_.jH("ytglobal.prefsUserPrefsPrefs_")||{},hc4;_.OH("ytglobal.prefsUserPrefsPrefs_",kc);_.Bz=function(){this.cookieName=_.Lz("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Lz("ALT_PREF_COOKIE_DOMAIN","youtube.com");var r=_.xB.get(this.cookieName,void 0);r&&this.parse(r)};
_.xI=function(){hc4||(hc4=new _.Bz);return hc4};
_.Bz.prototype.get=function(r,f){wRg(r);bN3(r);r=kc[r]!==void 0?kc[r].toString():null;return r!=null?r:f?f:""};
_.Bz.prototype.set=function(r,f){wRg(r);bN3(r);if(f==null)throw Error("Ic");kc[r]=f.toString()};
_.Bz.prototype.getFlag=function(r){return!!((pR8("f"+(Math.floor(r/31)+1))||0)&1<<r%31)};
_.hZ=function(r,f,I){r="f"+(Math.floor(f/31)+1);f=1<<f%31;var C=pR8(r)||0;C=I?C|f:C&~f;C===0?delete kc[r]:(I=C.toString(16),kc[r]=I.toString())};
_.Bz.prototype.remove=function(r){wRg(r);bN3(r);delete kc[r]};
_.Bz.prototype.save=function(){var r=!0;_.N("web_secure_pref_cookie_killswitch")&&(r=!1);_.hd(this.cookieName,this.dump(),63072E3,this.cookieDomain,r)};
_.Bz.prototype.clear=function(){_.X0.clear(kc)};
_.Bz.prototype.dump=function(){var r=[],f;for(f in kc)kc.hasOwnProperty(f)&&r.push(f+"="+encodeURIComponent(String(kc[f])));return r.join("&")};
var bN3=function(r){if(/^f([1-9][0-9]*)$/.test(r))throw Error("Jc`"+r);},wRg=function(r){if(!/^\w+$/.test(r))throw Error("Kc`"+r);
},pR8=function(r){r=kc[r]!==void 0?kc[r].toString():null;
return r!=null&&/^[A-Fa-f0-9]+$/.test(r)?parseInt(r,16):null};
_.Bz.prototype.parse=function(r){r=decodeURIComponent(r).split("&");for(var f=0;f<r.length;f++){var I=r[f].split("="),C=I[0];(I=I[1])&&(kc[C]=I.toString())}};var zHm={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"},t_$={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},TXl={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},gAc={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var O6;_.qJ=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.dp=function(r,f,I){return r.addJob(f,0,I)};
_.qJ.prototype.addLowPriorityJob=function(r,f){return this.addJob(r,1,f)};
_.pF=function(r,f,I){return r.addJob(f,2,I)};
_.aK=function(r,f,I){return r.addJob(f,3,I)};
_.oB=function(r,f,I){return r.addJob(f,4,I)};
O6=function(r){var f=_.jH("yt.scheduler.instance.addImmediateJob");f?f(r):r()};
_.qJ.prototype.debounce=function(r,f,I){var C=this,Y=0,V=function(){Y&&C.cancelJob(Y);Y=C.addJob(r,f,I);C.cancelDebouncedJobMap.set(V,Y)};
return V};
_.qJ.prototype.cancelThrottle=function(r){(r=this.cancelThrottledJobMap.get(r))&&r()};var uI=function(){_.qJ.apply(this,arguments)};
_.t(uI,_.qJ);_.tF=function(){uI.instance||(uI.instance=new uI);return uI.instance};
uI.prototype.addJob=function(r,f,I){I!==void 0&&Number.isNaN(Number(I))&&(I=void 0);var C=_.jH("yt.scheduler.instance.addJob");return C?C(r,f,I):I===void 0?(r(),NaN):_.rl(r,I||0)};
uI.prototype.cancelJob=function(r){if(r===void 0||!Number.isNaN(Number(r))){var f=_.jH("yt.scheduler.instance.cancelJob");f?f(r):_.I1(r)}};
uI.prototype.start=function(){var r=_.jH("yt.scheduler.instance.start");r&&r()};
uI.prototype.pause=function(){var r=_.jH("yt.scheduler.instance.pause");r&&r()};
_.F_=_.tF();_.dl.prototype.set=function(r,f){f===void 0?this.mechanism.remove(r):this.mechanism.set(r,(0,_.FZ)(f))};
_.dl.prototype.get=function(r){try{var f=this.mechanism.get(r)}catch(I){return}if(f!==null)try{return JSON.parse(f)}catch(I){throw"Storage: Invalid value was encountered";}};
_.dl.prototype.remove=function(r){this.mechanism.remove(r)};var DB=function(r){this.mechanism=r};
_.rh(DB,_.dl);var nlU=function(r){this.data=r},dWg=function(r){return r===void 0||r instanceof nlU?r:new nlU(r)};
DB.prototype.set=function(r,f){DB.superClass_.set.call(this,r,dWg(f))};
DB.prototype.getWrapper=function(r){r=DB.superClass_.get.call(this,r);if(r===void 0||r instanceof Object)return r;throw"Storage: Invalid value was encountered";};
DB.prototype.get=function(r){if(r=this.getWrapper(r)){if(r=r.data,r===void 0)throw"Storage: Invalid value was encountered";}else r=void 0;return r};_.rh(zU,DB);_.zcg=function(r){var f=r.creation;r=r.expiration;return!!r&&r<_.Dc()||!!f&&f>_.Dc()};
zU.prototype.set=function(r,f,I){if(f=dWg(f)){if(I){if(I<_.Dc()){zU.prototype.remove.call(this,r);return}f.expiration=I}f.creation=_.Dc()}zU.superClass_.set.call(this,r,f)};
zU.prototype.getWrapper=function(r,f){var I=zU.superClass_.getWrapper.call(this,r);if(I)if(!f&&_.zcg(I))zU.prototype.remove.call(this,r);else return I};var rf=function(){};
rf.prototype.next=function(){return fV};
var fV={done:!0,value:void 0},Ij=function(r){return{value:r,done:!1}};
rf.prototype.__iterator__=function(){return this};
_.Mqg=function(r){if(r instanceof rf)return r;if(typeof r.__iterator__=="function")return r.__iterator__(!1);if(_.ID(r)){var f=0,I=new rf;I.next=function(){for(;;){if(f>=r.length)return fV;if(f in r)return Ij(r[f++]);f++}};
return I}throw Error("Lc");};var glX=function(r){if(r instanceof CV||r instanceof Y6||r instanceof l0)return r;if(typeof r.next=="function")return new CV(function(){return r});
if(typeof r[Symbol.iterator]=="function")return new CV(function(){return r[Symbol.iterator]()});
if(typeof r.__iterator__=="function")return new CV(function(){return r.__iterator__()});
throw Error("Mc");},CV=function(r){this.func_=r};
CV.prototype.__iterator__=function(){return new Y6(this.func_())};
CV.prototype[Symbol.iterator]=function(){return new l0(this.func_())};
CV.prototype.toEs6=function(){return new l0(this.func_())};
var Y6=function(r){this.JSC$8428_iter_=r};
_.t(Y6,rf);Y6.prototype.next=function(){return this.JSC$8428_iter_.next()};
Y6.prototype[Symbol.iterator]=function(){return new l0(this.JSC$8428_iter_)};
Y6.prototype.toEs6=function(){return new l0(this.JSC$8428_iter_)};
var l0=function(r){CV.call(this,function(){return r});
this.JSC$8431_iter_=r};
_.t(l0,CV);l0.prototype.next=function(){return this.JSC$8431_iter_.next()};var aWB=function(){};var Vf=function(){};
_.rh(Vf,aWB);Vf.prototype.getCount=function(){for(var r=0,f=_.E(this),I=f.next();!I.done;I=f.next())r++;return r};
Vf.prototype[Symbol.iterator]=function(){return glX(this.__iterator__(!0)).toEs6()};
Vf.prototype.clear=function(){var r=Array.from(this);r=_.E(r);for(var f=r.next();!f.done;f=r.next())this.remove(f.value)};_.rh(MU,Vf);_.l=MU.prototype;_.l.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var r=this.storage_;if(r)try{r.setItem("__sak","1");r.removeItem("__sak");var f=!0}catch(I){f=I instanceof DOMException&&(I.name==="QuotaExceededError"||I.code===22||I.code===1014||I.name==="NS_ERROR_DOM_QUOTA_REACHED")&&r&&r.length!==0}else f=!1;this.cachedIsStorageAvailable_=f}return this.cachedIsStorageAvailable_};
_.l.set=function(r,f){EE(this);try{this.storage_.setItem(r,f)}catch(I){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.l.get=function(r){EE(this);r=this.storage_.getItem(r);if(typeof r!=="string"&&r!==null)throw"Storage mechanism: Invalid value was encountered";return r};
_.l.remove=function(r){EE(this);this.storage_.removeItem(r)};
_.l.getCount=function(){EE(this);return this.storage_.length};
_.l.__iterator__=function(r){EE(this);var f=0,I=this.storage_,C=new rf;C.next=function(){if(f>=I.length)return fV;var Y=I.key(f++);if(r)return Ij(Y);Y=I.getItem(Y);if(typeof Y!=="string")throw"Storage mechanism: Invalid value was encountered";return Ij(Y)};
return C};
_.l.clear=function(){EE(this);this.storage_.clear()};
_.l.key=function(r){EE(this);return this.storage_.key(r)};
var EE=function(r){if(r.storage_==null)throw Error("Nc");r.isAvailable()||VE(Error("Nc"))};_.rh(XjU,MU);_.rh(NdK,MU);_.rh(gl,Vf);gl.prototype.set=function(r,f){this.mechanism_.set(this.JSC$8446_prefix_+r,f)};
gl.prototype.get=function(r){return this.mechanism_.get(this.JSC$8446_prefix_+r)};
gl.prototype.remove=function(r){this.mechanism_.remove(this.JSC$8446_prefix_+r)};
gl.prototype.__iterator__=function(r){var f=this.mechanism_[Symbol.iterator](),I=this,C=new rf;C.next=function(){var Y=f.next();if(Y.done)return Y;for(Y=Y.value;Y.slice(0,I.JSC$8446_prefix_.length)!=I.JSC$8446_prefix_;){Y=f.next();if(Y.done)return Y;Y=Y.value}return Ij(r?Y.slice(I.JSC$8446_prefix_.length):I.mechanism_.get(Y))};
return C};_.WW=function(r){this.expiringStorage_=(r=_.$yK(r))?new zU(r):null;this.JSC$8450_domain_=document.domain||window.location.hostname};
_.WW.prototype.set=function(r,f,I,C){I=I||31104E3;this.remove(r);if(this.expiringStorage_)try{this.expiringStorage_.set(r,f,Date.now()+I*1E3);return}catch(V){}var Y="";if(C)try{Y=escape((0,_.FZ)(f))}catch(V){return}else Y=escape(f);_.hd(r,Y,I,this.JSC$8450_domain_)};
_.WW.prototype.get=function(r,f){var I=void 0,C=!this.expiringStorage_;if(!C)try{I=this.expiringStorage_.get(r)}catch(Y){C=!0}if(C&&(I=_.xB.get(r,void 0))&&(I=unescape(I),f))try{I=JSON.parse(I)}catch(Y){this.remove(r),I=void 0}return I};
_.WW.prototype.remove=function(r){this.expiringStorage_&&this.expiringStorage_.remove(r);_.pju(r,"/",this.JSC$8450_domain_)};
_.WW.prototype.getCreationTime=function(r){return this.expiringStorage_&&(r=(this.expiringStorage_.getWrapper(r)||{}).creation,typeof r==="number")?r:null};var PyR=function(){var r;return function(){r||(r=new _.WW("ytidb"));return r}}();var TdE;_.X8=[];TdE=!1;var A1d=c1R||W0d;var Ss={},XR3=(Ss.AUTH_INVALID="No user identifier specified.",Ss.EXPLICIT_ABORT="Transaction was explicitly aborted.",Ss.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Ss.MISSING_INDEX="Index not created.",Ss.MISSING_OBJECT_STORES="Object stores not created.",Ss.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Ss.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Ss.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Ss.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Ss.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Ss.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Ss.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Ss),x6={},Npq=(x6.AUTH_INVALID="ERROR",x6.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",x6.EXPLICIT_ABORT="IGNORED",
x6.IDB_NOT_SUPPORTED="ERROR",x6.MISSING_INDEX="WARNING",x6.MISSING_OBJECT_STORES="ERROR",x6.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",x6.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",x6.QUOTA_EXCEEDED="WARNING",x6.QUOTA_MAYBE_EXCEEDED="WARNING",x6.UNKNOWN_ABORT="WARNING",x6.INCOMPATIBLE_DB_VERSION="WARNING",x6),hk={},$WU=(hk.AUTH_INVALID=!1,hk.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,hk.EXPLICIT_ABORT=!1,hk.IDB_NOT_SUPPORTED=!1,hk.MISSING_INDEX=!1,hk.MISSING_OBJECT_STORES=!1,hk.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,hk.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,hk.QUOTA_EXCEEDED=!1,hk.QUOTA_MAYBE_EXCEEDED=!0,hk.UNKNOWN_ABORT=!0,hk.INCOMPATIBLE_DB_VERSION=!1,hk),cd=function(r,f,I,C,Y){f=f===void 0?{}:f;I=I===void 0?XR3[r]:I;C=C===void 0?Npq[r]:C;Y=Y===void 0?$WU[r]:Y;_.nf.call(this,I,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:r},f));this.type=r;this.message=I;this.level=C;this.retryable=Y;Object.setPrototypeOf(this,cd.prototype)};
_.t(cd,_.nf);var FNV=function(r,f){cd.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:f,foundObjectStores:r},XR3.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,FNV.prototype)};
_.t(FNV,cd);var myl=function(r,f){var I=Error.call(this);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.index=r;this.objectStore=f;Object.setPrototypeOf(this,myl.prototype)};
_.t(myl,Error);var eH$=["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 eh=function(r){this.executor=r},mM=function(r){var f=this;
this.state={status:"PENDING"};this.JSC$8478_onFulfilled=[];this.JSC$8478_onRejected=[];r=r.executor;var I=function(Y){if(f.state.status==="PENDING"){f.state={status:"FULFILLED",value:Y};Y=_.E(f.JSC$8478_onFulfilled);for(var V=Y.next();!V.done;V=Y.next())V=V.value,V()}},C=function(Y){if(f.state.status==="PENDING"){f.state={status:"REJECTED",
reason:Y};Y=_.E(f.JSC$8478_onRejected);for(var V=Y.next();!V.done;V=Y.next())V=V.value,V()}};
try{r(I,C)}catch(Y){C(Y)}};
mM.all=function(r){return new mM(new eh(function(f,I){var C=[],Y=r.length;Y===0&&f(C);for(var V={i$jscomp$504:0};V.i$jscomp$504<r.length;V={i$jscomp$504:V.i$jscomp$504},++V.i$jscomp$504)mM.resolve(r[V.i$jscomp$504]).then(function(S){return function(h){C[S.i$jscomp$504]=h;Y--;Y===0&&f(C)}}(V)).catch(function(S){I(S)})}))};
mM.resolve=function(r){return new mM(new eh(function(f,I){r instanceof mM?r.then(f,I):f(r)}))};
mM.reject=function(r){return new mM(new eh(function(f,I){I(r)}))};
mM.prototype.then=function(r,f){var I=this,C=r!=null?r:HAw,Y=f!=null?f:jom;return new mM(new eh(function(V,S){I.state.status==="PENDING"?(I.JSC$8478_onFulfilled.push(function(){Pz3(I,I,C,V,S)}),I.JSC$8478_onRejected.push(function(){tq8(I,I,Y,V,S)})):I.state.status==="FULFILLED"?Pz3(I,I,C,V,S):I.state.status==="REJECTED"&&tq8(I,I,Y,V,S)}))};
mM.prototype.catch=function(r){return this.then(void 0,r)};
var Pz3=function(r,f,I,C,Y){try{if(r.state.status!=="FULFILLED")throw Error("Qc");var V=I(r.state.value);V instanceof mM?Tp4(r,f,V,C,Y):C(V)}catch(S){Y(S)}},tq8=function(r,f,I,C,Y){try{if(r.state.status!=="REJECTED")throw Error("Rc");
var V=I(r.state.reason);V instanceof mM?Tp4(r,f,V,C,Y):C(V)}catch(S){Y(S)}},Tp4=function(r,f,I,C,Y){f===I?Y(new TypeError("Sc")):I.then(function(V){V instanceof mM?Tp4(r,f,V,C,Y):C(V)},function(V){Y(V)})};var wf;wf=window;_.Ad=wf.ytcsi&&wf.ytcsi.now?wf.ytcsi.now:wf.performance&&wf.performance.timing&&wf.performance.now&&wf.performance.timing.navigationStart?function(){return wf.performance.timing.navigationStart+wf.performance.now()}:function(){return(new Date).getTime()};var jh=function(r,f){this.JSC$8490_wrapped=r;this.options=f;this.transactionCount=0;this.startedMs=Math.round((0,_.Ad)());this.hasUnknownAbortedTransaction=!1},LND,mWq,nV,j5T;
jh.prototype.add=function(r,f,I){return _.vd(this,[r],{mode:"readwrite",enableRetries:!0},function(C){return C.objectStore(r).add(f,I)})};
jh.prototype.clear=function(r){return _.vd(this,[r],{mode:"readwrite",enableRetries:!0},function(f){return f.objectStore(r).clear()})};
jh.prototype.close=function(){this.JSC$8490_wrapped.close();var r;((r=this.options)==null?0:r.closed)&&this.options.closed()};
jh.prototype.count=function(r,f){return _.vd(this,[r],{mode:"readonly",enableRetries:!0},function(I){return I.objectStore(r).count(f)})};
var m8=function(r,f,I){r=r.JSC$8490_wrapped.createObjectStore(f,I);return new b0(r)};
jh.prototype.delete=function(r,f){return _.vd(this,[r],{mode:"readwrite",enableRetries:!0},function(I){return I.objectStore(r).delete(f)})};
var c7B=function(r,f){return _.vd(r,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(I){return I.objectStore("ResponseStore").index("byInterface").delete(f)})};
jh.prototype.get=function(r,f){return _.vd(this,[r],{mode:"readonly",enableRetries:!0},function(I){return I.objectStore(r).get(f)})};
jh.prototype.getAll=function(r,f,I){return _.vd(this,[r],{mode:"readonly",enableRetries:!0},function(C){return C.objectStore(r).getAll(f,I)})};
jh.prototype.put=function(r,f,I){return _.vd(this,[r],{mode:"readwrite",enableRetries:!0},function(C){return C.objectStore(r).put(f,I)})};
jh.prototype.objectStoreNames=function(){return Array.from(this.JSC$8490_wrapped.objectStoreNames)};
_.vd=function(r,f,I,C){var Y,V,S,h,w,n,d,z,g,X,P,W;return _.x(function(m){switch(m.nextAddress){case 1:var v={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof I==="string"?v.mode=I:Object.assign(v,I);Y=v;r.transactionCount++;V=Y.enableRetries?3:1;S=0;case 2:if(h){m.jumpTo(4);break}S++;w=Math.round((0,_.Ad)());_.l_(m,5);n=r.JSC$8490_wrapped.transaction(f,Y.mode);v=new K0R(n);v=WN3(v,C);return _.b(m,v,7);case 7:return d=m.yieldResult,z=Math.round((0,_.Ad)()),LND(r,w,z,S,void 0,
f.join(),Y),m.return(d);case 5:g=_.ha(m);X=Math.round((0,_.Ad)());P=J1u(g,r.JSC$8490_wrapped.name,f.join(),r.JSC$8490_wrapped.version);if((W=P instanceof cd&&!P.retryable)||S>=V)LND(r,w,X,S,P,f.join(),Y),h=P;m.jumpTo(2);break;case 4:return m.return(Promise.reject(h))}})};
LND=function(r,f,I,C,Y,V,S){f=I-f;Y?(Y instanceof cd&&(Y.type==="QUOTA_EXCEEDED"||Y.type==="QUOTA_MAYBE_EXCEEDED")&&F8("QUOTA_EXCEEDED",{dbName:td(r.JSC$8490_wrapped.name),objectStoreNames:V,transactionCount:r.transactionCount,transactionMode:S.mode}),Y instanceof cd&&Y.type==="UNKNOWN_ABORT"&&(I-=r.startedMs,I<0&&I>=2147483648&&(I=0),F8("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:V,transactionDuration:f,transactionCount:r.transactionCount,dbDuration:I}),r.hasUnknownAbortedTransaction=!0),
mWq(r,!1,C,V,f,S.tag),_.$B(Y)):mWq(r,!0,C,V,f,S.tag)};
mWq=function(r,f,I,C,Y,V){F8("TRANSACTION_ENDED",{objectStoreNames:C,connectionHasUnknownAbortedTransaction:r.hasUnknownAbortedTransaction,duration:Y,isSuccessful:f,tryCount:I,tag:V===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":V})};
jh.prototype.getVersion=function(){return this.JSC$8490_wrapped.version};
jh.prototype.getName=function(){return this.JSC$8490_wrapped.name};
var b0=function(r){this.JSC$8505_wrapped=r};
b0.prototype.add=function(r,f){return Jd(this.JSC$8505_wrapped.add(r,f))};
b0.prototype.autoIncrement=function(){return this.JSC$8505_wrapped.autoIncrement};
b0.prototype.clear=function(){return Jd(this.JSC$8505_wrapped.clear()).then(function(){})};
var eM=function(r,f,I){r.JSC$8505_wrapped.createIndex(f,I,{unique:!1})};
b0.prototype.count=function(r){return Jd(this.JSC$8505_wrapped.count(r))};
var ecq=function(r,f){return yD(r,{query:f},function(I){return I.delete().then(function(){return I.continue()})}).then(function(){})};
b0.prototype.delete=function(r){return r instanceof IDBKeyRange?ecq(this,r):Jd(this.JSC$8505_wrapped.delete(r))};
b0.prototype.get=function(r){return Jd(this.JSC$8505_wrapped.get(r))};
b0.prototype.getAll=function(r,f){return"getAll"in IDBObjectStore.prototype?Jd(this.JSC$8505_wrapped.getAll(r,f)):J7T(this,r,f)};
var J7T=function(r,f,I){var C=[];return yD(r,{query:f},function(Y){if(!(I!==void 0&&C.length>=I))return C.push(Y.getValue()),Y.continue()}).then(function(){return C})};
b0.prototype.index=function(r){try{return new pV(this.JSC$8505_wrapped.index(r))}catch(f){if(f instanceof Error&&f.name==="NotFoundError")throw new myl(r,this.JSC$8505_wrapped.name);throw f;}};
b0.prototype.getName=function(){return this.JSC$8505_wrapped.name};
b0.prototype.keyPath=function(){return this.JSC$8505_wrapped.keyPath};
b0.prototype.put=function(r,f){return Jd(this.JSC$8505_wrapped.put(r,f))};
var yD=function(r,f,I){r=r.JSC$8505_wrapped.openCursor(f.query,f.direction);return j5T(r).then(function(C){return vAE(C,I)})},K0R=function(r){var f=this;
this.JSC$8513_wrapped=r;this.objectStoreCache=new Map;this.JSC$8513_aborted=!1;this.done=new Promise(function(I,C){f.JSC$8513_wrapped.addEventListener("complete",function(){I()});
f.JSC$8513_wrapped.addEventListener("error",function(Y){Y.currentTarget===Y.target&&C(f.JSC$8513_wrapped.error)});
f.JSC$8513_wrapped.addEventListener("abort",function(){var Y=f.JSC$8513_wrapped.error;if(Y)C(Y);else if(!f.JSC$8513_aborted){Y=cd;for(var V=f.JSC$8513_wrapped.objectStoreNames,S=[],h=0;h<V.length;h++){var w=V.item(h);if(w===null)throw Error("Tc");S.push(w)}Y=new Y("UNKNOWN_ABORT",{objectStoreNames:S.join(),dbName:f.JSC$8513_wrapped.db.name,mode:f.JSC$8513_wrapped.mode});C(Y)}})})},WN3=function(r,f){var I=new Promise(function(C,Y){try{f(r).then(function(V){C(V)}).catch(Y)}catch(V){Y(V),r.abort()}});
return Promise.all([I,r.done]).then(function(C){return _.E(C).next().value})};
K0R.prototype.abort=function(){this.JSC$8513_wrapped.abort();this.JSC$8513_aborted=!0;throw new cd("EXPLICIT_ABORT");};
K0R.prototype.objectStore=function(r){r=this.JSC$8513_wrapped.objectStore(r);var f=this.objectStoreCache.get(r);f||(f=new b0(r),this.objectStoreCache.set(r,f));return f};
var pV=function(r){this.JSC$8515_wrapped=r};
pV.prototype.count=function(r){return Jd(this.JSC$8515_wrapped.count(r))};
pV.prototype.delete=function(r){return _.Zy(this,{query:r},function(f){return f.delete().then(function(){return f.continue()})})};
pV.prototype.get=function(r){return Jd(this.JSC$8515_wrapped.get(r))};
pV.prototype.getAll=function(r,f){return"getAll"in IDBIndex.prototype?Jd(this.JSC$8515_wrapped.getAll(r,f)):HN4(this,r,f)};
var HN4=function(r,f,I){var C=[];return _.Zy(r,{query:f},function(Y){if(!(I!==void 0&&C.length>=I))return C.push(Y.getValue()),Y.continue()}).then(function(){return C})};
pV.prototype.keyPath=function(){return this.JSC$8515_wrapped.keyPath};
pV.prototype.unique=function(){return this.JSC$8515_wrapped.unique};
_.Zy=function(r,f,I){r=r.JSC$8515_wrapped.openCursor(f.query===void 0?null:f.query,f.direction===void 0?"next":f.direction);return j5T(r).then(function(C){return vAE(C,I)})};
nV=function(r,f){this.request=r;this.cursor=f};
j5T=function(r){return Jd(r).then(function(f){return f?new nV(r,f):null})};
nV.prototype.continue=function(r){this.cursor.continue(r);return j5T(this.request)};
nV.prototype.delete=function(){return Jd(this.cursor.delete()).then(function(){})};
nV.prototype.getValue=function(){return this.cursor.value};
nV.prototype.update=function(r){return Jd(this.cursor.update(r))};var df=function(r,f){this.name=r;this.options=f;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},iNV;
df.prototype.openDb=function(r,f,I){I=I===void 0?{}:I;return UyB(r,f,I)};
df.prototype.delete=function(r){r=r===void 0?{}:r;return _.ih(this.name,r)};
iNV=function(r,f){return new cd("INCOMPATIBLE_DB_VERSION",{dbName:r.name,oldVersion:r.options.version,newVersion:f})};
_.R1=function(r,f){if(!f)throw Lf("openWithToken",td(r.name));return r.open()};
df.prototype.open=function(){var r=this;if(!this.isCompatible)throw iNV(this);if(this.connectionPromise)return this.connectionPromise;var f,I=function(){r.connectionPromise===f&&(r.connectionPromise=void 0)},C={blocking:function(V){V.close()},
closed:I,terminated:I,upgrade:this.options.upgrade},Y=function(){var V,S,h,w,n,d,z,g,X,P;return _.x(function(W){switch(W.nextAddress){case 1:return S=(V=Error().stack)!=null?V:"",_.l_(W,2),_.b(W,r.openDb(r.name,r.options.version,C),4);case 4:for(var m=h=W.yieldResult,v=r.options,O=[],k=_.E(Object.keys(v.objectStores)),Z=k.next();!Z.done;Z=k.next()){Z=Z.value;var Cw=v.objectStores[Z],rR=Cw.removedAtVersion===void 0?Number.MAX_VALUE:Cw.removedAtVersion;!(m.JSC$8490_wrapped.version>=Cw.addedAtVersion)||
m.JSC$8490_wrapped.version>=rR||m.JSC$8490_wrapped.objectStoreNames.contains(Z)||O.push(Z)}w=O;if(w.length===0){W.jumpTo(5);break}n=Object.keys(r.options.objectStores);d=h.objectStoreNames();if(r.timesReopenedToFixMissingObjectStore<_.Bw("ytidb_reopen_db_retries",0))return r.timesReopenedToFixMissingObjectStore++,h.close(),_.$B(new cd("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:r.name,expectedObjectStores:n,foundObjectStores:d})),W.return(Y());if(!(r.timesDeletedToFixMissingObjectStore<_.Bw("ytidb_remake_db_retries",
1))){W.jumpTo(6);break}r.timesDeletedToFixMissingObjectStore++;return _.b(W,r.delete(),7);case 7:return _.$B(new cd("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:r.name,expectedObjectStores:n,foundObjectStores:d})),W.return(Y());case 6:throw new FNV(d,n);case 5:return W.return(h);case 2:z=_.ha(W);if(z instanceof DOMException?z.name!=="VersionError":"DOMError"in self&&z instanceof DOMError?z.name!=="VersionError":!(z instanceof Object&&"message"in z)||z.message!=="An attempt was made to open a database using a lower version than the existing version."){W.jumpTo(8);
break}return _.b(W,r.openDb(r.name,void 0,Object.assign({},C,{upgrade:void 0})),9);case 9:g=W.yieldResult;X=g.getVersion();if(r.options.version!==void 0&&X>r.options.version+1)throw g.close(),r.isCompatible=!1,iNV(r,X);return W.return(g);case 8:throw I(),z instanceof Error&&!_.N("ytidb_async_stack_killswitch")&&(z.stack=z.stack+"\n"+S.substring(S.indexOf("\n")+1)),J1u(z,r.name,"",(P=r.options.version)!=null?P:-1);}})};
return this.connectionPromise=f=Y()};var soB=new df("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(r,f){f(1)&&m8(r,"databases",{keyPath:"actualName"})}});var kIw,ZA$=new function(){}(new function(){});new _.uX;var Rc_=function(r,f){df.call(this,r,f);this.options=f;Pd(r)};
_.t(Rc_,df);var lkq=function(r,f){var I;return function(){I||(I=new Rc_(r,f));return I}};
Rc_.prototype.openDb=function(r,f,I){I=I===void 0?{}:I;return(this.options.shared?rZ$:Dym)(r,f,Object.assign({},I))};
Rc_.prototype.delete=function(r){r=r===void 0?{}:r;return(this.options.shared?Y_R:fkP)(this.name,r)};var vlB={},V_q=QD("ytGcfConfig",{objectStores:(vlB.coldConfigStore={addedAtVersion:1},vlB.hotConfigStore={addedAtVersion:1},vlB),shared:!1,upgrade:function(r,f){f(1)&&(eM(m8(r,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),eM(m8(r,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var KN8=function(){_.Mu.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var r=_.jH("yt.gcf.config.hotUpdateCallbacks");r?(this.localHotConfigJobQueue=[].concat(_.Na(r)),this.sharedHotConfigJobQueue=r):(this.sharedHotConfigJobQueue=[],_.OH("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.t(KN8,_.Mu);KN8.prototype.disposeInternal=function(){for(var r=_.E(this.localHotConfigJobQueue),f=r.next();!f.done;f=r.next()){var I=this.sharedHotConfigJobQueue;f=I.indexOf(f.value);f>=0&&I.splice(f,1)}this.localHotConfigJobQueue.length=0;_.Mu.prototype.disposeInternal.call(this)};var zL=function(){var r=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new KN8;this.TEST_ONLY={initializeConfigDb:function(){r.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return r.coldGlobalConfigGroup},
setHotConfigGroup:function(f){y7_(r,f)},
setHotHashData:function(f){r.setHotHashData(f)},
setColdConfigGroup:function(f){UWX(r,f)},
getColdHashData:function(){return r.coldHashData},
getHotHashData:function(){return r.hotHashData},
getHotConfigGroup:function(){return r.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return s53()},
getExportedHotConfigGroup:function(){return z9()},
getExportedColdHashData:function(){return _.jH("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.jH("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){ON3(r)},
resetInstance:function(){r.setHotHashData(void 0);ols(r);delete zL.instance},
setDebounceTimer:function(f){r.debounceTimer=f},
getDebounceTimer:function(){return r.debounceTimer}}},Q5B=function(){if(!zL.instance){var r=new zL;
zL.instance=r}return zL.instance},GL8=function(r){var f;
_.x(function(I){if(I.nextAddress==1)return _.N("start_client_gcf")||_.N("delete_gcf_config_db")?_.N("start_client_gcf")?_.b(I,_.o1(),3):I.jumpTo(2):I.return();I.nextAddress!=2&&((f=I.yieldResult)&&_.pf()&&!_.N("delete_gcf_config_db")?(r.isConfigDbInitialized=!0,ON3(r)):(A7V(r),ZN3(r)));return _.N("delete_gcf_config_db")?_.b(I,beR(),0):I.jumpTo(0)})},zsd=function(){var r;
return(r=z9())!=null?r:_.Lz("RAW_HOT_CONFIG_GROUP")},kLD=function(r){var f,I,C,Y,V,S;
return _.x(function(h){switch(h.nextAddress){case 1:if(r.hotGlobalConfigGroup)return h.return(z9());if(!r.isConfigDbInitialized)return f=Lf("getHotConfig IDB not initialized"),_.Hw(f),h.return(Promise.reject(f));I=sH();C=_.Lz("TIME_CREATED_MS");if(!I){Y=Lf("getHotConfig token error");_.Hw(Y);h.jumpTo(2);break}return _.b(h,wFu(I),3);case 3:if((V=h.yieldResult)&&V.timestamp>C)return y7_(r,V.config),r.setHotHashData(V.hashData),h.return(z9());case 2:ZN3(r);if(!(I&&r.hotGlobalConfigGroup&&r.hotHashData)){h.jumpTo(4);
break}return _.b(h,S_u(r.hotGlobalConfigGroup,r.hotHashData,I,C),4);case 4:return r.hotGlobalConfigGroup?h.return(z9()):(S=new _.nf("Config not available in ytConfig"),_.Hw(S),h.return(Promise.reject(S)))}})},qeT=function(r){var f,I,C,Y,V,S;
return _.x(function(h){switch(h.nextAddress){case 1:if(r.coldGlobalConfigGroup)return h.return(s53());if(!r.isConfigDbInitialized)return f=Lf("getColdConfig IDB not initialized"),_.Hw(f),h.return(Promise.reject(f));I=sH();C=_.Lz("TIME_CREATED_MS");if(!I){Y=Lf("getColdConfig");_.Hw(Y);h.jumpTo(2);break}return _.b(h,hdd(I),3);case 3:if((V=h.yieldResult)&&V.timestamp>C)return UWX(r,V.config),Bp8(r,V.configData),ols(r,V.hashData),h.return(s53());case 2:A7V(r);if(!(I&&r.coldGlobalConfigGroup&&r.coldHashData&&
r.configData)){h.jumpTo(4);break}return _.b(h,xoK(r.coldGlobalConfigGroup,r.coldHashData,r.configData,I,C),4);case 4:return r.coldGlobalConfigGroup?h.return(s53()):(S=new _.nf("Config not available in ytConfig"),_.Hw(S),h.return(Promise.reject(S)))}})},ON3=function(r){if(!r.hotGlobalConfigGroup||!r.coldGlobalConfigGroup){if(!sH()){var f=Lf("scheduleGetConfigs");
_.Hw(f)}r.initJob||(r.initJob=_.F_.addLowPriorityJob(function(){return _.x(function(I){switch(I.nextAddress){case 1:return _.l_(I,2),_.b(I,kLD(r),4);case 4:_.Hd(I,3);break;case 2:_.ha(I);case 3:return _.l_(I,5),_.b(I,qeT(r),7);case 7:_.Hd(I,6);break;case 5:_.ha(I);case 6:r.initJob&&(r.initJob=0),_.wO(I)}})},100))}},wId=function(r,f,I){var C,Y,V;
return _.x(function(S){switch(S.nextAddress){case 1:if(!_.N("start_client_gcf")){S.jumpTo(0);break}I&&y7_(r,I);r.setHotHashData(f);C=sH();if(!C){S.jumpTo(3);break}if(I){S.jumpTo(4);break}return _.b(S,wFu(C),5);case 5:Y=S.yieldResult,I=(V=Y)==null?void 0:V.config;case 4:return _.b(S,S_u(I,f,C),3);case 3:if(I)for(var h=I,w=_.E(r.configUpdateService.sharedHotConfigJobQueue),n=w.next();!n.done;n=w.next())n=n.value,n(h);_.wO(S)}})},bvE=function(r,f,I){var C,Y,V,S;
return _.x(function(h){if(h.nextAddress==1){if(!_.N("start_client_gcf"))return h.jumpTo(0);ols(r,f);return(C=sH())?I?h.jumpTo(4):_.b(h,hdd(C),5):h.jumpTo(0)}h.nextAddress!=4&&(Y=h.yieldResult,I=(V=Y)==null?void 0:V.config);if(!I)return h.jumpTo(0);S=I.configData;return _.b(h,xoK(I,f,S,C),0)})},moR=function(){var r=Q5B(),f=(0,_.Ad)()-r.debounceTimer;
if(!(r.debounceTimer!==0&&f<_.Bw("send_config_hash_timer"))){f=_.jH("yt.gcf.config.coldConfigData");var I=_.jH("yt.gcf.config.hotHashData"),C=_.jH("yt.gcf.config.coldHashData");f&&I&&C&&(r.debounceTimer=(0,_.Ad)());return{coldConfigData:f,hotHashData:I,coldHashData:C}}},A7V=function(r){UWX(r,_.Lz("RAW_COLD_CONFIG_GROUP"));
ols(r,_.Lz("SERIALIZED_COLD_HASH_DATA"));var f;Bp8(r,(f=r.coldGlobalConfigGroup)==null?void 0:f.configData)},ZN3=function(r){y7_(r,_.Lz("RAW_HOT_CONFIG_GROUP"));
r.setHotHashData(_.Lz("SERIALIZED_HOT_HASH_DATA"))},y7_=function(r,f){r.hotGlobalConfigGroup=f;
_.OH("yt.gcf.config.hotConfigGroup",r.hotGlobalConfigGroup||null)},UWX=function(r,f){r.coldGlobalConfigGroup=f;
_.OH("yt.gcf.config.coldConfigGroup",r.coldGlobalConfigGroup||null)};
zL.prototype.setHotHashData=function(r){this.hotHashData=r;_.OH("yt.gcf.config.hotHashData",this.hotHashData||null)};
var ols=function(r,f){r.coldHashData=f;_.OH("yt.gcf.config.coldHashData",r.coldHashData||null)},Bp8=function(r,f){r.configData=f;
_.OH("yt.gcf.config.coldConfigData",r.configData||null)},z9=function(){return _.jH("yt.gcf.config.hotConfigGroup")},s53=function(){return _.jH("yt.gcf.config.coldConfigGroup")};var CW={},uo4=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";CW.assign=function(r){for(var f=Array.prototype.slice.call(arguments,1);f.length;){var I=f.shift();if(I){if(typeof I!=="object")throw new TypeError("Wc`"+I);for(var C in I)Object.prototype.hasOwnProperty.call(I,C)&&(r[C]=I[C])}}return r};
CW.shrinkBuf=function(r,f){if(r.length===f)return r;if(r.subarray)return r.subarray(0,f);r.length=f;return r};
var DW4={arraySet:function(r,f,I,C,Y){if(f.subarray&&r.subarray)r.set(f.subarray(I,I+C),Y);else for(var V=0;V<C;V++)r[Y+V]=f[I+V]},
flattenChunks:function(r){var f,I;var C=I=0;for(f=r.length;C<f;C++)I+=r[C].length;var Y=new Uint8Array(I);C=I=0;for(f=r.length;C<f;C++){var V=r[C];Y.set(V,I);I+=V.length}return Y}},rq4={arraySet:function(r,f,I,C,Y){for(var V=0;V<C;V++)r[Y+V]=f[I+V]},
flattenChunks:function(r){return[].concat.apply([],r)}};
CW.setTyped=function(){uo4?(CW.Buf8=Uint8Array,CW.Buf16=Uint16Array,CW.Buf32=Int32Array,CW.assign(CW,DW4)):(CW.Buf8=Array,CW.Buf16=Array,CW.Buf32=Array,CW.assign(CW,rq4))};
CW.setTyped();var fmV=!0;try{new Uint8Array(1)}catch(r){fmV=!1}
var w1K=function(r){var f,I,C=r.length,Y=0;for(f=0;f<C;f++){var V=r.charCodeAt(f);if((V&64512)===55296&&f+1<C){var S=r.charCodeAt(f+1);(S&64512)===56320&&(V=65536+(V-55296<<10)+(S-56320),f++)}Y+=V<128?1:V<2048?2:V<65536?3:4}var h=new CW.Buf8(Y);for(f=I=0;I<Y;f++)V=r.charCodeAt(f),(V&64512)===55296&&f+1<C&&(S=r.charCodeAt(f+1),(S&64512)===56320&&(V=65536+(V-55296<<10)+(S-56320),f++)),V<128?h[I++]=V:(V<2048?h[I++]=192|V>>>6:(V<65536?h[I++]=224|V>>>12:(h[I++]=240|V>>>18,h[I++]=128|V>>>12&63),h[I++]=
128|V>>>6&63),h[I++]=128|V&63);return h};var ucR={};ucR=function(r,f,I,C){var Y=r&65535|0;r=r>>>16&65535|0;for(var V;I!==0;){V=I>2E3?2E3:I;I-=V;do Y=Y+f[C++]|0,r=r+Y|0;while(--V);Y%=65521;r%=65521}return Y|r<<16|0};for(var gU={},Mr,ImT=[],CK3=0;CK3<256;CK3++){Mr=CK3;for(var YCs=0;YCs<8;YCs++)Mr=Mr&1?3988292384^Mr>>>1:Mr>>>1;ImT[CK3]=Mr}gU=function(r,f,I,C){I=C+I;for(r^=-1;C<I;C++)r=r>>>8^ImT[(r^f[C])&255];return r^-1};var Ej={};Ej={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 Uoc=[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],Oec=[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],hkq=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],BXw=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],wU=Array(576);Dy(wU);var bx=Array(60);Dy(bx);var lx=Array(512);Dy(lx);var Yo=Array(256);Dy(Yo);var slq=Array(29);Dy(slq);var oIU=Array(30);Dy(oIU);var Exm,SrK,xjE,VoK=!1;var $o;
$o=[new N4(0,0,0,0,function(r,f){var I=65535;for(I>r.pending_buf_size-5&&(I=r.pending_buf_size-5);;){if(r.lookahead<=1){ah(r);if(r.lookahead===0&&f===0)return 1;if(r.lookahead===0)break}r.strstart+=r.lookahead;r.lookahead=0;var C=r.block_start+I;if(r.strstart===0||r.strstart>=C)if(r.lookahead=r.strstart-C,r.strstart=C,nW(r,!1),r.strm.avail_out===0)return 1;if(r.strstart-r.block_start>=r.w_size-262&&(nW(r,!1),r.strm.avail_out===0))return 1}r.insert=0;if(f===4)return nW(r,!0),r.strm.avail_out===0?3:
4;r.strstart>r.block_start&&nW(r,!1);return 1}),
new N4(4,4,8,4,Doq),new N4(4,5,16,8,Doq),new N4(4,6,32,32,Doq),new N4(4,4,16,16,X_),new N4(8,16,32,32,X_),new N4(8,16,128,128,X_),new N4(8,32,128,256,X_),new N4(32,128,258,1024,X_),new N4(32,258,258,4096,X_)];var lxE={};lxE=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 b2m=Object.prototype.toString;
YrR.prototype.push=function(r,f){var I=this.strm,C=this.options.chunkSize;if(this.ended)return!1;var Y=f===~~f?f:f===!0?4:0;typeof r==="string"?I.input=w1K(r):b2m.call(r)==="[object ArrayBuffer]"?I.input=new Uint8Array(r):I.input=r;I.next_in=0;I.avail_in=I.input.length;do{I.avail_out===0&&(I.output=new CW.Buf8(C),I.next_out=0,I.avail_out=C);r=CX$(I,Y);if(r!==1&&r!==0)return lm3(this,r),this.ended=!0,!1;if(I.avail_out===0||I.avail_in===0&&(Y===4||Y===2))if(this.options.to==="string"){var V=CW.shrinkBuf(I.output,
I.next_out);f=V;V=V.length;if(V<65537&&(f.subarray&&fmV||!f.subarray))f=String.fromCharCode.apply(null,CW.shrinkBuf(f,V));else{for(var S="",h=0;h<V;h++)S+=String.fromCharCode(f[h]);f=S}this.chunks.push(f)}else f=CW.shrinkBuf(I.output,I.next_out),this.chunks.push(f)}while((I.avail_in>0||I.avail_out===0)&&r!==1);if(Y===4)return(I=this.strm)&&I.state?(C=I.state.status,C!==42&&C!==69&&C!==73&&C!==91&&C!==103&&C!==113&&C!==666?r=SM(I,-2):(I.state=null,r=C===113?SM(I,-3):0)):r=-2,lm3(this,r),this.ended=
!0,r===0;Y===2&&(lm3(this,0),I.avail_out=0);return!0};
var lm3=function(r,f){f===0&&(r.result=r.options.to==="string"?r.chunks.join(""):CW.flattenChunks(r.chunks));r.chunks=[];r.err=f;r.msg=r.strm.msg};var VJT=typeof TextEncoder!=="undefined"?new TextEncoder:null,srq=VJT?function(r){return VJT.encode(r)}:function(r){r=_.zH(r);
for(var f=new Uint8Array(r.length),I=0;I<f.length;I++)f[I]=r[I];return f};var g6K={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},XJm={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var gf=function(r,f){this.version=r;this.args=f};
gf.prototype.serialize=function(){return{version:this.version,args:this.args}};var Mol=function(r,f){this.topic=r;this.dataClass=f};
Mol.prototype.toString=function(){return this.topic};var Efs=_.jH("ytPubsub2Pubsub2Instance")||new _.EH;_.EH.prototype.subscribe=_.EH.prototype.subscribe;_.EH.prototype.unsubscribeByKey=_.EH.prototype.unsubscribeByKey;_.EH.prototype.publish=_.EH.prototype.publish;_.EH.prototype.clear=_.EH.prototype.clear;_.OH("ytPubsub2Pubsub2Instance",Efs);var zkK=_.jH("ytPubsub2Pubsub2SubscribedKeys")||{};_.OH("ytPubsub2Pubsub2SubscribedKeys",zkK);var axE=_.jH("ytPubsub2Pubsub2TopicToKeys")||{};_.OH("ytPubsub2Pubsub2TopicToKeys",axE);
var gxw=_.jH("ytPubsub2Pubsub2IsAsync")||{};_.OH("ytPubsub2Pubsub2IsAsync",gxw);_.OH("ytPubsub2Pubsub2SkipSubKey",null);var LQq=void 0,cQ$=void 0;var vxU=_.Bw("max_body_size_to_compress",5E5),KQq=_.Bw("min_body_size_to_compress",500),tV=!0,Qr$=0,TO=0,ox$=_.Bw("compression_performance_threshold_lr",250),AQm=_.Bw("slow_compressions_before_abandon_count",4),JQd=!1,jrq=new Map,UjP=1,yQd=!0;_.rh(cW,k3R);cW.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 SC3=function(r,f,I){I||(I=0);var C=r.W_;if(typeof f==="string")for(var Y=0;Y<16;Y++)C[Y]=f.charCodeAt(I)<<24|f.charCodeAt(I+1)<<16|f.charCodeAt(I+2)<<8|f.charCodeAt(I+3),I+=4;else for(Y=0;Y<16;Y++)C[Y]=f[I]<<24|f[I+1]<<16|f[I+2]<<8|f[I+3],I+=4;for(f=16;f<80;f++)I=C[f-3]^C[f-8]^C[f-14]^C[f-16],C[f]=(I<<1|I>>>31)&4294967295;f=r.chain_[0];I=r.chain_[1];Y=r.chain_[2];for(var V=r.chain_[3],S=r.chain_[4],h,w,n=0;n<80;n++)n<40?n<20?(h=V^I&(Y^V),w=1518500249):(h=I^Y^V,w=1859775393):n<60?(h=I&Y|V&(I|Y),
w=2400959708):(h=I^Y^V,w=3395469782),h=(f<<5|f>>>27)+h+S+w+C[n]&4294967295,S=V,V=Y,Y=(I<<30|I>>>2)&4294967295,I=f,f=h;r.chain_[0]=r.chain_[0]+f&4294967295;r.chain_[1]=r.chain_[1]+I&4294967295;r.chain_[2]=r.chain_[2]+Y&4294967295;r.chain_[3]=r.chain_[3]+V&4294967295;r.chain_[4]=r.chain_[4]+S&4294967295};
cW.prototype.update=function(r,f){if(r!=null){f===void 0&&(f=r.length);for(var I=f-this.blockSize,C=0,Y=this.buf_,V=this.inbuf_;C<f;){if(V==0)for(;C<=I;)SC3(this,r,C),C+=this.blockSize;if(typeof r==="string")for(;C<f;){if(Y[V]=r.charCodeAt(C),++V,++C,V==this.blockSize){SC3(this,Y);V=0;break}}else for(;C<f;)if(Y[V]=r[C],++V,++C,V==this.blockSize){SC3(this,Y);V=0;break}}this.inbuf_=V;this.total_+=f}};
cW.prototype.digest=function(){var r=[],f=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var I=this.blockSize-1;I>=56;I--)this.buf_[I]=f&255,f/=256;SC3(this,this.buf_);for(I=f=0;I<5;I++)for(var C=24;C>=0;C-=8)r[f]=this.chain_[I]>>C&255,++f;return r};var uNB;var XV=function(r){var f=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(d){f.databaseToken=d},
triggerThrottle:function(){f.throttledSend()},
cancelThrottle:function(){f.cancelThrottledSend()},
immediateSend:function(d){return _.x(function(z){return _.b(z,f.immediateSend(d),0)})},
requestWithinAgeLimit:function(d,z){return f.requestWithinAgeLimit(d,z)},
retryQueuedRequests:function(){f.retryQueuedRequests()}};
var I;this.throttleTimeout=(I=r.throttleTimeout)!=null?I:100;var C;this.retryMaxAttempts=(C=r.retryMaxAttempts)!=null?C:1;var Y;this.requestAgeLimitMs=(Y=r.requestAgeLimitMs)!=null?Y:2592E6;var V;this.queuedRequestAgeLimitMs=(V=r.queuedRequestAgeLimitMs)!=null?V:12E4;var S;this.retryDelayMs=(S=r.retryDelayMs)!=null?S:5E3;var h;this.databaseToken=(h=r.databaseToken)!=null?h:void 0;this.enableCleaning=!!r.enableCleaning;var w;this.cleaningRate=(w=r.cleaningRate)!=null?w:.1;var n;this.potentialEsfErrorLimit=
(n=r.potentialEsfErrorLimit)!=null?n:10;r.handleError&&(this.handleError=r.handleError);r.handleWarning&&(this.handleWarning=r.handleWarning);r.disableYtIdbTransactions&&(this.disableYtIdbTransactions=r.disableYtIdbTransactions);r.bypassDbTokenDependency&&(this.bypassDbTokenDependency=r.bypassDbTokenDependency);this.getBooleanFlag=r.getBooleanFlag;this.jobManager=r.jobManager;this.logsStore=r.logsStore;this.networkManager=r.networkManager;this.sendFn=r.sendFn;this.onlineEvent=r.onlineEvent;this.offlineEvent=
r.offlineEvent;aj(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&x78(this)},x78=function(r){aj(r)&&!r.disableYtIdbTransactions&&(r.initialized=!0,r.enableCleaning&&Math.random()<=r.cleaningRate&&r.logsStore.cleanLogsStore(r.databaseToken),r.retryQueuedRequests(),r.networkManager.isNetworkAvailable()&&r.throttledSend(),r.networkManager.listen(r.onlineEvent,r.throttledSend.bind(r)),r.networkManager.listen(r.offlineEvent,r.cancelThrottledSend.bind(r)))};
_.l=XV.prototype;_.l.writeThenSend=function(r,f){var I=this;f=f===void 0?{}:f;if(aj(this)&&this.initialized){var C={url:r,options:f,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(C,this.databaseToken).then(function(Y){C.id=Y;I.networkManager.isNetworkAvailable()&&I.immediateSend(C)}).catch(function(Y){I.immediateSend(C);
hRq(I,Y)})}else this.sendFn(r,f)};
_.l.sendThenWrite=function(r,f,I){var C=this;f=f===void 0?{}:f;if(aj(this)&&this.initialized){var Y={url:r,options:f,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(Y.skipRetry=I);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!Y.skipRetry){if(!Y.skipRetry){var V=f.onError?f.onError:function(){};
f.onError=function(S,h){return _.x(function(w){if(w.nextAddress==1)return _.b(w,C.logsStore.set(Y,C.databaseToken).catch(function(n){hRq(C,n)}),2);
V(S,h);_.wO(w)})}}this.sendFn(r,f,Y.skipRetry)}else this.logsStore.set(Y,this.databaseToken).catch(function(S){C.sendFn(r,f,Y.skipRetry);
hRq(C,S)})}else this.sendFn(r,f,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&I)};
_.l.sendAndWrite=function(r,f){var I=this;f=f===void 0?{}:f;if(aj(this)&&this.initialized){var C={url:r,options:f,timestamp:this.now(),status:"NEW",sendCount:0},Y=!1,V=f.onSuccess?f.onSuccess:function(){};
C.options.onSuccess=function(S,h){C.id!==void 0?I.logsStore.deleteRequest(C.id,I.databaseToken):Y=!0;I.networkManager.networkStatusHint&&I.getBooleanFlag&&I.getBooleanFlag("vss_network_hint")&&I.networkManager.networkStatusHint(!0);V(S,h)};
this.sendFn(C.url,C.options,void 0,!0);this.logsStore.set(C,this.databaseToken).then(function(S){C.id=S;Y&&I.logsStore.deleteRequest(C.id,I.databaseToken)}).catch(function(S){hRq(I,S)})}else this.sendFn(r,f,void 0,!0)};
_.l.throttledSend=function(){var r=this;if(!aj(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var f;return _.x(function(I){if(I.nextAddress==1)return _.b(I,r.logsStore.getMostRecentByStatus("NEW",r.databaseToken),2);if(I.nextAddress!=3)return f=I.yieldResult,f?_.b(I,r.immediateSend(f),3):(r.cancelThrottledSend(),I.return());r.intervalJob&&(r.intervalJob=0,r.throttledSend());_.wO(I)})},this.throttleTimeout))};
_.l.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.l.immediateSend=function(r){var f=this,I;return _.x(function(C){switch(C.nextAddress){case 1:if(!aj(f))throw Error("$c");if(r.id===void 0){C.jumpTo(2);break}return _.b(C,f.logsStore.markAsQueued(r.id,f.databaseToken),3);case 3:(I=C.yieldResult)||f.handleWarning(Error("ad"));case 2:if(f.requestWithinAgeLimit(r,f.requestAgeLimitMs)){C.jumpTo(4);break}f.handleWarning(Error("bd"));if(r.id===void 0){C.jumpTo(5);break}return _.b(C,f.logsStore.deleteRequest(r.id,f.databaseToken),5);case 5:return C.return();
case 4:r.skipRetry||(r=w8D(f,r));if(!r){C.jumpTo(0);break}if(!r.skipRetry||r.id===void 0){C.jumpTo(8);break}return _.b(C,f.logsStore.deleteRequest(r.id,f.databaseToken),8);case 8:f.sendFn(r.url,r.options,!!r.skipRetry),_.wO(C)}})};
var w8D=function(r,f){if(!aj(r))throw Error("cd");var I=f.options.onError?f.options.onError:function(){};
f.options.onError=function(Y,V){var S,h,w,n;return _.x(function(d){switch(d.nextAddress){case 1:S=CAB(V);(h=YiE(V))&&r.getBooleanFlag&&r.getBooleanFlag("web_enable_error_204")&&r.handleError(Error("dd"),f.url,V);if(!(r.getBooleanFlag&&r.getBooleanFlag("nwl_consider_error_code")&&S||r.getBooleanFlag&&!r.getBooleanFlag("nwl_consider_error_code")&&r.potentialEsfErrorCounter<=r.potentialEsfErrorLimit)){d.jumpTo(2);break}if(!r.networkManager.sendNetworkCheckRequest){d.jumpTo(3);break}return _.b(d,r.networkManager.sendNetworkCheckRequest(),
3);case 3:if(r.networkManager.isNetworkAvailable()){d.jumpTo(2);break}I(Y,V);if(!r.getBooleanFlag||!r.getBooleanFlag("nwl_consider_error_code")||((w=f)==null?void 0:w.id)===void 0){d.jumpTo(6);break}return _.b(d,r.logsStore.resetRequest(f.id,r.databaseToken,!1),6);case 6:return d.return();case 2:if(r.getBooleanFlag&&r.getBooleanFlag("nwl_consider_error_code")&&!S&&r.potentialEsfErrorCounter>r.potentialEsfErrorLimit)return d.return();r.potentialEsfErrorCounter++;if(((n=f)==null?void 0:n.id)===void 0){d.jumpTo(8);
break}return f.sendCount<r.retryMaxAttempts?_.b(d,r.logsStore.resetRequest(f.id,r.databaseToken,!0,h?!1:void 0),12):_.b(d,r.logsStore.deleteRequest(f.id,r.databaseToken),8);case 12:r.jobManager.addLowPriorityJob(function(){r.networkManager.isNetworkAvailable()&&r.throttledSend()},r.retryDelayMs);
case 8:I(Y,V),_.wO(d)}})};
var C=f.options.onSuccess?f.options.onSuccess:function(){};
f.options.onSuccess=function(Y,V){var S;return _.x(function(h){if(h.nextAddress==1)return((S=f)==null?void 0:S.id)===void 0?h.jumpTo(2):_.b(h,r.logsStore.deleteRequest(f.id,r.databaseToken),2);r.networkManager.networkStatusHint&&r.getBooleanFlag&&r.getBooleanFlag("vss_network_hint")&&r.networkManager.networkStatusHint(!0);C(Y,V);_.wO(h)})};
return f};
XV.prototype.requestWithinAgeLimit=function(r,f){r=r.timestamp;return this.now()-r>=f?!1:!0};
XV.prototype.retryQueuedRequests=function(){var r=this;if(!aj(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(f){f&&!r.requestWithinAgeLimit(f,r.queuedRequestAgeLimitMs)?r.jobManager.addLowPriorityJob(function(){return _.x(function(I){if(I.nextAddress==1)return f.id===void 0?I.jumpTo(2):_.b(I,r.logsStore.resetRequest(f.id,r.databaseToken),2);r.retryQueuedRequests();_.wO(I)})}):r.networkManager.isNetworkAvailable()&&r.throttledSend()})};
var hRq=function(r,f){r.writeError&&!r.networkManager.isNetworkAvailable()?r.writeError(f):r.handleError(f)},aj=function(r){return!!r.databaseToken||r.bypassDbTokenDependency};var lhR;var ddK={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520};var bEU={},dGw=QD("ServiceWorkerLogsDatabase",{objectStores:(bEU.SWHealthLog={addedAtVersion:1},bEU),shared:!0,upgrade:function(r,f){f(1)&&eM(m8(r,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var T_R={},tld=0;var mGu;var Nr=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Rh=function(){if(!Nr.instance){var r=_.jH("yt.networkRequestMonitor.instance")||new Nr;
_.OH("yt.networkRequestMonitor.instance",r);Nr.instance=r}return Nr.instance};
Nr.prototype.requestComplete=function(r,f){f&&(this.anyRequestHasSucceeded=!0);r=this.removeParams(r);this.requestMap.get(r)||this.requestMap.set(r,f)};
Nr.prototype.isEndpointCFR=function(r){r=this.removeParams(r);return(r=this.requestMap.get(r))?!1:r===!1&&this.anyRequestHasSucceeded?!0:null};
Nr.prototype.removeParams=function(r){return r.split("?")[0]};
Nr.prototype.removeParams=Nr.prototype.removeParams;Nr.prototype.isEndpointCFR=Nr.prototype.isEndpointCFR;Nr.prototype.requestComplete=Nr.prototype.requestComplete;Nr.getInstance=Rh;var $6=function(r){_.zh.call(this);var f=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=r!=null?r:{addLowPriorityJob:function(Y,V){return setTimeout(Y,V)},
cancelJob:function(Y){clearTimeout(Y)}};
var I,C;this.isOnline=(C=(I=window.navigator)==null?void 0:I.onLine)!=null?C:!0;this.onNavigatorChange=function(){return _.x(function(Y){return _.b(Y,p8s(f),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||nfV(this)};
_.t($6,_.zh);$6.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete $6.instance};
$6.prototype.isNetworkAvailable=function(){return this.isOnline};
var nfV=function(r){r.pollingJob=r.jobManager.addLowPriorityJob(function(){var f;return _.x(function(I){if(I.nextAddress==1)return r.isOnline?((f=window.navigator)==null?0:f.onLine)?I.jumpTo(3):_.b(I,p8s(r),3):_.b(I,p8s(r),3);nfV(r);_.wO(I)})},3E4)},p8s=function(r,f){return r.networkRequestPromise?r.networkRequestPromise:r.networkRequestPromise=new Promise(function(I){var C,Y,V,S;
return _.x(function(h){switch(h.nextAddress){case 1:return C=window.AbortController?new window.AbortController:void 0,V=(Y=C)==null?void 0:Y.signal,S=!1,_.l_(h,2,3),C&&(r.abortTimeoutKey=r.jobManager.addLowPriorityJob(function(){C.abort()},f||2E4)),_.b(h,fetch("/generate_204",{method:"HEAD",
signal:V}),5);case 5:S=!0;case 3:_.VY(h);r.networkRequestPromise=void 0;r.abortTimeoutKey&&(r.jobManager.cancelJob(r.abortTimeoutKey),r.abortTimeoutKey=0);S!==r.isOnline&&(r.isOnline=S,r.isOnline?r.dispatchEvent("networkstatus-online"):r.dispatchEvent("networkstatus-offline"));I(S);_.xV(h,0);break;case 2:_.ha(h),S=!1,h.jumpTo(3)}})})};var FV=function(){_.zh.call(this);var r=this;this.shouldFlushErrors=!1;$6.instance||($6.instance=new $6(_.F_));this.sharedNetworkStatusManager=$6.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(r.shouldFlushErrors&&_.N("offline_error_handling")){var f=eEc().get("errors",!0);if(f){for(var I in f)if(f[I]){var C=new _.nf(I,"sent via offline_errors");C.name=f[I].name;C.stack=f[I].stack;C.level=f[I].level;_.eH(C)}eEc().set("errors",{},2592E3,!0)}}})};
_.t(FV,_.zh);var d7V=function(){if(!FV.instance){var r=_.jH("yt.networkStatusManager.instance")||new FV;_.OH("yt.networkStatusManager.instance",r);FV.instance=r}return FV.instance};
_.l=FV.prototype;_.l.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.l.networkStatusHint=function(r){this.sharedNetworkStatusManager.isOnline=r};
_.l.getWindowStatus=function(){var r=window.navigator.onLine;return r===void 0?!0:r};
_.l.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.l.listen=function(r,f){return this.sharedNetworkStatusManager.listen(r,f)};
_.l.sendNetworkCheckRequest=function(r){r=p8s(this.sharedNetworkStatusManager,r);r.then(function(f){_.N("use_cfr_monitor")&&Rh().requestComplete("generate_204",f)});
return r};
FV.prototype.sendNetworkCheckRequest=FV.prototype.sendNetworkCheckRequest;FV.prototype.listen=FV.prototype.listen;FV.prototype.enableErrorFlushing=FV.prototype.enableErrorFlushing;FV.prototype.getWindowStatus=FV.prototype.getWindowStatus;FV.prototype.networkStatusHint=FV.prototype.networkStatusHint;FV.prototype.isNetworkAvailable=FV.prototype.isNetworkAvailable;FV.getInstance=d7V;_.ix=function(r){r=r===void 0?{}:r;_.zh.call(this);var f=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=d7V();var I=_.jH("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);I&&(r.rateLimit?(this.rateLimit=r.rateLimit,I("networkstatus-online",function(){zRC(f,"publicytnetworkstatus-online")}),I("networkstatus-offline",function(){zRC(f,"publicytnetworkstatus-offline")})):(I("networkstatus-online",function(){f.dispatchEvent("publicytnetworkstatus-online")}),I("networkstatus-offline",
function(){f.dispatchEvent("publicytnetworkstatus-offline")})))};
_.t(_.ix,_.zh);_.ix.prototype.isNetworkAvailable=function(){var r=_.jH("yt.networkStatusManager.instance.isNetworkAvailable");return r?r.bind(this.nsmInstance)():!0};
_.ix.prototype.networkStatusHint=function(r){var f=_.jH("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);f&&f(r)};
_.ix.prototype.sendNetworkCheckRequest=function(r){var f=this,I;return _.x(function(C){I=_.jH("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(f.nsmInstance);return _.N("skip_network_check_if_cfr")&&Rh().isEndpointCFR("generate_204")?C.return(new Promise(function(Y){var V;f.networkStatusHint(((V=window.navigator)==null?void 0:V.onLine)||!0);Y(f.isNetworkAvailable())})):I?C.return(I(r)):C.return(!0)})};
var zRC=function(r,f){r.rateLimit?r.lastJobTime?(_.F_.cancelJob(r.schedulerJob),r.schedulerJob=_.F_.addLowPriorityJob(function(){r.lastPublicSignalSent!==f&&(r.dispatchEvent(f),r.lastPublicSignalSent=f,r.lastJobTime=(0,_.Ad)())},r.rateLimit-((0,_.Ad)()-r.lastJobTime))):(r.dispatchEvent(f),r.lastPublicSignalSent=f,r.lastJobTime=(0,_.Ad)()):r.dispatchEvent(f)};var REm,PJ=function(){XV.call(this,{logsStore:{cleanLogsStore:ptq,deleteRequest:bJE,getMostRecentByStatus:xGE,markAsQueued:hEK,resetRequest:wtB,set:Si$},networkManager:_.vOq(),handleError:function(r,f,I){var C,Y=I==null?void 0:(C=I.error)==null?void 0:C.code;if(Y===400||Y===415){var V;r=new _.nf(r.message,f,I==null?void 0:(V=I.error)==null?void 0:V.code);_.Hw(r,void 0,void 0,void 0,!0)}else _.eH(r)},
handleWarning:_.Hw,sendFn:HJu,now:_.Ad,writeError:JNU,jobManager:_.tF(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.Bw("potential_esf_error_limit",10),getBooleanFlag:_.N,disableYtIdbTransactions:!(_.pf()&&_.K4m())});this.initializationPromise=new _.uX;_.N("networkless_immediately_drop_all_requests")&&nOl();Y_R("LogsDatabaseV2")};
_.t(PJ,XV);_.gf4=function(){var r=_.jH("yt.networklessRequestController.instance");r||(r=new PJ,_.OH("yt.networklessRequestController.instance",r),_.N("networkless_logging")&&_.o1().then(function(f){r.databaseToken=f;x78(r);r.initializationPromise.resolve();r.enableCleaning&&Math.random()<=r.cleaningRate&&r.databaseToken&&Ml$(r.databaseToken);_.N("networkless_immediately_drop_sw_health_store")&&MJT(r)}));
return r};
PJ.prototype.writeThenSend=function(r,f){f||(f={});f=iJR(r,f);_.pf()||(this.initialized=!1);XV.prototype.writeThenSend.call(this,r,f)};
PJ.prototype.sendThenWrite=function(r,f,I){f||(f={});f=iJR(r,f);_.pf()||(this.initialized=!1);XV.prototype.sendThenWrite.call(this,r,f,I)};
PJ.prototype.sendAndWrite=function(r,f){f||(f={});f=iJR(r,f);_.pf()||(this.initialized=!1);XV.prototype.sendAndWrite.call(this,r,f)};
PJ.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var MJT=function(r){var f;_.x(function(I){if(!r.databaseToken)throw f=Lf("clearSWHealthLogsDb"),f;return I.return(gOR(r.databaseToken).catch(function(C){r.handleError(C)}))})};_.UGR=!1;_.yNK=_.Yq.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.UGR};_.OH("ytNetworklessLoggingInitializationOptions",_.yNK);var a5=function(r){var f=this;this.config_=null;r?this.config_=r:pFm()&&(this.config_=_.GU());_.dp(_.F_,function(){IhK(f)},5E3)};
a5.prototype.isReady=function(){!this.config_&&pFm()&&(this.config_=_.GU());return!!this.config_};
var fhu=function(r,f,I,C){!_.Lz("VISITOR_DATA")&&f!=="visitor_id"&&Math.random()<.01&&_.Hw(new _.nf("Missing VISITOR_DATA when sending innertube request.",f,I,C));if(!r.isReady()){var Y=new _.nf("innertube xhrclient not ready",f,I,C);_.eH(Y);throw Y;}var V={headers:C.headers||{},method:"POST",postParams:I,postBody:C.postBody,postBodyFormat:C.postBodyFormat||"JSON",onTimeout:function(){C.onTimeout()},
onFetchTimeout:C.onTimeout,onSuccess:function(z,g){if(C.onSuccess)C.onSuccess(g)},
onFetchSuccess:function(z){if(C.onSuccess)C.onSuccess(z)},
onError:function(z,g){if(C.onError)C.onError(g)},
onFetchError:function(z){if(C.onError)C.onError(z)},
timeout:C.timeout,withCredentials:!0,compress:C.compress};V.headers["Content-Type"]||(V.headers["Content-Type"]="application/json");var S="";(Y=r.config_.innertubeHostOverride)&&(S=Y);var h=r.config_.innertubeUseThirdPartyAuth||!1,w=_.Lwu(h,S,C);Object.assign(V.headers,w);V.headers.Authorization&&!S&&h&&(V.headers["x-origin"]=window.location.origin);var n=_.yM(S+("/youtubei/"+r.config_.innertubeApiVersion+"/"+f),{alt:"json"}),d=function(z){z=z===void 0?!1:z;var g;if(C.retry&&S!="www.youtube-nocookie.com"&&
(z||_.N("skip_ls_gel_retry")||V.headers["Content-Type"]!=="application/json"||(g=Djq(f,I,w,h)),g)){var X=V.onSuccess,P=V.onFetchSuccess;V.onSuccess=function(v,O){rNU(g);X(v,O)};
I.onFetchSuccess=function(v,O){rNU(g);P(v,O)}}try{if(z&&C.retry&&!C.networklessOptions.bypassNetworkless)V.method="POST",C.networklessOptions.writeThenSend?_.gf4().writeThenSend(n,V):_.gf4().sendAndWrite(n,V);
else if(C.compress){var W=!C.networklessOptions.writeThenSend;if(V.postBody){var m=V.postBody;typeof m!=="string"&&(m=JSON.stringify(V.postBody));O2w(n,m,V,_.lh,W)}else O2w(n,JSON.stringify(V.postParams),V,Bb$,W)}else _.N("web_all_payloads_via_jspb")?_.lh(n,V):Bb$(n,V)}catch(v){if(v.name==="InvalidAccessError")g&&(rNU(g),g=0),_.Hw(Error("fd"));else throw v;}g&&_.dp(_.F_,function(){IhK(r)},5E3)};
_.sbR()?Bdw().then(function(z){d(z)}):d(!1)};var Gol=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Gol,_.Kj);var amB=0,oOU=_.VF?"webkit":_.lf?"moz":_.Yp?"ms":Qec?"o":"";_.OH("ytDomDomGetNextId",_.jH("ytDomDomGetNextId")||function(){return++amB});var X8C={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},Oj=function(r){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(r=
r||window.event){this.event=r;for(var f in r)f in X8C||(this[f]=r[f]);this.scale=r.scale;this.rotation=r.rotation;var I=r.target||r.srcElement;I&&I.nodeType==3&&(I=I.parentNode);this.target=I;var C=r.relatedTarget;if(C)try{C=C.nodeName?C:null}catch(Y){C=null}else this.type=="mouseover"?C=r.fromElement:this.type=="mouseout"&&(C=r.toElement);this.relatedTarget=C;this.clientX=r.clientX!=void 0?r.clientX:r.pageX;this.clientY=r.clientY!=void 0?r.clientY:r.pageY;this.keyCode=r.keyCode?r.keyCode:r.which;
this.charCode=r.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=r.altKey;this.ctrlKey=r.ctrlKey;this.shiftKey=r.shiftKey;this.metaKey=r.metaKey;this.pageX_=r.pageX;this.pageY_=r.pageY}}catch(Y){}},Nb4=function(r){if(document.body&&document.documentElement){var f=document.body.scrollTop+document.documentElement.scrollTop;
r.pageX_=r.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);r.pageY_=r.clientY+f}};
Oj.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Oj.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Oj.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var sj=_.Yq.ytEventsEventsListeners||{};_.OH("ytEventsEventsListeners",sj);var B_R=_.Yq.ytEventsEventsCounter||{count:0};_.OH("ytEventsEventsCounter",B_R);var qiU=_.de(function(){var r=!1;try{var f=Object.defineProperty({},"capture",{get:function(){r=!0}});
window.addEventListener("test",null,f)}catch(I){}return r});_.rh(Q9,_.Mu);Q9.prototype.onMouseMove_=function(r){r.pageX_===void 0&&Nb4(r);var f=r.pageX_;r.pageY_===void 0&&Nb4(r);this.position_=new _.F0(f,r.pageY_)};
Q9.prototype.checkPosition_=function(){if(this.position_){var r=(0,_.Ad)();if(this.previousTime_!=0){var f=this.previousPosition_,I=this.position_,C=f.x-I.x;f=f.y-I.y;C=Math.sqrt(C*C+f*f)/(r-this.previousTime_);this.cycles_[this.index_]=Math.abs((C-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(I=f=0;I<4;I++)f+=this.cycles_[I]||0;f>=3&&this.callback_();this.previousVelocity_=C}this.previousTime_=r;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Q9.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.udu(this.mouseListenerKey_)};var I1m={};var hsP=new _.q("rawColdConfigGroup");var xd$=new _.q("rawHotConfigGroup");var $7T=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t($7T,_.Kj);var Z$m=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Z$m,_.Kj);var nN=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r,500)};
_.t(nN,_.Kj);nN.prototype.getPayloadCase=function(){return _.aJ(this,FFT)};
nN.prototype.getContext=function(){return _.kB(this,Z$m,33)};
var FFT=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520];var CTP=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(CTP,_.Kj);var JGU=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(JGU,_.Kj);JGU.prototype.setVideoId=function(r){return Vy(this,1,jsu,Kq(r))};
JGU.prototype.getPlaylistId=function(){return _.xa(this,wp(this,jsu,2))};
var jsu=[1,2];var q$q=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(q$q,_.Kj);q$q.prototype.getContext=function(){return _.kB(this,Ee,1)};
q$q.prototype.getTier=function(){return _.cM(this,7)};var PKC,q4,ux;PKC=_.Yq.ytPubsubPubsubInstance||new _.EH;q4=_.Yq.ytPubsubPubsubSubscribedKeys||{};ux=_.Yq.ytPubsubPubsubTopicToKeys||{};_.C7l=_.Yq.ytPubsubPubsubIsSynchronous||{};_.EH.prototype.subscribe=_.EH.prototype.subscribe;_.EH.prototype.unsubscribeByKey=_.EH.prototype.unsubscribeByKey;_.EH.prototype.publish=_.EH.prototype.publish;_.EH.prototype.clear=_.EH.prototype.clear;_.OH("ytPubsubPubsubInstance",PKC);_.OH("ytPubsubPubsubTopicToKeys",ux);_.OH("ytPubsubPubsubIsSynchronous",_.C7l);
_.OH("ytPubsubPubsubSubscribedKeys",q4);var rp=window;var tk=_.N("web_enable_lifecycle_monitoring")&&S$$()!==0,tJ3=_.N("web_enable_lifecycle_monitoring");var cqV=function(r){var f=this;var I=I===void 0?0:I;var C=C===void 0?_.tF():C;this.JSC$8712_defaultPriority=I;this.scheduler=C;this.completedResolver=new _.uX;this.scheduledPayloads=r;for(r={i$jscomp$528:0};r.i$jscomp$528<this.scheduledPayloads.length;r={payload$jscomp$18:void 0,i$jscomp$528:r.i$jscomp$528},r.i$jscomp$528++)r.payload$jscomp$18=this.scheduledPayloads[r.i$jscomp$528],I=function(Y){return function(){Y.payload$jscomp$18.job();f.scheduledPayloads[Y.i$jscomp$528].processed=!0;f.scheduledPayloads.every(function(V){return V.processed===
!0})&&f.completedResolver.resolve()}}(r),C=this.scheduler.addJob(I,TbT(this,r.payload$jscomp$18)),this.scheduledPayloads[r.i$jscomp$528]=Object.assign({},r.payload$jscomp$18,{job:I,
jobId:C})};
cqV.prototype.flushJobs=function(){var r=this,f=Array.from(this.scheduledPayloads.keys()).sort(function(C,Y){return TbT(r,r.scheduledPayloads[Y])-TbT(r,r.scheduledPayloads[C])});
f=_.E(f);for(var I=f.next();!I.done;I=f.next())I=this.scheduledPayloads[I.value],I.jobId===void 0||I.processed||(this.scheduler.cancelJob(I.jobId),this.scheduler.addJob(I.job,10))};
cqV.prototype.cancel=function(){for(var r=_.E(this.scheduledPayloads),f=r.next();!f.done;f=r.next())f=f.value,f.jobId===void 0||f.processed||this.scheduler.cancelJob(f.jobId),f.processed=!0;this.completedResolver.resolve()};
var TbT=function(r,f){var I;return(I=f.priority)!=null?I:r.JSC$8712_defaultPriority};var T9=function(r){this.state=r;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};tk&&xvK(this.state)};
T9.prototype.install=function(r){this.plugins.push(r);return this};
T9.prototype.uninstall=function(){var r=this;_.XE.apply(0,arguments).forEach(function(f){f=r.plugins.indexOf(f);f>-1&&r.plugins.splice(f,1)})};
T9.prototype.transition=function(r,f){var I=this;tk&&hDd(this.state);var C=this.transitions.find(function(V){return Array.isArray(V.from)?V.from.find(function(S){return S===I.state&&V.to===r}):V.from===I.state&&V.to===r});
if(C){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);WF3(this,r,f);this.state=r;tk&&xvK(this.state);C=C.action.bind(this);var Y=this.plugins.filter(function(V){return V[r]}).map(function(V){return V[r]});
C(LFT(this,Y),f)}else throw Error("gd`"+this.state+"`"+r);};
var LFT=function(r,f){var I=f.filter(function(Y){return m7D(r,Y)===10}),C=f.filter(function(Y){return m7D(r,Y)!==10});
return r.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var Y=_.XE.apply(0,arguments);return _.x(function(V){if(V.nextAddress==1)return _.b(V,r.runImmediateJobsAsync.apply(r,[I].concat(_.Na(Y))),2);r.setJobSetWithScheduledJobs.apply(r,[C].concat(_.Na(Y)));_.wO(V)})}:function(){var Y=_.XE.apply(0,arguments);
r.runImmediateJobsSync.apply(r,[I].concat(_.Na(Y)));r.setJobSetWithScheduledJobs.apply(r,[C].concat(_.Na(Y)))}};
T9.prototype.runImmediateJobsSync=function(r){var f=_.XE.apply(1,arguments);_.tF();for(var I=_.E(r),C=I.next(),Y={};!C.done;Y={lifecycle$jscomp$2:void 0},C=I.next())Y.lifecycle$jscomp$2=C.value,O6(function(V){return function(){eR4(V.lifecycle$jscomp$2.name);bxK(function(){return V.lifecycle$jscomp$2.callback.apply(V.lifecycle$jscomp$2,_.Na(f))});
cJ(V.lifecycle$jscomp$2.name)}}(Y))};
T9.prototype.runImmediateJobsAsync=function(r){var f=_.XE.apply(1,arguments),I,C,Y,V;return _.x(function(S){S.nextAddress==1&&(_.tF(),I=_.E(r),C=I.next(),Y={});if(S.nextAddress!=3){if(C.done)return S.jumpTo(0);Y.lifecycle$jscomp$3=C.value;Y.asyncJobCompletion=void 0;V=function(h){return function(){eR4(h.lifecycle$jscomp$3.name);var w=bxK(function(){return h.lifecycle$jscomp$3.callback.apply(h.lifecycle$jscomp$3,_.Na(f))});
$NE(w)?h.asyncJobCompletion=_.N("web_lifecycle_error_handling_killswitch")?w.then(function(){cJ(h.lifecycle$jscomp$3.name)}):w.then(function(){cJ(h.lifecycle$jscomp$3.name)},function(n){wcR(n);
cJ(h.lifecycle$jscomp$3.name)}):cJ(h.lifecycle$jscomp$3.name)}}(Y);
O6(V);return Y.asyncJobCompletion?_.b(S,Y.asyncJobCompletion,3):S.jumpTo(3)}Y={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};C=I.next();return S.jumpTo(2)})};
T9.prototype.setJobSetWithScheduledJobs=function(r){var f=_.XE.apply(1,arguments),I=this,C=r.map(function(Y){return{job:function(){eR4(Y.name);bxK(function(){return Y.callback.apply(Y,_.Na(f))});
cJ(Y.name)},
priority:m7D(I,Y)}});
C.length&&(this.jobSet=new cqV(C))};
var m7D=function(r,f){var I,C;return(C=(I=r.overridePriority)!=null?I:f.priority)!=null?C:0},eR4=function(r){tk&&r&&xvK(r)},cJ=function(r){tk&&r&&hDd(r)},WF3=function(r,f,I){tJ3&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+r.constructor.name+"] '"+r.state+"' to '"+f+"'"),console.log("with message: ",I),console.groupEnd())};
_.OC.Object.defineProperties(T9.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Jq4=function(r){T9.call(this,r===void 0?"none":r);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(){}}]},j6V;
_.t(Jq4,T9);Jq4.prototype.runApplicationNavigationBegin=function(r,f){var I=this;this.navigationTimer=_.dp(_.F_,function(){I.currentState==="application_navigating"&&I.transition("none")},5E3);
r(f==null?void 0:f.event)};
Jq4.prototype.runApplicationNavigationEnd=function(r,f){this.navigationTimer&&(_.F_.cancelJob(this.navigationTimer),this.navigationTimer=null);r(f==null?void 0:f.event)};
_.S6K=function(){j6V||(j6V=new Jq4);return j6V};var EYd=[];_.OH("yt.logging.transport.getScrapedGelPayloads",function(){return EYd});var fN=function(){var r=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return r.totalEntries}}};
fN.prototype.storePayload=function(r,f){r=pcR(r);this.store[r]?this.store[r].push(f):(this.memoizedKeySequences={},this.store[r]=[f]);this.totalEntries++;_.N("more_accurate_gel_parser")&&(f=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(f));return r};
fN.prototype.smartExtractMatchingEntries=function(r){if(!r.keys.length)return[];for(var f=HEq(this,r.keys.splice(0,1)[0]),I=[],C=0;C<f.length;C++)this.store[f[C]]&&r.sizeLimit&&(this.store[f[C]].length<=r.sizeLimit?(I.push.apply(I,_.Na(this.store[f[C]])),delete this.store[f[C]]):I.push.apply(I,_.Na(this.store[f[C]].splice(0,r.sizeLimit))));this.totalEntries-=I.length;(r==null?0:r.sizeLimit)&&I.length<(r==null?void 0:r.sizeLimit)&&(r.sizeLimit-=I.length,I.push.apply(I,_.Na(this.smartExtractMatchingEntries(r))));
return I};
fN.prototype.extractMatchingEntries=function(r){r=HEq(this,r);for(var f=[],I=0;I<r.length;I++)this.store[r[I]]&&(f.push.apply(f,_.Na(this.store[r[I]])),delete this.store[r[I]]);this.totalEntries-=f.length;return f};
fN.prototype.getSequenceCount=function(r){r=HEq(this,r);for(var f=0,I=0;I<r.length;I++){var C=void 0;f+=((C=this.store[r[I]])==null?void 0:C.length)||0}return f};
var HEq=function(r,f){var I=pcR(f);if(r.memoizedKeySequences[I])return r.memoizedKeySequences[I];var C=Object.keys(r.store)||[];if(C.length<=1&&pcR(f)===C[0])return C;for(var Y=[],V=0;V<C.length;V++){var S=C[V].split("/");if(iED(f.auth,S[0])){var h=f.isJspb;iED(h===void 0?"undefined":h?"true":"false",S[1])&&iED(f.cttAuthInfo,S[2])&&(h=f.tier,h=h===void 0?"undefined":JSON.stringify(h),iED(h,S[3])&&Y.push(C[V]))}}return r.memoizedKeySequences[I]=Y},iED=function(r,f){return r===void 0||r==="undefined"?
!0:r===f};
fN.prototype.getSequenceCount=fN.prototype.getSequenceCount;fN.prototype.extractMatchingEntries=fN.prototype.extractMatchingEntries;fN.prototype.smartExtractMatchingEntries=fN.prototype.smartExtractMatchingEntries;fN.prototype.storePayload=fN.prototype.storePayload;var OxB,Uvq,oNc,Yl,RRB,nYR,pIq,yGR,KWK,cGl,ssR,l5K,ixR;OxB=_.Bw("initial_gel_batch_timeout",2E3);Uvq=_.Bw("gel_queue_timeout_max_ms",6E4);oNc=_.Bw("gel_min_batch_size",5);Yl=void 0;RRB=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
nYR=new RRB;pIq=new RRB;yGR=new RRB;KWK=new RRB;ssR=!0;l5K=1;_.Y6q=new Map;ixR=_.Yq.ytLoggingTransportTokensToCttTargetIds_||{};_.OH("ytLoggingTransportTokensToCttTargetIds_",ixR);var HxR=_.Yq.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.OH("ytLoggingTransportTokensToJspbCttTargetIds_",HxR);var CN={};var MW=_.Yq.ytLoggingGelSequenceIdObj_||{};_.OH("ytLoggingGelSequenceIdObj_",MW);var gYu=[];var mdP=new Set,FvU=0,Hvd=0,jBm=0,t$B=[],PTU=[],ivd=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var kiP=function(){};
kiP.prototype.getUrl=function(r,f){f=f===void 0?!1:f;return r.hasOwnProperty("shareEndpoint")?null:_.y3R(r,null,f)};
var Cq$=function(r,f,I){r={endpoint:f,actions:[]};I=(I.path?I.path[0]:I.target).icon||"";f=I.indexOf(":");f>0&&(I=I.substr(f+1));I&&r.actions.push(I);return r};var A3E=/Command$/,QBR=/Endpoint$/,sBU=new Map;var vf8,KFB;vf8=1;_.iz=function(){this.actionRoutingMap=new Map};
_.iz.prototype.triggerAction=function(r){var f=new FlU(r,!1,_.XE.apply(1,arguments));this.handleAction(f);return f.returnValue};
_.iz.prototype.triggerOptionalAction=function(r){var f=new FlU(r,!0,_.XE.apply(1,arguments));this.handleAction(f);return f.returnValue};
_.WJ=function(r,f,I){f.forEach(function(C){var Y=oYl(C);Y&&r.triggerOptionalAction(Y,C,I,void 0)})};
_.iz.prototype.handleAction=function(r){var f=this.actionRoutingMap.get(r.actionName);f&&KFB(r,f);r.optionalAction||r.returnValue.length!==0||(r=new _.nf("Unhandled action",r.actionName),_.Hw(r))};
KFB=function(r,f){f.forEach(function(I){var C=null;I?C=I.apply(null,r.args):(I=Error("hd"),I.params=r.actionName,_.eH(I));r.returnValue.push(C)})};
_.R5=function(r,f,I){I||(I=vf8++);for(var C=_.E(Object.keys(f)),Y=C.next();!Y.done;Y=C.next()){Y=Y.value;var V=r.actionRoutingMap.get(Y);V||(V=new Map,r.actionRoutingMap.set(Y,V));r.registerActionHandler(I,Y,f[Y],V)}return I};
_.iz.prototype.registerActionHandler=function(r,f,I,C){C.set(r,_.Jn(I))};
_.vR=function(r,f,I){f=_.E(Object.keys(f));for(var C=f.next();!C.done;C=f.next())(C=r.actionRoutingMap.get(C.value))&&C.delete(I)};
_.uO(_.iz);var u2u=function(r,f){var I=_.iz.getInstance();_.$E(function(){var C={},Y=_.R5(I,(C[r]=f,C));_.$L(function(){var V={};_.vR(I,(V[r]="",V),Y)})})};var Ibw=function(r,f){_.$E(function(){var I=r.value;I?(I.addEventListener("yt-service-request-sent",f,void 0),_.$L(function(){I?I.removeEventListener("yt-service-request-sent",f,void 0):CBK(r)})):CBK(r)})};Sed=HNu;var zhm=new Set(["For","If","Match","Watch"]),yqU={},U73=(yqU[Ly.default]=function(){return IWd},yqU.style=function(){return IWd},yqU),s6C;
for(s6C in U73)ka.attributes[s6C]=U73[s6C](ka.attributes[s6C]);var A7=new _.Go("VISIBILITY_OBSERVER");var TWq={retrieve:function(r){return this.id.\u0275prov.token===r.\u0275prov.token?this.contextValue:this?Hzm(this,this.id):jvl}};var OEB=function(r,f,I){if(r!==se)return!1;r=hhB(document.createElement("div"),function(){var C=qk(!1);try{I[0]()}finally{qk(C)}});
r=Array.from(r.childNodes);r.length===1&&(r=r[0]);return r};var of3=function(r){r=r.clone();zSC(r);zo(r,"dg",null);zo(r,"d","0");bz8(r,null);pwD(r,null);return r},Q63=!0,AqU=function(r,f,I){var C=I===void 0?{}:I;
I=C.cssRowKey===void 0?void 0:C.cssRowKey;var Y=C.combinedSignature===void 0?void 0:C.combinedSignature;var V=C.extraEdges===void 0?void 0:C.extraEdges;C=C.callback===void 0?void 0:C.callback;zo(r,"m",f.join(","));V&&dCD(r,V);I&&(zo(r,"ck",I),Y?zo(r,"rs",Y):Q63&&(Q63=!1));if(C){if(C!=null&&!aYV.test(C))throw Error("ab`"+C);zo(r,"cb",C)}r=r.toString();_.xq(r,"/")&&(r=D6V(document.location.href)+r);return _.SF(r)};var G5X=function(r){return ZEU(r).then(function(f){return JSON.parse(f.responseText)})},ZEU=function(r){var f={},I=f.xmlHttpFactory?f.xmlHttpFactory.createInstance():iiV.createInstance();
return(new _.lz(function(C,Y){var V;try{I.open("GET",r,!0)}catch(w){Y(new LV("Error opening XHR: "+w.message,r,I))}I.onreadystatechange=function(){if(I.readyState==4){_.Yq.clearTimeout(V);var w;!(w=His(I.status))&&(w=I.status===0)&&(w=u3V(r),w=!(w=="http"||w=="https"||w==""));w?C(I):Y(new k54(I.status,r,I))}};
I.onerror=function(){Y(new LV("Network error",r,I))};
if(f.headers)for(var S in f.headers){var h=f.headers[S];h!=null&&I.setRequestHeader(S,h)}f.withCredentials&&(I.withCredentials=f.withCredentials);f.responseType&&(I.responseType=f.responseType);f.mimeType&&I.overrideMimeType(f.mimeType);f.timeoutMs>0&&(V=_.Yq.setTimeout(function(){I.onreadystatechange=function(){};
I.abort();Y(new BbX(r,I))},f.timeoutMs));
try{I.send(null)}catch(w){I.onreadystatechange=function(){},_.Yq.clearTimeout(V),Y(new LV("Error sending XHR: "+w.message,r,I))}})).thenCatch(function(C){C instanceof _.oV&&I.abort();
throw C;})},LV=function(r,f,I){_.fw.call(this,r+", url="+f);
this.url=f;this.xhr=I};
_.rh(LV,_.fw);LV.prototype.name="XhrError";var k54=function(r,f,I){LV.call(this,"Request Failed, status="+r,f,I);this.status=r};
_.rh(k54,LV);k54.prototype.name="XhrHttpError";var BbX=function(r,f){LV.call(this,"Request timed out",r,f)};
_.rh(BbX,LV);BbX.prototype.name="XhrTimeoutError";qi=qi||{};var md=function(){_.Mu.call(this)};
_.rh(md,_.Mu);md.prototype.initialize=function(){};var qCB=function(r,f){this.fn_=r;this.handler_=f};
qCB.prototype.execute=function(r){this.fn_&&(this.fn_.call(this.handler_||null,r),this.fn_=this.handler_=null)};
qCB.prototype.abort=function(){this.handler_=this.fn_=null};var es=function(r,f){_.Mu.call(this);this.deps_=r;this.JSC$8839_id_=f;this.onloadCallbacks_=[];this.JSC$8839_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.rh(es,_.Mu);es.prototype.moduleConstructor_=md;es.prototype.module_=null;es.prototype.getId=function(){return this.JSC$8839_id_};
es.prototype.registerCallback=function(r,f){return uK_(this.onloadCallbacks_,r,f)};
var D7T=function(r,f){uK_(r.JSC$8839_onErrorCallbacks_,f)},uK_=function(r,f,I){f=new qCB(f,I);
r.push(f);return f};
es.prototype.isLoaded=function(){return!!this.module_};
es.prototype.onLoad=function(r){var f=new this.moduleConstructor_;f.initialize(r());this.module_=f;f=(f=r1B(this.earlyOnloadCallbacks_,r()))||r1B(this.onloadCallbacks_,r());f||(this.JSC$8839_onErrorCallbacks_.length=0);return f};
es.prototype.onError=function(r){(r=r1B(this.JSC$8839_onErrorCallbacks_,r))&&VE(Error("nd`"+r));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var r1B=function(r,f){for(var I=[],C=0;C<r.length;C++)try{r[C].execute(f)}catch(Y){VE(Y),I.push(Y)}r.length=0;return I.length?I:null};
es.prototype.disposeInternal=function(){es.superClass_.disposeInternal.call(this);_.Z8(this.module_)};var fo_,EAD,loq,V5X,Cy4,Yls,bAD,hH3,wjg;
_.js=function(r,f,I,C,Y){C=C===void 0?!1:C;Y=Y===void 0?!1:Y;var V=V===void 0?!0:V;this.scsReferenceUrl_=GH(_.x1(r).toString(),V);this.cssRowKey_=f;this.combinedSignature_=I;this.useNegativeLoading_=C;this.requestedModuleMap_={};this.JSC$8842_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(r=dP(this.scsReferenceUrl_,"excm"))?r.split(","):[];this.shouldScanForCss_=Y;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;rdR();this.logger=null;_.Jk(this,nEs(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
fo_=function(r,f){if(f.href||f.getAttribute("data-href"))if(f=f.href||f.getAttribute("data-href"),Btc(f)&&!GH(f).urlPrefix_.endsWith("_/js/")){f=nEs(GH(f));f=_.E(f);for(var I=f.next();!I.done;I=f.next())I=I.value,r.loadedCssModuleList_.includes(I)||r.loadedCssModuleList_.push(I)}};
_.js.prototype.JSC$8844_loadModules=function(r,f,I){var C=I===void 0?{}:I;I=C.extraEdges;var Y=C.onError;var V=C.onSuccess;C=C.forceReload;this.JSC$8842_moduleInfoMap_=f;if(!r)throw Error("od");if(this.shouldScanForCss_){f=_.E(document.getElementsByTagName("style"));for(var S=f.next();!S.done;S=f.next())fo_(this,S.value);f=_.E(document.getElementsByTagName("link"));for(S=f.next();!S.done;S=f.next())fo_(this,S.value)}Io4(this,Cy4(this,r),I,Y,V,C)};
var Io4=function(r,f,I,C,Y,V){C=C===void 0?function(){}:C;
Y=Y===void 0?function(){}:Y;
V=V===void 0?!1:V;Yls(r,f,function(S,h,w){w=w===void 0?h:w;r.enableFallbackFetch&&V?r.loadWithFetch(S,h,C,Y,w):r.load(S,h,C,Y,w,I)},I)||C(-1)};
_.js.prototype.loadWithFetch=function(){_.x(function(){throw Error("pd");})};
_.js.prototype.maybeSetAdditionalFields=function(){};
EAD=function(r,f,I){if(r.useNegativeLoading_){var C=r.scsReferenceUrl_;r={cssRowKey:r.cssRowKey_,combinedSignature:r.combinedSignature_,extraEdges:I,requestedModuleIds:loq(r),requestedCssModuleIds:V5X(r)};var Y=r===void 0?{}:r;r=Y.requestedModuleIds===void 0?[]:Y.requestedModuleIds;I=Y.requestedCssModuleIds===void 0?[]:Y.requestedCssModuleIds;var V=Y.cssRowKey===void 0?void 0:Y.cssRowKey;var S=Y.combinedSignature===void 0?void 0:Y.combinedSignature;var h=Y.extraEdges===void 0?void 0:Y.extraEdges;
Y=Y.callback===void 0?void 0:Y.callback;C=of3(C);zo(C,"d","1");bz8(C,r);pwD(C,I);f=AqU(C,f,{cssRowKey:V,combinedSignature:S,extraEdges:h,callback:Y})}else C=r.scsReferenceUrl_,r={cssRowKey:r.cssRowKey_,combinedSignature:r.combinedSignature_,requestedModuleIds:loq(r),requestedCssModuleIds:V5X(r)},h=r===void 0?{}:r,r=h.requestedCssModuleIds===void 0?[]:h.requestedCssModuleIds,I=h.cssRowKey===void 0?void 0:h.cssRowKey,V=h.combinedSignature===void 0?void 0:h.combinedSignature,S=h.extraEdges===void 0?
void 0:h.extraEdges,h=h.callback===void 0?void 0:h.callback,C=of3(C),pwD(C,r),f=AqU(C,f,{cssRowKey:I,combinedSignature:V,extraEdges:S,callback:h});return f};
_.Jk=function(r,f){for(var I=!1,C=[],Y=0;Y<f.length;++Y){var V=f[Y];r.requestedModuleMap_[V]||(r.requestedModuleMap_[V]=!0,r.requestedModuleList_.push(V),I=!0,C.push(V))}I&&(r.requestedModuleListSorted_=!1)};
_.HJ=function(r,f){for(var I=[],C=0;C<f.length;++C){var Y=f[C];r.requestedModuleMap_[Y]&&(delete r.requestedModuleMap_[Y],_.uU(r.requestedModuleList_,Y),I.push(Y))}};
_.js.prototype.load=function(r,f,I,C,Y){Y=Y===void 0?f:Y;_.x1(r);var V=this.useCors_,S=this.corsMode_,h=this.fetchPriority,w=_.wL("SCRIPT");_.vL(w,r);V&&(w.crossOrigin=S);w.async=!1;h&&w.setAttribute("fetchpriority",h);_.Jk(this,f);_.Slg(this,r,w,f,I,C,Y)};
_.Slg=function(r,f,I,C,Y,V,S){S=S===void 0?C:S;r.lastScript_=I;r.insertPos.insertBefore(I,r.insertPos.firstChild);_.xyD(I,C,function(){I.parentElement.removeChild(I);r.lastScript_==I&&(r.lastScript_=null);var h=new Set;C.map(function(n){return h.add(n)});
for(var w in r.JSC$8842_moduleInfoMap_)r.JSC$8842_moduleInfoMap_[w].isLoaded()&&h.add(w);Array.from(h);V()},function(h){I.parentElement.removeChild(I);
r.lastScript_==I&&(r.lastScript_=null);_.HJ(r,h);r.pendingModuleGraphUpdate_?r.pendingModuleGraphUpdate_.then(function(){Y(-1,f)}):Y(-1,f)},S)};
_.xyD=function(r,f,I,C,Y){Y=Y===void 0?f:Y;var V=f.length,S=function(){V=0;r.onload=null;r.onerror=null;h=function(){}},h=function(){S();
var n=Y.filter(function(d){return!FF().getModuleInfo(d).isLoaded()});
n.length!==0?C(n,"Response was successful but was missing module(s) "+n+"."):I()},w=function(){V--;
V==0&&h()};
f.forEach(function(n){n=FF().getModuleInfo(n);n.isLoaded()?w():(uK_(n.earlyOnloadCallbacks_,w),D7T(n,w))});
r.onload=function(){return h()};
r.onerror=function(){S();C(f)}};
loq=function(r){r.requestedModuleListSorted_||(r.requestedModuleListSorted_=!0,r.requestedModuleList_.sort());return r.requestedModuleList_};
V5X=function(r){r=r.loadedCssModuleList_;r.sort();return r};
Cy4=function(r,f){return f.filter(function(I){return!r.requestedModuleMap_[I]})};
Yls=function(r,f,I,C){if(r.pendingModuleGraphUpdate_)return r.pendingModuleGraphUpdate_.then(function(){Yls(r,f,I,C)}),!0;
if(!r.useNegativeLoading_){var Y=[],V=Object.assign({},r.requestedModuleMap_);hH3(r,f,function(d){Y.push(d.getId())},C,function(d){return!d.isLoaded()},V);
f=Y}for(V=0;V<f.length;){for(var S=f.length-V,h=V==0?f:f.slice(V,f.length),w=EAD(r,h,C),n=_.x1(w).toString();n.length>r.urlMaxLength;)if(S>1)S-=Math.ceil((n.length-r.urlMaxLength)/6),S=Math.max(S,1),h=f.slice(V,V+S),w=EAD(r,h,C),n=_.x1(w).toString();else return r.useNegativeLoading_?(r.useNegativeLoading_=!1,r.pendingModuleGraphUpdate_=wjg(r).then(function(d){bAD(r,d,C)}),Yls(r,f.slice(V),I,C)):!1;
V+=S;r.useNegativeLoading_?I(w,h):I(w,h,V===f.length?f:[])}return!0};
bAD=function(r,f,I){FF().setAllModuleInfoString((f||{}).moduleGraph);hH3(r,loq(r),function(C){_.Jk(r,[C.getId()])},I);
r.pendingModuleGraphUpdate_=null};
hH3=function(r,f,I,C,Y,V){V=V===void 0?{}:V;var S=FF();f=_.E(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var w=S.getModuleInfo(h);if(!(V[h]||Y&&!Y(w))){V[h]=!0;var n=w.deps_||[];if(C){var d=[];C[h]&&(d=Object.keys(C[h]));n=n.concat(d)}hH3(r,n,I,C,Y,V);I(w)}}};
wjg=function(r){r=r.scsReferenceUrl_.clone();zSC(r);zo(r,"dg",null);zo(r,"md","1");return G5X(r.toString())};var LCP=new Uint8Array(123);var pj4=[];var nAV=function(){this.JSC$7954_loader_=null};
_.l=nAV.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 i0=function(r,f,I,C,Y){var V=Error.call(this);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.name="ModuleLoadFailure";this.type=r;this.status=f;this.requestedModuleIds=I;this.url=C;this.cause=Y;this.message=this.toString()};
_.t(i0,Error);i0.prototype.toString=function(){return dyT(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var dyT=function(r){switch(r.type){case i0.JSC$8854_Type.UNAUTHORIZED:return"Unauthorized";case i0.JSC$8854_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case i0.JSC$8854_Type.TIMEOUT:return"Timed out";case i0.JSC$8854_Type.OLD_CODE_GONE:return"Out of date module id";case i0.JSC$8854_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+r.type}};
qi.ModuleLoadFailure=i0;qi.ModuleLoadFailure.JSC$8854_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Rj=function(){this.moduleIds_=this.JSC$7954_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8857_extraEdges_={};this.JSC$8857_callbackMap_={};this.JSC$8857_currentlyLoadingModule_=this.baseModuleInfo_=new es([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new yh;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.rh(Rj,nAV);var zH_=function(r,f){_.fw.call(this,"Error loading "+r+": "+f)};
_.rh(zH_,_.fw);Rj.prototype.setBatchModeEnabled=function(r){this.batchModeEnabled_=r};
Rj.prototype.setAllModuleInfoString=function(r,f){if(!(this instanceof Rj))this.setAllModuleInfoString(r,f);else if(typeof r==="string"){if(r.startsWith("d$")){r=r.substring(2);for(var I=[],C=0,Y=r.indexOf("/"),V=0,S=!1,h=0;;){var w=S?r.substring(V):r.substring(V,Y);if(w.length===0)C++,V="sy"+C.toString(36),w=[];else{var n=w.indexOf(":");if(n<0)V=w,w=[];else if(n===w.length-1)V=w.substring(0,n),w=Array(I[h-1]);else{V=w.substring(0,n);w=w.substring(n+1).split(",");n=h;for(var d=0;d<w.length;d++)n-=
w[d].length===0?1:Number(w[d]),w[d]=I[n]}n=0;if(V.length===0)n=1;else if(V.charAt(0)==="+"||V.charAt(0)==="-")n=Number(V);n!==0&&(C+=n,V="sy"+C.toString(36))}I.push(V);M5T(this,V,w);if(S)break;V=Y+1;Y=r.indexOf("/",V);Y===-1&&(S=!0);h++}this.moduleIds_=I}else if(r.startsWith("p$"))gAT(this,r);else{r=r.split("/");I=[];for(C=0;C<r.length;C++){h=r[C].split(":");Y=h[0];S=[];if(h[1])for(S=h[1].split(","),h=0;h<S.length;h++)S[h]=I[parseInt(S[h],36)];I.push(Y);M5T(this,Y,S)}this.moduleIds_=I}f&&f.length?
(_.YC(this.loadingModuleIds_,f),this.lastInitialModuleId_=_.Kw(f)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8857_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8857_currentlyLoadingModule_=null,(f=this.baseModuleInfo_.onLoad((0,_.gL)(this.getModuleContext,this)))&&f.length&&ao3(this,new qi.ModuleLoadFailure(qi.ModuleLoadFailure.JSC$8854_Type.INIT_ERROR,void 0,void 0,void 0,f[0])),vJ(this))}};
var gAT=function(r,f){var I=f.substring(2);for(f=0;f<64;f++)LCP["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(f)]=f;var C={buf:I,pos:0};kl(C);var Y=kl(C),V=kl(C)+1;f=Array(Y);var S=Array(Y),h=Array(Y);V=Array(V);var w=0,n=0,d=C.pos,z=C.buf.indexOf("|",C.pos);C.pos=z+1;for(z=0;z<Y;z++){var g=kl(C),X=g&2,P=g&1;g>>>=2;P?(w+=g>>>1^-(g&1),g="sy"+w.toString(36)):(P=d,d+=g,g=I.substring(P,d));f[z]=g;X&&(V[n++]=g)}V[n]="";C.pos++;n=Y&-2;I=Y&1;for(w=0;w<n;w+=2)d=mmK(C),h[w]=
d&7,h[w+1]=d>>>3&7;I&&(I=mmK(C),h[n]=I&7);C.pos++;for(n=0;n<Y;n++)h[n]===7&&(h[n]=kl(C));C.pos++;for(I=n=0;I<Y;I++){w=h[I];d=w===0?pj4:Array(w);S[I]=d;z=n;for(X=0;X<w;X++)z-=kl(C),d[X]=V[z];V[n]===f[I]&&n++}for(C=0;C<f.length;C++)M5T(r,f[C],S[C]);r.moduleIds_=f};
_.l=Rj.prototype;_.l.getModuleInfo=function(r){return this.moduleInfoMap[r]};
_.l.addExtraEdge=function(r,f){var I=this.getModuleInfo(r);I&&I.isLoaded()?this.load(f):(this.JSC$8857_extraEdges_[r]||(this.JSC$8857_extraEdges_[r]={}),this.JSC$8857_extraEdges_[r][f]=!0)};
_.l.removeExtraEdge=function(r,f){if(this.JSC$8857_extraEdges_[r]){delete this.JSC$8857_extraEdges_[r][f];for(var I in this.JSC$8857_extraEdges_[r])return;delete this.JSC$8857_extraEdges_[r]}};
_.l.isActive=function(){return this.loadingModuleIds_.length>0};
_.l.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var vJ=function(r){var f=r.lastActive_,I=r.isActive();I!=f&&(r.executeCallbacks_(I?"active":"idle"),r.lastActive_=I);f=r.isUserActive();f!=r.userLastActive_&&(r.executeCallbacks_(f?"userActive":"userIdle"),r.userLastActive_=f)},M5T=function(r,f,I){r.moduleInfoMap[f]?(r=r.moduleInfoMap[f].deps_,r!=I&&r.splice.apply(r,[0,
r.length].concat(_.Na(I)))):r.moduleInfoMap[f]=new es(I,f)},Nd3=function(r,f,I){var C=[];
h_(f,C);f=[];for(var Y={},V=0;V<C.length;V++){var S=C[V],h=r.getModuleInfo(S);if(!h)throw Error("sd`"+S);var w=new yh;Y[S]=w;h.isLoaded()?w.callback(null):(XjV(r,S,h,!!I,w),r.isModuleLoading(S)||f.push(S))}f.length>0&&(r.loadingModuleIds_.length===0?r.loadModules_(f):(r.requestedModuleIdsQueue_.push(f),vJ(r)));return Y},XjV=function(r,f,I,C,Y){I.registerCallback(Y.callback,Y);
D7T(I,function(V){Y.errback(new zH_(f,V))});
r.isModuleLoading(f)?C&&($y3(r,f),vJ(r)):C&&$y3(r,f)};
Rj.prototype.loadModules_=function(r,f,I){var C=this;f||(this.consecutiveFailures_=0);var Y=F0g(this,r);this.loadingModuleIds_=Y;this.requestedLoadingModuleIds_=this.batchModeEnabled_?r:_.f8(Y);vJ(this);if(Y.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,Y);if(Object.keys(this.JSC$8857_extraEdges_).length>0&&!this.JSC$7954_loader_.supportsExtraEdges)throw Error("td");r=(0,_.gL)(this.JSC$7954_loader_.JSC$8844_loadModules,this.JSC$7954_loader_,_.f8(Y),this.moduleInfoMap,{extraEdges:this.JSC$8857_extraEdges_,
forceReload:!!I,onError:function(V,S){var h=C.requestedLoadingModuleIds_;V=V!=null?V:void 0;C.consecutiveFailures_++;var w=_.f8(Y);C.requestedLoadingModuleIds_=h;Y.forEach(_.S_(_.uU,C.requestedModuleIds_),C);V==401?(ao3(C,new qi.ModuleLoadFailure(qi.ModuleLoadFailure.JSC$8854_Type.UNAUTHORIZED,V)),C.requestedModuleIdsQueue_.length=0):V==410?(PyD(C,new qi.ModuleLoadFailure(qi.ModuleLoadFailure.JSC$8854_Type.OLD_CODE_GONE,V)),t5T(C)):C.consecutiveFailures_>=3?(PyD(C,new qi.ModuleLoadFailure(qi.ModuleLoadFailure.JSC$8854_Type.CONSECUTIVE_FAILURES,
V,w,S)),t5T(C)):C.loadModules_(C.requestedLoadingModuleIds_,!0,V==8001||!1)},
onTimeout:(0,_.gL)(this.handleLoadTimeout_,this)});(f=Math.pow(this.consecutiveFailures_,2)*5E3)?_.Yq.setTimeout(r,f):r()}};
var F0g=function(r,f){f=f.filter(function(Y){return r.moduleInfoMap[Y].isLoaded()?(_.Yq.setTimeout(function(){return Error("ud`"+Y)},0),!1):!0});
for(var I=[],C=0;C<f.length;C++)I=I.concat(Tdq(r,f[C]));h_(I);return!r.batchModeEnabled_&&I.length>1?(f=I.shift(),r.requestedModuleIdsQueue_=I.map(function(Y){return[Y]}).concat(r.requestedModuleIdsQueue_),[f]):I},Tdq=function(r,f){var I=_.X0.createSet(r.requestedModuleIds_),C=[];
I[f]||C.push(f);f=[f];for(var Y=0;Y<f.length;Y++)for(var V=r.getModuleInfo(f[Y]).deps_,S=V.length-1;S>=0;S--){var h=V[S];r.getModuleInfo(h).isLoaded()||I[h]||(C.push(h),f.push(h))}C.reverse();h_(C);return C};
Rj.prototype.JSC$8852_setLoaded=function(){if(this.JSC$8857_currentlyLoadingModule_){var r=this.JSC$8857_currentlyLoadingModule_.getId(),f=[];if(this.JSC$8857_extraEdges_[r]){for(var I=_.E(Object.keys(this.JSC$8857_extraEdges_[r])),C=I.next();!C.done;C=I.next()){C=C.value;var Y=this.getModuleInfo(C);Y&&!Y.isLoaded()&&(this.removeExtraEdge(r,C),f.push(C))}this.loadMultiple(f)}this.isDisposed()||((f=this.moduleInfoMap[r].onLoad((0,_.gL)(this.getModuleContext,this)))&&f.length&&ao3(this,new qi.ModuleLoadFailure(qi.ModuleLoadFailure.JSC$8854_Type.INIT_ERROR,
void 0,void 0,void 0,f[0])),_.uU(this.userInitiatedLoadingModuleIds_,r),_.uU(this.loadingModuleIds_,r),this.loadingModuleIds_.length===0&&t5T(this),this.lastInitialModuleId_&&r==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),vJ(this),this.JSC$8857_currentlyLoadingModule_=null)}};
Rj.prototype.isModuleLoading=function(r){if(_.Am(this.loadingModuleIds_,r))return!0;for(var f=0;f<this.requestedModuleIdsQueue_.length;f++)if(_.Am(this.requestedModuleIdsQueue_[f],r))return!0;return!1};
Rj.prototype.load=function(r,f){return Nd3(this,[r],f)[r]};
Rj.prototype.loadMultiple=function(r){return Nd3(this,r)};
var $y3=function(r,f){_.Am(r.userInitiatedLoadingModuleIds_,f)||r.userInitiatedLoadingModuleIds_.push(f)};
Rj.prototype.beforeLoadModuleCode=function(r){var f=this;this.JSC$8857_currentlyLoadingModule_&&this.JSC$8857_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8852_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[r]&&c1D(this,this.moduleInfoMap[r].deps_||[],function(I){I.module_=new md;_.uU(f.loadingModuleIds_,I.getId())},function(I){return!I.isLoaded()});
this.JSC$8857_currentlyLoadingModule_=this.getModuleInfo(r)};
Rj.prototype.handleLoadTimeout_=function(){PyD(this,new qi.ModuleLoadFailure(qi.ModuleLoadFailure.JSC$8854_Type.TIMEOUT));t5T(this)};
var PyD=function(r,f){r.requestedLoadingModuleIds_.length>1?r.requestedModuleIdsQueue_=r.requestedLoadingModuleIds_.map(function(I){return[I]}).concat(r.requestedModuleIdsQueue_):ao3(r,f)},ao3=function(r,f){var I=r.requestedLoadingModuleIds_;
r.loadingModuleIds_.length=0;for(var C=[],Y=0;Y<r.requestedModuleIdsQueue_.length;Y++){var V=r.requestedModuleIdsQueue_[Y].filter(function(w){var n=Tdq(this,w);return vW(I,function(d){return _.Am(n,d)})},r);
_.YC(C,V)}for(Y=0;Y<I.length;Y++)_.Zd(C,I[Y]);for(Y=0;Y<C.length;Y++){for(V=0;V<r.requestedModuleIdsQueue_.length;V++)_.uU(r.requestedModuleIdsQueue_[V],C[Y]);_.uU(r.userInitiatedLoadingModuleIds_,C[Y])}if(Y=r.JSC$8857_callbackMap_.error)for(V=0;V<Y.length;V++)for(var S=Y[V],h=0;h<C.length;h++)S("error",C[h],f);for(C=0;C<I.length;C++)if(r.moduleInfoMap[I[C]])r.moduleInfoMap[I[C]].onError(f);r.requestedLoadingModuleIds_.length=0;vJ(r)},t5T=function(r){for(;r.requestedModuleIdsQueue_.length;){var f=
r.requestedModuleIdsQueue_.shift().filter(function(I){return!this.getModuleInfo(I).isLoaded()},r);
if(f.length>0){r.loadModules_(f);return}}vJ(r)};
Rj.prototype.registerCallback=function(r,f){Array.isArray(r)||(r=[r]);for(var I=0;I<r.length;I++){var C=r[I],Y=f,V=this.JSC$8857_callbackMap_;V[C]||(V[C]=[]);V[C].push(Y)}};
Rj.prototype.executeCallbacks_=function(r){for(var f=this.JSC$8857_callbackMap_[r],I=0;f&&I<f.length;I++)f[I](r)};
var c1D=function(r,f,I,C,Y){C=C===void 0?function(){return!0}:C;
Y=Y===void 0?{}:Y;f=_.E(f);for(var V=f.next();!V.done;V=f.next()){V=V.value;var S=r.getModuleInfo(V);!Y[V]&&C(S)&&(Y[V]=!0,c1D(r,S.deps_||[],I,C,Y),I(S))}};
Rj.prototype.dispose=function(){_.GZ(_.X0.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8857_callbackMap_={};this.isDisposed_=!0};
Rj.prototype.isDisposed=function(){return this.isDisposed_};
_.$a=function(){return new Rj};var W0U=[5E3,2E4],L0_=function(){this.JSC$7954_loader_=null;this.JSC$8865_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8865_queue_=[];this.JSC$8865_extraEdges_=Object.create(null);this.JSC$8865_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.t(L0_,nAV);_.l=L0_.prototype;_.l.setAllModuleInfoString=function(){this.JSC$8865_currentlyLoadingModule_&&this.JSC$8865_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8852_setLoaded()};
_.l.getModuleInfo=function(r){var f=this.JSC$8865_moduleInfoMap_[r];f||(f=new es([],r),this.JSC$8865_moduleInfoMap_[r]=f);return f};
_.l.addExtraEdge=function(r,f){this.getModuleInfo(r).isLoaded()?this.load(f):(this.JSC$8865_extraEdges_[r]||(this.JSC$8865_extraEdges_[r]={}),this.JSC$8865_extraEdges_[r][f]=!0)};
_.l.removeExtraEdge=function(r,f){if(this.JSC$8865_extraEdges_[r]){delete this.JSC$8865_extraEdges_[r][f];for(var I in this.JSC$8865_extraEdges_[r])return;delete this.JSC$8865_extraEdges_[r]}};
_.l.isModuleLoading=function(r){return!!this.loadingModules_[r]};
_.l.load=function(r){myg(this,[r]);return eHX(this,r)};
_.l.loadMultiple=function(r){var f=this,I=Object.create(null),C=[];r.forEach(function(Y){I[Y]||(I[Y]=eHX(f,Y),C.push(Y))});
myg(this,C);return I};
_.l.beforeLoadModuleCode=function(r){var f;((f=this.JSC$8865_currentlyLoadingModule_)==null?void 0:f.getId())==="synthetic_module_overhead"&&this.JSC$8852_setLoaded();var I,C;J14(this,(C=(I=this.JSC$8865_moduleInfoMap_[r])==null?void 0:I.deps_)!=null?C:[],function(Y){Y.module_=new md},function(Y){return!Y.isLoaded()});
this.JSC$8865_currentlyLoadingModule_=this.getModuleInfo(r)};
_.l.JSC$8852_setLoaded=function(){if(this.JSC$8865_currentlyLoadingModule_){var r=this.JSC$8865_currentlyLoadingModule_.getId(),f=[];if(this.JSC$8865_extraEdges_[r]){for(var I=_.E(Object.keys(this.JSC$8865_extraEdges_[r])),C=I.next();!C.done;C=I.next())C=C.value,this.getModuleInfo(C).isLoaded()||(this.removeExtraEdge(r,C),f.push(C));this.loadMultiple(f)}this.JSC$8865_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8865_currentlyLoadingModule_=null;(!this.isModuleLoading(r)&&/^sy[0-9a-z]{0,4}$/.test(r)||r==="synthetic_module_overhead")&&delete this.JSC$8865_moduleInfoMap_[r];this.unsetModulesAsLoading(r)}};
_.l.setModulesAsLoading=function(){var r=this;_.XE.apply(0,arguments).forEach(function(f){r.loadingModules_[f]=!0})};
_.l.unsetModulesAsLoading=function(){var r=this;_.XE.apply(0,arguments).forEach(function(f){delete r.loadingModules_[f]})};
var eHX=function(r,f){return new _.lz(function(I,C){var Y=r.getModuleInfo(f);Y.isLoaded()?I(null):(Y.registerCallback(function(){I(null)}),D7T(Y,function(V){var S="Error loading "+f+": "+V;
V instanceof qi.ModuleLoadFailure&&V.url&&(S=S+", requested url: "+V.url.toString());C(Error(S))}))})},myg=function(r,f){f=f.filter(function(I){return!r.isModuleLoading(I)&&!r.getModuleInfo(I).isLoaded()});
f.length>0&&(r.setModulesAsLoading.apply(r,_.Na(f)),r.JSC$8865_queue_.push(f),jo_(r))},jo_=function(r){for(var f={};r.activeLoads_<Infinity&&r.JSC$8865_queue_.length>0;f={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})f.ids$jscomp$36=r.JSC$8865_queue_.shift().filter(function(I){return!r.getModuleInfo(I).isLoaded()}),f.ids$jscomp$36.length>0&&(r.activeLoads_++,f.finishLoad=function(I){return function(){r.activeLoads_--;
jo_(r);I.finishLoad=function(){}}}(f),_.aP(f.ids$jscomp$36.map(function(I){return eHX(r,I)})).then(function(I){return function(){(0,I.finishLoad)()}}(f)),f.attempt$jscomp$6=0,f.load$jscomp$1=function(I){return function(){if(Object.keys(r.JSC$8865_extraEdges_).length>0&&!r.JSC$7954_loader_.supportsExtraEdges)throw Error("td");
r.JSC$7954_loader_.JSC$8844_loadModules(I.ids$jscomp$36,r.JSC$8865_moduleInfoMap_,{extraEdges:r.JSC$8865_extraEdges_,onError:function(C,Y){var V=W0U[I.attempt$jscomp$6++];V!==void 0?setTimeout(function(){(0,I.load$jscomp$1)()},V):(r.unsetModulesAsLoading.apply(r,_.Na(I.ids$jscomp$36)),(0,I.finishLoad)(),I.ids$jscomp$36.forEach(function(S){S=r.getModuleInfo(S);
if(!S.isLoaded())S.onError(new qi.ModuleLoadFailure(qi.ModuleLoadFailure.JSC$8854_Type.CONSECUTIVE_FAILURES,C,I.ids$jscomp$36,Y))}))}})}}(f),(0,f.load$jscomp$1)())},J14=function(r,f,I,C,Y){C=C===void 0?function(){return!0}:C;
Y=Y===void 0?{}:Y;f=_.E(f);for(var V=f.next();!V.done;V=f.next()){V=V.value;var S=r.getModuleInfo(V);!Y[V]&&C(S)&&(Y[V]=!0,J14(r,S.deps_||[],I,C,Y),I(S))}};var HA8=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var J8E=Symbol("wd");window.JSCompiler_renameProperty=function(r){return r};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var iAs=!HA8||HTMLElement.es5Shimmed||_.Yq.Reflect===void 0||_.Yq.customElements===void 0||_.Yq.customElements.polyfillWrapFlushCallback||!1,RH_,xHl=function(){var r=HTMLElement;if(iAs)return r;if(RH_!==void 0)return RH_;var f=_.Yq.Reflect,I=function(){return f.construct(r,[],this.constructor)};
I.prototype=r.prototype;I.prototype.constructor=I;I.es5Shimmed=!0;Object.setPrototypeOf(I,r);return RH_=I},vAq=!1;iAs||vAq||(vAq=!0,_.Yq.HTMLElement=xHl());/*

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 vZl=/(url\()([^)]*)(\))/g,iQq=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Rhl,BR;var W8=!window.ShadyDOM||!window.ShadyDOM.inUse,K0B=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),y1X=!window.customElements.polyfillWrapFlushCallback,Uy4;if(Uy4=W8&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var so4=new CSSStyleSheet;so4.replaceSync("");var OAq=document.createElement("div");OAq.attachShadow({mode:"open"});OAq.shadowRoot.adoptedStyleSheets=[so4];Uy4=OAq.shadowRoot.adoptedStyleSheets[0]===so4}catch(r){Uy4=!1}
var oA8=Uy4,Qog=window.Polymer&&window.Polymer.rootPath||y8P(document.baseURI||window.location.href),hq=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,kkP=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Jq=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,A1U=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,c8=window.Polymer&&window.Polymer.legacyOptimizations||!1,eJ=window.Polymer&&window.Polymer.legacyWarnings||!1,ZAX=window.Polymer&&window.Polymer.syncInitialRender||
!1,bK=window.Polymer&&window.Polymer.legacyUndefined||!1,GID=window.Polymer&&window.Polymer.orderedComputed||!1,KV=window.Polymer&&window.Polymer.removeNestedTemplates||!1,yf=window.Polymer&&window.Polymer.fastDomIf||!1,UE=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,kI8=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Bd8=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var sE={},qlX={},nE=function(){return HTMLElement.apply(this,arguments)||this};
_.t(nE,HTMLElement);nE.import=function(r,f){return r?(r=sE[r]||qlX[r.toLowerCase()])&&f?r.querySelector(f):r:null};
nE.prototype.attributeChangedCallback=function(r,f,I){f!==I&&this.register()};
nE.prototype.register=function(r){if(r=r||this.id){if(Jq&&(sE[r]||qlX[r.toLowerCase()])!==void 0)throw sE[r]=qlX[r.toLowerCase()]=null,Error("xd`"+r);this.id=r;sE[r]=qlX[r.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.OC.Object.defineProperties(nE.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var r=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;r=_.qW(this.getAttribute("assetpath")||"",r.baseURI);this.__assetpath=y8P(r)}return this.__assetpath}}});
_.OC.Object.defineProperties(nE,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
nE["import"]=nE.import;nE.prototype.modules=sE;customElements.define("dom-module",nE);var u63=0,sC$=0,uz=[],Dy_=0,UmU=!1,rZX=document.createTextNode(""),fks,tq;(new window.MutationObserver(OQR)).observe(rZX,{characterData:!0});_.OE={after:function(r){return{run:function(f){return window.setTimeout(f,r)},
cancel:function(f){window.clearTimeout(f)}}},
run:function(r,f){return window.setTimeout(r,f)},
cancel:function(r){window.clearTimeout(r)}};
_.xY={run:function(r){return window.requestAnimationFrame(r)},
cancel:function(r){window.cancelAnimationFrame(r)}};
fks={run:function(r){return window.requestIdleCallback?window.requestIdleCallback(r):window.setTimeout(r,16)},
cancel:function(r){window.cancelIdleCallback?window.cancelIdleCallback(r):window.clearTimeout(r)}};
tq={run:function(r){UmU||(UmU=!0,rZX.textContent=Dy_++);uz.push(r);return u63++},
cancel:function(r){var f=r-sC$;if(f>=0){if(!uz[f])throw Error("yd`"+r);uz[f]=null}}};var IkC=0,oj=function(r){var f=r.__mixinApplications;f||(f=new WeakMap,r.__mixinApplications=f);var I=IkC++;return function(C){var Y=C.__mixinSet;if(Y&&Y[I])return C;var V=f,S=V.get(C);S||(S=r(C),V.set(C,S),C=Object.create(S.__mixinSet||Y||null),C[I]=!0,S.__mixinSet=C);return S}};_.xf=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(r){return ShadyDOM.patch(r)}:function(r){return r};var CmT=oj(function(r){var f=function(){var I=r.call(this)||this;I.__dataEnabled=!1;I.__dataReady=!1;I.__dataInvalid=!1;I.__data={};I.__dataPending=null;I.__dataOld=null;I.__dataInstanceProps=null;I.__dataCounter=0;I.__serializing=!1;I._initializeProperties();return I};
_.t(f,r);f.createProperties=function(I){var C=this.prototype,Y;for(Y in I)Y in C||C._createPropertyAccessor(Y)};
f.attributeNameForProperty=function(I){return I.toLowerCase()};
f.typeForProperty=function(){};
f.prototype._createPropertyAccessor=function(I,C){this._addPropertyToAttributeMap(I);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[I]||(this.__dataHasAccessor[I]=!0,this._definePropertyAccessor(I,C))};
f.prototype._addPropertyToAttributeMap=function(I){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var C=this.__dataAttributes[I];C||(C=this.constructor.attributeNameForProperty(I),this.__dataAttributes[C]=I);return C};
f.prototype._definePropertyAccessor=function(I,C){Object.defineProperty(this,I,{get:function(){return this.__data[I]},
set:C?function(){}:function(Y){this._setPendingProperty(I,Y,!0)&&this._invalidateProperties()}})};
f.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
f.prototype._initializeProperties=function(){for(var I in this.__dataHasAccessor)this.hasOwnProperty(I)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[I]=this[I],delete this[I])};
f.prototype._initializeInstanceProperties=function(I){Object.assign(this,I)};
f.prototype._setProperty=function(I,C){this._setPendingProperty(I,C)&&this._invalidateProperties()};
f.prototype._getProperty=function(I){return this.__data[I]};
f.prototype._setPendingProperty=function(I,C){var Y=this.__data[I],V=this._shouldPropertyChange(I,C,Y);V&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||I in this.__dataOld||(this.__dataOld[I]=Y),this.__data[I]=C,this.__dataPending[I]=C);return V};
f.prototype._isPropertyPending=function(I){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(I))};
f.prototype._invalidateProperties=function(){var I=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,tq.run(function(){I.__dataInvalid&&(I.__dataInvalid=!1,I._flushProperties())}))};
f.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
f.prototype._flushProperties=function(){this.__dataCounter++;var I=this.__data,C=this.__dataPending,Y=this.__dataOld;this._shouldPropertiesChange(I,C,Y)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(I,C,Y));this.__dataCounter--};
f.prototype._shouldPropertiesChange=function(I,C){return!!C};
f.prototype._propertiesChanged=function(){};
f.prototype._shouldPropertyChange=function(I,C,Y){return Y!==C&&(Y===Y||C===C)};
f.prototype.attributeChangedCallback=function(I,C,Y,V){C!==Y&&this._attributeToProperty(I,Y);r.prototype.attributeChangedCallback&&r.prototype.attributeChangedCallback.call(this,I,C,Y,V)};
f.prototype._attributeToProperty=function(I,C,Y){if(!this.__serializing){var V=this.__dataAttributes;I=V&&V[I]||I;this[I]=this._deserializeValue(C,Y||this.constructor.typeForProperty(I))}};
f.prototype._propertyToAttribute=function(I,C,Y){this.__serializing=!0;Y=arguments.length<3?this[I]:Y;this._valueToNodeAttribute(this,Y,C||this.constructor.attributeNameForProperty(I));this.__serializing=!1};
f.prototype._valueToNodeAttribute=function(I,C,Y){C=this._serializeValue(C);if(Y==="class"||Y==="name"||Y==="slot")I=(0,_.xf)(I);C===void 0?I.removeAttribute(Y):I.setAttribute(Y,C===""&&window.trustedTypes?window.trustedTypes.emptyScript:C)};
f.prototype._serializeValue=function(I){switch(typeof I){case "boolean":return I?"":void 0;default:return I!=null?I.toString():void 0}};
f.prototype._deserializeValue=function(I,C){switch(C){case Boolean:return I!==null;case Number:return Number(I);default:return I}};
return f});var Y_B=0,oZ$=[];var lkC=oj(function(r){function f(V){V=Object.getPrototypeOf(V);return V.prototype instanceof Y?V:null}
function I(V){if(!V.hasOwnProperty("__ownProperties")){var S=null;if(V.hasOwnProperty("properties")){var h=V.properties;if(h){S={};for(var w in h){var n=h[w];S[w]=typeof n==="function"?{type:n}:n}}}V.__ownProperties=S}return V.__ownProperties}
var C=CmT(r),Y=function(){return C.apply(this,arguments)||this};
_.t(Y,C);Y.finalize=function(){if(!this.hasOwnProperty("__finalized")){var V=f(this);V&&V.finalize();this.__finalized=!0;this._finalizeClass()}};
Y._finalizeClass=function(){var V=I(this);V&&this.createProperties(V)};
Y.typeForProperty=function(V){return(V=this._properties[V])&&V.type};
Y.prototype._initializeProperties=function(){Y_B++;this.constructor.finalize();C.prototype._initializeProperties.call(this)};
Y.prototype.connectedCallback=function(){C.prototype.connectedCallback&&C.prototype.connectedCallback.call(this);this._enableProperties()};
Y.prototype.disconnectedCallback=function(){C.prototype.disconnectedCallback&&C.prototype.disconnectedCallback.call(this)};
_.OC.Object.defineProperties(Y,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var V=this;if(!this.hasOwnProperty("__observedAttributes")){QCc(this.prototype);var S=this._properties;this.__observedAttributes=S?Object.keys(S).map(function(h){return V.prototype._addPropertyToAttributeMap(h)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var V=f(this);this.__properties=Object.assign({},V&&V._properties,I(this))}return this.__properties}}});
return Y});var A8K={},ZQw=/-[a-z]/g,GYd=/([A-Z])/g;for(var V_C={},EIs=HTMLElement.prototype;EIs;){for(var S_4=Object.getOwnPropertyNames(EIs),xo3=0;xo3<S_4.length;xo3++)V_C[S_4[xo3]]=!0;EIs=Object.getPrototypeOf(EIs)}var hdU=window.trustedTypes?function(r){return trustedTypes.isHTML(r)||trustedTypes.isScript(r)||trustedTypes.isScriptURL(r)}:function(){return!1},wF4=oj(function(r){var f=CmT(r);
r=function(){return f.apply(this,arguments)||this};
_.t(r,f);r.createPropertiesForAttributes=function(){for(var I=this.observedAttributes,C=0;C<I.length;C++)this.prototype._createPropertyAccessor(DW(I[C]))};
r.attributeNameForProperty=function(I){return rb(I)};
r.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);f.prototype._initializeProperties.call(this)};
r.prototype._initializeProtoProperties=function(I){for(var C in I)this._setProperty(C,I[C])};
r.prototype._ensureAttribute=function(I,C){this.hasAttribute(I)||this._valueToNodeAttribute(this,C,I)};
r.prototype._serializeValue=function(I){switch(typeof I){case "object":if(I instanceof Date)return I.toString();if(I){if(hdU(I))return I;try{return JSON.stringify(I)}catch(C){return""}}default:return f.prototype._serializeValue.call(this,I)}};
r.prototype._deserializeValue=function(I,C){switch(C){case Object:try{var Y=JSON.parse(I)}catch(V){Y=I}break;case Array:try{Y=JSON.parse(I)}catch(V){Y=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+I)}break;case Date:Y=isNaN(I)?String(I):Number(I);Y=new Date(Y);break;default:Y=f.prototype._deserializeValue.call(this,I,C)}return Y};
r.prototype._definePropertyAccessor=function(I,C){if(!V_C[I]){var Y=this[I];Y!==void 0&&(this.__data?this._setPendingProperty(I,Y):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[I]=Y))}f.prototype._definePropertyAccessor.call(this,I,C)};
r.prototype._hasAccessor=function(I){return this.__dataHasAccessor&&this.__dataHasAccessor[I]};
r.prototype._isPropertyPending=function(I){return!!(this.__dataPending&&I in this.__dataPending)};
return r});var beB={"dom-if":!0,"dom-repeat":!0},pF_=!1,nI3=!1,do4=function(){var r=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(f){return f}});
return function(f,I,C){I=I.getAttribute(C);r&&C.startsWith("on-")?f.setAttribute(C,r.createScript(I,C)):f.setAttribute(C,I)}}(),zd3=oj(function(r){var f=function(){return r.apply(this,arguments)||this};
_.t(f,r);f._parseTemplate=function(I,C){if(!I._templateInfo){var Y=I._templateInfo={};Y.nodeInfoList=[];Y.nestedTemplate=!!C;Y.stripWhiteSpace=C&&C.stripWhiteSpace||I.hasAttribute&&I.hasAttribute("strip-whitespace");this._parseTemplateContent(I,Y,{parent:null})}return I._templateInfo};
f._parseTemplateContent=function(I,C,Y){return this._parseTemplateNode(I.content,C,Y)};
f._parseTemplateNode=function(I,C,Y){var V=!1;I.localName!="template"||I.hasAttribute("preserve-content")?I.localName==="slot"&&(C.hasInsertionPoint=!0):V=this._parseTemplateNestedTemplate(I,C,Y)||V;if(!pF_){pF_=!0;var S=document.createElement("textarea");S.placeholder="a";nI3=S.placeholder===S.textContent}nI3&&I.localName==="textarea"&&I.placeholder&&I.placeholder===I.textContent&&(I.textContent=null);I.firstChild&&this._parseTemplateChildNodes(I,C,Y);I.hasAttributes&&I.hasAttributes()&&(V=this._parseTemplateNodeAttributes(I,
C,Y)||V);return V||Y.noted};
f._parseTemplateChildNodes=function(I,C,Y){if(I.localName!=="script"&&I.localName!=="style")for(var V=I.firstChild,S=0,h;V;V=h){if(V.localName=="template"){var w=V.getAttribute("is");if(w&&beB[w])for(h=V,h.removeAttribute("is"),V=h.ownerDocument.createElement(w),h.parentNode.replaceChild(V,h),V.appendChild(h);h.attributes.length;)w=h.attributes[0].name,do4(V,h,w),h.removeAttribute(w)}h=V.nextSibling;if(V.nodeType===Node.TEXT_NODE){for(w=h;w&&w.nodeType===Node.TEXT_NODE;)V.textContent+=w.textContent,
h=w.nextSibling,I.removeChild(w),w=h;if(C.stripWhiteSpace&&!V.textContent.trim()){I.removeChild(V);continue}}w={parentIndex:S,parentInfo:Y};this._parseTemplateNode(V,C,w)&&(w.infoIndex=C.nodeInfoList.push(w)-1);V.parentNode&&S++}};
f._parseTemplateNestedTemplate=function(I,C,Y){C=this._parseTemplate(I,C);(C.content=I.content.ownerDocument.createDocumentFragment()).appendChild(I.content);Y.templateInfo=C;return!0};
f._parseTemplateNodeAttributes=function(I,C,Y){for(var V=!1,S=Array.from(I.attributes),h=S.length-1,w;w=S[h];h--)V=this._parseTemplateNodeAttribute(I,C,Y,w.name,w.value)||V;return V};
f._parseTemplateNodeAttribute=function(I,C,Y,V,S){return V.slice(0,3)==="on-"?(I.removeAttribute(V),Y.events=Y.events||[],Y.events.push({name:V.slice(3),value:S}),!0):V==="id"?(Y.id=S,!0):!1};
f._contentForTemplate=function(I){var C=I._templateInfo;return C&&C.content||I.content};
f.prototype._stampTemplate=function(I,C){I&&!I.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(I);C=C||this.constructor._parseTemplate(I);var Y=C.nodeInfoList;I=document.importNode(C.content||I.content,!0);I.__noInsertionPoint=!C.hasInsertionPoint;var V=I.nodeList=Array(Y.length);I.$={};for(var S=0,h=Y.length,w=void 0;S<h&&(w=Y[S]);S++){var n=V[S]=kYE(I,w);w.id&&(I.$[w.id]=n);var d=n,z=w,g=C;z.templateInfo&&(d._templateInfo=z.templateInfo,d._parentTemplateInfo=
g);if(w.events&&w.events.length)for(d=0,z=w.events,g=void 0;d<z.length&&(g=z[d]);d++)this._addMethodEventListenerToNode(n,g.name,g.value,this)}return I};
f.prototype._addMethodEventListenerToNode=function(I,C,Y,V){Y=BWE(V||I,Y);this._addEventListenerToNode(I,C,Y);return Y};
f.prototype._addEventListenerToNode=function(I,C,Y){I.addEventListener(C,Y)};
f.prototype._removeEventListenerFromNode=function(I,C,Y){I.removeEventListener(C,Y)};
return f});var EC=0,wb=[],M_s={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},gIC=/[A-Z]/,akB=function(r,f,I,C,Y){var V=Y?I6(r):r;if(f=f[V])for(V=0;V<f.length;V++){var S=f[V];if(S.info.lastRun!==EC&&(!Y||IKq(r,S.trigger))){S.info.lastRun=EC;S=S.info;for(var h=I,w=C,n=0,d=h.length-1,z=-1;n<=d;){var g=n+d>>1,X=w.get(h[g].methodInfo)-w.get(S.methodInfo);if(X<0)n=g+1;else if(X>0)d=g-1;else{z=g;break}}z<
0&&(z=d+1);h.splice(z,0,S)}}},MOc=[],XF8=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"),Ak=oj(function(r){var f=zd3(wF4(r));
r=function(){var I=f.call(this)||this;I.__isPropertyEffectsClient=!0;return I};
_.t(r,f);r.prototype._initializeProperties=function(){f.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};
r.prototype._registerHost=function(){if(Qf.length){var I=Qf[Qf.length-1];I._enqueueClient(this);this.__dataHost=I}};
r.prototype._initializeProtoProperties=function(I){this.__data=Object.create(I);this.__dataPending=Object.create(I);this.__dataOld={}};
r.prototype._initializeInstanceProperties=function(I){var C=this.__readOnly,Y;for(Y in I)C&&C[Y]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[Y]=this.__dataPending[Y]=I[Y])};
r.prototype._addPropertyEffect=function(I,C,Y){this._createPropertyAccessor(I,C=="__readOnly");var V=fKc(this,C,!0)[I];V||(V=this[C][I]=[]);V.push(Y)};
r.prototype._removePropertyEffect=function(I,C,Y){I=fKc(this,C,!0)[I];Y=I.indexOf(Y);Y>=0&&I.splice(Y,1)};
r.prototype._hasPropertyEffect=function(I,C){C=this[C];return!(!C||!C[I])};
r.prototype._hasReadOnlyEffect=function(I){return this._hasPropertyEffect(I,"__readOnly")};
r.prototype._hasNotifyEffect=function(I){return this._hasPropertyEffect(I,"__notifyEffects")};
r.prototype._hasReflectEffect=function(I){return this._hasPropertyEffect(I,"__reflectEffects")};
r.prototype._hasComputedEffect=function(I){return this._hasPropertyEffect(I,"__computeEffects")};
r.prototype._setPendingPropertyOrPath=function(I,C,Y,V){if(V||I6(Array.isArray(I)?I[0]:I)!==I){if(!V&&(V=Vt(this,I),I=rv$(this,I,C),!I||!f.prototype._shouldPropertyChange.call(this,I,C,V)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(I,C,Y)){if(Y=this.__dataLinkedPaths)for(var S in Y)V=Y[S],CE(S,I)?(V=Yf(S,V,I),this._setPendingPropertyOrPath(V,C,!0,!0)):CE(V,I)&&(V=Yf(V,S,I),this._setPendingPropertyOrPath(V,C,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[I])return this._setPendingProperty(I,
C,Y);this[I]=C}return!1};
r.prototype._setUnmanagedPropertyToNode=function(I,C,Y){if(Y!==I[C]||typeof Y=="object")C==="className"&&(I=(0,_.xf)(I)),I[C]=Y};
r.prototype._setPendingProperty=function(I,C,Y){var V=this.__dataHasPaths&&fE(I);if(this._shouldPropertyChange(I,C,(V?this.__dataTemp:this.__data)[I])){this.__dataPending||(this.__dataPending={},this.__dataOld={});I in this.__dataOld||(this.__dataOld[I]=this.__data[I]);V?this.__dataTemp[I]=C:this.__data[I]=C;this.__dataPending[I]=C;if(V||this.__notifyEffects&&this.__notifyEffects[I])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[I]=Y;return!0}return!1};
r.prototype._setProperty=function(I,C){this._setPendingProperty(I,C,!0)&&this._invalidateProperties()};
r.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
r.prototype._enqueueClient=function(I){this.__dataPendingClients=this.__dataPendingClients||[];I!==this&&this.__dataPendingClients.push(I)};
r.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
r.prototype.__enableOrFlushClients=function(){var I=this.__dataPendingClients;if(I){this.__dataPendingClients=null;for(var C=0;C<I.length;C++){var Y=I[C];Y.__dataEnabled?Y.__dataPending&&Y._flushProperties():Y._enableProperties()}}};
r.prototype._readyClients=function(){this.__enableOrFlushClients()};
r.prototype.setProperties=function(I,C){for(var Y in I)!C&&this.__readOnly&&this.__readOnly[Y]||this._setPendingPropertyOrPath(Y,I[Y],!0);this._invalidateProperties()};
r.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
r.prototype._propertiesChanged=function(I,C,Y){I=this.__dataHasPaths;this.__dataHasPaths=!1;var V;if(V=this.__computeEffects)if(GID){EC++;var S=S0P(this),h=[],w;for(w in C)akB(w,V,h,S,I);for(;w=h.shift();)h3E(this,"",C,Y,w)&&akB(w.methodInfo,V,h,S,I);Object.assign(Y,this.__dataOld);Object.assign(C,this.__dataPending);this.__dataPending=null}else for(S=C;SJ(this,V,S,Y,I);)Object.assign(Y,this.__dataOld),Object.assign(C,this.__dataPending),S=this.__dataPending,this.__dataPending=null;V=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(C,Y,I);this._flushClients();SJ(this,this.__reflectEffects,C,Y,I);SJ(this,this.__observeEffects,C,Y,I);if(V){S=this.__notifyEffects;h=EC++;for(var n in V)if(V[n]){if(w=S){var d=S;w=h;var z=n,g=C,X=Y,P=I,W=!1,m=P?I6(z):z;if(d=d[m]){m=0;for(var v=d.length,O=void 0;m<v&&(O=d[m]);m++)O.info&&O.info.lastRun===w||P&&!IKq(z,O.trigger)||(O.info&&(O.info.lastRun=w),O.fn(this,z,g,X,O.info,P,void 0),W=!0)}w=W}if(w)var k=!0;else{if(w=I)w=n,z=C,g=I6(w),g!==
w?(g=rb(g)+"-changed",Y0K(this,g,z[w],w),w=!0):w=!1;w&&(k=!0)}}var Z;k&&(Z=this.__dataHost)&&Z._invalidateProperties&&Z._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
r.prototype._propagatePropertyChanges=function(I,C,Y){this.__propagateEffects&&SJ(this,this.__propagateEffects,I,C,Y);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,I,C,Y)};
r.prototype._runEffectsForTemplate=function(I,C,Y,V){var S=this,h=function(w,n){SJ(S,I.propertyEffects,w,Y,n,I.nodeList);for(var d=I.firstChild;d;d=d.nextSibling)S._runEffectsForTemplate(d,w,Y,n)};
I.runEffects?I.runEffects(h,C,V):h(C,V)};
r.prototype.linkPaths=function(I,C){I=lK(I);C=lK(C);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[I]=C};
r.prototype.unlinkPaths=function(I){I=lK(I);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[I]};
r.prototype.notifySplices=function(I,C){var Y={path:""};I=Vt(this,I,Y);NuR(this,I,Y.path,C)};
r.prototype.get=function(I,C){return Vt(C||this,I)};
r.prototype.set=function(I,C,Y){Y?rv$(Y,I,C):this.__readOnly&&this.__readOnly[I]||this._setPendingPropertyOrPath(I,C,!0)&&this._invalidateProperties()};
r.prototype.push=function(I){var C=_.XE.apply(1,arguments),Y={path:""},V=Vt(this,I,Y),S=V.length,h=V.push.apply(V,_.Na(C));C.length&&pE(this,V,Y.path,S,C.length,[]);return h};
r.prototype.pop=function(I){var C={path:""};I=Vt(this,I,C);var Y=!!I.length,V=I.pop();Y&&pE(this,I,C.path,I.length,0,[V]);return V};
r.prototype.splice=function(I,C,Y){var V=_.XE.apply(3,arguments),S={path:""},h=Vt(this,I,S);C<0?C=h.length-Math.floor(-C):C&&(C=Math.floor(C));var w=arguments.length===2?h.splice(C):h.splice.apply(h,[C,Y].concat(_.Na(V)));(V.length||w.length)&&pE(this,h,S.path,C,V.length,w);return w};
r.prototype.shift=function(I){var C={path:""};I=Vt(this,I,C);var Y=!!I.length,V=I.shift();Y&&pE(this,I,C.path,0,0,[V]);return V};
r.prototype.unshift=function(I){var C=_.XE.apply(1,arguments),Y={path:""},V=Vt(this,I,Y),S=V.unshift.apply(V,_.Na(C));C.length&&pE(this,V,Y.path,0,C.length,[]);return S};
r.prototype.notifyPath=function(I,C){if(arguments.length==1){var Y={path:""};C=Vt(this,I,Y);Y=Y.path}else Y=Array.isArray(I)?lK(I):I;this._setPendingPropertyOrPath(Y,C,!0,!0)&&this._invalidateProperties()};
r.prototype._createReadOnlyProperty=function(I,C){this._addPropertyEffect(I,"__readOnly");C&&(this["_set"+(I[0].toUpperCase()+I.substring(1))]=function(Y){this._setProperty(I,Y)})};
r.prototype._createPropertyObserver=function(I,C,Y){var V={property:I,method:C,dynamicFn:!!Y};this._addPropertyEffect(I,"__observeEffects",{fn:C6K,info:V,trigger:{name:I}});Y&&this._addPropertyEffect(C,"__observeEffects",{fn:C6K,info:V,trigger:{name:C}})};
r.prototype._createMethodObserver=function(I,C){var Y=aKK(I);if(!Y)throw Error("zd`"+I);dIU(this,Y,"__observeEffects",xIu,null,C)};
r.prototype._createNotifyingProperty=function(I){this._addPropertyEffect(I,"__notifyEffects",{fn:lKR,info:{eventName:rb(I)+"-changed",property:I}})};
r.prototype._createReflectedProperty=function(I){var C=this.constructor.attributeNameForProperty(I);C[0]==="-"?console.warn("Property "+I+" cannot be reflected to attribute "+C+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(I,"__reflectEffects",{fn:VOR,info:{attrName:C}})};
r.prototype._createComputedProperty=function(I,C,Y){var V=aKK(C);if(!V)throw Error("Ad`"+C);C=dIU(this,V,"__computeEffects",h3E,I,Y);fKc(this,"__computeInfo")[I]=C};
r.prototype._marshalArgs=function(I,C,Y){for(var V=this.__data,S=[],h=0,w=I.length;h<w;h++){var n=I[h],d=n.name,z=n.structured,g=n.wildcard,X=n.value;n.literal||(g?(n=CE(d,C),z=XoB(V,Y,n?C:d),X={path:n?C:d,value:z,base:n?Vt(V,d):z}):X=z?XoB(V,Y,d):V[d]);if(bK&&!this._overrideLegacyUndefined&&X===void 0&&I.length>1)return wb;S[h]=X}return S};
r.addPropertyEffect=function(I,C,Y){this.prototype._addPropertyEffect(I,C,Y)};
r.createPropertyObserver=function(I,C,Y){this.prototype._createPropertyObserver(I,C,Y)};
r.createMethodObserver=function(I,C){this.prototype._createMethodObserver(I,C)};
r.createNotifyingProperty=function(I){this.prototype._createNotifyingProperty(I)};
r.createReadOnlyProperty=function(I,C){this.prototype._createReadOnlyProperty(I,C)};
r.createReflectedProperty=function(I){this.prototype._createReflectedProperty(I)};
r.createComputedProperty=function(I,C,Y){this.prototype._createComputedProperty(I,C,Y)};
r.bindTemplate=function(I){return this.prototype._bindTemplate(I)};
r.prototype._bindTemplate=function(I,C){var Y=this.constructor._parseTemplate(I),V=this.__preBoundTemplateInfo==Y;if(!V)for(var S in Y.propertyEffects)this._createPropertyAccessor(S);C?(Y=Object.create(Y),Y.wasPreBound=V,this.__templateInfo?(I=I._parentTemplateInfo||this.__templateInfo,C=I.lastChild,Y.parent=I,I.lastChild=Y,(Y.previousSibling=C)?C.nextSibling=Y:I.firstChild=Y):this.__templateInfo=Y):this.__preBoundTemplateInfo=Y;return Y};
r._addTemplatePropertyEffect=function(I,C,Y){(I.hostProps=I.hostProps||{})[C]=!0;I=I.propertyEffects=I.propertyEffects||{};(I[C]=I[C]||[]).push(Y)};
r.prototype._stampTemplate=function(I,C){C=C||this._bindTemplate(I,!0);Qf.push(this);I=f.prototype._stampTemplate.call(this,I,C);Qf.pop();C.nodeList=I.nodeList;if(!C.wasPreBound)for(var Y=C.childNodes=[],V=I.firstChild;V;V=V.nextSibling)Y.push(V);I.templateInfo=C;Y=C.nodeList;V=C.nodeInfoList;if(V.length)for(var S=0;S<V.length;S++){var h=Y[S],w=V[S].bindings;if(w)for(var n=0;n<w.length;n++){var d=w[n],z=h,g=d;if(g.isCompound){for(var X=z.__dataCompoundStorage||(z.__dataCompoundStorage={}),P=g.parts,
W=Array(P.length),m=0;m<P.length;m++)W[m]=P[m].literal;P=g.target;X[P]=W;g.literal&&g.kind=="property"&&(P==="className"&&(z=(0,_.xf)(z)),z[P]=g.literal)}n4w(h,this,d)}h.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(C,this.__data,null,!1),this._flushClients());return I};
r.prototype._removeBoundDom=function(I){I=I.templateInfo;var C=I.previousSibling,Y=I.nextSibling,V=I.parent;C?C.nextSibling=Y:V&&(V.firstChild=Y);Y?Y.previousSibling=C:V&&(V.lastChild=C);I.nextSibling=I.previousSibling=null;I=I.childNodes;for(C=0;C<I.length;C++)Y=I[C],(0,_.xf)((0,_.xf)(Y).parentNode).removeChild(Y)};
r._parseTemplateNode=function(I,C,Y){var V=f._parseTemplateNode.call(this,I,C,Y);if(I.nodeType===Node.TEXT_NODE){var S=this._parseBindings(I.textContent,C);S&&(I.textContent=z3w(S)||" ",poc(this,C,Y,"text","textContent",S),V=!0)}return V};
r._parseTemplateNodeAttribute=function(I,C,Y,V,S){var h=this._parseBindings(S,C);if(h){S=V;var w="property";gIC.test(V)?w="attribute":V[V.length-1]=="$"&&(V=V.slice(0,-1),w="attribute");var n=z3w(h);n&&w=="attribute"&&(V=="class"&&I.hasAttribute("class")&&(n+=" "+I.getAttribute(V)),I.setAttribute(V,n));w=="attribute"&&S=="disable-upgrade$"&&I.setAttribute(V,"");I.localName==="input"&&S==="value"&&I.setAttribute(S,"");I.removeAttribute(S);w==="property"&&(V=DW(V));poc(this,C,Y,w,V,h,n);return!0}return f._parseTemplateNodeAttribute.call(this,
I,C,Y,V,S)};
r._parseTemplateNestedTemplate=function(I,C,Y){var V=f._parseTemplateNestedTemplate.call(this,I,C,Y),S=I.parentNode,h=Y.templateInfo,w=S.localName==="dom-if",n=S.localName==="dom-repeat";KV&&(w||n)&&(S.removeChild(I),Y=Y.parentInfo,Y.templateInfo=h,Y.noted=!0,V=!1);I=h.hostProps;if(yf&&w)I&&(C.hostProps=Object.assign(C.hostProps||{},I),KV||(Y.parentInfo.noted=!0));else for(var d in I)poc(this,C,Y,"property","_host_"+d,[{mode:"{",source:d,dependencies:[d],hostProp:!0}]);return V};
r._parseBindings=function(I,C){for(var Y=[],V=0,S;(S=XF8.exec(I))!==null;){S.index>V&&Y.push({literal:I.slice(V,S.index)});V=S[1][0];var h=!!S[2];S=S[3].trim();var w=!1,n="",d=-1;V=="{"&&(d=S.indexOf("::"))>0&&(n=S.substring(d+2),S=S.substring(0,d),w=!0);d=aKK(S);var z=[];if(d){var g=d,X=g.args;g=g.methodName;for(var P=0;P<X.length;P++){var W=X[P];W.literal||z.push(W)}if((X=C.dynamicFns)&&X[g]||d.static)z.push(g),d.dynamicFn=!0}else z.push(S);Y.push({source:S,mode:V,negate:h,customEvent:w,signature:d,
dependencies:z,event:n});V=XF8.lastIndex}V&&V<I.length&&(I=I.substring(V))&&Y.push({literal:I});return Y.length?Y:null};
r._evaluateBinding=function(I,C,Y,V,S,h){I=C.signature?xIu(I,Y,V,S,C.signature):Y!=C.source?Vt(I,C.source):h&&fE(Y)?Vt(I,Y):I.__data[Y];C.negate&&(I=!I);return I};
_.OC.Object.defineProperties(r.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return M_s}}});
return r}),Qf=[];var NXX=window.ShadyCSS&&window.ShadyCSS.cssBuild,ZV=oj(function(r){function f(C,Y,V,S){if(!NXX){for(var h=Y.content.querySelectorAll("style"),w=Tud(Y),n=cv$(V),d=Y.content.firstElementChild,z=0;z<n.length;z++){var g=n[z];g.textContent=C._processStyleText(g.textContent,S);Y.content.insertBefore(g,d)}for(d=n=0;d<w.length;d++)z=w[d],g=h[n],g!==z?(z=z.cloneNode(!0),g.parentNode.insertBefore(z,g)):n++,z.textContent=C._processStyleText(z.textContent,S)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(Y,
V);if(Bd8&&NXX&&oA8&&(Y=Y.content.querySelectorAll("style"))){var X="";Array.from(Y).forEach(function(P){X+=P.textContent;P.parentNode.removeChild(P)});
C._styleSheet=new CSSStyleSheet;C._styleSheet.replaceSync(X)}}
var I=lkC(Ak(r));r=function(){return I.call(this)||this};
_.t(r,I);r._finalizeClass=function(){I._finalizeClass.call(this);var C;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(C=this.__ownObservers)&&this.createObservers(C,this._properties);this._prepareTemplate()};
r._prepareTemplate=function(){var C=this.template;C&&(typeof C==="string"?(console.error("template getter must return HTMLTemplateElement"),C=null):c8||(C=C.cloneNode(!0)));this.prototype._template=C};
r.createProperties=function(C){for(var Y in C){var V=this.prototype,S=Y,h=C[Y],w=C;h.computed&&(h.readOnly=!0);h.computed&&(V._hasReadOnlyEffect(S)?console.warn("Cannot redefine computed property '"+S+"'."):V._createComputedProperty(S,h.computed,w));h.readOnly&&!V._hasReadOnlyEffect(S)?V._createReadOnlyProperty(S,!h.computed):h.readOnly===!1&&V._hasReadOnlyEffect(S)&&console.warn("Cannot make readOnly property '"+S+"' non-readOnly.");h.reflectToAttribute&&!V._hasReflectEffect(S)?V._createReflectedProperty(S):
h.reflectToAttribute===!1&&V._hasReflectEffect(S)&&console.warn("Cannot make reflected property '"+S+"' non-reflected.");h.notify&&!V._hasNotifyEffect(S)?V._createNotifyingProperty(S):h.notify===!1&&V._hasNotifyEffect(S)&&console.warn("Cannot make notify property '"+S+"' non-notify.");h.observer&&V._createPropertyObserver(S,h.observer,w[h.observer]);V._addPropertyToAttributeMap(S)}};
r.createObservers=function(C,Y){for(var V=this.prototype,S=0;S<C.length;S++)V._createMethodObserver(C[S],Y)};
r.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);I.prototype._initializeProperties.call(this);this.rootPath=Qog;this.importPath=this.constructor.importPath;var C=this.constructor;if(!C.hasOwnProperty("__propertyDefaults")){C.__propertyDefaults=null;var Y=C._properties,V;for(V in Y){var S=Y[V];"value"in S&&(C.__propertyDefaults=C.__propertyDefaults||{},C.__propertyDefaults[V]=S)}}if(C=C.__propertyDefaults)for(var h in C)Y=C[h],
this._canApplyPropertyDefault(h)&&(Y=typeof Y.value=="function"?Y.value.call(this):Y.value,this._hasAccessor(h)?this._setPendingProperty(h,Y,!0):this[h]=Y)};
r.prototype._canApplyPropertyDefault=function(C){return!this.hasOwnProperty(C)};
r._processStyleText=function(C,Y){return KCd(C,Y)};
r._finalizeTemplate=function(C){var Y=this.prototype._template;if(Y&&!Y.__polymerFinalized){Y.__polymerFinalized=!0;var V=this.importPath;V=V?_.qW(V):"";f(this,Y,C,V);this.prototype._bindTemplate(Y)}};
r.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);I.prototype.connectedCallback.call(this)};
r.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);I.prototype.ready.call(this)};
r.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));I.prototype._readyClients.call(this)};
r.prototype._attachDom=function(C){var Y=(0,_.xf)(this);if(Y.attachShadow)return C?(Y.shadowRoot||(Y.attachShadow({mode:"open",shadyUpgradeFragment:C}),Y.shadowRoot.appendChild(C),this.constructor._styleSheet&&(Y.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),ZAX&&window.ShadyDOM&&window.ShadyDOM.flushInitial(Y.shadowRoot),Y.shadowRoot):null;throw Error("Cd");};
r.prototype.updateStyles=function(C){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,C)};
r.prototype.resolveUrl=function(C,Y){!Y&&this.importPath&&(Y=_.qW(this.importPath));return _.qW(C,Y)};
r._parseTemplateContent=function(C,Y,V){Y.dynamicFns=Y.dynamicFns||this._properties;return I._parseTemplateContent.call(this,C,Y,V)};
r._addTemplatePropertyEffect=function(C,Y,V){!eJ||Y in this._properties||V.info.part.signature&&V.info.part.signature.static||V.info.part.hostProp||C.nestedTemplate||console.warn("Property '"+Y+"' used in template but not declared in 'properties'; attribute will not be observed.");return I._addTemplatePropertyEffect.call(this,C,Y,V)};
_.OC.Object.defineProperties(r,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var C=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof C==="function"&&(C=C());if(C===void 0){if(C=this.hasOwnProperty("is")){C=this.is;var Y=null;if(C&&(!Jq||A1U)&&(Y=nE.import(C,"template"),Jq&&!Y))throw Error("Bd`"+C);C=Y}C=C||Object.getPrototypeOf(this.prototype).constructor.template}this._template=C}return this._template},
set:function(C){this._template=C}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var C=this.importMeta;C?this._importPath=y8P(C.url):this._importPath=(C=nE.import(this.is))&&C.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return r});var $o8=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(r){return r}}),HFu=function(r,f){Fw3(r,f);
this.value=f.reduce(function(I,C,Y){return I+iFK(C)+r[Y+1]},r[0]).toString()},Fw3;
HFu.prototype.toString=function(){return this.value};
_.Pm3=function(r){var f=_.XE.apply(1,arguments);Fw3(r,f);var I=document.createElement("template");f=f.reduce(function(C,Y,V){if(Y instanceof HTMLTemplateElement)Y=Y.innerHTML;else if(Y instanceof HFu)Y=iFK(Y);else throw Error("Ed`"+Y);return C+Y+r[V+1]},r[0]);
$o8&&(f=$o8.createHTML(f));I.innerHTML=f;return I};
Fw3=function(r,f){if(!Array.isArray(r)||!Array.isArray(r.raw)||f.length!==r.length-1)throw new TypeError("Fd");};var G9=ZV(HTMLElement);var t_X=oj(function(r){var f=ZV(r);r=function(){var I=f.call(this)||this;I.__lastItems=null;I.__lastMulti=null;I.__selectedMap=null;return I};
_.t(r,f);r.prototype.__updateSelection=function(I,C){var Y=C.path;Y=="items"?(C=C.base||[],Y=this.__lastItems,I!==this.__lastMulti&&this.clearSelection(),Y&&(Y=jKd(C,Y),this.__applySplices(Y)),this.__lastItems=C,this.__lastMulti=I):C.path=="items.splices"?this.__applySplices(C.value.indexSplices):(I=Y.slice(6),C=parseInt(I,10),I.indexOf(".")<0&&I==C&&this.__deselectChangedIdx(C))};
r.prototype.__applySplices=function(I){for(var C=this,Y=this.__selectedMap,V={},S=0;S<I.length;V={s$jscomp$108:void 0},S++){V.s$jscomp$108=I[S];Y.forEach(function(d){return function(z,g){z<d.s$jscomp$108.index||(z>=d.s$jscomp$108.index+d.s$jscomp$108.removed.length?Y.set(g,z+d.s$jscomp$108.addedCount-d.s$jscomp$108.removed.length):Y.set(g,-1))}}(V));
for(var h=0;h<V.s$jscomp$108.addedCount;h++){var w=V.s$jscomp$108.index+h;Y.has(this.items[w])&&Y.set(this.items[w],w)}}this.__updateLinks();var n=0;Y.forEach(function(d,z){d<0?(C.multi?C.splice("selected",n,1):C.selected=C.selectedItem=null,Y.delete(z)):n++})};
r.prototype.__updateLinks=function(){var I=this;this.__dataLinkedPaths={};if(this.multi){var C=0;this.__selectedMap.forEach(function(Y){Y>=0&&I.linkPaths("items."+Y,"selected."+C++)})}else this.__selectedMap.forEach(function(Y){I.linkPaths("selected","items."+Y);
I.linkPaths("selectedItem","items."+Y)})};
r.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
r.prototype.isSelected=function(I){return this.__selectedMap.has(I)};
r.prototype.isIndexSelected=function(I){return this.isSelected(this.items[I])};
r.prototype.__deselectChangedIdx=function(I){var C=this,Y=this.__selectedIndexForItemIndex(I);if(Y>=0){var V=0;this.__selectedMap.forEach(function(S,h){Y==V++&&C.deselect(h)})}};
r.prototype.__selectedIndexForItemIndex=function(I){if(I=this.__dataLinkedPaths["items."+I])return parseInt(I.slice(9),10)};
r.prototype.deselect=function(I){var C=this.__selectedMap.get(I);if(C>=0){this.__selectedMap.delete(I);var Y;this.multi&&(Y=this.__selectedIndexForItemIndex(C));this.__updateLinks();this.multi?this.splice("selected",Y,1):this.selected=this.selectedItem=null}};
r.prototype.deselectIndex=function(I){this.deselect(this.items[I])};
r.prototype.select=function(I){this.selectIndex(this.items.indexOf(I))};
r.prototype.selectIndex=function(I){var C=this.items[I];this.isSelected(C)?this.toggle&&this.deselectIndex(I):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(C,I),this.__updateLinks(),this.multi?this.push("selected",C):this.selected=this.selectedItem=C)};
_.OC.Object.defineProperties(r,{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 r}),TXg=t_X(G9),k6=function(){return TXg.apply(this,arguments)||this};
_.t(k6,TXg);_.OC.Object.defineProperties(k6,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(k6.is,k6);var cZ3=window.Polymer;window.Polymer=function(r){return window.Polymer._polymerFn(r)};
cZ3&&Object.assign(Polymer,cZ3);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:KCd,resolveUrl:_.qW,pathFromUrl:y8P};Polymer.DomModule=nE;Polymer.Async={timeOut:_.OE,animationFrame:_.xY,idlePeriod:fks,microTask:tq};Polymer.dedupingMixin=oj;Polymer.wrap=_.xf;Polymer.PropertiesChanged=CmT;Polymer.telemetry={instanceCount:Y_B,incrementInstanceCount:function(){Y_B++},
registrations:oZ$,register:QCc,dumpRegistrations:function(){oZ$.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=lkC;Polymer.CaseMap={dashToCamelCase:DW,camelToDashCase:rb};Polymer.PropertyAccessors=wF4;Polymer.TemplateStamp=zd3;Polymer.Path={isPath:fE,root:I6,isAncestor:qkR,isDescendant:CE,translate:Yf,matches:uAw,normalize:lK,split:DmR,get:Vt,set:rv$,isDeep:fE};Polymer.Settings={useShadow:W8,useNativeCSSProperties:K0B,useNativeCustomElements:y1X,get rootPath(){return Qog},setRootPath:function(r){Qog=r},
get sanitizeDOMValue(){return hq},setSanitizeDOMValue:function(r){hq=r},
get passiveTouchGestures(){return kkP},setPassiveTouchGestures:function(r){kkP=r},
get strictTemplatePolicy(){return Jq},setStrictTemplatePolicy:function(r){Jq=r},
get allowTemplateFromDomModule(){return A1U},setAllowTemplateFromDomModule:function(r){A1U=r},
get legacyOptimizations(){return c8},setLegacyOptimizations:function(r){c8=r},
get syncInitialRender(){return ZAX},setSyncInitialRender:function(r){ZAX=r},
get legacyUndefined(){return bK},setLegacyUndefined:function(r){bK=r},
get legacyWarnings(){return eJ},setLegacyWarnings:function(r){eJ=r},
get orderedComputed(){return GID},setOrderedComputed:function(r){GID=r},
get fastDomIf(){return yf},setFastDomIf:function(r){yf=r},
get removeNestedTemplates(){return KV},setRemoveNestedTemplates:function(r){KV=r},
get suppressTemplateNotifications(){return UE},setSuppressTemplateNotifications:UE};Polymer.rootPath!==void 0&&(Qog=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(hq=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(kkP=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Jq=Polymer.strictTemplatePolicy);A1U=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(c8=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(ZAX=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(bK=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(eJ=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(GID=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(yf=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(KV=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(UE=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return hq},
set:function(r){hq=r}});Polymer.PropertyEffects=Ak;Polymer.StyleGather={stylesFromModules:tOu,stylesFromModule:P6K,stylesFromTemplate:Tud,stylesFromModuleImports:cv$,cssFromModules:LV$,cssFromModule:WVR,cssFromTemplate:mIB,cssFromModuleImports:function(r){return(r=nE.import(r))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(r):""}};Polymer.ElementMixin=ZV;Polymer.updateStyles=function(r){window.ShadyCSS&&window.ShadyCSS.styleDocument(r)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:jKd};Polymer.html=_.Pm3;Polymer.htmlLiteral=function(r){return new HFu(r,_.XE.apply(1,arguments))};Polymer.Element=G9;Polymer.ArraySelectorMixin=t_X;Polymer.ArraySelector=k6;var WwU=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Lw4=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,diK=/@media\s(.*)/;var yvK=null,KVE=window.HTMLImports&&window.HTMLImports.whenReady||null,UIu;var moD=null,BJ=null,qr=function(){this.customStyles=[];this.enqueued=!1;sKm(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},ed3=function(r){!r.enqueued&&BJ&&(r.enqueued=!0,sKm(BJ))};
qr.prototype.addCustomStyle=function(r){r.__seenByShadyCSS||(r.__seenByShadyCSS=!0,this.customStyles.push(r),ed3(this))};
qr.prototype.getStyleForCustomStyle=function(r){if(r.__shadyCSSCachedStyle)return r.__shadyCSSCachedStyle;var f;r.getStyle?f=r.getStyle():f=r;return f};
qr.prototype.processStyles=function(){for(var r=this.customStyles,f=0;f<r.length;f++){var I=r[f];if(!I.__shadyCSSCachedStyle){var C=this.getStyleForCustomStyle(I);C&&(C=C.__appliedElement||C,moD&&moD(C),I.__shadyCSSCachedStyle=C)}}return r};
qr.prototype.addCustomStyle=qr.prototype.addCustomStyle;qr.prototype.getStyleForCustomStyle=qr.prototype.getStyleForCustomStyle;qr.prototype.processStyles=qr.prototype.processStyles;Object.defineProperties(qr.prototype,{transformCallback:{get:function(){return moD},
set:function(r){moD=r}},
validateCallback:{get:function(){return BJ},
set:function(r){var f=!1;BJ||(f=!0);BJ=r;f&&ed3(this)}}});var o4K=!(window.ShadyDOM&&window.ShadyDOM.inUse),OFR,sC;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(sC=window.ShadyCSS.cssBuild);var JZB=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?OFR=window.ShadyCSS.nativeCss:window.ShadyCSS?(QKU(window.ShadyCSS),window.ShadyCSS=void 0):QKU(window.WebComponents&&window.WebComponents.flags);var bGR=OFR;var jl8=new qr;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(r,f){jl8.processStyles();R3B(r,f)},
styleElement:function(){jl8.processStyles()},
styleDocument:function(r){jl8.processStyles();R3B(document.body,r)},
getComputedStyleValue:function(r,f){return v4U(r,f)},
flushCustomStyles:function(){},
nativeCss:bGR,nativeShadow:o4K,cssBuild:sC,disableRuntime:JZB});window.ShadyCSS.CustomStyleInterface=jl8;var He3=window.ShadyCSS.CustomStyleInterface,u0=function(){var r=HTMLElement.call(this)||this;r._style=null;He3.addCustomStyle(r);return r};
_.t(u0,HTMLElement);u0.prototype.getStyle=function(){if(this._style)return this._style;var r=this.querySelector("style");if(!r)return null;this._style=r;var f=r.getAttribute("include");f&&(r.removeAttribute("include"),r.textContent=LV$(f)+r.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
u0.prototype.getStyle=u0.prototype.getStyle;window.customElements.define("custom-style",u0);Polymer.CustomStyle=u0;var DV=function(){this._timer=this._callback=this._asyncModule=null},r8,Rd4;
DV.prototype.setConfig=function(r,f){var I=this;this._asyncModule=r;this._callback=f;this._timer=this._asyncModule.run(function(){I._timer=null;r8.delete(I);I._callback()})};
DV.prototype.cancel=function(){this.isActive()&&(ieT(this),r8.delete(this))};
var ieT=function(r){r.isActive()&&(r._asyncModule.cancel(r._timer),r._timer=null)};
DV.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
DV.prototype.isActive=function(){return this._timer!=null};
_.f6=function(r,f,I){r instanceof DV?ieT(r):r=new DV;r.setConfig(f,I);return r};
r8=new Set;_.IG=function(r){r8.add(r)};
Rd4=function(){var r=!!r8.size;r8.forEach(function(f){try{f.flush()}catch(I){setTimeout(function(){throw I;})}});
return r};var ZFw=typeof document.head.style.touchAction==="string",AvE=["mousedown","mousemove","mouseup","click"],INK=[0,1,4,2],vI4;try{vI4=(new MouseEvent("test",{buttons:1})).buttons===1}catch(r){vI4=!1}var fNq=vI4,Gkc=!1;(function(){try{var r=Object.defineProperty({},"passive",{get:function(){Gkc=!0}});
window.addEventListener("test",null,r);window.removeEventListener("test",null,r)}catch(f){}})();
var q0B=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),u1R=[],Kws={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},nUP={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},DId=function(r){var f=r.sourceCapabilities;if(!f||f.firesTouchEvents)if(r.__polymerGesturesHandled={skip:!0},r.type==="click"){f=!1;for(var I=VBE(r),C=0;C<I.length;C++){if(I[C].nodeType===Node.ELEMENT_NODE)if(I[C].localName==="label")u1R.push(I[C]);
else if(Kws[I[C].localName]){var Y=I[C];var V=Array.prototype.slice.call(Y.labels||[]);if(!V.length){V=[];try{var S=Y.getRootNode();if(Y.id){var h=S.querySelectorAll("label[for = '"+Y.id+"']");for(Y=0;Y<h.length;Y++)V.push(h[Y])}}catch(w){}}for(Y=0;Y<V.length;Y++)f=f||u1R.indexOf(V[Y])>-1}if(I[C]===yZX)return}f||(r.preventDefault(),r.stopPropagation())}},yZX=null,C6=null,S1l=0,xpP=0,EUK=-1,htm=!1;
document.addEventListener("touchend",function(r){C6||rHm(!0);yZX=VBE(r)[0];C6=_.f6(C6,_.OE.after(2500),function(){rHm();C6=yZX=null})},Gkc?{passive:!0}:!1);
var VBE=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(r){return r.composedPath&&r.composedPath()||[]},N7={},a6=[];
wSK({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){gb(this.info)},
mousedown:function(r){if(M7(r)){var f=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(r),I=this;Y1K(this.info,function(C){M7(C)||(T5("up",f,C),gb(I.info))},function(C){M7(C)&&T5("up",f,C);
gb(I.info)});
T5("down",f,r)}},
touchstart:function(r){T5("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(r),r.changedTouches[0],r)},
touchend:function(r){T5("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(r),r.changedTouches[0],r)}});
wSK({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(r){this.moves.length>2&&this.moves.shift();this.moves.push(r)},
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;gb(this.info)},
mousedown:function(r){if(M7(r)){var f=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(r),I=this,C=function(Y){var V=Y.clientX,S=Y.clientY;bHm(I.info,V,S)&&(I.info.state=I.info.started?Y.type==="mouseup"?"end":"track":"start",I.info.state==="start"&&XK("tap"),I.info.addMove({x:V,y:S}),M7(Y)||(I.info.state="end",gb(I.info)),f&&pSK(I.info,f,Y),I.info.started=!0)};
Y1K(this.info,C,function(Y){I.info.started&&C(Y);gb(I.info)});
this.info.x=r.clientX;this.info.y=r.clientY}},
touchstart:function(r){r=r.changedTouches[0];this.info.x=r.clientX;this.info.y=r.clientY},
touchmove:function(r){var f=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(r);r=r.changedTouches[0];var I=r.clientX,C=r.clientY;bHm(this.info,I,C)&&(this.info.state==="start"&&XK("tap"),this.info.addMove({x:I,y:C}),pSK(this.info,f,r),this.info.state="track",this.info.started=!0)},
touchend:function(r){var f=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(r);r=r.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:r.clientX,y:r.clientY}),pSK(this.info,f,r))}});
wSK({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(r){M7(r)&&(this.info.x=r.clientX,this.info.y=r.clientY)},
click:function(r){M7(r)&&dpE(this.info,r)},
touchstart:function(r){r=r.changedTouches[0];this.info.x=r.clientX;this.info.y=r.clientY},
touchend:function(r){dpE(this.info,r.changedTouches[0],r)}});var UoT=oj(function(r){var f=function(){return r.apply(this,arguments)||this};
_.t(f,r);f.prototype._addEventListenerToNode=function(I,C,Y){$f(I,C,Y)||r.prototype._addEventListenerToNode.call(this,I,C,Y)};
f.prototype._removeEventListenerFromNode=function(I,C,Y){FK(I,C,Y)||r.prototype._removeEventListenerFromNode.call(this,I,C,Y)};
return f});var Y3=oj(function(r){var f=function(){return r.apply(this,arguments)||this};
_.t(f,r);f.prototype._shouldPropertyChange=function(I,C,Y){return ztU(this,I,C,Y,!0)};
return f}),slC=oj(function(r){var f=function(){return r.apply(this,arguments)||this};
_.t(f,r);f.prototype._shouldPropertyChange=function(I,C,Y){return ztU(this,I,C,Y,this.mutableData)};
_.OC.Object.defineProperties(f,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return f});
Y3._mutablePropertyChange=ztU;var MBP=!1;var OeT=UoT(slC(Ak(HTMLElement))),lC=function(){var r=OeT.call(this)||this;if(Jq)throw Error("Hd");r.root=null;r.$=null;r.__children=null;return r};
_.t(lC,OeT);_.l=lC.prototype;_.l.attributeChangedCallback=function(){this.mutableData=!0};
_.l.connectedCallback=function(){gUR()||(this.style.display="none");this.render()};
_.l.disconnectedCallback=function(){this.__removeChildren()};
_.l.__insertChildren=function(){(0,_.xf)((0,_.xf)(this).parentNode).insertBefore(this.root,this)};
_.l.__removeChildren=function(){if(this.__children)for(var r=0;r<this.__children.length;r++)this.root.appendChild(this.__children[r])};
_.l.render=function(){var r=this;if(!this.__children){var f=f||this.querySelector("template");if(!f){var I=new MutationObserver(function(){if(f=r.querySelector("template"))I.disconnect(),r.render();else throw Error("Id");});
I.observe(this,{childList:!0});return}this.root=this._stampTemplate(f);this.$=this.root.$;this.__children=[];for(var C=this.root.firstChild;C;C=C.nextSibling)this.__children[this.__children.length]=C;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.OC.Object.defineProperties(lC,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",lC);Polymer.Debouncer=DV;Polymer.Gestures={gestures:N7,recognizers:a6,deepTargetFind:lNU,addListener:$f,removeListener:FK,register:wSK,setTouchAction:_.P8,prevent:XK,resetMouseCanceller:function(){C6&&C6.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:$f,remove:FK};Polymer.GestureEventListeners=UoT;Polymer.MutableData=Y3;Polymer.OptionalMutableData=slC;Polymer.DomBind=lC;_.V8=function(){do{var r=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var f=Rd4()}while(r||f)};var aNu=null;XS$.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:XS$,writable:!0}});var WGm=Ak(XS$),cHE=Y3(WGm),oIV=Ak(function(){}),LE=function(r){var f=oIV.call(this)||this;
f._configureProperties(r);f.root=f._stampTemplate(f.__dataHost);var I=[];f.children=I;for(var C=f.root.firstChild;C;C=C.nextSibling)I.push(C),C.__templatizeInstance=f;f.__templatizeOwner&&f.__templatizeOwner.__hideTemplateChildren__&&f._showHideChildren(!0);I=f.__templatizeOptions;(r&&I.instanceProps||!I.instanceProps)&&f._enableProperties();return f};
_.t(LE,oIV);_.l=LE.prototype;_.l._configureProperties=function(r){if(this.__templatizeOptions.forwardHostProp)for(var f in this.__hostProps)this._setPendingProperty(f,this.__dataHost["_host_"+f]);for(var I in r)this._setPendingProperty(I,r[I])};
_.l.forwardHostProp=function(r,f){this._setPendingPropertyOrPath(r,f,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.l._addEventListenerToNode=function(r,f,I){var C=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(r,f,function(V){V.model=C;I(V)});
else{var Y=this.__dataHost.__dataHost;Y&&Y._addEventListenerToNode(r,f,I)}};
_.l._showHideChildren=function(r){$pU(r,this.children)};
_.l._setUnmanagedPropertyToNode=function(r,f,I){r.__hideTemplateChildren__&&r.nodeType==Node.TEXT_NODE&&f=="textContent"?r.__polymerTextContent__=I:oIV.prototype._setUnmanagedPropertyToNode.call(this,r,f,I)};
_.l.dispatchEvent=function(){return!0};
_.OC.Object.defineProperties(LE.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var r=this.__parentModel;if(!r){var f;r=this;do r=r.__dataHost.__dataHost;while((f=r.__templatizeOptions)&&!f.parentModel);this.__parentModel=r}return r}}});
var P1U=Y3(LE);var E5=function(){var r=G9.call(this)||this;r.__renderDebouncer=null;r._lastIf=!1;r.__hideTemplateChildren__=!1;return r};
_.t(E5,G9);_.l=E5.prototype;_.l.__debounceRender=function(){var r=this;this.__renderDebouncer=_.f6(this.__renderDebouncer,tq,function(){return r.__render()});
_.IG(this.__renderDebouncer)};
_.l.disconnectedCallback=function(){G9.prototype.disconnectedCallback.call(this);var r=(0,_.xf)(this).parentNode;r&&(r.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.xf)(r).host)||this.__teardownInstance()};
_.l.connectedCallback=function(){G9.prototype.connectedCallback.call(this);gUR()||(this.style.display="none");this.if&&this.__debounceRender()};
_.l.__ensureTemplate=function(){var r=this;if(!this.__template){var f=this._templateInfo?this:(0,_.xf)(this).querySelector("template");if(!f){var I=new MutationObserver(function(){if((0,_.xf)(r).querySelector("template"))I.disconnect(),r.__render();else throw Error("Ld");});
I.observe(this,{childList:!0});return!1}this.__template=f}return!0};
_.l.__ensureInstance=function(){var r=(0,_.xf)(this).parentNode;if(this.__hasInstance()){var f=this.__getInstanceNodes();if(f&&f.length&&(0,_.xf)(this).previousSibling!==f[f.length-1])for(var I=0,C=void 0;I<f.length&&(C=f[I]);I++)(0,_.xf)(r).insertBefore(C,this)}else{if(!r||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(r)}return!0};
_.l.render=function(){_.V8()};
_.l.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();UE&&!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(){};
_.OC.Object.defineProperties(E5,{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:E5.prototype.__debounceRender},restamp:{type:Boolean,observer:E5.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var Qls=function(){var r=E5.call(this)||this;r.__instance=null;r.__syncInfo=null;return r};
_.t(Qls,E5);_.l=Qls.prototype;_.l.__hasInstance=function(){return!!this.__instance};
_.l.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.l.__createAndInsertInstance=function(r){var f=this,I=this.__dataHost||this;if(Jq&&!this.__dataHost)throw Error("Jd");var C=I._bindTemplate(this.__template,!0);C.runEffects=function(Y,V,S){var h=f.__syncInfo;if(f.if)h&&(f.__syncInfo=null,f._showHideChildren(),V=Object.assign(h.changedProps,V)),Y(V,S);else if(f.__instance)if(h||(h=f.__syncInfo={runEffects:Y,changedProps:{}}),S)for(var w in V)Y=I6(w),h.changedProps[Y]=f.__dataHost[Y];else Object.assign(h.changedProps,V)};
this.__instance=I._stampTemplate(this.__template,C);(0,_.xf)(r).insertBefore(this.__instance,this)};
_.l.__syncHostProperties=function(){var r=this.__syncInfo;r&&(this.__syncInfo=null,r.runEffects(r.changedProps,!1))};
_.l.__teardownInstance=function(){var r=this.__dataHost||this;this.__instance&&(r._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.l._showHideChildren=function(){var r=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==r&&(this.__instance.__hidden=r,$pU(r,this.__instance.templateInfo.childNodes));r||this.__syncHostProperties()};
var AZ4=function(){var r=E5.call(this)||this;r.__ctor=null;r.__instance=null;r.__invalidProps=null;return r};
_.t(AZ4,E5);_.l=AZ4.prototype;_.l.__hasInstance=function(){return!!this.__instance};
_.l.__getInstanceNodes=function(){return this.__instance.children};
_.l.__createAndInsertInstance=function(r){this.__ctor||(this.__ctor=mF(this.__template,this,{mutableData:!0,forwardHostProp:function(f,I){this.__instance&&(this.if?this.__instance.forwardHostProp(f,I):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[I6(f)]=!0))}}));
this.__instance=new this.__ctor;(0,_.xf)(r).insertBefore(this.__instance.root,this)};
_.l.__teardownInstance=function(){if(this.__instance){var r=this.__instance.children;if(r&&r.length){var f=(0,_.xf)(r[0]).parentNode;if(f){f=(0,_.xf)(f);for(var I=0,C=void 0;I<r.length&&(C=r[I]);I++)f.removeChild(C)}}this.__instance=this.__invalidProps=null}};
_.l.__syncHostProperties=function(){var r=this.__invalidProps;if(r){this.__invalidProps=null;for(var f in r)this.__instance._setPendingProperty(f,this.__dataHost[f]);this.__instance._flushProperties()}};
_.l._showHideChildren=function(){var r=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==r&&(this.__instance.__hidden=r,this.__instance._showHideChildren(r));r||this.__syncHostProperties()};
_.px=yf?Qls:AZ4;customElements.define(_.px.is,_.px);Polymer.enqueueDebouncer=_.IG;Polymer.flush=_.V8;Polymer.Templatize={templatize:mF,modelForElement:HHB};Polymer.TemplateInstanceBase=LE;Polymer.DomIf=_.px;var Zes=slC(G9),b7=function(){var r=Zes.call(this)||this;r.__instances=[];r.__renderDebouncer=null;r.__itemsIdxToInstIdx={};r.__chunkCount=null;r.__renderStartTime=null;r.__itemsArrayChanged=!1;r.__shouldMeasureChunk=!1;r.__shouldContinueChunking=!1;r.__chunkingId=0;r.__sortFn=null;r.__filterFn=null;r.__observePaths=null;r.__ctor=null;r.__isDetached=!0;r.template=null;return r};
_.t(b7,Zes);_.l=b7.prototype;_.l.disconnectedCallback=function(){Zes.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var r=0;r<this.__instances.length;r++)this.__detachInstance(r);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.l.connectedCallback=function(){Zes.prototype.connectedCallback.call(this);gUR()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var r=(0,_.xf)((0,_.xf)(this).parentNode),f=0;f<this.__instances.length;f++)this.__attachInstance(f,r);this.__chunkingId&&this.__render()}};
_.l.__ensureTemplatized=function(){var r=this;if(!this.__ctor){var f=this.template=this._templateInfo?this:this.querySelector("template");if(!f){var I=new MutationObserver(function(){if(r.querySelector("template"))I.disconnect(),r.__render();else throw Error("Md");});
I.observe(this,{childList:!0});return!1}var C={};C[this.as]=!0;C[this.indexAs]=!0;C[this.itemsIndexAs]=!0;this.__ctor=mF(f,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:C,forwardHostProp:function(Y,V){for(var S=this.__instances,h=0,w=void 0;h<S.length&&(w=S[h]);h++)w.forwardHostProp(Y,V)},
notifyInstanceProp:function(Y,V,S){uAw(this.as,V)&&(Y=Y[this.itemsIndexAs],V==this.as&&(this.items[Y]=S),V=Yf(this.as,"items."+Y,V),this.notifyPath(V,S))}})}return!0};
_.l.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.l.__functionFromPropertyValue=function(r){if(typeof r==="string"){var f=this.__getMethodHost();return function(){return f[r].apply(f,arguments)}}return r};
_.l.__sortChanged=function(r){this.__sortFn=this.__functionFromPropertyValue(r);this.items&&this.__debounceRender(this.__render)};
_.l.__filterChanged=function(r){this.__filterFn=this.__functionFromPropertyValue(r);this.items&&this.__debounceRender(this.__render)};
_.l.__computeFrameTime=function(r){return Math.ceil(1E3/r)};
_.l.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.l.__handleObservedPaths=function(r){if(this.__sortFn||this.__filterFn)if(!r)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var f=this.__observePaths,I=0;I<f.length;I++)r.indexOf(f[I])===0&&this.__debounceRender(this.__render,this.delay)};
_.l.__itemsChanged=function(r){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(r.path,r.value)||(r.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.l.__debounceRender=function(r,f){f=f===void 0?0:f;this.__renderDebouncer=_.f6(this.__renderDebouncer,f>0?_.OE.after(f):tq,r.bind(this));_.IG(this.__renderDebouncer)};
_.l.render=function(){this.__debounceRender(this.__render);_.V8()};
_.l.__render=function(){var r=this;if(this.__ensureTemplatized()){var f=this.items||[],I=this.__sortAndFilterItems(f),C=this.__calculateLimit(I.length);this.__updateInstances(f,C,I);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){r.__chunkingId=null;r.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);UE&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.l.__sortAndFilterItems=function(r){for(var f=this,I=Array(r.length),C=0;C<r.length;C++)I[C]=C;this.__filterFn&&(I=I.filter(function(Y,V,S){return f.__filterFn(r[Y],V,S)}));
this.__sortFn&&I.sort(function(Y,V){return f.__sortFn(r[Y],r[V])});
return I};
_.l.__calculateLimit=function(r){var f=r,I=this.__instances.length;if(this.initialCount){var C;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(f=Math.min(r,this.initialCount),this.__chunkCount=(C=Math.max(f-I,0))||1):(C=Math.min(Math.max(r-I,0),this.__chunkCount),f=Math.min(I+C,r));this.__shouldMeasureChunk=C===this.__chunkCount;this.__shouldContinueChunking=f<r;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return f};
_.l.__continueChunking=function(){if(this.__shouldMeasureChunk){var r=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/r*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.l.__updateInstances=function(r,f,I){var C=this.__itemsIdxToInstIdx={},Y;for(Y=0;Y<f;Y++){var V=this.__instances[Y],S=I[Y],h=r[S];C[S]=Y;V?(V._setPendingProperty(this.as,h),V._setPendingProperty(this.indexAs,Y),V._setPendingProperty(this.itemsIndexAs,S),V._flushProperties()):this.__insertInstance(h,Y,S)}for(r=this.__instances.length-1;r>=Y;r--)this.__detachAndRemoveInstance(r)};
_.l.__detachInstance=function(r){r=this.__instances[r];for(var f=(0,_.xf)(r.root),I=0;I<r.children.length;I++)f.appendChild(r.children[I]);return r};
_.l.__attachInstance=function(r,f){f.insertBefore(this.__instances[r].root,this)};
_.l.__detachAndRemoveInstance=function(r){this.__detachInstance(r);this.__instances.splice(r,1)};
_.l.__stampInstance=function(r,f,I){var C={};C[this.as]=r;C[this.indexAs]=f;C[this.itemsIndexAs]=I;return new this.__ctor(C)};
_.l.__insertInstance=function(r,f,I){r=this.__stampInstance(r,f,I);I=(I=this.__instances[f+1])?I.children[0]:this;(0,_.xf)((0,_.xf)(this).parentNode).insertBefore(r.root,I);return this.__instances[f]=r};
_.l._showHideChildren=function(r){for(var f=0;f<this.__instances.length;f++)this.__instances[f]._showHideChildren(r)};
_.l.__handleItemPath=function(r,f){var I=r.slice(6),C=I.indexOf(".");r=C<0?I:I.substring(0,C);if(r==parseInt(r,10)){I=C<0?"":I.substring(C+1);this.__handleObservedPaths(I);if(r=this.__instances[this.__itemsIdxToInstIdx[r]])r._setPendingPropertyOrPath(this.as+(I?"."+I:""),f,!1,!0),r._flushProperties();return!0}};
_.l.itemForElement=function(r){return(r=this.modelForElement(r))&&r[this.as]};
_.l.indexForElement=function(r){return(r=this.modelForElement(r))&&r[this.indexAs]};
_.l.modelForElement=function(r){return HHB(this.template,r)};
_.OC.Object.defineProperties(b7,{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:b7.prototype.__sortChanged},filter:{type:Function,observer:b7.prototype.__filterChanged},observe:{type:String,observer:b7.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!UE,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.*)"]}}});
b7.prototype._setRenderedItemCount=function(){};
customElements.define(b7.is,b7);Polymer.DomRepeat=b7;var GM8=function(r,f){var I=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=r;this.callback=f;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){I._schedule()};
this.connect();this._schedule()},kMg=function(r){var f=(0,_.xf)(r);
if(jJ(r))return f.assignedNodes({flatten:!0});r=[];for(var I=0;I<f.childNodes.length;I++){var C=f.childNodes[I];jJ(C)?r.push.apply(r,_.Na((0,_.xf)(C).assignedNodes({flatten:!0}))):r.push(C)}return r};
_.l=GM8.prototype;_.l.connect=function(){var r=this;jJ(this._target)?this._listenSlots([this._target]):(0,_.xf)(this._target).children&&(this._listenSlots((0,_.xf)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(f){r._processMutations(f)}):(this._nativeChildrenObserver=new MutationObserver(function(f){r._processMutations(f)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.l.disconnect=function(){jJ(this._target)?this._unlistenSlots([this._target]):(0,_.xf)(this._target).children&&(this._unlistenSlots((0,_.xf)(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 r=this;this._scheduled||(this._scheduled=!0,tq.run(function(){return r.flush()}))};
_.l._processMutations=function(r){this._processSlotMutations(r);this.flush()};
_.l._processSlotMutations=function(r){if(r)for(var f=0;f<r.length;f++){var I=r[f];I.addedNodes&&this._listenSlots(I.addedNodes);I.removedNodes&&this._unlistenSlots(I.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 r={target:this._target,addedNodes:[],removedNodes:[]},f=kMg(this._target),I=jKd(f,this._effectiveNodes),C=0,Y=void 0;C<I.length&&(Y=I[C]);C++)for(var V=0,S=void 0;V<Y.removed.length&&(S=Y.removed[V]);V++)r.removedNodes.push(S);
C=0;for(Y=void 0;C<I.length&&(Y=I[C]);C++)for(V=Y.index;V<Y.index+Y.addedCount;V++)r.addedNodes.push(f[V]);this._effectiveNodes=f;f=!1;if(r.addedNodes.length||r.removedNodes.length)f=!0,this.callback.call(this._target,r);return f};
_.l._listenSlots=function(r){for(var f=0;f<r.length;f++){var I=r[f];jJ(I)&&I.addEventListener("slotchange",this._boundSchedule)}};
_.l._unlistenSlots=function(r){for(var f=0;f<r.length;f++){var I=r[f];jJ(I)&&I.removeEventListener("slotchange",this._boundSchedule)}};var Sr=Element.prototype,BX8=Sr.matches||Sr.matchesSelector||Sr.mozMatchesSelector||Sr.msMatchesSelector||Sr.oMatchesSelector||Sr.webkitMatchesSelector,q_C=function(r,f){return BX8.call(r,f)},H8=function(r){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(r);
this.node=r},fxX;
_.l=H8.prototype;_.l.observeNodes=function(r){return new GM8(this.node,r)};
_.l.unobserveNodes=function(r){r.disconnect()};
_.l.notifyObserver=function(){};
_.l.deepContains=function(r){if((0,_.xf)(this.node).contains(r))return!0;var f=r;for(r=r.ownerDocument;f&&f!==r&&f!==this.node;)f=(0,_.xf)(f).parentNode||(0,_.xf)(f).host;return f===this.node};
_.l.getOwnerRoot=function(){return(0,_.xf)(this.node).getRootNode()};
_.l.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.xf)(this.node).assignedNodes({flatten:!0}):[]};
_.l.getDestinationInsertionPoints=function(){for(var r=[],f=(0,_.xf)(this.node).assignedSlot;f;)r.push(f),f=(0,_.xf)(f).assignedSlot;return r};
_.l.importNode=function(r,f){return(0,_.xf)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(r,f)};
_.l.getEffectiveChildNodes=function(){return kMg(this.node)};
_.l.queryDistributedElements=function(r){for(var f=this.getEffectiveChildNodes(),I=[],C=0,Y=f.length,V=void 0;C<Y&&(V=f[C]);C++)V.nodeType===Node.ELEMENT_NODE&&q_C(V,r)&&I.push(V);return I};
_.OC.Object.defineProperties(H8.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var r=this.node;return r._activeElement!==void 0?r._activeElement:r.activeElement}}});
var x3=function(r){this.event=r};
_.OC.Object.defineProperties(x3.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 ucD=H8;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var DoC=window.ShadyDOM.Wrapper,rQ3=function(){return DoC.apply(this,arguments)||this};
_.t(rQ3,DoC);Object.getOwnPropertyNames(H8.prototype).forEach(function(r){r!="activeElement"&&r!="constructor"&&(rQ3.prototype[r]=H8.prototype[r])});
Rt$(rQ3.prototype,["classList"]);ucD=rQ3;Object.defineProperties(x3.prototype,{localTarget:{get:function(){var r=this.event.currentTarget;r=r&&_.zI(r).getOwnerRoot();for(var f=this.path,I=0;I<f.length;I++){var C=f[I];if(_.zI(C).getOwnerRoot()===r)return C}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else iHm(),Rt$(H8.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),vUd();fxX=ucD;_.zI=function(r){r=r||document;if(r instanceof ucD)return r;if(r instanceof x3)return r;var f=r.__domApi;f||(r instanceof Event?f=new x3(r):f=new ucD(r),r.__domApi=f);return f};var IxC=/:host\(:dir\((ltr|rtl)\)\)/g,CXX=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,YrB=/:dir\((?:ltr|rtl)\)/,lxq=!(!window.ShadyDOM||!window.ShadyDOM.inUse),R6=[],hh=null,iK="",Vo3=oj(function(r){lxq||hh||(iK=document.documentElement.getAttribute("dir"),hh=new MutationObserver(KGw),hh.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var f=wF4(r);r=function(){var I=f.call(this)||this;I.__autoDirOptOut=!1;return I};
_.t(r,f);r._processStyleText=function(I,C){I=f._processStyleText.call(this,I,C);!lxq&&YrB.test(I)&&(I=this._replaceDirInCssText(I),this.__activateDir=!0);return I};
r._replaceDirInCssText=function(I){I=I.replace(IxC,':host([dir="$1"])');return I=I.replace(CXX,':host([dir="$2"]) $1')};
r.prototype.ready=function(){f.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
r.prototype.connectedCallback=function(){f.prototype.connectedCallback&&f.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(hh&&hh.takeRecords().length&&KGw(),R6.push(this),this.__autoDirOptOut||this.setAttribute("dir",iK))};
r.prototype.disconnectedCallback=function(){f.prototype.disconnectedCallback&&f.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var I=R6.indexOf(this);I>-1&&R6.splice(I,1)}};
r.__activateDir=!1;return r});var Ex_=function(r){for(;r;){var f=Object.getOwnPropertyDescriptor(r,"observedAttributes");if(f)return f.get;r=Object.getPrototypeOf(r.prototype).constructor}return function(){return[]}};
oj(function(r){var f=ZV(r),I=Ex_(f);r=function(){return f.call(this)||this};
_.t(r,f);r.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:f.prototype._initializeProperties.call(this)};
r.prototype._enableProperties=function(){this.__isUpgradeDisabled||f.prototype._enableProperties.call(this)};
r.prototype._canApplyPropertyDefault=function(C){return f.prototype._canApplyPropertyDefault.call(this,C)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(C))};
r.prototype.attributeChangedCallback=function(C,Y,V,S){C=="disable-upgrade"?this.__isUpgradeDisabled&&V==null&&(f.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.xf)(this).isConnected&&f.prototype.connectedCallback.call(this)):f.prototype.attributeChangedCallback.call(this,C,Y,V,S)};
r.prototype.connectedCallback=function(){this.__isUpgradeDisabled||f.prototype.connectedCallback.call(this)};
r.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||f.prototype.disconnectedCallback.call(this)};
_.OC.Object.defineProperties(r,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return I.call(this).concat("disable-upgrade")}}});
return r});var v8=!1,Upu=[],KE=[];var QV$=window.ShadyDOM,AHK=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",GN$):document.readyState==="interactive"||document.readyState==="complete"?GN$():window.addEventListener("DOMContentLoaded",GN$);var q1K=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=""},kNE=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,BYc=/@import[^;]*;/gim,COE=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,YdP=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,lcR=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,VQu=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,fcw=/^@[^\s]*keyframes/,
rFw=/\s+/g;var EwB={};var hBK=Promise.resolve();var Sr3=new Set;var xjq=/;\s*/m,hkC=/^\s*(initial)|(inherit)\s*$/,w13=/\s*!important/,b2_=function(){this._map={}};
b2_.prototype.set=function(r,f){r=r.trim();this._map[r]={properties:f,dependants:{}}};
b2_.prototype.get=function(r){r=r.trim();return this._map[r]||null};
var p1T=null,w8=function(){this._measureElement=this._currentElement=null;this._map=new b2_};
_.l=w8.prototype;_.l.detectMixin=function(r){r=Lw4.test(r)||WwU.test(r);Lw4.lastIndex=0;WwU.lastIndex=0;return r};
_.l.transformTemplate=function(r,f){if(r._gatheredStyle===void 0){var I=[];for(var C=r.content.querySelectorAll("style"),Y=0;Y<C.length;Y++){var V=C[Y];if(V.hasAttribute("shady-unscoped")){if(!o4K){var S=V.textContent;if(!Sr3.has(S)){Sr3.add(S);var h=document.createElement("style");h.setAttribute("shady-unscoped","");h.textContent=S;document.head.appendChild(h)}V.parentNode.removeChild(V)}}else I.push(V.textContent),V.parentNode.removeChild(V)}(I=I.join("").trim())?(C=document.createElement("style"),
C.textContent=I,r.content.insertBefore(C,r.content.firstChild),I=C):I=null;r._gatheredStyle=I}return(r=r._gatheredStyle)?this.JSC$9075_transformStyle(r,f):null};
_.l.JSC$9075_transformStyle=function(r,f){f=f===void 0?"":f;var I=nwR(r);this.transformRules(I,f);r.textContent=pal(I);return I};
_.l.transformCustomStyle=function(r){var f=this,I=nwR(r);zBw(I,function(C){C.selector===":root"&&(C.selector="html");f.transformRule(C)});
r.textContent=pal(I);return I};
_.l.transformRules=function(r,f){var I=this;this._currentElement=f;zBw(r,function(C){I.transformRule(C)});
this._currentElement=null};
_.l.transformRule=function(r){r.cssText=nxT(this,r.parsedCssText,r);r.selector===":root"&&(r.selector=":host > *")};
var nxT=function(r,f,I){f=f.replace(WwU,function(C,Y,V,S){return r._produceCssProperties(C,Y,V,S,I)});
return r._consumeCssProperties(f,I)};
_.l=w8.prototype;_.l._getInitialValueForProperty=function(r){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(r)};
_.l._fallbacksFromPreviousRules=function(r){for(var f=this,I=r;I.parent;)I=I.parent;var C={},Y=!1;zBw(I,function(V){(Y=Y||V===r)||V.selector===r.selector&&Object.assign(C,f._cssTextToMap(V.parsedCssText))});
return C};
_.l._consumeCssProperties=function(r,f){for(var I;I=Lw4.exec(r);){var C=I[0],Y=I[1];I=I.index;var V=I+C.indexOf("@apply"),S=I+C.length;C=r.slice(0,V);r=r.slice(S);V=f?this._fallbacksFromPreviousRules(f):{};Object.assign(V,this._cssTextToMap(C));Y=this._atApplyToCssProperties(Y,V);r=C+Y+r;Lw4.lastIndex=I+Y.length}return r};
_.l._atApplyToCssProperties=function(r,f){r=r.replace(xjq,"");var I=[],C=this._map.get(r);C||(this._map.set(r,{}),C=this._map.get(r));if(C){this._currentElement&&(C.dependants[this._currentElement]=!0);var Y,V=C.properties;for(Y in V){var S=f&&f[Y];C=[Y,": var(",r,"_-_",Y];S&&C.push(",",S.replace(w13,""));C.push(")");w13.test(V[Y])&&C.push(" !important");I.push(C.join(""))}}return I.join("; ")};
_.l._replaceInitialOrInherit=function(r,f){var I=hkC.exec(f);I&&(f=I[1]?this._getInitialValueForProperty(r):"apply-shim-inherit");return f};
_.l._cssTextToMap=function(r,f){f=f===void 0?!1:f;r=r.split(";");for(var I,C,Y={},V=0;V<r.length;V++)if(I=r[V])C=I.split(":"),C.length>1&&(I=C[0].trim(),C=C.slice(1).join(":"),f&&(C=this._replaceInitialOrInherit(I,C)),Y[I]=C);return Y};
_.l._invalidateMixinEntry=function(r){if(p1T)for(var f in r.dependants)f!==this._currentElement&&p1T(f)};
_.l._produceCssProperties=function(r,f,I,C,Y){var V=this;I&&MQP(I,function(P,W){W&&V._map.get(W)&&(C="@apply "+W+";")});
if(!C)return r;var S=this._consumeCssProperties(""+C,Y);Y=r.slice(0,r.indexOf("--"));var h=S=this._cssTextToMap(S,!0),w=this._map.get(f),n=w&&w.properties;n?h=Object.assign(Object.create(n),S):this._map.set(f,h);var d=[],z,g=!1;for(z in h){var X=S[z];X===void 0&&(X="initial");!n||z in n||(g=!0);d.push(f+"_-_"+z+": "+X)}g&&this._invalidateMixinEntry(w);w&&(w.properties=h);I&&(Y=r+";"+Y);return Y+d.join("; ")+";"};
w8.prototype.detectMixin=w8.prototype.detectMixin;w8.prototype.transformStyle=w8.prototype.JSC$9075_transformStyle;w8.prototype.transformCustomStyle=w8.prototype.transformCustomStyle;w8.prototype.transformRules=w8.prototype.transformRules;w8.prototype.transformRule=w8.prototype.transformRule;w8.prototype.transformTemplate=w8.prototype.transformTemplate;w8.prototype._separator="_-_";Object.defineProperty(w8.prototype,"invalidCallback",{get:function(){return p1T},
set:function(r){p1T=r}});var bC=new w8,djB=function(){this.customStyleInterface=null;bC.invalidCallback=SdR},p6=function(r){!r.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(r.customStyleInterface=window.ShadyCSS.CustomStyleInterface,r.customStyleInterface.transformCallback=function(f){bC.transformCustomStyle(f)},r.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){r.customStyleInterface.enqueued&&r.flushCustomStyles()})})};
_.l=djB.prototype;_.l.prepareTemplate=function(r,f){p6(this);gwK(r)===""&&(EwB[f]=r,f=bC.transformTemplate(r,f),r._styleAst=f)};
_.l.flushCustomStyles=function(){p6(this);if(this.customStyleInterface){var r=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var f=0;f<r.length;f++){var I=this.customStyleInterface.getStyleForCustomStyle(r[f]);I&&bC.transformCustomStyle(I)}this.customStyleInterface.enqueued=!1}}};
_.l.styleSubtree=function(r,f){p6(this);f&&R3B(r,f);if(r.shadowRoot)for(this.styleElement(r),r=r.shadowRoot.children||r.shadowRoot.childNodes,f=0;f<r.length;f++)this.styleSubtree(r[f]);else for(r=r.children||r.childNodes,f=0;f<r.length;f++)this.styleSubtree(r[f])};
_.l.styleElement=function(r){p6(this);var f=r.localName,I;f?f.indexOf("-")>-1?I=f:I=r.getAttribute&&r.getAttribute("is")||"":I=r.is;f=EwB[I];if(!(f&&gwK(f)!==""||!f||xil(f))){if(xil(f)||f._applyShimValidatingVersion!==f._applyShimNextVersion)this.prepareTemplate(f,I),waK(f);if(r=r.shadowRoot)if(r=r.querySelector("style"))r.__cssRules=f._styleAst,r.textContent=pal(f._styleAst)}};
_.l.styleDocument=function(r){p6(this);this.styleSubtree(document.body,r)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var n6=new djB,zk3=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(r,f){n6.flushCustomStyles();n6.prepareTemplate(r,f)},
prepareTemplateStyles:function(r,f,I){window.ShadyCSS.prepareTemplate(r,f,I)},
prepareTemplateDom:function(){},
styleSubtree:function(r,f){n6.flushCustomStyles();n6.styleSubtree(r,f)},
styleElement:function(r){n6.flushCustomStyles();n6.styleElement(r)},
styleDocument:function(r){n6.flushCustomStyles();n6.styleDocument(r)},
getComputedStyleValue:function(r,f){return v4U(r,f)},
flushCustomStyles:function(){n6.flushCustomStyles()},
nativeCss:bGR,nativeShadow:o4K,cssBuild:sC,disableRuntime:JZB};zk3&&(window.ShadyCSS.CustomStyleInterface=zk3)}window.ShadyCSS.ApplyShim=bC;var Mog;Mog=window.ShadyCSS;_.d8=oj(function(r){r=UoT(ZV(r));var f=NXX?r:Vo3(r),I=Ex_(f),C={x:"pan-x",y:"pan-y",none:"none",all:"auto"};r=function(){return f.call(this)||this};
_.t(r,f);r.prototype.created=function(){};
r.prototype.__attributeReaction=function(Y,V,S){(this.__dataAttributes&&this.__dataAttributes[Y]||Y==="disable-upgrade")&&this.attributeChangedCallback(Y,V,S,null)};
r.prototype.setAttribute=function(Y,V){if(kI8&&!this._legacyForceObservedAttributes){var S=this.getAttribute(Y);f.prototype.setAttribute.call(this,Y,V);this.__attributeReaction(Y,S,String(V))}else f.prototype.setAttribute.call(this,Y,V)};
r.prototype.removeAttribute=function(Y){if(kI8&&!this._legacyForceObservedAttributes){var V=this.getAttribute(Y);f.prototype.removeAttribute.call(this,Y);this.__attributeReaction(Y,V,null)}else f.prototype.removeAttribute.call(this,Y)};
r.prototype._enableProperties=function(){this.__isUpgradeDisabled||f.prototype._enableProperties.call(this)};
r.prototype._canApplyPropertyDefault=function(Y){return f.prototype._canApplyPropertyDefault.call(this,Y)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Y))};
r.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(f.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
r.prototype.attached=function(){};
r.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(f.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
r.prototype.detached=function(){};
r.prototype.attributeChangedCallback=function(Y,V,S,h){V!==S&&(Y=="disable-upgrade"?this.__isUpgradeDisabled&&S==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.xf)(this).isConnected&&this.connectedCallback()):(f.prototype.attributeChangedCallback.call(this,Y,V,S,h),this.attributeChanged(Y,V,S)))};
r.prototype.attributeChanged=function(){};
r.prototype._initializeProperties=function(){if(c8&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var Y=Object.getPrototypeOf(this);Y.hasOwnProperty("__hasRegisterFinished")||(this._registered(),Y.__hasRegisterFinished=!0);f.prototype._initializeProperties.call(this);this.root=this;this.created();kI8&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
r.prototype._takeAttributes=function(){for(var Y=this.attributes,V=0,S=Y.length;V<S;V++){var h=Y[V];this.__attributeReaction(h.name,null,h.value)}};
r.prototype._registered=function(){};
r.prototype.ready=function(){this._ensureAttributes();f.prototype.ready.call(this)};
r.prototype._ensureAttributes=function(){};
r.prototype._applyListeners=function(){};
r.prototype.serialize=function(Y){return this._serializeValue(Y)};
r.prototype.deserialize=function(Y,V){return this._deserializeValue(Y,V)};
r.prototype.reflectPropertyToAttribute=function(Y,V,S){this._propertyToAttribute(Y,V,S)};
r.prototype.serializeValueToAttribute=function(Y,V,S){this._valueToNodeAttribute(S||this,Y,V)};
r.prototype.extend=function(Y,V){if(!Y||!V)return Y||V;for(var S=Object.getOwnPropertyNames(V),h=0,w=void 0;h<S.length&&(w=S[h]);h++){var n=Object.getOwnPropertyDescriptor(V,w);n&&Object.defineProperty(Y,w,n)}return Y};
r.prototype.mixin=function(Y,V){for(var S in V)Y[S]=V[S];return Y};
r.prototype.chainObject=function(Y,V){Y&&V&&Y!==V&&(Y.__proto__=V);return Y};
r.prototype.instanceTemplate=function(Y){Y=this.constructor._contentForTemplate(Y);return document.importNode(Y,!0)};
r.prototype.fire=function(Y,V,S){S=S||{};V=V===null||V===void 0?{}:V;Y=new Event(Y,{bubbles:S.bubbles===void 0?!0:S.bubbles,cancelable:!!S.cancelable,composed:S.composed===void 0?!0:S.composed});Y.detail=V;(0,_.xf)(S.node||this).dispatchEvent(Y);return Y};
r.prototype.listen=function(Y,V,S){Y=Y||this;var h=this.__boundListeners||(this.__boundListeners=new WeakMap),w=h.get(Y);w||(w={},h.set(Y,w));h=V+S;w[h]||(w[h]=this._addMethodEventListenerToNode(Y,V,S,this))};
r.prototype.unlisten=function(Y,V,S){Y=Y||this;var h=this.__boundListeners&&this.__boundListeners.get(Y);S=V+S;var w=h&&h[S];w&&(this._removeEventListenerFromNode(Y,V,w),h[S]=null)};
r.prototype.setScrollDirection=function(Y,V){_.P8(V||this,C[Y]||"auto")};
r.prototype.$$=function(Y){return this.root.querySelector(Y)};
r.prototype.distributeContent=function(){var Y=_.zI(this);window.ShadyDOM&&Y.shadowRoot&&ShadyDOM.flush()};
r.prototype.getEffectiveChildNodes=function(){return _.zI(this).getEffectiveChildNodes()};
r.prototype.queryDistributedElements=function(Y){return _.zI(this).queryDistributedElements(Y)};
r.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(Y){return Y.nodeType===Node.ELEMENT_NODE})};
r.prototype.getEffectiveTextContent=function(){for(var Y=this.getEffectiveChildNodes(),V=[],S=0,h;h=Y[S];S++)h.nodeType!==Node.COMMENT_NODE&&V.push(h.textContent);return V.join("")};
r.prototype.queryEffectiveChildren=function(Y){return(Y=this.queryDistributedElements(Y))&&Y[0]};
r.prototype.queryAllEffectiveChildren=function(Y){return this.queryDistributedElements(Y)};
r.prototype.getContentChildNodes=function(Y){return(Y=this.root.querySelector(Y||"slot"))?_.zI(Y).getDistributedNodes():[]};
r.prototype.getContentChildren=function(Y){return this.getContentChildNodes(Y).filter(function(V){return V.nodeType===Node.ELEMENT_NODE})};
r.prototype.isLightDescendant=function(Y){return this!==Y&&(0,_.xf)(this).contains(Y)&&(0,_.xf)(this).getRootNode()===(0,_.xf)(Y).getRootNode()};
r.prototype.isLocalDescendant=function(Y){return this.root===(0,_.xf)(Y).getRootNode()};
r.prototype.scopeSubtree=function(Y,V){return ZHB(Y,V===void 0?!1:V)};
r.prototype.getComputedStyleValue=function(Y){return Mog.getComputedStyleValue(this,Y)};
r.prototype.debounce=function(Y,V,S){this._debouncers=this._debouncers||{};return this._debouncers[Y]=_.f6(this._debouncers[Y],S>0?_.OE.after(S):tq,V.bind(this))};
r.prototype.isDebouncerActive=function(Y){this._debouncers=this._debouncers||{};Y=this._debouncers[Y];return!(!Y||!Y.isActive())};
r.prototype.flushDebouncer=function(Y){this._debouncers=this._debouncers||{};(Y=this._debouncers[Y])&&Y.flush()};
r.prototype.cancelDebouncer=function(Y){this._debouncers=this._debouncers||{};(Y=this._debouncers[Y])&&Y.cancel()};
r.prototype.async=function(Y,V){return V>0?_.OE.run(Y.bind(this),V):~tq.run(Y.bind(this))};
r.prototype.cancelAsync=function(Y){Y<0?tq.cancel(~Y):_.OE.cancel(Y)};
r.prototype.create=function(Y,V){Y=document.createElement(Y);if(V)if(Y.setProperties)Y.setProperties(V);else for(var S in V)Y[S]=V[S];return Y};
r.prototype.elementMatches=function(Y,V){return q_C(V||this,Y)};
r.prototype.toggleAttribute=function(Y,V){var S=this;arguments.length===3&&(S=arguments[2]);arguments.length==1&&(V=!S.hasAttribute(Y));if(V)return(0,_.xf)(S).setAttribute(Y,""),!0;(0,_.xf)(S).removeAttribute(Y);return!1};
r.prototype.toggleClass=function(Y,V,S){S=S||this;arguments.length==1&&(V=!S.classList.contains(Y));V?S.classList.add(Y):S.classList.remove(Y)};
r.prototype.transform=function(Y,V){V=V||this;V.style.webkitTransform=Y;V.style.transform=Y};
r.prototype.translate3d=function(Y,V,S,h){this.transform("translate3d("+Y+","+V+","+S+")",h||this)};
r.prototype.arrayDelete=function(Y,V){if(Array.isArray(Y)){if(V=Y.indexOf(V),V>=0)return Y.splice(V,1)}else if(V=Vt(this,Y).indexOf(V),V>=0)return this.splice(Y,V,1);return null};
r.prototype._logger=function(Y,V){Array.isArray(V)&&V.length===1&&Array.isArray(V[0])&&(V=V[0]);switch(Y){case "log":case "warn":case "error":console[Y].apply(console,_.Na(V))}};
r.prototype._log=function(){this._logger("log",_.XE.apply(0,arguments))};
r.prototype._warn=function(){this._logger("warn",_.XE.apply(0,arguments))};
r.prototype._error=function(){this._logger("error",_.XE.apply(0,arguments))};
r.prototype._logf=function(Y){return["[%s::%s]",this.is,Y].concat(_.Na(_.XE.apply(1,arguments)))};
_.OC.Object.defineProperties(r.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var Y=(0,_.xf)(this).getRootNode();return Y instanceof DocumentFragment?Y.host:Y}}});
_.OC.Object.defineProperties(r,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return kI8&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],QCc(this.prototype)),this.__observedAttributes):I.call(this).concat("disable-upgrade")}}});
r.prototype.is="";return r});Polymer.FlattenedNodesObserver=GM8;Polymer.DomApi=fxX;Polymer.EventApi=x3;Polymer.dom=_.zI;Polymer.dom.matchesSelector=q_C;Polymer.dom.flush=_.V8;Polymer.dom.addDebouncer=_.IG;Polymer.DirMixin=Vo3;Polymer.RenderStatus={beforeNextRender:_.oUE,afterNextRender:_.UC,flush:function(){for(;Upu.length||KE.length;)yHR(Upu),yHR(KE);v8=!1}};Polymer.LegacyElementMixin=_.d8;var gx8;gx8=Y3._mutablePropertyChange;var axq={properties:{mutableData:Boolean},_shouldPropertyChange:function(r,f,I){return gx8(this,r,f,I,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(r,f,I){return gx8(this,r,f,I,!0)}};
Polymer.OptionalMutableDataBehavior=axq;var acR={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},POw={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Fy$=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},POw),X1T=(0,_.d8)(HTMLElement),p3l=function(r,f){r||console.warn("Polymer.Class requires `info` argument");f=f?f(X1T):X1T;f=tQm(r,f,r.behaviors);f.is=f.prototype.is=
r.is;return f};Polymer.Class=p3l;Polymer.mixinBehaviors=function(r,f){return tQm({},(0,_.d8)(f),r)};
Polymer.GenerateClassFromInfo=tQm;_.wm=function(r){var f=typeof r==="function"?r:_.wm.Class(r);r._legacyForceObservedAttributes&&(f.prototype._legacyForceObservedAttributes=r._legacyForceObservedAttributes);customElements.define(f.is,f);return f};
_.wm.Class=p3l;Polymer._polymerFn=_.wm;var NGs=window.onLegacyPolymerFunctionDefinedCallback;NGs&&NGs();var d5P={templatize:function(r,f){this._templatizerTemplate=r;this.ctor=mF(r,this,{mutableData:!!f,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(r){return new this.ctor(r)},
modelForElement:function(r){return HHB(this._templatizerTemplate,r)}};Polymer.Templatizer=d5P;_.z8=(0,_.d8)(HTMLElement).prototype;Polymer.Base=_.z8;var cFu=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.o6=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.t(_.o6,PolymerFakeBaseClass);var Qt=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.t(Qt,PolymerFakeBaseClass);var WyE=Symbol("Nd"),RBB=[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 $j4=$j4||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},FQ4;(function(r){function f(Z,Cw,rR){var EP=k.get(Z);if(!EP){if(!rR)return;EP=new v;k.set(Z,EP)}Z=EP.get(Cw);if(!Z){if(!rR)return;Z=new v;EP.set(Cw,Z)}return Z}
function I(Z,Cw,rR){if(C(Z,Cw,rR))return!0;Cw=g(Cw);return Cw!==null?I(Z,Cw,rR):!1}
function C(Z,Cw,rR){Cw=f(Cw,rR,!1);return Cw===void 0?!1:!!Cw.has(Z)}
function Y(Z,Cw,rR){if(C(Z,Cw,rR))return V(Z,Cw,rR);Cw=g(Cw);if(Cw!==null)return Y(Z,Cw,rR)}
function V(Z,Cw,rR){Cw=f(Cw,rR,!1);if(Cw!==void 0)return Cw.get(Z)}
function S(Z,Cw){var rR=h(Z,Cw);Z=g(Z);if(Z===null)return rR;var EP=S(Z,Cw);if(EP.length<=0)return rR;if(rR.length<=0)return EP;Cw=new O;Z=[];rR=_.E(rR);for(var Pu=rR.next();!Pu.done;Pu=rR.next())Pu=Pu.value,Cw.has(Pu)||(Cw.add(Pu),Z.push(Pu));rR=_.E(EP);for(EP=rR.next();!EP.done;EP=rR.next())EP=EP.value,Cw.has(EP)||(Cw.add(EP),Z.push(EP));return Z}
function h(Z,Cw){Z=f(Z,Cw,!1);var rR=[];Z&&Z.forEach(function(EP,Pu){return rR.push(Pu)});
return rR}
function w(Z){return Z===void 0}
function n(Z){return typeof Z==="object"?Z!==null:typeof Z==="function"}
function d(Z){return typeof Z==="function"}
function z(Z){return typeof Z==="symbol"?Z:String(Z)}
function g(Z){var Cw=Object.getPrototypeOf(Z);if(typeof Z!=="function"||Z===m||Cw!==m)return Cw;var rR=Object.getPrototypeOf(Z.prototype);if(rR==null||rR===Object.prototype)return Cw;rR=rR.constructor;return typeof rR!=="function"||rR===Z?Cw:rR}
function X(){function Z(){this._keys=[];this._values=[];this._cache=Cw}
var Cw={};Z.prototype={get size(){return this._keys.length},has:function(rR){return rR===this._cache?!0:this._find(rR)>=0?(this._cache=rR,!0):!1},
get:function(rR){var EP=this._find(rR);if(EP>=0)return this._cache=rR,this._values[EP]},
set:function(rR,EP){this.delete(rR);this._keys.push(rR);this._values.push(EP);this._cache=rR;return this},
delete:function(rR){rR=this._find(rR);return rR>=0?(this._keys.splice(rR,1),this._values.splice(rR,1),this._cache=Cw,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=Cw},
forEach:function(rR){for(var EP=this.size,Pu=0;Pu<EP;++Pu){var Wu=this._keys[Pu],cu=this._values[Pu];this._cache=Wu;rR.call(this,cu,Wu,this)}},
_find:function(rR){for(var EP=this._keys,Pu=EP.length,Wu=0;Wu<Pu;++Wu)if(EP[Wu]===rR)return Wu;return-1}};
return Z}
function P(){function Z(){this._map=new v}
Z.prototype={get size(){return this._map.length},has:function(Cw){return this._map.has(Cw)},
add:function(Cw){this._map.set(Cw,Cw);return this},
delete:function(Cw){return this._map.delete(Cw)},
clear:function(){this._map.clear()},
forEach:function(Cw,rR){this._map.forEach(Cw,rR)}};
return Z}
function W(){function Z(){this._key=rR()}
function Cw(iU,oR){for(var vu=0;vu<oR;++vu)iU[vu]=Math.random()*255|0}
function rR(){do{if(Pu)var iU=Pu.randomBytes(16);else typeof Uint8Array==="function"?(iU=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(iU):Cw(iU,16)):(iU=Array(16),Cw(iU,16));iU[6]=iU[6]&79|64;iU[8]=iU[8]&191|128;for(var oR="",vu=0;vu<16;++vu){var wB=iU[vu];if(vu===4||vu===6||vu===8)oR+="-";wB<16&&(oR+="0");oR+=wB.toString(16).toLowerCase()}iU="@@WeakMap@@"+oR}while(Wu.call(cu,iU));cu[iU]=!0;return iU}
function EP(iU,oR){if(!Wu.call(iU,OP)){if(!oR)return;Object.defineProperty(iU,OP,{value:Object.create(null)})}return iU[OP]}
var Pu=typeof global!=="undefined"&&typeof $j4==="object"&&typeof require==="function"&&require("crypto"),Wu=Object.prototype.hasOwnProperty,cu={},OP=rR();Z.prototype={has:function(iU){return(iU=EP(iU,!1))?this._key in iU:!1},
get:function(iU){if(iU=EP(iU,!1))return iU[this._key]},
set:function(iU,oR){EP(iU,!0)[this._key]=oR;return this},
delete:function(iU){return(iU=EP(iU,!1))&&this._key in iU?delete iU[this._key]:!1},
clear:function(){this._key=rR()}};
return Z}
var m=Object.getPrototypeOf(Function),v=typeof Map==="function"?Map:X(),O=typeof Set==="function"?Set:P(),k=new (typeof WeakMap==="function"?WeakMap:W());r.decorate=function(Z,Cw,rR,EP){if(w(EP)){if(w(rR)){if(!Array.isArray(Z))throw new TypeError;if(!d(Cw))throw new TypeError;for(rR=Z.length-1;rR>=0;--rR)if(EP=(0,Z[rR])(Cw),!w(EP)){if(!d(EP))throw new TypeError;Cw=EP}return Cw}if(!Array.isArray(Z))throw new TypeError;if(!n(Cw))throw new TypeError;rR=z(rR);for(EP=Z.length-1;EP>=0;--EP)(0,Z[EP])(Cw,
rR)}else{if(Array.isArray(Z))if(n(Cw)){if(w(rR))throw new TypeError;if(!n(EP))throw new TypeError;}else throw new TypeError;else throw new TypeError;rR=z(rR);for(var Pu=Z.length-1;Pu>=0;--Pu){var Wu=(0,Z[Pu])(Cw,rR,EP);if(!w(Wu)){if(!n(Wu))throw new TypeError;EP=Wu}}return EP}};
r.metadata=function(Z,Cw){return function(rR,EP){if(w(EP)){if(!d(rR))throw new TypeError;f(rR,void 0,!0).set(Z,Cw)}else{if(!n(rR))throw new TypeError;EP=z(EP);f(rR,EP,!0).set(Z,Cw)}}};
r.defineMetadata=function(Z,Cw){var rR;if(n(Cw))w(rR)||(rR=z(rR));else throw new TypeError;f(Cw,rR,!0).set("parameters",Z)};
r.hasMetadata=function(Z,Cw,rR){if(n(Cw))w(rR)||(rR=z(rR));else throw new TypeError;return I(Z,Cw,rR)};
r.hasOwnMetadata=function(Z,Cw,rR){if(n(Cw))w(rR)||(rR=z(rR));else throw new TypeError;return C(Z,Cw,rR)};
r.getMetadata=function(Z,Cw,rR){if(n(Cw))w(rR)||(rR=z(rR));else throw new TypeError;return Y(Z,Cw,rR)};
r.getOwnMetadata=function(Z,Cw,rR){if(n(Cw))w(rR)||(rR=z(rR));else throw new TypeError;return V(Z,Cw,rR)};
r.getMetadataKeys=function(Z,Cw){if(n(Z))w(Cw)||(Cw=z(Cw));else throw new TypeError;return S(Z,Cw)};
r.getOwnMetadataKeys=function(Z,Cw){if(n(Z))w(Cw)||(Cw=z(Cw));else throw new TypeError;return h(Z,Cw)};
r.deleteMetadata=function(Z,Cw,rR){if(n(Cw))w(rR)||(rR=z(rR));else throw new TypeError;var EP=f(Cw,rR,!1);if(!w(EP)){if(!EP.delete(Z))return!1;if(EP.size>0)return!0;Z=k.get(Cw);Z.delete(rR);if(Z.size>0)return!0;k.delete(Cw);return!0}};
(function(Z){if(typeof Z.Reflect!=="undefined"){if(Z.Reflect!==r)for(var Cw in r)Z.Reflect[Cw]=r[Cw]}else Z.Reflect=r})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(FQ4||(FQ4={}));var sOl=self;var PXs=[0,_.sv,_.oJ,_.sv];var to4=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(to4,_.Kj);var TGX=_.D$(to4,[0,_.t6R,_.QF,PXs,_.oJ,_.Zn]);_.rh(_.Aq,_.Mu);_.l=_.Aq.prototype;_.l.start=function(){this.stop();this.usingListeners_=!1;var r=cQX(this),f=WQU(this);r&&!f&&this.JSC$9118_win_.mozRequestAnimationFrame?(this.JSC$9118_id_=_.S$(this.JSC$9118_win_,"MozBeforePaint",this.callback_),this.JSC$9118_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9118_id_=r&&f?r.call(this.JSC$9118_win_,this.callback_):this.JSC$9118_win_.setTimeout(mTD(this.callback_),20)};
_.l.stop=function(){if(this.isActive()){var r=cQX(this),f=WQU(this);r&&!f&&this.JSC$9118_win_.mozRequestAnimationFrame?lT(this.JSC$9118_id_):r&&f?f.call(this.JSC$9118_win_,this.JSC$9118_id_):this.JSC$9118_win_.clearTimeout(this.JSC$9118_id_)}this.JSC$9118_id_=null};
_.l.fire=function(){this.stop();this.JSC$9120_doAction_()};
_.l.isActive=function(){return this.JSC$9118_id_!=null};
_.l.JSC$9120_doAction_=function(){this.usingListeners_&&this.JSC$9118_id_&&lT(this.JSC$9118_id_);this.JSC$9118_id_=null;this.JSC$9118_listener_.call(this.handler_,_.Dc())};
_.l.disposeInternal=function(){this.stop();_.Aq.superClass_.disposeInternal.call(this)};
var cQX=function(r){r=r.JSC$9118_win_;return r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.oRequestAnimationFrame||r.msRequestAnimationFrame||null},WQU=function(r){r=r.JSC$9118_win_;
return r.cancelAnimationFrame||r.cancelRequestAnimationFrame||r.webkitCancelRequestAnimationFrame||r.mozCancelRequestAnimationFrame||r.oCancelRequestAnimationFrame||r.msCancelRequestAnimationFrame||null};_.Gk=function(r,f,I){_.Mu.call(this);this.JSC$9121_listener_=I!=null?r.bind(I):r;this.JSC$9121_interval_=f;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9121_timer_=null};
_.t(_.Gk,_.Mu);_.l=_.Gk.prototype;_.l.fire=function(r){this.args_=arguments;this.JSC$9121_timer_||this.pauseCount_?this.shouldFire_=!0:LQC(this)};
_.l.stop=function(){this.JSC$9121_timer_&&(_.Yq.clearTimeout(this.JSC$9121_timer_),this.JSC$9121_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.l.pause=function(){this.pauseCount_++};
_.l.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9121_timer_||(this.shouldFire_=!1,LQC(this))};
_.l.disposeInternal=function(){_.Mu.prototype.disposeInternal.call(this);this.stop()};
var LQC=function(r){r.JSC$9121_timer_=NK(function(){r.JSC$9121_timer_=null;r.shouldFire_&&!r.pauseCount_&&(r.shouldFire_=!1,LQC(r))},r.JSC$9121_interval_);
var f=r.args_;r.args_=null;r.JSC$9121_listener_.apply(null,f)};var mj8=function(r,f){this.childIterator_=r[_.Yq.Symbol.iterator]();this.mapFn_=f};
mj8.prototype[Symbol.iterator]=function(){return this};
mj8.prototype.next=function(){var r=this.childIterator_.next();return{value:r.done?void 0:this.mapFn_.call(void 0,r.value),done:r.done}};
var ek8=function(r,f){return new mj8(r,f)};var JQU={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 L$q=function(r){var f=jrC(r);if(!f)throw Error("Rd`"+r);return f},jrC=function(r){var f={};
r=String(r);var I=r.charAt(0)=="#"?r:"#"+r;if(H2B.test(I))return f.hex=PtK(I),f.type="hex",f;I=jiK(r);return I.length?(f.hex=lL$(I[0],I[1],I[2]),f.type="rgb",f):JQU&&(r=JQU[r.toLowerCase()])?(f.hex=r,f.type="named",f):null},i2X=/#(.)(.)(.)/,PtK=function(r){if(!H2B.test(r))throw Error("Td`"+r);
r.length==4&&(r=r.replace(i2X,"#$1$1$2$2$3$3"));return r.toLowerCase()},mD$=function(r){r=PtK(r);
r=parseInt(r.slice(1),16);return[r>>16,r>>8&255,r&255]},lL$=function(r,f,I){r=Number(r);
f=Number(f);I=Number(I);if(r!=(r&255)||f!=(f&255)||I!=(I&255))throw Error("Ud`"+r+"`"+f+"`"+I);f=r<<16|f<<8|I;return r<16?"#"+(16777216|f).toString(16).slice(1):"#"+f.toString(16)},H2B=/^#(?:[0-9a-f]{3}){1,2}$/i,Rk4=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,jiK=function(r){var f=r.match(Rk4);
if(f){r=Number(f[1]);var I=Number(f[2]);f=Number(f[3]);if(r>=0&&r<=255&&I>=0&&I<=255&&f>=0&&f<=255)return[r,I,f]}return[]};var vxV={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},aV=vxV;aV=vxV;var BH$,KQC,yQU;BH$=function(r,f){switch(f){case 1:return r%4!=0||r%100==0&&r%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
KQC=function(r,f,I,C,Y){r=new Date(r,f,I);Y=Y||0;return r.valueOf()+(((C!==void 0?C:3)-Y+7)%7-((r.getDay()+6)%7-Y+7)%7)*864E5};
_.MX=function(r,f,I){typeof r==="number"?(this.date=yQU(r,f||0,I||1),Ujs(this,I||1)):_.lV(r)?(this.date=yQU(r.getFullYear(),r.getMonth(),r.getDate()),Ujs(this,r.getDate())):(this.date=new Date(_.Dc()),r=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Ujs(this,r))};
yQU=function(r,f,I){f=new Date(r,f,I);r>=0&&r<100&&f.setFullYear(f.getFullYear()-1900);return f};
_.l=_.MX.prototype;_.l.firstDayOfWeek_=aV.FIRSTDAYOFWEEK;_.l.firstWeekCutOffDay_=aV.FIRSTWEEKCUTOFFDAY;_.l.clone=function(){var r=new _.MX(this.date);r.firstDayOfWeek_=this.firstDayOfWeek_;r.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return r};
_.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(r){this.date=new Date(r.getFullYear(),r.getMonth(),r.getDate())};
_.l.setFullYear=function(r){this.date.setFullYear(r)};
_.l.setYear=function(r){this.setFullYear(r)};
_.l.setMonth=function(r){this.date.setMonth(r)};
_.l.setDate=function(r){this.date.setDate(r)};
_.l.setTime=function(r){this.date.setTime(r)};
_.l.setUTCFullYear=function(r){this.date.setUTCFullYear(r)};
_.l.setUTCMonth=function(r){this.date.setUTCMonth(r)};
_.l.setUTCDate=function(r){this.date.setUTCDate(r)};
_.l.add=function(r){if(r.years||r.months){var f=this.getMonth()+r.months+r.years*12,I=this.getYear()+Math.floor(f/12);f%=12;f<0&&(f+=12);var C=Math.min(BH$(I,f),this.getDate());this.setDate(1);this.setFullYear(I);this.setMonth(f);this.setDate(C)}r.days&&(I=this.getYear(),f=I>=0&&I<=99?-1900:0,r=new Date((new Date(I,this.getMonth(),this.getDate(),12)).getTime()+r.days*864E5),this.setDate(1),this.setFullYear(r.getFullYear()+f),this.setMonth(r.getMonth()),this.setDate(r.getDate()),Ujs(this,r.getDate()))};
_.l.JSC$9134_toIsoString=function(r){var f=this.getFullYear(),I=f<0?"-":f>=1E4?"+":"";return[I+_.Dn(Math.abs(f),I?6:4),_.Dn(this.getMonth()+1,2),_.Dn(this.getDate(),2)].join(r?"-":"")};
_.l.equals=function(r){return!(!r||this.getYear()!=r.getYear()||this.getMonth()!=r.getMonth()||this.getDate()!=r.getDate())};
_.l.toString=function(){return this.JSC$9134_toIsoString()};
var Ujs=function(r,f){r.getDate()!=f&&r.date.setUTCHours(r.date.getUTCHours()+(r.getDate()<f?1:-1))};
_.MX.prototype.valueOf=function(){return this.date.valueOf()};var aG=function(r,f,I,C,Y){this.reversed=!!f;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!I;r&&g8(this,r,C);this.depth=Y!=void 0?Y:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.rh(aG,rf);var g8=function(r,f,I,C){if(r.node=f)r.tagType=typeof I==="number"?I:r.node.nodeType!=1?0:r.reversed?-1:1;typeof C==="number"&&(r.depth=C)};
_.l=aG.prototype;_.l.JSC$9149_copyFrom=function(r){this.node=r.node;this.tagType=r.tagType;this.depth=r.depth;this.reversed=r.reversed;this.constrained=r.constrained};
_.l.clone=function(){return new aG(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 fV;var r=this.node;var f=this.reversed?-1:1;if(this.tagType==f){var I=this.reversed?r.lastChild:r.firstChild;I?g8(this,I):g8(this,r,f*-1)}else(I=this.reversed?r.previousSibling:r.nextSibling)?g8(this,I):g8(this,r.parentNode,f*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(r=this.node)?Ij(r):fV};
_.l.equals=function(r){return r.node==this.node&&(!this.node||r.tagType==this.tagType)};
_.l.splice=function(r){var f=this.node,I=this.reversed?1:-1;this.tagType==I&&(this.tagType=I*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;aG.prototype.next.call(this);this.reversed=!this.reversed;I=_.ID(arguments[0])?arguments[0]:arguments;for(var C=I.length-1;C>=0;C--)_.cY(I[C],f);_.bE(f)};var srC=function(){},Xq=function(r){for(var f=[],I=r.getTextRangeCount(),C=0;C<I;C++)f.push(r.getTextRange(C));
return f};
srC.prototype.isReversed=function(){return!1};
srC.prototype.getWindow=function(){return Pk(_.TZ(this.JSC$9151_getStartNode()))};
var O28=function(r,f){aG.call(this,r,f,!0)};
_.rh(O28,aG);var NX=function(r,f,I,C,Y){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!Y;if(r){this.startNode_=r;this.startOffset_=f;this.endNode_=I;this.endOffset_=C;if(r.nodeType==1&&r.tagName!="BR")if(r=r.childNodes,f=r[f])this.startNode_=f,this.startOffset_=0;else{r.length&&(this.startNode_=_.Kw(r));var V=!0}I.nodeType==1&&((this.endNode_=I.childNodes[C])?this.endOffset_=0:this.endNode_=I)}aG.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);V&&this.next()};
_.rh(NX,O28);_.l=NX.prototype;_.l.JSC$9157_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()?fV:NX.superClass_.next.call(this)};
_.l.JSC$9149_copyFrom=function(r){this.startNode_=r.startNode_;this.endNode_=r.endNode_;this.startOffset_=r.startOffset_;this.endOffset_=r.endOffset_;this.isReversed_=r.isReversed_;NX.superClass_.JSC$9149_copyFrom.call(this,r)};
_.l.clone=function(){var r=new NX(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);r.JSC$9149_copyFrom(this);return r};var oxX=function(){};
oxX.prototype.__iterator__=function(){return new NX(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var $3=function(r){this.range_=r};
_.rh($3,oxX);var QrX=function(r){var f=_.TZ(r).createRange();if(r.nodeType==3)f.setStart(r,0),f.setEnd(r,r.length);else if(PY(r)||r.nodeType==3){for(var I,C=r;(I=C.firstChild)&&(PY(I)||I.nodeType==3);)C=I;f.setStart(C,0);for(C=r;(I=C.lastChild)&&(PY(I)||I.nodeType==3);)C=I;f.setEnd(C,C.nodeType==1?C.childNodes.length:C.length)}else I=r.parentNode,r=Array.prototype.indexOf.call(I.childNodes,r),f.setStart(I,r),f.setEnd(I,r+1);return f},AQ_=function(r,f,I,C){var Y=_.TZ(r).createRange();
Y.setStart(r,f);Y.setEnd(I,C);return Y};
_.l=$3.prototype;_.l.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.l.getContainer=function(){return this.range_.commonAncestorContainer};
_.l.compareBrowserRangeEndpoints=function(r,f,I){return this.range_.compareBoundaryPoints(I==1?f==1?_.Yq.Range.START_TO_START:_.Yq.Range.START_TO_END:f==1?_.Yq.Range.END_TO_START:_.Yq.Range.END_TO_END,r)};
_.l.isCollapsed=function(){return this.range_.collapsed};
_.l.select=function(r){this.selectInternal(Pk(_.TZ(this.range_.startContainer)).getSelection(),r)};
_.l.selectInternal=function(r){r.removeAllRanges();r.addRange(this.range_)};
_.l.insertNode=function(r,f){var I=this.range_.cloneRange();I.collapse(f);I.insertNode(r);I.detach();return r};
_.l.collapse=function(r){this.range_.collapse(r)};_.rh(Zm,$3);Zm.prototype.selectInternal=function(r,f){!f||this.isCollapsed()?Zm.superClass_.selectInternal.call(this,r,f):(r.collapse(this.range_.endContainer,this.range_.endOffset),r.extend(this.range_.startContainer,this.range_.startOffset))};_.rh(G5,$3);G5.prototype.compareBrowserRangeEndpoints=function(r,f,I){return G5.superClass_.compareBrowserRangeEndpoints.call(this,r,f,I)};
G5.prototype.selectInternal=function(r,f){f?r.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):r.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Z2s=function(r){return _.VF?new G5(r):_.lf?new Zm(r):new $3(r)};var Fq=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},G3D;
_.rh(Fq,srC);G3D=function(r,f){var I=new Fq;I.browserRangeWrapper_=r;I.isReversed_=!!f;return I};
_.k3B=function(r){r=_.VF?new G5(QrX(r)):_.lf?new Zm(QrX(r)):new $3(QrX(r));return G3D(r)};
_.PK=function(r,f,I,C){var Y=new Fq;Y.isReversed_=BGg(r,f,I,C);if(_.Uj(r)&&!PY(r)){var V=r.parentNode;f=Array.prototype.indexOf.call(V.childNodes,r);r=V}_.Uj(I)&&!PY(I)&&(V=I.parentNode,C=Array.prototype.indexOf.call(V.childNodes,I),I=V);Y.isReversed_?(Y.startNode_=I,Y.startOffset_=C,Y.endNode_=r,Y.endOffset_=f):(Y.startNode_=r,Y.startOffset_=f,Y.endNode_=I,Y.endOffset_=C);return Y};
_.l=Fq.prototype;_.l.clone=function(){var r=new Fq;r.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();r.startNode_=this.startNode_;r.startOffset_=this.startOffset_;r.endNode_=this.endNode_;r.endOffset_=this.endOffset_;r.isReversed_=this.isReversed_;return r};
_.l.JSC$9151_getType=function(){return"text"};
_.l.getBrowserRangeObject=function(){return th(this).range_};
_.l.getTextRangeCount=function(){return 1};
_.l.getTextRange=function(){return this};
var th=function(r){var f;if(!(f=r.browserRangeWrapper_)){f=r.JSC$9151_getStartNode();var I=r.JSC$9151_getStartOffset(),C=r.JSC$9151_getEndNode(),Y=r.JSC$9151_getEndOffset();f=_.VF?new G5(AQ_(f,I,C,Y)):_.lf?new Zm(AQ_(f,I,C,Y)):new $3(AQ_(f,I,C,Y));f=r.browserRangeWrapper_=f}return f};
_.l=Fq.prototype;_.l.getContainer=function(){return th(this).getContainer()};
_.l.JSC$9151_getStartNode=function(){return this.startNode_||(this.startNode_=th(this).range_.startContainer)};
_.l.JSC$9151_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=th(this).range_.startOffset};
_.l.JSC$9151_getEndNode=function(){return this.endNode_||(this.endNode_=th(this).range_.endContainer)};
_.l.JSC$9151_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=th(this).range_.endOffset};
_.l.isReversed=function(){return this.isReversed_};
_.l.JSC$9151_containsRange=function(r,f){if(r.JSC$9151_getType()=="text"){var I=th(this);r=th(r);f=f&&!r.isCollapsed();r=r.range_;I=f?I.compareBrowserRangeEndpoints(r,0,1)>=0&&I.compareBrowserRangeEndpoints(r,1,0)<=0:I.compareBrowserRangeEndpoints(r,0,0)>=0&&I.compareBrowserRangeEndpoints(r,1,1)<=0}else I=!1;return I};
_.l.isCollapsed=function(){return th(this).isCollapsed()};
_.l.JSC$9151_getText=function(){return th(this).range_.toString()};
_.l.__iterator__=function(){return new NX(this.JSC$9151_getStartNode(),this.JSC$9151_getStartOffset(),this.JSC$9151_getEndNode(),this.JSC$9151_getEndOffset())};
_.l.select=function(){th(this).select(this.isReversed_)};
_.l.JSC$9151_removeContents=function(){var r=th(this).range_;r.extractContents();if(r.startContainer.hasChildNodes()&&(r=r.startContainer.childNodes[r.startOffset])){var f=r.previousSibling;W68(r)==""&&_.bE(r);f&&W68(f)==""&&_.bE(f)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.l.insertNode=function(r,f){r=th(this).insertNode(r,f);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return r};
_.l.collapse=function(r){r=this.isReversed()?!r:r;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(r);r?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var qrs=function(){};
_.rh(qrs,srC);qrs.prototype.JSC$9151_containsRange=function(r,f){var I=Xq(this);r=Xq(r);return(f?vW:_.VWU)(r,function(C){return vW(I,function(Y){return Y.JSC$9151_containsRange(C,f)})})};
qrs.prototype.insertNode=function(r,f){f?_.T1(r,this.JSC$9151_getStartNode()):_.cY(r,this.JSC$9151_getEndNode());return r};var uN4,DjC=ho().JSC$7225_document_.documentElement;uN4=DjC.requestFullscreen?"fullscreenchange":DjC.webkitRequestFullscreen?"webkitfullscreenchange":DjC.mozRequestFullScreen?"mozfullscreenchange":DjC.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var rNV=function(){var r=ho().JSC$7225_document_;return!!(r.webkitIsFullScreen||r.mozFullScreen||r.msFullscreenElement||r.fullscreenElement)};var T8=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.rh(T8,qrs);_.l=T8.prototype;_.l.clone=function(){var r=new T8;r.browserRanges_=_.f8(this.browserRanges_);return r};
_.l.JSC$9151_getType=function(){return"mutli"};
_.l.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.l.getTextRangeCount=function(){return this.browserRanges_.length};
_.l.getTextRange=function(r){this.ranges_[r]||(this.ranges_[r]=G3D(Z2s(this.browserRanges_[r])));return this.ranges_[r]};
_.l.getContainer=function(){if(!this.container_){for(var r=[],f=this.getTextRangeCount(),I=0;I<f;I++)r.push(this.getTextRange(I).getContainer());this.container_=Ns4.apply(null,r)}return this.container_};
var cK=function(r){r.sortedRanges_||(r.sortedRanges_=Xq(r),r.sortedRanges_.sort(function(f,I){var C=f.JSC$9151_getStartNode();f=f.JSC$9151_getStartOffset();var Y=I.JSC$9151_getStartNode();I=I.JSC$9151_getStartOffset();return C==Y&&f==I?0:BGg(C,f,Y,I)?1:-1}));
return r.sortedRanges_};
_.l=T8.prototype;_.l.JSC$9151_getStartNode=function(){return cK(this)[0].JSC$9151_getStartNode()};
_.l.JSC$9151_getStartOffset=function(){return cK(this)[0].JSC$9151_getStartOffset()};
_.l.JSC$9151_getEndNode=function(){return _.Kw(cK(this)).JSC$9151_getEndNode()};
_.l.JSC$9151_getEndOffset=function(){return _.Kw(cK(this)).JSC$9151_getEndOffset()};
_.l.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.l.JSC$9151_getText=function(){return Xq(this).map(function(r){return r.JSC$9151_getText()}).join("")};
_.l.__iterator__=function(){return new WK(this)};
_.l.select=function(){var r=this.getWindow().getSelection();r.removeAllRanges();for(var f=this.getTextRangeCount(),I=0;I<f;I++)r.addRange(this.getTextRange(I).getBrowserRangeObject())};
_.l.JSC$9151_removeContents=function(){Xq(this).forEach(function(r){r.JSC$9151_removeContents()})};
_.l.collapse=function(r){if(!this.isCollapsed()){var f=r?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;f.collapse(r);this.ranges_=[f];this.sortedRanges_=[f];this.browserRanges_=[f.getBrowserRangeObject()]}};
var WK=function(r){this.iterators_=null;this.currentIdx_=0;r&&(this.iterators_=cK(r).map(function(f){return _.Mqg(f)}));
aG.call(this,r?this.JSC$9157_getStartNode():null,!1,!0)};
_.rh(WK,O28);_.l=WK.prototype;_.l.JSC$9157_getStartNode=function(){return this.iterators_[0].JSC$9157_getStartNode()};
_.l.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.l.next=function(){for(;this.currentIdx_<this.iterators_.length;){var r=this.iterators_[this.currentIdx_],f=r.next();if(f.done)this.currentIdx_++;else return g8(this,r.node,r.tagType,r.depth),f}return fV};
_.l.JSC$9149_copyFrom=function(r){this.iterators_=_.f8(r.iterators_);WK.superClass_.JSC$9149_copyFrom.call(this,r)};
_.l.clone=function(){var r=new WK(null);r.JSC$9149_copyFrom(this);return r};var fh4,BGg;_.nH=function(){var r=window.getSelection();return r&&fh4(r)};
fh4=function(r){var f=!1;if(r.createRange)try{var I=r.createRange()}catch(Y){return null}else if(r.rangeCount){if(r.rangeCount>1){I=new T8;f=r.rangeCount;for(var C=0;C<f;C++)I.browserRanges_.push(r.getRangeAt(C));return I}I=r.getRangeAt(0);f=BGg(r.anchorNode,r.anchorOffset,r.focusNode,r.focusOffset)}else return null;return G3D(Z2s(I),f)};
_.L6=function(r,f){return _.PK(r,f,r,f)};
_.mm=function(r,f,I,C){return _.PK(r,f,I,C)};
BGg=function(r,f,I,C){if(r==I)return C<f;var Y;if(r.nodeType==1&&f)if(Y=r.childNodes[f])r=Y,f=0;else if(_.e4(r,I))return!0;if(I.nodeType==1&&C)if(Y=I.childNodes[C])I=Y,C=0;else if(_.e4(I,r))return!1;return(XBs(r,I)||f-C)>0};var er=function(){_.zh.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.gL)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.gL)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.gL)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.gL)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.gL)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.gL)(this.dispatchProgressEvent_,this)};
_.rh(er,_.zh);er.prototype.abort=function(){try{this.reader_.abort()}catch(r){throw new $4T(r,"aborting read");}};
er.prototype.getError=function(){return this.reader_.error&&new $4T(this.reader_.error,"reading file")};
er.prototype.dispatchProgressEvent_=function(r){this.dispatchEvent(new F83(r,this))};
er.prototype.disposeInternal=function(){er.superClass_.disposeInternal.call(this);delete this.reader_};
var CA4=function(r){var f=new er,I=Ih3(f);f.reader_.readAsArrayBuffer(r);return I},Yiq=function(r){var f=new er,I=Ih3(f);
f.reader_.readAsDataURL(r);return I},Ih3=function(r){var f=new yh;
r.listen("loadend",_.S_(function(I,C){var Y=C.reader_.result,V=C.getError();Y==null||V?I.errback(V):I.callback(Y);C.dispose()},f,r));
return f};var Jh=function(){_.zh.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9191_eventHandler_=new _.B8(this);this.JSC$9191_isInitialized_=!1};
_.rh(Jh,_.zh);var lhB=new _.hA("d"),Vl3=new _.hA("beforedragstart"),EOX=new _.hA("dragstart"),SiX=new _.hA("beforedragmove"),xGq=new _.hA("dragmove"),hE3=new _.hA("beforedragend"),wt4=new _.hA("dragend"),bJq=new _.hA("e");Jh.prototype.isDragging=function(){return!!this.JSC$9191_dragger_};
var ptC=function(r,f){f.dlgGrowthDirection_=0;f.dlgDragHoverClass_=void 0;f.dlgDragPermission=0;r.dragLists_.push(f)},nOg=function(r,f){r.getHandleForDragItem_=f};
Jh.prototype.init=function(){if(!this.JSC$9191_isInitialized_){for(var r=this.dragLists_.length,f=0;f<r;f++)for(var I=_.WY(this.dragLists_[f]),C=I.length,Y=0;Y<C;++Y){var V=I[Y],S=this.getHandleForDragItem_(V),h=_.S3(S);this.dragItemForHandle_[h]=V;this.dragItemHoverClasses_&&(this.JSC$9191_eventHandler_.listen(V,"mouseover",this.handleDragItemMouseover_),this.JSC$9191_eventHandler_.listen(V,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9191_eventHandler_.listen(S,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9191_eventHandler_.listen(S,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(V);this.JSC$9191_eventHandler_.listen(S,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9191_isInitialized_=!0}};
Jh.prototype.disposeInternal=function(){this.JSC$9191_eventHandler_.dispose();for(var r=this.dragLists_.length,f=0;f<r;f++){var I=this.dragLists_[f];I.dlgGrowthDirection_=void 0;I.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;dG8(this);Jh.superClass_.disposeInternal.call(this)};
var zE4=function(r,f){for(var I=r.dragLists_.length,C=0;C<I;C++){var Y=r.dragLists_[C];Y.dlgBounds_=OGU(Y)}I=r.dragItems_.length;for(C=0;C<I;C++)Y=r.dragItems_[C],Y!=f&&(Y.dlgBounds_=OGU(Y))};
_.l=Jh.prototype;
_.l.handlePotentialDragStart_=function(r){var f=_.S3(r.currentTarget);f=this.dragItemForHandle_[f];if(f.parentElement.dlgDragPermission!=2){this.currDragItem_=f;a:{f=this.currDragItem_;for(var I=f.cloneNode(!0),C=pX("TEXTAREA",f),Y=pX("TEXTAREA",I),V=0;V<C.length;V++)Y[V].value=C[V].value;switch(f.tagName){case "TR":f=_.$2("TABLE",null,_.$2("TBODY",null,I));break a;case "TD":case "TH":f=_.$2("TABLE",null,_.$2("TBODY",null,_.$2("TR",null,I)));break a;case "TEXTAREA":I.value=f.value;default:f=I;break a}f=
void 0}this.draggerEl_=f;this.draggerElClasses_&&v7(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.TZ(this.currDragItem_).body.appendChild(this.draggerEl_);I=_.Wk(this.currDragItem_);f=this.draggerEl_;C=_.Wk(f);if(I instanceof _.F0){var S=I.y;I=I.x}j2(f,f.offsetLeft+(I-C.x),f.offsetTop+(Number(S)-C.y));this.JSC$9191_dragger_=new _.em(this.draggerEl_);_.NlX(this.JSC$9191_dragger_,this.hysteresisDistance_);
_.S$(this.JSC$9191_dragger_,"start",this.handleDragStart_,!1,this);_.S$(this.JSC$9191_dragger_,"end",this.handleDragEnd_,!1,this);_.S$(this.JSC$9191_dragger_,"earlycancel",this.JSC$9193_cleanup_,!1,this);this.dispatchEvent(new jr(lhB,this,r,this.currDragItem_,this.draggerEl_,this.JSC$9191_dragger_));this.JSC$9191_dragger_.startDrag(r)}};
_.l.handleDragStart_=function(r){if(this.dispatchEvent(new jr(Vl3,this,r.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.Mdq(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?v7(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var f=HqX(this.draggerEl_);this.draggerEl_.halfWidth=f.width/2;this.draggerEl_.halfHeight=f.height/2;f=this.draggerEl_.getBoundingClientRect();
var I=r.clientY,C=$Ug(this.JSC$9191_dragger_,r.clientX);if(C>f.right){var Y=this.currDragItem_.getBoundingClientRect();this.JSC$9191_dragger_.deltaX=C-(C-Y.left)/Y.width*f.width}I=FMs(this.JSC$9191_dragger_,I);I>f.bottom&&(this.JSC$9191_dragger_.deltaY+=I-f.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";zE4(this,this.currDragItem_);this.currDragItem_.style.display="";_.S$(this.JSC$9191_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new jr(EOX,
this,r.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9191_dragger_))}else r.preventDefault(),this.JSC$9193_cleanup_()};
_.l.handleDragMove_=function(r){var f=_.Wk(this.draggerEl_);f=new _.F0(f.x+this.draggerEl_.halfWidth,f.y+this.draggerEl_.halfHeight);a:{var I=null;if(this.currDragItem_.style.display!="none"){I=this.currDragItem_.parentNode;var C=OGU(I);if(MlX(f,C))break a}C=this.dragLists_.length;for(var Y=0;Y<C;Y++){var V=this.dragLists_[Y];if(V!=I&&MlX(f,V.dlgBounds_)){I=V;break a}}I=null}if(I){if(I==null)throw Error("Vd");C=0;Y=!1;V=void 0;switch(I.dlgGrowthDirection_){case 0:C=f.y;var S=gOD;var h=ahC;break;case 4:Y=
!0;case 2:C=f.x;S=Xt3;h=ahC;break;case 5:Y=!0;case 3:C=f.x,S=N_X,h=$GU}for(var w=null,n,d=_.WY(I),z=d.length,g=0;g<z;g++){var X=d[g];if(X!=this.currDragItem_){var P=S(X.dlgBounds_);if(Y){var W=F44(X,f);V===void 0&&(V=W);h(C,P)&&(n==void 0||W<V||W==V&&(h(P,n)||P==n))&&(w=X,n=P);W<V&&(V=W)}else h(C,P)&&(n==void 0||h(P,n))&&(w=X,n=P)}}S=w!==null&&F44(w,f)>V?null:w}else S=null;if(!this.dispatchEvent(new jr(SiX,this,r,this.currDragItem_,this.draggerEl_,this.JSC$9191_dragger_,f,I,S)))return!1;if(I&&I.dlgDragPermission!=
1)this.currDragItem_.parentNode==I&&_.Mdq(this.currDragItem_)==S||I.insertBefore(this.currDragItem_,S),this.currDragItem_.style.display="",I.dlgDragHoverClass_&&_.j$(I,I.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",h=this.dragLists_.length,n=0;n<h;n++)C=this.dragLists_[n],C.dlgDragHoverClass_&&_.e$(C,C.dlgDragHoverClass_);I!=this.currHoverList_&&(this.currHoverList_=I,zE4(this,this.currDragItem_));this.dispatchEvent(new jr(xGq,this,r,this.currDragItem_,this.draggerEl_,this.JSC$9191_dragger_,
f,I,S));return!1};
_.l.JSC$9193_cleanup_=function(){dG8(this);this.JSC$9191_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var r=this.dragLists_.length,f=0;f<r;f++)this.dragLists_[f].dlgBounds_=null;r=this.dragItems_.length;for(f=0;f<r;f++)this.dragItems_[f].dlgBounds_=null};
_.l.handleDragEnd_=function(r){if(!this.dispatchEvent(new jr(hE3,this,r,this.currDragItem_,this.draggerEl_,this.JSC$9191_dragger_)))return!1;dG8(this);this.dispatchEvent(new jr(wt4,this,r,this.currDragItem_,this.draggerEl_,this.JSC$9191_dragger_));this.JSC$9193_cleanup_();return!0};
var dG8=function(r){_.Z8(r.JSC$9191_dragger_);var f=r.draggerEl_&&r.draggerEl_.parentElement;r.draggerEl_&&_.bE(r.draggerEl_);r.currDragItem_&&r.currDragItem_.style.display=="none"&&(r.origList_.insertBefore(r.currDragItem_,r.origNextItem_),r.currDragItem_.style.display="");r.currDragItemClasses_&&r.currDragItem_?$uX(r.currDragItem_,r.currDragItemClasses_||[]):r.currDragItem_&&(r.currDragItem_.style.visibility="");for(var I=r.dragLists_.length,C=0;C<I;C++){var Y=r.dragLists_[C];Y.dlgDragHoverClass_&&
_.e$(Y,Y.dlgDragHoverClass_)}f&&r.dispatchEvent(new jr(bJq,r,null,r.currDragItem_,r.draggerEl_,r.JSC$9191_dragger_))};
_.l=Jh.prototype;_.l.getHandleForDragItem_=function(r){return r};
_.l.handleDragItemMouseover_=function(r){v7(r.currentTarget,this.dragItemHoverClasses_||[])};
_.l.handleDragItemMouseout_=function(r){$uX(r.currentTarget,this.dragItemHoverClasses_||[])};
_.l.handleDragItemHandleMouseover_=function(r){v7(r.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.l.handleDragItemHandleMouseout_=function(r){$uX(r.currentTarget,this.dragItemHandleHoverClasses_||[])};
var MlX=function(r,f){return r.x>f.left&&r.x<f.left+f.width&&r.y>f.top&&r.y<f.top+f.height},F44=function(r,f){r=r.dlgBounds_;
return Math.abs(f.y-(r.top+(r.height-1)/2))},gOD=function(r){return r.top+r.height-1},Xt3=function(r){return r.left+r.width-1},N_X=function(r){return r.left||0},ahC=function(r,f){return r<f},$GU=function(r,f){return r>f},jr=function(r,f,I,C,Y,V){_.wi.call(this,r);
this.event=I;this.currDragItem=C;this.draggerEl=Y;this.JSC$9195_dragger=V};
_.rh(jr,_.wi);_.rh(q7,_.Mu);var PAg=new _.F0(0,0);q7.prototype.JSC$9199_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
q7.prototype.JSC$9199_onMouseMove=function(r){var f=this.containerIsActuallyContent_?PAg:xX(ho(this.containerNode_)),I=this.horizontalScrolling_?this.calculateScrollDelta(r.clientX+f.x,this.scrollBounds_.left,this.scrollBounds_.width):0,C=this.calculateScrollDelta(r.clientY+f.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=I;this.scrollDelta_.y=C;!(I=!I&&!C)&&(I=this.constrainScroll_)&&(I=r.clientX+f.x,r=r.clientY+f.y,f=this.containerBounds_,I=!(f.left<=I&&f.left+f.width>=
I&&f.top<=r&&f.top+f.height>=r));I?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
q7.prototype.calculateScrollDelta=function(r,f,I){var C=0;r<f?C=-8:r>f+I&&(C=8);return C};
q7.prototype.disposeInternal=function(){q7.superClass_.disposeInternal.call(this);this.JSC$9197_eventHandler_.dispose();this.scrollTimer_.dispose()};var tlU={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"}}},HK=tlU;HK=tlU;var iC={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 T_D=function(){},eo=function(r){if(typeof r=="number"){var f=new T_D;
f.standardOffset_=r;var I=r;if(I==0)I="Etc/GMT";else{var C=["Etc/GMT",I<0?"-":"+"];I=Math.abs(I);C.push(Math.floor(I/60)%100);I%=60;I!=0&&C.push(":",_.Dn(I,2));I=C.join("")}f.timeZoneId_=I;I=r;I==0?I="UTC":(C=["UTC",I<0?"+":"-"],I=Math.abs(I),C.push(Math.floor(I/60)%100),I%=60,I!=0&&C.push(":",I),I=C.join(""));r=cN4(r);f.tzNames_=[I,I];f.tzNamesExt_={STD_LONG_NAME_GMT:r,STD_GENERIC_LOCATION:r};f.transitions_=[];return f}f=new T_D;f.timeZoneId_=r.id;f.standardOffset_=-r.std_offset;f.tzNames_=r.names;
f.tzNamesExt_=r.names_ext;f.transitions_=r.transitions;return f},cN4=function(r){var f=["GMT"];
f.push(r<=0?"+":"-");r=Math.abs(r);f.push(_.Dn(Math.floor(r/60)%100,2),":",_.Dn(r%60,2));return f.join("")},W43=function(r,f){f=Date.UTC(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate(),f.getUTCHours(),f.getUTCMinutes())/36E5;
for(var I=0;I<r.transitions_.length&&f>=r.transitions_[I];)I+=2;return I==0?0:r.transitions_[I-1]},L44=function(r,f){r=r.standardOffset_-W43(r,f);
return r===-1440?0:r};var JQ=function(r,f){this.patternParts_=[];this.JSC$9210_dateTimeSymbols_=f||aV;typeof r=="number"?mG4(this,r):eET(this,r)},JNV=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],RG=function(r){return r.getHours?r.getHours():0},eET=function(r,f){for(pPE&&(f=f.replace(/\u200f/g,""));f;){for(var I=f,C=0;C<JNV.length;++C){var Y=f.match(JNV[C]);
if(Y){var V=Y[0];f=f.substring(V.length);C==0&&(V=="''"?V="'":(V=V.substring(1,Y[1]=="'"?V.length-1:V.length),V=V.replace(/''/g,"'")));r.patternParts_.push({text:V,type:C});break}}if(I===f)throw Error("Wd`"+f);}};
JQ.prototype.format=function(r,f){if(!r)throw Error("Xd");var I=f?(r.getTimezoneOffset()-L44(f,r))*6E4:0,C=I?new Date(r.getTime()+I):r,Y=C;f&&C.getTimezoneOffset()!=r.getTimezoneOffset()&&(C=new Date(C.getTime()+(C.getTimezoneOffset()-r.getTimezoneOffset())*6E4),Y=new Date(r.getTime()+(I+(I>0?-864E5:864E5))));I=[];for(var V=0;V<this.patternParts_.length;++V){var S=this.patternParts_[V].text;1==this.patternParts_[V].type?I.push(jbC(this,S,r,C,Y,f)):I.push(S)}return I.join("")};
var mG4=function(r,f){if(f<4)var I=r.JSC$9210_dateTimeSymbols_.DATEFORMATS[f];else if(f<8)I=r.JSC$9210_dateTimeSymbols_.TIMEFORMATS[f-4];else if(f<12)I=r.JSC$9210_dateTimeSymbols_.DATETIMEFORMATS[f-8],I=I.replace("{1}",r.JSC$9210_dateTimeSymbols_.DATEFORMATS[f-8]),I=I.replace("{0}",r.JSC$9210_dateTimeSymbols_.TIMEFORMATS[f-8]);else if(f===12)I=r.JSC$9210_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(f===13)I=r.JSC$9210_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{mG4(r,10);return}eET(r,I)},vK=function(r,f){f=String(f);
r=r.JSC$9210_dateTimeSymbols_||aV;if(r.ZERODIGIT!==void 0&&!b3l){for(var I=[],C=0;C<f.length;C++){var Y=f.charCodeAt(C);I.push(48<=Y&&Y<=57?String.fromCharCode(r.ZERODIGIT+Y-48):f.charAt(C))}f=I.join("")}return f},b3l=!1,pPE=!1,iJD=function(r,f,I,C){I=I.getFullYear();
I<=0&&C&&(I=1-I);return vK(r,HJ4(I,f))},HJ4=function(r,f){f==2&&(r%=100);
r<0&&f++;return _.Dn(r,f)},K6=function(r){if(!(r.getHours&&r.getSeconds&&r.getMinutes))throw Error("Yd");
},RE_=function(r,f){K6(f);
f=RG(f);return r.JSC$9210_dateTimeSymbols_.AMPMS[f>=12&&f<24?1:0]},jbC=function(r,f,I,C,Y,V){var S=f.length;
switch(f.charAt(0)){case "G":return I=C.getFullYear()>0?1:0,S>=4?r.JSC$9210_dateTimeSymbols_.ERANAMES[I]:r.JSC$9210_dateTimeSymbols_.ERAS[I];case "y":return iJD(r,S,C,!0);case "Y":return I=(new Date(KQC(C.getFullYear(),C.getMonth(),C.getDate(),r.JSC$9210_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,r.JSC$9210_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),S==2&&(I%=100),vK(r,HJ4(I,S));case "u":return iJD(r,S,C,!1);case "M":a:switch(I=C.getMonth(),S){case 5:S=r.JSC$9210_dateTimeSymbols_.NARROWMONTHS[I];break a;
case 4:S=r.JSC$9210_dateTimeSymbols_.MONTHS[I];break a;case 3:S=r.JSC$9210_dateTimeSymbols_.SHORTMONTHS[I];break a;default:S=vK(r,_.Dn(I+1,S))}return S;case "k":return K6(Y),vK(r,_.Dn(RG(Y)||24,S));case "S":return vK(r,(Y.getMilliseconds()/1E3).toFixed(Math.min(3,S)).slice(2)+(S>3?_.Dn(0,S-3):""));case "E":return I=C.getDay(),S>=4?r.JSC$9210_dateTimeSymbols_.WEEKDAYS[I]:r.JSC$9210_dateTimeSymbols_.SHORTWEEKDAYS[I];case "a":return RE_(r,Y);case "b":return RE_(r,Y);case "B":return RE_(r,Y);case "h":return K6(Y),
vK(r,_.Dn(RG(Y)%12||12,S));case "K":return K6(Y),vK(r,_.Dn(RG(Y)%12,S));case "H":return K6(Y),vK(r,_.Dn(RG(Y),S));case "c":a:switch(I=C.getDay(),S){case 5:S=r.JSC$9210_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[I];break a;case 4:S=r.JSC$9210_dateTimeSymbols_.STANDALONEWEEKDAYS[I];break a;case 3:S=r.JSC$9210_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[I];break a;default:S=vK(r,_.Dn(I,1))}return S;case "L":a:switch(I=C.getMonth(),S){case 5:S=r.JSC$9210_dateTimeSymbols_.STANDALONENARROWMONTHS[I];break a;
case 4:S=r.JSC$9210_dateTimeSymbols_.STANDALONEMONTHS[I];break a;case 3:S=r.JSC$9210_dateTimeSymbols_.STANDALONESHORTMONTHS[I];break a;default:S=vK(r,_.Dn(I+1,S))}return S;case "Q":return I=Math.floor(C.getMonth()/3),S<4?r.JSC$9210_dateTimeSymbols_.SHORTQUARTERS[I]:r.JSC$9210_dateTimeSymbols_.QUARTERS[I];case "d":return vK(r,_.Dn(C.getDate(),S));case "m":return K6(Y),vK(r,_.Dn(Y.getMinutes?Y.getMinutes():0,S));case "s":return K6(Y),vK(r,_.Dn(Y.getSeconds(),S));case "v":return(V||eo(I.getTimezoneOffset())).timeZoneId_;
case "V":return r=V||eo(I.getTimezoneOffset()),S<=2?r.timeZoneId_:W43(r,I)>0?r.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?r.tzNamesExt_.DST_GENERIC_LOCATION:r.tzNamesExt_.DST_GENERIC_LOCATION:r.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?r.tzNamesExt_.STD_GENERIC_LOCATION:r.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return I=KQC(Y.getFullYear(),Y.getMonth(),Y.getDate(),r.JSC$9210_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,r.JSC$9210_dateTimeSymbols_.FIRSTDAYOFWEEK),vK(r,_.Dn(Math.floor(Math.round((I-(new Date((new Date(I)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,S));case "z":return r=V||eo(I.getTimezoneOffset()),S<4?r.tzNames_[W43(r,I)>0?2:0]:r.tzNames_[W43(r,I)>0?3:1];case "Z":return f=V||eo(I.getTimezoneOffset()),S<4?(S=-L44(f,I),r=[S<0?"-":"+"],S=Math.abs(S),r.push(_.Dn(Math.floor(S/60)%100,2),_.Dn(S%60,2)),S=r.join("")):S=vK(r,cN4(L44(f,I))),S;default:return""}};var vOC=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,K4_=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,NSl=function(r){this.patternParts_=[];this.JSC$9219_dateTimeSymbols_=aV;if(typeof r=="number"){r>11&&(r=10);if(r<4)var f=this.JSC$9219_dateTimeSymbols_.DATEFORMATS[r];else r<8?f=this.JSC$9219_dateTimeSymbols_.TIMEFORMATS[r-4]:(f=this.JSC$9219_dateTimeSymbols_.DATETIMEFORMATS[r-8],f=f.replace("{1}",this.JSC$9219_dateTimeSymbols_.DATEFORMATS[r-8]),f=f.replace("{0}",this.JSC$9219_dateTimeSymbols_.TIMEFORMATS[r-
8]));yN3(this,f)}else yN3(this,r)},yN3=function(r,f){for(var I=!1,C="",Y=0;Y<f.length;Y++){var V=f.charAt(Y);
if(vOC.test(V))for(C.length>0&&(r.patternParts_.push({text:C,count:0,abutStart:!1,numeric:!1}),C=""),r.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});Y<f.length-1&&f.charAt(Y+1)==" ";)Y++;else if(I)V=="'"?Y+1<f.length&&f.charAt(Y+1)=="'"?(C+="'",Y++):I=!1:C+=V;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(V)>=0){C.length>0&&(r.patternParts_.push({text:C,count:0,abutStart:!1,numeric:!1}),C="");for(var S=f.charAt(Y),h=Y+1;h<f.length&&f.charAt(h)==S;)h++;S=h-Y;S<=0?h=!1:(h="MydhHmsSDkK".indexOf(V),
h=h>0||h==0&&S<3);r.patternParts_.push({text:V,count:S,abutStart:!1,numeric:h});Y+=S-1}else V=="'"?Y+1<f.length&&f.charAt(Y+1)=="'"?(C+="'",Y++):I=!0:C+=V}C.length>0&&r.patternParts_.push({text:C,count:0,abutStart:!1,numeric:!1});f=!1;for(I=0;I<r.patternParts_.length;I++)r.patternParts_[I].numeric?!f&&I+1<r.patternParts_.length&&r.patternParts_[I+1].numeric&&(f=!0,r.patternParts_[I].abutStart=!0):f=!1};
NSl.prototype.parse=function(r,f,I){var C=!1,Y=!1;I&&(C=I.predictive||!1,Y=I.validate||!1);if(C)for(I=0;I<this.patternParts_.length;I++){var V=this.patternParts_[I];if(V.count>0&&("abBhHkKm".indexOf(V.text.charAt(0))<0||V.count>2||V.abutStart))throw Error("Zd`"+V.text.charAt(0));}V=new UGD;I=[0];V.dayPeriodIndex=-1;for(var S=0;S<this.patternParts_.length&&!(C&&I[0]>=r.length);S++){if(this.patternParts_[S].count==0){a:{var h=r;var w=I,n=this.patternParts_[S],d=C;if(n.text.match(vOC)!=null){if(n=w[0],
sbB(h,w),w[0]>n){h=!0;break a}}else{if(h.indexOf(n.text,w[0])==w[0]){w[0]+=n.text.length;h=!0;break a}if(d&&n.text.indexOf(h.substring(w[0]))==0){w[0]+=h.length-w[0];h=!0;break a}}h=!1}if(h)continue;return 0}if(this.patternParts_[S].abutStart){a:{w=r;n=I;d=S;var z=n[0],g=0;for(h=d;h<this.patternParts_.length;h++){var X=this.patternParts_[h],P=X.count;if(P===0)break;if(h==d&&(P-=g,g++,P==0)){h=0;break a}var W=h>d&&X.numeric,m=n[0];if(!OJC(this,w,n,X,P,V,!1)||W&&n[0]-m<P)h=d-1,n[0]=z}h-=d}if(h<=0)return 0;
S+=h-1}else if(!OJC(this,r,I,this.patternParts_[S],0,V,C))return 0}a:{r=Y;if(f==null)throw Error("$d");V.era!=void 0&&V.year!=void 0&&V.era==0&&V.year>0&&(V.year=-(V.year-1));V.year!=void 0&&f.setFullYear(V.year);C=f.getDate();f.setDate(1);V.month!=void 0&&f.setMonth(V.month);V.day!=void 0?f.setDate(V.day):(Y=BH$(f.getFullYear(),f.getMonth()),f.setDate(C>Y?Y:C));typeof f.setHours==="function"&&(V.hours==void 0&&(V.hours=f.getHours()),V.hours<12&&(V.ampm!=void 0&&V.ampm>0?V.hours+=12:V.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(V.dayPeriodName)||["night1","night2"].includes(V.dayPeriodName)&&V.hours>=6)&&(V.hours+=12)),f.setHours(V.hours));typeof f.setMinutes==="function"&&V.minutes!=void 0&&f.setMinutes(V.minutes);typeof f.setSeconds==="function"&&V.seconds!=void 0&&f.setSeconds(V.seconds);typeof f.setMilliseconds==="function"&&V.milliseconds!=void 0&&f.setMilliseconds(V.milliseconds);if(r&&(V.year&&V.year!=f.getFullYear()||V.month&&V.month!=
f.getMonth()||V.day&&V.day!=f.getDate()||V.hours&&V.hours>=24||V.minutes&&V.minutes>=60||V.seconds&&V.seconds>=60||V.milliseconds&&V.milliseconds>=1E3))f=!1;else{V.tzOffset!=void 0&&f.setTime(f.getTime()+(V.tzOffset-f.getTimezoneOffset())*60*1E3);V.ambiguousYear&&(r=new Date,r.setFullYear(r.getFullYear()-80),f.getTime()<r.getTime()&&f.setFullYear(r.getFullYear()+100));if(V.dayOfWeek!=void 0)if(V.day==void 0)V=(7+V.dayOfWeek-f.getDay())%7,V>3&&(V-=7),r=f.getMonth(),f.setDate(f.getDate()+V),f.getMonth()!=
r&&f.setDate(f.getDate()+(V>0?-7:7));else if(V.dayOfWeek!=f.getDay()){f=!1;break a}f=!0}}return f?I[0]:0};
var OJC=function(r,f,I,C,Y,V,S){sbB(f,I);if(C.numeric&&Y>0&&I[0]+Y>f.length)return!1;switch(C.text.charAt(0)){case "G":return y8(f,I,[r.JSC$9219_dateTimeSymbols_.ERAS],function(h){return V.era=h}),!0;
case "M":case "L":return oOV(r,f,I,Y,C,V);case "E":return y8(f,I,[r.JSC$9219_dateTimeSymbols_.WEEKDAYS,r.JSC$9219_dateTimeSymbols_.SHORTWEEKDAYS],function(h){return V.dayOfWeek=h});
case "B":case "b":return Y=[],r=[[].concat(r.JSC$9219_dateTimeSymbols_.AMPMS)],Y.push("isAm"),Y.push("isPm"),f=y8(f,I,r,function(h){return V.dayPeriodIndex=h},S),V.dayPeriodName=Y[V.dayPeriodIndex],S?f:!0;
case "a":return f=y8(f,I,[r.JSC$9219_dateTimeSymbols_.AMPMS],function(h){return V.ampm=h},S),S?f:!0;
case "y":return Qbs(r,f,I,C,Y,V);case "Q":return y8(f,I,[r.JSC$9219_dateTimeSymbols_.QUARTERS,r.JSC$9219_dateTimeSymbols_.SHORTQUARTERS],function(h){V.month=h*3;V.day=1});
case "d":return U5(r,f,I,C,Y,function(h){V.day=h}),!0;
case "S":return AND(r,f,I,Y,V);case "h":case "K":case "H":case "k":return f=U5(r,f,I,C,Y,function(h){V.hours=C.text.charAt(0)==="h"&&h===12?0:h},S),S?f:!0;
case "m":return f=U5(r,f,I,C,Y,function(h){V.minutes=h},S),S?f:!0;
case "s":return U5(r,f,I,C,Y,function(h){V.seconds=h}),!0;
case "z":case "Z":case "v":return ZJT(r,f,I,V);default:return!1}},Qbs=function(r,f,I,C,Y,V){var S=I[0];
Y=s5(r,f,I,Y);Y===null&&(Y=s5(r,f,I,0,!0));if(Y===null)return!1;Y>=0&&I[0]-S==2&&C.count==2?(r=Y,f=(new Date).getFullYear()-80,I=f%100,V.ambiguousYear=r==I,r+=Math.floor(f/100)*100+(r<I?100:0),V.year=r):V.year=Y;return!0},oOV=function(r,f,I,C,Y,V){return Y.numeric&&U5(r,f,I,Y,C,function(S){V.month=S-1})?!0:y8(f,I,[r.JSC$9219_dateTimeSymbols_.MONTHS,
r.JSC$9219_dateTimeSymbols_.STANDALONEMONTHS,r.JSC$9219_dateTimeSymbols_.SHORTMONTHS,r.JSC$9219_dateTimeSymbols_.STANDALONESHORTMONTHS],function(S){V.month=S})},AND=function(r,f,I,C,Y){var V=I[0];
r=s5(r,f,I,C);if(r===null)return!1;I=I[0]-V;Y.milliseconds=I<3?r*Math.pow(10,3-I):Math.round(r/Math.pow(10,I-3));return!0},ZJT=function(r,f,I,C){f.indexOf("GMT",I[0])==I[0]&&(I[0]+=3);
if(I[0]>=f.length)return C.tzOffset=0,!0;var Y=I[0],V=s5(r,f,I,0,!0);if(V===null)return!1;if(I[0]<f.length&&f.charAt(I[0])==":"){var S=V*60;I[0]++;V=s5(r,f,I,0);if(V===null)return!1;S+=V}else S=V,S=S<24&&I[0]-Y<=3?S*60:S%100+S/100*60;C.tzOffset=-S;return!0},U5=function(r,f,I,C,Y,V,S){S=S||!1;
var h=I[0];r=s5(r,f,I,Y);if(r===null)return!1;if(S&&I[0]-h<C.count){if(I[0]<f.length)return!1;r*=Math.pow(10,C.count-(I[0]-h))}V(r);return!0},y8=function(r,f,I,C,Y){Y=Y||!1;
for(var V,S=0;S<I.length;S++){V=f;for(var h=I[S],w=Y,n=0,d=null,z=r.substring(V[0]).toLowerCase(),g=0;g<h.length;g++){var X=h[g].toLowerCase();if(w&&X.indexOf(z)==0){n=z.length;d=g;break}h[g].length>n&&z.indexOf(X)==0&&(n=h[g].length,d=g)}d!==null&&(V[0]+=n);V=d;if(V!==null)return C(V),!0}return!1},sbB=function(r,f){(r=r.substring(f[0]).match(K4_))&&(f[0]+=r[0].length)},s5=function(r,f,I,C,Y){f=C>0?f.substring(0,I[0]+C):f;
Y=Y||!1;if(r.JSC$9219_dateTimeSymbols_.ZERODIGIT){C=[];for(var V=I[0];V<f.length;V++){var S=f.charCodeAt(V)-r.JSC$9219_dateTimeSymbols_.ZERODIGIT;C.push(0<=S&&S<=9?String.fromCharCode(S+48):f.charAt(V))}f=C.join("")}else f=f.substring(I[0]);r=f.match(new RegExp("^"+(Y?"[+-]?":"")+"\\d+"));if(!r)return null;I[0]+=r[0].length;return parseInt(r[0],10)},UGD=function(){};
UGD.prototype.ambiguousYear=!1;_.GFD={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 kFs={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"},B_D=kFs,qiV=kFs;qiV=B_D=kFs;var DG3,O5,Q8,xRK,oG,ud4;
_.W1=function(r,f,I,C){var Y;if(Y=f){a:if(f&&f.length===3){for(Y=0;Y<3;Y++){var V=f[Y];if(V<"A"||V>"Z"&&V<"a"||V>"z"){Y=!1;break a}}Y=!0}else Y=!1;Y=!Y}if(Y)throw new TypeError("ae");this.intlCurrencyCode_=f?f.toUpperCase():null;this.currencyStyle_=I||0;this.overrideNumberFormatSymbols_=C||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_=O5(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof r==="number")switch(r){case 1:oG(this,O5(this).DECIMAL_PATTERN);break;case 2:oG(this,O5(this).SCIENTIFIC_PATTERN);break;case 3:oG(this,O5(this).PERCENT_PATTERN);break;case 4:r=O5(this).CURRENCY_PATTERN;f=["0"];if(I=
iC[Q8(this)]){I=I[0]&7;if(I>0)for(f.push("."),C=0;C<I;C++)f.push("0");r=r.replace(/0.00/g,f.join(""))}oG(this,r);break;case 5:ud4(this,1);break;case 6:ud4(this,2);break;default:throw Error("de");}else oG(this,r)};
DG3=!1;O5=function(r){return r.overrideNumberFormatSymbols_||(DG3?qiV:B_D)};
Q8=function(r){return r.intlCurrencyCode_||O5(r).DEF_CURRENCY_CODE};
xRK=function(r,f){if(f>308)throw Error("ce`"+f);r.maximumFractionDigits_=f;return r};
oG=function(r,f){var I=[0];r.positivePrefix_=rGC(r,f,I);for(var C=I[0],Y=-1,V=0,S=0,h=0,w=-1,n=f.length,d=!0;I[0]<n&&d;I[0]++)switch(f.charAt(I[0])){case "#":S>0?h++:V++;w>=0&&Y<0&&w++;break;case "0":if(h>0)throw Error("je`"+f);S++;w>=0&&Y<0&&w++;break;case ",":w>0&&r.groupingArray_.push(w);w=0;break;case ".":if(Y>=0)throw Error("ke`"+f);Y=V+S+h;break;case "E":if(r.useExponentialNotation_)throw Error("le`"+f);r.useExponentialNotation_=!0;r.minExponentDigits_=0;I[0]+1<n&&f.charAt(I[0]+1)=="+"&&(I[0]++,
r.useSignForPositiveExponent_=!0);for(;I[0]+1<n&&f.charAt(I[0]+1)=="0";)I[0]++,r.minExponentDigits_++;if(V+S<1||r.minExponentDigits_<1)throw Error("me`"+f);d=!1;break;default:I[0]--,d=!1}S==0&&V>0&&Y>=0&&(S=Y,S==0&&S++,h=V-S,V=S-1,S=1);if(Y<0&&h>0||Y>=0&&(Y<V||Y>V+S)||w==0)throw Error("ne`"+f);h=V+S+h;r.maximumFractionDigits_=Y>=0?h-Y:0;Y>=0&&(r.minimumFractionDigits_=V+S-Y,r.minimumFractionDigits_<0&&(r.minimumFractionDigits_=0));r.minimumIntegerDigits_=(Y>=0?Y:h)-V;r.useExponentialNotation_&&(r.maximumIntegerDigits_=
V+r.minimumIntegerDigits_,r.maximumFractionDigits_==0&&r.minimumIntegerDigits_==0&&(r.minimumIntegerDigits_=1));r.groupingArray_.push(Math.max(0,w));r.decimalSeparatorAlwaysShown_=Y==0||Y==h;C=I[0]-C;r.positiveSuffix_=rGC(r,f,I);I[0]<f.length&&f.charAt(I[0])==";"?(I[0]++,r.multiplier_!=1&&(r.negativePercentSignExpected_=!0),r.negativePrefix_=rGC(r,f,I),I[0]+=C,r.negativeSuffix_=rGC(r,f,I)):(r.negativePrefix_+=r.positivePrefix_,r.negativeSuffix_+=r.positiveSuffix_)};
ud4=function(r,f){r.compactStyle_=f;oG(r,O5(r).DECIMAL_PATTERN);r.minimumFractionDigits_=0;xRK(r,2);if(r.minimumFractionDigits_>0)throw Error("be");r.significantDigits_=2};
_.W1.prototype.parse=function(r,f){f=f||[0];if(this.compactStyle_!==0)throw Error("ee");r=r.replace(/ |\u202f/g,"\u00a0");var I=r.indexOf(this.positivePrefix_,f[0])==f[0],C=r.indexOf(this.negativePrefix_,f[0])==f[0];I&&C&&(this.positivePrefix_.length>this.negativePrefix_.length?C=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(I=!1));I?f[0]+=this.positivePrefix_.length:C&&(f[0]+=this.negativePrefix_.length);if(r.indexOf(O5(this).INFINITY,f[0])==f[0]){f[0]+=O5(this).INFINITY.length;var Y=
Infinity}else{Y=r;var V=!1,S=!1,h=!1,w=-1,n=1,d=O5(this).DECIMAL_SEP,z=O5(this).GROUP_SEP,g=O5(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");z=z.replace(/\u202f/g,"\u00a0");for(var X="";f[0]<Y.length;f[0]++){var P=Y.charAt(f[0]),W=f13(this,P);if(W>=0&&W<=9)X+=W,h=!0;else if(P==d.charAt(0)){if(V||S)break;X+=".";V=!0}else if(P==z.charAt(0)&&("\u00a0"!=z.charAt(0)||f[0]+1<Y.length&&f13(this,Y.charAt(f[0]+1))>=0)){if(V||S)break}else if(P==g.charAt(0)){if(S)break;X+="E";S=!0;w=f[0]}else if(P==
"+"||P=="-"){if(h&&w!=f[0]-1)break;X+=P}else if(this.multiplier_==1&&P==O5(this).PERCENT.charAt(0)){if(n!=1)break;n=100;if(h){f[0]++;break}}else if(this.multiplier_==1&&P==O5(this).PERMILL.charAt(0)){if(n!=1)break;n=1E3;if(h){f[0]++;break}}else break}this.multiplier_!=1&&(n=this.multiplier_);Y=parseFloat(X)/n}if(I){if(r.indexOf(this.positiveSuffix_,f[0])!=f[0])return NaN;f[0]+=this.positiveSuffix_.length}else if(C){if(r.indexOf(this.negativeSuffix_,f[0])!=f[0])return NaN;f[0]+=this.negativeSuffix_.length}return C?
-Y:Y};
_.W1.prototype.format=function(r){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(r))return O5(this).NAN;var f=[];var I=r;if(this.compactStyle_==0)I=Ah;else{I=Math.abs(I);var C=I1_(this,I<=1?0:C7g(I)).divisorBase;I=I1_(this,C+C7g(Y$D(this,Zi(I,-C)).intValue))}r=Zi(r,-I.divisorBase);(C=r<0||r==0&&1/r<0)?I.negative_prefix?f.push(I.negative_prefix):(f.push(I.prefix),f.push(this.negativePrefix_)):(f.push(I.prefix),f.push(this.positivePrefix_));if(isFinite(r))if(r*=
C?-1:1,r*=this.multiplier_,this.useExponentialNotation_){var Y=r;if(Y==0)l1C(this,Y,this.minimumIntegerDigits_,f),VSX(this,0,f);else{var V=Math.floor(Math.log(Y)/Math.log(10)+2E-15);Y=Zi(Y,-V);var S=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(S=V%this.maximumIntegerDigits_,S<0&&(S=this.maximumIntegerDigits_+S),Y=Zi(Y,S),V-=S,S=1):this.minimumIntegerDigits_<1?(V++,Y=Zi(Y,-1)):(V-=this.minimumIntegerDigits_-1,Y=Zi(Y,this.minimumIntegerDigits_-
1));l1C(this,Y,S,f);VSX(this,V,f)}}else l1C(this,r,this.minimumIntegerDigits_,f);else f.push(O5(this).INFINITY);C?I.negative_suffix?f.push(I.negative_suffix):(isFinite(r)&&f.push(I.suffix),f.push(this.negativeSuffix_)):(isFinite(r)&&f.push(I.suffix),f.push(this.positiveSuffix_));return f.join("")};
var Y$D=function(r,f){var I=Zi(f,r.maximumFractionDigits_);r.significantDigits_>0&&(I=ENV(I,r.significantDigits_,r.maximumFractionDigits_));I=Math.round(I);if(isFinite(I)){var C=Math.floor(Zi(I,-r.maximumFractionDigits_));I=Math.floor(I-Zi(C,r.maximumFractionDigits_));if(I<0||I>=Zi(1,r.maximumFractionDigits_))C=Math.round(f),I=0}else C=f,I=0;return{intValue:C,fracValue:I}},l1C=function(r,f,I,C){if(r.minimumFractionDigits_>r.maximumFractionDigits_)throw Error("ge");
C||(C=[]);f=Y$D(r,f);var Y=f.intValue,V=f.fracValue,S=r.minimumFractionDigits_>0||V>0||!1;f=r.minimumFractionDigits_;S&&(f=r.minimumFractionDigits_);for(var h="",w=Y;w>1E20;)h="0"+h,w=Math.round(Zi(w,-1));h=w+h;var n=O5(r).DECIMAL_SEP;w=O5(r).ZERO_DIGIT.codePointAt(0);var d=h.length,z=0;if(Y>0||I>0){for(Y=d;Y<I;Y++)C.push(String.fromCodePoint(w));if(r.groupingArray_.length>=2)for(I=1;I<r.groupingArray_.length;I++)z+=r.groupingArray_[I];I=d-z;if(I>0){Y=r.groupingArray_;z=d=0;for(var g,X=O5(r).GROUP_SEP,
P=h.length,W=0;W<P;W++)if(C.push(String.fromCodePoint(w+Number(h.charAt(W)))),P-W>1)if(g=Y[z],W<I){var m=I-W;(g===1||g>0&&m%g===1)&&C.push(X)}else z<Y.length&&(W===I?z+=1:g===W-I-d+1&&(C.push(X),d+=g,z+=1))}else{I=h;h=r.groupingArray_;Y=O5(r).GROUP_SEP;g=I.length;X=[];for(d=h.length-1;d>=0&&g>0;d--){z=h[d];for(P=0;P<z&&g-P-1>=0;P++)X.push(String.fromCodePoint(w+Number(I.charAt(g-P-1))));g-=z;g>0&&X.push(Y)}C.push.apply(C,X.reverse())}}else S||C.push(String.fromCodePoint(w));(r.decimalSeparatorAlwaysShown_||
S)&&C.push(n);V=String(V);S=V.split("e+");S.length==2&&(V=String(ENV(parseFloat(S[0]),r.significantDigits_,1)),V=V.replace(".",""),V+=(0,_.r_q)("0",parseInt(S[1],10)-V.length+1));r.maximumFractionDigits_+1>V.length&&(V="1"+(0,_.r_q)("0",r.maximumFractionDigits_-V.length)+V);for(r=V.length;V.charAt(r-1)=="0"&&r>f+1;)r--;for(f=1;f<r;f++)C.push(String.fromCodePoint(w+Number(V.charAt(f))))},VSX=function(r,f,I){I.push(O5(r).EXP_SYMBOL);
f<0?(f=-f,I.push(O5(r).MINUS_SIGN)):r.useSignForPositiveExponent_&&I.push(O5(r).PLUS_SIGN);f=""+f;for(var C=O5(r).ZERO_DIGIT,Y=f.length;Y<r.minExponentDigits_;Y++)I.push(C);r=C.codePointAt(0)-S$X;for(C=0;C<f.length;C++)I.push(String.fromCodePoint(r+f.codePointAt(C)))},f13=function(r,f){f=f.codePointAt(0);
if(48<=f&&f<58)return f-48;r=O5(r).ZERO_DIGIT.codePointAt(0);return r<=f&&f<r+10?f-r:-1},S$X="0".codePointAt(0),rGC=function(r,f,I){for(var C="",Y=!1,V=f.length;I[0]<V;I[0]++){var S=f.charAt(I[0]);
if(S=="'")I[0]+1<V&&f.charAt(I[0]+1)=="'"?(I[0]++,C+="'"):Y=!Y;else if(Y)C+=S;else switch(S){case "#":case "0":case ",":case ".":case ";":return C;case "\u00a4":if(I[0]+1<V&&f.charAt(I[0]+1)=="\u00a4")I[0]++,C+=Q8(r);else switch(r.currencyStyle_){case 0:S=Q8(r);C+=S in iC?iC[S][1]:S;break;case 2:S=Q8(r);var h=iC[S];C+=h?S==h[1]?S:S+" "+h[1]:S;break;case 1:S=Q8(r),C+=S in iC?iC[S][2]:S}break;case "%":if(!r.negativePercentSignExpected_&&r.multiplier_!=1)throw Error("he");if(r.negativePercentSignExpected_&&
r.multiplier_!=100)throw Error("ie");r.multiplier_=100;r.negativePercentSignExpected_=!1;C+=O5(r).PERCENT;break;case "\u2030":if(!r.negativePercentSignExpected_&&r.multiplier_!=1)throw Error("he");if(r.negativePercentSignExpected_&&r.multiplier_!=1E3)throw Error("ie");r.multiplier_=1E3;r.negativePercentSignExpected_=!1;C+=O5(r).PERMILL;break;default:C+=S}}return C},Ah={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},I1_=function(r,f){r=r.compactStyle_==1?HK.COMPACT_DECIMAL_SHORT_PATTERN:HK.COMPACT_DECIMAL_LONG_PATTERN;r==null&&(r=HK.COMPACT_DECIMAL_SHORT_PATTERN);if(f<3)return Ah;f=Math.min(14,f);var I=r[Zi(1,f)];for(--f;!I&&f>=3;)I=r[Zi(1,f)],f--;if(!I)return Ah;I=I.other;var C=r="",Y=I.indexOf(";");Y>=0&&(I=I.substring(0,Y),Y=I.substring(Y+1))&&(C=/([^0]*)(0+)(.*)/.exec(Y),r=C[1],C=C[3]);return I&&I!="0"?(I=/([^0]*)(0+)(.*)/.exec(I))?{divisorBase:f+
1-(I[2].length-1),negative_prefix:r,negative_suffix:C,prefix:I[1],suffix:I[3]}:Ah:Ah},C7g=function(r){if(!isFinite(r))return r>0?r:0;
for(var f=0;(r/=10)>=1;)f++;return f},Zi=function(r,f){if(!r||!isFinite(r)||f==0)return r;
r=String(r).split("e");return parseFloat(r[0]+"e"+(parseInt(r[1]||0,10)+f))},xv3=function(r,f){return r&&isFinite(r)?Zi(Math.round(Zi(r,f)),-f):r},ENV=function(r,f,I){if(!r)return r;
f=f-C7g(r)-1;return f<-I?xv3(r,-I):xv3(r,f)};var hDU=function(r){return r%10==1&&r%100!=11?"one":r%10==2&&r%100!=12?"two":r%10==3&&r%100!=13?"few":"other"},wcD=hDU;
wcD=hDU;var bx3;bx3=function(r,f){var I=r|0;if(void 0===f){f=Math;var C=f.min,Y=r+"",V=Y.indexOf(".");f=C.call(f,V===-1?0:Y.length-V-1,3)}C=Math.pow(10,f);r={v:f,f:(r*C|0)%C};return I==1&&r.v==0?"one":"other"};
_.H1=bx3;_.H1=bx3;var pcB,nNC,dvT,MSg,gNB;_.zD4=function(r){this.JSC$9262_pattern_=r;this.parsedPattern_=this.literals_=this.initialLiterals_=null;r=B_D;var f=HK;if(pcB!==r||nNC!==f)pcB=r,nNC=f,dvT=new _.W1(1);this.numberFormatter_=dvT};
pcB=null;nNC=null;dvT=null;MSg=RegExp("'([{}#].*?)'","g");gNB=RegExp("''","g");
_.zD4.prototype.format=function(r){if(this.JSC$9262_pattern_){this.initialLiterals_=[];var f=a13(this,this.JSC$9262_pattern_);this.parsedPattern_=Xcg(this,f);this.JSC$9262_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.f8(this.initialLiterals_),f=[],Nm8(this,this.parsedPattern_,r,!1,f),r=f.join("");this.literals_.length>0;)r=r.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else r="";return r};
var Nm8=function(r,f,I,C,Y){for(var V=0;V<f.length;V++)switch(f[V].type){case 4:Y.push(f[V].value);break;case 3:var S=f[V].value;var h=r,w=Y,n=I[S];n===void 0?w.push("Undefined parameter - "+S):(h.literals_.push(n),w.push(h.buildPlaceholder_(h.literals_)));break;case 2:S=f[V].value;h=r;w=I;n=C;var d=Y,z=S.argumentIndex;w[z]===void 0?d.push("Undefined parameter - "+z):(z=S[w[z]],z===void 0&&(z=S.other),Nm8(h,z,w,n,d));break;case 0:S=f[V].value;$vU(r,S,I,_.H1,C,Y);break;case 1:S=f[V].value,$vU(r,S,
I,wcD,C,Y)}},$vU=function(r,f,I,C,Y,V){var S=f.argumentIndex,h=f.argumentOffset,w=+I[S];
isNaN(w)?V.push("Undefined or invalid parameter - "+S):(h=w-h,S=f[I[S]],S===void 0&&(C=C(Math.abs(h)),S=f[C],S===void 0&&(S=f.other)),f=[],Nm8(r,S,I,Y,f),I=f.join(""),Y?V.push(I):(r=r.numberFormatter_.format(h),V.push(I.replace(/#/g,r))))},a13=function(r,f){var I=r.initialLiterals_,C=r.buildPlaceholder_.bind(r);
f=f.replace(gNB,function(){I.push("'");return C(I)});
return f=f.replace(MSg,function(Y,V){I.push(V);return C(I)})},FW4=function(r){var f=0,I=[],C=[],Y=/[{}]/g;
Y.lastIndex=0;for(var V;V=Y.exec(r);){var S=V.index;V[0]=="}"?(I.pop(),I.length==0&&(V={type:1},V.value=r.substring(f,S),C.push(V),f=S+1)):(I.length==0&&(f=r.substring(f,S),f!=""&&C.push({type:0,value:f}),f=S+1),I.push("{"))}r=r.substring(f);r!=""&&C.push({type:0,value:r});return C},P7s=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,tSC=/^\s*(\w+)\s*,\s*selectordinal\s*,/,TmB=/^\s*(\w+)\s*,\s*select\s*,/,Xcg=function(r,f){var I=[];
f=FW4(f);for(var C=0;C<f.length;C++){var Y={};if(0==f[C].type)Y.type=4,Y.value=f[C].value;else if(1==f[C].type){var V=f[C].value;switch(P7s.test(V)?0:tSC.test(V)?1:TmB.test(V)?2:/^\s*\w+\s*/.test(V)?3:5){case 2:Y.type=2;Y.value=cGg(r,f[C].value);break;case 0:Y.type=0;Y.value=WWB(r,f[C].value);break;case 1:Y.type=1;Y.value=LWC(r,f[C].value);break;case 3:Y.type=3,Y.value=f[C].value}}I.push(Y)}return I},cGg=function(r,f){var I="";
f=f.replace(TmB,function(h,w){I=w;return""});
var C={};C.argumentIndex=I;f=FW4(f);for(var Y=0;Y<f.length;){var V=f[Y].value;Y++;var S=void 0;1==f[Y].type&&(S=Xcg(r,f[Y].value));C[V.replace(/\s/g,"")]=S;Y++}return C},WWB=function(r,f){var I="",C=0;
f=f.replace(P7s,function(w,n,d){I=n;d&&(C=parseInt(d,10));return""});
var Y={};Y.argumentIndex=I;Y.argumentOffset=C;f=FW4(f);for(var V=0;V<f.length;){var S=f[V].value;V++;var h=void 0;1==f[V].type&&(h=Xcg(r,f[V].value));Y[S.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=h;V++}return Y},LWC=function(r,f){var I="";
f=f.replace(tSC,function(h,w){I=w;return""});
var C={};C.argumentIndex=I;C.argumentOffset=0;f=FW4(f);for(var Y=0;Y<f.length;){var V=f[Y].value;Y++;var S=void 0;1==f[Y].type&&(S=Xcg(r,f[Y].value));C[V.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=S;Y++}return C};
_.zD4.prototype.buildPlaceholder_=function(r){return"\ufddf_"+(r.length-1).toString(10)+"_"};var mvq;
mvq={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 z6P=function(){this.rdtfSymbols_=eD4||mvq;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
z6P.prototype.format=function(r,f){a:{f=JGV(this,f);switch(this.style_){case 2:if(f.NARROW!=void 0){f=f.NARROW;break a}case 1:if(f.SHORT!=void 0){f=f.SHORT;break a}default:f=f.LONG;break a}f=void 0}if(!this.alwaysNumeric_&&f&&f.R&&f.R[""+r])r=f.R[""+r];else if(f){var I=Math.abs(r);r=(new _.zD4("{N,plural,"+(r>0||r==0&&1/r==Infinity?f.F:f.P)+"}")).format({N:I})}else r="";return r};
var JGV=function(r,f){switch(f){default:case 0:return r.rdtfSymbols_.YEAR;case 1:return r.rdtfSymbols_.QUARTER;case 2:return r.rdtfSymbols_.MONTH;case 3:return r.rdtfSymbols_.WEEK;case 4:return r.rdtfSymbols_.DAY;case 5:return r.rdtfSymbols_.HOUR;case 6:return r.rdtfSymbols_.MINUTE;case 7:return r.rdtfSymbols_.SECOND}};var js4=function(r,f,I,C,Y,V,S,h){this.x0=r;this.y0=f;this.x1=I;this.y1=C;this.x2=Y;this.y2=V;this.x3=S;this.y3=h};
js4.prototype.clone=function(){return new js4(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
js4.prototype.equals=function(r){return this.x0==r.x0&&this.y0==r.y0&&this.x1==r.x1&&this.y1==r.y1&&this.x2==r.x2&&this.y2==r.y2&&this.x3==r.x3&&this.y3==r.y3};
var HxB=function(r,f){if(f==0)return r.x0;if(f==1)return r.x3;var I=ge(r.x0,r.x1,f),C=ge(r.x1,r.x2,f);r=ge(r.x2,r.x3,f);I=ge(I,C,f);C=ge(C,r,f);return ge(I,C,f)},ixB=function(r,f){var I=(f-r.x0)/(r.x3-r.x0);
if(I<=0)return 0;if(I>=1)return 1;for(var C=0,Y=1,V=0,S=0;S<8;S++){V=HxB(r,I);var h=(HxB(r,I+1E-6)-V)/1E-6;if(Math.abs(V-f)<1E-6)return I;if(Math.abs(h)<1E-6)break;else V<f?C=I:Y=I,I-=(V-f)/h}for(S=0;Math.abs(V-f)>1E-6&&S<8;S++)V<f?(C=I,I=(I+Y)/2):(Y=I,I=(I+C)/2),V=HxB(r,I);return I};var G8=function(){_.zh.call(this);this.JSC$9283_name_="closure_frame"+RDq++;this.iframesForDisposal_=[];vN8[this.JSC$9283_name_]=this},k3;
_.rh(G8,_.zh);var vN8={},RDq=0,KW3=function(r,f){var I=ho(r);_.I3B(f,function(C,Y){Array.isArray(C)||(C=[C]);_.Rv(C,function(V){V=I.JSC$7227_createDom("INPUT",{type:"hidden",name:Y,value:V});r.appendChild(V)})})};
_.l=G8.prototype;_.l.JSC$9285_form_=null;_.l.JSC$9285_iframe_=null;_.l.iframeName_=null;_.l.nextIframeId_=0;_.l.JSC$9285_active_=!1;_.l.complete_=!1;_.l.success_=!1;_.l.lastContent_=null;_.l.JSC$9285_lastErrorCode_=0;_.l.iframeDisposalTimer_=null;
_.l.send=function(r,f,I,C){if(this.JSC$9285_active_)throw Error("oe");r=new _.KA(r);f=f?f.toUpperCase():"GET";I&&_.IH(r);k3||(k3=_.$2("FORM"),k3.acceptCharset="utf-8",I=k3.style,I.position="absolute",I.visibility="hidden",I.top=I.left="-10px",I.width=I.height="10px",I.overflow="hidden",document.body.appendChild(k3));this.JSC$9285_form_=k3;f=="GET"&&KW3(this.JSC$9285_form_,r.JSC$7932_queryData_);C&&KW3(this.JSC$9285_form_,C);I=r.toString();I=YQE(I);C=this.JSC$9285_form_;I=_.PL(bM(I));I!==void 0&&(C.action=
I);this.JSC$9285_form_.method=f;yGD(this);UvC(this)};
_.l.abort=function(r){if(this.JSC$9285_active_){var f=BK(this);if(f)if(pd(f))f.removeAllListeners(void 0);else if(f=nd(f)){var I=0,C;for(C in f.listeners)for(var Y=f.listeners[C].concat(),V=0;V<Y.length;++V)lT(Y[V])&&++I}this.success_=this.JSC$9285_active_=this.complete_=!1;this.JSC$9285_lastErrorCode_=r||7;this.dispatchEvent("abort");ssD(this)}};
_.l.disposeInternal=function(){this.JSC$9285_active_&&this.abort();G8.superClass_.disposeInternal.call(this);this.JSC$9285_iframe_&&Ox4(this);UvC(this);this.JSC$9285_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9285_form_=null;this.JSC$9285_lastErrorCode_=0;delete vN8[this.JSC$9283_name_]};
_.l.isComplete=function(){return this.complete_};
_.l.isSuccess=function(){return this.success_};
_.l.isActive=function(){return this.JSC$9285_active_};
_.l.getResponseText=function(){return this.lastContent_};
_.l.getLastError=function(){return _.jkX(this.JSC$9285_lastErrorCode_)};
var yGD=function(r){r.JSC$9285_active_=!0;r.complete_=!1;r.JSC$9285_lastErrorCode_=0;r.iframeName_=r.JSC$9283_name_+"_"+(r.nextIframeId_++).toString(36);r.JSC$9285_iframe_=ho(r.JSC$9285_form_).JSC$7227_createDom("IFRAME",{name:r.iframeName_,id:r.iframeName_});var f=r.JSC$9285_iframe_.style;f.visibility="hidden";f.width=f.height="10px";f.display="none";_.VF?f.marginTop=f.marginLeft="-10px":(f.position="absolute",f.top=f.left="-10px");ho(r.JSC$9285_form_).JSC$7225_document_.body.appendChild(r.JSC$9285_iframe_);
f=r.iframeName_+"_inner";var I=$6X(r.JSC$9285_iframe_);if(document.baseURI){var C=Bl(f);C='<head><base href="'+Bl(document.baseURI)+'"></head><body><iframe id="'+C+'" name="'+C+'"></iframe>';C=cL(C)}else C=Bl(f),C=cL('<body><iframe id="'+C+'" name="'+C+'"></iframe>');I.write(WL(C));_.S$(I.getElementById(f),"load",r.onIframeLoaded_,!1,r);C=pX("TEXTAREA",r.JSC$9285_form_);for(var Y=0,V=C.length;Y<V;Y++){var S=C[Y].value;W68(C[Y])!=S&&(_.L9(C[Y],S),C[Y].value=S)}C=I.importNode(r.JSC$9285_form_,!0);C.target=
f;C.action=r.JSC$9285_form_.action;I.body.appendChild(C);Y=pX("SELECT",r.JSC$9285_form_);V=pX("SELECT",C);S=0;for(var h=Y.length;S<h;S++)for(var w=pX("OPTION",Y[S]),n=pX("OPTION",V[S]),d=0,z=w.length;d<z;d++)n[d].selected=w[d].selected;Y=pX("INPUT",r.JSC$9285_form_);V=pX("INPUT",C);S=0;for(h=Y.length;S<h;S++)if(Y[S].type=="file"&&Y[S].value!=V[S].value){r.JSC$9285_form_.target=f;C=r.JSC$9285_form_;break}try{r.errorHandled_=!1,C.submit(),I.close(),_.lf&&setTimeout(r.testForFirefoxSilentError_.bind(r),
250)}catch(g){_.di(I.getElementById(f),"load",r.onIframeLoaded_,!1,r),I.close(),qX(r,2)}};
G8.prototype.onIframeLoaded_=function(){_.di(BK(this),"load",this.onIframeLoaded_,!1,this);try{var r=this.JSC$9285_iframe_?$6X(BK(this)):null;this.complete_=!0;this.JSC$9285_active_=!1;try{var f=r.body;this.lastContent_=f.textContent||f.innerText}catch(Y){var I=1}var C;I||typeof this.errorChecker_!="function"||(C=this.errorChecker_(r))&&(I=4);I?qX(this,I):(this.success_=!0,this.JSC$9285_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),ssD(this))}catch(Y){qX(this,1)}};
var qX=function(r,f){r.errorHandled_||(r.success_=!1,r.JSC$9285_active_=!1,r.complete_=!0,r.JSC$9285_lastErrorCode_=f,r.dispatchEvent("complete"),r.dispatchEvent("error"),ssD(r),r.errorHandled_=!0)},ssD=function(r){Ox4(r);
UvC(r);r.JSC$9285_form_=null;r.dispatchEvent("ready")},Ox4=function(r){var f=r.JSC$9285_iframe_;
f&&(f.onreadystatechange=null,f.onload=null,f.onerror=null,r.iframesForDisposal_.push(f));r.iframeDisposalTimer_&&(clearTimeout(r.iframeDisposalTimer_),r.iframeDisposalTimer_=null);_.lf?r.iframeDisposalTimer_=setTimeout(r.disposeIframes_.bind(r),2E3):r.disposeIframes_();r.JSC$9285_iframe_=null;r.iframeName_=null};
G8.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var r=this.iframesForDisposal_.pop();_.bE(r)}};
var UvC=function(r){r.JSC$9285_form_&&r.JSC$9285_form_==k3&&_.tJ(r.JSC$9285_form_)},BK=function(r){return r.JSC$9285_iframe_?$6X(r.JSC$9285_iframe_).getElementById(r.iframeName_+"_inner"):null};
G8.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9285_active_){var r=this.JSC$9285_iframe_?$6X(BK(this)):null;r&&!ck(r,"documentUri")?(_.di(BK(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?qX(this,3):qX(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.uC=function(r){return r=="\r"||r=="\n"||r==" "||r=="\t"};var oNT;_.Di=function(r){this.errorMessage_=null;this.result_=[];this.JSC$9287_buffer_="";this.stack_=[];this.JSC$9287_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!r||!r.deliverMessageAsRawString)};
oNT={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};_.Di.prototype.isInputValid=function(){return this.streamState_!=3};
_.Di.prototype.done=function(){return this.streamState_===2};
var rx=function(r,f,I){r.streamState_=3;r.errorMessage_="The stream is broken @"+r.JSC$9287_pos_+"/"+I+". With input:\n"+f;throw Error(r.errorMessage_);};
_.Di.prototype.acceptsBinaryInput=function(){return!1};
_.Di.prototype.parse=function(r){function f(){for(;g<r.length;)if(_.uC(r[g]))g++,V.JSC$9287_pos_++;else break;return g<n}
function I(){for(var P;;){P=r[g++];if(!P)break;V.JSC$9287_pos_++;switch(V.state_){case w.INIT:P==="{"?V.state_=w.OBJECT_OPEN:P==="["?V.state_=w.ARRAY_OPEN:_.uC(P)||rx(V,r,g);continue;case w.KEY_START:case w.OBJECT_OPEN:if(_.uC(P))continue;if(V.state_===w.KEY_START)S.push(w.KEY_END);else if(P==="}"){Y("{}");V.state_=C();continue}else S.push(w.OBJECT_END);P==='"'?V.state_=w.STRING:rx(V,r,g);continue;case w.KEY_END:case w.OBJECT_END:if(_.uC(P))continue;P===":"?(V.state_===w.OBJECT_END&&(S.push(w.OBJECT_END),
V.depth_++),V.state_=w.VALUE):P==="}"?(V.depth_--,Y(),V.state_=C()):P===","?(V.state_===w.OBJECT_END&&S.push(w.OBJECT_END),V.state_=w.KEY_START):rx(V,r,g);continue;case w.ARRAY_OPEN:case w.VALUE:if(_.uC(P))continue;if(V.state_===w.ARRAY_OPEN)if(V.depth_++,V.state_=w.VALUE,P==="]"){V.depth_--;if(V.depth_===0){V.state_=w.ARRAY_END;return}Y("[]");V.state_=C();continue}else S.push(w.ARRAY_END);P==='"'?V.state_=w.STRING:P==="{"?V.state_=w.OBJECT_OPEN:P==="["?V.state_=w.ARRAY_OPEN:P==="t"?V.state_=w.TRUE1:
P==="f"?V.state_=w.FALSE1:P==="n"?V.state_=w.NULL1:P!=="-"&&("0123456789".indexOf(P)!==-1?V.state_=w.NUM_DIGIT:rx(V,r,g));continue;case w.ARRAY_END:if(P===",")S.push(w.ARRAY_END),V.state_=w.VALUE,V.depth_===1&&(z=g);else if(P==="]"){V.depth_--;if(V.depth_===0)return;Y();V.state_=C()}else if(_.uC(P))continue;else rx(V,r,g);continue;case w.STRING:var W=g;a:for(;;){for(;V.unicodeCount_>0;)if(P=r[g++],V.unicodeCount_===4?V.unicodeCount_=0:V.unicodeCount_++,!P)break a;if(P==='"'&&!V.slashed_){V.state_=
C();break}if(P==="\\"&&!V.slashed_&&(V.slashed_=!0,P=r[g++],!P))break;if(V.slashed_)if(V.slashed_=!1,P==="u"&&(V.unicodeCount_=1),P=r[g++])continue;else break;h.lastIndex=g;P=h.exec(r);if(!P){g=r.length+1;break}g=P.index+1;P=r[P.index];if(!P)break}V.JSC$9287_pos_+=g-W;continue;case w.TRUE1:if(!P)continue;P==="r"?V.state_=w.TRUE2:rx(V,r,g);continue;case w.TRUE2:if(!P)continue;P==="u"?V.state_=w.TRUE3:rx(V,r,g);continue;case w.TRUE3:if(!P)continue;P==="e"?V.state_=C():rx(V,r,g);continue;case w.FALSE1:if(!P)continue;
P==="a"?V.state_=w.FALSE2:rx(V,r,g);continue;case w.FALSE2:if(!P)continue;P==="l"?V.state_=w.FALSE3:rx(V,r,g);continue;case w.FALSE3:if(!P)continue;P==="s"?V.state_=w.FALSE4:rx(V,r,g);continue;case w.FALSE4:if(!P)continue;P==="e"?V.state_=C():rx(V,r,g);continue;case w.NULL1:if(!P)continue;P==="u"?V.state_=w.NULL2:rx(V,r,g);continue;case w.NULL2:if(!P)continue;P==="l"?V.state_=w.NULL3:rx(V,r,g);continue;case w.NULL3:if(!P)continue;P==="l"?V.state_=C():rx(V,r,g);continue;case w.NUM_DECIMAL_POINT:P===
"."?V.state_=w.NUM_DIGIT:rx(V,r,g);continue;case w.NUM_DIGIT:if("0123456789.eE+-".indexOf(P)!==-1)continue;else g--,V.JSC$9287_pos_--,V.state_=C();continue;default:rx(V,r,g)}}}
function C(){var P=S.pop();return P!=null?P:w.VALUE}
function Y(P){V.depth_>1||(P||(P=z===-1?V.JSC$9287_buffer_+r.substring(d,g):r.substring(z,g)),V.deliverMessageAsRawString_?V.result_.push(P):V.result_.push(JSON.parse(P)),z=g)}
for(var V=this,S=V.stack_,h=V.stringInputPattern_,w=oNT,n=r.length,d=0,z=-1,g=0;g<n;)switch(V.streamState_){case 3:return rx(V,r,g),null;case 2:return f()&&rx(V,r,g),null;case 0:if(f()){var X=r[g++];V.JSC$9287_pos_++;if(X==="["){V.streamState_=1;d=g;V.state_=w.ARRAY_OPEN;continue}else rx(V,r,g)}return null;case 1:return I(),V.depth_===0&&V.state_==w.ARRAY_END?(V.streamState_=2,V.JSC$9287_buffer_=r.substring(g)):V.JSC$9287_buffer_=z===-1?V.JSC$9287_buffer_+r.substring(d):r.substring(z),V.result_.length>
0?(X=V.result_,V.result_=[],X):null}return null};_.rh(_.uK,zU);Dm.prototype.getValue=function(){return this.JSC$9295_value_};
Dm.prototype.clone=function(){return new Dm(this.JSC$9295_key_,this.JSC$9295_value_)};var f7=function(r){this.nodes_=[];if(r)a:{if(r instanceof f7){var f=r.getKeys();r=r.getValues();if(this.getCount()<=0){for(var I=this.nodes_,C=0;C<f.length;C++)I.push(new Dm(f[C],r[C]));break a}}else f=_.X0.getKeys(r),r=_.X0.getValues(r);for(I=0;I<f.length;I++)this.insert(f[I],r[I])}};
_.l=f7.prototype;_.l.insert=function(r,f){var I=this.nodes_;I.push(new Dm(r,f));r=I.length-1;f=this.nodes_;for(I=f[r];r>0;){var C=r-1>>1;if(f[C].JSC$9295_key_>I.JSC$9295_key_)f[r]=f[C],r=C;else break}f[r]=I};
_.l.remove=function(){var r=this.nodes_,f=r.length,I=r[0];if(!(f<=0)){if(f==1)r.length=0;else{r[0]=r.pop();r=0;f=this.nodes_;for(var C=f.length,Y=f[r];r<C>>1;){var V=r*2+1,S=r*2+2;V=S<C&&f[S].JSC$9295_key_<f[V].JSC$9295_key_?S:V;if(f[V].JSC$9295_key_>Y.JSC$9295_key_)break;f[r]=f[V];r=V}f[r]=Y}return I.getValue()}};
_.l.peek=function(){var r=this.nodes_;if(r.length!=0)return r[0].getValue()};
_.l.getValues=function(){for(var r=this.nodes_,f=[],I=r.length,C=0;C<I;C++)f.push(r[C].getValue());return f};
_.l.getKeys=function(){for(var r=this.nodes_,f=[],I=r.length,C=0;C<I;C++)f.push(r[C].JSC$9295_key_);return f};
_.l.containsValue=function(r){return this.nodes_.some(function(f){return f.getValue()==r})};
_.l.containsKey=function(r){return this.nodes_.some(function(f){return f.JSC$9295_key_==r})};
_.l.clone=function(){return new f7(this)};
_.l.getCount=function(){return this.nodes_.length};
_.l.isEmpty=function(){return this.nodes_.length===0};
_.l.clear=function(){this.nodes_.length=0};_.IE=function(r,f){this.JSC$9301_map_={};this.JSC$9301_keys_=[];this.version_=this.size=0;var I=arguments.length;if(I>1){if(I%2)throw Error("oa");for(var C=0;C<I;C+=2)this.set(arguments[C],arguments[C+1])}else r&&this.addAll(r)};
_.l=_.IE.prototype;_.l.getCount=function(){return this.size};
_.l.getValues=function(){C7(this);for(var r=[],f=0;f<this.JSC$9301_keys_.length;f++)r.push(this.JSC$9301_map_[this.JSC$9301_keys_[f]]);return r};
_.l.getKeys=function(){C7(this);return this.JSC$9301_keys_.concat()};
_.l.containsKey=function(r){return this.has(r)};
_.l.has=function(r){return Y7(this.JSC$9301_map_,r)};
_.l.containsValue=function(r){for(var f=0;f<this.JSC$9301_keys_.length;f++){var I=this.JSC$9301_keys_[f];if(Y7(this.JSC$9301_map_,I)&&this.JSC$9301_map_[I]==r)return!0}return!1};
_.l.equals=function(r,f){if(this===r)return!0;if(this.size!=r.getCount())return!1;f=f||Qs3;C7(this);for(var I,C=0;I=this.JSC$9301_keys_[C];C++)if(!f(this.get(I),r.get(I)))return!1;return!0};
var Qs3=function(r,f){return r===f};
_.IE.prototype.isEmpty=function(){return this.size==0};
_.IE.prototype.clear=function(){this.JSC$9301_map_={};this.version_=this.size=this.JSC$9301_keys_.length=0};
_.IE.prototype.remove=function(r){return this.delete(r)};
_.IE.prototype.delete=function(r){return Y7(this.JSC$9301_map_,r)?(delete this.JSC$9301_map_[r],--this.size,this.version_++,this.JSC$9301_keys_.length>2*this.size&&C7(this),!0):!1};
var C7=function(r){if(r.size!=r.JSC$9301_keys_.length){for(var f=0,I=0;f<r.JSC$9301_keys_.length;){var C=r.JSC$9301_keys_[f];Y7(r.JSC$9301_map_,C)&&(r.JSC$9301_keys_[I++]=C);f++}r.JSC$9301_keys_.length=I}if(r.size!=r.JSC$9301_keys_.length){f={};for(C=I=0;I<r.JSC$9301_keys_.length;){var Y=r.JSC$9301_keys_[I];Y7(f,Y)||(r.JSC$9301_keys_[C++]=Y,f[Y]=1);I++}r.JSC$9301_keys_.length=C}};
_.l=_.IE.prototype;_.l.get=function(r,f){return Y7(this.JSC$9301_map_,r)?this.JSC$9301_map_[r]:f};
_.l.set=function(r,f){Y7(this.JSC$9301_map_,r)||(this.size+=1,this.JSC$9301_keys_.push(r),this.version_++);this.JSC$9301_map_[r]=f};
_.l.addAll=function(r){if(r instanceof _.IE)for(var f=r.getKeys(),I=0;I<f.length;I++)this.set(f[I],r.get(f[I]));else for(f in r)this.set(f,r[f])};
_.l.forEach=function(r,f){for(var I=this.getKeys(),C=0;C<I.length;C++){var Y=I[C],V=this.get(Y);r.call(f,V,Y,this)}};
_.l.clone=function(){return new _.IE(this)};
_.l.transpose=function(){for(var r=new _.IE,f=0;f<this.JSC$9301_keys_.length;f++){var I=this.JSC$9301_keys_[f];r.set(this.JSC$9301_map_[I],I)}return r};
_.l.keys=function(){return glX(this.__iterator__(!0)).toEs6()};
_.l.values=function(){return glX(this.__iterator__(!1)).toEs6()};
_.l.entries=function(){var r=this;return ek8(this.keys(),function(f){return[f,r.get(f)]})};
_.l.__iterator__=function(r){C7(this);var f=0,I=this.version_,C=this,Y=new rf;Y.next=function(){if(I!=C.version_)throw Error("pe");if(f>=C.JSC$9301_keys_.length)return fV;var V=C.JSC$9301_keys_[f++];return Ij(r?V:C.JSC$9301_map_[V])};
return Y};
var Y7=function(r,f){return Object.prototype.hasOwnProperty.call(r,f)};var Zxq=function(){this.JSC$9304_map_=new _.IE;this.JSC$9304_head_=new AGX("");this.JSC$9304_head_.next=this.JSC$9304_head_.prev=this.JSC$9304_head_},GX3=function(r,f){if(f=r.JSC$9304_map_.get(f))f.remove(),r.insert_(f);
return f};
_.l=Zxq.prototype;_.l.get=function(r,f){return(r=GX3(this,r))?r.value:f};
_.l.set=function(r,f){var I=GX3(this,r);I?I.value=f:(I=new AGX(r,f),this.JSC$9304_map_.set(r,I),this.insert_(I))};
_.l.peek=function(){return this.JSC$9304_head_.next.value};
_.l.shift=function(){return kX4(this,this.JSC$9304_head_.next)};
_.l.pop=function(){return kX4(this,this.JSC$9304_head_.prev)};
_.l.remove=function(r){return(r=this.JSC$9304_map_.get(r))?(this.removeNode(r),!0):!1};
_.l.removeNode=function(r){r.remove();this.JSC$9304_map_.remove(r.key)};
_.l.getCount=function(){return this.JSC$9304_map_.getCount()};
_.l.isEmpty=function(){return this.JSC$9304_map_.isEmpty()};
_.l.getKeys=function(){return this.map(function(r,f){return f})};
_.l.getValues=function(){return this.map(function(r){return r})};
_.l.contains=function(r){return this.some(function(f){return f==r})};
_.l.containsKey=function(r){return this.JSC$9304_map_.containsKey(r)};
_.l.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9304_head_.prev)};
_.l.forEach=function(r,f){for(var I=this.JSC$9304_head_.next;I!=this.JSC$9304_head_;I=I.next)r.call(f,I.value,I.key,this)};
_.l.map=function(r,f){for(var I=[],C=this.JSC$9304_head_.next;C!=this.JSC$9304_head_;C=C.next)I.push(r.call(f,C.value,C.key,this));return I};
_.l.some=function(r,f){for(var I=this.JSC$9304_head_.next;I!=this.JSC$9304_head_;I=I.next)if(r.call(f,I.value,I.key,this))return!0;return!1};
_.l.every=function(r,f){for(var I=this.JSC$9304_head_.next;I!=this.JSC$9304_head_;I=I.next)if(!r.call(f,I.value,I.key,this))return!1;return!0};
_.l.insert_=function(r){r.next=this.JSC$9304_head_.next;r.prev=this.JSC$9304_head_;this.JSC$9304_head_.next=r;for(r.next.prev=r;this.getCount()>40;)this.removeNode(this.JSC$9304_head_.prev)};
var kX4=function(r,f){r.JSC$9304_head_!=f&&r.removeNode(f);return f.value},AGX=function(r,f){this.key=r;
this.value=f};
AGX.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var Bmq=function(){f7.apply(this,arguments)};
_.t(Bmq,f7);Bmq.prototype.enqueue=function(r,f){this.insert(r,f)};var q$C=function(){var r=Error();r.name="SecurityError";throw r;},jfP=function(){return{get opener(){return null},
get closed(){return!0},get location(){q$C()},get document(){q$C()},postMessage:function(){},
close:function(){},
focus:function(){}}};var owE={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 ZGu={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 uiq={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(ZGu).join("|");var Dv_=function(){function r(h){h.substr(-1)!==";"&&(h+=";");return S(h)}
for(var f=Object.keys(uiq).sort(AFu),I=Object.keys(ZGu).sort(AFu),C=0,Y=0;C<I.length;C++)f[Y]===I[C]?(I[C]+=";?",Y++):I[C]+=";";var V=new RegExp("&(?:"+I.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),S=GWB();return function(h){return String(h).replace(V,r)}}();/*

 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 r34={};var f5V=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"),I5C=/[\\&]/,CTs=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),Y6C=RegExp('[&<>"]',"g"),l53=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),V$q=function(r){return r.charCodeAt(0)===92?r.charAt(1):Dv_(r)},EYU=function(r){return I5C.test(r)?r.replace(CTs,V$q):r},S63=function(r){try{var f,I="";
if(typeof Y!=="string"){var C=Y;var Y=";/?:@&=+$,-_.!~*'()#"}typeof C==="undefined"&&(C=!0);var V,S=r34[Y];if(S)var h=S;else{S=r34[Y]=[];for(V=0;V<128;V++){var w=String.fromCharCode(V);/^[0-9a-z]$/i.test(w)?S.push(w):S.push("%"+("0"+V.toString(16).toUpperCase()).slice(-2))}for(V=0;V<Y.length;V++)S[Y.charCodeAt(V)]=Y[V];h=S}var n=0;for(f=r.length;n<f;n++){var d=r.charCodeAt(n);if(C&&d===37&&n+2<f&&/^[0-9a-f]{2}$/i.test(r.slice(n+1,n+3)))I+=r.slice(n,n+3),n+=2;else if(d<128)I+=h[d];else if(d>=55296&&
d<=57343){if(d>=55296&&d<=56319&&n+1<f){var z=r.charCodeAt(n+1);if(z>=56320&&z<=57343){I+=encodeURIComponent(r[n]+r[n+1]);n++;continue}}I+="%EF%BF%BD"}else I+=encodeURIComponent(r[n])}return I}catch(g){return r}},xdX=function(r){switch(r){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return r}},lN=function(r,f){return Y6C.test(r)?f?r.replace(l53,xdX):r.replace(Y6C,xdX):r};/*

 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 Vm;if(String.fromCodePoint)Vm=function(r){try{return String.fromCodePoint(r)}catch(f){if(f instanceof RangeError)return String.fromCharCode(65533);throw f;}};
else{var hss=String.fromCharCode,wIU=Math.floor;Vm=function(){var r=[],f=-1,I=arguments.length;if(!I)return"";for(var C="";++f<I;){var Y=Number(arguments[f]);if(!isFinite(Y)||Y<0||Y>1114111||wIU(Y)!==Y)return String.fromCharCode(65533);if(Y<=65535)r.push(Y);else{Y-=65536;var V=(Y>>10)+55296;Y=Y%1024+56320;r.push(V,Y)}if(f+1===I||r.length>16384)C+=hss.apply(null,r),r.length=0}return C}};var bvq=function(r){this.root=this.current=r;this.entering=!0};
bvq.prototype.next=function(){var r=this.current,f=this.entering;if(r===null)return null;a:switch(r._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 I=!0;break a;default:I=!1}f&&I?r._firstChild?(this.current=r._firstChild,this.entering=!0):this.entering=!1:r===this.root?this.current=null:r._next===null?(this.current=
r._parent,this.entering=!1):(this.current=r._next,this.entering=!0);return{entering:f,node:r}};
var CA=function(r,f){this._type=r;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=f;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};
CA.prototype.appendChild=function(r){EK(r);r._parent=this;this._lastChild?(this._lastChild._next=r,r._prev=this._lastChild):this._firstChild=r;this._lastChild=r};
var EK=function(r){r._prev?r._prev._next=r._next:r._parent&&(r._parent._firstChild=r._next);r._next?r._next._prev=r._prev:r._parent&&(r._parent._lastChild=r._prev);r._parent=null;r._next=null;r._prev=null},pIC=function(r,f){EK(f);
f._next=r._next;f._next&&(f._next._prev=f);f._prev=r;r._next=f;f._parent=r._parent;f._next||(f._parent._lastChild=f)};
CA.prototype.insertBefore=function(r){EK(r);r._prev=this._prev;r._prev&&(r._prev._next=r);r._next=this;this._prev=r;r._parent=this._parent;r._prev||(r._parent._firstChild=r)};
_.OC.Object.defineProperties(CA.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(r){this._literal=r}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(r){this._destination=r}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(r){this._title=r}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(r){this._info=r}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(r){this._level=r}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(r){this._listData.type=r}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(r){this._listData.tight=r}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(r){this._listData.start=r}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(r){this._onEnter=r}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(r){this._onExit=r}}});var kWd=/[ \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,
BMu={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 nYD=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]/),
dd3=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),zsU=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),M$4=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),gY4=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),a5B=/`+/,XI4=/^`+/,NF3=/\.\.\./g,$dC=/--+/g,FvV=/^<([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])?)*)>/,
PTV=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,t$4=/^ *(?:\n *)?/,TFB=/^[ \t\n\x0b\x0c\x0d]/,c3X=/[ \t\n\x0b\x0c\x0d]+/g,WvB=/^\s/,Lvg=/ *$/,mds=/^ */,esq=/^ *(?:\n|$)/,J3_=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),jB_=/^[^\n`\[\]\\!<&*_'"]+/m,SZ=function(r){var f=new CA("text");f._literal=r;return f},x7=function(r){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=r||{}};
x7.prototype.match=function(r){r=r.exec(this.subject.slice(this.pos));if(r===null)return null;this.pos+=r.index+r[0].length;return r[0]};
x7.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var hP=function(r){r.match(t$4);return!0},HvU=function(r,f,I){var C=0;
var Y=r.pos;if(f===39||f===34)C++,r.pos++;else for(;r.peek()===f;)C++,r.pos++;if(C===0)C=null;else{var V=Y===0?"\n":r.subject.charAt(Y-1);var S=r.peek();S=S===-1?"\n":Vm(S);var h=WvB.test(S);S=nYD.test(S);var w=WvB.test(V);var n=nYD.test(V);V=!h&&!(S&&!w&&!n);h=!w&&!(n&&!h&&!S);f===95?(w=V&&(!h||n),S=h&&(!V||S)):(w=f===39||f===34?V&&!h:V,S=h);r.pos=Y;C={numdelims:C,can_open:w,can_close:S}}if(!C)return!1;Y=C.numdelims;S=r.pos;r.pos+=Y;S=f===39?"\u2019":f===34?"\u201c":r.subject.slice(S,r.pos);S=SZ(S);
I.appendChild(S);r.delimiters={cc:f,numdelims:Y,origdelims:Y,node:S,previous:r.delimiters,next:null,can_open:C.can_open,can_close:C.can_close};r.delimiters.previous!==null&&(r.delimiters.previous.next=r.delimiters);return!0},ivU=function(r,f){f.previous!==null&&(f.previous.next=f.next);
f.next===null?r.delimiters=f.previous:f.next.previous=f.previous},RsV=function(r,f){var I,C,Y=[],V=!1;
Y[95]=f;Y[42]=f;Y[39]=f;Y[34]=f;for(I=r.delimiters;I!==null&&I.previous!==f;)I=I.previous;for(;I!==null;){var S=I.cc;if(I.can_close){var h=I.previous;for(C=!1;h!==null&&h!==f&&h!==Y[S];){V=(I.can_open||h.can_close)&&(h.origdelims+I.origdelims)%3===0;if(h.cc===I.cc&&h.can_open&&!V){C=!0;break}h=h.previous}var w=I;if(S===42||S===95)if(C){var n=I.numdelims>=2&&h.numdelims>=2?2:1;var d=h.node;var z=I.node;h.numdelims-=n;I.numdelims-=n;d._literal=d._literal.slice(0,d._literal.length-n);z._literal=z._literal.slice(0,
z._literal.length-n);var g=new CA(n===1?"emph":"strong");for(n=d._next;n&&n!==z;){var X=n._next;EK(n);g.appendChild(n);n=X}pIC(d,g);n=h;X=I;n.next!==X&&(n.next=X,X.previous=n);h.numdelims===0&&(EK(d),ivU(r,h));I.numdelims===0&&(EK(z),h=I.next,ivU(r,I),I=h)}else I=I.next;else S===39?(I.node._literal="\u2019",C&&(h.node._literal="\u2018"),I=I.next):S===34&&(I.node._literal="\u201d",C&&(h.node.literal="\u201c"),I=I.next);C||V||(Y[S]=w.previous,w.can_open||ivU(r,w))}else I=I.next}for(;r.delimiters!==
null&&r.delimiters!==f;)ivU(r,r.delimiters)},vYq=function(r){r=r.match(dd3);
return r===null?null:EYU(r.substr(1,r.length-2))},KvV=function(r){var f=r.match(zsU);
if(f===null){f=r.pos;for(var I=0,C;(C=r.peek())!==-1;)if(C===92)r.pos+=1,r.peek()!==-1&&(r.pos+=1);else if(C===40)r.pos+=1,I+=1;else if(C===41)if(I<1)break;else r.pos+=1,--I;else if(TFB.exec(Vm(C))!==null)break;else r.pos+=1;f=r.subject.substr(f,r.pos-f);return S63(EYU(f))}return S63(EYU(f.substr(1,f.length-2)))},y3B=function(r){r=r.match(J3_);
return r===null||r.length>1001?0:r.length},UdD=function(r,f,I,C){r.brackets!==null&&(r.brackets.bracketAfter=!0);
r.brackets={node:f,previous:r.brackets,previousDelimiter:r.delimiters,index:I,image:C,active:!0}},sBV=function(r,f){var I;
return(I=r.match(jB_))?(r.options.smart?f.appendChild(SZ(I.replace(NF3,"\u2026").replace($dC,function(C){var Y=0,V=0;C.length%3===0?V=C.length/3:C.length%2===0?Y=C.length/2:C.length%3===2?(Y=1,V=(C.length-2)/3):(Y=2,V=(C.length-4)/3);C="";var S;for(S=0;S<V;S++)C+="\u2014";for(S=0;S<Y;S++)C+="\u2013";return C}))):f.appendChild(SZ(I)),!0):!1},Ovq=function(r,f,I){r.subject=f;
r.pos=0;f=r.pos;var C=y3B(r);if(C===0)return 0;var Y=r.subject.substr(0,C);if(r.peek()===58)r.pos++;else return r.pos=f,0;hP(r);C=KvV(r);if(C===null||C.length===0)return r.pos=f,0;var V=r.pos;hP(r);var S=vYq(r);S===null&&(S="",r.pos=V);var h=!0;r.match(esq)===null&&(S===""?h=!1:(S="",r.pos=V,h=r.match(esq)!==null));if(!h)return r.pos=f,0;Y=qdR(Y);if(Y==="")return r.pos=f,0;I[Y]||(I[Y]={destination:C,title:S});return r.pos-f},oYg=function(r,f){var I,C=r.peek();
if(C===-1)return!1;switch(C){case 10:r.pos+=1;if((I=f._lastChild)&&I.type==="text"&&I._literal[I._literal.length-1]===" "){var Y=I._literal[I._literal.length-2]===" ";I._literal=I._literal.replace(Lvg,"");f.appendChild(new CA(Y?"linebreak":"softbreak"))}else f.appendChild(new CA("softbreak"));r.match(mds);I=!0;break;case 92:I=r.subject;r.pos+=1;r.peek()===10?(r.pos+=1,I=new CA("linebreak"),f.appendChild(I)):M$4.test(I.charAt(r.pos))?(f.appendChild(SZ(I.charAt(r.pos))),r.pos+=1):f.appendChild(SZ("\\"));
I=!0;break;case 96:a:if(I=r.match(XI4),I===null)I=!1;else{Y=r.pos;for(var V;(V=r.match(a5B))!==null;)if(V===I){V=new CA("code");V._literal=r.subject.slice(Y,r.pos-I.length).trim().replace(c3X," ");f.appendChild(V);I=!0;break a}r.pos=Y;f.appendChild(SZ(I));I=!0}break;case 42:case 95:I=HvU(r,C,f);break;case 39:case 34:I=r.options.smart&&HvU(r,C,f);break;case 91:I=r.pos;r.pos+=1;Y=SZ("[");f.appendChild(Y);UdD(r,Y,I,!1);I=!0;break;case 33:I=r.pos;r.pos+=1;r.peek()===91?(r.pos+=1,Y=SZ("!["),f.appendChild(Y),
UdD(r,Y,I+1,!0)):f.appendChild(SZ("!"));I=!0;break;case 93:var S,h=!1,w;r.pos+=1;var n=r.pos;Y=r.brackets;if(Y===null)f.appendChild(SZ("]"));else if(Y.active){I=Y.image;var d=r.pos;r.peek()===40&&(r.pos++,hP(r)&&(V=KvV(r))!==null&&hP(r)&&(TFB.test(r.subject.charAt(r.pos-1))&&(S=vYq(r)),1)&&hP(r)&&r.peek()===41?(r.pos+=1,h=!0):r.pos=d);if(!h){var z=r.pos,g=y3B(r);g>2?w=r.subject.slice(z,z+g):Y.bracketAfter||(w=r.subject.slice(Y.index,n));g===0&&(r.pos=d);w&&(w=r.refmap[qdR(w)])&&(V=w.destination,S=
w.title,h=!0)}if(h){n=new CA(I?"image":"link");n._destination=V;n._title=S||"";for(V=Y.node._next;V;)S=V._next,EK(V),n.appendChild(V),V=S;f.appendChild(n);RsV(r,Y.previousDelimiter);r.brackets=r.brackets.previous;EK(Y.node);if(!I)for(Y=r.brackets;Y!==null;)Y.image||(Y.active=!1),Y=Y.previous}else r.brackets=r.brackets.previous,r.pos=n,f.appendChild(SZ("]"))}else f.appendChild(SZ("]")),r.brackets=r.brackets.previous;I=!0;break;case 60:(I=r.match(FvV))?(I=I.slice(1,I.length-1),Y=new CA("link"),Y._destination=
S63("mailto:"+I),Y._title="",Y.appendChild(SZ(I)),f.appendChild(Y),I=!0):(I=r.match(PTV))?(I=I.slice(1,I.length-1),Y=new CA("link"),Y._destination=S63(I),Y._title="",Y.appendChild(SZ(I)),f.appendChild(Y),I=!0):I=!1;I||(I=r.match(f5V),I===null?I=!1:(Y=new CA("html_inline"),Y._literal=I,f.appendChild(Y),I=!0));break;case 38:(I=r.match(gY4))?(f.appendChild(SZ(Dv_(I))),I=!0):I=!1;break;default:I=sBV(r,f)}I||(r.pos+=1,f.appendChild(SZ(Vm(C))));return!0};
x7.prototype.parseInlines=function(r){this.subject=r._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;oYg(this,r););r._string_content=null;RsV(this,null)};
x7.prototype.parse=x7.prototype.parseInlines;var QBB=[/./,/^<(?: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")],A3q=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],ZvX=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,Gig=/^[#`~*+_=<>0-9-\|]|\|/,kis=/[^ \t\f\v\r\n]/,BF8=/^[*+-]/,q6V=/^(\d{1,9})([.)])/,u24=/^#{1,6}(?:[ \t]+|$)/,Dd3=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,r88=/^(?:`{3,}|~{3,})(?= *$)/,fbs=/^(?:=+|-+)[ \t]*$/,Ib8=/\r\n|\n|\r/,DiU=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,rsP=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,CB3={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(r){return r!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(r,f){for(r=f._firstChild;r;){if(uCK(r)&&r._next){f._listData.tight=!1;break}for(var I=r._firstChild;I;){if(uCK(I)&&(r._next||I._next)){f._listData.tight=!1;break}I=I._next}r=r._next}},
canContain:function(r){return r==="item"},
acceptsLines:!1},block_quote:{continue:function(r){var f=r.currentLine;if(r.indented||fA(f,r.nextNonspace)!==62)return 1;wx(r);bN(r,1,!1);rd(fA(f,r.offset))&&bN(r,1,!0);return 0},
finalize:function(){},
canContain:function(r){return r!=="item"},
acceptsLines:!1},item:{continue:function(r,f){if(r.blank){if(f._firstChild==null)return 1;wx(r)}else if(r.indent>=f._listData.markerOffset+f._listData.padding)bN(r,f._listData.markerOffset+f._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(r){return r!=="item"&&!fnE(r)},
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(r,f){var I=r.currentLine,C=r.indent;if(f._isFenced){if((C=C<=3&&I.charAt(r.nextNonspace)===f._fenceChar&&I.slice(r.nextNonspace).match(r88))&&C[0].length>=f._fenceLength)return r.finalize(f,r.lineNumber),2;for(f=f._fenceOffset;f>0&&rd(fA(I,r.offset));)bN(r,1,!0),f--}else if(C>=4)bN(r,4,!0);else if(r.blank)wx(r);else return 1;return 0},
finalize:function(r,f){if(f._isFenced){var I=f._string_content,C=I.indexOf("\n");r=I.slice(0,C);I=I.slice(C+1);f.info=EYU(r.trim());f._literal=I}else f._literal=f._string_content.replace(/(\n *)+$/,"\n");f._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(r,f){return!r.blank||f._htmlBlockType!==6&&f._htmlBlockType!==7?0:1},
finalize:function(r,f){f._literal=f._string_content.replace(/(\n *)+$/,"");f._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(r){return r.blank?1:0},
finalize:function(r,f){for(var I,C=!1;fA(f._string_content,0)===91&&(I=Ovq(r.inlineParser,f._string_content,r.refmap));)f._string_content=f._string_content.slice(I),C=!0;C&&!kis.test(f._string_content)&&EK(f)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(r){return Io(r.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(r){return r=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(r,f){if(!f._rowIsDelimiter){r=f._isHeader?"th":"td";for(var I=f._parent._tableColumns,C=f._string_content,Y=0,V="",S,h=f._sourcepos[0][0];Y<C.length;){switch(C[Y]){case "|":S&&(S._string_content=V.trim(),V="",S=null,I--,I<=0&&(Y=C.length));break;default:if(!S){S=new CA(r,[[h,Y],[h,Y]]);var w=f._parent._columnAlignment,n=f._parent._tableColumns-I;w&&n<=w.length&&n>=0&&(S._alignment=w[n]);f.appendChild(S)}V+=C[Y];S._sourcepos[1][1]=Y}Y++}S&&(S._string_content=V.trim());f._string_content=
""}},
canContain:function(r){return r!=="row"},
acceptsLines:!1}},Yk3=[function(r){if(r.indented||fA(r.currentLine,r.nextNonspace)!==62)return 0;wx(r);bN(r,1,!1);rd(fA(r.currentLine,r.offset))&&bN(r,1,!0);p7(r);r.addChild("block_quote",r.nextNonspace);return 1},
function(r){var f;if(!r.indented&&(f=r.currentLine.slice(r.nextNonspace).match(u24))){wx(r);bN(r,f[0].length,!1);p7(r);var I=r.addChild("heading",r.nextNonspace);I.level=f[0].trim().length;I._string_content=r.currentLine.slice(r.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");bN(r,r.currentLine.length-r.offset);return 2}return 0},
function(r){var f;if(!r.indented&&(f=r.currentLine.slice(r.nextNonspace).match(Dd3))){var I=f[0].length;p7(r);var C=r.addChild("code_block",r.nextNonspace);C._isFenced=!0;C._fenceLength=I;C._fenceChar=f[0][0];C._fenceOffset=r.indent;wx(r);bN(r,I,!1);return 2}return 0},
function(r,f){if(!r.indented&&fA(r.currentLine,r.nextNonspace)===60){var I=r.currentLine.slice(r.nextNonspace),C;for(C=1;C<=7;C++)if(QBB[C].test(I)&&(C<7||f.type!=="paragraph"))return p7(r),r.addChild("html_block",r.offset)._htmlBlockType=C,2}return 0},
function(r,f){var I;if(!r.indented&&f.type==="paragraph"&&(I=r.currentLine.slice(r.nextNonspace).match(fbs))){p7(r);var C=new CA("heading",f.sourcepos);C.level=I[0][0]==="="?1:2;C._string_content=f._string_content;pIC(f,C);EK(f);r.tip=C;bN(r,r.currentLine.length-r.offset,!1);return 2}return 0},
function(r){return!r.indented&&ZvX.test(r.currentLine.slice(r.nextNonspace))?(p7(r),r.addChild("thematic_break",r.nextNonspace),bN(r,r.currentLine.length-r.offset,!1),2):0},
function(r,f){var I,C;if(!(C=r.indented&&f.type!=="list")){a:{var Y=f,V=r.currentLine.slice(r.nextNonspace);C={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:r.indent};if(I=V.match(BF8))C.type="bullet",C.bulletChar=I[0][0];else{if(!(I=V.match(q6V))||Y.type==="paragraph"&&I[1]!=="1"){I=null;break a}C.type="ordered";C.start=parseInt(I[1],10);C.delimiter=I[2]}var S=fA(r.currentLine,r.nextNonspace+I[0].length);if(S!==-1&&S!==9&&S!==32||Y.type==="paragraph"&&!r.currentLine.slice(r.nextNonspace+
I[0].length).match(kis))I=null;else{wx(r);bN(r,I[0].length,!0);Y=r.column;V=r.offset;do bN(r,1,!0),S=fA(r.currentLine,r.offset);while(r.column-Y<5&&rd(S));S=fA(r.currentLine,r.offset)===-1;var h=r.column-Y;h>=5||h<1||S?(C.padding=I[0].length+1,r.column=Y,r.offset=V,rd(fA(r.currentLine,r.offset))&&bN(r,1,!0)):C.padding=I[0].length+h;I=C}}C=!I}if(C)return 0;p7(r);(C=r.tip.type!=="list")||(f=f._listData,C=!(f.type===I.type&&f.delimiter===I.delimiter&&f.bulletChar===I.bulletChar));C&&(f=r.addChild("list",
r.nextNonspace),f._listData=I);f=r.addChild("item",r.nextNonspace);f._listData=I;return 1},
function(r){var f;return((f=r.options.shouldParseIndentAsCodeBlock)!=null?f:1)&&r.indented&&r.tip.type!=="paragraph"&&!r.blank?(bN(r,4,!0),p7(r),r.addChild("code_block",r.offset),2):0},
function(r,f){var I=Io(r.currentLine),C=Io(r.lookahead);if(I!==0&&C<0&&Math.abs(I)==Math.abs(C)&&!fnE(f.type)){p7(r);f=r.addChild("table",r.nextNonspace);f._tableRows=1;f._tableColumns=Math.abs(I);I=r.lookahead;if(rsP.test(I)){C=[];for(var Y=0,V=!1,S=0,h=void 0;Y<I.length;){var w=S>=3;switch(I[Y]){case "-":S++;break;case "|":V&&(C.push(h),h=void 0,S=0);V=!0;break;case ":":h||w||(h="left"),!h&&w&&(h="right"),h==="left"&&w&&(h="center")}Y++}I=C}else I=void 0;f._columnAlignment=I;f=r.addChild("row",
r.nextNonspace);f._isHeader=!0;bN(r,r.currentLine.length-r.offset,!1);f._string_content=r.currentLine;return 1}return 0},
function(r,f){if(f.type=="table"&&Io(r.currentLine)!==0){p7(r);var I=f;f=r.addChild("row",r.nextNonspace);Io(r.currentLine)<0?f._rowIsDelimiter=!0:I._tableRows+=1;bN(r,r.currentLine.length-r.offset,!1);f._string_content=r.currentLine;return 2}return 0}],twl=function(){var r={shouldParseIndentAsCodeBlock:!1};
r=r===void 0?{}:r;this.lastMatchedContainer=this.doc=InR();this.refmap={};this.lastLineLength=0;this.inlineParser=new x7(r);this.options=r;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=CB3;this.blockStarts=Yk3},lb3=function(r){r.partiallyConsumedTab&&(r.offset+=1,r.tip._string_content+=" ".repeat(4-r.column%
4));
r.tip._string_content+=r.currentLine.slice(r.offset)+"\n"};
twl.prototype.addChild=function(r,f){for(;!this.blocks[this.tip.type].canContain(r);)this.finalize(this.tip,this.lineNumber-1);r=new CA(r,[[this.lineNumber,f+1],[0,0]]);r._string_content="";this.tip.appendChild(r);return this.tip=r};
var p7=function(r){if(!r.allClosed){for(;r.oldtip!==r.lastMatchedContainer;){var f=r.oldtip._parent;r.finalize(r.oldtip,r.lineNumber-1);r.oldtip=f}r.allClosed=!0}},bN=function(r,f,I){for(var C=r.currentLine,Y,V;f>0&&(V=C[r.offset]);)V==="\t"?(Y=4-r.column%4,I?(r.partiallyConsumedTab=Y>f,Y=Y>f?f:Y,r.column+=Y,r.offset+=r.partiallyConsumedTab?0:1,f-=Y):(r.partiallyConsumedTab=!1,r.column+=Y,r.offset+=1,--f)):(r.partiallyConsumedTab=!1,r.offset+=1,r.column+=1,--f)},wx=function(r){r.offset=r.nextNonspace;
r.column=r.nextNonspaceColumn;r.partiallyConsumedTab=!1},Vu4=function(r){for(var f=r.currentLine,I=r.offset,C=r.column,Y;(Y=f.charAt(I))!=="";)if(Y===" ")I++,C++;
else if(Y==="\t")I++,C+=4-C%4;else break;r.blank=Y==="\n"||Y==="\r"||Y==="";r.nextNonspace=I;r.nextNonspaceColumn=C;r.indent=r.nextNonspaceColumn-r.column;r.indented=r.indent>=4};
twl.prototype.finalize=function(r,f){var I=r._parent;r._open=!1;r.sourcepos[1]=[f,this.lastLineLength];this.blocks[r.type].finalize(this,r);this.tip=I};
twl.prototype.parse=function(r){this.tip=this.doc=InR();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!r)return this.doc;this.options.time&&console.time("preparing input");var f=r.split(Ib8),I=f.length;r.charCodeAt(r.length-1)===10&&--I;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(r=0;r<I;r++)a:{var C=void 0,Y=f[r],V=f[r+1],S=!0,h=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;Y.indexOf("\x00")!==-1&&(Y=Y.replace(/\0/g,"\ufffd"));this.currentLine=Y;for(this.lookahead=V;(C=h._lastChild)&&C._open;){h=C;Vu4(this);switch(this.blocks[h.type].continue(this,h)){case 0:break;case 1:S=!1;break;case 2:this.lastLineLength=Y.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!S){h=h._parent;break}}this.allClosed=h===this.oldtip;this.lastMatchedContainer=
h;C=h.type!=="paragraph"&&CB3[h.type].acceptsLines;V=this.blockStarts;for(S=V.length;!C;){Vu4(this);if(!this.indented&&!Gig.test(Y.slice(this.nextNonspace))){wx(this);break}for(var w=0;w<S;){var n=V[w](this,h);if(n===1){h=this.tip;break}else if(n===2){h=this.tip;C=!0;break}else w++}if(w===S){wx(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){p7(this);this.blank&&h.lastChild&&(h.lastChild._lastLineBlank=!0);C=h.type;V=this.blank&&!(C==="block_quote"||C==="code_block"&&h._isFenced||
C==="item"&&!h._firstChild&&h.sourcepos[0][0]===this.lineNumber);for(S=h;S;)S._lastLineBlank=V,S=S._parent;this.blocks[C].acceptsLines?(lb3(this),C==="html_block"&&h._htmlBlockType>=1&&h._htmlBlockType<=5&&A3q[h._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(h,this.lineNumber)):this.offset<Y.length&&!this.blank&&(this.addChild("paragraph",this.offset),wx(this),lb3(this))}else lb3(this);this.lastLineLength=Y.length}for(;this.tip;)this.finalize(this.tip,I);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");Y=new bvq(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;I=Y.next();)f=I.node,r=f.type,I.entering||r!=="paragraph"&&r!=="heading"&&r!=="th"&&r!="td"||this.inlineParser.parse(f);this.options.time&&console.timeEnd("inline parsing");return this.doc};Cfd.prototype.render=function(r){r=new bvq(r);var f;this.buffer="";for(this.lastOut="\n";f=r.next();){var I=f.node.type;if(this[I])this[I](f.node,f.entering)}return this.buffer};
Cfd.prototype.out=function(r){n7(this,r)};
var n7=function(r,f){r.buffer+=f;r.lastOut=f};
Cfd.prototype.cr=function(){this.lastOut!=="\n"&&n7(this,"\n")};var EZq=/^javascript:|vbscript:|file:|data:/i,Sk8=/^data:image\/(?:png|gif|jpeg|webp)/i,xmC=function(r){return EZq.test(r)&&!Sk8.test(r)};
YA.prototype=Object.create(Cfd.prototype);_.l=YA.prototype;_.l.text=function(r){this.out(r.literal)};
_.l.html_inline=function(r){this.options.safe?n7(this,"\x3c!-- raw HTML omitted --\x3e"):n7(this,r.literal)};
_.l.html_block=function(r){this.cr();this.options.safe?n7(this,"\x3c!-- raw HTML omitted --\x3e"):n7(this,r.literal);this.cr()};
_.l.softbreak=function(){n7(this,this.options.softbreak)};
_.l.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.l.link=function(r,f){var I=this.attrs(r);f?(this.options.safe&&xmC(r.destination)||I.push(["href",lN(r.destination,!0)]),r.title&&I.push(["title",lN(r.title,!0)]),this.tag("a",I)):this.tag("/a")};
_.l.image=function(r,f){f?(this.disableTags===0&&(this.options.safe&&xmC(r.destination)?n7(this,'<img src="" alt="'):n7(this,'<img src="'+lN(r.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(r.title&&n7(this,'" title="'+lN(r.title,!0)),n7(this,'" />')))};
_.l.emph=function(r,f){this.tag(f?"em":"/em")};
_.l.strong=function(r,f){this.tag(f?"strong":"/strong")};
_.l.paragraph=function(r,f){var I=r.parent.parent;r=this.attrs(r);I!==null&&I.type==="list"&&I.listTight||(f?(this.cr(),this.tag("p",r)):(this.tag("/p"),this.cr()))};
_.l.heading=function(r,f){var I="h"+r.level;r=this.attrs(r);f?(this.cr(),this.tag(I,r)):(this.tag("/"+I),this.cr())};
_.l.code=function(r){this.tag("code");this.out(r.literal);this.tag("/code")};
_.l.code_block=function(r){var f=r.info?r.info.split(/\s+/):[],I=this.attrs(r);f.length>0&&f[0].length>0&&I.push(["class","language-"+lN(f[0],!0)]);this.cr();this.tag("pre");this.tag("code",I);this.out(r.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.l.thematic_break=function(r){r=this.attrs(r);this.cr();this.tag("hr",r,!0);this.cr()};
_.l.block_quote=function(r,f){r=this.attrs(r);f?(this.cr(),this.tag("blockquote",r)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.l.list=function(r,f){var I=r.listType==="bullet"?"ul":"ol",C=this.attrs(r);f?(r=r.listStart,r!==null&&r!==1&&C.push(["start",r.toString()]),this.cr(),this.tag(I,C)):(this.cr(),this.tag("/"+I));this.cr()};
_.l.item=function(r,f){r=this.attrs(r);f?this.tag("li",r):(this.tag("/li"),this.cr())};
_.l.custom_inline=function(r,f){f&&r.onEnter?n7(this,r.onEnter):!f&&r.onExit&&n7(this,r.onExit)};
_.l.custom_block=function(r,f){this.cr();f&&r.onEnter?n7(this,r.onEnter):!f&&r.onExit&&n7(this,r.onExit);this.cr()};
_.l.table=function(r,f){r=this.attrs(r);f?(this.cr(),this.tag("table",r)):(this.tag("/table"),this.cr())};
_.l.row=function(r,f){r._rowIsDelimiter||(r=this.attrs(r),f?this.tag("tr",r):this.tag("/tr"))};
_.l.td=function(r,f){var I=this.attrs(r);r._alignment&&I.push(["align",r._alignment]);f?this.tag("td",I):this.tag("/td")};
_.l.th=function(r,f){var I=this.attrs(r);r._alignment&&I.push(["align",r._alignment]);f?this.tag("th",I):this.tag("/th")};
_.l.out=function(r){n7(this,lN(r,!1))};
_.l.tag=function(r,f,I){if(!(this.disableTags>0)){this.buffer+="<"+r;if(f&&f.length>0){r=0;for(var C;(C=f[r])!==void 0;)this.buffer+=" "+C[0]+'="'+C[1]+'"',r++}I&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.l.attrs=function(r){var f=[];this.options.sourcepos&&(r=r.sourcepos)&&f.push(["data-sourcepos",String(r[0][0])+":"+String(r[0][1])+"-"+String(r[1][0])+":"+String(r[1][1])]);return f};
YA.prototype.text=YA.prototype.text;YA.prototype.html_inline=YA.prototype.html_inline;YA.prototype.html_block=YA.prototype.html_block;YA.prototype.softbreak=YA.prototype.softbreak;YA.prototype.linebreak=YA.prototype.linebreak;YA.prototype.link=YA.prototype.link;YA.prototype.image=YA.prototype.image;YA.prototype.emph=YA.prototype.emph;YA.prototype.strong=YA.prototype.strong;YA.prototype.paragraph=YA.prototype.paragraph;YA.prototype.heading=YA.prototype.heading;YA.prototype.code=YA.prototype.code;
YA.prototype.code_block=YA.prototype.code_block;YA.prototype.thematic_break=YA.prototype.thematic_break;YA.prototype.block_quote=YA.prototype.block_quote;YA.prototype.list=YA.prototype.list;YA.prototype.item=YA.prototype.item;YA.prototype.custom_inline=YA.prototype.custom_inline;YA.prototype.custom_block=YA.prototype.custom_block;YA.prototype.table=YA.prototype.table;YA.prototype.row=YA.prototype.row;YA.prototype.td=YA.prototype.td;YA.prototype.th=YA.prototype.th;YA.prototype.out=YA.prototype.out;
YA.prototype.tag=YA.prototype.tag;YA.prototype.attrs=YA.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 hh4,wlg,JrP;(function(){function r(L,T){return L<T?-1:L>T?1:L>=T?0:NaN}
function f(L){return function(T,H){return r(L(T),H)}}
function I(){for(var L=0,T=arguments.length,H={},G;L<T;++L){if(!(G=arguments[L]+"")||G in H)throw Error("re`"+G);H[G]=[]}return new C(H)}
function C(L){this._=L}
function Y(L,T){return L.trim().split(/^|\s+/).map(function(H){var G="",lU=H.indexOf(".");lU>=0&&(G=H.slice(lU+1),H=H.slice(0,lU));if(H&&!T.hasOwnProperty(H))throw Error("se`"+H);return{type:H,name:G}})}
function V(L,T,H){for(var G=0,lU=L.length;G<lU;++G)if(L[G].name===T){L[G]=n27;L=L.slice(0,G).concat(L.slice(G+1));break}H!=null&&L.push({name:T,value:H});return L}
function S(L){var T=L,H=T.indexOf(":");H>=0&&(T=L.slice(0,H))!=="xmlns"&&(L=L.slice(H+1));return U1.hasOwnProperty(T)?{space:U1[T],local:L}:L}
function h(L){return function(){var T=this.ownerDocument,H=this.namespaceURI;return H==="http://www.w3.org/1999/xhtml"&&T.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?T.createElement(L):T.createElementNS(H,L)}}
function w(L){return function(){return this.ownerDocument.createElementNS(L.space,L.local)}}
function n(L){L=S(L);return(L.local?w:h)(L)}
function d(){}
function z(L){return L==null?d:function(){return this.querySelector(L)}}
function g(L){return Array(L.length)}
function X(L,T){this.ownerDocument=L.ownerDocument;this.namespaceURI=L.namespaceURI;this._next=null;this._parent=L;this.__data__=T}
function P(L){return function(){return L}}
function W(L,T,H,G,lU,wR){for(var gR=0,TB,Dd=T.length,Bu=wR.length;gR<Bu;++gR)(TB=T[gR])?(TB.__data__=wR[gR],G[gR]=TB):H[gR]=new X(L,wR[gR]);for(;gR<Dd;++gR)if(TB=T[gR])lU[gR]=TB}
function m(L,T,H,G,lU,wR,gR){var TB,Dd,Bu={},rB=T.length,p8=wR.length,ZU=Array(rB),nq;for(TB=0;TB<rB;++TB)if(Dd=T[TB])ZU[TB]=nq="$"+gR.call(Dd,Dd.__data__,TB,T),nq in Bu?lU[TB]=Dd:Bu[nq]=Dd;for(TB=0;TB<p8;++TB)nq="$"+gR.call(L,wR[TB],TB,wR),(Dd=Bu[nq])?(G[TB]=Dd,Dd.__data__=wR[TB],Bu[nq]=null):H[TB]=new X(L,wR[TB]);for(TB=0;TB<rB;++TB)(Dd=T[TB])&&Bu[ZU[TB]]===Dd&&(lU[TB]=Dd)}
function v(L,T){return L<T?-1:L>T?1:L>=T?0:NaN}
function O(L){return function(){this.removeAttribute(L)}}
function k(L){return function(){this.removeAttributeNS(L.space,L.local)}}
function Z(L,T){return function(){this.setAttribute(L,T)}}
function Cw(L,T){return function(){this.setAttributeNS(L.space,L.local,T)}}
function rR(L,T){return function(){var H=T.apply(this,arguments);H==null?this.removeAttribute(L):this.setAttribute(L,H)}}
function EP(L,T){return function(){var H=T.apply(this,arguments);H==null?this.removeAttributeNS(L.space,L.local):this.setAttributeNS(L.space,L.local,H)}}
function Pu(L){return function(){this.style.removeProperty(L)}}
function Wu(L,T,H){return function(){this.style.setProperty(L,T,H)}}
function cu(L,T,H){return function(){var G=T.apply(this,arguments);G==null?this.style.removeProperty(L):this.style.setProperty(L,G,H)}}
function OP(L,T){return L.style.getPropertyValue(T)||(L.ownerDocument&&L.ownerDocument.defaultView||L.document&&L||L.defaultView).getComputedStyle(L,null).getPropertyValue(T)}
function iU(L){return function(){delete this[L]}}
function oR(L,T){return function(){this[L]=T}}
function vu(L,T){return function(){var H=T.apply(this,arguments);H==null?delete this[L]:this[L]=H}}
function wB(){this.textContent=""}
function qT(L){return function(){this.textContent=L}}
function gB(L){return function(){var T=L.apply(this,arguments);this.textContent=T==null?"":T}}
function C8(){this.innerHTML=""}
function Es(L){return function(){this.innerHTML=L}}
function J_(L){return function(){var T=L.apply(this,arguments);this.innerHTML=T==null?"":T}}
function xC(){return null}
function r2(){var L=this.parentNode;L&&L.removeChild(this)}
function F9(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function SK(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function FX(L,T,H){L=iV(L,T,H);return function(G){var lU=G.relatedTarget;lU&&(lU===this||lU.compareDocumentPosition(this)&8)||L.call(this,G)}}
function iV(L,T,H){return function(){L.call(this,this.__data__,T,H)}}
function s7(L){return L.trim().split(/^|\s+/).map(function(T){var H="",G=T.indexOf(".");G>=0&&(H=T.slice(G+1),T=T.slice(0,G));return{type:T,name:H}})}
function W4(L){return function(){var T=this.__on;if(T){for(var H=0,G=-1,lU=T.length,wR;H<lU;++H)(wR=T[H],L.type&&wR.type!==L.type||wR.name!==L.name)?T[++G]=wR:this.removeEventListener(wR.type,wR.listener,wR.capture);++G?T.length=G:delete this.__on}}}
function Qq(L,T,H){var G=v73.hasOwnProperty(L.type)?FX:iV;return function(lU,wR,gR){lU=this.__on;var TB;wR=G(T,wR,gR);if(lU){gR=0;for(var Dd=lU.length;gR<Dd;++gR)if((TB=lU[gR]).type===L.type&&TB.name===L.name){this.removeEventListener(TB.type,TB.listener,TB.capture);this.addEventListener(TB.type,TB.listener=wR,TB.capture=H);TB.value=T;return}}this.addEventListener(L.type,wR,H);TB={type:L.type,name:L.name,value:T,listener:wR,capture:H};lU?lU.push(TB):this.__on=[TB]}}
function Gs(L,T,H){var G=L.ownerDocument&&L.ownerDocument.defaultView||L.document&&L||L.defaultView,lU=G.CustomEvent;typeof lU==="function"?lU=new lU(T,H):(lU=G.document.createEvent("Event"),H?(lU.initEvent(T,H.bubbles,H.cancelable),lU.detail=H.detail):lU.initEvent(T,!1,!1));L.dispatchEvent(lU)}
function $C(L,T){return function(){return Gs(this,L,T)}}
function kq(L,T){return function(){return Gs(this,L,T.apply(this,arguments))}}
function XX(L,T){this._groups=L;this._parents=T}
function hU(){return new XX([[document.documentElement]],dB3)}
function P4(){this._="@"+(++zvi).toString(36)}
function N6(L,T,H){L.prototype=T.prototype=H;H.constructor=L}
function hg(L,T){L=Object.create(L.prototype);for(var H in T)L[H]=T[H];return L}
function pW(){}
function O7(L){var T;L=(L+"").trim().toLowerCase();return(T=M26.exec(L))?(T=parseInt(T[1],16),new AU(T>>8&15|T>>4&240,T>>4&15|T&240,(T&15)<<4|T&15,1)):(T=g2V.exec(L))?ak(parseInt(T[1],16)):(T=aR6.exec(L))?new AU(T[1],T[2],T[3],1):(T=XY3.exec(L))?new AU(T[1]*255/100,T[2]*255/100,T[3]*255/100,1):(T=Nei.exec(L))?Xo(T[1],T[2],T[3],T[4]):(T=$BU.exec(L))?Xo(T[1]*255/100,T[2]*255/100,T[3]*255/100,T[4]):(T=FYY.exec(L))?NU(T[1],T[2]/100,T[3]/100,1):(T=Pw2.exec(L))?NU(T[1],T[2]/100,T[3]/100,T[4]):Kiq.hasOwnProperty(L)?
ak(Kiq[L]):L==="transparent"?new AU(NaN,NaN,NaN,0):null}
function ak(L){return new AU(L>>16&255,L>>8&255,L&255,1)}
function Xo(L,T,H,G){G<=0&&(L=T=H=NaN);return new AU(L,T,H,G)}
function yq(L){L instanceof pW||(L=O7(L));if(!L)return new AU;L=L.rgb();return new AU(L.r,L.g,L.b,L.opacity)}
function T6(L,T,H,G){return arguments.length===1?yq(L):new AU(L,T,H,G==null?1:G)}
function AU(L,T,H,G){this.r=+L;this.g=+T;this.b=+H;this.opacity=+G}
function w2(L){L=Math.max(0,Math.min(255,Math.round(L)||0));return(L<16?"0":"")+L.toString(16)}
function NU(L,T,H,G){G<=0?L=T=H=NaN:H<=0||H>=1?L=T=NaN:T<=0&&(L=NaN);return new YB(L,T,H,G)}
function to(L){if(L instanceof YB)return new YB(L.h,L.s,L.l,L.opacity);L instanceof pW||(L=O7(L));if(!L)return new YB;if(L instanceof YB)return L;L=L.rgb();var T=L.r/255,H=L.g/255,G=L.b/255,lU=Math.min(T,H,G),wR=Math.max(T,H,G),gR=NaN,TB=wR-lU,Dd=(wR+lU)/2;TB?(gR=T===wR?(H-G)/TB+(H<G)*6:H===wR?(G-T)/TB+2:(T-H)/TB+4,TB/=Dd<.5?wR+lU:2-wR-lU,gR*=60):TB=Dd>0&&Dd<1?0:gR;return new YB(gR,TB,Dd,L.opacity)}
function dI(L,T,H,G){return arguments.length===1?to(L):new YB(L,T,H,G==null?1:G)}
function YB(L,T,H,G){this.h=+L;this.s=+T;this.l=+H;this.opacity=+G}
function k1(L,T,H){return(L<60?T+(H-T)*L/60:L<180?H:L<240?T+(H-T)*(240-L)/60:T)*255}
function z5(L){if(L instanceof X$)return new X$(L.l,L.a,L.b,L.opacity);if(L instanceof aD){if(isNaN(L.h))return new X$(L.l,0,0,L.opacity);var T=L.h*yPq;return new X$(L.l,Math.cos(T)*L.c,Math.sin(T)*L.c,L.opacity)}L instanceof AU||(L=yq(L));var H=l2(L.r),G=l2(L.g),lU=l2(L.b);T=Jm(.2225045*H+.7168786*G+.0606169*lU);if(H===G&&G===lU)var wR=H=T;else wR=Jm((.4360747*H+.3850649*G+.1430804*lU)/.96422),H=Jm((.0139322*H+.0971045*G+.7141733*lU)/.82521);return new X$(116*T-16,500*(wR-T),200*(T-H),L.opacity)}
function X$(L,T,H,G){this.l=+L;this.a=+T;this.b=+H;this.opacity=+G}
function Jm(L){return L>t23?Math.pow(L,1/3):L/Us3+sE4}
function UP(L){return L>Ec?L*L*L:Us3*(L-sE4)}
function dB(L){return 255*(L<=.0031308?12.92*L:1.055*Math.pow(L,1/2.4)-.055)}
function l2(L){return(L/=255)<=.04045?L/12.92:Math.pow((L+.055)/1.055,2.4)}
function Lj(L){if(L instanceof aD)return new aD(L.h,L.c,L.l,L.opacity);L instanceof X$||(L=z5(L));if(L.a===0&&L.b===0)return new aD(NaN,0,L.l,L.opacity);var T=Math.atan2(L.b,L.a)*O7U;return new aD(T<0?T+360:T,Math.sqrt(L.a*L.a+L.b*L.b),L.l,L.opacity)}
function b2(L,T,H,G){return arguments.length===1?Lj(L):new aD(L,T,H,G==null?1:G)}
function aD(L,T,H,G){this.h=+L;this.c=+T;this.l=+H;this.opacity=+G}
function z4(L,T,H,G){if(arguments.length===1){var lU=L;if(lU instanceof pq)lU=new pq(lU.h,lU.s,lU.l,lU.opacity);else{lU instanceof AU||(lU=yq(lU));var wR=lU.g/255,gR=lU.b/255,TB=(o7X*gR+lU.r/255*-1.7884503806-3.5172982438*wR)/(o7X+-1.7884503806-3.5172982438);gR-=TB;var Dd=(1.97294*(wR-TB)- -.29227*gR)/-.90649;gR=(wR=Math.sqrt(Dd*Dd+gR*gR)/(1.97294*TB*(1-TB)))?Math.atan2(Dd,gR)*O7U-120:NaN;lU=new pq(gR<0?gR+360:gR,wR,TB,lU.opacity)}}else lU=new pq(L,T,H,G==null?1:G);return lU}
function pq(L,T,H,G){this.h=+L;this.s=+T;this.l=+H;this.opacity=+G}
function tg(L,T,H,G,lU){var wR=L*L,gR=wR*L;return((1-3*L+3*wR-gR)*T+(4-6*wR+3*gR)*H+(1+3*L+3*wR-3*gR)*G+gR*lU)/6}
function Vq(L){return function(){return L}}
function N3(L,T){return function(H){return L+H*T}}
function zA(L,T,H){return L=Math.pow(L,H),T=Math.pow(T,H)-L,H=1/H,function(G){return Math.pow(L+G*T,H)}}
function RM(L,T){var H=T-L;return H?N3(L,H>180||H<-180?H-360*Math.round(H/360):H):Vq(isNaN(L)?T:L)}
function Ay(L){return(L=+L)===1?Rc:function(T,H){return H-T?zA(T,H,L):Vq(isNaN(T)?H:T)}}
function Rc(L,T){var H=T-L;return H?N3(L,H):Vq(isNaN(L)?T:L)}
function Mb(L){return function(T){var H=T.length,G=Array(H),lU=Array(H),wR=Array(H),gR;for(gR=0;gR<H;++gR){var TB=T6(T[gR]);G[gR]=TB.r||0;lU[gR]=TB.g||0;wR[gR]=TB.b||0}G=L(G);lU=L(lU);wR=L(wR);TB.opacity=1;return function(Dd){TB.r=G(Dd);TB.g=lU(Dd);TB.b=wR(Dd);return TB+""}}}
function hy(L,T){return L=+L,T-=L,function(H){return L+T*H}}
function qc(L){return function(){return L}}
function M6(L){return function(T){return L(T)+""}}
function ws(L,T){var H=b7c.lastIndex=pqw.lastIndex=0,G,lU,wR,gR=-1,TB=[],Dd=[];L+="";for(T+="";(G=b7c.exec(L))&&(lU=pqw.exec(T));)(wR=lU.index)>H&&(wR=T.slice(H,wR),TB[gR]?TB[gR]+=wR:TB[++gR]=wR),(G=G[0])===(lU=lU[0])?TB[gR]?TB[gR]+=lU:TB[++gR]=lU:(TB[++gR]=null,Dd.push({i:gR,x:hy(G,lU)})),H=pqw.lastIndex;H<T.length&&(wR=T.slice(H),TB[gR]?TB[gR]+=wR:TB[++gR]=wR);return TB.length<2?Dd[0]?M6(Dd[0].x):qc(T):(T=Dd.length,function(Bu){for(var rB=0,p8;rB<T;++rB)TB[(p8=Dd[rB]).i]=p8.x(Bu);return TB.join("")})}
function ja(L,T,H,G,lU,wR){var gR,TB,Dd;if(gR=Math.sqrt(L*L+T*T))L/=gR,T/=gR;if(Dd=L*H+T*G)H-=L*Dd,G-=T*Dd;if(TB=Math.sqrt(H*H+G*G))H/=TB,G/=TB,Dd/=TB;L*G<T*H&&(L=-L,T=-T,Dd=-Dd,gR=-gR);return{translateX:lU,translateY:wR,rotate:Math.atan2(T,L)*QEs,skewX:Math.atan(Dd)*QEs,scaleX:gR,scaleY:TB}}
function OR(L,T,H,G){function lU(Bu){return Bu.length?Bu.pop()+" ":""}
function wR(Bu,rB,p8,ZU,nq,g2){Bu!==p8||rB!==ZU?(nq=nq.push("translate(",null,T,null,H),g2.push({i:nq-4,x:hy(Bu,p8)},{i:nq-2,x:hy(rB,ZU)})):(p8||ZU)&&nq.push("translate("+p8+T+ZU+H)}
function gR(Bu,rB,p8,ZU){Bu!==rB?(Bu-rB>180?rB+=360:rB-Bu>180&&(Bu+=360),ZU.push({i:p8.push(lU(p8)+"rotate(",null,G)-2,x:hy(Bu,rB)})):rB&&p8.push(lU(p8)+"rotate("+rB+G)}
function TB(Bu,rB,p8,ZU){Bu!==rB?ZU.push({i:p8.push(lU(p8)+"skewX(",null,G)-2,x:hy(Bu,rB)}):rB&&p8.push(lU(p8)+"skewX("+rB+G)}
function Dd(Bu,rB,p8,ZU,nq,g2){Bu!==p8||rB!==ZU?(nq=nq.push(lU(nq)+"scale(",null,",",null,")"),g2.push({i:nq-4,x:hy(Bu,p8)},{i:nq-2,x:hy(rB,ZU)})):p8===1&&ZU===1||nq.push(lU(nq)+"scale("+p8+","+ZU+")")}
return function(Bu,rB){var p8=[],ZU=[];Bu=L(Bu);rB=L(rB);wR(Bu.translateX,Bu.translateY,rB.translateX,rB.translateY,p8,ZU);gR(Bu.rotate,rB.rotate,p8,ZU);TB(Bu.skewX,rB.skewX,p8,ZU);Dd(Bu.scaleX,Bu.scaleY,rB.scaleX,rB.scaleY,p8,ZU);Bu=rB=null;return function(nq){for(var g2=-1,ow=ZU.length,FE;++g2<ow;)p8[(FE=ZU[g2]).i]=FE.x(nq);return p8.join("")}}}
function lr(L){return function(T,H){var G=L((T=dI(T)).h,(H=dI(H)).h),lU=Rc(T.s,H.s),wR=Rc(T.l,H.l),gR=Rc(T.opacity,H.opacity);return function(TB){T.h=G(TB);T.s=lU(TB);T.l=wR(TB);T.opacity=gR(TB);return T+""}}}
function Om(L){return function(T,H){var G=L((T=b2(T)).h,(H=b2(H)).h),lU=Rc(T.c,H.c),wR=Rc(T.l,H.l),gR=Rc(T.opacity,H.opacity);return function(TB){T.h=G(TB);T.c=lU(TB);T.l=wR(TB);T.opacity=gR(TB);return T+""}}}
function gh(L){return function G(H){function lU(wR,gR){var TB=L((wR=z4(wR)).h,(gR=z4(gR)).h),Dd=Rc(wR.s,gR.s),Bu=Rc(wR.l,gR.l),rB=Rc(wR.opacity,gR.opacity);return function(p8){wR.h=TB(p8);wR.s=Dd(p8);wR.l=Bu(Math.pow(p8,H));wR.opacity=rB(p8);return wR+""}}
H=+H;lU.gamma=G;return lU}(1)}
function KQ(){return Ru||(APC(q7B),Ru=qR.now()+$kB)}
function q7B(){Ru=0}
function aQ(){this._call=this._time=this._next=null}
function oL(L,T,H){var G=new aQ;G.restart(L,T,H);return G}
function Qp(){Ru=(FbB=qR.now())+$kB;SG=u8=0;try{KQ();++SG;for(var L=Pdu,T;L;)(T=Ru-L._time)>=0&&L._call.call(null,T),L=L._next;--SG}finally{SG=0;L=Pdu;for(var H=Infinity;L;)if(L._call){H>L._time&&(H=L._time);var G=L;L=L._next}else T=L._next,L._next=null,L=G?G._next=T:Pdu=T;Dg=G;Au(H);Ru=0}}
function FVK(){var L=qR.now(),T=L-FbB;T>1E3&&($kB-=T,FbB=L)}
function Au(L){SG||(u8&&(u8=clearTimeout(u8)),L-Ru>24?(L<Infinity&&(u8=setTimeout(Qp,L-qR.now()-$kB)),rV&&(rV=clearInterval(rV))):(rV||(FbB=qR.now(),rV=setInterval(FVK,1E3)),SG=1,APC(Qp)))}
function Z73(L,T,H){var G=new aQ;T=T==null?0:+T;G.restart(function(lU){G.stop();L(lU+T)},T,H);
return G}
function n7K(L,T,H,G,lU,wR){var gR=L.__transition;if(!gR)L.__transition={};else if(H in gR)return;Te6(L,H,{name:T,index:G,group:lU,on:cJB,tween:WY3,time:wR.time,delay:wR.delay,duration:wR.duration,ease:wR.ease,timer:null,state:0})}
function dsE(L,T){L=xc(L,T);if(L.state>0)throw Error("te");return L}
function vZ(L,T){L=xc(L,T);if(L.state>2)throw Error("ue");return L}
function xc(L,T){L=L.__transition;if(!L||!(L=L[T]))throw Error("ve");return L}
function Te6(L,T,H){function G(Dd){var Bu,rB;if(H.state!==1)return wR();for(ZU in gR){var p8=gR[ZU];if(p8.name===H.name){if(p8.state===3)return Z73(G);p8.state===4?(p8.state=6,p8.timer.stop(),p8.on.call("interrupt",L,L.__data__,p8.index,p8.group),delete gR[ZU]):+ZU<T&&(p8.state=6,p8.timer.stop(),delete gR[ZU])}}Z73(function(){H.state===3&&(H.state=4,H.timer.restart(lU,H.delay,H.time),lU(Dd))});
H.state=2;H.on.call("start",L,L.__data__,H.index,H.group);if(H.state===2){H.state=3;TB=Array(rB=H.tween.length);var ZU=0;for(Bu=-1;ZU<rB;++ZU)if(p8=H.tween[ZU].value.call(L,L.__data__,H.index,H.group))TB[++Bu]=p8;TB.length=Bu+1}}
function lU(Dd){Dd=Dd<H.duration?H.ease.call(null,Dd/H.duration):(H.timer.restart(wR),H.state=5,1);for(var Bu=-1,rB=TB.length;++Bu<rB;)TB[Bu].call(null,Dd);H.state===5&&(H.on.call("end",L,L.__data__,H.index,H.group),wR())}
function wR(){H.state=6;H.timer.stop();delete gR[T];for(var Dd in gR)return;delete L.__transition}
var gR=L.__transition,TB;gR[T]=H;H.timer=oL(function(Dd){H.state=1;H.timer.restart(G,H.delay,H.time);H.delay<=Dd&&G(Dd-H.delay)},0,H.time)}
function LYi(L,T){var H,G;return function(){var lU=vZ(this,L),wR=lU.tween;if(wR!==H){G=H=wR;wR=0;for(var gR=G.length;wR<gR;++wR)if(G[wR].name===T){G=G.slice();G.splice(wR,1);break}}lU.tween=G}}
function mB6(L,T,H){var G,lU;if(typeof H!=="function")throw Error();return function(){var wR=vZ(this,L),gR=wR.tween;if(gR!==G){lU=(G=gR).slice();gR={name:T,value:H};for(var TB=0,Dd=lU.length;TB<Dd;++TB)if(lU[TB].name===T){lU[TB]=gR;break}TB===Dd&&lU.push(gR)}wR.tween=lU}}
function zbR(L,T,H){var G=L._id;L.each(function(){var lU=vZ(this,G);(lU.value||(lU.value={}))[T]=H.apply(this,arguments)});
return function(lU){return xc(lU,G).value[T]}}
function Gd4(L,T){var H;return(typeof T==="number"?hy:T instanceof O7?kd3:(H=O7(T))?(T=H,kd3):ws)(L,T)}
function evq(L){return function(){this.removeAttribute(L)}}
function JJp(L){return function(){this.removeAttributeNS(L.space,L.local)}}
function jF1(L,T,H){var G,lU;return function(){var wR=this.getAttribute(L);return wR===H?null:wR===G?lU:lU=T(G=wR,H)}}
function H9Y(L,T,H){var G,lU;return function(){var wR=this.getAttributeNS(L.space,L.local);return wR===H?null:wR===G?lU:lU=T(G=wR,H)}}
function i92(L,T,H){var G,lU,wR;return function(){var gR=H(this);if(gR==null)return void this.removeAttribute(L);var TB=this.getAttribute(L);return TB===gR?null:TB===G&&gR===lU?wR:wR=T(G=TB,lU=gR)}}
function RvB(L,T,H){var G,lU,wR;return function(){var gR=H(this);if(gR==null)return void this.removeAttributeNS(L.space,L.local);var TB=this.getAttributeNS(L.space,L.local);return TB===gR?null:TB===G&&gR===lU?wR:wR=T(G=TB,lU=gR)}}
function v2Y(L,T){function H(){var G=this,lU=T.apply(G,arguments);return lU&&function(wR){G.setAttributeNS(L.space,L.local,lU(wR))}}
H._value=T;return H}
function KY2(L,T){function H(){var G=this,lU=T.apply(G,arguments);return lU&&function(wR){G.setAttribute(L,lU(wR))}}
H._value=T;return H}
function yJ6(L,T){return function(){dsE(this,L).delay=+T.apply(this,arguments)}}
function UB6(L,T){return T=+T,function(){dsE(this,L).delay=T}}
function sF1(L,T){return function(){vZ(this,L).duration=+T.apply(this,arguments)}}
function O9V(L,T){return T=+T,function(){vZ(this,L).duration=T}}
function o2V(L,T){if(typeof T!=="function")throw Error();return function(){vZ(this,L).ease=T}}
function QF7(L){return(L+"").trim().split(/^|\s+/).every(function(T){var H=T.indexOf(".");H>=0&&(T=T.slice(0,H));return!T||T==="start"})}
function AJU(L,T,H){var G,lU,wR=QF7(T)?dsE:vZ;return function(){var gR=wR(this,L),TB=gR.on;if(TB!==G)(lU=(G=TB).copy()).on(T,H);gR.on=lU}}
function Z96(L){return function(){var T=this.parentNode,H;for(H in this.__transition)if(+H!==L)return;T&&T.removeChild(this)}}
function G16(L,T){var H,G,lU;return function(){var wR=OP(this,L),gR=(this.style.removeProperty(L),OP(this,L));return wR===gR?null:wR===H&&gR===G?lU:lU=T(H=wR,G=gR)}}
function k1U(L){return function(){this.style.removeProperty(L)}}
function Be6(L,T,H){var G,lU;return function(){var wR=OP(this,L);return wR===H?null:wR===G?lU:lU=T(G=wR,H)}}
function qoi(L,T,H){var G,lU,wR;return function(){var gR=OP(this,L),TB=H(this);TB==null&&(TB=(this.style.removeProperty(L),OP(this,L)));return gR===TB?null:gR===G&&TB===lU?wR:wR=T(G=gR,lU=TB)}}
function uWs(L,T,H){function G(){var lU=this,wR=T.apply(lU,arguments);return wR&&function(gR){lU.style.setProperty(L,wR(gR),H)}}
G._value=T;return G}
function DB6(L){return function(){this.textContent=L}}
function rA6(L){return function(){var T=L(this);this.textContent=T==null?"":T}}
function xn(L,T,H,G){this._groups=L;this._parents=T;this._name=H;this._id=G}
function MZd(L){return{type:L}}
function g7U(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function tbu(){}
function Bx3(L,T){var H=new tbu;if(L instanceof tbu)L.each(function(gR,TB){H.set(TB,gR)});
else if(Array.isArray(L)){var G=-1,lU=L.length,wR;if(T==null)for(;++G<lU;)H.set(G,L[G]);else for(;++G<lU;)H.set(T(wR=L[G],G,L),wR)}else if(L)for(G in L)H.set(G,L[G]);return H}
function TI$(){}
function qKs(L){return function(T){for(var H={},G=0;G<L.length;G++)H[L[G]]=T[G]||"";return H}}
function fe6(L,T){var H=qKs(L);return function(G,lU){return T(H(G),lU,L)}}
function Ie7(L){var T=Object.create(null),H=[];L.forEach(function(G){for(var lU in G)lU in T||H.push(T[lU]=lU)});
return H}
function uS8(L){function T(gR,TB){function Dd(){if(g2)return a4E;if(ow)return ow=!1,Dsq;var ko,qu=p8,cF;if(gR.charCodeAt(qu)===34){for(;p8++<rB&&gR.charCodeAt(p8)!==34||gR.charCodeAt(++p8)===34;);(ko=p8)>=rB?g2=!0:(cF=gR.charCodeAt(p8++))===10?ow=!0:cF===13&&(ow=!0,gR.charCodeAt(p8)===10&&++p8);return gR.slice(qu+1,ko-1).replace(/""/g,'"')}for(;p8<rB;){if((cF=gR.charCodeAt(ko=p8++))===10)ow=!0;else if(cF===13)ow=!0,gR.charCodeAt(p8)===10&&++p8;else if(cF!==wR)continue;return gR.slice(qu,ko)}return g2=
!0,gR.slice(qu,rB)}
var Bu=[],rB=gR.length,p8=0,ZU=0,nq,g2=rB<=0,ow=!1;gR.charCodeAt(rB-1)===10&&--rB;for(gR.charCodeAt(rB-1)===13&&--rB;(nq=Dd())!==a4E;){for(var FE=[];nq!==Dsq&&nq!==a4E;)FE.push(nq),nq=Dd();TB&&(FE=TB(FE,ZU++))==null||Bu.push(FE)}return Bu}
function H(gR){return gR.map(G).join(L)}
function G(gR){return gR==null?"":lU.test(gR)?'"'+gR.replace(/"/g,'""')+'"':gR}
var lU=new RegExp('["'+L+"\n\r]"),wR=L.charCodeAt(0);return{parse:function(gR,TB){var Dd,Bu;gR=T(gR,function(rB,p8){if(Dd)return Dd(rB,p8-1);Bu=rB;Dd=TB?fe6(rB,TB):qKs(rB)});
gR.columns=Bu||[];return gR},
parseRows:T,format:function(gR,TB){TB==null&&(TB=Ie7(gR));return[TB.map(G).join(L)].concat(gR.map(function(Dd){return TB.map(function(Bu){return G(Dd[Bu])}).join(L)})).join("\n")},
formatRows:function(gR){return gR.map(H).join("\n")}}}
function Clp(L){if(!L.ok)throw Error("we`"+L.status+"`"+L.statusText);return L.text()}
function rLs(L){return function(T,H,G){arguments.length===2&&typeof H==="function"&&(G=H,H=void 0);return fetch(T,H).then(Clp).then(function(lU){return L(lU,G)})}}
function f0g(L,T,H,G){if(isNaN(T)||isNaN(H))return L;var lU,wR=L._root;G={data:G};var gR=L._x0,TB=L._y0,Dd=L._x1,Bu=L._y1,rB,p8,ZU,nq,g2;if(!wR)return L._root=G,L;for(;wR.length;)if((ZU=T>=(rB=(gR+Dd)/2))?gR=rB:Dd=rB,(nq=H>=(p8=(TB+Bu)/2))?TB=p8:Bu=p8,lU=wR,!(wR=wR[g2=nq<<1|ZU]))return lU[g2]=G,L;var ow=+L._x.call(null,wR.data);var FE=+L._y.call(null,wR.data);if(T===ow&&H===FE)return G.next=wR,lU?lU[g2]=G:L._root=G,L;do lU=lU?lU[g2]=Array(4):L._root=Array(4),(ZU=T>=(rB=(gR+Dd)/2))?gR=rB:Dd=rB,(nq=
H>=(p8=(TB+Bu)/2))?TB=p8:Bu=p8;while((g2=nq<<1|ZU)===(ZU=(FE>=p8)<<1|ow>=rB));return lU[ZU]=wR,lU[g2]=G,L}
function Is(L,T,H,G,lU){this.node=L;this.x0=T;this.y0=H;this.x1=G;this.y1=lU}
function YUV(L){return L[0]}
function le6(L){return L[1]}
function Xqq(L,T,H,G,lU,wR){this._x=L;this._y=T;this._x0=H;this._y0=G;this._x1=lU;this._y1=wR;this._root=void 0}
function I03(L){for(var T={data:L.data},H=T;L=L.next;)H=H.next={data:L.data};return T}
function cRB(L,T){if((T=(L=T?L.toExponential(T-1):L.toExponential()).indexOf("e"))<0)return null;var H=L.slice(0,T);return[H.length>1?H[0]+H.slice(2):H,+L.slice(T+1)]}
function VXi(L){return L=cRB(Math.abs(L)),L?L[1]:NaN}
function Ekq(L,T){return function(H,G){for(var lU=H.length,wR=[],gR=0,TB=L[0],Dd=0;lU>0&&TB>0;){Dd+TB+1>G&&(TB=Math.max(1,G-Dd));wR.push(H.substring(lU-=TB,lU+TB));if((Dd+=TB+1)>G)break;TB=L[gR=(gR+1)%L.length]}return wR.reverse().join(T)}}
function SUY(L){return function(T){return T.replace(/[0-9]/g,function(H){return L[+H]})}}
function NxU(L){return new $sR(L)}
function $sR(L){if(!(T=xKp.exec(L)))throw Error("xe`"+L);var T;this.fill=T[1]||" ";this.align=T[2]||">";this.sign=T[3]||"-";this.symbol=T[4]||"";this.zero=!!T[5];this.width=T[6]&&+T[6];this.comma=!!T[7];this.precision=T[8]&&+T[8].slice(1);this.trim=!!T[9];this.type=T[10]||""}
function CR_(L,T){T=cRB(L,T);if(!T)return L+"";L=T[0];T=T[1];return T<0?"0."+Array(-T).join("0")+L:L.length>T+1?L.slice(0,T+1)+"."+L.slice(T+1):L+Array(T-L.length+2).join("0")}
function YwT(L){return L}
function h0B(L){function T(TB){function Dd(Gy){var dU=cF,ed=E0,nj,IM;if(qu==="c")ed=uE(Gy)+ed,Gy="";else{Gy=+Gy;var aY=Gy<0;Gy=uE(Math.abs(Gy),FE);if(ko){var GA=Gy.length,WR=1,BW=-1;a:for(;WR<GA;++WR)switch(Gy[WR]){case ".":BW=nj=WR;break;case "0":BW===0&&(BW=WR);nj=WR;break;default:if(!+Gy[WR])break a;BW>0&&(BW=0)}Gy=BW>0?Gy.slice(0,BW)+Gy.slice(nj+1):Gy}aY&&+Gy===0&&(aY=!1);dU=(aY?p8==="("?p8:"-":p8==="-"||p8==="("?"":p8)+dU;ed=(qu==="s"?l0X[8+V83/3]:"")+ed+(aY&&p8==="("?")":"");if(d5)for(aY=-1,
nj=Gy.length;++aY<nj;)if(IM=Gy.charCodeAt(aY),48>IM||IM>57){ed=(IM===46?lU+Gy.slice(aY+1):Gy.slice(aY))+ed;Gy=Gy.slice(0,aY);break}}ow&&!nq&&(Gy=H(Gy,Infinity));IM=dU.length+Gy.length+ed.length;aY=IM<g2?Array(g2-IM+1).join(Bu):"";ow&&nq&&(Gy=H(aY+Gy,aY.length?g2-ed.length:Infinity),aY="");switch(rB){case "<":Gy=dU+Gy+ed+aY;break;case "=":Gy=dU+aY+Gy+ed;break;case "^":Gy=aY.slice(0,IM=aY.length>>1)+dU+Gy+ed+aY.slice(IM);break;default:Gy=aY+dU+Gy+ed}return wR(Gy)}
TB=NxU(TB);var Bu=TB.fill,rB=TB.align,p8=TB.sign,ZU=TB.symbol,nq=TB.zero,g2=TB.width,ow=TB.comma,FE=TB.precision,ko=TB.trim,qu=TB.type;qu==="n"?(ow=!0,qu="g"):E$g[qu]||(FE==null&&(FE=12),ko=!0,qu="g");if(nq||Bu==="0"&&rB==="=")nq=!0,Bu="0",rB="=";var cF=ZU==="$"?G[0]:ZU==="#"&&/[boxX]/.test(qu)?"0"+qu.toLowerCase():"",E0=ZU==="$"?G[1]:/[%p]/.test(qu)?gR:"",uE=E$g[qu],d5=/[defgprs%]/.test(qu);FE=FE==null?6:/[gprs]/.test(qu)?Math.max(1,Math.min(21,FE)):Math.max(0,Math.min(20,FE));Dd.toString=function(){return TB+
""};
return Dd}
var H=L.grouping&&L.thousands?Ekq(L.grouping,L.thousands):YwT,G=L.currency,lU=L.decimal,wR=L.numerals?SUY(L.numerals):YwT,gR=L.percent||"%";return{format:T,formatPrefix:function(TB,Dd){var Bu=T((TB=NxU(TB),TB.type="f",TB));TB=Math.max(-8,Math.min(8,Math.floor(VXi(Dd)/3)))*3;var rB=Math.pow(10,-TB),p8=l0X[8+TB/3];return function(ZU){return Bu(rB*ZU)+p8}}}}
function KD(){this.reset()}
function SwX(L,T,H){var G=L.s=T+H,lU=G-T;L.t=T-(G-lU)+(H-lU)}
function Wbl(L){return L>1?s1:L<-1?-s1:Math.asin(L)}
function w7s(){}
function xh4(L){var T=L[0];L=L[1];var H=O1(L);return[H*O1(T),H*jo(T),jo(L)]}
function hqX(L,T){return[L[1]*T[2]-L[2]*T[1],L[2]*T[0]-L[0]*T[2],L[0]*T[1]-L[1]*T[0]]}
function w_g(L){var T=LbP(L[0]*L[0]+L[1]*L[1]+L[2]*L[2]);L[0]/=T;L[1]/=T;L[2]/=T}
function bdV(){var L=[],T;return{point:function(H,G){T.push([H,G])},
lineStart:function(){L.push(T=[])},
lineEnd:w7s,rejoin:function(){L.length>1&&L.push(L.pop().concat(L.shift()))},
result:function(){var H=L;L=[];T=null;return H}}}
function mk$(L,T,H,G){this.x=L;this.z=T;this.o=H;this.e=G;this.v=!1;this.n=this.p=null}
function p7i(L,T,H,G,lU){var wR=[],gR=[];L.forEach(function(p8){if(!((ZU=p8.length-1)<=0)){var ZU,nq=p8[0],g2=p8[ZU],ow=nq;if(hi(ow[0]-g2[0])<1E-6&&hi(ow[1]-g2[1])<1E-6){lU.lineStart();for(TB=0;TB<ZU;++TB)lU.point((nq=p8[TB])[0],nq[1]);lU.lineEnd()}else wR.push(ZU=new mk$(nq,p8,null,!0)),gR.push(ZU.o=new mk$(nq,null,ZU,!1)),wR.push(ZU=new mk$(g2,p8,null,!1)),gR.push(ZU.o=new mk$(g2,null,ZU,!0))}});
if(wR.length){gR.sort(T);bl4(wR);bl4(gR);var TB=0;for(L=gR.length;TB<L;++TB)gR[TB].e=H=!H;H=wR[0];for(var Dd;;){for(var Bu=H,rB=!0;Bu.v;)if((Bu=Bu.n)===H)return;T=Bu.z;lU.lineStart();do{Bu.v=Bu.o.v=!0;if(Bu.e){if(rB)for(TB=0,L=T.length;TB<L;++TB)lU.point((Dd=T[TB])[0],Dd[1]);else G(Bu.x,Bu.n.x,1,lU);Bu=Bu.n}else{if(rB)for(T=Bu.p.z,TB=T.length-1;TB>=0;--TB)lU.point((Dd=T[TB])[0],Dd[1]);else G(Bu.x,Bu.p.x,-1,lU);Bu=Bu.p}Bu=Bu.o;T=Bu.z;rB=!rB}while(!Bu.v);lU.lineEnd()}}}
function bl4(L){if(T=L.length){for(var T,H=0,G=L[0],lU;++H<T;)G.n=lU=L[H],lU.p=G,G=lU;G.n=lU=L[0];lU.p=G}}
function nks(L){return L.length>1}
function dK6(L,T){return((L=L.x)[0]<0?L[1]-s1-1E-6:s1-L[1])-((T=T.x)[0]<0?T[1]-s1-1E-6:s1-T[1])}
function FiE(){}
function p_B(L){return function(T,H){var G=O1(T),lU=O1(H);G=L(G*lU);return[G*lU*jo(T),G*jo(H)]}}
function fr(L){return function(T,H){var G=LbP(T*T+H*H),lU=L(G),wR=jo(lU);lU=O1(lU);return[n$g(T*wR,G*lU),Wbl(G&&H*wR/G)]}}
function z06(L){var T=0,H=L.children,G=H&&H.length;if(G)for(;--G>=0;)T+=H[G].value;else T=1;L.value=T}
function dh4(L,T){var H=new I2(L);L=+L.value&&(H.value=L.value);var G,lU=[H],wR,gR,TB,Dd;for(T==null&&(T=MX6);G=lU.pop();)if(L&&(G.value=+G.data.value),(gR=T(G.data))&&(Dd=gR.length))for(G.children=Array(Dd),TB=Dd-1;TB>=0;--TB)lU.push(wR=G.children[TB]=new I2(gR[TB])),wR.parent=G,wR.depth=G.depth+1;return H.eachBefore(gk1)}
function MX6(L){return L.children}
function ae3(L){L.data=L.data.data}
function gk1(L){var T=0;do L.height=T;while((L=L.parent)&&L.height<++T)}
function I2(L){this.data=L;this.depth=this.height=0;this.parent=null}
function $A(L,T,H,G){function lU(wR){return L(wR=new Date(+wR)),wR}
lU.floor=lU;lU.ceil=function(wR){return L(wR=new Date(wR-1)),T(wR,1),L(wR),wR};
lU.round=function(wR){var gR=lU(wR),TB=lU.ceil(wR);return wR-gR<TB-wR?gR:TB};
lU.offset=function(wR,gR){return T(wR=new Date(+wR),gR==null?1:Math.floor(gR)),wR};
lU.range=function(wR,gR,TB){var Dd=[],Bu;wR=lU.ceil(wR);TB=TB==null?1:Math.floor(TB);if(!(wR<gR&&TB>0))return Dd;do Dd.push(Bu=new Date(+wR)),T(wR,TB),L(wR);while(Bu<wR&&wR<gR);return Dd};
lU.filter=function(wR){return $A(function(gR){if(gR>=gR)for(;L(gR),!wR(gR);)gR.setTime(gR-1)},function(gR,TB){if(gR>=gR)if(TB<0)for(;++TB<=0;)for(;T(gR,-1),!wR(gR););
else for(;--TB>=0;)for(;T(gR,1),!wR(gR););})};
H&&(lU.count=function(wR,gR){PNK.setTime(+wR);tZl.setTime(+gR);L(PNK);L(tZl);return Math.floor(H(PNK,tZl))},lU.every=function(wR){wR=Math.floor(wR);
return isFinite(wR)&&wR>0?wR>1?lU.filter(G?function(gR){return G(gR)%wR===0}:function(gR){return lU.count(0,gR)%wR===0}):lU:null});
return lU}
function KU(L){return $A(function(T){T.setDate(T.getDate()-(T.getDay()+7-L)%7);T.setHours(0,0,0,0)},function(T,H){T.setDate(T.getDate()+H*7)},function(T,H){return(H-T-(H.getTimezoneOffset()-T.getTimezoneOffset())*6E4)/6048E5})}
function yX(L){return $A(function(T){T.setUTCDate(T.getUTCDate()-(T.getUTCDay()+7-L)%7);T.setUTCHours(0,0,0,0)},function(T,H){T.setUTCDate(T.getUTCDate()+H*7)},function(T,H){return(H-T)/6048E5})}
function X76(L){if(0<=L.y&&L.y<100){var T=new Date(-1,L.m,L.d,L.H,L.M,L.S,L.L);T.setFullYear(L.y);return T}return new Date(L.y,L.m,L.d,L.H,L.M,L.S,L.L)}
function eod(L){if(0<=L.y&&L.y<100){var T=new Date(Date.UTC(-1,L.m,L.d,L.H,L.M,L.S,L.L));T.setUTCFullYear(L.y);return T}return new Date(Date.UTC(L.y,L.m,L.d,L.H,L.M,L.S,L.L))}
function Cr(L){return{y:L,m:0,d:1,H:0,M:0,S:0,L:0}}
function Ni6(L){function T(ed,nj){return function(IM){var aY=[],GA=-1,WR=0,BW=ed.length,zg,Td;for(IM instanceof Date||(IM=new Date(+IM));++GA<BW;)if(ed.charCodeAt(GA)===37){aY.push(ed.slice(WR,GA));(WR=zqs[zg=ed.charAt(++GA)])!=null?zg=ed.charAt(++GA):WR=zg==="e"?" ":"0";if(Td=nj[zg])zg=Td(IM,WR);aY.push(zg);WR=GA+1}aY.push(ed.slice(WR,GA));return aY.join("")}}
function H(ed,nj){return function(IM){var aY=Cr(1900);if(G(aY,ed,IM,0)!=IM.length)return null;if("Q"in aY)return new Date(aY.Q);"p"in aY&&(aY.H=aY.H%12+aY.p*12);if("V"in aY){if(aY.V<1||aY.V>53)return null;"w"in aY||(aY.w=1);if("Z"in aY){IM=eod(Cr(aY.y));var GA=IM.getUTCDay();IM=GA>4||GA===0?Txw.ceil(IM):Txw(IM);IM=M8s.offset(IM,(aY.V-1)*7);aY.y=IM.getUTCFullYear();aY.m=IM.getUTCMonth();aY.d=IM.getUTCDate()+(aY.w+6)%7}else IM=nj(Cr(aY.y)),GA=IM.getDay(),IM=GA>4||GA===0?cPB.ceil(IM):cPB(IM),IM=g$3.offset(IM,
(aY.V-1)*7),aY.y=IM.getFullYear(),aY.m=IM.getMonth(),aY.d=IM.getDate()+(aY.w+6)%7}else if("W"in aY||"U"in aY)"w"in aY||(aY.w="u"in aY?aY.u%7:"W"in aY?1:0),GA="Z"in aY?eod(Cr(aY.y)).getUTCDay():nj(Cr(aY.y)).getDay(),aY.m=0,aY.d="W"in aY?(aY.w+6)%7+aY.W*7-(GA+5)%7:aY.w+aY.U*7-(GA+6)%7;return"Z"in aY?(aY.H+=aY.Z/100|0,aY.M+=aY.Z%100,eod(aY)):nj(aY)}}
function G(ed,nj,IM,aY){for(var GA=0,WR=nj.length,BW=IM.length,zg;GA<WR;){if(aY>=BW)return-1;zg=nj.charCodeAt(GA++);if(zg===37){if(zg=nj.charAt(GA++),zg=dU[zg in zqs?nj.charAt(GA++):zg],!zg||(aY=zg(ed,IM,aY))<0)return-1}else if(zg!=IM.charCodeAt(aY++))return-1}return aY}
var lU=L.dateTime,wR=L.date,gR=L.time,TB=L.periods,Dd=L.days,Bu=L.shortDays,rB=L.months,p8=L.shortMonths,ZU=Y9(TB),nq=lS(TB),g2=Y9(Dd),ow=lS(Dd),FE=Y9(Bu),ko=lS(Bu),qu=Y9(rB),cF=lS(rB),E0=Y9(p8),uE=lS(p8),d5={a:function(ed){return Bu[ed.getDay()]},
A:function(ed){return Dd[ed.getDay()]},
b:function(ed){return p8[ed.getMonth()]},
B:function(ed){return rB[ed.getMonth()]},
c:null,d:a0s,e:a0s,f:$Ki,H:FTq,I:Pl6,j:tXd,L:X_3,m:Tii,M:cAd,p:function(ed){return TB[+(ed.getHours()>=12)]},
Q:Na4,s:$hX,S:WT3,u:LT6,U:mK1,V:e0Y,w:JA7,W:jPY,x:null,X:null,y:Hd2,Y:idq,Z:R06,"%":FRT},Gy={a:function(ed){return Bu[ed.getUTCDay()]},
A:function(ed){return Dd[ed.getUTCDay()]},
b:function(ed){return p8[ed.getUTCMonth()]},
B:function(ed){return rB[ed.getUTCMonth()]},
c:null,d:PR4,e:PR4,f:vk7,H:KT6,I:yAp,j:UK2,L:t8X,m:sPi,M:Odp,p:function(ed){return TB[+(ed.getUTCHours()>=12)]},
Q:Na4,s:$hX,S:oki,u:QP6,U:AA6,V:Zds,w:Gh6,W:kh6,x:null,X:null,y:Bis,Y:qU2,Z:uZ6,"%":FRT},dU={a:function(ed,nj,IM){return(nj=FE.exec(nj.slice(IM)))?(ed.w=ko[nj[0].toLowerCase()],IM+nj[0].length):-1},
A:function(ed,nj,IM){return(nj=g2.exec(nj.slice(IM)))?(ed.w=ow[nj[0].toLowerCase()],IM+nj[0].length):-1},
b:function(ed,nj,IM){return(nj=E0.exec(nj.slice(IM)))?(ed.m=uE[nj[0].toLowerCase()],IM+nj[0].length):-1},
B:function(ed,nj,IM){return(nj=qu.exec(nj.slice(IM)))?(ed.m=cF[nj[0].toLowerCase()],IM+nj[0].length):-1},
c:function(ed,nj,IM){return G(ed,lU,nj,IM)},
d:TaV,e:TaV,f:DKV,H:cLT,I:cLT,j:rBs,L:fBd,m:IB6,M:CIB,p:function(ed,nj,IM){return(nj=ZU.exec(nj.slice(IM)))?(ed.p=nq[nj[0].toLowerCase()],IM+nj[0].length):-1},
Q:Yad,s:lBs,S:Vmq,u:Ec1,U:Sa1,V:xJ6,w:hW6,W:wzs,x:function(ed,nj,IM){return G(ed,wR,nj,IM)},
X:function(ed,nj,IM){return G(ed,gR,nj,IM)},
y:b$Y,Y:pz3,Z:ncV,"%":dJd};d5.x=T(wR,d5);d5.X=T(gR,d5);d5.c=T(lU,d5);Gy.x=T(wR,Gy);Gy.X=T(gR,Gy);Gy.c=T(lU,Gy);return{format:function(ed){var nj=T(ed,d5);nj.toString=function(){return ed};
return nj},
parse:function(ed){var nj=H(ed,X76);nj.toString=function(){return ed};
return nj},
utcFormat:function(ed){var nj=T(ed,Gy);nj.toString=function(){return ed};
return nj},
utcParse:function(ed){var nj=H(ed,eod);nj.toString=function(){return ed};
return nj}}}
function FR(L,T,H){var G=L<0?"-":"";L=(G?-L:L)+"";var lU=L.length;return G+(lU<H?Array(H-lU+1).join(T)+L:L)}
function zWp(L){return L.replace(MmY,"\\$&")}
function Y9(L){return new RegExp("^(?:"+L.map(zWp).join("|")+")","i")}
function lS(L){for(var T={},H=-1,G=L.length;++H<G;)T[L[H].toLowerCase()]=H;return T}
function hW6(L,T,H){return(T=WF.exec(T.slice(H,H+1)))?(L.w=+T[0],H+T[0].length):-1}
function Ec1(L,T,H){return(T=WF.exec(T.slice(H,H+1)))?(L.u=+T[0],H+T[0].length):-1}
function Sa1(L,T,H){return(T=WF.exec(T.slice(H,H+2)))?(L.U=+T[0],H+T[0].length):-1}
function xJ6(L,T,H){return(T=WF.exec(T.slice(H,H+2)))?(L.V=+T[0],H+T[0].length):-1}
function wzs(L,T,H){return(T=WF.exec(T.slice(H,H+2)))?(L.W=+T[0],H+T[0].length):-1}
function pz3(L,T,H){return(T=WF.exec(T.slice(H,H+4)))?(L.y=+T[0],H+T[0].length):-1}
function b$Y(L,T,H){return(T=WF.exec(T.slice(H,H+2)))?(L.y=+T[0]+(+T[0]>68?1900:2E3),H+T[0].length):-1}
function ncV(L,T,H){return(T=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(T.slice(H,H+6)))?(L.Z=T[1]?0:-(T[2]+(T[3]||"00")),H+T[0].length):-1}
function IB6(L,T,H){return(T=WF.exec(T.slice(H,H+2)))?(L.m=T[0]-1,H+T[0].length):-1}
function TaV(L,T,H){return(T=WF.exec(T.slice(H,H+2)))?(L.d=+T[0],H+T[0].length):-1}
function rBs(L,T,H){return(T=WF.exec(T.slice(H,H+3)))?(L.m=0,L.d=+T[0],H+T[0].length):-1}
function cLT(L,T,H){return(T=WF.exec(T.slice(H,H+2)))?(L.H=+T[0],H+T[0].length):-1}
function CIB(L,T,H){return(T=WF.exec(T.slice(H,H+2)))?(L.M=+T[0],H+T[0].length):-1}
function Vmq(L,T,H){return(T=WF.exec(T.slice(H,H+2)))?(L.S=+T[0],H+T[0].length):-1}
function fBd(L,T,H){return(T=WF.exec(T.slice(H,H+3)))?(L.L=+T[0],H+T[0].length):-1}
function DKV(L,T,H){return(T=WF.exec(T.slice(H,H+6)))?(L.L=Math.floor(T[0]/1E3),H+T[0].length):-1}
function dJd(L,T,H){return(L=gcq.exec(T.slice(H,H+1)))?H+L[0].length:-1}
function Yad(L,T,H){return(T=WF.exec(T.slice(H)))?(L.Q=+T[0],H+T[0].length):-1}
function lBs(L,T,H){return(T=WF.exec(T.slice(H)))?(L.Q=+T[0]*1E3,H+T[0].length):-1}
function a0s(L,T){return FR(L.getDate(),T,2)}
function FTq(L,T){return FR(L.getHours(),T,2)}
function Pl6(L,T){return FR(L.getHours()%12||12,T,2)}
function tXd(L,T){return FR(1+g$3.count(xT(L),L),T,3)}
function X_3(L,T){return FR(L.getMilliseconds(),T,3)}
function $Ki(L,T){return X_3(L,T)+"000"}
function Tii(L,T){return FR(L.getMonth()+1,T,2)}
function cAd(L,T){return FR(L.getMinutes(),T,2)}
function WT3(L,T){return FR(L.getSeconds(),T,2)}
function LT6(L){L=L.getDay();return L===0?7:L}
function mK1(L,T){return FR(aB6.count(xT(L),L),T,2)}
function e0Y(L,T){var H=L.getDay();L=H>=4||H===0?Wiu(L):Wiu.ceil(L);return FR(Wiu.count(xT(L),L)+(xT(L).getDay()===4),T,2)}
function JA7(L){return L.getDay()}
function jPY(L,T){return FR(cPB.count(xT(L),L),T,2)}
function Hd2(L,T){return FR(L.getFullYear()%100,T,2)}
function idq(L,T){return FR(L.getFullYear()%1E4,T,4)}
function R06(L){L=L.getTimezoneOffset();return(L>0?"-":(L*=-1,"+"))+FR(L/60|0,"0",2)+FR(L%60,"0",2)}
function PR4(L,T){return FR(L.getUTCDate(),T,2)}
function KT6(L,T){return FR(L.getUTCHours(),T,2)}
function yAp(L,T){return FR(L.getUTCHours()%12||12,T,2)}
function UK2(L,T){return FR(1+M8s.count(hp(L),L),T,3)}
function t8X(L,T){return FR(L.getUTCMilliseconds(),T,3)}
function vk7(L,T){return t8X(L,T)+"000"}
function sPi(L,T){return FR(L.getUTCMonth()+1,T,2)}
function Odp(L,T){return FR(L.getUTCMinutes(),T,2)}
function oki(L,T){return FR(L.getUTCSeconds(),T,2)}
function QP6(L){L=L.getUTCDay();return L===0?7:L}
function AA6(L,T){return FR(Xz3.count(hp(L),L),T,2)}
function Zds(L,T){var H=L.getUTCDay();L=H>=4||H===0?LiK(L):LiK.ceil(L);return FR(LiK.count(hp(L),L)+(hp(L).getUTCDay()===4),T,2)}
function Gh6(L){return L.getUTCDay()}
function kh6(L,T){return FR(Txw.count(hp(L),L),T,2)}
function Bis(L,T){return FR(L.getUTCFullYear()%100,T,2)}
function qU2(L,T){return FR(L.getUTCFullYear()%1E4,T,4)}
function uZ6(){return"+0000"}
function FRT(){return"%"}
function Na4(L){return+L}
function $hX(L){return Math.floor(+L/1E3)}
function Eg(L){for(var T=L.length/6|0,H=Array(T),G=0;G<T;)H[G]="#"+L.slice(G*6,++G*6);return H}
function kL(L){return NPi(L[L.length-1])}
function JRd(L){var T=L.length;return function(H){return L[Math.max(0,Math.min(T-1,Math.floor(H*T)))]}}
function WRV(L){this._context=L}
function LRC(L){this._curve=L}
function mhs(L,T,H){var G=L._x1-L._x0;T-=L._x1;var lU=(L._y1-L._y0)/(G||T<0&&-0);L=(H-L._y1)/(T||G<0&&-0);return((lU<0?-1:1)+(L<0?-1:1))*Math.min(Math.abs(lU),Math.abs(L),.5*Math.abs((lU*T+L*G)/(G+T)))||0}
function eqU(L,T){var H=L._x1-L._x0;return H?(3*(L._y1-L._y0)/H-T)/2:T}
function msu(L,T,H){var G=L._x0,lU=L._x1,wR=L._y1,gR=(lU-G)/3;L._context.bezierCurveTo(G+gR,L._y0+gR*T,lU-gR,wR-gR*H,lU,wR)}
function ebR(L){this._context=L}
function JLs(L){this._context=L}
function VO(L,T,H){this.k=L;this.x=T;this.y=H}
(function(L){L.length===1&&(L=f(L));return{left:function(T,H,G,lU){G==null&&(G=0);lU==null&&(lU=T.length);for(;G<lU;){var wR=G+lU>>>1;L(T[wR],H)<0?G=wR+1:lU=wR}return G},
right:function(T,H,G,lU){G==null&&(G=0);lU==null&&(lU=T.length);for(;G<lU;){var wR=G+lU>>>1;L(T[wR],H)>0?lU=wR:G=wR+1}return G}}})(r);
var n27={value:function(){}};
C.prototype=I.prototype={constructor:C,on:function(L,T){var H=this._,G=Y(L+"",H),lU,wR=-1,gR=G.length;if(arguments.length<2)for(;++wR<gR;){var TB;if(TB=lU=(L=G[wR]).type){a:{TB=H[lU];for(var Dd=0,Bu=TB.length;Dd<Bu;++Dd)if((lU=TB[Dd]).name===L.name){lU=lU.value;break a}lU=void 0}TB=lU}if(TB)return lU}else{if(T!=null&&typeof T!=="function")throw Error("ye`"+T);for(;++wR<gR;)if(lU=(L=G[wR]).type)H[lU]=V(H[lU],L.name,T);else if(T==null)for(lU in H)H[lU]=V(H[lU],L.name,null);return this}},
copy:function(){var L={},T=this._,H;for(H in T)L[H]=T[H].slice();return new C(L)},
call:function(L,T){if((lU=arguments.length-2)>0)for(var H=Array(lU),G=0,lU,wR;G<lU;++G)H[G]=arguments[G+2];if(!this._.hasOwnProperty(L))throw Error("se`"+L);wR=this._[L];G=0;for(lU=wR.length;G<lU;++G)wR[G].value.apply(T,H)},
apply:function(L,T,H){if(!this._.hasOwnProperty(L))throw Error("se`"+L);L=this._[L];for(var G=0,lU=L.length;G<lU;++G)L[G].value.apply(T,H)}};
var U1={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/"},jx3=function(L){return function(){return this.matches(L)}};
if(typeof document!=="undefined"){var EM=document.documentElement;if(!EM.matches){var $JU=EM.webkitMatchesSelector||EM.msMatchesSelector||EM.mozMatchesSelector||EM.oMatchesSelector;jx3=function(L){return function(){return $JU.call(this,L)}}}}var HlD=jx3;
X.prototype={constructor:X,appendChild:function(L){return this._parent.insertBefore(L,this._next)},
insertBefore:function(L,T){return this._parent.insertBefore(L,T)},
querySelector:function(L){return this._parent.querySelector(L)},
querySelectorAll:function(L){return this._parent.querySelectorAll(L)}};
var v73={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(v73={mouseenter:"mouseover",mouseleave:"mouseout"}));var dB3=[null];XX.prototype=hU.prototype={constructor:XX,select:function(L){typeof L!=="function"&&(L=z(L));for(var T=this._groups,H=T.length,G=Array(H),lU=0;lU<H;++lU)for(var wR=T[lU],gR=wR.length,TB=G[lU]=Array(gR),Dd,Bu,rB=0;rB<gR;++rB)(Dd=wR[rB])&&(Bu=L.call(Dd,Dd.__data__,rB,wR))&&("__data__"in Dd&&(Bu.__data__=Dd.__data__),TB[rB]=Bu);return new XX(G,this._parents)},
filter:function(L){typeof L!=="function"&&(L=HlD(L));for(var T=this._groups,H=T.length,G=Array(H),lU=0;lU<H;++lU)for(var wR=T[lU],gR=wR.length,TB=G[lU]=[],Dd,Bu=0;Bu<gR;++Bu)(Dd=wR[Bu])&&L.call(Dd,Dd.__data__,Bu,wR)&&TB.push(Dd);return new XX(G,this._parents)},
data:function(L,T){if(!L)return nq=Array(this.size()),Bu=-1,this.each(function(qu){nq[++Bu]=qu}),nq;
var H=T?m:W,G=this._parents,lU=this._groups;typeof L!=="function"&&(L=P(L));for(var wR=lU.length,gR=Array(wR),TB=Array(wR),Dd=Array(wR),Bu=0;Bu<wR;++Bu){var rB=G[Bu],p8=lU[Bu],ZU=p8.length,nq=L.call(rB,rB&&rB.__data__,Bu,G),g2=nq.length,ow=TB[Bu]=Array(g2),FE=gR[Bu]=Array(g2);ZU=Dd[Bu]=Array(ZU);H(rB,p8,ow,FE,ZU,nq,T);p8=rB=0;for(var ko;rB<g2;++rB)if(ZU=ow[rB]){for(rB>=p8&&(p8=rB+1);!(ko=FE[p8])&&++p8<g2;);ZU._next=ko||null}}gR=new XX(gR,G);gR._enter=TB;gR._exit=Dd;return gR},
exit:function(){return new XX(this._exit||this._groups.map(g),this._parents)},
merge:function(L){var T=this._groups;L=L._groups;for(var H=T.length,G=Math.min(H,L.length),lU=Array(H),wR=0;wR<G;++wR)for(var gR=T[wR],TB=L[wR],Dd=gR.length,Bu=lU[wR]=Array(Dd),rB,p8=0;p8<Dd;++p8)if(rB=gR[p8]||TB[p8])Bu[p8]=rB;for(;wR<H;++wR)lU[wR]=T[wR];return new XX(lU,this._parents)},
order:function(){for(var L=this._groups,T=-1,H=L.length;++T<H;)for(var G=L[T],lU=G.length-1,wR=G[lU],gR;--lU>=0;)if(gR=G[lU])wR&&wR!==gR.nextSibling&&wR.parentNode.insertBefore(gR,wR),wR=gR;return this},
sort:function(L){function T(p8,ZU){return p8&&ZU?L(p8.__data__,ZU.__data__):!p8-!ZU}
L||(L=v);for(var H=this._groups,G=H.length,lU=Array(G),wR=0;wR<G;++wR){for(var gR=H[wR],TB=gR.length,Dd=lU[wR]=Array(TB),Bu,rB=0;rB<TB;++rB)if(Bu=gR[rB])Dd[rB]=Bu;Dd.sort(T)}return(new XX(lU,this._parents)).order()},
call:function(){var L=arguments[0];arguments[0]=this;L.apply(null,arguments);return this},
nodes:function(){var L=Array(this.size()),T=-1;this.each(function(){L[++T]=this});
return L},
node:function(){for(var L=this._groups,T=0,H=L.length;T<H;++T)for(var G=L[T],lU=0,wR=G.length;lU<wR;++lU){var gR=G[lU];if(gR)return gR}return null},
size:function(){var L=0;this.each(function(){++L});
return L},
empty:function(){return!this.node()},
each:function(L){for(var T=this._groups,H=0,G=T.length;H<G;++H)for(var lU=T[H],wR=0,gR=lU.length,TB;wR<gR;++wR)(TB=lU[wR])&&L.call(TB,TB.__data__,wR,lU);return this},
attr:function(L,T){var H=S(L);if(arguments.length<2){var G=this.node();return H.local?G.getAttributeNS(H.space,H.local):G.getAttribute(H)}return this.each((T==null?H.local?k:O:typeof T==="function"?H.local?EP:rR:H.local?Cw:Z)(H,T))},
style:function(L,T,H){return arguments.length>1?this.each((T==null?Pu:typeof T==="function"?cu:Wu)(L,T,H==null?"":H)):OP(this.node(),L)},
property:function(L,T){return arguments.length>1?this.each((T==null?iU:typeof T==="function"?vu:oR)(L,T)):this.node()[L]},
text:function(L){return arguments.length?this.each(L==null?wB:(typeof L==="function"?gB:qT)(L)):this.node().textContent},
html:function(L){return arguments.length?this.each(L==null?C8:(typeof L==="function"?J_:Es)(L)):this.node().innerHTML},
append:function(L){var T=typeof L==="function"?L:n(L);return this.select(function(){return this.appendChild(T.apply(this,arguments))})},
insert:function(L,T){var H=typeof L==="function"?L:n(L),G=T==null?xC:typeof T==="function"?T:z(T);return this.select(function(){return this.insertBefore(H.apply(this,arguments),G.apply(this,arguments)||null)})},
remove:function(){return this.each(r2)},
clone:function(L){return this.select(L?SK:F9)},
datum:function(L){return arguments.length?this.property("__data__",L):this.node().__data__},
on:function(L,T,H){var G=s7(L+""),lU=G.length,wR;if(arguments.length<2){var gR=this.node().__on;if(gR)for(var TB=0,Dd=gR.length,Bu;TB<Dd;++TB){var rB=0;for(Bu=gR[TB];rB<lU;++rB)if((wR=G[rB]).type===Bu.type&&wR.name===Bu.name)return Bu.value}}else{gR=T?Qq:W4;H==null&&(H=!1);for(rB=0;rB<lU;++rB)this.each(gR(G[rB],T,H));return this}},
dispatch:function(L,T){return this.each((typeof T==="function"?kq:$C)(L,T))}};
var zvi=0;P4.prototype=function(){return new P4}.prototype={constructor:P4,
get:function(L){for(var T=this._;!(T in L);)if(!(L=L.parentNode))return;return L[T]},
set:function(L,T){return L[this._]=T},
remove:function(L){return this._ in L&&delete L[this._]},
toString:function(){return this._}};
var w7=1/.7,M26=/^#([0-9a-f]{3})$/,g2V=/^#([0-9a-f]{6})$/,aR6=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),XY3=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Nei=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),$BU=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*\\)$"),
FYY=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Pw2=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*\\)$"),Kiq={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};
N6(pW,O7,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
N6(AU,T6,hg(pW,{brighter:function(L){L=L==null?w7:Math.pow(w7,L);return new AU(this.r*L,this.g*L,this.b*L,this.opacity)},
darker:function(L){L=L==null?.7:Math.pow(.7,L);return new AU(this.r*L,this.g*L,this.b*L,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"#"+w2(this.r)+w2(this.g)+w2(this.b)},
toString:function(){var L=this.opacity;L=isNaN(L)?1:Math.max(0,Math.min(1,L));return(L===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))+(L===1?")":", "+L+")")}}));
N6(YB,dI,hg(pW,{brighter:function(L){L=L==null?w7:Math.pow(w7,L);return new YB(this.h,this.s,this.l*L,this.opacity)},
darker:function(L){L=L==null?.7:Math.pow(.7,L);return new YB(this.h,this.s,this.l*L,this.opacity)},
rgb:function(){var L=this.h%360+(this.h<0)*360,T=this.l,H=T+(T<.5?T:1-T)*(isNaN(L)||isNaN(this.s)?0:this.s);T=2*T-H;return new AU(k1(L>=240?L-240:L+120,T,H),k1(L,T,H),k1(L<120?L+240:L-120,T,H),this.opacity)},
displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));
var yPq=Math.PI/180,O7U=180/Math.PI,sE4=4/29,Ec=6/29,Us3=3*Ec*Ec,t23=Ec*Ec*Ec;N6(X$,function(L,T,H,G){return arguments.length===1?z5(L):new X$(L,T,H,G==null?1:G)},hg(pW,{brighter:function(L){return new X$(this.l+18*(L==null?1:L),this.a,this.b,this.opacity)},
darker:function(L){return new X$(this.l-18*(L==null?1:L),this.a,this.b,this.opacity)},
rgb:function(){var L=(this.l+16)/116,T=isNaN(this.a)?L:L+this.a/500,H=isNaN(this.b)?L:L-this.b/200;T=.96422*UP(T);L=1*UP(L);H=.82521*UP(H);return new AU(dB(3.1338561*T-1.6168667*L-.4906146*H),dB(-.9787684*T+1.9161415*L+.033454*H),dB(.0719453*T-.2289914*L+1.4052427*H),this.opacity)}}));
N6(aD,b2,hg(pW,{brighter:function(L){return new aD(this.h,this.c,this.l+18*(L==null?1:L),this.opacity)},
darker:function(L){return new aD(this.h,this.c,this.l-18*(L==null?1:L),this.opacity)},
rgb:function(){return z5(this).rgb()}}));
var o7X=1.78277*-.29227-.1347134789;N6(pq,z4,hg(pW,{brighter:function(L){L=L==null?w7:Math.pow(w7,L);return new pq(this.h,this.s,this.l*L,this.opacity)},
darker:function(L){L=L==null?.7:Math.pow(.7,L);return new pq(this.h,this.s,this.l*L,this.opacity)},
rgb:function(){var L=isNaN(this.h)?0:(this.h+120)*yPq,T=+this.l,H=isNaN(this.s)?0:this.s*T*(1-T),G=Math.cos(L);L=Math.sin(L);return new AU(255*(T+H*(-.14861*G+1.78277*L)),255*(T+H*(-.29227*G+-.90649*L)),255*(T+1.97294*G*H),this.opacity)}}));
var kd3=function H(T){function G(wR,gR){var TB=lU((wR=T6(wR)).r,(gR=T6(gR)).r),Dd=lU(wR.g,gR.g),Bu=lU(wR.b,gR.b),rB=Rc(wR.opacity,gR.opacity);return function(p8){wR.r=TB(p8);wR.g=Dd(p8);wR.b=Bu(p8);wR.opacity=rB(p8);return wR+""}}
var lU=Ay(T);G.gamma=H;return G}(1),NPi=Mb(function(T){var H=T.length-1;
return function(G){var lU=G<=0?G=0:G>=1?(G=1,H-1):Math.floor(G*H),wR=T[lU],gR=T[lU+1];return tg((G-lU/H)*H,lU>0?T[lU-1]:2*wR-gR,wR,gR,lU<H-1?T[lU+2]:2*gR-wR)}});
Mb(function(T){var H=T.length;return function(G){var lU=Math.floor(((G%=1)<0?++G:G)*H);return tg((G-lU/H)*H,T[(lU+H-1)%H],T[lU%H],T[(lU+1)%H],T[(lU+2)%H])}});
var b7c=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pqw=new RegExp(b7c.source,"g"),QEs=180/Math.PI,JPl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},SC,jEw,il_,jzu,Fl2=OR(function(T){if(T==="none")return JPl;SC||(SC=document.createElement("DIV"),jEw=document.documentElement,il_=document.defaultView);SC.style.transform=T;T=il_.getComputedStyle(jEw.appendChild(SC),null).getPropertyValue("transform");jEw.removeChild(SC);T=T.slice(7,-1).split(",");return ja(+T[0],+T[1],+T[2],+T[3],
+T[4],+T[5])},"px, ","px)","deg)"),PIY=OR(function(T){if(T==null)return JPl;
jzu||(jzu=document.createElementNS("http://www.w3.org/2000/svg","g"));jzu.setAttribute("transform",T);if(!(T=jzu.transform.baseVal.consolidate()))return JPl;T=T.matrix;return ja(T.a,T.b,T.c,T.d,T.e,T.f)},", ",")",")");
lr(RM);lr(Rc);Om(RM);Om(Rc);gh(RM);var H7E=gh(Rc),SG=0,u8=0,rV=0,Pdu,Dg,FbB=0,Ru=0,$kB=0,qR=typeof performance==="object"&&performance.now?performance:Date,APC=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(T){setTimeout(T,17)};
aQ.prototype=oL.prototype={constructor:aQ,restart:function(T,H,G){if(typeof T!=="function")throw new TypeError("ze");G=(G==null?KQ():+G)+(H==null?0:+H);this._next||Dg===this||(Dg?Dg._next=this:Pdu=this,Dg=this);this._call=T;this._time=G;Au()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Au())}};
var cJB=I("start","end","interrupt"),WY3=[],tm1=hU.prototype.constructor,RqC=0,bs=hU.prototype;xn.prototype=function(T){return hU().transition(T)}.prototype={constructor:xn,
select:function(T){var H=this._name,G=this._id;typeof T!=="function"&&(T=z(T));for(var lU=this._groups,wR=lU.length,gR=Array(wR),TB=0;TB<wR;++TB)for(var Dd=lU[TB],Bu=Dd.length,rB=gR[TB]=Array(Bu),p8,ZU,nq=0;nq<Bu;++nq)(p8=Dd[nq])&&(ZU=T.call(p8,p8.__data__,nq,Dd))&&("__data__"in p8&&(ZU.__data__=p8.__data__),rB[nq]=ZU,n7K(rB[nq],H,G,nq,rB,xc(p8,G)));return new xn(gR,this._parents,H,G)},
filter:function(T){typeof T!=="function"&&(T=HlD(T));for(var H=this._groups,G=H.length,lU=Array(G),wR=0;wR<G;++wR)for(var gR=H[wR],TB=gR.length,Dd=lU[wR]=[],Bu,rB=0;rB<TB;++rB)(Bu=gR[rB])&&T.call(Bu,Bu.__data__,rB,gR)&&Dd.push(Bu);return new xn(lU,this._parents,this._name,this._id)},
merge:function(T){if(T._id!==this._id)throw Error();var H=this._groups;T=T._groups;for(var G=H.length,lU=Math.min(G,T.length),wR=Array(G),gR=0;gR<lU;++gR)for(var TB=H[gR],Dd=T[gR],Bu=TB.length,rB=wR[gR]=Array(Bu),p8,ZU=0;ZU<Bu;++ZU)if(p8=TB[ZU]||Dd[ZU])rB[ZU]=p8;for(;gR<G;++gR)wR[gR]=H[gR];return new xn(wR,this._parents,this._name,this._id)},
selection:function(){return new tm1(this._groups,this._parents)},
transition:function(){for(var T=this._name,H=this._id,G=++RqC,lU=this._groups,wR=lU.length,gR=0;gR<wR;++gR)for(var TB=lU[gR],Dd=TB.length,Bu,rB=0;rB<Dd;++rB)if(Bu=TB[rB]){var p8=xc(Bu,H);n7K(Bu,T,G,rB,TB,{time:p8.time+p8.delay+p8.duration,delay:0,duration:p8.duration,ease:p8.ease})}return new xn(lU,this._parents,T,G)},
call:bs.call,nodes:bs.nodes,node:bs.node,size:bs.size,empty:bs.empty,each:bs.each,on:function(T,H){var G=this._id;return arguments.length<2?xc(this.node(),G).on.on(T):this.each(AJU(G,T,H))},
attr:function(T,H){var G=S(T),lU=G==="transform"?PIY:Gd4;return this.attrTween(T,typeof H==="function"?(G.local?RvB:i92)(G,lU,zbR(this,"attr."+T,H)):H==null?(G.local?JJp:evq)(G):(G.local?H9Y:jF1)(G,lU,H+""))},
attrTween:function(T,H){var G="attr."+T;if(arguments.length<2)return(G=this.tween(G))&&G._value;if(H==null)return this.tween(G,null);if(typeof H!=="function")throw Error();var lU=S(T);return this.tween(G,(lU.local?v2Y:KY2)(lU,H))},
style:function(T,H,G){var lU=T==="transform"?Fl2:Gd4;return H==null?this.styleTween(T,G16(T,lU)).on("end.style."+T,k1U(T)):this.styleTween(T,typeof H==="function"?qoi(T,lU,zbR(this,"style."+T,H)):Be6(T,lU,H+""),G)},
styleTween:function(T,H,G){var lU="style."+T;if(arguments.length<2)return(lU=this.tween(lU))&&lU._value;if(H==null)return this.tween(lU,null);if(typeof H!=="function")throw Error();return this.tween(lU,uWs(T,H,G==null?"":G))},
text:function(T){return this.tween("text",typeof T==="function"?rA6(zbR(this,"text",T)):DB6(T==null?"":T+""))},
remove:function(){return this.on("end.remove",Z96(this._id))},
tween:function(T,H){var G=this._id;if(arguments.length<2){G=xc(this.node(),G).tween;for(var lU=0,wR=G.length,gR;lU<wR;++lU)if((gR=G[lU]).name===T)return gR.value;return null}return this.each((H==null?LYi:mB6)(G,T,H))},
delay:function(T){var H=this._id;return arguments.length?this.each((typeof T==="function"?yJ6:UB6)(H,T)):xc(this.node(),H).delay},
duration:function(T){var H=this._id;return arguments.length?this.each((typeof T==="function"?sF1:O9V)(H,T)):xc(this.node(),H).duration},
ease:function(T){var H=this._id;return arguments.length?this.each(o2V(H,T)):xc(this.node(),H).ease}};
var i7R={time:null,delay:0,duration:250,ease:function(T){return((T*=2)<=1?T*T*T:(T-=2)*T*T+2)/2}};
hU.prototype.transition=function(T){var H;if(T instanceof xn){var G=T._id;T=T._name}else G=++RqC,(H=i7R).time=KQ(),T=T==null?null:T+"";for(var lU=this._groups,wR=lU.length,gR=0;gR<wR;++gR)for(var TB=lU[gR],Dd=TB.length,Bu,rB=0;rB<Dd;++rB)if(Bu=TB[rB]){var p8=Bu,ZU=T,nq=G,g2=rB,ow=TB,FE;if(!(FE=H))a:{FE=void 0;for(var ko=G;!(FE=Bu.__transition)||!(FE=FE[ko]);)if(!(Bu=Bu.parentNode)){FE=(i7R.time=KQ(),i7R);break a}}n7K(p8,ZU,nq,g2,ow,FE)}return new xn(lU,this._parents,T,G)};
["e","w"].map(MZd);["n","s"].map(MZd);"n e s w nw ne se sw".split(" ").map(MZd);g7U.prototype=function(){return new g7U}.prototype={constructor:g7U,
moveTo:function(T,H){this._+="M"+(this._x0=this._x1=+T)+","+(this._y0=this._y1=+H)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(T,H){this._+="L"+(this._x1=+T)+","+(this._y1=+H)},
bezierCurveTo:function(T,H,G,lU,wR,gR){this._+="C"+ +T+","+ +H+","+ +G+","+ +lU+","+(this._x1=+wR)+","+(this._y1=+gR)},
rect:function(T,H,G,lU){this._+="M"+(this._x0=this._x1=+T)+","+(this._y0=this._y1=+H)+"h"+ +G+"v"+ +lU+"h"+-G+"Z"},
toString:function(){return this._}};
tbu.prototype=Bx3.prototype={constructor:tbu,has:function(T){return" "+T in this},
get:function(T){return this[" "+T]},
set:function(T,H){this[" "+T]=H;return this},
remove:function(T){T=" "+T;return T in this&&delete this[T]},
clear:function(){for(var T in this)T[0]===" "&&delete this[T]},
keys:function(){var T=[],H;for(H in this)H[0]===" "&&T.push(H.slice(1));return T},
values:function(){var T=[],H;for(H in this)H[0]===" "&&T.push(this[H]);return T},
entries:function(){var T=[],H;for(H in this)H[0]===" "&&T.push({key:H.slice(1),value:this[H]});return T},
size:function(){var T=0,H;for(H in this)H[0]===" "&&++T;return T},
empty:function(){for(var T in this)if(T[0]===" ")return!1;return!0},
each:function(T){for(var H in this)H[0]===" "&&T(this[H],H.slice(1),this)}};
var UX=Bx3.prototype;TI$.prototype=function(T,H){var G=new TI$;if(T instanceof TI$)T.each(function(gR){G.add(gR)});
else if(T){var lU=-1,wR=T.length;if(H==null)for(;++lU<wR;)G.add(T[lU]);else for(;++lU<wR;)G.add(H(T[lU],lU,T))}return G}.prototype={constructor:TI$,
has:UX.has,add:function(T){this[" "+T]=T;return this},
remove:UX.remove,clear:UX.clear,values:UX.keys,size:UX.size,empty:UX.empty,each:UX.each};var Dsq={},a4E={},TPd=uS8(",").parse,cB6=uS8("\t").parse;rLs(TPd);rLs(cB6);var Cx=function(T,H,G){H=new Xqq(H==null?YUV:H,G==null?le6:G,NaN,NaN,NaN,NaN);return T==null?H:H.addAll(T)}.prototype=Xqq.prototype;
Cx.copy=function(){var T=new Xqq(this._x,this._y,this._x0,this._y0,this._x1,this._y1),H=this._root,G,lU;if(!H)return T;if(!H.length)return T._root=I03(H),T;for(G=[{source:H,target:T._root=Array(4)}];H=G.pop();)for(var wR=0;wR<4;++wR)if(lU=H.source[wR])lU.length?G.push({source:lU,target:H.target[wR]=Array(4)}):H.target[wR]=I03(lU);return T};
Cx.add=function(T){var H=+this._x.call(null,T),G=+this._y.call(null,T);return f0g(this.cover(H,G),H,G,T)};
Cx.addAll=function(T){var H,G,lU=T.length,wR,gR,TB=Array(lU),Dd=Array(lU),Bu=Infinity,rB=Infinity,p8=-Infinity,ZU=-Infinity;for(G=0;G<lU;++G)isNaN(wR=+this._x.call(null,H=T[G]))||isNaN(gR=+this._y.call(null,H))||(TB[G]=wR,Dd[G]=gR,wR<Bu&&(Bu=wR),wR>p8&&(p8=wR),gR<rB&&(rB=gR),gR>ZU&&(ZU=gR));p8<Bu&&(Bu=this._x0,p8=this._x1);ZU<rB&&(rB=this._y0,ZU=this._y1);this.cover(Bu,rB).cover(p8,ZU);for(G=0;G<lU;++G)f0g(this,TB[G],Dd[G],T[G]);return this};
Cx.cover=function(T,H){if(isNaN(T=+T)||isNaN(H=+H))return this;var G=this._x0,lU=this._y0,wR=this._x1,gR=this._y1;if(isNaN(G))wR=(G=Math.floor(T))+1,gR=(lU=Math.floor(H))+1;else if(G>T||T>wR||lU>H||H>gR){var TB=wR-G,Dd=this._root,Bu;switch(Bu=(H<(lU+gR)/2)<<1|T<(G+wR)/2){case 0:do{var rB=Array(4);rB[Bu]=Dd;Dd=rB}while(TB*=2,wR=G+TB,gR=lU+TB,T>wR||H>gR);break;case 1:do rB=Array(4),rB[Bu]=Dd,Dd=rB;while(TB*=2,G=wR-TB,gR=lU+TB,G>T||H>gR);break;case 2:do rB=Array(4),rB[Bu]=Dd,Dd=rB;while(TB*=2,wR=G+TB,
lU=gR-TB,T>wR||lU>H);break;case 3:do rB=Array(4),rB[Bu]=Dd,Dd=rB;while(TB*=2,G=wR-TB,lU=gR-TB,G>T||lU>H)}this._root&&this._root.length&&(this._root=Dd)}else return this;this._x0=G;this._y0=lU;this._x1=wR;this._y1=gR;return this};
Cx.data=function(){var T=[];this.visit(function(H){if(!H.length){do T.push(H.data);while(H=H.next)}});
return T};
Cx.extent=function(T){return arguments.length?this.cover(+T[0][0],+T[0][1]).cover(+T[1][0],+T[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Cx.find=function(T,H,G){var lU=this._x0,wR=this._y0,gR,TB,Dd,Bu,rB=this._x1,p8=this._y1,ZU=[],nq=this._root,g2;nq&&ZU.push(new Is(nq,lU,wR,rB,p8));G==null?G=Infinity:(lU=T-G,wR=H-G,rB=T+G,p8=H+G,G*=G);for(;g2=ZU.pop();)if(!(!(nq=g2.node)||(gR=g2.x0)>rB||(TB=g2.y0)>p8||(Dd=g2.x1)<lU||(Bu=g2.y1)<wR))if(nq.length){g2=(gR+Dd)/2;var ow=(TB+Bu)/2;ZU.push(new Is(nq[3],g2,ow,Dd,Bu),new Is(nq[2],gR,ow,g2,Bu),new Is(nq[1],g2,TB,Dd,ow),new Is(nq[0],gR,TB,g2,ow));if(nq=(H>=ow)<<1|T>=g2)g2=ZU[ZU.length-1],ZU[ZU.length-
1]=ZU[ZU.length-1-nq],ZU[ZU.length-1-nq]=g2}else if(g2=T-+this._x.call(null,nq.data),ow=H-+this._y.call(null,nq.data),g2=g2*g2+ow*ow,g2<G){var FE=Math.sqrt(G=g2);lU=T-FE;wR=H-FE;rB=T+FE;p8=H+FE;FE=nq.data}return FE};
Cx.remove=function(T){if(isNaN(Bu=+this._x.call(null,T))||isNaN(rB=+this._y.call(null,T)))return this;var H,G=this._root,lU,wR=this._x0,gR=this._y0,TB=this._x1,Dd=this._y1,Bu,rB,p8,ZU,nq,g2,ow;if(!G)return this;if(G.length)for(;;){(nq=Bu>=(p8=(wR+TB)/2))?wR=p8:TB=p8;(g2=rB>=(ZU=(gR+Dd)/2))?gR=ZU:Dd=ZU;if(!(H=G,G=G[ow=g2<<1|nq]))return this;if(!G.length)break;if(H[ow+1&3]||H[ow+2&3]||H[ow+3&3]){var FE=H;var ko=ow}}for(;G.data!==T;)if(!(lU=G,G=G.next))return this;(T=G.next)&&delete G.next;if(lU)return T?
lU.next=T:delete lU.next,this;if(!H)return this._root=T,this;T?H[ow]=T:delete H[ow];(G=H[0]||H[1]||H[2]||H[3])&&G===(H[3]||H[2]||H[1]||H[0])&&!G.length&&(FE?FE[ko]=G:this._root=G);return this};
Cx.removeAll=function(T){for(var H=0,G=T.length;H<G;++H)this.remove(T[H]);return this};
Cx.root=function(){return this._root};
Cx.size=function(){var T=0;this.visit(function(H){if(!H.length){do++T;while(H=H.next)}});
return T};
Cx.visit=function(T){var H=[],G,lU=this._root,wR,gR,TB,Dd,Bu;for(lU&&H.push(new Is(lU,this._x0,this._y0,this._x1,this._y1));G=H.pop();)if(!T(lU=G.node,gR=G.x0,TB=G.y0,Dd=G.x1,Bu=G.y1)&&lU.length){G=(gR+Dd)/2;var rB=(TB+Bu)/2;(wR=lU[3])&&H.push(new Is(wR,G,rB,Dd,Bu));(wR=lU[2])&&H.push(new Is(wR,gR,rB,G,Bu));(wR=lU[1])&&H.push(new Is(wR,G,TB,Dd,rB));(wR=lU[0])&&H.push(new Is(wR,gR,TB,G,rB))}};
Cx.visitAfter=function(T){var H=[],G=[],lU;for(this._root&&H.push(new Is(this._root,this._x0,this._y0,this._x1,this._y1));lU=H.pop();){var wR=lU.node;if(wR.length){var gR,TB=lU.x0,Dd=lU.y0,Bu=lU.x1,rB=lU.y1,p8=(TB+Bu)/2,ZU=(Dd+rB)/2;(gR=wR[0])&&H.push(new Is(gR,TB,Dd,p8,ZU));(gR=wR[1])&&H.push(new Is(gR,p8,Dd,Bu,ZU));(gR=wR[2])&&H.push(new Is(gR,TB,ZU,p8,rB));(gR=wR[3])&&H.push(new Is(gR,p8,ZU,Bu,rB))}G.push(lU)}for(;lU=G.pop();)T(lU.node,lU.x0,lU.y0,lU.x1,lU.y1);return this};
Cx.x=function(T){return arguments.length?(this._x=T,this):this._x};
Cx.y=function(T){return arguments.length?(this._y=T,this):this._y};
var xKp=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;NxU.prototype=$sR.prototype;$sR.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 V83,E$g={"%":function(T,H){return(T*100).toFixed(H)},
b:function(T){return Math.round(T).toString(2)},
c:function(T){return T+""},
d:function(T){return Math.round(T).toString(10)},
e:function(T,H){return T.toExponential(H)},
f:function(T,H){return T.toFixed(H)},
g:function(T,H){return T.toPrecision(H)},
o:function(T){return Math.round(T).toString(8)},
p:function(T,H){return CR_(T*100,H)},
r:CR_,s:function(T,H){var G=cRB(T,H);if(!G)return T+"";var lU=G[0];G=G[1];G=G-(V83=Math.max(-8,Math.min(8,Math.floor(G/3)))*3)+1;var wR=lU.length;return G===wR?lU:G>wR?lU+Array(G-wR+1).join("0"):G>0?lU.slice(0,G)+"."+lU.slice(G):"0."+Array(1-G).join("0")+cRB(T,Math.max(0,H+G-1))[0]},
X:function(T){return Math.round(T).toString(16).toUpperCase()},
x:function(T){return Math.round(T).toString(16)}},l0X="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),Wlq;
(function(T){return Wlq=h0B(T)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});KD.prototype={constructor:KD,reset:function(){this.s=this.t=0},
add:function(T){SwX(HyK,T,this.t);SwX(this,HyK.s,this.s);this.s?this.t+=HyK.t:this.s=HyK.t},
valueOf:function(){return this.s}};
var HyK=new KD,LN=Math.PI,s1=LN/2,v$X=LN/4,Lli=LN*2,RbU=LN/180,hi=Math.abs,v7K=Math.atan,n$g=Math.atan2,O1=Math.cos,jo=Math.sin,LbP=Math.sqrt;new KD;new KD;new KD;var KiE=new KD;(function(T,H,G,lU){return function(wR){function gR(uE,d5){T(uE,d5)&&wR.point(uE,d5)}
function TB(uE,d5){nq.point(uE,d5)}
function Dd(){E0.point=TB;nq.lineStart()}
function Bu(){E0.point=gR;nq.lineEnd()}
function rB(uE,d5){cF.push([uE,d5]);ow.point(uE,d5)}
function p8(){ow.lineStart();cF=[]}
function ZU(){rB(cF[0][0],cF[0][1]);ow.lineEnd();var uE=ow.clean(),d5=g2.result(),Gy=d5.length,dU;cF.pop();ko.push(cF);cF=null;if(Gy)if(uE&1){if(Gy=d5[0],(d5=Gy.length-1)>0){FE||(wR.polygonStart(),FE=!0);wR.lineStart();for(uE=0;uE<d5;++uE)wR.point((dU=Gy[uE])[0],dU[1]);wR.lineEnd()}}else Gy>1&&uE&2&&d5.push(d5.pop().concat(d5.shift())),qu.push(d5.filter(nks))}
var nq=H(wR),g2=bdV(),ow=H(g2),FE=!1,ko,qu,cF,E0={point:gR,lineStart:Dd,lineEnd:Bu,polygonStart:function(){E0.point=rB;E0.lineStart=p8;E0.lineEnd=ZU;qu=[];ko=[]},
polygonEnd:function(){E0.point=gR;E0.lineStart=Dd;E0.lineEnd=Bu;var uE=qu,d5=uE.length;var Gy=-1;for(var dU=0,ed,nj;++Gy<d5;)dU+=uE[Gy].length;for(ed=Array(dU);--d5>=0;)for(nj=uE[d5],Gy=nj.length;--Gy>=0;)ed[--dU]=nj[Gy];qu=ed;uE=ko;d5=lU[0];dU=lU[1];var IM=jo(dU);Gy=[jo(d5),-O1(d5),0];nj=ed=0;KiE.reset();IM===1?dU=s1+1E-6:IM===-1&&(dU=-s1-1E-6);IM=0;for(var aY=uE.length;IM<aY;++IM)if(WR=(GA=uE[IM]).length){var GA,WR,BW=GA[WR-1],zg=BW[0],Td=BW[1]/2+v$X,iyc=jo(Td),KRD=O1(Td);for(Td=0;Td<WR;++Td,zg=
yPE,iyc=yLU,KRD=x9,BW=RoK){var RoK=GA[Td],yPE=RoK[0];x9=RoK[1]/2+v$X;var yLU=jo(x9),x9=O1(x9),pM=yPE-zg,UsK=pM>=0?1:-1,sEu=UsK*pM,vLK=sEu>LN;iyc*=yLU;KiE.add(n$g(iyc*UsK*jo(sEu),KRD*x9+iyc*O1(sEu)));ed+=vLK?pM+UsK*Lli:pM;vLK^zg>=d5^yPE>=d5&&(BW=hqX(xh4(BW),xh4(RoK)),w_g(BW),zg=hqX(Gy,BW),w_g(zg),zg=(vLK^pM>=0?-1:1)*Wbl(zg[2]),dU>zg||dU===zg&&(BW[0]||BW[1]))&&(nj+=vLK^pM>=0?1:-1)}}uE=(ed<-1E-6||ed<1E-6&&KiE<-1E-6)^nj&1;qu.length?(FE||(wR.polygonStart(),FE=!0),p7i(qu,dK6,uE,G,wR)):uE&&(FE||(wR.polygonStart(),
FE=!0),wR.lineStart(),G(null,null,1,wR),wR.lineEnd());FE&&(wR.polygonEnd(),FE=!1);qu=ko=null},
sphere:function(){wR.polygonStart();wR.lineStart();G(null,null,1,wR);wR.lineEnd();wR.polygonEnd()}};
return E0}})(function(){return!0},function(T){var H=NaN,G=NaN,lU=NaN,wR;
return{lineStart:function(){T.lineStart();wR=1},
point:function(gR,TB){var Dd=gR>0?LN:-LN,Bu=hi(gR-H);if(hi(Bu-LN)<1E-6)T.point(H,G=(G+TB)/2>0?s1:-s1),T.point(lU,G),T.lineEnd(),T.lineStart(),T.point(Dd,G),T.point(gR,G),wR=0;else if(lU!==Dd&&Bu>=LN){hi(H-lU)<1E-6&&(H-=lU*1E-6);hi(gR-Dd)<1E-6&&(gR-=Dd*1E-6);Bu=H;var rB=G,p8=gR,ZU,nq,g2=jo(Bu-p8);G=hi(g2)>1E-6?v7K((jo(rB)*(nq=O1(TB))*jo(p8)-jo(TB)*(ZU=O1(rB))*jo(Bu))/(ZU*nq*g2)):(rB+TB)/2;T.point(lU,G);T.lineEnd();T.lineStart();T.point(Dd,G);wR=0}T.point(H=gR,G=TB);lU=Dd},
lineEnd:function(){T.lineEnd();H=G=NaN},
clean:function(){return 2-wR}}},function(T,H,G,lU){T==null?(G*=s1,lU.point(-LN,G),lU.point(0,G),lU.point(LN,G),lU.point(LN,0),lU.point(LN,-G),lU.point(0,-G),lU.point(-LN,-G),lU.point(-LN,0),lU.point(-LN,G)):hi(T[0]-H[0])>1E-6?(T=T[0]<H[0]?LN:-LN,G=G*T/2,lU.point(-T,G),lU.point(0,G),lU.point(T,G)):lU.point(H[0],H[1])},[-LN,
-s1]);new KD;new KD;new KD;new KD;FiE.prototype={constructor:FiE,point:function(T,H){this.stream.point(T,H)},
sphere:function(){this.stream.sphere()},
lineStart:function(){this.stream.lineStart()},
lineEnd:function(){this.stream.lineEnd()},
polygonStart:function(){this.stream.polygonStart()},
polygonEnd:function(){this.stream.polygonEnd()}};
O1(30*RbU);(function(T){return function(H){var G=new FiE,lU;for(lU in T)G[lU]=T[lU];G.stream=H;return G}})({point:function(T,H){this.stream.point(T*RbU,H*RbU)}});
p_B(function(T){return LbP(2/(1+T))}).invert=fr(function(T){return 2*Wbl(T/2)});
p_B(function(T){return(T=T>1?0:T<-1?LN:Math.acos(T))&&T/jo(T)}).invert=fr(function(T){return T});
LbP(3);fr(v7K);fr(Wbl);fr(function(T){return 2*v7K(T)});
I2.prototype=dh4.prototype={constructor:I2,count:function(){return this.eachAfter(z06)},
each:function(T){var H,G=[this],lU;do{var wR=G.reverse();for(G=[];H=wR.pop();)if(T(H),H=H.children){var gR=0;for(lU=H.length;gR<lU;++gR)G.push(H[gR])}}while(G.length);return this},
eachAfter:function(T){for(var H,G=[this],lU=[],wR,gR;H=G.pop();)if(lU.push(H),H=H.children)for(wR=0,gR=H.length;wR<gR;++wR)G.push(H[wR]);for(;H=lU.pop();)T(H);return this},
eachBefore:function(T){for(var H,G=[this],lU;H=G.pop();)if(T(H),H=H.children)for(lU=H.length-1;lU>=0;--lU)G.push(H[lU]);return this},
sum:function(T){return this.eachAfter(function(H){for(var G=+T(H.data)||0,lU=H.children,wR=lU&&lU.length;--wR>=0;)G+=lU[wR].value;H.value=G})},
sort:function(T){return this.eachBefore(function(H){H.children&&H.children.sort(T)})},
path:function(T){var H=this;var G=H;var lU=T;if(G!==lU){var wR=G.ancestors(),gR=lU.ancestors(),TB=null;G=wR.pop();for(lU=gR.pop();G===lU;)TB=G,G=wR.pop(),lU=gR.pop();G=TB}for(lU=[H];H!==G;)H=H.parent,lU.push(H);for(H=lU.length;T!==G;)lU.splice(H,0,T),T=T.parent;return lU},
ancestors:function(){for(var T=this,H=[T];T=T.parent;)H.push(T);return H},
links:function(){var T=this,H=[];T.each(function(G){G!==T&&H.push({source:G.parent,target:G})});
return H},
copy:function(){return dh4(this).eachBefore(ae3)}};
(function(T,H){this._=T;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=H}).prototype=Object.create(I2.prototype);
var PNK=new Date,tZl=new Date,Uhq=$A(function(){},function(T,H){T.setTime(+T+H)},function(T,H){return H-T});
Uhq.every=function(T){T=Math.floor(T);return isFinite(T)&&T>0?T>1?$A(function(H){H.setTime(Math.floor(H/T)*T)},function(H,G){H.setTime(+H+G*T)},function(H,G){return(G-H)/T}):Uhq:null};
$A(function(T){T.setTime(Math.floor(T/1E3)*1E3)},function(T,H){T.setTime(+T+H*1E3)},function(T,H){return(H-T)/1E3},function(T){return T.getUTCSeconds()});
$A(function(T){T.setTime(Math.floor(T/6E4)*6E4)},function(T,H){T.setTime(+T+H*6E4)},function(T,H){return(H-T)/6E4},function(T){return T.getMinutes()});
$A(function(T){var H=T.getTimezoneOffset()*6E4%36E5;H<0&&(H+=36E5);T.setTime(Math.floor((+T-H)/36E5)*36E5+H)},function(T,H){T.setTime(+T+H*36E5)},function(T,H){return(H-T)/36E5},function(T){return T.getHours()});
var g$3=$A(function(T){T.setHours(0,0,0,0)},function(T,H){T.setDate(T.getDate()+H)},function(T,H){return(H-T-(H.getTimezoneOffset()-T.getTimezoneOffset())*6E4)/864E5},function(T){return T.getDate()-1}),aB6=KU(0),cPB=KU(1);
KU(2);KU(3);var Wiu=KU(4);KU(5);KU(6);$A(function(T){T.setDate(1);T.setHours(0,0,0,0)},function(T,H){T.setMonth(T.getMonth()+H)},function(T,H){return H.getMonth()-T.getMonth()+(H.getFullYear()-T.getFullYear())*12},function(T){return T.getMonth()});
var xT=$A(function(T){T.setMonth(0,1);T.setHours(0,0,0,0)},function(T,H){T.setFullYear(T.getFullYear()+H)},function(T,H){return H.getFullYear()-T.getFullYear()},function(T){return T.getFullYear()});
xT.every=function(T){return isFinite(T=Math.floor(T))&&T>0?$A(function(H){H.setFullYear(Math.floor(H.getFullYear()/T)*T);H.setMonth(0,1);H.setHours(0,0,0,0)},function(H,G){H.setFullYear(H.getFullYear()+G*T)}):null};
$A(function(T){T.setUTCSeconds(0,0)},function(T,H){T.setTime(+T+H*6E4)},function(T,H){return(H-T)/6E4},function(T){return T.getUTCMinutes()});
$A(function(T){T.setUTCMinutes(0,0,0)},function(T,H){T.setTime(+T+H*36E5)},function(T,H){return(H-T)/36E5},function(T){return T.getUTCHours()});
var M8s=$A(function(T){T.setUTCHours(0,0,0,0)},function(T,H){T.setUTCDate(T.getUTCDate()+H)},function(T,H){return(H-T)/864E5},function(T){return T.getUTCDate()-1}),Xz3=yX(0),Txw=yX(1);
yX(2);yX(3);var LiK=yX(4);yX(5);yX(6);$A(function(T){T.setUTCDate(1);T.setUTCHours(0,0,0,0)},function(T,H){T.setUTCMonth(T.getUTCMonth()+H)},function(T,H){return H.getUTCMonth()-T.getUTCMonth()+(H.getUTCFullYear()-T.getUTCFullYear())*12},function(T){return T.getUTCMonth()});
var hp=$A(function(T){T.setUTCMonth(0,1);T.setUTCHours(0,0,0,0)},function(T,H){T.setUTCFullYear(T.getUTCFullYear()+H)},function(T,H){return H.getUTCFullYear()-T.getUTCFullYear()},function(T){return T.getUTCFullYear()});
hp.every=function(T){return isFinite(T=Math.floor(T))&&T>0?$A(function(H){H.setUTCFullYear(Math.floor(H.getUTCFullYear()/T)*T);H.setUTCMonth(0,1);H.setUTCHours(0,0,0,0)},function(H,G){H.setUTCFullYear(H.getUTCFullYear()+G*T)}):null};
var zqs={"-":"",_:" ",0:"0"},WF=/^\s*\d+/,gcq=/^%/,MmY=/[\\^$*+?|[\]().{}]/g,KbP;(function(T){KbP=Ni6(T);hh4=KbP.utcFormat;wlg=KbP.utcParse;return KbP})({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||hh4("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||wlg("%Y-%m-%dT%H:%M:%S.%LZ");Eg("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Eg("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Eg("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Eg("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Eg("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Eg("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Eg("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Eg("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Eg("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Eg("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Eg("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Eg("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var mJ6=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Eg);kL(mJ6);var eW7=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Eg);kL(eW7);var JBq=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Eg);kL(JBq);var jHU=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Eg);
kL(jHU);var H$3=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Eg);kL(H$3);var i$6=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Eg);kL(i$6);var RWs=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Eg);kL(RWs);var vc6=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Eg);kL(vc6);var KlU=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Eg);kL(KlU);var yBV=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Eg);kL(yBV);var UJ6=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Eg);kL(UJ6);var sH3=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Eg);kL(sH3);var O$6=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Eg);kL(O$6);var ocd=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Eg);kL(ocd);var QH3=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Eg);kL(QH3);var AB6=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Eg);kL(AB6);var Z$U=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Eg);kL(Z$U);var Go1=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Eg);kL(Go1);var kos=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Eg);kL(kos);var BP6=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Eg);kL(BP6);var qad=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Eg);kL(qad);var uBU=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Eg);kL(uBU);var DJ7=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Eg);kL(DJ7);var rkV=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Eg);kL(rkV);var fV1=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Eg);kL(fV1);var IV7=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Eg);kL(IV7);var C02=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Eg);kL(C02);H7E(z4(300,.5,0),z4(-240,.5,1));H7E(z4(-100,.75,.35),z4(80,1.5,.8));H7E(z4(260,.75,.35),z4(80,1.5,.8));z4();T6();JRd(Eg("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
JRd(Eg("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
JRd(Eg("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
JRd(Eg("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
WRV.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(T,H){T=+T;H=+H;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(T,H):this._context.moveTo(T,H);break;case 1:this._point=2;default:this._context.lineTo(T,H)}}};
(function(T){function H(G){return new LRC(T(G))}
H._curve=T;return H})(function(T){return new WRV(T)});
LRC.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(T,H){this._curve.point(H*Math.sin(T),H*-Math.cos(T))}};
ebR.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:msu(this,this._t0,eqU(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(T,H){var G=NaN;T=+T;H=+H;if(T!==this._x1||H!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(T,H):this._context.moveTo(T,H);break;case 1:this._point=2;break;case 2:this._point=3;msu(this,eqU(this,G=mhs(this,T,H)),G);break;default:msu(this,this._t0,G=mhs(this,T,H))}this._x0=this._x1;this._x1=T;this._y0=this._y1;this._y1=H;this._t0=G}}};
(function(T){this._context=new JLs(T)}.prototype=Object.create(ebR.prototype)).point=function(T,H){ebR.prototype.point.call(this,H,T)};
JLs.prototype={moveTo:function(T,H){this._context.moveTo(H,T)},
closePath:function(){this._context.closePath()},
lineTo:function(T,H){this._context.lineTo(H,T)},
bezierCurveTo:function(T,H,G,lU,wR,gR){this._context.bezierCurveTo(H,T,lU,G,gR,wR)}};
VO.prototype={constructor:VO,scale:function(T){return T===1?this:new VO(this.k*T,this.x,this.y)},
translate:function(T,H){return T===0&H===0?this:new VO(this.k,this.x+this.k*T,this.y+this.k*H)},
apply:function(T){return[T[0]*this.k+this.x,T[1]*this.k+this.y]},
invert:function(T){return[(T[0]-this.x)/this.k,(T[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new VO(1,0,0);JrP=O7;U1.svg=U1.svg;U1.xhtml=U1.xhtml;U1.xlink=U1.xlink;U1.xml=U1.xml;U1.xmlns=U1.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 bQT="hammer_"+(Math.random()*1E6|0),plT=function(){var r=document||document;if(!r[bQT]){var f=function(){(function(I,C,Y,V){function S(X$,Jm,UP){return setTimeout(g(X$,UP),Jm)}
function h(X$,Jm,UP){return Array.isArray(X$)?(w(X$,UP[Jm],UP),!0):!1}
function w(X$,Jm,UP){var dB;if(X$)if(X$.forEach)X$.forEach(Jm,UP);else if(X$.length!==V){var l2=0;for(dB=X$.length;l2<dB;l2++)Jm.call(UP,X$[l2],l2,X$)}else for(l2 in X$)X$.hasOwnProperty(l2)&&Jm.call(UP,X$[l2],l2,X$)}
function n(X$,Jm,UP){for(var dB=Object.keys(Jm),l2=0,Lj=dB.length;l2<Lj;l2++)if(!UP||UP&&X$[dB[l2]]===V)X$[dB[l2]]=Jm[dB[l2]];return X$}
function d(X$,Jm){return n(X$,Jm,!0)}
function z(X$,Jm,UP){Jm=Jm.prototype;var dB=X$.prototype=Object.create(Jm);dB.constructor=X$;dB._super=Jm;UP&&n(dB,UP)}
function g(X$,Jm){return function(){return X$.apply(Jm,arguments)}}
function X(X$,Jm){return typeof X$=="function"?X$.apply(Jm?Jm[0]||V:V,Jm):X$}
function P(X$,Jm,UP){w(m(Jm),function(dB){X$.addEventListener(dB,UP,!1)})}
function W(X$,Jm,UP){w(m(Jm),function(dB){X$.removeEventListener(dB,UP,!1)})}
function m(X$){return X$.trim().split(/\s+/g)}
function v(X$,Jm,UP){if(X$.indexOf&&!UP)return X$.indexOf(Jm);for(var dB=0,l2=X$.length;dB<l2;dB++)if(UP&&X$[dB][UP]==Jm||!UP&&X$[dB]===Jm)return dB;return-1}
function O(X$,Jm,UP){for(var dB=[],l2=[],Lj=0,b2=X$.length;Lj<b2;Lj++){var aD=Jm?X$[Lj][Jm]:X$[Lj];v(l2,aD)<0&&dB.push(X$[Lj]);l2[Lj]=aD}UP&&(dB=Jm?dB.sort(function(z4,pq){return z4[Jm]>pq[Jm]}):dB.sort());
return dB}
function k(X$,Jm){for(var UP,dB=Jm[0].toUpperCase()+Jm.slice(1),l2=0,Lj=kq.length;l2<Lj;l2++)if(UP=(UP=kq[l2])?UP+dB:Jm,UP in X$)return UP;return V}
function Z(X$,Jm){var UP=this;this.manager=X$;this.callback=Jm;this.element=X$.element;this.target=X$.options.inputTarget;this.domHandler=function(dB){X(X$.options.enable,[X$])&&UP.handler(dB)};
this.evEl&&P(this.element,this.evEl,this.domHandler);this.evTarget&&P(this.target,this.evTarget,this.domHandler);this.evWin&&P(I,this.evWin,this.domHandler)}
function Cw(X$){var Jm;ak?Jm=oR:Xo?Jm=vu:O7?Jm=wB:Jm=iU;return new Jm(X$,rR)}
function rR(X$,Jm,UP){var dB=UP.pointers.length,l2=UP.changedPointers.length,Lj=Jm&1&&dB-l2===0;UP.isFirst=!!Lj;UP.isFinal=!!(Jm&12&&dB-l2===0);Lj&&(X$.session={});UP.eventType=Jm;Jm=X$.session;dB=UP.pointers;l2=dB.length;Jm.firstInput||(Jm.firstInput=EP(UP));l2>1&&!Jm.firstMultiple?Jm.firstMultiple=EP(UP):l2===1&&(Jm.firstMultiple=!1);Lj=Jm.firstInput;var b2=(l2=Jm.firstMultiple)?l2.center:Lj.center,aD=UP.center=Pu(dB);UP.timeStamp=N6();UP.deltaTime=UP.timeStamp-Lj.timeStamp;UP.angle=OP(b2,aD);UP.distance=
cu(b2,aD);Lj=UP.center;b2=Jm.offsetDelta||{};aD=Jm.prevDelta||{};var z4=Jm.prevInput||{};if(UP.eventType===1||z4.eventType===4)aD=Jm.prevDelta={x:z4.deltaX||0,y:z4.deltaY||0},b2=Jm.offsetDelta={x:Lj.x,y:Lj.y};UP.deltaX=aD.x+(Lj.x-b2.x);UP.deltaY=aD.y+(Lj.y-b2.y);UP.offsetDirection=Wu(UP.deltaX,UP.deltaY);l2?(Lj=l2.pointers,Lj=cu(dB[0],dB[1],T6)/cu(Lj[0],Lj[1],T6)):Lj=1;UP.scale=Lj;l2?(l2=l2.pointers,dB=OP(dB[1],dB[0],T6)-OP(l2[1],l2[0],T6)):dB=0;UP.rotation=dB;b2=Jm.lastInterval||UP;dB=UP.timeStamp-
b2.timeStamp;UP.eventType!=8&&(dB>25||b2.velocity===V)?(Lj=b2.deltaX-UP.deltaX,b2=b2.deltaY-UP.deltaY,aD=Lj/dB||0,z4=b2/dB||0,dB=aD,l2=z4,aD=P4(aD)>P4(z4)?aD:z4,Lj=Wu(Lj,b2),Jm.lastInterval=UP):(aD=b2.velocity,dB=b2.velocityX,l2=b2.velocityY,Lj=b2.direction);UP.velocity=aD;UP.velocityX=dB;UP.velocityY=l2;UP.direction=Lj;Jm=X$.element;a:{for(dB=UP.srcEvent.target;dB;){if(dB==Jm){dB=!0;break a}dB=dB.parentNode}dB=!1}dB&&(Jm=UP.srcEvent.target);UP.target=Jm;X$.emit("hammer.input",UP);X$.recognize(UP);
X$.session.prevInput=UP}
function EP(X$){for(var Jm=[],UP=0;UP<X$.pointers.length;UP++)Jm[UP]={clientX:hU(X$.pointers[UP].clientX),clientY:hU(X$.pointers[UP].clientY)};return{timeStamp:N6(),pointers:Jm,center:Pu(Jm),deltaX:X$.deltaX,deltaY:X$.deltaY}}
function Pu(X$){var Jm=X$.length;if(Jm===1)return{x:hU(X$[0].clientX),y:hU(X$[0].clientY)};for(var UP=0,dB=0,l2=0;l2<Jm;l2++)UP+=X$[l2].clientX,dB+=X$[l2].clientY;return{x:hU(UP/Jm),y:hU(dB/Jm)}}
function Wu(X$,Jm){return X$===Jm?1:P4(X$)>=P4(Jm)?X$>0?2:4:Jm>0?8:16}
function cu(X$,Jm,UP){UP||(UP=yq);var dB=Jm[UP[0]]-X$[UP[0]];X$=Jm[UP[1]]-X$[UP[1]];return Math.sqrt(dB*dB+X$*X$)}
function OP(X$,Jm,UP){UP||(UP=yq);return Math.atan2(Jm[UP[1]]-X$[UP[1]],Jm[UP[0]]-X$[UP[0]])*180/Math.PI}
function iU(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;Z.apply(this,arguments)}
function oR(){this.evEl=to;this.evWin=dI;Z.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function vu(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};Z.apply(this,arguments)}
function wB(){Z.apply(this,arguments);var X$=g(this.handler,this);this.touch=new vu(this.manager,X$);this.mouse=new iU(this.manager,X$)}
function qT(X$,Jm){this.manager=X$;this.set(Jm)}
function gB(X$){if(X$.indexOf("none")>-1)return"none";var Jm=X$.indexOf("pan-x")>-1,UP=X$.indexOf("pan-y")>-1;return Jm&&UP?"pan-x pan-y":Jm||UP?Jm?"pan-x":"pan-y":X$.indexOf("manipulation")>-1?"manipulation":"auto"}
function C8(X$){this.id=hg++;this.manager=null;this.options=d(X$||{},this.defaults);X$=this.options.enable;this.options.enable=X$===V?!0:X$;this.state=1;this.simultaneous={};this.requireFail=[]}
function Es(X$){return X$==16?"down":X$==8?"up":X$==2?"left":X$==4?"right":""}
function J_(X$,Jm){return(Jm=Jm.manager)?Jm.get(X$):X$}
function xC(){C8.apply(this,arguments)}
function r2(){xC.apply(this,arguments);this.pY=this.pX=null}
function F9(){xC.apply(this,arguments)}
function SK(){C8.apply(this,arguments);this._input=this._timer=null}
function FX(){xC.apply(this,arguments)}
function iV(){xC.apply(this,arguments)}
function s7(){C8.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function W4(X$,Jm){Jm=Jm||{};var UP=Jm.recognizers;Jm.recognizers=UP===V?W4.defaults.preset:UP;return new Qq(X$,Jm)}
function Qq(X$,Jm){Jm=Jm||{};this.options=d(Jm,W4.defaults);this.options.inputTarget=this.options.inputTarget||X$;this.handlers={};this.session={};this.recognizers=[];this.element=X$;this.input=Cw(this);this.touchAction=new qT(this,this.options.touchAction);Gs(this,!0);w(Jm.recognizers,function(UP){var dB=this.add(new UP[0](UP[1]));UP[2]&&dB.recognizeWith(UP[2]);UP[3]&&dB.requireFailure(UP[2])},this)}
function Gs(X$,Jm){var UP=X$.element;w(X$.options.cssProps,function(dB,l2){UP.style[k(UP.style,l2)]=Jm?dB:""})}
function $C(X$,Jm){var UP=C.createEvent("Event");UP.initEvent(X$,!0,!0);UP.gesture=Jm;Jm.target.dispatchEvent(UP)}
var kq=" webkit moz MS ms o".split(" "),XX=C.createElement("div"),hU=Math.round,P4=Math.abs,N6=Date.now,hg=1,pW=/mobile|tablet|ip(ad|hone|od)|android/i,O7="ontouchstart"in I,ak=k(I,"PointerEvent")!==V,Xo=O7&&pW.test(navigator.userAgent),yq=["x","y"],T6=["clientX","clientY"];Z.prototype={handler:function(){},
destroy:function(){this.evEl&&W(this.element,this.evEl,this.domHandler);this.evTarget&&W(this.target,this.evTarget,this.domHandler);this.evWin&&W(I,this.evWin,this.domHandler)}};
var AU={mousedown:1,mousemove:2,mouseup:4};z(iU,Z,{handler:function(X$){var Jm=AU[X$.type];Jm&1&&X$.button===0&&(this.pressed=!0);Jm&2&&X$.which!==1&&(Jm=4);this.pressed&&this.allow&&(Jm&4&&(this.pressed=!1),this.callback(this.manager,Jm,{pointers:[X$],changedPointers:[X$],pointerType:"mouse",srcEvent:X$}))}});
var w2={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},NU={2:"touch",3:"pen",4:"mouse",5:"kinect"},to="pointerdown",dI="pointermove pointerup pointercancel";I.MSPointerEvent&&(to="MSPointerDown",dI="MSPointerMove MSPointerUp MSPointerCancel");z(oR,Z,{handler:function(X$){var Jm=this.store,UP=!1,dB=X$.type.toLowerCase().replace("ms","");dB=w2[dB];var l2=NU[X$.pointerType]||X$.pointerType;dB&1&&(X$.button===0||l2=="touch")?Jm.push(X$):dB&12&&(UP=!0);var Lj=v(Jm,X$.pointerId,"pointerId");
Lj<0||(Jm[Lj]=X$,this.callback(this.manager,dB,{pointers:Jm,changedPointers:[X$],pointerType:l2,srcEvent:X$}),UP&&Jm.splice(Lj,1))}});
var YB={touchstart:1,touchmove:2,touchend:4,touchcancel:8};z(vu,Z,{handler:function(X$){var Jm=YB[X$.type];var UP=Array.prototype.slice.call(X$.touches,0);var dB=this.targetIds;if(Jm&3&&UP.length===1)dB[UP[0].identifier]=!0,dB=[UP,UP];else{var l2,Lj=Array.prototype.slice.call(X$.targetTouches,0),b2=Array.prototype.slice.call(X$.changedTouches,0),aD=[];if(Jm===1)for(UP=0,l2=Lj.length;UP<l2;UP++)dB[Lj[UP].identifier]=!0;UP=0;for(l2=b2.length;UP<l2;UP++)dB[b2[UP].identifier]&&aD.push(b2[UP]),Jm&12&&
delete dB[b2[UP].identifier];dB=aD.length?[O(Lj.concat(aD),"identifier",!0),aD]:void 0}dB&&this.callback(this.manager,Jm,{pointers:dB[0],changedPointers:dB[1],pointerType:"touch",srcEvent:X$})}});
z(wB,Z,{handler:function(X$,Jm,UP){var dB=UP.pointerType=="mouse";if(UP.pointerType=="touch")this.mouse.allow=!1;else if(dB&&!this.mouse.allow)return;Jm&12&&(this.mouse.allow=!0);this.callback(X$,Jm,UP)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var k1=k(XX.style,"touchAction"),z5=k1!==V;qT.prototype={set:function(X$){X$=="compute"&&(X$=this.compute());z5&&(this.manager.element.style[k1]=X$);this.actions=X$.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var X$=[];w(this.manager.recognizers,function(Jm){X(Jm.options.enable,[Jm])&&(X$=X$.concat(Jm.getTouchAction()))});
return gB(X$.join(" "))},
preventDefaults:function(X$){if(!z5){var Jm=X$.srcEvent;X$=X$.offsetDirection;if(this.manager.session.prevented)Jm.preventDefault();else{var UP=this.actions,dB=UP.indexOf("none")>-1,l2=UP.indexOf("pan-y")>-1;UP=UP.indexOf("pan-x")>-1;if(dB||l2&&UP||l2&&X$&6||UP&&X$&24)return this.preventSrc(Jm)}}},
preventSrc:function(X$){this.manager.session.prevented=!0;X$.preventDefault()}};
C8.prototype={defaults:{},set:function(X$){n(this.options,X$);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(X$){if(h(X$,"recognizeWith",this))return this;var Jm=this.simultaneous;X$=J_(X$,this);Jm[X$.id]||(Jm[X$.id]=X$,X$.recognizeWith(this));return this},
dropRecognizeWith:function(X$){if(h(X$,"dropRecognizeWith",this))return this;X$=J_(X$,this);delete this.simultaneous[X$.id];return this},
requireFailure:function(X$){if(h(X$,"requireFailure",this))return this;var Jm=this.requireFail;X$=J_(X$,this);v(Jm,X$)===-1&&(Jm.push(X$),X$.requireFailure(this));return this},
dropRequireFailure:function(X$){if(h(X$,"dropRequireFailure",this))return this;X$=J_(X$,this);X$=v(this.requireFail,X$);X$>-1&&this.requireFail.splice(X$,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(X$){return!!this.simultaneous[X$.id]},
emit:function(X$){function Jm(l2){UP.manager.emit(UP.options.event+(l2?dB&16?"cancel":dB&8?"end":dB&4?"move":dB&2?"start":"":""),X$)}
var UP=this,dB=this.state;dB<8&&Jm(!0);Jm();dB>=8&&Jm(!0)},
tryEmit:function(X$){if(this.canEmit())return this.emit(X$);this.state=32},
canEmit:function(){for(var X$=0;X$<this.requireFail.length;X$++)if(!(this.requireFail[X$].state&33))return!1;return!0},
recognize:function(X$){X$=n({},X$);X(this.options.enable,[this,X$])?(this.state&56&&(this.state=1),this.state=this.process(X$),this.state&30&&this.tryEmit(X$)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
z(xC,C8,{defaults:{pointers:1},attrTest:function(X$){var Jm=this.options.pointers;return Jm===0||X$.pointers.length===Jm},
process:function(X$){var Jm=this.state,UP=X$.eventType,dB=Jm&6;X$=this.attrTest(X$);return dB&&(UP&8||!X$)?Jm|16:dB||X$?UP&4?Jm|8:Jm&2?Jm|4:2:32}});
z(r2,xC,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var X$=this.options.direction;if(X$===30)return["none"];var Jm=[];X$&6&&Jm.push("pan-y");X$&24&&Jm.push("pan-x");return Jm},
directionTest:function(X$){var Jm=this.options,UP=!0,dB=X$.distance,l2=X$.direction,Lj=X$.deltaX,b2=X$.deltaY;l2&Jm.direction||(Jm.direction&6?(l2=Lj===0?1:Lj<0?2:4,UP=Lj!=this.pX,dB=Math.abs(X$.deltaX)):(l2=b2===0?1:b2<0?8:16,UP=b2!=this.pY,dB=Math.abs(X$.deltaY)));X$.direction=l2;return UP&&dB>Jm.threshold&&l2&Jm.direction},
attrTest:function(X$){return xC.prototype.attrTest.call(this,X$)&&(this.state&2||!(this.state&2)&&this.directionTest(X$))},
emit:function(X$){this.pX=X$.deltaX;this.pY=X$.deltaY;var Jm=Es(X$.direction);Jm&&this.manager.emit(this.options.event+Jm,X$);this._super.emit.call(this,X$)}});
z(F9,xC,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(X$){return this._super.attrTest.call(this,X$)&&(Math.abs(X$.scale-1)>this.options.threshold||this.state&2)},
emit:function(X$){this._super.emit.call(this,X$);X$.scale!==1&&this.manager.emit(this.options.event+(X$.scale<1?"in":"out"),X$)}});
z(SK,C8,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(X$){var Jm=this.options,UP=X$.pointers.length===Jm.pointers,dB=X$.distance<Jm.threshold,l2=X$.deltaTime>Jm.time;this._input=X$;if(!dB||!UP||X$.eventType&12&&!l2)this.reset();else if(X$.eventType&1)this.reset(),this._timer=S(function(){this.state=8;this.tryEmit()},Jm.time,this);
else if(X$.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(X$){this.state===8&&(X$&&X$.eventType&4?this.manager.emit(this.options.event+"up",X$):(this._input.timeStamp=N6(),this.manager.emit(this.options.event,this._input)))}});
z(FX,xC,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(X$){return this._super.attrTest.call(this,X$)&&(Math.abs(X$.rotation)>this.options.threshold||this.state&2)}});
z(iV,xC,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return r2.prototype.getTouchAction.call(this)},
attrTest:function(X$){var Jm=this.options.direction;if(Jm&30)var UP=X$.velocity;else Jm&6?UP=X$.velocityX:Jm&24&&(UP=X$.velocityY);return this._super.attrTest.call(this,X$)&&Jm&X$.direction&&P4(UP)>this.options.velocity&&X$.eventType&4},
emit:function(X$){var Jm=Es(X$.direction);Jm&&this.manager.emit(this.options.event+Jm,X$);this.manager.emit(this.options.event,X$)}});
z(s7,C8,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(X$){var Jm=this.options,UP=X$.pointers.length===Jm.pointers,dB=X$.distance<Jm.threshold,l2=X$.deltaTime<Jm.time;this.reset();if(X$.eventType&1&&this.count===0)return this.failTimeout();if(dB&&l2&&UP){if(X$.eventType!=4)return this.failTimeout();UP=this.pTime?X$.timeStamp-this.pTime<Jm.interval:!0;dB=!this.pCenter||cu(this.pCenter,X$.center)<Jm.posThreshold;this.pTime=X$.timeStamp;this.pCenter=X$.center;dB&&UP?this.count+=1:this.count=1;this._input=X$;if(this.count%Jm.taps===0)return this.hasRequireFailures()?
(this._timer=S(function(){this.state=8;this.tryEmit()},Jm.interval,this),2):8}return 32},
failTimeout:function(){this._timer=S(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))}});
W4.VERSION="2.0.2";W4.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[FX,{enable:!1}],[F9,{enable:!1},["rotate"]],[iV,{direction:6}],[r2,{direction:6},["swipe"]],[s7],[s7,{event:"doubletap",taps:2},["tap"]],[SK]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Qq.prototype={set:function(X$){n(this.options,X$);return this},
stop:function(X$){this.session.stopped=X$?2:1},
recognize:function(X$){var Jm=this.session;if(!Jm.stopped){this.touchAction.preventDefaults(X$);var UP=this.recognizers,dB=Jm.curRecognizer;if(!dB||dB&&dB.state&8)dB=Jm.curRecognizer=null;for(var l2=0,Lj=UP.length;l2<Lj;l2++){var b2=UP[l2];Jm.stopped===2||dB&&b2!=dB&&!b2.canRecognizeWith(dB)?b2.reset():b2.recognize(X$);!dB&&b2.state&14&&(dB=Jm.curRecognizer=b2)}}},
get:function(X$){if(X$ instanceof C8)return X$;for(var Jm=this.recognizers,UP=0;UP<Jm.length;UP++)if(Jm[UP].options.event==X$)return Jm[UP];return null},
add:function(X$){if(h(X$,"add",this))return this;var Jm=this.get(X$.options.event);Jm&&this.remove(Jm);this.recognizers.push(X$);X$.manager=this;this.touchAction.update();return X$},
remove:function(X$){if(h(X$,"remove",this))return this;var Jm=this.recognizers;X$=this.get(X$);Jm.splice(v(Jm,X$),1);this.touchAction.update();return this},
on:function(X$,Jm){var UP=this.handlers;w(m(X$),function(dB){UP[dB]=UP[dB]||[];UP[dB].push(Jm)});
return this},
off:function(X$,Jm){var UP=this.handlers;w(m(X$),function(dB){Jm?UP[dB].splice(v(UP[dB],Jm),1):delete UP[dB]});
return this},
emit:function(X$,Jm){this.options.domEvents&&$C(X$,Jm);var UP=this.handlers[X$]&&this.handlers[X$].slice();if(UP&&UP.length){Jm.type=X$;Jm.preventDefault=function(){Jm.srcEvent.preventDefault()};
X$=0;for(var dB=UP.length;X$<dB;X$++)UP[X$](Jm)}},
destroy:function(){this.element&&Gs(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
n(W4,{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:Qq,Input:Z,TouchAction:qT,Recognizer:C8,AttrRecognizer:xC,Tap:s7,Pan:r2,Swipe:iV,Pinch:F9,Rotate:FX,Press:SK,on:P,off:W,each:w,merge:d,extend:n,inherit:z,bindFn:g,prefixed:k});
I[Y]=W4})(window,document,"Hammer");
return window.Hammer}.call({});
f.DOCUMENT=r;r[bQT]=f}return r[bQT]};/*

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

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 vZg;_.Rhg="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");vZg=function(){var r=[],f;var I=I||_.Rhg.length;for(f=0;f<8;f++)r[f]=_.Rhg[0|Math.random()*I];return r.join("")};var XMm=function(){return Math.random().toString(36).substring(7).split("").join(".")},anc="@@redux/INIT"+XMm(),Ft$="@@redux/REPLACE"+XMm();var Pfq=typeof Symbol==="function"&&Symbol.observable||"@@observable";var KCU=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var y8s="top right bottom left width height size weight".split(" "),UmV=typeof MutationObserver!=="undefined",sCX=KCU&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,OQD=function(){this.mutationEventsAdded_=this.JSC$9560_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=tg$(this.refresh.bind(this))},oZX=function(r,
f){var I=r.observers_;
f=I.indexOf(f);~f&&I.splice(f,1);!I.length&&r.JSC$9560_connected_&&KCU&&r.JSC$9560_connected_&&(document.removeEventListener("transitionend",r.onTransitionEnd_),window.removeEventListener("resize",r.refresh),r.mutationsObserver_&&(r.mutationsObserver_.disconnect(),sCX&&(HTMLElement.prototype.attachShadow=sCX)),r.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",r.refresh),r.mutationsObserver_=null,r.mutationEventsAdded_=!1,r.JSC$9560_connected_=!1)};
OQD.prototype.refresh=function(){QCT(this)&&this.refresh()};
var QCT=function(r){r=r.observers_.filter(function(f){return A83(f),f.activeObservations_.length>0});
r.forEach(function(f){return ZQ8(f)});
return r.length>0},GYU=function(r){if(KCU&&!r.JSC$9560_connected_){document.addEventListener("transitionend",r.onTransitionEnd_);
window.addEventListener("resize",r.refresh);if(UmV){r.mutationsObserver_=new MutationObserver(r.refresh);var f={attributes:!0,childList:!0,characterData:!0,subtree:!0};r.mutationsObserver_.observe(document,f);sCX&&(function Y(C){var V=C.shadowRoot;V&&(r.mutationsObserver_.observe(V,f),Y(V));for(C=C.firstElementChild;C;)Y(C),C=C.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var C=sCX.apply(this,_.XE.apply(0,arguments));
r.mutationsObserver_.observe(C,f);return C})}else document.addEventListener("DOMSubtreeModified",r.refresh),r.mutationEventsAdded_=!0;
r.JSC$9560_connected_=!0}};
OQD.prototype.onTransitionEnd_=function(r){var f=r.propertyName===void 0?"":r.propertyName;y8s.some(function(I){return!!~f.indexOf(I)})&&this.refresh()};
var kYq=null;var BWq=function(r,f){for(var I=_.E(Object.keys(f)),C=I.next();!C.done;C=I.next())C=C.value,Object.defineProperty(r,C,{value:f[C],enumerable:!1,writable:!1,configurable:!0})};var Wq=function(r){var f;return(r==null?void 0:(f=r.ownerDocument)==null?void 0:f.defaultView)||globalThis};var qkB={x:0,y:0,width:0,height:0},uA8=typeof SVGGraphicsElement!=="undefined"?function(r){return r instanceof Wq(r).SVGGraphicsElement}:function(r){return r instanceof Wq(r).SVGElement&&typeof r.getBBox==="function"};var DmD=function(r){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=r};
DmD.prototype.isActive=function(){var r=this.target;if(KCU)if(uA8(r)){var f=r.getBBox();f={x:0,y:0,width:f.width,height:f.height}}else{var I=r.clientWidth,C=r.clientHeight;if(I||C){var Y=Wq(r).getComputedStyle(r);f=El(Y["padding-top"]);var V=El(Y["padding-left"]),S=V+El(Y["padding-right"]),h=f+El(Y["padding-bottom"]),w=El(Y.width),n=El(Y.height);Y.boxSizing==="border-box"&&(Math.round(w+S)!==I&&(w-=Thm(Y,"left","right")+S),Math.round(n+h)!==C&&(n-=Thm(Y,"top","bottom")+h));r!==Wq(r).document.documentElement&&
(r=Math.round(w+S)-I,C=Math.round(n+h)-C,Math.abs(r)!==1&&(w-=r),Math.abs(C)!==1&&(n-=C));f={x:V,y:f,width:w,height:n}}else f=qkB}else f=qkB;this.contentRect_=f;return f.width!==this.broadcastWidth||f.height!==this.broadcastHeight};var rvX=function(r,f){var I=f.x;var C=f.y;var Y=f.width;f=f.height;var V=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);BWq(V,{x:I,y:C,width:Y,height:f,top:C,right:I+Y,bottom:f+C,left:I});BWq(this,{target:r,contentRect:V})};var fKT=function(r,f){var I=kYq;this.activeObservations_=[];this.observations_=new Map;if(typeof r!=="function")throw new TypeError("Qe");this.callback_=r;this.controller_=I;this.callbackCtx_=f};
fKT.prototype.observe=function(r){if(r===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(r instanceof Wq(r).Element))throw new TypeError("Se");var f=this.observations_;f.has(r)||(f.set(r,new DmD(r)),r=this.controller_,~r.observers_.indexOf(this)||r.observers_.push(this),r.JSC$9560_connected_||GYU(r),this.controller_.refresh())}};
fKT.prototype.unobserve=function(r){if(r===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(r instanceof Wq(r).Element))throw new TypeError("Se");var f=this.observations_;f.has(r)&&(f.delete(r),f.size||oZX(this.controller_,this))}};
fKT.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();oZX(this.controller_,this)};
var A83=function(r){r.activeObservations_.splice(0);r.observations_.forEach(function(f){f.isActive()&&r.activeObservations_.push(f)})},ZQ8=function(r){if(r.activeObservations_.length>0){var f=r.callbackCtx_,I=r.activeObservations_.map(function(C){var Y=C.target,V=C.contentRect_;
C.broadcastWidth=V.width;C.broadcastHeight=V.height;return new rvX(Y,V)});
r.callback_.call(f,I,f);r.activeObservations_.splice(0)}};var L7=function(r){if(!(this instanceof L7))throw new TypeError("Te");if(!arguments.length)throw new TypeError("Re");kYq||(kYq=new OQD);this.observer_=new fKT(r,this)};
L7.prototype.observe=function(r){this.observer_.observe(r)};
L7.prototype.unobserve=function(r){this.observer_.unobserve(r)};
L7.prototype.disconnect=function(){this.observer_.disconnect()};var cSq=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:L7;var HD$="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(" "),jJu={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},JsE=null,csR=null;var iDK={},RQK=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 opK={text:1},ysU={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var IKC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,C63={CONSTANT:{isUnwrappable:function(r){return r instanceof cR},
unwrap:Y7T},JAVASCRIPT:{isUnwrappable:function(r){return r instanceof _.jF},
unwrap:iM},HTML:{isUnwrappable:function(r){return r instanceof TC},
unwrap:function(r){return WL(r)}},
RESOURCE_URL:{isUnwrappable:function(r){return r instanceof ER},
unwrap:_.x1},STRING:{isUnwrappable:function(r){return r instanceof Object},
unwrap:function(r){return String(r)}},
STYLE:{isUnwrappable:function(r){return typeof r==="string"},
unwrap:function(r){return r}},
URL:{isUnwrappable:function(r){return pK(r)},
unwrap:_.nK}},Y03={CONSTANT:QJP,JAVASCRIPT:QJP,HTML:function(r){r=r instanceof TC?r:cL(String(r).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return WL(r)},
RESOURCE_URL:QJP,STRING:String,STYLE:QJP,URL:function(r,f){r=IKC.test(r)?r:void 0;return r===void 0?f:r}};var IRd=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,AsK=/[\t\n\f\r ]+/,Gbm=/[\t\n\f\r ,]+/g,Bh$=function(r,f,I){return I},wd={},lKB=function(){var r=function(){var C={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",C):C}(),f=r.createHTML(""),I=r.createScript("");
r=r.createScriptURL("");return{INNOCUOUS_STRING:f,INNOCUOUS_SCRIPT:I,INNOCUOUS_URL:r}}(),h1=lKB.INNOCUOUS_STRING,fRq=lKB.INNOCUOUS_SCRIPT,rJB=lKB.INNOCUOUS_URL;var VOB=function(r){var f=CwK(r);return function(I,C,Y,V){return V?f(V,C,Y,I):h1}}({reportHandler:function(r,f){if(r)try{throw Error(f);
}catch(I){_.Fo(I)}},
safeTypesBridge:function(r,f,I){var C=C63[f];return C.isUnwrappable(r)&&(C=C.unwrap(r,I),C!==I)?C:(0,Y03[f])(String(r),I)},
allowedIdentifierPrefixes:[""]});if(hq!==void 0)throw Error("Ue");hq=VOB;if(hq!==VOB)throw Error("Ve");by("Injectable",[]);var LYq=by("Inject",[["token",void 0]]),evw=by("Optional",[]);by("Injectable",[]);var JJd=by("Self",[]),jFl=by("SkipSelf",[]);by("Host",[]);var E44={},S0s=function(){};
S0s.prototype.resolve=function(){throw Error("Xe");};
S0s.prototype.addProvider=function(){throw Error("Xe");};var cJu=Function;var xI4=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,h3q=function(){this._reflect=window.Reflect};
_.l=h3q.prototype;_.l.factory=function(r){return function(){return new (Function.prototype.bind.apply(r,[null].concat(_.Na(_.XE.apply(0,arguments)))))}};
_.l._zipTypesAndAnnotations=function(r,f){var I=typeof r==="undefined"?Array(f.length):Array(r.length);for(var C=0;C<I.length;C++)I[C]=typeof r==="undefined"?[]:r[C]!=Object?[r[C]]:[],f&&lRR(f[C])&&(I[C]=I[C].concat(f[C]));return I};
_.l._ownParameters=function(r,f){if(xI4.exec(r.toString()))return null;if(r.parameters&&r.parameters!==f.parameters)return r.parameters;var I=r.ctorParameters;return I&&I!==f.ctorParameters?(f=typeof I==="function"?I():I,r=f.map(function(C){return C&&C.type}),f=f.map(function(C){return C&&E2K(C.decorators)}),this._zipTypesAndAnnotations(r,f)):lRR(this._reflect)&&lRR(this._reflect.getOwnMetadata)&&(f=this._reflect.getOwnMetadata("parameters",r),(I=this._reflect.getOwnMetadata("design:paramtypes",r))||
f)?this._zipTypesAndAnnotations(I,f):Array(r.length).fill(void 0)};
_.l.parameters=function(r){if(!r.prototype)return[];var f=Object.getPrototypeOf(r.prototype).constructor;(r=this._ownParameters(r,f))||f===Object||(r=this.parameters(f));return r||[]};
_.l._ownAnnotations=function(r,f){if(r.annotations&&r.annotations!==f.annotations)return r=r.annotations,typeof r==="function"&&r.annotations&&(r=r.annotations),r;if(r.decorators&&r.decorators!==f.decorators)return E2K(r.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",r)};
_.l.annotations=function(r){var f=Object.getPrototypeOf(r.prototype).constructor;r=this._ownAnnotations(r,f)||[];return(f!==Object?this.annotations(f):[]).concat(r)};
_.l._ownPropMetadata=function(r,f){if(r.propMetadata&&r.propMetadata!==f.propMetadata)return r=r.propMetadata,typeof r==="function"&&r.propMetadata&&(r=r.propMetadata),r;if(r.propDecorators&&r.propDecorators!==f.propDecorators){var I=r.propDecorators,C={};Object.keys(I).forEach(function(Y){C[Y]=E2K(I[Y])});
return C}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",r)};
_.l.propMetadata=function(r){var f=Object.getPrototypeOf(r.prototype).constructor,I={};if(f!==Object){var C=this.propMetadata(f);Object.keys(C).forEach(function(V){I[V]=C[V]})}var Y=this._ownPropMetadata(r,f);
Y&&Object.keys(Y).forEach(function(V){var S=[];I.hasOwnProperty(V)&&S.push.apply(S,_.Na(I[V]));S.push.apply(S,_.Na(Y[V]));I[V]=S});
return I};
_.l.getter=function(r){return function(f){return f[r]}};
_.l.method=function(r){return function(f,I){if(!f[r])throw Error("Ye`"+r);return f[r].apply(f,I)}};var woB=function(){};var bFq=function(r){this.reflectionCapabilities=r};
_.t(bFq,woB);_.l=bFq.prototype;_.l.factory=function(r){return this.reflectionCapabilities.factory(r)};
_.l.parameters=function(r){return this.reflectionCapabilities.parameters(r)};
_.l.annotations=function(r){return this.reflectionCapabilities.annotations(r)};
_.l.propMetadata=function(r){return this.reflectionCapabilities.propMetadata(r)};
_.l.getter=function(r){return this.reflectionCapabilities.getter(r)};
_.l.method=function(r){return this.reflectionCapabilities.method(r)};var zvq=new bFq(new h3q);var mi=function(r,f){this.token=r;this.id=f;if(r===void 0||r===null)throw Error("cf");};
_.OC.Object.defineProperties(mi.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return pA(this.token)}}});
_.OC.Object.defineProperties(mi,{JSC$9602_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return dd.JSC$9606_numberOfKeys}}});
var poT=function(){this._allKeys=new Map};
poT.prototype.get=function(r){if(r instanceof mi)return r;if(this._allKeys.has(r))return this._allKeys.get(r);var f=new mi(r,mi.JSC$9602_numberOfKeys);this._allKeys.set(r,f);return f};
_.OC.Object.defineProperties(poT.prototype,{JSC$9606_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var dd=new poT;var H9R=function(r,f,I){this.key=r;this.optional=f;this.visibility=I},g2E=function(r){return new H9R(r,!1,null)},XY$=[],FYR=function(r,f,I){this.key=r;
this.resolvedFactories=f;this.multiProvider=I},Neq=function(r,f,I,C){this.factory=r;
this.dependencies=f;this.providerClass=I;this.providerValue=C};var eZ={},JP=function(r,f){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=f===void 0?null:f;r=_.E(r);for(f=r.next();!f.done;f=r.next())this.addProvider(f.value)};
_.l=JP.prototype;_.l.addProvider=function(r){this.keyIdToIndex.set(r.key.id,this.keyIds.length);this.providers.push(r);this.keyIds.push(r.key.id);this.objs.push(eZ)};
_.l.resolve=function(r,f){f=f===void 0?E44:f;return this._getByKey(dd.get(nA(r)),null,f)};
_.l._new=function(r){if(this.constructedKeyIds[r.key.id])throw pYu(this,r.key);this.constructedKeyIds[r.key.id]=!0;return this._instantiateProvider(r)};
_.l._instantiateProvider=function(r){if(r.multiProvider){for(var f=Array(r.resolvedFactories.length),I=0;I<r.resolvedFactories.length;++I)f[I]=this._instantiate(r,r.resolvedFactories[I]);return f}return this._instantiate(r,r.resolvedFactories[0])};
_.l._instantiate=function(r,f){var I=this,C=f.factory;try{var Y=f.dependencies.map(function(S){return I._getByReflectiveDependency(S)})}catch(S){throw S.addKey&&S.addKey(this,r.key),S;
}try{var V=C.apply(null,_.Na(Y))}catch(S){throw n2P(this,S,r.key);}return V};
_.l._getByReflectiveDependency=function(r){return this._getByKey(r.key,r.visibility,r.optional?null:E44)};
_.l._getByKey=function(r,f,I){return r===n48?this:f instanceof JJd?this._getByKeySelf(r,I):this._getByKeyDefault(r,I,f)};
_.l._getObjByKeyId=function(r){for(var f=0;f<this.keyIds.length;f++)if(this.keyIds[f]===r)return this.objs[f]===eZ&&(this.objs[f]=this._new(this.providers[f])),this.objs[f];return eZ};
_.l._throwOrNull=function(r,f){if(f!==E44)return f;throw b9q(this,r);};
_.l._getByKeySelf=function(r,f){var I=this._getObjByKeyId(r.id);return I!==eZ?I:this._throwOrNull(r,f)};
_.l._getByKeyDefault=function(r,f,I){for(var C=I=I instanceof jFl?this.parent:this;I instanceof JP;){var Y=I._getObjByKeyId(r.id);if(Y!==eZ)return Y;I=I.parent}Y=void 0;if(I!==null)try{var V=I.resolve(r.token,f);if(V!==eZ)return V}catch(S){Y=S}if(!(C instanceof JP&&Rvu(r.token))){if(Y)throw Y;return this._throwOrNull(r,f)}for(V=C;V.parent instanceof JP;)V=V.parent;V.addProvider(PwU({provide:r.token,useClass:r.token}));return V.resolve(r.token,f)};
_.l.toString=function(){return this.displayName};
_.OC.Object.defineProperties(JP.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+i9U(this,function(r){return' "'+r.key.displayName+'" '}).join(", ")+"])"}}});
var n48=dd.get(nA(S0s));(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 dIV=window.XRegExp;var z38=-1,MOT=function(r){addEventListener("pageshow",function(f){f.persisted&&(z38=f.timeStamp,r(f))},!0)};var aK3=function(r,f,I){var C=g4q,Y,V;return function(S){if(f.value>=0&&(S||I)){var h;if((V=f.value-((h=Y)!=null?h:0))||Y===void 0)Y=f.value,f.delta=V,S=f.value,f.rating=S>C[1]?"poor":S>C[0]?"needs-improvement":"good",r(f)}}};var Xo4=function(r){requestAnimationFrame(function(){return requestAnimationFrame(function(){return r()})})};var NuD=function(){var r=performance.getEntriesByType("navigation")[0];if(r&&r.responseStart>0&&r.responseStart<performance.now())return r};var $Ig=function(){var r,f;return(f=(r=NuD())==null?void 0:r.activationStart)!=null?f:0};var FV3=function(){var r=r===void 0?-1:r;var f=NuD(),I="navigate";z38>=0?I="back-forward-cache":f&&(document.prerendering||$Ig()>0?I="prerender":document.wasDiscarded?I="restore":f.type&&(I=f.type.replace(/_/g,"-")));return{name:"LCP",value:r,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:I}};var KYU=new WeakMap;var P63=function(r){var f=f===void 0?{}:f;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var I=new PerformanceObserver(function(C){Promise.resolve().then(function(){r(C.getEntries())})});
I.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},f));return I}}catch(C){}};var tO4=function(r){var f=!1;return function(){f||(r(),f=!0)}};var jZ=-1,TuU=function(r){document.visibilityState==="hidden"&&jZ>-1&&(jZ=r.type==="visibilitychange"?r.timeStamp:0,removeEventListener("visibilitychange",TuU,!0),removeEventListener("prerenderingchange",TuU,!0))},cvX=function(){addEventListener("visibilitychange",TuU,!0);
addEventListener("prerenderingchange",TuU,!0)},WVB=function(){if(jZ<0){var r=$Ig(),f,I;
jZ=(I=document.prerendering?void 0:(f=globalThis.performance.getEntriesByType("visibility-state").filter(function(C){return C.name==="hidden"&&C.startTime>r})[0])==null?void 0:f.startTime)!=null?I:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
cvX();MOT(function(){setTimeout(function(){jZ=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;cvX()})})}return{get firstHiddenTime(){return jZ}}};var LVX=function(r){document.prerendering?addEventListener("prerenderingchange",function(){return r()},!0):r()};var v2R=function(){};
v2R.prototype._processEntry=function(r){var f;(f=this._onBeforeProcessingEntry)==null||f.call(this,r)};var g4q=[2500,4E3],XUK=function(r){var f=f===void 0?{}:f;LVX(function(){var I=WVB(),C=FV3(),Y=yJK(f),V=function(z){f.reportAllChanges||(z=z.slice(-1));z=_.E(z);for(var g=z.next();!g.done;g=z.next())g=g.value,Y._processEntry(g),g.startTime<I.firstHiddenTime&&(C.value=Math.max(g.startTime-$Ig(),0),C.entries=[g],h())},S=P63(V);
if(S){var h=aK3(r,C,f.reportAllChanges);for(var w=tO4(function(){V(S.takeRecords());S.disconnect();h(!0)}),n=_.E(["keydown",
"click","visibilitychange"]),d=n.next();!d.done;d=n.next())addEventListener(d.value,function(){var z=w,g=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?z():(z=tO4(z),g(z),document.addEventListener("visibilitychange",z,{once:!0}))},{capture:!0,
once:!0});MOT(function(z){C=FV3();h=aK3(r,C,f.reportAllChanges);Xo4(function(){C.value=performance.now()-z.timeStamp;h(!0)})})}})};var mI4;var e3B;_.u=function(){return e3B!==void 0?e3B:e3B=document.createElement("template")};
document.head.appendChild(_.u().content);var Jv4;_.wm({_template:function(){if(Jv4!==void 0)return Jv4;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
var f=r.content,I=f.insertBefore;mI4===void 0&&(mI4=document.createElement("template"));var C=mI4;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return Jv4=r},
is:"tp-yt-app-toolbar"});var jKU;var HF4;_.Hq=function(){};
_.Hq=_.wm({_template:function(){if(HF4!==void 0)return HF4;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;jKU===void 0&&(jKU=document.createElement("template"));var C=jKU;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return HF4=r},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.Hq.instance||(_.Hq.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(r){this._text===r&&(r+="\u00a0");this._text="";this.async(function(){this._text=r},this.timeout)},
_onIronAnnounce:function(r){r.detail&&r.detail.text&&this.announce(r.detail.text)}});
_.Hq.instance=null;_.Hq.requestAvailability=function(){_.Hq.instance||(_.Hq.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.Hq.instance):document.addEventListener("load",function(){document.body.appendChild(_.Hq.instance)})};var iF3;var R34;/*

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

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 iN,o43,QKV;iN=Element.prototype;o43=iN.matches||iN.matchesSelector||iN.mozMatchesSelector||iN.msMatchesSelector||iN.oMatchesSelector||iN.webkitMatchesSelector;QKV=function(){};
_.ZF8=function(r){var f=Avq,I=[];return f._collectTabbableNodes(r,I)?f._sortByTabIndex(I):I};
_.l=QKV.prototype;_.l._normalizedTabIndex=function(r){return(o43.call(r,"input, select, textarea, button, object")?o43.call(r,":not([disabled])"):o43.call(r,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(r=r.getAttribute("tabindex")||0,Number(r)):-1};
_.l._collectTabbableNodes=function(r,f){if(r.nodeType!==Node.ELEMENT_NODE||!this._isVisible(r))return!1;var I=this._normalizedTabIndex(r),C=I>0;I>=0&&f.push(r);if(r.localName==="content"||r.localName==="slot")I=_.zI(r).getDistributedNodes();else{var Y;I=((Y=_.zI(r).shadowRoot)!=null?Y:_.zI(r.root||r)).children}for(r=0;r<I.length;r++)C=this._collectTabbableNodes(I[r],f)||C;return C};
_.l._isVisible=function(r){var f=r.style;return f.visibility!=="hidden"&&f.display!=="none"?(f=window.getComputedStyle(r),f.visibility!=="hidden"&&f.display!=="none"):!1};
_.l._sortByTabIndex=function(r){var f=r.length;if(f<2)return r;var I=Math.ceil(f/2);f=this._sortByTabIndex(r.slice(0,I));r=this._sortByTabIndex(r.slice(I));return this._mergeSortByTabIndex(f,r)};
_.l._mergeSortByTabIndex=function(r,f){for(var I=[];r.length>0&&f.length>0;)this._hasLowerTabOrder(r[0],f[0])?I.push(f.shift()):I.push(r.shift());return I.concat(r,f)};
_.l._hasLowerTabOrder=function(r,f){r=Math.max(r.tabIndex,0);f=Math.max(f.tabIndex,0);return r===0||f===0?f>r:r>f};
var Avq=new QKV;var GkT;var kks;_.wm({_template:function(){if(kks!==void 0)return kks;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;GkT===void 0&&(GkT=document.createElement("template"));var C=GkT;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return kks=r},
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&&_.zI(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.zI(this.parentNode).removeChild(this)},
_onTransitionend:function(r){r&&r.target===this&&this.complete()},
_openedChanged:function(r){r?this.prepare():(r=window.getComputedStyle(this),r.transitionDuration!=="0s"&&r.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 RE=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;$f(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)};
RE.prototype._bringOverlayAtIndexToFront=function(r){var f=this._overlays[r];if(f){var I=this._overlays.length-1,C=this._overlays[I];C&&this._shouldBeBehindOverlay(f,C)&&I--;if(!(r>=I)){C=Math.max(this._getZ(_.Buq(this)),this._minimumZ);for(this._getZ(f)<=C&&this._applyOverlayZ(f,C);r<I;)this._overlays[r]=this._overlays[r+1],r++;this._overlays[I]=f}}};
RE.prototype.addOverlay=function(r){var f=this._overlays.indexOf(r);if(f>=0)this._bringOverlayAtIndexToFront(f);else{f=this._overlays.length;var I=this._overlays[f-1],C=Math.max(this._getZ(I),this._minimumZ),Y=this._getZ(r);I&&this._shouldBeBehindOverlay(r,I)&&(this._applyOverlayZ(I,C),f--,C=Math.max(this._getZ(this._overlays[f-1]),this._minimumZ));Y<=C&&this._applyOverlayZ(r,C);this._overlays.splice(f,0,r)}this.trackBackdrop()};
RE.prototype.removeOverlay=function(r){r=this._overlays.indexOf(r);r!==-1&&(this._overlays.splice(r,1),this.trackBackdrop())};
_.Buq=function(r){return r._overlays[r._overlays.length-1]};
_.l=RE.prototype;_.l.trackBackdrop=function(){var r=this._overlayWithBackdrop();if(r||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(r)-1,this.backdropElement.opened=!!r,this.backdropElement.prepare()};
_.l._overlayWithBackdrop=function(){for(var r=this._overlays.length-1;r>=0;r--)if(this._overlays[r].withBackdrop)return this._overlays[r]};
_.l._getZ=function(r){var f=this._minimumZ;if(r){var I,C,Y=Number(((I=r.hostElement)!=null?I:r).style.zIndex||window.getComputedStyle((C=r.hostElement)!=null?C:r).zIndex);Y===Y&&(f=Y)}return f};
_.l._setZ=function(r,f){var I;((I=r.hostElement)!=null?I:r).style.zIndex=f};
_.l._applyOverlayZ=function(r,f){this._setZ(r,f+2)};
_.l._overlayInPath=function(r){r=r||[];for(var f=0;f<r.length;f++){var I=void 0;if(((I=r[f].polymerController)!=null?I:r[f])._manager===this)return r[f]}};
_.l._onCaptureClick=function(r){var f=this._overlays.length-1;if(f!==-1)for(var I=_.zI(r).path,C,Y;(C=this._overlays[f])&&this._overlayInPath(I)!==((Y=C.hostElement)!=null?Y:C);)if(C._onCaptureClick(r),C.allowClickThrough)f--;else break};
_.l._onCaptureFocus=function(r){var f=_.Buq(this);f&&f._onCaptureFocus(r)};
_.l._onCaptureKeyDown=function(r){var f=_.Buq(this);f&&(_.dx.keyboardEventMatchesKeys(r,"esc")?f._onCaptureEsc(r):_.dx.keyboardEventMatchesKeys(r,"tab")&&f._onCaptureTab(r))};
_.l._shouldBeBehindOverlay=function(r,f){return!r.alwaysOnTop&&f.alwaysOnTop&&!f.contains(r)};
_.OC.Object.defineProperties(RE.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 r=document.activeElement;r&&r instanceof Element!==!1||(r=document.body);for(;r.root&&_.zI(r.root).activeElement;)r=_.zI(r.root).activeElement;return r}}});
_.vq=new RE;var UBB=0,sFl=0,O9E=null,o2E=[],My=["wheel","mousewheel","DOMMouseScroll"],QFP;_.N("web_no_lock_on_touchstart_killswitch")&&(My.push("touchstart"),My.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;_.K7={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:_.vq},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var r;return this._focusedChild||_.zI((r=this.hostElement)!=null?r:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var r;return _.ZF8((r=this.hostElement)!=null?r: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 r;this._observer=_.zI((r=this.hostElement)!=null?r:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var r;_.zI((r=this.hostElement)!=null?r:this).unobserveNodes(this._observer)}this._observer=null;for(var f in this.__rafs)this.__rafs[f]!==null&&cancelAnimationFrame(this.__rafs[f]);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(r){this.fire("iron-overlay-canceled",r,{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 r;((r=this.hostElement)!=null?r:this).style.outline="none";var f;((f=this.hostElement)!=null?f:this).style.display="none"}},
_openedChanged:function(r){if(r){var f;((f=this.hostElement)!=null?f:this).removeAttribute("aria-hidden")}else{var I;((I=this.hostElement)!=null?I: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 r;if(this.withBackdrop&&!((r=this.hostElement)!=null?r:this).hasAttribute("tabindex")){var f;((f=this.hostElement)!=null?f:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var I;((I=this.hostElement)!=null?I: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 r;((r=this.hostElement)!=null?r:this).style.display="none";var f;((f=this.hostElement)!=null?f:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var r,f;((r=this.hostElement)!=null?r:this).style.transition=((f=this.hostElement)!=null?f:this).style.webkitTransition="none";var I,C;((I=this.hostElement)!=null?I:this).style.transform=((C=this.hostElement)!=null?C:this).style.webkitTransform="none";var Y;((Y=this.hostElement)!=null?Y:this).style.display=""},
_finishPositioning:function(){var r;((r=this.hostElement)!=null?r:this).style.display="none";this.scrollTop=this.scrollTop;var f,I;((f=this.hostElement)!=null?f:this).style.transition=((I=this.hostElement)!=null?I:this).style.webkitTransition="";var C,Y;((C=this.hostElement)!=null?C:this).style.transform=((Y=this.hostElement)!=null?Y:this).style.webkitTransform="";var V;((V=this.hostElement)!=null?V:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var r=this._manager.deepActiveElement,f;if(!(f=r===document.body))a:{for(;r;r=r.assignedSlot||r.parentNode||r.host)if(r===this){f=!0;break a}f=!1}f&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(r){this.noCancelOnOutsideClick||this.cancel(r)},
_onCaptureFocus:function(r){if(this.withBackdrop){var f=_.zI(r).path;f.indexOf(this)===-1?(r.stopPropagation(),this._applyFocus()):this._focusedChild=f[0]}},
_onCaptureEsc:function(r){this.noCancelOnEscKey||this.cancel(r)},
_onCaptureTab:function(r){if(this.withBackdrop){this.__ensureFirstLastFocusables();var f=r.shiftKey,I=f?this.__firstFocusableNode:this.__lastFocusableNode;f=f?this.__lastFocusableNode:this.__firstFocusableNode;if(I===f)I=!0;else{var C=this._manager.deepActiveElement;I=C===I||C===this}I&&(r.preventDefault(),this._focusedChild=f,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 r=this._focusableNodes;this.__firstFocusableNode=r[0];this.__lastFocusableNode=r[r.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(r,f){var I=this.__rafs;I[r]!==null&&cancelAnimationFrame(I[r]);I[r]=requestAnimationFrame(function(){I[r]=null;f.call(this)}.bind(this))},
__updateScrollObservers:function(r,f,I){r&&f&&this.__isValidScrollAction(I)?(I==="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),QFP=_._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()):(r=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),r!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(r,1),QFP=_._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(W8)for(var r=this;r;)r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host&&this.__rootNodes.push(r),r=r.host||r.assignedSlot||r.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(f){f.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(r){r.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(r){return r==="lock"||r==="refit"||r==="cancel"},
__onCaptureScroll:function(r){if(!(this.__isAnimating||_.zI(r).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(r)}},
__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)}};
_.ym=[OFD,_.Pq,_.K7];_.wm({_template:function(){if(UI4!==void 0)return UI4;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;yv3===void 0&&(yv3=document.createElement("template"));var C=yv3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return UI4=r},
is:"tp-yt-iron-dropdown",behaviors:[_.zd,_.dx,_.ym,ehT],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 r=_.zI(this.$.content).getDistributedNodes(),f=0,I=r.length;f<I;f++)if(r[f].nodeType===Node.ELEMENT_NODE)return r[f]},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(),_.K7._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.K7._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.K7._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var r=this.containedElement,f=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),I=0;I<f.length;I++)f[I].node=r;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(r){this._readied&&(r?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var r=this.focusTarget||this.containedElement;r&&this.opened&&!this.noAutoFocus?r.focus():_.K7._applyFocus.apply(this,arguments)}});var q04;var u1B;/*

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 DIU=new _.XS({type:"iconset"});
_.wm({_template:function(){if(u1B!==void 0)return u1B;var r=document.createElement("template");_.c(r,"\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");r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;q04===void 0&&(q04=document.createElement("template"));
var C=q04;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return u1B=r},
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(r){r=(r||"").split(":");this._iconName=r.pop();this._iconsetName=r.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&&_.zI(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=DIU.byKey(this._iconsetName)){var r=this._iconset.applyIcon(this,this._iconName,this.theme);r&&r.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,_.zI(this.root).appendChild(this._img)}});var rH_;var fNC;_.wm({_template:function(){if(fNC!==void 0)return fNC;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
var f=r.content,I=f.insertBefore;rH_===void 0&&(rH_=document.createElement("template"));var C=rH_;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return fNC=r},
is:"tp-yt-iron-input",behaviors:[_.$7],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(){_.Hq.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.zI(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.zI(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 r=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":r=/[0-9.,e-]/}return r},_bindValueChanged:function(r,f){f&&(r===void 0?f.value=null:r!==f.value&&(this.inputElement.value=r),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:r}))},
_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(r){var f=r.keyCode==19||r.keyCode==20||r.keyCode==45||r.keyCode==46||r.keyCode==144||r.keyCode==145||r.keyCode>32&&r.keyCode<41||r.keyCode>111&&r.keyCode<124;return!(r.keyCode==8||r.keyCode==9||r.keyCode==13||r.keyCode==27)&&!(r.charCode==0&&f)},
_onKeypress:function(r){if(this.allowedPattern||this.inputElement.type==="number"){var f=this._patternRegExp;if(f&&!(r.metaKey||r.ctrlKey||r.altKey)){this._patternAlreadyChecked=!0;var I=String.fromCharCode(r.charCode);this._isPrintable(r)&&!f.test(I)&&(r.preventDefault(),this._announceInvalidCharacter("Invalid character "+I+" not entered."))}}},
_checkPatternValidity:function(){var r=this._patternRegExp;if(!r)return!0;for(var f=0;f<this.inputElement.value.length;f++)if(!r.test(this.inputElement.value[f]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var r=this.inputElement.checkValidity();r&&(this.required&&this.bindValue===""?r=!1:this.hasValidator()&&(r=_.$7.validate.call(this,this.bindValue)));this.invalid=!r;this.fire("iron-input-validate");return r},
_announceInvalidCharacter:function(r){this.fire("iron-announce",{text:r})},
_computeValue:function(r){return r}});var IN3;var C14;var Y13=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),lNV=Y13&&Y13[1]>=8;
_.wm({_template:function(){if(C14!==void 0)return C14;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;IN3===void 0&&(IN3=document.createElement("template"));var C=IN3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return C14=r},
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:[d5P,_.Pq,_.mm3,axq],_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 _.zI(_.zI(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var r=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,r-this._physicalCount)},set _virtualStart(r){r=this._clamp(r,0,this._maxVirtualStart);this.grid&&(r-=r%this._itemsPerRow);this._virtualStartVal=r},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(r){r%=this._physicalCount;r<0&&(r=this._physicalCount+r);this.grid&&(r-=r%this._itemsPerRow);this._physicalStartVal=r},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(r){this._physicalCountVal=r},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 r=this._firstVisibleIndexVal;if(r==null){var f=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
r=this._iterateItems(function(I,C){f+=this._getPhysicalSizeIncrement(I);if(f>this._scrollPosition)return this.grid?C-C%this._itemsPerRow:C;if(this.grid&&this._virtualCount-1===C)return C-C%this._itemsPerRow})||0}return r},
get lastVisibleIndex(){var r=this._lastVisibleIndexVal;if(r==null){if(this.grid)r=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var f=this._physicalTop+this._scrollOffset;this._iterateItems(function(I,C){f<this._scrollBottom&&(r=C);f+=this._getPhysicalSizeIncrement(I)})}this._lastVisibleIndexVal=r}return r},
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,_.xY);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(r){this.style.webkitOverflowScrolling=r===this?"touch":"";this.style.overflowY=r===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.xY)},
updateViewportBoundaries:function(){var r=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(r["padding-top"],10);this._isRTL=r.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var r=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),f=r-this._scrollPosition,I=f>=0;this._scrollPosition=r;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(f)>this._physicalSize&&this._physicalSize>0?(f-=this._scrollOffset,I=Math.round(f/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=I,this._physicalStart+=I,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(r=this._getReusables(I),I?(this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length):(this._virtualStart=this._virtualStart-r.indexes.length,this._physicalStart=this._physicalStart-r.indexes.length),this._update(r.indexes,I?null:r.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),tq))},
_getReusables:function(r){var f=[],I=this._hiddenContentSize*this._ratio,C=this._virtualStart,Y=this._virtualEnd,V=this._physicalCount,S=this._physicalTop+this._scrollOffset;var h=this._physicalBottom+this._scrollOffset;var w=this._scrollPosition,n=this._scrollBottom;if(r){var d=this._physicalStart;h=w-S}else d=this._physicalEnd,h-=n;for(;;){var z=this._getPhysicalSizeIncrement(d);h-=z;if(f.length>=V||h<=I)break;if(r){if(Y+f.length+1>=this._virtualCount)break;if(S+z>=w-this._scrollOffset)break;f.push(d);
S+=z;d=(d+1)%V}else{if(C-f.length<=0)break;if(S+this._physicalSize-z<=n)break;f.push(d);S-=z;d=d===0?V-1:d-1}}return{indexes:f,physicalTop:S-this._scrollOffset}},
_update:function(r,f){if(!(r&&r.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(r);this._updateMetrics(r);if(f)for(;f.length;)r=f.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(r);this._positionItems();this._updateScrollerSize()}},
_createPool:function(r){this._ensureTemplatized();var f,I=Array(r);for(f=0;f<r;f++){var C=this.stamp(null);I[f]=C.root.querySelector("*");this._itemsParent.appendChild(C.root)}return I},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(r){r=this._clamp(this._physicalCount+r,3,this._virtualCount-this._virtualStart);r=this._convertIndexToCompleteRow(r);if(this.grid){var f=r%this._itemsPerRow;f&&r-f<=this._physicalCount&&(r+=this._itemsPerRow);r-=f}r-=this._physicalCount;f=Math.round(this._physicalCount*.5);if(!(r<0)){if(r>0){f=window.performance.now();[].push.apply(this._physicalItems,this._createPool(r));for(var I=0;I<r;I++)this._physicalSizes.push(0);this._physicalCount+=r;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=r);this._update();this._templateCost=(window.performance.now()-f)/r;f=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||f===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,f)),fks):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,f),tq))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var r=this._getReusables(!0);this._physicalTop=r.physicalTop;this._virtualStart+=r.indexes.length;this._physicalStart+=r.indexes.length;this._update(r.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 r={__key__:!0};r[this.as]=!0;r[this.indexAs]=!0;r[this.selectedAs]=!0;r.tabIndex=!0;this._instanceProps=r;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(r,f){typeof f!=="undefined"&&(this.notifyResize(),_.V8(),r&&this._updateGridMetrics())},
_itemsChanged:function(r){if(r.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,
_.xY);else if(r.path==="items.splices"){this._adjustVirtualIndex(r.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(r.value.indexSplices.some(function(I){return I.addedCount>0||I.removed.length>0})){var f=this._getActiveElement();
this.contains(f)&&f.blur()}r=r.value.indexSplices.some(function(I){return I.index+I.addedCount>=this._virtualStart&&I.index<=this._virtualEnd},this);
this._isClientFull()&&!r||this._debounce("_render",this._render,_.xY)}else r.path!=="items.length"&&this._forwardItemPath(r.path,r.value)},
_forwardItemPath:function(r,f){r=r.slice(6);var I=r.indexOf(".");I===-1&&(I=r.length);var C,Y=this.modelForElement(this._offscreenFocusedItem),V=parseInt(r.substring(0,I),10);if(C=this._isIndexRendered(V)){var S=this._getPhysicalIndex(V);var h=this.modelForElement(this._physicalItems[S])}else Y&&(h=Y);h&&h[this.indexAs]===V&&(r=r.substring(I+1),r=this.as+(r?"."+r:""),h._setPendingPropertyOrPath(r,f,!1,!0),h._flushProperties&&h._flushProperties(),C&&(this._updateMetrics([S]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(r){r.forEach(function(f){f.removed.forEach(this._removeItem,this);f.index<this._virtualStart&&(f=Math.max(f.addedCount-f.removed.length,f.index-this._virtualStart),this._virtualStart+=f,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=f))},this)},
_removeItem:function(r){this.$.selector.deselect(r);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===r&&this._removeFocusedItem()},
_iterateItems:function(r,f){var I,C;if(arguments.length===2&&f)for(C=0;C<f.length;C++){var Y=f[C];var V=this._computeVidx(Y);if((I=r.call(this,Y,V))!=null)return I}else{Y=this._physicalStart;for(V=this._virtualStart;Y<this._physicalCount;Y++,V++)if((I=r.call(this,Y,V))!=null)return I;for(Y=0;Y<this._physicalStart;Y++,V++)if((I=r.call(this,Y,V))!=null)return I}},
_computeVidx:function(r){return r>=this._physicalStart?this._virtualStart+(r-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+r},
_assignModels:function(r){this._iterateItems(function(f,I){var C=this._physicalItems[f],Y=this.items&&this.items[I];if(Y!=null){var V=this.modelForElement(C);V.__key__=null;this._forwardProperty(V,this.as,Y);this._forwardProperty(V,this.selectedAs,this.$.selector.isSelected(Y));this._forwardProperty(V,this.indexAs,I);this._forwardProperty(V,"tabIndex",this._focusedVirtualIndex===I?0:-1);this._physicalIndexForKey[V.__key__]=f;V._flushProperties&&V._flushProperties(!0);C.removeAttribute("hidden")}else C.setAttribute("hidden",
"")},r)},
_updateMetrics:function(r){_.V8();var f=0,I=0,C=this._physicalAverageCount,Y=this._physicalAverage;this._iterateItems(function(V){I+=this._physicalSizes[V];this._physicalSizes[V]=this._physicalItems[V].offsetHeight;f+=this._physicalSizes[V];this._physicalAverageCount+=this._physicalSizes[V]?1:0},r);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(I=this._itemsPerRow===1?I:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+f-I,this._itemsPerRow=1);this._physicalAverageCount!==C&&(this._physicalAverage=Math.round((Y*C+f)/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 r=this._physicalTop;if(this.grid){var f=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(I,C){var Y=Math.floor(C%this._itemsPerRow*this._itemWidth+f);this._isRTL&&(Y*=-1);this.translate3d(Y+"px",r+"px",0,this._physicalItems[I]);this._shouldRenderNextRow(C)&&(r+=this._rowHeight)})}else this._iterateItems(function(I){this.translate3d(0,r+"px",0,this._physicalItems[I]);
r+=this._physicalSizes[I]})},
_getPhysicalSizeIncrement:function(r){return this.grid?this._computeVidx(r)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[r]},
_shouldRenderNextRow:function(r){return r%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var r=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(r!==0){this._physicalTop=this._physicalTop-r;var f=this._scrollPosition;!lNV&&f>0&&this._resetScrollPosition(f-r)}},
_resetScrollPosition:function(r){this.scrollTarget&&r>=0&&(this._scrollPosition=this._scrollTop=r)},
_updateScrollerSize:function(r){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((r=(r=(r=r||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(r){return this.scrollToIndex(this.items.indexOf(r))},
scrollToIndex:function(r){if(!(typeof r!=="number"||r<0||r>this.items.length-1)&&(_.V8(),this._physicalCount!==0)){r=this._clamp(r,0,this._virtualCount-1);if(!this._isIndexRendered(r)||r>=this._maxVirtualStart)this._virtualStart=this.grid?r-this._itemsPerRow*2:r-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var f=this._physicalStart,I=this._virtualStart,C=0,Y=this._hiddenContentSize;I<r&&
C<=Y;)C+=this._getPhysicalSizeIncrement(f),f=(f+1)%this._physicalCount,I++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+C);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)},_.xY)},
selectItem:function(r){return this.selectIndex(this.items.indexOf(r))},
selectIndex:function(r){if(!(r<0||r>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(r)){var f=this.modelForElement(this._physicalItems[this._getPhysicalIndex(r)]);f&&(f[this.selectedAs]=!0);this.updateSizeForIndex(r)}this.$.selector.selectIndex(r)}},
deselectItem:function(r){return this.deselectIndex(this.items.indexOf(r))},
deselectIndex:function(r){r<0||r>=this._virtualCount||(this._isIndexRendered(r)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(r)])[this.selectedAs]=!1,this.updateSizeForIndex(r)),this.$.selector.deselectIndex(r))},
toggleSelectionForItem:function(r){return this.toggleSelectionForIndex(this.items.indexOf(r))},
toggleSelectionForIndex:function(r){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(r):this.$.selector.isSelected(this.items[r]))?this.deselectIndex(r):this.selectIndex(r)},
clearSelection:function(){this._iterateItems(function(r){this.modelForElement(this._physicalItems[r])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(r){(r?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(r){var f=this.modelForElement(r.target);if(f){var I=_.zI(r).path[0];r=this._getActiveElement();var C=this._physicalItems[this._getPhysicalIndex(f[this.indexAs])];if(I.localName!=="input"&&I.localName!=="button"&&I.localName!=="select"){I=f.tabIndex;f.tabIndex=-100;var Y=r?r.tabIndex:-1;f.tabIndex=I;r&&C!==r&&C.contains(r)&&Y!==-100||this.toggleSelectionForItem(f[this.as])}}},
_multiSelectionChanged:function(r){this.clearSelection();this.$.selector.multi=r},
updateSizeForItem:function(r){return this.updateSizeForIndex(this.items.indexOf(r))},
updateSizeForIndex:function(r){if(!this._isIndexRendered(r))return null;this._updateMetrics([this._getPhysicalIndex(r)]);this._positionItems();return null},
_manageFocus:function(){var r=this._focusedVirtualIndex;r>=0&&r<this._virtualCount?this._isIndexRendered(r)?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(r){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(r/this._itemsPerRow)*this._itemsPerRow:r},
_isIndexRendered:function(r){return r>=this._virtualStart&&r<=this._virtualEnd},
_isIndexVisible:function(r){return r>=this.firstVisibleIndex&&r<=this.lastVisibleIndex},
_getPhysicalIndex:function(r){return(this._physicalStart+(r-this._virtualStart))%this._physicalCount},
focusItem:function(r){this._focusPhysicalItem(r)},
_focusPhysicalItem:function(r){if(!(r<0||r>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(r)||this.scrollToIndex(r);var f=this._physicalItems[this._getPhysicalIndex(r)],I=this.modelForElement(f),C;I.tabIndex=-100;f.tabIndex===-100&&(C=f);C||(C=_.zI(f).querySelector('[tabindex="-100"]'));I.tabIndex=0;this._focusedVirtualIndex=r;C&&C.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 r=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var f=this.stamp(null);this._focusBackfillItem=f.root.querySelector("*");this._itemsParent.appendChild(f.root)}this._offscreenFocusedItem=this._physicalItems[r];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[r]=this._focusBackfillItem;this._focusedPhysicalIndex=r;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var r=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),f=this._physicalItems[r];if(f){var I=this.modelForElement(f),C=this.modelForElement(this._offscreenFocusedItem);I[this.as]===C[this.as]?(this._focusBackfillItem=f,I.tabIndex=-1,this._physicalItems[r]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(r){r=this.modelForElement(r.target);var f=this.modelForElement(this._focusedItem),I=this._offscreenFocusedItem!==null,C=this._focusedVirtualIndex;r&&(f===r?this._isIndexVisible(C)||this.scrollToIndex(C):(this._restoreFocusedItem(),f&&(f.tabIndex=-1),r.tabIndex=0,this._focusedVirtualIndex=C=r[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(C),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],I&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(r){switch(r.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&r.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&&r.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(r)}},
_clamp:function(r,f,I){return Math.min(I,Math.max(f,r))},
_debounce:function(r,f,I){this._debouncers=this._debouncers||{};this._debouncers[r]=_.f6(this._debouncers[r],I,f.bind(this));_.IG(this._debouncers[r])},
_forwardProperty:function(r,f,I){r._setPendingProperty(f,I)},
_forwardHostPropV2:function(r,f){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&this.modelForElement(I).forwardHostProp(r,f)},this)},
_notifyInstancePropV2:function(r,f,I){uAw(this.as,f)&&(r=r[this.indexAs],f==this.as&&(this.items[r]=I),this.notifyPath(Yf(this.as,"items."+r,f),I))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(r,f,I){f.indexOf(this.as+".")===0&&this.notifyPath("items."+r.__key__+"."+f.slice(this.as.length+1),I)},
_forwardParentPath:function(r,f){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&this.modelForElement(I).notifyPath(r,f)},this)},
_forwardParentProp:function(r,f){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(I){I&&(this.modelForElement(I)[r]=f)},this)},
_getActiveElement:function(){var r=this._itemsParent.node.domHost;return _.zI(r?r.root:document).activeElement},
_scrollTargetChanged:function(r,f){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(f)if(r==="document")this.scrollTarget=this._doc;else if(typeof r==="string"){var I,C;this.scrollTarget=(f=(C=(I=this.domHost)==null?void 0:I.polymerController)!=null?C:this.domHost)&&f.$?f.$[r]:_.zI(this.ownerDocument).querySelector("#"+r)}else this._isValidScrollTarget()&&(this._oldScrollTarget=r,this._toggleScrollListener(this._shouldHaveListener,r))}});var VBq;var EU3;var S1g=function(r,f,I,C){r-=I;f-=C;return Math.sqrt(r*r+f*f)},xps=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
AJm.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var Z9K=function(r){r.maxRadius=0;r.mouseDownStart=0;r.mouseUpStart=0;r.xStart=0;r.yStart=0;r.xEnd=0;r.yEnd=0;r.containerMetrics=new AJm(r.element)};
G1K.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var r=xps()-this.mouseDownStart;this.mouseUpStart&&(r-=this.mouseUpElapsed);return r},get mouseUpElapsed(){return this.mouseUpStart?xps()-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 r=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(r*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-r/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var r=this.radius/(this.containerMetrics.size/2);var f=this.xNow-this.containerMetrics.width/2;var I=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+f+"px, "+I+"px)";this.waveContainer.style.transform="translate3d("+f+"px, "+I+"px, 0)";this.wave.style.webkitTransform="scale("+r+","+r+")";this.wave.style.transform="scale3d("+r+","+r+",1)"},
downAction:function(r){var f=this.containerMetrics.width/2,I=this.containerMetrics.height/2;Z9K(this);this.mouseDownStart=xps();this.center?(this.xStart=f,this.yStart=I):(this.xStart=r?r.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=r?r.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=f,this.yEnd=I);r=this.containerMetrics;f=this.xStart;I=this.yStart;this.maxRadius=Math.max(S1g(f,I,0,0),S1g(f,I,
r.width,0),S1g(f,I,0,r.height),S1g(f,I,r.width,r.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=xps())},
remove:function(){_.zI(_.zI(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.wm({_template:function(){if(EU3!==void 0)return EU3;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;VBq===void 0&&(VBq=document.createElement("template"));var C=VBq;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return EU3=r},
is:"tp-yt-paper-ripple",behaviors:[_.dx],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(){_.zI(this).parentNode.nodeType==11?this.keyEventTarget=_.zI(this).getOwnerRoot().host:this.keyEventTarget=_.zI(this).parentNode;var r=this.keyEventTarget;this.listen(r,"up","uiUpAction");this.listen(r,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(r){r.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var r=0;r<this.ripples.length;++r)if(!this.ripples[r].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(r){this.noink||this.downAction(r)},
downAction:function(r){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(r),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(r){this.noink||this.upAction(r)},
upAction:function(r){this.holdDown||(this.ripples.forEach(function(f){f.upAction(r)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var r=0;r<this.ripples.length;++r){var f=this.ripples[r];f.isOpacityFullyDecayed&&!f.isRestingAtMaxRadius&&this.removeRipple(f)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var r=new G1K(this);_.zI(this.$.waves).appendChild(r.waveContainer);this.$.background.style.backgroundColor=r.color;this.ripples.push(r);this._setAnimating(!0);return r},
removeRipple:function(r){var f=this.ripples.indexOf(r);f<0||(this.ripples.splice(f,1),r.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var r;for(r=0;r<this.ripples.length;++r){var f=this.ripples[r];f.draw();this.$.background.style.opacity=f.outerOpacity;f.isOpacityFullyDecayed&&!f.isRestingAtMaxRadius&&this.removeRipple(f)}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(r,f){f!==void 0&&(r?this.downAction():this.upAction())}});var UK={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(r){Ms._downHandler.call(this,r);this.pressed&&this.ensureRipple(r)},
ensureRipple:function(r){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var f=this._rippleContainer||this.root;f&&_.zI(f).appendChild(this._ripple);if(r){f=_.zI(this._rippleContainer||this);var I=_.zI(r).rootTarget;f.deepContains(I)&&this._ripple.uiDownAction(r)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(r){this.hasRipple()&&(this._ripple.noink=r)}};var ht_={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 r=1;this.disabled?r=0:this.active||this.pressed?r=4:this.receivedFocusFromKeyboard&&(r=3);this._setElevation(r)},
_computeKeyboardClass:function(r){this.toggleClass("keyboard-focus",r)},
_spaceKeyDownHandler:function(r){Ms._spaceKeyDownHandler.call(this,r);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(r){Ms._spaceKeyUpHandler.call(this,r);this.hasRipple()&&this._ripple.uiUpAction()}},wS3=[ab3,
_.zd,UK,ht_];_.bH_={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(r){r&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=r)},
_createRipple:function(){var r=UK._createRipple();r.id="ink";r.setAttribute("center","");r.classList.add("circle");return r}};
_.pS3=[ab3,_.zd,UK,_.bH_];_.nUs=[_.pS3,$mU,{_checkedChanged:function(){NWX._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){UK._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var dpq;var ztV;var MBs=function(){};
_.l=MBs.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(){};
MBs=_.wm({_template:function(){if(ztV!==void 0)return ztV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
var f=r.content,I=f.insertBefore;dpq===void 0&&(dpq=document.createElement("template"));var C=dpq;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return ztV=r},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[wS3],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?ht_._calculateElevation.apply(this):this._setElevation(0)}});var gUB;var aN4;var XSX={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(r){_.N("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(r)},
_onDialogClickWrapped:function(r){_.N("dialog_behavior_no_tap_killswitch")||this._onDialogClick(r)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(r,f){f&&(r?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
_updateClosingReasonConfirmed:function(r){this.closingReason=this.closingReason||{};this.closingReason.confirmed=r},
_onDialogClick:function(r){for(var f=_.zI(r).path,I=0,C,Y=f.indexOf((C=this.hostElement)!=null?C:this);I<Y;I++)if(C=f[I],C.hasAttribute&&(C.hasAttribute("dialog-dismiss")||C.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(C.hasAttribute("dialog-confirm"));this.close();r.stopPropagation();break}}},NYC=[_.ym,
XSX];var $pV=document.createElement("template");_.c($pV,'<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($pV.content);var FGV=document.createElement("template");_.c(FGV,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(FGV.content);_.wm({_template:function(){if(aN4!==void 0)return aN4;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
var f=r.content,I=f.insertBefore;gUB===void 0&&(gUB=document.createElement("template"));var C=gUB;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return aN4=r},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[NYC,ehT],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 P1V;var tBB;_.wm({_template:function(){if(tBB!==void 0)return tBB;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;P1V===void 0&&(P1V=document.createElement("template"));var C=P1V;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return tBB=r},
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 r,f,I;if(((r=window.ShadyDOM)==null?void 0:r.noPatch)!==!0&&((f=window.ShadyDOM)==null?void 0:f.noPatch)!=="on-demand"||((I=this.__shady_parentNode)==null?void 0:I.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(XSX)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var TY_=_.op(['<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>']),cHq=_.Pm3(TY_);cHq.setAttribute("style","display: none;");document.head.appendChild(cHq.content);var WG_;var LGU;var mpq;var etC;_.wm({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[tP],configure:function(r){var f=r.node,I=f.getBoundingClientRect().height;return this._effect=new KeyframeEffect(f,[{height:I/2+"px"},{height:I+"px"}],this.timingFromConfig(r))}});
_.wm({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[tP],configure:function(r){var f=r.node,I=f.getBoundingClientRect().width;return this._effect=new KeyframeEffect(f,[{width:I/2+"px"},{width:I+"px"}],this.timingFromConfig(r))}});
_.wm({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[tP],configure:function(r){var f=r.node,I=f.getBoundingClientRect().width;return this._effect=new KeyframeEffect(f,[{width:I+"px"},{width:I-I/20+"px"}],this.timingFromConfig(r))}});
_.wm({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[tP],configure:function(r){var f=r.node,I=f.getBoundingClientRect().height;this.setPrefixedProperty(f,"transformOrigin","0 0");return this._effect=new KeyframeEffect(f,[{height:I+"px",transform:"translateY(0)"},{height:I/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(r))}});var sK={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},JHB=function(){};
_.l=JHB.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(){};
JHB=_.wm({_template:function(){if(etC!==void 0)return etC;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;mpq===void 0&&(mpq=document.createElement("template"));var C=mpq;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return etC=r},
is:"tp-yt-paper-menu-button",behaviors:[_.dx,_.zd],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:sK.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:sK.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:sK.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 r=_.zI(this.$.content).getDistributedNodes(),f=0,I=r.length;f<I;f++)if(r[f].nodeType===Node.ELEMENT_NODE)return r[f]},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(r,f){r?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):f!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(r){_.zd._disabledChanged.apply(this,arguments);r&&this.opened&&this.close()},
__onIronOverlayCanceled:function(r){var f=this.$.trigger;_.zI(r.detail).path.indexOf(f)>-1&&r.preventDefault()}});
Object.keys(sK).forEach(function(r){JHB[r]=sK[r]});var jVU=_.gx.IronButtonState,HH4=(0,_.d8)(HTMLElement);
_.wm({_template:function(){if(LGU!==void 0)return LGU;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;WG_===void 0&&(WG_=document.createElement("template"));var C=WG_;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return LGU=r},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[jVU,_.zd,UK,_.aE,_.$7],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(r){var f=(0,_.xf)(this);f.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:r});f.shadowRoot.appendChild(r);return HH4.prototype._attachDom.call(this,r)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var r=this.contentElement;r&&r.selectedItem&&this._setSelectedItem(r.selectedItem)},
get contentElement(){for(var r=_.zI(this.$.content).getDistributedNodes(),f=0,I=r.length;f<I;f++)if(r[f].nodeType===Node.ELEMENT_NODE)return r[f]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(r){this._setSelectedItem(r.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(r){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(r)===this&&this.open()},
_selectedItemChanged:function(r){var f="";r?f=r.label||r.getAttribute("label")||r.textContent.trim():f="";this.value=f;this._setSelectedItemLabel(f)},
_computeMenuVerticalOffset:function(r,f){return f?f:r?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var r=this.opened?"true":"false",f=this.contentElement;f&&f.setAttribute("aria-expanded",r)},
_computeLabelClass:function(r,f,I){var C="label";if(r)I&&(C+=" label-is-hidden");else if(I||f)C+=" label-is-floating";return C},
_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 iH_;var RtX;_.wm({is:"tp-yt-paper-icon-button",_template:function(){if(RtX!==void 0)return RtX;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;iH_===void 0&&(iH_=document.createElement("template"));var C=iH_;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return RtX=r},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.pS3],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(r,f){var I=this.getAttribute("aria-label");I&&f!=I||this.setAttribute("aria-label",r)}});var vUU;var KG8;_.OK=[ab3,_.zd,{hostAttributes:{role:"option",tabindex:"0"}}];_.wm({_template:function(){if(KG8!==void 0)return KG8;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;vUU===void 0&&(vUU=document.createElement("template"));var C=vUU;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return KG8=r},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.OK]});var yHB;var Up4;var sV4={attached:function(){this.fire("addon-attached")},
update:function(){}};var OHs=1,oUq=1,QVX=1,AH3=[_.zd,_.dx,{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();!G9&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(r,f){r?r=r+" "+f:r=f;return r},
_onAddonAttached:function(r){r=_.zI(r).rootTarget;if(r.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,r.id);else{var f="paper-input-add-on-"+oUq++;r.id=f;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,f)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(r){_.zd._focusBlurHandler.call(this,r);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var r=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",r);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(r){try{var f=this.inputElement.selectionStart;this.value=r;this.inputElement.selectionStart=f;this.inputElement.selectionEnd=f}catch(I){this.value=r}},
_computeAlwaysFloatLabel:function(r,f){return f||r},
_updateAriaLabelledBy:function(){var r=_.zI(this.root).querySelector("label");if(r){if(r.id)var f=r.id;else f="paper-input-label-"+OHs++,r.id=f;this._ariaLabelledBy=f}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+QVX++)},
_onChange:function(r){this.shadowRoot&&this.fire(r.type,{sourceEvent:r},{node:this,bubbles:r.bubbles,cancelable:r.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var r=document.activeElement;r instanceof HTMLElement&&r!==document.body&&r!==document.documentElement||this._focusableElement.focus()}}}];var ZH4;var GNX;_.wm({_template:function(){if(GNX!==void 0)return GNX;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;ZH4===void 0&&(ZH4=document.createElement("template"));var C=ZH4;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return GNX=r},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[sV4],properties:{_charCounterStr:{type:String,value:"0"}},update:function(r){if(r.inputElement){r.value=r.value||"";var f=r.value.toString().length.toString();r.inputElement.hasAttribute("maxlength")&&(f+="/"+r.inputElement.getAttribute("maxlength"));this._charCounterStr=f}}});var kNq;var BYT;_.wm({_template:function(){if(BYT!==void 0)return BYT;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;kNq===void 0&&(kNq=document.createElement("template"));var C=kNq;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return BYT=r},
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 DW(this.attrForValue)},get _inputElement(){return _.zI(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(r){this._addons||(this._addons=[]);r=r.target;this._addons.indexOf(r)===-1&&(this._addons.push(r),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(r){this._handleValueAndAutoValidate(r.target)},
_onValueChanged:function(r){var f=r.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,f.value===void 0||f.value===""))return;this._handleValueAndAutoValidate(r.target)},
_handleValue:function(r){var f=this._inputElementValue;f||f===0||r.type==="number"&&!r.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:r,value:f,invalid:this.invalid})},
_handleValueAndAutoValidate:function(r){this.autoValidate&&r&&(this.invalid=!(r.validate?r.validate(this._inputElementValue):r.checkValidity()));this._handleValue(r)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(r){if(this._addons)for(var f,I=0;f=this._addons[I];I++)f.update(r)},
_computeInputContentClass:function(r,f,I,C,Y){var V="input-content";r?(Y&&(V+=" label-is-hidden"),C&&!this.noUnfloatedLabelError&&(V+=" is-invalid")):(r=this.querySelector("label"),f||Y?(V+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",C?V+=" is-invalid":I&&(V+=" label-is-highlighted")):(r&&(this.$.labelAndInputContainer.style.position="relative"),C&&!this.noUnfloatedLabelError&&(V+=" is-invalid")));I&&(V+=" focused");return V},
_computeUnderlineClass:function(r,f){var I="underline";f?I+=" is-invalid":r&&(I+=" is-highlighted");return I},
_computeAddOnContentClass:function(r,f){var I="add-on-content";f?I+=" is-invalid":r&&(I+=" is-highlighted");return I}});var q13;var un3;_.wm({_template:function(){if(un3!==void 0)return un3;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;q13===void 0&&(q13=document.createElement("template"));var C=q13;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return un3=r},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[sV4],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(r){this._setInvalid(r.invalid)}});_.wm({is:"tp-yt-paper-input",_template:function(){if(Up4!==void 0)return Up4;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;yHB===void 0&&(yHB=document.createElement("template"));var C=yHB;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return Up4=r},
behaviors:[AH3,_.aE],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 Dp4;var rF8;_.wm({_template:function(){if(rF8!==void 0)return rF8;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=
r.content,I=f.insertBefore;Dp4===void 0&&(Dp4=document.createElement("template"));var C=Dp4;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return rF8=r},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.OK]});var fc8;var Ic_;_.wm({_template:function(){if(Ic_!==void 0)return Ic_;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
var f=r.content,I=f.insertBefore;fc8===void 0&&(fc8=document.createElement("template"));var C=fc8;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return Ic_=r},
is:"tp-yt-paper-item-body"});var COq;var Yds;var lcB=function(){};
_.l=lcB.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(){};
lcB=_.wm({_template:function(){if(Yds!==void 0)return Yds;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
var f=r.content,I=f.insertBefore;COq===void 0&&(COq=document.createElement("template"));var C=COq;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return Yds=r},
is:"tp-yt-paper-listbox",behaviors:[TWC],hostAttributes:{role:"listbox"}});var VQ4;var Ew4;var SdB={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(r,f){return[r||f?"active":"",f?"cooldown":""].join(" ")},
__activeChanged:function(r,f){this.__setAriaHidden(!r);this.__coolingDown=!r&&f},
__altChanged:function(r){this.setAttribute("aria-label",r||"loading")},
__setAriaHidden:function(r){r?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.wm({_template:function(){if(Ew4!==void 0)return Ew4;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;VQ4===void 0&&(VQ4=document.createElement("template"));var C=VQ4;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return Ew4=r},
is:"tp-yt-paper-spinner",behaviors:[SdB]});var xig;var hB3;_.wm({_template:function(){if(hB3!==void 0)return hB3;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;xig===void 0&&(xig=document.createElement("template"));var C=xig;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return hB3=r},
is:"tp-yt-paper-spinner-lite",behaviors:[SdB]});var wa3;var bGD;_.wm({_template:function(){if(bGD!==void 0)return bGD;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;wa3===void 0&&(wa3=document.createElement("template"));var C=wa3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return bGD=r},
is:"tp-yt-paper-tab",behaviors:[_.zd,_.gx.IronButtonState,UK],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 r=_.zI(this).parentNode;return!!r&&!!r.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(r){if(this.link){var f=this.queryEffectiveChildren("a");f&&r.target!==f&&f.click()}}});var pag;var nwB;var di3=_.op(['<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>']),zB8=_.Pm3(di3);document.head.appendChild(zB8.content);_.wm({_template:function(){if(nwB!==void 0)return nwB;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;pag===void 0&&(pag=document.createElement("template"));var C=pag;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return nwB=r},
is:"tp-yt-paper-tabs",behaviors:[_.Pq,_.WCU],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(r){_.zI(this).querySelectorAll("tp-yt-paper-tab").forEach(r?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(r){r.setAttribute("noink","")},
_removeNoinkAttribute:function(r){r.removeAttribute("noink")},
_computeScrollButtonClass:function(r,f,I,C){return!f||I?"hidden":r?C?"hidden":"not-visible":""},
_computeTabsContentClass:function(r,f){var I="tabs-content";r&&(I+=" scrollable");if(!r||f)I+=" fit-container";return I},
_computeSelectionBarClass:function(r,f){var I="selection-bar";r?I+=" hidden":f&&(I+=" align-bottom");return I},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(r){return""+r},
_onIronSelect:function(r){this._tabChanged(r.detail.item,this._previousTab);this._previousTab=r.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();_.FS._activateHandler.apply(this,arguments)},
_scheduleActivation:function(r,f){this._pendingActivationItem=r;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,f)},
_delayedActivationHandler:function(){var r=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;r.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(r){r.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(r,f){this.scrollable&&this._affectScroll(f&&-f.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(r){this.$.tabsContainer.scrollLeft+=r;r=this.$.tabsContainer.scrollLeft;this._leftHidden=r===0||this.hideScrollButtons;this._rightHidden=r===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(r,f){if(r){var I=this.$.tabsContent.getBoundingClientRect(),C=I.width,Y=r.getBoundingClientRect();I=Y.left-I.left;this._pos={width:this._calcPercent(Y.width,C),left:this._calcPercent(I,C)};if(this.noSlide||f==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var V=f.getBoundingClientRect();f=this.items.indexOf(f);r=this.items.indexOf(r);this.$.selectionBar.classList.add("expand");
r=f<r;this._isRTL&&(r=!r);r?this._positionBar(this._calcPercent(Y.left+Y.width-V.left,C)-5,this._left):this._positionBar(this._calcPercent(V.left+V.width-Y.left,C)-5,this._calcPercent(I,C)+5);this.scrollable&&this._scrollToSelectedIfNeeded(Y.width,I)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(r,f){f-=this.$.tabsContainer.scrollLeft;f<0?this.$.tabsContainer.scrollLeft+=f:(f+=r-this.$.tabsContainer.offsetWidth,f>0&&(this.$.tabsContainer.scrollLeft+=f))},
_calcPercent:function(r,f){return 100*r/f},
_positionBar:function(r,f){r=r||0;f=f||0;this._width=r;this._left=f;this.transform("translateX("+f+"%) scaleX("+r/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var r=this.$.selectionBar.classList;r.contains("expand")?(r.remove("expand"),r.add("contract"),this._positionBar(this._pos.width,this._pos.left)):r.contains("contract")&&r.remove("contract")}});var MQs;var gw3;_.wm({_template:function(){if(gw3!==void 0)return gw3;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;MQs===void 0&&(MQs=document.createElement("template"));var C=MQs;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return gw3=r},
is:"tp-yt-paper-textarea",behaviors:[AH3,_.aE],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(r){this.$.input.textarea.selectionStart=r},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(r){this.$.input.textarea.selectionEnd=r},_ariaLabelledByChanged:function(r){this._focusableElement.setAttribute("aria-labelledby",r)},
_ariaDescribedByChanged:function(r){this._focusableElement.setAttribute("aria-describedby",r)},
get _focusableElement(){return this.inputElement.textarea}});var acD;var Xa3;/*

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 NM3=function(){};
_.l=NM3.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(){};
NM3=_.wm({is:"tp-yt-paper-toggle-button",_template:function(){if(Xa3!==void 0)return Xa3;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;acD===void 0&&(acD=document.createElement("template"));var C=acD;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return Xa3=r},
behaviors:[_.nUs],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");_.UC(this,function(){_.P8(this,"pan-y")})},
_ontrack:function(r){r=r.detail;r.state==="start"?this._trackStart(r):r.state==="track"?this._trackMove(r):r.state==="end"&&this._trackEnd(r)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(r){r=r.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+r:r)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+r:r));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 r=UK._createRipple();r.id="ink";r.setAttribute("recenters","");r.classList.add("circle","toggle-ink");return r}});var $iV;var FyX;_.wm({_template:function(){if(FyX!==void 0)return FyX;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;$iV===void 0&&($iV=document.createElement("template"));var C=$iV;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return FyX=r},
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 r=_.zI(this).parentNode,f=_.zI(this).getOwnerRoot(),I;this.for?I=_.zI(f).querySelector("#"+this.for):I=r.nodeType==Node.DOCUMENT_FRAGMENT_NODE?f.host:r;return I},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(r){r==="entry"?this.show():r==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.zI(this).textContent.trim()===""){for(var r=!0,f=_.zI(this).getEffectiveChildNodes(),I=0;I<f.length;I++)if(f[I].textContent.trim()!==""){r=!1;break}if(r)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 r=this.offset;this.marginTop!=14&&this.offset==14&&(r=this.marginTop);var f=this.offsetParent.getBoundingClientRect(),I=this._target.getBoundingClientRect(),C=this.getBoundingClientRect(),Y=(I.width-C.width)/2,V=(I.height-C.height)/2,S=I.left-f.left,h=I.top-f.top;switch(this.position){case "top":var w=S+Y;var n=h-C.height-r;break;case "bottom":w=S+Y;n=h+I.height+r;break;case "left":w=S-C.width-r;n=h+V;break;case "right":w=S+I.width+
r,n=h+V}this.fitToVisibleBounds?(f.left+w+C.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,w)+"px",this.style.right="auto"),f.top+n+C.height>window.innerHeight?(this.style.bottom=f.height+"px",this.style.top="auto"):(this.style.top=Math.max(-f.top,n)+"px",this.style.bottom="auto")):(this.style.left=w+"px",this.style.top=n+"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(r){r!==500&&this.updateStyles({"--paper-tooltip-delay-in":r+"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(r){if(r==="entry"&&this.animationEntry!=="")return this.animationEntry;if(r==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[r]&&typeof this.animationConfig[r][0].name==="string"){if(this.animationConfig[r][0].timing&&this.animationConfig[r][0].timing.delay&&this.animationConfig[r][0].timing.delay!==0){var f=this.animationConfig[r][0].timing.delay;r==="entry"?this.updateStyles({"--paper-tooltip-delay-in":f+"ms"}):r==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":f+
"ms"})}return this.animationConfig[r][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 PO8=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(PO8,_.Kj);var tQ_=_.D$(PO8,[0,_.Zn]);var oE=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(oE,_.Kj);var TMD=[3,4],cF4=[5,6];var Wyq=[0,TMD,cF4,_.WoX,-1,_.As,_.Lo3,-1,T3$,ceB];var Ly_=_.D$(oE,Wyq),miU=_.rn(Wyq);var eB8=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(eB8,_.Kj);var JF4=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(JF4,_.Kj);var jp_=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(jp_,_.Kj);var HG8=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(HG8,_.Kj);var iGq=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(iGq,_.Kj);var Qm=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Qm,_.Kj);Qm.prototype.getSource=function(){return _.cM(this,1)};
Qm.prototype.getMessage=function(){return _.Tb(this,4)};
Qm.prototype.getData=function(){return _.kB(this,iGq,8)};var RB4=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(RB4,_.Kj);var AP=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(AP,_.Kj);var Z4=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Z4,_.Kj);var Gd=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Gd,_.Kj);Gd.prototype.getUrl=function(){return _.Tb(this,1)};
Gd.prototype.setUrl=function(r){return _.w5(this,1,r)};
Gd.prototype.hasUrl=function(){return _.yV(_.pD(this,1))!=null};var vwg=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(vwg,_.Kj);var KyB=[3];var yF4=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(yF4,_.Kj);var k7=function(r){var f=new yF4;return _.Bd(f,2,r)};
yF4.prototype.getLanguage=function(){return LD(this,4,Bq)};
var Uis=function(r){var f=k7(1);return _.Y1(f,6,Bq,r)},Bq=[3,
4,5,6];var sp3=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(sp3,_.Kj);var qs=function(r){var f=new sp3;return _.Bd(f,1,r)},uN=function(r,f){return _.Y1(r,2,OGV,f)},OGV=[2,
3,4,5];var owq=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(owq,_.Kj);var D4=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(D4,_.Kj);var Qp3=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Qp3,_.Kj);var AF4=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(AF4,_.Kj);var ZG4=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(ZG4,_.Kj);var GW4=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(GW4,_.Kj);var kWU=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(kWU,_.Kj);var ra=function(r){return _.kB(r,Z4,5)};var BM4=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(BM4,_.Kj);BM4.prototype.getValue=function(){return PM(this,1)};var qdD=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(qdD,_.Kj);var fl=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(fl,_.Kj);fl.prototype.getMetadata=function(){return _.mt(this,ZG4,7,Ix)};
fl.prototype.hasMetadata=function(){return _.dh(this,ZG4,7,Ix)};
var uC3=_.I$P(fl),Ix=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Cl=function(r){this.JSC$9827_name_=r;this.files_=[];this.directories_=[];this.directoryMap_={}};
Cl.prototype.getName=function(){return this.JSC$9827_name_};var lR=function(r,f){this.callback_=f;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new Cl("");DiV(this,r,this.rootDirectory_);Y$(this)},DiV=function(r,f,I){for(var C=0;C<f.length;C++){var Y=f[C];
Y.isFile?(r.fileOps_++,Y.file((0,_.gL)(r.handleFileSuccess_,r,I),(0,_.gL)(r.handleFileError_,r))):r.unscannedDirectories_.push(new rss(Y,I))}},Y$=function(r){if(r.unscannedDirectories_.length>0&&r.directoryOps_<5&&!r.hasError_){r.directoryOps_++;
var f=r.unscannedDirectories_.shift(),I=f.entry,C=new Cl(I.name);f=f.parent;f.directoryMap_[C.getName()]=C;f.directories_.push(C);I=I.createReader();I.readEntries((0,_.gL)(r.handleDirectorySuccess_,r,I,C),(0,_.gL)(r.handleDirectoryError_,r))}r.directoryOps_!=0||r.fileOps_!=0||r.unscannedDirectories_.length!=0&&!r.hasError_||r.callback_(r.rootDirectory_.files_,r.rootDirectory_.directories_,r.hasError_)};
lR.prototype.handleDirectorySuccess_=function(r,f,I){DiV(this,I,f);I.length==0?(this.directoryOps_--,Y$(this)):r.readEntries((0,_.gL)(this.handleDirectorySuccess_,this,r,f),(0,_.gL)(this.handleDirectoryError_,this))};
lR.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;Y$(this)};
lR.prototype.handleFileSuccess_=function(r,f){r.files_.push(f);this.fileOps_--;Y$(this)};
lR.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;Y$(this)};
var rss=function(r,f){this.entry=r;this.parent=f};var Vk=function(r){_.zh.call(this);_.S$(r,"drop",this.onObjectsDropped_,!1,this);_.S$(r,"dragenter",this.onFilesDragged_,!1,this);_.S$(r,"dragover",this.onFilesDragged_,!1,this);_.S$(r,"dragleave",this.onDragLeave_,!1,this);_.S$(r,"dragend",this.onDragLeave_,!1,this)};
_.rh(Vk,_.zh);var fnq=function(r,f){_.wi.call(this,"f");this.files=r;this.directories=f};
_.rh(fnq,_.wi);var InD=function(){_.wi.call(this,"h")};
_.rh(InD,_.wi);var CfU=function(){_.wi.call(this,"i")};
_.rh(CfU,_.wi);var Yv8=function(){_.wi.call(this,"g")};
_.rh(Yv8,_.wi);Vk.prototype.onObjectsDropped_=function(r){var f=this;r.preventDefault();var I=r.event_.dataTransfer;if((r=I&&I.items)&&r.length>0&&r[0].webkitGetAsEntry){I=[];for(var C=[],Y=0;Y<r.length;Y++){var V=r[Y].webkitGetAsEntry();V?I.push(V):C.push(r[Y])}new lR(I,function(S,h,w){w?f.dispatchEvent(new Yv8("Error occurred while reading from the file system.")):f.dispatchEvent(new fnq(S,h,C))})}else(r=I&&I.files)&&this.dispatchEvent(new fnq(Array.from(r),[]))};
Vk.prototype.onFilesDragged_=function(r){r.type==="dragenter"&&this.dispatchEvent(new InD);r.preventDefault()};
Vk.prototype.onDragLeave_=function(){this.dispatchEvent(new CfU)};var ln8=function(r,f){this.JSC$9850_name_=r;this.inputElement_=f};
ln8.prototype.getName=function(){return this.JSC$9850_name_};
ln8.prototype.getInputElement=function(){return this.inputElement_};var Ew=function(r,f,I){f=f===void 0?"single_file":f;I=I===void 0?[]:I;_.zh.call(this);this.overlayTarget_=r;this.parentOverlay_=r!=null?r.parentNode:_.wL("scotty-overlay-parent");this.selectorType_=f;this.acceptTypes_=I;this.overlay_=VgT(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.t(Ew,_.zh);
var VgT=function(r,f,I,C){var Y=document.createElement("input");Y.setAttribute("type","file");Y.setAttribute("name","Filedata");_.S$(Y,"change",r.onFilesSelected_,!1,r);I==="multiple_file"&&(Y.multiple="true");I==="single_directory"&&(Y.webkitdirectory="true");C.length>0&&Y.setAttribute("accept",C.join(","));Y.style.position="absolute";Y.style.overflow="hidden";Y.style.height="0px";Y.style.width="0px";Y.style.opacity="0";Y.setAttribute("aria-hidden","true");Y.setAttribute("tabIndex",-1);if(r.overlayTarget_!=
null)return Y.style.height=f.offsetHeight+"px",Y.style.width=f.offsetWidth+"px",r.parentOverlay_&&(r.parentOverlay_.style.position="relative"),_.cY(Y,f),j2(Y,new _.F0(f.offsetLeft,f.offsetTop)),Y;r.parentOverlay_.appendChild(Y);return Y};
Ew.prototype.click=function(){this.overlay_.click()};
Ew.prototype.onFilesSelected_=function(r){a:{try{var f=(new XMLHttpRequest).upload!==void 0;break a}catch(n){}f=!1}if(f){var I;r=Array.from((I=r.target.files)!=null?I:[]);I=[];if(this.selectorType_==="single_directory"&&(_.VF||UH||_.lf)){I=new Cl("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(f=0;f<r.length;f++)for(var C=r[f],Y=C.webkitRelativePath.split("/"),V=I,S=0;S<Y.length;S++){var h=Y[S];if(S==Y.length-1){h!="."&&V.files_.push(C);break}var w=V.directoryMap_[h];w==void 0&&(h=
w=new Cl(h),V.directoryMap_[h.getName()]=h,V.directories_.push(h));V=w}I=I.directories_}this.dispatchEvent(new Epg(r,I,null))}else r=r.target.value,r.match(/^c:\\fakepath\\/i)&&(r=r.substring(12)),this.dispatchEvent(new Epg([],[],new ln8(r,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=VgT(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var Epg=function(r,f){_.wi.call(this,"j");this.files=r;this.directories=f};
_.t(Epg,_.wi);var Sv4=function(r){this.uploadUrl_=r};var x2s=function(){_.zh.call(this)};
_.rh(x2s,_.zh);var S8=function(r){_.wi.call(this,r)};
_.rh(S8,_.wi);var x$=function(r){_.wi.call(this,r)};
_.rh(x$,_.wi);var hQV=function(r,f,I,C,Y){_.zh.call(this);I=document.createElement("form");I.setAttribute("method",f);I.setAttribute("enctype","multipart/form-data");I.setAttribute("encoding","multipart/form-data");f=document.createElement("input");f.setAttribute("type","hidden");f.setAttribute("name","metadata");f.setAttribute("value",Y);I.appendChild(f);I.appendChild(C);this.JSC$9867_form_=I;r=new _.KA(r);_.RZ(r,"upload_protocol","multipart");this.JSC$9867_url_=r.toString();this.JSC$9867_request_=new G8;this.state_=
"Ready";this.JSC$9867_errorDescription_=null;this.JSC$9867_eventHandler_=new _.B8(this);_.V$(this,this.JSC$9867_eventHandler_);this.JSC$9867_eventHandler_.listen(this.JSC$9867_request_,"success",this.onTransferSuccess_);this.JSC$9867_eventHandler_.listen(this.JSC$9867_request_,"error",this.onTransferError_)};
_.t(hQV,x2s);_.l=hQV.prototype;_.l.run=function(){this.state_="Transferring";var r=this.JSC$9867_request_,f=this.JSC$9867_form_;if(r.JSC$9285_active_)throw Error("oe");var I=new _.KA(this.JSC$9867_url_||f.action);r.JSC$9285_form_=f;f=r.JSC$9285_form_;I=_.PL(I.toString());I!==void 0&&(f.action=I);yGD(r)};
_.l.getResponseCode=function(){return null};
_.l.getResponseText=function(){return this.JSC$9867_request_&&this.JSC$9867_request_.getResponseText()||null};
_.l.JSC$25706_getErrorDescription=function(){return this.JSC$9867_errorDescription_};
_.l.cancel=function(){this.JSC$9867_request_&&this.JSC$9867_request_.abort();this.state_="Cancelled";this.dispatchEvent(new S8("o"))};
_.l.pause=function(){};
_.l.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new S8("l"))};
_.l.onTransferError_=function(){this.JSC$9867_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new S8("n"))};var hL=function(){_.P7.call(this)};
_.t(hL,_.P7);hL.prototype.createXhr=function(){var r=_.P7.prototype.createXhr.call(this);r.upload&&(r.upload.onprogress=(0,_.gL)(this.onProgress_,this));return r};
hL.prototype.onProgress_=function(r){this.dispatchEvent(r)};var wM3=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},pMV=function(r,f){var I=r.attempt_+1;
if(r.maxAttempts_>0&&I>r.maxAttempts_)return!1;I==0?f():r.delayCallId_=NK(function(){r.delayCallId_=null;f()},bDD(r),r);
r.attempt_=I;return!0};
wM3.prototype.reset=function(){this.delayCallId_&&_.Yq.clearTimeout(this.delayCallId_);this.attempt_=-1};
var bDD=function(r){var f=250*Math.pow(2,r.attempt_);r.maxDelayMs_>=0&&(f=Math.min(f,r.maxDelayMs_));return f};var BeK=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var wa=function(){_.zh.call(this);this.JSC$9877_request_=this.state_=null;this.JSC$9877_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9877_bytesTransferred_=0;this.retryIterator_=new wM3;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9877_errorDescription_=null;this.JSC$9877_eventHandler_=new _.B8(this);_.V$(this,this.JSC$9877_eventHandler_);this.JSC$9877_url_=this.blob_=null;this.JSC$9877_method_=void 0;this.chunkSize_=this.JSC$9877_metadata_=
this.JSC$9877_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9877_responseText_=this.JSC$9877_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.rh(wa,x2s);_.l=wa.prototype;_.l.run=function(){bR(this)};
_.l.getResponseCode=function(){return this.JSC$9877_responseCode_};
_.l.getResponseText=function(){return this.JSC$9877_responseText_};
_.l.JSC$25706_getErrorDescription=function(){return this.JSC$9877_errorDescription_};
_.l.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9877_eventHandler_.removeAll();this.JSC$9877_request_&&this.JSC$9877_request_.abort();this.retryIterator_.reset();var r=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(r==="Upload"||r==="Query")r=new hL,r.JSC$7695_withCredentials_=this.JSC$9877_withCredentials_,r.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9877_bytesTransferred_=
0;this.dispatchEvent(new S8("o"))}};
_.l.pause=function(){this.pauseRequested_=!0};
var bR=function(r){var f=r.state_;r.pauseRequested_?(r.pauseRequested_=!1,r.stateAfterUnpausing_=f,r.state_="Paused"):pMV(r.retryIterator_,function(){switch(r.state_){case "Start":r.JSC$9877_request_=new hL;var I=_.X0.clone(r.JSC$9877_headers_);r.blob_.size!=null&&(I["Content-Length"]=r.blob_.size);I=qoq(I);I["X-Goog-Upload-Protocol"]="resumable";I["X-Goog-Upload-Command"]="start";r.JSC$9877_eventHandler_.removeAll();r.JSC$9877_eventHandler_.listen(r.JSC$9877_request_,"complete",r.onStartComplete_);
r.JSC$9877_request_.JSC$7695_withCredentials_=r.JSC$9877_withCredentials_;r.JSC$9877_request_.send(r.JSC$9877_url_,r.JSC$9877_method_,r.JSC$9877_metadata_,I);r.lastCommandResponseCode_=null;r.dispatchEvent(new x$("q"));break;case "Upload":I=r.transferHandle_.uploadUrl_;var C=r.blob_.size;if(tMX()){var Y=r.chunkSize_;var V=r.offset_+Y>=C;C=Px3(r.blob_,r.offset_,V?C:r.offset_+Y)}else r.offset_=0,C=r.blob_,V=!0;r.JSC$9877_request_=new hL;r.JSC$9877_request_.JSC$7695_withCredentials_=r.JSC$9877_withCredentials_;
r.JSC$9877_eventHandler_.removeAll();r.JSC$9877_eventHandler_.listen(r.JSC$9877_request_,"progress",r.onUploadProgress_);Y=(0,_.gL)(r.JSC$9879_onUploadComplete_,r,r.offset_+C.size,V);r.JSC$9877_eventHandler_.listen(r.JSC$9877_request_,"complete",Y);r.lastCommandResponseCode_=null;r.dispatchEvent(new x$("q"));V=Object.assign({},r.JSC$9877_headers_||{},{"X-Goog-Upload-Command":"upload"+(V?", finalize":""),"X-Goog-Upload-Offset":r.offset_});r.JSC$9877_request_.send(I,"POST",C,V);break;case "Query":r.JSC$9877_request_=
new hL;r.JSC$9877_eventHandler_.removeAll();r.JSC$9877_eventHandler_.listen(r.JSC$9877_request_,"complete",r.onQueryComplete_);I=Object.assign({},r.JSC$9877_headers_||{},{"X-Goog-Upload-Command":"query"});r.JSC$9877_request_.send(r.transferHandle_.uploadUrl_,"POST","",I);r.lastCommandResponseCode_=null;r.dispatchEvent(new x$("q"));break;default:throw Error("df");}})||pl(r,"Transfer encountered too many consecutive failures.")},pl=function(r,f){r.state_="Error";
r.JSC$9877_errorDescription_=f;r.dispatchEvent(new S8("n"))};
wa.prototype.onStartComplete_=function(r){var f=r.target;this.lastCommandResponseCode_=f.getStatus();this.dispatchEvent(new x$("r"));if(npC(f))d2X(this,f);else if(zQ3(f)){r=UD(r.target.getAllResponseHeaders());for(var I in r)_.xq(I.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new S8("m"));I=gd(r,"X-Goog-Upload-URL");r=(r=gd(r,"X-Goog-Upload-Chunk-Granularity"))?parseInt(r,10):1;I===void 0||isNaN(r)||r<=0?pl(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
r)*r,this.transferHandle_=new Sv4(I),this.dispatchEvent(new S8("p")),this.state_="Upload",this.retryIterator_.reset(),bR(this))}else bR(this)};
wa.prototype.onUploadProgress_=function(r){this.JSC$9877_bytesTransferred_=this.offset_+r.loaded;this.dispatchEvent(new S8("k"))};
wa.prototype.JSC$9879_onUploadComplete_=function(r,f,I){var C=this,Y,V;return _.x(function(S){switch(S.nextAddress){case 1:Y=I.target;C.lastCommandResponseCode_=Y.getStatus();C.dispatchEvent(new x$("r"));if(Mgg(Y)||Y.getStatus()==404)return C.JSC$9877_bytesTransferred_=r,d2X(C,Y),S.return();if(zQ3(Y)){S.jumpTo(2);break}if(!(V=C.detectCorruptedBlobEnabled_)){S.jumpTo(3);break}return _.b(S,gps(C),4);case 4:V=S.yieldResult;case 3:if(V)return pl(C,"Blob has been modified or corrupted."),S.return();C.requireUploadRequestModification_=
Y.getStatus()==400;C.state_="Query";bR(C);return S.return();case 2:if(f)return pl(C,"Got a non-final success response after issuing a finalize command."),S.return();C.JSC$9877_bytesTransferred_=r;C.offset_=r;C.retryIterator_.reset();bR(C);return S.return()}})};
wa.prototype.onQueryComplete_=function(r){var f=r.target;this.lastCommandResponseCode_=f.getStatus();this.dispatchEvent(new x$("r"));npC(f)?(f.getStatus()===200&&(this.JSC$9877_bytesTransferred_=this.blob_.size),d2X(this,f)):zQ3(f)?(r=UD(r.target.getAllResponseHeaders()),r=parseInt(gd(r,"X-Goog-Upload-Size-Received"),10),isNaN(r)?pl(this,"Server did not respond with current offset."):r<this.offset_?pl(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
r+"."):this.requireUploadRequestModification_&&this.offset_===r?pl(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<r&&this.retryIterator_.reset(),this.offset_=this.JSC$9877_bytesTransferred_=r,this.state_="Upload",bR(this))):bR(this)};
var d2X=function(r,f){r.JSC$9877_responseCode_=f.getStatus();var I=UD(f.getAllResponseHeaders());uWR(I);r.JSC$9877_responseText_=f.getResponseText();r.state_="Response received";r.dispatchEvent(new S8("l"))},zQ3=function(r){var f=r.getStatus();
r=UD(r.getAllResponseHeaders());r=gd(r,"X-Goog-Upload-Status");return f===200&&r==="active"},Mgg=function(r){r=UD(r.getAllResponseHeaders());
return gd(r,"X-Goog-Upload-Status")==="final"},npC=function(r){if(Mgg(r))return!0;
r=r.getStatus();return r>=400&&r<500},gps=function(r){var f;
return _.x(function(I){if(I.nextAddress==1){if(!r.blob_||r.originalBlobSize_<=0)return I.return(!1);if(r.blob_.size!==r.originalBlobSize_)return I.return(!0);_.l_(I,2);if(f=Px3(r.blob_,0,1)){var C=new er,Y=Ih3(C);C.reader_.readAsBinaryString(f);I=_.b(I,Y,4)}else I=I.return(!0);return I}if(I.nextAddress!=2)return I.return(r.blob_.size!==r.originalBlobSize_);_.ha(I);return I.return(!0)})};var anT=function(r,f,I,C,Y,V){_.zh.call(this);this.payload_=C;this.JSC$9880_url_=r;this.JSC$9880_method_=f;this.JSC$9880_headers_=I;this.JSC$9880_metadata_=Y;this.encoding_=V||"binary";r=new _.MX;this.boundary_="uploader-"+j4()+"-"+r.JSC$9134_toIsoString();this.JSC$9880_responseText_=this.JSC$9880_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9880_errorDescription_=null;this.JSC$9880_eventHandler_=new _.B8(this);_.V$(this,this.JSC$9880_eventHandler_)};
_.t(anT,x2s);_.l=anT.prototype;
_.l.run=function(){var r=_.X0.clone(this.JSC$9880_headers_);this.payload_.length!=null&&(r["Content-Length"]=this.payload_.length);r=qoq(r);r["X-Goog-Upload-Protocol"]="multipart";r["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new hL;this.JSC$9880_eventHandler_.removeAll();this.JSC$9880_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9880_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9880_url_,this.JSC$9880_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9880_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",r)};
_.l.getResponseCode=function(){return this.JSC$9880_responseCode_};
_.l.getResponseText=function(){return this.JSC$9880_responseText_};
_.l.JSC$25706_getErrorDescription=function(){return this.JSC$9880_errorDescription_};
_.l.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9880_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new S8("o")))};
_.l.pause=function(){};
_.l.onTransferProgress_=function(){this.dispatchEvent(new S8("k"))};
_.l.onTransferComplete_=function(r){var f=r.target.getStatus();f===void 0||f===-1?(this.JSC$9880_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new S8("n"))):(this.JSC$9880_responseCode_=f,r=r.target,f=UD(r.getAllResponseHeaders()),uWR(f),this.JSC$9880_responseText_=r.getResponseText(),this.state_="Complete",this.dispatchEvent(new S8("l")))};_.XM_=function(r,f,I,C){C=C===void 0?!1:C;if(I instanceof ln8)return new hQV(r,"POST",f,I.getInputElement(),"");if(typeof I==="string"||I instanceof String)return new anT(r,"POST",f,I,"");var Y=new wa(void 0);Y.JSC$9877_url_=r;Y.JSC$9877_method_="POST";Y.JSC$9877_headers_=f;Y.blob_=I;Y.originalBlobSize_=I.size;Y.JSC$9877_metadata_="";C&&(Y.JSC$9877_withCredentials_=C);Y.state_="Start";return Y};var nl=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(nl,_.Kj);_.l=nl.prototype;_.l.getEnableSsEngine=function(){return _.Fz(this,2)};
_.l.getEnableAwr=function(){return _.Fz(this,3)};
_.l.getAlohaAutoGaRollout=function(){return _.Fz(this,5)};
_.l.getEnableConfigurator=function(){return _.Fz(this,6)};
_.l.getEnableMweb=function(){return _.Fz(this,7)};
var $2_=function(){var r=NhU();return _.X6(r,7,!0)};
nl.prototype.getEnableCtlConsentCheckbox=function(){return _.Fz(this,8)};
nl.prototype.getEnableIframe=function(){return _.Fz(this,9)};
var NhU=function(){var r=new nl;r=_.X6(r,5,!0);r=_.X6(r,2,!0);r=_.X6(r,4,!1);r=_.X6(r,8,!0);return _.X6(r,9,!0)};
nl.prototype.getEnableScreenshotNudge=function(){return _.Fz(this,10)};
var FtX=function(){var r=$2_();return _.X6(r,10,!0)};
nl.prototype.getEnableWebStartupConfigEndpoint=function(){return _.Fz(this,11)};
nl.prototype.getEnableJunkNudge=function(){return _.Fz(this,12)};
var dKB=function(){var r=FtX();return _.X6(r,12,!0)};
_.l=nl.prototype;_.l.getEnableConfiguratorLocale=function(){return _.Fz(this,13)};
_.l.getEnableTinyNoPointer=function(){return _.Fz(this,14)};
_.l.getEnableSupportSessionLogging=function(){return _.Fz(this,15)};
_.l.getEnableFileUploadForScreenshot=function(){return _.Fz(this,16)};
_.l.getEnableDirectDeflectionForSingleCategory=function(){return _.Fz(this,17)};
_.l.getEnableImageSanitization=function(){return _.Fz(this,18)};
_.l.getEnableAlohaBinarySplit=function(){return _.Fz(this,19)};
_.l.getEnableDbFeedbackIntents=function(){return _.Fz(this,20)};
_.l.getEnableMarkMandatoryFieldsWithRequired=function(){return _.Fz(this,21)};
_.l.getEnableFeedbackCategoryCustomUi=function(){return _.Fz(this,22)};
_.l.getEnableRealtimeCtl=function(){return _.Fz(this,23)};var nkR=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(nkR,_.Kj);var DBc=[/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 feB="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 IeP=_.op(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),Cld=_.op(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var leK,Ekw;var PfC,tgX;
PfC=function(r,f,I){r.timeOfStartCall=(new Date).getTime();var C=I||_.Yq,Y=C.document,V=r.nonce||_.J6(C.document);V&&!r.nonce&&(r.nonce=V);if(r.flow=="help"){var S=_.jH("document.location.href",C);!r.helpCenterContext&&S&&(r.helpCenterContext=S.substring(0,1200));S=!0;if(f&&JSON&&JSON.stringify){var h=JSON.stringify(f);(S=h.length<=1200)&&(r.psdJson=h)}S||(f={invalidPsd:!0})}f=[r,f,I];C.GOOGLE_FEEDBACK_START_ARGUMENTS=f;I=r.feedbackServerUri||"//www.google.com/tools/feedback";if(S=C.GOOGLE_FEEDBACK_START)S.apply(C,f);
else{C=I+"/load.js?";for(var w in r)f=r[w],f==null||_.lV(f)||(C+=encodeURIComponent(w)+"="+encodeURIComponent(f)+"&");r=ho(Y).createElement("SCRIPT");V&&r.setAttribute("nonce",V);_.vL(r,_.SF(C));Y.body.appendChild(r)}};
tgX=function(r,f,I,C){var Y,V;_.x(function(S){Y=I||_.Yq;var h=r.serverEnvironment==="DEV",w=I||_.Yq;w=r.nonce||_.J6(w.document);h={integrationKeys:{productId:r.productId,feedbackBucket:r.bucket,triggerId:r.triggerId},callbacks:{onClose:r.callback,onLoad:r.onLoadCallback},formContent:{locale:r.locale,disableScreenshot:r.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:r.abuseLink,additionalDataConsent:r.additionalDataConsent},initializationData:{isLocalServer:h,nonce:w,useNightlyRelease:h,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:r.feedbackServerUri,colorScheme:r.colorScheme},extraData:{productVersion:r.productVersion,authUser:r.authuser,configuratorId:r.configuratorId,customZIndex:r.customZIndex,tinyNoPointer:r.tinyNoPointer,
allowNonLoggedInFeedback:r.allowNonLoggedInFeedback,enableAnonymousFeedback:r.enableAnonymousFeedback}};f&&(w=new Map(Object.entries(f)),h.extraData.productSpecificData=w);V=h;return _.b(S,w7R(V,C,Y),0)})};
_.Th_=function(r,f,I){try{if(r.flow==="help"){var C=r.helpCenterPath.replace(/^\//,"");_.eF(I||window,"https://support.google.com/"+C)}else r.flow==="submit"?PfC(r,f,I):z0c(r.productId,r.feedbackServerUri).then(function(Y){Y=_.kB(Y,nl,1);var V=!Z5R||(Y==null?void 0:Y.getEnableMweb()),S=!r.tinyNoPointer||(Y==null?void 0:Y.getEnableTinyNoPointer());!Y||Y.getAlohaAutoGaRollout()&&V&&S?tgX(r,f,I,Y):PfC(r,f,I)},function(Y){Y&&Y.name!=="DuplicateFormError"&&PfC(r,f,I)})}catch(Y){tgX(r,f,I,null)}};
_.OH("userfeedback.api.startFeedback",_.Th_);var MXK=/https?:\/\/\S+\.\S+/,gkl=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],ae$=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var yOu=function(r){var f=r.split(""),I=[-263237435,15,f,function(C,Y,V){var S=Y.length;V.forEach(function(h,w,n){this.push(n[w]=Y[(Y.indexOf(h)-Y.indexOf(this[w])+w+S--)%Y.length])},C.split(""))},
function(C,Y){C=(C%Y.length+Y.length)%Y.length;Y.splice(-C).reverse().forEach(function(V){Y.unshift(V)})},
"response",function(){for(var C=64,Y=[];++C-Y.length-32;){switch(C){case 58:C-=14;case 91:case 92:case 93:continue;case 123:C=47;case 94:case 95:case 96:continue;case 46:C=95}Y.push(String.fromCharCode(C))}return Y},
null,12,1540023973,65941107,null,f,function(C,Y){for(C=(C%Y.length+Y.length)%Y.length;C--;)Y.unshift(Y.pop())},
695603893,function(C){for(var Y=C.length;Y;)C.push(C.splice(--Y,1)[0])},
"'[;'[(",function(C,Y){C.push(Y)},
null,function(C,Y,V,S,h){return Y(V,S,h)},
"continuation",f,function(C,Y){if(C.length!=0){Y=(Y%C.length+C.length)%C.length;var V=C[0];C[0]=C[Y];C[Y]=V}},
function(){for(var C=64,Y=[];++C-Y.length-32;){switch(C){case 91:C=44;continue;case 123:C=65;break;case 65:C-=18;continue;case 58:C=96;continue;case 46:C=95}Y.push(String.fromCharCode(C))}return Y},
'"),/]];'];I[7]=I;I[11]=I;I[18]=I;try{(((0,I[15])(I[21]),I[22])(I[11],I[9]),I[22])(I[new Date("1970-01-01T04:30:12.000+04:30")/1E3],I[1]),((0,I[22])(I[11],I[23]),I[4])(I[10],I[18]),(0,I[20])(I[21],I[14])<<(0,I[17])(I[18],I[1]),(0,I[4])(I[8],I[21]),(0,I[19])((0,I[19])((0,I[17])(I[7],I[9]),I[3],I[20],(0,I[6])(),I[2]),I[3],I[5],(0,I[15])(),I[2])}catch(C){return"aTlOUOubTO4AP____8P_"+r}return f.join("")};_.csB=new _.q("runAttestationCommand");var WtB=new _.q("verifyCommand");_.U0=new _.q("accessibilityContext");var Lts=new _.q("accessibilityData");var m2T=new _.q("profileCardCommand");var vTu=new _.q("signInEndpoint");var RpK=new _.q("signOutEndpoint");var Jsq;_.eQq=new _.q("accountItemSectionRenderer");Jsq=new _.q("accountItemRenderer");_.jJ4=new _.q("saveCommandToSessionStorageAction");var HDX=new _.q("crossAccountChannelTransferEndpoint");var H0m=new _.q("getAccountMenuEndpoint");_.i0B=new _.q("getAccountSwitcherEndpoint");var jTK=new _.q("getAccountsListEndpoint");var iD3=new _.q("getAccountsListInnertubeEndpoint");_.RQ3=new _.q("addToToastAction");var vpq=new _.q("hideEnclosingAction");_.da=new _.q("replaceEnclosingAction");_.KtV=new _.q("buttonRefreshAction");var ysV=new _.q("adsControlFlowOpportunityReceivedCommand");var U2T=new _.q("openAdAllowlistInstructionCommand");var sJX=new _.q("videoMastheadAdPrimaryVideoRenderer");var ODV=new _.q("displayAdRenderer");var Enq=new _.q("instreamVideoAdRenderer");_.op3=new _.q("inFeedAdLayoutRenderer");var QJs=new _.q("sequenceItemInPlayerAdLayoutRenderer");_.As3=new _.q("adSlotRenderer");var ZDg=new _.q("adAvatarViewModel");var Gb_=new _.q("adBadgeViewModel");var kb8=new _.q("adButtonViewModel");var zK=new _.q("adImageViewModel");var s7R=new _.q("reelsAdCardButtonedViewModel");var BhX=new _.q("reelsPlayerOverlayLayoutViewModel");var qvD=new _.q("showSchedulingPanelCommand");var uzV=new _.q("backstageCommentsRenderer");var D24=new _.q("backstageImageRenderer");var rJ4=new _.q("backstagePostRenderer");var fRC=new _.q("postRenderer");var IRU=new _.q("sharedPostRenderer");var Cw3=new _.q("createBackstagePostEndpoint");var YoD=new _.q("getPostVideoPreviewEndpoint");var lRD=new _.q("updateBackstagePostEndpoint");var V2V=new _.q("filterChipTransformCommand");var E23=new _.q("insertRichSectionCommand");var PjK=new _.q("talkToRecsDeselectCommand");var So3=new _.q("talkToRecsNextCommand");var Fal=new _.q("talkToRecsSelectCommand");var xBX=new _.q("talkToRecsUpdateTextCommand");_.lA=new _.q("browseEndpoint");_.hvB=new _.q("confirmDialogEndpoint");var wY4=new _.q("expandOnHoverCardRenderer");var b9C=new _.q("lumiereShelfDetailsRenderer");var pY4=new _.q("revealBusinessEmailCommand");var n2s=new _.q("validateChannelHandleCommand");var dBX=new _.q("channelCreationFormEndpoint");var zvC=new _.q("aboutChannelViewModel");var M23=new _.q("channelThumbnailWithLinkRenderer");var g2q=new _.q("channelCreationServiceEndpoint");var aR3=new _.q("updateChannelPageSettingsEndpoint");var Mh=function(r){this.delegate=r},ax=function(){Mh.apply(this,arguments)};
_.t(ax,Mh);_.OC.Object.defineProperties(ax.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(r){this.delegate.entityMetadata=r}}});var XYX=function(){ax.apply(this,arguments)};
_.t(XYX,ax);XYX.prototype.getAssociations=function(){return[]};var kEm=new _.q("webThumbnailDetailsExtensionData");var yS=new _.q("commandContext");var NeC=new _.q("addVideoLinkAction");var $B_=new _.q("createPollAction");var FYD=new _.q("hideIdentityChipAction");var PwV=new _.q("openUpdateCommentDialogAction");var XD=new _.q("updateBackstagePollAction");var t2X=new _.q("updateCommentVoteAction");var Te4=new _.q("commentThreadRenderer");var cJ4=function(){ax.apply(this,arguments)};
_.t(cJ4,ax);cJ4.prototype.getAssociations=function(){return[]};_.WYX=new _.q("commentDialogRenderer");var LYC=new _.q("updateCommentsSettingsEndpoint");var mB4=new _.q("commentViewModel");var ev8=new _.q("triStateButtonViewModel");var JJU=new _.q("voiceReplyContainerViewModel");_.Il=new _.q("commandExecutorCommand");var zi=new _.q("emoji");var jFg=new _.q("updateCreatorChannelInnertubeCommand");_.H9D=new _.q("appendContinuationItemsAction");_.i9V=new _.q("changeEngagementPanelVisibilityAction");_.$Z=new _.q("continuationCommand");var Rv4=new _.q("listMutationCommand");_.Nh=new _.q("openPopupAction");var v2D=new _.q("persistSubscriptionsDisplayPreferencesCommand");var AJ_;_.KYV=new _.q("playlistRemoveVideosAction");_.yJ3=new _.q("updatePlaylistAction");_.UB4=new _.q("addToPlaylistCommand");_.sFg=new _.q("endPlaylistCommand");_.O9q=new _.q("recoverPlaylistCommand");_.o2q=new _.q("refreshPlaylistCommand");_.QFs=new _.q("refreshFormCommand");AJ_=new _.q("openOnePickAddVideoModalCommand");_.sTB=new _.q("reloadContinuationItemsCommand");_.Z93=new _.q("scrollToEngagementPanelCommand");var G13=new _.q("selectCountryCommand");var k1_=new _.q("showReloadUiCommand");var Be3=new _.q("undoFeedbackAction");var qoC=new _.q("updateButtonAction");var x1K=new _.q("updateSubscribeButtonAction");var uWB=new _.q("updateToggleAction");var DBT=new _.q("webNativeShareCommand");_.oo=new _.q("webCommandMetadata");_.$$=new _.q("webHandleServiceEndpointExtension");var syR=new _.q("webNavigationEndpointData");var rA4=new _.q("copyLinkCommand");var fe4=new _.q("playlistVotingRefreshPopupCommand");var Ies=new _.q("selectChipCommand");var ClU=new _.q("setCookieCommand");var YUq=new _.q("setLocalStorageCommand");var le3=new _.q("setPrefStorageEntryCommand");var xKU;_.VXC=new _.q("settingsUpdateCheckboxCommand");_.Ek8=new _.q("settingsUpdateTextCommand");_.SUD=new _.q("settingsUpdateOptionsCommand");xKU=new _.q("settingsUpdateSwitchCommand");_.h04=new _.q("settingsUpdateConnectedAppRendererCommand");var w7B=new _.q("updateTextInputFormFieldRendererCommand");var bdq=new _.q("updateToggleButtonStateCommand");var p7C=new _.q("updateUrlParamCommand");var nkB=new _.q("webSubmitFormCommand");var dK4=new _.q("channelSwitcherPageRenderer"),z0T=new _.q("updateChannelSwitcherPageAction");_.Ip=new _.q("continuationItemRenderer");_.FD=new _.q("richItemRenderer");var MX3=new _.q("richSectionRenderer");_.gkg=new _.q("richShelfRenderer");_.aeX=new _.q("metadataBadgeRenderer");_.X73=new _.q("multiPageMenuNotificationSectionRenderer");_.Ni3=new _.q("playlistLoopButtonStateRenderer");var $KC=new _.q("claimLegacyYoutubeChannelEndpoint");var FT8=new _.q("getNotificationMenuEndpoint");var Pl4=new _.q("getSearchInVideoCommand");_.tX3=new _.q("getTranscriptEndpoint");_.YI=new _.q("signalServiceEndpoint");var TiC=new _.q("verifyAgeEndpoint");var Obd=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Obd,_.Kj);Obd.prototype.getPath=function(){return _.Tb(this,1)};
Obd.prototype.getValue=function(){return _.Tb(this,2)};var cA3=[0,_.oJ,-1];var WTX=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(WTX,_.Kj);var s$q=_.D$(WTX,[0,_.QF,cA3]);var LT4=new _.q("dismissalEndpoint");var mKg=new _.q("elementsCommand");_.gF=new _.q("innertubeCommand");var e0D=new _.q("multipleInlinePlaybackCommand");var tRB=new _.q("loggingDirectives");var JAs=new _.q("acknowledgeChannelTouStrikeCommand");var jPD=function(){ax.apply(this,arguments)};
_.t(jPD,ax);jPD.prototype.getAssociations=function(){return[]};var HdV=function(){ax.apply(this,arguments)};
_.t(HdV,ax);HdV.prototype.getAssociations=function(){return[]};var ju=new _.q("entityBatchUpdate");_.id8=new _.q("entityUpdateCommand");var R0T=function(){ax.apply(this,arguments)};
_.t(R0T,ax);R0T.prototype.getAssociations=function(){var r=[];this.delegate.alternateChannel&&r.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&r.push.apply(r,_.Na(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&r.push(this.delegate.oneofChannelEntity);return[].concat(_.Na(new Set(r)))};var vks=function(){ax.apply(this,arguments)};
_.t(vks,ax);vks.prototype.getAssociations=function(){var r=[];this.delegate.entryCollection&&r.push(this.delegate.entryCollection);return[].concat(_.Na(new Set(r)))};
var KTT=function(){ax.apply(this,arguments)};
_.t(KTT,ax);KTT.prototype.getAssociations=function(){var r=[];this.delegate.parentPlaylist&&r.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var f=_.E(this.delegate.entries),I=f.next();!I.done;I=f.next())r.push.apply(r,_.Na((new yAU(I.value)).getAssociations()));return[].concat(_.Na(new Set(r)))};
var yAU=function(){Mh.apply(this,arguments)};
_.t(yAU,Mh);yAU.prototype.getAssociations=function(){var r=[];this.delegate.video&&r.push(this.delegate.video);return[].concat(_.Na(new Set(r)))};var UKV=function(){ax.apply(this,arguments)};
_.t(UKV,ax);UKV.prototype.getAssociations=function(){var r=[];this.delegate.descriptionEntity&&r.push(this.delegate.descriptionEntity);this.delegate.creators&&r.push.apply(r,_.Na(this.delegate.creators));this.delegate.theBiggestFan&&r.push(this.delegate.theBiggestFan);return[].concat(_.Na(new Set(r)))};
var sPC=function(){ax.apply(this,arguments)};
_.t(sPC,ax);sPC.prototype.getAssociations=function(){return[]};var OdU=new _.q("fantasyRosterViewModel");var okC=new _.q("addFollowUpSurveyCommand");var QP3=new _.q("getSurveyCommand");var AA3=new _.q("ratingSurveyOptionRenderer");_.LG=new _.q("feedbackEndpoint");var ZdB=new _.q("reportHistoryTableCellRenderer"),GhT=new _.q("reportHistoryTableTextCellRenderer"),kh3=new _.q("reportHistoryTableReasonCellRenderer");_.BiB=new _.q("flagEndpoint");var qUV=new _.q("getFlowCommand");var uZ4=new _.q("submitFormWithValidationFlowCommand");var DKq=function(){ax.apply(this,arguments)};
_.t(DKq,ax);DKq.prototype.getAssociations=function(){return[]};var rBB=new _.q("flowFormState");var fB3=new _.q("gameCardRenderer");var IBT=new _.q("accountLinkingStateChangedCommand");var CI4=function(){ax.apply(this,arguments)};
_.t(CI4,ax);CI4.prototype.getAssociations=function(){return[]};var Ya3=new _.q("changeMiniAppPlayStateCommand");var lBB=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(lBB,_.Kj);var P_=[1,2,3];var Vm8=[0,P_,N3R,_.$9E,nWq];var Ecg=_.D$(lBB,Vm8),Sag=_.rn(Vm8);var xJ4=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(xJ4,_.Kj);var hW4=[0,_.Uv,_.oJ];var wzB=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(wzB,_.Kj);var b$D=[0,_.oJ];var pzX=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(pzX,_.Kj);var ncq=function(r,f){return _.Bd(r,3,f)};var dJ3=_.rn([0,1,hW4,_.Zn,b$D]);var zWU=new _.q("miniAppScoreChallengeViewModel");var MmD=new _.q("miniGameCardViewModel");var gc8=new _.q("teaserCardViewModel");var aB3=function(){ax.apply(this,arguments)};
_.t(aB3,ax);aB3.prototype.getAssociations=function(){return[]};_.XzX=new _.q("feedbackItemRenderer");var NPC={UNKNOWN:"UNKNOWN",MY_CHANNEL:"MY_CHANNEL",WATCH_HISTORY:"WATCH_HISTORY",WATCH_HISTORY_CAIRO:"WATCH_HISTORY_CAIRO",WATCH_LATER:"WATCH_LATER",WATCH_LATER_CAIRO:"WATCH_LATER_CAIRO",WATCH_LATER_FILLED:"WATCH_LATER_FILLED",PURCHASES:"PURCHASES",WHAT_TO_WATCH:"WHAT_TO_WATCH",SUBSCRIPTIONS:"SUBSCRIPTIONS",PLAYLISTS:"PLAYLISTS",PLAYLISTS_CAIRO:"PLAYLISTS_CAIRO",OFFLINE:"OFFLINE",OFFLINE_CLOUD:"OFFLINE_CLOUD",OFFLINE_DOWNLOAD:"OFFLINE_DOWNLOAD",OFFLINE_DOWNLOAD_CAIRO:"OFFLINE_DOWNLOAD_CAIRO",OFFLINE_DOWNLOAD_COMPLETE_FILL:"OFFLINE_DOWNLOAD_COMPLETE_FILL",
OFFLINE_DOWNLOADING_ZERO:"OFFLINE_DOWNLOADING_ZERO",OFFLINE_DOWNLOADING_TWENTY:"OFFLINE_DOWNLOADING_TWENTY",OFFLINE_DOWNLOADING_FORTY:"OFFLINE_DOWNLOADING_FORTY",OFFLINE_DOWNLOADING_SIXTY:"OFFLINE_DOWNLOADING_SIXTY",OFFLINE_DOWNLOADING_EIGHTY:"OFFLINE_DOWNLOADING_EIGHTY",OFFLINE_DOWNLOADING_SPINNER:"OFFLINE_DOWNLOADING_SPINNER",OFFLINE_MUSIC_KEY:"OFFLINE_MUSIC_KEY",OFFLINE_REMOVE:"OFFLINE_REMOVE",OFFLINE_RESUME:"OFFLINE_RESUME",OFFLINE_PAUSE:"OFFLINE_PAUSE",OFFLINE_NO_CONTENT:"OFFLINE_NO_CONTENT",
OFFLINE_NO_CONTENT_UPSIDE_DOWN:"OFFLINE_NO_CONTENT_UPSIDE_DOWN",OFFLINE_PIN:"OFFLINE_PIN",OFFLINE_COMMUTE:"OFFLINE_COMMUTE",CAPTURE:"CAPTURE",UPLOADS:"UPLOADS",SOCIAL:"SOCIAL",BROWSE_CHANNELS:"BROWSE_CHANNELS",SUBSCRIPTION_MANAGER:"SUBSCRIPTION_MANAGER",FAVORITES:"FAVORITES",INBOX:"INBOX",LIKES_PLAYLIST:"LIKES_PLAYLIST",LIKES_PLAYLIST_CAIRO:"LIKES_PLAYLIST_CAIRO",MIX:"MIX",COLLECTION:"COLLECTION",EXPAND:"EXPAND",EXPAND_CAIRO:"EXPAND_CAIRO",COLLAPSE:"COLLAPSE",COLLAPSE_CAIRO:"COLLAPSE_CAIRO",MUSIC:"MUSIC",
MUSIC_CAIRO:"MUSIC_CAIRO",NO_OFFLINE_VIDEOS:"NO_OFFLINE_VIDEOS",NO_OFFLINE_PLAYLISTS:"NO_OFFLINE_PLAYLISTS",MUSIC_PASS_BADGE:"MUSIC_PASS_BADGE",PLAYLIST_ORDER:"PLAYLIST_ORDER",SHOWS:"SHOWS",EDUCATION:"EDUCATION",TIP_JAR:"TIP_JAR",TIP_JAR_LOVE:"TIP_JAR_LOVE",NOTIFICATIONS_INBOX:"NOTIFICATIONS_INBOX",BACK:"BACK",PAID:"PAID",POPULAR:"POPULAR",EXPLORE:"EXPLORE",CREATOR_STUDIO:"CREATOR_STUDIO",EDIT:"EDIT",CANCEL:"CANCEL",CREATOR_ANALYTICS:"CREATOR_ANALYTICS",CREATOR_COMMENTS:"CREATOR_COMMENTS",CREATOR_DASHBOARD:"CREATOR_DASHBOARD",
CREATOR_VIDEO_MANAGER:"CREATOR_VIDEO_MANAGER",CREATOR_VIEWER_LINK:"CREATOR_VIEWER_LINK",CREATOR_EXTERNAL_SHORTCUT:"CREATOR_EXTERNAL_SHORTCUT",CREATOR_SETTINGS:"CREATOR_SETTINGS",CREATOR_PLAYLISTS:"CREATOR_PLAYLISTS",CREATOR_METADATA_BASIC:"CREATOR_METADATA_BASIC",CREATOR_METADATA_MONETIZATION:"CREATOR_METADATA_MONETIZATION",CREATOR_METADATA_MONETIZATION_OFF:"CREATOR_METADATA_MONETIZATION_OFF",CREATOR_METADATA_ADVANCED:"CREATOR_METADATA_ADVANCED",SETTINGS:"SETTINGS",SETTINGS_CAIRO:"SETTINGS_CAIRO",
SETTINGS_LIGHT:"SETTINGS_LIGHT",SETTINGS_MATERIAL:"SETTINGS_MATERIAL",EXPERIMENT:"EXPERIMENT",REMOVE_FROM_HISTORY:"REMOVE_FROM_HISTORY",ADD_TO_PLAYLIST:"ADD_TO_PLAYLIST",REMOVE_FROM_PLAYLIST:"REMOVE_FROM_PLAYLIST",SHARE:"SHARE",INFO:"INFO",INFO_OUTLINE:"INFO_OUTLINE",CAPTIONS:"CAPTIONS",LIKE:"LIKE",DISLIKE:"DISLIKE",LIKE_SELECTED:"LIKE_SELECTED",DISLIKE_SELECTED:"DISLIKE_SELECTED",FLAG:"FLAG",FLAG_CAIRO:"FLAG_CAIRO",FLAG_OUTLINE:"FLAG_OUTLINE",HIDE:"HIDE",UNSUBSCRIBE:"UNSUBSCRIBE",DELETE:"DELETE",
DELETE_LIGHT:"DELETE_LIGHT",DELETE_SWEEP:"DELETE_SWEEP",REMOVE:"REMOVE",OFFLINE_ADD:"OFFLINE_ADD",QUESTION_CIRCLE:"QUESTION_CIRCLE",SAVE_PLAYLIST:"SAVE_PLAYLIST",ADD_TO_WATCH_LATER:"ADD_TO_WATCH_LATER",SEARCH:"SEARCH",SEARCH_CAIRO:"SEARCH_CAIRO",SEARCH_WITH_CIRCLE:"SEARCH_WITH_CIRCLE",SEARCH_FILLED:"SEARCH_FILLED",SEARCH_BOLD:"SEARCH_BOLD",SEARCH_TAB_LARGE:"SEARCH_TAB_LARGE",VOICE_SEARCH:"VOICE_SEARCH",VOICE_SEARCH_WHITE:"VOICE_SEARCH_WHITE",VOICE_SEARCH_WITH_CIRCLE:"VOICE_SEARCH_WITH_CIRCLE",SEARCH_HISTORY:"SEARCH_HISTORY",
SIGN_IN:"SIGN_IN",VIEW_ALL:"VIEW_ALL",ADD_TO_REMOTE_QUEUE:"ADD_TO_REMOTE_QUEUE",TRASH:"TRASH",EXPLORE_DESTINATION:"EXPLORE_DESTINATION",SHORTS_DESTINATION:"SHORTS_DESTINATION",TAB_EXPLORE:"TAB_EXPLORE",TAB_HOME:"TAB_HOME",TAB_HOME_CAIRO:"TAB_HOME_CAIRO",TAB_SUBSCRIPTIONS:"TAB_SUBSCRIPTIONS",TAB_SUBSCRIPTIONS_CAIRO:"TAB_SUBSCRIPTIONS_CAIRO",TAB_TRENDING:"TAB_TRENDING",TAB_LIBRARY:"TAB_LIBRARY",TAB_MORE:"TAB_MORE",TAB_ACCOUNT:"TAB_ACCOUNT",TAB_SHARES:"TAB_SHARES",TAB_ACTIVITY:"TAB_ACTIVITY",TAB_ACTIVITY_CAIRO:"TAB_ACTIVITY_CAIRO",
TAB_INBOX:"TAB_INBOX",TAB_HISTORY:"TAB_HISTORY",TAB_LIKED:"TAB_LIKED",TAB_COLLECT:"TAB_COLLECT",TAB_LIVE:"TAB_LIVE",TAB_MUSIC_PREMIUM:"TAB_MUSIC_PREMIUM",TAB_SHORTS:"TAB_SHORTS",TAB_SHORTS_CAIRO:"TAB_SHORTS_CAIRO",TAB_SAMPLES:"TAB_SAMPLES",EMPTY_LIKE:"EMPTY_LIKE",CLOCK:"CLOCK",CLOCK_FILLED:"CLOCK_FILLED",CONVERSATION_JOIN:"CONVERSATION_JOIN",CONVERSATION_LEAVE:"CONVERSATION_LEAVE",CONVERSATION_RENAME:"CONVERSATION_RENAME",MONETIZATION_MONETIZABLE:"MONETIZATION_MONETIZABLE",MONETIZATION_MONETIZED:"MONETIZATION_MONETIZED",
MONETIZATION_NOT_MONETIZABLE:"MONETIZATION_NOT_MONETIZABLE",MONETIZATION_PENDING:"MONETIZATION_PENDING",MONETIZATION_REQUIRES_ACTION:"MONETIZATION_REQUIRES_ACTION",MONETIZATION_REVSHARED:"MONETIZATION_REVSHARED",WATCH_RELATED_MIX:"WATCH_RELATED_MIX",WATCH_RELATED_PLAYLIST:"WATCH_RELATED_PLAYLIST",HELP:"HELP",HELP_CAIRO:"HELP_CAIRO",PRIVACY_PRIVATE:"PRIVACY_PRIVATE",PRIVACY_PUBLIC:"PRIVACY_PUBLIC",PRIVACY_UNLISTED:"PRIVACY_UNLISTED",PRIVACY_SCHEDULED:"PRIVACY_SCHEDULED",PLAY_ALL:"PLAY_ALL",CREATOR_CAPTURE_LINK:"CREATOR_CAPTURE_LINK",
DISMISSAL:"DISMISSAL",CHANNELS_HOME_TAB:"CHANNELS_HOME_TAB",CHANNELS_FEED_TAB:"CHANNELS_FEED_TAB",VERY_HAPPY:"VERY_HAPPY",HAPPY:"HAPPY",MEH:"MEH",SAD:"SAD",VERY_SAD:"VERY_SAD",YOUTUBE:"YOUTUBE",YOUTUBE_LOGO:"YOUTUBE_LOGO",YOUTUBE_LOGO_LIGHT:"YOUTUBE_LOGO_LIGHT",YOUTUBE_RED_LOGO:"YOUTUBE_RED_LOGO",YOUTUBE_RED_LOGO_SHORT:"YOUTUBE_RED_LOGO_SHORT",YOUTUBE_RED_LOGO_LIGHT:"YOUTUBE_RED_LOGO_LIGHT",YOUTUBE_RED_LOGO_WHITE_TEXT:"YOUTUBE_RED_LOGO_WHITE_TEXT",YOUTUBE_PLUS_LOGO:"YOUTUBE_PLUS_LOGO",YOUTUBE_PLUS_LOGO_SHORT:"YOUTUBE_PLUS_LOGO_SHORT",
YOUTUBE_PLUS_LOGO_LIGHT:"YOUTUBE_PLUS_LOGO_LIGHT",YOUTUBE_MUSIC_LOGO_SHORT:"YOUTUBE_MUSIC_LOGO_SHORT",YOUTUBE_MUSIC_LOGO_WHITE_TEXT:"YOUTUBE_MUSIC_LOGO_WHITE_TEXT",YOUTUBE_PREMIERE_LOGO_SHORT:"YOUTUBE_PREMIERE_LOGO_SHORT",YOUTUBE_PREMIUM_LOGO:"YOUTUBE_PREMIUM_LOGO",YOUTUBE_PREMIUM_LOGO_SHORT:"YOUTUBE_PREMIUM_LOGO_SHORT",YOUTUBE_SHORTS_ARROW_UP:"YOUTUBE_SHORTS_ARROW_UP",YOUTUBE_SHORTS_ARROW_DOWN:"YOUTUBE_SHORTS_ARROW_DOWN",YOUTUBE_SHORTS_OUTLINE_16:"YOUTUBE_SHORTS_OUTLINE_16",YOUTUBE_SHORTS_OUTLINE_20:"YOUTUBE_SHORTS_OUTLINE_20",
YOUTUBE_SHORTS_OUTLINE_24:"YOUTUBE_SHORTS_OUTLINE_24",YOUTUBE_SHORTS_FILL_16:"YOUTUBE_SHORTS_FILL_16",YOUTUBE_SHORTS_FILL_20:"YOUTUBE_SHORTS_FILL_20",YOUTUBE_SHORTS_FILL_24:"YOUTUBE_SHORTS_FILL_24",YOUTUBE_SHORTS_BRAND_24:"YOUTUBE_SHORTS_BRAND_24",YOUTUBE_SHORTS_BRAND_32:"YOUTUBE_SHORTS_BRAND_32",YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21:"YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16",
YOUTUBE_TV:"YOUTUBE_TV",YOUTUBE_WHITE:"YOUTUBE_WHITE",YOUTUBE_KIDS:"YOUTUBE_KIDS",YOUTUBE_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK",MONETIZATION_ON:"MONETIZATION_ON",SORT_NEWEST:"SORT_NEWEST",SORT_MOST_VIEWED:"SORT_MOST_VIEWED",VIDEO_QUALITY:"VIDEO_QUALITY",
VIDEO_QUALITY_4K:"VIDEO_QUALITY_4K",VIDEO_QUALITY_4K_FILLED:"VIDEO_QUALITY_4K_FILLED",VIDEO_QUALITY_8K:"VIDEO_QUALITY_8K",VIDEO_QUALITY_SD:"VIDEO_QUALITY_SD",FEEDBACK:"FEEDBACK",FEEDBACK_CAIRO:"FEEDBACK_CAIRO",PRIVACY_INFO:"PRIVACY_INFO",SHARE_LIGHT:"SHARE_LIGHT",SHARE_ARROW:"SHARE_ARROW",SHARE_ARROW_LIGHT:"SHARE_ARROW_LIGHT",SHARE_CAIRO:"SHARE_CAIRO",IOS_SHARE:"IOS_SHARE",CREATE_PLAYLIST:"CREATE_PLAYLIST",UNLIMITED:"UNLIMITED",EMPTY_HEART:"EMPTY_HEART",FULL_HEART:"FULL_HEART",UNLIMITED_LOGO:"UNLIMITED_LOGO",
RELATED:"RELATED",PLAYING:"PLAYING",REPORT_PROBLEM:"REPORT_PROBLEM",BUG_REPORT:"BUG_REPORT",INLINE_PLAYBACK_SETTINGS:"INLINE_PLAYBACK_SETTINGS",REPLAY:"REPLAY",REFRESH:"REFRESH",REDEEM:"REDEEM",SWITCH_ACCOUNTS:"SWITCH_ACCOUNTS",SHUFFLE:"SHUFFLE",MUSIC_SHUFFLE:"MUSIC_SHUFFLE",LOOP:"LOOP",LOOP_ACTIVE:"LOOP_ACTIVE",LOOP_ONE:"LOOP_ONE",LOOP_ONE_ACTIVE:"LOOP_ONE_ACTIVE",ACCOUNT_CIRCLE:"ACCOUNT_CIRCLE",ACCOUNT_CIRCLE_CAIRO:"ACCOUNT_CIRCLE_CAIRO",ACCOUNT_BOX:"ACCOUNT_BOX",ACCOUNT_BOX_CAIRO:"ACCOUNT_BOX_CAIRO",
OPEN_IN_NEW:"OPEN_IN_NEW",OPEN_WITH:"OPEN_WITH",CAST_ICON:"CAST_ICON",CAST_OUTLINE:"CAST_OUTLINE",CAST_MOBILE:"CAST_MOBILE",DISCONNECTED_CAST_CIRCLE:"DISCONNECTED_CAST_CIRCLE",SHORTS_COMMENT:"SHORTS_COMMENT",SHORTS_DISLIKE:"SHORTS_DISLIKE",SHORTS_LIKE:"SHORTS_LIKE",SHORTS_SHARE:"SHORTS_SHARE",SHORTS_HEADER_CAMERA:"SHORTS_HEADER_CAMERA",SHORTS_HEADER_CAMERA_BOLD:"SHORTS_HEADER_CAMERA_BOLD",SHORTS_LIKE_SELECTED:"SHORTS_LIKE_SELECTED",SHORTS_DISLIKE_SELECTED:"SHORTS_DISLIKE_SELECTED",SHORTS_SAVE_OFF:"SHORTS_SAVE_OFF",
SHORTS_SAVE_ON:"SHORTS_SAVE_ON",SHORTS_SEARCH:"SHORTS_SEARCH",ADD_FRIEND:"ADD_FRIEND",ADD_MORE_FRIENDS:"ADD_MORE_FRIENDS",ACCEPT_FRIEND_INVITE:"ACCEPT_FRIEND_INVITE",DECLINE_FRIEND_INVITE:"DECLINE_FRIEND_INVITE",CANCEL_FRIEND_INVITE:"CANCEL_FRIEND_INVITE",BLOCK_USER:"BLOCK_USER",UNBLOCK_USER:"UNBLOCK_USER",VIEW_PARTICIPANTS:"VIEW_PARTICIPANTS",INVITE_TO_CONVERSATION:"INVITE_TO_CONVERSATION",LIVE:"LIVE",LIVE_CAIRO:"LIVE_CAIRO",SPECIAL:"SPECIAL",HOME:"HOME",HOME_FILLED:"HOME_FILLED",STAFF_PICK:"STAFF_PICK",
REVIEW:"REVIEW",LETS_PLAY:"LETS_PLAY",MORE_FROM_PUBLISHER:"MORE_FROM_PUBLISHER",NEWS:"NEWS",NEWS_CAIRO:"NEWS_CAIRO",TRAILER:"TRAILER",NEW_RELEASE:"NEW_RELEASE",TOURNAMENTS:"TOURNAMENTS",SPEED_RUN:"SPEED_RUN",EVENT:"EVENT",EVENT_LIGHT:"EVENT_LIGHT",TUTORIAL:"TUTORIAL",GAMES:"GAMES",RECOMMENDED:"RECOMMENDED",TRENDING_UP:"TRENDING_UP",VIDEOS:"VIDEOS",FASHION_LOGO:"FASHION_LOGO",FASHION_LOGO_CAIRO:"FASHION_LOGO_CAIRO",TERMS_OF_SERVICE:"TERMS_OF_SERVICE",CONTACT:"CONTACT",COLORED_GAMING_LOGO:"COLORED_GAMING_LOGO",
GAMING_LOGO:"GAMING_LOGO",GAMING_LOGO_CAIRO:"GAMING_LOGO_CAIRO",CHANNEL_NOTIFICATION_PREFERENCE_OFF:"CHANNEL_NOTIFICATION_PREFERENCE_OFF",CHANNEL_NOTIFICATION_PREFERENCE_ON:"CHANNEL_NOTIFICATION_PREFERENCE_ON",PLAYLIST_NOTIFICATION_PREFERENCE_OFF:"PLAYLIST_NOTIFICATION_PREFERENCE_OFF",PLAYLIST_NOTIFICATION_PREFERENCE_ON:"PLAYLIST_NOTIFICATION_PREFERENCE_ON",NOTIFICATIONS:"NOTIFICATIONS",NOTIFICATIONS_CAIRO:"NOTIFICATIONS_CAIRO",NOTIFICATIONS_OFF:"NOTIFICATIONS_OFF",NOTIFICATIONS_OFF_OUTLINE:"NOTIFICATIONS_OFF_OUTLINE",
NOTIFICATIONS_DONE_CHECKMARK:"NOTIFICATIONS_DONE_CHECKMARK",MUSIC_AUTO_OFFLINE_BADGE:"MUSIC_AUTO_OFFLINE_BADGE",MUSIC_EXPLICIT_BADGE:"MUSIC_EXPLICIT_BADGE",MUSIC_NOTIFICATIONS_SETTING:"MUSIC_NOTIFICATIONS_SETTING",NOTIFICATIONS_NONE:"NOTIFICATIONS_NONE",NOTIFICATIONS_ACTIVE:"NOTIFICATIONS_ACTIVE",NOTIFICATIONS_OCCASIONAL:"NOTIFICATIONS_OCCASIONAL",SEND:"SEND",SEND_OUTLINE:"SEND_OUTLINE",SLOW_MODE:"SLOW_MODE",SLOW_MODE_OFF:"SLOW_MODE_OFF",STORIES_ADD_BADGE:"STORIES_ADD_BADGE",SUPER_CHAT_FOR_GOOD:"SUPER_CHAT_FOR_GOOD",
MEMBERS_ONLY_MODE:"MEMBERS_ONLY_MODE",MEMBERS_ONLY_MODE_OFF:"MEMBERS_ONLY_MODE_OFF",INVITE_ONLY_MODE:"INVITE_ONLY_MODE",INVITE_ONLY_MODE_OFF:"INVITE_ONLY_MODE_OFF",EMOJI:"EMOJI",EMOJI_ACTIVITIES:"EMOJI_ACTIVITIES",EMOJI_CUSTOM:"EMOJI_CUSTOM",EMOJI_FLAGS:"EMOJI_FLAGS",EMOJI_FOOD:"EMOJI_FOOD",EMOJI_NATURE:"EMOJI_NATURE",EMOJI_OBJECTS:"EMOJI_OBJECTS",EMOJI_PEOPLE:"EMOJI_PEOPLE",EMOJI_RECENT:"EMOJI_RECENT",EMOJI_SYMBOLS:"EMOJI_SYMBOLS",EMOJI_TRAVEL:"EMOJI_TRAVEL",EMOJI_SPONSORSHIPS:"EMOJI_SPONSORSHIPS",
HEART_BOX:"HEART_BOX",MEDAL_STAR:"MEDAL_STAR",SUPERSTAR:"SUPERSTAR",TROPHY_STAR:"TROPHY_STAR",MESSAGE_BUBBLE_GEAR:"MESSAGE_BUBBLE_GEAR",MESSAGE_BUBBLE_LEFT:"MESSAGE_BUBBLE_LEFT",MESSAGE_BUBBLE_LEFT_BOOST:"MESSAGE_BUBBLE_LEFT_BOOST",MONEY_FILL:"MONEY_FILL",MONEY_FILL_JPY:"MONEY_FILL_JPY",MONEY_FILL_STORE:"MONEY_FILL_STORE",MONEY_FILL_SHOPPING_BAG:"MONEY_FILL_SHOPPING_BAG",MONEY_FILL_MORE_ARROW:"MONEY_FILL_MORE_ARROW",MONEY_HEART:"MONEY_HEART",FILL_DOLLAR_SIGN_HEART_12:"FILL_DOLLAR_SIGN_HEART_12",PURCHASE_SPONSORSHIP:"PURCHASE_SPONSORSHIP",
PURCHASE_SUPER_CHAT:"PURCHASE_SUPER_CHAT",PURCHASE_SUPER_STICKER:"PURCHASE_SUPER_STICKER",SUPER_STICKER:"SUPER_STICKER",REDEEM_SUPER_CHAT_FREEBIE:"REDEEM_SUPER_CHAT_FREEBIE",STICKER_GHOST_CARD:"STICKER_GHOST_CARD",DOLLAR_SIGN_CIRCLE:"DOLLAR_SIGN_CIRCLE",OWNER:"OWNER",MODERATOR:"MODERATOR",YOUTUBE_TEAM:"YOUTUBE_TEAM",VERIFIED:"VERIFIED",MEMBER:"MEMBER",FAB_UPLOAD:"FAB_UPLOAD",FAB_CAMERA:"FAB_CAMERA",BACKGROUND_SIGNED_OUT:"BACKGROUND_SIGNED_OUT",BACKGROUND_SUBSCRIBE:"BACKGROUND_SUBSCRIBE",BACKGROUND_SUBSCRIBE_TRANSPARENT:"BACKGROUND_SUBSCRIBE_TRANSPARENT",
ARTIST:"ARTIST",ARTIST_ANALYTICS:"ARTIST_ANALYTICS",ASSESSMENT:"ASSESSMENT",CREDIT_CARD:"CREDIT_CARD",GET_APP:"GET_APP",LIVE_CHECKLIST:"LIVE_CHECKLIST",MEMBERSHIP_PRE_PURCHASE:"MEMBERSHIP_PRE_PURCHASE",MEMBERSHIP_LIMITED_PRE_PURCHASE:"MEMBERSHIP_LIMITED_PRE_PURCHASE",MEMBERSHIP_POST_PURCHASE:"MEMBERSHIP_POST_PURCHASE",MEMBERSHIP_LIMITED_POST_PURCHASE:"MEMBERSHIP_LIMITED_POST_PURCHASE",MEMBERSHIP_OFFER:"MEMBERSHIP_OFFER",MEMBERSHIP_MANAGE:"MEMBERSHIP_MANAGE",MEMBERSHIP_CANCELED:"MEMBERSHIP_CANCELED",
MEMBERSHIP_PURCHASED:"MEMBERSHIP_PURCHASED",PHONE:"PHONE",SMS:"SMS",FAVORITE:"FAVORITE",UNFAVORITE:"UNFAVORITE",NEXT:"NEXT",REPOST:"REPOST",EXTERNAL_LINK:"EXTERNAL_LINK",LANGUAGE:"LANGUAGE",CLOSED_CAPTION:"CLOSED_CAPTION",CLOSED_CAPTION_SELECTED:"CLOSED_CAPTION_SELECTED",VIEW_LIST:"VIEW_LIST",VIEW_LIST_CAIRO:"VIEW_LIST_CAIRO",VIEW_LIST_DARK:"VIEW_LIST_DARK",VIEW_MODULE:"VIEW_MODULE",VIEW_MODULE_DARK:"VIEW_MODULE_DARK",VERTICAL_ALIGN_BOTTOM:"VERTICAL_ALIGN_BOTTOM",VERTICAL_ALIGN_TOP:"VERTICAL_ALIGN_TOP",
MUSIC_UNAVAILABLE:"MUSIC_UNAVAILABLE",NO_CONVERSATIONS:"NO_CONVERSATIONS",ALERT_WARN_RED:"ALERT_WARN_RED",ALERT_WARN_YELLOW:"ALERT_WARN_YELLOW",WARNING:"WARNING",SORT:"SORT",FILTER:"FILTER",KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE",KIDS_SCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_SCHOOL_CONTENT_AGE_PREFERENCE",KIDS_NO_CONTENT_AGE_PREFERENCE:"KIDS_NO_CONTENT_AGE_PREFERENCE",SPACECAST:"SPACECAST",SCHOOL:"SCHOOL",ACCELERATOR:"ACCELERATOR",TRENDING:"TRENDING",TRENDING_CAIRO:"TRENDING_CAIRO",
PAUSE_FILLED:"PAUSE_FILLED",PAUSE_OUTLINED:"PAUSE_OUTLINED",PHOTO_CAMERA:"PHOTO_CAMERA",PHOTO_CAMERA_LIGHT:"PHOTO_CAMERA_LIGHT",PHOTO_CAMERA_OUTLINE:"PHOTO_CAMERA_OUTLINE",PHOTO_CAMERA_OUTLINE_LARGE:"PHOTO_CAMERA_OUTLINE_LARGE",PHOTO_LIBRARY:"PHOTO_LIBRARY",COPYRIGHT_NOTIFICATION_RED:"COPYRIGHT_NOTIFICATION_RED",COPYRIGHT_NOTIFICATION_BLUE:"COPYRIGHT_NOTIFICATION_BLUE",PLAYLIST_ADD:"PLAYLIST_ADD",PLAYLIST_ADD_CHECK:"PLAYLIST_ADD_CHECK",CHANNEL_BACK:"CHANNEL_BACK",STAR:"STAR",STAR_FILLED:"STAR_FILLED",
STAR_BORDER:"STAR_BORDER",STAR_HALF:"STAR_HALF",CLOSE:"CLOSE",CLOSE_LIGHT:"CLOSE_LIGHT",COUNTDOWN_TO_CLOSE:"COUNTDOWN_TO_CLOSE",COUNTDOWN_TO_CLOSE_DIGIT:"COUNTDOWN_TO_CLOSE_DIGIT",CHECK:"CHECK",TOPIC_EXPLORER_EXPAND_FACET:"TOPIC_EXPLORER_EXPAND_FACET",TOPIC_EXPLORER_COLLAPSE_FACET:"TOPIC_EXPLORER_COLLAPSE_FACET",CLEAR_COOKIES:"CLEAR_COOKIES",CLEAR_WATCH_HISTORY:"CLEAR_WATCH_HISTORY",CLEAR_SEARCH_HISTORY:"CLEAR_SEARCH_HISTORY",CHEVRON_RIGHT:"CHEVRON_RIGHT",CHEVRON_RIGHT_CAIRO:"CHEVRON_RIGHT_CAIRO",
CHEVRON_RIGHT_GREY:"CHEVRON_RIGHT_GREY",CHEVRON_LEFT:"CHEVRON_LEFT",SUBSCRIBE:"SUBSCRIBE",SUBSCRIBE_PLUS:"SUBSCRIBE_PLUS",GO_TO_PAGE:"GO_TO_PAGE",DO_NOT_DISTURB:"DO_NOT_DISTURB",ADD_TO_LIBRARY:"ADD_TO_LIBRARY",REMOVE_FROM_LIBRARY:"REMOVE_FROM_LIBRARY",UP_ARROW:"UP_ARROW",DOWN_ARROW:"DOWN_ARROW",DOWN_ARROW_OUTLINE:"DOWN_ARROW_OUTLINE",EMPTY_STATE_CREATE_VIDEO:"EMPTY_STATE_CREATE_VIDEO",EMPTY_STATE_ORGANIZE_CHANNEL:"EMPTY_STATE_ORGANIZE_CHANNEL",EMPTY_STATE_NO_CONTENT:"EMPTY_STATE_NO_CONTENT",EMPTY_STATE_PRIVATE_CONTENT:"EMPTY_STATE_PRIVATE_CONTENT",
BUY_DATA:"BUY_DATA",SHOPPING_CART:"SHOPPING_CART",ARROW_FLIP:"ARROW_FLIP",RESTORE:"RESTORE",ARROW_DIAGONAL:"ARROW_DIAGONAL",CONSENT_SHIELD:"CONSENT_SHIELD",COMMENT:"COMMENT",START_DVR:"START_DVR",STOP_DVR:"STOP_DVR",CHAT:"CHAT",CHAT_OFF:"CHAT_OFF",CHAT_BUBBLE:"CHAT_BUBBLE",CHAT_BUBBLE_LIGHT:"CHAT_BUBBLE_LIGHT",CHAT_BUBBLE_OFF:"CHAT_BUBBLE_OFF",CHAT_SPARK:"CHAT_SPARK",CHAT_SPONSORED:"CHAT_SPONSORED",VOICE_CHAT:"VOICE_CHAT",SPONSORSHIP_STAR:"SPONSORSHIP_STAR",SPONSORSHIPS:"SPONSORSHIPS",SPONSORSHIPS_NO_BG:"SPONSORSHIPS_NO_BG",
PLAY_ARROW:"PLAY_ARROW",PLAY_ARROW_OUTLINED:"PLAY_ARROW_OUTLINED",PLAY_ARROW_CIRCLE:"PLAY_ARROW_CIRCLE",PLAY_CIRCLE:"PLAY_CIRCLE",PLAY_ARROW_OVERLAY:"PLAY_ARROW_OVERLAY",PLAY_OUTLINED:"PLAY_OUTLINED",CHECK_CIRCLE:"CHECK_CIRCLE",CHECK_CIRCLE_BLUE:"CHECK_CIRCLE_BLUE",CHECK_CIRCLE_OUTLINE:"CHECK_CIRCLE_OUTLINE",CHECK_CIRCLE_THICK:"CHECK_CIRCLE_THICK",CHECK_CIRCLE_FILLED:"CHECK_CIRCLE_FILLED",COPY:"COPY",QUEUE_PLAY_NEXT:"QUEUE_PLAY_NEXT",QUEUE_PLAY_LAST:"QUEUE_PLAY_LAST",QUEUE_MUSIC:"QUEUE_MUSIC",CARDBOARD:"CARDBOARD",
PLANNER_REVIEW:"PLANNER_REVIEW",MORE_VERT:"MORE_VERT",MORE_VERT_BOLD:"MORE_VERT_BOLD",MORE_HORIZ_LIGHT:"MORE_HORIZ_LIGHT",MORE_HORIZ:"MORE_HORIZ",ANDROID_PHONE:"ANDROID_PHONE",ADD:"ADD",ADD_BOLD:"ADD_BOLD",ADD_SMALL:"ADD_SMALL",EXIT_APP:"EXIT_APP",IM_FEELING_LUCKY:"IM_FEELING_LUCKY",PUBLIC:"PUBLIC",MESSAGE:"MESSAGE",MOBILE_LANDSCAPE:"MOBILE_LANDSCAPE",MOBILE_PORTRAIT:"MOBILE_PORTRAIT",STAY_CURRENT_LANDSCAPE:"STAY_CURRENT_LANDSCAPE",STAY_CURRENT_PORTRAIT:"STAY_CURRENT_PORTRAIT",BUILD:"BUILD",INPUT_COMPONENT:"INPUT_COMPONENT",
DOGFOOD:"DOGFOOD",KEEP:"KEEP",KEEP_OFF:"KEEP_OFF",DASHBOARD:"DASHBOARD",SPORTS:"SPORTS",SUBTITLES:"SUBTITLES",QUESTION_ANSWER:"QUESTION_ANSWER",IMPORT_CONTACTS:"IMPORT_CONTACTS",VIDEO_CALL:"VIDEO_CALL",VIDEO_CAMERA:"VIDEO_CAMERA",VIDEO_CAMERA_DISABLED:"VIDEO_CAMERA_DISABLED",VIDEO_CAMERA_SWITCH_LIGHT:"VIDEO_CAMERA_SWITCH_LIGHT",BACK_LIGHT:"BACK_LIGHT",FILTER_EFFECT_LIGHT:"FILTER_EFFECT_LIGHT",MICROPHONE_ON:"MICROPHONE_ON",MICROPHONE_OFF:"MICROPHONE_OFF",FLASH_ON:"FLASH_ON",FLASH_OFF:"FLASH_OFF",LINK:"LINK",
LIVE_UNLISTED:"LIVE_UNLISTED",PAYMENT:"PAYMENT",ADD_CIRCLE:"ADD_CIRCLE",SMARTPHONE:"SMARTPHONE",SCREEN_LOCK_PORTRAIT:"SCREEN_LOCK_PORTRAIT",SCREEN_LOCK_LANDSCAPE:"SCREEN_LOCK_LANDSCAPE",KIDS_REPORT_AUDIO:"KIDS_REPORT_AUDIO",KIDS_REPORT_VISUALS:"KIDS_REPORT_VISUALS",KIDS_REPORT_OTHER:"KIDS_REPORT_OTHER",KIDS_BLOCK:"KIDS_BLOCK",KIDS_BLOCK_LIGHT:"KIDS_BLOCK_LIGHT",AVATAR_ANONYMOUS:"AVATAR_ANONYMOUS",AVATAR_LOGGED_OUT:"AVATAR_LOGGED_OUT",HALLOWEEN:"HALLOWEEN",UPLOAD:"UPLOAD",MY_LOCATION:"MY_LOCATION",
MUSIC_VIDEO:"MUSIC_VIDEO",PLAYLIST_PLAY:"PLAYLIST_PLAY",ALBUM:"ALBUM",LOGGED_OUT_SUBS:"LOGGED_OUT_SUBS",LOGGED_OUT_LIBRARY:"LOGGED_OUT_LIBRARY",LOGGED_OUT_ACCOUNT:"LOGGED_OUT_ACCOUNT",FUSION_V2_FSI:"FUSION_V2_FSI",PERSON:"PERSON",PERSON_ADD:"PERSON_ADD",PERSON_ACCOUNT:"PERSON_ACCOUNT",PERSON_CIRCLE:"PERSON_CIRCLE",PERSON_MINUS:"PERSON_MINUS",PERSON_RADAR:"PERSON_RADAR",PERSON_RADAR_FILLED:"PERSON_RADAR_FILLED",PERSON_SETTING:"PERSON_SETTING",MOVIES:"MOVIES",CLAPPERBOARD:"CLAPPERBOARD",CLAPPERBOARD_CAIRO:"CLAPPERBOARD_CAIRO",
MOVIES_BLUE:"MOVIES_BLUE",ROTTEN_TOMATOES_FRESH:"ROTTEN_TOMATOES_FRESH",ROTTEN_TOMATOES_SPLAT:"ROTTEN_TOMATOES_SPLAT",ROTTEN_TOMATOES_CERTIFIED:"ROTTEN_TOMATOES_CERTIFIED",WINTER:"WINTER",HOURGLASS:"HOURGLASS",REMOVE_CIRCLE:"REMOVE_CIRCLE",YOUTUBE_RED_ORIGINALS:"YOUTUBE_RED_ORIGINALS",VIDEO_YOUTUBE_RED:"VIDEO_YOUTUBE_RED",ACCESS_TIME:"ACCESS_TIME",ERROR_OUTLINE:"ERROR_OUTLINE",ERROR_WHITE:"ERROR_WHITE",ERROR_BLACK:"ERROR_BLACK",IMAGE:"IMAGE",NO_CONNECTION:"NO_CONNECTION",UNPLUGGED_LOGO:"UNPLUGGED_LOGO",
CREATE_VIDEO:"CREATE_VIDEO",CREATE_REEL_ITEM:"CREATE_REEL_ITEM",CREATE_LIVE_STREAM:"CREATE_LIVE_STREAM",CREATE_POST:"CREATE_POST",CREATION_ENTRY:"CREATION_ENTRY",CREATION_ENTRY_V2:"CREATION_ENTRY_V2",KIDS_GAMING:"KIDS_GAMING",YOUTUBE_MUSIC_BUTTON:"YOUTUBE_MUSIC_BUTTON",YOUTUBE_MUSIC_BUTTON_RED:"YOUTUBE_MUSIC_BUTTON_RED",YOUTUBE_MUSIC_BUTTON_RINGO:"YOUTUBE_MUSIC_BUTTON_RINGO",YOUTUBE_RED_ORIGINALS_BUTTON:"YOUTUBE_RED_ORIGINALS_BUTTON",YOUTUBE_RED_ORIGINALS_BUTTON_RED:"YOUTUBE_RED_ORIGINALS_BUTTON_RED",
EXIT_TO_APP:"EXIT_TO_APP",FIRST_PAGE:"FIRST_PAGE",LAST_PAGE:"LAST_PAGE",TIMER:"TIMER",TRANSFER_FINISHED:"TRANSFER_FINISHED",TRANSFER_SYNC:"TRANSFER_SYNC",TRANSLATE:"TRANSLATE",AV_TIMER:"AV_TIMER",SUBS_ZERO_STATE:"SUBS_ZERO_STATE",KEYBOARD:"KEYBOARD",KEYBOARD_OUTLINE:"KEYBOARD_OUTLINE",APP_INSTALL:"APP_INSTALL",POLL:"POLL",REDO:"REDO",BLOCK:"BLOCK",ADD_VIDEO_LINK:"ADD_VIDEO_LINK",RADIO_BUTTON_UNCHECKED:"RADIO_BUTTON_UNCHECKED",PLACE:"PLACE",PIVOT_HOME:"PIVOT_HOME",PIVOT_HOME_GREY:"PIVOT_HOME_GREY",
PIVOT_TRENDING:"PIVOT_TRENDING",PIVOT_REWIND:"PIVOT_REWIND",PIVOT_SUBSCRIPTIONS:"PIVOT_SUBSCRIPTIONS",PIVOT_SHARED:"PIVOT_SHARED",PIVOT_LIBRARY:"PIVOT_LIBRARY",PIVOT_ACCOUNT:"PIVOT_ACCOUNT",KIDS_READING:"KIDS_READING",PIVOT_PREMIER:"PIVOT_PREMIER",AUDIOTRACK:"AUDIOTRACK",STICKER_LIGHT:"STICKER_LIGHT",STICKER_EMOTICON:"STICKER_EMOTICON",STARS:"STARS",SCISSORS:"SCISSORS",MUSIC_SCISSORS:"MUSIC_SCISSORS",TAG_FACES:"TAG_FACES",GROUP:"GROUP",EMPTY_STATE_WATCH_LATER:"EMPTY_STATE_WATCH_LATER",SLOW_MOTION_VIDEO:"SLOW_MOTION_VIDEO",
ARROW_FORWARD:"ARROW_FORWARD",ARROW_BACK:"ARROW_BACK",DARK_THEME:"DARK_THEME",DARK_THEME_LARGE:"DARK_THEME_LARGE",VISIBILITY:"VISIBILITY",VISIBILITY_OFF:"VISIBILITY_OFF",MORE_LIKE_THIS:"MORE_LIKE_THIS",CAMERA_ALT:"CAMERA_ALT",ADD_PHOTO_ALTERNATE:"ADD_PHOTO_ALTERNATE",NOT_INTERESTED:"NOT_INTERESTED",APPS:"APPS",YOUTUBE_ROUND:"YOUTUBE_ROUND",OUTLINE_YOUTUBE_ROUND:"OUTLINE_YOUTUBE_ROUND",YOUTUBE_KIDS_ROUND:"YOUTUBE_KIDS_ROUND",YOUTUBE_MUSIC:"YOUTUBE_MUSIC",YOUTUBE_MUSIC_FILLED:"YOUTUBE_MUSIC_FILLED",
YOUTUBE_MUSIC_MONOCHROME:"YOUTUBE_MUSIC_MONOCHROME",YOUTUBE_MUSIC_MONOCHROME_CAIRO:"YOUTUBE_MUSIC_MONOCHROME_CAIRO",UNPLUGGED_BELL_FOLLOW_ENABLED:"UNPLUGGED_BELL_FOLLOW_ENABLED",UNPLUGGED_BELL_FOLLOW_DISABLED:"UNPLUGGED_BELL_FOLLOW_DISABLED",UNPLUGGED_SPORTS:"UNPLUGGED_SPORTS",UNPLUGGED_LIVE_GUIDE:"UNPLUGGED_LIVE_GUIDE",UNPLUGGED_LIVE_GUIDE_FILLED:"UNPLUGGED_LIVE_GUIDE_FILLED",SUBSCRIPTIONS_FILLED:"SUBSCRIPTIONS_FILLED",VISIBILITY_FILLED:"VISIBILITY_FILLED",LOCATION_FILLED:"LOCATION_FILLED",UNPLUGGED_DARK_THEME:"UNPLUGGED_DARK_THEME",
BRIGHTNESS_FIVE:"BRIGHTNESS_FIVE",BRIGHTNESS_FOUR:"BRIGHTNESS_FOUR",UNPLUGGED_NETWORKS:"UNPLUGGED_NETWORKS",UNPLUGGED_EPISODES:"UNPLUGGED_EPISODES",UNPLUGGED_MORE_TO_WATCH:"UNPLUGGED_MORE_TO_WATCH",UNPLUGGED_STORE:"UNPLUGGED_STORE",CONVERSATIONS:"CONVERSATIONS",EMPTY_SEARCH:"EMPTY_SEARCH",CHECK_BOX:"CHECK_BOX",CHECK_BOX_OUTLINE_BLANK:"CHECK_BOX_OUTLINE_BLANK",CHECK_BOX_BAR:"CHECK_BOX_BAR",SKIP_NEXT:"SKIP_NEXT",SKIP_NEXT_NEW:"SKIP_NEXT_NEW",SKIP_PREVIOUS:"SKIP_PREVIOUS",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",
SOUND:"SOUND",AUTOPLAY:"AUTOPLAY",CONTRAST:"CONTRAST",VOLUME_MUTE:"VOLUME_MUTE",VOLUME_OFF:"VOLUME_OFF",VOLUME_UP:"VOLUME_UP",VOLUME_DOWN:"VOLUME_DOWN",MY_VIDEOS_ZERO_STATE:"MY_VIDEOS_ZERO_STATE",BACKSTAGE_ARTWORK:"BACKSTAGE_ARTWORK",LIBRARY_MUSIC:"LIBRARY_MUSIC",LIBRARY_ADD:"LIBRARY_ADD",LIBRARY_IMAGE:"LIBRARY_IMAGE",LIBRARY_REMOVE:"LIBRARY_REMOVE",LIBRARY_OUTLINE:"LIBRARY_OUTLINE",LIBRARY_SAVED:"LIBRARY_SAVED",WATCH_HISTORY_PAUSED:"WATCH_HISTORY_PAUSED",IMPROVE_YOUTUBE:"IMPROVE_YOUTUBE",TV:"TV",
TV_OFF:"TV_OFF",SAVE_ALT:"SAVE_ALT",DOWNLOADS_PAGE_EMPTY:"DOWNLOADS_PAGE_EMPTY",ACCOUNT_LINKED:"ACCOUNT_LINKED",ACCOUNT_UNLINKED:"ACCOUNT_UNLINKED",ACCOUNT_SOME_LINKED:"ACCOUNT_SOME_LINKED",CREATOR_STUDIO_NO_COMMENTS:"CREATOR_STUDIO_NO_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS:"CREATOR_STUDIO_NO_HELD_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS_V2:"CREATOR_STUDIO_NO_HELD_COMMENTS_V2",CREATOR_STUDIO_NO_SEARCH_MATCH:"CREATOR_STUDIO_NO_SEARCH_MATCH",CREATOR_STUDIO_NO_SEARCH_MATCH_V2:"CREATOR_STUDIO_NO_SEARCH_MATCH_V2",
CREATOR_STUDIO_ERROR_ON_LOAD:"CREATOR_STUDIO_ERROR_ON_LOAD",CREATOR_STUDIO_ERROR_ON_LOAD_V2:"CREATOR_STUDIO_ERROR_ON_LOAD_V2",VIDEO_LIBRARY_WHITE:"VIDEO_LIBRARY_WHITE",PRODUCT_SHOP:"PRODUCT_SHOP",PRODUCT_HOTEL:"PRODUCT_HOTEL",PRODUCT_FLIGHT:"PRODUCT_FLIGHT",PLAY_ARROW_BLACK:"PLAY_ARROW_BLACK",HIGHLIGHT_OFF:"HIGHLIGHT_OFF",CREATION_UPLOAD:"CREATION_UPLOAD",CREATION_UPLOAD_RED:"CREATION_UPLOAD_RED",CREATION_LIVE:"CREATION_LIVE",CREATION_POST:"CREATION_POST",GOOGLE:"GOOGLE",PAUSE:"PAUSE",PLAY_DISABLED:"PLAY_DISABLED",
INCOGNITO_CIRCLE:"INCOGNITO_CIRCLE",INCOGNITO_CAIRO:"INCOGNITO_CAIRO",CREATE:"CREATE",CREST:"CREST",EQUALIZER:"EQUALIZER",NOW_PLAYING_EQUALIZER:"NOW_PLAYING_EQUALIZER",WHATS_HOT:"WHATS_HOT",ADD_MODERATOR:"ADD_MODERATOR",REMOVE_MODERATOR:"REMOVE_MODERATOR",HELP_OUTLINE:"HELP_OUTLINE",HELP_FILLED:"HELP_FILLED",OFFICIAL_ARTIST_BADGE:"OFFICIAL_ARTIST_BADGE",DONE_ALL:"DONE_ALL",REMOVE_DONE:"REMOVE_DONE",SUPERVISOR_ACCOUNT:"SUPERVISOR_ACCOUNT",REELS_ZERO_STATE:"REELS_ZERO_STATE",SPOTLIGHT:"SPOTLIGHT",FOLDER:"FOLDER",
TUNE:"TUNE",LOCATION_PIN:"LOCATION_PIN",MAKING:"MAKING",SOCCER:"SOCCER",CURATING_MODE_COLLECTIONS:"CURATING_MODE_COLLECTIONS",APPROVED_FOR_YOU:"APPROVED_FOR_YOU",SHARED_BY_PARENTS:"SHARED_BY_PARENTS",KIDS_WATCH_IT_AGAIN:"KIDS_WATCH_IT_AGAIN",KIDS_SPORTS:"KIDS_SPORTS",PLAY_NEXT:"PLAY_NEXT",BREAKING_NEWS:"BREAKING_NEWS",BREAKING_NEWS_ALT_1:"BREAKING_NEWS_ALT_1",DRAG_HANDLE:"DRAG_HANDLE",LOCK_OPEN:"LOCK_OPEN",ACCOUNT_ADVANCED:"ACCOUNT_ADVANCED",ACCOUNT_PLAYBACK:"ACCOUNT_PLAYBACK",ACCOUNT_PRIVACY:"ACCOUNT_PRIVACY",
ACCOUNT_NOTIFICATIONS:"ACCOUNT_NOTIFICATIONS",ACCOUNT_SETTINGS:"ACCOUNT_SETTINGS",ACCOUNT_SHARING:"ACCOUNT_SHARING",CHROME_ICON:"CHROME_ICON",WATCH_PARTY:"WATCH_PARTY",ARROW_DROP_UP:"ARROW_DROP_UP",ARROW_DROP_DOWN:"ARROW_DROP_DOWN",ARROW_CHART_NEUTRAL:"ARROW_CHART_NEUTRAL",BOOKMARK:"BOOKMARK",BOOKMARK_CAIRO:"BOOKMARK_CAIRO",BOOKMARK_BORDER:"BOOKMARK_BORDER",TAB_BOOKMARK:"TAB_BOOKMARK",ROTATE_LEFT:"ROTATE_LEFT",PHONE_DOWNLOAD:"PHONE_DOWNLOAD",FORUM:"FORUM",VPN_KEY:"VPN_KEY",LOCK:"LOCK",LOCK_FILLED:"LOCK_FILLED",
INSERT_CHART:"INSERT_CHART",INSERT_CHART_OUTLINED:"INSERT_CHART_OUTLINED",SHOW_MORE:"SHOW_MORE",CONTENT_CUT:"CONTENT_CUT",CONTENT_CUT_CAIRO:"CONTENT_CUT_CAIRO",CONTENT_CUT_WHITE:"CONTENT_CUT_WHITE",HEADSET:"HEADSET",YOUTUBE_AD:"YOUTUBE_AD",VOICE_REMOTE:"VOICE_REMOTE",WIFI_STATUS_BAR_ZERO:"WIFI_STATUS_BAR_ZERO",WIFI_STATUS_BAR_ONE:"WIFI_STATUS_BAR_ONE",WIFI_STATUS_BAR_THREE:"WIFI_STATUS_BAR_THREE",WIFI_STATUS_BAR_FOUR:"WIFI_STATUS_BAR_FOUR",COURSE:"COURSE",COURSE_CAIRO:"COURSE_CAIRO",COURSE_OUTLINE:"COURSE_OUTLINE",
MOBILE_SCREEN_SHARE:"MOBILE_SCREEN_SHARE",SPEAKER_NOTES:"SPEAKER_NOTES",AUTO_AWESOME:"AUTO_AWESOME",FEATURE_HIGHLIGHT:"FEATURE_HIGHLIGHT",SPONSORS_ONLY_LIVE_CHAT_MODE_ON:"SPONSORS_ONLY_LIVE_CHAT_MODE_ON",SPONSORS_ONLY_LIVE_CHAT_MODE_OFF:"SPONSORS_ONLY_LIVE_CHAT_MODE_OFF",VIDEO_YOUTUBE:"VIDEO_YOUTUBE",SYSTEM_HEADER_FOREGROUND:"SYSTEM_HEADER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND:"SYSTEM_FOOTER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND_RTL:"SYSTEM_FOOTER_FOREGROUND_RTL",SYSTEM_FOOTER_BACKGROUND:"SYSTEM_FOOTER_BACKGROUND",
LABS_HEADER:"LABS_HEADER",SEARCH_LARGE:"SEARCH_LARGE",GOOGLE_LOGO:"GOOGLE_LOGO",ZOOM_IN:"ZOOM_IN",ZOOM_OUT:"ZOOM_OUT",REELS_ADD:"REELS_ADD",SHIELD:"SHIELD",SHIELD_WITH_AVATAR:"SHIELD_WITH_AVATAR",KEYBOARD_ARROW_LEFT:"KEYBOARD_ARROW_LEFT",KEYBOARD_ARROW_RIGHT:"KEYBOARD_ARROW_RIGHT",CHECK_BOX_BLUE:"CHECK_BOX_BLUE",CHECK_BOX_OUTLINE_GREY:"CHECK_BOX_OUTLINE_GREY",WORK_OFF:"WORK_OFF",BRIGHTNESS_THREE:"BRIGHTNESS_THREE",LOCATION_ON:"LOCATION_ON",LOCATION_OFF:"LOCATION_OFF",UNDO:"UNDO",LOCAL_SHIPPING:"LOCAL_SHIPPING",
RESHARE:"RESHARE",MOBILE_FRIENDLY:"MOBILE_FRIENDLY",ENTERTAINMENT:"ENTERTAINMENT",GAMING:"GAMING",HAPPENING_NOW:"HAPPENING_NOW",KIDS_HERO:"KIDS_HERO",POWER_SETTINGS_NEW:"POWER_SETTINGS_NEW",RADIO_BUTTON_CHECKED:"RADIO_BUTTON_CHECKED",CHECK_BOX_V2:"CHECK_BOX_V2",CHECK_BOX_OUTLINE_BLANK_V2:"CHECK_BOX_OUTLINE_BLANK_V2",REELS_COMMENT:"REELS_COMMENT",REELS_COMMENT_FILL:"REELS_COMMENT_FILL",KEYBOARD_ARROW_UP:"KEYBOARD_ARROW_UP",KEYBOARD_ARROW_DOWN:"KEYBOARD_ARROW_DOWN",SUBSCRIBED:"SUBSCRIBED",SUBSCRIBED_DARK_MODE:"SUBSCRIBED_DARK_MODE",
ADD_TO_QUEUE_TAIL:"ADD_TO_QUEUE_TAIL",ADD_TO_QUEUE:"ADD_TO_QUEUE",YOUTUBE_LINKED_TV:"YOUTUBE_LINKED_TV",ARROW_DOWNWARD_ALT:"ARROW_DOWNWARD_ALT",ARROW_UPWARD_ALT:"ARROW_UPWARD_ALT",TROPHY:"TROPHY",TROPHY_CAIRO:"TROPHY_CAIRO",CLOUD_UPLOAD:"CLOUD_UPLOAD",SUBDIRECTORY_ARROW_RIGHT:"SUBDIRECTORY_ARROW_RIGHT",MY_VIDEOS:"MY_VIDEOS",MY_VIDEOS_CAIRO:"MY_VIDEOS_CAIRO",LAUNCH:"LAUNCH",PERSON_OUTLINE:"PERSON_OUTLINE",VIEWS_OUTLINE:"VIEWS_OUTLINE",EXPAND_ALL:"EXPAND_ALL",FACT_CHECK:"FACT_CHECK",RED_CARD:"RED_CARD",
YELLOW_CARD:"YELLOW_CARD",CREATION_ENTRY_UPLOAD_ICON:"CREATION_ENTRY_UPLOAD_ICON",APPLAUSE:"APPLAUSE",LENS_WHITE:"LENS_WHITE",LENS_YELLOW:"LENS_YELLOW",LENS_GREEN:"LENS_GREEN",LENS_CYAN:"LENS_CYAN",LENS_MAGENTA:"LENS_MAGENTA",LENS_RED:"LENS_RED",LENS_BLACK:"LENS_BLACK",LENS_BLUE:"LENS_BLUE",PREMIUM:"PREMIUM",PREMIUM_STANDALONE:"PREMIUM_STANDALONE",PREMIUM_STANDALONE_CAIRO:"PREMIUM_STANDALONE_CAIRO",CLARIFY:"CLARIFY",SCHEDULE:"SCHEDULE",TRAVEL:"TRAVEL",SCREEN_ROTATION:"SCREEN_ROTATION",DRAFT:"DRAFT",
BACKSPACE:"BACKSPACE",LICENSE:"LICENSE",LABEL:"LABEL",SPORTS_BASEBALL:"SPORTS_BASEBALL",SPORTS_BASKETBALL:"SPORTS_BASKETBALL",SPORTS_FOOTBALL:"SPORTS_FOOTBALL",SYNC:"SYNC",SYNC_PROBLEM:"SYNC_PROBLEM",PHONELINK:"PHONELINK",PROGRESS_ACTIVITY:"PROGRESS_ACTIVITY",REELS_VIEW_STORY:"REELS_VIEW_STORY",EARTH:"EARTH",SHOW_CHART:"SHOW_CHART",PEOPLE:"PEOPLE",PEOPLE_ALT:"PEOPLE_ALT",PEOPLE_OUTLINE:"PEOPLE_OUTLINE",PEOPLE_2:"PEOPLE_2",PEOPLE_GROUP:"PEOPLE_GROUP",PEOPLE_FILLED:"PEOPLE_FILLED",DONE:"DONE",GOOGLE_PLAY_GAMES:"GOOGLE_PLAY_GAMES",
AUTOPLAY_ON:"AUTOPLAY_ON",AUTOPLAY_OFF:"AUTOPLAY_OFF",KIDS_AUTOPLAY_ON:"KIDS_AUTOPLAY_ON",KIDS_AUTOPLAY_OFF:"KIDS_AUTOPLAY_OFF",KIDS_AUTOPLAY_LOCKED_OFF:"KIDS_AUTOPLAY_LOCKED_OFF",CALENDAR:"CALENDAR",KIDS_MOVE:"KIDS_MOVE",PROGRESS_SPINNER_GREY:"PROGRESS_SPINNER_GREY",KIDS_CAMP:"KIDS_CAMP",BAR_CHART:"BAR_CHART",POLICY:"POLICY",CREATION_TAB:"CREATION_TAB",CREATION_TAB_LARGE:"CREATION_TAB_LARGE",CREATION_TAB_LARGE_CAIRO:"CREATION_TAB_LARGE_CAIRO",ADD_CIRCLE_OUTLINE:"ADD_CIRCLE_OUTLINE",REMOVE_CIRCLE_OUTLINE:"REMOVE_CIRCLE_OUTLINE",
COLLECTIONS:"COLLECTIONS",FORWARD_10:"FORWARD_10",REPLAY_10:"REPLAY_10",MUSIC_NEW_RELEASE:"MUSIC_NEW_RELEASE",PROMPTED_SIGN_IN:"PROMPTED_SIGN_IN",CAMERA_REMIX:"CAMERA_REMIX",SUBJECT:"SUBJECT",FIND_IN_PAGE:"FIND_IN_PAGE",CREATE_VIDEO_NEW:"CREATE_VIDEO_NEW",GO_LIVE:"GO_LIVE",ADD_STORY:"ADD_STORY",CREATE_POST_NEW:"CREATE_POST_NEW",FACE_VERY_UPSET:"FACE_VERY_UPSET",FACE_VERY_SAD:"FACE_VERY_SAD",FACE_SAD:"FACE_SAD",FACE_MEH:"FACE_MEH",FACE_HAPPY:"FACE_HAPPY",FACE_HAPPY_OUTLINE:"FACE_HAPPY_OUTLINE",FACE_VERY_HAPPY:"FACE_VERY_HAPPY",
FACE_FILLED_HAPPY:"FACE_FILLED_HAPPY",FACE_FILLED_UNHAPPY:"FACE_FILLED_UNHAPPY",FACE_FILLED_VERY_HAPPY:"FACE_FILLED_VERY_HAPPY",FACE_FILLED_MEH:"FACE_FILLED_MEH",FACE_FILLED_SAD:"FACE_FILLED_SAD",FACE_OUTLINED_HAPPY:"FACE_OUTLINED_HAPPY",FACE_OUTLINED_UNHAPPY:"FACE_OUTLINED_UNHAPPY",FACE_OUTLINED_VERY_HAPPY:"FACE_OUTLINED_VERY_HAPPY",FACE_OUTLINED_MEH:"FACE_OUTLINED_MEH",FACE_OUTLINED_SAD:"FACE_OUTLINED_SAD",FACE_OUTLINED_ACTIVE_HAPPY:"FACE_OUTLINED_ACTIVE_HAPPY",FACE_OUTLINED_ACTIVE_UNHAPPY:"FACE_OUTLINED_ACTIVE_UNHAPPY",
FACE_OUTLINED_ACTIVE_VERY_HAPPY:"FACE_OUTLINED_ACTIVE_VERY_HAPPY",FACE_OUTLINED_ACTIVE_MEH:"FACE_OUTLINED_ACTIVE_MEH",FACE_OUTLINED_ACTIVE_SAD:"FACE_OUTLINED_ACTIVE_SAD",OUTLINE_MUSIC_VIDEO:"OUTLINE_MUSIC_VIDEO",OUTLINE_HEADSET:"OUTLINE_HEADSET",OUTLINE_YOUTUBE_MUSIC:"OUTLINE_YOUTUBE_MUSIC",OUTLINE_YOUTUBE_IMPROVE_TV:"OUTLINE_YOUTUBE_IMPROVE_TV",OUTLINE_BAG:"OUTLINE_BAG",OUTLINE_MOBILE_DOWNLOAD:"OUTLINE_MOBILE_DOWNLOAD",HASHTAG_LANDING_PAGE_EMPTY:"HASHTAG_LANDING_PAGE_EMPTY",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE",
HASHTAG_LANDING_PAGE_ERROR:"HASHTAG_LANDING_PAGE_ERROR",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE",TRENDING_DOWN:"TRENDING_DOWN",EXPAND_MORE:"EXPAND_MORE",OUTLINE_CAMERA_20:"OUTLINE_CAMERA_20",OUTLINE_CAMERA_24:"OUTLINE_CAMERA_24",G_TRANSLATE:"G_TRANSLATE",SHOPPING_BAG:"SHOPPING_BAG",SHOPPING_BAG_CAIRO:"SHOPPING_BAG_CAIRO",CAKE:"CAKE",CAMPAIGN:"CAMPAIGN",VIDEOGAME_ASSET:"VIDEOGAME_ASSET",GIF:"GIF",INSERT_PHOTO:"INSERT_PHOTO",LOCAL_MALL:"LOCAL_MALL",COLOR_LENS:"COLOR_LENS",
LOCK_CLOCK:"LOCK_CLOCK",SYSTEM_UPDATE:"SYSTEM_UPDATE",ALL_INCLUSIVE:"ALL_INCLUSIVE",VIDEO_SETTINGS:"VIDEO_SETTINGS",WALLPAPER:"WALLPAPER",GROUPS:"GROUPS",MONEY_OFF:"MONEY_OFF",GAMEPAD:"GAMEPAD",PLAYLISTS_KIDS_RESTRICT_ACCESS:"PLAYLISTS_KIDS_RESTRICT_ACCESS",LIVE_CREATION_RESTRICT_ACCESS:"LIVE_CREATION_RESTRICT_ACCESS",LIVE_SAFEGUARD_EDUCATION:"LIVE_SAFEGUARD_EDUCATION",LIVE_COSTREAM_CREATOR_EDUCATION:"LIVE_COSTREAM_CREATOR_EDUCATION",ARTICLE:"ARTICLE",ARTICLE_ALERT:"ARTICLE_ALERT",ARTICLE_CHECK:"ARTICLE_CHECK",
ARTICLE_CLARIFY:"ARTICLE_CLARIFY",FAST_REWIND:"FAST_REWIND",ALIGN_LEFT:"ALIGN_LEFT",BLACK_JOY:"BLACK_JOY",CATEGORY:"CATEGORY",DESKTOP:"DESKTOP",GOOGLE_LENS:"GOOGLE_LENS",GOOGLE_LENS_CAMERA:"GOOGLE_LENS_CAMERA",INSIGHTS:"INSIGHTS",LIVE_BADGE:"LIVE_BADGE",OUTLINE_ADJUST:"OUTLINE_ADJUST",OUTLINE_LESS_THAN_4:"OUTLINE_LESS_THAN_4",OUTLINE_GREATER_THAN_20:"OUTLINE_GREATER_THAN_20",OUTLINE_CLOCK_HALF_CIRCLE:"OUTLINE_CLOCK_HALF_CIRCLE",OUTLINE_DASHBOARD_PLUS:"OUTLINE_DASHBOARD_PLUS",OUTLINE_RADAR_LIVE:"OUTLINE_RADAR_LIVE",
WAVEFORM:"WAVEFORM",GLOBE:"GLOBE",SUPER_STORE:"SUPER_STORE",MEMBERSHIPS:"MEMBERSHIPS",MEMBERSHIPS_FILLED:"MEMBERSHIPS_FILLED",MONEY_HAND:"MONEY_HAND",YT_FILL_DOWNLOAD_24:"YT_FILL_DOWNLOAD_24",YT_FILL_OPEN_NEW_24:"YT_FILL_OPEN_NEW_24",YT_OUTLINE_CHEVRON_EXPAND_24:"YT_OUTLINE_CHEVRON_EXPAND_24",YT_OUTLINE_CHEVRON_DOWN_24:"YT_OUTLINE_CHEVRON_DOWN_24",YT_OUTLINE_ARROW_REPEAT_1_24:"YT_OUTLINE_ARROW_REPEAT_1_24",YT_FILL_ARROW_REPEAT_1_24:"YT_FILL_ARROW_REPEAT_1_24",HEALTH_AND_SAFETY:"HEALTH_AND_SAFETY",
YT_FILL_YOUTUBE_MUSIC_24:"YT_FILL_YOUTUBE_MUSIC_24",YT_FILL_YOUTUBE_MUSIC_36:"YT_FILL_YOUTUBE_MUSIC_36",OUTLINE_TRASH_CAN:"OUTLINE_TRASH_CAN",OUTLINE_PENCIL:"OUTLINE_PENCIL",OUTLINE_ALERT_CIRCLE:"OUTLINE_ALERT_CIRCLE",OUTLINE_ALERT_TRIANGLE:"OUTLINE_ALERT_TRIANGLE",OUTLINE_OPEN_NEW:"OUTLINE_OPEN_NEW",LIST:"LIST",ARROW_CIRCLE:"ARROW_CIRCLE",EXPAND_LESS:"EXPAND_LESS",YT_OUTLINE_SUBSCRIPTIONS_24PT:"YT_OUTLINE_SUBSCRIPTIONS_24PT",OUTLINE_ADD:"OUTLINE_ADD",MEDAL:"MEDAL",MULTIVIEW:"MULTIVIEW",GIFT:"GIFT",
OUTLINE_GIFT:"OUTLINE_GIFT",OUTLINE_YOUTUBE_SHORTS_PLUS:"OUTLINE_YOUTUBE_SHORTS_PLUS",OUTLINE_YOUTUBE_LINKED_TV:"OUTLINE_YOUTUBE_LINKED_TV",NERD_STATS:"NERD_STATS",YT_OUTLINE_YOUTUBE_MUSIC_24:"YT_OUTLINE_YOUTUBE_MUSIC_24",YT_OUTLINE_MUSIC_24:"YT_OUTLINE_MUSIC_24",YT_OUTLINE_RATING_UP_24:"YT_OUTLINE_RATING_UP_24",YT_OUTLINE_FIRE_24:"YT_OUTLINE_FIRE_24",CREATOR_STUDIO_RED_LOGO:"CREATOR_STUDIO_RED_LOGO",UNPLUGGED_RED_LOGO:"UNPLUGGED_RED_LOGO",MUSIC_RED_LOGO:"MUSIC_RED_LOGO",KIDS_RED_LOGO:"KIDS_RED_LOGO",
LAPTOP_MOBILE:"LAPTOP_MOBILE",AUDIO_SURROUND:"AUDIO_SURROUND",FEATURED_SEASONAL_AND_GIFTS:"FEATURED_SEASONAL_AND_GIFTS",AUDIO:"AUDIO",SKIP_FORWARD_30:"SKIP_FORWARD_30",PLAY_ARROW_HALF_CIRCLE:"PLAY_ARROW_HALF_CIRCLE",VIDEO_LINK:"VIDEO_LINK",TEXT:"TEXT",SELL:"SELL",SELL_FILLED:"SELL_FILLED",YOUTUBE_STUDIO_ARROW_DOWN:"YOUTUBE_STUDIO_ARROW_DOWN",YOUTUBE_STUDIO_ARROW_UP:"YOUTUBE_STUDIO_ARROW_UP",ADMIN_PANEL_SETTINGS:"ADMIN_PANEL_SETTINGS",EXPIRE:"EXPIRE",BAR_HORIZONTAL:"BAR_HORIZONTAL",SCREEN_THEATRE:"SCREEN_THEATRE",
SCREEN_MINIPLAYER:"SCREEN_MINIPLAYER",SCREEN_DEFAULT:"SCREEN_DEFAULT",SCREEN_FULLSCREEN:"SCREEN_FULLSCREEN",LIST_QUEUE:"LIST_QUEUE",MOON_Z:"MOON_Z",MOON_Z_FILLED:"MOON_Z_FILLED",MESSAGE_BUBBLE_QUESTION:"MESSAGE_BUBBLE_QUESTION",TV_CIRCLE:"TV_CIRCLE",PANELS:"PANELS",BOX_PLACEHOLDER_LEFT_OUTLINE:"BOX_PLACEHOLDER_LEFT_OUTLINE",OUTLINE_OVERFLOW_HORIZONTAL_32:"OUTLINE_OVERFLOW_HORIZONTAL_32",OUTLINE_OVERFLOW_VERTICAL:"OUTLINE_OVERFLOW_VERTICAL",SPEAKER:"SPEAKER",SPEAKER_OFF:"SPEAKER_OFF",SPEAKER_GROUP:"SPEAKER_GROUP",
BAG:"BAG",VR:"VR",MUSIC_MUTED:"MUSIC_MUTED",GREEN_SCREEN_OFF:"GREEN_SCREEN_OFF",GREEN_SCREEN_ON:"GREEN_SCREEN_ON",LIST_PLAY_ARROW:"LIST_PLAY_ARROW",BAR_CIRCLE:"BAR_CIRCLE",QUOTATION_MARK:"QUOTATION_MARK",SPARKLE:"SPARKLE",SPARKLE_FILLED:"SPARKLE_FILLED",SPARK:"SPARK",SPARK_RADAR:"SPARK_RADAR",SPARK_SEARCH:"SPARK_SEARCH",OUTLINE_BAG_BOOKMARK:"OUTLINE_BAG_BOOKMARK",RADAR_LIVE:"RADAR_LIVE",PENCIL:"PENCIL",PRICE_TAG:"PRICE_TAG",CHEVRON_DOWN:"CHEVRON_DOWN",CHEVRON_UP:"CHEVRON_UP",SPEED_1_POINT_2X:"SPEED_1_POINT_2X",
SPEED_1_POINT_5X:"SPEED_1_POINT_5X",SPEED_1_POINT_8X:"SPEED_1_POINT_8X",SPEED_POINT_2X:"SPEED_POINT_2X",SPEED_POINT_5X:"SPEED_POINT_5X",SPEED_POINT_8X:"SPEED_POINT_8X",SPEED_1X:"SPEED_1X",SPEED_2X:"SPEED_2X",BROADCAST:"BROADCAST",BROADCAST_CAIRO:"BROADCAST_CAIRO",PODCAST_16:"PODCAST_16",PODCAST_ADD:"PODCAST_ADD",PODCAST_CHECK:"PODCAST_CHECK",DOLLAR_SIGN:"DOLLAR_SIGN",DOLLAR_SIGN_CONTAINER:"DOLLAR_SIGN_CONTAINER",MEET:"MEET",BRIEFCASE:"BRIEFCASE",CHECK_DOUBLE:"CHECK_DOUBLE",CHECK_DOUBLE_OFF:"CHECK_DOUBLE_OFF",
SHIELD_ADD:"SHIELD_ADD",SHIELD_OFF:"SHIELD_OFF",REMIX_FILLED:"REMIX_FILLED",EYE:"EYE",OPEN_IN_PHONE:"OPEN_IN_PHONE",OPEN_IN_PANEL:"OPEN_IN_PANEL",REPLAY_ARROW:"REPLAY_ARROW",ARROW_UNDO:"ARROW_UNDO",PERSON_CIRCLE_SLASH:"PERSON_CIRCLE_SLASH",EARTH_OUTLINE:"EARTH_OUTLINE",SLASH_CIRCLE_LEFT:"SLASH_CIRCLE_LEFT",SLASH_CIRCLE_RIGHT:"SLASH_CIRCLE_RIGHT",ARROW_PAUSE:"ARROW_PAUSE",MENU_FILTER:"MENU_FILTER",SPACE_BAR:"SPACE_BAR",CIRCLES_6:"CIRCLES_6",CELEBRATION:"CELEBRATION",CROWN:"CROWN",CROWN_FILLED:"CROWN_FILLED",
GRID:"GRID",GRID_3X3:"GRID_3X3",GRID_ASYMMETRICAL:"GRID_ASYMMETRICAL",KEEP_FILLED:"KEEP_FILLED",X_CIRCLE:"X_CIRCLE",KIDS_DOWNLOADS:"KIDS_DOWNLOADS",KIDS_MOVE_DOWNLOAD:"KIDS_MOVE_DOWNLOAD",KIDS_SUBSCRIPTIONS:"KIDS_SUBSCRIPTIONS",BRIGHTNESS:"BRIGHTNESS",BRIGHTNESS_FILLED:"BRIGHTNESS_FILLED",MAGIC_WAND:"MAGIC_WAND",MAGIC_WAND_FILLED:"MAGIC_WAND_FILLED",BOX_PENCIL:"BOX_PENCIL",MY_VIDEOS_SUPEX_ZERO_STATE:"MY_VIDEOS_SUPEX_ZERO_STATE",CREATOR_ACADEMY:"CREATOR_ACADEMY",CREATOR_ACADEMY_FILLED:"CREATOR_ACADEMY_FILLED",
CREATOR_ACADEMY_FILLED_16:"CREATOR_ACADEMY_FILLED_16",SCREEN_SWITCH:"SCREEN_SWITCH",PDF:"PDF",SHIELD_OVERFLOW:"SHIELD_OVERFLOW",ANIMALS:"ANIMALS",BOX_OPEN_CHECK:"BOX_OPEN_CHECK",PLAYABLES_LOGO:"PLAYABLES_LOGO",PLAYABLES_LOGO_CAIRO:"PLAYABLES_LOGO_CAIRO",PERSON_2:"PERSON_2",X_OCTAGON:"X_OCTAGON",PLAY_PRISM:"PLAY_PRISM",FILTER_PHOTO:"FILTER_PHOTO",MUSIC_FILLED:"MUSIC_FILLED",COURSE_FILLED:"COURSE_FILLED",TRANSCRIPT:"TRANSCRIPT",TRANSCRIPT_SEARCH:"TRANSCRIPT_SEARCH",STEM:"STEM",ARROW_CIRCLE_RIGHT:"ARROW_CIRCLE_RIGHT",
HEART_CIRCLE:"HEART_CIRCLE",RSS:"RSS",RSS_OFF:"RSS_OFF",PLAYABLES:"PLAYABLES",PERSON_MUSIC:"PERSON_MUSIC",ARROWS_ALERT:"ARROWS_ALERT",CLOCK_ARROWS_ALERT:"CLOCK_ARROWS_ALERT",CLOCK_ARROWS:"CLOCK_ARROWS",SWAP_HORIZ:"SWAP_HORIZ",MUSIC_NOTE_SYMBOL:"MUSIC_NOTE_SYMBOL",BOOK:"BOOK",DISMISS_QUEUE:"DISMISS_QUEUE",RANDOM:"RANDOM",SCREEN_LIGHT:"SCREEN_LIGHT",SINGLE_SPARKLE:"SINGLE_SPARKLE",PROMOTE:"PROMOTE",BUSINESS:"BUSINESS",TOOLBOX:"TOOLBOX",SHORTS_CREATION_COMMENT:"SHORTS_CREATION_COMMENT",SPARK_IMAGE:"SPARK_IMAGE",
SPARK_VIDEO:"SPARK_VIDEO",ALL_CHIP:"ALL_CHIP",TROPHY_CELEBRATIONS:"TROPHY_CELEBRATIONS",SPARK_EDIT:"SPARK_EDIT",MAP_OUTLINE:"MAP_OUTLINE",VOLUME_STABLE:"VOLUME_STABLE",SEARCH_PROMINENT:"SEARCH_PROMINENT",INFINITY_ICON:"INFINITY_ICON",DIRECTIONS_OUTLINE:"DIRECTIONS_OUTLINE",SHORTS_STICKER_PICKER:"SHORTS_STICKER_PICKER",SETTINGS_REMOTE:"SETTINGS_REMOTE",NEWS_STORY:"NEWS_STORY",FOOTBALL_FILLED:"FOOTBALL_FILLED",CIRCLES_OVERLAP:"CIRCLES_OVERLAP",ACCESSIBILITY:"ACCESSIBILITY",CODE:"CODE",HAND_SWIPE_LEFT:"HAND_SWIPE_LEFT",
SETTING_UPLOAD:"SETTING_UPLOAD",SETTING_HD:"SETTING_HD",STICKER:"STICKER",SUN:"SUN",MOON:"MOON",EYE_OFF:"EYE_OFF",TARGET:"TARGET",TARGET_ADD:"TARGET_ADD",STAR_SHOOTING:"STAR_SHOOTING",TEXT_BOX:"TEXT_BOX",OUTLINE_ARROW_SOLID_UP:"OUTLINE_ARROW_SOLID_UP",ARROW_SOLID_UP:"ARROW_SOLID_UP",OUTLINE_ARROW_SOLID_DOWN:"OUTLINE_ARROW_SOLID_DOWN",ARROW_SOLID_DOWN:"ARROW_SOLID_DOWN",OUTLINE_ARROW_SOLID_UP_16:"OUTLINE_ARROW_SOLID_UP_16",FILL_ARROW_SOLID_UP_16:"FILL_ARROW_SOLID_UP_16",OUTLINE_ARROW_SOLID_DOWN_16:"OUTLINE_ARROW_SOLID_DOWN_16",
FILL_ARROW_SOLID_DOWN_16:"FILL_ARROW_SOLID_DOWN_16",DIE_3:"DIE_3",POUND:"POUND",CIRCLE:"CIRCLE",CIRCLE_FILLED:"CIRCLE_FILLED",YOUTUBE_SPORTS:"YOUTUBE_SPORTS",STAR_SHOOTING_OUTLINE:"STAR_SHOOTING_OUTLINE",AUDIO_BADGE:"AUDIO_BADGE",FANTASY:"FANTASY",ENGAGEMENT:"ENGAGEMENT",HASHTAG:"HASHTAG",TEMPLATE_ADD:"TEMPLATE_ADD",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP",RUBY:"RUBY",GAME_CONSOLE_DPAD:"GAME_CONSOLE_DPAD",GAME_CONSOLE_FACE_BUTTONS:"GAME_CONSOLE_FACE_BUTTONS",SKIP_BACK_15:"SKIP_BACK_15",SKIP_FORWARD_15:"SKIP_FORWARD_15",
ARROW_CIRCLE_PLAY:"ARROW_CIRCLE_PLAY",NOTE_ADD:"NOTE_ADD",MY_AD_CENTER:"MY_AD_CENTER",MY_AD_CENTER_LOGO:"MY_AD_CENTER_LOGO",PEOPLE_NOTE:"PEOPLE_NOTE",LEARNING:"LEARNING",LEARNING_CAIRO:"LEARNING_CAIRO",IMAGE_ADD:"IMAGE_ADD",LOCATION_POINT:"LOCATION_POINT",OUTLINE_MIX_24:"OUTLINE_MIX_24",FILL_AUDIO_16:"FILL_AUDIO_16",HAND_SWIPE_RIGHT:"HAND_SWIPE_RIGHT",SCHEDULE_FANZONE:"SCHEDULE_FANZONE",PLAY_PAUSE:"PLAY_PAUSE",ARROW_DIAGONAL_UP_RIGHT:"ARROW_DIAGONAL_UP_RIGHT",ARROW_DIAGONAL_UP_RIGHT_FILLED:"ARROW_DIAGONAL_UP_RIGHT_FILLED",
LOCAL_ACTIVITY:"LOCAL_ACTIVITY",STAR_CIRCLE_RIBBON:"STAR_CIRCLE_RIBBON",STAR_CIRCLE_RIBBON_OUTLINE:"STAR_CIRCLE_RIBBON_OUTLINE",LIGHTBULB_SPARK_OUTLINE:"LIGHTBULB_SPARK_OUTLINE",SPARK_LIGHTBULB_OUTLINE:"SPARK_LIGHTBULB_OUTLINE",SPARK_LIGHTBULB_FILLED:"SPARK_LIGHTBULB_FILLED",JOURNEY:"JOURNEY",QUESTION_HEAD:"QUESTION_HEAD",TEXT_FILLED:"TEXT_FILLED"};var $J_=function(){ax.apply(this,arguments)};
_.t($J_,ax);$J_.prototype.getAssociations=function(){return[]};_.FlV=new _.q("playerInterstitialRenderer");var PID=new _.q("getKidsBlocklistPickerCommand");_.tmg=new _.q("updateKidsBlacklistEndpoint");_.yU=new _.q("likeEndpoint");var TP3,cBT,Wl8;TP3=new _.q("addChatItemAction");cBT=new _.q("removeChatItemAction");Wl8=new _.q("markChatItemAsDeletedAction");_.LlC=new _.q("setLiveChatCollapsedStateAction");var mJ4=function(){ax.apply(this,arguments)};
_.t(mJ4,ax);mJ4.prototype.getAssociations=function(){return[]};var eWs=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(eWs,_.Kj);var JB8=_.D$(eWs,[0,1,_.Uv]);var jH_=new _.q("liveChatEndpoint");var H$X=new _.q("liveChatItemContextMenuEndpoint");var i$3=new _.q("liveChatReplayEndpoint");_.RWB=new _.q("emojiPickerRenderer");var vc3=new _.q("liveChatAuthorBadgeViewModel");var Kl_=new _.q("deleteLiveChatMessageCommand");var yBq=new _.q("liveChatActionEndpoint");var UJT=new _.q("createLiveChatPollEndpoint");var sHX=new _.q("manageLiveChatUserEndpoint");var O$T=new _.q("moderateLiveChatEndpoint");_.oc3=new _.q("sendLiveChatMessageEndpoint");var QHX=new _.q("sendLiveChatVoteEndpoint");var AB4=new _.q("clearLocationCommand");var Z$_=new _.q("resolveLocationCommand");var Gog=new _.q("interactionLoggingCommandMetadata");var g8K=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(g8K,_.Kj);var MUc=function(r,f){return _.IZ(r,1,f)};var koB=[0,_.Ov];var zZE=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(zZE,_.Kj);var dfq=function(r,f){return xl(r,1,g8K,f)};zZE.prototype.JSC$9973_serializeBinary=f$R([0,_.QF,koB]);var sPq={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 BP3={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"},
qa3={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 vqw={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"};_.bnq=new _.q("logFlowLoggingEventCommand");_.rtK=new _.q("loggingContext");var uB_=new _.q("captionLanguageSelectActionCommand");var DJs=new _.q("showCaptionLanguageSelectActionCommand");var rkq=new _.q("dismissDialogEndpoint");var fVg=new _.q("hideItemSectionVideosByIdCommand");var IVs=new _.q("showMiniplayerCommand");var C0V=function(){ax.apply(this,arguments)};
_.t(C0V,ax);C0V.prototype.getAssociations=function(){return[]};var YEq=function(){ax.apply(this,arguments)};
_.t(YEq,ax);YEq.prototype.getAssociations=function(){return[]};var lVs=function(){ax.apply(this,arguments)};
_.t(lVs,ax);lVs.prototype.getAssociations=function(){return[]};var VsD=function(){ax.apply(this,arguments)};
_.t(VsD,ax);VsD.prototype.getAssociations=function(){var r=[];this.delegate.downloadsList&&r.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&r.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&r.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&r.push(this.delegate.refresh);return[].concat(_.Na(new Set(r)))};var E6_=function(){ax.apply(this,arguments)};
_.t(E6_,ax);E6_.prototype.getAssociations=function(){var r=[];this.delegate.refresh&&r.push(this.delegate.refresh);if(this.delegate.downloads)for(var f=_.E(this.delegate.downloads),I=f.next();!I.done;I=f.next())r.push.apply(r,_.Na((new SEs(I.value)).getAssociations()));return[].concat(_.Na(new Set(r)))};
var SEs=function(){Mh.apply(this,arguments)};
_.t(SEs,Mh);SEs.prototype.getAssociations=function(){var r=[];this.delegate.video&&r.push(this.delegate.video);this.delegate.playlist&&r.push(this.delegate.playlist);this.delegate.videoItem&&r.push(this.delegate.videoItem);this.delegate.playlistItem&&r.push(this.delegate.playlistItem);return[].concat(_.Na(new Set(r)))};var xr8=function(){ax.apply(this,arguments)};
_.t(xr8,ax);xr8.prototype.getAssociations=function(){var r=[];this.delegate.localImageEntities&&r.push.apply(r,_.Na(this.delegate.localImageEntities));return[].concat(_.Na(new Set(r)))};var h_V=function(){ax.apply(this,arguments)};
_.t(h_V,ax);h_V.prototype.getAssociations=function(){var r=[];this.delegate.playbackData&&r.push(this.delegate.playbackData);this.delegate.localImageEntities&&r.push.apply(r,_.Na(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&r.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Na(new Set(r)))};var wJV=function(){ax.apply(this,arguments)};
_.t(wJV,ax);wJV.prototype.getAssociations=function(){return[]};var bVT=function(){ax.apply(this,arguments)};
_.t(bVT,ax);bVT.prototype.getAssociations=function(){var r=[];this.delegate.fakeChildren&&r.push.apply(r,_.Na(this.delegate.fakeChildren));return[].concat(_.Na(new Set(r)))};var pJ4=function(){ax.apply(this,arguments)};
_.t(pJ4,ax);pJ4.prototype.getAssociations=function(){var r=[];this.delegate.video&&r.push(this.delegate.video);this.delegate.playbackData&&r.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&r.push(this.delegate.offlineVideoPolicy);return[].concat(_.Na(new Set(r)))};var n6X=function(){ax.apply(this,arguments)};
_.t(n6X,ax);n6X.prototype.getAssociations=function(){return[]};var drg=function(){ax.apply(this,arguments)};
_.t(drg,ax);drg.prototype.getAssociations=function(){var r=[];this.delegate.channelOwner&&r.push(this.delegate.channelOwner);this.delegate.videos&&r.push.apply(r,_.Na(this.delegate.videos));this.delegate.collaboratorChannels&&r.push.apply(r,_.Na(this.delegate.collaboratorChannels));this.delegate.downloadState&&r.push(this.delegate.downloadState);this.delegate.refresh&&r.push(this.delegate.refresh);return[].concat(_.Na(new Set(r)))};var z_8=function(){ax.apply(this,arguments)};
_.t(z_8,ax);z_8.prototype.getAssociations=function(){var r=[];this.delegate.video&&r.push(this.delegate.video);this.delegate.channelContributor&&r.push(this.delegate.channelContributor);return[].concat(_.Na(new Set(r)))};var MsD=function(){Mh.apply(this,arguments)};
_.t(MsD,Mh);MsD.prototype.getAssociations=function(){var r=[];this.delegate.recommendedVideoMetadata&&r.push.apply(r,_.Na((new g63(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.Na(new Set(r)))};
var g63=function(){Mh.apply(this,arguments)};
_.t(g63,Mh);g63.prototype.getAssociations=function(){var r=[];this.delegate.localImageEntities&&r.push.apply(r,_.Na(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&r.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Na(new Set(r)))};var aVg=function(){Mh.apply(this,arguments)};
_.t(aVg,Mh);aVg.prototype.getAssociations=function(){var r=[];this.delegate.playbackPosition&&r.push(this.delegate.playbackPosition);return[].concat(_.Na(new Set(r)))};var XJ_=function(){ax.apply(this,arguments)};
_.t(XJ_,ax);XJ_.prototype.getAssociations=function(){var r=[];this.delegate.owner&&r.push(this.delegate.owner);this.delegate.downloadState&&r.push(this.delegate.downloadState);this.delegate.userState&&r.push.apply(r,_.Na((new aVg(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&r.push.apply(r,_.Na((new MsD(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.Na(new Set(r)))};var Nf_=function(){ax.apply(this,arguments)};
_.t(Nf_,ax);Nf_.prototype.getAssociations=function(){var r=[];this.delegate.userChannelDetails&&r.push(this.delegate.userChannelDetails);return[].concat(_.Na(new Set(r)))};var $rg=function(){ax.apply(this,arguments)};
_.t($rg,ax);$rg.prototype.getAssociations=function(){var r=[];this.delegate.channelOwner&&r.push(this.delegate.channelOwner);this.delegate.playbackPosition&&r.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&r.push.apply(r,_.Na(this.delegate.localImageEntities));this.delegate.downloadStatus&&r.push(this.delegate.downloadStatus);return[].concat(_.Na(new Set(r)))};var M8P=new _.q("downloadsPageSmartDownloadsOptInBannerParams");var Fd4=function(){ax.apply(this,arguments)};
_.t(Fd4,ax);Fd4.prototype.getAssociations=function(){return[]};var P08=function(){ax.apply(this,arguments)};
_.t(P08,ax);P08.prototype.getAssociations=function(){return[]};var tsg=function(){ax.apply(this,arguments)};
_.t(tsg,ax);tsg.prototype.getAssociations=function(){return[]};var TfD=function(){ax.apply(this,arguments)};
_.t(TfD,ax);TfD.prototype.getAssociations=function(){return[]};var ckq=function(){ax.apply(this,arguments)};
_.t(ckq,ax);ckq.prototype.getAssociations=function(){return[]};var Wd_=function(){ax.apply(this,arguments)};
_.t(Wd_,ax);Wd_.prototype.getAssociations=function(){return[]};var LdV=function(){ax.apply(this,arguments)};
_.t(LdV,ax);LdV.prototype.getAssociations=function(){return[]};var mrq=function(){ax.apply(this,arguments)};
_.t(mrq,ax);mrq.prototype.getAssociations=function(){return[]};var Tk=new _.q("dislikeButtonViewModel");var tv=new _.q("likeButtonViewModel");var e_s=new _.q("videoSummaryContentViewModel");var C$P=new _.q("videoSummaryParagraphViewModel");var JkD=new _.q("changeTimelyActionVisibilityCommand");var jjV=new _.q("hideEngagementPanelEndpoint");var HVV=new _.q("refreshPanelEndpoint");var iVC=new _.q("scrollToSectionEndpoint");var R_g=new _.q("seekToVideoTimestampCommand");_.Wa=new _.q("showEngagementPanelEndpoint");var v63=new _.q("showTransientPlayerScrimOverlayCommand");var KdC=new _.q("toggleEngagementPanelCommand");_.ykB=new _.q("createBroadcastCommand");var Urs=new _.q("metadataUpdateCommand");var sj3=function(){ax.apply(this,arguments)};
_.t(sj3,ax);sj3.prototype.getAssociations=function(){return[]};var OVV=function(){ax.apply(this,arguments)};
_.t(OVV,ax);OVV.prototype.getAssociations=function(){return[]};var o6s=function(){ax.apply(this,arguments)};
_.t(o6s,ax);o6s.prototype.getAssociations=function(){return[]};_.Qj4=new _.q("merchandiseShelfRenderer");var Akg=new _.q("gridMovieRenderer");_.ZV_=new _.q("movieRenderer");var G9s=function(){ax.apply(this,arguments)};
_.t(G9s,ax);G9s.prototype.getAssociations=function(){var r=[];this.delegate.trackDownloadMetadatas&&r.push.apply(r,_.Na(this.delegate.trackDownloadMetadatas));return[].concat(_.Na(new Set(r)))};var k9_=function(){ax.apply(this,arguments)};
_.t(k9_,ax);
k9_.prototype.getAssociations=function(){var r=[];this.delegate.downloadedTracks&&r.push.apply(r,_.Na(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&r.push.apply(r,_.Na(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&r.push.apply(r,_.Na(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&r.push.apply(r,_.Na(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&r.push.apply(r,_.Na(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
r.push.apply(r,_.Na(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&r.push.apply(r,_.Na(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&r.push.apply(r,_.Na(this.delegate.metadataOnlyTracks));return[].concat(_.Na(new Set(r)))};var BfC=function(){ax.apply(this,arguments)};
_.t(BfC,ax);BfC.prototype.getAssociations=function(){var r=[];this.delegate.trackDownloadMetadatas&&r.push.apply(r,_.Na(this.delegate.trackDownloadMetadatas));return[].concat(_.Na(new Set(r)))};var qEV=function(){ax.apply(this,arguments)};
_.t(qEV,ax);qEV.prototype.getAssociations=function(){var r=[];this.delegate.playbackData&&r.push(this.delegate.playbackData);this.delegate.localImageEntities&&r.push.apply(r,_.Na(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&r.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Na(new Set(r)))};var uVB=function(){ax.apply(this,arguments)};
_.t(uVB,ax);
uVB.prototype.getAssociations=function(){var r=[];this.delegate.musicLibraryStatusEntity&&r.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&r.push.apply(r,_.Na(this.delegate.primaryArtists));this.delegate.details&&r.push(this.delegate.details);this.delegate.userDetails&&r.push(this.delegate.userDetails);this.delegate.tracks&&r.push.apply(r,_.Na(this.delegate.tracks));this.delegate.share&&r.push(this.delegate.share);this.delegate.downloadMetadata&&r.push(this.delegate.downloadMetadata);this.delegate.refresh&&
r.push(this.delegate.refresh);return[].concat(_.Na(new Set(r)))};
var Dr4=function(){ax.apply(this,arguments)};
_.t(Dr4,ax);Dr4.prototype.getAssociations=function(){var r=[];this.delegate.albumRelease&&r.push(this.delegate.albumRelease);this.delegate.tracks&&r.push.apply(r,_.Na(this.delegate.tracks));return[].concat(_.Na(new Set(r)))};
var rhg=function(){ax.apply(this,arguments)};
_.t(rhg,ax);rhg.prototype.getAssociations=function(){var r=[];this.delegate.albumRelease&&r.push(this.delegate.albumRelease);return[].concat(_.Na(new Set(r)))};var fiV=function(){ax.apply(this,arguments)};
_.t(fiV,ax);fiV.prototype.getAssociations=function(){var r=[];this.delegate.details&&r.push(this.delegate.details);this.delegate.userDetails&&r.push(this.delegate.userDetails);return[].concat(_.Na(new Set(r)))};
var Ii4=function(){ax.apply(this,arguments)};
_.t(Ii4,ax);Ii4.prototype.getAssociations=function(){var r=[];this.delegate.parentArtist&&r.push(this.delegate.parentArtist);return[].concat(_.Na(new Set(r)))};
var CCg=function(){ax.apply(this,arguments)};
_.t(CCg,ax);CCg.prototype.getAssociations=function(){var r=[];this.delegate.parentArtist&&r.push(this.delegate.parentArtist);return[].concat(_.Na(new Set(r)))};var Y54=function(){ax.apply(this,arguments)};
_.t(Y54,ax);Y54.prototype.getAssociations=function(){return[]};var li4=function(){ax.apply(this,arguments)};
_.t(li4,ax);li4.prototype.getAssociations=function(){return[]};var Vr3=function(){ax.apply(this,arguments)};
_.t(Vr3,ax);
Vr3.prototype.getAssociations=function(){var r=[];this.delegate.tracks&&r.push.apply(r,_.Na(this.delegate.tracks));this.delegate.refresh&&r.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&r.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&r.push(this.delegate.details);this.delegate.downloadMetadata&&r.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&r.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&r.push(this.delegate.userDetails);this.delegate.entryCollection&&
r.push(this.delegate.entryCollection);this.delegate.share&&r.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&r.push.apply(r,_.Na((new E38(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.Na(new Set(r)))};
var E38=function(){Mh.apply(this,arguments)};
_.t(E38,Mh);E38.prototype.getAssociations=function(){var r=[];this.delegate.creatorEntity&&r.push(this.delegate.creatorEntity);return[].concat(_.Na(new Set(r)))};var S5C=function(){ax.apply(this,arguments)};
_.t(S5C,ax);S5C.prototype.getAssociations=function(){return[]};var xXD=function(){ax.apply(this,arguments)};
_.t(xXD,ax);
xXD.prototype.getAssociations=function(){var r=[];this.delegate.musicLibraryStatusEntity&&r.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&r.push.apply(r,_.Na(this.delegate.artists));this.delegate.audioModeVersion&&r.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&r.push(this.delegate.videoModeVersion);this.delegate.userDetails&&r.push(this.delegate.userDetails);this.delegate.details&&r.push(this.delegate.details);this.delegate.albumRelease&&r.push(this.delegate.albumRelease);this.delegate.share&&
r.push(this.delegate.share);this.delegate.libraryEdit&&r.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&r.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&r.push(this.delegate.playbackPosition);this.delegate.lyrics&&r.push(this.delegate.lyrics);return[].concat(_.Na(new Set(r)))};
var hm3=function(){ax.apply(this,arguments)};
_.t(hm3,ax);hm3.prototype.getAssociations=function(){var r=[];this.delegate.parentTrack&&r.push(this.delegate.parentTrack);return[].concat(_.Na(new Set(r)))};
var wKq=function(){ax.apply(this,arguments)};
_.t(wKq,ax);wKq.prototype.getAssociations=function(){var r=[];this.delegate.parentTrack&&r.push(this.delegate.parentTrack);return[].concat(_.Na(new Set(r)))};var DN=new _.q("musicResponsiveListItemRenderer");var ATu=new _.q("addToPlaylistEndpoint");var b64=new _.q("captionPickerEndpoint");var pKB=new _.q("suggestStats");var n3C=new _.q("backstageImageUploadEndpoint");var dXg=new _.q("createBackstagePostDialogEndpoint");_.zmB=new _.q("createCommentReplyDialogEndpoint");_.MrT=new _.q("updateCommentDialogEndpoint");_.g33=new _.q("updateCommentReplyDialogEndpoint");var aig=new _.q("menuEndpoint");var Kc$=new _.q("modalEndpoint");var XKC=new _.q("playlistEditorEndpoint");var N84=new _.q("copyTextEndpoint");var $XU,Fm3;$XU=new _.q("shareEndpoint");Fm3=new _.q("shareEntityEndpoint");_.PCC=new _.q("shareEntityServiceEndpoint");_.Y8q=new _.q("userFeedbackEndpoint");_.vj=new _.q("watchEndpoint");var gnu=new _.q("watchPlaylistEndpoint");var trD=new _.q("addUpcomingEventReminderEndpoint");_.tL=new _.q("getCommentsFromInboxCommand");var T8X=new _.q("notificationOptOutEndpoint");var ch_=new _.q("recordNotificationInteractionsEndpoint");var Wm3=new _.q("removeUpcomingEventReminderEndpoint");var oFu=new _.q("getDownloadActionCommand");_.Lmg=new _.q("offlineOrchestrationActionCommand");var mX4=function(){ax.apply(this,arguments)};
_.t(mX4,ax);mX4.prototype.getAssociations=function(){return[]};var em3=function(){ax.apply(this,arguments)};
_.t(em3,ax);em3.prototype.getAssociations=function(){return[]};var JhB=function(){ax.apply(this,arguments)};
_.t(JhB,ax);JhB.prototype.getAssociations=function(){return[]};var jG4=function(){ax.apply(this,arguments)};
_.t(jG4,ax);jG4.prototype.getAssociations=function(){return[]};var H68=function(){ax.apply(this,arguments)};
_.t(H68,ax);H68.prototype.getAssociations=function(){var r=[];this.delegate.transfer&&r.push(this.delegate.transfer);this.delegate.adsPlaybackData&&r.push.apply(r,_.Na(this.delegate.adsPlaybackData));this.delegate.drmLicense&&r.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&r.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&r.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Na(new Set(r)))};var i6X=function(){ax.apply(this,arguments)};
_.t(i6X,ax);i6X.prototype.getAssociations=function(){return[]};var Rmq=function(){ax.apply(this,arguments)};
_.t(Rmq,ax);Rmq.prototype.getAssociations=function(){var r=[];this.delegate.offlineVideoStreams&&r.push.apply(r,_.Na(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&r.push.apply(r,_.Na(this.delegate.captionTrack));return[].concat(_.Na(new Set(r)))};var v3_=function(){ax.apply(this,arguments)};
_.t(v3_,ax);v3_.prototype.getAssociations=function(){return[]};var KmU=new _.q("showMoreDrawerCommand");var yh_=new _.q("updateEngagementPanelContentCommand");var UX4=new _.q("getPdgBuyFlowCommand");var sG_=new _.q("liveChatPurchaseMessageEndpoint");var O6V=new _.q("openSuperStickerBuyFlowCommand");var o34=new _.q("updatePdgFeatureEnablementCommand");var QG4=function(){ax.apply(this,arguments)};
_.t(QG4,ax);QG4.prototype.getAssociations=function(){return[]};var Ahq=function(){ax.apply(this,arguments)};
_.t(Ahq,ax);Ahq.prototype.getAssociations=function(){return[]};_.Z6q=new _.q("pdgCommentChipRenderer");_.G8X=new _.q("permissionRoleBottomBarRenderer");_.k8T=new _.q("updatePermissionRoleCommand");var B8T=new _.q("prefetchWatchCommand");var q5U=new _.q("updatePlayerErrorMessageCommand");var RKP=new _.q("toggleCaptionsVisibilityCommand");_.uq8=new _.q("quickActionsViewModel");var DXC=new _.q("playerResponse");var rPX=new _.q("playlistRenderer");_.f4C=new _.q("playlistVideoListRenderer");_.TK=new _.q("playlistEditEndpoint");var I43=new _.q("createImagePollCommand");var CNV=new _.q("createQuizCommand");var YKq=new _.q("quizRenderer");var l4q=new _.q("uploadedVideoRenderer");var VZ_=new _.q("decorateMessageEndpoint");var E7D=new _.q("lpOfferCardOptionViewModel");var SKD=new _.q("sfvAudioItemPlaybackCommand");var xsX=function(){ax.apply(this,arguments)};
_.t(xsX,ax);xsX.prototype.getAssociations=function(){return[]};_.c_=new _.q("reelNonVideoContentEndpoint");_.xO=new _.q("reelWatchEndpoint");_.W_=new _.q("reelItemRenderer");_.hbq=new _.q("reelMetapanelViewModel");_.wqV=new _.q("reelNonVideoContentRenderer");_.b7T=new _.q("reelPlayerOverlayRenderer");var pq8=new _.q("shortsLockupViewModel");var n73=new _.q("sponsorButtonViewModel");var dsq=new _.q("reelItemWatchResponse");var zbB=new _.q("textBadgeRenderer");_.Ll=new _.q("buttonRenderer");_.mR=new _.q("toggleButtonRenderer");var Opc=new _.q("switchButtonViewModel");_.MZU=new _.q("confirmDialogRenderer");var g7V;g7V=new _.q("menuRenderer");_.a4q=new _.q("menuFlexibleItemRenderer");var XqC=new _.q("pollRenderer");_.NxV=new _.q("backgroundPromoRenderer");var Fiq;_.$sD=new _.q("chipCloudRenderer");Fiq=new _.q("chipCloudChipRenderer");var PN3=new _.q("dropdownRenderer");var tZg=new _.q("gridVideoRenderer");_.afw=new _.q("itemSectionRenderer");_.Tx8=new _.q("messageRenderer");var cP4=new _.q("sortFilterHeaderRenderer");_.e8=new _.q("videoRenderer");var Wi4=new _.q("resolveUrlCommandMetadata");var Li3=function(){ax.apply(this,arguments)};
_.t(Li3,ax);Li3.prototype.getAssociations=function(){return[]};_.ms4=new _.q("getAnswerCommand");_.VB=new _.q("searchEndpoint");var ebB=new _.q("genAiRichTextViewModel");var O0m=new _.q("overviewAnswerViewModel");var JPg=new _.q("addToPlaylistServiceEndpoint");var jE8=new _.q("clearSearchHistoryEndpoint");var H7q=new _.q("clearWatchHistoryEndpoint");var i7D=new _.q("webSerializedServiceEndpointExtension");_.RbV=new _.q("createCommentEndpoint");var sxB=new _.q("createCommentReplyEndpoint");var Olg=new _.q("performCommentActionEndpoint");var o$3=new _.q("updateCommentEndpoint");var Qxg=new _.q("updateCommentReplyEndpoint");_.JL=new _.q("createPlaylistServiceEndpoint");var ALD=new _.q("deletePlaylistEndpoint");var Zl_=new _.q("deleteVideoEndpoint");var QT$=new _.q("getReportFormEndpoint");var GK8=new _.q("modifyChannelNotificationPreferenceEndpoint");var wsm;_.Y4=new _.q("offlinePlaylistEndpoint");wsm={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 bLK;_.CF=new _.q("offlineVideoEndpoint");bLK={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 kKV=new _.q("pingingEndpoint");_.BaT=new _.q("selectActiveIdentityEndpoint");var qw8=new _.q("setSettingEndpoint");var t0K=new _.q("undoFeedbackEndpoint");var uDV=new _.q("unsubscribeEndpoint");_.DhV=new _.q("updatedMetadataEndpoint");var r93=function(){ax.apply(this,arguments)};
_.t(r93,ax);r93.prototype.getAssociations=function(){return[]};_.fv_=new _.q("updateLocalAppSettingCommand");var IvX=new _.q("saveImageToDeviceEndpoint");var CHX=new _.q("shareImageCommand");var YGC=new _.q("sharingProviderDataCommand");var lvs=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(lvs,_.Kj);var VN4=[0,_.oJ,-1];lvs.prototype.JSC$10172_serializeBinary=f$R(VN4);var EPD=_.rn(VN4);var SGU=new _.q("userMentionSuggestionRenderer");var xA_=new _.q("liveChatTunnelCommand");var h6V=new _.q("showSponsorshipsGiftOfferDialogCommand");var wPU=new _.q("sponsorshipsScrollableShelfViewModel");var b3g=new _.q("updateUpcomingEventReminderButtonStateCommand");var pPq=new _.q("upcomingEventReminderButtonStateRenderer");var nP3=new _.q("subscribeEndpoint");var dAX=new _.q("registerTasksCommand");var z6s=new _.q("showDialogCommand");_.wu=new _.q("showSheetCommand");var MNT=function(){ax.apply(this,arguments)};
_.t(MNT,ax);MNT.prototype.getAssociations=function(){return[]};var gPV=function(){ax.apply(this,arguments)};
_.t(gPV,ax);gPV.prototype.getAssociations=function(){return[]};_.s0=new _.q("avatarViewModel");var SLE=new _.q("badgeViewModel");_.NI=new _.q("buttonViewModel");_.j8=new _.q("chipViewModel");var av4=new _.q("contentPreviewImageViewModel");var XP_=new _.q("decoratedAvatarViewModel");var yx$=new _.q("downloadButtonViewModel");_.CSE=new _.q("engagementBarViewModel");_.Nj8=new _.q("imageBannerViewModel");var Fs$=new _.q("lockupContentMetadataRowExtension");var $A8=new _.q("lockupMetadataViewModel");_.FZU=new _.q("lockupViewModel");var PHq=new _.q("avatarStackViewModel");var tNq=function(){ax.apply(this,arguments)};
_.t(tNq,ax);tNq.prototype.getAssociations=function(){return[]};_.TjD=new _.q("pageHeaderViewModel");var m0l=new _.q("thumbnailHoverOverlayToggleActionsViewModel");_.$4=new _.q("toggleButtonViewModel");var c9g=function(){ax.apply(this,arguments)};
_.t(c9g,ax);c9g.prototype.getAssociations=function(){return[]};_.YMU=new _.q("votingViewModel");var WZg=new _.q("sectionHeaderViewModel");var LZ4=new _.q("notifyDropdownOptionSelectedCommand");var Cbw=new _.q("listViewModel");_.b6=new _.q("listItemViewModel");var mA3=new _.q("dialogHeaderViewModel");var e6T=function(){ax.apply(this,arguments)};
_.t(e6T,ax);e6T.prototype.getAssociations=function(){return[]};var J94=function(){ax.apply(this,arguments)};
_.t(J94,ax);J94.prototype.getAssociations=function(){return[]};var jaU=function(){ax.apply(this,arguments)};
_.t(jaU,ax);jaU.prototype.getAssociations=function(){return[]};_.H3D=new _.q("transcriptSubmitCaptionCorrectionCommand");var i34=function(){ax.apply(this,arguments)};
_.t(i34,ax);i34.prototype.getAssociations=function(){return[]};var TyP=new _.q("unpluggedStringRunImage");var R6V=new _.q("tabViewModel");var vPq=new _.q("tabbedViewModel");var KZs=function(){ax.apply(this,arguments)};
_.t(KZs,ax);KZs.prototype.getAssociations=function(){return[]};_.y98=new _.q("updateDescriptionAction");var UAX=new _.q("updateToggleButtonTextAction");_.sa_=new _.q("autoplaySwitchButtonRenderer");var JF;_.O3g=new _.q("multiMarkersPlayerBarRenderer");JF=new _.q("chapterRenderer");var oPq=new _.q("heatMarkerRenderer");var vmm=new _.q("heatmapRenderer");var QaV=new _.q("smartSkipPlayerScrimOverlayRenderer");var A93=new _.q("timedMarkerDecorationRenderer");var ADR=new _.q("postWebToNativeMessageCommand");var Z3_=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Z3_,_.Kj);var G$q=_.D$(Z3_,[0,_.oJ,-2]);var k$4=new _.q("whitelistEditEndpoint");var Bj3=new _.q("clearUrlParamCommand");var qG3=new _.q("commerceActionCommand");_.ugg=new _.q("getPaymentInstrumentsParamsCommand");var DAU=new _.q("getPaymentsClientTokenCommand");var rKB=new _.q("googlePaymentBillingCommand");var fG3=new _.q("googlePaymentPurchaseManagerCommand");_.IGs=new _.q("logGtmCommand");var Cg8=new _.q("updateCardItemOnClickCommand");_.Yng=new _.q("ypcPauseSubscriptionCommand");_.lGs=new _.q("ypcResumeSubscriptionCommand");var Vv8=function(){ax.apply(this,arguments)};
_.t(Vv8,ax);Vv8.prototype.getAssociations=function(){return[]};var EJg=function(){ax.apply(this,arguments)};
_.t(EJg,ax);EJg.prototype.getAssociations=function(){return[]};var Snq=function(){ax.apply(this,arguments)};
_.t(Snq,ax);Snq.prototype.getAssociations=function(){return[]};var xbq=function(){ax.apply(this,arguments)};
_.t(xbq,ax);xbq.prototype.getAssociations=function(){return[]};var hMT=function(){ax.apply(this,arguments)};
_.t(hMT,ax);hMT.prototype.getAssociations=function(){return[]};var weK=new _.q("ypcOffersEndpoint");var wDT=new _.q("cardItemRenderer"),bhU=new _.q("cardItemTextRenderer");var pDq=new _.q("commerceCartItemQuantityPickerRenderer");var nJ_=new _.q("linkCardRenderer");var KE$=new _.q("quantityIncrementerButtonViewModel");var db3=new _.q("quantityIncrementerViewModel");var zMC=new _.q("themedImageViewModel");_.Mv3=new _.q("ypcCancelRecurrenceEndpoint");var gJU=new _.q("ypcCompleteTransactionEndpoint");_.aGU=new _.q("ypcGetCartEndpoint");_.DK=new _.q("ypcGetOffersEndpoint");_.H_=new _.q("ypcHandleTransactionEndpoint");var XDT=new _.q("ypcLogWalletAnalyticDataEndpoint");_.NQ_=new _.q("ypcRedeemCodeEndpoint");var $b4=new _.q("ypcUpdateFopEndpoint");uN(qs(1),k7(4));IdC((new MessageChannel).port2);var Fg4=function(){this.register=new Map},okq=function(r,f,I){r=r+"_"+f;
iR.register.has(r)?I=iR.register.get(r):(I=I(),iR.register.set(r,I));return I},PgV=function(r){r=_.E(r.register.values());
for(var f=r.next();!f.done;f=r.next())_.bO(f.value,"ABORTED")};
Fg4.prototype.clear=function(){PgV(this);this.register.clear()};
var iR=new Fg4;var $Kq=Date.now().toString();var PlB,tv_=_.Yq.ytLoggingDocDocumentNonce_;tv_||(tv_=Ny(16),_.OH("ytLoggingDocDocumentNonce_",tv_));PlB=tv_;var JAP={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 TQg;TQg=1;_.F6=function(r){this.veData=r};
_.VH=function(r){return new _.F6({trackingParams:r})};
_.pQ=function(r,f,I,C,Y,V){var S=TQg++;return new _.F6({veType:r,veCounter:S,elementIndex:I,dataElement:f,youtubeData:C,jspbYoutubeData:Y,loggingDirectives:V})};
_.l=_.F6.prototype;
_.l.getAsJson=function(){var r={};this.veData.trackingParams!==void 0?r.trackingParams=this.veData.trackingParams:(r.veType=this.veData.veType,this.veData.veCounter!==void 0&&(r.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(r.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(r.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(r.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(r.isCounterfactual=!0);
return r};
_.l.getAsJspb=function(){var r=new SeU;this.veData.trackingParams!==void 0?r.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.eg(r,2,this.veData.veType),this.veData.veCounter!==void 0&&_.eg(r,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.eg(r,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.IZ(r,5,!0));if(this.veData.dataElement!==void 0){var f=this.veData.dataElement.getAsJspb();_.CK(r,7,f)}this.veData.youtubeData!==void 0&&_.CK(r,8,this.veData.jspbYoutubeData);
return r};
_.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};_.OH("yt_logging_screen.getRootVeType",LTB);_.OH("yt_logging_screen.getCurrentCsn",_.t1);_.OH("yt_logging_screen.getCttAuthInfo",TI);_.OH("yt_logging_screen.setCurrentScreen",_.idw);var cKg=function(){this.events=new Map},WgC=function(r){var f=[];
r=_.E(r.events.values());for(var I=r.next();!I.done;I=r.next())f.push(I.value);return f};
cKg.prototype.clear=function(){this.events.clear()};var mbg=function(){this.logTransport=new Lgs;this.loggedEventRegister=new cKg;this.unloggedEventRegister=new cKg;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10229_flushTimer=new _.kf(this.flushInterval);this.JSC$10229_flushTimer.listen("tick",this.flush,!1,this)};
mbg.prototype.flush=function(){if(this.eventsCount){var r={loggedEvents:WgC(this.loggedEventRegister),unloggedEvents:WgC(this.unloggedEventRegister)};if(_.N("export_player_version_to_ytconfig")){var f;(f=_.Lz("PLAYER_CLIENT_VERSION"))?(f=f.split("-")[0].replace(/\./g,""),f=isNaN(Number(f))?"0":f):f="";var I=_.Lz("PLAYER_CLIENT_VERSION");if(I){I=I.split("-");var C="";I.length>1&&(C=I[I.length-1]);I=NiK(C.startsWith("canary_experiment")?"canary":C.startsWith("canary_control")?"control":"none")}else I=
"CLIENT_CANARY_STATE_UNKNOWN";r.dimensions={playerClientVersion:f,playerCanaryState:I}}this.logTransport.flush(r);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10229_flushTimer.enabled&&this.JSC$10229_flushTimer.stop()}};
var eMB=function(r){Rx==null&&(Rx=new mbg);var f=Rx;var I=f.loggedEventRegister;r.dimensions=r.dimensions||{};r.dimensions.csn=_.t1()||"";var C=R0c(r.dimensions).join(";");if(r.records!=null)if(I.events.has(C)){var Y;(Y=I.events.get(C).records)==null||Y.push.apply(Y,_.Na(r.records))}else I.events.set(C,r);f.JSC$10229_flushTimer.enabled||f.JSC$10229_flushTimer.start();f.eventsCount++;f.eventsCount>=100&&f.flush()};var Lgs=function(){};
Lgs.prototype.flush=function(r,f){_.N("enable_client_sli_logging")&&_.NW("sliEventBatch",r,{sendIsolatedPayload:!!f})};var Rx;var j_3;j_3=function(r){var f=JKq;r=r===void 0?{}:r;f=f.name;var I=Odd("SUCCESS");eMB({dimensions:r,records:[{name:f,state:"SLI_STATE_END",status:I}]})};
_.QPK=function(r,f,I,C){this.name=r;this.sliId=f;this.timeoutMs=I;this.statusOnTimeout=C;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.QPK.prototype.getId=function(){return this.sliId};
_.wM=function(r,f){f=f===void 0?{}:f;r.ongoing||(r.ongoing=!0,r.dimensions=f,r.logSliId=vZg(),eMB({dimensions:r.dimensions,records:[{name:r.name,state:"SLI_STATE_START",sliId:r.logSliId}]}),r.timeoutMs>0&&(r.timeoutHandle=setTimeout(function(){_.bO(r,r.statusOnTimeout)},r.timeoutMs)))};
_.bO=function(r,f){r.ongoing&&(r.timeoutMs>0&&clearTimeout(r.timeoutHandle),r.ongoing=!1,f={dimensions:r.dimensions,records:[{name:r.name,status:Odd(f),state:"SLI_STATE_END",sliId:r.logSliId}]},iR.register.delete(r.name+"_"+r.sliId),eMB(f))};var JKq=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var Hhs=function(){ax.apply(this,arguments)};
_.t(Hhs,ax);Hhs.prototype.getAssociations=function(){return[]};var pm$=new _.q("highlightTextDecoratorColorMapExtension");var wmR=new _.q("styleRunColorMapExtension");var uZB=_.op(["data-"]),fBK={};var CIu={};var v_=function(r){this.wrappedPromise_=r===void 0?null:r;this.state_=0;this.JSC$10261_value_=null};
v_.prototype.then=function(r,f,I){return this.wrappedPromise_?this.wrappedPromise_.then(r,f,I):this.state_===1&&r?(r=r.call(I,this.JSC$10261_value_))&&typeof r.then==="function"?r:_.Kl(r):this.state_===2&&f?(r=f.call(I,this.JSC$10261_value_))&&typeof r.then==="function"?r:_.ihD(r):this};
v_.prototype.getValue=function(){return this.JSC$10261_value_};
v_.prototype.isRejected=function(){return this.state_==2};
SgC(v_);_.ihD=function(r){var f=new v_;r=r===void 0?null:r;f.state_=2;f.JSC$10261_value_=r===void 0?null:r;return f};
_.Kl=function(r){var f=new v_;r=r===void 0?null:r;f.state_=1;f.JSC$10261_value_=r===void 0?null:r;return f};var gcw="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var RM4=["load","abort","error"],yk=function(r,f,I){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10281_maxAspectRatio_=r;this.disableAnimation_=f===void 0?!1:f;this.disableExifRotation_=I===void 0?!1:I;this.JSC$10281_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10281_reject_=this.resolve_=null};
yk.prototype.transform=function(r){var f=this;this.mime_=r.type;sU(Yiq(r),this.dataUrlRead_,this.readError_,this);sU(CA4(r.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(I,C){f.resolve_=I;f.JSC$10281_reject_=C})};
yk.prototype.dataUrlRead_=function(r){this.dataUrl_=r;this.angle_!=null&&vJD(this)};
yk.prototype.exifRead_=function(r){if(this.disableExifRotation_)this.angle_=0;else{a:if(r=new DataView(r),r.byteLength<2||r.getUint16(0)!==65496)r=-2;else{for(var f=2,I=r.byteLength;f<I;){var C=r.getUint16(f),Y=r.getUint16(f+2);if(C===65505){f+=4;C=r.getUint32(f);Y=r.getUint16(f+4);if(C!==1165519206||Y!==0)break;f+=6;C=r.getUint16(f)===18761;f+=r.getUint32(f+4,C);Y=r.getUint16(f,C);f+=2;for(var V=0;V<Y;V++){if(r.getUint16(f,C)===274){f+=8;r=r.getUint16(f,C);break a}f+=12}}else if(C>>8!==255)break;
else f+=Y+2}r=-1}switch(r){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&&vJD(this)};
yk.prototype.readError_=function(){this.JSC$10281_reject_()};
var vJD=function(r){YY(r.JSC$10281_image_,RM4,r.completeTransform_,!1,r);r.JSC$10281_image_.src=_.gn(r.dataUrl_).toString();r.JSC$10281_image_.src!=M3.toString()&&r.JSC$10281_image_.src.substr(0,11)==="data:image/"||r.JSC$10281_reject_()};
yk.prototype.completeTransform_=function(){if(this.JSC$10281_image_.src!=M3.toString()){var r=_.gn(this.dataUrl_),f=this.JSC$10281_image_.naturalHeight?this.JSC$10281_image_.naturalWidth/this.JSC$10281_image_.naturalHeight:null;this.invalidAspectRatio=f>this.JSC$10281_maxAspectRatio_||f<1/this.JSC$10281_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var I=this.JSC$10281_image_.naturalWidth,C=this.JSC$10281_image_.naturalHeight,Y=f=0,V=this.JSC$10281_image_.naturalHeight?this.JSC$10281_image_.naturalWidth/
this.JSC$10281_image_.naturalHeight:null;V>this.JSC$10281_maxAspectRatio_?(I=this.JSC$10281_maxAspectRatio_*C,f=(I-this.JSC$10281_image_.naturalWidth)/2,this.cropped=!0):V<1/this.JSC$10281_maxAspectRatio_?(C=this.JSC$10281_maxAspectRatio_*I,Y=(C-this.JSC$10281_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)V=I,I=C,C=V,V=f,f=Y,Y=V;switch(this.angle_){case 90:Y-=I;break;case 180:f-=I;Y-=C;break;case 270:f-=
C}this.cropped||this.angle_%360!==0?(r=document.createElement("canvas"),r.width=I||1,r.height=C||1,this.JSC$10281_image_.naturalWidth&&this.JSC$10281_image_.naturalHeight&&(I=r.getContext("2d"),I.rotate(Math.PI/180*this.angle_),I.drawImage(this.JSC$10281_image_,f,Y,this.JSC$10281_image_.naturalWidth,this.JSC$10281_image_.naturalHeight)),this.transformedData=_.gn(r.toDataURL(this.mime_))):this.transformedData=r}else this.transformedData=r;this.resolve_(this)}};var Uw=function(r,f){_.wi.call(this,r);this.value=f};
_.t(Uw,_.wi);
var sw=function(r,f,I,C,Y,V,S){S=S===void 0?!1:S;_.zh.call(this);var h=this;this.JSC$10286_url_=r;this.channelId_=f;this.maxFileSizeMb_=I;this.JSC$10286_maxAspectRatio_=C;this.dropZoneEl_=Y;this.rejectInvalidAspectRatio_=S;this.selectButtonEl_=V;this.JSC$10286_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new Vk(this.dropZoneEl_);this.selectOverlay_=new Ew(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10286_image_=this.transfer_=null;this.handler_=new _.B8(this);_.V$(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(V,"click",function(){h.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.t(sw,_.zh);sw.prototype.disposeInternal=function(){for(var r=this.selectButtonEl_.nextSibling;r&&r.parentNode&&r.tagName=="INPUT";)r.parentNode.removeChild(r),r=this.selectButtonEl_.nextSibling;this.cancel();_.zh.prototype.disposeInternal.call(this)};
sw.prototype.uploadPromise=function(){if(this.JSC$10286_image_==null)return null;this.uploadPromise_||KgV(this);return this.uploadPromise_};
sw.prototype.cancel=function(){yKD(this);this.JSC$10286_image_=null};
var yKD=function(r){r.transfer_&&r.transfer_.cancel();r.transfer_=null;r.uploadPromise_=null;r.resolve_=null;r.JSC$10286_reject_=null},KgV=function(r){yKD(r);
r.transfer_=_.XM_(r.JSC$10286_url_,{"X-YouTube-ChannelId":r.channelId_},r.JSC$10286_image_);r.handler_.listenOnce(r.transfer_,"l",r.JSC$10288_onUploadComplete_);r.handler_.listenOnce(r.transfer_,"n",r.onUploadError_);r.transfer_.run();r.uploadPromise_=new Promise(function(f,I){r.resolve_=f;r.JSC$10286_reject_=I})};
_.l=sw.prototype;_.l.onChange_=function(r){r.files.length&&(this.JSC$10286_image_=r.files[0],this.JSC$10286_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10286_image_=null,this.dispatchEvent(new Uw("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(KgV(this),(new yk(this.JSC$10286_maxAspectRatio_)).transform(this.JSC$10286_image_).then((0,_.gL)(this.onPreview_,this),(0,_.gL)(this.onPreviewError_,this))))};
_.l.onPreview_=function(r){if(r.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10286_image_=null),this.dispatchEvent(new Uw("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;r.cropped&&this.dispatchEvent(new Uw("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new Uw("yt.comments.ImageUploadOverlay.CHANGE_EVENT",r.transformedData))};
_.l.onPreviewError_=function(){this.JSC$10286_image_=null;this.dispatchEvent(new Uw("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.l.onHover_=function(r){r.stopPropagation();r.preventDefault();if(r.type==="dragover")r=!0;else if(r.type==="dragleave")r=!1;else return;this.dispatchEvent(new Uw("yt.comments.ImageUploadOverlay.HOVER_EVENT",r))};
_.l.JSC$10288_onUploadComplete_=function(){var r=(0,_.Ja_)(this.transfer_.getResponseText());this.resolve_(r.encryptedBlobId)};
_.l.onUploadError_=function(){this.JSC$10286_reject_();yKD(this)};var Ub3=function(r){r=r||{};var f={},I={};this.url=r.url||"";this.args=r.args||_.X0.clone(f);this.assets=r.assets||{};this.attrs=r.attrs||_.X0.clone(I);this.fallback=r.fallback||null;this.fallbackMessage=r.fallbackMessage||null;this.html5=!!r.html5;this.disable=r.disable||{};this.loaded=!!r.loaded;this.messages=r.messages||{}};
Ub3.prototype.clone=function(){var r=new Ub3,f;for(f in this)if(this.hasOwnProperty(f)){var I=this[f];r[f]=_.z6(I)=="object"?_.X0.clone(I):I}return r};var s_C,OhB,oJ3,u1,AKB,Zh8,Gw3,kws,BQs,qn_,uT_,Dbq,ri4,fH4,IH_,CnT,Yf_,lHX,VpD,EnC,Sfq,xzB,hVD,w2C,bTs,p2q,nnU,dz_,zVT,DRu,MpD,gn4,aH3,X2B,NJ_,$zC,Fug,PnU,tp4,TJ4,ci3,Wu4,LuU,mz4,eV3,Ji4,jO_,HT4,iTV,RV3,vng,Kuq,yi8,UzV,sOg,OT4,Ow,onB,QOV,AiB,ZT3,GJT,kJT,BJ8,qf3,uG4,DzU,rW3,fLg,ILT,CQD,YS4,lLX,VWV,EGD,q3u,SSX,xM3,hIV,wHD,bYB,pHB,nG3,dM8,zIT,MWs,gGB,aL3,XHs,NvU,$M4,FB3,PQB,tWs,TvV,cWq,WBq,LB3,mM_,eI8,JWT;s_C=["account/accounts_list"];OhB=["acknowledge_channel_tou_strike"];oJ3=["notification/add_upcoming_event_reminder"];
_.Q_U=["att/get"];u1=["browse","music/browse","unplugged/browse"];AKB=["channel/claim_legacy_youtube_channel"];Zh8=["history/clear_search_history"];Gw3=["history/clear_watch_history"];kws=["comment/perform_comment_action"];BQs=["comment/get_comment_replies"];qn_=["ypc/commerce_action"];uT_=["backstage/create_post"];Dbq=["live/create_broadcast"];ri4=["channel/create_channel"];fH4=["comment/create_comment_reply"];IH_=["comment/create_comment"];CnT=["live_chat/create_poll"];Yf_=["playlist/create"];
lHX=["decorate_message"];VpD=["live_chat/delete_message"];EnC=["playlist/delete"];Sfq=["video/delete"];xzB=["like/dislike"];hVD=["dismissal/dismiss"];w2C=["flag/flag"];bTs=["flow"];p2q=["account/account_menu"];nnU=["playlist/get_add_to_playlist"];dz_=["get_answer"];zVT=["channel/get_channel_creation_form"];DRu=["offline/get_download_action"];MpD=["kids/get_kids_blocklist_picker"];gn4=["live_chat/get_item_context_menu"];aH3=["live_chat/get_live_chat_message_buy_flow"];X2B=["live_chat/get_live_chat_replay"];
NJ_=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];$zC=["live_chat/get_live_chat_super_sticker_buy_flow"];Fug=["notification/get_notification_menu"];PnU=["playlist/get_settings_editor"];tp4=["backstage/get_post_video_preview"];TJ4=["account/get_profile_card"];ci3=["share/get_share_panel"];Wu4=["share/get_sharing_provider_data"];LuU=["get_survey"];mz4=["notification/get_unseen_count"];eV3=["get_user_mention_suggestions"];Ji4=["get_watch"];jO_=["guide"];
HT4=["feedback"];iTV=["kids/update_blacklist"];RV3=["like/like"];vng=["live_chat/live_chat_action"];Kuq=["live_chat/manage_user"];yi8=["video_manager/metadata_update"];UzV=["live_chat/moderate"];sOg=["notification/modify_channel_preference"];OT4=["notification/opt_out"];Ow=["get_panel","get_posts_by_host_panel"];onB=["player"];QOV=["browse/edit_playlist"];AiB=["notification/record_interactions"];ZT3=["reel/reel_item_watch"];GJT=["reel/reel_watch_sequence"];kJT=["like/removelike"];BJ8=["notification/remove_upcoming_event_reminder"];
qf3=["flag/get_form"];uG4=["miniapp/report_value"];DzU=["navigation/resolve_url"];rW3=["channel/reveal_business_email"];fLg=["in_video/search"];ILT=["search","sfv/search","unplugged/search"];CQD=["live_chat/send_message"];YS4=["live_chat/send_live_chat_vote"];lLX=["account/set_setting"];VWV=["submit_caption_correction"];EGD=["subscription/subscribe"];q3u=["get_transcript"];SSX=["resolve_location","unplugged/resolve_location"];xM3=["subscription/unsubscribe"];hIV=["backstage/update_post"];wHD=["channel_edit/update_channel_page_settings"];
bYB=["comment/update_comment_reply"];pHB=["comment/update_comment"];nG3=["comment/update_comments_settings"];dM8=["creator/update_creator_channel"];zIT=["pdg/update_enablement"];MWs=["updated_metadata"];gGB=["channel_edit/validate_channel_handle"];aL3=["verify_age"];XHs=["next","unplugged/watch_next"];NvU=["whitelist/edit"];$M4=["ypc/cancel_recurrence"];FB3=["ypc/complete_transaction"];PQB=["ypc/get_cart"];tWs=["ypc/get_fix_instrument_params"];TvV=["ypc/get_offers"];cWq=["ypc/get_payment_instruments_params"];
WBq=["ypc/handle_transaction"];LB3=["ypc/log_payment_server_analytics"];mM_=["ypc/pause_subscription"];eI8=["ypc/redeem_code"];JWT=["ypc/resume_subscription"];var jNq=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,
74615,74616,122224,74617,77820,74618,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,
96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,
84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,252201,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,
253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,
24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,
17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,
145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,
93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,262801,262800,
262799,262802,262798,82039];var lm=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.OH("yt.msgs_",lm);var ox=new _.Go("ACTION_ROUTER_TOKEN");_.Qk=function(){this.autonavState_=_.N("kevlar_is_pupi_enabled")?2:mJB()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.Qk.prototype.getState=function(){return this.autonavState_};
_.Qk.prototype.pause=function(r){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=r):this.autonavState_==1&&(this.disabledAutonavPauseReason_=r)};
_.Qk.prototype.setState=function(r,f,I){f&&(this.autoplayChangedByUser=!0);f=this.autonavState_===3||r===3;this.autonavState_!=r&&(this.autonavState_=r,r!=3&&_.eWP(r==2),r=_.N("kevlar_is_pupi_enabled")?I||f:!0,_.iz.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,r,I))};
_.Qk.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.uO(_.Qk);var AL=function(){this.hasRun=!1};var Z0={},QH$=(Z0.auto_search="LATENCY_ACTION_AUTO_SEARCH",Z0.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Z0.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Z0.app_startup="LATENCY_ACTION_APP_STARTUP",Z0.browse="LATENCY_ACTION_BROWSE",Z0.cast_splash="LATENCY_ACTION_CAST_SPLASH",Z0.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Z0.channels="LATENCY_ACTION_CHANNELS",Z0.chips="LATENCY_ACTION_CHIPS",Z0.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Z0.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
Z0.editor="LATENCY_ACTION_EDITOR",Z0.embed="LATENCY_ACTION_EMBED",Z0.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Z0.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Z0.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Z0.explore="LATENCY_ACTION_EXPLORE",Z0.favorites="LATENCY_ACTION_FAVORITES",Z0.home="LATENCY_ACTION_HOME",Z0.inboarding="LATENCY_ACTION_INBOARDING",Z0.landing="LATENCY_ACTION_LANDING",Z0.library="LATENCY_ACTION_LIBRARY",Z0.live=
"LATENCY_ACTION_LIVE",Z0.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Z0.management="LATENCY_ACTION_MANAGEMENT",Z0.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Z0.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Z0.onboarding="LATENCY_ACTION_ONBOARDING",Z0.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",Z0.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Z0.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Z0.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
Z0.prebuffer="LATENCY_ACTION_PREBUFFER",Z0.prefetch="LATENCY_ACTION_PREFETCH",Z0.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Z0.profile_switcher="LATENCY_ACTION_LOGIN",Z0.projects="LATENCY_ACTION_PROJECTS",Z0.reel_watch="LATENCY_ACTION_REEL_WATCH",Z0.results="LATENCY_ACTION_RESULTS",Z0.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Z0.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Z0.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Z0.review="LATENCY_ACTION_REVIEW",Z0.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Z0.search_ui="LATENCY_ACTION_SEARCH_UI",Z0.search_suggest="LATENCY_ACTION_SUGGEST",Z0.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Z0.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Z0.seek="LATENCY_ACTION_PLAYER_SEEK",Z0.settings="LATENCY_ACTION_SETTINGS",Z0.store="LATENCY_ACTION_STORE",Z0.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Z0.tenx="LATENCY_ACTION_TENX",Z0.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Z0.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
Z0.watch="LATENCY_ACTION_WATCH",Z0.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Z0["watch,watch7"]="LATENCY_ACTION_WATCH",Z0["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Z0["watch,watch7ad"]="LATENCY_ACTION_WATCH",Z0["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Z0.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",Z0.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Z0.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Z0.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Z0.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Z0.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Z0.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Z0.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Z0);var h_U=function(r,f){gf.call(this,1,arguments);this.timer=f};
_.t(h_U,gf);var xrw=new Mol("aft-recorded",h_U);var koR=_.Yq.ytLoggingGelSequenceIdObj_||{};_.OH("ytLoggingGelSequenceIdObj_",koR);var GK=_.Yq.ytLoggingLatencyUsageStats_||{};_.OH("ytLoggingLatencyUsageStats_",GK);var k$=function(){this.cleanupJob=0},uBm=function(){k$.instance||(k$.instance=new k$);
return k$.instance};
_.l=k$.prototype;_.l.baseline=function(r,f,I){B_(this,"baseline_"+r)||_.NW("latencyActionBaselined",{clientActionNonce:r},{timestamp:f,cttAuthInfo:I})};
_.l.tick=function(r,f,I,C){B_(this,"tick_"+r+"_"+f)||_.NW("latencyActionTicked",{tickName:r,clientActionNonce:f},{timestamp:I,cttAuthInfo:C})};
_.l.info=function(r,f,I){var C=Object.keys(r).join("");B_(this,"info_"+C+"_"+f)||(r=Object.assign({},r),r.clientActionNonce=f,_.NW("latencyActionInfo",r,{cttAuthInfo:I}))};
_.l.jspbInfo=function(r,f,I){for(var C="",Y=0;Y<Cj(r).length;Y++)Cj(r)[Y]!==void 0&&(C=Y===0?C.concat(""+Y):C.concat("_"+Y));B_(this,"info_"+C+"_"+f)||(_.w5(r,2,f),f={cttAuthInfo:I},I=_.N("jspb_sparse_encoded_pivot")?new nN([{}]):new nN,_.Y1(I,7,FFT,r),BPK("latencyActionInfo",I,f))};
_.l.span=function(r,f,I){var C=Object.keys(r).join("");B_(this,"span_"+C+"_"+f)||(r.clientActionNonce=f,_.NW("latencyActionSpan",r,{cttAuthInfo:I}))};
var B_=function(r,f){GK[f]=GK[f]||{count:0};var I=GK[f];I.count++;I.time=(0,_.Ad)();r.cleanupJob||(r.cleanupJob=_.dp(_.F_,function(){var C=(0,_.Ad)(),Y;for(Y in GK)GK[Y]&&C-GK[Y].time>6E4&&delete GK[Y];r&&(r.cleanupJob=0)},5E3));
return I.count>5?(I.count===6&&Math.random()*1E5<1&&(I=new _.nf("CSI data exceeded logging limit with key",f.split("_")),f.indexOf("plev")>=0||_.t7(I)),!0):!1};var HYV,iY4;HYV=window;iY4=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.bm=HYV.performance||HYV.mozPerformance||HYV.msPerformance||HYV.webkitPerformance||new iY4;var SEP=!1,rkE=!1,wJU=(0,_.gL)(_.bm.clearResourceTimings||_.bm.webkitClearResourceTimings||_.bm.mozClearResourceTimings||_.bm.msClearResourceTimings||_.bm.oClearResourceTimings||_.n9,_.bm);var RIg=window;RIg.ytcsi&&(RIg.ytcsi.infoGel=_.gX,RIg.ytcsi.tick=_.Xc);var Fdu=function(r){gf.call(this,1,arguments);this.csn=r};
_.t(Fdu,gf);var $ju=new Mol("screen-created",Fdu),ykR=[],$rl=Kdq,UrP=0,tZ=new Map,P0w=new Map,tsl=new Map;var Wo=Symbol("vf"),Ke=new WeakMap;var qh=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Cv=function(){qh.instance||(qh.instance=new qh);
return qh.instance};
_.l=qh.prototype;_.l.setClient=function(r){this.client=r};
_.l.JSC$10367_newScreen=function(){this.clear();this.csn=_.t1()};
_.l.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.l.reportShown=function(r,f,I){var C=this.JSC$10367_getTrackingParams(r),Y=r.visualElement?r.visualElement:C;f=this.shownElements.has(Y);var V=this.visibleState.get(Y);this.shownElements.add(Y);this.visibleState.set(Y,!0);r.impressionLog&&!f&&r.impressionLog();if(C||r.visualElement)if(I=vG3(this,r,I))if(Y=KBg(this,r),uR(this,r)||Y){C=r.visualElement?r.visualElement:_.VH(C);var S=r.interactionLoggingClientData;Y||f?uR(this,r)&4?V||jjU(this.client,I,C,S):uR(this,r)&1&&!f&&mrE(this.client,I,C,S):mrE(this.client,
I,C,S)}};
_.l.reportHidden=function(r,f,I){var C=this.JSC$10367_getTrackingParams(r),Y=r.visualElement?r.visualElement:C;f=this.hiddenElements.has(Y);var V=this.visibleState.get(Y);this.hiddenElements.add(Y);this.visibleState.set(Y,!1);if(V===!1)return!0;if(!C&&!r.visualElement)return!1;I=vG3(this,r,I);if(!I||!uR(this,r)&&KBg(this,r))return!1;C=r.visualElement?r.visualElement:_.VH(C);uR(this,r)&8?HVU(this.client,I,C):uR(this,r)&2&&!f&&(r=this.client,f=PF({cttAuthInfo:TI(I)||void 0},I),C={csn:I,ve:C.getAsJson(),
eventType:2},I==="UNDEFINED_CSN"?Le("visualElementHidden",f,C):r?gp("visualElementHidden",C,r,f):_.NW("visualElementHidden",C,f));return!0};
_.l.JSC$10367_getTrackingParams=function(r){var f=this.getData(r),I,C;if(_.N("il_use_view_model_logging_context")&&(f==null?0:(I=f.context)==null?0:(C=I.loggingContext)==null?0:C.loggingDirectives))return f.context.loggingContext.loggingDirectives.trackingParams||"";var Y,V;if(f==null?0:(Y=f.rendererContext)==null?0:(V=Y.loggingContext)==null?0:V.loggingDirectives)return f.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(f==null?0:f.loggingDirectives)return f.loggingDirectives.trackingParams||
"";var S;return((S=r.veContainer)==null?0:S.trackingParams)?r.veContainer.trackingParams:(f==null?void 0:f.trackingParams)||""};
_.l.JSC$10367_elementShouldLogGesture=function(r,f){r=this.getData(r);return!!((Math.floor(Number(r&&r.loggingDirectives&&r.loggingDirectives.gestures&&r.loggingDirectives.gestures.types||""))||0)&f)};
_.l.JSC$10367_getNearestParentVe=function(r){var f=this.JSC$10367_getTrackingParams(r);return r.visualElement?r.visualElement:f?_.VH(f):r.parentElement?this.JSC$10367_getNearestParentVe(r.parentElement):null};
var vG3=function(r,f,I){var C=_.t1(I);return r.csn===null||C===r.csn||I?C:(r=new _.nf("VisibilityLogger called before newScreen",{caller:f.tagName,previous_csn:r.csn,current_csn:C}),_.t7(r),null)};
qh.prototype.getData=function(r){var f,I=r.data||((f=r.props)==null?void 0:f.data);if(!I&&_.N("enable_wiz_always_try_logging_info_map")){var C;I=(C=yR(r))==null?void 0:C[Wo]}else if(r.isWebComponentWrapper){var Y;I=(Y=yR(r))==null?void 0:Y[Wo]}return I};
var KBg=function(r,f){var I;return!((I=r.getData(f))==null||!I.loggingDirectives)},uR=function(r,f){r=r.getData(f);
return Math.floor(Number(r&&r.loggingDirectives&&r.loggingDirectives.visibility&&r.loggingDirectives.visibility.types||""))||1};var D0;D0=function(){};
_.rF=function(){D0.instance||(D0.instance=new D0);return D0.instance};
D0.prototype.setClient=function(r){_.Jn(Cv().setClient).bind(Cv())(r)};
_.yWg=function(){_.rF();_.Jn(Cv().JSC$10367_newScreen).bind(Cv())()};
D0.prototype.clear=function(){_.Jn(Cv().clear).bind(Cv())()};
D0.prototype.reportShown=function(r,f,I){_.Jn(Cv().reportShown).bind(Cv())(r,f,I)};
D0.prototype.reportHidden=function(r,f,I){return _.Jn(Cv().reportHidden).bind(Cv())(r,f,I)};
var SBq=function(r,f){return _.Jn(Cv().JSC$10367_getTrackingParams).bind(Cv())(f)},E8B=function(r,f){return _.Jn(Cv().JSC$10367_getNearestParentVe).bind(Cv())(f)};var rj,UMs;rj=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};
_.IB=function(){rj.instance||(rj.instance=new rj);return rj.instance};
rj.prototype.setClient=function(r){this.client=r};
UMs=function(r,f,I){I=I===void 0?{}:I;_.Jn(function(){var C,Y,V,S=((C=_.F(f==null?void 0:f.commandMetadata,_.oo))==null?void 0:C.rootVe)||((Y=_.F(f==null?void 0:f.commandMetadata,Gog))==null?void 0:(V=Y.screenVisualElement)==null?void 0:V.uiType);if(S){C=_.F(f==null?void 0:f.commandMetadata,Wi4);if(C==null?0:C.parentTrackingParams){var h=_.VH(C.parentTrackingParams);if(C.parentCsn)var w=C.parentCsn}else I.clickedVisualElement?h=I.clickedVisualElement:f.clickTrackingParams&&(h=_.VH(f.clickTrackingParams));
a:{C=_.F(f,_.vj);Y=_.F(f,gnu);if(C){if(Y=JBw(C,"VIDEO")){C={token:Y,videoId:C.videoId};break a}}else if(Y&&(C=JBw(Y,"PLAYLIST"))){C={token:C,playlistId:Y.playlistId};break a}C=void 0}I=Object.assign({},{cttAuthInfo:C,parentCsn:w},I);if(_.N("expectation_logging")){var n;I.loggingExpectations=((n=_.F(f==null?void 0:f.commandMetadata,Gog))==null?void 0:n.loggingExpectations)||void 0}_.f3(r,S,h,I)}else _.t7(new _.nf("Error: Trying to create a new screen without a rootVeType",f))})()};
_.f3=function(r,f,I,C){C=C===void 0?{}:C;_.Jn(function(){jNq.includes(f)||(_.t7(new _.nf("createClientScreen() called with a non-page VE",f)),f=83769);C.isHistoryNavigation||(r.forwardHistoryStack=[],r.backHistoryStack.push({rootVe:f,key:C.key||""}));r.graftQueue=[];r.stateChangedQueue=[];C.dataPromises?sN4(r,f,I,C):OYq(r,f,I,C)})()};
_.oGs=function(r,f,I){I=I===void 0?0:I;_.Jn(function(){f.then(function(C){r.pendingScreenCreation.has(I)&&r.pendingScreenFn&&r.pendingScreenFn();var Y=_.t1(I),V=_.Pj(I);if(Y&&V){var S;(C==null?0:(S=C.response)==null?0:S.trackingParams)&&TM(r.client,Y,V,_.VH(C.response.trackingParams));var h;(C==null?0:(h=C.playerResponse)==null?0:h.trackingParams)&&TM(r.client,Y,V,_.VH(C.playerResponse.trackingParams))}})})()};
rj.prototype.graftServerVe=function(r,f,I){var C=this;return _.Jn(function(){var Y=_.VH(r);_.Ia(C,Y,f,I);return Y})()};
_.SIu=function(r,f,I,C){return _.N("enable_client_ve_spec")&&f.clientVeSpec?(f=_.pQ(f.clientVeSpec.uiType,void 0,f.clientVeSpec.elementIndex,f.clientVeSpec.clientYoutubeData,void 0,f),_.Ia(r,f,I,C)?f:null):f.trackingParams?r.graftServerVe(f.trackingParams,I,C):null};
_.fv=function(r,f,I,C){return _.Jn(function(){if(!f.veType)return _.PR(new _.nf("Error: Trying to graft a client VE without a veType.")),null;if(f.visibilityTypes){var Y=f.visibilityTypes.reduce(function(V,S){return V|S});
Y={visibility:{types:String(Y)}}}Y=_.pQ(f.veType,f.visualElement,f.elementIndex,f.clientYouTubeData,void 0,Y);return _.Ia(r,Y,I,C)?Y:null})()};
_.Ia=function(r,f,I,C){C=C===void 0?0:C;return _.Jn(function(){if(r.pendingScreenCreation.has(C))return r.graftQueue.push([f,I]),!0;var Y=_.t1(C),V=I||_.Pj(C);if(Y&&V){if(_.N("combine_ve_grafts")){var S=r.cachedVisualElements.get(V.toString());S?S.push(f):(r.cachedRootVisualElements.set(V.toString(),V),r.cachedVisualElements.set(V.toString(),[f]));r.attachTimeout||(r.attachTimeout=_.dp(_.F_,function(){QND(r,Y)},1200))}else TM(r.client,Y,V,f);
return!0}return!1})()};
_.C3=function(r,f,I){I=I===void 0?0:I;var C=r.recurringGrafts.get(I)||new Map;if(_.N("smarter_ve_dedupping"))for(var Y=Array.from(C.keys()),V=0;V<Y.length;V++){var S=void 0,h=void 0;var w=f;var n=Y[V];n.isClientVe()&&w.isClientVe()?(S=w.getAsJson(),h=n.getAsJson(),w=S.veType!==h.veType||S.elementIndex!==h.elementIndex||S.dataElement!==h.dataElement||w.getLoggingDirectives()!==n.getLoggingDirectives()?!1:!0):w=n.veData.trackingParams!==void 0&&w.veData.trackingParams!==void 0?((h=w.veData)==null?void 0:
h.trackingParams)===((S=n.veData)==null?void 0:S.trackingParams):!1;if(w)return}else if(C.has(f))return;C.set(f,void 0);r.recurringGrafts.set(I,C);_.t1(I)==="UNDEFINED_CSN"||r.pendingScreenCreation.has(I)||_.Ia(r,f,void 0,I)};
_.YP=function(r,f,I,C){C=_.t1(C===void 0?0:C);if(!C)return!1;R_l(r.client,C,f,I);return!0};
_.lH=function(r,f,I,C){if(!f)return!1;C=_.t1(C===void 0?0:C);if(!C)return!1;R_l(r.client,C,_.VH(f),I);return!0};
_.cl=function(r,f){var I=f.getScreenLayer&&f.getScreenLayer();if(f.visualElement)return _.YP(r,f.visualElement,void 0,I);f=SBq(_.rF(),f);return _.lH(r,f,void 0,I)};
rj.prototype.clickCommand=function(r,f,I){return _.lH(this,r.clickTrackingParams,f,I===void 0?0:I)};
rj.prototype.stateChanged=function(r,f,I){this.visualElementStateChanged(_.VH(r),f,I===void 0?0:I)};
rj.prototype.visualElementStateChanged=function(r,f,I){I=I===void 0?0:I;I===0&&this.pendingScreenCreation.has(I)?this.stateChangedQueue.push([r,f]):this.logStateChanged(r,f,I)};
rj.prototype.logStateChanged=function(r,f,I){I=I===void 0?0:I;var C=_.t1(I);r=r||_.Pj(I);return C&&r?(v6K(this.client,C,r,f),!0):!1};
var sN4=function(r,f,I,C){C=C===void 0?{}:C;r.pendingScreenCreation.add(C.layer||0);r.pendingScreenFn=function(){OYq(r,f,I,C);var S=_.Pj(C.layer);if(S){for(var h=_.E(r.graftQueue),w=h.next();!w.done;w=h.next())w=w.value,_.Ia(r,w[0],w[1]||S,C.layer);S=_.E(r.stateChangedQueue);for(h=S.next();!h.done;h=S.next())h=h.value,r.logStateChanged(h[0],h[1])}};
I||_.t1(C.layer)||r.pendingScreenFn();if(C.dataPromises)for(var Y=_.E(C.dataPromises),V=Y.next();!V.done;V=Y.next())_.oGs(r,V.value,C.layer);else _.Fo(Error("wf"))},OYq=function(r,f,I,C){C=C===void 0?{}:C;
var Y=void 0;C.layer||(C.layer=0);Y=C.parentLayer!==void 0?C.parentLayer:C.layer;var V=_.t1(Y);Y=_.Pj(Y);var S=I||Y,h;S&&(C.parentCsn!==void 0?h={clientScreenNonce:C.parentCsn,visualElement:S}:V&&V!=="UNDEFINED_CSN"&&(h={clientScreenNonce:V,visualElement:S}));var w,n=_.Lz("EVENT_ID");V==="UNDEFINED_CSN"&&n&&(w={servletData:{serializedServletEventId:n}});_.N("combine_ve_grafts")&&V&&QND(r,V);_.N("no_client_ve_attach_unless_shown")&&S&&V&&LdU(S,V);try{var d=_.TfR(r.client,f,h,C.csnToClone,C.cttAuthInfo,
w,C.implicitGestureType,void 0,C.loggingExpectations)}catch(X){_.TL(X,{rootVeType:f,rootVe:Y,parentVisualElement:I,currentCsn:V,parentEl:h,csnToClone:C.csnToClone});_.Fo(X);return}_.idw(d,f,C.layer,C.cttAuthInfo);V&&V!=="UNDEFINED_CSN"&&Y&&!jPR(V)&&HVU(r.client,V,Y,!0);r.backHistoryStack[r.backHistoryStack.length-1]&&!r.backHistoryStack[r.backHistoryStack.length-1].csn&&(r.backHistoryStack[r.backHistoryStack.length-1].csn=d||"");_.gX({clientScreenNonce:d});_.yWg();var z=_.Pj(C.layer);V&&V!=="UNDEFINED_CSN"&&
z&&(_.N("web_mark_root_visible")||_.N("music_web_mark_root_visible"))&&_.JZ(d,z);r.pendingScreenCreation.delete(C.layer||0);r.pendingScreenFn=void 0;var g;(g=r.recurringGrafts.get(C.layer))==null||g.forEach(function(X,P){X?_.Ia(r,P,X,C.layer):z&&_.Ia(r,P,z,C.layer)});
AWX(r)},AWX=function(r){for(var f=0;f<r.afterNewScreenOneOffJobs.length;f++){var I=r.afterNewScreenOneOffJobs[f];
try{I()}catch(C){_.Fo(C)}}for(f=r.afterNewScreenOneOffJobs.length=0;f<r.afterNewScreenRecurringJobs.length;f++){I=r.afterNewScreenRecurringJobs[f];try{I()}catch(C){_.Fo(C)}}},QND=function(r,f){if(f===void 0)for(var I=e0R(),C=0;C<I.length;C++)I[C]!==void 0&&QND(r,I[C]);
else r.cachedVisualElements.forEach(function(Y,V){(V=r.cachedRootVisualElements.get(V))&&ckE(r.client,f,V,Y)}),r.cachedVisualElements.clear(),r.cachedRootVisualElements.clear(),r.attachTimeout=void 0};var Va=function(r){r=r===void 0?{layer:0}:r;this.hasRun=!1;this.createScreenConfig=r;r={};this.oif=(r.response=!1,r.playerResponse=!1,r)};
_.t(Va,AL);Va.prototype.validate=function(r){return!(!r.data||!r.data.response&&!r.data.playerResponse)};
Va.prototype.handle=function(r){var f=_.IB(),I=this.createScreenConfig.layer;r.data.response&&r.data.response.trackingParams&&!this.oif.response&&(f.graftServerVe(r.data.response.trackingParams,void 0,I),this.oif.response=!0);r.data.playerResponse&&r.data.playerResponse.trackingParams&&!this.oif.playerResponse&&(f.graftServerVe(r.data.playerResponse.trackingParams,void 0,I),this.oif.playerResponse=!0)};var EG=function(){this.bU=_.eu();this.mZ=[];this.a9S=0};
EG.prototype.processChunk=function(r){if(r){for(var f=_.E(this.mZ),I=f.next();!I.done;I=f.next())I=I.value,I.validate(r)&&(I.handle(r),I.hasRun=!0);_.Xc("np"+this.a9S);this.a9S++}};var Akl,U_,s_,o6P=0,Qju=function(r,f,I,C,Y,V){var S=s_;this.name=r;this.attributes=f;this.startTime=I;this.id=C;this.sessionId=Y;this.traceId=V;this.parent=S};
Qju.prototype.attr=function(r,f){this.attributes[r]=f};
Qju.prototype.close=function(r){if(this!==s_)throw Error("xf");var f=s_;r&&(f.status=r);f.endTime=performance.now();r=_.E(U_.spanProcessors);for(var I=r.next();!I.done;I=r.next()){var C=void 0,Y=void 0;(Y=(C=I.value).onSpanEnd)==null||Y.call(C,f)}s_=f==null?void 0:f.parent};
Qju.prototype[Symbol.dispose]=function(){this.close()};var T0K,kDT;_.qv=function(r,f,I,C,Y,V,S){S=S===void 0?[]:S;this.buildCommandPayload=r;this.navigate=f;this.handleServiceRequest=I;this.sendAction=C;this.JSC$10408_screenManager=Y;this.commandResolverMap=V;this.autoLogResolverAllowlist=S;this.pendingCommands=new Set;if(G9P("command")){var h=this.resolveCommand;this.resolveCommand=function(w,n){var d=ZVm("command",{command:w});return Bfq(d,h.bind(this,w,n),null)}}};
T0K=function(r,f,I){var C=bRP,Y=pUE,V=_.IB(),S=ZYD;I=I===void 0?[]:I;_.qv.instance=new _.qv(r,f,C,Y,V,S,I)};
kDT=function(r,f,I){if(!r.commandResolverMap)return!1;var C=rhl(f,r.commandResolverMap);return C?((r.autoLogResolverAllowlist.some(function(Y){return!!_.F(f,Y)})||(I==null?0:I.forceClickLogging))&&GD4(r,f,I),C instanceof Promise?C.then(function(Y){Y.resolve(f,I)}):C.resolve(f,I),!0):!1};
_.qv.prototype.resolveCommand=function(r,f){var I=this,C=Bv8(r);if(kDT(this,r,f))return!0;if(C)return qSs(this,r,f);if(!this.buildCommandPayload)return qEU(r,"Unhandled command by buildCommandPayload"),!1;var Y=this.buildCommandPayload(r,f);if(f==null?0:f.commandController)Y.commandController=f.commandController;if(Y.type===0){if(!this.navigate)return uVR(r,"navigate"),!1;if(!uIX(Y.command))return qEU(r,"Page requests need to specify a url"),!1;_.N("logging_avoid_blocking_during_navigation")&&_.S6K().transition("application_navigating");
r=this.navigate(Y)||[];da8(r).then(function(){I.pendingCommands.delete(Y.command)});
return!0}if(Y.type===1){if(!this.handleServiceRequest)return uVR(r,"handleServiceRequest"),!1;(f==null?0:f.forceClickLogging)&&GD4(this,Y.command,f);r=this.handleServiceRequest(Y);da8(r).then(function(){I.pendingCommands.delete(Y.command)});
return!0}if(Y.type===2){if(!this.sendAction)return uVR(r,"sendAction"),!1;GD4(this,Y.command,f);this.sendAction(Y);return!0}return!1};
var GD4=function(r,f,I){if((I==null||!I.disableClickTracking)&&r.JSC$10408_screenManager)if(f.clickTrackingParams&&_.N("log_click_with_layer_from_element_in_command_handler")){var C;I=I==null?void 0:(C=I.form)==null?void 0:C.element;r.JSC$10408_screenManager.clickCommand(f,null,I&&I.getScreenLayer&&I.getScreenLayer())}else f.clickTrackingParams?r.JSC$10408_screenManager.clickCommand(f):!_.N("disable_clicked_visual_element_in_command_handler")&&(I==null?0:I.clickedVisualElement)&&_.YP(r.JSC$10408_screenManager,
I.clickedVisualElement)},Bv8=function(r){var f=!!_.F(r,_.Il),I;
r=((I=_.F(r,_.YI))==null?void 0:I.signal)==="CLIENT_SIGNAL";return f||r},qSs=function(r,f,I){var C=_.F(f,_.Il);
if(C)var Y=(C==null?void 0:C.commands)||[];else{var V;if(((V=_.F(f,_.YI))==null?void 0:V.signal)==="CLIENT_SIGNAL"){var S;Y=((S=_.F(f,_.YI))==null?void 0:S.actions)||[]}}if(Y){f=_.E(Y);for(Y=f.next();!Y.done;Y=f.next()){Y=Y.value;try{r.resolveCommand(Y,I)}catch(h){h instanceof Error&&_.Fo(h)}}return!0}qEU(f,"Could not handle the meta command");return!1},uIX=function(r){var f;
return!((f=_.F(r==null?void 0:r.commandMetadata,_.oo))==null||!f.url)};var SN=function(){AL.apply(this,arguments)};
_.t(SN,AL);SN.prototype.validate=function(r){var f,I;return!this.hasRun&&!!((f=r.data.response)==null?0:(I=f.onResponseReceivedEndpoints)==null?0:I.length)};
SN.prototype.handle=function(r){var f=_.qv.instance;r=_.E(r.data.response.onResponseReceivedEndpoints);for(var I=r.next();!I.done;I=r.next())f.resolveCommand(I.value)};var DMB,rYB,fPg;
DMB=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=_.fe();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.xP=function(){rYB||(rYB=new DMB);return rYB};
fPg=function(){var r=_.xP();r.miniplayerButtonActivation=!1;r.userActivation=!1;r.playlistWatchPageActivation=!1;r.productDetailsPageActivation=!1;r.miniAppPageActivation=!1;r.playablesDestPageActivation=!1;r.lockupActivation=!1;r.showMiniplayerCommandActivation=!1;r.playlistSuggestionsShelfActivation=!1;r.mediaSessionPipActivation=!1;r.watchPipActivation=!1;r.watchWhileActivation=!1;r.shortsPipActivation=!1};
_.IPC=function(){var r=_.xP(),f=r.mediaSessionPipActivation,I=r.watchPipActivation,C=r.watchWhileActivation,Y=r.playlistWatchPageActivation,V=r.lockupActivation,S=r.showMiniplayerCommandActivation,h=r.navigatingAwayFromWatchDeletedVideo,w=r.shortsPipActivation,n=r.playlistSuggestionsShelfActivation,d=r.productDetailsPageActivation,z=r.miniAppPageActivation,g=r.playablesDestPageActivation;return!r.miniplayerButtonActivation&&!Y&&!n&&!d&&!z&&!g&&!V&&!S&&!f&&!I&&!C&&!w||h};var vSw;_.h9=ol("FEwhat_to_watch","/",3854);_.KDd=ol("FEdownloads","/feed/downloads",42352);vSw=ol("FEmusic_offline","browse/FEmusic_offline",42352);var v1=function(r,f){f=f===void 0?[]:f;var I=I===void 0?[]:I;f=Mgl.apply(null,[gpP.apply(null,_.Na(f))].concat(_.Na(I)));this.store=$2m(r,void 0,f)};
v1.prototype.getState=function(){return this.store.getState()};
v1.prototype.dispatch=function(r){return this.store.dispatch(r)};
v1.prototype.subscribe=function(r){return this.store.subscribe(r)};
v1.prototype.replaceReducer=function(r){return this.store.replaceReducer(r)};
v1.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.wj=function(r,f,I){var C=f(r.getState());return r.subscribe(function(){var Y=f(r.getState());if(Y!==C){var V=C;C=Y;I(Y,V)}})};var QGu;_.hv=function(r,f,I){return _.kI({type:"REPLACE_ENTITY",payload:{entityPayload:I,entityType:r,key:f}})};
QGu=function(r){return _.kI({type:"REPLACE_ENTITIES",payload:r})};
_.Po=function(r,f,I,C){return _.kI({type:"UPDATE_ENTITY",payload:{entityPayload:I,entityType:r,key:f,mergeOption:C}})};var pKR=function(r){var f=this;r=r===void 0?[]:r;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;r.forEach(function(I){f.append(I)})};
_.l=pKR.prototype;_.l.getLength=function(){return this.totalLength};
_.l.append=function(r){var f=this.arrays.length===0?!1:(f=this.arrays[this.arrays.length-1])&&f.buffer===r.buffer&&f.byteOffset+f.length===r.byteOffset;f?(f=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(f.buffer,f.byteOffset,f.length+r.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(r);this.totalLength+=r.length};
_.l.split=function(r){for(var f=new pKR,I=new pKR,C=_.E(this.arrays),Y=C.next();!Y.done;Y=C.next())Y=Y.value,r>=Y.length?(f.append(Y),r-=Y.length):r?(f.append(new Uint8Array(Y.buffer,Y.byteOffset,r)),I.append(new Uint8Array(Y.buffer,Y.byteOffset+r,Y.length-r)),r=0):I.append(Y);return{headView:f,tailView:I}};
_.l.extract=function(r,f){return this.split(r).tailView.split(f).headView};
_.l.isFocused=function(r){return r>=this.arrayPos&&r<this.arrayPos+this.arrays[this.arrayIdx].length};
_.l.focus=function(r){if(!this.isFocused(r))for(r<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=r&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var Ca3=function(r,f){r.focus(f);return r.arrays[r.arrayIdx][f-r.arrayPos]};(function(){var r=function(C){return new Uint8Array(C)},f=function(C){for(var Y=new Uint8Array(C.length),V=0;V<C.length;V++)Y[V]=C[V];
return Y},I=new Uint8Array([1]);
return I.length===1&&I[0]===1?r:f})();
var E3w=Array(1024),VrK=window.TextDecoder?new TextDecoder:void 0,xXR=window.TextEncoder?new TextEncoder:void 0;var b6u=function(r){this.arrayView=r;this.pos=0;this.pendingTagAndType=-1},BF=function(r){var f=Ca3(r.arrayView,r.pos);
++r.pos;if(f<128)return f;for(var I=f&127,C=1;f>=128;)f=Ca3(r.arrayView,r.pos),++r.pos,C*=128,I+=(f&127)*C;return I},n3q=function(r,f){var I=r.pendingTagAndType;
for(r.pendingTagAndType=-1;r.pos+1<=r.arrayView.totalLength;){I<0&&(I=BF(r));var C=I>>3,Y=I&7;if(C===f)return!0;if(C>f){r.pendingTagAndType=I;break}I=-1;switch(Y){case 0:BF(r);break;case 1:r.pos+=8;break;case 2:C=BF(r);r.pos+=C;break;case 5:r.pos+=4}}return!1};var zmR=function(){this.pos=0;this.submessagePosStack=[];this.buf=wKE(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Dk=function(r,f){f=r.pos+f;
if(!(r.buf.length>=f)){for(var I=r.buf.length*2;I<f;)I*=2;r.buf=wKE(I,r.buf.subarray(0,r.pos));r.view=new DataView(r.buf.buffer,r.buf.byteOffset,r.buf.byteLength)}},um=function(r,f){if(f>268435455){Dk(r,4);
for(var I=f&1073741823,C=0;C<4;C++)r.view.setUint8(r.pos,I&127|128),I>>=7,r.pos+=1;f=Math.floor(f/268435456)}for(Dk(r,4);f>127;)r.view.setUint8(r.pos,f&127|128),f>>=7,r.pos+=1;r.view.setUint8(r.pos,f);r.pos+=1};for(var Mrc={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,
fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,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},dXl={},YT3=_.E(Object.entries(Mrc)),lPD=YT3.next();!lPD.done;lPD=YT3.next()){var VcU=_.E(lPD.value),E0X=VcU.next().value,STB=VcU.next().value,xV_=E0X,hj8=STB;hj8&&(dXl[hj8]=xV_)};var ail=function(r,f){r=r===void 0?{}:r;switch(f.type){case "ENTITY_LOADED":return f.payload.reduce(function(C,Y){var V,S=(V=Y.options)==null?void 0:V.persistenceOption;if(S&&S!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&S!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return C;if(!Y.entityKey)return _.Fo(Error("zf")),C;if(Y.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!Y.payload)return Y=new _.nf("REPLACE entity mutation is missing a payload",{entityKey:Y.entityKey}),_.Fo(Y),C;var h=(0,_.X0.getAnyKey)(Y.payload);
return N8u(C,h,Y.entityKey,Y.payload[h])}if(Y.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{Y=Y.entityKey;try{var w=_.qo(Y).entityType;h=N8u(C,w,Y);break a}catch(z){if(z instanceof Error){Y=new _.nf("Failed to deserialize entity key",{entityKey:Y,originalMessage:z.message});_.Fo(Y);h=C;break a}throw z;}h=void 0}return h}if(Y.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!Y.payload)return Y=new _.nf("UPDATE entity mutation is missing a payload",{entityKey:Y.entityKey}),_.Fo(Y),C;h=(0,_.X0.getAnyKey)(Y.payload);
var n,d;return $Xd(C,h,Y.entityKey,Y.payload[h],(n=Y.fieldMask)==null?void 0:(d=n.mergeOptions)==null?void 0:d.repeatedFieldsMergeOption)}return C},r);
case "REPLACE_ENTITY":var I=f.payload;return N8u(r,I.entityType,I.key,I.entityPayload);case "REPLACE_ENTITIES":return Object.keys(f.payload).reduce(function(C,Y){var V=f.payload[Y];return Object.keys(V).reduce(function(S,h){return N8u(S,Y,h,V[h])},C)},r);
case "UPDATE_ENTITY":return I=f.payload,$Xd(r,I.entityType,I.key,I.entityPayload,I.mergeOption);default:return r}};var FmK;var wr3=!1,bH,p3,n3,dj,z$,b_D=function(r){_.Mu.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!wr3){var f,I=new Uint8Array(256),C=new Uint8Array(256);var Y=1;for(f=0;f<256;f++)I[Y]=f,C[f]=Y,Y^=Y<<1^(Y>>7&&283);bH=new Uint8Array(256);p3=Ir(256);n3=Ir(256);dj=Ir(256);z$=Ir(256);for(var V=0;V<256;V++){Y=V?C[255^I[V]]:0;Y^=Y<<1^Y<<2^Y<<3^Y<<4;Y=Y&255^Y>>>8^99;bH[V]=Y;f=Y<<1^(Y>>7&&283);var S=f^Y;p3[V]=f<<24|Y<<16|Y<<8|S;n3[V]=S<<24|p3[V]>>>8;dj[V]=Y<<24|n3[V]>>>
8;z$[V]=Y<<24|dj[V]>>>8}wr3=!0}Y=Ir(44);for(I=0;I<4;I++)Y[I]=r[4*I]<<24|r[4*I+1]<<16|r[4*I+2]<<8|r[4*I+3];for(C=1;I<44;I++)r=Y[I-1],I%4||(r=(bH[r>>16&255]^C)<<24|bH[r>>8&255]<<16|bH[r&255]<<8|bH[r>>>24],C=C<<1^(C>>7&&283)),Y[I]=Y[I-4]^r;this.key=Y};
_.t(b_D,_.Mu);
b_D.prototype.encrypt=function(r){var f=r.length;r=new Uint8Array(r.buffer.slice(r.byteOffset,r.byteOffset+f));for(var I=this.cipherBlock,C=0;C<f&&this.blockOffset<16;)r[C++]^=I[this.blockOffset++];for(var Y=f-(f-C)%16;C<Y;)pr3(this),r[C++]^=I[0],r[C++]^=I[1],r[C++]^=I[2],r[C++]^=I[3],r[C++]^=I[4],r[C++]^=I[5],r[C++]^=I[6],r[C++]^=I[7],r[C++]^=I[8],r[C++]^=I[9],r[C++]^=I[10],r[C++]^=I[11],r[C++]^=I[12],r[C++]^=I[13],r[C++]^=I[14],r[C++]^=I[15];if(C<f)for(pr3(this),this.blockOffset=0;C<f;)r[C++]^=
I[this.blockOffset++];return r};
var n0V=function(r,f){for(var I=0;I<4;I++)r.counter[I]=f[I*4]<<24|f[I*4+1]<<16|f[I*4+2]<<8|f[I*4+3];r.blockOffset=16},pr3=function(r){for(var f=r.key,I=r.counter[0]^f[0],C=r.counter[1]^f[1],Y=r.counter[2]^f[2],V=r.counter[3]^f[3],S=3;S>=0&&!(r.counter[S]=-~r.counter[S]);S--);
for(var h,w,n=4;n<40;)S=p3[I>>>24]^n3[C>>16&255]^dj[Y>>8&255]^z$[V&255]^f[n++],h=p3[C>>>24]^n3[Y>>16&255]^dj[V>>8&255]^z$[I&255]^f[n++],w=p3[Y>>>24]^n3[V>>16&255]^dj[I>>8&255]^z$[C&255]^f[n++],V=p3[V>>>24]^n3[I>>16&255]^dj[C>>8&255]^z$[Y&255]^f[n++],I=S,C=h,Y=w;r=r.cipherBlock;S=f[40];r[0]=bH[I>>>24]^S>>>24;r[1]=bH[C>>16&255]^S>>16&255;r[2]=bH[Y>>8&255]^S>>8&255;r[3]=bH[V&255]^S&255;S=f[41];r[4]=bH[C>>>24]^S>>>24;r[5]=bH[Y>>16&255]^S>>16&255;r[6]=bH[V>>8&255]^S>>8&255;r[7]=bH[I&255]^S&255;S=f[42];
r[8]=bH[Y>>>24]^S>>>24;r[9]=bH[V>>16&255]^S>>16&255;r[10]=bH[I>>8&255]^S>>8&255;r[11]=bH[C&255]^S&255;S=f[43];r[12]=bH[V>>>24]^S>>>24;r[13]=bH[I>>16&255]^S>>16&255;r[14]=bH[C>>8&255]^S>>8&255;r[15]=bH[Y&255]^S&255};var dV3=!1;(function(){var r=function(C){return new Uint8Array(C)},f=function(C){for(var Y=new Uint8Array(C.length),V=0;V<C.length;V++)Y[V]=C[V];
return Y},I=new Uint8Array([1]);
return I.length===1&&I[0]===1?r:f})();
var MA;var zjU=function(r){this.JSC$10475_aesKey=r};
zjU.prototype.encrypt=function(r,f){var I=this,C,Y;return _.x(function(V){if(V.nextAddress==1){a:{if(!dV3&&!UH){if(MA){var S=MA;break a}MA=(S=window.crypto)==null?void 0:S.subtle;var h,w,n;if(((h=MA)==null?0:h.importKey)&&((w=MA)==null?0:w.sign)&&((n=MA)==null?0:n.encrypt)){S=MA;break a}MA=void 0}S=void 0}C=S;if(!C)return V.return(McD(I,r,f));_.l_(V,3);return _.b(V,g0X(I,r,f,C),5)}if(V.nextAddress!=3)return V.return(V.yieldResult);Y=_.ha(V);_.t7(Y);dV3=!0;return V.return(McD(I,r,f))})};
var g0X=function(r,f,I,C){var Y,V;return _.x(function(S){switch(S.nextAddress){case 1:if(r.cryptoKey){S.jumpTo(2);break}return _.b(S,C.importKey("raw",r.JSC$10475_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:r.cryptoKey=S.yieldResult;case 2:return Y={name:"AES-CTR",counter:I,length:128},_.b(S,C.encrypt(Y,r.cryptoKey,f),4);case 4:return V=S.yieldResult,S.return(new Uint8Array(V))}})},McD=function(r,f,I){r.encryptorPolyfill||(r.encryptorPolyfill=new b_D(r.JSC$10475_aesKey));
n0V(r.encryptorPolyfill,I);return r.encryptorPolyfill.encrypt(f)},aP_=function(r){this.JSC$10479_aesKey=r};
aP_.prototype.encrypt=function(r,f){this.encryptor||(this.encryptor=new b_D(this.JSC$10479_aesKey));n0V(this.encryptor,f);return this.encryptor.encrypt(r)};var XrD={},T8$=QD("yt-idb-pref-storage",{objectStores:(XrD.prefs={addedAtVersion:1},XrD),shared:!1,upgrade:function(r,f){f(1)&&eM(m8(r,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.gj=function(r){this.token=r};
_.gj.getInstance=function(){return _.x(function(r){return r.return(new Promise(function(f){_.o1().then(function(I){I?(_.gj.instance||(_.gj.instance=new _.gj(I)),f(_.gj.instance)):f(void 0)})}))})};
_.gj.prototype.get=function(r){var f=this,I,C,Y;return _.x(function(V){if(V.nextAddress==1)return _.b(V,chm(f.token),2);if(V.nextAddress!=3)return I=V.yieldResult,_.b(V,I.get("prefs",r),3);C=V.yieldResult;if(!C)return V.return();Y=(0,_.Ad)();return C.expirationTimestampMs<=Y?V.return():V.return(C.value)})};
_.gj.prototype.set=function(r,f,I){I=I===void 0?31536E3:I;var C=this,Y,V,S;return _.x(function(h){if(h.nextAddress==1)return Y=(0,_.Ad)(),V={key:r,value:f,expirationTimestampMs:Y+I*1E3},_.b(h,chm(C.token),2);S=h.yieldResult;return _.b(h,S.put("prefs",V),0)})};
_.gj.prototype.remove=function(r){var f=this,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,chm(f.token),2);I=C.yieldResult;return _.b(C,I.delete("prefs",r),0)})};var aa={},ND3=(aa.INVALID_ENCODER_VERSION="Invalid encoder version",aa.KEY_CREATION_FAILED="Failed to create encoder key",aa.UNKNOWN_DECODE_ERROR="Failed to decode PES data",aa.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",aa.WRONG_DATA_TYPE="Encoder cannot process the data type",aa),C2=function(r,f){f=f===void 0?{}:f;_.nf.call(this,ND3[r],Object.assign({},{name:"PESEncoderError",type:r},f));this.type=r;this.level="WARNING";Object.setPrototypeOf(this,C2.prototype)};
_.t(C2,_.nf);var $Vg=function(){},FJs=function(r,f,I){try{return r.encodeImpl(f,I)}catch(C){emK(C,Lml)}},PaV=function(r,f,I){var C;
return _.x(function(Y){if(Y.nextAddress==1)return _.l_(Y,2),_.b(Y,r.decodeAsyncImpl(f,I),4);if(Y.nextAddress!=2)return Y.return(Y.yieldResult);C=_.ha(Y);emK(C,mXB);_.wO(Y)})};
$Vg.prototype.decodeAsyncImpl=function(r,f){return Promise.resolve(this.decodeImpl(r,f))};var Xg=function(r,f){this.aesEncryptor=r;this.aesEncryptorAsync=f};
_.t(Xg,$Vg);Xg.prototype.encodeImpl=function(r,f){f=JhR(f);r=(new TextEncoder).encode(JSON.stringify(r));return this.aesEncryptor.encrypt(r,f)};
Xg.prototype.decodeImpl=function(r,f){if(!(r instanceof Uint8Array))throw WmK(1);var I=new TextDecoder;f=JhR(f);r=this.aesEncryptor.encrypt(r,f);return JSON.parse(I.decode(r))};
Xg.prototype.decodeAsyncImpl=function(r,f){var I=this,C,Y,V;return _.x(function(S){if(S.nextAddress==1){if(!(r instanceof Uint8Array))throw WmK(1);C=new TextDecoder;Y=JhR(f);return _.b(S,I.aesEncryptorAsync.encrypt(r,Y),2)}V=S.yieldResult;return S.return(JSON.parse(C.decode(V)))})};var jGu={accountLinkStatusEntity:CI4,booleanEntity:jPD,buttonEntity:i34,captionTrack:mX4,channelHandle:XYX,chipEntity:MNT,commerceAcquisitionClientPayloadEntity:Vv8,commerceCartListEntity:EJg,contextNoteFeedEntityPayload:cJ4,continuationTokenEntity:n6X,downloadQualityPickerEntity:C0V,downloadsPageRefreshTokenEntity:lVs,downloadsPageViewConfigurationEntity:Fd4,downloadStatusEntity:YEq,dismissState:gPV,sfvAudioItemCurrentlyPlayingEntity:xsX,emojiFountainDataEntity:J94,emojiCustomizationSetEntity:e6T,
fakeChannel:R0T,fakePlaylist:vks,fakePlaylistEntryCollection:KTT,fakeVideo:UKV,fakeVideoDescription:sPC,featuredProductsEntity:sj3,flowStateEntity:DKq,iconBadgeEntity:Snq,interstitialInteractionStateEntity:$J_,likeButtonAnimationEntity:P08,liveChatPollStateEntity:mJ4,liveViewerLeaderboardChatEntryPointStateEntity:QG4,liveViewerLeaderboardPointsEntity:Ahq,liveReactionsDataEntity:jaU,logoEntity:aB3,macroMarkerEntity:tsg,mainDownloadsLibraryEntity:VsD,mainDownloadsListEntity:E6_,mainPlaylistDownloadStateEntity:xr8,
mainPlaylistEntity:drg,mainPlaylistVideoEntity:z_8,mainVideoDownloadStateEntity:h_V,mainVideoEntity:XJ_,markersEngagementPanelSyncEntity:TfD,markersVisibilityOverrideEntity:ckq,musicAlbumReleaseDetail:Dr4,musicAlbumReleaseDownloadMetadataEntity:G9s,musicAlbumRelease:uVB,musicAlbumReleaseUserDetail:rhg,musicArtistDetail:Ii4,musicArtist:fiV,musicArtistUserDetail:CCg,musicDownloadsLibraryEntity:k9_,musicLibraryEdit:Y54,musicLibraryStatusEntity:li4,musicPlaylist:Vr3,musicPlaylistDownloadMetadataEntity:BfC,
musicShare:S5C,musicTrackDetail:hm3,musicTrackDownloadMetadataEntity:qEV,musicTrack:xXD,musicTrackUserDetail:wKq,offlineOrchestrationActionWrapperEntity:em3,offlineVideoPolicy:JhB,offlineVideoStreams:jG4,offlineabilityEntity:wJV,orchestrationWebSamplingEntity:bVT,pageHeaderEntity:tNq,pdpStateEntity:xbq,pinnedProductEntity:OVV,playbackData:H68,playerStateEntity:Wd_,quantityIncrementerEntity:hMT,refresh:i6X,saveToPlaylistListEntity:Li3,settingEntity:r93,stringEntity:HdV,suggestedFeedbackChipStateEntity:LdV,
transfer:Rmq,trendingOfferEntity:o6s,videoDownloadContextEntity:v3_,videoOverviewAsyncDataEntity:Hhs,videoPlaybackPositionEntity:KZs,votingEntity:c9g,ytMainChannelEntity:Nf_,youchatPendingResponseEntity:mrq,ytMainDownloadedVideoEntity:pJ4,ytMainVideoEntity:$rg};var tc_,cYT,So,sGm,O6U,mV3,JY4,ejs,LJg;tc_=function(r,f){this.JSC$10498_wrapped=r;this.JSC$10498_encoderRegistry=f;this.changedKeys={}};
cYT=function(r,f){a:{r=TDU(r.JSC$10498_encoderRegistry,f.version);try{var I=r.decodeImpl(f.data,f.key);break a}catch(C){emK(C,mXB)}I=void 0}return I};
_.WJ3=function(r,f,I){return r.JSC$10498_wrapped.objectStore("EntityStore").get(f).then(function(C){if(C){if(I&&C.entityType!==I)throw Error("Af");return cYT(r,C)}})};
So=function(r,f,I){return I?(I=I.map(function(C){return _.WJ3(r,C,f)}),mM.all(I)):r.JSC$10498_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(f)).then(function(C){return C.map(function(Y){return cYT(r,Y)})})};
_.UXu=function(r,f,I){var C=g3K(f),Y=TDU(r.JSC$10498_encoderRegistry,1),V=Object.assign({},f);return r.JSC$10498_wrapped.objectStore("EntityStore").get(C).then(function(S){if(S){if(S.entityType!==I)throw Error("Af");V.entityMetadata||(S=cYT(r,S),V.entityMetadata=S.entityMetadata)}}).then(function(){var S={key:C,
entityType:I,data:FJs(Y,V,C),version:1};return mM.all([r.JSC$10498_wrapped.objectStore("EntityStore").put(S),LJg(r,V,I)])}).then(function(){mV3(r,C,I);
return C})};
sGm=function(r,f){var I=_.qo(f).entityType;return mM.all([r.JSC$10498_wrapped.objectStore("EntityStore").delete(f),ejs(r,f)]).then(function(){mV3(r,f,I)})};
O6U=function(r,f,I,C){var Y=TDU(r.JSC$10498_encoderRegistry,1);return _.WJ3(r,f,C).then(function(V){if(V){V=liu(V,I);var S={key:f,entityType:C,data:FJs(Y,V,f),version:1};return mM.all([r.JSC$10498_wrapped.objectStore("EntityStore").put(S),LJg(r,V,C)])}}).then(function(){mV3(r,f,C);
return f})};
mV3=function(r,f,I){var C=r.changedKeys[I];C||(C=new Set,r.changedKeys[I]=C);C.add(f)};
JY4=function(r,f,I){var C=g3K(f);I=H6w(I);if(!I)return mM.resolve([]);I=new I(f);r=r.JSC$10498_wrapped.objectStore("EntityAssociationStore");f=[];I=_.E(I.getAssociations());for(var Y=I.next();!Y.done;Y=I.next())f.push(r.put({parentEntityKey:C,childEntityKey:Y.value}));return mM.all(f).then(function(V){return V.map(function(S){return S[1]})})};
ejs=function(r,f){return r.JSC$10498_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(f))};
LJg=function(r,f,I){var C=g3K(f);return ejs(r,C).then(function(){return JY4(r,f,I)})};var j9D=function(){};
_.t(j9D,$Vg);j9D.prototype.encodeImpl=function(r){return r};
j9D.prototype.decodeImpl=function(r){if(r instanceof Uint8Array)throw WmK(0);return r};var v3m=function(){this.cacheMap={};this.cacheMap[0]=new j9D;if(!_.N("aes_pes_encoder_killswitch")){var r=this.cacheMap;try{var f=_.bh();var I=JhR(f);var C=new Xg(new aP_(I),new zjU(I))}catch(Y){throw r=Y instanceof Error?new C2("KEY_CREATION_FAILED",{originalMessage:Y.message}):new C2("KEY_CREATION_FAILED"),_.Fo(r),r;}r[1]=C}},TDU=function(r,f){f=f===void 0?0:f;
r=r.cacheMap[f];if(!r)throw f=new C2("INVALID_ENCODER_VERSION",{encoderVersion:f}),_.Fo(f),f;return r};var lX=function(r,f){_.Mu.call(this);this.token=r;this.JSC$10512_encoderRegistry=f;this.observers=[];r=new _.Yq.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.bh());r.onmessage=this.handleMessage.bind(this);this.channel=r};
_.t(lX,_.Mu);_.Er=function(r,f,I){var C,Y,V,S;return _.x(function(h){if(h.nextAddress==1)return _.b(h,trR(r.token),2);if(h.nextAddress!=3)return C=h.yieldResult,_.b(h,_.vd(C,["EntityStore","EntityAssociationStore"],f,function(w){Y=new tc_(w,r.JSC$10512_encoderRegistry);return I(Y)}),3);
V=h.yieldResult;Y&&(S=Y.changedKeys,Object.keys(S).length>0&&(r.channel.postMessage(S),H_3(r,S)));return h.return(V)})};
lX.prototype.observe=function(r){var f=this;this.observers.push(r);return function(){var I=f.observers.indexOf(r);I>=0&&f.observers.splice(I,1)}};
var xYB=function(r){var f;return _.x(function(I){if(I.nextAddress==1)return _.b(I,_.Er(r,{mode:"readonly",enableRetries:!0},function(C){return C.JSC$10498_wrapped.objectStore("EntityStore").getAll()}),2);
f=I.yieldResult;return I.return(Promise.all(f.filter(function(C){return!!C}).map(function(C){var Y,V;
return _.x(function(S){if(S.nextAddress==1){Y=C.key;V=C.entityType;var h=PaV(TDU(r.JSC$10512_encoderRegistry,C.version),C.data,C.key);return _.b(S,h,2)}return S.return({key:Y,entityType:V,data:S.yieldResult})})})))})};
lX.prototype.handleMessage=function(r){H_3(this,r.data)};
var H_3=function(r,f){r=_.E(r.observers);for(var I=r.next();!I.done;I=r.next())I=I.value,I(f)};
lX.prototype.disposeInternal=function(){this.channel.close()};
var i6$;var NA,Rj3,zqP,SKR;NA={};_.i_4=(NA.mainVideoEntity="mainVideoEntityActionMetadata",NA.mainPlaylistEntity="mainPlaylistEntityActionMetadata",NA.musicTrack="musicTrackEntityActionMetadata",NA.musicPlaylist="musicPlaylistEntityActionMetadata",NA);Rj3=new _.Go("DOWNLOADS_ENTITY_TYPE_MAP");zqP=_.rG("","downloadsPageViewConfigurationEntity");SKR=_.rG("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.a0P=_.rG("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.rG("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.rG("SMART_DOWNLOADS_ENABLED","settingEntity");_.rG("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var G8$=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var f4q=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var V8K={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var $P,YGq,eD4,h8l;$P=window;_.c1=$P.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.dA$=$P.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.H1;YGq=$P.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||aV;eD4=$P.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||mvq;_.v0U=$P.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.GFD;h8l=$P.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||qiV;eo({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 gPU=lvP(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(r){return r}}}),WpU=lvP(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(r){return r}}}),xAm=new Map;var XPm=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],nPK;var KJV=function(r){return _.kI({type:"SET_EPHEMERAL_ACTION",payload:r})};var yYU={ephemeralAction:null};var UVD={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var O3l={sharedUi:function(r,f){r=r===void 0?UVD:r;switch(f.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},r,{animatedThumbnailEnabled:f.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},r,{inlinePreviewEnabled:f.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},r,{currentPageType:f.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},r,{currentPageSubType:f.payload});default:return r}},
a11y:Vw({ephemeralAction:function(r,f){r=r===void 0?yYU.ephemeralAction:r;switch(f.type){case "SET_EPHEMERAL_ACTION":return f.payload;default:return r}}})};var i3u=Vw({isLeaderTab:function(r,f){r=r===void 0?!0:r;switch(f.type){case "SET_IS_LEADER_TAB":var I,C;return(C=f==null?void 0:(I=f.payload)==null?void 0:I.isLeaderTab)!=null?C:r;default:return r}}});var s9D=function(r){return _.kI({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:r}})};var sam=Vw({isDesktopSmallWidth:function(r,f){switch(f.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return f.payload.isDesktopSmallWidth;default:return r===void 0?!1:r}},
isShortsActive:function(r,f){switch(f.type){case "SET_IS_SHORTS_ACTIVE":return f.payload.isShortsActive;default:return r===void 0?!1:r}},
isWatchWhileMode:function(r,f){switch(f.type){case "SET_IS_WATCH_WHILE_MODE":return f.payload.isWatchWhileMode;default:return r===void 0?!1:r}},
playerState:function(r,f){switch(f.type){case "SET_PLAYER_STATE":return f.payload.playerState;default:return r===void 0?-1:r}},
isFullscreen:function(r,f){switch(f.type){case "SET_IS_FULLSCREEN":return f.payload.isFullscreen;default:return r===void 0?!1:r}},
isSmallScreenSqueezeback:function(r,f){switch(f.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return f.payload.isSmallScreenSqueezeback;default:return r===void 0?!1:r}},
isShortsPipActive:function(r,f){switch(f.type){case "SET_IS_SHORTS_PIP_ACTIVE":return f.payload.isShortsPipActive;default:return r===void 0?!1:r}},
isPlaybackStarted:function(r,f){switch(f.type){case "SET_IS_PLAYBACK_STARTED":return f.payload.isPlaybackStarted;default:return r===void 0?!1:r}}});var TjR={playlistId:"",inviteLinkURL:""};var O_B={};var H3R=Vw({continuationCommand:function(r,f){r=r===void 0?O_B:r;switch(f.type){case "SET_CONTINUATION_COMMAND":return f.payload.continuationCommand;default:return r}}});var QaU=function(){return function(r){return function(f){var I=r(f);_.Bj(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[f],!0);return I}}};var o0_,qcK;o0_=new _.uX;_.Zb=new _.Go("WATCH_PLAYER_PROMISE_TOKEN");_.Q94=new _.uX;_.AYV=new _.Go("SHORTS_PLAYER_PROMISE_TOKEN");qcK=new _.Go("");var A9K=function(){return function(r){return function(f){f.type==="ENTITY_LOADED"&&_.a().resolve(_.Zb).then(function(I){var C;(C=I.dispatchReduxAction)==null||C.call(I,f)});
return r(f)}}};var WZl={currentFormId:"",commandsMap:{}};var Z_D={};var R6U=Vw({additionalContext:function(r,f){switch(f.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var I;return(I=f.payload)!=null?I:"";default:return r===void 0?"":r}},
impersonatedChannelUrl:function(r,f){switch(f.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var I;return(I=f.payload)!=null?I:"";default:return r===void 0?"":r}},
selectedVideoIds:function(r,f){r=r===void 0?Z_D:r;switch(f.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var I={};return Object.assign({},r,(I[f.payload]=!0,I));case "VIDEO_UNSELECTED":return f=f.payload,r=Object.assign({},r),delete r[f],r;default:return r}}});var vPE=Vw({parentClickTrackingParams:function(r,f){switch(f.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return f.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return r===void 0?"":r}}});var G73=function(r){return _.kI({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:r})};var k7B={};var KZP=Vw({stepStates:function(r,f){r=r===void 0?k7B:r;switch(f.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var I=r,C=f.payload,Y,V,S;r={};f={selectionStates:Object.assign({},(S=(Y=I[C.stepId])==null?void 0:Y.selectionStates)!=null?S:{},(r[C.token]={isSelected:C.isSelected},r)),userQuery:(V=I[C.stepId])==null?void 0:V.userQuery};Y={};return Object.assign({},I,(Y[C.stepId]=f,Y));case "TALK_TO_RECS_UPDATE_USER_QUERY":return Y=r,V=f.payload,S={selectionStates:Object.assign({},
(C=(I=Y[V.stepId])==null?void 0:I.selectionStates)!=null?C:{}),userQuery:{userQuery:V.userQuery,token:V.userQueryToken}},I={},Object.assign({},Y,(I[V.stepId]=S,I));default:return r}}});var BDq,qT3;BDq=function(r){return _.kI({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:r})};
qT3=function(r){return _.kI({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:r})};
_.TW=function(r){return _.kI({type:"SET_CURRENT_PAGE_TYPE",payload:r})};
_.um8=function(r){return _.kI({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:r})};var mAK={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"};_.DVT=function(r){return _.kI({type:"SET_PLAYER_STATE",payload:{playerState:r}})};var rcC=[],f2q={width:0,height:0};var y9w=Vw({isTheaterMode:function(r,f){r=r===void 0?_.mO("START_IN_THEATER_MODE"):r;switch(f.type){case "SET_IS_THEATER_MODE":return f.payload.isTheaterMode;default:return r}},
isWatchActive:function(r,f){switch(f.type){case "SET_IS_WATCH_ACTIVE":return f.payload.isWatchActive;default:return r===void 0?!1:r}},
isLearningJourneyActive:function(r,f){switch(f.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return f.payload.isLearningJourneyActive;default:return r===void 0?!1:r}},
isWatchFullscreen:function(r,f){switch(f.type){case "SET_IS_WATCH_FULLSCREEN":return f.payload.isWatchFullscreen;default:return r===void 0?!1:r}},
isWatchNarrowWidth:function(r,f){switch(f.type){case "SET_IS_WATCH_NARROW_WIDTH":return f.payload.isWatchNarrowWidth;default:return r===void 0?!1:r}},
isWatchRetroMode:function(r,f){switch(f.type){case "SET_IS_WATCH_RETRO_MODE":return f.payload.isWatchRetroMode;default:return r===void 0?!1:r}},
isLiveChatCollapsed:function(r,f){switch(f.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return f.payload.isLiveChatCollapsed;default:return r===void 0?!1:r}},
openEngagementPanels:function(r,f){r=r===void 0?rcC:r;var I=[].concat(_.Na(r));switch(f.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return I.push(f.payload.panelToAdd),I;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return I.splice(I.indexOf(f.payload.panelToRemove),1),I;default:return r}},
playerState:function(r,f){switch(f.type){case "SET_PLAYER_STATE":return f.payload.playerState;default:return r===void 0?-1:r}},
watchScrollTop:function(r,f){switch(f.type){case "SET_WATCH_SCROLL_TOP":return f.payload.watchScrollTop;default:return r===void 0?0:r}},
watchWindowSize:function(r,f){r=r===void 0?f2q:r;switch(f.type){case "SET_WATCH_WINDOW_SIZE":return f.payload.watchWindowSize;default:return r}}});var I24={feedbackTokens:[]};var UA$=Vw({surveyFeedbackData:function(r,f){r=r===void 0?I24:r;switch(f.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return f.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},r,f.payload);default:return r}}});var J9B={};var G$E=void 0;_.N("web_enable_redux_store_on_demand")||(G$E=Z3m());var CcX=function(r,f,I){var C=this;this.listId=r;this.JSC$10646_updateCallback=f;this.isOfflineVideoCallback=I;_.K2().subscribe(function(){C.handleUpdate()})};
CcX.prototype.getPlaylistData=function(){var r=_.K2().getState().entities;if(this.listId&&this.listId!=="PPSV"){var f=kdK(r,this.listId,!0),I=_.rG(this.listId,"mainPlaylistEntity"),C,Y;r=r==null?void 0:(C=r.mainPlaylistEntity)==null?void 0:(Y=C[I])==null?void 0:Y.title;return k$B(f,r,this.listId)}f=_.I4K(FRc(r));r=_.I4K(_.z3(r));return k$B(f.concat(r))};
CcX.prototype.getPlaylistId=function(){return this.listId};
CcX.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10646_updateCallback(this.listId,this.getPlaylistData(),{})};var Fg=function(r,f,I,C){C=C===void 0?[]:C;this.JSC$10649_playlistNetworkManager=r;this.listId=f;this.JSC$10649_updateCallback=I;this.videoIds=C;this.pendingUpdates=[];this.currentIndex=0};
Fg.prototype.JSC$10649_setCurrentIndex=function(r){this.currentIndex=r};
Fg.prototype.setListId=function(r){this.listId=r};
var Yqq=function(r,f){r.currentCreateRequest&&r.currentCreateRequest.cancel(f);r.currentUpdateRequest&&r.currentUpdateRequest.cancel(f);r.currentRefreshRequest&&r.currentRefreshRequest.cancel(f)};
Fg.prototype.delete=function(){Yqq(this,"PROXY DELETED")};
Fg.prototype.addVideos=function(r,f,I){var C=this;I!==void 0?this.videoIds.splice.apply(this.videoIds,[I,0].concat(_.Na(r))):this.videoIds.push.apply(this.videoIds,_.Na(r));this.listId||this.currentCreateRequest?(r.forEach(function(Y,V){Y={addedVideoId:Y,action:"ACTION_ADD_VIDEO"};I&&(Y.addedVideoPosition=I+V);C.pendingUpdates.push(Y)}),PP(this)):l2q(this,f.onCreateListCommand)};
var Vi4=function(r,f,I,C,Y){FKR(r.videoIds,f,I);f>r.currentIndex&&I<=r.currentIndex?r.JSC$10649_setCurrentIndex(r.currentIndex+1):f===r.currentIndex?r.JSC$10649_setCurrentIndex(I):f<r.currentIndex&&I>=r.currentIndex&&r.JSC$10649_setCurrentIndex(r.currentIndex-1);r.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:C,movedSetVideoIdPredecessor:Y});PP(r)},l2q=function(r,f){Yqq(r,"OBSOLETE");
r.currentCreateRequest=Eg4(r.JSC$10649_playlistNetworkManager,f,r.videoIds);_.XZ(r.currentCreateRequest,function(){r.currentCreateRequest=void 0}).then(function(I){r.setListId(I.playlistId);
r.pendingUpdates.length>0?PP(r):Sqg(r)})},PP=function(r){if(r.pendingUpdates.length!==0&&(r.currentRefreshRequest&&r.currentRefreshRequest.cancel("OBSOLETE"),!r.currentUpdateRequest&&!r.currentCreateRequest)){var f=r.pendingUpdates.splice(0,r.pendingUpdates.length);
r.currentUpdateRequest=r.JSC$10649_playlistNetworkManager.updatePlaylist(r.listId,f);_.XZ(r.currentUpdateRequest,function(){r.currentUpdateRequest=void 0}).then(function(){r.pendingUpdates.length>0?PP(r):Sqg(r)}).thenCatch(function(){r.pendingUpdates.unshift.apply(r.pendingUpdates,_.Na(f))})}},Sqg=function(r){r.currentRefreshRequest=_.x5B(r.JSC$10649_playlistNetworkManager,r.listId,r.currentIndex,r.videoIds[r.currentIndex]);
_.XZ(r.currentRefreshRequest,function(){r.currentRefreshRequest=void 0}).then(function(f){r.JSC$10649_updateCallback(f.playlistId,f.playlistPanelRenderer,f.autoplayRenderer)})};
Fg.prototype.size=function(){return this.videoIds.length};var hrC=function(r,f,I,C){C=C===void 0?[]:C;Fg.call(this,r,f,I,C);this.JSC$10649_playlistNetworkManager=r;this.listId=f;this.JSC$10649_updateCallback=I;this.videoIds=C};
_.t(hrC,Fg);_.t9=function(r,f,I,C,Y,V,S){Y=Y===void 0?[]:Y;S=S===void 0?fd:S;Fg.call(this,r,f,I,Y);this.JSC$10649_playlistNetworkManager=r;this.listId=f;this.JSC$10649_updateCallback=I;this.onAuthChange=C;this.videoIds=Y;this.storage=V;this.cookieReader=S;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.oB(_.F_,this.checkLoggedInStatusChange.bind(this),1E3)};
_.t(_.t9,Fg);_.l=_.t9.prototype;_.l.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.oB(_.F_,this.checkLoggedInStatusChange.bind(this),1E3)};
_.l.JSC$10649_setCurrentIndex=function(r){Fg.prototype.JSC$10649_setCurrentIndex.call(this,r);this.store()};
_.l.delete=function(){_.F_.cancelJob(this.queueSapisIdJob);Fg.prototype.delete.call(this)};
_.l.setListId=function(r){Fg.prototype.setListId.call(this,r);this.store()};
_.l.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var w3T=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],bc3=["playerResponse","videoDetails"],p3g=["response","currentVideoEndpoint","watchEndpoint","videoId"],ngX=["response","currentVideoEndpoint","watchEndpoint","playlistId"],d5s=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],zrX=["response","contents","twoColumnWatchNextResults","playlist","playlist"],MiT=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
ggU=["response","contents","twoColumnWatchNextResults"];var T$={},rKR=(T$.WEB_UNPLUGGED="^unplugged/",T$.WEB_UNPLUGGED_ONBOARDING="^unplugged/",T$.WEB_UNPLUGGED_OPS="^unplugged/",T$.WEB_UNPLUGGED_PUBLIC="^unplugged/",T$.WEB_CREATOR="^creator/",T$.WEB_KIDS="^kids/",T$.WEB_EXPERIMENTS="^experiments/",T$.WEB_MUSIC="^music/",T$.WEB_REMIX="^music/",T$.WEB_MUSIC_EMBEDDED_PLAYER="^music/",T$.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",T$);var Lud,Eg4;Lud=function(r,f){this.networkManager=r;this.innertubeTransportService=f};
Eg4=function(r,f,I){if(!_.F(f,_.JL))return _.h3(Error("Ef"));_.F(f,_.JL).videoIds=I;I={create_playlist_title:_.VR("QUEUE",void 0,"Queue")};return ugl(_.mC(r.innertubeTransportService,f,I),BjK)};
_.x5B=function(r,f,I,C){f={videoId:C,playlistId:f,playlistIndex:I};I=_.yC(XHs);return ugl(_.cP(r.innertubeTransportService,f,I),DAd)};
Lud.prototype.updatePlaylist=function(r,f){return ugl(_.mC(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:r,actions:f}}),qGK)};var a2C=function(r){this.storage=r},X33;
a2C.prototype.store=function(r,f){f=f===void 0?0:f;if(this.storage&&r.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",r),this.storage.set("TLPQindex",String(f)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(I){}};
a2C.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
a2C.prototype.getPlaylistId=function(){if(!this.storage)return null;var r=null;try{r=this.storage.get("TLPQplaylist")}catch(f){}return r};var Ynl=["navigationEndpoint","watchEndpoint","videoId"],Cgw=["nextButtonVideo","watchEndpoint","videoId"];_.bA=new _.Go("NETWORK_TOKEN");_.y2=new _.Go("PAGE_TOKEN");_.WP=new _.Go("PLAYLIST_TOKEN");var NNs;NNs=new _.Go("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.pJ=new _.Go("INNERTUBE_TRANSPORT_TOKEN");var $5B,L3,PcB,ti3,cc4,WqV;$5B=new Set(["ci","cr","carml"]);L3=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10696_parkedJobs=new Map;this.parkedProcessors=new Map};
_.mZ=function(){L3.instance||(L3.instance=new L3);return L3.instance};
L3.prototype.onAny=function(r){return _.Fqg(this,r,2)};
L3.prototype.parkOrScheduleJob=function(r,f,I,C,Y){_.eN(this,I)?_.tF().addJob(r,f,C):(Y&&(r=PcB(r),ti3(this,r,f,I,Y)),Y=this.JSC$10696_parkedJobs.get(I),Y||(this.JSC$10696_parkedJobs.set(I,[]),Y=this.JSC$10696_parkedJobs.get(I)),Y.push({job:r,priority:f,delay:C}))};
L3.prototype.addListener=function(r,f,I){I&&(f=PcB(f),ti3(this,f,0,r,I));I=this.parkedProcessors.get(r);I||(this.parkedProcessors.set(r,[]),I=this.parkedProcessors.get(r));I.push(f)};
L3.prototype.processSignal=function(r){if(!_.eN(this,r)){this.inProgressSignals.add(r);var f=this.JSC$10696_parkedJobs.get(r);if(f){f=_.E(f);for(var I=f.next();!I.done;I=f.next())I=I.value,_.tF().addJob(I.job,I.priority,I.delay);this.JSC$10696_parkedJobs.delete(r)}if(f=this.parkedProcessors.get(r)){f=_.E(f);for(I=f.next();!I.done;I=f.next())I=I.value,I();this.parkedProcessors.delete(r)}this.signals.push(r);this.inProgressSignals.delete(r)}};
_.eN=function(r,f){return $5B.has(f)||_.mO("IS_HOMEPAGE_COLD")||_.mO("IS_RESULTS_PAGE_COLD")||_.mO("IS_WATCH_PAGE_COLD")?r.signals.indexOf(f)>=0:!0};
PcB=function(r){var f=!1;return function(){f||(f=!0,r())}};
ti3=function(r,f,I,C,Y){if(TND.has(C))_.tF().addJob(f,I,Y);else{var V=r.compoundSignals.get(C);V&&_.tF().addJob(function(){_.eN(r,C)||(V.isTimeoutConditionSatisfied?_.tF().addJob(f,I):V.timeoutConditionObservers.push(function(){_.tF().addJob(f,I)}))},I,Y)}};
_.Fqg=function(r,f,I){if(f.length>1){var C=[],Y=Object.create(null);f=_.E(f);for(var V=f.next();!V.done;V=f.next())V=V.value,Y[V]||(C.push(V),Y[V]=!0);f=C}if(f.length===1)return f[0];V=f;C="";Y=I===2?"|":"&";V.sort();V=_.E(V);for(var S=V.next();!S.done;S=V.next())C+=S.value+Y;if(!r.compoundSignals.get(C)){Y=0;V=[];S=_.E(f);for(var h=S.next();!h.done;h=S.next())h=h.value,Y++,_.eN(r,h)||V.push(h);(I=I===2)&&Y>V.length||!I&&!V.length?r.signals.push(C):cc4(r,C,I,f,V)}return C};
cc4=function(r,f,I,C,Y){var V=Y.length,S=function(){I||--V===0?r.processSignal(f):WqV(r,f)};
Y=_.E(Y);for(var h=Y.next();!h.done;h=Y.next())r.addListener(h.value,S);r.compoundSignals.set(f,{signals:C,isOnAny:I,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});WqV(r,f)};
WqV=function(r,f){if(!_.eN(r,f)){var I=r.compoundSignals.get(f);if(I&&!I.isTimeoutConditionSatisfied){for(var C=!1,Y=0,V=0,S=_.E(I.signals),h=S.next();!h.done;h=S.next()){var w=h.value;h=!_.eN(r,w);TND.has(w)?C=!0:(w=r.compoundSignals.get(w))?h&&!w.isTimeoutConditionSatisfied&&(V++,I.isInitialized||w.timeoutConditionObservers.push(function(){WqV(r,f)})):h&&Y++}I.isInitialized=!0;
I.isOnAny?C&&(I.isTimeoutConditionSatisfied=!0):Y===0&&V===0&&(I.isTimeoutConditionSatisfied=!0);if(I.isTimeoutConditionSatisfied)for(I=_.E(I.timeoutConditionObservers),C=I.next();!C.done;C=I.next())C=C.value,C()}}};
L3.prototype.processSignal=L3.prototype.processSignal;L3.prototype.parkOrScheduleJob=L3.prototype.parkOrScheduleJob;L3.prototype.onAny=L3.prototype.onAny;_.OH("ytsignals.getInstance",_.mZ);L3.prototype.onAny=L3.prototype.onAny;L3.prototype.parkOrScheduleJob=L3.prototype.parkOrScheduleJob;L3.prototype.processSignal=L3.prototype.processSignal;var TND=new Set(["eop","eocs","dl","pcl"]);_.iO=new _.Go("MINIPLAYER_SERVICE");var J9,LqD,m5q;J9=function(r,f,I){var C=_.iz.getInstance();if(!X33){var Y=new NdK;var V=void 0,S=_.Lz("ID_TOKEN");S&&Y.isAvailable()&&(V=new gl(Y,"yt-queue"+S));X33=new a2C(V)}Y=X33;V=_.mZ();this.JSC$10703_actionRouter=C;this.pageManager=r;this.playlistManager=f;this.JSC$10703_playlistNetworkManager=I;this.storage=Y;this.signals=V;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.jN=function(){if(!LqD){var r=_.a(),f=r.resolve(_.ZY(_.y2)),I=r.resolve(_.ZY(_.bA)),C=r.resolve(_.ZY(_.WP));r=r.resolve(_.pJ);LqD=new J9(f,C,new Lud(I,r))}return LqD};
m5q=function(r,f,I){if(I){var C;if(((C=r.responsePlaylistData)==null?void 0:C.playlistId)!==I)return}r.responsePlaylistData&&(I=hMc(f,r.responsePlaylistData),r.responsePlaylistData=(0,_.X0.unsafeClone)(r.responsePlaylistData),bhd(r.responsePlaylistData,I));I=r.temporaryItems.findIndex(function(Y){return Y.videoId===f});
I>-1&&r.temporaryItems.splice(I,1);_.HP(r,_.iH(r,r.response?r.response.autoplayRenderer:void 0))};
_.erU=function(r,f){if(r.responsePlaylistData){var I=wDc(f,r.responsePlaylistData);bhd(r.responsePlaylistData,I);if(r.queueProxy){var C=r.queueProxy;I<0||(C.videoIds.splice(I,1),I<C.currentIndex&&C.JSC$10649_setCurrentIndex(C.currentIndex-1),C.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:f}),PP(C))}}_.HP(r,_.iH(r,r.response?r.response.autoplayRenderer:void 0))};
J9.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.HP(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
J9.prototype.setPlaylistData=function(r,f,I){this.temporaryItems=[];this.listId=r;this.responsePlaylistData=f;_.HP(this,_.iH(this,I))};
var Jc4=function(r){return(r==null?0:r.playlistId)?r.playlistId:"PPSV"},jtT=function(r){return r&&r.playlistId?r.playlistId==="PPSV"?!0:Z7K(_.K2().getState().entities,r.playlistId):!1};
J9.prototype.isPlayingOfflineVideo=function(){return this.response?jtT(this.response):!1};
J9.prototype.closeMiniplayer=function(r){var f=this.queueProxy&&this.queueProxy.size()<=1,I=_.a().resolve(_.iO);if(!this.queueProxy||f)this.queueProxy&&this.clearQueue(),I.close(!0);else{I.pipController.getWindow()&&window.focus();f=this.responsePlaylistData;var C=this.temporaryItems.length+(f&&f.contents?f.contents.length:0);f=_.VR("QUEUE_CLEARED_UNPLURALIZED")||_.E_("QUEUE_CLEARED",C);f=_.sr(f);I=_.VR("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");C=_.VR("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.E_("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",C);var Y=_.VR("MINIPLAYER_CLOSE",void 0,"Close"),V=_.VR("CANCEL",void 0,"Cancel");_.WJ(this.JSC$10703_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.iX(I),dialogMessages:[_.iX(C)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.iX(Y),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
f]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.iX(V)}}}}}}],r)}};
_.iH=function(r,f){var I={},C=r.response;I.autoplayRenderer=f;if(!r.responsePlaylistData&&!r.temporaryItems.length)return!C||!C.hasRelatedVideoData&&_.N("kevlar_prefetch_data_augments_network_data")||(I.playerData={rvs:C.relatedVideoArgs,endScreenRenderer:C.endScreenRenderer}),I;I.playerData={};if(r.index===void 0)return _.Fo(Error("Gf")),I;I.panel=r.responsePlaylistData?(0,_.X0.unsafeClone)(r.responsePlaylistData):{titleText:_.iX(_.VR("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
f=I.panel;if(f.contents)for(var Y=_.E(r.temporaryItems),V=Y.next();!V.done;V=Y.next())f.contents.push({playlistPanelVideoRenderer:V.value});r.queueProxy&&C&&C.playingVideo&&C.playingVideoId&&!xbE(C.playingVideoId,I.panel)&&(f=C.playingVideo,Y=I.panel,V=r.index,Y.contents&&Y.contents.splice(V===void 0?0:V,0,{playlistPanelVideoRenderer:f}));C&&C.playingVideoId&&(f=r.index,Y=I.panel,f=!Y.contents||f>=Y.contents.length?void 0:Y.contents[f].playlistPanelVideoRenderer,f&&f.videoId===C.playingVideoId||(f=
hMc(C.playingVideoId,I.panel),r.index=f!==-1?f:r.index?r.index-1:0));f=SnE(r.index+1,I.panel);Y=void 0;r.index>0&&(Y=SnE(r.index-1,I.panel));if(Y||f)I.autoplayRenderer=lGP(f,Y,I.autoplayRenderer);!f&&(C==null?0:C.relatedVideoArgs)&&(I.playerData.rvs=C.relatedVideoArgs);C=C?C.playlistIndexOffset:0;r.queueProxy?dbK(I.panel,r.index,C,EJl,!0,!0,!0):dbK(I.panel,r.index,C);I.playerData.playlistPanelRenderer=I.panel;return I};
J9.prototype.openToast=function(r){_.a().resolve(_.iO).openToast(r,_.VR("ADDED_TO_QUEUE",void 0,"Added to queue"))};
J9.prototype.isMiniplayerActive=function(){return _.a().resolve(_.iO).isMiniplayerActive()};
_.HP=function(r,f){r.playlistManager.setAutoplayRenderer(f.autoplayRenderer||null);r.playlistManager.setPlaylistData(f.panel||null);f.playerData&&r.playlistManager.setPlayerPlaybackControlData(f.playerData)};var MvK="#";var Hc8={},icB={},Rr_={},vgs={},KqB={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:(Hc8.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",Hc8),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:(icB.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",icB),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:(Rr_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",Rr_),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:(vgs.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",vgs),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 riB=[{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:KqB},{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:KqB}}];_.qj=[[["ZCNlbjF4eXZic2JxdDFraW4=","ajMzdG5ybm1jdmFsdWUja2Y4"],"RU5UX0tJTkRfU1RBUlQjZ3g5eXE2YWdldWcxQURfUExBQ0VN"]];_.B1=["a3Mjc3BkNDBkY3g0eWJvZ2xvYmFsQ2FsbGJhYw==","Ym5vcm1hbGl0eURldGVjdGVkI2FyMmxmM3Q2bng1MG9uQQ==","aXAjNWMzbW84dXVneXVrb25BZFNr","ZWxtaGdmcmF3X3BsYXllcl9yZXNwb25zZSM5ZHhiYg==","ZFNsb3RzIzFtMzY0MmRva2V3Z2E="];_.Ra="a3Mjc3BkNDBkY3g0eWJvZ2xvYmFsQ2FsbGJhYw== Ym5vcm1hbGl0eURldGVjdGVkI2FyMmxmM3Q2bng1MG9uQQ== aXAjNWMzbW84dXVneXVrb25BZFNr ZWxtaGdmcmF3X3BsYXllcl9yZXNwb25zZSM5ZHhiYg== d3dlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyN4YXMxYWV4bWw1NA== ZWYjdHV5cXFzZDliMDNnYWJfc2Ff ZFNsb3RzIzFtMzY0MmRva2V3Z2E=".split(" ");var oJK=[["primary",null],[null,["ytd-two-column-browse-results-renderer","style-scope"]],["masthead-ad",["ytd-rich-grid-renderer"]],[null,["ytd-rich-grid-renderer","style-scope"]],[null,["ytd-banner-promo-renderer","style-scope"]],[null,["ytd-ad-slot-renderer"]]];var vP;vP=function(r,f,I){this.r8j=r;this.isAsync=f;this.ufj=I};
_.w2q=[new vP("b.f_",!1,0),new vP("j.s_",!1,2),new vP("r.s_",!1,4),new vP("e.h_",!1,6),new vP("i.s_",!0,8),new vP("s.t_",!1,10),new vP("p.h_",!1,12),new vP("s.i_",!1,14),new vP("f.i_",!1,16),new vP("a.b_",!1,18),new vP("a.o_",!1),new vP("g.o_",!1,22),new vP("p.i_",!1,24),new vP("p.m_",!1),new vP("n.k_",!0,20),new vP("i.f_",!1),new vP("a.s_",!0),new vP("m.c_",!1),new vP("n.h_",!1,26),new vP("o.p_",!1),new vP("m.p_",!0,28),new vP("o.a_",!1),new vP("d.p_",!1)].reduce(function(r,f){r[f.r8j]=f;return r},
{});var ycC=function(){};
ycC.prototype.flush=function(r,f){r=r===void 0?[]:r;f=f===void 0?!1:f;if(_.N("enable_client_streamz_web")){r=_.E(r);for(var I=r.next();!I.done;I=r.next())I=YRs(I.value),this.rootSpec&&_.CK(I,2,this.rootSpec),I={serializedIncrementBatch:_.Dp(I.JSC$7506_serializeBinary())},_.NW("streamzIncremented",I,{sendIsolatedPayload:f})}};
var $bu=function(){};
_.t($bu,ycC);var U54=function(r){var f=new qW3;var I=new Gy8;I=_.w5(I,1,"botguard");r=_.w5(I,2,r);this.rootSpec=_.Y1(f,1,u93,r)};
_.t(U54,ycC);var Zx,stV=new Map;var GwK,PgU,j_K,cKl,mbl,s_q,BQP,yKR;GwK=2;PgU=2;j_K=2;cKl=2;mbl=2;s_q=2;BQP=2;yKR=new ryD;var ogC,Qt4,Ac4;ogC=function(){this.ongoingFlowNonces=new Map};
_.fJ=function(){Qt4||(Qt4=new ogC);return Qt4};
_.Dx=function(r,f,I){return{eventType:{flowEventNamespace:r,flowEventType:f},metadata:I,statusCode:void 0,csn:void 0,can:void 0}};
_.p2E=function(r,f){var I=_.fJ(),C=Ac4(I,f,!0);_.r_(I,r,f,C)};
_.r_=function(r,f,I,C){r={flowNonce:C||Ac4(r,I),flowType:I,flowEventType:f.eventType};f.metadata&&(r.flowMetadata=f.metadata);f.statusCode!==void 0&&(r.flowEventStatus=f.statusCode);f.csn&&(r.csn=f.csn);f.can&&(r.can=f.can);_.NW("flowEvent",r,void 0)};
Ac4=function(r,f,I){I=I===void 0?!1:I;var C=r.ongoingFlowNonces.get(f);if(!C||I)C=Ny(16),r.ongoingFlowNonces.set(f,C);return C};_.ZcB=new DST;var MpR={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var K3=function(r,f,I,C,Y,V,S){I=I===void 0?!1:I;C=C===void 0?!1:C;V=V===void 0?_.jN():V;this.hasRun=!1;this.dJu=r;this.qjl=f;this.gPh=I;this.fromHistory=C;this.previousVideoId=Y;this.fDr=V;this.tempData=S;this.tKz=new _.fE3};
_.t(K3,AL);K3.prototype.validate=function(r){return!(!r.data.playerResponse||r.data.page!=="watch"&&r.data.page!=="learning_journey_watch"&&r.data.page!=="shorts"||this.hasRun)};
K3.prototype.handle=function(r){var f=this,I=_.F(r.endpoint,_.vj),C=_.F(r.endpoint,_.xO);if(_.N("kevlar_continue_playback_without_player_response")&&(I==null?0:I.videoId)&&this.previousVideoId&&(I==null?void 0:I.videoId)===this.previousVideoId&&(I==null?0:I.continuePlayback)&&!this.fromHistory)this.dJu.resolve();else{var Y={};I?Y.watch_endpoint=I:C&&(Y.watch_endpoint=C,C.endTimeSeconds&&(Y.end=C.endTimeSeconds));r.data.page==="watch"?(r.data.filler||this.gPh||(_.No("cfg"),_.iz.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(Y,GtT(this,r.endpoint)),_.N("enable_masthead_quartile_ping_fix")&&Object.assign(Y,kt3(this)),I=!_.N("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(Y,I),r.data.forceExternalPlaylist&&(Y.external_list=!0)):r.data.page==="shorts"?_.iz.getInstance().triggerAction("yt-start-loading-shorts"):r.data.page==="learning_journey_watch"&&_.iz.getInstance().triggerAction("yt-start-loading-learning-journey");if(I=this.qjl()){try{I.loadVideoWithPlayerResponse(r.data.playerResponse,
Y),I.getPlayerPromise().then(this.dJu.resolve)}catch(V){_.Fo(V),this.dJu.resolve()}this.hasRun=!0;I.getPlayerPromise().then(function(V){V.addEventListener("onAbnormalityDetected",function(){var S=r.data.playerResponse,h=V.getVideoData().cpn;BQP=0;_.Oc4=h;if(h=hVR(S))f.tKz.increment("IN_PLAYER"),_.Ib(5),_.N("ab_st_vid_ks")?V.pauseVideo(!0):V.stopVideo(),S.playabilityStatus=Object.assign({},S.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:h}}),S.videoDetails=void 0,_.iz.getInstance().triggerOptionalAction("yt-updated-playability-status",
S.playabilityStatus)})})}else _.t7(Error("Jf"))}};
var GtT=function(r,f){var I=_.F(f,_.vj);if(f&&I&&I.playlistId&&I.videoId&&(r=r.fDr,r.queueProxy?(r=r.queueProxy,I=r.listId===I.playlistId?r.attributionData.get(I.videoId):void 0):I=void 0,I))return{queue_info:I}},kt3=function(r){var f;
if((f=r.tempData)==null?0:f.adpings)return{adpings:r.tempData.adpings}};var ya=function(r,f,I){this.hasRun=!1;this.iGy=r;this.fjl=f;this.drz=I};
_.t(ya,AL);ya.prototype.validate=function(r){return!!_.X0.getValueByKeys.apply(null,[r.data].concat(_.Na(ggU)))};
ya.prototype.handle=function(r){var f=this;this.iGy.promise.then(function(){var I=r.data;var C=_.X0.getValueByKeys.apply(null,[I].concat(_.Na(w3T))),Y=_.X0.getValueByKeys.apply(null,[I].concat(_.Na(zrX))),V=_.X0.getValueByKeys.apply(null,[I].concat(_.Na(p3g)));var S=(S=_.X0.getValueByKeys.apply(null,[I].concat(_.Na(bc3))))?{videoId:S.videoId,thumbnail:S.thumbnail,title:S.title?_.iX(S.title):void 0,shortBylineText:S.author?_.iX(S.author):void 0}:void 0;var h=void 0;_.N("web_get_playlist_id_from_current_endpoint_ks")||
(h=_.X0.getValueByKeys.apply(null,[I].concat(_.Na(ngX))));var w=_.X0.getValueByKeys.apply(null,[I].concat(_.Na(MiT))),n=_.X0.getValueByKeys.apply(null,[I].concat(_.Na(d5s))),d=!!w||!!n&&!!n.results&&n.results.length>0,z=0;Y&&Y.currentIndex&&Y.localCurrentIndex&&(z=Y.currentIndex-Y.localCurrentIndex);Y&&Y.playlistId&&(h=Y.playlistId);I={rawResponse:I,autoplayRenderer:C,hasRelatedVideoData:d,playingVideo:S,playingVideoId:V,playlistPanelRenderer:Y,playlistId:h,playlistIndex:Y&&Y.currentIndex,relatedVideoArgs:w,
endScreenRenderer:n,playlistIndexOffset:z};a:{C=f.drz;Y=f.fjl;C.response=I;if(jtT(I))C.downloadPlaylistProxy&&C.downloadPlaylistProxy.getPlaylistId()===Jc4(I)||(C.downloadPlaylistProxy=new CcX(Jc4(I),C.setPlaylistData.bind(C),C.isPlayingOfflineVideo.bind(C))),C.responsePlaylistData=C.downloadPlaylistProxy.getPlaylistData(),C.listId=Jc4(I),C.index=0;else if(I.playlistPanelRenderer&&I.playlistId&&I.autoplayRenderer)I.playlistId.startsWith("TLPQ")?C.queueProxy?C.listId===I.playlistId?(C.index=I.playlistIndex,
C.responsePlaylistData=I.playlistPanelRenderer,C.queueProxy.JSC$10649_setCurrentIndex(C.index)):I.playingVideoId&&C.index!==void 0&&Y.clientParams.autoSaveToQueue&&(C.index+=1,C.queueProxy.JSC$10649_setCurrentIndex(C.index),C.queueProxy.addVideos([I.playingVideoId],{},C.index)):(C.queueProxy=new _.t9(C.JSC$10703_playlistNetworkManager,I.playlistId,C.setPlaylistData.bind(C),C.clearQueue.bind(C),_.pDE(I.playlistPanelRenderer),C.storage),C.responsePlaylistData=I.playlistPanelRenderer,C.listId=I.playlistId,
C.index=I.playlistIndex):(C.index=I.playlistIndex,C.listId!==I.playlistId&&C.clearQueue(),C.responsePlaylistData=I.playlistPanelRenderer,C.listId=I.playlistId,C.playlistProxy=new hrC(C.JSC$10703_playlistNetworkManager,I.playlistId,C.setPlaylistData.bind(C),_.pDE(I.playlistPanelRenderer)));else if(!C.queueProxy)C.responsePlaylistData=void 0;else if(I.playingVideoId&&Y.clientParams.autoSaveToQueue){if(C.index===void 0){_.Fo(Error("Ff"));C.clearQueue();break a}C.queueProxy.videoIds.includes(I.playingVideoId)||
(C.index+=1,C.queueProxy.JSC$10649_setCurrentIndex(C.index),C.queueProxy.addVideos([I.playingVideoId],{},C.index))}_.HP(C,_.iH(C,C.response.autoplayRenderer))}})};var BN4=function(r,f){f=f===void 0?_.jN():f;EG.call(this);this.mZ.push(new ya(this.bU,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},f));this.mZ.push(new K3(this.bU,r,!1,!1));_.N("web_response_commands_chunk_processor")&&this.mZ.push(new SN)};
_.t(BN4,EG);BN4.prototype.processChunk=function(r){r&&r.data.player===void 0&&this.bU.resolve();EG.prototype.processChunk.call(this,r)};var UG=function(r,f){r=r===void 0?{layer:0}:r;this.hasRun=!1;this.createScreenConfig=r;this.qO5=f};
_.t(UG,AL);UG.prototype.validate=function(r){return!(this.hasRun||!r.endpoint)};
UG.prototype.handle=function(r){var f=_.IB(),I,C,Y=(C=_.F((I=r.endpoint)==null?void 0:I.commandMetadata,_.oo))==null?void 0:C.rootVe;this.qO5&&Y?_.f3(f,Y,this.qO5,this.createScreenConfig):UMs(f,r.endpoint,this.createScreenConfig);this.hasRun=!0};var sG=function(r,f){this.hasRun=!1;this.vPy=r;this.previousVideoId=f};
_.t(sG,AL);sG.prototype.validate=function(r){return _.N("kevlar_continue_playback_without_player_response")&&(r=_.F(r.endpoint,_.vj),(r==null?0:r.videoId)&&this.previousVideoId&&(r==null?void 0:r.videoId)===this.previousVideoId&&(r==null?0:r.continuePlayback))?!1:this.vPy.a9S===0};
sG.prototype.handle=function(r){_.iz.getInstance().triggerAction("yt-stop-old-player",r.data,!0)};var qq4=function(r){r=r===void 0?{layer:0}:r;EG.call(this);this.mZ.push(new sG(this));this.mZ.push(new UG(r));this.mZ.push(new Va(r))};
_.t(qq4,EG);var uu4=function(){this.hasRun=this.hasRun=!1};
_.t(uu4,AL);uu4.prototype.validate=function(r){return!this.hasRun&&!(!r.data.csn||!r.data.rootVe)};
uu4.prototype.handle=function(r){this.hasRun=!0;_.idw(r.data.csn,r.data.rootVe,3)};var D53=function(){AL.apply(this,arguments)};
_.t(D53,AL);D53.prototype.validate=function(r){return!!r.data.preconnect};
D53.prototype.handle=function(r){_.Xc("bc");r=_.E(r.data.preconnect);for(var f=r.next();!f.done;f=r.next())f=f.value,(new Image).src=f};var rIU=function(r,f,I){I=I===void 0?{layer:0}:I;EG.call(this);this.mZ.push(new K3(this.bU,r));this.mZ.push(new UG(I));this.mZ.push(new Va(I))};
_.t(rIU,EG);var fMU=function(r,f,I,C,Y){I=I===void 0?{layer:0}:I;C=C===void 0?_.jN():C;EG.call(this);var V=!!f&&!!f.clientParams&&!!f.clientParams.miniplayer;V&&this.mZ.push(new uu4);this.mZ.push(new ya(this.bU,f,C));this.mZ.push(new D53);var S,h;this.mZ.push(new K3(this.bU,r,V,!((S=f.clientParams)==null||!S.fromHistory),(h=f.clientParams)==null?void 0:h.previousVideoId,C,f.tempData));var w;this.mZ.push(new sG(this,(w=f.clientParams)==null?void 0:w.previousVideoId));var n;(n=f.clientParams)!=null&&n.fromHistory||
(I.layer||(I=Object.assign({},I,{layer:V?3:0})),this.mZ.push(new UG(I,Y)),this.mZ.push(new Va(I)));_.N("web_response_commands_chunk_processor")&&this.mZ.push(new SN)};
_.t(fMU,EG);var OG,YJ4;OG={};
_.IMC=(OG["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},OG["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},OG["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},OG["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},OG["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},OG["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},OG["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},OG);_.oa=new _.WW("yt-edu");_.CF4=function(){this.JSC$10805_eduDisplayedThisLoad_={}};
YJ4=function(r){var f=_.CF4.getInstance();var I=_.Bw("kevlar_tooltip_impression_cap");f=I&&parseInt(_.oa.get(r+"-impression")||0,10)>=I||_.oa.get(r+"-dismissed")?!1:(I=_.IMC[r])&&!f.JSC$10805_eduDisplayedThisLoad_[I.setKey||r]&&(I.titleText&&_.VR(I.titleText)||I.bodyText&&_.VR(I.bodyText))?!0:!1;if(!f)return null;f=_.IMC[r];if(!f)return null;I=f.bodyText?_.VR(f.bodyText):void 0;var C=f.titleText?_.VR(f.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:f.position,popup:{bubbleHintRenderer:{text:C?
_.iX(C):void 0,detailsText:I?_.iX(I):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.iX(_.VR("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:r}}]}}}}}}}},{eduImpressionAction:{key:r}}]};
_.uO(_.CF4);var nnd=!1;for(var lM3="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),V9_=[],Qa=6;Qa>=1;Qa--)V9_.push({columnCount:Qa,query:Qa==1?0:Qa*2*107-4+32,className:"grid-"+Qa+"-columns",width:Qa*2*107+"px"});_.SJ4=function(r){this.actionRouter_=r=r===void 0?_.iz.getInstance():r;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.Ehg(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.Ehg=function(r){var f=r.miniGuideVisible_?72:0,I=r.documentWidth_-(r.guidePersistentAndVisible_?240:f);return V9_.find(function(C){return I>C.query})};
_.uO(_.SJ4);var xPC=function(){var r=this;this.JSC$10817_keyboardInUse=!1;document.addEventListener("keydown",function(){r.onKeydown()});
document.addEventListener("mousedown",function(){r.JSC$10817_keyboardInUse=!1})},hXs;
xPC.prototype.isKeyBoardInUse=function(){return this.JSC$10817_keyboardInUse};
xPC.prototype.onKeydown=function(){this.JSC$10817_keyboardInUse=!0};var wgg,G$;_.A9=new _.WW("yt-mentions");_.Zv=function(){};
wgg=function(r,f){return G$(f,"drag-to-reorder-edu-displayed")};
G$=function(r,f,I,C,Y,V){I=I===void 0?"OPEN_POPUP_POSITION_TOP":I;if(f){if(_.A9.get(f))return;_.A9.set(f,!0,C)}if(Y&&V!==void 0){f=Number(_.A9.get(Y)||0);if(f>=V)return;_.A9.set(Y,f+1)}return[{openPopupAction:{popupType:"HINT",position:I,popup:{bubbleHintRenderer:{detailsText:r,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.uO(_.Zv);var bBV,pgD,nh3;bBV=function(r,f,I,C){this.JSC$10827_taskManager_=r;this.onFulfilled_=typeof f==="function"?f:null;this.onRejected_=typeof I==="function"?I:null;this.JSC$10827_context_=C};
pgD=function(r,f){r.onFulfilled_&&_.pF(r.JSC$10827_taskManager_,function(){r.onFulfilled_.call(r.JSC$10827_context_,f)})};
nh3=function(r,f){r.onRejected_&&_.pF(r.JSC$10827_taskManager_,function(){r.onRejected_.call(r.JSC$10827_context_,f)})};
_.kP=function(r){this.JSC$10830_taskManager_=r;this.callbacks_=[]};
_.kP.prototype.then=function(r,f,I){this.callbacks_.push(new bBV(this.JSC$10830_taskManager_,r,f,I));return this};
_.kP.prototype.onSuccess=function(r){this.callbacks_.forEach(function(f){pgD(f,r)})};
_.kP.prototype.onFailure=function(r){this.callbacks_.forEach(function(f){nh3(f,r)})};
_.kP.prototype.cancel=function(){this.callbacks_.length=0};
SgC(_.kP);_.aHK=null;_.dW=new _.Go("ACTIVITY_TOKEN");var Pnd=/^[a-zA-Z0-9_\-]{11}$/;var tpB=_.de(function(){var r,f;return(f=(r=window).matchMedia)==null?void 0:f.call(r,"(prefers-reduced-motion: reduce)").matches});var dPV=_.de(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 r=_.jH("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");r||(r=_.wL("VIDEO"),_.OH("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
r));return!!(r&&r.canPlayType&&r.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var zXX;_.BP=new _.Go("SHORTS_CONTROLLER_TOKEN");zXX=new _.Go("SHORTS_STATE_STORE_TOKEN");var qA=function(r,f){var I=_.XE.apply(2,arguments);r=r===void 0?0:r;_.nf.call(this,f,I);this.errorType=r;Object.setPrototypeOf(this,this.constructor.prototype)};
_.t(qA,_.nf);var M94,gh4,XgX,zeU,KG,yjE,PFX,F5_,mPC,cIq,TAU;M94=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(r){return r+"="}).join("|"));
gh4=RegExp(".*\\?.*playnext=1.*");_.uH=function(r,f,I,C){this.watchEndpointMap=r;this.reelWatchEndpointMap=f;this.innerTubeTransportService=I;this.fetchPbj=C};
XgX=function(r,f,I){var C=_.a().resolve(_.ZY(aM3));_.uH.instance=new _.uH(r,f,I,C)};
_.NAC=function(r,f){var I=_.Bw("web_pbj_log_warning_rate",0);I=I>0&&Math.random()<I;var C;if((C=_.F(f.commandMetadata,_.oo))==null||!C.rootVe)return I&&_.t7(Error("Pf")),!1;var Y;C=(Y=_.F(f.commandMetadata,_.oo))==null?void 0:Y.url;if(!C)return I&&_.t7(Error("Qf")),!1;if(gh4.test(C))return!0;if(M94.test(C))return I&&_.t7(Error("Rf`"+C)),!1;if(_.F(f,_.vj)){if(!(r.watchEndpointMap.watchNext&&r.watchEndpointMap.player||_.N("kevlar_fetch_initial_data_op_watch_client")))return I&&_.t7(Error("Lf")),!1;
r=_.Bw("web_pbj_log_warning_rate",0);r=r>0&&Math.random()<r;_.F(f,_.vj)?$zq(f)?f=!0:(r&&_.t7(Error("Mf")),f=!1):(r&&_.t7(Error("Lf")),f=!1);return f}if(_.F(f,_.xO))return Ful(f);if(_.F(f,_.c_))return!0;r=_.LQ(r.innerTubeTransportService,f);!r&&I&&_.Fo(Error("Sf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(f)});return r};
zeU=function(r,f,I,C,Y,V){f={url:f};if(I==null?0:I.itct)f.parentTrackingParams=I.itct;var S=_.yC(DzU);return _.cP(r.innerTubeTransportService,f,S).then(function(h){(h=h.endpoint)||(h=_.h9);(I==null?0:I.itct)&&h&&!h.trackingParams&&(h.trackingParams=I.itct);var w=Ei(h);return KG(r,h,I,C,w,Y,V)})};
KG=function(r,f,I,C,Y,V,S,h){h=h===void 0?{}:h;if(r.fetchPbj&&!_.NAC(r,f)&&!_.N("force_one_platform")){h=r.fetchPbj(f);var w=_.fe(h.then(function(Z){if(!Z)throw Error("Tf");S(w)||V(f,Z);return Z}));
return w}var n,d,z={rootVe:(n=_.F(f.commandMetadata,_.oo))==null?void 0:n.rootVe,url:(d=_.F(f.commandMetadata,_.oo))==null?void 0:d.url,endpoint:f,page:Y};if(_.F(f,_.vj)){var g,X={contentPlaybackContext:_.hN(I,(g=_.F(f.commandMetadata,_.oo))==null?void 0:g.url,C)},P=_.eu();_.N("web_streaming_watch")&&window.TextDecoderStream?(h=$PB(r.innerTubeTransportService,f,X,function(Z){!z.response&&Z.content&&(z.response=Z.content);!z.playerResponse&&Z.player&&(z.playerResponse=Z.player);V(f,z)}),n=xJB(f),n.length&&
(z.preconnect=n,V(f,z)),F5_(h,P,z).catch(function(Z){Z instanceof qA&&Z.errorType===2&&PFX(r,f,X,z,V,S,P)})):PFX(r,f,X,z,V,S,P);
return P.promise}if(_.F(f,_.xO)){var W;if(((W=_.F(f,_.xO))==null?void 0:W.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var m=_.eu();_.t9X(_.a().resolve(_.BP),f).then(function(Z){TAU(r,I,C,Y,V,m,Z)});
return m.promise}h=_.fe();var v;n={contentPlaybackContext:_.hN(I,(v=_.F(f.commandMetadata,_.oo))==null?void 0:v.url,C)};(v=r.reelWatchEndpointMap.player)&&(v=v().JSC$11807_getRequest(f,n))&&(h=_.cP(r.innerTubeTransportService,v.innerTubeRequest,v.input,f.clickTrackingParams,v.config));v=_.fe();(d=r.reelWatchEndpointMap.reelItemWatch)&&(d=d().JSC$11807_getRequest(f))&&(v=_.cP(r.innerTubeTransportService,d.innerTubeRequest,d.input,f.clickTrackingParams,d.config));d=_.fe();(g=r.reelWatchEndpointMap.reelWatchSequence)&&
_.F(f,_.xO).sequenceParams&&(n=g().JSC$11807_getRequest(f,n))&&(d=_.cP(r.innerTubeTransportService,n.innerTubeRequest,n.input,f.clickTrackingParams,n.config));n=_.fe(z);g=_.eu();cIq(f,n,h,v,d,V,S,g);return g.promise}var O;if(_.F(f,gnu)&&((O=_.F(f.commandMetadata,_.oo))==null?0:O.url))return h=mMm(_.Hh(Pk().location.href),_.Hh(_.F(f.commandMetadata,_.oo).url)).toString(),zeU(r,h,I,C,V,function(){return!1});
if(_.F(f,_.c_))return V(f,z),_.fe(z);if(_.LQ(r.innerTubeTransportService,f)){h=Object.assign({},{tempData:I,disableCache:I.disableCache},h);var k=_.mC(r.innerTubeTransportService,f,h).then(function(Z){z.response=Z;S(k)||V(f,z);return z});
return k}return _.fe(z)};
_.L53=function(r,f,I,C){if(_.F(f,_.vj)||_.F(f,_.xO)&&(_.N("mweb_enable_shorts_innertube_player_prefetch")||_.N("kevlar_enable_shorts_prefetch_in_sequence"))||_.F(f,B8T)&&_.N("web_enable_prefetching_videos_on_home")){var Y,V={contentPlaybackContext:_.hN(I,(Y=_.F(f.commandMetadata,_.oo))==null?void 0:Y.url,C),prefetchPlaybackContext:ciK(I)},S,h,w;if(((S=_.F(f,_.vj))==null?void 0:(h=S.watchEndpointSupportedPrefetchConfig)==null?void 0:(w=h.prefetchHintConfig)==null?void 0:w.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(I=
r.watchEndpointMap.watchNext)if(V=I().JSC$11807_getRequest(f,V))return Promise.resolve(_.cP(r.innerTubeTransportService,V.innerTubeRequest,V.input,void 0,V.config).then(function(z){return z}))}else if(_.F(f,_.xO)&&_.N("web_prefetch_riw_for_next_video")){if(I=r.reelWatchEndpointMap.reelItemWatch)if((I=I().JSC$11807_getRequest(f,V))&&_.cP(r.innerTubeTransportService,I.innerTubeRequest,I.input,void 0,I.config).then(function(z){return z}),I=r.reelWatchEndpointMap.player)if(V=I().JSC$11807_getRequest(f,
V))return Promise.resolve(_.cP(r.innerTubeTransportService,V.innerTubeRequest,V.input,void 0,V.config).then(function(z){return z}))}else if(I=r.watchEndpointMap.player)if(V=I().JSC$11807_getRequest(f,V))return Promise.resolve(_.cP(r.innerTubeTransportService,V.innerTubeRequest,V.input,void 0,V.config).then(function(z){return z}))}else if(_.LQ(r.innerTubeTransportService,f)){var n={tempData:I},d=W5U(r.innerTubeTransportService,f);
return d?new Promise(function(z,g){var X,P;return _.x(function(W){if(W.nextAddress==1)return _.b(W,d,2);if(W.nextAddress!=4)return X=W.yieldResult,X.JSC$11814_getStoreKey(f,n)?_.b(W,_.mC(r.innerTubeTransportService,f,n),4):(g(new _.nf("Prefetching request builder with no store key.",f)),W.jumpTo(0));P=W.yieldResult;z(P);_.wO(W)})}):Promise.reject(new _.nf("Prefetching unregistered request builder.",f))}return Promise.reject(new _.nf("No request builder available to prefetch endpoint.",f))};
yjE=function(r,f){var I,C,Y;if(_.F(f,_.vj)){var V=r.watchEndpointMap.watchNext;V&&(I=V());(r=r.watchEndpointMap.player)&&(C=r())}else if(_.F(f,_.xO))(V=r.reelWatchEndpointMap.reelItemWatch)&&(I=V()),(V=r.reelWatchEndpointMap.player)&&(C=V()),(r=r.reelWatchEndpointMap.reelWatchSequence)&&(Y=r());else{a:{r=$lE(f,r.innerTubeTransportService.endpointMap);if(r!==void 0)if(typeof r.then==="function")_.Fo(new _.nf("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",f));else break a;
r=void 0}r&&(I=r)}var S,h,w;return{content:(S=I)==null?void 0:S.JSC$11814_getStoreKey(f),player:(h=C)==null?void 0:h.JSC$11814_getStoreKey(f),reelSequence:(w=Y)==null?void 0:w.JSC$11814_getStoreKey(f)}};
PFX=function(r,f,I,C,Y,V,S){var h=_.fe(),w=r.watchEndpointMap.player;w&&(w=w().JSC$11807_getRequest(f,I))&&(h=_.cP(r.innerTubeTransportService,w.innerTubeRequest,w.input,f.clickTrackingParams,w.config));w=_.fe();var n=r.watchEndpointMap.watchNext;n&&(I=n().JSC$11807_getRequest(f,I))&&(w=_.cP(r.innerTubeTransportService,I.innerTubeRequest,I.input,f.clickTrackingParams,I.config));r=_.fe(C);mPC(f,r,h,w,Y,V,S)};
F5_=function(r,f,I){return _.x(function(C){if(C.nextAddress==1)return _.b(C,r,2);f.resolve(I);_.wO(C)})};
mPC=function(r,f,I,C,Y,V,S){var h,w,n,d,z;_.x(function(g){switch(g.nextAddress){case 1:return _.b(g,f,2);case 2:h=g.yieldResult;if(V(S.promise))return S.resolve(h),g.return();Y(r,h);w=xJB(r);if(!w.length){g.jumpTo(3);break}return _.b(g,f,4);case 4:h.preconnect=w,Y(r,h);case 3:return _.l_(g,5),_.b(g,I,7);case 7:n=g.yieldResult;_.Hd(g,6);break;case 5:return d=_.ha(g),S.reject(d),g.return();case 6:if(n===void 0)return h.reload=!0,Y(r,h),S.resolve(h),g.return();if(V(S.promise))return S.resolve(h),g.return();
h.playerResponse=n;Y(r,h);_.l_(g,8);return _.b(g,C,10);case 10:z=g.yieldResult;_.Hd(g,9);break;case 8:_.ha(g);case 9:if(z===void 0)return h.response={responseContext:{}},S.resolve(h),g.return();if(V(S.promise))return S.resolve(h),g.return();h.response=z;Y(r,h);S.resolve(h);_.wO(g)}})};
cIq=function(r,f,I,C,Y,V,S,h){var w,n,d,z,g,X;_.x(function(P){switch(P.nextAddress){case 1:return _.b(P,f,2);case 2:w=P.yieldResult;if(S(h.promise))return h.resolve(w),P.return();V(r,w);n=xJB(r);if(!n.length){P.jumpTo(3);break}return _.b(P,f,4);case 4:w.preconnect=n,V(r,w);case 3:return _.l_(P,5),_.b(P,I,7);case 7:d=P.yieldResult;_.Hd(P,6);break;case 5:return z=_.ha(P),h.reject(z),P.return();case 6:if(d===void 0)return w.reload=!0,V(r,w),h.resolve(w),P.return();if(S(h.promise))return h.resolve(w),
P.return();w.playerResponse=d;V(r,w);_.l_(P,8);return _.b(P,C,10);case 10:g=P.yieldResult;_.Hd(P,9);break;case 8:_.ha(P);case 9:if(g===void 0)return w.response={responseContext:{}},h.resolve(w),P.return();if(S(h.promise))return h.resolve(w),P.return();w.response=g;V(r,w);_.l_(P,11);return _.b(P,Y,13);case 13:X=P.yieldResult;_.Hd(P,12);break;case 11:_.ha(P);case 12:if(S(h.promise))return h.resolve(w),P.return();w.reelWatchSequenceResponse=X;V(r,w);h.resolve(w);_.wO(P)}})};
TAU=function(r,f,I,C,Y,V,S){var h,w,n,d,z,g;_.x(function(X){if((h=S)==null||!h.replacementEndpoint)return V.reject(),X.return();w=S.replacementEndpoint;(n=_.F(w,_.xO))?(S.sequenceContinuation&&(n.sequenceParams=S.sequenceContinuation),d=_.a().resolve(_.BP),z=n.sequenceParams,eX4(d,w)&&delete n.sequenceParams,g=KG(r,w,f,I,C,Y,function(){return!1}),g.then(function(P){return _.x(function(W){if(W.nextAddress==1)return JI4(d,{reelWatchEndpoint:{sequenceParams:z}},P),_.b(W,0,2);
V.resolve(P);_.wO(W)})})):V.reject();
_.wO(X)})};_.jQ4=function(r){if(r.validatedFragments_.length==0)return null;if(!r.mergedPrefetchedData_){for(var f=[],I=_.E(r.validatedFragments_),C=I.next();!C.done;C=I.next()){C=_.E(r.fragmentConfiguration_[C.value].graftedKeys);for(var Y=C.next();!Y.done;Y=C.next())(Y=r.prefetchedData_[Y.value].trackingParams)&&f.push(Y)}r.mergedPrefetchedData_={};Object.assign(r.mergedPrefetchedData_,r.prefetchedData_,{clientSideGrafts:f})}return r.mergedPrefetchedData_};var HBs;_.Dv=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
HBs=function(r,f,I){if(_.X2R(f))return r.prefetchCache_.get(_.NJm(f,I))};_.rQ=new _.Go("NAVIGATION_TOKEN");var iB3=function(r){var f=this;var I=I===void 0?mzB():I;var C=C===void 0?_.a().resolve(_.rQ):C;this.onePickCommand=r;this.JSC$10931_playlistNetworkManager=I;this.navigationManager=C;this.videoPickerBuilder=_.Wuu("yt-addtoplaylist");_.Tt_(goX(as4(MMB(this.videoPickerBuilder.setTitle(r.modalTitle).setSize(1E3).addView($C_()).addView(Ntg())).addView("youtube"),r.selectButtonLabel)),function(Y){f.handleAction(Y)})};
iB3.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
iB3.prototype.handleAction=function(r){var f=this;if(r&&this.onePickCommand.listId&&r.action==="picked"&&r.docs){var I=[];r.docs.forEach(function(C){I.push({addedVideoId:C.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10931_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,I).then(function(){_.N("playlist_add_video_hard_reload_killswitch")?f.navigationManager.reload():RXB(f.navigationManager)})}};var vh4=function(){if(this.constructor===vh4)throw new TypeError("Uf");};
_.l=vh4.prototype;_.l.dispose=function(){};
_.l.disconnect=function(){};
_.l.reconnect=function(){};
_.l.observe=function(r,f,I){return{element:r,option:I}};
_.l.unobserveByKey=function(){};var eVK=function(r,f){f=f===void 0?0:f;vh4.call(this);this.viewroot=r;this.defaultPrescanHeight=f;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),r?{root:r,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.t(eVK,vh4);_.l=eVK.prototype;_.l.dispose=function(){this.disconnect();this.handlers.clear()};
_.l.disconnect=function(r){this.isConnected=!1;this.pauseObservingUntilReconnect=r===void 0?!1:r;this.observer.disconnect();r=_.E(this.prescanObservers.values());for(var f=r.next();!f.done;f=r.next())f.value.disconnect()};
_.l.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var r=_.E(this.handlers),f=r.next();!f.done;f=r.next()){var I=_.E(f.value);f=I.next().value;var C=I.next().value;I=!1;C=_.E(C.keys());for(var Y=C.next();!Y.done;Y=C.next())if((Y=Y.value)&&Y.state==="prescan"){I=!0;break}I&&K53(this,f).observe(f);this.observer.observe(f)}}};
_.l.handleObserveEvent=function(r){r=_.E(r);for(var f=r.next();!f.done;f=r.next()){f=f.value;var I=this.handlers.get(f.target);if(I){var C=f.isIntersecting;I=_.E(I);for(var Y=I.next();!Y.done;Y=I.next()){var V=_.E(Y.value);Y=V.next().value;V=V.next().value;Y&&(Y.state==="visible"&&C||Y.state==="hidden"&&!C)&&(V(f.target,Y.state),Y.calledOnce&&this.unobserveByKey({element:f.target,option:Y}))}}}};
_.l.handlePrescanEvent=function(r){r=_.E(r);for(var f=r.next();!f.done;f=r.next()){f=f.value;var I=this.handlers.get(f.target);if(I&&f.isIntersecting){I=_.E(I);for(var C=I.next();!C.done;C=I.next()){var Y=_.E(C.value);C=Y.next().value;Y=Y.next().value;C&&C.state==="prescan"&&(Y(f.target,C.state),C.calledOnce&&this.unobserveByKey({element:f.target,option:C}))}}}};
_.l.observe=function(r,f,I){var C=(C=this.handlers.get(r))&&C.has(I)?{element:r,option:I}:void 0;if(C)return C;C={element:r,option:I};this.handlers.has(r)||this.handlers.set(r,new Map);var Y=this.handlers.get(r);Y&&!Y.has(I)&&Y.set(I,f);this.pauseObservingUntilReconnect||(I.state==="prescan"&&K53(this,r).observe(r),this.observer.observe(r));return C};
_.l.unobserveByKey=function(r){var f=this.handlers.get(r.element);if(f&&f.has(r.option)){f.delete(r.option);if(r&&r.option.state==="prescan")for(var I=_.E(this.prescanObservers.values()),C=I.next();!C.done;C=I.next())C.value.unobserve(r.element);f.size===0&&(this.handlers.delete(r.element),this.observer.unobserve(r.element))}};
var K53=function(r,f){var I=r.defaultPrescanHeight;f.hasAttribute("prescan-height")&&(f=Number(f.getAttribute("prescan-height")),isNaN(f)||(I=f));if(r.prescanObservers.has(I))return r.prescanObservers.get(I);f="-0.1px -0.1px "+I+"px -0.1px";f=new IntersectionObserver(r.handlePrescanEvent.bind(r),r.viewroot?{root:r.viewroot,rootMargin:f}:{rootMargin:f});r.prescanObservers.set(I,f);return f};var yIB=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],UP4=function(){var r,f=this;this.JSC$10948_actionRouter=r=r===void 0?_.iz.getInstance():r;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return f.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return f.visibilityObservedElementHandlerKeys}}},sQg,oh4,ZBq;
UP4.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.N("kevlar_use_vimio_behavior")&&_.Lz("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=Jiu())};
UP4.prototype.dispose=function(){this.visibilityMonitor&&_.di(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
UP4.prototype.handleVisibilityRefreshed=function(){for(var r=_.E(this.targetMap.entries()),f=r.next();!f.done;f=r.next()){var I=_.E(f.value);f=I.next().value;I=I.next().value;_.OBg(this,f,I)}};
_.AIg=function(r,f,I){oh4(r,I);var C=_.QQ_(r,f);C.element=I;r.targetedElements.set(I,f);_.OBg(r,f,C)};
oh4=function(r,f){var I=r.targetedElements.get(f);if(I){var C=r.targetMap.get(I);C&&(delete C.element,r.targetMap.set(I,C));r.targetedElements.delete(f);r.visibilityObserver&&r.visibilityObservedElementHandlerKeys&&(I=r.visibilityObservedElementHandlerKeys.get(f))&&(r.visibilityObserver.unobserveByKey(I),r.visibilityObservedElementHandlerKeys.delete(f))}};
_.OBg=function(r,f,I){var C=I.action,Y=I.element;Y&&C&&(yIB.includes(f)||_.Lz("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||r.visibilityMonitor&&r.visibilityMonitor.isNodeVisible(Y)?ZBq(r,f,I):r.visibilityObserver&&(r.visibilityObservedElementHandlerKeys||(r.visibilityObservedElementHandlerKeys=new WeakMap),C=r.visibilityObserver.observe(Y,function(){ZBq(r,f,I);r.visibilityObservedElementHandlerKeys.delete(Y)},{calledOnce:!0,
state:"visible"}),r.visibilityObservedElementHandlerKeys.set(Y,C)))};
ZBq=function(r,f,I){var C=I.action;(I=I.element)&&C&&(_.WJ(r.JSC$10948_actionRouter,[C],I),r.targetMap.delete(f),r.targetedElements.delete(I),r.triggeredTargets.add(f))};
_.QQ_=function(r,f){var I=r.targetMap.get(f);I||(I={},r.targetMap.set(f,I));return I};
_.fh=function(){sQg||(sQg=new UP4);return sQg};var Gf3=document.createElement("div");Gf3.style.touchAction="pan-down";var jOm=Gf3.style.touchAction==="pan-down";var kfs,BA3;kfs=function(){this.hammerFn=plT();this.JSC$10956_screenManager=_.IB();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.pQ(83615);_.C3(this.JSC$10956_screenManager,this.ve);HTu()};
_.I_=function(){BA3||(BA3=new kfs);return BA3};
kfs.prototype.registerTouchEvents=function(r,f,I){var C=_.XE.apply(3,arguments),Y=this.hammerFn(r,{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}]]});I&&Y.set({touchAction:I});this.nodeManagerMapping.set(r,Y);var V=
iTU(f);C=_.E(C);for(var S=C.next();!S.done;S=C.next()){S=S.value;if(S.includes("swipe")||S.includes("pinch")||S.includes("pan"))S.includes("swipe")?Y.get("swipe").set({enable:!0,direction:V,velocity:.2}):S.includes("pinch")?Y.get("pinch").set({enable:!0}):S.includes("pan")&&(Y.get("pan").set({enable:!0,direction:V}),Y.get("swipe").set({enable:!0,direction:V,velocity:.2}),Y.get("swipe").recognizeWith("pan"));qJC(this,r,Y,S)}};
var qJC=function(r,f,I,C){I.on(C,function(Y){if(C.includes("pinch"))r.lastPinchTime=Date.now();else if(C.includes("swipe")&&Date.now()-r.lastPinchTime<400)return;Y.pointerType!=="mouse"&&(Y=C==="doubletap"?{coordinates:Y.center}:C.includes("pan")?Y:C.includes("swipe")?{target:Y.target}:{},f.dispatchEvent(new CustomEvent(C,{bubbles:!0,composed:!0,detail:Y})))})};
kfs.prototype.unregisterTouchEvents=function(r){var f=_.XE.apply(1,arguments),I=this.nodeManagerMapping.get(r);if(I){f=_.E(f);for(var C=f.next();!C.done;C=f.next())I.off(C.value);this.nodeManagerMapping.delete(r);r.style.touchAction="unset"}};var uhX=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var RVK=null;var r2V;_.Ch=function(r,f,I){var C=I&&I>0?I:0;I=C?Date.now()+C*1E3:0;if((C=C?(0,_.DPU)():r2V())&&window.JSON){typeof f!=="string"&&(f=JSON.stringify(f,void 0));try{C.set(r,f,I)}catch(Y){C.remove(r)}}};
_.YJ=function(r){var f=r2V(),I=(0,_.DPU)();if(!f&&!I||!window.JSON)return null;try{var C=f.get(r)}catch(Y){}if(typeof C!=="string")try{C=I.get(r)}catch(Y){}if(typeof C!=="string")return null;try{C=JSON.parse(C,void 0)}catch(Y){}return C};
_.lg=function(r){try{var f=r2V(),I=(0,_.DPU)();f&&f.remove(r);I&&I.remove(r)}catch(C){}};
_.DPU=_.de(function(){try{var r=new XjU;var f=r.isAvailable()?r:null}catch(I){return null}return f?new _.uK(f):null});
r2V=_.de(function(){var r=new NdK;return r.isAvailable()?new _.uK(r):null});var fSU=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},fLl=function(){fSU.instance||(fSU.instance=new fSU);
return fSU.instance},ILc=function(r){var f=r.networkEvents;
r.networkEvents=[];return _.N("enable_network_monitoring")?f:[]};var ISC;ISC={};_.Cus=QD("yt-serviceworker-metadata",{objectStores:(ISC.auth={addedAtVersion:1},ISC["resource-manifest-assets"]={addedAtVersion:2},ISC),shared:!0,upgrade:function(r,f){f(1)&&m8(r,"resource-manifest-assets");f(2)&&m8(r,"auth")},
version:2});var OTB=self.location.origin+"/";onR([/\.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\//]);onR([/purge_shell=1/]);var YXg=void 0;YXg=YXg===void 0?[]:YXg;for(var lS_=[],VnT=_.E(IWU),Er_=VnT.next();!Er_.done;Er_=VnT.next())lS_.push({key:Er_.value});for(var SXs=_.E(YXg),xQs=SXs.next();!xQs.done;xQs=SXs.next())lS_.push(xQs.value);var h23,nJ=_.Yq==null?void 0:(h23=_.Yq.performance)==null?void 0:h23.memory,ZTK=!1,CQR={},BJw={},d_={},zF=navigator;var Vb=function(r){this.JSC$11000_expiringStorage=new zU(r)};
Vb.prototype.set=function(r,f,I){I=I!==void 0?Date.now()+I:void 0;this.JSC$11000_expiringStorage.set(r,f,I)};
Vb.prototype.get=function(r){return this.JSC$11000_expiringStorage.get(r)};
Vb.prototype.remove=function(r){this.JSC$11000_expiringStorage.remove(r)};var wHR=_.op(["https://www.youtube.com/",""]),bYR=_.op(["https://studio.youtube.com/",""]),MWP="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",nGK=null,$MB;var wZD=_.op(["https://www.youtube.com/iframe_api"]),En=function(){this.playerResolver_=_.eu();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.n9;this.playbackDurationSeconds_=0},bU3=function(r){var f=function(){return window.YT&&typeof window.YT.ready==="function"};
if(f())return _.fe(window.YT);var I=_.eu(),C=_.wL("SCRIPT");C.onload=C.onreadystatechange=function(){C.readyState&&C.readyState!="loaded"&&C.readyState!="complete"||(C.onload=_.n9,C.onreadystatechange=_.n9,C.onerror=_.n9,f()?I.resolve(window.YT):I.reject(new _.nf("Failed to load the iframe player library","script.onload",C.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
C.onerror=function(Y){C.onload=_.n9;C.onreadystatechange=_.n9;C.onerror=_.n9;I.reject(new _.nf("Failed to load the iframe player library","script.onerror",Y&&Y.target&&Y.target.src))};
_.vL(C,_.u_(wZD));r.insertBefore(C,r.firstChild);return I.promise},pZs=function(r,f,I){var C,Y;
_.x(function(V){switch(V.nextAddress){case 1:return r.playbackEndedCallback_=I,_.l_(V,2),_.b(V,bU3(f.parentElement||null),4);case 4:C=V.yieldResult;_.Hd(V,3);break;case 2:return Y=_.ha(V),Y instanceof _.nf&&Y.args&&Y.args[0]=="script.onerror"?_.t7(Y):_.Fo(Y),V.return();case 3:C.ready(function(){return new C.Player(f,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:r.onPlayerReady_.bind(r),onStateChange:r.onPlayerStateChange_.bind(r),
onCueRangeExit:r.onCueRangeExit_.bind(r)}})}),_.wO(V)}})};
_.l=En.prototype;_.l.getPlayerPromise=function(){return this.playerPromise_};
_.l.onPlayerReady_=function(r){this.playerResolver_.resolve(r.target)};
_.l.onPlayerStateChange_=function(r){if(r.data==YT.PlayerState.PLAYING){r=r.target;var f=r.getCurrentTime();r.addCueRange("playback",f,f+this.playbackDurationSeconds_)}};
_.l.onCueRangeExit_=function(r){r.data=="playback"&&(r.target.stopVideo(),this.playbackEndedCallback_())};
_.l.stopVideo=function(){this.playerPromise_.then(function(r){r.stopVideo()})};
var nrD=function(r){r.playerVars_&&r.playerPromise_.then(function(f){typeof f.cueVideoByPlayerVars!="function"?_.t7(new _.nf("vmh: player API not ready","cueVideoByPlayerVars",typeof f.cueVideoByPlayerVars)):f.cueVideoByPlayerVars(r.playerVars_)})};
En.prototype.playVideo=function(){var r=this;this.playerVars_&&this.playerPromise_.then(function(f){typeof f.loadVideoByPlayerVars!="function"?(f=new _.nf("vmh: player API not ready","loadVideoByPlayerVars",typeof f.loadVideoByPlayerVars),_.Fo(f)):f.loadVideoByPlayerVars(r.playerVars_)})};
var dQ4=function(r,f,I,C,Y){f&&(I===void 0&&(I=0),C===void 0&&(C=0),r.playbackDurationSeconds_=C/1E3,r.playerVars_={adformat:"17_8",videoId:f,suggestedQuality:"hd720",startSeconds:I/1E3,player_params:Y})};
En.prototype.mute=function(){this.playerPromise_.then(function(r){r.mute()})};
En.prototype.unMute=function(){this.playerPromise_.then(function(r){r.unMute()})};var LBK=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Sv;Sv=function(){this.tokenJars={};if(this.cookiesEnabled=_.wl()){var r=_.xB.get("CONSISTENCY",void 0);r&&z2g(this,{encryptedTokenJarContents:r})}};
_.eIw=function(){Sv.instance||(Sv.instance=new Sv);return Sv.instance};
Sv.prototype.handleResponse=function(r,f){if(!f)throw Error("Zf");var I,C;f=((I=f.innerTubeRequest.context)==null?void 0:(C=I.request)==null?void 0:C.consistencyTokenJars)||[];var Y;(r=(Y=r.responseContext)==null?void 0:Y.consistencyTokenJar)&&this.replace(f,r)};
Sv.prototype.replace=function(r,f){r=_.E(r);for(var I=r.next();!I.done;I=r.next())delete this.tokenJars[I.value.encryptedTokenJarContents];z2g(this,f)};
var z2g=function(r,f){if(f.encryptedTokenJarContents&&(r.tokenJars[f.encryptedTokenJarContents]=f,typeof f.expirationSeconds==="string")){var I=Number(f.expirationSeconds);setTimeout(function(){delete r.tokenJars[f.encryptedTokenJarContents]},I*1E3);
r.cookiesEnabled&&_.hd("CONSISTENCY",f.encryptedTokenJarContents,I,void 0,!0)}};var MnX,xJ;MnX=window.location.hostname.split(".").slice(-2).join(".");_.ct=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var r=_.Lz("LOCATION_PLAYABILITY_TOKEN");_.Lz("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=grD(this))&&(r=this.localStorage.get("yt-location-playability-token"));r&&(this.locationPlayabilityToken=r,this.mostRecentPosition=void 0)};
_.ct.getInstance=function(){xJ=_.jH("yt.clientLocationService.instance");xJ||(xJ=new _.ct,_.OH("yt.clientLocationService.instance",xJ));return xJ};
_.ct.prototype.setLocationOnInnerTubeContext=function(r){r.client||(r.client={});if(this.mostRecentPosition)r.client.locationInfo||(r.client.locationInfo={}),r.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),r.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),r.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),r.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)r.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.ct.prototype.handleResponse=function(r){var f;r=(f=r.responseContext)==null?void 0:f.locationPlayabilityToken;r!==void 0&&(this.locationPlayabilityToken=r,this.mostRecentPosition=void 0,_.Lz("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=grD(this))&&this.localStorage.set("yt-location-playability-token",r,15552E3):_.hd("YT_CL",JSON.stringify({loctok:r}),15552E3,MnX,!0))};
var grD=function(r){return r.localStorage===void 0?new _.WW("yt-client-location"):r.localStorage};
_.ct.prototype.clearLocationPlayabilityToken=function(r){r==="TVHTML5"?(this.localStorage=grD(this))&&this.localStorage.remove("yt-location-playability-token"):_.pju("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.ct.prototype.getCurrentPositionFromGeolocation=function(){var r=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var f=!1,I=1E4;_.Lz("INNERTUBE_CLIENT_NAME")==="MWEB"&&(f=!0,I=15E3);return new Promise(function(C,Y){navigator.geolocation.getCurrentPosition(function(V){r.mostRecentPosition=V;C(V)},function(V){Y(V)},{enableHighAccuracy:f,
maximumAge:0,timeout:I})})};
_.ct.prototype.createUnpluggedLocationInfo=function(r){var f={};r=r.coords;if(r==null?0:r.latitude)f.latitudeE7=Math.floor(r.latitude*1E7);if(r==null?0:r.longitude)f.longitudeE7=Math.floor(r.longitude*1E7);if(r==null?0:r.accuracy)f.locationRadiusMeters=Math.round(r.accuracy);return f};
_.ct.prototype.createLocationInfo=function(r){var f={};r=r.coords;if(r==null?0:r.latitude)f.latitudeE7=Math.floor(r.latitude*1E7);if(r==null?0:r.longitude)f.longitudeE7=Math.floor(r.longitude*1E7);return f};var aSg=function(r,f){var I=LA();r||(r="unknown");f||(f="unknown");r="MAIN_APP_WEB_PAGE_TYPE_"+r.toUpperCase();r in BP3||(r="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");f="MAIN_APP_WEB_REQUEST_TYPE_"+f.toUpperCase();f in qa3||(f="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.wM(I,{mainAppWeb:{pageType:r,requestType:f,isShellLoad:_.mO("IS_SHELL_LOAD",!1)}})},XZV={start:function(){_.wM(ZdR(),{mainAppWeb:_.Wt()})},
success:function(){_.bO(ZdR(),"SUCCESS")},
failure:function(){_.bO(ZdR(),"FAILURE")},
cancelled:function(){_.bO(ZdR(),"CANCELLED")}};var NKV,$QV,RIl;NKV=_.op(["/sw.js"]);$QV=_.op(["/sw.js?0"]);_.FxU=_.u_(NKV);RIl=_.u_($QV);var PuD=function(){var r=Error.apply(this,arguments);this.message=r.message;"stack"in r&&(this.stack=r.stack)};
_.t(PuD,Error);_.el.prototype.load=function(r){this.megabloxUrl_=_.Lz("YPC_MB_URL");_.m0(this.megabloxUrl_,(0,_.gL)(function(){r&&r()},this))};
_.RNB=function(r,f,I,C,Y,V,S,h,w,n,d){_.KBl(w);r.load((0,_.gL)(function(){try{var z=V?V:_.Lz("HL"),g=_.Lz("SESSION_INDEX");_.tml("client",function(){ph8("59",{helpCenterPath:"/youtube",locale:z,window:window}).JSC$7874_loadChatSupport({authuser:String(g)})})}catch(X){throw LJ(10,d,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),Y&&Y(X),_.Fo(X),X;
}tnB(this,f,I,C,Y,V,S,h,w,n,d)},r))};
_.el.prototype.openFixFlowDialog=function(r,f,I,C){this.load((0,_.gL)(function(){try{TKs(this,_.jH("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(r).withIntegratorCallback(f).load(I,C)}catch(Y){throw _.Fo(Y),Y;}},this))};
var TKs=function(r,f,I,C){var Y=f.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.N("enable_window_constrained_buy_flow_dialog")&&(Y=Y.usingPopupStyle(_.jH("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));C&&(Y=Y.usingCloseCallback(C));f.bootstrap.fromPaymentsUrl(r.megabloxUrl_);r=f.bootstrap.asMashupMode(Y);I=I?I:_.Lz("HL");r.usingGaiaIndex(_.Lz("SESSION_INDEX")).usingLocale(I).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.N("enable_google_payments_buyflow_material2_style_web")?
r.usingStyle(":m2;pc=#444;ac=#065fd4"):r.usingStyle(":md;pc=#444;ac=#065fd4");return r},tnB=function(r,f,I,C,Y,V,S,h,w,n,d){try{var z=_.jH("payments.business.integration");
if(!z)throw new PuD("payments.business.integration is undefined");var g=z.standaloneContextAuthId.forUserId(),X=TKs(r,z,V,h);S&&X.usingServerAnalyticsEventHandler(S);var P=X.inStandaloneContext(g).buyFlow(function(W){if(W&&(!W.integratorData||W.integratorData===""||W.error))if(W.error!=null)if(String(W.error)==="-1")_.yWl(w);else{var m=String(W.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";LJ(10,d,m,W.debugCode);
_.m4(m,w,W.debugCode);m=new _.nf("PAYMENT_ERROR_MESSAGE::"+W.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+W.internalErrorDetails);_.Fo(m)}else LJ(10,d,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.m4("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",w,"EMPTY_INTEGRATOR_DATA"),_.Fo(Error("bg"));I&&I(W)}).withEncryptedParameters(f);
n&&P.withClientParameters(cER(_.URu(n)));P.load(function(){LJ(24,d);_.$I("ttc",void 0,"commerce_transaction");n6$("commerce_transaction");C&&C()},function(W){if(W==null?0:W.debugCode)var m=W==null?void 0:W.debugCode;
else if(!W||(W==null?0:W.debugCode))m="EMPTY_LOAD_FAILURE_ERROR",_.Fo(Error(m));else{m="EMPTY_LOAD_FAILURE_DEBUG_CODE";var v=new _.nf("LOAD_FAILURE:"+W.message," DEBUG_CODE:"+m);_.Fo(v)}LJ(10,d,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",m);_.m4("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",w,m);_.Fo(W);Y&&Y(W)})}catch(W){throw W instanceof PuD&&(LJ(10,d,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),Y&&Y(W)),_.Fo(W),W;
}};var c23;c23=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.j2u=function(r,f){f=f===void 0?!1:f;r=c23.test(r)?_.SF(r):null;!f&&window.payments||!r?(r=_.eu(),f=r.promise,r.resolve()):f=_.To(r,{attributes:{"data-payments-main":"",id:"payment-lib"}});return f};var WxX;WxX=_.op(["//www.googletagmanager.com/gtm.js?id=",""]);_.hK=function(r,f){_.oC(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:f}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Lz("GL")}),f=_.wL("SCRIPT"),f.async=!0,_.vL(f,_.u_(WxX,r)),f.id="gtm",r=document.getElementsByTagName("script"),r.length==0?document.head.appendChild(f):(r=r[0],r.parentNode.insertBefore(f,r)))};
_.wQ=function(r){if(r=JSON.parse(r))window.dataLayer=window.dataLayer||[],window.dataLayer.push(r)};var LxT,mQ3;LxT=_.op(["https://clients2.google.com/gr/gr_sync.js"]);_.eNw=function(){};
_.eNw.prototype.init=function(){if(mQ3()){var r=_.eu();r.resolve();return r.promise}return _.To(_.u_(LxT)).then(function(){if(!mQ3())throw Error("cg");},function(){throw Error("dg");
})};
_.JzR=function(){if(!mQ3())return"";var r=window.google.gr;r.init({async:{schedule:"sync"},merchantId:"youtube"});r.start();r=r.finish();return r==null?"":r};
mQ3=function(){return window.google!=null&&window.google.gr!=null};var BDE,DVc=new Set,qTK;window.PolymerFakeBaseClassWithoutHtml=function(){};
_.y=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.t(_.y,PolymerFakeBaseClassWithoutHtml);_.rm=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.t(_.rm,PolymerFakeBaseClassWithoutHtml);var UMP=window.ShadyDOM;var NDK,aPm,FJP,PaU,TDd,cYc,bg,si;NDK=_.N("enable_shadydom_free_scoped_query_methods");aPm=_.N("enable_shadydom_free_scoped_node_methods");FJP=_.N("enable_shadydom_free_scoped_readonly_properties_batch_one");PaU=_.N("enable_shadydom_free_parent_node");TDd=_.N("enable_shadydom_free_children");cYc=_.N("enable_shadydom_free_last_child");bg=window.ShadyDOM;_.AN=bg&&bg.noPatch&&bg.wrap?bg.wrap:bg?function(r){return bg.patch(r)}:function(r){return r};
si=function(r){if(r instanceof ShadowRoot)this.host=(0,_.AN)(r.host),this.root=r;else if(r.$$){this.host=(0,_.AN)(r);var f;this.root=(f=r.root)!=null?f:this.host}else if(r.polymerController){this.host=(0,_.AN)(r);var I;this.root=(I=this.host.shadowRoot)!=null?I:this.host}else this.root=this.host=(0,_.AN)(r)};
XrR();$Vl();WJK();LJl();tcm();var e2V={querySelector:function(r,f){f=OYE(f,iA(r));r=_.Rb(r);return vt(r).prototype.querySelector.call(r,f)},
querySelectorAll:function(r,f){f=OYE(f,iA(r));r=_.Rb(r);return vt(r).prototype.querySelectorAll.call(r,f)}},J2s={appendChild:function(r,f){var I=iA(r),C=_.Ht(f);
return _.McR(_.Rb(r),I?_.yB(f,I,C):f)},
cloneNode:function(r,f){var I=_.Ht(r);r=_.Rb(r);f=vt(r).prototype.cloneNode.call(r,f);return I?Ui(f,I):f},
contains:function(r,f){var I=iA(r),C=_.Ht(f);return I!==C?!1:g0$(r,f)},
insertBefore:function(r,f,I){var C=iA(r),Y=_.Ht(f);r=_.Rb(r);f=C?_.yB(f,C,Y):f;return vt(r).prototype.insertBefore.call(r,f,I)},
removeChild:function(r,f){var I=iA(r);r=_.Rb(r);f=I?Ui(f,I):f;return vt(r).prototype.removeChild.call(r,f)},
replaceChild:function(r,f,I){var C=iA(r),Y=_.Ht(f);f=C?_.yB(f,C,Y):Y?Ui(f,Y):f;I=C?Ui(I,C):I;r=_.Rb(r);return vt(r).prototype.replaceChild.call(r,f,I)},
getRootNode:function(r,f){f=f===void 0?{composed:!0}:f;var I;if(((I=f)!=null?I:{}).composed)r=rYR(r);else{f=r;for(r=QNR(r);r;)f=r,r=ZYR(r);r=f}return r}},ejP=FJP?{firstChild:wrK,
nextSibling:STR,previousSibling:hjw,firstElementChild:b_R,lastElementChild:n0U,nextElementSibling:E0$,previousElementSibling:xVm,childNodes:dVK}:{};PaU&&(ejP.parentNode=Vcd);TDd&&(ejP.children=zjd);cYc&&(ejP.lastChild=prK);NDK&&mVK(e2V);aPm&&mVK(J2s);JYB();var j9R=function(r){this.node=r instanceof ShadowRoot?r.host:r};
H_K();i_B();var yYd=new WeakMap;var s9R=Symbol("wd");var Z_R=new Set(["tap","track","down","up"]),G7K=_.N("pbcm_fi_query_decorators");var ph=function(){return _.rm.apply(this,arguments)||this};
_.t(ph,_.rm);_.l=ph.prototype;_.l.getState=function(){return this.store.getState()};
_.l.dispatch=function(r){this.store.dispatch(r)};
_.l.beforeRegister=function(){if(this&&typeof this==="object"){var r;var f=!!this.useSignals||!((r=this.polymerController)==null||!r.useSignals)}else f=!1;if(!f&&this.properties)for(f=_.E(Object.keys(this.properties)),r=f.next();!r.done;r=f.next()){var I=r.value;r=this.properties[I];if(r.selector){if(r.computed)throw Error("jg");I=["reduxPropertiesRecomputeTrigger",'"'+I+'"'].concat(_.Na(r.selectorArgs||[])).join(",");r.computed="recomputeReduxSelector("+I+")"}}};
_.l.attached=function(){var r=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){r.reduxPropertiesRecomputeTrigger++}));
_.N("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.l.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.l.recomputeReduxSelector=function(r,f){var I=_.XE.apply(2,arguments),C=this.properties[f].selector;if(!C)throw Error("hg`"+f);return C.apply(null,[this.store.getState()].concat(_.Na(I)))};
_.l.select=function(r){var f=_.XE.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return r.apply(null,[this.store.getState()].concat(_.Na(f)))};
_.OC.Object.defineProperties(ph.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("ig");}}});
ph.prototype.recomputeReduxSelector=ph.prototype.recomputeReduxSelector;_.A([_.K(),_.B("design:type",Number)],ph.prototype,"reduxPropertiesRecomputeTrigger",void 0);ph=_.A([_.fx()],ph);var nh=[],I2u={},dm=function(){return Qt.apply(this,arguments)||this};
_.t(dm,Qt);dm.prototype._addPropertyEffect=function(r,f,I){if(f==="__observeEffects"&&I){var C,Y=(C=I.info.method)!=null?C:I.info.methodName;if(Y){var V=this[Y];this[Y]=function(){nh.push(Y);try{V==null||V.apply(this,arguments)}finally{nh.pop()}}}}_.z8._addPropertyEffect.apply(this,[r,
f,I])};
dm.prototype._setPendingProperty=function(r,f,I){if(nh.length){var C=nh[nh.length-1],Y;(Y=I2u[this.is])!=null&&Y.has(C)||(Cc$(this.is,C),_.NW("polymerPropertyChangedInObserver",{componentName:this.is,observerName:C}))}return _.z8._setPendingProperty.apply(this,[r,f,I])};
dm=_.A([mid()],dm);var YqE=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),ViB,VQ={};_.N("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=VQ);var xN=function(){return _.rm.apply(this,arguments)||this};
_.t(xN,_.rm);xN.prototype._setUnmanagedPropertyToNode=function(r,f,I){r.loggingStatus&&(r.loggingStatus.isDeclarativeExternal=!0);if(I!==r[f]||typeof I==="object")r[f]=I;r.is&&r.polymerController&&r.polymerController!==r&&E$(r.is,f,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");r.loggingStatus&&(r.loggingStatus.isDeclarativeExternal=!1)};
xN=_.A([_.fx()],xN);l2E()&&(LE.prototype._setUnmanagedPropertyToNode=(new xN)._setUnmanagedPropertyToNode);_.X3K={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(r){},set polymerController(r){}}]};var nx=function(){var r=Qt.apply(this,arguments)||this;r.json=function(){};
return r};
_.t(nx,Qt);nx.prototype.equals=function(r,f){return r===f};
nx.prototype.isEmpty=function(r){return!r||_.ID(r)&&r.length===0};
nx=_.A([mid()],nx);var ju3=function(r){r=TeB(r);JP.call(this,r)};
_.t(ju3,JP);ju3.prototype.addProvider=function(r){r=r.key?r:TeB([r])[0];var f=this.keyIdToIndex.get(r.key.id);if(f){if(w3c(r,this.providers[f]))throw Error("kg`"+r.key.displayName);}else JP.prototype.addProvider.call(this,r)};
var HU_=new ju3([]);var iU8=!1;var Mic={};iU8||(zr$(),iU8=!0);
Mic.InjectBehavior={initializeInjection:function(){var r=this.provide;try{if((r=r!=null?r:[])&&r.length>0)for(var f=TeB(r),I=_.E(f),C=I.next();!C.done;C=I.next())HU_.addProvider(C.value);var Y=new Set;bcK(this.behaviors||[],Y);f={};for(var V=_.E(Y),S=V.next();!S.done;S=V.next()){var h=S.value;h.inject&&Object.assign(f,h.inject)}this.inject&&Object.assign(f,this.inject);for(var w=_.E(Object.keys(f)),n=w.next();!n.done;n=w.next()){var d=n.value,z=f[d];try{this[d]=HU_.resolve(z)}catch(g){throw g;}}}catch(g){throw Error(g.message);
}}};var a2q;var NNP=/\bclass\b/.test(function(){}.toString()),PcR=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var R2s=function(r){this.wasDefined=!0;Array.isArray(r)||r instanceof Array?(this.JSC$11159_getImpl=r[0],this.JSC$11159_setImpl=r[1]):this.JSC$11159_getImpl=r};
_.l=R2s.prototype;_.l.getWithPath=function(r){return ccu(this.JSC$11159_getImpl(),r)};
_.l.setWithPath=function(r,f){var I=this;if(r.length)throw Error("lg");if(!this.JSC$11159_setImpl)throw Error("mg");wI(function(){I.JSC$11159_setImpl(f)})};
_.l.notifyPath=function(){throw Error("ng");};
_.l.notifySplices=function(){throw Error("og");};
_.l.getChangeRecordSignal=function(r,f){var I=this;if(r.length)throw Error("pg");return function(){var C=I.getWithPath(r);return{path:f!=null?f:"",base:C,value:C}}};
_.l.getSplicesSignal=function(){throw Error("qg");};
_.l.getPathMutationSignal=function(){throw Error("rg");};
_.l.pop=function(){throw Error("sg");};
_.l.push=function(){throw Error("tg");};
_.l.splice=function(){throw Error("ug");};
_.l.unshift=function(){throw Error("vg");};var dQ=function(r){var f=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(r)||r instanceof Array?(this.JSC$11164_getImpl=r[0],this.JSC$11164_setImpl=r[1]):this.JSC$11164_getImpl=r;this.wasDefined=!1;YL(function(){f.wasDefined=f.JSC$11164_getImpl()!==void 0})};
dQ.prototype.getWithPath=function(r){return ccu(this.JSC$11164_getImpl(),r)};
dQ.prototype.setWithPath=function(r,f){var I=this;if(r[r.length-1]!=="*"&&r[r.length-1]!=="splices"){if(r.length===0){if(!this.JSC$11164_setImpl)throw Error("wg");this.wasDefined||(this.wasDefined=f!==void 0);wI(function(){I.JSC$11164_setImpl(f)})}else{for(var C=YL(function(){return I.getWithPath([])}),Y=0;Y<r.length-1;Y++){if(!C)return;
C=C[r[Y]]}Y=r[r.length-1];C&&(C[Y]=f);this.wasDefined||(this.wasDefined=r.length>1||f!==void 0)}vr3(this,r,{pathComponents:r,value:f})}};
dQ.prototype.notifyPath=function(r,f){r.length===0?f&&this.setWithPath(r,f.value):vr3(this,r,{pathComponents:r,value:f==null?void 0:f.value,fallbackWhenUndefined:f==null?void 0:f.value})};
var vr3=function(r,f,I,C){if(r.setMutationSignal){var Y=++r.mutationIndex,V=[r.observedPath],S=r.observedPath,h;f.length===0&&(h=S);for(var w=0;w<f.length;w++){var n=S.subPaths[f[w]];if(!n)break;V.push(n);S=n;w===f.length-1&&(h=n)}for(f=!1;V.length;)S=V.shift(),S.data={index:Y,mutation:I,spliceMutationIndex:C},f||(f=S===h),f&&V.push.apply(V,_.Na(Object.values(S.subPaths)));wI(function(){r.setMutationSignal(Y)})}};
dQ.prototype.notifySplices=function(r,f){var I=this,C=YL(function(){return I.getWithPath(r)}),Y=[].concat(_.Na(r),["splices"]);
vr3(this,Y,{pathComponents:Y,value:{indexSplices:f}});if(C==null?0:C.length)f=this.mutationIndex,Y=[].concat(_.Na(r),["length"]),vr3(this,Y,{pathComponents:Y,value:C.length},f)};
var Kx3=function(r,f,I,C,Y,V){r.notifySplices(I,[{index:C,addedCount:Y,removed:V,object:f,type:"splice"}])},y24=function(r,f){r=r.observedPath;
for(var I=0;I<f.length;I++){var C=f[I],Y=r.subPaths[C];Y||(Y={pathComponents:f.slice(0,I+1),subPaths:{}},r.subPaths[C]=Y);r=Y}},suD=function(r,f,I){y24(r,f);
if(!r.getMutationSignal){var C=_.E(_.ld(r.mutationIndex,void 0,"HavCgf"));r.getMutationSignal=C.next().value;r.setMutationSignal=C.next().value}var Y=r.getMutationSignal;return _.hR(function(){Y();return I(UQT(r,f))},void 0,"BYaPo")};
dQ.prototype.getChangeRecordSignal=function(r,f){var I=this,C=this.mutationIndex,Y;return suD(this,r,function(V){if(V&&V.index>C){var S=V.mutation;C=V.index;Y=void 0}V=YL(function(){return I.getWithPath(r)});
if(S){var h=S.pathComponents[S.pathComponents.length-1],w=[].concat(_.Na(S.pathComponents));if(h==="splices"||h==="length")return{base:V,path:(f?[f].concat(_.Na(w)):w).join("."),value:S.value};var n=r.length>w.length?r:w,d;return{base:V!=null?V:S.fallbackWhenUndefined,path:(f?[f].concat(_.Na(n)):n).join("."),value:(d=YL(function(){return I.getWithPath(n)}))!=null?d:S.fallbackWhenUndefined}}Y||(Y={base:V,
path:(f?[f].concat(_.Na(r)):r).join("."),value:V});return Y})};
dQ.prototype.getSplicesSignal=function(r){var f=this.mutationIndex,I;return suD(this,r,function(C){if(C&&C.index>f&&C.spliceMutationIndex!==f){var Y=C.mutation;f=C.index;I=void 0}return Y&&Y.pathComponents[Y.pathComponents.length-1]==="splices"?I=C=Y.value:I})};
dQ.prototype.getPathMutationSignal=function(r){var f=this;y24(this,r);if(!this.getMutationSignal){var I=_.E(_.ld(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=I.next().value;this.setMutationSignal=I.next().value}var C=this.getMutationSignal,Y=this.mutationIndex,V;return _.hR(function(){C();var S=UQT(f,r);if(S&&S.index>Y&&S.mutation&&WqU(S.mutation.pathComponents,r)){var h=S.mutation;Y=S.index}if(!V||Y!==V.index){var w,n;S=(n=YL(function(){return f.getWithPath(r)}))!=null?n:(w=h)==null?
void 0:w.fallbackWhenUndefined;
V={index:Y,value:S}}return V},void 0,"Aumsyf")};
var UQT=function(r,f){r=r.observedPath;f=_.E(f);for(var I=f.next();!I.done;I=f.next())r=r.subPaths[I.value];return r.data};
dQ.prototype.pop=function(r){var f=this,I=YL(function(){return f.getWithPath(r)});
if(!(I instanceof Array))throw Error("xg");var C=I.length>0,Y=I.pop();C&&Kx3(this,I,r,I.length,0,[Y]);return Y};
dQ.prototype.push=function(r){var f=_.XE.apply(1,arguments),I=this,C=YL(function(){return I.getWithPath(r)});
if(!(C instanceof Array))throw Error("yg");var Y=C.length,V=C.push.apply(C,_.Na(f));f.length&&Kx3(this,C,r,Y,f.length,[]);return V};
dQ.prototype.splice=function(r,f,I){var C=_.XE.apply(3,arguments),Y=this,V=YL(function(){return Y.getWithPath(r)});
if(!(V instanceof Array))throw Error("zg");f<0?f=V.length-Math.floor(-f):f&&(f=Math.floor(f));var S=V.splice.apply(V,[f,I].concat(_.Na(C)));(C.length||S.length)&&Kx3(this,V,r,f,C.length,S);return S};
dQ.prototype.unshift=function(r){var f=_.XE.apply(1,arguments),I=this,C=YL(function(){return I.getWithPath(r)});
if(!(C instanceof Array))throw Error("Ag");var Y=C.unshift.apply(C,_.Na(f));f.length&&Kx3(this,C,r,0,f.length,[]);return Y};var OUX=!0,orB=!1,h2K=!1,Quq=!1,zw=!1,A2B=0;Quq=!1;A2B=0;OUX=!0;zw=orB=h2K=!1;var gQ=function(r,f,I){this.model=r;this.unknownSignalResolver=f;this.options=I;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];f=_.E(vgP());r=f.next().value;f=f.next().value;this.owner=r;this.disposeImpl=f};
gQ.prototype.dispose=function(){if(!this.isDisposed){for(var r=_.E(this.childSignalProxies),f=r.next();!f.done;f=r.next())f.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var ZUB=function(r,f){r=oZ(r.owner);try{f()}finally{oZ(r)}};
gQ.prototype.effect=function(r){ZUB(this,function(){_.Nk(r)})};
var GQ4=function(r,f){r.options!=null||(r.options={});var I;(I=r.options).immutableProps!=null||(I.immutableProps=new Set);r.options.immutableProps.add(f)},xPq=function(r,f){f=""+f;
kQs(r,f);var I;if((I=r.model.__signalCache)==null?0:I.has(f))I=r.model.__signalCache.get(f),Array.isArray(I)&&GQ4(r,f);var C,Y,V;return(V=(C=r.options)==null?void 0:(Y=C.immutableProps)==null?void 0:Y.has(f))!=null?V:!1},BKD=function(r,f){var I;
r.unknownSignalResolver&&(I=r.unknownSignalResolver(f));var C,Y;((C=r.options)==null?0:(Y=C.immutableProps)==null?0:Y.has(f))?I!=null||(I=new R2s(_.ld(r.model[f],void 0,"Xu3svb"))):I!=null||(I=new dQ(_.ld(r.model[f],void 0,"NgC9n")));var V=r.model.hostElement;Object.defineProperty(r.model,f,{get:function(){Sql(V,f);return I.getWithPath([])},
set:function(S){SS(V,f);r.setWithPath([f],S)},
configurable:!0});return I},kQs=function(r,f){var I,C,Y;
((I=r.model.__signalCache)==null||!I.has(f))&&((C=r.options)==null?0:(Y=C.externalSignalProps)==null?0:Y.has(f))&&r.model[f]},as=function(r,f){f=""+f;
var I=r.signalCache[f];if(I!==void 0)return I;I=!1;kQs(r,f);var C;if((C=r.model.__signalCache)==null?0:C.has(f))if(I=r.model.__signalCache.get(f),Array.isArray(I))I=!0,GQ4(r,f);else return r.signalCache[f]=r.model.__signalCache.get(f).signal,r.signalCache[f];var Y,V;C=(V=(Y=r.options)==null?void 0:Y.reactivityMode)!=null?V:0;var S,h;if(!((S=r.options)==null?0:(h=S.reactiveProps)==null?0:h.has(f))&&!I&&C===1)throw Error("Bg`"+f);Y=I?qX3(r,f):BKD(r,f);return r.signalCache[f]=Y},qX3=function(r,f){var I=
Object.getOwnPropertyDescriptor(r.model.constructor.prototype,f),C=function(){return r.model[f]};
return new R2s(I&&I.get&&!I.set?C:[C,function(Y){r.model[f]=Y}])};
gQ.prototype.getWithPath=function(r){var f=_.E(r);r=f.next().value;f=y$(f);Sql(this.model.hostElement,""+r);return as(this,r).getWithPath(f)};
gQ.prototype.setWithPath=function(r,f){if(r.length){SS(this.model.hostElement,r.join("."));var I=_.E(r);r=I.next().value;I=y$(I);as(this,r).setWithPath(I,f)}};
gQ.prototype.getPathMutationSignal=function(r){var f=_.E(r);r=f.next().value;f=y$(f);return as(this,r).getPathMutationSignal(f)};
gQ.prototype.notifyPath=function(r,f){var I=_.E(r);r=I.next().value;I=y$(I);as(this,r).notifyPath(I,f)};
var uvg=function(r,f){if(f.type==="literal")return function(){return{rootWasDefined:!0,value:f.value}};
var I=Mv(f.path),C=_.E(I),Y=C.next().value;C=y$(C);var V,S;if(f.type==="path"&&(I.length===1||((V=r.options)==null?0:(S=V.immutableProps)==null?0:S.has(Y))))return function(){var z=r.getWithPath(I.slice(0,1)),g=ccu(z,I.slice(1));z=z!==void 0;zw&&(z=as(r,I[0]).wasDefined);return{rootWasDefined:z,value:g}};
var h=as(r,Y);if(f.type==="path"){var w=h.getPathMutationSignal(C);return function(){var z=zw?h.wasDefined:TA(r.owner,function(){return h.getWithPath([])})!==void 0;
var g,X=(g=w())==null?void 0:g.value;return{rootWasDefined:z,value:X}}}if(f.type==="splices"){var n=h.getSplicesSignal(C);
return function(){var z=n();return{rootWasDefined:zw?h.wasDefined:z!==void 0,value:z}}}var d=h.getChangeRecordSignal(C,""+Y);
return function(){var z=d();return{rootWasDefined:zw?h.wasDefined:z!==void 0,value:z}}},Hcw=function(r,f,I){var C=I.map(function(h){return uvg(r,h)}),Y=I.length===0,V=[],S=I.length!==1||I[0].type!=="path"?!1:!0;
r.effect(function(){for(var h=C.length,w=[],n=!!V.length,d=0;d<h;d++){var z=C[d](),g=z.rootWasDefined;z=z.value;Y||(Y=g);w[d]=z;S&&(w[d+h]=n?V[d]:w[d],V[d]=z)}Y&&TA(r.owner,function(){return void f.apply(null,_.Na(w))})})},LqR=function(r,f,I,C,Y){var V=as(r,f);
Y!==void 0&&V.setWithPath([],Y);Hcw(r,function(){var S=_.XE.apply(0,arguments);SS(r.model.hostElement,f,!0);V.setWithPath([],I.apply(null,_.Na(S)))},C)};
gQ.prototype.arrayPush=function(r){var f=_.XE.apply(1,arguments),I=_.E(r),C=I.next().value;I=y$(I);C=as(this,C);return C.push.apply(C,[I].concat(_.Na(f)))};
gQ.prototype.arraySplice=function(r,f,I){var C=_.XE.apply(3,arguments),Y=_.E(r),V=Y.next().value;Y=y$(Y);V=as(this,V);return V.splice.apply(V,[Y,f,I].concat(_.Na(C)))};
gQ.prototype.arrayUnshift=function(r){var f=_.XE.apply(1,arguments),I=_.E(r),C=I.next().value;I=y$(I);C=as(this,C);return C.unshift.apply(C,[I].concat(_.Na(f)))};
gQ.prototype.notifySplices=function(r,f){var I=_.E(r);r=I.next().value;I=y$(I);as(this,r).notifySplices(I,f)};var ogq=/([^\s]+?)\(([\s\S]*)\)/,U5u=/\.([^.]+)$/,Acu=/\\,/g,KqR=/&comma;/g,ycq=/\\(.)/g,QtB=[],stU={"*":"wildcard",splices:"splices"};var IMq=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"),uuB=/[A-Z]/,DQg=["class","hidden","id","on-dom-change"],YJB=new Set([].concat(_.Na(DQg),
["if","notify-dom-change","restamp"])),lMK=new Set([].concat(_.Na(DQg),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),V9m=new Set(["restamp"]);var YpP=new Set(["className","id"]);var wgl=Symbol(),ghu=window;var TAd=window;var jQB=0,L5K=0,Xi=[],JIB=0,W5d=!1,eXu=document.createTextNode("");(new window.MutationObserver(mPq)).observe(eXu,{characterData:!0});var $N=new Map,Nv=0,rr4=function(r){this.mappedHandleId=r},iBK=function(r,f,I,C){this.mappedHandleId=r;
var Y=this;this.mappedHandleId=r;this.callback=f;this.waitTime=I;this.schedulerPriority=C;this.handleId=_.F_.addJob(function(){Y.callback();$N.delete(Y.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.t(iBK,rr4);iBK.prototype.cancel=function(){_.F_.cancelJob(this.handleId);$N.delete(this.mappedHandleId)};
var RXR=function(r,f){this.mappedHandleId=r;var I=this;this.mappedHandleId=r;this.callback=f;this.handleId=HBP(function(){I.callback();$N.delete(I.mappedHandleId)})};
_.t(RXR,rr4);RXR.prototype.cancel=function(){var r=this.handleId-L5K;r<0||Xi.length<=r||(Xi[r]=null);$N.delete(this.mappedHandleId)};var UPu=function(){};
UPu.prototype.cancel=function(){this.jobHandle!==void 0&&(vhB(this.jobHandle),this.jobHandle=void 0)};
UPu.prototype.run=function(r,f,I){var C=this;this.cancel();this.callback=r;this.jobHandle=_.Fi(function(){r();C.callback=void 0},f,I)};
UPu.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var K5K=new WeakMap;var fA8=oj(function(r){for(var f=r,I=0;I<3;I++)f=Object.getPrototypeOf(f);delete f.prototype.connectedCallback;var C=function(){return r.apply(this,arguments)||this};
_.t(C,r);C.prototype._attachDom=function(Y){if(!Y)return null;var V=(0,_.AN)(this.hostElement);V.attachShadow({mode:"open",shadyUpgradeFragment:Y});V.shadowRoot.appendChild(Y);return V.shadowRoot};
C.prototype._takeAttributes=function(){for(var Y=this.hostElement.attributes,V=0;V<Y.length;V++){var S=Y[V],h=void 0,w=void 0;(w=(h=this).__attributeReaction)==null||w.call(h,S.name,null,S.value)}};
C.prototype._readyClients=function(){r.prototype._readyClients.call(this);this.root=this};
C.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);r.prototype.connectedCallback.call(this)};
_.OC.Object.defineProperties(C,{template:{configurable:!0,enumerable:!0,get:function(){return C.prototype._template}}});
return C}),IAX=oj(function(r){var f=function(){return r.apply(this,arguments)||this};
_.t(f,r);f.prototype.created=function(){if(this.__notifyEffects)for(var I=_.E(Object.values(this.__notifyEffects)),C=I.next();!C.done;C=I.next()){C=_.E(C.value);for(var Y=C.next();!Y.done;Y=C.next())Y.value.fn=QQm}if(this.__reflectEffects)for(I=_.E(Object.values(this.__reflectEffects)),C=I.next();!C.done;C=I.next())for(C=_.E(C.value),Y=C.next();!Y.done;Y=C.next())Y.value.fn=AIl};
f.prototype._addEventListenerToNode=function(I,C,Y){I=tG(I);$f(I,C,Y)||r.prototype._addEventListenerToNode.call(this,I,C,Y)};
f.prototype._removeEventListenerFromNode=function(I,C,Y){I=tG(I);FK(I,C,Y)||r.prototype._removeEventListenerFromNode.call(this,I,C,Y)};
f.prototype._propertiesChanged=function(I,C,Y){if(this.__dataToNotify&&this.__notifyEffects)for(var V=_.E(Object.keys(this.__dataToNotify)),S=V.next();!S.done;S=V.next()){S=S.value;var h=ohB(S);this.__notifyEffects[h]||delete this.__dataToNotify[S]}else this.__dataToNotify=null;r.prototype._propertiesChanged.call(this,I,C,Y)};
f.prototype.fire=function(I,C,Y){C=C===void 0?{}:C;var V;return _.kA(tG((V=Y==null?void 0:Y.node)!=null?V:this),I,C,Y)};
f.prototype._ensureAttribute=function(I,C){var Y=tG(this);Y.hasAttribute(I)||gm(Y,C,I)};
f.prototype.isLightDescendant=function(I){var C=tG(this);return tG(C)!==I&&_.e(C).contains(I)&&_.e(C).getRootNode()===_.e(I).getRootNode()};
return f});
_.zd.ready=function(){var r;((r=this.hostElement)!=null?r:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var f;((f=this.hostElement)!=null?f:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Pq._subscribeIronResize=function(r){var f;((f=r.hostElement)!=null?f:r).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Pq._unsubscribeIronResize=function(r){var f;((f=r.hostElement)!=null?f:r).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var kfP=[Array,Boolean,Date,Number,Object,String],cc=function(r,f,I,C){this.polySiInfo=r;this.polySiParams=f;this.polySiContext=I;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;C||this instanceof HTMLElement&&(C=this);if(!C)throw Error("Ig");this.allowedProps=f.allowedProps;this.hostElement=C;this.is=r.is;this.upgradeDisabled=!!f.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");r=new Set(f.reactiveSchemas.filter(function(Y){return Y.type!==
"observe"}).map(function(Y){return Y.propertyKey}));
this.signalProxy=new gQ(this,void 0,{reactiveProps:r,reactivityMode:f.reactivityMode});this.__dataHasAccessor={};f=_.E(f.reactiveSchemas);for(r=f.next();!r.done;r=f.next())r=r.value,r.type==="signal"&&(this.__dataHasAccessor[r.propertyKey]=!0);this.upgradeDisabled||C4s(this)};
cc.prototype.getExtraMethodsToForward=function(){return[]};
var C4s=function(r){r.polySiContext.didRegister||(r.registered(),r.polySiContext.didRegister=!0);r.polySiContext.finalizedTemplate||(r.polySiContext.finalizedTemplate={},r.polySiParams.templateGetter&&(r.polySiContext.finalizedTemplate.processedTemplate=cIE(r.polySiParams.templateGetter,r.polySiParams.is)));Yps(r);var f=r.hostElement;f.loggingStatus!=null||(f.loggingStatus={});f.loggingStatus.isInitializing=!0;YL(function(){return void r.created()});
f.loggingStatus.isInitializing=!1;r.isPolySiElementConnected&&lA8(r)},lA8=function(r){r.didCallReady||(YL(function(){return void r.ready()}),r.didCallReady=!0);
r.isAttached=!0;r.attached()};
_.l=cc.prototype;_.l.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||lA8(this)};
_.l.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.l.attributeChangedCallback=function(r,f,I){if(this.upgradeDisabled)r==="disable-upgrade"&&I===null&&(this.upgradeDisabled=!1,C4s(this));else if(f!==I){var C=_.xA(r),Y=this.polySiContext.typesForSignals[C];if(Y&&(!this.reflecting||_.N("polysi_attribute_changed_serializing_killswitch"))){switch(Y){case Object:try{var V=JSON.parse(I)}catch(h){V=I}break;case Array:try{V=JSON.parse(I)}catch(h){V=null}break;case Date:V=isNaN(I)?String(I):Number(I);V=new Date(V);break;case Boolean:V=I!==null;break;case Number:V=
Number(I);break;default:V=I}this[C]=V}C=_.E(this.polySiParams.behaviors);for(Y=C.next();!Y.done;Y=C.next())V=void 0,(V=Y.value.attributeChanged)==null||V.call(this,r,f,I);var S;(S=this.attributeChanged)==null||S.call(this,r,f,I)}};
_.l.attributeChangedCallbackWrapper=function(r,f,I){this.attributeChangedCallback(r,f,I)};
_.l.setPropertiesFromInitialAttributeValues=function(){for(var r=0;r<this.hostElement.attributes.length;r++){var f=this.hostElement.attributes[r];(f.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(f.name))&&this.attributeChangedCallback(f.name,null,f.value)}};
_.l.created=function(){this.provide=this.polySiParams.provide;var r;(r=this.initializeInjection)==null||r.call(this);r=_.E(this.polySiParams.reactiveSchemas);for(var f=r.next();!f.done;f=r.next())f=f.value,f.type==="signal"&&(this.mutablePropNames.add(f.propertyKey),as(this.signalProxy,f.propertyKey));GfK(this,this.polySiInfo,this.polySiParams.behaviors);r=_.E(this.polySiParams.reactiveSchemas);for(f=r.next();!f.done;f=r.next())f=f.value,f.type==="signal"&&f.value!==void 0&&(this.signalProxy.model[f.propertyKey]=
typeof f.value==="function"?f.value.call(this):f.value);if(this.polySiParams.signalProperties)for(r=_.E(this.polySiParams.signalProperties),f=r.next();!f.done;f=r.next()){f=f.value;var I=void 0;((I=this.__signalCache)==null?0:I.has(f))||(this.signalProxy.model[f]=void 0)}Quq||Vy3(this);ZBE(this);r=_.E(this.polySiParams.behaviors);for(f=r.next();!f.done;f=r.next())I=void 0,(I=f.value.created)==null||I.call(this);var C;(C=this.polySiInfo.created)==null||C.call(this)};
_.l.registered=function(){var r=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var f=Object.getPrototypeOf(this);f.addReactiveSchema=function(h){r.polySiParams.reactiveSchemas.push(h)};
for(var I=_.E(this.polySiParams.behaviors),C=I.next();!C.done;C=I.next()){var Y=void 0;(Y=C.value.beforeRegister)==null||Y.call(f)}var V;(V=this.polySiInfo.beforeRegister)==null||V.call(f);f.addReactiveSchema=qJq;I=_.E(this.polySiParams.behaviors);for(C=I.next();!C.done;C=I.next())Y=void 0,(Y=C.value.registered)==null||Y.call(f);var S;(S=this.polySiInfo.registered)==null||S.call(f)};
_.l.ready=function(){var r;(r=this.beforeReady)==null||r.call(this);Quq&&Vy3(this);var f;if(r=(f=this.polySiContext.finalizedTemplate)==null?void 0:f.processedTemplate){r=t9$(r.template,r.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:r.hasInsertionPoint,thisCtx:this});f=r.nodesById;r=r.root;var I=this.hostElement;var C=C===void 0?!1:C;I=(0,_.AN)(I);if(!I.attachShadow)throw Error("Cd");if(!I.shadowRoot||C)I.attachShadow({mode:"open",shadyUpgradeFragment:r}),I.shadowRoot.appendChild(r);
this.root=I.shadowRoot;this.$=f}EMg(this);C=_.E(this.polySiParams.behaviors);for(f=C.next();!f.done;f=C.next())r=void 0,(r=f.value.ready)==null||r.call(this);var Y;(Y=this.polySiInfo.ready)==null||Y.call(this)};
_.l.attached=function(){for(var r=_.E(this.polySiParams.behaviors),f=r.next();!f.done;f=r.next()){var I=void 0;(I=f.value.attached)==null||I.call(this)}var C;(C=this.polySiInfo.attached)==null||C.call(this)};
_.l.detached=function(){for(var r=_.E(this.polySiParams.behaviors),f=r.next();!f.done;f=r.next()){var I=void 0;(I=f.value.detached)==null||I.call(this)}var C;(C=this.polySiInfo.detached)==null||C.call(this)};
var Yps=function(r){for(var f=_.E(r.polySiParams.behaviors),I=f.next();!I.done;I=f.next())if(I=I.value,I.listeners)for(var C in I.listeners)PF$(r,r.hostElement,C,I.listeners[C]);if(r.polySiInfo.listeners)for(var Y in r.polySiInfo.listeners)PF$(r,r.hostElement,Y,r.polySiInfo.listeners[Y])},PF$=function(r,f,I,C,Y){r=TNR(r,C,Y);
$f(f,I,r)||f.addEventListener(I,r);return r},Vy3=function(r){for(var f=_.E(r.polySiParams.reactiveSchemas),I=f.next();!I.done;I=f.next())I=I.value,I.type==="compute"||I.type==="computeWithMethod"?m5E(r.signalProxy,I,r):I.type==="redux"?jtc(r.signalProxy,I,r.store):I.type==="signal"&&I.readOnly&&JcB(r.signalProxy,I)},EMg=function(r){for(var f=_.E(r.polySiParams.reactiveSchemas),I=f.next(),C={};!I.done;C={schema$jscomp$12:void 0},I=f.next())C.schema$jscomp$12=I.value,C.schema$jscomp$12.type==="notify"?
icR(r.signalProxy,C.schema$jscomp$12,r.hostElement):C.schema$jscomp$12.type==="observe"?Rrm(r.signalProxy,C.schema$jscomp$12,r):C.schema$jscomp$12.type==="reflect"&&r.signalProxy.effect(function(V){return function(){var S=r.signalProxy.getWithPath([V.schema$jscomp$12.propertyKey]);
r.reflecting=!0;Gtc(r.hostElement,V.schema$jscomp$12.propertyKey,S,!0);r.reflecting=!1}}(C));
if(r.reflectedAttributes)for(f=_.E(Object.entries(r.reflectedAttributes)),C=f.next(),I={};!C.done;I={key$jscomp$873:void 0,value$jscomp$8797:void 0},C=f.next()){var Y=_.E(C.value);C=Y.next().value;Y=Y.next().value;I.key$jscomp$873=C;I.value$jscomp$8797=Y;r.signalProxy.effect(function(V){return function(){r.reflecting=!0;Gtc(r.hostElement,V.key$jscomp$873,(0,V.value$jscomp$8797)(),!0);r.reflecting=!1}}(I))}};
_.l=cc.prototype;_.l._setPendingProperty=function(r,f){this.set(r,f);return!1};
_.l._enableProperties=function(){};
_.l._setPendingPropertyOrPath=function(r,f){this.notifyPath(r,f);return!1};
_.l._addPropertyEffect=function(){};
_.l._stampTemplate=function(){throw Error("Jg");};
_.l.fire=function(r,f,I){f=f===void 0?{}:f;I=I===void 0?{}:I;var C,Y,V={bubbles:(C=I.bubbles)!=null?C:!0,cancelable:!!I.cancelable,composed:(Y=I.composed)!=null?Y:!0},S;return _.kA(uh$((S=I.node)!=null?S:this.hostElement),r,f,V)};
_.l.get=function(r,f){var I=Mv(r);return f?ccu(f,I):r==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(I)};
_.l.linkPaths=function(){};
_.l.listen=function(r,f,I){r=uh$(r);this.boundListeners!=null||(this.boundListeners=new WeakMap);var C=this.boundListeners.get(r);C||(C={},this.boundListeners.set(r,C));var Y=f+I;C[Y]||(C[Y]=PF$(this,r,f,I))};
_.l.notifyPath=function(r,f){this.signalProxy.notifyPath(Mv(r),arguments.length===2?{value:f}:void 0)};
_.l.canNotifyPath=function(r){var f,I;return this.mutablePropNames.has(r)&&!((f=this.signalProxy.options)==null?0:(I=f.immutableProps)==null?0:I.has(r))};
_.l.notifySplices=function(r,f){this.signalProxy.notifySplices(Mv(r),f)};
_.l.pop=function(r){var f=this.signalProxy;r=Mv(r);var I=_.E(r);r=I.next().value;I=y$(I);return as(f,r).pop(I)};
_.l.push=function(r){var f=_.XE.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[Mv(r)].concat(_.Na(f)))};
_.l.set=function(r,f,I){if(I)throw Error("Kg");r==="hidden"?this.hostElement.hidden=!!f:this.signalProxy.setWithPath(Mv(r),f)};
_.l.setProperties=function(r){r=_.E(Object.entries(r));for(var f=r.next();!f.done;f=r.next()){var I=_.E(f.value);f=I.next().value;I=I.next().value;this[f]=I}};
_.l.splice=function(r,f,I){var C=_.XE.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[Mv(r),f,I].concat(_.Na(C)))};
_.l.unlinkPaths=function(){};
_.l.unlisten=function(r,f,I){r=uh$(r);if(this.boundListeners){var C=this.boundListeners.get(r);if(C){I=f+I;var Y=C[I];Y&&(FK(r,f,Y)||r.removeEventListener(f,Y),delete C[I])}}};
_.l.unshift=function(r){var f=_.XE.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[Mv(r)].concat(_.Na(f)))};
_.OC.Object.defineProperties(cc.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 xQP=[Array,Boolean,Date,Number,Object,String];var bUK=!1;var a_=function(){var r=HTMLElement.apply(this,arguments)||this;r.restamp=!1;r.notifyDomChange=!1;r.JSC$11272_didCallConnected=!1;r.JSC$11272_renderDebouncer=null;r.disableTemplateUpdateSignalImpl=Wc()?void 0:_.ld(!1,void 0,"zLXz1e");var f;r.getDisableTemplateUpdate=(f=r.disableTemplateUpdateSignalImpl)==null?void 0:f[0];var I;r.setDisableTemplateUpdate=(I=r.disableTemplateUpdateSignalImpl)==null?void 0:I[1];return r};
_.t(a_,HTMLElement);var Spq=function(r){r.conditionSignalImpl!=null||(r.conditionSignalImpl=new dQ(_.ld(!1,void 0,"wcuOQ")));return r.conditionSignalImpl};
_.l=a_.prototype;_.l.showHideChildren=function(r){xD4(this,r,this.if)};
_.l.attributeChangedCallback=function(r,f,I){if(this.JSC$11272_didCallConnected)throw Error("Og`"+r);r==="notify-dom-change"?this.notifyDomChange=I!==null:r==="restamp"&&(this.restamp=I!==null)};
_.l.debounceRender=function(){this.JSC$11272_renderDebouncer=_.f6(this.JSC$11272_renderDebouncer,tq,this.JSC$11272_renderImpl.bind(this));_.IG(this.JSC$11272_renderDebouncer)};
_.l.disconnectedCallback=function(){var r=(0,_.AN)(this).parentNode;(!r||r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in r&&!r.host)&&h$3(this)};
_.l.connectedCallback=function(){var r=this;this.JSC$11272_didCallConnected=!0;OUX?pZP():this.style.display="none";this.parentSignalProxy.effect(function(){Spq(r).getWithPath([]);r.debounceRender()})};
_.l.render=function(){_.V8()};
_.l.JSC$11272_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var r=this.if;if(r){a:{var f=(0,_.AN)(this).parentNode;if(this.hasInstance()){var I=this.instance.children;if((I==null?0:I.length)&&(0,_.AN)(this).previousSibling!==I[I.length-1])for(var C=0;C<I.length;C++)(0,_.AN)(f).insertBefore(I[C],this)}else{if(!f){f=!1;break a}wO4(this,f)}f=!0}if(!f)return}else this.restamp&&h$3(this);xD4(this,!1,r);r&&bP3(this);orB&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.l.hasInstance=function(){return!!this.instance};
var wO4=function(r,f){var I=r.parentSignalProxy;if(Wc()){var C=_.E(_.ld(!0,void 0,"wXzgnc"));var Y=C.next().value;C=C.next().value;I=r.parentSignalProxy}else{var V;var S=new gQ((V=pOT(r))!=null?V:{},function(w){var n=as(r.parentSignalProxy,w).getChangeRecordSignal([]);w=_.ld(void 0,void 0,"mryEkc");var d=new dQ(w);S.effect(function(){if(r.getDisableTemplateUpdate&&!r.getDisableTemplateUpdate()){var z=n();d.notifyPath(Mv(z.path),{value:z.value})}});
return d});
r.parentSignalProxy.childSignalProxies.push(S);var h=I=S}I=t9$(r.templateInfo,r.templateInfo.nodeInfoList,I,{eventListenerHost:r.eventListenerHost,hasInsertionPoint:r.templateInfo.hasInsertionPoint,thisCtx:r.eventListenerHost,enabledSignal:Wc()?Y:void 0,getModel:function(){return pOT(r)}}).root;
r.instance={root:I,children:[],hidden:!1,signalProxy:h,getTemplateUpdatesEnabled:Y,setTemplateUpdatesEnabled:C};h=_.E(I.childNodes);for(Y=h.next();!Y.done;Y=h.next())r.instance.children.push(Y.value);(0,_.AN)(f).insertBefore(r.instance.root,r)},pOT=function(r){if((r=r.parentSignalProxy.model)&&!r.hostElement){var f={},I;
for(I in r)r.hasOwnProperty(I)&&(f[I]=r[I]);return f}},h$3=function(r){if(r.instance){var f=r.instance.children;
if(f.length){var I=(0,_.AN)(f[0]).parentNode;if(I){I=(0,_.AN)(I);for(var C=0;C<f.length;C++)I.removeChild(f[C])}}Wc()?r.instance.setTemplateUpdatesEnabled(!1):r.instance.signalProxy.dispose();r.instance=void 0}},xD4=function(r,f,I){f=f||!I;
r.instance&&r.instance.hidden!==f&&(r.instance.hidden=f,wZR(f,r.instance.children))},bP3=function(r){if(Wc()){var f=r.instance;
f&&TA(r.parentSignalProxy.owner,function(){return!f.getTemplateUpdatesEnabled()})&&f.setTemplateUpdatesEnabled(!0)}else r.setDisableTemplateUpdate(!1)};
_.OC.Object.defineProperties(a_.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var r=this;return TA(this.parentSignalProxy.owner,function(){return Spq(r).getWithPath([])})},
set:function(r){r||(Wc()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));Spq(this).setWithPath([],!!r)}}});
_.OC.Object.defineProperties(a_,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",a_);var nMs=[],XT=function(){var r=HTMLElement.apply(this,arguments)||this;r.as="item";r.indexAs="index";r.itemsIndexAs="itemsIndex";r.targetFramerate=20;r.notifyDomChange=!1;r.isDetached=!1;r.JSC$11279_renderDebouncer=null;r.instances=[];r.chunkingId=null;r.chunkCount=null;r.shouldMeasureChunk=!1;r.shouldContinueChunking=!1;r.renderStartTime=null;r.JSC$11279_didCallConnected=!1;return r};
_.t(XT,HTMLElement);var dD4=function(r){r.itemSignalImpl!=null||(r.itemSignalImpl=new dQ(_.ld(nMs,void 0,"YBrqgf")));return r.itemSignalImpl},z$3=function(r,f){Array.isArray(f)||(f=nMs);
dD4(r).setWithPath([],f)};
_.l=XT.prototype;_.l.showHideChildren=function(r){for(var f=_.E(this.instances),I=f.next();!I.done;I=f.next())wZR(r,I.value.children)};
_.l.notifyPath=function(r,f){r=Mv(r);r[0]==="items"&&(r.length===1?z$3(this,f):dD4(this).setWithPath(r.slice(1),f))};
_.l.canNotifyPath=function(r){return r==="items"};
_.l.attributeChangedCallback=function(r,f,I){if(this.JSC$11279_didCallConnected)throw Error("Pg`"+r);r==="as"?this.as=I:r==="index-as"?this.indexAs=I:r==="items-index-as"?this.itemsIndexAs=I:r==="initial-count"?this.initialCount=Number(I):r==="notify-dom-change"?this.notifyDomChange=I!==null:r==="target-framerate"&&(this.targetFramerate=Number(I))};
_.l.disconnectedCallback=function(){this.isDetached=!0;for(var r=0;r<this.instances.length;r++)MyV(this,r);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.l.connectedCallback=function(){var r=this,f=dD4(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var Y=f(),V=Mv(Y.path);if(V[0]===void 0||V[0]==="splices"||V[0]==="length")r.debounceRender();else{var S=V[0];if(S=r.instances[typeof S==="string"?Math.floor(Number(S)):S])V=[r.as].concat(_.Na(V.slice(1))),S.signalProxy.notifyPath(V,Y)}});
this.JSC$11279_didCallConnected=!0;OUX?pZP():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var I=(0,_.AN)((0,_.AN)(this).parentNode),C=0;C<this.instances.length;C++)I.insertBefore(this.instances[C].root,this);this.chunkingId&&this.render()}};
_.l.debounceRender=function(){this.JSC$11279_renderDebouncer=_.f6(this.JSC$11279_renderDebouncer,tq,this.JSC$11279_renderImpl.bind(this));_.IG(this.JSC$11279_renderDebouncer)};
_.l.render=function(){this.debounceRender();_.V8()};
_.l.JSC$11279_renderImpl=function(){var r=this,f=this.items,I=gMV(this,f.length);aAs(this,f,I);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){r.chunkingId=null;if(r.shouldMeasureChunk){var C=performance.now()-r.renderStartTime;r.chunkCount=Math.round(Math.ceil(1E3/r.targetFramerate)/C*r.chunkCount)||1}r.shouldContinueChunking&&r.debounceRender()}));
orB&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var gMV=function(r,f){var I=f,C=r.instances.length;if(r.initialCount){if(r.chunkCount){var Y=Math.min(Math.max(f-C,0),r.chunkCount);I=Math.min(C+Y,f)}else I=Math.min(f,r.initialCount),Y=Math.max(I-C,0),r.chunkCount=Y||1;r.shouldMeasureChunk=Y===r.chunkCount;r.shouldContinueChunking=I<f;r.renderStartTime=performance.now()}return I},aAs=function(r,f,I){for(var C=0;C<I;C++){var Y=r.instances[C],V=f[C];
Y?(Y.signalProxy.setWithPath([r.as],V),Y.signalProxy.setWithPath([r.indexAs],C)):XO4(r,V,C)}for(f=r.instances.length-1;f>=C;f--)I=r,Y=f,MyV(I,Y),_.E(I.instances.splice(Y,1)).next().value.signalProxy.dispose()},MyV=function(r,f){r=r.instances[f];
f=(0,_.AN)(r.root);for(var I=0;I<r.children.length;I++)f.appendChild(r.children[I])},XO4=function(r,f,I){var C={};
f=Object.assign({},NzB(r),(C[r.as]=f,C[r.indexAs]=I,C[r.itemsIndexAs]=I,C));var Y=new gQ(f,function(S){if(S!==r.as&&S!==r.indexAs){if(S===r.itemsIndexAs)return as(Y,r.indexAs);var h=as(r.parentSignalProxy,S).getChangeRecordSignal([]);S=_.ld(void 0,void 0,"Mu2Bwb");var w=new dQ(S);Y.effect(function(){var n=h();w.notifyPath(Mv(n.path),{value:n.value})});
return w}});
r.parentSignalProxy.childSignalProxies.push(Y);C=t9$(r.templateInfo,r.templateInfo.nodeInfoList,Y,{eventListenerHost:r.eventListenerHost,getModel:function(){var S={};return Object.assign({},NzB(r),(S[r.as]=Y.model[r.as],S[r.indexAs]=Y.model[r.indexAs],S[r.itemsIndexAs]=Y.model[r.indexAs],S))},
hasInsertionPoint:r.templateInfo.hasInsertionPoint,thisCtx:r.eventListenerHost,methodInvocationRequirement:A2B,enabledSignal:r.stampingEnabled}).root;f={root:C,children:[],signalProxy:Y};C=_.E(C.childNodes);for(var V=C.next();!V.done;V=C.next())f.children.push(V.value);C=(C=r.instances[I+1])?C.children[0]:r;(0,_.AN)((0,_.AN)(r).parentNode).insertBefore(f.root,C);r.instances[I]=f},NzB=function(r){if((r=r.parentSignalProxy.model)&&!r.hostElement){var f={},I;
for(I in r)r.hasOwnProperty(I)&&(f[I]=r[I]);return f}};
XT.prototype.itemForElement=function(r){var f=this,I=this.instances.find(function(C){return C.children.includes(r)});
if(I)return TA(this.parentSignalProxy.owner,function(){return I.signalProxy.getWithPath([f.as])})};
XT.prototype.indexForElement=function(r){var f=this.instances.findIndex(function(I){return I.children.includes(r)});
return f>=0?f:void 0};
_.OC.Object.defineProperties(XT.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var r=this;return TA(this.parentSignalProxy.owner,function(){return dD4(r).getWithPath([])})},
set:function(r){z$3(this,r)}},
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}}});
_.OC.Object.defineProperties(XT,{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",XT);var $DU,F$V;_.Nb=new _.Go("STATE_STORE_TOKEN");$DU=new _.Go("SELECT_TOKEN");F$V=new _.Go("DISPATCH_TOKEN");var aSl={getSelectFn:function(){var r;return(r=_.a().resolve(_.ZY($DU)))!=null?r:nrR},
getDispatchFn:function(){var r;return(r=_.a().resolve(_.ZY(F$V)))!=null?r:_.Lx().dispatch.bind(_.Lx())},
getAppStore:function(){return _.a().resolve(_.Nb)}},dQu,grR=!1;var $QU=void 0;var P4g=function(){};
P4g.prototype.hasAttribute=function(r){if(r==="dir")return!1;if(r==="disable-upgrade"){var f,I;return(I=(f=this.hostElement)==null?void 0:f.hasAttribute("disable-upgrade"))!=null?I:!1}throw Error("Qg`"+r);};
P4g.prototype.attributeChangedCallbackWrapper=function(r,f,I){if(r==="disable-upgrade"&&this.__isUpgradeDisabled&&I===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var C;((C=this.hostElement)!=null?C:this).isConnected&&this.connectedCallback()}else f===I||this.__isReflecting||this.attributeChangedCallback(r,f,I)};
P4g.prototype.getExtraMethodsToForward=function(){for(var r=this,f=[],I=_.E(tyC),C=I.next(),Y={};!C.done;Y={tagName$jscomp$52:void 0,name$jscomp$533:void 0},C=I.next())Y.name$jscomp$533=C.value,C=void 0,Y.name$jscomp$533==="_setPendingProperty"?(Y.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),C=function(V){return function(S,h,w){E$(V.tagName$jscomp$52,S,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return r._setPendingProperty(S,h,w)}}(Y)):C=function(V){return function(){return r[V.name$jscomp$533].apply(r,
_.Na(_.XE.apply(0,arguments)))}}(Y),f.push([Y.name$jscomp$533,
C]);return f};
for(var Lxc=IAX(fA8((0,_.d8)(P4g))),juK=["disabled","disable-upgrade"],TzB=(0,_.d8)(function(){}),crX=new Set(Object.getOwnPropertyNames(TzB.prototype)),KxK=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.Na(crX))),iUw=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),tyC=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),W$q=new Set([].concat(_.Na(iUw),_.Na(tyC),_.Na(crX))),L$C=_.E(W$q),mDX=L$C.next();!mDX.done;mDX=L$C.next())YqE.add(mDX.value);var vrK={created:function(){ZBE(this);this.initializeInjection()}};var GQB=!1,Kx=window.ShadyDOM,IA$=["appendChild","insertBefore","removeChild","replaceChild"],fAw=[Node];Kx&&fAw.push(Kx.Wrapper);var SpE,xDu,bPK={};var s$=new Set,yQ="",pOc="";var U$,O$=new Set;var $Dd=new Set("context didCallReady is info params signalProxy".split(" ")),P4l="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),tyq="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var e$V=Vw({entities:XKq}),Jrs=new v1(e$V);var $J=function(){return _.rm.apply(this,arguments)||this};
_.t($J,_.rm);_.OC.Object.defineProperties($J.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return Jrs}}});
$J=_.A([_.fx()],$J);_.FT=[ph.prototype,$J.prototype];_.PD={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var r=this,f={};setTimeout(function(){var I;return _.kA((I=r.hostElement)!=null?I:r,"yt-live-chat-add-tooltip-target",f)},0);
this.handler_=f.handler},
detached:function(){if(this.handler_){var r;this.handler_.removeElementFromSupportingTooltips((r=this.hostElement)!=null?r:this)}this.handler_=null}}};_.Bc=new _.Go("ICON_MANAGER_TOKEN");var ji3=[48,20,18,16,15,13,12],GTK=new Map,siR=new Set,K$E=new Set,UDq=new Set,vMK=new Set,yr$=new Set,oM$=new Promise(function(r){var f=!1,I=!1,C=!1,Y=[],V=function(S){if("detail"in S)if(S=S.detail,S.name==="yt-icons")OPq(S),f=!0;else if(S.name==="yt-sys-icons")OPq(S),I=!0;else{var h;((h=S.name)==null?0:h.includes("yt-sys-icons"))&&S.size!==24&&(OPq(S,!0),Y.push(S.size),Y.length===ji3.length&&(C=!0))}f&&I&&C&&(window.removeEventListener("iron-iconset-added",V),r())};
window.addEventListener("iron-iconset-added",V)}),ArB=new Map([["access_time",
"watch_later"],["add_friend","people"],["add_to_playlist","add"],["add_to_remote_queue","add_to_queue"],["answer_neither_satisfied_nor_dissatisfied","meh"],["answer_somewhat_dissatisfied","sad"],["answer_somewhat_satisfied","happy"],["answer_very_dissatisfied","very_sad"],["answer_very_satisfied","very_happy"],["arrow-back","arrow_back"],["arrow-drop-down","arrow_drop_down"],["arrow-forward","arrow_forward"],["arrow_solid_down","arrow_solid_down-filled"],["arrow_solid_up","arrow_solid_up-filled"],
["audiotrack","music"],["auto-awesome","auto_awesome"],["avatar_anonymous","account_circle"],["avatar_logged_out","account_circle"],["back","arrow_back"],["bar_horizontal","bar_horizontal"],["block","slash_circle_left"],["bookmark_border","bookmark"],["channel_notification_preference_off","notifications"],["channel_notification_preference_on","notifications_active"],["check_circle","check_circle_thick"],["check_circle_filled","check_circle_thick-filled"],["cloud_upload","cloud_arrow_up"],["contact_support",
"help"],["content_cut","scissors"],["creation_live","live"],["creation_upload","my_videos"],["creation_upload_red","upload"],["delete_sweep","delete"],["dismissal","close"],["draft","paper_corner_folded"],["email","mail"],["emoji","very_happy"],["emoji_flags","flag"],["emoji_objects","course"],["emoji_people","very_happy"],["emoji_recent","watch_later"],["exit_app","exit_to_app"],["expand-less","collapse"],["expand-more","expand"],["expand_less","collapse"],["expand_more","expand"],["external_link",
"open_in_new"],["face_filled_happy","face_happy_v2-filled"],["face_filled_meh","face_meh_v2-filled"],["face_filled_sad","face_sad_v2-filled"],["face_filled_unhappy","face_unhappy_v2-filled"],["face_filled_very_happy","face_very_happy_v2-filled"],["face_outlined_happy","face_happy_v2"],["face_outlined_meh","face_meh_v2"],["face_outlined_sad","face_sad_v2"],["face_outlined_unhappy","face_unhappy_v2"],["face_outlined_very_happy","face_very_happy_v2"],["guide_close","chevron_left"],["help_outline","help"],
["home","tab_home"],["info_outline","info"],["insert_chart","poll"],["insert_photo","image"],["launch","open_in_new"],["likes_playlist","like"],["live","radar_live"],["live_unlisted","link"],["local_offer","purchases"],["members_only_mode_off","message"],["money_fill_jpy","yen_sign_container"],["more_chevron","expand"],["more_horiz","more"],["music_note","music"],["music_repeat_all","loop"],["music_repeat_one","loop_one"],["music_shuffle","shuffle"],["my_channel","account_circle"],["notifications_done_checkmark",
"check"],["notifications_none","notifications"],["official_artist_badge","music"],["outline_arrow_solid_down","arrow_solid_down"],["paid","creator_metadata_monetization"],["play_all","play_arrow"],["privacy_private","lock"],["privacy_unlisted","link"],["question_answer","forum"],["remove-circle-outline","remove_circle"],["report","error"],["report_problem","warning"],["schedule","watch_later"],["settings_application","settings"],["settings_material","settings"],["share_arrow","share"],["slow_mode_off",
"message"],["sticker_emoticon","happy"],["subscription_manager","settings"],["supervisor_account","people"],["tab_account","person"],["tab_explore","explore"],["tab_subscriptions","subscriptions"],["tab_trending","fire"],["timer","stopwatch"],["trending","fire"],["unlimited","subscribe"],["vertical_align_bottom","offline_download"],["video_library_white","uploads"],["video_youtube","subscribe"],["wallpaper","image"],["watch_related_mix","mix"],["what_to_watch","tab_home"]]);_.tK={};_.tK.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.Rr,computeHref_:function(r,f){f=f===void 0?!1:f;if(!r||r.commandExecutorCommand)return null;var I=BFw(r,f);return f||I!==null?I?_.N("enable_polymer_resin")?_.gn(I).toString():I:null:(_.t7(new _.nf("computeHref was null",this.is,r)),null)},
computeOptionalHref_:function(r){return this.computeHref_(r,!0)},
computeNofollow_:function(r){return r?UdR(r)?"nofollow":null:null},
computeIcon_:function(r){return r&&r.iconType?_.kN(r.iconType):""},
resolveCommand:function(r,f,I){f=f===void 0?{}:f;return _.u7(r,this.hostElement,f,I===void 0?!1:I)}};var iP3,Tw;_.HP4={};iP3=null;
Tw={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_=Jiu(this.viewroot));_.Fi(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var r=this;this.unobserve_();if(_.N("kevlar_vimio_use_shared_monitor"))DDu(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 f=[];this.visibilityOptionVisible_&&f.push(this.visibilityObserver.observe(this.hostElement,function(){return r.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&f.push(this.visibilityObserver.observe(this.hostElement,function(){return r.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&f.push(this.visibilityObserver.observe(this.hostElement,function(){return r.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=f}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){kTB(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 r=_.mI(this.parentNode,function(I){var C,Y=(C=I.polymerController)!=null?C:I;return!!Y.getVisibilityObserverForChild&&Y.getVisibilityObserverForChild()},!0);
if(r){var f;this.localVisibilityObserver_=((f=r.polymerController)!=null?f:r).getVisibilityObserverForChild()}else iP3||(iP3=Jiu()),this.localVisibilityObserver_=iP3;return this.localVisibilityObserver_},visibilityCallback:function(r){r?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.N("kevlar_use_vimio_behavior")||(Tw={});Tw&&!_.N("kevlar_use_vimio_behavior")&&(delete Tw.attached,delete Tw.detached);_.HP4.YtVisibilityObserverBehavior=[Tw];var R$D={};R$D.YtVisualElementBehavior=[_.HP4.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.N("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.N("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var r=this.getScreenLayer&&this.getScreenLayer(),f=this.getVisibilityLogger();f&&f.reportShown(this,void 0,r)}},
onHidden:function(){if(_.N("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.N("kevlar_vimio_use_shared_monitor")){var r=this.getScreenLayer&&this.getScreenLayer(),f=this.getVisibilityLogger();f&&f.reportHidden(this,void 0,r)}},
getVisibilityLogger:function(){return _.N("kevlar_use_vimio_behavior")?_.rF():null},
shouldSkipLogging:function(){if(_.Lz("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var r=this.getParentRenderer&&this.getParentRenderer();if(!r)return!1;var f,I=(f=r.polymerController)!=null?f:r;if(!I.data)return!1;r=this.data.trackingParams;r=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:r;var C;f=(C=I.data)==null?void 0:C.trackingParams;var Y,V;f=((Y=I.data)==null?0:Y.loggingDirectives)?(V=I.data)==null?void 0:V.loggingDirectives.trackingParams:f;return r&&f&&r===
f}}];var CtE=new Map,E6;var VUK=function(r){this.layer=r},co=function(r){return r.layer!==void 0?r.layer:r.parent?co(r.parent):r.layer=0};var x8E;_.D={};x8E=0;_.D.YtRendererBehavior=[_.tK.YtComponentBehavior,R$D.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_:_.N("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var r,f;(f=(r=this.monitorScrollElement)!=null?r:this.hostElement)==null||f.removeEventListener("scroll",_.GF(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();fwE(this.hostElement);oh4(_.fh(),this.hostElement);Ke.delete(this.hostElement)},
registerRenderer:function(r){var f;((f=r.polymerController)!=null?f:r).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(r),this.markDirty())},
unregisterRenderer_:function(r){this.useVimio_||(this.childCache_.delete(r),this.markDirty())},
attached:function(){var r=this,f=this.getParentRenderer();if(f){var I,C,Y;(C=(I=(Y=f.polymerController)!=null?Y:f).registerRenderer)==null||C.call(I,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var V,S;(S=(V=this.monitorScrollElement)!=null?V:this.hostElement)==null||S.addEventListener("scroll",_.GF(this,this.onScroll))}_.F_.addJob(function(){YBc(r.hostElement)},8);
I=new VUK(this.screenLayer||void 0);(f=yR(f))&&f.layerNode&&(I.parent=f.layerNode);f={};sjK(this.hostElement,(f.isRenderer=!0,f.layerNode=I,f[Wo]=this.data,f))},
getParentRenderer:function(){for(var r=this.hostElement.parentNode,f,I;r&&((f=yR(r))==null||!f.isRenderer)&&!((I=r.polymerController)!=null?I:r).isRenderer_;)r=r.parentNode||r.host;return r},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.N("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.mO("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.N("debug_web_ve_data")&&this.data.trackingParams){var r="";try{r=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(I){_.Fo(I)}if(r){var f=xyR(r,1);f!==void 0&&(this.hostElement.dataset.veIndex=String(f));r=xyR(r,2);
r!==void 0&&(this.hostElement.dataset.ve=String(r))}}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,_.N("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.VH(this.data.loggingDirectives.trackingParams)),this.visualElement=_.fv(_.IB(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var r=this.data.targetId;_.AIg(_.fh(),r,this.hostElement)}else oh4(_.fh(),this.hostElement)},
onScroll:function(){var r=Date.now();r-this.lastHandledScroll_<50||(this.lastHandledScroll_=r,this.markDirty())},
markDirty:function(){_.N("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():hPE(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var r=this.getParentRenderer();if(r&&(r=yR(r))&&r.layerNode)return co(r.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.Na(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var r=0;r<this.data.impressionEndpoints.length;r++)this.sendImpression(this.data.impressionEndpoints[r]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(r){r.clickTrackingParams&&delete r.clickTrackingParams;var f,I;(r==null?0:(f=r.commandMetadata)==null?0:(I=f.webCommandMetadata)==null?0:I.sendPost)?_.Do(this.hostElement,[r,{impression:!0}]):_.rX(this.hostElement,[r],this.hostElement)},
logExplicitClick:function(r){var f=_.t1(this.getScreenLayer());if(f){var I,C=(I=r.polymerController)!=null?I:r;r=C.visualElement;C=C.trackingParams||C.clickTrackingParams;!r&&C&&(r=_.VH(C));r&&_.im(f,r)}}}];var vM3={},cD=function(){return _.rm.apply(this,arguments)||this};
_.t(cD,_.rm);cD.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
cD.prototype.onPdgItemBehaviorClick=cD.prototype.onPdgItemBehaviorClick;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],cD.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],cD.prototype,"data",void 0);_.A([_.kO("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],cD.prototype,"onPdgItemBehaviorClick",null);cD=_.A([_.fx()],cD);vM3.YtPdgLiveChatItemBehavior=[cD.prototype,_.D.YtRendererBehavior];var K$q;var yrX;_.WD={};_.WD.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var Lh=function(){var r=Qt.apply(this,arguments)||this;r.switchTemplateAtRegistration=!1;return r};
_.t(Lh,Qt);Lh.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||nKc(this),_.sQl(this,"doRender"),this.doRender())};
Lh.prototype.debounceRender=function(){this.templatingFn&&_.Pc(this,"doRender",this.doRender)};
Lh.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.Fo(Error("$g"))};
Lh.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
Lh=_.A([mid()],Lh);var UDC=Lh;var siB=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,mg={},gKw=(mg[1]={filterString:null,isUnwrappable:null,unwrap:null},mg[2]={filterString:function(r,f,I){return Bl(I)},
isUnwrappable:function(r){return r instanceof TC},
unwrap:function(r){return WL(r)}},mg[3]={filterString:function(r,f,I){return siB.test(I)?I:M3.toString()},
isUnwrappable:function(r){return pK(r)},
unwrap:function(r){return _.nK(r)}},mg[4]={filterString:function(){return M3.toString()},
isUnwrappable:function(r){return r instanceof ER},
unwrap:function(r){return _.x1(r).toString()}},mg[5]={filterString:function(r,f,I){return I},
isUnwrappable:function(r){return typeof r==="string"},
unwrap:function(r){return r.toString()}},mg[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(r){return r instanceof _.jF},
unwrap:function(r){return iM(r)}},mg[8]={filterString:function(r,f,I){I=String(I).toLowerCase();
return $4c(r,f,I)?I:"zClosurez"},
isUnwrappable:null,unwrap:null},mg[10]={filterString:null,isUnwrappable:null,unwrap:null},mg);o5[Ly["default"]]=XAl;var Nyd=[];var JbU=FcB("A"),j3R=FcB("BUTTON"),Su=FcB("DIV"),HIK=FcB("LABEL");(function(){var r=Um;Um=function(f){r==null||r(f);wF(function(){for(var I=0;I<f.length;I++)$8U(f[I])})}})();var ev=function(){var r=_.rm.apply(this,arguments)||this;r.hasUnmounted=!1;return r};
_.t(ev,_.rm);_.l=ev.prototype;_.l.beforeRegister=function(){var r=this.doIdomRender;this.templatingFn?_.Fo(Error("Zg")):(this.templatingFn=r,this.switchTemplateAtRegistration=!0,MRw(this))};
_.l.attached=function(){};
_.l.detached=function(){$8U(this.hostElement)};
_.l.renderIdom=function(){throw Error("bh");};
_.l.doIdomRender=function(){var r=this;hhB(this.hostElement,function(){r.renderIdom()})};
ev=_.A([_.fx()],ev);var OPC=[UDC.prototype,ev.prototype];var oMX,QiC=function(){return oMX!==void 0?oMX:oMX=document.createElement("template")};
document.head.appendChild(QiC().content);var Ar4;var ZPq,GT3=function(){return ZPq!==void 0?ZPq:ZPq=document.createElement("template")};
document.head.appendChild(GT3().content);var kT4;var Bz_=document.head,qpD=Bz_.appendChild,ub_;if(kT4===void 0){var DD4=document.createElement("template");_.c(DD4,"\x3c!--css-build:shady--\x3e");DD4.content.insertBefore(GT3().content.cloneNode(!0),DD4.content.firstChild);kT4=DD4}ub_=kT4;qpD.call(Bz_,ub_.content);var rt3,fwq=function(){return rt3!==void 0?rt3:rt3=document.createElement("template")};
document.head.appendChild(fwq().content);var IwV;var Ctq=document.head,YBT=Ctq.appendChild,lw4;if(IwV===void 0){var VRq=document.createElement("template");_.c(VRq,"\x3c!--css-build:shady--\x3e");VRq.content.insertBefore(fwq().content.cloneNode(!0),VRq.content.firstChild);IwV=VRq}lw4=IwV;YBT.call(Ctq,lw4.content);var EKD=document.head,SBC=EKD.appendChild,x8q;if(Ar4===void 0){var hPq=document.createElement("template");_.c(hPq,"\x3c!--css-build:shady--\x3e");hPq.content.insertBefore(QiC().content.cloneNode(!0),hPq.content.firstChild);Ar4=hPq}x8q=Ar4;SBC.call(EKD,x8q.content);var wAT,bnC=function(){return wAT!==void 0?wAT:wAT=document.createElement("template")};
document.head.appendChild(bnC().content);var pA8;_.cI=new _.Go("DARK_THEME_TOKEN");var dFE=new _.q("accessibilityProperties");var nyP=new _.q("layoutProperties");var zfm=new _.q("imageType");var nKT={};if("ytAttributedStringLinkHoverColor"in nKT)throw Error("eh`ytAttributedStringLinkHoverColor");(function(r,f){nKT[r]="value"in f&&"unit"in f?WcR(r,f):function(I){try{return f(I)}catch(C){throw Error("ch`"+r+"`"+C.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var d8_=function(r){var f=this;this.holdTime=r===void 0?500:r;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(I){var C=new CustomEvent("LONG_PRESS"),Y;(Y=I.changedTouches[0].target)==null||Y.dispatchEvent(C)};
this.ontouchstart=function(I){f.longPressTimeout=_.aK(_.F_,function(){f.onlongpress(I);f.longPressOccurred=!0},f.holdTime)};
this.ontouchmove=function(){_.F_.cancelJob(f.longPressTimeout);f.longPressTimeout=NaN;f.longPressOccurred=!1;f.moveOccurred=!0};
this.ontouchend=function(I){if(f.longPressTimeout&&!f.longPressOccurred&&!f.moveOccurred){var C;(C=I.changedTouches[0].target)==null||C.dispatchEvent(new Event("click"))}_.F_.cancelJob(f.longPressTimeout);f.longPressTimeout=NaN;f.longPressOccurred=!1;f.moveOccurred=!1}};var Bym=function(r,f){d8_.call(this,f);var I=this;this.callback=r;this.onlongpress=function(C){var Y;(Y=I.callback)==null||Y.call(I,C)}};
_.t(Bym,d8_);var qBm=function(r,f){var I=Object.assign({},f);r=_.E(new Map([["ontouchstart",r.ontouchstart],["ontouchend",r.ontouchend],["ontouchmove",r.ontouchmove]]));for(var C=r.next(),Y={};!C.done;Y={eventName$jscomp$87:void 0,eventHandler$jscomp$3:void 0},C=r.next()){var V=_.E(C.value);C=V.next().value;V=V.next().value;Y.eventName$jscomp$87=C;Y.eventHandler$jscomp$3=V;f[Y.eventName$jscomp$87]=function(S){return function(h){var w;(w=I[S.eventName$jscomp$87])==null||w.call(I,h);(0,S.eventHandler$jscomp$3)(h)}}(Y)}};_.Gg=new _.Go("COMMAND_HANDLER_TOKEN");var m8w=new _.q("parallelCommand");var jyB=new _.q("performOnceCommand");var JtE=new _.q("serialCommand");var HnR=void 0;var zP3=function(){this.data=[]};
zP3.prototype.push=function(r){this.data.push(r)};var u6={};_.ld(u6,void 0,"sgPmTd");_.ld(null,void 0,"jypsq");var OCl=new zP3;var Onw=[KK8,ymT,Uc_,OwB,sR3,vq8,oqU,QRg];var bsw=new _.q("bracketTextDecorator");var Ti=new _.q("highlightTextDecorator");_.Lv=new _.Go("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var Eyq=function(){},MR8;
(MR8=window.requestIdleCallback)==null||MR8.bind(window);var xFU={calledOnce:!1,state:"visible"},S4R={calledOnce:!1,state:"hidden"};var SyR=new _.Go("ICON_RENDERER_TOKEN"),gK8=new _.Go("ICON_WIZ_COMPONENT_TOKEN");_.V2=_.Hc(function(r){var f=r.icon;var I=r.active;var C=r.className;var Y=r.style;var V=r.dataSelected;var S=r.dataDisabled;var h=r.role;var w=r.animateIcon;var n=r.themeOverride;var d=r.ariaHidden;var z=r.ariaExpanded;var g=r.ariaLabel;var X=r.id;var P=r.size;var W=r.iconFilter;return _.p(_.M,{cond:f,then:function(){var m=_.a().resolve(gK8);return _.p(m,{icon:f,dataSelected:V,dataDisabled:S,animateIcon:w,themeOverride:n,ariaExpanded:z,id:X,active:I,size:P,role:h,className:C,ariaHidden:d,ariaLabel:g,
style:function(){return Y!=null&&Y()||P==null||!P()?Y==null?void 0:Y():"width: "+(P==null?void 0:P())+"px;height: "+((P==null?void 0:P())+"px;")},
iconFilter:W})}})},"b");
_.V2.idomCompat=!0;var JC$=window.devicePixelRatio||1;var RfR=new Map([["yt_outline_bag_black_24","bag"]]);var JK=function(r){var f=this;this.margin=.1;this.whenInViewportWithMargin=r;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){f.requestScan()});
window.addEventListener("touchend",function(){f.requestScan()});
window.addEventListener("updateui",function(){f.requestScan()});
var I=new _.Gk((0,_.gL)(this.requestScan,this),100);window.addEventListener("scroll",function(){I.fire()},!0);
window.addEventListener("resize",(0,_.gL)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){f.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.gL)(this.requestScan,this))};
JK.prototype.observe=function(r){this.observationTargets.includes(r)||this.observationTargets.push(r)};
JK.prototype.unobserve=function(r){this.observationTargets=this.observationTargets.filter(function(f){return f!==r})};
JK.prototype.requestScan=function(){var r=this;this.scanRequested||(wF(function(){aw3(r)}),this.scanRequested=!0)};
var aw3=function(r){var f=(1+r.margin)*(document.documentElement.clientHeight||window.innerHeight);r.observationTargets=r.observationTargets.filter(function(I){var C=I.getBoundingClientRect();(C=f>C.top&&!!C.height)&&r.whenInViewportWithMargin(I);return!C&&I.parentNode});
r.scanRequested=!1};
JK.prototype.disconnect=function(){this.observationTargets=[]};var XAg,$8V;XAg=_.E(_.ld(UF$(),void 0,"O3X2wd"));_.NyU=XAg.next().value;$8V=XAg.next().value;window.addEventListener("resize",function(){$8V(UF$())});var Fc4={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},Pt3=void 0,tR4=window.innerWidth,Tys=window.innerHeight;window.addEventListener("resize",function(){Pt3=void 0});var ct4;if("IntersectionObserver"in window)ct4=oy$();else{if(Pt3===void 0){var WcB;WcB="matchMedia"in window?window.matchMedia(Fc4.landscape+","+Fc4.portrait).matches:void 0;Pt3=WcB!==void 0?WcB:tR4>=930&&Tys>=550||tR4>=550&&Tys>=930}ct4=Pt3?{observe:function(r){wF(function(){var f;(f=r.onViewportEntered)==null||f.call(r)})},
unobserve:function(){}}:new JK(function(r){wF(function(){var f;
(f=r.onViewportEntered)==null||f.call(r)})})}var sdm=ct4;var Lc8=_.Hc(function(r){var f=!1,I=_.yy(function(C){_.$L(function(){f=!0;C.onload=null})});
_.az(function(){var C,Y=(C=r.data)==null?void 0:C.call(r),V,S=(V=r.getSrc)==null?void 0:V.call(r).cb,h;C=(h=r.config)==null?void 0:h.call(r);if(h=I.value)if(V=function(n,d){if(!f)return S?S(n,d):n},ZsR(h,C),_.N("web_image_dont_reload_same_src")&&ACK(h,Y,V))_.N("web_image_dont_reload_same_src_simulate_load")&&h.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var w;QdK(h,Y||null,V,C,(w=r.lazy)==null?void 0:w.call(r))}});
return _.p("img",{el:I})},"c");
Lc8.idomCompat=!0;_.J3=_.Hc(function(r){var f=function(){var I,C=r.data(),Y,V,S,h,w,n,d,z,g,X,P,W,m,v,O,k,Z,Cw,rR,EP,Pu,Wu,cu,OP,iU,oR,vu;var wB={contentMode:(Y=r.contentMode)==null?void 0:Y.call(r),loadedClass:(V=r.loadedClass)==null?void 0:V.call(r),isPreloaded:(S=r.isPreloaded)==null?void 0:S.call(r),notifyOnLoaded:(h=r.notifyOnLoaded)==null?void 0:h.call(r),notifyOnUnloaded:(w=r.notifyOnUnloaded)==null?void 0:w.call(r),preferredThumbnail:(n=r.preferredThumbnail)==null?void 0:n.call(r),preserveHeight:(d=r.preserveHeight)==
null?void 0:d.call(r),preserveWidth:(z=r.preserveWidth)==null?void 0:z.call(r),objectPosition:(g=r.objectPosition)==null?void 0:g.call(r),targetWidth:(X=r.targetWidth)==null?void 0:X.call(r),targetHeight:(P=r.targetHeight)==null?void 0:P.call(r),shouldShowPlaceholder:(W=r.shouldShowPlaceholder)==null?void 0:W.call(r),useWidth:(m=r.useWidth)==null?void 0:m.call(r),alt:(v=r.alt)==null?void 0:v.call(r),className:(O=r.className)==null?void 0:O.call(r),onerror:r.onerror,onload:r.onload,style$:((k=r.style$)==
null?void 0:k.call(r))||((Z=r.style)==null?void 0:Z.call(r)),color:(Cw=r.color)==null?void 0:Cw.call(r),width:(rR=r.width)==null?void 0:rR.call(r),height:(EP=r.height)==null?void 0:EP.call(r),"aria-hidden$":(oR=(Pu=r["aria-hidden$"])==null?void 0:Pu.call(r))!=null?oR:(Wu=r.ariaHidden)==null?void 0:Wu.call(r),draggable:(cu=r.draggable)==null?void 0:cu.call(r),"data-disabled$":(vu=(OP=r["data-disabled$"])==null?void 0:OP.call(r))!=null?vu:(iU=r.dataDisabled)==null?void 0:iU.call(r)};return B6$(C,wB,
(I=r.hideOn404)==null?void 0:I.call(r))};
return _.p(_.MC,null,_.p(_.nz,{when:function(){var I;return((I=f())==null?void 0:I.type)==="image"}},function(){return _.p(Lc8,{data:function(){return f().image},
getSrc:{cb:function(I,C){var Y=f().image.sources,V=f().config.isPreloaded,S=f().config.useWidth,h=f().config.targetWidth,w=f().config.targetHeight,n=f().config.preferredThumbnail;return _.jdU(C,Y,V,S,h,w,n)||""}},
config:function(){var I=f().config,C;for(C in I)I[C]===void 0&&delete I[C];return I},
lazy:r.renderLazy})}),_.p(_.nz,{when:function(){var I;
return((I=f())==null?void 0:I.type)==="icon"}},function(){return _.p(_.V2,{icon:function(){return f().iconName},
role:function(){return f().config.role},
className:function(){return f().config.className},
style:function(){return f().config.style$+";width: "+(f().config.width+"px;height: ")+(f().config.height+"px;color: ")+(f().config.color+";")},
ariaLabel:function(){return f().config["aria-label$"]},
ariaHidden:function(){return f().config["aria-hidden$"]},
dataDisabled:function(){return f().config["data-disabled$"]}})}))},"d");
_.J3.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var m88=function(r){return function(f){return _.p(c8K,null,function(){var I=f.data(),C=_.tR(f.config);return _.p(se,null,function(){return void r(I,C)})})}}(r4q),uk$=_.Hc(function(r){var f=function(C){var Y,V=_.HI(function(g){Y=P9(function(){for(var X=_.E(d()),P=X.next();!P.done;P=X.next()){P=fJK(P.value);
P=typeof P==="string"?document.createTextNode(P):P;if(!(P instanceof Node)){X=new _.nf("Part is not a node",P,typeof P);_.Fo(X);break}g.appendChild(P)}})}),S=iT(function(){return gyd(C())},{isEqual:q4R}),h=_.JG(r.config),w=function(){var g,X=S();
return!((g=h())==null||!g.ariaLabel)||!(X.commandRuns&&X.commandRuns.length!==0||X.paragraphStyleRuns&&X.paragraphStyleRuns.length!==0)},n=iT(h,{isEqual:CWm}),d=function(){var g=Mtd(S(),n());
Xmw(g,n());return S().content?T6d(S().content,g).parts:[]},z=!0;
_.az(function(){S();n();if(z)z=!1;else{var g=d();Promise.resolve().then(function(){var X=V.value;if(X){X.innerText="";var P;(P=Y)==null||P();Y=_.av(X,function(){return _.p(IJK,{parts:g})})}})}});
return _.p("span",{el:V,class:function(){return S()&&Itc(S(),h())},
dir:function(){var g;return((g=h())==null?0:g.userInput)?"auto":void 0},
"aria-label":function(){var g;return w()?(g=h())==null?void 0:g.ariaLabel:void 0},
role:function(){return w()?"text":void 0}})},I;
return((I=r.config)==null?0:I.renderedFromFormattedString)?f(r.text):_.p(_.M,{cond:r.text,then:f})},"e");
uk$.idomCompat=!0;_.wW=_.Hc(function(r){var f=_.JG(r.text),I=Ybq(r);r.renderedFromFormattedString!==void 0&&(I.renderedFromFormattedString=!0);return _.N("attr_string_reactive")?_.p(uk$,{text:f,config:I}):_.p(_.M,{cond:function(){var C;return f()&&((C=gyd(f()))==null?void 0:C.content)},
then:function(){return _.p(m88,{data:r.text,config:I})},
debugInstance:"Apcuac"})},"f");
_.wW.idomCompat=!0;var VkP=function(r,f,I){f=f===void 0?"unknown":f;I=I===void 0?{}:I;_.nf.call(this,r+" ("+f+")",Object.assign({},{name:"YtWcwError",tagName:f},I));Object.setPrototypeOf(this,this.constructor.prototype)};
_.t(VkP,_.nf);_.pT$=new WeakMap;_.bgc=!1;var wTU,nRw,Sbd,hxP;_.jv=Symbol("gh");_.vI=Symbol("hh");wTU=Symbol("ih");nRw=new Set(Object.getOwnPropertyNames(Element.prototype));Sbd=!_.N("web_wcw_disable_component_function_named_child_props");hxP=Symbol("jh");var ePT=_.Hc(function(r){return _.p("yt-attributed-string",{"aria-label":r.ariaLabel,hidden:r.hidden,id:r.id,class:r.className,"force-default-style":r.forceDefaultStyle},_.p(_.wW,{text:r.data,ariaLabel:r.ariaLabel,ellipsisTruncate:r.ellipsisTruncate,isOverlay:r.isOverlay,linkInheritColor:r.linkInheritColor,noPreWrap:r.noPreWrap,noWrap:r.noWrap,userInput:r.userInput,noEndpoints:r.noEndpoints,headerRuns:r.headerRuns}))},"g");
_.N("web_wiz_attributed_string")&&_.Kv(ePT,"yt-attributed-string",{props:{ariaHidden:_.jv,ariaLabel:_.jv,className:_.jv,ellipsisTruncate:_.jv,isOverlay:_.jv,linkInheritColor:_.jv,noEndpoints:_.jv,noStyleRuns:_.jv,noLinkColor:_.jv,noPreWrap:_.jv,noWrap:_.jv,skipOnClick:_.jv,userInput:_.jv,headerRuns:_.jv,id:_.jv,data:_.jv,hidden:_.jv,forceDefaultStyle:_.jv,text:_.vI,stopPropagation:_.vI,disableUpgrade:_.vI,disable:_.vI,slot:_.vI}});var HD=function(){return _.y.apply(this,arguments)||this};
_.t(HD,_.y);HD.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},r4q(this.data,this.config))};
_.A([_.J(OPC),_.B("design:type",Object)],HD.prototype,"ytIdomTemplatingBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],HD.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],HD.prototype,"ariaLabel",void 0);_.A([_.K(),_.B("design:type",Boolean)],HD.prototype,"disable",void 0);_.A([_.K(),_.B("design:type",Boolean)],HD.prototype,"ellipsisTruncate",void 0);_.A([_.K(),_.B("design:type",Boolean)],HD.prototype,"isOverlay",void 0);
_.A([_.K(),_.B("design:type",Boolean)],HD.prototype,"linkInheritColor",void 0);_.A([_.K(),_.B("design:type",Boolean)],HD.prototype,"noPreWrap",void 0);_.A([_.K(),_.B("design:type",Boolean)],HD.prototype,"noWrap",void 0);_.A([_.K(),_.B("design:type",Boolean)],HD.prototype,"userInput",void 0);_.A([_.K(),_.B("design:type",Boolean)],HD.prototype,"noEndpoints",void 0);_.A([_.K(),_.B("design:type",Array)],HD.prototype,"headerRuns",void 0);
HD=_.A([_.zX({is:"yt-attributed-string",disableElementRegistration:!0})],HD);
_.N("web_wiz_attributed_string")||_.Q(HD,"yt-attributed-string",function(){if(pA8===void 0){var r=document.createElement("template");_.c(r,"\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");r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
r.content.insertBefore(bnC().content.cloneNode(!0),r.content.firstChild);pA8=r}r=pA8;return r},{mode:2});var Jtq,jy4,NkK;Jtq=function(){this.firstThumbnailLoaded=!1};
_.HnB=function(){jy4||(jy4=new Jtq);return jy4};
NkK=function(r){var f=_.HnB();f.firstThumbnailLoaded||(f.firstThumbnailLoaded=!0,_.Xc("ftl",r))};
Jtq.prototype.reset=function(){this.firstThumbnailLoaded=!1};var zxK=0,XTq=new WeakMap,gRB=0,s6=new Set;var ins,RP_=function(){return ins!==void 0?ins:ins=document.createElement("template")};
document.head.appendChild(RP_().content);var vK4;var tkd,c4K,ig;_.QH=_.Yq.caches;ig=function(){};
ig.prototype.open=function(r){return _.QH.open(KcX(r))};
ig.prototype.has=function(r){return _.QH.has(KcX(r))};
ig.prototype.delete=function(r){return _.QH.delete(KcX(r))};
ig.prototype.match=function(r,f){var I=this,C,Y,V,S,h,w;return _.x(function(n){switch(n.nextAddress){case 1:return _.b(n,I.keys(),2);case 2:C=n.yieldResult,Y=_.E(C),V=Y.next();case 3:if(V.done){n.jumpTo(5);break}S=V.value;return _.b(n,I.open(S),6);case 6:return h=n.yieldResult,_.b(n,h.match(r,f),7);case 7:if(w=n.yieldResult)return n.return(w);V=Y.next();n.jumpTo(3);break;case 5:return n.return()}})};
var WfK=function(){};
_.t(WfK,ig);var KcX=function(r){if(r.includes(":"))throw Error("mh`"+r);return r+":"+_.bh("CacheStorage get")};
WfK.prototype.keys=function(){var r,f,I,C,Y,V,S,h,w;return _.x(function(n){if(n.nextAddress==1)return r=[],f=_.bh("CacheStorage keys"),_.b(n,_.QH.keys(),2);I=n.yieldResult;C=_.E(I);for(Y=C.next();!Y.done;Y=C.next())V=Y.value,S=_.PWd(V),h=S.originalName,w=S.datasyncId,w===f&&r.push(h);return n.return(r)})};var R_=function(){var r=_.y.apply(this,arguments)||this;r.objectURL=null;r.loadTime=Infinity;return r};
_.t(R_,_.y);_.l=R_.prototype;_.l.renderIdom=function(){FfR(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("ph");this.setConfig();this.config&&GEq(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.l.objectFitToContentMode=function(r){switch(r){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 r=_.pQ(197497);_.Ia(_.IB(),r);var f=_.t1();f&&r&&f&&_.j_(f,[r])};
_.l.loadImageFromCacheIfExists=function(r){var f=this,I=r.target;(I==null?0:I.src)&&mHd(I.src).then(function(C){f.objectURL=_.aw(C).toString();f.setSrc(I,f.objectURL)}).catch(function(){})};
_.l.onError=function(r){var f=this;if(_.N("web_use_cache_for_image_fallback")){var I=r.target;I&&mHd(I.src).then(function(C){f.objectURL=_.aw(C).toString();f.setSrc(I,f.objectURL)}).catch(function(){_.N("kevlar_woffle_log_thumbnail_failure_ve")&&f.logThumbnailFailureVe();
_.N("kevlar_woffle_fallback_image")&&f.setSrc(I,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.l.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.l.setConfig=function(){var r=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(f){r.loadImageFromCacheIfExists(f);r.revokeObjectURL();$Hw(r.hostElement)},
onerror:function(f){r.onError(f)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.N("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.l.setSrc=function(r,f){f&&(r.src=f)};
_.A([_.J(OPC),_.B("design:type",Object)],R_.prototype,"ytIdomTemplatingBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],R_.prototype,"data",void 0);_.A([_.K(),_.B("design:type",String)],R_.prototype,"alt",void 0);_.A([_.K(),_.B("design:type",Boolean)],R_.prototype,"ftlEligible",void 0);_.A([_.K(),_.B("design:type",Number)],R_.prototype,"height",void 0);_.A([_.K(),_.B("design:type",Boolean)],R_.prototype,"notifyOnLoaded",void 0);
_.A([_.K(),_.B("design:type",Boolean)],R_.prototype,"notifyOnUnloaded",void 0);_.A([_.K(),_.B("design:type",String)],R_.prototype,"objectFit",void 0);_.A([_.K(),_.B("design:type",String)],R_.prototype,"objectPosition",void 0);_.A([_.K(),_.B("design:type",String)],R_.prototype,"preferredThumbnail",void 0);_.A([_.K(),_.B("design:type",Boolean)],R_.prototype,"preserveHeight",void 0);_.A([_.K(),_.B("design:type",Boolean)],R_.prototype,"preserveWidth",void 0);
_.A([_.K({value:!0}),_.B("design:type",Boolean)],R_.prototype,"useWidth",void 0);_.A([_.K({value:function(){return!_.mO("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.B("design:type",Boolean)],R_.prototype,"shouldRenderLazy",void 0);_.A([_.K(),_.B("design:type",Number)],R_.prototype,"width",void 0);R_=_.A([_.zX({is:"yt-image",disableElementRegistration:!0})],R_);
_.Q(R_,"yt-image",function(){if(vK4===void 0){var r=document.createElement("template");_.c(r,"\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");r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);r.content.insertBefore(RP_().content.cloneNode(!0),r.content.firstChild);
vK4=r}r=vK4;return r},{mode:2});var vD=function(){return _.y.apply(this,arguments)||this};
_.t(vD,_.y);vD.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var r=_.aB(this.data.onVisibleCommand);r&&this.ytComponentBehavior.resolveCommand(r)}};
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],vD.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.WD.YtVisibilityBehavior),_.B("design:type",Object)],vD.prototype,"ytVisibilityBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],vD.prototype,"data",void 0);vD=_.A([_.zX({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],vD);
_.Q(vD,"yt-bumper-user-edu-content-view-model",function(){if(yrX===void 0){var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;K$q===void 0&&(K$q=document.createElement("template"));var C=K$q;I.call(f,C.content.cloneNode(!0),r.content.firstChild);yrX=r}r=yrX;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var ytX;var U84,syB=function(){if(U84!==void 0)return U84;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;ytX===void 0&&(ytX=document.createElement("template"));var C=ytX;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return U84=r};var On8;_.Kh={};On8=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"]);_.Kh.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var r=this.getContext_();return r?r.getTaskManager():_.F_},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var r=_.kA(this.hostElement,"yt-get-context-provider",{});r.detail&&r.detail.contextProvider?this.cachedProviderNode_=r.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return On8.has(this.hostElement.localName)},
getNetworkManager:function(){var r=this.getContext_();if(r)return r.getNetworkManager()}};var RxE,oKT,Atg,Qy3;_.yb=function(r){var f=oKT.get(r);if(f&&(f=f.pop()))return Qy3++,f;Atg++;try{var I=document.createElement(r)}catch(C){throw new _.nf("ElementPool failed to create element",r,C.message);}return I};
RxE=function(r){var f=r.is;if(f){var I=oKT.get(f);I||(I=[],oKT.set(f,I));var C=_.Lz("ELEMENT_POOL_CONFIG")||{};I.length>=(C[f]!==void 0?C[f]:_.Lz("ELEMENT_POOL_DEFAULT_CAP",0))||I.push(r)}else _.t7(new _.nf("Element pool should only handle custom elements:",r.nodeName))};
oKT=new Map;Atg=0;Qy3=0;var A3=new WeakMap,igw=new WeakMap;var Gns;_.Un=function(r,f,I){I=I===void 0?_.tF():I;this.JSC$11542_defaultPriority=r;this.signal=f;this.scheduler=I;this.nextJobDescriptor=0;this.JSC$11542_parkedJobs=[];this.scheduledJobs=new Map};
_.sn=function(r,f){if(f){var I=_.mZ();r.signal&&!_.eN(I,r.signal)?(I.addListener(r.signal,function(){r.processSignal()}),r.JSC$11542_parkedJobs.push({job:f,
priority:void 0})):ZnT(r,f)}};
Gns=function(r,f){if(f!==r.JSC$11542_defaultPriority){r.JSC$11542_defaultPriority=f;for(var I=_.E(r.scheduledJobs.values()),C=I.next();!C.done;C=I.next())C=C.value,r.scheduler.cancelJob(C.jobId),C.jobId=r.scheduler.addJob(C.jobWrapper,f)}};
_.Un.prototype.flushJobs=function(){Gns(this,10);this.processSignal()};
_.Un.prototype.cancel=function(){for(var r=_.E(this.scheduledJobs),f=r.next();!f.done;f=r.next()){var I=_.E(f.value);f=I.next().value;I=I.next().value;this.scheduler.cancelJob(I.jobId);this.scheduledJobs.delete(f)}this.JSC$11542_parkedJobs=[]};
_.Un.prototype.processSignal=function(){for(var r=_.E(this.JSC$11542_parkedJobs),f=r.next();!f.done;f=r.next())f=f.value,ZnT(this,f.job,f.priority);this.JSC$11542_parkedJobs=[]};
var ZnT=function(r,f,I){I=I||r.JSC$11542_defaultPriority;if(I===10)O6(f);else{var C=r.nextJobDescriptor++,Y=function(){f();r.scheduledJobs.delete(C)},V=r.scheduler.addJob(Y,I);
r.scheduledJobs.set(C,{jobWrapper:Y,jobId:V,priority:I})}};_.GL(UHl);var sXP={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};TpB({beforeVisit:function(r){if(s$.has(r.type)){var f;(f=r.props).idomKey!=null||(f.idomKey=r.type)}else r.type.TAG_NAME&&(yQ=r.type.TAG_NAME)},
afterRender:function(r,f){var I;yQ=(I=f==null?void 0:f.type)!=null?I:""},
didPatch:function(){yQ=""}});var knB;_.On={};knB={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.On.YtRendererstamperBehavior=[_.Kh.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 r in this.stampDom){var f=this.stampDom[r];f&&f.id&&this.addReactiveSchema({type:"observe",method:{methodName:J4R(f.id),args:[{type:"wildcard",path:r}]}})}else{(r=(this.constructor.generatedFrom||this).observers)||(r=[]);for(f in this.stampDom){var I=this.stampDom[f];I&&I.id&&r.push(J4R(I.id)+"("+f+".*)")}this.constructor.generatedFrom.observers=r}},
addStampDomObserverFns_:function(){for(var r in this.stampDom){var f=this.stampDom[r];f.id?(this[J4R(f.id)]=this.rendererStamperObserver_.bind(this,r,f.id),this.hasDataPath_[r]=!1):(f=new _.nf("Bad rendererstamper config",this.is+":"+r),_.Fo(f))}},
rendererStamperObserver_:function(r,f,I){if(I.path==r){if(I.value===void 0&&!this.hasDataPath_[r])return;this.hasDataPath_[r]=I.value!==void 0}this.rendererStamperApplyChangeRecord_(r,f,I)},
rendererStamperApplyChangeRecord_:function(r,f,I){var C=this.renderJobsMap_[f],Y=null;r==I.path?(I=I.value,_.ID(I)||(I=I===void 0||I===null?[]:[I]),r=this.stampDom[r],r.mapping&&(Y=this.stampDomArray_.bind(this,I,f,r.mapping,r.reuseComponents,r.events,r.stamperStableList)),C&&C.cancel(),I=r.usePageScheduler?this.getTaskManager():void 0,C||r.initialRenderPriority==void 0)?r.renderPriority==void 0||C||(C=new _.Un(r.renderPriority,r.waitForSignal,I),this.renderJobsMap_[f]=C):(C=new _.Un(r.initialRenderPriority,
r.waitForSignal,I),this.renderJobsMap_[f]=C,Y=function(V,S){V();Gns(S,10)}.bind(this,Y,C)):Y=r+".splices"==I.path?this.stampDomArraySplices_.bind(this,r,f,I.value):this.forwardRendererStamperChanges_.bind(this,r,f,I);
C?_.sn(C,Y):Y()},
forwardRendererStamperChanges_:function(r,f,I){var C=I.path.slice(r.length+1),Y=this.getStampContainer_(f),V=C.indexOf("."),S=C.substring(0,V),h=!1,w=0,n=parseInt(S,0);if(S[0]=="#"){h=parseInt(S.substring(1),0);n=this.get(r);var d=this.get([r,S]);n[h]==d?w=h:w=n.indexOf(d);h=!0}else isNaN(n)||(w=n,h=!0);h&&(C=C.substring(S.length+1),V=C.indexOf("."));S=_.zI(Y).children[w];var z;if(Y=(z=S==null?void 0:S.polymerController)!=null?z:S)C="data"+C.slice(V),typeof Y.notifyPath!=="function"?_.t7(new _.nf("notifyPath missing",
this.is+": "+r+", "+f)):I.value?Y.notifyPath(C,I.value):Y.notifyPath(C)},
stampDomArraySplices_:function(r,f,I){if(I&&I.indexSplices){var C=this.getStampContainer_(f);if(C){for(var Y=_.zI(C),V=Hgu(this.stampDom[r].reuseComponents),S=I.indexSplices.length,h=0;h<S;h++){for(var w=I.indexSplices[h],n=Y.children[w.index],d=w.removed.length;d>0;d--)n&&n.parentElement&&(_.zI(n.parentElement).removeChild(n),V&&RxE(n),n=Y.children[w.index]);d=this.stampDom[r].mapping;for(var z=w.index+w.addedCount,g=document.createDocumentFragment(),X=V,P=w.index;P<z;P++){var W=w.object[P],m=exU(d,
W);if(m){var v=d[m];W=W[m];m=this.getComponentName_(v,W);var O=n?A3.has(n):!1;X&&n&&n.is==m&&O?(m=n,this.telemetry_.reuse++,n=n.nextElementSibling):X&&n&&O?(m=this.createComponent_(v,W,V),O=_.zI(n).nextElementSibling,Y.insertBefore(m,O),Kfl(this.is,Y,n,V),n=O):(X=!1,m=this.createComponent_(v,W,V),g.appendChild(m));this.deferRenderStamperBinding_(m,v,W)}else v=new _.nf("Unimplemented type",r,f,C.tagName,Object.keys(W)[0]),_.Fo(v)}Y.insertBefore(g,n)}this.flushRenderStamperComponentBindings_();this.stampDom[r].events&&
_.kA(this.hostElement,"yt-rendererstamper-finished",{container:C})}else r=new _.nf("Container object not found",f,this.hostElement?this.hostElement.is:""),_.Fo(r)}},
stampDomArray_:function(r,f,I,C,Y,V){var S=this.getStampContainer_(f);if(S)if(f=_.zI(S),C=Hgu(C),r){var h=0,w=0,n;if(V=V===void 0?_.mO("STAMPER_STABLE_LIST",!1):V||!1)for(n=f.firstElementChild;n&&!A3.has(n)&&r.length>w;){V=r[w];var d=exU(I,V);if(d){if(this.getComponentName_(I[d],V[d])!=n.is){var z=this.createComponent_(I[d],V[d],C),g=_.zI(n).nextElementSibling;g?f.insertBefore(z,g):f.appendChild(z);Kfl(this.is,f,n,C);n=z}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(n,I[d],V[d]);h++;
w++;n=_.zI(n).nextElementSibling}else w++}y4q(this.is,f,h,C);h=n;if(r.length>w){V=document.createDocumentFragment();for(d=r.length;w<d;w++)if(z=r[w],g=exU(I,z))n=this.createComponent_(I[g],z[g],C),this.deferRenderStamperBinding_(n,I[g],z[g]),V.appendChild(n);h&&_.zI(h).parentNode&&n&&!A3.has(n)?f.insertBefore(V,h):f.appendChild(V)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();Y&&_.kA(this.hostElement,"yt-rendererstamper-finished",{container:S})}else y4q(this.is,f,0,
C);else r=new _.nf("Container object not found",f,this.hostElement?this.hostElement.is:""),_.Fo(r)},
getStampContainer_:function(r){return this.$&&this.$[r]||_.e(this.hostElement).querySelector("#"+r)},
getComponentName_:function(r,f){return typeof r==="string"?r:r.matcher?r.matcher.call(this,f):r.component},
createComponent_:function(r,f,I){r=this.getComponentName_(r,f);try{var C=O$.has(r)||s$.has(r);if(I&&!C){var Y=_.yb(r);try{_.Zh(Y)}catch(V){I="Failed to clear styles for "+r+".",V.message&&(I+=" Original error: "+V.message),_.t7(new _.nf(I))}}else Y=document.createElement(r)}catch(V){return Y="YtRendererStamperBehavior failed to create "+r+".",V.message&&(Y+=" Original description: "+V.message),V.message="YtRendererStamperBehavior failed to create element",_.TL(V,Y),knB.hasOwnProperty(r)?_.t7(V):_.Fo(V),
document.createElement("SPAN")}this.telemetry_.create++;return Y},
deferRenderStamperBinding_:function(r,f,I){this.deferredBindingTasks_.push({component:r,typeOrConfig:f,data:I})},
flushRenderStamperComponentBindings_:function(){for(var r=0,f=this.deferredBindingTasks_.length;r<f;r++){var I=this.deferredBindingTasks_[r];if(!I)break;var C=void 0,Y=void 0,V=void 0,S=void 0,h=I.component,w=I.typeOrConfig;I=I.data;var n=(S=h.polymerController)!=null?S:h;S=h.loggingStatus;try{S&&(S.isRendererStamper=!0);if(typeof w!=="string"){for(V in w.attributes)w.attributes[V]===!0?h.setAttribute(V,""):w.attributes[V]===!1?h.removeAttribute(V):h.setAttribute(V,w.attributes[V]);for(Y in w.params)n[Y]=
w.params[Y],h!==n&&E$(h.localName,Y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(C in w.properties){var d=w.properties[C];if(d){var z=jXR(d);n[C]=this.get(z);h!==n&&E$(h.localName,C,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(C==="on-tap"||C==="on-click"){var g=this.get(z);h.addEventListener("click",g);igw.set(h,{property:C,listener:{type:"element",eventName:"click",handler:g}})}}else{var X=new _.nf("Undefined property binding",C);_.Fo(X)}}}if(w.classListBinding){var P=jXR(w.classListBinding),
W=P?this[P]:null;if(W)for(C=0;C<W.length;C++)_.ob(h,W[C],!0)}n.data=I}finally{S&&(S.isRendererStamper=!1)}if(C=A3.get(h))h.hidden=!1,A3.delete(h),_.F_.cancelJob(C)}this.deferredBindingTasks_.length=0}}];_.o_={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(r){for(var f=_.iz.getInstance(),I=_.E(Object.keys(r)),C=I.next();!C.done;C=I.next()){var Y=C.value;C=r[Y];if(this&&this[C]){var V=f.actionRoutingMap.get(Y);V||(V=new Map,f.actionRoutingMap.set(Y,V));f.registerActionHandler(this,Y,this[C].bind(this),V)}else Y=Error("id"),Y.params=C,_.eH(Y)}},
unregisterActionMap:function(r){_.vR(_.iz.getInstance(),r,this)}}]};var kY=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}],["LIKE_VALENTINES25_HEART",{name:"animated_like_valentines25_heart_light",nameDarkTheme:"animated_like_valentines25_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_VALENTINES25_BROKEN_HEART",{name:"animated_like_valentines25_broken_heart_light",nameDarkTheme:"animated_like_valentines25_broken_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_BROKEN_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_YOUTUBE_20TH_BIRTHDAY",{name:"animated_like_youtube_20th_birthday_light",nameDarkTheme:"animated_like_youtube_20th_birthday_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_light.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_dark.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}]]);var Gi;var BI=new Map;var fqP=window.matchMedia("(forced-colors: active)").matches;var By_;var qB_;var lqw=new _.Go("LOTTIE_LOADER_TOKEN");_.GL(VYU);_.Kv(_.Hc(function(r){return _.p("ytd-lottie-player",{id:r.id,hidden:r.hidden,class:r.className,"aria-label":r.ariaLabel,style:"display: block;"},_.p(_.uT,{data:r.data,animationName:function(){var f;return((f=r.data().animationConfig)==null?void 0:f.name)||""},
animationRef:function(){return r.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.jv,
id:_.jv,hidden:_.jv,className:_.jv,ariaLabel:_.jv}});var Qb=function(){var r=_.y.apply(this,arguments)||this;r.animationRef={};return r};
_.t(Qb,_.y);_.l=Qb.prototype;
_.l.handlePropertyChange=function(){var r=this.animatedIcon,f=this.active,I=this.isDarkTheme;if(r){var C=this.previousActive!==f;this.previousActive=f;this.animationRef.lottieEl?C&&this.toggleAnimation(f,r.totalFrames):f?this.initializeAnimationAsToggled(r.lottiePlayerProps,r.totalFrames):this.initializeAnimationAsUntoggled(r.lottiePlayerProps);r.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=r.type;this.lottiePlayerProps=this.computeLottiePlayerProps(r,I)}};
_.l.computeLottiePlayerProps=function(r,f){var I=this.deepCloneLottiePlayerProps(r);f?(f=r.nameDarkTheme,r=r.pathDarkTheme):(f=r.name,r=r.path);I.animationConfig.name=f;(f=BI.get(r))?I.animationConfig.animationData=f:I.animationConfig.path=r;return I};
_.l.initializeAnimationAsToggled=function(r,f){r.animationConfig.initialSegment=[f-1,f]};
_.l.initializeAnimationAsUntoggled=function(r){r.animationConfig.initialSegment=void 0};
_.l.toggleAnimation=function(r,f){if(r){var I;(I=this.animationRef.lottieEl)==null||I.playSegments([0,f],!0)}else{var C;(C=this.animationRef.lottieEl)==null||C.playSegments([0,1],!0)}};
_.l.deepCloneLottiePlayerProps=function(r){var f=Object.assign({},r.lottiePlayerProps.animationConfig);r=Object.assign({},r.lottiePlayerProps);r.animationConfig=f;return r};
Qb.prototype.handlePropertyChange=Qb.prototype.handlePropertyChange;_.A([_.K(),_.B("design:type",Object)],Qb.prototype,"animatedIcon",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],Qb.prototype,"active",void 0);_.A([_.K(),_.B("design:type",Boolean)],Qb.prototype,"isDarkTheme",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],Qb.prototype,"animatedIconType",void 0);_.A([_.K(),_.B("design:type",Boolean)],Qb.prototype,"previousActive",void 0);
_.A([_.K(),_.B("design:type",Object)],Qb.prototype,"lottiePlayerProps",void 0);_.A([_.K(),_.B("design:type",Object)],Qb.prototype,"animationRef",void 0);_.A([_.Bt("animatedIcon","active","isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qb.prototype,"handlePropertyChange",null);Qb=_.A([_.zX({is:"yt-animated-icon",disableElementRegistration:!0})],Qb);
_.Q(Qb,"yt-animated-icon",function(){if(qB_===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;By_===void 0&&(By_=document.createElement("template"));var C=By_;I.call(f,C.content.cloneNode(!0),r.content.firstChild);qB_=r}r=qB_;return r},{mode:2});var uQX;var D8C;var xqm=_.Hc(function(r){var f=_.Ue(),I=Pw(function(){return{value:null}});
_.$L(function(){var Y;(Y=I.value)==null||Y.cancel()});
var C=_.hR(r.data,{equals:function(Y,V){return Y.iconName===V.iconName&&Y.iconStyle===V.iconStyle&&Y.iconSize===V.iconSize&&Y.iconSetName===V.iconSetName&&Y.iconSelected===V.iconSelected}},"aoiXAb");
_.az(function(){var Y,V=(Y=r.options)==null?void 0:Y.call(r);SuU(f,I,C(),V)});
return _.p("span",{class:"yt-icon-shape",el:f})},"i");
xqm.idomCompat=!0;var E9B=["youtube_fill","youtube_outline"];var rC3=new _.XS({type:"iconset",value:void 0}),AK=function(){var r=_.y.apply(this,arguments)||this;r.isDarkTheme=document.documentElement.hasAttribute("dark");r.iconName="";r.iconsetName="yt-icons";r.iconset=null;r.missingIconSet=!1;r.iconType=null;r.iconShapeDataSignal=_.ld(void 0,void 0,"RQ9kUb");r.renderingOptionsSignal=_.ld({iconWidth:"100%",iconHeight:"100%",iconFilter:r.iconFilter},void 0,"qtx8Ef");r.wizHasRendered=!1;r.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return r};
_.t(AK,_.y);_.l=AK.prototype;_.l.onDarkModeToggledAction=function(r){r!==this.isDarkTheme&&(this.isDarkTheme=r)};
_.l.handlePropertyChange=function(){var r=this,f,I,C,Y,V,S,h,w,n,d,z;return _.x(function(g){switch(g.nextAddress){case 1:if(f=!r.icon&&!r.iconName||!r.isAttached)return g.return();I=r;C=I.icon;Y=I.size;V=I.defaultToFilled;S=I.active;h=I.targetContainer;r.toggleContainerClass(h);_.N("kevlar_use_wil_icons")&&C&&(w=R$R(C),w.length?_.N("kevlar_icon_type_fix_killswitch")?(n=w[1].toUpperCase(),r.iconType=NPC[n],r.iconType||(r.iconType=w[1])):r.iconType=w[1]:r.iconType=null);if(C){g.jumpTo(2);break}r.iconsetName=
"";r.iconName="";return _.b(g,r.renderIcon(h,C),3);case 3:return g.return();case 2:d=r.computeIcon(C);z=R$R(d);z.length&&(r.iconsetName=z[0],r.iconName=z[1]);if(!_.N("kevlar_use_wil_icons")){g.jumpTo(4);break}return _.b(g,r.getIconShapeData(),5);case 5:r.iconShapeData=g.yieldResult;case 4:if(r.shouldRenderIconShape(h)){g.jumpTo(6);break}return _.b(g,r.determineIconSet(d,S,V,Y,h),6);case 6:return _.b(g,r.renderIcon(h,C),0)}})};
_.l.toggleContainerClass=function(r){r?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.l.computeIcon=function(r){return!_.N("default_to_innertube_icon")||r.indexOf(":")>0?r:_.kN(r)};
_.l.determineIconSet=function(r,f,I,C){var Y=this;return _.x(function(V){return V.nextAddress==1?_.N("kevlar_system_icons")||_.Lz("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Lz("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.b(V,Y.switchToYtSysIconset(r,f,I,C),3):V.jumpTo(2):V.nextAddress!=2?V.return():_.b(V,Y.useYtSysIconsetForMissingIcons(r,f,I,C),0)})};
_.l.switchToYtSysIconset=function(r,f,I,C){var Y=this,V,S,h,w,n,d,z;return _.x(function(g){switch(g.nextAddress){case 1:if(!r||Y.iconsetName!=="yt-icons"&&Y.iconsetName!=="yt-sys-icons"){g.jumpTo(0);break}V=R$R(r);S=V[1];S=_.ZPE(S);_.N("enable_polymer_icons_replace_underscores_dash")&&S.includes("_filled")&&(S=S.replace(/_filled/g,"-filled"));return _.b(g,GX(S,!0),3);case 3:return h=g.yieldResult,_.b(g,GX(S,!1),4);case 4:if((w=g.yieldResult)||f&&h)Y.iconsetName="yt-sys-icons";Y.iconName=Y.getIconName(S,
f,I,w,h);if(C===24){g.jumpTo(0);break}n="yt-sys-icons"+C+":"+Y.iconName;return _.b(g,GX(n,!1,!0),6);case 6:return d=g.yieldResult,_.b(g,GX(n,!0,!0),7);case 7:z=g.yieldResult;Y.iconName=Y.getIconName(S,f,I,d,z);if(!f&&d||f&&z)Y.iconsetName="yt-sys-icons"+C;_.wO(g)}})};
_.l.getIconName=function(r,f,I,C,Y){r.includes("-filled")&&(r=r.replace("-filled",""));return Y&&(f||I)?r+"-filled":r};
_.l.useYtSysIconsetForMissingIcons=function(r,f,I,C){var Y=this,V,S;return _.x(function(h){if(h.nextAddress==1)return Y.iconsetName!=="yt-icons"?h.jumpTo(0):_.b(h,GX(Y.iconName,!1,!1,!0),3);if(h.nextAddress!=4)return V=h.yieldResult,_.b(h,GX(Y.iconName,!1),4);S=h.yieldResult;if(V||!S)return h.jumpTo(0);Y.iconsetName="yt-sys-icons";return _.b(h,Y.switchToYtSysIconset(r,f,I,C),0)})};
_.l.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.l.getIconManager=function(){return _.x(function(r){try{return r.return(_.a().resolve(_.Bc))}catch(f){return r.return(new Promise(function(I){_.mZ().parkOrScheduleJob(function(){I(_.a().resolve(_.Bc))},2,"ci")}))}})};
_.l.getIconShapeData=function(){var r=this,f,I,C,Y,V,S;return _.x(function(h){if(h.nextAddress==1){if(!r.iconType)return h.return(void 0);f=r.iconType.toLowerCase();I=f.endsWith("_filled")||f.endsWith("-filled");return _.b(h,r.getIconManager(),2)}C=h.yieldResult;Y=r.active||r.defaultToFilled||I?"youtube_fill":"youtube_outline";V={iconName:f,iconStyle:Y,iconSize:r.size,iconSetName:r.iconsetName};S=!!C.resolveIcon(V);S||(V.iconSize=void 0,S=!!C.resolveIcon(V));!S&&I&&(V.iconName=f.substring(0,f.length-
7),V.iconSize=r.size,S=!!C.resolveIcon(V),S||(V.iconSize=void 0,S=!!C.resolveIcon(V)));S||(V.iconStyle=void 0,S=!!C.resolveIcon(V));S||_.t7(new _.nf("Icon not supported",{iconName:V.iconName,iconStyle:V.iconStyle,iconSize:V.iconSize,iconType:f}));return h.return(S?V:void 0)})};
_.l.shouldRenderIconShape=function(r){if(!_.N("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;r=this.getContainer(r);return!IqE(r,this.icon)};
_.l.renderIcon=function(r,f){var I=this,C,Y,V,S,h,w,n,d;return _.x(function(z){switch(z.nextAddress){case 1:if(f&&I.icon!==f)return z.return();C=I.getContainer(r);Y=IqE(C,I.icon);if(I.shouldRenderIconShape(r)&&I.iconType)return I.applyIconShape(Y,C),z.return();I.removeIconShape();if(!C)return z.return();I.iconName===""&&I.iconset&&C&&(I.removeStaticIcon(I.iconset,C),Y&&I.removeAnimatedIcon(C));if(I.iconName===""&&I.iconset||!I.iconsetName||!rC3)return z.return();I.iconset=rC3.byKey(I.iconsetName);
if(!I.iconset)return I.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.GF(I,I.onIconsetAdded)),z.return();I.missingIconSet&&(I.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.GF(I,I.onIconsetAdded)));S=(V=Y||I.isAnimatedIcon?rbc(I.icon):void 0)&&!V.lazyLoad;w=V&&((h=V)==null?void 0:h.lazyLoad)&&(V.lottiePlayerProps.animationConfig.animationData?!0:BI.get(I.isDarkTheme?V.pathDarkTheme:V.path)?!0:!1);if(S||w)return I.applyAnimatedIcon(C,V,I.iconset),z.return();if(w||
(n=V)==null||!n.lazyLoad){z.jumpTo(2);break}d=Yu$(V,I.isDarkTheme);I.applyStaticIcon(I.iconset,C,I.iconName,r,Y);return _.b(z,d,3);case 3:return _.b(z,I.renderIcon(I.targetContainer,I.icon),4);case 4:return z.return();case 2:I.applyStaticIcon(I.iconset,C,I.iconName,r,Y),_.wO(z)}})};
_.l.getContainer=function(r){var f,I=(f=rYR(this.hostElement))==null?void 0:f.host;f=!!I&&!!I.polymerController;if(!r||f)return r?this.getTargetContainer(r,I):this.hostElement};
_.l.getTargetContainer=function(r,f){var I=_.e(f).querySelector("#"+r);I||(r=new _.nf("yt-icon container missing",f.is,r),_.Fo(r));return I};
_.l.applyStaticIcon=function(r,f,I,C,Y){Y&&this.removeAnimatedIcon(f);this.removeIconShape();Y=Y&&!!this.iconType&&!!this.iconShapeData&&_.N("kevlar_use_wil_icons");try{Y?this.applyIconShape(!1,f):r.applyIcon(f,I)}catch(V){this.handleError(V,C,f)}};
_.l.applyIconShape=function(r,f){this.iconset&&f&&(this.removeStaticIcon(this.iconset,f),r&&this.removeAnimatedIcon(f));r={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var I=_.E(this.iconShapeDataSignal);f=I.next().value;I=I.next().value;var C=_.E(this.renderingOptionsSignal),Y=C.next().value;C=C.next().value;I(this.iconShapeData);C(r);if(!this.wizHasRendered)for(this.wizHasRendered=!0,r=_.E(hAc(f,Y)).next().value;r.firstChild;)_.e(this.hostElement).appendChild(r.firstChild)};
_.l.removeIconShape=function(){if(_.N("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.l.removeStaticIcon=function(r,f){r.removeIcon(f)};
_.l.applyAnimatedIcon=function(r,f,I){this.removeStaticIcon(I,r);this.removeIconShape();var C;I=this.animatedIconElement&&((C=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:C.type)===f.type;if(this.animatedIconElement&&I){this.animatedIconElement.polymerController.animatedIcon=f;var Y;((Y=this.animatedIconElement)==null?void 0:Y.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(r),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=f,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.N("kevlar_use_wil_icons")?r.insertBefore(this.animatedIconElement,r.childNodes[0]):(r=_.e(r),r.insertBefore(this.animatedIconElement,r.childNodes[0]))};
_.l.removeAnimatedIcon=function(r){_.N("kevlar_use_wil_icons")?this.animatedIconElement&&r.contains(this.animatedIconElement)&&r.removeChild(this.animatedIconElement):(r=_.e(r),this.animatedIconElement&&r.contains(this.animatedIconElement)&&r.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.l.handleError=function(r,f,I){_.TL(r,this.iconName,f,I);f=IqE(I,this.icon);var C=!1;window.location.href.includes("JpymaW6Lh2w")?C=!0:I._svgIcon&&(I=(I=I._svgIcon.parentNode)?I.tagName:"unknown",_.TL(r,I),I==="YT-ICON"&&r.name==="NotFoundError"?C=!0:r.name==="NotFoundError"&&f&&(C=!0));C?_.t7(r):_.Fo(r)};
_.OC.Object.defineProperties(AK,{template:{configurable:!0,enumerable:!0,get:function(){if(D8C===void 0){var r=document.createElement("template");_.c(r,"\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");r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;
uQX===void 0&&(uQX=document.createElement("template"));var C=uQX;I.call(f,C.content.cloneNode(!0),r.content.firstChild);D8C=r}r=D8C;return r}}});
AK.prototype.handlePropertyChange=AK.prototype.handlePropertyChange;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],AK.prototype,"actionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",String)],AK.prototype,"icon",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],AK.prototype,"active",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],AK.prototype,"defaultToFilled",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],AK.prototype,"isAnimatedIcon",void 0);
_.A([_.K({value:24}),_.B("design:type",Number)],AK.prototype,"size",void 0);_.A([_.K({value:""}),_.B("design:type",String)],AK.prototype,"targetContainer",void 0);_.A([_.K(),_.B("design:type",Object)],AK.prototype,"animatedIconElement",void 0);_.A([_.K(),_.B("design:type",Object)],AK.prototype,"isDarkTheme",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],AK.prototype,"ariaHidden",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],AK.prototype,"ariaLabel",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],AK.prototype,"role",void 0);_.A([_.K(),_.B("design:type",String)],AK.prototype,"style",void 0);_.A([_.K(),_.B("design:type",String)],AK.prototype,"iconFilter",void 0);_.A([_.Bt("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],AK.prototype,"handlePropertyChange",null);
AK=_.A([_.zX({is:"yt-icon",noInjection:!0})],AK);var ft4;var ItT=function(){var r=document.body,f=r.appendChild;if(ft4===void 0){var I=document.createElement("template");_.c(I,'\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>');
ft4=I}I=ft4;f.call(r,I.content)};
document.body?ItT():window.addEventListener("DOMContentLoaded",ItT);var CZX,Y4D=function(){return CZX!==void 0?CZX:CZX=document.createElement("template")};
document.head.appendChild(Y4D().content);var lt4,VtT=function(){return lt4!==void 0?lt4:lt4=document.createElement("template")};
document.head.appendChild(VtT().content);var EyC;_.nF=new _.Go("KEY_MANAGER_TOKEN");var dqw={duration:1E3,easing:"ease",fill:"forwards"};_.GL(n5E);var S4D=_.rW(_.fQ);_.GL(_.fQ);_.h8=_.Hc(function(r){var f=_.yy(r.ref),I=r.aTagConfig?r.aTagConfig:_.hR(function(){var V,S,h,w,n,d;var z=(d=_.aB((w=r.command)==null?void 0:w.call(r)))!=null?d:(n=r.command)==null?void 0:n.call(r);return _.Nd({innertubeCommand:z,skipOnClick:(V=r.skipOnClick)==null?void 0:V.call(r),stopPropagation:(S=r.dangerousStopPropagation)==null?void 0:S.call(r),defaultTarget:(h=r.target)==null?void 0:h.call(r)})||{}},void 0,"gnrRge");
_.az(function(){f.value._data=I()._data;f.value.params=I().params});
var C=_.IC(function(V){var S,h;return void((h=(S=I()).onpointerdown)==null?void 0:h.call(S,V))}),Y=_.IC(function(V){var S,h;
return void((h=(S=I()).onclick)==null?void 0:h.call(S,V))});
return _.p("a",{el:f,href:function(){return I().href$},
rel:function(){return I().rel$},
class:function(){var V,S;return(S=I().className)!=null?S:(V=r.className)==null?void 0:V.call(r)},
style:function(){var V;if((V=r.style)==null?0:V.call(r))return r.style();var S;return((S=r.disabled)==null?0:S.call(r))?"pointer-events:none":""},
"aria-haspopup":function(){return!!I()["aria-haspopup$"]},
"force-new-state":CQ(function(){return I()["force-new-state$"]}),
title:CQ(function(){var V,S;return(S=I().title$)!=null?S:(V=r.title)==null?void 0:V.call(r)}),
role:CQ(function(){return I().role$}),
target:CQ(function(){return I().target$}),
dir:CQ(function(){var V;return((V=r.dir)==null?0:V.call(r))?r.dir():I().dir}),
tabindex:function(){var V;return I().tabindex$?Number(I().tabindex$):(V=r.tabIndex)==null?void 0:V.call(r)},
"aria-hidden":function(){var V,S;return(S=I()["aria-hidden$"])!=null?S:(V=r.ariaHidden)==null?void 0:V.call(r)},
"aria-label":function(){var V,S;return(S=I()["aria-label$"])!=null?S:(V=r.ariaLabel)==null?void 0:V.call(r)},
"aria-current":r.ariaCurrent,"aria-labelledby":r.ariaLabelledby,"aria-describedby":r.ariaDescribedby,"aria-selected":r.ariaSelected,"tab-identifier":r.tabIdentifier,"on:pointerdown":C,"on:click":Y},r.children)},"j");var xFV=function(r,f){this.fillAnimation=new Animation(g5$(r),document.timeline);this.strokeAnimation=new Animation(aqq(f),document.timeline)};
xFV.prototype.play=function(){var r,f;(f=(r=this.fillAnimation).play)==null||f.call(r);var I,C;(C=(I=this.strokeAnimation).play)==null||C.call(I)};
xFV.prototype.cancel=function(){var r,f;(f=(r=this.fillAnimation).cancel)==null||f.call(r);var I,C;(C=(I=this.strokeAnimation).cancel)==null||C.call(I)};_.xZ=_.Hc(function(r){var f=r.model;var I=r.pointerDownEvent;var C=r.pointerUpEvent;var Y=r.pointerLeaveEvent;r=_.yy();var V=_.lB({"border-radius":function(){return f().borderRadius}}),S=_.yy(),h=_.yy(),w=_.E(_.YZ(function(){return(C==null?0:C())||(Y==null?0:Y())?!1:!(I==null||!I())||!1})),n=w.next().value,d=w.next().value,z=void 0,g=function(){!z&&h.value&&S.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(z=new xFV(h.value,S.value));
var O;(O=z)==null||O.play()},X=function(){var O;
(O=z)==null||O.cancel()},P=function(){var O;
(O=z)==null||O.cancel()};
_.az(function(){(C==null?0:C())&&g()});
_.az(function(){(I==null?0:I())&&X()});
_.az(function(){(Y==null?0:Y())&&P()});
w=_.IC(function(){g();d(!1)});
var W=_.IC(function(){X();d(!0)}),m=_.IC(function(){P();
d(!1)});
_.$L(function(){if(z){var O;(O=z)==null||O.cancel();z=void 0}});
var v={};n=_.qd("yt-spec-touch-feedback-shape",function(){return NwE(f().color)},(v["yt-spec-touch-feedback-shape--focused"]=function(){return!!f().focused&&!f().disabled},v["yt-spec-touch-feedback-shape--circular"]=function(){return!!f().circular},v["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!f().isExtended},v["yt-spec-touch-feedback-shape--down"]=n,v["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!f().triggerEvents},v));
return _.p("yt-touch-feedback-shape",{style:_.lB({"border-radius":"inherit"})},_.p("div",{el:r,class:n,style:_.lB({"margin-top":function(){return f().customTopExtend?"-"+f().customTopExtend+"px":void 0}}),
"on:mousedown":W,"on:mouseup":w,"on:pointerleave":m,"on:touchstart":W,"on:touchend":w,"aria-hidden":!0},_.p("div",{class:"yt-spec-touch-feedback-shape__stroke",style:V,el:S}),_.p("div",{class:"yt-spec-touch-feedback-shape__fill",style:V,el:h})))},"k");
_.xZ.idomCompat=!0;var hfD={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 ZG=_.Mc();ZG=ZG.toLowerCase();if(_.pw(ZG,"android")){var wmB=ZG.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);wmB&&parseFloat(wmB[1])<100||ZG.match("("+Object.keys(hfD).join("|")+")")};var bs8=_.Hc(function(r){return _.p(_.M,{cond:r.aTagConfig,then:function(f){return _.p(_.h8,{aTagConfig:f,disabled:r.disabled,className:r.className,style:r.style,title:r.title,ariaLabel:r.ariaLabel,ariaCurrent:function(){var I,C;return((I=r.toggleable)==null?void 0:I.call(r))&&((C=r.toggled)==null?void 0:C.call(r))}},r.children)},
else:function(){return _.p("button",{"on:click":_.IC(function(f){var I;return(I=r.onClick)==null?void 0:I.call(r,f)}),
class:r.className,title:r.title,style:r.style,disabled:r.disabled,"aria-pressed":function(){var f,I;return((f=r.toggleable)==null?0:f.call(r))?!((I=r.toggled)==null||!I.call(r)):void 0},
"aria-label":r.ariaLabel,"aria-disabled":r.visiblyDisabled,"aria-hidden":r.ariaHidden,tabindex:r.tabIndex},r.children)}})},"l"),nys=_.Hc(function(r){var f=r.data;
var I=r.hasIconLeading;var C=r.hasIconLeadingTrailing;var Y=r.hasIconTrailing;var V=r.iconButton;var S=r.iconClassName;var h=r.secondaryIconClassName;var w=r.icon;var n=r.secondaryIcon;var d=r.textContentClassName;return _.p(Gw,{className:"",style:"display: inherit; justify-content: center"},_.p(_.M,{cond:function(){return w&&(I()||C()||(V==null?void 0:V()))},
then:function(){return _.p(Gw,null,_.p("div",{class:S,"aria-hidden":"true"},w==null?void 0:w()))}}),_.p(_.M,{cond:function(){return(f().buttonText||f().animatedTextProps||f().formattedButtonText)&&!(V==null?0:V())},
then:function(){return _.p(Gw,null,_.p(pmX,{className:d,iconPosition:function(){return f().iconPosition},
text:function(){return f().buttonText},
oneOffCustomTextWrap:function(){return f().oneOffCustomTextWrap},
formattedButtonText:function(){return f().formattedButtonText},
animatedTextProps:function(){return f().animatedTextProps}}))}}),_.p(_.M,{cond:Y,
then:function(){return _.p(Gw,null,_.p("div",{class:S},w==null?void 0:w()))}}),_.p(_.M,{cond:C,
then:function(){return _.p(Gw,null,_.p("div",{class:h},n==null?void 0:n()))}}),_.p(_.M,{cond:function(){return!f().disabled&&!0},
then:function(){return _.p(_.xZ,{model:function(){return{color:tYm(f())}}})}}))},"m"),pmX=_.Hc(function(r){var f=function(){var I,C;
return((I=r.iconPosition)==null?void 0:I.call(r))==="icon-with-label"||((C=r.oneOffCustomTextWrap)==null?void 0:C.call(r))};
return _.p("div",{class:r.className,"aria-hidden":function(){var I,C,Y;return((I=r.ariaHidden)==null?void 0:I.call(r))&&(!((C=r.animatedTextProps)==null||!C.call(r))||!((Y=r.formattedButtonText)==null||!Y.call(r)))}},_.p(_.MC,null,_.p(_.nz,{when:function(){var I;
return(I=r.animatedTextProps)==null?void 0:I.call(r)}},function(){return _.p(S4D,{numberText:function(){return r.animatedTextProps().numberText},
numberValue:function(){return r.animatedTextProps().numberValue},
heightPx:function(){return r.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return r.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return r.animatedTextProps().shouldAnimate},
forceRollUp:function(){return r.animatedTextProps().forceRollUp}})}),_.p(_.nz,{when:function(){var I;
return(I=r.formattedButtonText)==null?void 0:I.call(r)}},function(){return _.p(_.wW,{text:function(){return Object.assign({},r.formattedButtonText(),{lineBreakMode:f()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":r.formattedButtonText().lineBreakMode,
alignment:f()?"TEXT_ALIGNMENT_CENTER":r.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!f()}})}),_.p(_.nz,{when:function(){var I,C;
return((I=r.iconPosition)==null?void 0:I.call(r))==="icon-with-label"&&((C=r.text)==null?void 0:C.call(r))}},function(){return _.p(_.wW,{text:function(){return{content:r.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.p(_.dt,null,function(){return r.text})))},"n"),dFq=_.Hc(function(r){return _.p(_.M,{cond:r.hasLabel,
then:function(){var f;return _.p("label",{class:r.className},r.children,(f=r.textContent)==null?void 0:f.call(r))},
else:function(){return r.children}})},"o"),Gw=_.Hc(function(r){return r.children},"p");var $md=Q$("stamper-context");_.GL(Uqm);var k4=_.Hc(function(r){var f=r.data;var I=r.icon;var C=r.iconName;var Y=r.secondaryIcon;var V=r.secondaryIconName;var S=r.focusedOverride;v5c();var h=$qK(f),w=h.size,n=h.style;r=h.disabled;var d=h.onTap,z=h.alignByText,g=h.aTagConfig,X=h.customColors,P=h.segmentedPosition,W=h.toggled,m=h.toggleable,v=h.accessibilityLabel,O=h.onToggle,k=h.iconPosition,Z=h.oneOffCustomTextWrap,Cw=h.disableTextEllipsis,rR=h.disableBackdropFilter,EP=h.tooltipText,Pu=h.ariaHidden,Wu=h.tabIndex,cu=h.buttonText,OP=h.formattedButtonText,
iU=h.animatedTextProps,oR=Ppd(f,I,Y,C,V,S),vu=oR.type;I=oR.shouldFocus;C=oR.hasIconLeading;Y=oR.hasIconTrailing;var wB=oR.hasIconLeadingTrailing,qT=oR.hasIconOnly;V=oR.hasIconOnly40;var gB=oR.hasIconWithLabel;S=oR.iconButton;var C8=oR.visiblyDisabled;h=oR.overrideSmallSizeIcon;var Es=oR.iconToRender;oR=oR.secondaryIconToRender;var J_={},xC={};return _.p(dFq,{className:_.qd("yt-spec-button-shape-with-label",(J_["yt-spec-button-shape-with-label--is-overlay"]=function(){return n()==="overlay"||n()===
"overlay-dark"},J_)),
hasLabel:gB,textContent:function(){return _.p(pmX,{text:cu,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:Z,iconPosition:k,formattedButtonText:OP,animatedTextProps:iU})}},_.p(bs8,{aTagConfig:g,
className:_.qd("yt-spec-button-shape-next",function(){return cbu(vu())},function(){return C8()?void 0:Whu(n())},function(){return Lhw(w())},(xC["yt-spec-button-shape-next--disabled"]=C8,xC["yt-spec-button-shape-next--focused"]=I,xC["yt-spec-button-shape-next--icon-trailing"]=Y,xC["yt-spec-button-shape-next--icon-leading"]=C,xC["yt-spec-button-shape-next--icon-leading-trailing"]=wB,xC["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return wB()&&!(cu()||OP())},xC["yt-spec-button-shape-next--icon-button"]=
function(){return qT()||gB()},xC["yt-spec-button-shape-next--icon-only-default"]=V,xC["yt-spec-button-shape-next--align-by-text"]=z,xC["yt-spec-button-shape-next--segmented-start"]=function(){return P()==="start"},xC["yt-spec-button-shape-next--segmented-end"]=function(){return P()==="end"},xC["yt-spec-button-shape-next--override-small-size-icon"]=h,xC["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=Z,xC["yt-spec-button-shape-next--disable-text-ellipsis"]=Cw,xC["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!rR()&&Twc()},xC)),
style:function(){return eAu(X()).style},
onClick:function(r2){d==null||d(r2);m()&&(O==null||O(r2))},
disabled:r,ariaLabel:v,toggleable:m,toggled:W,title:function(){var r2;return(r2=EP())!=null?r2:""},
visiblyDisabled:C8,ariaHidden:Pu,tabIndex:Wu},_.p(nys,{data:f,hasIconLeading:C,hasIconLeadingTrailing:wB,hasIconTrailing:Y,iconButton:S,icon:Es,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:oR})))},"q");
k4.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var zf_=_.Hc(function(r){var f=r.data;var I=r.id;var C=r.hidden;var Y=r.className;var V=r.icon;var S=r.secondaryIcon;var h=r.iconName;var w=r.secondaryIconName;r=_.E(_.ld(!1,void 0,"ikxyhf"));var n=r.next().value,d=r.next().value,z=function(){var X=_.a().resolve(_.ZY(_.nF));X&&d(X.isKeyBoardInUse())},g=function(){d(!1)};
r=_.yy(function(X){if(_.a().resolve(_.ZY(_.nF)))return X.addEventListener("focusin",z),X.addEventListener("focusout",g),function(){X.removeEventListener("focusin",z);X.removeEventListener("focusout",g)}});
return _.p("yt-button-shape",{el:r,id:I,class:Y,hidden:C},_.p(_.M,{cond:f,then:function(){return _.p(k4,{data:f,icon:V,secondaryIcon:S,iconName:h,secondaryIconName:w,focusedOverride:n})}}))},"r");
_.N("web_wiz_button_shape")&&_.Kv(zf_,"yt-button-shape",{props:{data:_.jv,id:_.jv,hidden:_.jv,className:_.jv,icon:_.vI,secondaryIcon:_.vI,iconName:_.jv,secondaryIconName:_.jv},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var kJ=function(){var r=_.y.apply(this,arguments)||this;r.keyboardFocused=!1;return r};
_.t(kJ,_.y);kJ.prototype.onFocus=function(){var r=_.a().resolve(_.ZY(_.nF));r&&(this.keyboardFocused=r.isKeyBoardInUse())};
kJ.prototype.onBlur=function(){this.keyboardFocused=!1};
kJ.prototype.renderIdom=function(){var r=this;if(this.data){var f=Ek(this.data,!!this.iconName),I=mqq(this.data);this.data.focused=this.keyboardFocused;iIw(this.data,function(){var C;pv("yt-icon",{icon:r.iconName,active:(C=r.data)==null?void 0:C.toggled,size:f,style:"width: "+f+"px; height: "+f+"px;",iconFilter:I},v9)},function(){var C;
pv("yt-icon",{icon:r.secondaryIconName,active:(C=r.data)==null?void 0:C.toggled,size:f,style:"width: "+f+"px; height: "+f+"px;",iconFilter:I},v9)});
_.kA(this.hostElement,"yt-renderidom-finished")}};
_.OC.Object.defineProperties(kJ,{template:{configurable:!0,enumerable:!0,get:function(){if(EyC===void 0){var r=document.createElement("template");_.c(r,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);r.content.insertBefore(VtT().content.cloneNode(!0),r.content.firstChild);r.content.insertBefore(Y4D().content.cloneNode(!0),r.content.firstChild);EyC=r}r=EyC;return r}}});
kJ.prototype.onBlur=kJ.prototype.onBlur;kJ.prototype.onFocus=kJ.prototype.onFocus;_.A([_.J(OPC),_.B("design:type",Object)],kJ.prototype,"ytIdomTemplatingBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],kJ.prototype,"data",void 0);_.A([_.K(),_.B("design:type",String)],kJ.prototype,"iconName",void 0);_.A([_.K(),_.B("design:type",String)],kJ.prototype,"secondaryIconName",void 0);_.A([_.K(),_.B("design:type",Object)],kJ.prototype,"keyboardFocused",void 0);
_.A([_.kO("focusin"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kJ.prototype,"onFocus",null);_.A([_.kO("focusout"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kJ.prototype,"onBlur",null);kJ=_.A([_.zX({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.N("web_wiz_button_shape")})],kJ);_.Kv(_.Hc(function(r){function f(){I().seconds&&V(DhU({seconds:Number(I().seconds)-Date.now()/1E3}))}
var I=r.targetTimestamp;r=r.className;var C=_.E(_.ld("",void 0,"U1Q8Ae")),Y=C.next().value,V=C.next().value;_.Xl(function(){f();var S=setInterval(function(){f()},1E3);
_.$L(function(){clearInterval(S)})});
return _.p("yt-countdown",{class:_.qd("ytCountDownHost",r)},_.p("div",null,Y))},"s"),"yt-countdown",{props:{targetTimestamp:_.jv,
className:_.vI}});_.LF=_.Hc(function(r){var f=r.data;var I=r.className;var C=r.style;var Y=r.useOutlinedIcon;var V=r.buttonOverrides;var S=r.animatedTextProps;var h=r.onClick;var w=_.yy(function(m){return function(){oh4(_.fh(),m)}}),n=function(){return f().iconName},d,z=(d=_.a().resolve(_.ZY(_.cI)))==null?void 0:d(),g=function(){var m=f();
var v=V==null?void 0:V(),O=S==null?void 0:S();if(m){var k=o5P(m.type);var Z=!!m.title||!!m.titleFormatted;var Cw=!(!m.iconName&&!m.iconImage);Z=Cw&&!Z?"icon-only":Cw?m.iconTrailing||m.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;Z==="icon-only-40"&&(k="text");var rR,EP=(rR=v==null?void 0:v.disabled)!=null?rR:m.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||m.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";rR=Object;Cw=rR.assign;var Pu=m.title,Wu=m.titleFormatted;O=
O&&O.numberText&&!isNaN(Number(O.numberValue))?O:void 0;var cu=m.accessibilityText,OP=OIE(m.style),iU=Q3d(m.state),oR=AbK(m.buttonSize),vu=s3w(m,w,EP,h);EP=EP&&!m.onDisabledTap;var wB=_.Nd({elementsCommand:m.onTap,forceNewState:!0});wB=$Y(wB)?wB:void 0;var qT=m.customFontColor,gB=m.customBackgroundColor;var C8=m.customBorderColor;var Es=m.customDarkThemeFontColor,J_=m.customDarkThemeBackgroundColor,xC=m.customDarkThemeBorderColor;qT=z&&Es?Es:qT;gB=z&&J_?J_:gB;C8=z&&xC?xC:C8;C8={color:qT?_.g_(qT):
void 0,backgroundColor:gB?_.g_(gB):void 0,borderColor:C8?_.g_(C8):void 0};m=Cw.call(rR,{},{buttonText:Pu,formattedButtonText:Wu,animatedTextProps:O,accessibilityLabel:cu,style:OP,type:k,state:iU,size:oR,iconPosition:Z,onTap:vu,disabled:EP,aTagConfig:wB,customColors:C8,tooltipText:m.tooltip},v)}else m={style:"mono",type:"text",state:"active",size:"M"};m.focused=W();return m},X=function(){return Ek(g(),!!f().iconName)};
r=_.E(_.ld(!1,void 0,"JjUrEe"));d=r.next().value;var P=r.next().value,W=d;r=_.IC(function(){var m=_.a().resolve(_.ZY(_.nF));m&&P(m.isKeyBoardInUse());return!1});
d=_.IC(function(){P(!1);return!1});
_.az(function(){var m,v=_.F(f==null?void 0:(m=f())==null?void 0:m.onVisible,_.gF);v&&_.X2(v,{disableClickTracking:!0})});
_.$E(function(){w.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var m=f().targetId;m&&_.AIg(_.fh(),m,w.value)});
return _.p("button-view-model",{el:w,class:_.qd("yt-spec-button-view-model",I),"on:focusin":r,"on:focusout":d},_.p(_.M,{cond:function(){return f().iconImage?{sources:[f().iconImage]}:void 0},
then:function(m){return _.p(k4,{data:g,icon:function(){return _.p(_.J3,{data:m,alt:"",targetWidth:X,targetHeight:X,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.p(k4,{data:g,icon:function(){return _.p(_.V2,{icon:n,active:function(){return(Y==null?0:Y())?!1:g().toggled},
animateIcon:function(){var m;return!!(C==null?0:(m=C())==null?0:m.animateIcon)},
size:X})}})}}))},"t");
_.LF.idomCompat={callbacks:{onClick:!0}};_.Kv(_.Hc(function(r){return _.p("yt-button-view-model",{id:r.id,class:_.qd(r.scopingClassName,r.classes),icon:function(){var f;return(f=r.icon)==null?void 0:f.call(r)},
"dialog-dismiss":function(){var f;return((f=r.dialogDismiss)==null?0:f.call(r))?"":void 0}},_.p(_.LF,{data:function(){var f;
return(f=r.data)==null?void 0:f.call(r)},
className:function(){var f;return(f=r.className)==null?void 0:f.call(r)},
style:function(){var f;return(f=r.style)==null?void 0:f.call(r)},
useOutlinedIcon:function(){var f;return(f=r.useOutlinedIcon)==null?void 0:f.call(r)},
buttonOverrides:function(){var f;return(f=r.buttonOverrides)==null?void 0:f.call(r)},
animatedTextProps:function(){var f;return(f=r.animatedTextProps)==null?void 0:f.call(r)},
onClick:function(f){var I;return(I=r.onClick)==null?void 0:I.call(r,f)}}))},"u"),"yt-button-view-model",{props:{data:_.jv,
className:_.jv,style:_.jv,useOutlinedIcon:_.jv,buttonOverrides:_.jv,animatedTextProps:_.jv,onClick:_.vI,scopingClassName:_.jv,id:_.jv,icon:_.jv,dialogDismiss:_.jv,classes:_.jv}});var BD=function(){var r=_.y.apply(this,arguments)||this;r.isGoalActive=!0;return r};
_.t(BD,_.y);BD.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
BD.prototype.progressBarChanged=function(){var r=_.e(this.hostElement).querySelector("#progress-bar-progress"),f,I,C,Y=(C=Number((f=this.creatorGoalState)==null?void 0:f.currentGoalCount)/Number((I=this.creatorGoalState)==null?void 0:I.totalGoalCount)*100)!=null?C:0,V;r.style.width=((V=Math.min(Y,100))!=null?V:0)+"%"};
BD.prototype.goalStateChanged=function(){var r;this.isGoalActive=((r=this.creatorGoalState)==null?void 0:r.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var f;r={"--yt-progress-bar-color":wAc((f=this.creatorGoalState)==null?void 0:f.progressBarColor)};_.Zh(this.hostElement,r)};
BD.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.OC.Object.defineProperties(BD.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var r;return this.isGoalActive&&!((r=this.creatorGoalState)==null||!r.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.creatorGoalState)==null?0:r.endTimestampMs){var f;r=Number((f=this.creatorGoalState)==null?void 0:f.endTimestampMs)/1E3;return{seconds:String(r)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.creatorGoalState)==null?0:r.themedTargetImage){var f;r=_.F((f=this.creatorGoalState)==null?void 0:f.themedTargetImage,zMC);return this.isAppDarkTheme()?r==null?void 0:r.imageDark:r==null?void 0:r.imageLight}}}});
_.OC.Object.defineProperties(BD,{template:{configurable:!0,enumerable:!0,get:function(){return syB()}}});
BD.prototype.goalStateChanged=BD.prototype.goalStateChanged;BD.prototype.progressBarChanged=BD.prototype.progressBarChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],BD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.FT),_.B("design:type",Object)],BD.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);
_.A([_.K({selectorArgs:["data.creatorGoalEntityKey"],selector:function(r,f){return _.f2(r.entities,"creatorGoalEntity",f)}}),
_.B("design:type",Object)],BD.prototype,"creatorGoalState",void 0);_.A([_.K(),_.B("design:type",Object)],BD.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],BD.prototype,"isGoalActive",void 0);_.A([_.R("creatorGoalState","isGoalActive"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],BD.prototype,"shouldShowCountdown",null);_.A([_.R("creatorGoalState"),_.B("design:type",Object),_.B("design:paramtypes",[])],BD.prototype,"endTimestamp",null);
_.A([_.R("creatorGoalState"),_.B("design:type",Object),_.B("design:paramtypes",[])],BD.prototype,"targetIconThemedImage",null);_.A([_.Bt("creatorGoalState.currentGoalCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BD.prototype,"progressBarChanged",null);_.A([_.Bt("creatorGoalState.creatorGoalState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BD.prototype,"goalStateChanged",null);
BD=_.A([_.zX({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],BD);_.Q(BD,"yt-creator-goal-progress-flow-view-model",function(){return syB()},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var MtU;var gyU;var qb=function(){return _.y.apply(this,arguments)||this};
_.t(qb,_.y);qb.prototype.attached=function(){var r,f,I;if(this==null?0:(r=this.data)==null?0:(f=r.pdgPurchasedBumperLoggingDirectives)==null?0:(I=f.loggingDirectives)==null?0:I.trackingParams){var C,Y,V;kuU(this==null?void 0:(C=this.data)==null?void 0:(Y=C.pdgPurchasedBumperLoggingDirectives)==null?void 0:(V=Y.loggingDirectives)==null?void 0:V.trackingParams)}};
qb.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],qb.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],qb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],qb.prototype,"data",void 0);qb=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],qb);
_.Q(qb,"yt-live-chat-item-bumper-view-model",function(){if(gyU===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;MtU===void 0&&(MtU=document.createElement("template"));var C=MtU;I.call(f,C.content.cloneNode(!0),r.content.firstChild);gyU=r}r=gyU;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var at8;var Xm8;_.Hl=function(r,f){this.data=r;this.actions=f;this.data=r;this.actions=f};
_.TY=function(){};_.ug={};_.ug.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(r,f){BwR(this.hostElement,r,f)},
getNavigationEndpointPopupAction:function(r){return quE(r,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(r,f){uMu(this.hostElement,r,f,this.openPopupConfig)}};var S8c=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.DG={};
_.DG.YtEndpointBehavior=[_.ug.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Lz("openPopupConfig");(this.useClickHandler=_.mO("useClickHandler",!1))?this.listen(this.hostElement,"click","onEndpointClick_"):(this.listen(this.hostElement,"tap","onEndpointTap_"),this.listen(this.hostElement,"touchend","onEndpointTouchEnd_"));this.listen(this.hostElement,"touchstart","onEndpointTapStart_");this.listen(this.hostElement,"mousedown",
"onEndpointTapStart_")},
onEndpointClick_:function(r){fam(this.hostElement,r,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(r){var f=this.hostElement,I=this.openPopupConfig,C=this.disableCommandHandlerOverride;C=C===void 0?!1:C;var Y=DqR(r);if(Y){Y.href&&NG(Y.href);var V=r.detail;var S=V.sourceEvent;V=V.preventer;S=S.button!==void 0?S.button===0&&!nQ(S):V?!nQ(V):!0;Y.data&&S&&rTE(f,Y,r,I,C)}},
onEndpointTouchEnd_:function(r){nQ(r)||DqR(r)&&r.preventDefault()},
onEndpointTapStart_:function(r){VLl(r)}}];var xll="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),wpd=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var N6s={};N6s.YtPlaintextBehavior=[_.dx,{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(r){r.preventDefault();r=r.clipboardData.getData("text/plain");document.execCommand("insertText",!1,r)},
preventRichTextFormatting_:function(r){_.xp&&(r=r.detail.keyboardEvent,r.stopImmediatePropagation(),r.preventDefault())}}];var $FC;var FeV;var rJ=function(){var r=_.y.apply(this,arguments)||this;r.ignoreShadyDom=!1;r.hasChange_=!1;r.hasSetTitle_=!1;r.useIOObserverForVisibilityLogging_=_.N("kevlar_use_vimio_behavior")&&_.Lz("INNERTUBE_CLIENT_NAME")==="WEB";r.ytFormattedStringObserverHandlerKeys_=void 0;return r};
_.t(rJ,_.y);_.l=rJ.prototype;_.l.created=function(){this.useIOObserverForVisibilityLogging_=_.N("kevlar_use_vimio_behavior")&&_.Lz("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.l.ready=function(){_.Lz("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 r=this.getRoot(),f=r.lastChild;f&&f.tagName!=="STYLE";){try{r.removeChild(f)}catch(I){break}f=r.lastChild}};
_.l.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var r=_.E(this.ytFormattedStringObserverHandlerKeys_),f=r.next();!f.done;f=r.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(f.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.l.resetForAttributedString=function(){var r=this.getRoot();!r.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),r.appendChild(this.ytAttributedStringElementRef))};
_.l.resetForFormattedString=function(){var r=this.getRoot(),f=r.querySelector("yt-attributed-string");f&&(this.ytAttributedStringElementRef=r.removeChild(f))};
_.l.textChanged=function(){this.textChanged_(this.text)};
_.l.textChanged_=function(r){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!r||!r.runs&&!r.simpleText;if(_.N("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var f=this.hostElement.firstChild;f&&f.nodeName==="FONT";){var I=f;f=f.nextSibling;this.hostElement.removeChild(I)}f=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
I=r.simpleText;var C;!I&&((C=r.runs)==null?void 0:C.length)===1&&this.isSimpleString_(r.runs[0])&&(I=r.runs[0].text);I!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Lz("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(I!==void 0){try{f.textContent=I}catch(Y){}f.textContent||(this.isEmpty=!0)}else r=r.runs,I!==void 0&&(r=[{text:I}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),r&&this.updateText_(r),
f.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(r){return r};
_.l.computeEllipsisTruncateStyling=function(r,f){return r&&!f};
_.l.computeUseAttributedString=function(r){return _.N("web_replace_formatted_with_attributed_string")&&ctu(r)&&!this.disableAttributedString&&!this.enableContentEditable};
_.l.setNodeStyle_=function(r,f){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.N("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?f.removeAttribute("dir"):f.setAttribute("dir","auto");f.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");f.style.color="";var I=null;this.noStyles||(r.bold&&(f.classList.add("bold"),I="bold"),r.deemphasize&&(f.classList.add("deemphasize"),I="deemphasize"),r.italics&&f.classList.add("italic"),
r.strikethrough&&f.classList.add("strikethrough"),r.errorUnderline&&(f.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),r.bracket&&f.classList.add("bracket"),r.textColor&&(f.style.color=_.MG(r.textColor)));I!==f.getAttribute("style-target")&&(I?f.setAttribute("style-target",I):f.removeAttribute("style-target"))};
_.l.setUpVisibilityLogging_=function(r,f){var I=this;this.setNodeTrackingParams_(r,f);var C;((C=f.data)==null?0:C.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(r=this.ytRendererBehavior.visibilityObserver.observe(f,function(Y){var V=I.ytRendererBehavior.getVisibilityLogger();V&&V.reportShown(Y)},this.ytRendererBehavior.visibilityOptionVisible_),f=this.ytRendererBehavior.visibilityObserver.observe(f,function(Y){var V=I.ytRendererBehavior.getVisibilityLogger();
V&&V.reportHidden(Y)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(r),this.ytFormattedStringObserverHandlerKeys_.push(f))};
_.l.setNodeTrackingParams_=function(r,f){f.data||(f.data={});if((r=r.loggingDirectives?r.loggingDirectives.trackingParams:null)||f.data.trackingParams)f.data.trackingParams=r};
_.l.computeHasLinkOnly_=function(r){return!(!r||r.length!==1||this.noEndpoints||!r[0].navigationEndpoint)};
_.l.getRoot=function(){var r=this.buildScopeDomOptions();return this.enableContentEditable?_.e(_.e(this.hostElement,r).querySelector("[contenteditable]")):_.e(this.hostElement,r)};
_.l.fixContenteditableScope=function(){var r=function(f){f&&(f.nodeType===1&&f.classList&&(f.classList.add("style-scope"),f.classList.add("yt-formatted-string")),f.childNodes&&f.childNodes.forEach(function(I){r(I)}))};
r(this.getRoot())};
_.l.updateText_=function(r){for(var f=r.length,I=this.getRoot(),C=I.firstChild;C&&C.nodeName==="STYLE";)C=C.nextSibling;for(var Y=0;Y<f&&C;){var V=r[Y],S=_.N("remove_cr_char")&&V.text?V.text.replace("\r",""):V.text;if(this.isSimpleString_(V)&&!this.useMixedDirectionFormattedStrings)if(C.nodeName==="#text"){C.textContent!=S&&(C.textContent=S);Y++;C=C.nextSibling;continue}else break;if(_.F(V,zi))break;else if(!this.noEndpoints&&V.navigationEndpoint){if(C.nodeName!=="A")break;this.setDataOnAnchor_(C,
V.navigationEndpoint)}else if(C.nodeName!=="SPAN")break;this.setNodeStyle_(V,C);this.setUpVisibilityLogging_(V,C);C.textContent!=S&&(C.textContent=S);Y++;C=C.nextSibling}if(C)for(V=I.lastChild,C=Y?C.previousSibling:null;V&&V!=C;){try{I.removeChild(V)}catch(h){break}V=I.lastChild}Y!==f&&this.addTextNodes_(r,Y)};
_.l.addTextNodes_=function(r,f){for(var I=document.createDocumentFragment(),C=r.length;f<C;f++){var Y=r[f],V=_.N("remove_cr_char")&&Y.text?Y.text.replace("\r",""):Y.text;if(this.isSimpleString_(Y)&&!this.useMixedDirectionFormattedStrings)I.appendChild(document.createTextNode(V));else{var S=_.F(Y,zi);if(S){if(S.image){var h=document.createElement("img");S.isCustomEmoji||h.classList.add("small-emoji");h.classList.add("emoji");S.isCustomEmoji&&(h.dataset.emojiId=S.emojiId);h.src=_.yH(S.image.thumbnails,
this.emojiSize);(Y=this.get("image.accessibility.accessibilityData.label",S))?h.alt=Y:S.shortcuts&&S.shortcuts.length>0?h.alt=S.shortcuts[0]:S.emojiId&&(h.alt=S.emojiId);I.appendChild(h);this.hasEmoji=!0}}else!this.noEndpoints&&Y.navigationEndpoint?(h=document.createElement("a"),h.classList.add("yt-simple-endpoint"),h.setAttribute("spellcheck","false"),this.setDataOnAnchor_(h,Y.navigationEndpoint)):h=document.createElement("span"),this.setNodeStyle_(Y,h),this.setUpVisibilityLogging_(Y,h),h.appendChild(document.createTextNode(V)),
I.appendChild(h)}}this.getRoot().appendChild(I)};
_.l.isSimpleString_=function(r){return(this.noEndpoints||!r.navigationEndpoint)&&!_.F(r,zi)&&(this.noStyles||!(r.bold||r.deemphasize||r.italics||r.strikethrough||r.errorUnderline||r.bracket||r.textColor))&&!r.loggingDirectives};
_.l.getRawText=function(){return _.Rr(this.text)};
_.l.getFirstRunText=function(){var r;if(((r=this.text)==null?0:r.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.l.setFirstRunText=function(r){var f;((f=this.text)==null?0:f.runs)&&this.text.runs[0]&&(this.text.runs[0].text=r,this.textChanged_(this.text))};
_.l.setDataOnAnchor_=function(r,f){var I=this;!_.N("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(f)||this.isSignalServiceEndpoint_(f)?(r.onclick=this.serviceEndpointHandler_(f),t6(r,"#")):KvU({text:this.text,command:f},function(){q6U(r,f,I.target)})};
_.l.isServiceEndpoint_=function(r){var f;return!((f=_.F(r==null?void 0:r.commandMetadata,_.oo))==null||!f.sendPost)};
_.l.isSignalServiceEndpoint_=function(r){return!!_.F(r,_.YI)};
_.l.serviceEndpointHandler_=function(r){var f=this;return function(I){_.Do(f.hostElement,[r]);I.preventDefault()}};
_.l.overrideAriaLabelChanged_=function(){var r=this.getRoot();this.enableContentEditable&&r&&r.setAttribute("aria-label",this.overrideAriaLabel)};
_.l.enableContentEditableChanged_=function(){var r=this,f=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),f=_.e(this.hostElement,f),!f.lastChild||f.lastChild instanceof HTMLElement&&f.lastChild.id!=="contenteditable-root"){var I=document.createElement("div");I.id="contenteditable-root";I.setAttribute("contenteditable","true");I.setAttribute("dir","auto");I.onfocus=function(){r.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
f.appendChild(I);this.overrideAriaLabel&&I.setAttribute("aria-label",this.overrideAriaLabel)}}else I=_.Oi(this.hostElement).firstChild,I instanceof HTMLElement&&I.id==="contenteditable-root"&&_.e(this.hostElement,f).removeChild(I)};
_.l.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.l.getNodesForVisibilityLogging_=function(){return _.IJ(this.getRoot().childNodes,function(r){var f;return!((f=r.data)==null||!f.trackingParams)})};
_.l.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.l.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var r=this.ytRendererBehavior.getVisibilityLogger();r&&this.getNodesForVisibilityLogging_().forEach(function(f){r.reportShown(f)})}};
_.l.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var r=this.ytRendererBehavior.getVisibilityLogger();r&&this.getNodesForVisibilityLogging_().forEach(function(f){r.reportHidden(f)})}};
_.OC.Object.defineProperties(rJ.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.N("enable_mixed_direction_formatted_strings")}}});
rJ.prototype.enableContentEditableChanged_=rJ.prototype.enableContentEditableChanged_;rJ.prototype.overrideAriaLabelChanged_=rJ.prototype.overrideAriaLabelChanged_;rJ.prototype.ellipsisTruncateChanged_=rJ.prototype.ellipsisTruncateChanged_;rJ.prototype.textChanged=rJ.prototype.textChanged;_.A([_.J(N6s.YtPlaintextBehavior),_.B("design:type",Object)],rJ.prototype,"ytPlaintextBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],rJ.prototype,"ytComponentBehavior",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],rJ.prototype,"text",void 0);_.A([_.K(),_.B("design:type",Boolean)],rJ.prototype,"noEndpoints",void 0);_.A([_.K(),_.B("design:type",Boolean)],rJ.prototype,"noStyles",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],rJ.prototype,"isDarkTheme",void 0);
_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],rJ.prototype,"splitLines",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],rJ.prototype,"forceDefaultStyle",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],rJ.prototype,"ellipsisTruncate",void 0);_.A([_.K(),_.B("design:type",Object)],rJ.prototype,"ignoreShadyDom",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.B("design:type",Boolean)],rJ.prototype,"ellipsisTruncateStyling",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.B("design:type",String)],rJ.prototype,"ariaLabel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],rJ.prototype,"isEmpty",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.B("design:type",Boolean)],rJ.prototype,"hasLinkOnly_",void 0);_.A([_.K(),_.B("design:type",Boolean)],rJ.prototype,"hasEmoji",void 0);_.A([_.K(),_.B("design:type",Boolean)],rJ.prototype,"disableAttributedString",void 0);_.A([_.K(),_.B("design:type",Boolean)],rJ.prototype,"isOverlay",void 0);_.A([_.K(),_.B("design:type",Boolean)],rJ.prototype,"linkInheritColor",void 0);
_.A([_.K(),_.B("design:type",Boolean)],rJ.prototype,"noPreWrap",void 0);_.A([_.K(),_.B("design:type",Boolean)],rJ.prototype,"userInput",void 0);_.A([_.K({value:16}),_.B("design:type",Number)],rJ.prototype,"emojiSize",void 0);_.A([_.K(),_.B("design:type",String)],rJ.prototype,"target",void 0);_.A([_.K(),_.B("design:type",Boolean)],rJ.prototype,"enableContentEditable",void 0);_.A([_.K(),_.B("design:type",String)],rJ.prototype,"overrideAriaLabel",void 0);
_.A([_.K(),_.B("design:type",Boolean)],rJ.prototype,"respectHtmlDir",void 0);_.A([_.K(),_.B("design:type",Boolean)],rJ.prototype,"respectLangDir",void 0);_.A([_.R("plaintextOnly"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],rJ.prototype,"useMixedDirectionFormattedStrings",null);_.A([_.K({computed:"computeUseAttributedString(text)"}),_.B("design:type",Boolean)],rJ.prototype,"useYtAttributedString",void 0);
_.A([_.Bt("text"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rJ.prototype,"textChanged",null);_.A([_.Bt("ellipsisTruncate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rJ.prototype,"ellipsisTruncateChanged_",null);_.A([_.Bt("overrideAriaLabel"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rJ.prototype,"overrideAriaLabelChanged_",null);
_.A([_.Bt("enableContentEditable"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rJ.prototype,"enableContentEditableChanged_",null);rJ=_.A([_.zX({is:"yt-formatted-string",disableElementRegistration:!0})],rJ);
_.Q(rJ,"yt-formatted-string",function(){if(FeV===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;$FC===void 0&&($FC=document.createElement("template"));var C=$FC;I.call(f,C.content.cloneNode(!0),r.content.firstChild);FeV=r}r=FeV;return r});var PZX;var tts;var T6U;var cC3;var fT=function(){var r=_.y.apply(this,arguments)||this;r.focused=!1;r.disabled=!1;r.isOverlay=!1;return r};
_.t(fT,_.y);fT.prototype.triggerDown=function(){if(!this.disabled){_.ob(this.hostElement,"down",!0);var r;(r=this.currentAnimation)==null||r.cancel()}};
fT.prototype.triggerUp=function(){if(!this.disabled){_.ob(this.hostElement,"down",!1);var r=this.fillElement;var f=this.strokeElement;typeof GroupEffect==="function"?(r=new GroupEffect([g5$(r),aqq(f)]),r=new Animation(r,document.timeline)):r=new xFV(r,f);this.currentAnimation=r;var I;(I=this.currentAnimation)==null||I.play()}};
_.A([_.uA(".stroke"),_.B("design:type",HTMLElement)],fT.prototype,"strokeElement",void 0);_.A([_.uA(".fill"),_.B("design:type",HTMLElement)],fT.prototype,"fillElement",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],fT.prototype,"focused",void 0);_.A([_.K(),_.B("design:type",Object)],fT.prototype,"disabled",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],fT.prototype,"isOverlay",void 0);fT=_.A([_.zX({is:"yt-interaction",disableElementRegistration:!0})],fT);
_.Q(fT,"yt-interaction",function(){if(cC3===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;T6U===void 0&&(T6U=document.createElement("template"));var C=T6U;I.call(f,C.content.cloneNode(!0),r.content.firstChild);cC3=r}r=cC3;return r},{mode:2});var IO=function(){return _.y.apply(this,arguments)||this};
_.t(IO,_.y);_.l=IO.prototype;_.l.ready=function(){var r=this,f=_.e(this.hostElement).querySelector("#button");f.addEventListener("focus",function(){hXs||(hXs=new xPC);r.keyboardFocused=hXs.isKeyBoardInUse()});
f.addEventListener("blur",function(){r.keyboardFocused=!1;r.rippleUp_()})};
_.l.computeTabIndex_=function(r){return r?-1:0};
_.l.computeButtonAriaPressed_=function(r){if(this.toggleable)return r?"true":"false"};
_.l.rippleDown_=function(){_.e(this.hostElement).querySelector("#interaction").triggerDown()};
_.l.rippleUp_=function(){_.e(this.hostElement).querySelector("#interaction").triggerUp()};
_.l.onPressedChanged_=function(){var r=_.Oi(_.e(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Oi(_.e(this.hostElement).querySelector("#button")).children[0];r&&(r.active=this.pressed)};
IO.prototype.onPressedChanged_=IO.prototype.onPressedChanged_;IO.prototype.rippleUp_=IO.prototype.rippleUp_;IO.prototype.rippleDown_=IO.prototype.rippleDown_;_.A([_.K(),_.B("design:type",String)],IO.prototype,"label",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],IO.prototype,"disabled",void 0);_.A([_.K(),_.B("design:type",Boolean)],IO.prototype,"pressed",void 0);_.A([_.K(),_.B("design:type",Object)],IO.prototype,"toggleable",void 0);
_.A([_.K(),_.B("design:type",Boolean)],IO.prototype,"untabbable",void 0);_.A([_.K(),_.B("design:type",Boolean)],IO.prototype,"keyboardFocused",void 0);_.A([_.kO("down"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IO.prototype,"rippleDown_",null);_.A([_.kO("up"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IO.prototype,"rippleUp_",null);
_.A([_.Bt("pressed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IO.prototype,"onPressedChanged_",null);IO=_.A([_.zX({is:"yt-icon-button",disableElementRegistration:!0})],IO);
_.Q(IO,"yt-icon-button",function(){if(tts===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;PZX===void 0&&(PZX=document.createElement("template"));var C=PZX;I.call(f,C.content.cloneNode(!0),r.content.firstChild);tts=r}r=tts;return r},{mode:2});var WeU=_.op(["aria-"]),CT={};CT.YtRenderButtonBehavior=[_.D.YtRendererBehavior,_.DG.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!!_.a().resolve(_.ZY(_.nF))&&_.N("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 r=this.computeHref_(this.endpoint,!0);r?t6(this.elements_.endpoint,r):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){r=this.buttonClass.split(" ");r=_.E(r);for(var f=r.next();!f.done;f=r.next())f=f.value,_.ob(this.hostElement,f,!0),this.elements_.button&&_.ob(this.elements_.button,f,!0),this.elements_.text&&_.ob(this.elements_.text,f,!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&&(r=null,this.buttonAccessibility&&(r=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=r:r?_.ys([_.BG(WeU)],this.elements_.button,"aria-label",r):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var r=_.a().resolve(_.ZY(_.nF));r&&(this.keyboardFocused=r.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.yb("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,_.zI(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.zI(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(r,f){if(f)for(r=f.split(" "),r=_.E(r),f=r.next();!f.done;f=r.next())f=f.value,_.ob(this.hostElement,f,!1),this.elements_.button&&_.ob(this.elements_.button,f,!1),this.elements_.text&&_.ob(this.elements_.text,f,!1)},
buttonIconChanged_:function(r){this.elements_.icon?r?(this.elements_.icon.icon=r,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.zI(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.QB(this.hostElement,"is-paper-button-with-icon",!1)):r&&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"&&_.zI(this.elements_.button).appendChild(this.elements_.icon):_.zI(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.QB(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(r){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,r){var f=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(r){case "yt_icon_button_with_label":f=!0;_.ob(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();r=_.zI(this.elements_.button).firstElementChild;
this.elements_.icon=r;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.zI(this.elements_.endpoint).appendChild(this.elements_.button);_.zI(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.yb("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;_.zI(this.elements_.button).appendChild(this.elements_.text);_.zI(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":f=!0,this.elements_.button=this.getYtIconButton_(),r=_.zI(this.elements_.button).firstElementChild,this.elements_.icon=r,this.setIconActive_(this.elements_.icon),
_.zI(this.elements_.endpoint).appendChild(this.elements_.button)}_.QB(this.hostElement,"is-icon-button",f);_.QB(this.hostElement,"is-paper-button",!f);_.QB(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 I;_.e((I=this.container.hostElement)!=null?I:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.zI(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(r){if(r!=void 0||this.disabled)this.disabled=r,this.elements_.button&&(this.elements_.button.disabled=r)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(r){_.N("kevlar_system_icons")&&r&&this.data&&(this.data.isSelected!==void 0?r.active=this.data.isSelected:this.data.isToggled!==void 0&&(r.active=this.data.isToggled))},
observeBasicPalette_:function(r){_.zY(this.hostElement,r)},
disabledChanged_:function(r){this.data&&this.set("data.isDisabled",r)},
onYtButtonTap_:function(r){if(this.disabled)r.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.Do(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(r=this.disableCommandHandlerOverride,!this.data||!this.data.command||r||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.N("handle_service_request_actions")||_.Do(this.hostElement,[this.serviceEndpoint]),
_.kA(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.N("handle_service_request_actions")?(r=[],this.serviceEndpoint&&r.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&r.push(this.data.command),r.length&&_.rX(this.hostElement,r,this.hostElement)):this.data&&this.data.command&&(r=this.data.command,r.accountUnlinkCommand||r.accountLinkCommand||r.insertAdCommand||r.insertHighlightMarkerCommand||
r.createLivestreamHighlightClipCommand||r.getVideoUploadFeedbackCommand||r.musicDeletePrivatelyOwnedEntityCommand||r.ypcCancelRecurrenceEndpoint||r.getMultiSelectCommandEndpoint?_.Do(this.hostElement,[r]):_.rX(this.hostElement,[r],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 r,f=_.e((r=this.container.hostElement)!=null?r:this.container);f.lastChild&&f.lastChild.tagName!="STYLE";)try{f.removeChild(f.lastChild)}catch(I){break}},
getYtIconButton_:function(){var r=this.reuseEnabled_()?_.yb("yt-icon-button"):document.createElement("yt-icon-button"),f=_.zI(r).firstElementChild;if(f&&f.is!="yt-icon"){for(f=_.zI(r);f.lastChild;)f.removeChild(f.lastChild);f=null}f||(f=this.getIcon_(),this.setIconActive_(f),_.zI(r).appendChild(f));return r},
reuseEnabled_:function(){return _.N("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.yb("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.yb("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.Le3={};
_.Le3.YtButtonBehavior=[CT.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var r=this.data;r&&(this._setEndpoint(this.computeEndpoint_(r)),this._setServiceEndpoint(this.computeServiceEndpoint_(r)),this._setCommand(this.computeCommand_(r)),this._setButtonIcon(this.computeButtonIcon_(r)),this._setButtonText(this.computeButtonText_(r,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(r)),this._setButtonTooltip(this.computeTooltip_(r)),this._setButtonClass(this.computeButtonClass_(r)),this._setIconPositionType(this.computeIconPositionType_(r)),this.updateRenderedElements())},
setPressedState:function(r){var f;if((f=this.elements_)==null?0:f.button)this.elements_.button.pressed=!!r},
computeIconPositionType_:function(r){return r&&r.iconPosition||null},
computeEndpoint_:function(r){var f=r&&r.navigationEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.url"),C=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return f?f:r&&r.command&&r.command.modalEndpoint?r.command:I&&!C&&r.command?r.command:null},
computeServiceEndpoint_:function(r){var f=r&&r.serviceEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return f?f:I&&r.command?r.command:null},
computeCommand_:function(r){return r&&r.command||null},
computeButtonIcon_:function(r){return r&&r.icon&&r.icon.iconType?_.kN(r.icon.iconType):null},
computeButtonText_:function(r,f){return!f&&r&&r.text||null},
computeAccessibility_:function(r){return this.get("accessibilityData.accessibilityData",r)||r&&r.accessibility||(r&&r.text?{label:this.getSimpleString(r.text)}:null)},
computeTooltip_:function(r){return r?r.isDisabled&&r.disabledTooltip||r.tooltip||null:null},
computeButtonClass_:function(r){var f=r&&r.style?r.style.toLowerCase().replace(/_/g,"-")+" ":"";f+=r&&r.size?r.size.toLowerCase().replace(/_/g,"-")+" ":"";r.colorData&&r.colorData.basicColorPaletteData&&r.colorData.basicColorPaletteData.borderColor&&(f+="palette-with-border");return f.trim()}}];var Mm={};var mFB;var ef_;var JCX,jdV=function(){return JCX!==void 0?JCX:JCX=document.createElement("template")};
document.head.appendChild(jdV().content);var HsX;var is4,RfD=function(){return is4!==void 0?is4:is4=document.createElement("template")};
document.head.appendChild(RfD().content);var vyg;var KeD,yCX=function(){return KeD!==void 0?KeD:KeD=document.createElement("template")};
document.head.appendChild(yCX().content);var UFX;var sd_=document.head,Os_=sd_.appendChild,oyX;if(UFX===void 0){var Qd3=document.createElement("template");_.c(Qd3,"\x3c!--css-build:shady--\x3e");Qd3.content.insertBefore(yCX().content.cloneNode(!0),Qd3.content.firstChild);UFX=Qd3}oyX=UFX;Os_.call(sd_,oyX.content);var AC3=document.head,ZsB=AC3.appendChild,GEC;if(vyg===void 0){var kE_=document.createElement("template");_.c(kE_,"\x3c!--css-build:shady--\x3e");kE_.content.insertBefore(RfD().content.cloneNode(!0),kE_.content.firstChild);vyg=kE_}GEC=vyg;ZsB.call(AC3,GEC.content);var B6X=document.head,q4B=B6X.appendChild,ukX;if(HsX===void 0){var DFV=document.createElement("template");_.c(DFV,"\x3c!--css-build:shady--\x3e");DFV.content.insertBefore(jdV().content.cloneNode(!0),DFV.content.firstChild);HsX=DFV}ukX=HsX;q4B.call(B6X,ukX.content);var r4C;_.gW("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");r4C=_.N("web_button_rework")&&_.mO("BUTTON_REWORK")||_.N("web_button_rework_with_live");_.Yn=function(){return _.y.apply(this,arguments)||this};
_.t(_.Yn,_.y);_.Yn.prototype.created=function(){this.openPopupConfig=_.Lz("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Yn.prototype.onYtNavigate_=function(r){var f=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(r.detail.endpoint);f&&(this.ytOpenPopupBehavior.openPopup(f),r.stopPropagation(),r.preventDefault())};
_.OC.Object.defineProperties(_.Yn,{template:{configurable:!0,enumerable:!0,get:function(){if(ef_===void 0){var r=document.createElement("template");_.c(r,"\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");r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
var f=r.content,I=f.insertBefore;mFB===void 0&&(mFB=document.createElement("template"));var C=mFB;I.call(f,C.content.cloneNode(!0),r.content.firstChild);ef_=r}r=ef_;return r}}});
_.Yn.prototype.onYtNavigate_=_.Yn.prototype.onYtNavigate_;_.A([_.J(_.ug.YtOpenPopupBehavior),_.B("design:type",Object)],_.Yn.prototype,"ytOpenPopupBehavior",void 0);_.A([_.J(_.Le3.YtButtonBehavior),_.B("design:type",Object)],_.Yn.prototype,"ytButtonBehavior",void 0);_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],_.Yn.prototype,"onYtNavigate_",null);
_.Yn=_.A([_.zX({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:r4C})],_.Yn);var fJ3;var IJ3=_.N("web_button_rework")&&_.mO("BUTTON_REWORK")||_.N("web_button_rework_with_live"),ln=function(){var r=_.y.apply(this,arguments)||this;r.isPressed=!1;r.forceIconButton=!1;r.forceIconOnly=!1;r.forceModernIconButton=!1;r.skipCommandHandling=!1;r.alignByText=!1;r.fitToVisibleBounds=!0;r.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};r.onTap=function(f){_.kA(r.hostElement,"yt-service-request-sent-button-renderer",f)};
return r};
_.t(ln,_.y);_.l=ln.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.l.onClick=function(r){var f,I=this.disabled||((f=this.data)==null?void 0:f.isDisabled);f=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");I&&f&&r.stopPropagation()};
_.l.computeIcon=function(){var r,f,I=(r=this.data)==null?void 0:(f=r.icon)==null?void 0:f.iconType;if(I)return _.kN(I)};
_.l.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.l.handleUpdateButtonAction=function(r){r=_.F(r,qoC);var f=_.F(r==null?void 0:r.updatedButton,_.Ll);if(this.data&&r&&f){var I=this.data;I.targetId&&r.targetId&&I.targetId===r.targetId&&(this.data=f)}};
_.OC.Object.defineProperties(ln.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var r=this;if(this.data){var f=MLB({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.kA(r.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.kA(r.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});f.alignByText=this.alignByText;return f}}}});
_.OC.Object.defineProperties(ln,{template:{configurable:!0,enumerable:!0,get:function(){if(fJ3===void 0){var r=document.createElement("template");_.c(r,'\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>');fJ3=r}r=fJ3;return r}}});
ln.prototype.onClick=ln.prototype.onClick;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],ln.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],ln.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ln.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],ln.prototype,"isPressed",void 0);
_.A([_.K(),_.B("design:type",Object)],ln.prototype,"forceIconButton",void 0);_.A([_.K(),_.B("design:type",Object)],ln.prototype,"forceIconOnly",void 0);_.A([_.K(),_.B("design:type",Object)],ln.prototype,"forceModernIconButton",void 0);_.A([_.K(),_.B("design:type",Object)],ln.prototype,"skipCommandHandling",void 0);_.A([_.K(),_.B("design:type",Object)],ln.prototype,"alignByText",void 0);_.A([_.K(),_.B("design:type",Object)],ln.prototype,"buttonTooltipPosition",void 0);
_.A([_.K(),_.B("design:type",Object)],ln.prototype,"fitToVisibleBounds",void 0);_.A([_.K({computed:"computeTooltip(data)"}),_.B("design:type",Object)],ln.prototype,"tooltip",void 0);_.A([_.K(),_.B("design:type",Object)],ln.prototype,"overrides",void 0);_.A([_.K(),_.B("design:type",Boolean)],ln.prototype,"disabled",void 0);_.A([_.kO("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],ln.prototype,"onClick",null);
_.A([_.R("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.B("design:type",Object),_.B("design:paramtypes",[])],ln.prototype,"computedButtonShape",null);ln=_.A([_.zX({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!IJ3,cssBuildOptOut:!0}),_.zX({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!IJ3,cssBuildOptOut:!0})],ln);var CW_;var YbC;var Vr=function(){var r=_.y.apply(this,arguments)||this;r.empty_=!0;r.loadTime=Infinity;r.pendingPaint=!1;r.hasChange_=!1;r.oldThumbnail_=null;r.oldDelayedSrc_="";r.objectURL_=null;return r};
_.t(Vr,_.y);_.l=Vr.prototype;_.l.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.l.ready=function(){var r=this.shouldShowPlaceholder_();_.ob(this.hostElement,"no-transition",!0);r&&this.hostElement.classList.add("with-placeholder")};
_.l.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.l.isThumbPreloaded_=function(r){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",r)};
_.l.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||lJC};
_.l.computeThumbnailSrc_=function(r){return r&&r.thumbnails?_.yH(r.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.l.computeAlt_=function(){var r=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&r||""};
_.l.thumbnailChanged_=function(){var r=_.E([this.thumbnail,this.oldThumbnail_]),f=r.next().value;r=r.next().value;this.oldThumbnail_=f;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(r=this.computeThumbnailSrc_(r),this.computeThumbnailSrc_(f)===r))return;_.N("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(f)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):f&&_.mO("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.UC(this,this.onReload_):_.UC(this,this.onShow_):this.resetImage_();f&&(this.hostElement.style.opacity=""+f.opacity)}};
_.l.delayedSrcChanged_=function(){var r=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===r||this.resetImage_()};
_.l.setSrc_=function(r){r?(_.e(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.e(this.hostElement).querySelector("#img").src=r):(_.e(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.l.resetImage_=function(){FfR(this.hostElement);this.empty_=!0;this.setSrc_(lJC);this.ytRendererBehavior.invalidate(!1)};
_.l.observePlaceholderColor_=function(){var r=this.thumbnail&&this.thumbnail.placeholderColor;r?this.hostElement.style.backgroundColor=_.MG(r):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.l.onLoad_=function(){_.e(this.hostElement).querySelector("#img").src&&_.e(this.hostElement).querySelector("#img").src!==lJC&&($Hw(this.hostElement),this.notifyOnLoaded&&_.kA(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.l.onError_=function(){var r=this;if(_.N("web_use_cache_for_image_fallback"))mHd(_.e(this.hostElement).querySelector("#img").src).then(function(f){r.objectURL_=_.aw(f).toString();r.setSrc_(r.objectURL_)}).catch(function(){_.N("kevlar_woffle_fallback_image")&&r.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.l.onPrescanVisible=function(){this.onShow_()};
_.l.onVisible=function(){if(_.N("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.l.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var r=this.computeSrc_();r!==_.e(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(r))}};
_.l.onReload_=function(){this.empty_=!1;var r=this.computeSrc_();r!==_.e(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(r))};
_.l.shouldShowPlaceholder_=function(){return _.N("kevlar_thumbnail_bg")};
Vr.prototype.observePlaceholderColor_=Vr.prototype.observePlaceholderColor_;Vr.prototype.delayedSrcChanged_=Vr.prototype.delayedSrcChanged_;Vr.prototype.thumbnailChanged_=Vr.prototype.thumbnailChanged_;_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],Vr.prototype,"alt",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Vr.prototype,"ariaHidden",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],Vr.prototype,"ariaLabel",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Vr.prototype,"hidden",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],Vr.prototype,"id",void 0);_.A([_.J(_.WD.YtVisibilityBehavior),_.B("design:type",Object)],Vr.prototype,"ytVisibilityBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Vr.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",String)],Vr.prototype,"delayedSrc",void 0);
_.A([_.K(),_.B("design:type",Object)],Vr.prototype,"thumbnail",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Vr.prototype,"loaded",void 0);_.A([_.K(),_.B("design:type",Boolean)],Vr.prototype,"notifyOnLoaded",void 0);_.A([_.K(),_.B("design:type",Number)],Vr.prototype,"height",void 0);_.A([_.K(),_.B("design:type",Number)],Vr.prototype,"width",void 0);_.A([_.K({value:function(){return"width"}}),
_.B("design:type",String)],Vr.prototype,"dimension",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Vr.prototype,"fit",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Vr.prototype,"fitHeight",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Vr.prototype,"fitWidth",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],Vr.prototype,"objectFit",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],Vr.prototype,"objectPosition",void 0);_.A([_.K(),_.B("design:type",String)],Vr.prototype,"preferredThumbnail",void 0);_.A([_.K({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.B("design:type",String)],Vr.prototype,"alt_",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],Vr.prototype,"sharedTooltipText",void 0);
_.A([_.K(),_.B("design:type",Boolean)],Vr.prototype,"ftlEligible",void 0);_.A([_.K({value:void 0}),_.B("design:type",String)],Vr.prototype,"observeHiddenOption",void 0);_.A([_.K({value:"observe_once"}),_.B("design:type",String)],Vr.prototype,"observePrescanOption",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Vr.prototype,"roundedContainer",void 0);
_.A([_.YN("thumbnail"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vr.prototype,"thumbnailChanged_",null);_.A([_.YN("delayedSrc"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vr.prototype,"delayedSrcChanged_",null);_.A([_.Bt("thumbnail.placeholderColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vr.prototype,"observePlaceholderColor_",null);
Vr=_.A([_.zX({is:"yt-img-shadow",disableElementRegistration:!0})],Vr);var lJC=_.mO("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.os()(Vr,"yt-img-shadow",function(){if(YbC===void 0){var r=document.createElement("template");_.c(r,'\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">');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;CW_===void 0&&(CW_=document.createElement("template"));var C=CW_;I.call(f,C.content.cloneNode(!0),r.content.firstChild);YbC=r}r=YbC;return r},{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 gmq;_.Ef=new _.Go("SCREEN_MANAGER_TOKEN");gmq=new _.Go("LOG_INITIAL_SCREEN_TOKEN");_.F1=_.Hc(function(r){function f(EP){return _.F(EP,_.NI)}
function I(){var EP=C().isTogglingDisabled||g()?W():!W();m(EP);O(!1);if(!C().isTogglingDisabled){var Pu;(Pu=S)==null||Pu(!!EP)}var Wu;((Wu=V)==null?0:Wu())||_.lH(_.a().resolve(_.Ef),C().trackingParams);var cu;if(!EP||!f(C().defaultButtonViewModel)||(cu=V)!=null&&cu()){var OP;!f(C().toggledButtonViewModel)||((OP=V)==null?0:OP())||_.lH(_.a().resolve(_.Ef),f(C().toggledButtonViewModel).trackingParams)}else _.lH(_.a().resolve(_.Ef),f(C().defaultButtonViewModel).trackingParams)}
var C=r.data,Y=r.buttonShapeOverrides,V=r.disableExplicitClickLogging,S=r.onToggle,h=r.style,w=r.useOutlinedIcon,n=r.className,d=function(){var EP,Pu;return W()?(EP=r.animatedTextPropsToggled)==null?void 0:EP.call(r):(Pu=r.animatedTextPropsDefault)==null?void 0:Pu.call(r)},z=_.hR(function(){return d()?Object.assign({},d(),{shouldAnimate:v()}):void 0},void 0,"ZKEa0b"),g=function(){var EP;
return((EP=Cw())==null?void 0:EP.isToggled)!==void 0},X=_.E(_.YZ(function(){var EP,Pu,Wu;
return g()?(EP=Cw())==null?void 0:EP.isToggled:(Wu=Y==null?void 0:(Pu=Y())==null?void 0:Pu.toggled)!=null?Wu:C().isToggled})),P=X.next().value;
X=X.next().value;var W=P,m=X;X=_.E(_.YZ(function(){var EP,Pu;return(EP=r.animatedTextPropsToggled)==null?void 0:(Pu=EP.call(r))==null?void 0:Pu.shouldAnimate}));
P=X.next().value;X=X.next().value;var v=P,O=X;P=_.E(_.ld(!1,void 0,"S11hid"));var k=P.next().value,Z=P.next().value,Cw=_.XA(function(EP){var Pu;a:{var Wu=C().entityKey,cu=C().toggledStateEntitySelectorType;if(cu&&Wu)switch(cu){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var OP;EP=(OP=_.f2(EP.entities,"sfvAudioItemCurrentlyPlayingEntity",Wu))!=null?OP:void 0;OP=(Pu=EP==null?void 0:EP.sfvAudioItemPlaybackState)!=null?Pu:void 0;if(OP==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){Pu={isToggled:!0};
break a}if(OP){Pu={isToggled:!1};break a}break;default:_.t7(new _.nf("Error: entitySelectorType defined but not matched in selector.",EP,cu))}Pu=void 0}return Pu});
P=_.IC(function(){var EP=_.a().resolve(_.ZY(_.nF));EP&&Z(EP.isKeyBoardInUse());return!1});
X=_.IC(function(){Z(!1);return!1});
var rR=function(){return Object.assign({},Y==null?void 0:Y(),{onToggle:I,toggleable:!0,toggled:W(),focused:k()})};
return _.p("toggle-button-view-model",{"on:focusin":P,"on:focusout":X,class:n},_.p(_.M,{cond:function(){return W()?f(C().toggledButtonViewModel):f(C().defaultButtonViewModel)},
then:function(EP){return _.p(_.LF,{data:EP,className:n,style:h,useOutlinedIcon:w,buttonOverrides:rR,animatedTextProps:z})}}))},"v");
_.F1.idomCompat={callbacks:{onToggle:!0}};_.Kv(_.Hc(function(r){return _.p("yt-toggle-button-view-model",{class:function(){var f;return(f=r.scopingClassName)==null?void 0:f.call(r)}},_.p(_.F1,{data:function(){var f;
return(f=r.data)==null?void 0:f.call(r)},
buttonShapeOverrides:function(){var f;return(f=r.overrides)==null?void 0:f.call(r)},
animatedTextPropsDefault:function(){var f;return(f=r.animatedTextPropsDefault)==null?void 0:f.call(r)},
animatedTextPropsToggled:function(){var f;return(f=r.animatedTextPropsToggled)==null?void 0:f.call(r)},
disableExplicitClickLogging:function(){var f;return(f=r.disableExplicitClickLogging)==null?void 0:f.call(r)},
onToggle:function(f){var I;return(I=r.onToggle)==null?void 0:I.call(r,f)},
style:function(){var f;return(f=r.style)==null?void 0:f.call(r)},
useOutlinedIcon:function(){var f;return(f=r.useOutlinedIcon)==null?void 0:f.call(r)},
className:function(){var f;return(f=r.className)==null?void 0:f.call(r)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.jv,
buttonShapeOverrides:_.jv,overrides:_.jv,animatedTextPropsDefault:_.jv,animatedTextPropsToggled:_.jv,disableExplicitClickLogging:_.jv,onToggle:_.vI,style:_.jv,useOutlinedIcon:_.jv,className:_.jv,scopingClassName:_.jv}});var Sp=function(){return _.y.apply(this,arguments)||this};
_.t(Sp,_.y);Sp.prototype.onTap=function(r){r.stopPropagation();r=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.Po("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:r})):this.ytLiveChatReduxBehavior.dispatch(_.hv("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:r}))};
_.OC.Object.defineProperties(Sp.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.engagementState)==null?void 0:r.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var r=_.F(this.data.toggleButton,_.$4),f;if(Number(((f=this.likeCountState)==null?void 0:f.likeCountIfIndifferentNumber)||"0")===0){var I;f=((I=this.data.likeCountPlaceholder)==null?void 0:I.content)||""}else{var C,Y,V;f=((C=this.likeCountState)==null?void 0:(Y=C.likeCountIfIndifferent)==null?void 0:Y.content)||((V=this.data.likeCountPlaceholder)==null?void 0:V.content)||""}var S,h;I=((S=this.likeCountState)==null?void 0:(h=
S.likeCountIfLiked)==null?void 0:h.content)||"1";S=_.F(r.toggledButtonViewModel,_.NI);return Object.assign({},r,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.F(r.defaultButtonViewModel,_.NI),{title:f})},toggledButtonViewModel:{buttonViewModel:Object.assign({},S,{title:I})}})}}}});
Sp.prototype.onTap=Sp.prototype.onTap;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Sp.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Sp.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.FT),_.B("design:type",Object)],Sp.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Sp.prototype,"data",void 0);
_.A([_.K({selectorArgs:["data.likeCountEntityKey"],selector:gFd}),_.B("design:type",Object)],Sp.prototype,"likeCountState",void 0);_.A([_.K({selectorArgs:["data.engagementStateKey"],selector:ZIu}),_.B("design:type",Object)],Sp.prototype,"engagementState",void 0);_.A([_.R("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Sp.prototype,"isLiked",null);
_.A([_.R("data","likeCountState","isLiked"),_.B("design:type",Object),_.B("design:paramtypes",[])],Sp.prototype,"toggleButton",null);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Sp.prototype,"onTap",null);Sp=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Sp);
_.Q(Sp,"yt-live-chat-like-button-view-model",function(){if(Xm8===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;at8===void 0&&(at8=document.createElement("template"));var C=at8;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Xm8=r}r=Xm8;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var Vks;var ER3;var wJ=function(){return _.y.apply(this,arguments)||this};
_.t(wJ,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],wJ.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],wJ.prototype,"data",void 0);wJ=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],wJ);
_.Q(wJ,"yt-live-chat-paid-message-footer-renderer",function(){if(ER3===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;Vks===void 0&&(Vks=document.createElement("template"));var C=Vks;I.call(f,C.content.cloneNode(!0),r.content.firstChild);ER3=r}r=ER3;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var SbU;var xHg;var hxs;var wTV,bgT=function(){if(wTV!==void 0)return wTV;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;hxs===void 0&&(hxs=document.createElement("template"));var C=hxs;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return wTV=r};var bn=function(){return _.y.apply(this,arguments)||this};
_.t(bn,_.y);bn.prototype.onTap=function(r){r.stopPropagation()};
_.OC.Object.defineProperties(bn.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var r=_.F(this.data.replyButton,_.NI),f,I,C,Y,V,S,h,w=Number(((f=this.replyCountState)==null?void 0:f.replyCountNumber)||"0")===0?(I=this.data)==null?void 0:(C=I.replyCountPlaceholder)==null?void 0:C.content:((Y=this.replyCountState)==null?void 0:(V=Y.replyCount)==null?void 0:V.content)||((S=this.data)==null?void 0:(h=S.replyCountPlaceholder)==null?void 0:h.content)||"",n;return Object.assign({},
r,{title:w,accessibilityText:(n=this.replyCountState)==null?void 0:n.replyButtonAccessibilityText})}}}});
_.OC.Object.defineProperties(bn,{template:{configurable:!0,enumerable:!0,get:function(){return bgT()}}});
bn.prototype.onTap=bn.prototype.onTap;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],bn.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.FT),_.B("design:type",Object)],bn.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],bn.prototype,"data",void 0);
_.A([_.K({selectorArgs:["data.replyCountEntityKey"],selector:function(r,f){return _.f2(r.entities,"replyCountEntity",f)}}),
_.B("design:type",Object)],bn.prototype,"replyCountState",void 0);_.A([_.R("data","replyCountState"),_.B("design:type",Object),_.B("design:paramtypes",[])],bn.prototype,"buttonViewModel",null);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],bn.prototype,"onTap",null);bn=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],bn);
_.Q(bn,"yt-live-chat-reply-button-view-model",function(){return bgT()},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var pTX;var nR8;var pT=function(){var r=_.y.apply(this,arguments)||this;r.ariaLabel="";return r};
_.t(pT,_.y);
pT.prototype.dataChanged=function(){for(var r=(0,_.AN)(_.e(this.hostElement).querySelector("#image"));r.firstChild;)r.removeChild(r.firstChild);if(this.data)if(this.data.icon){var f=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(f.polymerController.icon="yt-sys-icons:shield-filled",f.polymerController.defaultToFilled=!0):f.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();r.appendChild(f)}else if(this.data.customThumbnail){f=document.createElement("img");
var I=_.dHE(this.data.customThumbnail.thumbnails,16);I?(f.src=I,r.appendChild(f),f.setAttribute("alt",this.hostElement.ariaLabel||"")):_.t7(new _.nf("Could not compute URL for thumbnail",this.data.customThumbnail))}};
pT.prototype.identity=function(r){return r};
pT.prototype.computeType=function(r){return AG(r||void 0)};
pT.prototype.dataChanged=pT.prototype.dataChanged;_.A([_.K(),_.B("design:type",Object)],pT.prototype,"data",void 0);_.A([_.K({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.B("design:type",Object)],pT.prototype,"ariaLabel",void 0);_.A([_.K({computed:"computeType(data)",reflectToAttribute:!0}),_.B("design:type",String)],pT.prototype,"type",void 0);
_.A([_.K({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.B("design:type",String)],pT.prototype,"sharedTooltipText",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.N("live_chat_enable_new_moderator_badge")}}),
_.B("design:type",Boolean)],pT.prototype,"enableNewModeratorBadge",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pT.prototype,"dataChanged",null);pT=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],pT);
_.Q(pT,"yt-live-chat-author-badge-renderer",function(){if(nR8===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;pTX===void 0&&(pTX=document.createElement("template"));var C=pTX;I.call(f,C.content.cloneNode(!0),r.content.firstChild);nR8=r}r=nR8;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var dHq;var zx3;var nT=function(){return _.y.apply(this,arguments)||this};
_.t(nT,_.y);_.l=nT.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(r){return r?r.filter(function(f){return AG(f.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.l.computeBadgesOutsideChip=function(r){return this.prependChatBadges||!r?[]:r.filter(function(f){f=AG(f.liveChatAuthorBadgeRenderer);return f!=="verified"&&f!=="owner"})};
_.l.computeBadgesBeforeChip=function(r){return this.prependChatBadges&&r?r.filter(function(f){f=AG(f.liveChatAuthorBadgeRenderer);return f!=="verified"&&f!=="owner"}):[]};
_.l.computeIsHighlighted=function(r,f){var I=!!W$E(r,"owner"),C=!!W$E(r,"verified");r=!!W$E(r,"moderator");return(I||C&&!r)&&!f};
_.l.computeAuthorType=function(r){return cr$(r)};
_.l.computeAuthorClass=function(r,f){return f?(r?r+" ":"")+"single-line":r};
_.l.onSeedColorChanged=function(){_.N("live_chat_author_name_color_usernames")||_.N("live_chat_seed_color_usernames")||_.N("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):_.N("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
nT.prototype.onSeedColorChanged=nT.prototype.onSeedColorChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],nT.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],nT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],nT.prototype,"authorName",void 0);_.A([_.K(),_.B("design:type",Array)],nT.prototype,"authorBadges",void 0);
_.A([_.K({computed:"computeAuthorType(authorBadges)"}),_.B("design:type",String)],nT.prototype,"authorType",void 0);_.A([_.K({computed:"computeAuthorClass(authorType, singleLine)"}),_.B("design:type",String)],nT.prototype,"authorClass",void 0);_.A([_.K({computed:"computeBadgesInsideChip(authorBadges)"}),_.B("design:type",Array)],nT.prototype,"badgesInsideChip",void 0);_.A([_.K({computed:"computeBadgesOutsideChip(authorBadges)"}),_.B("design:type",Array)],nT.prototype,"badgesOutsideChip",void 0);
_.A([_.K({computed:"computeBadgesBeforeChip(authorBadges)"}),_.B("design:type",Array)],nT.prototype,"badgesBeforeChip",void 0);_.A([_.K({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.B("design:type",Boolean)],nT.prototype,"isHighlighted",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],nT.prototype,"singleLine",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],nT.prototype,"disableHighlighting",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],nT.prototype,"dashboardMoneyFeed",void 0);_.A([_.K({value:_.N("live_chat_prepend_badges"),reflectToAttribute:!0}),_.B("design:type",Boolean)],nT.prototype,"prependChatBadges",void 0);_.A([_.K(),_.B("design:type",String)],nT.prototype,"authorNameColor",void 0);_.A([_.uA("#author-name"),_.B("design:type",HTMLDivElement)],nT.prototype,"username",void 0);
_.A([_.Bt("authorNameColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nT.prototype,"onSeedColorChanged",null);nT=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],nT);
_.Q(nT,"yt-live-chat-author-chip",function(){if(zx3===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;dHq===void 0&&(dHq=document.createElement("template"));var C=dHq;I.call(f,C.content.cloneNode(!0),r.content.firstChild);zx3=r}r=zx3;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var Mkg;var gR4;var dJ=function(){var r=_.y.apply(this,arguments)||this;r.debounceCommand=_.z1(function(f){r.ytComponentBehavior.resolveCommand(f)},1500);
return r};
_.t(dJ,_.y);dJ.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var r=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",f,I,C=this.isHearted?(f=this.data)==null?void 0:f.unheartCommand:(I=this.data)==null?void 0:I.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.Po("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:r}));(r=_.aB(C))&&this.debounceCommand(r)}};
_.OC.Object.defineProperties(dJ.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var r,f;if(!((r=this.data)==null?0:(f=r.creatorThumbnail)==null?0:f.sources))return{};r={thumbnails:[]};f={};f.url=this.data.creatorThumbnail.sources[0].url;r.thumbnails.push(f);return r}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.engagementState)==null?void 0:r.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((f=this.engagementState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.engagementState)==null?void 0:r.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((f=this.engagementState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.engagementState)==null?void 0:r.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return((r=this.engagementState)==null?void 0:r.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((f=this.engagementState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((I=this.engagementState)==null?void 0:I.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}}});
dJ.prototype.onTap=dJ.prototype.onTap;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],dJ.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],dJ.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.FT),_.B("design:type",Object)],dJ.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],dJ.prototype,"data",void 0);
_.A([_.K({selectorArgs:["data.engagementStateKey"],selector:ZIu}),_.B("design:type",Object)],dJ.prototype,"engagementState",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],dJ.prototype,"thumbnailDetails",null);_.A([_.R("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],dJ.prototype,"isHearted",null);_.A([_.R("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],dJ.prototype,"isEditable",null);
_.A([_.R("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],dJ.prototype,"showCreatorView",null);_.A([_.R("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],dJ.prototype,"showButton",null);_.A([_.R("data","isHearted"),_.B("design:type",String),_.B("design:paramtypes",[])],dJ.prototype,"label",null);_.A([_.R("data","isHearted"),_.B("design:type",Object),_.B("design:paramtypes",[])],dJ.prototype,"heartHoverText",null);
_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dJ.prototype,"onTap",null);dJ=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],dJ);
_.Q(dJ,"yt-live-chat-creator-heart-view-model",function(){if(gR4===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;Mkg===void 0&&(Mkg=document.createElement("template"));var C=Mkg;I.call(f,C.content.cloneNode(!0),r.content.firstChild);gR4=r}r=gR4;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var zJ=function(r,f){this.serviceId=new VHV(r,f)};
zJ.prototype.toString=function(){return this.serviceId.toString()};var aJs=function(){this.internalMap={}};
_.l=aJs.prototype;_.l.contains=function(r){return Object.prototype.hasOwnProperty.call(this.internalMap,r)};
_.l.get=function(r){if(this.contains(r))return this.internalMap[r]};
_.l.set=function(r,f){this.internalMap[r]=f};
_.l.getKeys=function(){return Object.keys(this.internalMap)};
_.l.remove=function(r){delete this.internalMap[r]};var Mz=function(){this.mappings=new aJs;this.errorCallbacks=new Set};
Mz.prototype.getModuleId=function(r){return r.serviceId.getModuleId()};
Mz.prototype.get=function(r){var f=this.mappings.get(r.toString());return XTC(this,f,r)};
Mz.prototype.getMultipleAsync=function(){var r=_.XE.apply(0,arguments),f=this,I=r.map(function(w){return f.getModuleId(w)}),C=r.map(function(w){return f.mappings.get(w.toString())}).filter(function(w){return w});
if(C.length===r.length)return _.fe(C.map(function(w,n){return XTC(f,w,r[n])}));
var Y=FF().loadMultiple(I);C=_.aP(I.map(function(w){return Y[w]}));
var V=document.hidden,S=-1,h=_.Bw("get_async_timeout_ms",-1);h>-1&&(S=setTimeout(function(){_.t7(new _.nf("Module timeout.",I,V,document.hidden))},h));
return _.XZ(C.then(function(){return r.map(function(w){return XTC(f,f.mappings.get(w.toString()),w)})}).thenCatch(function(w){for(var n=_.E(f.errorCallbacks),d=n.next();!d.done;d=n.next())d=d.value,d(w);
throw w;}),function(){clearTimeout(S)})};
Mz.prototype.registerService=function(r,f){this.mappings.set(r.toString(),{type:"mapping",value:f});return r};
var XTC=function(r,f,I){switch(f.type){case "mapping":return f.value;case "factory":return f=f.value(),r.mappings.set(I.toString(),{type:"mapping",value:f}),f;default:return _.Sd(f)}};
Mz.prototype.onLoadError=function(r){var f=this;this.errorCallbacks.add(r);return function(){f.errorCallbacks.delete(r)}};
_.gJ=new Mz;var Nk3=function(){};
_.l=Nk3.prototype;
_.l.JSC$11807_getRequest=function(r,f,I){f=f===void 0?{}:f;I=I===void 0?xWT:I;var C=f;if(this.isNavigationCommand()){var Y,V=(Y=_.F(r==null?void 0:r.commandMetadata,_.oo))==null?void 0:Y.url;C=_.JWc(r.clickTrackingParams,!0,!1,V,this.JSC$11807_getClientScreen(C))}else C=_.JWc(r.clickTrackingParams,!1,this.includeCsn);C={context:C};if(Y=this.getExtension(r))return this.JSC$11807_buildRequest(C,Y,f),Y=this.getApiUrl(r),V=Object.assign({},{command:r},this.getRequestConfig(r,f)),C={input:Y,requestShell:iy(Y),
innerTubeRequest:C,config:V},C.config.authStrategy?C.config.authStrategy.identity=I:C.config.authStrategy={identity:I},(r=this.JSC$11807_getRequestKey(r,f))&&!C.config.requestKey&&(C.config.requestKey=r),C;r=new _.nf("Error: Failed to create Request from Command.",r);_.Fo(r)};
_.l.getApiUrl=function(r){var f=_.yC(this.getApiPaths(r)),I;(r=(I=_.F(r.commandMetadata,_.oo))==null?void 0:I.apiUrl)&&(f=r);return Sal(Ecl(f))};
_.l.isNavigationCommand=function(){return!1};
_.l.JSC$11807_getClientScreen=function(){};
_.l.JSC$11807_getRequestKey=function(){};
_.l.getRequestConfig=function(){};
_.OC.Object.defineProperties(Nk3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var aO=function(){};
_.t(aO,Nk3);aO.prototype.JSC$11814_getStoreKey=function(){};
aO.prototype.JSC$11807_getRequestKey=function(r,f){f=f===void 0?{}:f;return this.JSC$11814_getStoreKey(r,f)};var XG=function(){};
_.t(XG,aO);XG.prototype.JSC$11807_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:iy("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
XG.prototype.getApiPaths=function(){return[]};
XG.prototype.getExtension=function(){};
XG.prototype.JSC$11807_buildRequest=function(){};var $H8={},FfD=($H8.GET_DATASYNC_IDS=FA(XG),$H8);var PWU,tkU,Tks,$PB,Nz,LfV,W5U,Wf3,c43;PWU="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");tkU=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Wl=function(r,f,I,C,Y,V,S,h,w){this.endpointMap=r;this.networkManager=f;this.authService=I;this.responseProcessorMap=C;this.innertubeResponseStore=Y;this.contextProcessors=V;this.asyncContextProcessors=S;this.localInnertubeRouter=h;this.requestSequencer=w;this.inflightRequests=new Map;r.signalEndpointMap||(r.signalEndpointMap={});r.signalEndpointMap=Object.assign({},FfD,r.signalEndpointMap)};
Tks=function(r,f,I,C,Y,V,S,h,w){if(_.Wl.instance!==void 0){if(C=_.Wl.instance,r=[r!==C.endpointMap,f!==C.networkManager,I!==C.authService,Y!==C.innertubeResponseStore,V!==C.contextProcessors,S!==C.asyncContextProcessors,h!==C.localInnertubeRouter],r.some(function(n){return n}))throw new _.nf("InnerTubeTransportService is already initialized",r);
}else _.Wl.instance=new _.Wl(r,f,I,C,Y,V,S,h,w)};
_.mC=function(r,f,I){var C=C===void 0?xWT:C;var Y=W5U(r,f);return Y?new _.lz(function(V,S){var h,w,n,d,z;return _.x(function(g){switch(g.nextAddress){case 1:return _.b(g,Y,2);case 2:h=g.yieldResult;w=h.JSC$11807_getRequest(f,I,C);if(!w){S(new _.nf("Error: Failed to build request for command.",f));g.jumpTo(0);break}NG(w.input);d=((n=w.requestShell)==null?void 0:n.mode)==="cors"?"cors":void 0;if(r.authService.syncHeaders){z=c43(w.config,d);g.jumpTo(4);break}return _.b(g,Wf3(w.config,d),5);case 5:z=
g.yieldResult;case 4:V(LfV(r,w,z)),_.wO(g)}})}):_.h3(new _.nf("Error: No request builder found for command.",f))};
$PB=function(r,f,I,C){var Y=Y===void 0?xWT:Y;var V,S,h,w,n,d,z,g,X,P,W,m,v,O,k,Z,Cw,rR;return _.x(function(EP){switch(EP.nextAddress){case 1:V=N4$(f,r.endpointMap);if(!V)throw new _.nf("Error: No streaming request builder found for command",f);S=V.JSC$11807_getRequest(f,I,Y);if(!S)throw new _.nf("Failed to build YtRequest for streaming Command",f);if((h=r.localInnertubeRouter)==null||!h.shouldPreferLocalResponse(S.input,S.innerTubeRequest)){EP.jumpTo(2);break}return _.b(EP,r.localInnertubeRouter.localInnertubeResponse(S.input,
S.innerTubeRequest),3);case 3:return w=EP.yieldResult,n={},w.playerResponse&&(Nz(r,w.playerResponse,S),n.player=w.playerResponse,(d=C)==null||d(n,w)),w.watchNextResponse&&(Nz(r,w.watchNextResponse,S),n.content=w.watchNextResponse,(z=C)==null||z(n,w)),EP.return(n);case 2:X=((g=S.requestShell)==null?void 0:g.mode)==="cors"?"cors":void 0;if(r.authService.syncHeaders){P=c43(S.config,X);EP.jumpTo(4);break}return _.b(EP,Wf3(S.config,X),5);case 5:P=EP.yieldResult;case 4:return v=(m=(W=S.requestShell)==null?
void 0:W.headers)!=null?m:{},S.requestShell=Object.assign({},S.requestShell,{headers:Object.assign({},v,P)}),O=Object.assign({},S.requestShell),k=JSON.stringify(S.innerTubeRequest),S.requestShell.method==="POST"&&(O=Object.assign({},O,{body:k})),Z=function(Pu,Wu){Nz(r,Wu.playerResponse||Wu.watchNextResponse||Wu.reelItemWatchResponse||Wu.reelWatchSequenceResponse,S);C==null||C(Pu,Wu)},Cw={},_.b(EP,mHU(r.networkManager,S.input,O,Z),6);
case 6:return Cw=EP.yieldResult,((rR=S.config)==null?0:rR.responseTick)&&_.Xc(S.config.responseTick),EP.return(Cw)}})};
_.cP=function(r,f,I,C,Y){Y=Y===void 0?{authStrategy:{identity:xWT}}:Y;var V=V===void 0?!0:V;var S=function(){};
S=Nfm(aVl(I));f.context||(f.context=_.JWc(C,V));return new _.lz(function(h){var w,n,d,z,g;return _.x(function(X){if(X.nextAddress==1)return w=Ecl(I),n=_.Hj(w),r.authService.syncHeaders?(d=c43(Y,n),X.jumpTo(2)):_.b(X,Wf3(Y,n),3);X.nextAddress!=2&&(d=X.yieldResult);z=Sal(Ecl(I));g={input:z,requestShell:iy(z),innerTubeRequest:f,config:Y};h(LfV(r,g,d,S));_.wO(X)})})};
Nz=function(r,f,I){var C;if(f&&!(f==null?0:(C=f.sequenceMetaData)==null?0:C.skipProcessing)&&r.responseProcessorMap){C=_.E(PWU);for(var Y=C.next();!Y.done;Y=C.next())Y=Y.value,r.responseProcessorMap[Y]&&r.responseProcessorMap[Y].handleResponse(f,I)}};
LfV=function(r,f,I,C){C=C===void 0?function(){}:C;
var Y,V,S,h,w,n,d,z,g,X,P,W,m,v,O,k,Z,Cw,rR,EP,Pu,Wu,cu,OP,iU,oR,vu,wB,qT,gB,C8,Es,J_,xC,r2,F9,SK,FX,iV,s7;return _.x(function(W4){switch(W4.nextAddress){case 1:S=(Y=f.config)==null?void 0:(V=Y.storeStrategy)==null?void 0:V.storeKey;if(!(S&&r.innertubeResponseStore&&r.innertubeResponseStore.has(S))||((h=f.config)==null?0:(w=h.storeStrategy)==null?0:w.disableCache)){W4.jumpTo(2);break}return _.b(W4,r.innertubeResponseStore.get(S),3);case 3:if((n=W4.yieldResult)&&!n.isExpired())return W4.return(Promise.resolve(_.lO(n)));
case 2:if(!((d=f)==null?0:(z=d.innerTubeRequest)==null?0:z.context)){W4.jumpTo(4);break}g=f.innerTubeRequest.context;if(!(r.asyncContextProcessors&&r.asyncContextProcessors.length>0)){W4.jumpTo(5);break}X=[];P=_.E(r.asyncContextProcessors);for(W=P.next();!W.done;W=P.next())m=W.value,v=m.processContext(f),v.wrappedPromise_&&X.push(v.wrappedPromise_);if(!(X.length>0)){W4.jumpTo(5);break}return _.b(W4,Promise.all(X),5);case 5:O=_.E(r.contextProcessors||[]),k=O.next();case 8:if(k.done){W4.jumpTo(4);break}Z=
k.value;return _.b(W4,Z.processContext(g),9);case 9:k=O.next();W4.jumpTo(8);break;case 4:if((Cw=r.localInnertubeRouter)==null||!Cw.shouldPreferLocalResponse(f.input,f.innerTubeRequest)){W4.jumpTo(12);break}return _.b(W4,r.localInnertubeRouter.localInnertubeResponse(f.input,f.innerTubeRequest),13);case 13:return rR=W4.yieldResult,Nz(r,rR,f),W4.return(rR);case 12:return(Wu=(Pu=f.config)==null?void 0:Pu.requestKey)&&r.inflightRequests.has(Wu)?EP=r.inflightRequests.get(Wu):(cu=JSON.stringify(f.innerTubeRequest),
oR=(iU=(OP=f.requestShell)==null?void 0:OP.headers)!=null?iU:{},f.requestShell=Object.assign({},f.requestShell,{headers:Object.assign({},oR,I)}),vu=Object.assign({},f.requestShell),f.requestShell.method==="POST"&&(vu=Object.assign({},vu,{body:cu})),((wB=f.config)==null?0:wB.requestTick)&&_.Xc(f.config.requestTick),qT=function(){return r.networkManager.fetch(f.input,vu,f.config)},EP=r.requestSequencer?exV(r.requestSequencer,f,qT):qT(),Wu&&r.inflightRequests.set(Wu,EP)),_.b(W4,EP,14);
case 14:(gB=W4.yieldResult)&&_.N("web_streaming_player")&&Array.isArray(gB)&&(gB=gB[0].playerResponse);if(gB&&"error"in gB&&((C8=gB)==null?0:(Es=C8.error)==null?0:Es.details))for(J_=gB.error.details,xC=_.E(J_),r2=xC.next();!r2.done;r2=xC.next())F9=r2.value,(SK=F9["@type"])&&tkU.indexOf(SK)>-1&&(delete F9["@type"],gB=F9);Wu&&r.inflightRequests.has(Wu)&&r.inflightRequests.delete(Wu);((FX=f.config)==null?0:FX.responseTick)&&_.Xc(f.config.responseTick);if(gB||(iV=r.localInnertubeRouter)==null||!iV.canProvideFallbackResponse(f.input,
f.innerTubeRequest)){W4.jumpTo(15);break}return _.b(W4,r.localInnertubeRouter.localFallbackInnertubeResponse(f.input,f.innerTubeRequest),16);case 16:gB=W4.yieldResult;case 15:return Nz(r,gB,f),((s7=f.config)==null?0:s7.processorTick)&&_.Xc(f.config.processorTick),C(),W4.return(gB||void 0)}})};
_.LQ=function(r,f){return Xp$(f,r.endpointMap)};
W5U=function(r,f){r=$lE(f,r.endpointMap);if(r!==void 0)return Promise.resolve(r)};
Wf3=function(r,f){var I,C,Y,V;return _.x(function(S){if(S.nextAddress==1){Y=(I=r)==null?void 0:(C=I.authStrategy)==null?void 0:C.sessionIndex;var h=_.fe(Wwd({sessionIndex:Y}));return _.b(S,h,2)}V=S.yieldResult;return S.return(Promise.resolve(Object.assign({},FLK(f),V)))})};
c43=function(r,f){var I;r=r==null?void 0:(I=r.authStrategy)==null?void 0:I.sessionIndex;I=Wwd({sessionIndex:r});return Object.assign({},FLK(f),I)};var J4B,jXD,Hg4,ig8,Rxq,vRs,UHg,sXs,P2,OgC,oR8,y4C,QX3;J4B=0;jXD=/tone[1-5]/;Hg4=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");ig8="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
Rxq=Number.MAX_SAFE_INTEGER;vRs=RegExp("\ufe0f","g");_.$n=function(r){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;r&&_.Kfg(this,r)};
_.Kfg=function(r,f){try{_.lh(f,{context:r,onSuccess:function(C,Y){Array.isArray(Y)?r.load(Y):(C=new _.nf("Emoji manager JSON response was not an array!",{response:Y}),_.Fo(C))},
onError:function(C){C=new _.nf("Failed to retrieve emoji manager initial JSON data!",{url:f,statusCode:_.DY(C).toString()});_.t7(C)}})}catch(C){var I=new _.nf("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:f});
_.t7(I)}};
_.$n.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.$n.prototype.load=function(r,f){if(f)if(r.length)r=r.concat(f.emojis);else{this.emojis=f.emojis;this.emojiMap=f.emojiMap;this.emojiShortcutMap=f.emojiShortcutMap;this.emojiShortcutCharMap=y4C(f);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=f.emojiRegex;return}this.emojis=[].concat(_.Na(new Set(this.emojis.concat(r))));this.hasInitializedShortcutCharMap=!1;r=Array(this.emojis.length);for(f=0;f<this.emojis.length;f++){var I=this.emojis[f];if(I.emojiId){this.emojiMap[I.emojiId]=I;this.emojiMap[I.emojiId].index=
f;for(var C=0;I.shortcuts&&C<I.shortcuts.length;C++)this.emojiShortcutMap[I.shortcuts[C].toLocaleLowerCase()]=I;r[f]=I.isCustomEmoji&&I.shortcuts?I.shortcuts[0]:I.emojiId}}r.sort(function(Y,V){return V.length-Y.length});
if(r.length)try{this.emojiRegex=new RegExp(r.join("|").replace("*","\\*"),"gi")}catch(Y){this.emojiRegex=/$./}else this.emojiRegex=/$./};
UHg=function(r,f){f=_.E(f);for(var I=f.next();!I.done;I=f.next()){var C=I.value;if(C.emojiId&&r.emojiMap[C.emojiId]){I=Object.assign({},r.emojiMap[C.emojiId],C);r.emojiMap[C.emojiId]=I;var Y=void 0;I.index&&((Y=r.emojis[I.index])==null?void 0:Y.emojiId)===C.emojiId&&(r.emojis[I.index]=I);C=void 0;if((C=I.shortcuts)==null?0:C.length)for(r.hasInitializedShortcutCharMap=!1,C=_.E(I.shortcuts),Y=C.next();!Y.done;Y=C.next())r.emojiShortcutMap[Y.value.toLocaleLowerCase()]=I}}};
sXs=function(r){var f,I;_.x(function(C){if(C.nextAddress==1)return _.b(C,_.gj.getInstance(),2);if(C.nextAddress!=3)return(f=C.yieldResult)?_.b(C,f.get("ytlc-emoji-pref"),3):C.return();(I=C.yieldResult)&&UHg(r,Object.keys(I).map(function(Y){return{emojiId:Y,stickyPrefId:I[Y]}}).filter(function(Y){return!!Y.emojiId&&!!Y.stickyPrefId}));
_.wO(C)})};
_.FG=function(r,f,I){return(r=r.emojiMap[f])&&(!r.isLocked||I!==void 0&&I)?r:void 0};
P2=function(r,f,I){I=_.FG(r,f,I===void 0?!1:I);var C=f.match("\u200d");I&&r.skinTone!==0&&(r=(C==null?void 0:C.length)===1?_.FG(r,f.replace("\u200d",Hg4[r.skinTone]+"\u200d")):_.FG(r,f+Hg4[r.skinTone]))&&(I=r);return I};
OgC=function(r,f){var I=r.emojiMap[f];return(I==null?0:I.stickyPrefId)?r.emojiMap[I.stickyPrefId]:P2(r,f)};
_.b1=function(r,f){r=r.emojiShortcutMap[f.toLocaleLowerCase()];return!r||r.isLocked?null:r};
oR8=function(r,f,I){return y4C(r,I===void 0?!1:I)[f]||{}};
y4C=function(r,f){f=f===void 0?!1:f;if(!r.hasInitializedShortcutCharMap){r.hasInitializedShortcutCharMap=!0;for(var I=0;I<r.emojis.length;I++){var C=r.emojis[I];if(!(C.isLocked||f&&C.isCustomEmoji&&C.emojiId&&!r.pickerCustomEmojiIds.includes(C.emojiId)))for(var Y=0;C.shortcuts&&Y<C.shortcuts.length;Y++){var V=C.shortcuts[Y];V.startsWith(":_")&&C.isCustomEmoji&&(r.emojiShortcutCharMap[":_"]==null&&(r.emojiShortcutCharMap[":_"]=Object.create(null)),r.emojiShortcutCharMap[":_"][V]=C);if(!(V.length<3||
!C.isCustomEmoji&&jXD.test(V))){var S=V.substr(0,3).toLocaleLowerCase();r.emojiShortcutCharMap[S]==null&&(r.emojiShortcutCharMap[S]=Object.create(null));r.emojiShortcutCharMap[S][V]=C}}}}return r.emojiShortcutCharMap};
_.$n.prototype.createEmoji=function(r,f){f=f===void 0?!0:f;var I=document.createElement("img");r.isCustomEmoji||I.classList.add("small-emoji");I.classList.add("emoji");I.classList.add("yt-formatted-string");I.src=r.image?_.yH(r.image.thumbnails,this.emojiSize)||"":"";var C=void 0;r.image&&r.image.accessibility&&r.image.accessibility.accessibilityData&&(C=r.image.accessibility.accessibilityData.label);I.alt=C?C:(r.isCustomEmoji&&r.shortcuts?r.shortcuts[0]:r.emojiId)||"";r.isCustomEmoji&&(I.dataset.emojiId=
r.emojiId);_.Yp&&(I.setAttribute("contenteditable","false"),I.setAttribute("unselectable","on"));f&&(r.shortcuts&&r.shortcuts.length&&I.setAttribute("shared-tooltip-text",r.shortcuts[0]),I.id="emoji-"+J4B++);return I};
_.$n.prototype.createDocumentFragment=function(r,f,I,C){f=f===void 0?!1:f;I=I===void 0?!0:I;C=C===void 0?!1:C;r=r.replace(vRs,"");for(var Y=document.createDocumentFragment(),V=0,S,h=0;(S=this.emojiRegex.exec(r))!=null;){var w=_.FG(this,S[0])||_.b1(this,S[0]);!w||w.isCustomEmoji&&!f||(w=this.createEmoji(w,I),V!==S.index&&Y.appendChild(document.createTextNode(r.substring(V,S.index))),Y.appendChild(w),V=S.index+S[0].length,h++)}if(!C||h)return Y.appendChild(document.createTextNode(r.substr(V))),Y};
QX3=function(r,f,I){var C,Y,V,S,h,w,n,d,z;return _.x(function(g){if(g.nextAddress==1){if(!f.emojiId||!r.emojiMap[f.emojiId])return g.return();C=Object.assign({},r.emojiMap[f.emojiId],{stickyPrefId:I});r.emojiMap[f.emojiId]=C;f.index&&((Y=r.emojis[f.index])==null?void 0:Y.emojiId)===f.emojiId&&(r.emojis[f.index]=C);if((V=f.shortcuts)==null?0:V.length)for(r.hasInitializedShortcutCharMap=!1,S=_.E(f.shortcuts),h=S.next();!h.done;h=S.next())w=h.value,r.emojiShortcutMap[w.toLocaleLowerCase()]=C;return _.b(g,
_.gj.getInstance(),2)}if(g.nextAddress!=4)return(n=g.yieldResult)?_.b(g,n.get("ytlc-emoji-pref"),4):g.jumpTo(0);z=(d=g.yieldResult)!=null?d:{};z[f.emojiId]=I;return _.b(g,n.set("ytlc-emoji-pref",z,Rxq),0)})};
_.ti=new _.$n;var G_B;_.TJ={};
G_B={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.N("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:_.N("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 JQ(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 r=_.e(this.hostElement||this).querySelector("#inline-action-button-container");r&&r.setAttribute("aria-hidden","true");this.menuButton=_.e(this.hostElement).querySelector("#menu-button")},
attached:function(){var r=this.menuButton;r&&(r.addEventListener("focusin",_.GF(this,this.onMenuButtonFocus_)),r.addEventListener("focusout",_.GF(this,this.onMenuButtonBlur_)))},
detached:function(){var r=this.menuButton;r&&(r.removeEventListener("focusin",_.GF(this,this.onMenuButtonFocus_)),r.removeEventListener("focusout",_.GF(this,this.onMenuButtonBlur_)))},
identity:_.sP,truthy:function(r){return!!r},
computeTimestampString:function(r){return r?r.timestampText?this.getSimpleString(r.timestampText):this.TIME_FORMATTER.format(new Date(r.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(r){return _.N("live_chat_whole_message_clickable")&&r},
computeMenuVisible_:function(r,f){return r||f},
computeHasInlineActionButtons:function(r){if(!r)return!1;var f,I;return!((f=r.inlineActionButtons)==null||!f.length)||!((I=r.additionalInlineActionButtons)==null||!I.length)},
createDocumentFragmentFromString:function(r){var f=_.ti.createDocumentFragment.bind(_.ti),I;if((I=this.participantsManager)==null||!I.viewerRegex)return f(r);I=document.createDocumentFragment();for(var C=0,Y;(Y=this.participantsManager.viewerRegex.exec(r))!=null;){if(Y.index>0){var V=":"+Y[0]+":";if((_.FG(_.ti,V)||_.b1(_.ti,V))&&r.indexOf(V)===Y.index-1)continue}I.appendChild(f(r.substring(C,Y.index)));C=document.createElement("span");C.appendChild(f(Y[0]));C.classList.add("mention");I.appendChild(C);
C=Y.index+Y[0].length}I.appendChild(f(r.substring(C)));return I},
createDocumentFragment:function(r){var f=document.createDocumentFragment();if(r.simpleText)return f.appendChild(this.createDocumentFragmentFromString(r.simpleText)),f;if(!r.runs)return f;for(var I=0;I<r.runs.length;I++){var C=r.runs[I];if(C.emoji)f.appendChild(_.ti.createEmoji(C.emoji));else if(C.text)if(C.navigationEndpoint){var Y=document.createElement("a");Y.classList.add("yt-simple-endpoint");q6U(Y,C.navigationEndpoint);_.e(Y).appendChild(this.createDocumentFragmentFromString(C.text));f.appendChild(Y)}else f.appendChild(this.createDocumentFragmentFromString(C.text))}return f},
hasModerationOverlayVisible:function(){var r;return((r=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:r.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(r){r.composedPath().some(function(f){return(f=f instanceof Element?f:null)?f.tagName&&(f.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||f.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.N("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(r)},
colorFromDecimal:function(r){return wAc(r)},
markAsDeleted:function(r,f){this.set("data.deletedStateMessage",r);this.set("data.showOriginalContentMessage",f)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(r){if(this.data.contextMenuEndpoint){var f=_.a().resolve(_.bA),I=this.data.contextMenuEndpoint,C;(C=_.Wl.instance)&&_.LQ(C,I)?(f=A4V(f,I),C=_.cP(C,{},f)):C=_.Zgg(f,I);C.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);r&&r.stopPropagation()}},
handleGetContextMenuResponse_:function(r){var f=_.Wl.instance;f&&_.LQ(f,{liveChatEndpoint:{}})||(r=r.response);r.liveChatItemContextMenuSupportedRenderers&&r.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(r.liveChatItemContextMenuSupportedRenderers.menuRenderer);r.actions&&_.Bj(this.hostElement,"yt-live-chat-actions",[r.actions])},
handleGetContextMenuError:function(r){if(r instanceof Error||r instanceof Object||r instanceof String)var f=r;_.Fo(new _.nf("Error encountered calling GetLiveChatItemContextMenu",f))},
showContextMenu_:function(r){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:r}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.kA(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.kA(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.TJ.YtLiveChatItemBehavior=[G_B,_.tK.YtComponentBehavior,_.ug.YtOpenPopupBehavior];_.c2=function(){};var k__;var Bks;var qbD;var uxD;var W2=function(){var r=_.y.apply(this,arguments)||this;r.active=!1;r.identity=_.sP;return r};
_.t(W2,_.y);W2.prototype.dataChanged=function(){this.active=!1};
W2.prototype.onClick=function(){_.kA(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
W2.prototype.dataChanged=W2.prototype.dataChanged;_.A([_.K(),_.B("design:type",Object)],W2.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],W2.prototype,"active",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],W2.prototype,"dataChanged",null);W2=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],W2);
_.Q(W2,"yt-live-chat-text-input-field-suggestion",function(){if(uxD===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;qbD===void 0&&(qbD=document.createElement("template"));var C=qbD;I.call(f,C.content.cloneNode(!0),r.content.firstChild);uxD=r}r=uxD;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});_.LT=function(r,f,I){return CustomEvent.call(this,r,{detail:{value:f,path:I}})||this};
_.t(_.LT,CustomEvent);_.mu=function(){var r=_.y.apply(this,arguments)||this;r.viewerName=null;r.actionMap={"yt-live-chat-actions":"onChatMessage_"};r.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];r.PARTICIPANT_TIME_USEC_=3E8;return r};
_.t(_.mu,_.y);_.l=_.mu.prototype;_.l.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.l.addParticipant=function(r){var f=_.NRd(this.participants,r,function(C,Y){C=C[Object.keys(C)[0]];Y=Y[Object.keys(Y)[0]];C=String(_.Rr(C.authorName)).toLowerCase();Y=String(_.Rr(Y.authorName)).toLowerCase();return C<Y?-1:C==Y?0:1}.bind(this));
if(f>=0){var I=this.participants[f];I[Object.keys(I)[0]].timestampUsec&&this.splice("participants",f,1,r)}else this.splice("participants",-f-1,0,r);r=r[Object.keys(r)[0]];f=_.Rr(r.authorName).toLocaleLowerCase();I=f.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(I)||(this.allParticipantsCharMap_[I]={});this.allParticipantsCharMap_[I][f]=r};
_.l.getAuthorsFromPrefix=function(r){return this.allParticipantsCharMap_.hasOwnProperty(r)?this.allParticipantsCharMap_[r]:null};
_.l.computeViewerRegex_=function(r){if(!r)return null;r=r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return _.N("enable_web_yt_handles")||_.N("enable_live_chat_yt_handles")?new RegExp("([#]"+r.replace(/ /g,"\\s*")+"|^"+r.replace(/ /g,"\\s*")+"$|^"+r.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+r.replace(/ /g,"\\s*")+"$|(?<=\\s)"+r.replace(/ /g,"\\s*")+"(?=\\s))","ig"):new RegExp("([@#]"+r.replace(/ /g,"\\s*")+"|^"+r.replace(/ /g,"\\s*")+"$|^"+r.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+r.replace(/ /g,"\\s*")+
"$|(?<=\\s)"+r.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.l.checkForStaleParticipants_=function(){var r=this;this.trimOldParticipants_();this.asyncHandle_&&vhB(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.Fi(function(){r.checkForStaleParticipants_()},3E4))};
_.l.onChatMessage_=function(r){var f=this,I=Date.now()*1E3;r.forEach(function(C){if(C=_.F(C,TP3)){C=C.item;var Y=Object.keys(C)[0];f.SUPPORTED_ITEM_TYPES_.indexOf(Y)!=-1&&C[Y].timestampUsec>=I-f.PARTICIPANT_TIME_USEC_&&f.addParticipant(C)}},this);
this.checkForStaleParticipants_()};
_.l.trimOldParticipants_=function(){for(var r=Date.now()*1E3,f=this.participants.length-1;f>=0;f--){var I=this.participants[f];I=I[Object.keys(I)[0]];I.timestampUsec&&I.timestampUsec<r-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",f,1)}};
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],_.mu.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],_.mu.prototype,"viewerName",void 0);_.A([_.K({computed:"computeViewerRegex_(viewerName)"}),_.B("design:type",Object)],_.mu.prototype,"viewerRegex",void 0);_.A([_.K({value:function(){return[]},
notify:!0}),_.B("design:type",Array)],_.mu.prototype,"participants",void 0);_.mu=_.A([_.zX({is:"yt-live-chat-participants-manager",noInjection:!0})],_.mu);var DH8=/.*([:@#].*?)$/,ep=/\u00a0/g,rbT=String.fromCharCode(160),fqs={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"},Ji=function(){var r=_.y.apply(this,arguments)||this;r.disabled=!1;r.liveChatRichMessageInput=null;r.messageInput=null;r.isValidWithNoInputText=!1;r.suggestions=[];r.emojiManager=_.ti;r.inputMethodEditorActive=
!1;r.suggestionIndex=-1;r.JSC$11862_lastSuggestionRange=null;return r};
_.t(Ji,_.y);_.l=Ji.prototype;_.l.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.l.attached=function(){_.lf&&(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 r=!1,f={},I;for(I in fqs)this.data&&this.data.hasOwnProperty(I)&&(f[fqs[I]]=this.colorFromDecimal(this.data[I]),r=!0);r&&_.Zh(this.hostElement,f)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.l.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.l.colorFromDecimal=function(r){r=Math.floor(Number(r));return"rgba("+[r>>16&255,r>>8&255,r&255,(r>>24&255)/255].join()+")"};
_.l.preventDrag=function(r){r.dataTransfer&&(r.dataTransfer.dropEffect="none");r.preventDefault()};
_.l.preventResize=function(r){r.returnValue=!1};
_.l.onInputChange=function(){var r=this.characterCount,f=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&f&&f.remove();if(!f&&this.characterCount>this.maxCharacterLimit){var I=window.getSelection();if(I){var C=I.getRangeAt(0);I.removeAllRanges();I.addRange(C)}}if(I=this.getCurrentRange())C=this.calculateTextBeforeRange(I),this.completeEmojisInRange(I,C,!0)||this.updateSuggestions(I,C);C=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(C);
_.kA(this.hostElement,"yt-live-chat-message-input-change",C);f&&this.characterCount===0&&f.remove();I&&I.commonAncestorContainer.parentElement.id==="input"&&I.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>r):I&&!I.collapsed&&I.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(r=this.input.childNodes.length-1;r>=0;r--)this.input.childNodes[r].nodeName==="BR"&&this.input.childNodes[r].remove()};
_.l.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.l.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var r=this.getCurrentRange();r&&r.commonAncestorContainer.parentElement.id==="input"&&r.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.l.mergeOverflowText=function(r){if(r){var f=document.createRange();f.selectNodeContents(r);f=f.extractContents();this.input.insertBefore(f,r)}};
_.l.checkRangeAtEndOfInput=function(){var r=this.getCurrentRange();if(r){var f=_.e(this.hostElement).querySelector("#overflow-text"),I=document.createRange();f&&f.previousSibling?f.previousSibling instanceof HTMLImageElement?I.selectNode(f.previousSibling):I.selectNodeContents(f.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?I.selectNode(this.input.lastChild):I.selectNodeContents(this.input.lastChild));I.collapse(!1);return I.isPointInRange(r.startContainer,
r.startOffset)}return!1};
_.l.handleOverflowText=function(r){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var f=_.e(this.hostElement).querySelector("#overflow-text"),I=this.getCurrentRange();this.input.normalize();r=this.checkRangeAtEndOfInput()&&r;this.mergeOverflowText(f);for(var C,Y=0,V=0,S,h=this.input.childNodes,w=0;w<h.length;w++){var n=h[w];n instanceof Text?(V+=n.textContent.length,V>this.maxCharacterLimit&&(C=n,Y=this.maxCharacterLimit+n.textContent.length-V)):n instanceof HTMLImageElement&&
(C=void 0,V=n.dataset.emojiId&&((C=this.data)==null?0:C.emojiCharacterCount)?V+this.data.emojiCharacterCount:V+n.alt.length,C=this.input,Y=w);if(V>this.maxCharacterLimit&&C){S=document.createRange();S.collapse(!1);f?(V=this.input.lastChild.previousSibling,V instanceof Text?S.setEnd(this.input.lastChild.previousSibling,V.textContent.length):V instanceof HTMLImageElement&&S.setEnd(this.input,this.input.childNodes.length-1)):S.selectNodeContents(this.input);S.setStart(C,Y);break}}S&&(C=!1,I&&(r=S.isPointInRange(I.startContainer,
I.startOffset-1)),f||(f=document.createElement("span"),f.id="overflow-text",f.textContent="",f.setAttribute("contenteditable","true"),_.e(_.e(this.hostElement).querySelector("#input")).appendChild(f),C=!0),f&&(I=S.extractContents(),f.insertBefore(I,f.firstChild),r&&f.firstChild&&(I=document.createRange(),C?I.setStartAfter(f.lastChild):I.setStartAfter(f.firstChild),I.collapse(!0),f=window.getSelection(),f.removeAllRanges(),f.addRange(I))))}};
_.l.checkForDuplicateSpans=function(){for(var r=0;r<this.input.childNodes.length;r++){var f=this.input.childNodes[r];if(f.nodeName==="SPAN"){var I=document.createRange();I.selectNodeContents(f);I=I.extractContents();this.input.insertBefore(I,f);f.remove()}}this.handleOverflowText(!0)};
_.l.getCurrentRange=function(){var r=window.getSelection();return r&&r.rangeCount?r.getRangeAt(0).cloneRange():null};
_.l.getInputRange=function(){var r=this.getCurrentRange();if(r){for(var f=r.commonAncestorContainer,I=!1,C=_.e(this.hostElement).querySelector("#input");f;){if(f===C){I=!0;break}f=f.parentNode}I||(r=null)}r||(r=this.getRangeAtEnd());return r};
_.l.getRangeAtEnd=function(){var r=document.createRange(),f=_.e(this.hostElement).querySelector("#input").lastChild;!f||f.nodeName!=="#text"&&f.nodeName!=="SPAN"?(r.selectNodeContents(_.e(this.hostElement).querySelector("#input")),r.collapse(!1)):f.nodeName==="#text"?r.setStart(f,f.textContent.length):r.setStart(f,f.childNodes.length);return r};
_.l.getSuggestions=function(r){var f=[],I=r.substring(0,3),C=oR8(_.ti,I,!0);if(C)for(var Y in C)if(Y.toLocaleLowerCase().indexOf(r)===0){var V=C[Y];if(V&&V.emojiId){if(V=OgC(_.ti,V.emojiId)){var S=void 0,h=void 0,w=void 0,n=void 0,d=((S=V.image)==null?0:(h=S.accessibility)==null?0:(w=h.accessibilityData)==null?0:w.label)||V.isCustomEmoji?(n=V.shortcuts)==null?void 0:n[0]:V.emojiId;f.push({suggestion:{emoji:!0,image:V.image,alt:d,text:Y,textToInsertWhenSelected:V.isCustomEmoji?Y:d}})}if(f.length>=
64)break}}if(!this.participantsManager)return null;C=_.N("enable_web_yt_handles")||_.N("enable_live_chat_yt_handles");if(I.indexOf("@")===0||I.indexOf("#")===0)if(Y=I.charAt(0),r=r.substring(1),I=C&&I.indexOf("@")===0?I.substring(0,2):I.substring(1),I=this.participantsManager.getAuthorsFromPrefix(I))for(var z in I)if(z.indexOf(r)===0||C&&z.indexOf(Y+r)===0)if(V=I[z],S=_.Rr(V.authorName),f.push({suggestion:{author:!0,authorType:Y,image:V.authorPhoto,alt:S,text:S}}),f.length>=64)break;return f?f.sort(function(g,
X){return X.suggestion.text<g.suggestion.text?-1:X.suggestion.text===g.suggestion.text?0:1}):null};
_.l.insertSuggestion=function(r){var f=_.N("enable_web_yt_handles")||_.N("enable_live_chat_yt_handles")?r.text+rbT:r.authorType+r.text+rbT;r.emoji?this.insertTextAtRange(this.JSC$11862_lastSuggestionRange,r.textToInsertWhenSelected||""):r.author&&this.insertTextAtRange(this.JSC$11862_lastSuggestionRange,f)};
_.l.updateSuggestionsAtCaret=function(){var r=this.getCurrentRange();r&&this.updateSuggestions(r,this.calculateTextBeforeRange(r))};
_.l.offsetStartOfRangeBy=function(r,f){for(;f>0;)if(r.startOffset-f>=0){r.setStart(r.startContainer,r.startOffset-f);break}else{f=r.startContainer instanceof HTMLImageElement?f-r.startContainer.alt.length:f-r.startOffset;var I=r.startContainer.previousSibling;if(!I){r.setStart(r.startContainer,0);break}if(_.N("live_chat_require_space_for_autocomplete_emoji")){var C=void 0,Y=void 0;r.setStart(I,((C=I)==null?void 0:(Y=C.textContent)==null?void 0:Y.length)||0)}else r.setStart(I,I.childNodes.length||
0)}};
_.l.updateSuggestions=function(r,f){var I=this;this.JSC$11862_lastSuggestionRange&&(this.JSC$11862_lastSuggestionRange.detach(),this.JSC$11862_lastSuggestionRange=null);if((f=DH8.exec(f))&&f.length&&(f=f[f.length-1].toLocaleLowerCase(),f.length>2&&(this.offsetStartOfRangeBy(r,f.length),this.JSC$11862_lastSuggestionRange=r,(r=this.getSuggestions(f))&&r.length))){this.suggestions=r;_.UC(this,function(){_.e(I.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(r.length-1);return}this.dropdown.opened=!1};
_.l.completeEmojisInRange=function(r,f,I){var C=f.replace(/[\s\xa0]+$/,"");f=f.length-C.length;C=C.split(" ");C=C[C.length-1].trim().toLocaleLowerCase();var Y=C.lastIndexOf(":");if(I&&!f&&Y!==C.length-1)return!1;Y!==-1&&(I=C.lastIndexOf(":",Y-1),I!==-1&&(C=C.substring(I)));if((I=_.b1(_.ti,C))&&I.emojiId){I=OgC(_.ti,I.emojiId)||null;this.offsetStartOfRangeBy(r,C.length+f);var V,S,h,w;C=(((V=I)==null?0:V.isCustomEmoji)?(S=I)==null?void 0:(h=S.shortcuts)==null?void 0:h[0]:(w=I)==null?void 0:w.emojiId)||
"";f&&(C+=rbT);this.insertTextAtRange(r,C);this.dropdown.opened=!1;return!0}return!1};
_.l.onSuggestion=function(r){this.insertSuggestion(r.detail);this.dropdown.opened=!1};
_.l.onKeyPress=function(r){r.keyCode===13&&(r.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.kA(this.hostElement,"yt-live-chat-send-message"))};
_.l.completeEmojis=function(){var r=document.createRange(),f=_.e(this.hostElement).querySelector("#input").lastChild;f?r.setStart(f,f.childNodes.length):(r.selectNodeContents(_.e(this.hostElement).querySelector("#input")),r.collapse(!1));this.completeEmojisInRange(r,this.calculateTextBeforeRange(r),_.N("live_chat_require_space_for_autocomplete_emoji"))};
_.l.maybePreventTextFormatting=function(r){!_.xp||!r.ctrlKey&&!r.metaKey||r.keyCode!==66&&r.keyCode!==73||(r.stopImmediatePropagation(),r.preventDefault())};
_.l.onKeyDown=function(r){this.maybePreventTextFormatting(r);if(this.dropdown.opened)switch(r.keyCode){case 27:this.dropdown.opened=!1;r.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;r.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);r.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),r.preventDefault()}};
_.l.onKeyUp=function(r){switch(r.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.Yp)this.onInputChange()};
_.l.changeSuggestionIndex=function(r){if(this.dropdown.opened){var f=_.e(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<f.children.length&&(f.children[this.suggestionIndex].active=!1);var I=this.suggestions.length;this.suggestionIndex=(r+I)%I;r=f.children[this.suggestionIndex];r.active=!0;f.scrollTop=r.offsetTop}};
_.l.onInputPaste=function(r){r.preventDefault();(r=r.clipboardData)&&r.types&&(r=r.getData("text/plain")||"",r=r.replace(/\n/g,""),this.insertText(r));(r=this.getCurrentRange())&&r.commonAncestorContainer.parentElement.id==="input"&&r.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.l.onFocus=function(){this._setFocused(!0)};
_.l.onBlur=function(){this._setFocused(!1)};
_.l.insertText=function(r){this.insertTextAtRange(this.getInputRange(),r)};
_.l.insertTextAtRange=function(r,f){if(r&&(r.collapsed||r.deleteContents(),f=_.ti.createDocumentFragment(f,!0,!1))){for(var I=_.E((f==null?void 0:f.childNodes)||[]),C=I.next();!C.done;C=I.next()){C=C.value;var Y=void 0,V=void 0,S=void 0,h=void 0,w=void 0;(S=(Y=window)==null?void 0:(V=Y.ShadyCSS)==null?void 0:V.ScopingShim)==null||(w=(h=S).scopeNode)==null||w.call(h,C,this.hostElement.localName)}I=f.lastChild;r.insertNode(f);this.focused||this.input.focus();if(this.focused){r=r.cloneRange();r.selectNodeContents(I);
r.collapse(!1);if(f=window.getSelection())f.removeAllRanges(),f.addRange(r);r.commonAncestorContainer.parentElement.id==="input"&&r.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}r=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(r);_.kA(this.hostElement,"yt-live-chat-message-input-change",r)}};
_.l.setLiveChatRichMessageInput=function(r){_.e(_.e(this.hostElement).querySelector("#input")).textContent="";if(r&&r.textSegments){for(var f=0;f<r.textSegments.length;f++){var I=r.textSegments[f];I.text?_.e(_.e(this.hostElement).querySelector("#input")).appendChild(_.ti.createDocumentFragment(I.text,!0,!1)):I.emojiId&&(I=_.FG(_.ti,I.emojiId))&&_.e(_.e(this.hostElement).querySelector("#input")).appendChild(_.ti.createEmoji(I,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.l.setText=function(r){this.setLiveChatRichMessageInput(r?{textSegments:[{text:r}]}:null)};
_.l.calculateTextBeforeRange=function(r){var f="",I=r.startContainer;if(I&&I instanceof Text){var C;f=((C=I.textContent)==null?void 0:C.substring(0,r.startOffset))||"";I=I.previousSibling}for(;I&&I instanceof Text;)f=I.textContent+f,I=I.previousSibling;return f.replace(ep," ")};
_.l.calculateLiveChatRichMessageInput=function(){for(var r=[],f="",I=_.e(_.e(this.hostElement).querySelector("#input")).childNodes,C=0;C<I.length;C++){var Y=I[C];Y instanceof Text?f+=Y.textContent:Y instanceof HTMLImageElement&&(Y.dataset.emojiId?(f&&(r.push({text:f.replace(ep," ")}),f=""),r.push({emojiId:Y.dataset.emojiId})):f+=Y.alt)}f&&r.push({text:f.replace(ep," ")});if(I=_.e(this.hostElement).querySelector("#overflow-text")){f="";I=I.childNodes;for(C=0;C<I.length;C++)Y=I[C],Y instanceof Text?
f+=Y.textContent:Y instanceof HTMLImageElement&&(Y.dataset.emojiId?(f&&(r.push({text:f.replace(ep," ")}),f=""),r.push({emojiId:Y.dataset.emojiId})):f+=Y.alt);f&&r.push({text:f.replace(ep," ")})}return{textSegments:r}};
_.l.computeCharacterCount=function(r){if(!r||!r.textSegments)return 0;for(var f=0,I=0;I<r.textSegments.length;I++){var C=r.textSegments[I];if(C.text)f+=C.text.length;else if(C.emojiId){var Y=void 0;if((Y=this.data)==null?0:Y.emojiCharacterCount)f+=this.data.emojiCharacterCount;else{var V=Y=void 0,S=void 0;f+=((V=_.FG(_.ti,(Y=C)==null?void 0:Y.emojiId))==null?void 0:(S=V.shortcuts)==null?void 0:S[0].length)||0}}}return f};
_.l.characterCountChanged=function(){_.kA(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.l.focusedChanged=function(){this.hostElement.dispatchEvent(new _.LT("focused-changed",this.focused))};
_.l.focus=function(){this.setFocus(!1)};
_.l.focusAtEnd=function(){this.setFocus(!0)};
_.l.setFocus=function(r){r=r?this.getRangeAtEnd():this.getInputRange();_.e(this.hostElement).querySelector("#input").focus();var f=window.getSelection();f&&(f.removeAllRanges(),f.addRange(r))};
_.l.insertEmoji=function(r){var f,I=((r==null?0:r.isCustomEmoji)?(f=r.shortcuts)==null?void 0:f[0]:r==null?void 0:r.emojiId)||"";this.insertText(I)};
_.l.computeText=function(r){if(!r||!r.textSegments)return"";for(var f="",I=0;I<r.textSegments.length;I++){var C=r.textSegments[I];if(C.text)f+=C.text;else if(C.emojiId){var Y=void 0,V=void 0,S=void 0;f+=((V=_.FG(_.ti,(Y=C)==null?void 0:Y.emojiId))==null?void 0:(S=V.shortcuts)==null?void 0:S[0])||""}}return f};
_.l.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.OC.Object.defineProperties(Ji.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.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}}});
Ji.prototype.focusedChanged=Ji.prototype.focusedChanged;Ji.prototype.characterCountChanged=Ji.prototype.characterCountChanged;Ji.prototype.onSuggestion=Ji.prototype.onSuggestion;Ji.prototype.onMessageSet=Ji.prototype.onMessageSet;Ji.prototype.dataChanged=Ji.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ji.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Ji.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],Ji.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Ji.prototype,"disabled",void 0);_.A([_.R("disabled"),_.B("design:type",Number),_.B("design:paramtypes",[])],Ji.prototype,"inputTabIndex",null);_.A([_.R("data.maxCharacterLimit"),_.K({readOnly:!0,notify:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],Ji.prototype,"maxCharacterLimit",null);
_.A([_.R("liveChatRichMessageInput"),_.K({readOnly:!0,notify:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],Ji.prototype,"characterCount",null);_.A([_.R("maxCharacterLimit, characterCount"),_.K({readOnly:!0,notify:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],Ji.prototype,"remainingCharacterCount",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ji.prototype,"isChatMessageInput",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ji.prototype,"inputExpanded",void 0);_.A([_.K({readOnly:!0,notify:!0}),_.B("design:type",Object)],Ji.prototype,"liveChatRichMessageInput",void 0);_.A([_.K(),_.B("design:type",Object)],Ji.prototype,"messageInput",void 0);_.A([_.K(),_.B("design:type",Boolean)],Ji.prototype,"ignoreColorMapping",void 0);_.A([_.R("characterCount"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ji.prototype,"hasText",null);
_.A([_.K(),_.B("design:type",Object)],Ji.prototype,"isValidWithNoInputText",void 0);_.A([_.R("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.K(),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ji.prototype,"isInputValid",null);_.A([_.K({readOnly:!0,value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Ji.prototype,"focused",void 0);_.A([_.K(),_.B("design:type",Array)],Ji.prototype,"suggestions",void 0);
_.A([_.K(),_.B("design:type",_.$n)],Ji.prototype,"emojiManager",void 0);_.A([_.K(),_.B("design:type",_.mu)],Ji.prototype,"participantsManager",void 0);_.A([_.K(),_.B("design:type",Boolean)],Ji.prototype,"noUnderline",void 0);_.A([_.K(),_.B("design:type",Object)],Ji.prototype,"inputMethodEditorActive",void 0);_.A([_.uA("#dropdown"),_.B("design:type",Object)],Ji.prototype,"dropdown",void 0);_.A([_.uA("#input"),_.B("design:type",HTMLElement)],Ji.prototype,"input",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ji.prototype,"dataChanged",null);_.A([_.Bt("messageInput"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ji.prototype,"onMessageSet",null);_.A([_.kO("yt-live-chat-select-suggestion"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ji.prototype,"onSuggestion",null);
_.A([_.Bt("characterCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ji.prototype,"characterCountChanged",null);_.A([_.Bt("focused"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ji.prototype,"focusedChanged",null);Ji=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],Ji);
_.Iqq=_.Q(Ji,"yt-live-chat-text-input-field-renderer",function(){if(Bks===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;k__===void 0&&(k__=document.createElement("template"));var C=k__;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Bks=r}r=Bks;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var jp=function(){var r=_.y.apply(this,arguments)||this;r.buttonOverrides={style:"overlay",type:"filled"};r.allowAnimations=!1;r.modern=_.N("web_button_rework_with_live");r.noPadding=!1;return r};
_.t(jp,_.y);_.l=jp.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 r=document.querySelector("yt-live-chat-app");r&&r.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.l.attached=function(){this.allowAnimations=!1};
_.l.dataChanged=function(){if(this.data){var r={"--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)};_.Zh(this.hostElement,r);this.allowAnimations=!0}};
_.l.messageChanged=function(){var r,f=(r=this.data)==null?void 0:r.message;r=_.e(_.e(this.hostElement).querySelector("#message"));r.textContent="";f&&r.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(f))};
_.l.computeShowOnlyHeader=function(r,f){return!r||r.pdgLikeButton||r.replyButton||r.buyFlowButton?!1:this.isEmpty(r,f)&&!r.footer};
_.l.computeShowFooterDivider=function(r,f,I){return r?!!r.footer&&!this.isEmpty(r,f)&&!I:!1};
_.l.computeIsUserEditable=function(r){return!!r.inputField};
_.l.computeHasHeartButton=function(r){return(r==null?void 0:r.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(r==null?void 0:r.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(r==null?void 0:r.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.l.computeNoveltyImage=function(r){if(r.headerOverlayImage&&r.headerOverlayImage.thumbnails.length){var f=r.headerOverlayImage.thumbnails[0],I,C;if((I=r.pdgPurchasedNoveltyLoggingDirectives)==null?0:(C=I.loggingDirectives)==null?0:C.trackingParams){var Y,V;kuU((Y=r.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(V=Y.loggingDirectives)==null?void 0:V.trackingParams)}return f.width||0}return 0};
_.l.computeAuthorPhotoSize=function(r){return(r==null?0:r.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.l.inputFocus=function(){var r=_.e(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");r&&r.focus()};
_.l.inputInsertEmoji=function(r){var f=_.e(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");f&&f.insertEmoji(r)};
_.l.inputMessage=function(){var r=_.e(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),f;return r&&((f=this.data)==null?0:f.inputField)?(r.completeEmojis(),_.t8(r.liveChatRichMessageInput)):null};
_.l.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.l.isEmpty=function(r,f){return r?r.empty||!(r.message||r.inputField||f):!0};
_.l.onLowerBuyButtonClick=function(){var r,f=_.F((r=this.data)==null?void 0:r.buyButton,_.Ll);f&&f.trackingParams&&!pAw(f.command)&&(r=_.VH(f.trackingParams))&&(f=_.t1())&&_.im(f,r)};
_.l.shouldSupportWholeItemClick=function(){return!0};
_.OC.Object.defineProperties(jp.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?0:r.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
jp.prototype.isDeletedChanged=jp.prototype.isDeletedChanged;jp.prototype.messageChanged=jp.prototype.messageChanged;jp.prototype.dataChanged=jp.prototype.dataChanged;_.A([_.J(vM3.YtPdgLiveChatItemBehavior),_.B("design:type",Object)],jp.prototype,"ytPdgLiveChatItemBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.FT),_.B("design:type",Object)],jp.prototype,"ytLiveChatReduxBehavior",void 0);
_.A([_.J(_.TJ.YtLiveChatItemBehavior),_.B("design:type",_.c2)],jp.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],jp.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],jp.prototype,"data",void 0);_.A([_.K({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:ZIu}),_.B("design:type",Object)],jp.prototype,"engagementState",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.B("design:type",Boolean)],jp.prototype,"isUserEditable",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.B("design:type",Boolean)],jp.prototype,"hasHeartButton",void 0);_.A([_.K({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.B("design:type",Boolean)],jp.prototype,"showOnlyHeader",void 0);
_.A([_.K({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.B("design:type",Boolean)],jp.prototype,"showFooterDivider",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Object)],jp.prototype,"allowAnimations",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],jp.prototype,"dashboardMoneyFeed",void 0);_.A([_.K({computed:"computeNoveltyImage(data)"}),_.B("design:type",Number)],jp.prototype,"noveltyWidth",void 0);
_.A([_.K({computed:"computeAuthorPhotoSize(data)"}),_.B("design:type",Number)],jp.prototype,"authorPhotoSize",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],jp.prototype,"modern",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],jp.prototype,"noPadding",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jp.prototype,"dataChanged",null);
_.A([_.Bt("data.message"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jp.prototype,"messageChanged",null);_.A([_.R("data","dashboardMoneyFeed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jp.prototype,"hideLowerBumper",null);_.A([_.Bt("isDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jp.prototype,"isDeletedChanged",null);
jp=_.A([_.U({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],jp);
_.Q(jp,"yt-live-chat-paid-message-renderer",function(){if(xHg===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;SbU===void 0&&(SbU=document.createElement("template"));var C=SbU;I.call(f,C.content.cloneNode(!0),r.content.firstChild);xHg=r}r=xHg;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var Cpg;var YuX;var H2=function(){var r=_.rm.apply(this,arguments)||this;r._noAccessors=!0;return r};
_.t(H2,_.rm);H2.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Lz("openPopupConfig")};
_.A([_.J(_.ug.YtOpenPopupBehavior),_.B("design:type",Object)],H2.prototype,"ytOpenPopupBehavior",void 0);H2=_.A([_.fx()],H2);_.RO=[_.ug.YtOpenPopupBehavior,H2.prototype];var lq8;var J8=[_.lA,dBX,_.TK,_.VB,_.vj,_.tX3,_.xO,_.ms4,_.LG,oFu];_.N("web_watch_get_updated_metadata_response_processing")&&J8.push(_.DhV);_.N("web_continuation_response_processing")&&J8.push(_.$Z);var Ajl=new _.Go("RESPONSE_RECEIVED_COMMANDS"),yTq=new _.Go("RESPONSE_RECEIVED_COMMANDS");var JTU="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),eKl=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],mlc=["GET_UNSEEN_NOTIFICATION_COUNT"];var v2=function(){var r=_.rm.apply(this,arguments)||this;r._noAccessors=!0;r.serviceEndpointHandlers=[];return r};
_.t(v2,_.rm);v2.prototype.created=function(){var r=this;this.endpointHandlerActionMap={"yt-service-request":function(f,I,C,Y){var V;return LLq(r.hostElement,f,I,C,Y,r.serviceEndpointHandlers,(V=r.onEntitiesUpdated)==null?void 0:V.bind(r))}}};
v2.prototype.attached=function(){_.R5(_.iz.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
v2.prototype.detached=function(){_.vR(_.iz.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
v2=_.A([_.fx()],v2);_.VYV=[v2.prototype];var E53,SuV=function(){return E53!==void 0?E53:E53=document.createElement("template")};
document.head.appendChild(SuV().content);var xq_;var hAT=document.head,wC_=hAT.appendChild,bI3;if(xq_===void 0){var pC4=document.createElement("template");_.c(pC4,"\x3c!--css-build:shady--\x3e");pC4.content.insertBefore(SuV().content.cloneNode(!0),pC4.content.firstChild);xq_=pC4}bI3=xq_;wC_.call(hAT,bI3.content);var n5q,dq8=function(){return n5q!==void 0?n5q:n5q=document.createElement("template")};
document.head.appendChild(dq8().content);var zAC;var MYg=document.head,g5X=MYg.appendChild,aqC;if(zAC===void 0){var XC3=document.createElement("template");_.c(XC3,"\x3c!--css-build:shady--\x3e");XC3.content.insertBefore(dq8().content.cloneNode(!0),XC3.content.firstChild);zAC=XC3}aqC=zAC;g5X.call(MYg,aqC.content);var Nwq;_.gW("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.gW("sharingRendererButtons","buttonRenderer","ytd-button-renderer");Nwq=_.N("web_button_rework")&&_.mO("BUTTON_REWORK")||_.N("web_button_rework_with_live");_.KT=function(){var r=_.y.apply(this,arguments)||this;r.isPressed=!1;r.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return r};
_.t(_.KT,_.y);_.l=_.KT.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 r=this,f,I,C=(f=this.ytButtonBehavior.data)==null?void 0:(I=f.hint)==null?void 0:I.hintRenderer;if(C&&C.hintId){f=_.qy(this.hostElement,"yt-get-opened-popups-action");f=(f&&f.length===1?f[0]:[]).length>0;var Y=null;C.hintId!=="sponsor-pre-purchase"||f?C.hintId.startsWith("sponsor-post-purchase")&&!f?Y=YJ4("membership-manage"):C.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!f&&(Y=YJ4("membership-freebie-join")):Y=YJ4("membership-join");Y&&_.F_.addLowPriorityJob(function(){for(var V=
_.E(Y),S=V.next();!S.done;S=V.next())r.ytComponentBehavior.resolveCommand(S.value)})}};
_.l.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.l.onYtNavigate=function(r){var f=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(r.detail.endpoint);f&&(r.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(f))};
_.l.onYtServiceRequestSent=function(r,f){this.handleServiceRequestActions(f);_.kA(this.hostElement,"yt-service-request-sent-button-renderer")};
_.l.onServiceRequestCompleted=function(r,f){this.handleServiceRequestActions(f);_.kA(this.hostElement,"yt-service-request-completed-button-renderer")};
_.l.updateButton=function(r){var f;if(r=(f=_.F(r,qoC))==null?void 0:f.updatedButton)this.ytButtonBehavior.data=_.F(r,_.Ll)};
_.l.handleUpdateButtonAction=function(r){var f=this.ytButtonBehavior.data;f.targetId&&r.updateButtonAction.targetId&&f.targetId===r.updateButtonAction.targetId&&this.updateButton(r)};
_.l.handleServiceRequestActions=function(r){if(r=r.actions)for(var f=0;f<r.length;f++)this.updateButton(r[f])};
_.OC.Object.defineProperties(_.KT,{template:{configurable:!0,enumerable:!0,get:function(){if(lq8===void 0){var r=document.createElement("template");_.c(r,"\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");r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);lq8=r}r=lq8;return r}}});
_.KT.prototype.onServiceRequestCompleted=_.KT.prototype.onServiceRequestCompleted;_.KT.prototype.onYtServiceRequestSent=_.KT.prototype.onYtServiceRequestSent;_.KT.prototype.onYtNavigate=_.KT.prototype.onYtNavigate;_.KT.prototype.onPressedStateChanged=_.KT.prototype.onPressedStateChanged;_.KT.prototype.onHintIdChanged=_.KT.prototype.onHintIdChanged;_.A([_.K(),_.B("design:type",Object)],_.KT.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],_.KT.prototype,"isPressed",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],_.KT.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.Le3.YtButtonBehavior),_.B("design:type",Object)],_.KT.prototype,"ytButtonBehavior",void 0);_.A([_.J(_.RO),_.B("design:type",Object)],_.KT.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],_.KT.prototype,"ytComponentBehavior",void 0);
_.A([_.J(CT.YtRenderButtonBehavior),_.B("design:type",Object)],_.KT.prototype,"ytRenderButtonBehavior",void 0);_.A([_.Bt("data.hint.hintRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],_.KT.prototype,"onHintIdChanged",null);_.A([_.Bt("isPressed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],_.KT.prototype,"onPressedStateChanged",null);
_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],_.KT.prototype,"onYtNavigate",null);_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],_.KT.prototype,"onYtServiceRequestSent",null);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],_.KT.prototype,"onServiceRequestCompleted",null);_.KT=_.A([_.U({is:"ytd-button-renderer",disableElementRegistration:Nwq})],_.KT);var yr=function(){var r=_.y.apply(this,arguments)||this;r.modern=_.N("web_button_rework_with_live");r.buttonOverrides={style:"overlay",type:"filled"};return r};
_.t(yr,_.y);_.l=yr.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 r=document.querySelector("yt-live-chat-app");r&&r.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.l.dataChanged=function(){if(this.data&&this.data.sticker){var r=_.yH(this.data.sticker.thumbnails,this.stickerWidth);r||_.Z0P(r).thenCatch(function(){_.t7(new _.nf("Failed to load Super Sticker with url",r))})}};
_.l.computeAuthorPhotoSize=function(r){return(r==null?0:r.isV2Style)?32:40};
_.l.computeIsV2Style=function(r){return(r==null?0:r.isV2Style)?!0:!1};
_.l.onStickerLoaded=function(r){var f,I,C;(f=_.jl(r))==null||(I=f.parentNode)==null||(C=I.classList)==null||C.add("sticker-loaded")};
_.l.computeNoveltyImageWidth=function(r){var f,I;if(r==null?0:(f=r.headerOverlayImage)==null?0:(I=f.thumbnails)==null?0:I.length){f=r.headerOverlayImage.thumbnails[0];var C,Y;if((C=r.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Y=C.loggingDirectives)==null?0:Y.trackingParams){var V,S;kuU((V=r.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(S=V.loggingDirectives)==null?void 0:S.trackingParams)}return f.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 r=this.data;r&&(r={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(r.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(r.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(r.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(r.authorNameTextColor)},
_.Zh(this.hostElement,r))};
_.l.onBuyButtonClick=function(){var r,f=_.F((r=this.data)==null?void 0:r.buyButton,_.Ll);f&&!pAw(f.command)&&this.ytRendererBehavior.logExplicitClick(f)};
_.l.shouldSupportWholeItemClick=function(){return!0};
_.OC.Object.defineProperties(yr.prototype,{stickerWidth:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
stickerHeight:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
hasHeartButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.creatorHeartButton}},
hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?0:r.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
yr.prototype.updateStickerStyles=yr.prototype.updateStickerStyles;yr.prototype.isDeletedChanged=yr.prototype.isDeletedChanged;yr.prototype.onStickerLoaded=yr.prototype.onStickerLoaded;yr.prototype.dataChanged=yr.prototype.dataChanged;_.A([_.J(vM3.YtPdgLiveChatItemBehavior),_.B("design:type",Object)],yr.prototype,"ytPdgLiveChatItemBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],yr.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.TJ.YtLiveChatItemBehavior),_.B("design:type",_.c2)],yr.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],yr.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],yr.prototype,"data",void 0);
_.A([_.K({computed:"computeAuthorPhotoSize(data)"}),_.B("design:type",Number)],yr.prototype,"authorPhotoSize",void 0);_.A([_.K(),_.B("design:type",Boolean)],yr.prototype,"isDeleted",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],yr.prototype,"dashboardMoneyFeed",void 0);_.A([_.K({computed:"computeNoveltyImageWidth(data)"}),_.B("design:type",Number)],yr.prototype,"noveltyWidth",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],yr.prototype,"modern",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.B("design:type",Boolean)],yr.prototype,"isV2Style",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yr.prototype,"dataChanged",null);_.A([_.kO("yt-img-shadow-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],yr.prototype,"onStickerLoaded",null);
_.A([_.R("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],yr.prototype,"stickerWidth",null);_.A([_.R("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],yr.prototype,"stickerHeight",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yr.prototype,"hasHeartButton",null);_.A([_.R("data","dashboardMoneyFeed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yr.prototype,"hideLowerBumper",null);
_.A([_.Bt("isDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yr.prototype,"isDeletedChanged",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yr.prototype,"updateStickerStyles",null);yr=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],yr);
_.Q(yr,"yt-live-chat-paid-sticker-renderer",function(){if(YuX===void 0){var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;Cpg===void 0&&(Cpg=document.createElement("template"));var C=Cpg;I.call(f,C.content.cloneNode(!0),r.content.firstChild);YuX=r}r=YuX;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var $q3;var FhT;var PpU,tY_=function(){return PpU!==void 0?PpU:PpU=document.createElement("template")};
document.head.appendChild(tY_().content);var TwT,cb4=function(){return TwT!==void 0?TwT:TwT=document.createElement("template")};
document.head.appendChild(cb4().content);var Wh4;var Lh8,mqC=function(){return Lh8!==void 0?Lh8:Lh8=document.createElement("template")};
document.head.appendChild(mqC().content);var eA4;var JbV=document.head,j3B=JbV.appendChild,HI3;if(eA4===void 0){var iI8=document.createElement("template");_.c(iI8,"\x3c!--css-build:shady--\x3e");iI8.content.insertBefore(mqC().content.cloneNode(!0),iI8.content.firstChild);eA4=iI8}HI3=eA4;j3B.call(JbV,HI3.content);var RA3=document.head,v5T=RA3.appendChild,KhC;if(Wh4===void 0){var Uf=document.createElement("template");_.c(Uf,"\x3c!--css-build:shady--\x3e");Uf.content.insertBefore(cb4().content.cloneNode(!0),Uf.content.firstChild);Uf.content.insertBefore(tY_().content.cloneNode(!0),Uf.content.firstChild);Wh4=Uf}KhC=Wh4;v5T.call(RA3,KhC.content);var sf=function(){var r=_.rm.apply(this,arguments)||this;r.focusedIndex=0;r.verticalOffset=0;r.verticalAlign="top";r.dynamicAlign=!0;return r};
_.t(sf,_.rm);sf.prototype.emojiUrl=function(r){r=_.FG(this.emojiManager,r);if(!r)return"";var f;r=(f=r.image)==null?void 0:f.thumbnails;return _.yH(r,24)||""};
var ybs=function(r){var f;r.emojiVariants&&(f=r.data)!=null&&f.target&&_.UC(r,function(){r.set("verticalOffset",-1*r.hostElement.clientHeight);var I=_.e(r.hostElement).querySelector("img");I&&I.focus()})};
_.l=sf.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(r){switch(r.keyCode){case 13:this.onKeyboardEnter();r.preventDefault();break;case 40:this.changeFocus(1);r.preventDefault();break;case 38:this.changeFocus(-1);r.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.l.onYtEmojiSelect=function(r){var f=this,I,C,Y,V,S,h,w,n;return _.x(function(d){if(d.nextAddress==1)return C=(I=f.data)==null?void 0:I.emoji,S=((Y=C)==null?void 0:Y.stickyPrefId)||((V=C)==null?void 0:V.emojiId),w=(h=r.detail)==null?void 0:h.emojiId,S&&w&&S!==w?_.b(d,(n=f.emojiManager)==null?void 0:QX3(n,C,w),2):d.return();_.Bj(f.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[C,w]);_.wO(d)})};
_.l.changeFocus=function(r){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+r+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(r=_.e(this.hostElement).querySelector("#variants"))&&r.children[this.focusedIndex].focus())};
_.OC.Object.defineProperties(sf.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
sf.prototype.onYtEmojiSelect=sf.prototype.onYtEmojiSelect;sf.prototype.onKeyDown=sf.prototype.onKeyDown;sf.prototype.onEmojiVariantsChanged=sf.prototype.onEmojiVariantsChanged;sf.prototype.onVerticalOffsetOrPositionTargetChanged=sf.prototype.onVerticalOffsetOrPositionTargetChanged;_.A([_.J(_.ym),_.B("design:type",Object)],sf.prototype,"ironOverlayBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],sf.prototype,"data",void 0);_.A([_.K(),_.B("design:type",_.$n)],sf.prototype,"emojiManager",void 0);
_.A([_.K(),_.B("design:type",Object)],sf.prototype,"emojiVariants",void 0);_.A([_.K(),_.B("design:type",Object)],sf.prototype,"focusedIndex",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],sf.prototype,"positionTarget",null);_.A([_.K({reflectToAttribute:!0}),_.R("verticalOffset","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],sf.prototype,"isPositioned",null);_.A([_.K(),_.B("design:type",Object)],sf.prototype,"verticalOffset",void 0);
_.A([_.K(),_.B("design:type",Object)],sf.prototype,"verticalAlign",void 0);_.A([_.K(),_.B("design:type",Object)],sf.prototype,"dynamicAlign",void 0);_.A([_.Bt("verticalOffset","positionTarget"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sf.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.A([_.Bt("emojiVariants"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sf.prototype,"onEmojiVariantsChanged",null);
_.A([_.kO("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],sf.prototype,"onKeyDown",null);_.A([_.kO("yt-emoji-select"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype",Promise)],sf.prototype,"onYtEmojiSelect",null);sf=_.A([_.fx()],sf);var Uq_=[sf.prototype];var s38;var OIq;var o5s=/medium-light|medium-dark|light|medium|dark/,Q3U=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,Ab3=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),Of=function(){var r=_.y.apply(this,arguments)||this;r.userSelection={left:null,right:null};r.scrollAction="lock";r.isEmojiDraftInProgress=!1;return r};
_.t(Of,_.y);_.l=Of.prototype;_.l.onClick=function(r){r=_.jl(r);r instanceof HTMLImageElement&&this.selectOrUpdateEmoji(r)};
_.l.selectOrUpdateEmoji=function(r){var f=r.getAttribute("selection");f&&(f==="default"?_.kA(this.hostElement,"yt-emoji-select",_.FG(this.emojiManager,r.id)):f==="left"?this.userSelection=Object.assign({},this.userSelection,{left:r.src}):f==="right"?this.userSelection=Object.assign({},this.userSelection,{right:r.src}):f==="user"&&this.userSelection.left&&this.userSelection.right&&_.kA(this.hostElement,"yt-emoji-select",_.FG(this.emojiManager,r.id)))};
_.l.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.l.onMultiSelectorThumbnailRowChanged=function(){var r,f,I;((r=this.data)==null?0:(f=r.emoji)==null?0:(I=f.multiSelectorThumbnailRow)==null?0:I.length)&&this.openSelector()};
_.l.getThumbnailFromEmojiRow=function(r){var f,I;return(r==null?void 0:(f=r.thumbnails)==null?void 0:(I=f[0])==null?void 0:I.url)||""};
_.l.getEmojiAltTextForPartialSelector=function(r){var f;return((f=this.getThumbnailFromEmojiRow(r).match(Q3U))==null?void 0:f[0])||""};
_.l.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.l.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.l.getRowSelection=function(r){return["left","right"][r]};
_.l.getIdFromComposedEmoji=function(r){return(r==null?void 0:r.emojiId)||""};
_.l.getEmojiFromPartialSelections=function(r,f){if(!r&&!f)return null;var I,C,Y=(I=this.data)==null?void 0:(C=I.emoji)==null?void 0:C.variantIds;if(!Y||!Y.length)return null;var V;r=(V=r.match(o5s))==null?void 0:V[0];var S;f=(S=f.match(o5s))==null?void 0:S[0];if(!r||!f)return null;var h=Ab3.get(r);S=Ab3.get(f);if(h===S){S=Array.from(Ab3.values()).filter(function(n){return n!==h}).join("|");
var w=new RegExp("^((?!("+S+")).)*"+h+"$")}else w=new RegExp(h+".*"+S);return(Y=Y.find(function(n){return w.test(n)}))&&_.FG(this.emojiManager,Y)||null};
_.l.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var r,f=this.ytEmojiSelectorBehavior.emojiUrl(((r=this.data.emoji)==null?void 0:r.emojiId)||"");_.e(this.hostElement).querySelector('[selection="user"]').src.includes(f)||(this.isEmojiDraftInProgress=!0)}};
_.l.onDomChange=function(){ybs(this.ytEmojiSelectorBehavior)};
_.l.getFocusableElements=function(){return _.e(this.hostElement).querySelectorAll("img").filter(function(r){return r.getAttribute("role")==="option"})};
_.l.changeFocus=function(r){var f=this.getFocusableElements();f!=null&&f.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+r+f.length)%f.length,this.ytEmojiSelectorBehavior.focusedIndex<f.length&&(r=f[this.ytEmojiSelectorBehavior.focusedIndex])&&r.focus())};
_.l.onKeyboardEnter=function(){var r=this.getFocusableElements();r!=null&&r.length&&(r=r[this.ytEmojiSelectorBehavior.focusedIndex])&&r instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(r),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.OC.Object.defineProperties(Of.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var r=this,f,I,C;return this.emojiManager&&((f=this.data)==null?0:(I=f.emoji)==null?0:(C=I.variantIds)==null?0:C.length)?this.data.emoji.variantIds.map(function(Y){return!!Y&&_.FG(r.emojiManager,Y)}).filter(function(Y){return!!Y}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var r,f=(r=this.userSelection)==null?void 0:r.left,I;r=(I=this.userSelection)==null?void 0:I.right;return f&&r?this.getEmojiFromPartialSelections(f,r):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.composedEmojiSelection)==null?0:r.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var f;r=(f=this.userSelection)==null?void 0:f.left;var I;f=(I=this.userSelection)==null?void 0:I.right;if(!r&&!f){var C;return this.ytEmojiSelectorBehavior.emojiUrl(((C=this.data.emoji)==null?void 0:C.emojiId)||"")}return r&&!f?r:!r&&f?f:""}}});
Of.prototype.onMultiSelectorThumbnailRowChanged=Of.prototype.onMultiSelectorThumbnailRowChanged;Of.prototype.onClick=Of.prototype.onClick;_.A([_.J(_.ym),_.B("design:type",Object)],Of.prototype,"ironOverlayBehavior",void 0);_.A([_.J(Uq_),_.B("design:type",Object)],Of.prototype,"ytEmojiSelectorBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Of.prototype,"data",void 0);_.A([_.K(),_.B("design:type",_.$n)],Of.prototype,"emojiManager",void 0);
_.A([_.K(),_.B("design:type",Object)],Of.prototype,"userSelection",void 0);_.A([_.K(),_.B("design:type",Object)],Of.prototype,"scrollAction",void 0);_.A([_.K(),_.B("design:type",Object)],Of.prototype,"isEmojiDraftInProgress",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Of.prototype,"emojiVariants",null);_.A([_.R("data","userSelection"),_.B("design:type",Object),_.B("design:paramtypes",[])],Of.prototype,"composedEmojiSelection",null);
_.A([_.kO("click"),_.B("design:type",Function),_.B("design:paramtypes",[MouseEvent]),_.B("design:returntype")],Of.prototype,"onClick",null);_.A([_.Bt("data.emoji.multiSelectorThumbnailRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Of.prototype,"onMultiSelectorThumbnailRowChanged",null);_.A([_.R("data","userSelection","composedEmojiSelection"),_.B("design:type",String),_.B("design:paramtypes",[])],Of.prototype,"draftEmojiUrl",null);
Of=_.A([_.zX({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],Of);
_.Q(Of,"yt-emoji-multi-person-selector",function(){if(OIq===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;s38===void 0&&(s38=document.createElement("template"));var C=s38;I.call(f,C.content.cloneNode(!0),r.content.firstChild);OIq=r}r=OIq;return r},{mode:2});var ZI4;var Gu4;var oO=function(){var r=_.y.apply(this,arguments)||this;r.tooltip_=null;return r};
_.t(oO,_.y);_.l=oO.prototype;_.l.dataChanged_=function(){var r;if((r=this.data)==null?0:r.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.e(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.AN)(this.tooltip_).textContent=this.data.tooltip};
_.l.computeTargetId=function(){var r;return((r=this.data)==null?void 0:r.targetId)||""};
_.l.computeId_=function(r){return r};
_.l.computeIcon_=function(r){return _.kN(r)};
_.l.onTap_=function(){this.active=!this.active;_.kA(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.l.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LT("active-changed",this.active))};
_.OC.Object.defineProperties(oO.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var r,f;if((r=this.data)==null?0:(f=r.icon)==null?0:f.iconType)return this.data.icon.iconType==="SUPER_STICKER";var I,C;return((I=this.data)==null?void 0:(C=I.icon)==null?void 0:C.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
oO.prototype.activeChangedForBinding=oO.prototype.activeChangedForBinding;oO.prototype.dataChanged_=oO.prototype.dataChanged_;_.A([_.J(_.PD.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],oO.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],oO.prototype,"data",void 0);_.A([_.K({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.B("design:type",String)],oO.prototype,"id",void 0);
_.A([_.K({computed:"computeTargetId(data.targetId)"}),_.B("design:type",String)],oO.prototype,"targetId",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],oO.prototype,"active",void 0);_.A([_.K({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.B("design:type",String)],oO.prototype,"icon",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oO.prototype,"dataChanged_",null);
_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oO.prototype,"iconFilled",null);_.A([_.Bt("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oO.prototype,"activeChangedForBinding",null);oO=_.A([_.zX({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],oO);
_.Q(oO,"yt-emoji-picker-category-button-renderer",function(){if(Gu4===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;ZI4===void 0&&(ZI4=document.createElement("template"));var C=ZI4;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Gu4=r}r=Gu4;return r},{mode:2});var kuV;var BwD;var Qr=function(){var r=_.y.apply(this,arguments)||this;r.ariaLabel=null;r.ariaActivedescendant=null;r.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};r.JSC$11927_ignoreNextFocus_=!1;r.longPressTimeoutId=-1;return r};
_.t(Qr,_.y);_.l=Qr.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 r=_.IB(),f=0;f<this.emoji.length;f++){var I={veType:88013,elementIndex:f},C=this.emoji[f];C.isCustomEmoji&&(C=document.querySelector(("#"+C.emojiId).replace("/","\\/")))&&(I=_.fv(r,I))&&(C.visualElement=I)}};
_.l.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.l.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.l.emojiSkinToneChanged_=function(r){this.skinTone=r};
_.l.dataChanged=function(){this.data&&this.data.emojiData&&UHg(this.emojiManager,this.data.emojiData)};
_.l.emojiUrl=function(r){r=this.getEmoji(r);if(!r)return"";var f;r=(f=r.image)==null?void 0:f.thumbnails;return _.yH(r,24)||""};
_.l.emojiAlt=function(r){var f=this.get("image.accessibility.accessibilityData.label",r);return f?f:r.isCustomEmoji?r.shortcuts[0]:r.emojiId};
_.l.emojiAriaLabel=function(r){return r.shortcuts?r.shortcuts[0]:""};
_.l.emojiAriaSelected=function(r,f,I){return r&&I==f?"true":"false"};
_.l.getEmoji=function(r){if(this.emojiManager)return this.shouldUseStickyPreferences?OgC(this.emojiManager,r):P2(this.emojiManager,r)};
_.l.computeId_=function(r){return r.categoryId||""};
_.l.computeEmoji=function(r){var f=this;return this.emojiManager?r.emojiIds?r.emojiIds.map(function(I){return I?_.FG(f.emojiManager,I):null}).filter(Grd):r.emojiData?r.emojiData.map(function(I){var C=!!I.emojiId&&_.FG(f.emojiManager,I.emojiId);
return C?Object.assign({},C,I):null}).filter(Grd):[]:[]};
_.l.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.l.computeAriaLabel_=function(r){return _.Rr(r)};
_.l.computeAriaActivedescendant_=function(r,f){return r&&r[f]?r[f].emojiId||"":""};
_.l.handleLongPressEmojiWithVariants=function(r,f){this.changeFocusToEmoji(r.emojiId,!1);this.openVariantSelector(r,f)};
_.l.onMouseDown=function(r){var f=this;this.hostElement!==document.activeElement&&(this.JSC$11927_ignoreNextFocus_=!0);if(r.button===0){var I=_.jl(r);if(I instanceof HTMLImageElement){var C=_.e(this.hostElement).querySelector("#repeat").itemForElement(I);this.emojiContainsVariants(C)&&(this.longPressTimeoutId=setTimeout(function(){f.handleLongPressEmojiWithVariants(C,I)},500))}}};
_.l.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.l.onFocus=function(){this.JSC$11927_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11927_ignoreNextFocus_=!1};
_.l.onBlur_=function(){this.showFocus=!1};
_.l.emojiContainsVariants=function(r){return!!(r&&r.variantIds&&r.variantIds.length)};
_.l.onClick=function(r){clearTimeout(this.longPressTimeoutId);r=_.jl(r);if(r instanceof HTMLImageElement){var f=r.id;this.changeFocusToEmoji(f,!1);var I=this.getEmoji(f),C;if(C=this.shouldUseStickyPreferences&&this.emojiContainsVariants(I)){var Y;C=!((Y=this.emojiManager.emojiMap[f])!=null&&Y.stickyPrefId)}C?(Y=_.e(this.hostElement).querySelector("#repeat").itemForElement(r),this.openVariantSelector(Y,r)):_.kA(this.hostElement,"yt-emoji-select",I)}};
_.l.isActiveEmojiWithVariants=function(r,f){return r&&f?f.stickyPrefId?r===f.stickyPrefId:r===f.emojiId:!1};
_.l.onCloseEmojiVariantSelector=function(r){this.activeEmojiWithVariantsId===r&&(this.activeEmojiWithVariantsId="")};
_.l.onMouseOver_=function(r){r=_.jl(r);r instanceof HTMLImageElement&&_.kA(this.hostElement,"yt-emoji-hover",_.FG(this.emojiManager,r.id))};
_.l.changeFocus_=function(r,f){this.focusedIndex=(this.focusedIndex+r+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(r=this.emoji[this.focusedIndex],f&&(this.showFocus=!0,_.e(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.kA(this.hostElement,"yt-emoji-hover",r)))};
_.l.changeFocusToEmoji=function(r,f){if(r){var I=this.emoji.findIndex(function(C){return C.emojiId===r});
I!==-1&&this.changeFocus_(I-this.focusedIndex,f)}};
_.l.onKeyDown_=function(r){switch(r.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var f=this.emoji[this.focusedIndex];if(f&&f.emojiId){if(this.emojiContainsVariants(f)){var I=_.e(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(f,I)}else _.kA(this.hostElement,"yt-emoji-select",P2(this.emojiManager,f.emojiId)),this.hostElement.focus();r.preventDefault()}}break;case 40:this.changeFocus_(1,!0);r.preventDefault();break;case 38:this.changeFocus_(-1,!0),r.preventDefault()}};
_.l.onEmojiStickyPreferenceChanged=function(r,f){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&r.emojiId&&r.variantIds&&r.variantIds.includes(f)&&this.activeEmojiWithVariantsId!==f&&this.setStickyEmojiPreference(r.emojiId,f)};
_.l.openVariantSelector=function(r,f){this.activeEmojiWithVariantsId=r.stickyPrefId||r.emojiId||"";_.kA(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:r,target:f})};
_.l.setStickyEmojiPreference=function(r,f){if(this.data){var I=this.emoji.findIndex(function(Y){return Y.emojiId===r});
if(I!==-1){var C=this.emoji[I];C.stickyPrefId=f;this.set("emoji."+I,Object.assign({},C));this.activeEmojiWithVariantsId=f}}};
Qr.prototype.onKeyDown_=Qr.prototype.onKeyDown_;Qr.prototype.onMouseOver_=Qr.prototype.onMouseOver_;Qr.prototype.onClick=Qr.prototype.onClick;Qr.prototype.onBlur_=Qr.prototype.onBlur_;Qr.prototype.onFocus=Qr.prototype.onFocus;Qr.prototype.onMouseUp=Qr.prototype.onMouseUp;Qr.prototype.onMouseDown=Qr.prototype.onMouseDown;Qr.prototype.dataChanged=Qr.prototype.dataChanged;Qr.prototype.disableIncrementalLoadingChanged_=Qr.prototype.disableIncrementalLoadingChanged_;Qr.prototype.emojiManagerChanged_=Qr.prototype.emojiManagerChanged_;
Qr.prototype.emojiChanged_=Qr.prototype.emojiChanged_;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Qr.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Qr.prototype,"data",void 0);_.A([_.K({computed:"computeId_(data)"}),_.B("design:type",String)],Qr.prototype,"id",void 0);_.A([_.K({computed:"computeEmoji(data)"}),_.B("design:type",Array)],Qr.prototype,"emoji",void 0);_.A([_.K(),_.B("design:type",Number)],Qr.prototype,"skinTone",void 0);
_.A([_.K(),_.B("design:type",_.$n)],Qr.prototype,"emojiManager",void 0);_.A([_.K(),_.B("design:type",Boolean)],Qr.prototype,"disableIncrementalLoading",void 0);_.A([_.K({value:0}),_.B("design:type",Number)],Qr.prototype,"focusedIndex",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],Qr.prototype,"showFocus",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.B("design:type",Object)],Qr.prototype,"ariaLabel",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.B("design:type",Object)],Qr.prototype,"ariaActivedescendant",void 0);_.A([_.K({value:60}),_.B("design:type",Number)],Qr.prototype,"domRepeatTargetFramerate",void 0);_.A([_.K({value:1}),_.B("design:type",Number)],Qr.prototype,"domRepeatInitialCount",void 0);_.A([_.K({value:""}),_.B("design:type",String)],Qr.prototype,"activeEmojiWithVariantsId",void 0);
_.A([_.K({value:!1}),_.B("design:type",Boolean)],Qr.prototype,"shouldUseStickyPreferences",void 0);_.A([_.Bt("emoji"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qr.prototype,"emojiChanged_",null);_.A([_.Bt("emojiManager"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qr.prototype,"emojiManagerChanged_",null);
_.A([_.Bt("disableIncrementalLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qr.prototype,"disableIncrementalLoadingChanged_",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qr.prototype,"dataChanged",null);_.A([_.kO("mousedown"),_.B("design:type",Function),_.B("design:paramtypes",[Object]),_.B("design:returntype")],Qr.prototype,"onMouseDown",null);
_.A([_.kO("mouseup"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qr.prototype,"onMouseUp",null);_.A([_.kO("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qr.prototype,"onFocus",null);_.A([_.kO("blur"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qr.prototype,"onBlur_",null);
_.A([_.kO("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Qr.prototype,"onClick",null);_.A([_.kO("mouseover"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Qr.prototype,"onMouseOver_",null);_.A([_.kO("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Qr.prototype,"onKeyDown_",null);
Qr=_.A([_.zX({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],Qr);
_.Q(Qr,"yt-emoji-picker-category-renderer",function(){if(BwD===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;kuV===void 0&&(kuV=document.createElement("template"));var C=kuV;I.call(f,C.content.cloneNode(!0),r.content.firstChild);BwD=r}r=BwD;return r},{mode:2});var quq;var uM4;var DqD;var rTq;var Ai=function(){var r=_.y.apply(this,arguments)||this;r.ariaLabel=null;r.ariaActivedescendant=null;r.getFormattedStringRawText=_.Rr;r.JSC$11933_ignoreNextFocus_=!1;return r};
_.t(Ai,_.y);_.l=Ai.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(r){var f,I;r=(f=P2(this.emojiManager,r,!0))==null?void 0:(I=f.image)==null?void 0:I.thumbnails;return _.yH(r,24)||""};
_.l.emojiAlt=function(r){var f=this.get("image.accessibility.accessibilityData.label",r);return f?f:r.isCustomEmoji?r.shortcuts[0]:r.emojiId};
_.l.emojiId=function(r){return"emoji"+r};
_.l.computeId_=function(r){return r.categoryId||""};
_.l.computeAriaActivedescendant_=function(r){return this.emoji&&r<this.emoji.length?this.emojiId(r):""};
_.l.emojiChanged_=function(){this.changeFocus_(0,!1);for(var r=_.IB(),f=0;f<this.emoji.length;f++){var I={veType:88013,elementIndex:f},C=this.emoji[f];C.isCustomEmoji&&(C=document.querySelector(("#"+C.emojiId).replace("/","\\/")))&&(I=_.fv(r,I))&&(C.visualElement=I)}};
_.l.computeEmoji_=function(r){var f=this;return this.emojiManager?r.emojiIds.map(function(I){return _.FG(f.emojiManager,I,!0)}).filter(kru):[]};
_.l.titleOffsetChanged_=function(){var r=this.hostElement.getBoundingClientRect(),f=_.e(this.hostElement).querySelector("#title").getBoundingClientRect();r=Math.max(0,Math.min(this.titleOffset,r.height-f.height));_.e(this.hostElement).querySelector("#title").style.top=r+"px"};
_.l.onEmojiMouseOver_=function(r){_.kA(this.hostElement,"yt-emoji-hover",r.model.item)};
_.l.onEmojiTap_=function(r){this.data.command&&(r=Cq$(_.a().resolve(_.ZY(jq)),this.data.command,r),_.kA(this.hostElement,"yt-navigate",r))};
_.l.emojiAriaLabel=function(r){return r.shortcuts[0]};
_.l.emojiAriaSelected=function(r,f,I){return r&&I==f?"true":"false"};
_.l.changeFocus_=function(r,f){var I=this.emoji.length;this.focusedIndex=(this.focusedIndex+r+I)%I;r=this.emoji[this.focusedIndex];if(f){var C;(C=_.e(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||C.scrollIntoView(!1);_.kA(this.hostElement,"yt-emoji-hover",r)}};
_.l.onMouseDown_=function(){this.JSC$11933_ignoreNextFocus_=!0};
_.l.onFocus_=function(){this.JSC$11933_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11933_ignoreNextFocus_=!1};
_.l.onBlur_=function(){this.showFocus=!1};
_.l.onKeyDown_=function(r){switch(r.keyCode){case 13:this.onEmojiTap_(r);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);r.preventDefault();break;case 38:this.changeFocus_(-1,!0),r.preventDefault()}};
Ai.prototype.onKeyDown_=Ai.prototype.onKeyDown_;Ai.prototype.onBlur_=Ai.prototype.onBlur_;Ai.prototype.onFocus_=Ai.prototype.onFocus_;Ai.prototype.onMouseDown_=Ai.prototype.onMouseDown_;Ai.prototype.onEmojiTap_=Ai.prototype.onEmojiTap_;Ai.prototype.titleOffsetChanged_=Ai.prototype.titleOffsetChanged_;Ai.prototype.emojiChanged_=Ai.prototype.emojiChanged_;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Ai.prototype,"ytComponentBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],Ai.prototype,"data",void 0);_.A([_.K({computed:"computeId_(data)"}),_.B("design:type",String)],Ai.prototype,"id",void 0);_.A([_.K({computed:"computeEmoji_(data)"}),_.B("design:type",Array)],Ai.prototype,"emoji",void 0);_.A([_.K({value:0}),_.B("design:type",Number)],Ai.prototype,"titleOffset",void 0);_.A([_.K({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.B("design:type",Object)],Ai.prototype,"ariaLabel",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.B("design:type",Object)],Ai.prototype,"ariaActivedescendant",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],Ai.prototype,"showFocus",void 0);_.A([_.K({value:0}),_.B("design:type",Number)],Ai.prototype,"focusedIndex",void 0);_.A([_.K(),_.B("design:type",_.$n)],Ai.prototype,"emojiManager",void 0);
_.A([_.Bt("emoji"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ai.prototype,"emojiChanged_",null);_.A([_.Bt("titleOffset"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ai.prototype,"titleOffsetChanged_",null);_.A([_.kO("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Ai.prototype,"onEmojiTap_",null);
_.A([_.kO("mousedown"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ai.prototype,"onMouseDown_",null);_.A([_.kO("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ai.prototype,"onFocus_",null);_.A([_.kO("blur"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ai.prototype,"onBlur_",null);
_.A([_.kO("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Ai.prototype,"onKeyDown_",null);Ai=_.A([_.zX({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],Ai);
_.Q(Ai,"yt-emoji-picker-upsell-category-renderer",function(){if(rTq===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;DqD===void 0&&(DqD=document.createElement("template"));var C=DqD;I.call(f,C.content.cloneNode(!0),r.content.firstChild);rTq=r}r=rTq;return r},{mode:2});var fa_;var IaC;var ZH=function(){var r=_.y.apply(this,arguments)||this;r.scrollAction="lock";r.verticalAlign="top";return r};
_.t(ZH,_.y);_.l=ZH.prototype;_.l.onClick=function(r){r=_.jl(r);r instanceof HTMLImageElement&&_.kA(this.hostElement,"yt-emoji-select",_.FG(this.emojiManager,r.id))};
_.l.openSelector=function(){this.ironOverlayBehavior.open()};
_.l.onDomChange=function(){ybs(this.ytEmojiSelectorBehavior)};
_.l.computeIsFamilySelector=function(r){var f;return(r==null?void 0:(f=r.emoji)==null?void 0:f.emojiId)==="\ud83d\udc6a"};
_.l.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var r=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];r&&r.emojiId&&(_.kA(this.hostElement,"yt-emoji-select",_.FG(this.emojiManager,r.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.OC.Object.defineProperties(ZH.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var r=this,f,I,C;return this.emojiManager&&((f=this.data)==null?0:(I=f.emoji)==null?0:(C=I.variantIds)==null?0:C.length)?this.data.emoji.variantIds.map(function(Y){return!!Y&&_.FG(r.emojiManager,Y)}).filter(function(Y){return!!Y}):[]}}});
ZH.prototype.onClick=ZH.prototype.onClick;_.A([_.J(_.ym),_.B("design:type",Object)],ZH.prototype,"ironOverlayBehavior",void 0);_.A([_.J(Uq_),_.B("design:type",Object)],ZH.prototype,"ytEmojiSelectorBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ZH.prototype,"data",void 0);_.A([_.K(),_.B("design:type",_.$n)],ZH.prototype,"emojiManager",void 0);_.A([_.K(),_.B("design:type",Object)],ZH.prototype,"scrollAction",void 0);_.A([_.K(),_.B("design:type",Object)],ZH.prototype,"verticalAlign",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.B("design:type",Boolean)],ZH.prototype,"isFamilySelector",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ZH.prototype,"emojiVariants",null);_.A([_.kO("click"),_.B("design:type",Function),_.B("design:paramtypes",[MouseEvent]),_.B("design:returntype")],ZH.prototype,"onClick",null);ZH=_.A([_.zX({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],ZH);
_.Q(ZH,"yt-emoji-variant-selector",function(){if(IaC===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;fa_===void 0&&(fa_=document.createElement("template"));var C=fa_;I.call(f,C.content.cloneNode(!0),r.content.firstChild);IaC=r}r=IaC;return r},{mode:2});var CqX=/:/g,Y8C=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],GJ=function(){var r=_.y.apply(this,arguments)||this;r.emojiVariantSelector=null;r.emojiMultiPersonSelector=null;r.identity=_.sP;r.lastAnimationTime_=0;r.animationStart_=null;r.animationEnd_=null;return r};
_.t(GJ,_.y);_.l=GJ.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=_.ti)};
_.l.attached=function(){_.Yp&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&sXs(this.emojiManager)};
_.l.dataChanged=function(){var r;if((r=this.data)==null?0:r.categories){r=this.emojiManager;var f=this.getCustomEmojiIds();r.pickerCustomEmojiIds=[].concat(_.Na(ig8),_.Na(f))}};
_.l.getCustomEmojiIds=function(){var r,f=(r=this.data.categories)==null?void 0:r.find(function(V){var S;return((S=V.emojiPickerCategoryRenderer)==null?void 0:S.categoryId)&&Y8C.includes(V.emojiPickerCategoryRenderer.categoryId)}),I;
r=(I=this.data.categories)==null?void 0:I.find(function(V){return V.emojiPickerUpsellCategoryRenderer});
var C,Y;return[f==null?void 0:(C=f.emojiPickerCategoryRenderer)==null?void 0:C.emojiIds,r==null?void 0:(Y=r.emojiPickerUpsellCategoryRenderer)==null?void 0:Y.emojiIds].flat().filter(function(V){return!!V})};
_.l.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.l.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.l.updateCategoriesAndPlaceholderInternal=function(r,f){var I=this;r&&f&&(this.categories=r.categories||[],this.categoryButtons=r.categoryButtons||[],this.resetPlaceholder(),this.search="",_.Fi(function(){I.updateButtons_()}))};
_.l.computeId_=function(r){return r.id||""};
_.l.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(r){return r.emojiPickerCategoryRenderer&&r.emojiPickerCategoryRenderer.emojiData}):!1};
_.l.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.l.onShowEmojiVariantSelector=function(r){var f=r.detail.emojiData;f.variantIds&&f.variantIds.length&&(f.multiSelectorThumbnailRow&&f.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:f,target:r.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:f,target:r.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.l.onIronOverlayClosed=function(r){var f=OgC(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");f&&r.composedPath&&(r.composedPath().includes(_.e(this.hostElement).querySelector("#emoji-variant-selector"))||r.composedPath().includes(_.e(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.Bj(this.hostElement,"yt-close-emoji-variant-selector",[f.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.l.onEmojiVariantSelectorMouseup=function(r){var f=r.target.firstChild;this.variantSelectorOpened&&f&&_.Fi(function(){f.noCancelOnOutsideClick=!1},100)};
_.l.onEmojiVariantSelectorMousedown=function(r){r=r.target.firstChild;this.variantSelectorOpened&&r&&(r.noCancelOnOutsideClick=!1)};
_.l.onSelectCategory_=function(r){var f=this.search!="";this.search="";for(var I=_.e(this.hostElement).querySelector("#categories").children,C=0;C<I.length;C++){var Y=I[C];if(Y.id==r.detail.categoryId){f?(_.e(this.hostElement).querySelector("#categories").scrollTop=Y.offsetTop,this.updateButtons_()):(this.animationStart_=_.e(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=Y.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.l.onEmojiHover_=function(r){this.placeholder=r.detail.shortcuts?r.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(r){r=r.replace(CqX,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();r=r.split(" ");for(var f=[],I=this.emojiManager.emojis,C=0;C<I.length;C++){var Y=I[C];if(Y.searchTerms)for(var V=0;V<Y.searchTerms.length;V++){for(var S=Y.searchTerms[V].toLocaleLowerCase(),h=!1,w=0;w<r.length;w++)if(S.indexOf(r[w])!=-1){h=!0;break}if(h&&(!Y.isCustomEmoji||!Y.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(Y.emojiId))){f.push(Y.emojiId);
break}}}return{categoryId:-1,emojiIds:f}};
_.l.computeSearchEmptyMessage_=function(r,f){return r&&f&&f.emojiIds&&f.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.l.computeSearching_=function(r){return this.emojiManager&&r.replace(CqX,"").length>1};
_.l.computeSkinToneHidden=function(){var r;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((r=this.data)==null||!r.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(r){r=Number(r.target.getAttribute("tone"));this.set("emojiManager.skinTone",r);_.Bj(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[r]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.l.skinToneChanged_=function(){_.e(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var r=_.e(this.hostElement).querySelector("#dropdown-content").children,f=0;f<r.length;f++)f===this.skinTone?r[f].setAttribute("selected",""):r[f].removeAttribute("selected")};
_.l.animateScroll_=function(r){this.lastAnimationTime_||(this.lastAnimationTime_=r);r-=this.lastAnimationTime_;r<200?(_.e(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*r/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.e(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 r=null;if(!this.search)for(var f=_.e(this.hostElement).querySelector("#categories").scrollTop,I=_.e(this.hostElement).querySelector("#categories").children,C=0;C<I.length;C++){var Y=I[C];Y.offsetTop<=f&&(r=Y.id)}f=_.e(this.hostElement).querySelector("#category-buttons").children;for(I=0;I<f.length;I++)C=f[I],C.active=C.id===r};
GJ.prototype.searchChanged_=GJ.prototype.searchChanged_;GJ.prototype.skinToneChanged_=GJ.prototype.skinToneChanged_;GJ.prototype.onEmojiHover_=GJ.prototype.onEmojiHover_;GJ.prototype.onSelectCategory_=GJ.prototype.onSelectCategory_;GJ.prototype.onShowEmojiVariantSelector=GJ.prototype.onShowEmojiVariantSelector;GJ.prototype.updateCategoriesAndPlaceholder_=GJ.prototype.updateCategoriesAndPlaceholder_;GJ.prototype.dataChanged=GJ.prototype.dataChanged;
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],GJ.prototype,"data",void 0);_.A([_.K({value:function(){return[]}}),
_.B("design:type",Array)],GJ.prototype,"categories",void 0);_.A([_.K({value:function(){return[]}}),
_.B("design:type",Array)],GJ.prototype,"categoryButtons",void 0);_.A([_.K({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.B("design:type",Boolean)],GJ.prototype,"disableScroll",void 0);_.A([_.K({computed:"computeId_(data)",reflectToAttribute:!0}),_.B("design:type",String)],GJ.prototype,"id",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],GJ.prototype,"selected",void 0);
_.A([_.K({value:!1}),_.B("design:type",Boolean)],GJ.prototype,"disableIncrementalLoading",void 0);_.A([_.K(),_.B("design:type",String)],GJ.prototype,"placeholder",void 0);_.A([_.K({value:""}),_.B("design:type",String)],GJ.prototype,"search",void 0);_.A([_.K({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.B("design:type",Boolean)],GJ.prototype,"searching",void 0);_.A([_.K({computed:"computeSearchCategory_(search)"}),_.B("design:type",Object)],GJ.prototype,"searchCategory",void 0);
_.A([_.K({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.B("design:type",Object)],GJ.prototype,"searchEmptyMessage",void 0);_.A([_.K({computed:"identity(emojiManager.skinTone)"}),_.B("design:type",Number)],GJ.prototype,"skinTone",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],GJ.prototype,"skinToneOpened",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],GJ.prototype,"variantSelectorOpened",void 0);
_.A([_.K({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.B("design:type",Boolean)],GJ.prototype,"skinToneHidden",void 0);_.A([_.K(),_.B("design:type",_.$n)],GJ.prototype,"emojiManager",void 0);_.A([_.K(),_.B("design:type",Object)],GJ.prototype,"emojiVariantSelector",void 0);_.A([_.K(),_.B("design:type",Object)],GJ.prototype,"emojiMultiPersonSelector",void 0);
_.A([_.K({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.B("design:type",Boolean)],GJ.prototype,"shouldUseStickyPreferences",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GJ.prototype,"dataChanged",null);_.A([_.Bt("data","selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GJ.prototype,"updateCategoriesAndPlaceholder_",null);
_.A([_.kO("yt-show-emoji-variant-selector"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],GJ.prototype,"onShowEmojiVariantSelector",null);_.A([_.kO("yt-emoji-picker-select-category"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],GJ.prototype,"onSelectCategory_",null);_.A([_.kO("yt-emoji-hover"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],GJ.prototype,"onEmojiHover_",null);
_.A([_.Bt("skinTone"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GJ.prototype,"skinToneChanged_",null);_.A([_.Bt("search"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GJ.prototype,"searchChanged_",null);GJ=_.A([_.zX({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],GJ);
_.Q(GJ,"yt-emoji-picker-renderer",function(){if(uM4===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;quq===void 0&&(quq=document.createElement("template"));var C=quq;I.call(f,C.content.cloneNode(!0),r.content.firstChild);uM4=r}r=uM4;return r},{mode:2});var kn=function(){var r=_.y.apply(this,arguments)||this;r.emojiManager=_.ti;r.isDarkTheme=document.documentElement.hasAttribute("dark");r.selectedIndex=1;r.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return r};
_.t(kn,_.y);_.l=kn.prototype;_.l.handleEmojiCustomizationVisible=function(r){this.emojiPickerRenderer.selected=r;this.selectedIndex=1;r?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.l.emojiCustomizationSetChanged=function(){var r;(r=this.data)!=null&&r.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.n8(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.l.updateSaveButtonState=function(r){var f;(f=this.data)!=null&&f.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.hv("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:r}))};
_.l.emojiUrl=function(r){r=_.FG(this.emojiManager,r);if(!r)return"";var f;r=(f=r.image)==null?void 0:f.thumbnails;return _.yH(r,24)||""};
_.l.emojiAlt=function(r){var f=_.FG(this.emojiManager,r);if(!f)return r;var I,C,Y,V=(f==null?void 0:(I=f.image)==null?void 0:(C=I.accessibility)==null?void 0:(Y=C.accessibilityData)==null?void 0:Y.label)||"";return V?V:f.isCustomEmoji?f.shortcuts[0]:f.emojiId||r};
_.l.emojiAriaLabel=function(r){var f,I;return((f=_.FG(this.emojiManager,r))==null?void 0:(I=f.shortcuts)==null?void 0:I[0])||r};
_.l.onEmojiClick=function(r){r.model.index!==0&&(this.selectedIndex=r.model.index)};
_.l.onEmojiSelect=function(r){r=r.detail;var f,I;((f=this.data)==null?0:f.emojiCustomizationSetEntityKey)&&((I=this.emojiCustomizationSet)==null?0:I.emojiId)&&r.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,r.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.hv("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,r.emojiId,this.selectedIndex)}))};
_.l.canEditEmoji=function(r,f,I){r=r.indexOf(f);return r===I||r===0||I===0?!1:!0};
_.l.getUpdatedEmojiIdList=function(r,f,I){var C=r.indexOf(f);r=[].concat(_.Na(r));C>=0&&(r[C]=r[I]);r[I]=f;return r};
_.OC.Object.defineProperties(kn,{template:{configurable:!0,enumerable:!0,get:function(){if(FhT===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;$q3===void 0&&($q3=document.createElement("template"));var C=$q3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);FhT=r}r=FhT;return r}}});
kn.prototype.onEmojiSelect=kn.prototype.onEmojiSelect;_.A([_.J(_.FT),_.B("design:type",Object)],kn.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],kn.prototype,"ytActionHandlerBehavior",void 0);_.A([_.uA("yt-emoji-picker-renderer"),_.B("design:type",Object)],kn.prototype,"emojiPickerRenderer",void 0);
_.A([_.K({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(r,f){return _.f2(r.entities,"emojiCustomizationSetEntity",f)},
observer:"emojiCustomizationSetChanged"}),_.B("design:type",Object)],kn.prototype,"emojiCustomizationSet",void 0);_.A([_.K(),_.B("design:type",Object)],kn.prototype,"originalEmojiSet",void 0);_.A([_.K(),_.B("design:type",_.$n)],kn.prototype,"emojiManager",void 0);_.A([_.K(),_.B("design:type",Object)],kn.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],kn.prototype,"isDarkTheme",void 0);_.A([_.K(),_.B("design:type",Object)],kn.prototype,"selectedIndex",void 0);
_.A([_.kO("yt-emoji-select"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],kn.prototype,"onEmojiSelect",null);kn=_.A([_.zX({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],kn);var la3;var VLg;var EF4;var S8T;var B2=function(){var r=_.y.apply(this,arguments)||this;r.authorBadges=[];return r};
_.t(B2,_.y);_.l=B2.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 r=cr$(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",r)};
_.l.updateMessage=function(){var r=this.data.message,f=_.e(_.e(this.hostElement).querySelector("#message"));f.textContent="";r&&f.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(r))};
_.l.shouldSupportWholeItemClick=function(){return!0};
_.l.onShowOriginalClick=function(r){r.preventDefault();this.showOriginal=!0};
_.l.computeShowBar=function(r,f,I){return r&&f||I};
_.l.computeAuthorBadges=function(r){return r.authorBadges||[]};
_.l.computeAuthorIsOwner=function(r){return!!W$E(r.authorBadges,"owner")};
_.l.computeAuthorNameColor=function(r){var f;if(_.N("live_chat_author_name_color_usernames")&&(r==null?0:(f=r.authorName)==null?0:f.simpleText))return _.HPB(_.iPK(r.authorName.simpleText));if(_.N("live_chat_seed_color_usernames")&&(r==null?0:r.authorSeedColorArgb))return _.HPB(_.Z1(r.authorSeedColorArgb));if(_.N("live_chat_colored_usernames"))return"#cc0000";var I;return _.N("live_chat_simple_color_usernames")&&(r==null?0:(I=r.authorName)==null?0:I.simpleText)&&(r==null?0:r.authorUsernameColorLight)&&
(r==null?0:r.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.Z1(r.authorUsernameColorDark):_.Z1(r.authorUsernameColorLight):""};
B2.prototype.updateMessage=B2.prototype.updateMessage;B2.prototype.dataChanged=B2.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],B2.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.TJ.YtLiveChatItemBehavior),_.B("design:type",_.c2)],B2.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],B2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],B2.prototype,"data",void 0);
_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],B2.prototype,"showOriginal",void 0);_.A([_.K({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.B("design:type",Boolean)],B2.prototype,"isDimmed",void 0);_.A([_.K({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.B("design:type",Boolean)],B2.prototype,"showBar",void 0);
_.A([_.K({computed:"computeAuthorBadges(data)"}),_.B("design:type",Array)],B2.prototype,"authorBadges",void 0);_.A([_.K({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],B2.prototype,"authorIsOwner",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],B2.prototype,"inCollapsedBanner",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],B2.prototype,"inBanner",void 0);
_.A([_.K({value:_.N("live_chat_hide_avatars"),reflectToAttribute:!0}),_.B("design:type",Boolean)],B2.prototype,"avatarHidden",void 0);_.A([_.K({computed:"computeAuthorNameColor(data)"}),_.B("design:type",String)],B2.prototype,"authorNameColor",void 0);_.A([_.K(),_.B("design:type",_.mu)],B2.prototype,"participantsManager",void 0);_.A([_.K({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.B("design:type",Object)],B2.prototype,"filledButtonOverrides",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],B2.prototype,"dataChanged",null);_.A([_.Bt("data.message"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],B2.prototype,"updateMessage",null);B2=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],B2);
_.Q(B2,"yt-live-chat-text-message-renderer",function(){if(S8T===void 0){var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;EF4===void 0&&(EF4=document.createElement("template"));var C=EF4;I.call(f,C.content.cloneNode(!0),r.content.firstChild);S8T=r}r=S8T;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var qz=function(){var r=_.y.apply(this,arguments)||this;r.tonalButtonOverrides={type:"tonal",style:"overlay"};return r};
_.t(qz,_.y);
qz.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]]"}}}}}};
qz.prototype.shouldSupportInlineActionButtons=function(){return!0};
qz.prototype.shouldSupportWholeItemClick=function(){return!0};
_.OC.Object.defineProperties(qz.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],qz.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.TJ.YtLiveChatItemBehavior),_.B("design:type",_.c2)],qz.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],qz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],qz.prototype,"data",void 0);_.A([_.K(),_.B("design:type",_.mu)],qz.prototype,"participantsManager",void 0);
_.A([_.K(),_.B("design:type",Object)],qz.prototype,"tonalButtonOverrides",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("data.infoDialogButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],qz.prototype,"hasInfoDialogButton",null);qz=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],qz);
_.Q(qz,"yt-live-chat-auto-mod-message-renderer",function(){if(VLg===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;la3===void 0&&(la3=document.createElement("template"));var C=la3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);VLg=r}r=VLg;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var xlg;var hKB;var wpU;var un=function(){return _.y.apply(this,arguments)||this};
_.t(un,_.y);_.A([_.K(),_.B("design:type",Object)],un.prototype,"data",void 0);un=_.A([_.U({is:"ytd-factoid-renderer",disableElementRegistration:!0})],un);
_.Q(un,"ytd-factoid-renderer",function(){if(wpU!==void 0)return wpU;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return wpU=r},{mode:1});var DH=function(){return _.y.apply(this,arguments)||this};
_.t(DH,_.y);DH.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.A([_.K(),_.B("design:type",Object)],DH.prototype,"data",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],DH.prototype,"ytRendererstamperBehavior",void 0);DH=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],DH);
_.Q(DH,"yt-live-chat-channel-activity-reputation-renderer",function(){if(hKB===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;xlg===void 0&&(xlg=document.createElement("template"));var C=xlg;I.call(f,C.content.cloneNode(!0),r.content.firstChild);hKB=r}r=hKB;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var b0V;var pp3;var rv=function(){return _.y.apply(this,arguments)||this};
_.t(rv,_.y);rv.prototype.ready=function(){var r=document.querySelector("yt-live-chat-app");r&&r.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],rv.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Boolean)],rv.prototype,"menuFocused",void 0);_.A([_.K(),_.B("design:type",Object)],rv.prototype,"data",void 0);_.A([_.J(_.TJ.YtLiveChatItemBehavior),_.B("design:type",_.c2)],rv.prototype,"ytLiveChatItemBehavior",void 0);rv=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],rv);
_.Q(rv,"yt-live-chat-donation-announcement-renderer",function(){if(pp3===void 0){var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;b0V===void 0&&(b0V=document.createElement("template"));var C=b0V;I.call(f,C.content.cloneNode(!0),r.content.firstChild);pp3=r}r=pp3;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var nF3;var dl4,zK4=function(){if(dl4!==void 0)return dl4;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;nF3===void 0&&(nF3=document.createElement("template"));var C=nF3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return dl4=r};var fY=function(){return _.y.apply(this,arguments)||this};
_.t(fY,_.y);_.OC.Object.defineProperties(fY,{template:{configurable:!0,enumerable:!0,get:function(){return zK4()}}});
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],fY.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],fY.prototype,"data",void 0);fY=_.A([_.zX({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],fY);_.Q(fY,"yt-live-chat-empty-feed-view-model",function(){return zK4()},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var ML4;var gFU;var IN=function(){return _.y.apply(this,arguments)||this};
_.t(IN,_.y);IN.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"}}}}}};
_.OC.Object.defineProperties(IN.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var r,f;return{runs:[{text:(r=this.data)==null?void 0:(f=r.channelName)==null?void 0:f.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var r=[],f;if((f=this.data)==null||!f.channelBadges)return r;var I;f=_.E((I=this.data)==null?void 0:I.channelBadges);for(I=f.next();!I.done;I=f.next()){I=_.F(I.value,vc3);var C=void 0,Y=void 0;if((C=I)==null?0:(Y=C.badgeImage)==null?0:Y.sources)C=void 0,Y={liveChatAuthorBadgeRenderer:{tooltip:I.tooltip,accessibility:{accessibilityData:{label:(C=_.F(I.rendererContext,_.U0))==null?void 0:C.label}}}},I.badgeImage.sources[0].clientResource?Y.liveChatAuthorBadgeRenderer.icon=
{iconType:I.badgeImage.sources[0].clientResource.imageName}:Y.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:I.badgeImage.sources},r.push(Y)}return r}}});
_.A([_.K(),_.B("design:type",Object)],IN.prototype,"data",void 0);_.A([_.R("data.channelName"),_.B("design:type",Object),_.B("design:paramtypes",[])],IN.prototype,"channelName",null);_.A([_.R("data.channelBadges"),_.B("design:type",Array),_.B("design:paramtypes",[])],IN.prototype,"channelBadges",null);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],IN.prototype,"ytRendererstamperBehavior",void 0);
IN=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],IN);
_.Q(IN,"yt-live-chat-identity-view-model",function(){if(gFU===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;ML4===void 0&&(ML4=document.createElement("template"));var C=ML4;I.call(f,C.content.cloneNode(!0),r.content.firstChild);gFU=r}r=gFU;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var aaV;var XpX;var N4X;var $lq;var CY=function(){var r=_.y.apply(this,arguments)||this;r.hidden=!1;r.supportsInlineActionButtons=!0;return r};
_.t(CY,_.y);CY.prototype.ready=function(){var r;((r=document.querySelector("yt-live-chat-app"))==null?0:r.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
CY.prototype.dataChanged=function(r){var f=(0,_.AN)(_.e(this.hostElement).querySelector("#detail-text"));f.textContent="";(r==null?0:r.detailText)&&f.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(r.detailText))};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.TJ.YtLiveChatItemBehavior),_.B("design:type",_.c2)],CY.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],CY.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K({observer:"dataChanged"}),_.B("design:type",Object)],CY.prototype,"data",void 0);
_.A([_.K({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.B("design:type",Object)],CY.prototype,"hidden",void 0);CY=_.A([_.U({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],CY);
_.Q(CY,"yt-live-chat-legacy-paid-message-renderer",function(){if($lq===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;N4X===void 0&&(N4X=document.createElement("template"));var C=N4X;I.call(f,C.content.cloneNode(!0),r.content.firstChild);$lq=r}r=$lq;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var FL3;var PqX;var tLV={},YG=function(){return _.rm.apply(this,arguments)||this};
_.t(YG,_.rm);YG.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
YG.prototype.onLiveChatMembershipItemBehaviorClick=YG.prototype.onLiveChatMembershipItemBehaviorClick;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],YG.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],YG.prototype,"data",void 0);_.A([_.kO("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],YG.prototype,"onLiveChatMembershipItemBehaviorClick",null);YG=_.A([_.fx()],YG);
tLV.YtLiveChatMembershipItemBehavior=[YG.prototype,_.D.YtRendererBehavior];var lQ=function(){var r=_.y.apply(this,arguments)||this;r.supportsInlineActionButtons=!0;r.hasPrimaryHeaderText=!1;r.showOnlyHeader=!1;r.authorBadges=[];r.modern=_.N("web_button_rework_with_live");r.buttonOverrides={style:"overlay",type:"filled"};return r};
_.t(lQ,_.y);_.l=lQ.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 r=document.querySelector("yt-live-chat-app");r&&r.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.l.messageChanged=function(){var r=this.data.message,f=(0,_.AN)(_.e(this.hostElement).querySelector("#message"));f.textContent="";r&&f.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(r))};
_.l.computeHasPrimaryHeaderText=function(r){return!(!r||!r.headerPrimaryText)};
_.l.computeShowOnlyHeader=function(r,f){return this.isMessageEmpty(r,f)};
_.l.computeAuthorBadges=function(r){return r.authorBadges||[]};
_.l.isMessageEmpty=function(r,f){return!r||r.empty?!0:!r.message&&!r.inputField&&!f};
_.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 _.e(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.l.inputFocus=function(){var r=this.getInputElement();r&&r.focus()};
_.l.inputInsertEmoji=function(r){var f=this.getInputElement();f&&f.insertEmoji(r)};
_.l.inputMessage=function(){var r=this.getInputElement();return r&&this.data.inputField?(r.completeEmojis(),_.t8(r.liveChatRichMessageInput)):null};
_.l.onFooterButtonClick=function(){this.data.footerButton&&_.kA(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.l.shouldSupportWholeItemClick=function(){return!0};
lQ.prototype.isDeletedChanged=lQ.prototype.isDeletedChanged;lQ.prototype.messageChanged=lQ.prototype.messageChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.TJ.YtLiveChatItemBehavior),_.B("design:type",_.c2)],lQ.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.J(tLV.YtLiveChatMembershipItemBehavior),_.B("design:type",Object)],lQ.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],lQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],lQ.prototype,"data",void 0);_.A([_.K({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.B("design:type",Object)],lQ.prototype,"hasPrimaryHeaderText",void 0);_.A([_.K({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.B("design:type",Object)],lQ.prototype,"showOnlyHeader",void 0);
_.A([_.K({computed:"computeAuthorBadges(data)"}),_.B("design:type",Array)],lQ.prototype,"authorBadges",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],lQ.prototype,"modern",void 0);_.A([_.Bt("data.message"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lQ.prototype,"messageChanged",null);_.A([_.Bt("isDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lQ.prototype,"isDeletedChanged",null);
lQ=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],lQ);
_.Q(lQ,"yt-live-chat-membership-item-renderer",function(){if(PqX===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;FL3===void 0&&(FL3=document.createElement("template"));var C=FL3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);PqX=r}r=PqX;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var T4C;var cTC;var Vu=function(){return _.y.apply(this,arguments)||this};
_.t(Vu,_.y);Vu.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Vu.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Vu.prototype,"data",void 0);Vu=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Vu);
_.Q(Vu,"yt-live-chat-mode-change-message-renderer",function(){if(cTC===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;T4C===void 0&&(T4C=document.createElement("template"));var C=T4C;I.call(f,C.content.cloneNode(!0),r.content.firstChild);cTC=r}r=cTC;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var WLB;var LLC;var ES=function(){return _.y.apply(this,arguments)||this};
_.t(ES,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.TJ.YtLiveChatItemBehavior),_.B("design:type",_.c2)],ES.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ES.prototype,"data",void 0);ES=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],ES);
_.Q(ES,"yt-live-chat-moderation-message-renderer",function(){if(LLC===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;WLB===void 0&&(WLB=document.createElement("template"));var C=WLB;I.call(f,C.content.cloneNode(!0),r.content.firstChild);LLC=r}r=LLC;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var mlT;var eKg;var SW=function(){var r=_.y.apply(this,arguments)||this;r.modern=_.N("web_button_rework");return r};
_.t(SW,_.y);SW.prototype.onClick=function(){var r;if((r=this.data)!=null&&r.onClickCommand){var f;_.qv.instance.resolveCommand((f=this.data)==null?void 0:f.onClickCommand)}};
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],SW.prototype,"modern",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.FT),_.B("design:type",Object)],SW.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.J(_.TJ.YtLiveChatItemBehavior),_.B("design:type",_.c2)],SW.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],SW.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],SW.prototype,"data",void 0);SW=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],SW);
_.Q(SW,"yt-live-chat-offer-click-count-message-renderer",function(){if(eKg===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;mlT===void 0&&(mlT=document.createElement("template"));var C=mlT;I.call(f,C.content.cloneNode(!0),r.content.firstChild);eKg=r}r=eKg;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var JTV;var xG=function(){return _.y.apply(this,arguments)||this};
_.t(xG,_.y);_.A([_.K(),_.B("design:type",Object)],xG.prototype,"data",void 0);xG=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],xG);
_.Q(xG,"yt-live-chat-placeholder-item-renderer",function(){if(JTV===void 0){var r=document.createElement("template");_.c(r,"\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");r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);JTV=r}r=JTV;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var jT3;var H0_;var i04=new JQ(7),hW=function(){var r=_.y.apply(this,arguments)||this;r.data={};return r};
_.t(hW,_.y);hW.prototype.dataChanged=function(){var r;((r=this.data)==null?0:r.class)&&_.ob(this.hostElement,this.data.class,!0);var f;((f=this.oldData)==null?0:f.class)&&_.ob(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
hW.prototype.computeTimestampString=function(r){return i04.format(new Date(r/1E3))};
hW.prototype.dataChanged=hW.prototype.dataChanged;_.A([_.K(),_.B("design:type",Object)],hW.prototype,"data",void 0);_.A([_.K({computed:"computeTimestampString(data.timestampUsec)"}),_.B("design:type",String)],hW.prototype,"timestampString",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hW.prototype,"dataChanged",null);hW=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],hW);
_.Q(hW,"yt-live-chat-server-error-message",function(){if(H0_===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;jT3===void 0&&(jT3=document.createElement("template"));var C=jT3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);H0_=r}r=H0_;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var RKs;var vFg;var wv=function(){var r=_.y.apply(this,arguments)||this;r.defaultToFilledIcon=!1;return r};
_.t(wv,_.y);wv.prototype.computeHasPrimaryColorIcon=function(r){return r==="SPARK"||r==="SPONSORSHIP_STAR"};
wv.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.TJ.YtLiveChatItemBehavior),_.B("design:type",_.c2)],wv.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],wv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],wv.prototype,"defaultToFilledIcon",void 0);_.A([_.K(),_.B("design:type",Object)],wv.prototype,"data",void 0);
_.A([_.K({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.B("design:type",Boolean)],wv.prototype,"hasPrimaryColorIcon",void 0);wv=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],wv);
_.Q(wv,"yt-live-chat-viewer-engagement-message-renderer",function(){if(vFg===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;RKs===void 0&&(RKs=document.createElement("template"));var C=RKs;I.call(f,C.content.cloneNode(!0),r.content.firstChild);vFg=r}r=vFg;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var KL4;var bQ=function(){var r=_.y.apply(this,arguments)||this;r.modernUpdate=!1;r.buttonStyle="overlay";r.buttonType="filled";return r};
_.t(bQ,_.y);bQ.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
bQ.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],bQ.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],bQ.prototype,"modernUpdate",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],bQ.prototype,"buttonStyle",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],bQ.prototype,"buttonType",void 0);
bQ=_.A([_.U({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],bQ);
_.Q(bQ,"ytd-ad-hover-text-button-renderer",function(){if(KL4!==void 0)return KL4;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return KL4=r},{mode:1});var yTC;var pY=function(){var r=_.y.apply(this,arguments)||this;r.buttonOverrides={size:"XS"};r.modern=_.N("web_button_rework");return r};
_.t(pY,_.y);pY.prototype.onHelpTap=function(r){this.data&&this.data.informationDialog&&(_.kA(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),r.preventDefault(),r.stopPropagation())};
_.A([_.K(),_.B("design:type",Object)],pY.prototype,"buttonOverrides",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],pY.prototype,"modern",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],pY.prototype,"data",void 0);pY=_.A([_.U({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],pY);
_.Q(pY,"ytd-live-chat-purchased-product-message-renderer",function(){if(yTC!==void 0)return yTC;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return yTC=r},{mode:1});var UlD;var sT4;var nY=function(){var r=_.y.apply(this,arguments)||this;r.isContainerDeleted=!1;return r};
_.t(nY,_.y);nY.prototype.onContextMenuClick=function(r){this.ytLiveChatItemBehavior.showContextMenu(r)};
nY.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))};
nY.prototype.isContainerDeletedChanged=nY.prototype.isContainerDeletedChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],nY.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.TJ.YtLiveChatItemBehavior),_.B("design:type",_.c2)],nY.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],nY.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],nY.prototype,"isContainerDeleted",void 0);
_.A([_.K(),_.B("design:type",String)],nY.prototype,"deletedStateMessage",void 0);_.A([_.Bt("isContainerDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nY.prototype,"isContainerDeletedChanged",null);nY=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],nY);
_.Q(nY,"ytd-sponsorships-live-chat-header-renderer",function(){if(sT4!==void 0)return sT4;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return sT4=r},{mode:1});var dv=function(){var r=_.y.apply(this,arguments)||this;r.modern=_.N("web_button_rework_with_live");r.buttonOverrides={style:"overlay",type:"filled"};return r};
_.t(dv,_.y);dv.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]]"}}}}}};
dv.prototype.onCtaButtonClick=function(){var r,f=_.F((r=this.data)==null?void 0:r.optInPrompt,_.Ll);if(r=this.maybeGetButtonCommand(f)){var I;(I=_.IB())==null||I.clickCommand(r)}};
dv.prototype.maybeGetButtonCommand=function(r){return!r||!r.command||_.F(r.command,h6V)===void 0&&_.F(r.command,xA_)===void 0?null:r.command};
dv.prototype.shouldHideOptinPrompt=function(r,f){return!r||f};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],dv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.TJ.YtLiveChatItemBehavior),_.B("design:type",_.c2)],dv.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],dv.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],dv.prototype,"modern",void 0);dv=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],dv);
_.Q(dv,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(UlD!==void 0)return UlD;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return UlD=r},{mode:1});var O0_;var zD=function(){return _.y.apply(this,arguments)||this};
_.t(zD,_.y);zD.prototype.onContextMenuClick=function(r){this.ytLiveChatItemBehavior.showContextMenu(r)};
zD.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))};
zD.prototype.isDeletedChanged=zD.prototype.isDeletedChanged;_.A([_.J(_.TJ.YtLiveChatItemBehavior),_.B("design:type",_.c2)],zD.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],zD.prototype,"data",void 0);_.A([_.Bt("isDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zD.prototype,"isDeletedChanged",null);zD=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],zD);
_.Q(zD,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(O0_!==void 0)return O0_;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return O0_=r},{mode:1});var MM=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return r};
_.t(MM,_.y);_.l=MM.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(r){_.F(r,Wl8)?this.handleMarkChatItemAsDeletedAction(_.F(r,Wl8)):_.F(r,cBT)&&this.handleRemoveChatItemAction(_.F(r,cBT))};
_.l.handleLiveChatActions=function(r){r.forEach(this.handleLiveChatAction,this)};
_.l.handleMarkChatItemAsDeletedAction=function(r){var f=this,I;((I=this.data)==null?0:I.items)&&this.data.items.forEach(function(C,Y){var V=Object.keys(C)[0];Object.values(C)[0].id===r.targetItemId&&f.markAsDeleted("data.items",Y,V,r.deletedStateMessage,r.showOriginalContentMessage)})};
_.l.handleRemoveChatItemAction=function(r){var f=this,I;((I=this.data)==null?0:I.items)&&this.data.items.forEach(function(C,Y){Object.values(C)[0].id===r.targetItemId&&f.splice("data.items",Y,1)})};
_.l.markAsDeleted=function(r,f,I,C,Y){r=[r,f,I].join(".");this.set(r+".deletedStateMessage",C);this.set(r+".showOriginalContentMessage",Y)};
_.A([_.K(),_.B("design:type",Object)],MM.prototype,"data",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],MM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],MM.prototype,"ytActionHandlerBehavior",void 0);MM=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],MM);
_.Q(MM,"yt-live-chat-item-display-list-renderer",function(){if(XpX===void 0){var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;aaV===void 0&&(aaV=document.createElement("template"));var C=aaV;I.call(f,C.content.cloneNode(!0),r.content.firstChild);XpX=r}r=XpX;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var oF4;var QTX,AT4=function(){if(QTX!==void 0)return QTX;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;oF4===void 0&&(oF4=document.createElement("template"));var C=oF4;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return QTX=r};var gv=function(){var r=_.y.apply(this,arguments)||this;r.isHeader=!1;return r};
_.t(gv,_.y);gv.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.OC.Object.defineProperties(gv,{template:{configurable:!0,enumerable:!0,get:function(){return AT4()}}});
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],gv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],gv.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],gv.prototype,"isHeader",void 0);gv=_.A([_.zX({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],gv);_.Q(gv,"yt-live-chat-item-display-renderer",function(){return AT4()},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var Z0s,GrU,Dl3,uYV;
Z0s={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}};GrU={home:"eohps",search:"eosps",watch:"eowps"};_.kr4=["watch","search","home"];
_.aN=function(){this.JSC$12044_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12044_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Lz("PRECONSTRUCTION_DELAY",0);this.signals_=_.mZ();this.targetPage_=""};
_.aN.prototype.init=function(r,f){r=r===void 0?"":r;f=f===void 0?null:f;if(this.JSC$12044_isInitialized_)this.abort();else if(this.JSC$12044_isInitialized_=!0,r&&_.B43(this,r),f){var I=_.eN(this.signals_,"pcl")?0:10,C=function(){for(var Y=0,V;V=_.kr4[Y++];)V!=r&&V!=f&&this.pendingPages_.push(V);_.q8D(this)}.bind(this);
this.signals_.parkOrScheduleJob(C,I,"pcl")}};
_.aN.prototype.abort=function(){this.fragmentJobId_&&(_.F_.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);uYV(this)};
_.B43=function(r,f){r.JSC$12044_isInitialized_&&!r.targetPage_&&(r.targetPage_=f,Dl3(r,f),r.isInitialPass_=!1,Dl3(r,f),r.signals_.processSignal(GrU[r.targetPage_]),uYV(r),_.q8D(r))};
_.q8D=function(r){r.pendingPages_.length&&!r.pagePreparerJobId_&&(r.pagePreparerJobId_=_.dp(_.F_,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.B43(this,this.pendingPages_.shift())}.bind(r),r.DEFAULT_DELAY_))};
Dl3=function(r,f){if(f=Z0s[f])for(var I in f){var C=!1,Y=I;I.charAt(0)=="~"&&(C=!0,Y=I.substring(1));var V=f[I];V=typeof V=="object"?V:{count:V};f[I]=V;V.componentName=Y;V.count>0&&(r.isInitialPass_?C||r.isSeenDuringInitialPass_[Y]||(r.JSC$12044_queue_.push({componentName:Y,count:1,signals:V.signals}),r.isSeenDuringInitialPass_[Y]=!0,V.count--):r.JSC$12044_queue_.push(V))}};
uYV=function(r){r.JSC$12044_queue_.length=0;r.targetPage_="";r.isInitialPass_=!0;r.signals_.processSignal("eop")};
_.aN.getInstance=function(){return _.CG(_.aN)};var rp8=function(){this.signals=_.mZ();this.init()};
rp8.prototype.startPreconstruction=function(){_.aN.getInstance().init(_.mO("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
rp8.prototype.init=function(){frD(this);window.Polymer&&GO4&&dzm();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var r=_.Yq.ytcsi;if(r&&r.gt&&(r=r.gt())&&r.tick&&(r.tick.aft>0||r.tick.pbs>0)&&(_.mO("IS_HOMEPAGE_COLD")||_.mO("IS_RESULTS_PAGE_COLD")||_.mO("IS_WATCH_PAGE_COLD"))){Ir4(this);break a}X1c(xrw,this.onNotifications,this)}};
var frD=function(r){var f=function(){r.signals.processSignal("dl")};
document.readyState==="complete"?(_.Hw(Error("sh"),"WARNING"),f()):_.DGK(window,"load",f)};
rp8.prototype.onNotifications=function(r){r.timer||(_.mO("IS_HOMEPAGE_COLD")||_.mO("IS_RESULTS_PAGE_COLD")||_.mO("IS_WATCH_PAGE_COLD"))&&Ir4(this)};
var Ir4=function(r){r.signals.parkOrScheduleJob(function(){r.signals.processSignal("eocs")},10,"eor")};
new rp8;var XI,NM=function(){return _.rm.apply(this,arguments)||this};
_.t(NM,_.rm);_.l=NM.prototype;_.l.enableActiveViewMeasurement=function(r){if(this.isActiveViewEnabled(r)){var f=this.getUrlPrefixesFromCommand(r.viewableCommands);r=this.getUrlPrefixesFromCommand(r.endOfSessionCommands);XI||(XI=new iZU(this.getVersion()));vDd(XI,this.hostElement);K7c(XI,this.hostElement,f,r)}};
_.l.stopActiveViewMeasurement=function(){XI&&vDd(XI,this.hostElement)};
_.l.isActiveViewEnabled=function(r){return!!r&&(this.hasAtLeastOneUrl(r.viewableCommands)||this.hasAtLeastOneUrl(r.endOfSessionCommands))};
_.l.hasAtLeastOneUrl=function(r){return!!r&&r.length>0&&r[0].loggingUrls!=null&&r[0].loggingUrls.length>0};
_.l.getVersion=function(){var r=_.Lz("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(r==null?void 0:r.length)===2?r[1]:null};
_.l.getUrlPrefixesFromCommand=function(r){if(!r)return[];var f=[];r=_.E(r);for(var I=r.next();!I.done;I=r.next())if(I=I.value,I.loggingUrls){I=_.E(I.loggingUrls);for(var C=I.next();!C.done;C=I.next())C=C.value,C.baseUrl&&f.push(C.baseUrl)}return f};
NM=_.A([_.fx()],NM);var $G=[NM.prototype];var FI=function(){return _.rm.apply(this,arguments)||this};
_.t(FI,_.rm);_.OC.Object.defineProperties(FI.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.N("enable_entity_store_from_dependency_injection")?_.Lx():_.K2()}}});
FI=_.A([_.fx()],FI);_.PH=[ph.prototype,FI.prototype];var CsD=["ytd-rich-shelf-renderer"],tW=function(){var r=_.rm.apply(this,arguments)||this;r._noAccessors=!0;r.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";r.followUpDialogPromise=null;r.followUpDialogPromiseResolve=null;r.followUpDialogPromiseReject=null;return r};
_.t(tW,_.rm);_.l=tW.prototype;_.l.dismissibleItemIsDismissedChanged_=function(r){_.N("kevlar_fluid_dismiss")&&(r?_.kA(this.hostElement,"yt-dismissible-item-dismissed"):_.kA(this.hostElement,"yt-dismissible-item-undismissed"))};
_.l.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.l.dismissibleItemReset_=function(){var r=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 _.lz(function(f,I){r.followUpDialogPromiseResolve=f;r.followUpDialogPromiseReject=I});
_.kA(this.hostElement,"yt-enable-lockup-interaction")};
_.l.dismissibleItemOnYtServiceRequestSent_=function(r,f){f.actions&&this.dismissibleItemProcessActions(f.actions,r)};
_.l.dismissibleItemOnRequestSent=function(r){if(_.N("web_button_rework"))for(var f=_.E(r.detail),I=f.next();!I.done;I=f.next()){var C=void 0;(I=(C=_.F(I.value,_.YI))==null?void 0:C.actions)&&this.dismissibleItemProcessActions(I,r)}};
_.l.dismissibleItemOnCommandSent=function(r,f){f&&this.dismissibleItemProcessActions(f,r)};
_.l.setAndGetDismissedContentId=function(r){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+r};
_.l.replayDismissAction=function(r){this.dismissibleItemProcessActions([r])};
_.l.dismissibleItemProcessActions=function(r,f){for(var I=0;I<r.length;I++){var C=r[I],Y=void 0;((Y=_.F(C,_.Il))==null?0:Y.commands)&&this.dismissibleItemProcessActions(_.F(C,_.Il).commands,f);if(_.F(C,_.da)){if(Y=_.F(C,_.da),!Y.replaceParentSection||CsD.includes(this.hostElement.nodeName.toLowerCase()))_.N("web_see_fewer_shorts_reactive_dismissal")&&Y.groupDismissal&&B4K(this,Y.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(Y),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.hv("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:C})),C=void 0,(C=f)==null||C.stopPropagation()}else if(_.F(C,vpq))this.dismissibleItemHandleHideEnclosingAction_(),C=void 0,(C=f)==null||C.stopPropagation();else if(_.F(C,Be3))_.N("web_see_fewer_shorts_reactive_dismissal")&&(C=_.F(C,Be3),Y=void 0,((Y=C)==null?0:Y.targetGroupId)&&B4K(this,{targetGroupId:C.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.hv("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),C=void 0,(C=f)==null||C.stopPropagation();else if(_.F(C,_.YI))(C=_.F(C,_.YI).actions)&&_.rX(this.hostElement,C,this.hostElement),C=void 0,(C=f)==null||C.stopPropagation();else{var V=Y=void 0;((Y=_.F(C,_.J7))==null?void 0:Y.signal)!=="TELL_US_WHY"||((V=_.F(C,_.J7))==null?0:V.targetId)&&_.N("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),C=void 0,(C=f)==null||C.stopPropagation())}}};
_.l.dismissibleItemOnYtServiceRequestCompleted_=function(r,f){var I=this.get("feedbackResponses.0.followUpDialog",f.data);I?this.followUpDialogPromiseResolve(I):f.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(f.actions,r)};
_.l.dismissibleItemHandleReplaceEnclosingAction_=function(r){this.dismissedRenderer=r.item;this.isDismissed=!0;var f=null;(f=_.e(this.hostElement).querySelector("#dismissed"))&&_.UC(this,function(){_.y9(f)});
_.kA(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.l.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.l.dismissibleItemHandleUndoFeedbackAction_=function(){_.kA(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.l.dismissibleItemHandleTellUsWhySignalAction_=function(){var r=this;this.followUpDialogPromise.then(function(f){r.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:f}})})};
tW.prototype.dismissibleItemOnYtServiceRequestCompleted_=tW.prototype.dismissibleItemOnYtServiceRequestCompleted_;tW.prototype.dismissibleItemOnCommandSent=tW.prototype.dismissibleItemOnCommandSent;tW.prototype.dismissibleItemOnRequestSent=tW.prototype.dismissibleItemOnRequestSent;tW.prototype.dismissibleItemOnYtServiceRequestSent_=tW.prototype.dismissibleItemOnYtServiceRequestSent_;tW.prototype.dismissibleItemDataChanged_=tW.prototype.dismissibleItemDataChanged_;
tW.prototype.dismissibleItemIsDismissedChanged_=tW.prototype.dismissibleItemIsDismissedChanged_;_.A([_.J(_.RO),_.B("design:type",Object)],tW.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],tW.prototype,"ytdReduxBehavior",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],tW.prototype,"isDismissed",void 0);_.A([_.K(),_.B("design:type",Object)],tW.prototype,"dismissedRenderer",void 0);
_.A([_.Bt("isDismissed"),_.B("design:type",Function),_.B("design:paramtypes",[Boolean]),_.B("design:returntype")],tW.prototype,"dismissibleItemIsDismissedChanged_",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tW.prototype,"dismissibleItemDataChanged_",null);
_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],tW.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.A([_.kO("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],tW.prototype,"dismissibleItemOnRequestSent",null);
_.A([_.kO("yt-dismissible-item-action"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Array]),_.B("design:returntype")],tW.prototype,"dismissibleItemOnCommandSent",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],tW.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);tW=_.A([_.fx()],tW);_.TD=[_.RO,_.PH,tW.prototype];var cH=function(){var r=_.rm.apply(this,arguments)||this;r.disableGridStateAware=!1;r.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};r.currentGridClass="";return r};
_.t(cH,_.rm);cH.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.UC(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var r=this.gridStateAwareGetElement();_.ob(r,"grid",!0)}};
cH.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
cH.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.e(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
cH.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var r="grid-disabled";else{r=_.SJ4.getInstance();var f=this.get("pageSubtype");r=f&&lM3.includes(f)?"grid-disabled":r.currentSnapState_?r.currentSnapState_.className:null}(f=this.gridStateAwareGetElement())&&r!==this.currentGridClass&&(r&&_.ob(f,r,!0),this.currentGridClass&&_.ob(f,this.currentGridClass,!1),this.currentGridClass=r)};
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],cH.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",String)],cH.prototype,"gridStateAwareSizingElementSelector",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],cH.prototype,"disableGridStateAware",void 0);cH=_.A([_.fx()],cH);_.WH=[cH.prototype,_.o_.YtActionHandlerBehavior];_.LY=new _.Go("GUIDE_TOKEN");var eW;_.mB={};eW=function(){var r=_.rm.apply(this,arguments)||this;r.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 r};
_.t(eW,_.rm);_.l=eW.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 r=_.a().resolve(_.ZY(_.LY));r&&(this.guidePersistentAndVisible=r.getGuidePersistentAndVisible(),this.activeEndpoint=r.getActiveEndpoint(),this.guideOpened=r.getGuideOpened(),this.miniGuideVisible=r.getMiniGuideVisible())};
_.l.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.l.handleGuideStateAction=function(r){this.guidePersistentAndVisible=r};
_.l.handleMiniGuideStateAction=function(r){this.miniGuideVisible=r};
_.l.handleGuideOpenedAction=function(r){this.guideOpened=r};
_.l.handleActiveEndpointAction=function(r){this.activeEndpoint=r};
eW.prototype.onActiveEndpointChange=eW.prototype.onActiveEndpointChange;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],eW.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],eW.prototype,"guidePersistentAndVisible",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],eW.prototype,"miniGuideVisible",void 0);_.A([_.K(),_.B("design:type",Object)],eW.prototype,"activeEndpoint",void 0);
_.A([_.Bt("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eW.prototype,"onActiveEndpointChange",null);_.A([_.K(),_.B("design:type",Boolean)],eW.prototype,"guideOpened",void 0);eW=_.A([_.fx()],eW);_.mB.YtdGuideStateAwareBehavior=[];_.mB.YtdGuideStateAwareBehavior.push(eW.prototype,_.o_.YtActionHandlerBehavior);var YcU=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],JW=function(){var r=_.rm.apply(this,arguments)||this;r.hoverJobId=0;r.JSC$12075_touched=!1;return r};
_.t(JW,_.rm);_.l=JW.prototype;_.l.created=function(){this.useExpandableTooltip=!YcU.includes(this.is)};
_.l.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.l.detached=function(){this.useExpandableTooltip=!1};
_.l.lockupOnDown=function(r){this.interactionElement&&!_.iB(_.JN(r),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.l.lockupOnUp=function(r){this.interactionElement&&!_.iB(_.JN(r),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.l.onTouchStart=function(){this.JSC$12075_touched=!0};
_.l.lockupOnMouseEnter=function(){var r=this,f=_.Bw("kevlar_lockup_hover_delay",-1);this.JSC$12075_touched&&f>=0?(_.F_.cancelJob(this.hoverJobId),this.hoverJobId=_.F_.addJob(function(){r.lockupIsHovered=!0},8,f),this.JSC$12075_touched=!1):this.lockupIsHovered=!0};
_.l.lockupOnMouseLeave=function(){this.hoverJobId&&(_.F_.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.l.lockupOnPopupClosed=function(r,f){var I;((I=f.popupRenderer)==null?void 0:I.is)==="ytd-menu-popup-renderer"&&(r=f.popupRenderer.veData,f=_.t1(),r&&f&&_.HF(f,[r]))};
_.l.lockupOnLockupRequested=function(r){var f=r.detail.videoIds[0],I;r.detail&&f===((I=this.data)==null?void 0:I.videoId)&&(r.detail.returnValue=[this.data])};
_.l.lockupOnYtServiceRequestSent=function(r,f){if(r=f.actions)for(var I=0;I<r.length;I++){var C=r[I];if(C.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&f.ajaxPromise){var Y=void 0,V=(Y=_.F(f.endpoint,_.TK))==null?void 0:Y.playlistId;Y=void 0;C=(Y=C.removedVideoId)!=null?Y:"";m5q(_.jN(),C,V)}else C.action==="ACTION_REMOVE_VIDEO"&&f.ajaxPromise&&(V=void 0,C=(V=C.setVideoId)!=null?V:"",_.erU(_.jN(),C))}};
_.l.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.l.lockupOnLockupEnabled=function(){if(!this.$){var r=_.a().resolve(_.y2).getCurrentPage(),f=this.getParentRenderer?this.getParentRenderer():void 0;_.t7(new _.nf("component not ready",this.is,this.isAttached,r==null?void 0:r.is,f==null?void 0:f.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
JW.prototype.lockupOnLockupEnabled=JW.prototype.lockupOnLockupEnabled;JW.prototype.lockupOnLockupDisabled=JW.prototype.lockupOnLockupDisabled;JW.prototype.lockupOnYtServiceRequestSent=JW.prototype.lockupOnYtServiceRequestSent;JW.prototype.lockupOnLockupRequested=JW.prototype.lockupOnLockupRequested;JW.prototype.lockupOnPopupClosed=JW.prototype.lockupOnPopupClosed;JW.prototype.lockupOnMouseLeave=JW.prototype.lockupOnMouseLeave;JW.prototype.lockupOnMouseEnter=JW.prototype.lockupOnMouseEnter;
JW.prototype.onTouchStart=JW.prototype.onTouchStart;JW.prototype.lockupOnUp=JW.prototype.lockupOnUp;JW.prototype.lockupOnDown=JW.prototype.lockupOnDown;_.A([_.K(),_.B("design:type",Object)],JW.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],JW.prototype,"lockupIsHovered",void 0);_.A([_.K(),_.B("design:type",Boolean)],JW.prototype,"lockupTouchTriggered",void 0);_.A([_.K(),_.B("design:type",Boolean)],JW.prototype,"useExpandableTooltip",void 0);
_.A([_.uA("#interaction"),_.B("design:type",Object)],JW.prototype,"interactionElement",void 0);_.A([_.kO("down"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],JW.prototype,"lockupOnDown",null);_.A([_.kO("up"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],JW.prototype,"lockupOnUp",null);
_.A([_.kO("touchstart"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JW.prototype,"onTouchStart",null);_.A([_.kO("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JW.prototype,"lockupOnMouseEnter",null);_.A([_.kO("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JW.prototype,"lockupOnMouseLeave",null);
_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],JW.prototype,"lockupOnPopupClosed",null);_.A([_.kO("yt-lockup-requested"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],JW.prototype,"lockupOnLockupRequested",null);
_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],JW.prototype,"lockupOnYtServiceRequestSent",null);_.A([_.kO("yt-disable-lockup-interaction"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JW.prototype,"lockupOnLockupDisabled",null);
_.A([_.kO("yt-enable-lockup-interaction"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JW.prototype,"lockupOnLockupEnabled",null);JW=_.A([_.fx()],JW);_.jW=[JW.prototype];_.lrC={YtdReduxBehavior:[]};_.lrC.YtdReduxBehavior.push.apply(_.lrC.YtdReduxBehavior,_.PH);var HH=function(){var r=_.rm.apply(this,arguments)||this;r._noAccessors=!0;r.disableNowPlaying=!1;r.disableTooltips=!1;r.useHoveredProperty=!1;r.hovered=!1;r.isThumbnailHovered_=!1;r.addBackground=_.N("kevlar_thumbnail_bg");r.nowPlaying=!1;r.disableRounding=!1;r.size="small";return r};
_.t(HH,_.rm);_.l=HH.prototype;_.l.computeThumbnailOverlaySidePanelWidth_=function(r,f){return r-f};
_.l.computeSize=function(r,f){if(!this.disableRounding){if(!r&&!f)return"small";r=Math.max(r||0,f||0);return r>=256?"large":r>=96?"medium":"small"}};
_.l.computeFinalHoveredState_=function(r,f,I){return this.nowPlaying?!1:_.N("kevlar_thumbnail_fluid")&&r?f:I};
_.l.computeHoverOverlays_=function(r,f){return r&&f?f:void 0};
_.l.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.l.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.l.checkMiniplayer_=function(){var r;if(((r=this.data)==null?0:r.playlistSetVideoId)&&_.N("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{r=_.xP();var f=r.currentEndpoint;!this.disableNowPlaying&&f&&_.F(f,_.vj)&&this.data?(f=_.F(f,_.vj),this.nowPlaying=this.data.playlistId?f.playlistId===this.data.playlistId:f.videoId===this.data.videoId,this.isVideoPlaying=r==null?void 0:r.isVideoPlaying):this.nowPlaying=!1}};
HH.prototype.checkMiniplayer_=HH.prototype.checkMiniplayer_;HH.prototype.onMouseLeave_=HH.prototype.onMouseLeave_;HH.prototype.onMouseEnter_=HH.prototype.onMouseEnter_;HH.prototype.computeHoverOverlays_=HH.prototype.computeHoverOverlays_;HH.prototype.computeFinalHoveredState_=HH.prototype.computeFinalHoveredState_;HH.prototype.computeSize=HH.prototype.computeSize;HH.prototype.computeThumbnailOverlaySidePanelWidth_=HH.prototype.computeThumbnailOverlaySidePanelWidth_;
_.A([_.J(_.PH),_.B("design:type",Object)],HH.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],HH.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Number)],HH.prototype,"height",void 0);_.A([_.K(),_.B("design:type",Boolean)],HH.prototype,"bottomSidePanel",void 0);_.A([_.K(),_.B("design:type",Number)],HH.prototype,"width",void 0);_.A([_.K(),_.B("design:type",Object)],HH.prototype,"disableNowPlaying",void 0);
_.A([_.K({selector:_.Nj}),_.B("design:type",Boolean)],HH.prototype,"miniplayerIsActive",void 0);_.A([_.K(),_.B("design:type",Object)],HH.prototype,"disableTooltips",void 0);_.A([_.K(),_.B("design:type",Object)],HH.prototype,"useHoveredProperty",void 0);_.A([_.K(),_.B("design:type",Object)],HH.prototype,"hovered",void 0);_.A([_.K(),_.B("design:type",Object)],HH.prototype,"isThumbnailHovered_",void 0);
_.A([_.K({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.B("design:type",Boolean)],HH.prototype,"finalHoveredState_",void 0);_.A([_.K({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.B("design:type",Number)],HH.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],HH.prototype,"addBackground",void 0);
_.A([_.K({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.B("design:type",Object)],HH.prototype,"hoverOverlays_",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],HH.prototype,"nowPlaying",void 0);_.A([_.K(),_.B("design:type",Boolean)],HH.prototype,"isVideoPlaying",void 0);_.A([_.K(),_.B("design:type",Object)],HH.prototype,"disableRounding",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.B("design:type",Object)],HH.prototype,"size",void 0);_.A([_.kO("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HH.prototype,"onMouseEnter_",null);_.A([_.kO("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HH.prototype,"onMouseLeave_",null);
_.A([_.Bt("data","disableNowPlaying","miniplayerIsActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HH.prototype,"checkMiniplayer_",null);HH=_.A([_.fx()],HH);var VGX=[HH.prototype];_.iQ={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(r,f){return r+":"+_.S3(f)},
getPlayerListener_:function(r,f,I){r=this.getPlayerListenerKey_(r,f);f=this.playerListeners_.get(r);I&&this.playerListeners_.delete(r);return f},
savePlayerListener_:function(r,f){var I=f.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(r,f),I);return I},
listenToPlayerEvent:function(r,f,I){I=this.savePlayerListener_(f,I);r.addEventListener(f,I)},
listenToPlayerEvents:function(r,f){f.forEach(function(I,C){this.listenToPlayerEvent(r,C,I)}.bind(this))},
unlistenFromPlayerEvent:function(r,f,I){I=this.getPlayerListener_(f,I,!0);r.removeEventListener(f,I)},
unlistenFromPlayerEvents:function(r,f){f.forEach(function(I,C){this.unlistenFromPlayerEvent(r,C,I)}.bind(this))}}};
_.RN=function(){};_.ETq=new _.Go("PLAYER_API_TOKEN");var frR=!1,lrq,CsR=!1,ETE;var Q2=function(r,f,I,C,Y){_.Mu.call(this);var V=this;this.playerId=f;this.webPlayerContextConfig=C;this.fsr=Y;this.bMU=!1;this.api={};this.mKj=this.jrw=null;this.xcY=new _.EH;this.d4={};this.e6u=this.w0Y=this.elementId=this.aAT=this.config=null;this.ipS=!1;this.a4=this.ysf=null;this.eRZ={};this.hSc=["onReady"];this.lastError=null;this.mPB=NaN;this.bke={};this.bvb=0;this.zg=this.targetElement=r;_.V$(this,this.xcY);Sc8(this);I?this.bvb=setTimeout(function(){V.loadNewVideoConfig(I)},0):C&&(x$4(this),
hp3(this))};
_.t(Q2,_.Mu);Q2.prototype.getId=function(){return this.playerId};
Q2.prototype.loadNewVideoConfig=function(r){if(!this.isDisposed()){this.bvb&&(clearTimeout(this.bvb),this.bvb=0);var f=r||{};f instanceof Ub3||(f=new Ub3(f));this.config=f;this.setConfig(r);hp3(this);this.isReady()&&w53(this)}};
var x$4=function(r){var f;r.webPlayerContextConfig?f=r.webPlayerContextConfig.rootElementId:f=r.config.attrs.id;r.elementId=f||r.elementId;r.elementId==="video-player"&&(r.elementId=r.playerId,r.webPlayerContextConfig?r.webPlayerContextConfig.rootElementId=r.playerId:r.config.attrs.id=r.playerId);var I;((I=r.zg)==null?void 0:I.id)===r.elementId&&(r.elementId+="-player",r.webPlayerContextConfig?r.webPlayerContextConfig.rootElementId=r.elementId:r.config.attrs.id=r.elementId)};
Q2.prototype.setConfig=function(r){this.aAT=r;this.config=bMB(r);x$4(this);if(!this.w0Y){var f;this.w0Y=p5s(this,((f=this.config.args)==null?void 0:f.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var I;if((I=this.config)==null?0:I.attrs)r=this.config.attrs,(f=r.width)&&this.zg&&(this.zg.style.width=JJ(Number(f)||f,!0)),(r=r.height)&&this.zg&&(this.zg.style.height=JJ(Number(r)||r,!0))};
var w53=function(r){if(r.config&&r.config.loaded!==!0)if(r.config.loaded=!0,!r.config.args||r.config.args.autoplay!=="0"&&r.config.args.autoplay!==0&&r.config.args.autoplay!==!1){var f;r.api.loadVideoByPlayerVars((f=r.config.args)!=null?f:null)}else r.api.cueVideoByPlayerVars(r.config.args)},d$3=function(r){var f=!0,I=r.getPlayerElement();
I&&r.config&&(f=I.dataset.version===nTs(r));return f&&!!_.jH("yt.player.Application.create")},hp3=function(r){if(!r.isDisposed()&&!r.ipS){var f=d$3(r);
if(f&&(r.getPlayerElement()?"html5":null)==="html5")r.e6u="html5",r.isReady()||zp_(r);else if(MG3(r),r.e6u="html5",f&&r.a4&&r.targetElement)r.targetElement.appendChild(r.a4),zp_(r);else{r.config&&(r.config.loaded=!0);var I=!1;r.ysf=function(){I=!0;var C=gTD(r,"player_bootstrap_method")?_.jH("yt.player.Application.createAlternate")||_.jH("yt.player.Application.create"):_.jH("yt.player.Application.create");var Y=r.config?bMB(r.config):void 0;C&&C(r.targetElement,Y,r.webPlayerContextConfig,r.fsr);zp_(r)};
r.ipS=!0;f?r.ysf():(_.m0(nTs(r),r.ysf),(f=arV(r))&&Llq(f||""),X5X(r)&&!I&&_.OH("yt.player.Application.create",null))}}};
Q2.prototype.getPlayerElement=function(){var r=_.oC(document,this.elementId);!r&&this.zg&&this.zg.querySelector&&(r=this.zg.querySelector("#"+this.elementId));return r};
var zp_=function(r){if(!r.isDisposed()){var f=r.getPlayerElement(),I=!1;f&&f.getApiInterface&&f.getApiInterface()&&(I=!0);if(I){r.ipS=!1;if(!gTD(r,"html5_remove_not_servable_check_killswitch")){var C;if((f==null?0:f.isNotServable)&&r.config&&(f==null?0:f.isNotServable((C=r.config.args)==null?void 0:C.video_id)))return}N73(r)}else r.mPB=setTimeout(function(){zp_(r)},50)}},N73=function(r){Sc8(r);
r.bMU=!0;var f=r.getPlayerElement();if(f){r.jrw=$$C(r,f,"addEventListener");r.mKj=$$C(r,f,"removeEventListener");var I=f.getApiInterface();I=I.concat(f.getInternalApiInterface());for(var C=r.api,Y=0;Y<I.length;Y++){var V=I[Y];C[V]||(C[V]=$$C(r,f,V))}}for(var S in r.d4)r.d4.hasOwnProperty(S)&&r.jrw&&r.jrw(S,r.d4[S]);w53(r);r.w0Y&&r.w0Y(r.api);r.xcY.publish("onReady",r.api)},$$C=function(r,f,I){var C=f[I];
return function(){var Y=_.XE.apply(0,arguments);try{return r.lastError=null,C.apply(f,Y)}catch(V){if(I!=="sendAbandonmentPing")throw V.params=I,r.lastError=V,Y=new _.nf("PlayerProxy error in method call",{error:V,method:I,playerId:r.playerId}),Y.level="WARNING",Y;}}},Sc8=function(r){r.bMU=!1;
if(r.mKj)for(var f in r.d4)r.d4.hasOwnProperty(f)&&r.mKj(f,r.d4[f]);for(var I in r.bke)r.bke.hasOwnProperty(I)&&clearTimeout(Number(I));r.bke={};r.jrw=null;r.mKj=null;f=r.api;for(var C in f)f.hasOwnProperty(C)&&(f[C]=null);f.addEventListener=function(Y,V){r.addEventListener(Y,V)};
f.removeEventListener=function(Y,V){r.removeEventListener(Y,V)};
f.destroy=function(){r.dispose()};
f.getLastError=function(){return r.getLastError()};
f.getPlayerType=function(){return r.getPlayerType()};
f.getCurrentVideoConfig=function(){return r.aAT};
f.loadNewVideoConfig=function(Y){r.loadNewVideoConfig(Y)};
f.isReady=function(){return r.isReady()}};
Q2.prototype.isReady=function(){return this.bMU};
Q2.prototype.addEventListener=function(r,f){var I=this;this.isDisposed();var C=p5s(this,f);C&&(_.Am(this.hSc,r)||this.d4[r]||(f=FSC(this,r),this.jrw&&this.jrw(r,f)),this.xcY.subscribe(r,C),r==="onReady"&&this.isReady()&&setTimeout(function(){C(I.api)},0))};
Q2.prototype.removeEventListener=function(r,f){this.isDisposed()||(f=p5s(this,f))&&this.xcY.unsubscribe(r,f)};
var p5s=function(r,f){var I=f;if(typeof f==="string"){if(r.eRZ[f])return r.eRZ[f];I=function(){var C=_.XE.apply(0,arguments),Y=_.jH(f);if(Y)try{Y.apply(_.Yq,C)}catch(V){throw C=new _.nf("PlayerProxy error when executing callback",{error:V}),C.level="ERROR",C;}};
r.eRZ[f]=I}return I?I:null},FSC=function(r,f){var I=function(C){var Y=function(){r.isDisposed();
if(!r.isDisposed())try{r.xcY.publish(f,C!=null?C:void 0)}catch(h){var S=new _.nf("PlayerProxy error when creating global callback",{error:h.message,event:f,playerId:r.playerId,data:C,originalStack:h.stack,componentStack:h.componentStack});S.level="WARNING";throw S;}};
if(gTD(r,"web_player_publish_events_immediately"))Y();else{var V=setTimeout(function(){Y();_.X0.remove(r.bke,String(V))},0);
_.X0.add(r.bke,String(V),!0)}};
return r.d4[f]=I};
Q2.prototype.getPlayerType=function(){return this.e6u||(this.getPlayerElement()?"html5":null)};
Q2.prototype.getLastError=function(){return this.lastError};
var MG3=function(r){r.cancel();Sc8(r);r.e6u=null;r.config&&(r.config.loaded=!1);var f=r.getPlayerElement();f&&(d$3(r)||!X5X(r)?r.a4=f:(f&&f.destroy&&f.destroy(),r.a4=null));r.targetElement&&_.tJ(r.targetElement)};
Q2.prototype.cancel=function(){this.ysf&&_.YaK(nTs(this),this.ysf);clearTimeout(this.mPB);this.ipS=!1};
Q2.prototype.disposeInternal=function(){MG3(this);if(this.a4&&this.config&&this.a4.destroy)try{this.a4.destroy()}catch(f){var r=new _.nf("PlayerProxy error during disposal",{error:f});r.level="ERROR";throw r;}this.eRZ=null;for(r in this.d4)this.d4.hasOwnProperty(r)&&delete this.d4[r];this.aAT=this.config=this.api=null;delete this.targetElement;delete this.zg;_.Mu.prototype.disposeInternal.call(this)};
var X5X=function(r){var f,I;r=(f=r.config)==null?void 0:(I=f.args)==null?void 0:I.fflags;return!!r&&r.indexOf("player_destroy_old_version=true")!==-1},nTs=function(r){return r.webPlayerContextConfig?r.webPlayerContextConfig.jsUrl:(r=r.config.assets)?r.js:""},arV=function(r){return r.webPlayerContextConfig?r.webPlayerContextConfig.cssUrl:(r=r.config.assets)?r.css:""},gTD=function(r,f){if(r.webPlayerContextConfig)var I=r.webPlayerContextConfig.serializedExperimentFlags;
else{var C;if((C=r.config)==null?0:C.args)I=r.config.args.fflags}return(I||"").split("&").includes(f+"=true")},bMB=function(r){for(var f={},I=_.E(Object.keys(r)),C=I.next();!C.done;C=I.next()){C=C.value;
var Y=r[C];f[C]=typeof Y==="object"?_.X0.clone(Y):Y}return f};var bMR={},w5K="player_uid_"+(Math.random()*1E9>>>0);var vH=function(r,f,I,C,Y,V){f=f===void 0?document.createElement("div"):f;this.webPlayerContextConfig=r;this.container=f;this.commandResolver=I;this.apiResolver=d$K();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.uX;C||V?Psg(this):tG8(this);this.pendingPlayerResponse=C;this.pendingWatchNextResponse=Y;this.pendingPlayerVars=V;T74(this)};
vH.prototype.loadVideoWithPlayerResponse=function(r,f,I){this.loadVideo(r,f,I)};
vH.prototype.loadVideoWithPlayerVars=function(r){return this.loadVideo(void 0,void 0,r)};
vH.prototype.destroy=function(r){if(r=_.oC(document,r))r=w5K+"_"+_.S3(r),(r=bMR[r])&&r.dispose()};
var WSD=function(r,f){var I;_.x(function(C){if(C.nextAddress==1)return r.pendingWatchNextResponse=f,r.synchronousApi?(I=r.synchronousApi,C.jumpTo(2)):_.b(C,r.api,3);C.nextAddress!=2&&(I=C.yieldResult);cp8(r,I);r.pendingWatchNextResponse&&(I.updateVideoData({raw_watch_next_response:r.pendingWatchNextResponse}),r.pendingWatchNextResponse=void 0);_.wO(C)})},cp8=function(r,f){var I;
if(!(f==null?0:(I=f.isReady)==null?0:I.call(f))){var C;r=new _.nf("playerApi is falsey",{synchronousApi:r.synchronousApi,apiResolved:r.apiResolver.resolved,playerApiUndefined:f===void 0,playerApiNull:f===null,playerApiReady:(f==null?void 0:(C=f.isReady)==null?void 0:C.call(f))===!0,playerApiMethods:f?Object.keys(f):[]});_.Fo(r)}},LSU=function(r,f){if(typeof r[f]==="function")return r[f]()},m$3=function(r){var f=window,I,C=(I=f.ytplayer)==null?void 0:I.bootstrapPlayerContainer;
if((I=C==null?void 0:C.firstElementChild)&&_.RP(I,"html5-video-player")){var Y,V,S=(Y=f.ytplayer)==null?void 0:(V=Y.bootstrapWebPlayerContextConfig)==null?void 0:V.contextId;Y=r.webPlayerContextConfig.contextId;if(S&&S===Y){C!==r.container&&(C=!1,LSU(I,"getPlayerState")===2&&(C=!0),r.container.appendChild(I),C||LSU(I,"playVideo"));var h;if((h=f.ytplayer)==null?0:h.bootstrapPlayerResponse)r.bootstrapPlayerResponse=f.ytplayer.bootstrapPlayerResponse}}},T74=function(r){var f,I,C,Y,V;
_.x(function(S){if(S.nextAddress==1)return r.pageReadyOrDataAvailable?S.jumpTo(2):_.b(S,r.pageReadyOrDataAvailableResolver.promise,2);if(S.nextAddress!=4)return!_.N("kevlar_player_unified_player_loading")||IrB()&&Ycd()?S.jumpTo(4):_.b(S,x$u(),4);m$3(r);if(r.pendingPlayerResponse||r.pendingPlayerVars)f=hpK(r.pendingPlayerResponse,r.pendingWatchNextResponse,r.pendingPlayerVars),r.pendingPlayerResponse&&r.pendingPlayerResponse===r.bootstrapPlayerResponse&&(f.loaded=!0),r.bootstrapPlayerResponse=void 0;
I=nTP(r.container,f,r.webPlayerContextConfig);((C=f)==null?0:C.loaded)&&r.pendingWatchNextResponse?(WSD(r,r.pendingWatchNextResponse),r.pendingPlayerResponse=void 0,r.pendingPlayerVars=void 0):ep4(r);Y=function(h){I.removeEventListener("onReady",Y);r.synchronousApi=h;r.apiResolver.resolve(h)};
I.addEventListener("onReady",Y);r.commandResolver!==void 0&&(V=r.commandResolver,I.addEventListener("innertubeCommand",function(h){V(h)}));
_.wO(S)})};
vH.prototype.loadVideo=function(r,f,I){var C=this,Y,V,S,h,w,n,d,z,g;return _.x(function(X){if(X.nextAddress==1)return C.pendingPlayerResponse=r,C.pendingWatchNextResponse=f,C.pendingPlayerVars=I,Psg(C),C.synchronousApi?(Y=C.synchronousApi,X.jumpTo(2)):_.b(X,C.api,3);X.nextAddress!=2&&(Y=X.yieldResult);cp8(C,Y);S=new Promise(function(P){V=P});
h=function(){var P=Y.getPlayerResponse();P&&(Y.removeEventListener("onVideoDataChange",h),V(P))};
Y.addEventListener("onVideoDataChange",h);if(C.pendingPlayerResponse||C.pendingPlayerVars)C.pendingPlayerResponse&&C.pendingPlayerResponse===C.bootstrapPlayerResponse?(V(C.pendingPlayerResponse),C.pendingWatchNextResponse&&WSD(C,C.pendingWatchNextResponse)):(w=hpK(C.pendingPlayerResponse,C.pendingWatchNextResponse,C.pendingPlayerVars),(g=(n=C.pendingPlayerResponse)==null?void 0:(d=n.playerConfig)==null?void 0:(z=d.playbackStartConfig)==null?void 0:z.startPaused)?Y.cueVideoByPlayerVars(w.args):Y.loadVideoByPlayerVars(w.args)),
ep4(C),C.bootstrapPlayerResponse=void 0;return X.return(S)})};
var tG8=function(r){if(document.readyState==="complete"||document.readyState==="interactive")Psg(r);else{var f=function(){document.removeEventListener("DOMContentLoaded",f);Psg(r)};
document.addEventListener("DOMContentLoaded",f)}},Psg=function(r){r.pageReadyOrDataAvailable=!0;
r.pageReadyOrDataAvailableResolver.resolve()},ep4=function(r){r.pendingPlayerResponse=void 0;
r.pendingWatchNextResponse=void 0;r.pendingPlayerVars=void 0};
_.OC.Object.defineProperties(vH.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var KY=function(r){T9.call(this,r===void 0?"document_active":r);var f=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(I){f.transition("document_disposed",{event:I})});
window.addEventListener("beforeunload",function(I){f.transition("document_disposed_preventable",{event:I})});
window.addEventListener("unload",function(I){f.transition("document_disposed",{event:I});f.hasRun=new Map})};
_.t(KY,T9);
KY.prototype.runPreventableDispose=function(r,f){if(!this.hasRun.get("document_disposed_preventable")){r(f==null?void 0:f.event);var I,C;if((f==null?0:(I=f.event)==null?0:I.defaultPrevented)||(f==null?0:(C=f.event)==null?0:C.returnValue)){f.event.returnValue||(f.event.returnValue=!0);f.event.defaultPrevented||f.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")};
KY.prototype.runDispose=function(r,f){this.hasRun.get("document_disposed")?this.transition("document_active"):(r(f==null?void 0:f.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
KY.prototype.runFlush=function(r,f){r(f==null?void 0:f.event);this.transition("document_active")};
KY.prototype.runActive=function(){};var yu=function(r){T9.call(this,r===void 0?"document_visibility_unknown":r);var f=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(I){document.visibilityState==="visible"?f.transition("document_visible",{event:I}):f.transition("document_hidden",
{event:I})});
_.N("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(I){f.transition("document_backgrounded",{event:I})}),window.addEventListener("focus",function(I){f.transition("document_foregrounded",{event:I})}))};
_.t(yu,T9);yu.prototype.runVisible=function(r,f){r(f==null?void 0:f.event);_.N("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
yu.prototype.runHidden=function(r,f){r(f==null?void 0:f.event);_.N("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
yu.prototype.runBackgrounded=function(r,f){r(f==null?void 0:f.event)};
yu.prototype.runForegrounded=function(r,f){r(f==null?void 0:f.event)};var US=function(){this.teardownLifecycle=new KY;this.visibilityLifecycle=new yu};
US.prototype.install=function(){var r=_.XE.apply(0,arguments),f=this;r.forEach(function(I){f.teardownLifecycle.install(I)});
r.forEach(function(I){f.visibilityLifecycle.install(I)})};var sS=function(){US.call(this);var r={};this.install((r.document_disposed={callback:this.abortSlisAndFlush},r));_.N("combine_ve_grafts")&&(r={},this.install((r.document_disposed={callback:this.flushInteractionLoggingAttachVes},r)));r={};this.install((r.flush_logs={callback:this.logFinalPayload},r));_.N("web_log_cfg_cee_ks")||_.dp(_.F_,Jp3)};
_.t(sS,US);var zpm=function(){sS.loggingInstance||(sS.loggingInstance=new sS);return sS.loggingInstance};
sS.prototype.logFinalPayload=function(){if(_.N("web_fp_via_jspb")){var r=new $7T,f=_.t1();f&&_.w5(r,1,f);f=_.N("jspb_sparse_encoded_pivot")?new nN([{}]):new nN;_.Y1(f,380,FFT,r);BPK("finalPayload",f);_.N("web_fp_via_jspb_and_json")&&_.NW("finalPayload",{csn:_.t1()})}else _.NW("finalPayload",{csn:_.t1()})};
sS.prototype.abortSlisAndFlush=function(){PgV(iR);Rx!=null&&Rx.flush()};
sS.prototype.flushInteractionLoggingAttachVes=function(){QND(_.IB())};
var Jp3=function(){var r=_.Lz("CLIENT_EXPERIMENT_EVENTS");if(r){var f=KKw();r=_.E(r);for(var I=r.next();!I.done;I=r.next())I=I.value,f(I)&&_.NW("genericClientExperimentEvent",{eventType:I});delete _.cw.CLIENT_EXPERIMENT_EVENTS}};var jfs={};
jfs.YtPlayerBehavior=[_.iQ.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 r=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.uX;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;MGK(function(){r.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.P8(this,"pan-down"),_.N("kevlar_pinch_fullscreen")&&_.I_().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.N("kevlar_pinch_fullscreen")&&_.I_().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(r,f,I){var C=this;A8(this.useUnifiedPlayer_());if(this.mainAppPlayer_)A8(!1,"MainAppPlayer already created.");else{var Y=_.N("kevlar_player_container_query_killswitch")?this.$.container:_.e(this.hostElement).querySelector("#container");this.mainAppPlayer_=new vH(this.getWebPlayerContextConfig_(),Y,function(V){return _.u7(V,C.hostElement)},r,f,I);
this.mainAppPlayer_.api.then(function(V){C.player_=V;C.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&o0_.resolve(V)})}},
loadVideoWithPlayerResponse:function(r,f){var I=this;if(this.useUnifiedPlayer_()){var C=this.watchNextData,Y,V=(Y=r.videoDetails)==null?void 0:Y.videoId,S,h,w;(Y=(S=this.watchNextData)==null?void 0:(h=S.currentVideoEndpoint)==null?void 0:(w=h.watchEndpoint)==null?void 0:w.videoId)&&V!=Y&&(C=void 0,_.N("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(r,C,f):this.createMainAppPlayer_(r,C,f);this.mainAppPlayer_.api.then(function(){_.kA(I.hostElement,
"yt-player-updated")})}else this.update(uYU(r,f))},
loadVideoWithPlayerVars:function(r){var f=this;this.useUnifiedPlayer_()?(_.N("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(r):this.createMainAppPlayer_(void 0,void 0,r),this.mainAppPlayer_.api.then(function(){_.kA(f.hostElement,"yt-player-updated")})):this.update({args:r})},
update:function(r){var f=this;if(this.useUnifiedPlayer_())A8(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(r);var I=pz$(r.args);I&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==I&&Object.assign(r.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(r).then(function(C){_.kA(f.hostElement,"yt-player-updated",_.N("kevlar_player_updated_obsolete_player_killswitch")?
C:void 0)})}_.PR(new _.nf("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(r){var f=this,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,f.getPlayerPromise(),2);I=C.yieldResult;if(!I)throw Error("uh");r&&f.updatePlayerPlaylist_(r);_.wO(C)})},
acquireApi_:function(r){var f=this;if(this.useUnifiedPlayer_())A8(!1,"Invalid method call in kevlar_unified_player.");else return _.F_.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(A8(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(I){f.shouldAutoplay_(r)?I.loadVideoByPlayerVars(r.args):I.cueVideoByPlayerVars(r.args)})):this.initPlayerPromise_=this.initPlayerContainer_(r),this.initPlayerPromise_},
initPlayerContainer_:function(r){var f=this;if(this.useUnifiedPlayer_())A8(!1,"Invalid method call in kevlar_unified_player.");else return A8(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.t7(Error("vh")),A8(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.N("kevlar_player_container_query_killswitch")?this.$.container:_.e(this.hostElement).querySelector("#container"),x$u().then(function(){var I=f.initPlayer_(r);f.playerResolver_.resolve(I);
return I})},
onPlayerReady_:function(r,f){this.useUnifiedPlayer_()?A8(!1,"Invalid method call in kevlar_unified_player."):(r.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&o0_.resolve(r),f(r))},
maybeCallApiMethodOnElement_:function(r,f){if(typeof r[f]==="function")return r[f]()},
maybeAdoptBootstrapPlayer_:function(){var r=window,f,I=(f=r.ytplayer)==null?void 0:f.bootstrapPlayerContainer;if((f=I==null?void 0:I.firstElementChild)&&f.classList.contains("html5-video-player")){var C,Y,V=(C=r.ytplayer)==null?void 0:(Y=C.bootstrapWebPlayerContextConfig)==null?void 0:Y.contextId;C=this.getWebPlayerContextConfig_().contextId;if(V&&V===C){I!==this.playerContainer_&&(I=!1,this.maybeCallApiMethodOnElement_(f,"getPlayerState")===2&&(I=!0),this.playerContainer_.appendChild(f),I||this.maybeCallApiMethodOnElement_(f,
"playVideo"));var S;if((S=r.ytplayer)==null?0:S.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=r.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(r){var f=this;if(this.useUnifiedPlayer_())A8(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(I){f.maybeAdoptBootstrapPlayer_();var C=r?DlK(r):void 0;C&&C==f.bootstrapPlayerResponse_&&(r.loaded=!0);C=f.playerContainer_;var Y=f.getWebPlayerContextConfig_();C=nTP(C,r,Y);f.player_=C;f.onPlayerReadyEvent_=f.onPlayerReady_.bind(f,f.player_,I);f.player_.addEventListener("onReady",f.onPlayerReadyEvent_);f.player_.addEventListener("innertubeCommand",
f.onPlayerInnerTubeCommand_.bind(f))})},
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(r){r.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(r){r.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var r=_.a().resolve(_.y2).getCurrentPage();r&&r.getScrollTop()<=0?_.P8(this,"pan-down"):_.P8(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(r){r.isFullscreen()||r.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(r){r.isFullscreen()&&r.toggleFullscreen()})},
updatePlayerPlaylist_:function(r){var f=this,I,C,Y;return _.x(function(V){if(V.nextAddress==1)return I=_.a().resolve(_.ZY(_.WP)),C=!!(I&&I.playlistComponent&&I.playlistComponent.loopOn),_.b(V,f.getPlayerPromise(),2);var S=Y=V.yieldResult,h=S.updatePlaylist,w=[];if(_.N("kevlar_player_playlist_use_local_index")){var n,d;var z=(d=(n=r.localCurrentIndex)!=null?n:r.currentIndex)!=null?d:0}else{var g;z=(g=r.currentIndex)!=null?g:0}if(r.contents)for(n=0;n<r.contents.length;n++)if((d=r.contents[n])&&d.playlistPanelVideoRenderer)if(Vvw(d)){d=
d.playlistPanelVideoRenderer;g="";d.shortBylineText&&(g=_.Rr(d.shortBylineText));var X="";d.title?X=_.Rr(d.title):d.unplayableText&&(X=_.Rr(d.unplayableText));w.push({author:g,title:X,encrypted_id:d.videoId})}else n<z&&--z;h.call(S,{index:z,list:r.playlistId?r.playlistId:"",loop:C,playlist_title:r.title,playlist_length:w.length,video:w,fetch:0,external_list:"1",title:r.title?r.title:"",playlist_author:r.ownerName?_.Rr(r.ownerName):void 0});_.wO(V)})},
focusOnPlayer:function(){_.UC(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var r=this.playerContainer_.querySelector(".html5-video-player");r&&(_.OS(_.a().resolve(_.dW)),r.focus())}})},
preparePlayer:function(){var r=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(f){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")f();else{var I=function(){document.removeEventListener("DOMContentLoaded",I);f()};
document.addEventListener("DOMContentLoaded",I)}})).then(function(){return x$u()}).then(function(){r.initPlayerPromise_||r.preparePlayerJobId_||(r.preparePlayerJobId_=_.dp(_.F_,function(){r.initPlayerPromise_||(r.initPlayerPromise_=r.initPlayerContainer_())}))}):_.PR(new _.nf("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(r){this.useUnifiedPlayer_()?A8(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(r)||(r.args.autoplay="0")},
shouldAutoplay_:function(r){if(this.useUnifiedPlayer_())A8(!1,"Invalid method call in kevlar_unified_player.");else{var f=this.get("args.el",r);return f&&f!="detailpage"&&this.isMiniplayerActive_()||f&&(f=="sponsorshipsoffer"||f=="handlesclaiming")&&this.get("args.autoplay",r)=="0"?!1:(r=DlK(r))&&this.get("playerConfig.playbackStartConfig.startPaused",r)?!1:!0}},
isMiniplayerActive_:function(){return _.a().resolve(_.iO).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var r=this.getPlayer();if(r){var f=r.getPlayerState();_.N("kevlar_player_check_ad_state_on_stop")&&(f=r.getPlayerState(r.getPresentingPlayerType()));f!=5&&r.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(r,f,I){I=I===void 0?!1:I;var C=this,Y,V,S,h;return _.x(function(w){if(w.nextAddress==1)return f||(f=C.hostElement),Y=C.useUnifiedPlayer_()?!!C.mainAppPlayer_:!!C.initPlayerPromise_,Y?_.b(w,C.getPlayerPromise(),2):(I?r.insertBefore(f,r.firstChild):r.appendChild(f),w.return());V=w.yieldResult;S=V.getPlayerState(V.getPresentingPlayerType());h=!1;if(S==-1||S==1||S==3)h=!0;I?r.insertBefore(f,r.firstChild):r.appendChild(f);h&&V.playVideo();V.setSize(NaN,NaN);_.wO(w)})},
watchNextDataChanged_:function(r){var f=this;r&&(this.useUnifiedPlayer_()&&_.N("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&WSD(this.mainAppPlayer_,r):this.getPlayerPromise().then(function(I){I.updateVideoData(f.computeWatchNextPlayerVars_(r))}))},
computeWatchNextPlayerVars_:function(r){if(this.useUnifiedPlayer_()&&_.N("kevlar_unified_player_update_watch_next_killswitch"))A8(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:r}},
maybeSendAbandonmentPing_:function(){var r=this.getPlayer();r&&r.getPlayerState()!=5&&r.getPlayerState()!=0&&r.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var r=_.Lz("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(r=Object.assign({},r),r.rootElementId=this.playerId);r.serializedExperimentIds&&r.serializedExperimentFlags||_.t7(Error("wh"));return r},
hasWebPlayerContextConfig_:function(){return!!_.Lz("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(r){this.useUnifiedPlayer_()?A8(!1,"Invalid method call in kevlar_unified_player."):_.u7(r,this.hostElement)},
useUnifiedPlayer_:function(){var r=_.N("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.N("kevlar_unified_player")||r}}];var HM8={};HM8.YtPlaylistPanelBehavior=[_.D.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(r){r=r.detail;if(r.actions.loop!=void 0||r.actions["yt-icons:loop"]!=void 0)this.loopOn=r.actions.loop||r.actions["yt-icons:loop"];if(r.actions.shuffle!=void 0||r.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=r.actions.shuffle||r.actions["yt-icons:shuffle"]},
setMenuData_:function(r){if(!r||!r.playlistButtons||r.isInfinite)return null;for(var f=r.playlistButtons.menuRenderer.topLevelButtons,I=f.length,C=0;C<I;C++)if(f[C].toggleButtonRenderer){var Y=f[C].toggleButtonRenderer;Y.defaultIcon.iconType=="LOOP"&&this.loopOn?Y.isToggled=this.loopOn:Y.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(Y.isToggled=this.shuffleOn)}return r.playlistButtons}}];var iMV=function(r){q7.call(this,r,132);this.isDocument=r===document.documentElement};
_.t(iMV,q7);iMV.prototype.calculateScrollDelta=function(r,f,I){var C=0;r<f?C=r<f-100?-48:-8:r>f+I&&(C=r>f+I+100?48:8);return C};
iMV.prototype.JSC$9199_onMouseMove=function(r){this.isDocument||(r.clientX=r.event_.pageX,r.clientY=r.event_.pageY);q7.prototype.JSC$9199_onMouseMove.call(this,r)};var oN=function(){var r=_.rm.apply(this,arguments)||this;r._noAccessors=!0;r.scrollElement=document.documentElement;r.JSC$12134_dragListGroup=null;r.dragScrollSupport=null;r.onDraggerCreated=function(f){var I=f.JSC$9195_dragger;I.scrollTarget_=r.scrollElement;f=f.draggerEl;I&&f.menuOpened&&I.setEnabled(!1)};
r.onDragStart=function(f){var I=f.draggerEl;f=f.currDragItem;var C=Object.assign({},f==null?void 0:f.data);C.trackingParams=void 0;I.data=C;I.style.position="absolute";I.style.width=(f==null?void 0:f.clientWidth)+"px";I.style.zIndex="2030";I.onDrag&&I.onDrag();_.N("web_owner_document_fallback_killswitch")?(f=document.querySelector("ytd-app"))&&_.e(f).appendChild(I):(f=_.TZ(I),(C=f.querySelector("ytd-app"))?_.e(C).appendChild(I):f.body.appendChild(I));r.dragScrollSupport=new iMV(r.scrollElement);r.dragScrollSupport.horizontalScrolling_=
!1;I=r.dragScrollSupport;I.constrainScroll_=!!I.margin_&&!1};
r.onDrop=function(f){r.handleDrop(f);r.dragScrollSupport&&(_.Z8(r.dragScrollSupport),r.dragScrollSupport=null)};
r.onReorderableScroll=function(){if(r.JSC$12134_dragListGroup){var f=r.JSC$12134_dragListGroup;zE4(f,f.currDragItem_)}};
return r};
_.t(oN,_.rm);oN.prototype.detached=function(){_.Rp3(this)};
_.Rp3=function(r){r.JSC$12134_dragListGroup&&(_.di(r.JSC$12134_dragListGroup,EOX,r.onDragStart),_.di(r.JSC$12134_dragListGroup,wt4,r.onDragStart),r.JSC$12134_dragListGroup.dispose(),r.JSC$12134_dragListGroup=null);r.dragScrollSupport&&(_.Z8(r.dragScrollSupport),r.dragScrollSupport=null);r.scrollElement.removeEventListener("scroll",r.onReorderableScroll)};
_.vT4=function(r,f,I,C){C=C===void 0?"":C;_.Rp3(r);I&&(r.scrollElement=I);r.JSC$12134_dragListGroup=new Jh;r.JSC$12134_dragListGroup.hysteresisDistance_=2;ptC(r.JSC$12134_dragListGroup,f);r.JSC$12134_dragListGroup.draggerElClasses_=dR("dragging").split(" ");C&&nOg(r.JSC$12134_dragListGroup,function(Y){var V=Y||document,S=null;V.getElementsByClassName?S=V.getElementsByClassName(C)[0]:S=lpC("*",C,Y);return S||Y});
_.S$(r.JSC$12134_dragListGroup,lhB,r.onDraggerCreated);_.S$(r.JSC$12134_dragListGroup,EOX,r.onDragStart);_.S$(r.JSC$12134_dragListGroup,wt4,r.onDrop);r.JSC$12134_dragListGroup.init();r.scrollElement.addEventListener("scroll",r.onReorderableScroll,{passive:!0})};
oN.prototype.handleDrop=function(){};
_.OC.Object.defineProperties(oN.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.A([_.K({value:100}),_.B("design:type",Number)],oN.prototype,"scrollMargin",void 0);oN=_.A([_.fx()],oN);_.KSU=[oN.prototype];_.Qu={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(r,f,I){var C=this.getClickTarget_(f);if(C&&this.isClickAllowed_(C)){f.preventDefault();r=(0,_.X0.unsafeClone)(r);var Y=this.getContainerBoundingRect();f=this.getRelativeClickXy_(f,Y);this.expandEndpointUrlMacros_(r,{NX:f[0],NY:f[1],NB:C.code});I&&this.truncateWebCommendMetadataUrl_(r);_.kA(this.hostElement,"yt-navigate",{endpoint:r})}},
getClickTarget_:function(r){if(!this.clickTargetMap)return null;r=_.JN(r)||[];r=_.E(r);for(var f=r.next();!f.done;f=r.next()){f=f.value;if(f===_.e(this.hostElement).querySelector("#menu"))break;if(f=this.clickTargetMap.get(f.id))return f}return null},
getRelativeClickXy_:function(r,f){var I=r.detail.x,C=r.detail.y;_.N("use_on_click_for_desktop_display_ad")&&r.clientX!=null&&r.clientY!=null&&(I=r.clientX,C=r.clientY);r=Math.round(I-f.left);f=Math.round(C-f.top);return r<0||f<0?[null,null]:[r,f]},
getContainerBoundingRect:function(){return _.e(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(r,f){for(var I=_.E(r.loggingUrls||[]),C=I.next();!C.done;C=I.next())C=C.value,C.baseUrl&&(C.baseUrl=NS(C.baseUrl,f));r.urlEndpoint&&r.urlEndpoint.url&&(r.urlEndpoint.url=NS(r.urlEndpoint.url,f));r.commandMetadata&&r.commandMetadata.webCommandMetadata&&r.commandMetadata.webCommandMetadata.url&&(r.commandMetadata.webCommandMetadata.url=NS(r.commandMetadata.webCommandMetadata.url,f))},
truncateWebCommendMetadataUrl_:function(r){if(r.commandMetadata&&r.commandMetadata.webCommandMetadata&&r.commandMetadata.webCommandMetadata.url){var f=r.commandMetadata.webCommandMetadata.url,I=f.indexOf("&pp=");if(I>0){var C=f.indexOf("&",I+1);r.commandMetadata.webCommandMetadata.url=C>I&&C<f.length?f.slice(0,I)+f.slice(C):f.slice(0,I)}}},
configureClickTargets:function(r,f,I){this.containerId=r;this.clickTargetMap=new Map;r=_.E(f);for(f=r.next();!f.done;f=r.next())if(f=f.value,f.location){var C=I.get(f.location);C&&(_.ob(_.e(this.hostElement).querySelector("#"+C),"yt-simple-endpoint",this.isClickAllowed_(f)),this.clickTargetMap.set(C,f))}},
isClickAllowed_:function(r){return r.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||r.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||r.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||r.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.AW={};
_.AW.YtLazyListBehavior=[_.Kh.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 r=(this.constructor.generatedFrom||this).observers;r||(r=[]);r.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
r}},
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 r=this.renderElementsOutsideVisibleArea_;r&&(Gns(r,4),r.processSignal())},
deepLazyListObserver_:function(r){var f=this;if(r){var I=r.value||[];if(this.itemsPath==r.path){var C=this.nonDeferredItemCount;r=0;C>-1&&I.length>C&&(r=_.Lz("REMAINING_DOVA_DEFERRED_CHUNKS",-1));r>0?(C>0&&(C=I.slice(0,C),this.setInitialItemsOnDataChanged(C)),(C=this.renderElementsOutsideVisibleArea_)?C.cancel():(C=this.renderElementsOutsideVisibleArea_=new _.Un(2,"eocs"),_.DGK(window,"scroll",function(){return f.renderDeferredElements()})),_.sn(C,function(){f.setInitialItemsOnDataChanged(I)}),_.Ww("REMAINING_DOVA_DEFERRED_CHUNKS",
r-1)):this.setInitialItemsOnDataChanged(I)}else if(this.itemsPath+".splices"==r.path)this.onItemsUpdated_(I);
else C="shownItems"+r.path.substr(this.itemsPath.length),this.useSignals&&C==="shownItems.length"||this.notifyPath(C,r.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(r){r&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(r),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(r){r=r.indexSplices;for(var f=0,I=r.length;f<I;f++){var C=r[f];if(C.index<this.shownCount&&(C.removed&&this.splice("shownItems",C.index,C.removed.length),C.addedCount)){var Y=C.object.slice(C.index,C.index+C.addedCount);C=["shownItems",C.index,0];C.push.apply(C,Y);this.splice.apply(this,C)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(r){this.cancelPendingTasks_();r||(r=[]);this.items_=r;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&&(_.mO("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.UC(this,this.tryRenderChunk_)))},
fillRange_:function(r,f){this.canShowMore&&this.items_&&(r=this.items_.slice(r,f),r.unshift("shownItems"),this.push.apply(this,r),this.shownCount=f,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var r=this;this.canShowMore&&_.Pc(this,"renderChunk",function(){r.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.mO("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.pF(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var r=this.renderElementsOutsideVisibleArea_;r&&(r.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var r=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(r-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=r;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(r){return Math.ceil(1E3/r)},
onCanShowMoreUpdated_:function(r){this.data&&this.items_!==null&&(r?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(r){!this.shouldUseTaskManager()&&this.data&&(!r&&this.canShowMore?(_.sQl(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):r&&this.partiallyRenderedItems_.has(this.items_)&&(_.N("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var kG;_.ZL={};
kG=function(){var r=_.rm.apply(this,arguments)||this;r.atStart=!0;r.atEnd=!0;r.startIndex=0;r.endIndex=0;r.scrollCount=0;r.initialStartIndex=0;r.disableScrollEventListener=!1;r.useFloorScrolling=!1;r.isSearch=!1;r.dragging=!1;r.dragMouseStart=0;r.dragOffsetStart=0;r.disableWheelScroll=!1;r.centerListItems=!1;r.offset=0;r.minComponentWidth=0;r.marginWidthRight=0;r.marginWidthLeft=0;r.setButtonsStateRequested=!1;r.itemsVisibilityObserver=null;r.fullyVisibleItemsIndices=[];r.JSC$12145_onWheelScroll=function(f){if(r.isSearch&&
!r.disableWheelScroll&&_.N("desktop_enable_dmpanel_wheel_scroll")){var I=f.shiftKey?Math.abs(f.deltaY)>Math.abs(f.deltaX)?f.deltaY:f.deltaX:f.deltaX;I!==0&&(f.preventDefault(),r.ytLazyListBehavior.fillRemainingListItems(),r.offset+=I,GD(r),r.reposition_())}};
r.onPointerDown=function(f){yp4(r)&&(r.dragMouseStart=f.clientX,r.dragOffsetStart=r.offset,r.dragging=!0)};
r.onPointerMove=function(f){yp4(r)&&r.dragging&&(r.ytLazyListBehavior.fillRemainingListItems(),r.offset=r.dragOffsetStart-(f.clientX-r.dragMouseStart),GD(r),r.reposition_())};
r.onPointerUp=function(){yp4(r)&&(r.dragging=!1)};
return r};
_.t(kG,_.rm);var U$3=function(r){var f=_.e(r.hostElement).querySelector("#items").children;if(!f)return 0;var I=0;r=_.E(r.fullyVisibleItemsIndices);for(var C=r.next();!C.done;C=r.next())I+=f[C.value].clientWidth;return I},yp4=function(r){return r.isSearch&&_.N("desktop_enable_dmpanel_click_drag_scroll")};
kG.prototype.created=function(){this.cachedViewportWidth=_.Lz("initialInnerWidth")||window.innerWidth;this.JSC$12145_cachedViewportHeight=_.Lz("initialInnerHeight")||window.innerHeight;_.Lz("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.Ww("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
kG.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.N("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();sfC(this)};
kG.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.N("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var r;(r=this.itemsVisibilityObserver)==null||r.disconnect();this.itemsVisibilityObserver=null;var f;(f=this.itemsObserver)==null||f.disconnect()};
var sfC=function(r){var f=_.e(r.hostElement).querySelector("#scroll-container");if(f){if(!r.itemsVisibilityObserver){var I=window.getComputedStyle(f).marginRight;r.itemsVisibilityObserver=new IntersectionObserver(function(C){OMq(r,C)},{root:f,
rootMargin:I,threshold:.98})}if(f=_.e(r.hostElement).querySelector("#items"))r.itemsObserver=new GM8(f,function(C){oTq(r,C)})}},oTq=function(r,f){QfU(r)&&(Array.from(f.addedNodes).filter(function(I){return I.nodeType===Node.ELEMENT_NODE}).forEach(function(I){r.itemsVisibilityObserver&&r.itemsVisibilityObserver.observe(I)}),Array.from(f.removedNodes).filter(function(I){return I.nodeType===Node.ELEMENT_NODE}).forEach(function(I){r.itemsVisibilityObserver&&r.itemsVisibilityObserver.unobserve(I)}))},
OMq=function(r,f){var I=new Set(r.fullyVisibleItemsIndices);
f=_.E(f);for(var C=f.next();!C.done;C=f.next()){C=C.value;var Y=C.target.parentElement;Y?(Y=Array.from(Y.children).indexOf(C.target),C.isIntersecting?I.add(Y):I.has(Y)&&I.delete(Y)):_.t7(new _.nf("Parent element not found",C.target.nodeName))}r.fullyVisibleItemsIndices=Array.from(I).sort(function(V,S){return V-S});
I.size===0?_.t7(new _.nf("No visible entries in horizontal list")):(r.startIndex=r.fullyVisibleItemsIndices[0],r.endIndex=r.fullyVisibleItemsIndices[r.fullyVisibleItemsIndices.length-1])},QfU=function(r){r.data?r=(r=r.data)&&r.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===r.itemSizeConstraint:!1:r=!1;
return r};
_.l=kG.prototype;_.l.addScrollEventListeners=function(){var r=_.e(this.hostElement).querySelector("#scroll-container");r.style.touchAction="pan-y";r.addEventListener("wheel",this.JSC$12145_onWheelScroll);r.addEventListener("pointerdown",this.onPointerDown);r.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.l.removeScrollEventListeners=function(){var r=_.e(this.hostElement).querySelector("#scroll-container");r.removeEventListener("wheel",this.JSC$12145_onWheelScroll);r.removeEventListener("pointerdown",this.onPointerDown);r.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&&_.UC(this,this.setStartIndex,[this.initialStartIndex])};
_.l.reposition_=function(){var r=_.Lz("HTML_DIR")=="rtl"?"":"-",f=_.e(this.hostElement).querySelector("#items");f&&(f.style.transform="translateX("+r+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.l.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.UC(this,this.setButtonsState_))};
_.l.setButtonsState_=function(){this.setButtonsStateRequested=!1;var r=_.e(this.hostElement).querySelector("#items").firstElementChild;if(r){this.minComponentWidth||(this.minComponentWidth=Apq(this,r));r=_.e(this.hostElement).querySelector("#scroll-container").clientWidth;var f=_.e(this.hostElement).querySelector("#items").clientWidth,I=this.get(this.ytLazyListBehavior.itemsPath,this);if(I){var C=Math.round(r/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+C,I.length)-1)}this.ytLazyListBehavior.canShowMore?f+this.minComponentWidth>=this.offset+r&&(this.atEnd=!1):this.atEnd=this.offset+r>=f-20?!0:!1;this.atStart=this.offset<=20}};
_.l.setStartIndex=function(r){if(!this.minComponentWidth){var f=_.e(this.hostElement).querySelector("#items").firstElementChild;if(!f)return;this.minComponentWidth=Apq(this,f)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*r;GD(this);this.reposition_()};
_.l.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.V8();var r=_.e(this.hostElement).querySelector("#scroll-container").clientWidth;_.N("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=Apq(this,_.e(this.hostElement).querySelector("#items").firstElementChild));r=this.useFloorScrolling?Math.floor(r/this.minComponentWidth)||1:Math.round(r/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&ZMq(this);this.offset+=QfU(this)?
U$3(this):r*this.minComponentWidth;GD(this);this.reposition_();this.scrollCount++};
_.l.prevClick_=function(){var r=_.e(this.hostElement).querySelector("#scroll-container").clientWidth;r=this.useFloorScrolling?Math.floor(r/this.minComponentWidth)||1:Math.round(r/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=QfU(this)?U$3(this):this.minComponentWidth*this.scrollCount-1):this.offset-=QfU(this)?U$3(this):r*this.minComponentWidth;this.centerListItems&&ZMq(this);GD(this);this.reposition_()};
_.l.onIronResize_=function(){this.resizeSupportEnabled&&_.UC(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.l.onItemsTransitionEnd_=function(r){_.jl(r)===_.e(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.l.onChildElementFocus_=function(r){r=r.target.closest("#items > *");var f=_.e(this.hostElement).querySelector("#scroll-container");if(f.contains(r)){if(_.N("web_horizontal_list_behavior_focus_killswitch"))if(r.offsetLeft<this.offset)this.offset=Math.abs(r.offsetLeft)<r.clientWidth?0:r.offsetLeft;else if(r.offsetLeft+r.clientWidth>this.offset+f.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.V8(),this.offset=r.offsetLeft+r.clientWidth-f.clientWidth;else return;else{var I=_.e(this.hostElement).querySelector("#items"),
C=_.Lz("HTML_DIR")==="rtl",Y=C?I.clientWidth-r.offsetLeft:r.offsetLeft;I=C?I.clientWidth-(r.offsetLeft+r.clientWidth):r.offsetLeft+r.clientWidth;var V=C?Y>this.offset+f.clientWidth:Y<this.offset,S=C?I<this.offset:I>this.offset+f.clientWidth,h=C?V:S;if(C?S:V)f=C?I:Y,this.offset=Math.abs(f)<r.clientWidth?0:f;else if(h)this.ytLazyListBehavior.fillRemainingListItems(),_.V8(),this.offset=(C?Y:I)-f.clientWidth;else return}GD(this);this.reposition_()}};
_.l.observeShownItems_=function(){this.reset()};
_.l.checkComponentWidthResize=function(){var r=_.e(this.hostElement).querySelector("#items").firstElementChild;r&&(r=Apq(this,r),this.centerListItems||r!==this.minComponentWidth)&&(this.minComponentWidth=r,this.offset=r*this.scrollCount,this.centerListItems&&ZMq(this),GD(this),this.reposition_())};
var Apq=function(r,f){var I=window.getComputedStyle(f).marginRight;I=Math.floor(Number(I.replace("px","")));var C=window.getComputedStyle(f).marginLeft;C=Math.floor(Number(C.replace("px","")));r.centerListItems&&!r.marginWidthRight&&(r.marginWidthRight=I,r.marginWidthLeft=C);return r.resizeSupportEnabled?f.getBoundingClientRect().width+I:f.offsetWidth+I},GD=function(r){var f=_.e(r.hostElement).querySelector("#scroll-container").clientWidth,I=_.e(r.hostElement).querySelector("#items").clientWidth;
r.offset<0?r.offset=0:r.offset+f>=I&&(r.offset=I-f)},ZMq=function(r){r.offset-=(_.e(r.hostElement).querySelector("#scroll-container").clientWidth+r.marginWidthRight-r.minComponentWidth)/2-r.marginWidthLeft};
_.OC.Object.defineProperties(kG.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var r=_.Lz("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(r==-1)r=this.JSC$12145_cachedViewportHeight,r=r>1320?5:r>1020?4:r>730?3:r>430?2:1;else if(r==0)return 0;_.Ww("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",r-1);r=_.Lz("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(r>-1)return r;r=this.cachedViewportWidth;r=r>1600?6:r>1400?5:r>1300?4:r>1090?5:r>870?4:r>660?3:2;_.Ww("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
r);return r},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.N("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
kG.prototype.observeShownItems_=kG.prototype.observeShownItems_;kG.prototype.onChildElementFocus_=kG.prototype.onChildElementFocus_;kG.prototype.onItemsTransitionEnd_=kG.prototype.onItemsTransitionEnd_;kG.prototype.onIronResize_=kG.prototype.onIronResize_;kG.prototype.prevClick_=kG.prototype.prevClick_;kG.prototype.nextClick_=kG.prototype.nextClick_;kG.prototype.setButtonsState_=kG.prototype.setButtonsState_;kG.prototype.requestButtonsStateUpdate_=kG.prototype.requestButtonsStateUpdate_;
kG.prototype.reposition_=kG.prototype.reposition_;kG.prototype.reset=kG.prototype.reset;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.AW.YtLazyListBehavior),_.B("design:type",Object)],kG.prototype,"ytLazyListBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],kG.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],kG.prototype,"atStart",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],kG.prototype,"atEnd",void 0);_.A([_.K(),_.B("design:type",Object)],kG.prototype,"startIndex",void 0);_.A([_.K(),_.B("design:type",Object)],kG.prototype,"endIndex",void 0);_.A([_.K({value:6}),_.B("design:type",Number)],kG.prototype,"initialCount",void 0);_.A([_.K(),_.B("design:type",Object)],kG.prototype,"scrollCount",void 0);_.A([_.K(),_.B("design:type",Object)],kG.prototype,"initialStartIndex",void 0);
_.A([_.K(),_.B("design:type",Object)],kG.prototype,"disableScrollEventListener",void 0);_.A([_.K(),_.B("design:type",Object)],kG.prototype,"supportComponentResize",void 0);_.A([_.K({value:function(){var r=this;return function(){return r.prevClick_()}}}),
_.B("design:type",Function)],kG.prototype,"boundPrevClick",void 0);_.A([_.K({value:function(){var r=this;return function(){return r.nextClick_()}}}),
_.B("design:type",Function)],kG.prototype,"boundNextClick",void 0);_.A([_.K(),_.B("design:type",Object)],kG.prototype,"useFloorScrolling",void 0);_.A([_.K(),_.B("design:type",Object)],kG.prototype,"isSearch",void 0);_.A([_.K(),_.B("design:type",Object)],kG.prototype,"dragging",void 0);_.A([_.K(),_.B("design:type",Object)],kG.prototype,"dragMouseStart",void 0);_.A([_.K(),_.B("design:type",Object)],kG.prototype,"dragOffsetStart",void 0);
_.A([_.K(),_.B("design:type",Object)],kG.prototype,"disableWheelScroll",void 0);_.A([_.K(),_.B("design:type",Object)],kG.prototype,"centerListItems",void 0);_.A([_.kO("iron-resize"),_.Bt("guideOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kG.prototype,"onIronResize_",null);_.A([_.kO("transitionend"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],kG.prototype,"onItemsTransitionEnd_",null);
_.A([_.kO("focusin"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],kG.prototype,"onChildElementFocus_",null);_.A([_.Bt("shownItems"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kG.prototype,"observeShownItems_",null);kG=_.A([_.fx()],kG);_.ZL.YtdHorizontalListBehavior=[];_.ZL.YtdHorizontalListBehavior.push(_.Pq,_.D.YtRendererBehavior,_.AW.YtLazyListBehavior,_.mB.YtdGuideStateAwareBehavior,kG.prototype);var arU=["APP_STATE","PI"];var GGV=_.op(["about:blank"]),kGX={pushState:window.history.pushState,replaceState:window.history.replaceState};var BH=function(r){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=r;this.internalPushState=r.pushState.bind(r);this.internalReplaceState=r.replaceState.bind(r)};
BH.prototype.init=function(){this.initialized=!0};
BH.prototype.pushState=function(r,f){this.initialized||this.init();this.internalPushState&&this.internalPushState(r,"",f)};
BH.prototype.replaceState=function(r,f){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(r,"",f)};
BH.prototype.getState=function(){return this.history&&this.history.state};var B74=function(r){var f=function(){var I=r.apply(this,arguments)||this;I.boundHistoryPushState=!1;I.boundHistoryReplaceState=!1;I.debugInfo={};return I};
_.t(f,r);f.prototype.init=function(){var I=_.wL("IFRAME");_.LK(I,_.u_(GGV));I.sandbox="allow-same-origin";I.style.display="none";this.iframe=I;document.body.appendChild(I);this.bindHistoryStateFunctions();r.prototype.init.call(this)};
f.prototype.bindHistoryStateFunctions=function(){var I=this,C=[],Y;this.iframe&&((Y=this.iframe.contentWindow)==null?0:Y.history)&&(Y=this.iframe.contentWindow.history)&&(C.push(Y),Object.getPrototypeOf(Y)&&C.push(Object.getPrototypeOf(Y)));window.history&&C.push(window.history);Y=window.history;Object.getPrototypeOf(Y)&&C.push(Object.getPrototypeOf(Y));C.push(kGX);Y=function(S){for(var h=null,w=0;w<C.length;w++){var n=C[w][S];if(typeof n==="function"){h=n.bind(window.history);I.debugInfo[S]=w;break}}return h};
if(!this.boundHistoryReplaceState){var V=Y("replaceState");V&&(this.internalReplaceState=V,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(Y=Y("pushState"))&&(this.internalPushState=Y,this.boundHistoryPushState=!0)};
return f}(BH),qc3=function(){return B74.call(this,window.history)||this};
_.t(qc3,B74);qc3.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var qM=function(r){this.browserHistory=r;this.initialized=!1};
qM.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
qM.prototype.pushState=function(r,f){this.initialized||this.init();this.browserHistory.pushState(r,f)};
qM.prototype.replaceState=function(r,f){this.initialized||this.init();this.browserHistory.replaceState(r,f)};
qM.prototype.handlePopstate=function(r){return r.state};_.uwg=function(r,f,I,C,Y){this.endpoint=r;this.forward=f;this.historyEntry=I;this.JSC$26391_savedComponentState=C;this.legacyBorder=Y===void 0?!1:Y};var D$B=function(r,f){this.rootData=r;this.scrollTop=f};var $w=new _.Go("PAGE_REQUEST_TOKEN"),aM3=new _.Go("FETCH_PBJ_TOKEN");_.uQ=new _.Go("EPHEMERAL_STORE_TOKEN");_.DL=function(r){this.data=Object.assign({},r);var f;(f=this.data.innertubeResponse)==null||delete f.frameworkUpdates};
_.DL.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.Ad)()};
_.lO=function(r){return Object.assign({},r.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var r5V=function(){this.maxSize=100;this.timeToDataCache=new Map};
r5V.prototype.get=function(r){var f=this.timeToDataCache.get(r);f&&(this.timeToDataCache.delete(r),this.timeToDataCache.set(r,f));if(f&&f.rootData&&(_.N("web_use_response_store_for_history_cache")||_.N("mweb_use_new_history_manager"))){var I=_.a().resolve(_.uQ),C=fCs(f),Y=!!C;if(C){if(C.content){var V=rD(I,C.content);Y&&V?f.rootData.response=_.lO(V):Y=!1}C.player&&(V=rD(I,C.player),Y&&V?f.rootData.playerResponse=_.lO(V):Y=!1);C.reelSequence&&(I=rD(I,C.reelSequence),Y&&I?f.rootData.reelWatchSequenceResponse=
_.lO(I):Y=!1)}Y||(this.timeToDataCache.delete(r),f=void 0)}return f};
r5V.prototype.set=function(r,f){if(f.rootData&&(_.N("web_use_response_store_for_history_cache")||_.N("mweb_use_new_history_manager"))){var I=fCs(f),C=Object.assign({},f.rootData);I&&(I.content&&f.rootData.response&&(ICX(this,I.content,f.rootData.response),C.response=null),I.player&&f.rootData.playerResponse&&(ICX(this,I.player,f.rootData.playerResponse),C.playerResponse=null),I.reelSequence&&f.rootData.reelWatchSequenceResponse&&(ICX(this,I.reelSequence,f.rootData.reelWatchSequenceResponse),C.reelWatchSequenceResponse=
null));f=new D$B(C,f.scrollTop)}this.timeToDataCache.has(r)?this.timeToDataCache.delete(r):this.timeToDataCache.size>=this.maxSize&&(I=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(I.value));this.maxSize!==0&&this.timeToDataCache.set(r,f)};
r5V.prototype.clear=function(){this.timeToDataCache.clear()};
var fCs=function(r){var f=_.a().resolve(_.ZY($w)),I;if((I=r.rootData)==null?0:I.endpoint)return f==null?void 0:yjE(f,r.rootData.endpoint);var C;_.t7(new _.nf("History snapshot response data does not contain endpoint",(C=r.rootData)==null?void 0:C.url));return null},ICX=function(r,f,I){if(r.maxSize>0){var C;
(r=(C=I.responseContext)==null?void 0:C.maxAgeSeconds)&&Number(r)>0&&(C=_.a().resolve(_.uQ),I=kZ(I,r),C.put(f,new _.DL(I)))}};var Ci4=function(r,f,I){this.endpoint=f;this.JSC$26396_savedComponentState=I===void 0?null:I;this.entryTime=r};var tGw=1;var f_=function(r){var f=function(){var I=r.apply(this,[].concat(_.Na(_.XE.apply(0,arguments))))||this;I.historyEntryTime=0;I.historySnapshotCache=I.createHistoryCache();return I};
_.t(f,r);f.prototype.createHistoryCache=function(){return new r5V};
f.prototype.saveAndReplace=function(I,C,Y){var V=window.location.href;var S=S===void 0?{}:S;var h=(h=this.browserHistory.getState())&&h.entryTime?h.entryTime:T7B();I=this.createNewHistoryEntry(I,S,h);this.saveSnapshot(h,C,Y);this.replaceState(I,V||window.location.href)};
f.prototype.saveAndPush=function(I,C,Y,V,S){S=S===void 0?{}:S;this.saveSnapshot(this.historyEntryTime,Y,V);Y=this.historySnapshotCache;V=this.historyEntryTime;var h=Y.timeToDataCache.keys();h=_.E(h);for(var w=h.next();!w.done;w=h.next())w=w.value,w>V&&Y.timeToDataCache.delete(w);C=this.createNewHistoryEntry(C,S);this.pushState(C,I)};
f.prototype.saveSnapshot=function(I,C,Y){this.historySnapshotCache.set(I,new D$B(C,Y))};
f.prototype.createNewHistoryEntry=function(I,C,Y){Y=Y===void 0?T7B():Y;return new Ci4(Y,I,C)};
f.prototype.handlePopstate=function(I){var C=r.prototype.handlePopstate.call(this,I),Y=null,V=null,S=!1,h=null;C&&C.entryTime&&(h=this.historySnapshotCache.get(C.entryTime)||null,S=C.entryTime>this.historyEntryTime,this.historyEntryTime=C.entryTime,Y=C.endpoint,V=C.JSC$26396_savedComponentState);this.handleHistoryCacheLoad(new _.uwg(Y,S,h,V),I);return C};
f.prototype.pushState=function(I,C){Number(I==null?void 0:I.entryTime)>=0&&(this.historyEntryTime=I.entryTime);r.prototype.pushState.call(this,I,C)};
f.prototype.replaceState=function(I,C){Number(I==null?void 0:I.entryTime)>=0&&(this.historyEntryTime=I.entryTime);r.prototype.replaceState.call(this,I,C)};
f.prototype.handleHistoryCacheLoad=function(){};
return f}(qM),YN4=function(){var r=f_.call(this,new qc3)||this;
r.dispatchElement=null;r.entryIndex=0;return r};
_.t(YN4,f_);_.l=YN4.prototype;_.l.init=function(r){r=r===void 0?!0:r;f_.prototype.init.call(this);this.initialized||(r||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.l.handlePopstate=function(r){var f=null;r.state||(f="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return f_.prototype.handlePopstate.call(this,r);var I=new CustomEvent("yt-history-pop",{cancelable:!0});_.Bj(this.dispatchElement,"yt-history-pop",[I,{errorMsg:f}]);_.qy(this.dispatchElement,"yt-close-all-popups-action");if(!I.defaultPrevented){I=_.a().resolve(_.y2);f=I.getCurrentData();var C=I.getCurrentPage();I=0;C?(C=_.Bj(this.dispatchElement,"yt-get-page-offset",
[C]),C.length>0&&(I=C[0])):_.t7(new _.nf("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:f?f.page:"undefined"}));f&&(f.csn=_.t1());this.saveSnapshot(this.historyEntryTime,f,I)}return f_.prototype.handlePopstate.call(this,r)};
_.l.handleHistoryCacheLoad=function(r,f){r.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.E(_.qy(this.dispatchElement,"yt-history-will-navigate",[f])).next().value||_.Bj(this.dispatchElement,"yt-history-load",[f,r]))};
_.l.pushState=function(r,f){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var I=new _.nf("history.pushState is not a function",this.getDebugString());_.Fo(I)}f_.prototype.pushState.call(this,r,f)};
_.l.replaceState=function(r,f){if(!this.browserHistory.boundHistoryReplaceState){var I=new _.nf("history.replaceState is not a function",this.getDebugString());_.Fo(I)}f_.prototype.replaceState.call(this,r,f)};
_.l.saveAndPush=function(r,f,I,C,Y){Y=Y===void 0?{}:Y;I&&(I.csn=_.t1());f_.prototype.saveAndPush.call(this,r,f,I,C,Y)};
_.l.getDebugString=function(){var r=[];this.initialized&&r.push("i");this.browserHistory.boundHistoryReplaceState&&r.push("bhr");this.browserHistory.boundHistoryPushState&&r.push("bhs");"replaceState"in this.browserHistory.debugInfo&&r.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&r.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&r.push("ei:"+String(this.entryIndex));return r.join(",")};
_.I9=function(r,f){r.init(!0);var I=r.browserHistory.getState();r.replaceState(I,GY(f))};
YN4.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.C_=new _.Go("DESKTOP_HISTORY_MANAGER_TOKEN");var lC3=[10,20,30,40,50,60],Y0=function(){this.currentPartitionIndex=0},VDg=function(r){j_3({mainAppWeb:_.Wt(),
survivalSli:{partitionMinute:r,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},Etq=function(r){j_3({mainAppWeb:_.Wt(),
survivalSli:{partitionMinute:r,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},SNV=function(r){return r.currentPartitionIndex>=0&&r.currentPartitionIndex<lC3.length?lC3[r.currentPartitionIndex]:-1},x_D=function(r){return r.currentPartitionIndex>0&&r.currentPartitionIndex-1<lC3.length?lC3[r.currentPartitionIndex-1]:-1};
Y0.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var r=x_D(this);r>0&&Etq(r);r=SNV(this);r>0&&VDg(r);hT3(this)}};
var hT3=function(r){var f=SNV(r);if(f>0){var I=x_D(r);I<0&&(I=0);r.intervalId=_.F_.addJob(function(){var C=x_D(r);C>0&&Etq(C);C=SNV(r);C>0&&VDg(C);hT3(r)},3,(f-I)*6E4);
r.currentPartitionIndex+=1}else r.currentPartitionIndex=-1};var ws_=function(){this.skipNextNavigation=!1},bL3=function(r,f,I){if(!f)return!1;
if(r.skipNextNavigation)return r.skipNextNavigation=!1;if(_.F(I,_.HR))return!1;var C,Y,V;if((C=_.F(I,_.lA))==null?0:(Y=C.browseEndpointContextSupportedConfigs)==null?0:(V=Y.browseEndpointContextMainConfig)==null?0:V.skipConfirmation)return!1;var S;return((S=_.F(f.commandMetadata,_.oo))==null?void 0:S.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
ws_.prototype.showConfirmationDialog=function(r,f){this.navigateParams=f;this.customConfirmationCommand?_.a().resolve(_.Gg).resolveCommand(this.customConfirmationCommand):(f={openPopupAction:{popup:{confirmDialogRenderer:{title:_.iX(_.VR("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.iX(_.VR("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.iX(_.VR("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.iX(_.VR("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.iz.getInstance().triggerAction("yt-open-popup-action",f,r))};
ws_.prototype.cancelPendingNavigation=function(){var r;((r=this.navigateParams)==null?void 0:r.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var psB=function(){},d_g=function(r,f,I,C,Y,V,S){I=I===void 0?{}:I;
S=S===void 0?{}:S;var h=_.uH.instance,w,n=(w=_.F(f,_.HR))==null?void 0:w.url;return n?zeU(h,n,I,window.location.href,function(d,z){ntC(r,d,z,!1,!0,I,V,C)},function(){return!1}):KG(h,f,I,window.location.href,Ei(f),function(d,z){ntC(r,d,z,!1,!0,I,V,C)},Y,S)},ntC=function(r,f,I,C,Y,V,S,h){if(!r.JSC$12203_chunkHandler)if(I.page==="watch"||I.page==="learning_journey_watch")if(Y||C){if(_.N("kevlar_continue_playback_without_player_response")){var w;
var n=(w=_.F(h,_.vj))==null?void 0:w.videoId}r.JSC$12203_chunkHandler=new fMU(_.sk,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:C,previousVideoId:n},tempData:V},S)}else r.JSC$12203_chunkHandler=new BN4(_.sk);else I.page==="shorts"&&Y&&!C?r.JSC$12203_chunkHandler=new rIU(_.sk,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:V},S):r.JSC$12203_chunkHandler=new qq4(S);r.JSC$12203_chunkHandler.processChunk({endpoint:f,data:I});return r.JSC$12203_chunkHandler.bU.promise},
zTq=function(r,f,I,C,Y){(I=_.jQ4(I))&&ntC(r,f,I,!1,!0,C,void 0,Y)};var MDq=function(){this.pendingNavigationPromise=null};
_.l=MDq.prototype;_.l.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.l.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.l.addEventListener=function(){throw Error("xh");};
_.l.dispatchEvent=function(){throw Error("xh");};
_.l.removeEventListener=function(){throw Error("xh");};var gtq=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],la=function(){_.zh.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];aCq(this)};
_.t(la,_.zh);la.prototype.verifyUser=function(){var r=aCq(this),f=r.logout;if(!r.sessionChange)return!0;this.dispatchEvent("ytsessionchange");f&&this.dispatchEvent("ytuserinvalid");return!1};
var aCq=function(r){var f=gtq.map(function(Y){var V;return(V=_.xB.get(Y))!=null?V:""}),I=f.some(function(Y,V){return r.sessionCookies&&r.sessionCookies[V]!==""&&Y===""}),C=f.some(function(Y,V){return r.sessionCookies&&r.sessionCookies[V]!==Y});
r.sessionCookies=f;return{logout:I,sessionChange:C}};
la.prototype.clearTimeout=function(){this.scheduledJobId&&(_.F_.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var epu=new _.Go("POSTMESSAGE_TUNNEL_TOKEN");var WSR=["/parent_tools","/file_download","/artist_roster"],HMw=[KK8,ymT,Uc_,OwB,sR3,vq8,oqU,QRg];var XsT=new _.Go("APP_ROOT");var VJ=new _.Go("NAVIGATION_CONFIRMATION_SERVICE");var N9D="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),$_g=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
ET=function(r,f){this.pendingNavigationPromise=null;this.JSC$12221_clientRoot=r;this.historyManager=f;this.logger=null;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new psB;this.debugString=r.is;r={"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};_.R5(_.iz.getInstance(),r,this.JSC$12221_clientRoot)},c54,WA4,LA4,m__,T9s;
_.t(ET,MDq);ET.prototype.reload=function(){_.$O(window.location.href)};
var RXB=function(r){r.currentEndpoint&&_.F(r.currentEndpoint,_.xO)?r.reload():r.currentEndpoint&&r.navigate(r.currentEndpoint,!0,void 0,{disableCache:!0})};
ET.prototype.navigate=function(r,f,I,C,Y,V,S,h){f=f===void 0?!1:f;I=I===void 0?{}:I;C=C===void 0?{}:C;var w=_.a().resolve(VJ),n;if(!S&&bL3(w,(n=this.currentEndpoint)!=null?n:void 0,r))return w.showConfirmationDialog(this.JSC$12221_clientRoot.parentElement,{endpoint:r,reload:f,params:I,tempData:C,requestType:Y,createScreenConfig:V}),!1;var d=_.mZ();_.eN(d,"eocs")||d.parkOrScheduleJob(function(){d.processSignal("eocs")},10,"eor");
S=Ei(r);w=C.autonav==="1";n=_.t1();la.instance||(la.instance=new la);var z=la.instance.verifyUser(),g;if(_.N("enable_dark_theme_only_on_shorts")){var X=document.documentElement.hasAttribute("dark"),P=_.Pt(!0)==="USER_INTERFACE_THEME_DARK";if(S==="shorts"){if(!X)if(_.N("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var W;_.$O((W=_.F(r==null?void 0:r.commandMetadata,_.oo))==null?void 0:W.url,void 0,void 0,window.top)}}else{var m;_.$O(_.yM((m=_.F(r==null?
void 0:r.commandMetadata,_.oo))==null?void 0:m.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.N("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!X){var v;_.$O(_.yM((v=_.F(r==null?void 0:r.commandMetadata,_.oo))==null?void 0:v.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(P!==X){var O;_.$O(_.yM((O=_.F(r==null?void 0:r.commandMetadata,_.oo))==null?void 0:O.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(S==="watch"){if(FAs(_.a().resolve(_.iO),
r)&&(z||_.N("fix_miniplayer_navigation_killswitch")))return!1;_.N("block_all_player_prefetch_requests")||(g=HBs(_.CG(_.Dv),r,w))}else{var k,Z=(k=_.F(this.currentEndpoint,_.vj))==null?void 0:k.videoId;Z&&_.gj.getInstance().then(function(OP){OP&&OP.set("yt-miniplayer-shown-video-id",Z)})}g&&(I.frags=g.missingFragments_.join(","));
W=null;var Cw;m=(Cw=_.F(r==null?void 0:r.commandMetadata,_.oo))==null?void 0:Cw.ignoreNavigation;if(!m)if(_.N("kevlar_command_url")){var rR;W=(rR=_.F(r==null?void 0:r.commandMetadata,_.oo))==null?void 0:rR.url}else W=_.y3R(r,I);if(W&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&W==this.lastNavigationUrl)return _.gX({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.bO(LA(),"CANCELLED")}W&&(this.lastNavigationUrl=W);bTP();_.Ww("IS_HOMEPAGE_COLD",
!1);_.Ww("IS_RESULTS_PAGE_COLD",!1);_.Ww("IS_WATCH_PAGE_COLD",!1);r.loggingUrls&&r.loggingUrls.forEach(function(OP){OP.baseUrl&&_.jM(OP.baseUrl)});
_.KSd(r,V?V.layer:0)&&_.N("kevlar_flush_logs_on_away_navigation")&&_.$l();if(iMU(r))return!1;aSg(S,Y);if(!W)return m||_.t7(new _.nf("Can't construct url for endpoint",r)),_.bO(LA(),"FAILURE"),!1;_.cpw();Cw=r&&_.F(r,_.lA)&&_.F(r,_.lA).browseId.startsWith("UC");I=(rR=_.N("enable_dark_theme_only_on_shorts")&&S==="shorts"?!1:_.tN()&&document.documentElement.hasAttribute("dark")!==_.Fd())?{themeRefresh:1}:{};rR&&!_.wl()&&_.Pt()==="USER_INTERFACE_THEME_DARK"&&(I.theme="dark");Cw=rR||PiU(W)&&!Cw&&!_.N("kevlar_disable_url_allowlist");
z||(Cw=!0);if(Cw||_.Lz("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var EP;var Pu=(EP=window.top)==null?void 0:EP.location.href}catch(OP){var Wu;Pu=(Wu=OP)==null?void 0:Wu.message}_.t7(new _.nf("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Pu}))}r=_.N("kevlar_redirect_on_window_killswitch")?window.top:window;NG(W);_.$O(_.yM(W,I),void 0,void 0,r);_.bO(LA(),"ABORTED");return!1}_.N("kevlar_early_popup_close")&&_.Bj(this.JSC$12221_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12203_chunkHandler=void 0;var cu;Pu=Ei((cu=this.currentEndpoint)!=null?cu:void 0);(cu=S==="shorts"&&Pu==="shorts")||_.pJB();_.Jn(fVl)("nr",void 0);w&&_.gX({webInfo:{navigationReason:"an"}});r.clickTrackingParams&&(C.itct=r.clickTrackingParams,C.csn=n);zIc(C);C.endpoint=JSON.stringify(r);_.N("enable_unknown_lact_fix_on_html5")&&(_.a().resolve(_.dW),C.lact=_.Zs());_.X0.isEmpty(C)||_.sl(W,C);!_.N("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(V=Object.assign({},{layer:0},V,{parentLayer:3}));this.pendingNavigationPromise=V=d_g(this.pageFetcher,r,C,this.currentEndpoint,this.JSC$12221_isNetworkPromiseStale.bind(this),V,h);V=V.then(this.handleNavigateSuccess.bind(this,V,r,g,C),this.handleNavigateFail.bind(this,V,r));_.xP().navigationFinishPromise=V;f={endpoint:r,pageType:S,url:GY(W),reload:!!f,noProgressBar:_.N("web_disable_page_navigation_progress")||cu};Y&&(f.type=Y);this.fireEvent("yt-navigate-start",f);g&&
zTq(this.pageFetcher,r,g,C,this.currentEndpoint);return!0};
ET.prototype.JSC$12221_isNetworkPromiseStale=function(r){return r!=this.pendingNavigationPromise};
var tDg=function(r,f,I,C,Y){var V=Ei(f);f={endpoint:f,pageType:V};Y&&(f.errorMessage=Y);_.t7(I);f.navigationDoneMs=_.Xc("nd");f.navigationErrorReason=C;r.fireEvent("yt-navigate-error",f)};
ET.prototype.handleNavigateFail=function(r,f,I){var C=void 0;I instanceof _.oV&&(C=I,vYE(I));if(this.JSC$12221_isNetworkPromiseStale(r))return _.h3(C);_.bO(LA(),"FAILURE");tDg(this,f,I,"101");return _.h3(I)};
ET.prototype.handleNavigateSuccess=function(r,f,I,C,Y){if(this.JSC$12221_isNetworkPromiseStale(r))return _.fe();this.pendingNavigationPromise=null;if(!Y)return f=new _.nf("Missing data in response for navigation endpoint",f),_.h3(f);if(Y.reload)return window.location.reload(!0),_.fe();I&&(r={},_.X0.extend(r,_.jQ4(I),Y),Y=r);var V,S;I=(V=Y)==null?void 0:(S=V.timing)==null?void 0:S.responseStart;I!=null&&_.Xc("srt",I);_.Xc("pdc");var h,w;V=(h=Y)==null?void 0:(w=h.timing)==null?void 0:w.info;V!=null&&
(h=_.Jn(_.lVP)(V),_.gX(h));_.bO(LA(),"SUCCESS");T9s(this,f,Y,1,C);return _.fe()};
var PiU=function(r){var f=r;_.N("kevlar_no_redirect_to_classic_2_ks")||(f=(new _.KA(r)).getPath());if(f==="/"||f==="/red")return!1;var I=!0;N9D.forEach(function(C){r.indexOf(C)===0&&(I=!1)});
$_g.forEach(function(C){var Y=C.url;_.N(C.expFlag)&&r.indexOf(Y)===0&&(I=!1)});
return I};
ET.prototype.publishPageData=function(r){this.fireEvent("yt-page-data-fetched",{pageData:r})};
c54=function(r,f,I,C,Y,V){var S=null;f.page!=="watch"||C?f.filler||_.Bj(r.JSC$12221_clientRoot,"yt-stop-old-player",[f]):S=ntC(r.pageFetcher,Y,f,I,!1,V,void 0,r.currentEndpoint);if(S)return S.then(r.publishPageData.bind(r,f));r.publishPageData(f);return _.fe()};
WA4=function(r,f,I){var C=null;if(!I)return C=new _.nf("Empty data",r.debugString,f);var Y=I.response;if(!Y)return C;var V={endpointType:Ei(f)||"unknown"};Y.responseContext?(Y=Y.responseContext.errors)&&(C=new _.nf("Errors in response context",r.debugString,f,Y,V)):C=Y.error||Y.errorMetadata?new _.nf("Errors in response",r.debugString,f,Y.error,Y.errorMetadata,V):new _.nf("responseContext missing",r.debugString,f,Object.keys(Y).sort().join(","),V);var S,h,w,n;if(r=I==null?void 0:(S=I.response)==null?
void 0:(h=S.responseContext)==null?void 0:(w=h.webResponseContextExtensionData)==null?void 0:(n=w.webResponseContextDebugData)==null?void 0:n.debugErrorMessages)for(S=0;S<r.length;S++);return C};
LA4=function(r){var f,I,C,Y;return r==null?void 0:(f=r.response)==null?void 0:(I=f.responseContext)==null?void 0:(C=I.errors)==null?void 0:(Y=C.error)==null?void 0:Y["0"]};
m__=function(r,f){var I;if(I=f.url&&!f.url.startsWith("/clip"))I=f.url,I=!_.N("webfe_parse_debug_param_in_resolveurl_service")&&r.searchDebugUrlMatcher.test(I)||OER(I)?!0:!1;if(I)OER(f.url)&&_.Kz(window.location.href).themeRefresh?(f=_.Ol(f.url,"themeRefresh"),_.I9(r.historyManager,f)):f.url&&!FSq(f.url)&&_.I9(r.historyManager,f.url);else if(f.endpoint){var C,Y,V;(I=(C=f.endpoint)==null?void 0:(Y=C.commandMetadata)==null?void 0:(V=Y.webCommandMetadata)==null?void 0:V.url)&&!FSq(I)&&_.I9(r.historyManager,
I);I&&f.url&&I!=f.url&&!f.url.match("playnext=1")&&new _.nf("Response url mismatch in response data",r.debugString,I,f.url)}};
_.eTX=function(r,f,I,C,Y,V,S,h){V=V===void 0?!1:V;var w=_.a().resolve(VJ),n;if(!h&&bL3(w,(n=r.currentEndpoint)!=null?n:void 0,f))return w.showConfirmationDialog(r.JSC$12221_clientRoot.parentElement,{endpoint:f,data:I,navigationType:C,tempData:Y,isMiniplayer:V,isForwardHistoryNavigation:S==null?void 0:S.forward}),_.fe();r.pageFetcher.JSC$12203_chunkHandler=void 0;return T9s(r,f,I,C,Y,V)};
T9s=function(r,f,I,C,Y,V){V=V===void 0?!1:V;r.isMiniplayerExpansion=V;var S=C===2;r.currentEndpoint=f;r.numNavigations++;r.numNavigations&&(CQR.navigationCount=r.numNavigations);_.Ww("NUM_NAV",r.numNavigations);var h=WA4(r,f,I);if(h)return tDg(r,f,h,"102",LA4(I)),_.h3(h);var w,n,d,z;h=I.rootVe||(I==null?void 0:(w=I.response)==null?void 0:(n=w.responseContext)==null?void 0:(d=n.webResponseContextExtensionData)==null?void 0:(z=d.ytConfigData)==null?void 0:z.rootVisualElementType);!S&&I&&m__(r,I);var g,
X;w=I==null?void 0:(g=I.response)==null?void 0:(X=g.responseContext)==null?void 0:X.maxAgeSeconds;if(!S&&!isNaN(w)){var P;_.N("kevlar_use_response_ttl_to_invalidate_cache")?P=(0,_.Ad)()+1E3*w:_.N("kevlar_always_invalidate_cache")&&(P=0);isNaN(P)||(I.expirationTime=P)}_.N("html5_enable_ssap_entity_id")&&S&&I.playerResponse&&(I.playerResponse.cacheMetadata={isCacheHit:!0});_.CG(_.Dv).prefetchCache_.clear();S||I.page!=="watch"||I.type!=="reduced"&&C!==1?C=c54(r,I,S,!!V,f,Y):(r.publishPageData(I),C=_.fe());
Y=C.then(function(){var W=Ei(f);W={endpoint:f,pageType:W,fromHistory:S,response:I};W.navigationDoneMs=_.Xc("nd");r.fireEvent("yt-navigate-finish",W)});
I.csn&&h&&I.clientSideGrafts&&C.then(r.attachClientSideGrafts.bind(r,I,_.Pj()));return Y};
_.l=ET.prototype;_.l.attachClientSideGrafts=function(r,f){r.clientSideGrafts&&f&&r.clientSideGrafts.forEach(function(I){if(f&&I){var C=_.VH(I);_.N("combine_ve_grafts")?_.IB().graftServerVe(I,f):_.mw(r.csn,f,C)}})};
_.l.handleSignalActionHistoryBack=function(){window.history.back()};
_.l.handleSignalActionCloseWindow=function(){window.close()};
_.l.handleSignalActionReloadPage=function(){this.reload()};
_.l.handleSignalActionSoftReloadPage=function(){RXB(this)};
_.l.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.l.fireEvent=function(r,f){r=new CustomEvent(r,{bubbles:!0,cancelable:!1,composed:!0,detail:f});this.dispatchEvent(r)};
_.l.addEventListener=function(r,f){this.JSC$12221_clientRoot.addEventListener(r,f)};
_.l.dispatchEvent=function(r){return this.JSC$12221_clientRoot.dispatchEvent(r)};
_.l.removeEventListener=function(r,f){this.JSC$12221_clientRoot.removeEventListener(r,f)};
ET[ZB]=[XsT,_.C_];_.TTR=new zJ("browse","h8y2qb");_.cjU=new zJ("search","JzFVk");_.WPR=new zJ("shorts","xwEKAe");_.LPu=new zJ("watchFixie","nmfa2d");_.mOw=new zJ("watchFlexy","CF909");_.eJ$=new zJ("watchGrid","Tm0L3c");_.Jjq=new zJ("watchLearningJourney","L3n37");var J54;var Sc=function(){return _.y.apply(this,arguments)||this};
_.t(Sc,_.y);_.OC.Object.defineProperties(Sc,{template:{configurable:!0,enumerable:!0,get:function(){if(J54===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);J54=r}r=J54;return r}}});
_.A([_.J(jfs.YtPlayerBehavior),_.B("design:type",Object)],Sc.prototype,"ytPlayerBehavior",void 0);Sc=_.A([_.U({is:"ytd-player"})],Sc);var j0V;var HLs;var iLV;var x0=function(){var r=_.y.apply(this,arguments)||this;r.forceModernIconButton=!1;r.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return r};
_.t(x0,_.y);x0.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]]"}}}}}};
x0.prototype.handleAccountLinkingStateChangedCommand=function(r){if(r=_.F(r,IBT)){var f,I=(f=this.data)==null?void 0:f.providerKey;f=r.providerKey;I&&f&&I.id===f.id&&I.subject===f.subject&&(r=r.linked,r!==void 0&&(this.set("data.linked",r),this.notifyPath("data.linked"),_.N("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(r)))}};
x0.prototype.setPlayerAccountLinkState=function(r){var f=new zZE;dfq(f,MUc(new g8K,r));var I=_.sk();I&&I.getPlayerPromise().then(function(C){C.setAccountLinkState(_.Dp(f.JSC$9973_serializeBinary(),4));C.updateAccountLinkingConfig(r)})};
x0.prototype.handleShowAccountLinkDialog=function(){var r=this.get("button.buttonRenderer.command");r&&_.Ce([r],this.hostElement)};
_.OC.Object.defineProperties(x0.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}}}});
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],x0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],x0.prototype,"ytRendererBehavior",void 0);_.A([_.J([_.o_.YtActionHandlerBehavior]),_.B("design:type",Object)],x0.prototype,"actionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],x0.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],x0.prototype,"overrides",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],x0.prototype,"forceModernIconButton",void 0);_.A([_.K({value:"bottom"}),_.B("design:type",String)],x0.prototype,"buttonTooltipPosition",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],x0.prototype,"forceIconButton",void 0);_.A([_.K(),_.B("design:type",Boolean)],x0.prototype,"disableTextTransform",void 0);
_.A([_.R("data","data.linked","data.isWarning"),_.B("design:type",Object),_.B("design:paramtypes",[])],x0.prototype,"button",null);x0=_.A([_.U({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],x0);
_.Q(x0,"ytd-account-link-button-renderer",function(){if(iLV!==void 0)return iLV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return iLV=r},{mode:1});var RTX;var vtD=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],hY=function(){return _.y.apply(this,arguments)||this};
_.t(hY,_.y);hY.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
hY.prototype.updateButtonActiveState=function(){var r=this,f=!!vtD.find(function(I){return r.currentState===I});
this.button&&(this.button.isPressed=f)};
_.OC.Object.defineProperties(hY.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.playlistLoopStateEntity)==null?void 0:r.state)||((f=this.data)==null?void 0:f.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var r=void 0,f;if(this.currentState&&((f=this.data)==null?0:f.states)){f=_.E(this.data.states);for(var I=f.next();!I.done;I=f.next()){I=_.F(I.value,_.Ni3);var C=void 0;if(((C=I)==null?void 0:C.state)===this.currentState){r=I;break}}}return r}}});
hY.prototype.updateButtonActiveState=hY.prototype.updateButtonActiveState;_.A([_.J(_.PH),_.B("design:type",Object)],hY.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],hY.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.K({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.Qfd}),_.B("design:type",Object)],hY.prototype,"playlistLoopStateEntity",void 0);_.A([_.K(),_.B("design:type",Object)],hY.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],hY.prototype,"forceIconOnly",void 0);_.A([_.uA("ytd-button-renderer"),_.B("design:type",_.KT)],hY.prototype,"button",void 0);
_.A([_.R("data","playlistLoopStateEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],hY.prototype,"currentState",null);_.A([_.Bt("currentButtonStateRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hY.prototype,"updateButtonActiveState",null);_.A([_.R("currentState"),_.B("design:type",Object),_.B("design:paramtypes",[])],hY.prototype,"currentButtonStateRenderer",null);
hY=_.A([_.U({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],hY);
_.Q(hY,"ytd-playlist-loop-button-renderer",function(){if(RTX!==void 0)return RTX;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return RTX=r},
{mode:1});var KAT;var y58=_.VR("DOWNLOAD",{},"Download"),U_V=_.VR("DOWNLOADING",{},"Downloading"),s0B=_.VR("DOWNLOADED",{},"Downloaded"),OL8=_.VR("RETRY",{},"Retry"),wD=function(){var r=_.y.apply(this,arguments)||this;r.forceIconButton=!1;r.forceIconOnly=!1;r.overrides=!1;r.buttonTooltipPosition=!1;r.styleActionButton=!1;r.disableTextTransform=!1;r.downloadProgress=0;r.isDownloadComplete=!1;r.isHidden=!0;r.transferState="TRANSFER_STATE_UNKNOWN";r.isVideoDeletedByUser=!1;r.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return r};
_.t(wD,_.y);_.l=wD.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.dataChanged=function(){var r;(r=this.data)!=null&&r.text||(r=_.FN(_.K2().getState(),this.videoId),this.updateButtonState(r))};
_.l.computeVideoId=function(r){return r};
_.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(r){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==U_V||!_.hQ(r))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(r){case "TRANSFER_STATE_UNKNOWN":r=y58;var f="OFFLINE_DOWNLOAD";var I="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":r=OL8;f="OFFLINE_DOWNLOAD";I="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":r=s0B;f="OFFLINE_PIN";I="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":r=
U_V;f="OFFLINE_DOWNLOADING_ZERO";I="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":r=OL8;f="OFFLINE_DOWNLOAD";I="ACTION_RETRY";break;default:r=y58,f="OFFLINE_DOWNLOAD",I="ACTION_ADD"}this.isVideoDeletedByUser&&(r=y58,f="OFFLINE_DOWNLOAD",I="ACTION_ADD");var C=Object.assign({},this.data);C.text=_.iX(r);C.tooltip=r;C.icon={iconType:f};C.size="SIZE_DEFAULT";C.style="STYLE_DEFAULT";_.F(C.command,_.CF)&&(_.F(C.command,_.CF).action=I);this.set("data",C)}};
_.l.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var r="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?r="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?r="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?r="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?r="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?r="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(r="OFFLINE_PIN",this.isDownloadComplete=!0);var f;r!==((f=this.data.icon)==null?void 0:f.iconType)&&(f=Object.assign({},this.data),f.text=_.iX(U_V),f.tooltip=U_V,f.icon={iconType:r},_.F(f.command,_.CF)&&(_.F(f.command,_.CF).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",f))}};
wD.prototype.updateProgress=wD.prototype.updateProgress;wD.prototype.onTransferStateChanged=wD.prototype.onTransferStateChanged;wD.prototype.showHideButton=wD.prototype.showHideButton;wD.prototype.dataChanged=wD.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],wD.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],wD.prototype,"forceIconButton",void 0);
_.A([_.K(),_.B("design:type",Object)],wD.prototype,"forceIconOnly",void 0);_.A([_.K(),_.B("design:type",Object)],wD.prototype,"overrides",void 0);_.A([_.K(),_.B("design:type",Object)],wD.prototype,"buttonTooltipPosition",void 0);_.A([_.K(),_.B("design:type",Object)],wD.prototype,"styleActionButton",void 0);_.A([_.K(),_.B("design:type",Object)],wD.prototype,"disableTextTransform",void 0);
_.A([_.K({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.B("design:type",String)],wD.prototype,"videoId",void 0);_.A([_.K(),_.B("design:type",Object)],wD.prototype,"data",void 0);_.A([_.K({selector:tQ,selectorArgs:["videoId"]}),_.B("design:type",Object)],wD.prototype,"downloadProgress",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],wD.prototype,"isDownloadComplete",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],wD.prototype,"isHidden",void 0);_.A([_.K({selector:_.FN,selectorArgs:["videoId"]}),_.B("design:type",String)],wD.prototype,"transferState",void 0);_.A([_.K({selector:_.GKw,selectorArgs:["videoId"]}),_.B("design:type",Object)],wD.prototype,"isVideoDeletedByUser",void 0);_.A([_.K({selector:Oll,selectorArgs:["videoId"]}),_.B("design:type",Object)],wD.prototype,"offlineabilityState",void 0);
_.A([_.K({value:!0}),_.B("design:type",Boolean)],wD.prototype,"showTooltips",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],wD.prototype,"sendCommandWhenDisabled",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],wD.prototype,"disabled",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wD.prototype,"dataChanged",null);
_.A([_.YN("offlineabilityState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wD.prototype,"showHideButton",null);_.A([_.YN("transferState","isVideoDeletedByUser"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wD.prototype,"onTransferStateChanged",null);_.A([_.YN("downloadProgress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wD.prototype,"updateProgress",null);
wD=_.A([_.U({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],wD);
_.Q(wD,"ytd-download-button-renderer",function(){if(KAT!==void 0)return KAT;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return KAT=r},{mode:2});var ot8;var Q03,A5V=function(){if(Q03!==void 0)return Q03;var r=document.createElement("template");_.c(r,'\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 Q03=r};var ZLB=_.N("web_button_rework")&&_.mO("BUTTON_REWORK")||_.N("web_button_rework_with_live"),GzX=_.Bw("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,ba=function(){var r=_.y.apply(this,arguments)||this;r.isPressed=!1;r.forceIconButton=!1;r.forceIconOnly=!1;r.forceModernIconButton=!1;r.alignByText=!1;r.isShorts=!1;r.animatedText=!1;r.shouldAnimate=!1;r.JSC$12259_browserSupportsAnimation=_.N("web_supports_animations_api");r.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};r.onTap=function(){var f;if((f=r.data)==null||!f.defaultNavigationEndpoint){var I;f=!((I=r.data)==null?0:I.isToggled);var C;if((C=r.data)==null||!C.preventAutoToggle){r.shouldAnimate=!1;r.disableTextUpdateJobId&&_.F_.cancelJob(r.disableTextUpdateJobId);r.disableTextUpdateJobId=_.F_.addLowPriorityJob(function(){r.disableTextUpdateJobId=void 0},GzX);
var Y;r.set("data.isToggled",!((Y=r.data)==null?0:Y.isToggled));I=r.getInnertubeIcon();C={toggled:f,actions:{}};I&&(C.actions[I.toLowerCase()]=f);_.kA(r.hostElement,"yt-toggle-button",C)}}};
return r};
_.t(ba,_.y);_.l=ba.prototype;_.l.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.F_.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.toggle=function(r){var f;this.set("data.isToggled",r!==void 0?r:!((f=this.data)==null?0:f.isToggled))};
_.l.handleUpdateToggleButtonStateCommand=function(r){if(this.data){r=_.F(r,bdq);var f,I,C,Y=(f=this.data)==null?void 0:(I=f.toggleButtonSupportedData)==null?void 0:(C=I.toggleButtonIdData)==null?void 0:C.id;Y&&r&&Y===(r==null?void 0:r.buttonId)&&this.set("data.isToggled",r.toggled)}};
_.l.handleUpdateToggleButtonTextAction=function(r){if(this.data){r=_.F(r,UAX);var f,I,C,Y=(f=this.data)==null?void 0:(I=f.toggleButtonSupportedData)==null?void 0:(C=I.toggleButtonIdData)==null?void 0:C.id;Y&&r&&Y===(r==null?void 0:r.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=r.defaultNumericalValue,this.set("data.defaultText",r.defaultText),this.set("data.toggledText",r.toggledText),this.shouldAnimate=!1)}};
_.l.getInnertubeIcon=function(){var r=this.data;if(r){var f,I,C=((f=r.defaultIcon)==null?0:f.iconType)?(I=r.defaultIcon)==null?void 0:I.iconType:null,Y,V;f=((Y=r.toggledIcon)==null?0:Y.iconType)?(V=r.toggledIcon)==null?void 0:V.iconType:C;return r.isToggled?f:C}};
_.l.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.OC.Object.defineProperties(ba.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var r={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$12259_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var f=r.renderer;var I=r.element;var C=r.toggled;var Y=r.onTapCallback;var V=r.commandClientArgs;var S=r.overrides;var h=r.forceIcon;var w=r.forceModernIconButton;var n=r.forceDisabled;var d=r.useAnimatedText;var z=r.animatedTextProps;r=kG$(f,C);h=!f.defaultIcon||!h&&f.defaultText?f.defaultIcon?"leading":void 0:w?"icon-only":"icon-only-40";h==="icon-only-40"&&(r.type="text");var g;w=Object;var X=w.assign,P;a:switch((P=
f.style)==null?void 0:P.styleType){case "STYLE_COMPACT_GRAY":P={size:"S"};break a;default:P={size:"M"}}var W=!!C;var m=(m=C&&f.toggledText||f.defaultText)?_.dF(m):void 0;d?(d=_.Rr(C&&f.toggledText||f.defaultText))&&z&&!isNaN(Number(z.numberValue))?(z.numberText=d,C&&(z.numberValue+=1),d=z):d=void 0:d=void 0;var v,O,k,Z;var Cw=(z=((O=C?f.toggledAccessibilityData||((Cw=f.toggledText)==null?void 0:Cw.accessibility):f.accessibilityData||((v=f.defaultText)==null?void 0:v.accessibility))==null?void 0:(k=
O.accessibilityData)==null?void 0:k.label)||((Z=f.accessibility)==null?void 0:Z.label))?z:_.Rr(C&&f.toggledText||f.defaultText);n=n===void 0?f.isDisabled:n;I=GGU(f,C,Y,I,V);C=ZME(f,C);C!=null&&C.length?(C=_.Nd({innertubeCommand:U8u(C),forceNewState:!0}),C=$Y(C)?C:void 0):C=void 0;f=X.call(w,{},r,P,{iconPosition:h},S,{focused:!1,toggled:W,toggleable:!0,formattedButtonText:m,animatedTextProps:d,accessibilityLabel:Cw,disabled:n,onTap:I,aTagConfig:C},b0U((g=f.colorData)==null?void 0:g.basicColorPaletteData));
f.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(f.type="filled");return f}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var r=this.getInnertubeIcon();if(r)return _.kN(r)}}});
ba.prototype.resetAnimation=ba.prototype.resetAnimation;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],ba.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ba.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],ba.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ba.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Object)],ba.prototype,"isPressed",void 0);_.A([_.K(),_.B("design:type",Object)],ba.prototype,"forceIconButton",void 0);_.A([_.K(),_.B("design:type",Object)],ba.prototype,"forceIconOnly",void 0);_.A([_.K(),_.B("design:type",Object)],ba.prototype,"forceModernIconButton",void 0);_.A([_.K(),_.B("design:type",Object)],ba.prototype,"alignByText",void 0);_.A([_.K(),_.B("design:type",Object)],ba.prototype,"overrides",void 0);
_.A([_.K(),_.B("design:type",Boolean)],ba.prototype,"disabled",void 0);_.A([_.K(),_.B("design:type",Object)],ba.prototype,"isShorts",void 0);_.A([_.K(),_.B("design:type",Object)],ba.prototype,"buttonTooltipPosition",void 0);_.A([_.K(),_.B("design:type",Object)],ba.prototype,"animatedText",void 0);_.A([_.K(),_.B("design:type",String)],ba.prototype,"textNumberValue",void 0);_.A([_.K({computed:"computeTooltip(data, data.isToggled)"}),_.B("design:type",Object)],ba.prototype,"tooltip",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ba.prototype,"resetAnimation",null);_.A([_.R("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.B("design:type",Object),_.B("design:paramtypes",[])],ba.prototype,"computedButtonShape",null);_.A([_.R("data.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],ba.prototype,"computedIcon",null);
ba=_.A([_.U({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],ba);ZLB&&_.Q(ba,"ytd-toggle-button-renderer",A5V,{mode:_.QQ("kevlar_poly_si_batch_j081")?1:2});var lCK=[],VDl=!1;_.GL(x_R);var kz_,B94;kz_=_.Hc(function(r){function f(n){var d;return _.x(function(z){if(z.nextAddress==1)return(d=!uwl(n,h())||!h().enabled)?z.jumpTo(2):_.b(z,CiB(),3);z.nextAddress!=2&&(d=z.yieldResult);if(d)return z.return();I();setTimeout(function(){S(!1)},1500);
_.wO(z)})}
function I(){setTimeout(function(){S(!0);var n;(n=C.lottieEl)==null||n.goToAndPlay(0)},150)}
var C=_.ru(),Y=_.E(_.ld(!1,void 0,"xffAp")),V=Y.next().value,S=Y.next().value,h=_.JG(r.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.$E(function(){var n,d;((n=r.settings)==null?void 0:(d=n.call(r))==null?void 0:d.uniqueId)==="this is not intended behavior"&&_.t7(new _.nf("Smartimation Settings is undefined"))});
_.az(function(){h().experimentEnabled&&(h().enabled?D$R(f):(S(!1),r5U(f)),_.$L(function(){r5U(f)}))});
_.az(function(){h().timings.join("");h().experimentEnabled&&(fCP(h()),_.$L(function(){IC$(h())}))});
var w=_.hR(function(){return B7B(C,h())},void 0,"d96jJc");
Y={};return _.p("yt-smartimation",{class:_.qd(r.className,"smartimation",(Y["smartimation--experiment-enabled"]=function(){return h().experimentEnabled},Y["smartimation--active-border"]=V,Y["smartimation--enable-masking"]=hTK(),Y))},_.p(_.M,{cond:function(){return h().experimentEnabled},
then:function(){return _.p("div",{class:"smartimation__border"},_.p(_.uT,{className:"smartimation__border-gradient",data:w,animationName:function(){return w().animationConfig.name}}))}}),_.p("div",{class:"smartimation__content"},r.children))},"x");
_.kql=_.N("web_enable_sink_smartimations")?kz_:x_R;B94=_.N("web_enable_sink_smartimations")?kz_:_.rW(x_R);kz_.idomCompat=!0;_.N("web_enable_sink_smartimations")?_.Kv(B94,"yt-smartimation",{props:{className:_.jv,settings:_.jv}}):_.Z5(_.kql,"yt-smartimation",{propNames:["className","settings"]});var p_=function(){var r=_.y.apply(this,arguments)||this;r.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};r.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};r.shouldEnableSmartimation=!1;return r};
_.t(p_,_.y);p_.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
p_.prototype.onDataChanged=function(){var r,f;this.shouldEnableSmartimation=(((r=this.data)==null?void 0:(f=r.timedAnimationData)==null?void 0:f.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
p_.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var r=_.F(this.data.likeButton,_.mR),f=_.F(this.data.dislikeButton,_.mR);return!!((r==null?0:r.isToggled)||(f==null?0:f.isToggled))};
p_.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]]"}}}}}};
_.OC.Object.defineProperties(p_.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var r,f,I=((r=this.data)==null?void 0:(f=r.timedAnimationData)==null?void 0:f.animationTiming)||[];return{uniqueId:"like-dislike",timings:I,enabled:this.shouldEnableSmartimation,experimentEnabled:I.length>0}}}});
p_.prototype.onDataChanged=p_.prototype.onDataChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],p_.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],p_.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],p_.prototype,"likeButtonOverride",void 0);_.A([_.K(),_.B("design:type",Object)],p_.prototype,"dislikeButtonOverride",void 0);
_.A([_.R("shouldEnableSmartimation"),_.B("design:type",Object),_.B("design:paramtypes",[])],p_.prototype,"smartimationSettings",null);_.A([_.Bt("data"),_.kO("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p_.prototype,"onDataChanged",null);p_=_.A([_.U({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],p_);
_.Q(p_,"ytd-segmented-like-dislike-button-renderer",function(){if(ot8!==void 0)return ot8;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return ot8=r},{mode:1});var qN4;var u58;(u58=document.body)==null||u58.setAttribute("rounded-container","");var D_s={};D_s.YtToggleButtonBehavior=[_.o_.YtActionHandlerBehavior,CT.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 r=this.data.isToggled;if(!this.isModal_(r)){if(!this.data.preventAutoToggle){this.toggle();var f={toggled:this.data.isToggled,actions:{}};f.actions[this.buttonIcon]=this.data.isToggled;_.kA(this.hostElement,"yt-toggle-button",f)}f=this.data.defaultServiceEndpoint||null;var I=this.data.toggledServiceEndpoint||null;if(f&&I||f&&this.data.preventAutoToggle)r=r?I:f,f=this.disableCommandHandlerOverride,_.N("killswitch_toggle_button_behavior_resolve_command")||f?_.Do(this.hostElement,
[r]):_.u7(r,this.hostElement),_.kA(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:r})}},
stateChanged_:function(){var r=this.data;if(r){var f=r.isToggled;this._setEndpoint(this.computeEndpoint_(r));this._setServiceEndpoint(this.computeServiceEndpoint_(r));this._setButtonIcon(this.computeButtonIcon_(r,f));this._setButtonText(this.computeButtonText_(r,f));this._setButtonAccessibility(this.computeAccessibility_(r,f));this._setButtonTooltip(this.computeTooltip_(r,f));this._setButtonClass(this.computeButtonClass_(r,f));this._setIconPositionType(this.computeIconPositionType_(r));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=f):this.elements_.button.setAttribute("aria-pressed",f));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=f)}},
shouldSetIconActiveState_:function(){return _.N("kevlar_system_icons")},
toggle:function(r){this.set("data.isToggled",r!==void 0?r:!this.data.isToggled);_.N("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(r){if(r){var f,I;return!!((f=this.data)==null?0:(I=f.toggledServiceEndpoint)==null?0:I.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(r){return r&&r.defaultNavigationEndpoint||null},
computeButtonIcon_:function(r,f){var I=r&&r.defaultIcon?_.kN(r.defaultIcon.iconType):null;r=r&&r.toggledIcon?_.kN(r.toggledIcon.iconType):I;return f?r:I},
handleUpdateToggleButtonStateCommand_:function(r){r=r.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==r.buttonId&&this.toggle(r.toggled)},
computeButtonText_:function(r,f){return r?f&&r.toggledText||r.defaultText||null:null},
computeAccessibility_:function(r,f){return r?(f?this.get("toggledAccessibilityData.accessibilityData",r):this.get("accessibilityData.accessibilityData",r))||r.accessibility||null:null},
computeTooltip_:function(r,f){return r?f&&r.toggledTooltip||r.defaultTooltip||null:null},
computeButtonClass_:function(r,f){if(!r)return"";var I="",C=r.toggledStyle||r.style;if(f=f?C:r.style){f.styleType&&(f=f.styleType);try{I+=f.toLowerCase().replace(/_/g,"-")+" "}catch(Y){_.TL(Y,f,typeof f),_.t7(Y)}}if(r=r.size){r.sizeType&&(r=r.sizeType);try{I+=r.toLowerCase().replace(/_/g,"-")+" "}catch(Y){_.TL(Y,r,typeof r),_.t7(Y)}}return I.trim()},
computeIconPositionType_:function(r){return r&&r.iconPosition||null},
computeServiceEndpoint_:function(r){var f=r&&r.serviceEndpoint,I=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return f?f:I&&r.command?r.command:null},
handleUpdateToggleButtonTextAction_:function(r){r=r.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==r.buttonId&&(this.set("data.defaultText",r.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",r.toggledText),this.notifyPath("data.toggledText"))}}];_.gW("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var rxC=_.N("web_button_rework")&&_.mO("BUTTON_REWORK")||_.N("web_button_rework_with_live"),n_=function(){var r=_.y.apply(this,arguments)||this;r.systemIcons=_.N("kevlar_system_icons");r.roundedContainer=!0;return r};
_.t(n_,_.y);n_.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
n_.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var r=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var f={toggled:!!this.data.isToggled,actions:{}};f.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var I,C;f.actions.playlistId=(I=this.data.defaultServiceEndpoint)==null?void 0:(C=I.playlistEditEndpoint)==null?void 0:C.playlistId;_.kA(this.hostElement,"yt-toggle-button",f)}(r=r?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(r)}};
n_.prototype.onYtNavigate=function(r){var f=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(r.detail.endpoint);f&&(r.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(f))};
_.OC.Object.defineProperties(n_,{template:{configurable:!0,enumerable:!0,get:function(){if(qN4===void 0){var r=document.createElement("template");_.c(r,"\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");r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);qN4=r}r=qN4;return r}}});
n_.prototype.onYtNavigate=n_.prototype.onYtNavigate;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],n_.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],n_.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.RO),_.B("design:type",Object)],n_.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.J(D_s.YtToggleButtonBehavior),_.B("design:type",Object)],n_.prototype,"ytToggleButtonBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],n_.prototype,"data",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],n_.prototype,"showTooltips",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],n_.prototype,"systemIcons",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],n_.prototype,"roundedContainer",void 0);_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],n_.prototype,"onYtNavigate",null);
n_=_.A([_.U({is:"ytd-toggle-button-renderer",disableElementRegistration:rxC})],n_);var f9_;_.dD=new _.Go("PANEL_CONTROLLER_TOKEN");_.z7=new _.Go("SHEET_CONTROLLER_TOKEN");_.MV=new _.Go("DIALOG_CONTROLLER_TOKEN");f9_=new _.Go("DIALOG_CONTAINER_TOKEN");var aCE=_.VR("DOWNLOAD",{},"Download"),Xsc=_.VR("DOWNLOADING",{},"Downloading"),N9R=_.VR("DOWNLOADED",{},"Downloaded"),$_l=_.VR("RETRY",{},"Retry");var I9C=_.Hc(function(r){var f=m_m,I=function(){return""},C=T9P(r.data),Y=c5u(r.data),V=WAB(r.data),S=LAu(r.data);
f=function(){var h=r.data(),w=MDE(h,C(),Y(),V(),S()),n=!!h.videoId,d=w.text;return{title:n?d:void 0,tooltip:n?void 0:d,accessibilityText:d,onTap:w.onTap,iconName:w.iconType,style:h.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:w.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:h.buttonSize}};
I={};I=_.qd("ytDownloadButtonViewModelHost",(I.ytDownloadButtonViewModelIsHidden=function(){var h=r.data(),w=S();return h.playlistId||w()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||w()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},I));
return _.p("download-button-view-model",{class:I},_.p(_.LF,{data:f}))},"y");
I9C.idomCompat=!0;_.GL(j0U);_.GL(eT$);var YyT=_.Hc(function(r){var f=r.backgroundLottieRef;var I=r.foregroundLottieRef;var C=r.children;var Y=r.wrapperClass;var V=r.disableAnimation;r=function(){return(_.N("web_animated_actions")||_.N("web_animated_actions_v2"))&&!(V==null?0:V())};
return _.p("yt-animated-action",{class:_.qd("animated-action__container",Y)},_.p("div",{class:"animated-action__content-with-background"},_.p(_.M,{cond:r,then:function(){return _.p(Cb8,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:f==null?void 0:f(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(HLP()?"dark":"light")+"_v5.json"}}}})}}),C),_.p(_.M,{cond:r,
then:function(){return _.p(Cb8,{lottiePlayerProps:function(){return{animationRef:I==null?void 0:I(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(HLP()?"dark":"light")+"_v4.json"}}}})}}))},"z");
YyT.idomCompat=!0;var w0B=_.N("web_enable_sink_animated_actions")?YyT:j0U,l9T=_.N("web_enable_sink_animated_actions")?YyT:_.rW(j0U),Cb8=_.Hc(function(r){var f=r.wrapperClass;var I=r.lottieClass;var C=r.lottiePlayerProps;return _.p("div",{class:_.qd("animated-action__lottie",f),"aria-hidden":"true"},_.p(_.uT,{className:I,data:C,animationName:function(){return C().animationConfig.name}}))},"A");var iLU={isOpen:!1};var vtR={isAllowed:!1};var y5w={errorMessage:"",title:"",privacy:"",isDisabled:!0};var s0R={isOpen:!1};var otw={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var VTD={response:void 0};var A5U=function(r,f){r=r===void 0?VTD:r;switch(f.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},r,{response:f.payload});default:return r}};var E_3={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var ZLR=function(r,f){r=r===void 0?E_3:r;switch(f.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},r,{nextDisabled:f.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},r,{nextCommand:f.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},r,{footerSubmissionData:f.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},r,{isImpersonationValid:f.payload});default:return r}};var SyB={reportFormData:void 0,reportDetailsFormData:void 0};var Gz$=function(r,f){r=r===void 0?SyB:r;switch(f.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},r,{reportFormData:f.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},r,{reportDetailsFormData:f.payload});default:return r}};var x13=void 0;_.N("mweb_enable_redux_store_on_demand")||(x13=new v1(kzm()));var h5E=_.Hc(function(r){r=_.jS(r,{themeOverride:void 0,animationRef:{}});var f=r.animatedIconType,I=r.active,C=r.themeOverride,Y=r.animationRef;r=r.staticIconFn;var V=_.E(_.ld(void 0,void 0,"P5a72b")),S=V.next().value,h=V.next().value,w=function(){a:{var m=f();var v=C==null?void 0:C();var O;v=(v==null?void 0:v.useDarkTheme)||((O=_.a().resolve(_.ZY(_.cI)))==null?void 0:O());switch(m){case "LIKE":b:{x13||(x13=new v1(kzm()));if((m=k_m(x13.getState()))&&m.animationStyle)switch(m.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":m=
qNu({name:v?"valentines25_heart_dark":"valentines25_heart_light",path:v?"animated_like_valentines25_heart_dark_v5":"animated_like_valentines25_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":m=qNu({name:v?"valentines25_broken_heart_dark":"valentines25_broken_heart_light",path:v?"animated_like_valentines25_broken_heart_dark_v5":"animated_like_valentines25_broken_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":m=
qNu({name:v?"youtube_20th_birthday_dark":"youtube_20th_birthday_light",path:v?"animated_like_youtube_20th_birthday_dark":"animated_like_youtube_20th_birthday_light",totalFrames:60});break b}m=void 0}if(m){v=m;break a}v="animated_like_icon_"+(v?"dark_v4":"light_v4");v={lottiePlayerProps:{animationConfig:{name:v,path:B9B("animated_like_icon",v),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":v={lottiePlayerProps:{animationConfig:{name:v?
"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(v?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}v=void 0}return v},n=function(){var m,v;
return(v=(m=w())==null?void 0:m.lottiePlayerProps.animationConfig.name)!=null?v:""},d=function(){if(w()){var m=w().lottiePlayerProps.animationConfig.path;
return BI.get(m)||S()}};
V=_.E(_.ld(!1,void 0,"h6xR3c"));var z=V.next().value;V=V.next().value;var g=D_P(V),X=function(){var m=w(),v,O,k;return(k=m==null?void 0:(v=m.lottiePlayerProps.animationConfig)==null?void 0:(O=v.rendererSettings)==null?void 0:O.className)!=null?k:""},P=void 0,W=void 0;
_.az(function(){var m=w(),v=n(),O=d(),k=z(),Z=I();if(m&&(W!==v&&(W=v,P=Z,v=Y(),g.animationConfig=m.lottiePlayerProps.animationConfig,g.animationRef=v,O&&(g.animationConfig.animationData=O,g.animationConfig.path=void 0),v=m.lottiePlayerProps.animationConfig.path,!BI.get(v)&&m.lazyLoad&&v&&u5w(v,h)),!(k||m.lazyLoad&&!O))){if(O=!Y().lottieEl)Z?(k=m.totalFrames,g.animationConfig.initialSegment=[k-1,k]):g.animationConfig.initialSegment=void 0;if(P!==Z&&!O)if(O=Y(),Z){var Cw;(Cw=O.lottieEl)==null||Cw.playSegments([0,
m.totalFrames],!0)}else{var rR;(rR=O.lottieEl)==null||rR.playSegments([0,1],!0)}P=Z}});
return _.p("animated-icon",{class:"ytAnimatedIconHost"},_.p(_.M,{cond:function(){var m,v;return!((m=w())==null||!m.lottiePlayerProps.animationConfig.path||((v=w())==null?0:v.lazyLoad)&&!d()||z())},
then:function(){return _.p(_.uT,{data:g,animationName:n,className:X,animationRef:Y})},
else:r}))},"B");_.GL(bSK);var h5q,bS3;h5q=_.Hc(function(r){var f=_.yy(),I=_.yy(),C=_.yy(),Y=_.ru(),V=_.ru(),S=_.ru(),h=_.VS(_.qm,function(){return r.data().stateEntityStoreKey}),w=_.VS(ypB,function(){var C8,Es;
return(Es=(C8=r.data().notificationStateEntityStoreKeys)==null?void 0:C8.subsNotificationStateKey)!=null?Es:""}),n=function(){return!r.data().enableSubscribeButtonPostClickAnimation},d=_.E(_.ld(0,void 0,"j8TVGc")),z=d.next().value,g=d.next().value;
d=_.E(_.ld(0,void 0,"LYLUoe"));var X=d.next().value,P=d.next().value;d=_.E(_.ld(!1,void 0,"CXkJEf"));var W=d.next().value,m=d.next().value;d=_.E(_.ld(!1,void 0,"OWieEd"));var v=d.next().value,O=d.next().value;d=_.E(_.ld(!1,void 0,"bHcaje"));var k=d.next().value,Z=d.next().value,Cw;d=_.E(_.ld(!1,void 0,"Cjx6se"));var rR=d.next().value,EP=d.next().value,Pu=function(){O(!0);_.pF(_.F_,function(){O(!1)},1500)};
_.az(function(){var C8=v();YL(function(){C8&&!n()&&h()&&g_$(Y,V,S)})});
_.az(function(){var C8=h();YL(function(){if(!n()&&C8){var Es;((Es=r.animateWidth)==null?0:Es.call(r))&&MTU(f.value,!!C8.subscribed,z(),X());var J_,xC;((J_=Cw)==null?0:J_.subscribed)||!C8.subscribed||C8.key!==((xC=Cw)==null?void 0:xC.key)||Pu();Cw=C8}})});
d=_.hR(function(){var C8,Es,J_,xC=r.data(),r2=!((C8=h())==null||!C8.subscribed);C8=!((Es=r.isOverlay)==null||!Es.call(r));Es=W()?f.value:void 0;var F9=(J_=w())==null?void 0:J_.state;J_=rR();z5q(xC,F9);return SO({model:xC,subscribed:r2,isOverlay:C8,element:Es,notificationState:F9,disableTextEllipsis:!0,focused:J_})},void 0,"g67gvb");
var Wu=function(){var C8;if(!n()&&((C8=r.animateWidth)==null?0:C8.call(r))&&(I==null?0:I.value)&&(C==null?0:C.value)&&!k()){C8=h();var Es=_.E((C8==null?0:C8.subscribed)?[I,C]:[C,I]),J_=Es.next().value;Es=Es.next().value;J_=Math.ceil(J_.value.getBoundingClientRect().width);Es=Math.ceil(Es.value.getBoundingClientRect().width);g(J_);P(Es);MTU(f.value,!(C8==null||!C8.subscribed),J_,Es);Z(!0)}},cu=_.IC(function(C8){Wu();
var Es=h();Es&&(C8.detail.endpoint.subscribeEndpoint||C8.detail.endpoint.unsubscribeEndpoint)&&n_E(f.value,!Es.subscribed,Es)}),OP=function(){var C8=_.a().resolve(_.ZY(_.nF));
C8&&EP(C8.isKeyBoardInUse())},iU=function(){EP(!1)};
_.KN("yt-player-subscribe",function(C8){var Es=h();Es&&C8===r.data().channelId&&n_E(f.value,!0,Es)});
_.KN("yt-player-unsubscribe",function(C8){var Es=h();Es&&C8===r.data().channelId&&n_E(f.value,!1,Es)});
_.KN("yt-update-subscribe-button-action",function(C8){C8=_.F(C8,x1K);var Es=h();Es&&C8&&C8.channelId===r.data().channelId&&n_E(f.value,!!C8.subscribed,Es)});
_.$E(function(){f.value&&(f.value.addEventListener("focusin",OP),f.value.addEventListener("focusout",iU));var C8=_.dp(_.F_,function(){Wu()});
m(!0);_.$L(function(){_.F_.cancelJob(C8);f.value&&(f.value.removeEventListener("focusin",OP),f.value.removeEventListener("focusout",iU))})});
var oR=function(){var C8,Es,J_;if(J_=!((C8=h())==null||!C8.subscribed))C8=!!r.data().disableNotificationBell,J_=(Es=w())==null?void 0:Es.state,J_=!C8&&!!J_;return J_},vu=function(){var C8;
return!((C8=h())==null?0:C8.subscribed)},wB=function(){var C8,Es;
if(Es=vu()){Es=!!r.data().disableNotificationBell;var J_=(C8=w())==null?void 0:C8.state;Es=!Es&&!!J_}return Es},qT={},gB={};
return _.p("yt-subscribe-button-view-model",{class:_.qd(r.className,"yt-subscribe-button-view-model-wiz",(qT["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var C8,Es;return!((C8=h())==null||!C8.subscribed)&&((Es=r.animateWidth)==null?void 0:Es.call(r))&&v()},qT["yt-subscribe-button-view-model-wiz--hidden"]=function(){var C8;
return!((C8=h())==null?0:C8.subscribed)&&r.data().hideWhenUnsubscribed},qT)),
el:f,"on:yt-service-request-sent":cu},_.p(l9T,{backgroundLottieRef:Y,foregroundLottieRef:V,wrapperClass:_.qd("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(gB["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var C8;return((C8=r.animateWidth)==null?void 0:C8.call(r))&&v()},gB["yt-subscribe-button-view-model-wiz__static-width"]=function(){var C8;
return!((C8=r.animateWidth)==null?0:C8.call(r))},gB)),
disableAnimation:n},_.p("div",{el:I,class:"yt-subscribe-button-view-model-wiz__container"},_.p(k4,{data:d,icon:function(){return _.p(_.M,{cond:oR,then:function(){var C8=function(){var Es;return p0B((Es=w())==null?void 0:Es.state)};
return _.p(_.M,{cond:function(){return n()||C8()!=="NOTIFICATIONS_NONE"},
then:function(){return _.p(_.V2,{icon:C8})},
else:function(){return _.p(h5E,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:S})}})}})},
secondaryIconName:function(){return oR()?"EXPAND":void 0}}))),_.p("div",{el:C,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.p(_.M,{cond:function(){var C8;return((C8=r.animateWidth)==null?void 0:C8.call(r))&&!n()&&!k()},
then:function(){return _.p(k4,{data:_.hR(function(){var C8;return SO({model:r.data(),subscribed:vu(),isOverlay:!((C8=r.isOverlay)==null||!C8.call(r)),element:f.value,disableTextEllipsis:!0})},void 0,"smNF2c"),
iconName:function(){var C8;return wB()?p0B((C8=w())==null?void 0:C8.state):void 0},
secondaryIconName:function(){return wB()?"EXPAND":void 0}})}})))},"C");
_.w04=_.N("web_enable_sink_yt_subscribe_button_view_model")?h5q:bSK;bS3=_.N("web_enable_sink_yt_subscribe_button_view_model")?h5q:_.rW(bSK);h5q.idomCompat=!0;var a9R=new _.Go("RENDERER_STAMPER_OPTIONS_TOKEN");var gu;_.MI=new Zxq;gu=new Map;var iSm="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),v_d=["notificationTextRenderer","notificationMultiActionRenderer"],R5E="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
HSR=cxl(function(r){return _.tR(r==null?void 0:r.targetId)}).useUpdatableData;var jg$=0;_.X1.debugName="EjJbCe";var p04=_.Hc(function(r){var f=r.data;var I=_.VS(_.qm,function(){return f().subscriptionStateEntityKey});
return _.p(_.M,{cond:function(){var C=f(),Y=I();return!C.hideWhenUnsubscribed||(Y==null?0:Y.subscribed)?_.F(f().button,_.NI):void 0},
then:function(C){return _.p("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.p(_.LF,{data:C,buttonOverrides:function(){return{toggled:!0}}}))}})},"D");var U1c=_.zk({buttonViewModel:_.LF,subscribeButtonViewModel:_.w04,downloadButtonViewModel:I9C,toggleButtonViewModel:_.F1,subscribePlusButtonViewModel:p04});_.GL(OSP);var n_q=_.Hc(function(r){return _.p(_.X1,{data:function(){return r.actionRow().actions}},{buttonViewModel:function(f){var I=f.data;
return _.p(gD,{isRow:r.isRow,isIconOnlyButton:function(){return o_$(I())},
useIntrinsicWidth:r.useIntrinsicWidth},_.p(_.LF,{data:I}))},
subscribeButtonViewModel:function(f){return _.p(gD,{isRow:r.isRow},_.p(bS3,{data:f.data,isOverlay:!1,animateWidth:function(){return!r.isRow()}}))},
downloadButtonViewModel:function(f){var I=f.data;return _.p(gD,{isRow:r.isRow,isIconOnlyButton:function(){return!!I().playlistId}},_.p(I9C,{data:I}))},
toggleButtonViewModel:function(f){var I=f.data;return _.p(gD,{isRow:r.isRow,isIconOnlyButton:function(){var C=I();return o_$(_.F(C.isToggled?C.toggledButtonViewModel:C.defaultButtonViewModel,_.NI))}},_.p(_.F1,{data:I}))},
subscribePlusButtonViewModel:function(f){return _.p(gD,{isRow:r.isRow},_.p(p04,{data:f.data}))}})},"E"),gD=_.Hc(function(r){var f={};
return _.p("div",{class:_.qd("yt-flexible-actions-view-model-wiz__action",(f["yt-flexible-actions-view-model-wiz__action--row-action"]=r.isRow,f["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=r.useIntrinsicWidth,f["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,f["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=r.isIconOnlyButton,f))},r.children)},"F"),d1C=_.Hc(function(r){var f=function(){var C;
return((C=r.layout)==null?void 0:C.call(r))===1},I={};
return _.p("yt-flexible-actions-view-model",{class:_.qd("yt-flexible-actions-view-model-wiz",r.className,(I["yt-flexible-actions-view-model-wiz--inline"]=function(){return!f()},I["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return r.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},I))},_.p(_.pz,{each:function(){return r.data().actionsRows||[]}},function(C){return _.p(_.M,{cond:f,
then:function(){return _.p("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.p(n_q,{actionRow:C,isRow:f,useIntrinsicWidth:function(){return!!r.data().respectActionIntrinsicWidth}}))},
else:function(){return _.p(n_q,{actionRow:C,isRow:f})}})}))},"G"),z5C=_.N("web_enable_sink_yt_flexible_actions_view_model")?d1C:OSP,a9=_.N("web_enable_sink_yt_flexible_actions_view_model")?d1C:_.rW(OSP);
d1C.idomCompat=!0;_.Kv(a9,"yt-flexible-actions-view-model",{props:{data:_.jv,layout:_.jv,justifyContentOverride:_.jv,className:_.jv}});_.GL(Qgc);var MTV,qyE;MTV=_.Hc(function(r){var f=_.VS(Nm,function(){var Y;return(Y=r.data().dislikeEntityKey)!=null?Y:""}),I=_.hR(function(){var Y=f();
return Y?Y.likeStatus==="DISLIKE":_.F(r.data().toggleButtonViewModel,_.$4).isToggled},void 0,"D8oIFb"),C=_.hR(function(){return Object.assign({},_.F(r.data().toggleButtonViewModel,_.$4),{isToggled:I()})},void 0,"shaCXe");
return _.p("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.p(_.F1,{data:C,buttonShapeOverrides:r.buttonShapeOverrideables,onToggle:function(Y){var V=f();V&&Y!==(V.likeStatus==="DISLIKE")&&V.key&&_.eS(_.Po("likeStatusEntity",V.key,{likeStatus:Y?"DISLIKE":"INDIFFERENT",hadUserInteraction:Y}))}}))},"H");
qyE=_.N("web_enable_sink_dislike_button_view_model")?MTV:Qgc;_.Xm=_.N("web_enable_sink_dislike_button_view_model")?MTV:_.rW(Qgc);MTV.idomCompat=!0;_.GL(ZSB);var g_X,BgR;g_X=_.Hc(function(r){var f=_.N("web_supports_animations_api"),I=iT(function(g){var X=n(),P,W=(X==null?void 0:(P=X.likeCountIfIndifferent)==null?void 0:P.content)!==g.numberText;if(h()||!W)return g;var m,v;return{numberText:(X==null?void 0:(m=X.likeCountIfIndifferent)==null?void 0:m.content)||"",numberValue:Number((v=X==null?void 0:X.likeCountIfIndifferentNumber)!=null?v:0),heightPx:36,shouldAnimate:!!X}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),C=iT(function(g){var X=n(),P,W=(X==null?void 0:(P=X.likeCountIfIndifferent)==null?void 0:P.content)!==g.numberText;if(h()||!W)return g;var m,v;return{numberText:(X==null?void 0:(m=X.likeCountIfLiked)==null?void 0:m.content)||"",numberValue:Number((v=X==null?void 0:X.likeCountIfLikedNumber)!=null?v:0),heightPx:36,shouldAnimate:!!X}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),Y=_.E(_.ld(void 0,void 0,"T6jMHc")),V=Y.next().value,S=Y.next().value,h=V,w=_.VS(Nm,function(){var g,X;return(X=(g=r.data())==null?void 0:g.likeStatusEntityKey)!=null?X:""}),n=_.VS(gFd,function(){var g,X;
return((g=r.likeCountEntity)==null?void 0:(X=g.call(r))==null?void 0:X.key)||""}),d=_.hR(function(){var g;
return((g=w())==null?void 0:g.likeStatus)==="LIKE"},void 0,"WxQBcd"),z=function(){var g;
return f&&!((g=r.likeCountEntity)==null||!g.call(r))};
return _.p("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.p(_.F1,{data:function(){var g=Object,X=g.assign,P;var W=_.F((P=r.data())==null?void 0:P.toggleButtonViewModel,_.$4);return X.call(g,{},W||{},{isToggled:d()})},
buttonShapeOverrides:r.buttonShapeOverrideables,animatedTextPropsDefault:function(){return z()?I():void 0},
animatedTextPropsToggled:function(){return z()?C():void 0},
onToggle:function(g){Gql(g,w(),h(),S)},
style:function(){var g;return((g=r.disableIconAnimation)==null?0:g.call(r))?void 0:{animateIcon:"true"}}}))},"I");
BgR=_.N("web_enable_sink_like_button_view_model")?g_X:ZSB;_.NV=_.N("web_enable_sink_like_button_view_model")?g_X:_.rW(ZSB);_.GL(uLq);var a9B=_.Hc(function(r){var f=function(){return _.F(r.data().likeButtonViewModel,tv)},I=function(){var Y;
return((Y=f())==null?void 0:Y.likeStatusEntityKey)||""},C=_.hR(function(){var Y,V;
var S=(V=_.VS(Nm,I)())!=null?V:(Y=f())==null?void 0:Y.likeStatusEntity;Y=r.data();var h;Y=(Y==null?void 0:(h=Y.timedAnimationData)==null?void 0:h.animationTiming)||[];return{uniqueId:"like-dislike",timings:Y,enabled:(S==null?void 0:S.likeStatus)==="INDIFFERENT"&&Y.length>0,experimentEnabled:Y.length>0}},void 0,"e1fsz");
return _.p("segmented-like-dislike-button-view-model",{class:_.qd("ytSegmentedLikeDislikeButtonViewModelHost",r.className),"button-renderer":!0},_.p(B94,{settings:C},_.p("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.p(_.M,{cond:f,then:function(Y){return _.p(_.NV,{data:Y,likeCountEntity:function(){return r.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.p(_.M,{cond:function(){return _.F(r.data().dislikeButtonViewModel,Tk)},
then:function(Y){return _.p(_.Xm,{data:Y,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"J"),X08=_.N("web_enable_sink_segmented_like_dislike_button_view_model")?a9B:uLq;
a9B.idomCompat=!0;_.Z5(X08,"segmented-like-dislike-button-view-model",{propNames:["data"]});var YId=0;_.Kv(auK,"account-link-button-view-model",{props:{data:_.jv,className:_.vI,setMinWidth:_.vI,forceIconOnly:_.vI}});_.gW("menuRenderer","menuRenderer","ytd-menu-renderer");
var Ngs={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"}},
$1D=_.N("web_fix_missing_action_buttons")?100:200,$0=function(){var r=_.y.apply(this,arguments)||this;r.safeArea=!_.N("kevlar_flex_menu_safe_area_killswitch");r.tonalOverride=!1;r.threeDotSize="M";r.isOverlay=!1;r.useOverlayDark=!1;r.topLevelIconsOnly=!1;r.JSC$12410_lastWidth=0;r.maybeUpdateFlexibleMenu=function(){_.N("web_fix_missing_action_buttons")?requestAnimationFrame(r.maybeUpdateFlexibleMenuImpl):r.maybeUpdateFlexibleMenuImpl()};
r.maybeUpdateFlexibleMenuImpl=function(){var f;if((f=r.data)!=null&&f.flexibleItems){r.maybeFlushDebouncer();f=r.hostElement.clientWidth;var I=f>r.JSC$12410_lastWidth,C,Y=((C=r.topLevelButtonsContainer)==null?void 0:C.scrollHeight)||0,V;C=((V=r.flexibleItemButtonsContainer)==null?void 0:V.scrollHeight)||0;V=r.hostElement.scrollHeight>Math.max(Y,C)+8;I?(r.resetFlexibleItems(),r.JSC$12410_lastWidth=r.hostElement.clientWidth,r.maybeUpdateFlexibleMenu()):V&&(r.shrinkFlexibleMenu(),r.JSC$12410_lastWidth=
f)}};
r.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){r.onOverflowTap()},
iconPosition:"icon-only",style:r.isOverlay?r.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:r.threeDotSize,state:"active",accessibilityLabel:r.computeAccessibilityLabel(r.data)},r.threeDotButtonOverride)};
r.onOverflowTap=function(){if(r.data.fetchMenuCommand)_.a().resolve(_.Gg).resolveCommand(r.data.fetchMenuCommand,{form:{element:r.hostElement}});else if(r.data.isDisabled&&r.data.disabledCommand)_.u7(r.data.disabledCommand,r.hostElement);else{var f=r.createMenuRendererVe(),I={items:r.items};r.data.menuPopupAccessibility&&(I.menuPopupAccessibility=r.data.menuPopupAccessibility);r.data.footer&&(I.footer=r.data.footer);f={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:I},veData:f}};_.a().resolve(_.z7).openSheet({openPopupActionCommand:f},
r.hostElement)}};
return r};
_.t($0,_.y);_.l=$0.prototype;_.l.updateButtonOverrides=function(){if(!_.N("menu_renderer_label_update_upkillswitch")){var r=_.e(this.hostElement).querySelector("yt-button-view-model");r&&(r.buttonOverrides=this.buttonOverrides)}};
_.l.computeHasItems=function(){var r;return((r=this.topLevelButtonData)==null?void 0:r.length)||this.hasFlexibleItems};
_.l.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.l.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Zh(this.hostElement,{"--ytd-menu-renderer-button-color":_.MG(this.data.iconColor)}))};
_.l.onStamperFinished=function(){this.JSC$12410_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.l.setupFlexibleMenu=function(){var r=this,f;(f=this.data)!=null&&f.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.Gk(this.maybeUpdateFlexibleMenu,$1D,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){r.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(_.N("web_replace_formatted_with_attributed_string")){var r;(r=this.topLevelButtons)==null||r.forEach(function(I){var C;(I=(C=I.getElementsByTagName("yt-attributed-string"))==null?void 0:C[0])&&OBl(I)});
var f;(f=this.flexibleItemButtons)==null||f.forEach(function(I){var C;(I=(C=I.getElementsByTagName("yt-attributed-string"))==null?void 0:C[0])&&OBl(I)})}};
_.l.resetFlexibleItems=function(){var r;if((r=this.data)!=null&&r.flexibleItems){_.N("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var f;this.flexAsTopLevelButtons=(f=this.data.flexibleItems)==null?void 0:f.map(function(I){return _.F(I,_.a4q).topLevelButton});
_.N("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 r;(r=this.flexAsTopLevelButtons)!=null&&r.length&&(this.flexAsTopLevelButtons=[].concat(_.Na(this.flexAsTopLevelButtons.slice(0,-1))))};
_.l.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:Ngs,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:Ngs,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="yt-icons:more_vert"};
_.l.computeTopLevelButtonData=function(r){if(!r)return[];var f;r=(f=r==null?void 0:r.topLevelButtons)!=null?f:[];return _.X0.unsafeClone([].concat(_.Na(r)))};
_.l.computeItems=function(r,f){if(!r)return[];var I=[];if(f){var C=(r.flexibleItems||[]).map(function(S){return _.F(S,_.a4q)});
C=_.E(C);for(var Y=C.next();!Y.done;Y=C.next())Y=Y.value,f.includes(Y.topLevelButton)||(Y=Y.menuItem)&&I.push(Y)}var V;r=(V=r==null?void 0:r.items)!=null?V:[];return[].concat(_.Na(I),_.Na(r))};
_.l.computeMenuActive=function(r,f){return r||f};
_.l.onPopupOpened=function(){this.overlayOpen=!0;_.kA(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.l.onPopupClosed=function(){this.overlayOpen=!1;_.kA(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.l.onPopupCanceled=function(){this.overlayOpen=!1;_.kA(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.l.computeAccessibilityLabel=function(r){return this.get("accessibility.accessibilityData.label",r)};
_.l.isHidden=function(r,f){return this.tonalOverride||!r?!0:r.fetchMenuCommand||r.isDisabled&&r.disabledCommand?!1:!(f==null?0:f.length)};
_.l.isModernOverflowHidden=function(r,f){return this.tonalOverride&&r?r.fetchMenuCommand?!1:!(f==null?0:f.length):!0};
_.l.createMenuRendererVe=function(){var r=this.data.trackingParams,f=_.t1(),I=_.Pj();return r&&f&&I?(r=_.VH(r),I=_.pQ(7591),_.N("combine_ve_grafts")?_.Ia(_.IB(),I,r):_.mw(f,r,I),I):null};
_.OC.Object.defineProperties($0.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.flexAsTopLevelButtons)==null||!r.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
$0.prototype.onPopupCanceled=$0.prototype.onPopupCanceled;$0.prototype.onPopupClosed=$0.prototype.onPopupClosed;$0.prototype.onPopupOpened=$0.prototype.onPopupOpened;$0.prototype.tonalOverrideChanged=$0.prototype.tonalOverrideChanged;$0.prototype.resetFlexibleItems=$0.prototype.resetFlexibleItems;$0.prototype.setupFlexibleMenu=$0.prototype.setupFlexibleMenu;$0.prototype.iconButtonColorChanged=$0.prototype.iconButtonColorChanged;$0.prototype.updateButtonOverrides=$0.prototype.updateButtonOverrides;
_.A([_.J(_.RO),_.B("design:type",Object)],$0.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],$0.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],$0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.uA("#button-shape"),_.B("design:type",kJ)],$0.prototype,"buttonShape",void 0);_.A([_.uA("#button"),_.B("design:type",Object)],$0.prototype,"button",void 0);
_.A([_.K(),_.B("design:type",Object)],$0.prototype,"data",void 0);_.A([_.K({computed:"computeTopLevelButtonData(data)"}),_.B("design:type",Array)],$0.prototype,"topLevelButtonData",void 0);_.A([_.K(),_.B("design:type",Array)],$0.prototype,"flexAsTopLevelButtons",void 0);_.A([_.K({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.B("design:type",Array)],$0.prototype,"items",void 0);_.A([_.K({value:"yt-icons:more_vert"}),_.B("design:type",String)],$0.prototype,"icon",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],$0.prototype,"safeArea",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.B("design:type",Boolean)],$0.prototype,"menuActive",void 0);_.A([_.K(),_.B("design:type",Boolean)],$0.prototype,"menuFocused",void 0);_.A([_.K({value:"bottom"}),_.B("design:type",String)],$0.prototype,"buttonTooltipPosition",void 0);_.A([_.K(),_.B("design:type",Boolean)],$0.prototype,"overlayOpen",void 0);
_.A([_.K({value:!0}),_.B("design:type",Boolean)],$0.prototype,"forceIconButton",void 0);_.A([_.K(),_.B("design:type",Boolean)],$0.prototype,"styleActionButton",void 0);_.A([_.K(),_.B("design:type",Boolean)],$0.prototype,"disableTextTransformOnButtons",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],$0.prototype,"tonalOverride",void 0);_.A([_.K(),_.B("design:type",Object)],$0.prototype,"threeDotSize",void 0);
_.A([_.K(),_.B("design:type",Object)],$0.prototype,"threeDotButtonOverride",void 0);_.A([_.K(),_.B("design:type",Object)],$0.prototype,"isOverlay",void 0);_.A([_.K(),_.B("design:type",Object)],$0.prototype,"useOverlayDark",void 0);_.A([_.K({computed:"computeButtonOverride(tonalOverride)"}),_.B("design:type",Object)],$0.prototype,"buttonOverride",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],$0.prototype,"hasCustomIconColor",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("flexAsTopLevelButtons"),_.B("design:type",Object),_.B("design:paramtypes",[])],$0.prototype,"hasFlexibleItems",null);_.A([_.K({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.B("design:type",Boolean)],$0.prototype,"hasItems",void 0);_.A([_.K(),_.B("design:type",Object)],$0.prototype,"topLevelIconsOnly",void 0);
_.A([_.Bt("topLevelIconsOnly"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$0.prototype,"updateButtonOverrides",null);_.A([_.R("topLevelIconsOnly"),_.B("design:type",Object),_.B("design:paramtypes",[])],$0.prototype,"buttonOverrides",null);_.A([_.uA("#top-level-buttons-computed"),_.B("design:type",HTMLElement)],$0.prototype,"topLevelButtonsContainer",void 0);_.A([_.Dh(".top-level-buttons > *"),_.B("design:type",Array)],$0.prototype,"topLevelButtons",void 0);
_.A([_.uA("#flexible-item-buttons"),_.B("design:type",HTMLElement)],$0.prototype,"flexibleItemButtonsContainer",void 0);_.A([_.Dh("#flexible-item-buttons > *"),_.B("design:type",Array)],$0.prototype,"flexibleItemButtons",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$0.prototype,"iconButtonColorChanged",null);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$0.prototype,"setupFlexibleMenu",null);_.A([_.YN("topLevelIconsOnly"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$0.prototype,"resetFlexibleItems",null);_.A([_.Bt("tonalOverride"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$0.prototype,"tonalOverrideChanged",null);
_.A([_.kO("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$0.prototype,"onPopupOpened",null);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$0.prototype,"onPopupClosed",null);_.A([_.kO("yt-popup-canceled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$0.prototype,"onPopupCanceled",null);
_.Q($0,"ytd-menu-renderer",function(){if(HLs===void 0){var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);HLs=r}r=HLs;return r},{mode:_.QQ("kevlar_poly_si_batch_j030")?1:2});var Fkq;var Pb3;_.Av=_.Hc(function(r){var f=r.data;var I=function(){if(f().icon)a:{var C={iconName:f().icon};for(var Y=_.a().resolve(_.Bc),V=_.E([12,24]),S=V.next();!S.done;S=V.next()){var h=S.value;S=Object.assign({},C,{iconStyle:"youtube_fill",iconSize:h});h=Object.assign({},C,{iconStyle:"youtube_outline",iconSize:h});if(Y.resolveIcon(S)){C=S;break a}if(Y.resolveIcon(h)){C=h;break a}}C=void 0}else C=void 0;return C};
r={};return _.p("badge-shape",{class:_.qd("badge-shape-wiz",function(){return $fm(f().type)},(r["badge-shape-wiz--overlay"]=function(){return f().isOverlay},r["badge-shape-wiz--ads-include-dot"]=function(){return f().adsIncludeDot},r["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(f().type){case 16:case 17:case 18:var C=!0;
break a;default:C=!1}return C},r["badge-shape-wiz--status-badge"]=function(){a:switch(f().type){case 11:case 12:case 13:case 14:case 15:var C=!0;
break a;default:C=!1}return C},r["badge-shape-wiz--no-text"]=function(){return!f().text},r["badge-shape-wiz--modern"]=function(){return f().modern},r)),
style:_.lB({"background-color":function(){var C;return(C=f().customColors)==null?void 0:C.backgroundColor}}),
role:function(){return f().accessibilityText?"img":void 0},
"aria-label":function(){return f().accessibilityText}},_.p(_.M,{cond:function(){return f().animation},
then:function(C){return _.p(_.uT,{className:"badge-shape-wiz__icon",data:C,animationName:function(){return C().animationConfig.name||""}})}}),_.p(_.M,{cond:function(){var C;
return I()&&!((C=f())==null?0:C.animation)},
then:function(){return _.p("div",{class:"badge-shape-wiz__icon"},_.p(xqm,{data:function(){return I()}}))}}),_.p("div",{class:"badge-shape-wiz__text"},function(){var C;
return(C=f())==null?void 0:C.text}))},"K");
_.Av.idomCompat=!0;_.Kv(_.Av,"badge-shape",{props:{data:_.jv}});var Fm=function(){var r=_.y.apply(this,arguments)||this;r.systemIcons=_.N("kevlar_system_icons");r.animated=_.N("animated_live_badge_icon");r.useBadgeShape=_.N("web_badge_shape_defrag");return r};
_.t(Fm,_.y);_.l=Fm.prototype;_.l.addTooltips=function(){for(var r=_.e(this.hostElement).querySelectorAll(".badge"),f=0,I;I=r[f++];){var C=this.repeatElement.itemForElement(I);I=_.e(I);I.lastChild&&I.lastChild.is==="tp-yt-paper-tooltip"&&I.removeChild(I.lastChild);if(C=C.metadataBadgeRenderer&&C.metadataBadgeRenderer.tooltip){var Y=_.yb("tp-yt-paper-tooltip");(0,_.AN)(Y).textContent=C;Y.setAttribute("position","top");I.appendChild(Y)}}};
_.l.badgesChanged=function(){var r=this;_.mZ().parkOrScheduleJob(function(){r.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.l.standaloneRoundedBadgeChanged=function(){var r=this.useRoundedBadge?this.useRoundedBadge:void 0;r&&(this.useRoundedBadge=r)};
_.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(r){_.N("enable_html5_teal_ad_badge")&&r==="BADGE_STYLE_TYPE_AD"&&(r="badge-style-type-ad-alternate");_.N("kevlar_ytb_live_badges")&&r==="BADGE_STYLE_TYPE_LIVE_NOW"&&(r="badge-style-type-live-now-alternate");return r?r.toLowerCase().replace(/_/g,"-"):""};
_.l.computeRole=function(r){return this.computeAriaLabel(r)?"img":"status"};
_.l.computeAriaLabel=function(r){var f;return(r==null?void 0:(f=r.accessibilityData)==null?void 0:f.label)||(r==null?void 0:r.label)};
_.l.computeBadgeShape=function(r){var f;if(r){var I,C=XfK(r.style),Y=NZm(r.style),V=r.label,S=((I=r.accessibilityData)==null?void 0:I.label)||r.label;r=(f=r.icon)==null?void 0:f.iconType;f={type:C,brNzRatingBadgeType:Y,text:V,accessibilityText:S,icon:r!=="PREMIUM"?r:void 0}}else f={};return f};
_.l.updateComputedBadges=function(r,f,I){var C=this;(f=f?[f]:I?[I]:void 0)?this.computedBadges=f:this.computedBadges=r==null?void 0:r.filter(function(Y){var V;if((V=Y.metadataBadgeRenderer)==null?0:V.groups){V=!1;Y=_.E(Y.metadataBadgeRenderer.groups);for(var S=Y.next();!S.done;S=Y.next()){S=S.value;var h=void 0;V=V||((h=C.hiddenBadgeGroups)==null?void 0:h.includes(S))}return!V}return!0})};
_.l.useFilledIcons=function(r){return _.N("kevlar_system_icons")&&(r==="AUDIO_BADGE"||r==="CHECK_CIRCLE_THICK"||r==="OFFICIAL_ARTIST_BADGE"||r==="SPONSORSHIP_STAR"||r==="PERSON_RADAR_FILLED"||r==="PERSON_RADAR")};
_.l.computeIcon=function(r){var f,I;r=r==null?void 0:(f=r.metadataBadgeRenderer)==null?void 0:(I=f.icon)==null?void 0:I.iconType;if(r!=="PREMIUM"&&r)return _.kN(r)};
_.l.computeStandaloneBadge=function(r){var f;r=r==null?void 0:(f=r.icon)==null?void 0:f.iconType;return r==="PREMIUM_STANDALONE"||r==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
Fm.prototype.hiddenBadgeGroupsChanged=Fm.prototype.hiddenBadgeGroupsChanged;Fm.prototype.standaloneBadgeChanged=Fm.prototype.standaloneBadgeChanged;Fm.prototype.standaloneRoundedBadgeChanged=Fm.prototype.standaloneRoundedBadgeChanged;Fm.prototype.badgesChanged=Fm.prototype.badgesChanged;_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Fm.prototype,"hidden",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Fm.prototype,"componentBehavior",void 0);
_.A([_.K(),_.B("design:type",Array)],Fm.prototype,"badges",void 0);_.A([_.K(),_.B("design:type",Object)],Fm.prototype,"topStandaloneBadge",void 0);_.A([_.K(),_.B("design:type",Object)],Fm.prototype,"bottomStandaloneBadge",void 0);_.A([_.K(),_.B("design:type",Object)],Fm.prototype,"computedBadges",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Fm.prototype,"mediumFontAdBadge",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Fm.prototype,"useRoundedBadge",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Fm.prototype,"largeFontAdBadge",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Fm.prototype,"overlayAd",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Fm.prototype,"overlayPremium",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Fm.prototype,"noDotAdBadge",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Fm.prototype,"collectionTruncate",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Fm.prototype,"isThumbnailBadge",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Fm.prototype,"wrapBadges",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Fm.prototype,"systemIcons",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Fm.prototype,"animated",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Fm.prototype,"useBadgeShape",void 0);_.A([_.K({value:[]}),_.B("design:type",Array)],Fm.prototype,"hiddenBadgeGroups",void 0);_.A([_.uA("#repeat"),_.B("design:type",b7)],Fm.prototype,"repeatElement",void 0);_.A([_.YN("badges"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fm.prototype,"badgesChanged",null);
_.A([_.YN("useRoundedBadge"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fm.prototype,"standaloneRoundedBadgeChanged",null);_.A([_.YN("topStandaloneBadge","bottomStandaloneBadge"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fm.prototype,"standaloneBadgeChanged",null);_.A([_.YN("hiddenBadgeGroups"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fm.prototype,"hiddenBadgeGroupsChanged",null);
Fm=_.A([_.U({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Fm);
var tTs=_.os()(Fm,"ytd-badge-supported-renderer",function(){if(Pb3===void 0){var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);Pb3=r}r=Pb3;return r},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.QQ("kevlar_poly_si_batch_j053")?1:2});var Pr=function(){var r=_.y.apply(this,arguments)||this;r.iconType="STAR";r.standardizeIconSize=_.N("kevlar_system_icons");r.mediaHoverOverlayInitialVisibility=_.N("enable_top_landscape_image_button_command_web");r.noBottomMargin=!1;r.thumbnailObjectFit="CONTAIN";r.thumbnailFitHeight=!0;r.actionMap={"yt-mute-ad-action":"handleMuteAd"};return r};
_.t(Pr,_.y);_.l=Pr.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",Pr.JSC$12422_DEFAULT_CLICK_LOCATION_BEHAVIOR,Pr.JSC$12422_CLICK_LOCATION_ID_MAP))};
_.l.onTap=function(r){if(!_.N("use_on_click_for_desktop_display_ad"))this.onTapOrClick(r)};
_.l.onClick=function(r){if(_.N("use_on_click_for_desktop_display_ad"))this.onTapOrClick(r)};
_.l.onTapOrClick=function(r){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,r,!1)};
_.l.updateMediaBackgroundImage=function(){var r=this.get("data.image.thumbnail.thumbnails");r&&(r=_.yH(r,0))&&_.Zh(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+r+")"})};
_.l.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var r=0;r<this.data.impressionEndpoints.length;r++){var f=this.data.impressionEndpoints[r];f.clickTrackingParams&&delete f.clickTrackingParams;_.a().resolve(_.Gg).resolveCommand(f,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var I;((I=this.data)==null?0:I.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.l.handleMuteAd=function(){};
_.l.attached=function(){var r=this;_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&r.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){_.N("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.OC.Object.defineProperties(Pr.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.data)==null||!r.titleText)return"";var f;return _.VR("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((f=this.data)==null?void 0:f.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?0:r.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?0:r.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?0:r.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?0:r.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?0:r.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 r;return!((r=this.data)==null||!r.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"}}});
Pr.prototype.onClick=Pr.prototype.onClick;Pr.prototype.onTap=Pr.prototype.onTap;Pr.prototype.dataChanged=Pr.prototype.dataChanged;
Pr.JSC$12422_CLICK_LOCATION_ID_MAP=_.N("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"]]);
Pr.JSC$12422_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.N("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"}];_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Pr.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Pr.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.TD),_.B("design:type",Object)],Pr.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],Pr.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.Qu.YtSparklesClickLocationBehavior),_.B("design:type",Object)],Pr.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.J($G),_.B("design:type",Object)],Pr.prototype,"ytdActiveViewBehavior",void 0);_.A([_.J([_.o_.YtActionHandlerBehavior]),_.B("design:type",Object)],Pr.prototype,"actionHandlerBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],Pr.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],Pr.prototype,"clickCommand",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.ar}),_.B("design:type",Boolean)],Pr.prototype,"miniMode",void 0);_.A([_.K(),_.B("design:type",String)],Pr.prototype,"iconType",void 0);_.A([_.R("data.titleText"),_.B("design:type",String),_.B("design:paramtypes",[])],Pr.prototype,"titleAriaLabel",null);
_.A([_.R("data.rating"),_.B("design:type",Object),_.B("design:paramtypes",[])],Pr.prototype,"getRating",null);_.A([_.R("data.price"),_.B("design:type",Object),_.B("design:paramtypes",[])],Pr.prototype,"getPrice",null);_.A([_.R("data.thirdLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],Pr.prototype,"getThirdLine",null);_.A([_.R("data.fourthLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],Pr.prototype,"getFourthLine",null);
_.A([_.R("data.fifthLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],Pr.prototype,"getFifthLine",null);_.A([_.R("getRating"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Pr.prototype,"computeRatingHidden",null);_.A([_.R("getPrice"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Pr.prototype,"computePriceHidden",null);_.A([_.R("getThirdLine"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Pr.prototype,"computeThirdLineHidden",null);
_.A([_.R("getFourthLine"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Pr.prototype,"computeFourthLineHidden",null);_.A([_.R("getFifthLine"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Pr.prototype,"computeFifthLineHidden",null);_.A([_.K({reflectToAttribute:!0}),_.R("data.energyIcon"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Pr.prototype,"hasEnergyIcon",null);
_.A([_.R("computePriceHidden","computeRatingHidden"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Pr.prototype,"computeSecondaryTextHidden",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Pr.prototype,"standardizeIconSize",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Pr.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Pr.prototype,"noBottomMargin",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("data.layout"),_.B("design:type",String),_.B("design:paramtypes",[])],Pr.prototype,"layout",null);_.A([_.R("data.layout"),_.B("design:type",Object),_.B("design:paramtypes",[])],Pr.prototype,"mediaThumbnailWidth",null);_.A([_.R("layout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Pr.prototype,"useRoundedBadge",null);_.A([_.K(),_.B("design:type",String)],Pr.prototype,"thumbnailObjectFit",void 0);
_.A([_.K(),_.B("design:type",Object)],Pr.prototype,"thumbnailFitHeight",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pr.prototype,"dataChanged",null);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Pr.prototype,"onTap",null);_.A([_.kO("click"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Pr.prototype,"onClick",null);
Pr=_.A([_.U({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],Pr);
_.Q(Pr,"ytd-display-ad-renderer",function(){if(Fkq!==void 0)return Fkq;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Fkq=r},{mode:1});var Tg_;var cxg;var Wk8;var Fp$=new Map;var LkD=!1;var tY=function(){var r=_.y.apply(this,arguments)||this;r.DEFAULT_TOOLTIP_OFFSET="10";r.TOOLTIP_OFFSET_NO_BANNER="-8";r.badges=null;r.noEndpoints=!1;r.wrapText=!1;r.forceVerified=!1;r.tooltipPosition="top";r.compactStyle=!1;r.height=0;r.lineHeight=0;return r};
_.t(tY,_.y);_.l=tY.prototype;_.l.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.l.attached=function(){var r=this;this.observer=new MutationObserver(function(f,I){r.handleResized();I.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.l.detached=function(){this.observer&&this.observer.disconnect()};
_.l.logTooltipEvent=function(){_.N("kevlar_wiz_tooltip_event_killswitch")||LkD||(_.PLR("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),LkD=!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 r=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Lz("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=r:this.textContainerEl.style.marginRight=r}};
_.l.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Lz("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.l.handleResized=function(){var r=this;this.verified&&_.F_.addLowPriorityJob(function(){r.fitBackgroundToText();var f=getComputedStyle(r.hostElement).lineHeight;f&&(f=f.match(/\d+/))&&f.length&&(r.lineHeight=Number(f[0]));r.height=r.lineHeight&&!r.wrapText?r.lineHeight:r.textEl.offsetHeight})};
_.l.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var r=document.createRange(),f=_.e(this.textEl).children;f.length>0?r.selectNodeContents(f[0]):r.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(r.getBoundingClientRect().width)+"px"}};
_.l.computeChannelBadgeStyle=function(r){var f;if((r==null?0:(f=r.runs)==null?0:f.length)&&r.runs[0].textColor)return"--ytd-badge-icon-color:"+_.MG(r.runs[0].textColor)+";"};
_.OC.Object.defineProperties(tY.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"?_.iX(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var r=this.get("badges.0.metadataBadgeRenderer.tooltip");if(r)return r}return _.Rr(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
tY.prototype.onLineHeightChanged=tY.prototype.onLineHeightChanged;tY.prototype.onHeightChanged=tY.prototype.onHeightChanged;tY.prototype.onChannelNameChanged=tY.prototype.onChannelNameChanged;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],tY.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],tY.prototype,"badges",void 0);_.A([_.K(),_.B("design:type",Object)],tY.prototype,"channelName",void 0);
_.A([_.K(),_.B("design:type",Object)],tY.prototype,"noEndpoints",void 0);_.A([_.K(),_.B("design:type",Object)],tY.prototype,"wrapText",void 0);_.A([_.K(),_.B("design:type",Object)],tY.prototype,"forceVerified",void 0);_.A([_.K(),_.B("design:type",Object)],tY.prototype,"tooltipPosition",void 0);_.A([_.K(),_.B("design:type",String)],tY.prototype,"tooltip",void 0);_.A([_.K(),_.B("design:type",Boolean)],tY.prototype,"hasChannelArt",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],tY.prototype,"compactStyle",void 0);_.A([_.uA("#text-container"),_.B("design:type",HTMLElement)],tY.prototype,"textContainerEl",void 0);_.A([_.uA("#text"),_.B("design:type",Object)],tY.prototype,"textEl",void 0);_.A([_.uA("#verified-tooltip"),_.B("design:type",HTMLElement)],tY.prototype,"verifiedTooltip",void 0);_.A([_.K(),_.B("design:type",Object)],tY.prototype,"height",void 0);
_.A([_.K(),_.B("design:type",Object)],tY.prototype,"lineHeight",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("badges","forceVerified"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],tY.prototype,"verified",null);_.A([_.R("badges","verified"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],tY.prototype,"hideBadges",null);_.A([_.R("channelName"),_.B("design:type",Object),_.B("design:paramtypes",[])],tY.prototype,"formattedName",null);
_.A([_.R("badges","verified","formattedName"),_.B("design:type",String),_.B("design:paramtypes",[])],tY.prototype,"tooltipText",null);_.A([_.R("hasChannelArt"),_.B("design:type",String),_.B("design:paramtypes",[])],tY.prototype,"tooltipOffset",null);_.A([_.Bt("channelName"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tY.prototype,"onChannelNameChanged",null);
_.A([_.Bt("height"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tY.prototype,"onHeightChanged",null);_.A([_.Bt("lineHeight","height"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tY.prototype,"onLineHeightChanged",null);tY=_.A([_.U({is:"ytd-channel-name",disableElementRegistration:!0})],tY);
_.Q(tY,"ytd-channel-name",function(){if(Wk8!==void 0)return Wk8;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Wk8=r},{mode:_.QQ("kevlar_poly_si_batch_j036")?1:2});var T7=function(){var r=_.y.apply(this,arguments)||this;r.standardizeIconSize=_.N("kevlar_system_icons");r.enableModernCommentBadges=_.N("enable_modern_comment_badges");return r};
_.t(T7,_.y);T7.prototype.basicPaletteChanged=function(){var r;(r=this.data.color)!=null&&r.basicColorPaletteData&&_.zY(this.hostElement,this.data.color.basicColorPaletteData)};
T7.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var r,f=this.get("basicColorPaletteData.backgroundColor",(r=this.data)==null?void 0:r.color),I;r=this.get("basicColorPaletteData.foregroundTitleColor",(I=this.data)==null?void 0:I.color);I={};f?(f=_.MG(f),I["--ytd-author-comment-badge-background-color"]=f):(I["--ytd-author-comment-badge-icon-background-color"]="transparent",I["--ytd-author-comment-badge-background-color"]="transparent");r?(f=_.MG(r),I["--ytd-author-comment-badge-name-color"]=
f,I["--ytd-author-comment-badge-icon-color"]=f):I["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(I).length>0&&_.Zh(this.hostElement,I)}};
T7.prototype.useFilledIcons=function(r){return _.N("kevlar_system_icons")&&(r==="CHECK_CIRCLE_THICK"||r==="OFFICIAL_ARTIST_BADGE")};
_.OC.Object.defineProperties(T7.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
T7.prototype.colorChanged=T7.prototype.colorChanged;T7.prototype.basicPaletteChanged=T7.prototype.basicPaletteChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],T7.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],T7.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],T7.prototype,"standardizeIconSize",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],T7.prototype,"enableModernCommentBadges",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("data.authorUnifiedVerified"),_.B("design:type",Object),_.B("design:paramtypes",[])],T7.prototype,"verified",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],T7.prototype,"creator",null);_.A([_.Bt("data.color.basicColorPaletteData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],T7.prototype,"basicPaletteChanged",null);
_.A([_.Bt("data.color"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],T7.prototype,"colorChanged",null);T7=_.A([_.U({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],T7);
_.Q(T7,"ytd-author-comment-badge-renderer",function(){if(cxg!==void 0)return cxg;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return cxg=r},{mode:1});var m13;var cr=function(){return _.y.apply(this,arguments)||this};
_.t(cr,_.y);cr.prototype.computeThumbnailWidth=function(r){if(r==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],cr.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],cr.prototype,"data",void 0);_.A([_.K({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],cr.prototype,"icon",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],cr.prototype,"surface",void 0);
_.A([_.K({reflectToAttribute:!0,value:_.N("enable_shrink_image_size_on_web_posts_singleton")}),_.B("design:type",Boolean)],cr.prototype,"searchSxsUx",void 0);cr=_.A([_.U({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],cr);
_.Q(cr,"ytd-backstage-image-renderer",function(){if(m13!==void 0)return m13;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return m13=r},{mode:1});var e5D;var Wr=function(){var r=_.y.apply(this,arguments)||this;r.isLoading=!1;r.selectedItemIndex=-1;return r};
_.t(Wr,_.y);_.l=Wr.prototype;_.l.computeIsChannelOwner=function(r){if(!r)return!0;r=r[0];return!(r&&(r.signinEndpoint||r.selectServiceEndpoint))};
_.l.computeIsImagePoll=function(r){return(r==null?void 0:r.type)==="POLL_TYPE_IMAGE"};
_.l.computeIsTotalVotesDisabled=function(r){return!(r==null?0:r.totalVotes)};
_.l.thumbnailSrc=function(r){var f,I,C,Y;return(r==null?0:(f=r.thumbnails)==null?0:(I=f[0])==null?0:I.url)?_.gn((C=r.thumbnails)==null?void 0:(Y=C[0])==null?void 0:Y.url):void 0};
_.l.progressWidth=function(r){return"width:"+(r?r*100:0)+"%;"};
_.l.textAreaWidth=function(r){return this.isImagePoll?null:"width:"+(r?r*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 r=this.data.choices,f=0;f<r.length;f++)if(r[f].selected){this.selectedItemIndex=f;break}};
_.l.onPopupClosed=function(r,f){r=Number(this.pollVotes.selected);f.confirmed&&(this.selectChoice(r,!1),_.Bj(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(r,f){f&&(this.selectChoice(f.selectedChoiceIndex,!0),this.set("data.totalVotes",f.totalVotes))};
_.l.onYtServiceRequestSent=function(r,f){if(f.actions)for(r=0;r<f.actions.length;r++){var I=f.actions[r];_.F(I,XD)&&this.set("data.totalVotes",_.F(I,XD).totalVotes)}};
_.l.onYtServiceRequestCompleted=function(r){var f=this.get("detail.data.actionResults.0.feedback",r);r=this.get("detail.data.actionResults.0.status",r);if(f==="FEEDBACK_DESELECT"||f==="FEEDBACK_SELECT")this.isLoading=!1,r==="STATUS_FAILED"?_.kA(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.l.getEndpoint=function(r,f){return f===r?this.data.choices[f].deselectServiceEndpoint||null:this.data.choices[r].selectServiceEndpoint||null};
_.l.selectChoice=function(r,f){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var I=0;I<this.data.choices.length;I++){var C;if(r===this.selectedItemIndex){var Y=!1;var V=C=null}else C=(Y=I===r)?this.data.choices[I].voteRatioIfSelected:this.data.choices[I].voteRatioIfNotSelected,V=Y?this.data.choices[I].votePercentageIfSelected:this.data.choices[I].votePercentageIfNotSelected;this.set("data.choices."+I+".voteRatio",C);
this.set("data.choices."+I+".votePercentage",V);this.set("data.choices."+I+".selected",Y)}f||(this.isLoading=!0,(f=this.getEndpoint(r,this.selectedItemIndex))&&_.a().resolve(_.Gg).resolveCommand(f,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===r?-1:r};
_.OC.Object.defineProperties(Wr.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Wr.prototype.onYtServiceRequestCompleted=Wr.prototype.onYtServiceRequestCompleted;Wr.prototype.onYtServiceRequestSent=Wr.prototype.onYtServiceRequestSent;Wr.prototype.onYtCommentPollRevert=Wr.prototype.onYtCommentPollRevert;Wr.prototype.onPopupClosed=Wr.prototype.onPopupClosed;Wr.prototype.dataChanged=Wr.prototype.dataChanged;_.A([_.J(_.OK),_.B("design:type",Object)],Wr.prototype,"paperItemBehavior",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Wr.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.RO),_.B("design:type",Object)],Wr.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Wr.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],Wr.prototype,"isLoading",void 0);_.A([_.K({computed:"computeIsChannelOwner(data.choices)"}),_.B("design:type",Boolean)],Wr.prototype,"isChannelOwner",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.B("design:type",Boolean)],Wr.prototype,"isImagePoll",void 0);_.A([_.K({computed:"computeIsTotalVotesDisabled(data)"}),_.B("design:type",Boolean)],Wr.prototype,"isTotalVotesDisabled",void 0);_.A([_.K(),_.B("design:type",Object)],Wr.prototype,"previousPollInfo",void 0);_.A([_.K(),_.B("design:type",Object)],Wr.prototype,"selectedItemIndex",void 0);_.A([_.uA("#poll-votes"),_.B("design:type",Object)],Wr.prototype,"pollVotes",void 0);
_.A([_.R("isChannelOwner"),_.B("design:type",Object),_.B("design:paramtypes",[])],Wr.prototype,"endpointStyle",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Wr.prototype,"dataChanged",null);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Wr.prototype,"onPopupClosed",null);
_.A([_.kO("yt-comment-poll-revert"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Wr.prototype,"onYtCommentPollRevert",null);_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],Wr.prototype,"onYtServiceRequestSent",null);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Wr.prototype,"onYtServiceRequestCompleted",null);Wr=_.A([_.U({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Wr);
_.Q(Wr,"ytd-backstage-poll-renderer",function(){if(e5D!==void 0)return e5D;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return e5D=r},{mode:2});var Jx4;var jgX={autoplay:!1,loop:!1},HSD={simpleText:""},L_=function(){var r=_.y.apply(this,arguments)||this;r.isLoading=!1;r.usesPanelLockup=!1;r.selectedItemIndex=-1;r.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},jgX,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});r.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},jgX,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});r.correctnessAnimationProps=[];r.correctnessAnimationRefs=[];return r};
_.t(L_,_.y);_.l=L_.prototype;_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.l.computeIsChannelOwner=function(r){if(!r)return!0;r=r[0];return!(r&&(r.signinEndpoint||r.selectServiceEndpoint))};
_.l.computeIsTotalVotesDisabled=function(r){return!(r==null?0:r.totalVotes)};
_.l.computeIsImageQuiz=function(r){return(r==null?void 0:r.type)==="POLL_TYPE_IMAGE"};
_.l.onExplanationChanged=function(){this.expander.reset()};
_.l.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var r=this.data.choices;if(r){this.maybeInitializeQuizLotties(r);for(var f=0;f<r.length;f++)if(r[f].isSelected||this.isChannelOwner&&r[f].isCorrect){this.selectedItemIndex=f;return}this.selectedItemIndex=-1}}};
_.l.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var r=this.selectedItemIndex,f=Number(this.quizVotes.selected);this.selectChoice(f);this.sendVoteAction(f,r);this.quizVotes.selected=-1;var I;r=!((I=this.data)==null?0:I.enableAnimation);this.maybePlayAnswerAnimations(r)}};
_.l.onYtCommentPollRevert=function(r,f){f&&(this.selectChoice(f.selectedChoiceIndex),this.set("data.totalVotes",f.totalVotes))};
_.l.onYtServiceRequestSent=function(r,f){if(f.actions)for(r=_.E(f.actions),f=r.next();!f.done;f=r.next())(f=_.F(f.value,XD))&&this.set("data.totalVotes",f.totalVotes)};
_.l.onYtServiceRequestCompleted=function(r){var f=this.get("detail.data.actionResults.0.feedback",r);r=this.get("detail.data.actionResults.0.status",r);if(f==="FEEDBACK_DESELECT"||f==="FEEDBACK_SELECT")this.isLoading=!1,r==="STATUS_FAILED"?_.kA(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.l.getAnimationPropsForChoiceIndex=function(r,f){return f[r]};
_.l.maybePlayAnswerAnimations=function(r){r=r===void 0?!1:r;var f;if((f=this.data)!=null&&f.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){f=_.E(this.correctnessAnimationRefs);for(var I=f.next();!I.done;I=f.next()){var C=void 0,Y=void 0;(C=I.value)==null||(Y=C.lottieEl)==null||Y.stop()}if(!(this.selectedItemIndex<0)){f=0;r&&(f=this.isCorrect?37:25);var V,S;(V=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(S=V.lottieEl)==null||S.goToAndPlay(r?f:0,!0);if(!(this.isCorrect||
(V=this.data.choices.findIndex(function(d){return d.isCorrect}),V<0))){var h,w;
(w=(h=this.correctnessAnimationRefs[V])==null?void 0:h.lottieEl)==null||w.goToAndPlay(37,!0);var n;h=(n=this.fadeContainers)==null?void 0:n.item(V);!r&&h&&this.fadeIn(h)}}}};
_.l.thumbnailSrc=function(r){var f,I,C,Y;return(r==null?0:(f=r.thumbnails)==null?0:(I=f[0])==null?0:I.url)?_.gn((C=r.thumbnails)==null?void 0:(Y=C[0])==null?void 0:Y.url):void 0};
_.l.a11yVotedText=function(r,f){var I,C,Y=((I=this.data)==null?void 0:(C=I.correctVotedText)==null?void 0:C.simpleText)||"",V,S;I=((V=this.data)==null?void 0:(S=V.votedText)==null?void 0:S.simpleText)||"";if(!f)return"";var h,w;if((h=this.data)==null?0:(w=h.choices)==null?0:w[r].isCorrect)return Y;var n,d;return((n=this.data)==null?0:(d=n.choices)==null?0:d[r].isSelected)?I:""};
_.l.getEndpoint=function(r,f){return f===r?this.data.choices[r].deselectServiceEndpoint||null:this.data.choices[r].selectServiceEndpoint||null};
_.l.sendVoteAction=function(r,f){if(r=this.getEndpoint(r,f))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(r)};
_.l.selectChoice=function(r){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var f=0;f<this.data.choices.length;f++)this.set("data.choices."+f+".isSelected",r===this.selectedItemIndex?!1:f===r);this.selectedItemIndex=this.selectedItemIndex===r?-1:r};
_.l.maybeInitializeQuizLotties=function(r){var f=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=r.map(function(I){return{animationConfig:I.isCorrect?f.baseCorrectLottiePlayerAnimationConfig:f.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){f.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(I){return I.animationRef||{}})};
_.l.fadeIn=function(r){r.classList.add("fade-in");_.oB(_.F_,function(){r.classList.remove("fade-in")},900)};
_.OC.Object.defineProperties(L_.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.N("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.Rr(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 r,f;return((r=this.data)==null?void 0:(f=r.choices)==null?void 0:f.some(function(I){return I.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null||!r.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?HSD:this.data.choices[this.selectedItemIndex].explanation||HSD}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null||!r.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
L_.prototype.onYtServiceRequestCompleted=L_.prototype.onYtServiceRequestCompleted;L_.prototype.onYtServiceRequestSent=L_.prototype.onYtServiceRequestSent;L_.prototype.onYtCommentPollRevert=L_.prototype.onYtCommentPollRevert;L_.prototype.dataChanged=L_.prototype.dataChanged;L_.prototype.onExplanationChanged=L_.prototype.onExplanationChanged;_.A([_.J(_.OK),_.B("design:type",Object)],L_.prototype,"paperItemBehavior",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],L_.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.Kh.YtTaskEmitterBehavior),_.B("design:type",Object)],L_.prototype,"ytTaskEmitterBehavior",void 0);_.A([_.J(_.RO),_.B("design:type",Object)],L_.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],L_.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Object)],L_.prototype,"isLoading",void 0);_.A([_.K(),_.B("design:type",Object)],L_.prototype,"usesPanelLockup",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.B("design:type",Boolean)],L_.prototype,"isChannelOwner",void 0);_.A([_.K({computed:"computeIsTotalVotesDisabled(data)"}),_.B("design:type",Boolean)],L_.prototype,"isTotalVotesDisabled",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.B("design:type",Boolean)],L_.prototype,"isImageQuiz",void 0);_.A([_.K(),_.B("design:type",Object)],L_.prototype,"previousQuizInfo",void 0);_.A([_.K(),_.B("design:type",Object)],L_.prototype,"selectedItemIndex",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("data","usesPanelLockup"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],L_.prototype,"shouldUseModernUi",null);
_.A([_.Dh(".fade-container"),_.B("design:type",Object)],L_.prototype,"fadeContainers",void 0);_.A([_.K(),_.B("design:type",Array)],L_.prototype,"correctnessAnimationProps",void 0);_.A([_.R("explanation","showCorrectAnswer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],L_.prototype,"showExplanation",null);_.A([_.R("isChannelOwner","isAttempted"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],L_.prototype,"showCorrectAnswer",null);
_.A([_.R("isChannelOwner","isAttempted","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],L_.prototype,"isQuizAnsweringDisabled",null);_.A([_.R("isQuizAnsweringDisabled"),_.B("design:type",Object),_.B("design:paramtypes",[])],L_.prototype,"endpointStyle",null);_.A([_.R("data","selectedItemIndex"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],L_.prototype,"isAttempted",null);
_.A([_.R("data","selectedItemIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],L_.prototype,"explanation",null);_.A([_.R("data","selectedItemIndex"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],L_.prototype,"isCorrect",null);_.A([_.uA("ytd-expander"),_.B("design:type",Object)],L_.prototype,"expander",void 0);_.A([_.uA("#quiz-votes"),_.B("design:type",Object)],L_.prototype,"quizVotes",void 0);
_.A([_.Bt("explanation"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],L_.prototype,"onExplanationChanged",null);_.A([_.Bt("data","isChannelOwner"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],L_.prototype,"dataChanged",null);_.A([_.kO("yt-comment-quiz-revert"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],L_.prototype,"onYtCommentPollRevert",null);
_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],L_.prototype,"onYtServiceRequestSent",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],L_.prototype,"onYtServiceRequestCompleted",null);L_=_.A([_.U({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],L_);
_.Q(L_,"ytd-backstage-quiz-renderer",function(){if(Jx4!==void 0)return Jx4;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Jx4=r},{mode:1});var iS_;var mJ=function(){return _.y.apply(this,arguments)||this};
_.t(mJ,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],mJ.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],mJ.prototype,"data",void 0);mJ=_.A([_.U({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],mJ);
_.Q(mJ,"ytd-post-uploaded-video-renderer",function(){if(iS_!==void 0)return iS_;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return iS_=r},{mode:1});var R5q;var ec=function(){return _.y.apply(this,arguments)||this};
_.t(ec,_.y);ec.prototype.useFilledIcons=function(r){return r==="SPONSORSHIP_STAR"};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ec.prototype,"data",void 0);ec=_.A([_.U({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],ec);
_.Q(ec,"ytd-sponsors-only-badge-renderer",function(){if(R5q!==void 0)return R5q;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return R5q=r},{mode:1});var v_U;var JY=function(){return _.y.apply(this,arguments)||this};
_.t(JY,_.y);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],JY.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],JY.prototype,"data",void 0);JY=_.A([_.U({is:"ytd-child-video-renderer",disableElementRegistration:!0})],JY);
_.Q(JY,"ytd-child-video-renderer",function(){if(v_U!==void 0)return v_U;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return v_U=r},{mode:1});var Kk_;var yxX;var jc=function(){var r=_.y.apply(this,arguments)||this;r.size=0;r.enableWebModernCollectionsV2=_.N("web_modern_collections_v2");r.fallbackImageSize={height:void 0,width:9999};r.webModernCollections=!1;return r};
_.t(jc,_.y);_.l=jc.prototype;_.l.computeBlurredImageSize=function(r){return r?{height:r*2,width:r*2}:this.fallbackImageSize};
_.l.computeImageSize=function(r){return r?{height:r,width:r}:this.fallbackImageSize};
_.l.computeObjectFit=function(r){return r?"FILL":"CONTAIN"};
_.l.computePreserve=function(r){return r?!0:!1};
_.l.setBackground=function(){var r,f;_.N("web_modern_collections_v2")&&((r=this.data)==null?0:(f=r.thumbnail)==null?0:f.sampledThumbnailColor)&&(r=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+r.red+","+r.green+","+r.blue+",1)")};
jc.prototype.setBackground=jc.prototype.setBackground;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],jc.prototype,"watchFeedThumbnail",void 0);_.A([_.K(),_.B("design:type",Object)],jc.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],jc.prototype,"size",void 0);
_.A([_.K({computed:"computeBlurredImageSize(size)"}),_.B("design:type",Object)],jc.prototype,"blurredImageSize",void 0);_.A([_.K({computed:"computeImageSize(size)"}),_.B("design:type",Object)],jc.prototype,"imageSize",void 0);_.A([_.K({computed:"computePreserve(size)"}),_.B("design:type",String)],jc.prototype,"preserve",void 0);_.A([_.K({computed:"computeObjectFit(size)"}),_.B("design:type",String)],jc.prototype,"objectFit",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],jc.prototype,"enableWebModernCollectionsV2",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],jc.prototype,"webModernCollections",void 0);_.A([_.Bt("data.thumbnail.sampledThumbnailColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jc.prototype,"setBackground",null);jc=_.A([_.U({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],jc);
_.Q(jc,"ytd-playlist-custom-thumbnail-renderer",function(){if(yxX!==void 0)return yxX;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return yxX=r},{mode:1});var U1T;var Hr=function(){return _.y.apply(this,arguments)||this};
_.t(Hr,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Hr.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Number)],Hr.prototype,"width",void 0);Hr=_.A([_.U({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],Hr);
_.Q(Hr,"ytd-playlist-video-thumbnail-renderer",function(){if(U1T!==void 0)return U1T;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return U1T=r},{mode:1});var sgs;var ia=function(){return _.y.apply(this,arguments)||this};
_.t(ia,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ia.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ia.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Number)],ia.prototype,"width",void 0);ia=_.A([_.U({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],ia);
_.Q(ia,"ytd-show-custom-thumbnail-renderer",function(){if(sgs!==void 0)return sgs;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return sgs=r},{mode:1});var OSs;var R9=function(){return _.y.apply(this,arguments)||this};
_.t(R9,_.y);R9.prototype.useFilledIcons=function(r){return r==="MUSIC"||r==="COURSE"};
R9.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=ab(this.overlayColor,"0.8");else if(this.overlayColor){var r=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+r.red+","+r.green+","+r.blue+",0.8)"}};
_.OC.Object.defineProperties(R9.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)}}});
R9.prototype.overlayColorChanged=R9.prototype.overlayColorChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],R9.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],R9.prototype,"overlayColor",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("data.icon","data.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],R9.prototype,"overlayStyle",null);
_.A([_.K({reflectToAttribute:!0}),_.R("data.icon","data.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],R9.prototype,"overlayTextStyle",null);_.A([_.Bt("overlayColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],R9.prototype,"overlayColorChanged",null);R9=_.A([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],R9);
_.Q(R9,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(OSs!==void 0)return OSs;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return OSs=r},{mode:1});var o_X;var vr=function(){var r=_.y.apply(this,arguments)||this;r.active=!1;return r};
_.t(vr,_.y);vr.prototype.computeIsSpinnerHidden=function(r){return(r==null?void 0:r.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
vr.prototype.computeOverlayIcon=function(r){return(r==null?void 0:r.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(r==null?void 0:r.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],vr.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],vr.prototype,"active",void 0);vr=_.A([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],vr);
_.Q(vr,"ytd-thumbnail-overlay-downloading-renderer",function(){if(o_X!==void 0)return o_X;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return o_X=r},{mode:1});var QgT;var K_=function(){return _.y.apply(this,arguments)||this};
_.t(K_,_.y);_.OC.Object.defineProperties(K_.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],K_.prototype,"data",void 0);_.A([_.R("data.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],K_.prototype,"text",null);K_=_.A([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],K_);
_.Q(K_,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(QgT!==void 0)return QgT;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return QgT=r},{mode:1});var Ax3,ZS4=function(){if(Ax3!==void 0)return Ax3;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Ax3=r};var yJ=function(){return _.y.apply(this,arguments)||this};
_.t(yJ,_.y);_.OC.Object.defineProperties(yJ,{template:{configurable:!0,enumerable:!0,get:function(){return ZS4()}}});
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],yJ.prototype,"animateEqualizer",void 0);yJ=_.A([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],yJ);_.os()(yJ,"ytd-thumbnail-overlay-equalizer",function(){return ZS4()},{allowedProps:["animateEqualizer"],
mode:1});var Gqg;var UT=function(){var r=_.y.apply(this,arguments)||this;r.nowPlayingBadge=_.N("web_now_playing_badge");r.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return r};
_.t(UT,_.y);UT.prototype.activeChanged=function(){var r=this;_.N("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.UC(this,function(){_.kA(r.hostElement,"yt-playlist-lockup-now-playing-active",r)})};
UT.prototype.onMiniplayerPlayStateChanged=function(r){var f,I=(f=_.F(_.xP().currentEndpoint,_.vj))==null?void 0:f.videoId;this.isVideoPlaying=r&&(_.N("web_limit_now_playing_animation_killswitch")||this.videoId===I)};
UT.prototype.activeChanged=UT.prototype.activeChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],UT.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],UT.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],UT.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],UT.prototype,"isVideoPlaying",void 0);_.A([_.K(),_.B("design:type",String)],UT.prototype,"videoId",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],UT.prototype,"equalizerOnly",void 0);_.A([_.K(),_.B("design:type",Boolean)],UT.prototype,"isActive",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],UT.prototype,"nowPlayingBadge",void 0);_.A([_.Bt("isActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UT.prototype,"activeChanged",null);
UT=_.A([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],UT);
_.Q(UT,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(Gqg!==void 0)return Gqg;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Gqg=r},{mode:1});var kqg;var sT=function(){return _.y.apply(this,arguments)||this};
_.t(sT,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],sT.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],sT.prototype,"data",void 0);sT=_.A([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],sT);
_.Q(sT,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(kqg!==void 0)return kqg;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return kqg=r},{mode:_.QQ("kevlar_poly_si_batch_j025")?1:2});var BgB;var OT=function(){return _.y.apply(this,arguments)||this};
_.t(OT,_.y);OT.prototype.onDurationChanged=function(){var r,f;_.e(this.hostElement).querySelector("#progress").style.width=((f=(r=this.data)==null?void 0:r.percentDurationWatched)!=null?f:0)+"%"};
OT.prototype.onDurationChanged=OT.prototype.onDurationChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],OT.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],OT.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],OT.prototype,"isLive",void 0);_.A([_.Bt("data.percentDurationWatched"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OT.prototype,"onDurationChanged",null);
OT=_.A([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],OT);
_.Q(OT,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(BgB!==void 0)return BgB;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return BgB=r},{mode:1});var qyq;var o9=function(){var r=_.y.apply(this,arguments)||this;r.bottomPanel=!1;r.richGridOverlay=!1;r.watchFeedOverlay=!1;r.isCompact=!1;return r};
_.t(o9,_.y);o9.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.OC.Object.defineProperties(o9.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.data)==null?void 0:(f=r.icon)==null?void 0:f.iconType)==="PLAY_ALL"&&_.N("kevlar_system_icons")}}});
o9.prototype.widthChanged=o9.prototype.widthChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],o9.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Number)],o9.prototype,"width",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],o9.prototype,"bottomPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],o9.prototype,"richGridOverlay",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],o9.prototype,"watchFeedOverlay",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],o9.prototype,"isCompact",void 0);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],o9.prototype,"isIconFilled",null);_.A([_.Bt("width","watchFeedOverlay"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],o9.prototype,"widthChanged",null);
o9=_.A([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],o9);
_.Q(o9,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(qyq!==void 0)return qyq;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return qyq=r},{mode:1});var uLC;var D18=["CLIP","SHORTS"],QJ=function(){var r=_.y.apply(this,arguments)||this;r.animated=_.N("animated_live_badge_icon");r.hasIcon=!1;r.updateTimerIntervalId=0;r.timeSinceLive=0;return r};
_.t(QJ,_.y);_.l=QJ.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 r,f;return!!(((r=this.data)==null?0:r.icon)||((f=this.data)==null?0:f.text))};
_.l.initializeLiveBadgeTimer=function(){var r=this,f,I=(f=this.liveBadgeData)==null?void 0:f.startTimestampSec;if(I&&this.canShowLiveBadgeTimer()){var C;f=Number((C=this.liveBadgeData)==null?void 0:C.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(I);this.updateTimerIntervalId=_.ff(function(){r.canShowLiveBadgeTimer()?r.timeSinceLive++:(r.timeSinceLive=0,window.clearInterval(r.updateTimerIntervalId))},f)}else this.timeSinceLive=0};
_.l.canShowLiveBadgeTimer=function(){var r=Date.now(),f,I;return r<(Number((f=this.liveBadgeData)==null?void 0:f.endTimestampSec)-1)*1E3&&r>Number((I=this.liveBadgeData)==null?void 0:I.startTimestampSec)*1E3};
_.OC.Object.defineProperties(QJ.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var r=this.data;var f=this.timeSinceLive;var I,C,Y,V;a:{var S=r.style;if(S===void 0)S=16;else switch(S){case "LIVE":S=17;break a;default:S=16}}f={type:S,text:f?DhU({seconds:f}):_.Rr(r.text),accessibilityText:(I=r.text)==null?void 0:(C=I.accessibility)==null?void 0:(Y=C.accessibilityData)==null?void 0:Y.label,icon:(V=r.icon)==null?void 0:V.iconType}}else f={};return f}},
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 r;return(r=this.data)==null?void 0:r.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 D18.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
QJ.prototype.initializeLiveBadgeTimer=QJ.prototype.initializeLiveBadgeTimer;QJ.prototype.dataChanged=QJ.prototype.dataChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],QJ.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],QJ.prototype,"data",void 0);_.A([_.K({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],QJ.prototype,"icon",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],QJ.prototype,"animated",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.B("design:type",Boolean)],QJ.prototype,"hideTimeStatus",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],QJ.prototype,"hasIcon",void 0);_.A([_.K(),_.B("design:type",Object)],QJ.prototype,"timeSinceLive",void 0);_.A([_.R("data","timeSinceLive"),_.B("design:type",Object),_.B("design:paramtypes",[])],QJ.prototype,"badgeShapeData",null);
_.A([_.R("data","overlayType"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QJ.prototype,"hideBadgeShape",null);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QJ.prototype,"dataChanged",null);_.A([_.K({reflectToAttribute:!0}),_.R("data.style"),_.B("design:type",Object),_.B("design:paramtypes",[])],QJ.prototype,"overlayStyle",null);
_.A([_.R("data.liveBadgeData"),_.B("design:type",Object),_.B("design:paramtypes",[])],QJ.prototype,"liveBadgeData",null);_.A([_.K({reflectToAttribute:!0}),_.R("data.type"),_.B("design:type",Object),_.B("design:paramtypes",[])],QJ.prototype,"overlayType",null);_.A([_.R("overlayType","overlayStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QJ.prototype,"useFilledIcon",null);
_.A([_.YN("liveBadgeData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QJ.prototype,"initializeLiveBadgeTimer",null);QJ=_.A([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],QJ);
_.Q(QJ,"ytd-thumbnail-overlay-time-status-renderer",function(){if(uLC!==void 0)return uLC;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return uLC=r},{mode:_.QQ("kevlar_poly_si_batch_j035")?1:2});var rXD;var AY=function(){return _.y.apply(this,arguments)||this};
_.t(AY,_.y);AY.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"}}}}};
AY.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(r){if(this.hasPlaybackProgressBar)return{percentDurationWatched:r.percentDurationWatched}};
AY.prototype.computeHasPlaybackProgressBar=function(r){return!!r.percentDurationWatched&&r.percentDurationWatched>0};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],AY.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],AY.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],AY.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.B("design:type",Boolean)],AY.prototype,"hasPlaybackProgressBar",void 0);
AY=_.A([_.U({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],AY);
_.Q(AY,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(rXD!==void 0)return rXD;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return rXD=r},{mode:1});var fuC;_.GL(cXR);var IuD=_.Hc(function(r){var f=r.data;var I=r.children;var C=function(){return!!f().doubleStack};
return _.p("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!f().experimentEnabled}},_.p(_.M,{cond:f,
then:function(){return _.p("div",null,_.p(_.M,{cond:C,then:function(){var Y={};return _.p("div",{class:_.qd("collections-stack-wiz__collection-stack2",function(){return f().customClassName2ndStack},(Y["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return f().enableResponsiveMode},Y)),
style:_.lB({"background-color":function(){return tU$(f())}})})}}),_.p("div",{class:_.qd("collections-stack-wiz__collection-stack1",function(){return f().customClassName1stStack},function(){return TZE(f().thumbnailSize?f().thumbnailSize:"medium")}),
style:_.lB({"background-color":function(){return tU$(f())}})}),I)}}))},"L");_.Kv(IuD,"yt-collections-stack",{props:{data:_.jv}});var ZP=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};r.webModernCollections=!1;r.isSearch=!1;r.isDoubleStack=!1;r.thumbnailSize="medium";r.enableWebModernCollectionsV2=_.N("web_modern_collections_v2");return r};
_.t(ZP,_.y);_.l=ZP.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(r){if(r!=null&&r.thumbnailRenderer){var f=r.thumbnailRenderer,I;if((I=f.playlistVideoThumbnailRenderer)==null?0:I.thumbnail)return f.playlistVideoThumbnailRenderer.thumbnail;var C;if((C=f.playlistCustomThumbnailRenderer)==null?0:C.thumbnail)return f.playlistCustomThumbnailRenderer.thumbnail;r=r.thumbnailRenderer;var Y;if((Y=r.showCustomThumbnailRenderer)==null?0:Y.thumbnail)return r.showCustomThumbnailRenderer.thumbnail}};
_.l.computeOverlayColor=function(r){var f,I;if((f=this.getThumbnailDetails(r))==null?0:(I=f.darkColorPalette)==null?0:I.section2Color)return this.getThumbnailDetails(r).darkColorPalette.section2Color;var C;return(C=this.getThumbnailDetails(r))==null?void 0:C.sampledThumbnailColor};
_.l.computeWebModernCollections=function(r){if(r==null||!r.thumbnailOverlays)return!1;r=_.E(r.thumbnailOverlays);for(var f=r.next();!f.done;f=r.next()){var I=void 0;if((I=f.value)==null?0:I.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.l.computeNavigationEndpoint=function(r){return CCl(r==null?void 0:r.navigationEndpoint)};
_.OC.Object.defineProperties(ZP.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var r=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:r==null?void 0:r.sampledThumbnailColor,vibrantColorPalette:r==null?void 0:r.vibrantColorPalette,darkColorPalette:r==null?void 0:r.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],ZP.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ZP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(VGX),_.B("design:type",Object)],ZP.prototype,"ytdThumbnailBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],ZP.prototype,"componentBehavior",void 0);
_.A([_.K({value:!1}),_.B("design:type",Boolean)],ZP.prototype,"watchFeedThumbnail",void 0);_.A([_.K(),_.B("design:type",Number)],ZP.prototype,"customThumbnailSize",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],ZP.prototype,"hideAria",void 0);_.A([_.K(),_.B("design:type",Object)],ZP.prototype,"data",void 0);_.A([_.K({computed:"computeOverlayColor(data)"}),_.B("design:type",Object)],ZP.prototype,"overlayColor",void 0);
_.A([_.K({computed:"computeWebModernCollections(data)"}),_.B("design:type",Object)],ZP.prototype,"webModernCollections",void 0);_.A([_.K({computed:"computeNavigationEndpoint(data)"}),_.B("design:type",Object)],ZP.prototype,"computedNavigationEndpoint",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ZP.prototype,"isSearch",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ZP.prototype,"isDoubleStack",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],ZP.prototype,"thumbnailSize",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],ZP.prototype,"enableWebModernCollectionsV2",void 0);_.A([_.R("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.B("design:type",Object),_.B("design:paramtypes",[])],ZP.prototype,"collectionStack",null);ZP=_.A([_.U({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],ZP);
_.Q(ZP,"ytd-playlist-thumbnail",function(){if(fuC!==void 0)return fuC;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return fuC=r},{mode:_.QQ("kevlar_poly_si_batch_j025")?1:2});var CLT;var G7=function(){var r=_.y.apply(this,arguments)||this;r.noEndpoints=!1;r.amsterdamPostMvp=_.N("web_amsterdam_post_mvp_playlists");r.badges=[];r.transferState="TRANSFER_STATE_UNKNOWN";return r};
_.t(G7,_.y);_.l=G7.prototype;_.l.getMetadata=function(r){if(!r)return[];var f=[],I=r.shortViewCountText||r.viewCountText;I&&f.push(_.Rr(I));r.publishedTimeText&&f.push(_.Rr(r.publishedTimeText));r.upcomingEventData&&r.upcomingEventData.upcomingEventText&&f.push(_.mV(_.Rr(r.upcomingEventData.upcomingEventText),Number(r.upcomingEventData.startTime)));return f};
_.l.observeDataForBylineSeparator=function(){this.data&&_.ob(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=_.MG(this.metadataColor)};
_.l.getSimpleString=function(r){return _.Rr(r)};
_.l.isBylineHidden=function(r){return this.noByline||!((r==null?0:r.longBylineText)||(r==null?0:r.shortBylineText))};
_.l.isMetadataHidden=function(r){var f;return((f=this.getMetadata(r))==null?void 0:f.length)===0};
_.l.isBylineMetadataSeparatorHidden=function(r){return this.isMetadataHidden(r)||!this.shouldShowVideoInfo};
_.l.isLongByline=function(r,f){return f&&!(r==null||!r.longBylineText)};
_.OC.Object.defineProperties(G7.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var r;return this.amsterdamPostMvp&&!((r=this.data)==null||!r.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 _.N("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
G7.prototype.metadataColorChanged=G7.prototype.metadataColorChanged;G7.prototype.observeDataForBylineSeparator=G7.prototype.observeDataForBylineSeparator;_.A([_.J(_.PH),_.B("design:type",Object)],G7.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],G7.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],G7.prototype,"noEndpoints",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],G7.prototype,"isSlimShort",void 0);
_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],G7.prototype,"radioMeta",void 0);_.A([_.K({selector:_.eO}),_.B("design:type",Object)],G7.prototype,"isGridViewEnabled",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],G7.prototype,"richMeta",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],G7.prototype,"amsterdamPostMvp",void 0);_.A([_.K(),_.B("design:type",Boolean)],G7.prototype,"noByline",void 0);
_.A([_.K({computed:"isLongByline(data, radioMeta)"}),_.B("design:type",Boolean)],G7.prototype,"longByline",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],G7.prototype,"truncateMetadataLine",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],G7.prototype,"miniMode",void 0);_.A([_.K(),_.B("design:type",Number)],G7.prototype,"metadataColor",void 0);_.A([_.K(),_.B("design:type",Array)],G7.prototype,"badges",void 0);
_.A([_.K({selector:_.FN,selectorArgs:["data.videoId"]}),_.B("design:type",String)],G7.prototype,"transferState",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],G7.prototype,"isDownloading",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],G7.prototype,"typographyBump",void 0);_.A([_.uA("#metadata-line"),_.B("design:type",HTMLElement)],G7.prototype,"metadataLine",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G7.prototype,"observeDataForBylineSeparator",null);_.A([_.Bt("metadataColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G7.prototype,"metadataColorChanged",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],G7.prototype,"shouldShowVideoInfo",null);
_.A([_.R("badges"),_.B("design:type",String),_.B("design:paramtypes",[])],G7.prototype,"inlineBadgeClass",null);_.A([_.R("longByline"),_.B("design:type",String),_.B("design:paramtypes",[])],G7.prototype,"longBylineClass",null);_.A([_.R("data","longByline"),_.B("design:type",Object),_.B("design:paramtypes",[])],G7.prototype,"bylineText",null);_.A([_.R("isGridViewEnabled","data"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],G7.prototype,"watchFeedBigThumbs",null);
G7=_.A([_.U({is:"ytd-video-meta-block",disableElementRegistration:!0})],G7);
_.Q(G7,"ytd-video-meta-block",function(){if(CLT!==void 0)return CLT;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return CLT=r},{mode:_.QQ("kevlar_poly_si_batch_j080")?1:2});_.gW("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var k0=function(){var r=_.y.apply(this,arguments)||this;r.displayItemCount=2;r.isBackstagePlaylist=!1;r.isPostCompactPlaylist=!1;r.shouldShowChannelThumbnail=!1;r.useModernCollectionsV2=_.N("web_modern_collections_v2");return r};
_.t(k0,_.y);_.l=k0.prototype;_.l.computeFirstVideos=function(r,f){return r===void 0||f===void 0?[]:r.slice(0,f)};
_.l.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var r=this.data.thumbnailRenderer;r.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",r.playlistVideoThumbnailRenderer.thumbnail);r.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",r.playlistCustomThumbnailRenderer.thumbnail)}};
_.l.computeThumbnailHeight=function(r,f,I,C,Y){return C?Y==="BIG"?280:Y==="MASSIVE"?337:234:I?240:f?72:r?118:138};
_.l.computeThumbnailWidth=function(r,f,I,C,Y){return C?Y==="MEDIUM"?450:Y==="BIG"?500:Y==="MASSIVE"?600:420:I?360:f?128:r?210:246};
_.l.computeUseBiggerThumbs=function(r){return r&&_.N("enable_desktop_search_bigger_thumbs")};
_.l.computeShouldShowChannelThumbnail=function(r,f){return r&&!(f==null||!f.channelThumbnail)};
_.OC.Object.defineProperties(k0.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
k0.prototype.dataChanged=k0.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],k0.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.jW),_.B("design:type",Object)],k0.prototype,"ytdLockupBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],k0.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],k0.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],k0.prototype,"displayItemCount",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],k0.prototype,"isBackstagePlaylist",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],k0.prototype,"isPostCompactPlaylist",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],k0.prototype,"isSearch",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.B("design:type",Boolean)],k0.prototype,"useBiggerThumbs",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.qC("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],k0.prototype,"biggerThumbsStyle",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],k0.prototype,"isDownloads",void 0);_.A([_.K({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.B("design:type",Object)],k0.prototype,"shouldShowChannelThumbnail",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],k0.prototype,"useModernCollectionsV2",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],k0.prototype,"dataChanged",null);_.A([_.R("isSearch"),_.B("design:type",String),_.B("design:paramtypes",[])],k0.prototype,"stackThumbnailSize",null);k0=_.A([_.U({is:"ytd-playlist-renderer",disableElementRegistration:!0})],k0);
_.Q(k0,"ytd-playlist-renderer",function(){if(Kk_===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);Kk_=r}r=Kk_;return r},{mode:1});var YIU;var luU;var Br=function(){var r=_.y.apply(this,arguments)||this;r.collections=!!_.N("web_modern_collections_v2");r.startX=0;return r};
_.t(Br,_.y);Br.prototype.onEndpointMouseDown=function(r){this.startX=r.clientX};
Br.prototype.onEndpointClick=function(r){this.startX!==r.clientX&&(r.preventDefault(),r.stopPropagation())};
Br.prototype.computeObjectFit=function(r){return r==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||r==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||r==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
Br.prototype.computeCardStyle=function(r){return r?r.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.OC.Object.defineProperties(Br.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var r,f;return this.collections&&((r=this.data)==null?void 0:(f=r.searchRefinementCardRendererStyle)==null?void 0:f.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}}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Br.prototype,"data",void 0);_.A([_.K({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.B("design:type",Number)],Br.prototype,"objectFit",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.B("design:type",String)],Br.prototype,"cardStyle",void 0);
_.A([_.K({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],Br.prototype,"roundContainer",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Br.prototype,"collections",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Br.prototype,"isAlbumCard",null);_.A([_.R("data","collections","isAlbumCard"),_.B("design:type",Object),_.B("design:paramtypes",[])],Br.prototype,"collectionStack",null);
Br=_.A([_.U({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],Br);
_.Q(Br,"ytd-search-refinement-card-renderer",function(){if(luU!==void 0)return luU;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return luU=r},{mode:1});var VU3;var qV=function(){var r=_.y.apply(this,arguments)||this;r.isRichGrid=!1;return r};
_.t(qV,_.y);_.A([_.K(),_.B("design:type",Object)],qV.prototype,"data",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],qV.prototype,"componentBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],qV.prototype,"ytdReduxBehavior",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],qV.prototype,"isRichGrid",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.ar}),_.B("design:type",Boolean)],qV.prototype,"miniMode",void 0);
qV=_.A([_.U({is:"ytd-game-details-renderer",disableElementRegistration:!0})],qV);
_.Q(qV,"ytd-game-details-renderer",function(){if(VU3!==void 0)return VU3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return VU3=r},{mode:1});var E84;var SI4;var ua=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return r};
_.t(ua,_.y);_.l=ua.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.currentStateData=function(r){var f=r||this.data;return f&&f.states&&f.currentStateId!=null?f.states.find(function(I){return I.stateId===f.currentStateId})||null:null};
_.l.currentStateRendererData=function(r){return(r=this.currentStateData(r))&&r.state&&r.state.buttonRenderer?r.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(r){r=this.currentStateRendererData(r);var f;return(r==null?0:(f=r.icon)==null?0:f.iconType)?r.icon.iconType.toLowerCase():null};
_.l.computeAccessibility=function(r){return(r=this.currentStateRendererData(r))&&r.accessibilityData?r.accessibilityData.accessibilityData||null:null};
_.l.computeButtonClass=function(r){var f=this.currentStateRendererData(r);if(!f)return"";r="";var I=f.style;I&&(r+=I.toLowerCase().replace(/_/g,"-")+" ");(f=f.size)&&(r+=f.toLowerCase().replace(/_/g,"-")+" ");return r.trim()};
_.l.computeServiceEndpoint=function(r){if(!r)return null;var f=r&&r.serviceEndpoint,I=this.get("command.commandMetadata.webCommandMetadata.sendPost",r);return f?f:I&&r.command?r.command:null};
_.l.computeBellMenuItemParams=function(r){var f;r=(f=_.F(r==null?void 0:r.command,_.Il))==null?void 0:f.commands;if(!r||r.length===0)return null;f=_.F(r[0],_.Nh);var I,C;return(f==null?0:(I=f.popup)==null?0:(C=I.menuPopupRenderer)==null?0:C.items)?f.popup.menuPopupRenderer.items.map(function(Y){return Y.menuServiceItemRenderer.trackingParams}):null};
_.l.handleBellMenuOpenSelectedAction=function(r){var f=r.trackingParams,I=this.computeBellMenuItemParams(this.data);this.data&&f&&I&&I.includes(f)&&this.ytRenderButtonBehavior._setButtonIcon(r.icon.iconType.toLowerCase())};
_.l.onYtServiceRequestCompleted=function(r,f){(r=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",f))&&this.set("data",r)};
_.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 r=this.currentStateRendererData(this.data);r&&this.ytRendererBehavior.logExplicitClick(r)}};
ua.prototype.onYtServiceRequestError=ua.prototype.onYtServiceRequestError;ua.prototype.onYtServiceRequestCompleted=ua.prototype.onYtServiceRequestCompleted;ua.prototype.stateChanged=ua.prototype.stateChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ua.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],ua.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.J(CT.YtRenderButtonBehavior),_.B("design:type",Object)],ua.prototype,"ytRenderButtonBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ua.prototype,"data",void 0);_.A([_.YN("data","data.currentStateId"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ua.prototype,"stateChanged",null);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],ua.prototype,"onYtServiceRequestCompleted",null);_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ua.prototype,"onYtServiceRequestError",null);ua=_.A([_.U({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],ua);
_.Q(ua,"ytd-subscription-notification-toggle-button-renderer",function(){if(SI4!==void 0)return SI4;var r=document.createElement("template");_.c(r,"\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");r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return SI4=r},{mode:1});var xf3;var DP=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};r.tapHandler=function(){if(r.data){var f=r.currentStateRendererData();f&&r.ytRendererBehavior.logExplicitClick(f)}};
return r};
_.t(DP,_.y);_.l=DP.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.currentStateData=function(){var r=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(f){return f.stateId===r.data.currentStateId})||null:null};
_.l.currentStateRendererData=function(){var r=this.currentStateData();return r&&r.state&&r.state.buttonRenderer?r.state.buttonRenderer:null};
_.l.computeAccessibilityLabel=function(){var r,f,I;return(r=this.currentStateRendererData())==null?void 0:(f=r.accessibilityData)==null?void 0:(I=f.accessibilityData)==null?void 0:I.label};
_.l.computeBellMenuItemParams=function(){var r,f,I=(f=_.F((r=this.data)==null?void 0:r.command,_.Il))==null?void 0:f.commands;if(!I||I.length===0)return null;r=_.F(I[0],_.Nh);var C,Y;return(r==null?0:(C=r.popup)==null?0:(Y=C.menuPopupRenderer)==null?0:Y.items)?r.popup.menuPopupRenderer.items.map(function(V){return V.menuServiceItemRenderer.trackingParams}):null};
_.l.handleBellMenuOpenSelectedAction=function(r){var f=r.trackingParams,I=this.computeBellMenuItemParams();if(this.data&&f&&I&&I.includes(f)&&(r==null||!r.isDisabled)){var C;((C=_.F(r.serviceEndpoint,_.YI))==null?void 0:C.signal)!=="CLIENT_SIGNAL"&&(this.icon=r.icon.iconType)}};
_.l.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.l.onYtServiceRequestCompleted=function(r,f){if(r=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",f))this.icon=void 0,this.set("data",r)};
_.l.onYtServiceRequestError=function(){this.icon=void 0};
_.OC.Object.defineProperties(DP.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var r=this.data,f=this.textLabel,I=this.hostElement,C=this.computeAccessibilityLabel(),Y=this.tapHandler,V=this.isOverlay?"overlay":"mono",S=(r==null?0:r.disableButton)?"disabled":"active";f=f?_.dF(f):void 0;return{style:V,type:"tonal",state:S,size:"M",focused:!1,formattedButtonText:f,iconPosition:"leading-trailing",onTap:mfK(r,Y,I),accessibilityLabel:C}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var r=this.currentStateRendererData(),f,I,C=(I=this.icon)!=null?I:r==null?void 0:(f=r.icon)==null?void 0:f.iconType;if(C)return _.kN(C)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var r,f,I=(r=this.data)==null?void 0:(f=r.secondaryIcon)==null?void 0:f.iconType;if(I)return _.kN(I)}}});
DP.prototype.onYtServiceRequestError=DP.prototype.onYtServiceRequestError;DP.prototype.onYtServiceRequestCompleted=DP.prototype.onYtServiceRequestCompleted;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],DP.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],DP.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],DP.prototype,"textLabel",void 0);
_.A([_.K(),_.B("design:type",String)],DP.prototype,"icon",void 0);_.A([_.K(),_.B("design:type",Boolean)],DP.prototype,"isOverlay",void 0);_.A([_.R("data.*","textLabel"),_.B("design:type",Object),_.B("design:paramtypes",[])],DP.prototype,"computedButtonShape",null);_.A([_.R("data.*","icon"),_.B("design:type",Object),_.B("design:paramtypes",[])],DP.prototype,"computedIcon",null);_.A([_.R("data.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],DP.prototype,"computedSecondaryIcon",null);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],DP.prototype,"onYtServiceRequestCompleted",null);_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],DP.prototype,"onYtServiceRequestError",null);DP=_.A([_.U({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],DP);
_.Q(DP,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(xf3!==void 0)return xf3;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return xf3=r},{mode:_.QQ("kevlar_poly_si_batch_j081")?1:2});var hZB;_.N("web_enable_sink_animated_actions")?_.Kv(l9T,"yt-animated-action",{props:{backgroundLottieRef:_.jv,foregroundLottieRef:_.jv,wrapperClass:_.jv,disableAnimation:_.jv},unsafeExternallySettableAttributes:new Set(["key"])}):_.Z5(w0B,"yt-animated-action",{propNames:["backgroundLottieRef","foregroundLottieRef"]});var rN=function(){var r=_.y.apply(this,arguments)||this;r.animatedActionEnabled=_.N("web_animated_actions");r.foregroundLottieRef={};r.backgroundLottieRef={};r.forceIconOnly=!1;r.showTextWhileAnimating=!1;r.keyboardFocused=!1;r.isAnimating=!1;r.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return r};
_.t(rN,_.y);_.l=rN.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(r,f){(this.get("endpoint.subscribeEndpoint",f)||this.get("endpoint.unsubscribeEndpoint",f))&&this.updateSubscriptionState(!this.subscribed)};
_.l.onYtServiceRequestCompleted=function(r,f){(r=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",f.data))&&this.bellButton&&(this.bellButton.data=r)};
_.l.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Zh(this.hostElement)};
_.l.onPlayerSubscribe=function(r){this.isCompactRed()||r!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.l.onPlayerUnsubscribe=function(r){this.isCompactRed()||r!==this.data.channelId||this.updateSubscriptionState(!1)};
_.l.handleUpdateSubscribeButtonAction=function(r){r=_.F(r,x1K);var f;r&&r.channelId===((f=this.data)==null?void 0:f.channelId)&&this.updateSubscriptionState(!!r.subscribed)};
_.l.computeButtonStyle=function(r){return this.get("style.styleType",r)||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(r){if(r!==this.subscribed){this.set("data.subscribed",r);var f,I=(f=this.data)==null?void 0:f.subscribedEntityKey;I&&this.ytdReduxBehavior.dispatch(_.hv("subscriptionStateEntity",I,{key:I,subscribed:r}));this.isCompactRed()||_.kA(this.hostElement,"yt-subscription-changed",r);r||(_.Bj(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!r),r&&this.hasBellButton&&this.startAnimation())}};
_.l.startAnimation=function(){var r=this;if(!this.isAnimating){var f=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var I;(I=this.backgroundLottieRef.lottieEl)==null||I.goToAndPlay(0);var C;(C=this.foregroundLottieRef.lottieEl)==null||C.goToAndPlay(0);_.F_.addJob(function(){r.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.F_.addJob(function(){r.updateContainerToFitContent(!!r.subscribed,!0)},2,1500);
_.F_.addJob(function(){r.isAnimating=!1},2,f)}};
_.l.maybeAnimateBellIcon=function(){var r=_.Oi(this.hostElement).querySelector("yt-animated-icon");if(r){var f;(f=r.animationRef.lottieEl)==null||f.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 r;this.unsubscribedWidth=(r=this.subscribeButtonShape)==null?void 0:r.getBoundingClientRect().width}var f;this.subscribedWidth=(f=this.bellButton)==null?void 0:f.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.l.updateContainerToFitContent=function(r,f){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(r?(r=this.subscribedWidth,f=this.isAnimating&&!f,this.subscribedIconOnlyWidth===void 0||f||(r=this.subscribedIconOnlyWidth),this.hostElement.style.width=r+"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 r=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 f;r.subscribedIconOnlyWidth=(f=r.bellButton)==null?void 0:f.getBoundingClientRect().width;requestAnimationFrame(function(){if(r.bellButton){var I;r.bellButton.textLabel=
(I=r.data)==null?void 0:I.subscribedButtonText}})})))};
_.OC.Object.defineProperties(rN.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 r;return(r=this.data)==null?void 0:r.subscribedButtonText}var f;return this.forceIconOnly?void 0:(f=this.data)==null?void 0:f.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var r,f,I=((r=this.data)==null?void 0:(f=r.timedAnimationData)==null?void 0:f.animationTiming)||[];return{uniqueId:"subscribe",timings:I,enabled:I.length>0&&!this.subscribed,experimentEnabled:I.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var r;return!this.subscribed&&((r=this.data)==null?void 0:r.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 r={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var f=r.renderer;var I=r.element;var C=r.subscribed;var Y=r.commandController;var V=r.isOverlay;r=r.config;var S=HOR(f,C);V&&(S.style="overlay");V=Object;var h=V.assign,w;a:switch((w=f.style)==null?void 0:w.styleType){case "COMPACT_GRAY":case "COMPACT_RED":w={size:"S"};break a;default:w={size:"M"}}var n=j8q(f,C);var d=
(d=C?f.subscribedButtonText:f.unsubscribedButtonText)?_.dF(d):void 0;return h.call(V,{},S,w,{focused:!1,toggled:C,accessibilityLabel:n,formattedButtonText:d,onTap:JXK(f,r,C,I,Y)})}}}});
rN.prototype.onMouseDown=rN.prototype.onMouseDown;rN.prototype.onDataChanged=rN.prototype.onDataChanged;rN.prototype.observedSubscribed=rN.prototype.observedSubscribed;rN.prototype.onYtServiceRequestCompleted=rN.prototype.onYtServiceRequestCompleted;rN.prototype.onYtServiceRequestSent=rN.prototype.onYtServiceRequestSent;rN.prototype.maybeUpdateBellButtonText=rN.prototype.maybeUpdateBellButtonText;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],rN.prototype,"ytComponentBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],rN.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],rN.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],rN.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],rN.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],rN.prototype,"data",void 0);
_.A([_.K({selectorArgs:["data.subscribedEntityKey"],selector:_.qm}),_.B("design:type",Object)],rN.prototype,"subscriptionStateEntity",void 0);_.A([_.K({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.B("design:type",Boolean)],rN.prototype,"subscribed",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],rN.prototype,"branded",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],rN.prototype,"animatedActionEnabled",void 0);
_.A([_.K(),_.B("design:type",Object)],rN.prototype,"foregroundLottieRef",void 0);_.A([_.K(),_.B("design:type",Object)],rN.prototype,"backgroundLottieRef",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],rN.prototype,"overlayButton",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.B("design:type",Object)],rN.prototype,"buttonStyle",void 0);_.A([_.K(),_.B("design:type",Object)],rN.prototype,"forceIconOnly",void 0);
_.A([_.K(),_.B("design:type",Object)],rN.prototype,"showTextWhileAnimating",void 0);_.A([_.K({value:function(){return!!_.a().resolve(_.ZY(_.nF))&&_.N("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.B("design:type",Boolean)],rN.prototype,"useKeyboardFocused",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],rN.prototype,"keyboardFocused",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],rN.prototype,"isAnimating",void 0);_.A([_.R("data.notificationPreferenceButton.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],rN.prototype,"hasBellButton",null);
_.A([_.Bt("subscribedButtonText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rN.prototype,"maybeUpdateBellButtonText",null);_.A([_.R("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],rN.prototype,"subscribedButtonText",null);_.A([_.R("data.timedAnimationData.animationTiming","subscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],rN.prototype,"smartimationSettings",null);
_.A([_.K({reflectToAttribute:!0}),_.R("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],rN.prototype,"subscribeButtonHidden",null);_.A([_.K({reflectToAttribute:!0}),_.R("subscribed","hasBellButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],rN.prototype,"subscribeButtonInvisible",null);
_.A([_.K({reflectToAttribute:!0}),_.R("subscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],rN.prototype,"unsubscribeButtonHidden",null);_.A([_.uA("ytd-subscription-notification-toggle-button-renderer-next"),_.B("design:type",Object)],rN.prototype,"bellButton",void 0);_.A([_.uA("#subscribe-button-shape"),_.B("design:type",HTMLElement)],rN.prototype,"subscribeButtonShape",void 0);
_.A([_.R("overlayButton","subscribed","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],rN.prototype,"buttonShape",null);_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],rN.prototype,"onYtServiceRequestSent",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],rN.prototype,"onYtServiceRequestCompleted",null);
_.A([_.Bt("subscribed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rN.prototype,"observedSubscribed",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rN.prototype,"onDataChanged",null);_.A([_.kO("mousedown"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],rN.prototype,"onMouseDown",null);
rN=_.A([_.U({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],rN);
_.Q(rN,"ytd-subscribe-button-renderer",function(){if(hZB!==void 0)return hZB;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return hZB=r},{mode:1});var fc=function(){var r=_.y.apply(this,arguments)||this;r.isRichGrid=!1;return r};
_.t(fc,_.y);fc.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"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],fc.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],fc.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],fc.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],fc.prototype,"isRichGrid",void 0);fc=_.A([_.U({is:"ytd-game-card-renderer",disableElementRegistration:!0})],fc);
_.Q(fc,"ytd-game-card-renderer",function(){if(E84!==void 0)return E84;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return E84=r},{mode:1});var It={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.N("defer_menus")&&!uhX?0:void 0,waitForSignal:"eocs"};var wfC;var bOD;var Cc=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return r};
_.t(Cc,_.y);_.l=Cc.prototype;_.l.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.l.onSeriesReminderStateEntityChange=function(){var r,f,I;((r=this.eventReminderStateEntity)==null?0:r.key)&&((f=this.seriesReminderStateEntity)==null?void 0:f.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((I=this.eventReminderStateEntity)==null?void 0:I.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.hv("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 r;this.updateReminderStateEntitiesFromButtonState((r=this.data)==null?void 0:r.currentState)};
_.l.handleUpdateUpcomingEventReminderButtonStateCommand=function(r){if(r=_.F(r,b3g)){var f,I=(f=this.data)==null?void 0:f.targetId;I&&r.targetId===I&&_.Fi(this.updateReminderStateEntitiesFromButtonState.bind(this,r.state))}};
_.l.getButtonStateFromReminderState=function(){var r;if(((r=this.seriesReminderStateEntity)==null?void 0:r.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var f;if(((f=this.eventReminderStateEntity)==null?void 0:f.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var I,C;if(((I=this.seriesReminderStateEntity)==null?void 0:I.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((C=this.eventReminderStateEntity)==
null?void 0:C.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var Y;return(Y=this.data)==null?void 0:Y.currentState};
_.l.updateReminderStateEntitiesFromButtonState=function(r){if(r){switch(r){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":r="UPCOMING_EVENT_REMINDER_STATE_NONE";var f="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":r="UPCOMING_EVENT_REMINDER_STATE_SINGLE";f="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":r="UPCOMING_EVENT_REMINDER_STATE_NONE";f="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var I;
((I=this.eventReminderStateEntity)==null?0:I.key)&&this.ytdReduxBehavior.dispatch(_.hv("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:r})));var C;((C=this.seriesReminderStateEntity)==null?0:C.key)&&this.ytdReduxBehavior.dispatch(_.hv("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:f})))}};
_.OC.Object.defineProperties(Cc.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var r=this.getButtonStateFromReminderState(),f,I;if(r&&((f=this.data)==null?0:(I=f.states)==null?0:I.length))for(f=_.E(this.data.states),I=f.next();!I.done;I=f.next()){I=I.value;var C=void 0;if(((C=_.F(I,pPq))==null?void 0:C.state)===r)return _.F(I,pPq)}}}});
Cc.prototype.onYtServiceRequestError=Cc.prototype.onYtServiceRequestError;Cc.prototype.onYtServiceRequestCompleted=Cc.prototype.onYtServiceRequestCompleted;Cc.prototype.onSeriesReminderStateEntityChange=Cc.prototype.onSeriesReminderStateEntityChange;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Cc.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Cc.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Cc.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],Cc.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Cc.prototype,"data",void 0);_.A([_.K({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:U$K}),_.B("design:type",Object)],Cc.prototype,"eventReminderStateEntity",void 0);
_.A([_.K({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(r,f){return _.f2(r.entities,"sportsSeriesReminderStateEntity",f)}}),
_.B("design:type",Object)],Cc.prototype,"seriesReminderStateEntity",void 0);_.A([_.R("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Cc.prototype,"currentButtonStateRenderer",null);_.A([_.Bt("seriesReminderStateEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cc.prototype,"onSeriesReminderStateEntityChange",null);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cc.prototype,"onYtServiceRequestCompleted",null);_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cc.prototype,"onYtServiceRequestError",null);Cc=_.A([_.U({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],Cc);
_.Q(Cc,"ytd-upcoming-event-reminder-button-renderer",function(){if(bOD!==void 0)return bOD;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
return bOD=r},{mode:1});var pfD;var Yg=function(){return _.y.apply(this,arguments)||this};
_.t(Yg,_.y);Yg.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.OC.Object.defineProperties(Yg.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}},
textAriaLabel:{configurable:!0,enumerable:!0,get:function(){if(_.N("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Yg.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Yg.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Yg.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Yg.prototype,"shelfDismissal",void 0);_.A([_.R("data.responseText"),_.B("design:type",Object),_.B("design:paramtypes",[])],Yg.prototype,"text",null);
_.A([_.R("data.responseText"),_.B("design:type",Object),_.B("design:paramtypes",[])],Yg.prototype,"textAriaLabel",null);Yg=_.A([_.U({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Yg);
_.Q(Yg,"ytd-notification-multi-action-renderer",function(){if(pfD!==void 0)return pfD;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return pfD=r},{mode:1});var n8C;var lc=function(){return _.y.apply(this,arguments)||this};
_.t(lc,_.y);lc.prototype.ready=function(){var r=this;_.e(this.hostElement).querySelector("#undo").addEventListener("tap",function(){r.onUndoTap()})};
lc.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.a().resolve(_.Gg).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],lc.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],lc.prototype,"data",void 0);lc=_.A([_.U({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],lc);
_.Q(lc,"ytd-notification-text-renderer",function(){if(n8C!==void 0)return n8C;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return n8C=r},{mode:1});var dfC;var Vd=function(){var r=_.y.apply(this,arguments)||this;r.mouseOverDelayJobId=0;r.fadeInImageDelayJobId=0;r.startTimeMs=-1;r.loadingStartTimeMs=-1;r.loadingEndTimeMs=-1;r.hasVideoPreview=!1;return r};
_.t(Vd,_.y);_.l=Vd.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 r=this;this.csn=_.t1();_.No("fmth");_.F_.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.oB(_.F_,function(){r.loadingStartTimeMs=(0,_.Ad)();var f=_.e(r.hostElement).querySelector("#thumbnail");f.complete?r.displayMouseOverImage():f.addEventListener("load",_.GF(r,r.displayMouseOverImage))},150):_.ob(_.e(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 r=this.videoId,f=this.csn,I=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,C=this.startTimeMs,Y=this.hasVideoPreview,V=_.VH(this.trackingParams),S={isMovingThumbnail:Y};Y&&C>0&&(I>0&&(S.movingThumbnailLoadingDurationMs=Math.round(I)),S.durationHoveredMs=Math.round((0,_.Ad)()-C));r&&(S.videoId=r);_.Rl(f,V,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:S});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.l.removeVideoPreview=function(){_.F_.cancelJob(this.mouseOverDelayJobId);_.F_.cancelJob(this.fadeInImageDelayJobId);var r=_.e(this.hostElement).querySelector("#thumbnail");_.ob(r,"fade-in",!1);r.removeEventListener("load",_.GF(this,this.displayMouseOverImage));r=_.e(this.hostElement).querySelector("#play");_.ob(r,"fade-in",!1);_.ob(r,"show",!1)};
_.l.displayMouseOverImage=function(){var r=_.e(this.hostElement).querySelector("#thumbnail"),f=_.e(this.hostElement).querySelector("#play");this.isImageAvailable(r)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.Ad)(),this.startTimeMs=(0,_.Ad)(),this.fadeInImageDelayJobId=_.oB(_.F_,function(){_.ob(r,"fade-in",!0)},50)):_.ob(f,"fade-in",!0)};
_.l.computeThumbnail=function(r,f){var I;r&&r.movingThumbnailDetails&&r.movingThumbnailDetails.thumbnails&&f?I=_.yH(r.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):I=f?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(I)return _.gn(I)};
_.l.isImageAvailable=function(r){return!(!r.src||r.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||r.naturalWidth===120)};
Vd.prototype.onTap=Vd.prototype.onTap;Vd.prototype.dataChanged=Vd.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Vd.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Vd.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],Vd.prototype,"csn",void 0);_.A([_.K(),_.B("design:type",Object)],Vd.prototype,"trackingParams",void 0);
_.A([_.K(),_.B("design:type",String)],Vd.prototype,"videoId",void 0);_.A([_.K(),_.B("design:type",Boolean)],Vd.prototype,"isAttachedAndDataSet",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vd.prototype,"dataChanged",null);_.A([_.kO("click"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vd.prototype,"onTap",null);Vd=_.A([_.U({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Vd);
_.Q(Vd,"ytd-moving-thumbnail-renderer",function(){if(dfC!==void 0)return dfC;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return dfC=r},{mode:1});var zZq;_.hF=function(r){this.hostElement=r;this.eventSink=null;this.eventList=[]};
_.hF.prototype.shouldForward=function(){var r,f;return(f=(r=this.eventSink)==null?void 0:r.isConnected)!=null?f:document.body.contains(this.eventSink)};
_.hF.prototype.start=function(r,f){this.eventSink&&this.stop();for(var I=0;I<r.length;I++)this.hostElement.addEventListener(r[I],_.GF(this,this.forwardEvent));var C;this.eventSink=(C=f.hostElement)!=null?C:f;this.eventList=r};
_.hF.prototype.stop=function(){for(var r=0;r<this.eventList.length;r++)this.hostElement.removeEventListener(this.eventList[r],_.GF(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.hF.prototype.forwardEvent=function(r,f){this.shouldForward()&&(r.stopPropagation(),this.eventSink instanceof Element?_.kA(this.eventSink,r.type,f):_.t7(new _.nf("eventSink is not an element")))};_.Eq={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.hF(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(r,f){this.forwarder_.start(r,f)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Si=function(){return _.y.apply(this,arguments)||this};
_.t(Si,_.y);_.l=Si.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=_.Lz("HTML_DIR")==="rtl"?"right":"left"};
_.l.dataChanged=function(){this.popupOpen=!1};
_.l.computeAriaLabel=function(r){return _.F(r,Lts).label};
_.l.onTap=function(r){r.stopPropagation();r.preventDefault();this.data.command&&_.a().resolve(_.Gg).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()};
Si.prototype.onPopupClosed=Si.prototype.onPopupClosed;Si.prototype.onPopupOpened=Si.prototype.onPopupOpened;Si.prototype.onTap=Si.prototype.onTap;Si.prototype.dataChanged=Si.prototype.dataChanged;_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],Si.prototype,"eventForwardingBehavior",void 0);_.A([_.J(_.cq),_.B("design:type",Object)],Si.prototype,"ironButtonState",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Si.prototype,"componentBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],Si.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,value:-1}),_.B("design:type",Number)],Si.prototype,"tabindex",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.B("design:type",Object)],Si.prototype,"ariaLabel",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],Si.prototype,"disableTooltips",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Si.prototype,"popupOpen",void 0);
_.A([_.K(),_.B("design:type",Element)],Si.prototype,"eventSink",void 0);_.A([_.uA("#tooltip"),_.B("design:type",Object)],Si.prototype,"tooltip",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Si.prototype,"dataChanged",null);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Si.prototype,"onTap",null);
_.A([_.kO("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Si.prototype,"onPopupOpened",null);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Si.prototype,"onPopupClosed",null);Si=_.A([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Si);
_.Q(Si,"ytd-thumbnail-overlay-button-renderer",function(){if(zZq!==void 0)return zZq;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return zZq=r},{mode:1});var MUT;var xg=function(){return _.y.apply(this,arguments)||this};
_.t(xg,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],xg.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],xg.prototype,"disableAnimation",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],xg.prototype,"rounded",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],xg.prototype,"transparentBackground",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],xg.prototype,"noPadding",void 0);xg=_.A([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],xg);
_.Q(xg,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(MUT!==void 0)return MUT;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return MUT=r},{mode:1});var g83;var hc=function(){return _.y.apply(this,arguments)||this};
_.t(hc,_.y);hc.prototype.computeIconPosition=function(r){return this.get("iconPosition",r)||null};
hc.prototype.computeIconStyle=function(r){return this.get("iconStyle",r)||null};
hc.prototype.computeIsIconStyleFilled=function(r){if(!r)return!1;var f;return r.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((f=r.icon)==null?void 0:f.iconType)==="ERROR_BLACK"};
_.A([_.K(),_.B("design:type",Object)],hc.prototype,"data",void 0);_.A([_.K({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.B("design:type",Object)],hc.prototype,"iconPosition",void 0);_.A([_.K({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.B("design:type",Object)],hc.prototype,"iconStyle",void 0);_.A([_.K({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],hc.prototype,"iconStyleFilled",void 0);
hc=_.A([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],hc);
_.Q(hc,"ytd-thumbnail-overlay-icon-renderer",function(){if(g83!==void 0)return g83;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return g83=r},{mode:1});var au3;var wN=function(){return _.y.apply(this,arguments)||this};
_.t(wN,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],wN.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],wN.prototype,"data",void 0);wN=_.A([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],wN);
_.Q(wN,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(au3!==void 0)return au3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return au3=r},{mode:1});var Xf3;var bc=function(){var r=_.y.apply(this,arguments)||this;r.isPreviewLoading=!1;return r};
_.t(bc,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],bc.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],bc.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],bc.prototype,"isPreviewLoading",void 0);bc=_.A([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],bc);
_.Q(bc,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(Xf3!==void 0)return Xf3;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Xf3=r},{mode:1});var NZ_;var pc=function(){return _.y.apply(this,arguments)||this};
_.t(pc,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],pc.prototype,"data",void 0);pc=_.A([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],pc);
_.Q(pc,"ytd-thumbnail-overlay-pinking-renderer",function(){if(NZ_!==void 0)return NZ_;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return NZ_=r},{mode:1});var $f_;var nc=function(){var r=_.y.apply(this,arguments)||this;r.disableTooltips=!1;r.isLoading=!1;r.useExpandableTooltip=!1;r.toggled=!1;r.hovered=!1;r.mouseoverDelayJobId=0;r.toggleDelayJobId=0;r.expandAnimationDelayJobId=0;return r};
_.t(nc,_.y);_.l=nc.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");_.e(this.hostElement).querySelector("#tooltip").position=_.Lz("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&&_.F_.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.F_.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.F_.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.l.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.F_.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.F_.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.F_.cancelJob(this.expandAnimationDelayJobId)};
_.l.computeIcon=function(r,f,I){return(r=I?f:r)&&r.iconType?_.kN(r.iconType):void 0};
_.l.computeAriaLabel=function(r,f,I){return _.F(I?f:r,Lts).label};
_.l.computeTooltip=function(r,f,I){return I?f:r};
_.l.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.l.computeIconOnHover=function(r,f){if((r==null?0:r.iconType)&&!f)return _.kN(r.iconType)};
_.l.onTap=function(r){var f=this;r.stopPropagation();r.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(r=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(r),this.useExpandableTooltip&&(this.toggleDelayJobId=_.oB(_.F_,function(){f.hovered=!1;f.data&&!f.data.toggledServiceEndpoint&&(f.expandAnimationDelayJobId=_.oB(_.F_,function(){f.set("data.isToggled",
!1)},200))},2E3))};
_.l.onMouseenter=function(){var r=this;this.mouseoverDelayJobId=_.oB(_.F_,function(){r.hovered=!0},300)};
_.l.onMouseleave=function(){_.F_.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(r,f){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(f)||this.set("data.isToggled",!this.data.isToggled)};
_.l.serviceRequestWasSuccessful=function(r){return _.F(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.TK)?r.data.status==="STATUS_SUCCEEDED":!0};
nc.prototype.onServiceRequestCompleted=nc.prototype.onServiceRequestCompleted;nc.prototype.onPopupClosed=nc.prototype.onPopupClosed;nc.prototype.onPopupOpened=nc.prototype.onPopupOpened;nc.prototype.onMouseleave=nc.prototype.onMouseleave;nc.prototype.dataChanged=nc.prototype.dataChanged;_.A([_.J(_.cq),_.B("design:type",Object)],nc.prototype,"ironButtonState",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],nc.prototype,"ytComponentBehavior",void 0);
_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],nc.prototype,"ytEventForwardingBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],nc.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.B("design:type",Object)],nc.prototype,"ariaLabel",void 0);_.A([_.K(),_.B("design:type",Object)],nc.prototype,"disableTooltips",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],nc.prototype,"popupOpen",void 0);_.A([_.K(),_.B("design:type",Object)],nc.prototype,"isLoading",void 0);_.A([_.K(),_.B("design:type",Element)],nc.prototype,"eventSink",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],nc.prototype,"useExpandableTooltip",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.B("design:type",Object)],nc.prototype,"toggled",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],nc.prototype,"hovered",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.B("design:type",Object)],nc.prototype,"iconOnHover",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nc.prototype,"dataChanged",null);
_.A([_.kO("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nc.prototype,"onMouseleave",null);_.A([_.kO("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nc.prototype,"onPopupOpened",null);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nc.prototype,"onPopupClosed",null);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],nc.prototype,"onServiceRequestCompleted",null);nc=_.A([_.U({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],nc);
_.Q(nc,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if($f_!==void 0)return $f_;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return $f_=r},{mode:_.QQ("kevlar_poly_si_batch_j053")?1:2});var FpX;var PLB=_.Hc(function(r){var f=r.data;var I=function(){return f().enableSegmentView};
return _.p("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.p(_.M,{cond:I,then:function(){return _.p("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.p("div",{class:_.D5("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+f().startPercent+"%"}}),_.p("div",{class:_.D5("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+f().segmentDurationPercent+"%"}},_.p("div",{class:_.D5("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.p("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.p("div",null," ",function(){return f().segmentLabel})),_.p("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.p("div",{class:_.D5("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.p(_.M,{cond:function(){return!I()&&f().startPercent},
then:function(){var C={};return _.p("div",{class:_.D5("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(C.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.N("web_enable_modern_progress_bar_overlay"),C))},_.p("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+f().startPercent+"%"}}))}}))},"M");
PLB.idomCompat=!0;var tUX=_.Hc(function(r){var f=_.ru(),I=_.XA(function(Y){var V,S,h;a:{var w=(V=r.data())==null?void 0:V.animationActivationTargetId;V=((S=r.data())==null?void 0:S.animationActivationEntityKey)||"";S=(h=r.data())==null?void 0:h.animationActivationEntitySelectorType;if(V&&w)switch(S){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":Y=_.f2(Y.entities,"playerStateEntity",V);h=_.a().resolve(_.ZY(_.iO));w=!!(Y&&Y.videoId===w&&(h==null?0:h.isMiniplayerActive()));w={activated:w,playAnimation:w&&
Y.playerState==="PLAYER_STATE_PLAYING"};break a}w=void 0}return w});
_.az(function(){var Y;if((Y=I())==null?0:Y.activated){var V;if((V=I())==null?0:V.playAnimation){var S;(S=f.lottieEl)==null||S.goToAndPlay(0)}else{var h;(h=f.lottieEl)==null||h.goToAndStop(0)}}});
var C=function(){var Y,V=!((Y=I())==null||!Y.activated);if(r.data()){Y=r.data();var S=void 0;Y.icon&&(S=_.mFR(Y.icon),S=vyl(S));var h=void 0,w;if((w=Y.backgroundColor)==null?0:w.lightTheme){var n;h={backgroundColor:ab((n=Y.backgroundColor)==null?void 0:n.lightTheme,"0.8")}}if(Y.text||S||V){if(V&&Y.lottieData&&f){n=Y.lottieData;var d,z,g;w={animationConfig:{name:n.url,path:n.url,autoplay:(d=n.settings)==null?void 0:d.autoplay,loop:(g=(z=n.settings)==null?void 0:z.loop)!=null?g:!0},animationRef:f}}else w=
void 0;if(V)d=16;else b:switch(Y.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":d=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":d=18;break b;default:d=16}V={type:d,text:V&&Y.animatedText?Y.animatedText:Y.text,icon:S,customColors:h,animation:w}}else V=void 0}else V=void 0;return V};
return _.p("yt-thumbnail-badge-view-model",{class:_.qd("yt-thumbnail-badge-view-model-wiz",r.class)},_.p(_.M,{cond:C,then:function(){return _.p(_.Av,{data:function(){return C()}})}}))},"N");var TZq=_.Hc(function(r){var f={};return _.p("yt-thumbnail-bottom-overlay-view-model",{class:_.qd("ytThumbnailBottomOverlayViewModelHost",(f.ytThumbnailBottomOverlayViewModelHostBackground=function(){return r.data().enableGradientBackground},f))},_.p("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.p(_.X1,{data:function(){return r.data().progressBar}},{thumbnailOverlayProgressBarViewModel:PLB}),_.p(_.X1,{data:function(){return r.data().badge}},{thumbnailBadgeViewModel:function(I){return _.p(tUX,
{data:I.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.p(_.X1,{data:function(){return r.data().badges}},{thumbnailBadgeViewModel:function(I){return _.p(tUX,{data:I.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"O");
TZq.idomCompat=!0;_.Kv(TZq,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.vI}});var Q8U={calledOnce:!1,state:"visible"},AXU={calledOnce:!1,state:"hidden"};_.GL(GcR);var cXD=_.Hc(function(r){var f=r.data;var I=r.className;r=r.alwaysShow;var C=_.yy();_.KF(C,function(){return f().rendererContext});
var Y=_.RZ$(),V={};return _.p("thumbnail-hover-overlay-view-model",{el:C,class:_.qd("ytThumbnailHoverOverlayViewModelHost",I,(V.ytThumbnailHoverOverlayViewModelHostForceHover=r,V)),"aria-label":function(){var S;return(S=_.F(f().rendererContext,_.U0))==null?void 0:S.label},
role:function(){return _.i6(f().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.i6(f().rendererContext)!==void 0?0:void 0},
"on:keypress":Y},_.p("div",{class:_.qd("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(f().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var S="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:S="ytThumbnailHoverOverlayViewModelStyleCover"}return S})},_.p(_.M,{cond:function(){return f().icon},
then:function(S){return _.p(_.J3,{data:S,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.p(_.M,{cond:function(){return f().text},
then:function(S){return _.p(_.wW,{text:S,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"P"),WpV=_.N("web_enable_sink_lockups_batch")?cXD:GcR,Lpq=_.N("web_enable_sink_lockups_batch")?cXD:_.rW(GcR);
cXD.idomCompat=!0;var mf3=_.Hc(function(r){var f=r.data;return _.p(_.X1,{data:function(){return f==null?void 0:f().overlays}},{thumbnailHoverOverlayViewModel:Lpq})},"Q");
mf3.idomCompat=!0;var eZ8={};var JX3=_.Hc(function(r){var f=r.data;var I=r.image;var C=r.state;var Y=r.iconType;var V=r.overlays;var S=r.isOverlay;var h=_.Ue();r=_.E(_.ld(!0,void 0,"AA4e7b"));var w=r.next().value,n=r.next().value,d=function(){return!!f().onTap},z=_.JG(Y,"LIVE");
_.az(function(){var X=f();requestAnimationFrame(function(){if(h.value===null)var P=!0;else{var W=h.value;P=X.badgeText;var m=kc$(X.size);P in eZ8?W=eZ8[P]:(W=W.clientWidth,eZ8[P]=W);(P=W>m)?h.value.style.display="none":h.value.style.visibility="visible"}n(P)})});
var g=function(){var X={};return X["yt-spec-avatar-shape__image"]=!0,X["yt-spec-avatar-shape__image--ads-app"]=f().type===1,X};
return _.p("yt-avatar-shape",null,_.p("div",{el:_.HI(qIP(d,{keydown:function(X){if(X.key==="Enter"){var P;(P=X.currentTarget)==null||P.click()}},
click:function(X){var P,W;return void((W=(P=f()).onTap)==null?void 0:W.call(P,X))}})),
class:function(){var X={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},P=f();X=(X[P.clusterLayoutConfig?rMd(P.clusterLayoutConfig):fIw(P.size)]=!0,X["yt-spec-avatar-shape__button--tappable"]=d(),X);(P=f().avatarButtonCustomClassName)&&(X[P]=!0);return _.D5(X)},
"aria-label":function(){return d()?f().accessibilityText:""},
role:function(){return d()?"button":void 0},
tabindex:function(){return d()?0:void 0}},_.p("div",{class:function(){var X,P=f(),W=C==null?void 0:C(),m=S==null?void 0:S(),v=!((X=P.decorations)==null||!X.includes(2)||P.size!=="medium"&&P.size!=="large"),O=P.size==="tiny"||P.size==="extra-small",k,Z,Cw,rR,EP={};
X=(EP["yt-spec-avatar-shape--live-ring"]=!!(((k=P.decorations)==null?0:k.includes(0))&&CeK(P.size)),EP["yt-spec-avatar-shape--stories-watched"]=v&&!(W==null||!W.storiesWatched),EP["yt-spec-avatar-shape--stories-unwatched"]=v&&!(W==null?0:W.storiesWatched),EP["yt-spec-avatar-shape--background-border"]=YAd(P.decorations)&&!O,EP["yt-spec-avatar-shape--background-border-thin"]=YAd(P.decorations)&&O,EP["yt-spec-avatar-shape__on-select-border"]=!((Z=P.decorations)==null||!Z.includes(4)),EP["yt-spec-avatar-shape__white-border"]=
!((Cw=P.decorations)==null||!Cw.includes(5)),EP["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((rR=P.decorations)==null?0:rR.includes(5))&&O),EP["yt-spec-avatar-shape--is-overlay"]=!!m,EP);return _.D5(X)}},_.p("div",{class:function(){var X={};
var P=f();X=(X[P.clusterLayoutConfig?usK(P.clusterLayoutConfig):DfK(P.size)]=!0,X["yt-spec-avatar-shape--no-margin"]=YAd(f().decorations),X);return _.D5(X)}},_.p(_.J3,{data:I,
alt:function(){return!d()&&f().accessibilityText?f().accessibilityText:""},
targetWidth:function(){return IIB(f().size)},
targetHeight:function(){return IIB(f().size)},
className:function(){return _.D5(g())}}),_.p(_.M,{cond:function(){var X;
return((X=f().decorations)==null?void 0:X.includes(0))&&CeK(f().size)},
then:function(){return _.p("div",{class:function(){var X={};X=(X["yt-spec-avatar-shape__live-badge"]=!0,X["yt-spec-avatar-shape__live-badge--badge-small"]=f().size==="small",X["yt-spec-avatar-shape__live-badge--badge-medium"]=f().size==="medium"||f().size==="48",X["yt-spec-avatar-shape__live-badge--badge-large"]=f().size==="large",X["yt-spec-avatar-shape__live-badge--badge-extra-large"]=f().size==="extra-large"||f().size==="extra-extra-large"||f().size==="giant",X);return _.D5(X)}},_.p(_.M,{cond:function(){return f().badgeText},
then:function(X){return _.p("div",{class:"yt-spec-avatar-shape__badge-text",el:h},X)}}),_.p(_.M,{cond:w,
then:function(){return _.p("div",{class:"yt-spec-avatar-shape__badge-icon"},_.p(_.V2,{icon:z,size:function(){a:switch(f().size){case "extra-large":var X=16;break a;default:X=13}return X}}))}}))}}),_.p(_.M,{cond:function(){var X,P;
return((X=f().decorations)==null?void 0:X.includes(1))||((P=f().decorations)==null?void 0:P.includes(0))&&!CeK(f().size)},
then:function(){return _.p("div",{class:function(){var X=f(),P,W,m={};var v=(m["yt-spec-avatar-shape__live-dot"]=!((P=X.decorations)==null||!P.includes(0)||CeK(X.size)),m["yt-spec-avatar-shape__new-content"]=!((W=X.decorations)==null||!W.includes(1)),m);return _.D5(v)}})}}),_.p(_.M,{cond:function(){return!!V},
then:function(){return _.p("div",{class:function(){var X={};X=Object.assign((X["yt-spec-avatar-shape__image-overlays"]=!0,X),g());return _.D5(X)}},V==null?void 0:V())}})))))},"R");
JX3.idomCompat={callbacks:{overlays:!0}};_.$U=_.Hc(function(r){function f(){I().endpoint&&_.F2(I().endpoint)}
var I=r.data;var C=r.decorations;var Y=r.avatarButtonCustomClassName;var V=r.isOverlay;var S=r.clusterLayoutConfig;return _.p("avatar-view-model",null,_.p(_.M,{cond:function(){return I().image},
then:function(h){return _.p(JX3,{data:function(){return VIE({data:I(),onTap:I().endpoint?f:void 0,decorations:C==null?void 0:C(),badgeText:void 0,accessibilityText:I().accessibilityText,avatarButtonCustomClassName:Y==null?void 0:Y(),clusterLayoutConfig:S==null?void 0:S()})},
image:h,iconType:"RADAR_LIVE",overlays:function(){return _.p(mf3,{data:I})},
isOverlay:V})}}))},"S");
_.$U.idomCompat=!0;_.dN=_.Hc(function(r){var f=r.data;r=r.className;var I=_.Ue(),C=function(){return _.F(f().avatar,_.s0)},Y=_.hR(function(){var V,S=f(),h=C(),w=_.i6(f().rendererContext),n=(V=I.value)!=null?V:void 0,d;
if(h){n={data:S,avatar:h,onTap:w,element:n};V=n.data;S=n.avatar;h=n.onTap;w=n.element;n=n.commandController;h=h?hym(h,w,n):void 0;w=[];V.liveData&&w.push(0);var z;n=(z=V.liveData)==null?void 0:z.liveBadgeText;z=(d=_.F(V.rendererContext,_.U0))==null?void 0:d.label;d=VIE({data:S,onTap:h,decorations:w,badgeText:n,accessibilityText:z?z:V.a11yLabel})}else d={size:"medium"};return d},void 0,"H8tk9d");
return _.p("yt-decorated-avatar-view-model",{class:_.qd("yt-decorated-avatar-view-model-wiz",r),el:I},_.p(_.M,{cond:function(){var V;return(V=C())==null?void 0:V.image},
then:function(V){return _.p(JX3,{data:Y,image:V,iconType:"RADAR_LIVE",overlays:function(){return _.p(mf3,{data:C})}})}}))},"T");
_.dN.idomCompat=!0;_.zt=_.Hc(function(r){var f=function(){var h;return Object.assign({},r.data(),(h=r.overrides)==null?void 0:h.call(r))},I=_.yy(),C=function(){return I&&_.RK(f().rendererContext)};
_.KF(I,function(){return f().rendererContext});
var Y=function(){var h=f().avatars,w,n;return(n=(w=(h==null?0:h[0])?_.F(h[0],_.s0):void 0)==null?void 0:w.avatarImageSize)!=null?n:"AVATAR_SIZE_UNKNOWN"},V=function(){return x0R(f())},S={};
return _.p("yt-avatar-stack-view-model",{el:I,class:_.qd("yt-avatar-stack-view-model-wiz",r.className,(S["yt-avatar-stack-view-model-wiz--tappable"]=C,S["yt-avatar-stack-view-model-wiz--is-overlay"]=r.isOverlay,S["yt-avatar-stack-view-model-wiz--medium-text"]=r.useMediumText,S)),tabindex:function(){return C()?0:void 0},
role:function(){return C()?"link":void 0},
"aria-label":function(){var h,w;return(w=(h=_.F(f().rendererContext,_.U0))==null?void 0:h.label)!=null?w:""}},_.p(_.M,{cond:function(){var h;
return f().avatars&&!((h=r.hideAvatar)==null?0:h.call(r))},
then:function(){return _.p("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.p(_.M,{cond:function(){return f().decoratedText},
then:function(h){var w={};return _.p("div",{class:_.qd("yt-avatar-stack-view-model-wiz__text-container",(w["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return Y()==="AVATAR_SIZE_XXS"||Y()==="AVATAR_SIZE_XS"},w["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var n;
return((n=r.isOverlay)==null?void 0:n.call(r))&&(Y()==="AVATAR_SIZE_XXS"||Y()==="AVATAR_SIZE_XS")},w)),
style:_.lB({width:function(){return V().avatarSizeInPx+"px"},
height:function(){return V().avatarSizeInPx+"px"}})},_.p(_.wW,{text:h,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.p("div",{style:function(){return _.lB(V().avatarStackStyle)()},
class:function(){return V().avatarStackClass}},_.p(_.X1,{data:function(){return V().avatars.reverse()}},{avatarViewModel:function(h,w){return _.p("div",{style:function(){var n,d;
return _.lB((d=(n=V()).avatarStyle)==null?void 0:d.call(n,w()))()},
class:function(){return V().avatarClass}},_.p(_.$U,{data:h.data,
decorations:function(){var n;if((n=r.decorations)==null?0:n.call(r))n=r.decorations();else{n=f();var d=0;n.avatars&&(d+=n.avatars.length);n.decoratedText&&(d+=1);n=d>1?[3]:[]}return n},
avatarButtonCustomClassName:function(){return V().avatarButtonCustomClassName},
isOverlay:r.isOverlay,clusterLayoutConfig:function(){var n,d;return(d=(n=V()).clusterLayoutConfig)==null?void 0:d.call(n,w())}}))},
decoratedAvatarViewModel:function(h,w){return _.p("div",{style:function(){var n,d;return _.lB((d=(n=V()).avatarStyle)==null?void 0:d.call(n,w()))()},
class:function(){return V().avatarClass}},_.p(_.dN,{data:h.data}))}})))}}),_.p(_.M,{cond:function(){return f().text},
then:function(h){return _.p(_.wW,{text:h,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"U");
_.zt.idomCompat=!0;_.Kv(_.Hc(function(r){var f=r.data;var I=r.thumbnailSize;return _.p("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.p("div",{class:_.qd("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return wnq(I==null?void 0:I())})},_.p(_.X1,{data:function(){return f().avatarStack}},{avatarStackViewModel:function(C){return _.p(_.zt,{data:C.data,
decorations:[5]})}})))},"V"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.jv,
thumbnailSize:_.jv}});_.GL(b4w);var j8C=_.Hc(function(r){r=_.jS(r,{hidden:!1});var f=r.data;return _.p("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:r.hidden},_.p(_.wW,{text:function(){return f().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.p(_.M,{cond:function(){return f().subtitle},
then:function(){return _.p(_.wW,{text:function(){return f().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"W"),HOB=_.N("web_enable_sink_lockups_batch")?j8C:b4w,iOU=_.N("web_enable_sink_lockups_batch")?j8C:_.rW(b4w);
j8C.idomCompat=!0;_.N("web_enable_sink_lockups_batch")?_.Kv(iOU,"yt-thumbnail-overlay-title-view-model",{props:{data:_.jv,hidden:_.jv}}):_.Z5(HOB,"yt-thumbnail-overlay-title-view-model",{propNames:["data"]});var RZX=_.Hc(function(r){r=_.jS(r,{isClip:!1});var f=r.data,I=r.thumbnailSize,C={};return _.p("yt-thumbnail-overlay-badge-view-model",{class:_.qd("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(f().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var Y="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:Y="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return Y},function(){return pnU(I==null?void 0:I())},(C["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
r.isClip,C))},_.p(_.X1,{data:function(){return f().thumbnailBadges}},{thumbnailBadgeViewModel:function(Y){return _.p(tUX,{data:Y.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"X");
RZX.idomCompat=!0;_.Kv(RZX,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.jv,thumbnailSize:_.jv,isClip:_.jv}});_.GL(neK);_.Z5(neK,"yt-page-indicator-view-model",{propNames:["data"]});var M5=function(){var r=_.y.apply(this,arguments)||this;r.eventSink=function(){return r};
r.disableInteraction=!1;r.noRoundedCorners=!1;r.isPreviewLoading=!1;r.isOriginalAspectRatio=!1;r.computedObjectFit=!1;r.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return r};
_.t(M5,_.y);_.l=M5.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:_.N("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(r,f,I,C){if(r&&f&&!C&&!_.N("disable_moving_thumbs_handling")&&!I)return f};
_.l.computeImageWidth=function(r,f){return f||9999};
_.l.computeIsOriginalAspectRatio=function(r){return r};
_.l.computeIsLive=function(r){if(r==null?0:r.badges)for(var f=0;f<r.badges.length;f++){var I=r.badges[f];if(I.metadataBadgeRenderer&&I.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(r==null?0:r.thumbnailOverlays)for(f=0;f<r.thumbnailOverlays.length;f++)if(I=r.thumbnailOverlays[f],I.thumbnailOverlayTimeStatusRenderer&&I.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.l.computeObjectFit=function(r,f){return f||(r?"CONTAIN":"")};
_.l.computeNavigationEndpoint=function(r,f,I){return r?f:I};
_.l.computeHasClip=function(r){r=_.E(r||[]);for(var f=r.next();!f.done;f=r.next())if(f.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.l.computeOverlayColor=function(r){var f;return(r==null?0:(f=r.darkColorPalette)==null?0:f.section2Color)?r.darkColorPalette.section2Color:r==null?void 0:r.sampledThumbnailColor};
_.OC.Object.defineProperties(M5.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return vl(this.width)}}});
M5.prototype.onImageUnloaded=M5.prototype.onImageUnloaded;M5.prototype.onImageLoaded=M5.prototype.onImageLoaded;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],M5.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],M5.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(VGX),_.B("design:type",Object)],M5.prototype,"ytdThumbnailBehavior",void 0);
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],M5.prototype,"componentBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],M5.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],M5.prototype,"data",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],M5.prototype,"circular",void 0);
_.A([_.K({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.B("design:type",Object)],M5.prototype,"richThumbnail",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.B("design:type",Boolean)],M5.prototype,"hasClip",void 0);_.A([_.K(),_.B("design:type",Object)],M5.prototype,"eventSink",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],M5.prototype,"queued",void 0);
_.A([_.K({value:!1}),_.B("design:type",Boolean)],M5.prototype,"richGridThumbnail",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],M5.prototype,"useExpandableTooltip",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],M5.prototype,"useUntranslatedNavigationEndpoint",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],M5.prototype,"disableInteraction",void 0);
_.A([_.K({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.B("design:type",Object)],M5.prototype,"computedNavigationEndpoint",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],M5.prototype,"nowPlayingEqualizerOnly",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],M5.prototype,"hidePlaybackStatus",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],M5.prototype,"objectFit",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],M5.prototype,"noRoundedCorners",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],M5.prototype,"watchFeedThumbnail",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],M5.prototype,"isPreviewLoading",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.B("design:type",Object)],M5.prototype,"isOriginalAspectRatio",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.B("design:type",Object)],M5.prototype,"computedObjectFit",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.B("design:type",Boolean)],M5.prototype,"isLiveVideo",void 0);
_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],M5.prototype,"loaded",void 0);_.A([_.K({computed:"computeOverlayColor(data.thumbnail)"}),_.B("design:type",Object)],M5.prototype,"overlayColor",void 0);_.A([_.K({selector:_.mhP}),_.B("design:type",Boolean)],M5.prototype,"inlinePreviewIsEnabled",void 0);_.A([_.K(),_.B("design:type",Number)],M5.prototype,"width",void 0);
_.A([_.R("inlinePreviewIsEnabled"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],M5.prototype,"isPreviewDisabled",null);_.A([_.R("width"),_.B("design:type",String),_.B("design:paramtypes",[])],M5.prototype,"thumbnailSize",null);_.A([_.kO("image-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],M5.prototype,"onImageLoaded",null);
_.A([_.kO("image-unloaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],M5.prototype,"onImageUnloaded",null);M5=_.A([_.U({disableElementRegistration:!0,is:"ytd-thumbnail"})],M5);
var v84=_.os()(M5,"ytd-thumbnail",function(){if(FpX===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);FpX=r}r=FpX;return r},{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 ge$=function(r){var f=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12690_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12690_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(I){Kp_(f,I)};
this.onLockupMouseLeaveFn=function(I){I=I.relatedTarget;var C,Y;((C=document.getElementsByTagName("ytd-video-preview"))==null?0:(Y=C.item(0))==null?0:Y.contains(I))||(f.terminateVideoPreview(),gN(f))};
this.onThumbnailMouseDownFn=function(){f.terminateVideoPreview();gN(f)};
this.onTouchStart=function(){f.JSC$12690_touched=!0};
this.mediaRenderer=r.mediaRenderer;this.thumbnailElement=r.thumbnailElement;this.lockupElement=r.lockupElement;this.videoPreviewOptsInput=r.videoPreviewOpts;yXg(this);at(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)):
_.t7(Error("Bh")):_.t7(Error("Ch")):Uf4(this)},rY=function(r){Uf4(r);
var f;(f=r.lockupElement)==null||f.removeEventListener("mouseenter",r.onMouseMoveFn);var I;(I=r.lockupElement)==null||I.removeEventListener("mouseleave",r.onLockupMouseLeaveFn);var C;(C=r.lockupElement)==null||C.removeEventListener("touchstart",r.onTouchStart);var Y;(Y=r.thumbnailElement)==null||Y.removeEventListener("mousedown",r.onThumbnailMouseDownFn);gN(r)},yXg=function(r){r.inlinePreviewIsEnabledForUser=_.K2().getState().ui.inlinePreviewIsEnabled;
r.unsubscribeFromInlinePreviewIsEnabled=_.wj(_.K2(),_.mhP,function(f){(r.inlinePreviewIsEnabledForUser=f)||gN(r)});
r.JSC$12690_unsubscribeFromInlinePreviewIsActive=_.wj(_.K2(),_.LRq,function(f){(r.inlinePreviewIsActive=f)||gN(r)})},Uf4=function(r){r.unsubscribeFromInlinePreviewIsEnabled();
r.unsubscribeFromInlinePreviewIsEnabled=function(){};
r.JSC$12690_unsubscribeFromInlinePreviewIsActive();r.JSC$12690_unsubscribeFromInlinePreviewIsActive=function(){}},Kp_=function(r,f){f.buttons>0||(f=_.Bw("kevlar_lockup_hover_delay",-1),r.JSC$12690_touched&&f>=0?(_.F_.cancelJob(r.videoPreviewJobId),r.videoPreviewJobId=_.oB(_.F_,function(){s8B(r)},f),r.JSC$12690_touched=!1):s8B(r))},OO8=function(r){r.videoPreviewJobId=_.oB(_.F_,function(){var f,I,C,Y;
return _.x(function(V){if(V.nextAddress==1){if(!at(r))return V.return();f=r.getVideoPreviewOpts();if(!f)return V.return();f.isAutoplay=!0;return(C=(I=_.qy(r.mediaRenderer.hostElement,"yt-open-video-preview-action",[f]))&&I[0])?_.b(V,I[0],3):V.jumpTo(2)}V.nextAddress!=2&&(C=V.yieldResult===1);C&&zyd((Y=r.mediaRenderer)==null?void 0:Y.data);_.wO(V)})})},s8B=function(r){!r.previewTriggered&&at(r)&&(r.inlinePreviewIsActive&&r.terminateVideoPreview(),r.previewTriggered=!0,r.mediaRenderer.isInlinePreviewTriggered=
!0,_.F_.cancelJob(r.videoPreviewJobId),r.videoPreviewJobId=_.oB(_.F_,function(){var f,I,C,Y;
return _.x(function(V){if(V.nextAddress==1){if(!at(r))return V.return();f=r.getVideoPreviewOpts();return f?(C=(I=_.qy(r.mediaRenderer.hostElement,"yt-open-video-preview-action",[f]))&&I[0])?_.b(V,I[0],3):V.jumpTo(2):V.return()}V.nextAddress!=2&&(C=V.yieldResult===1);C&&zyd((Y=r.mediaRenderer)==null?void 0:Y.data);_.wO(V)})}))};
ge$.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var r,f;if((f=(r=this.videoPreviewOptsInput)==null?void 0:r.videoPreviewData)!=null)r=f;else if(r=this.mediaRenderer.data)if(d0B(r))r={inlinePlaybackEndpoint:_.aB(r.inlinePlayerData.onVisible),navigationEndpoint:_.aB(r.onTap),thumbnail:"image"in r?r.image:r.thumbnail,thumbnailOverlays:void 0,accessibilityText:MIU(r)};else if("multipleInlinePlaybackEndpoint"in r){var I=_.F(_.F(r.multipleInlinePlaybackEndpoint,mKg),e0D);if(I!=
null&&I.playerDescriptors){f=[];I=_.E(I.playerDescriptors);for(var C=I.next();!C.done;C=I.next())C=C.value,f.push({inlinePlaybackEndpoint:C.inlinePlaybackEndpoint,navigationEndpoint:C.navigationEndpoint,thumbnail:C.thumbnail,thumbnailOverlays:C.thumbnailOverlays,accessibilityText:MIU(r)});r=f}else r=void 0}else r={inlinePlaybackEndpoint:r.inlinePlaybackEndpoint,navigationEndpoint:r.navigationEndpoint,thumbnail:r.thumbnail,thumbnailOverlays:r.thumbnailOverlays,accessibilityText:MIU(r)};else r=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:r,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var at=function(r){var f;if(f=r.inlinePreviewIsEnabledForUser)f=(r=r.mediaRenderer.data)?"inlinePlaybackEndpoint"in r&&r.inlinePlaybackEndpoint||d0B(r)&&r.inlinePlayerData||"multipleInlinePlaybackEndpoint"in r&&r.multipleInlinePlaybackEndpoint?!0:!1:!1;return f};
ge$.prototype.terminateVideoPreview=function(){_.Bj(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var gN=function(r){_.F_.cancelJob(r.videoPreviewJobId);r.inlinePreviewIsActive=!1;r.previewTriggered=!1;r.mediaRenderer.isInlinePreviewTriggered=!1};var o8V=_.op(["#"]),Xu=function(){var r=_.y.apply(this,arguments)||this;r.isDisabled=!1;return r};
_.t(Xu,_.y);_.l=Xu.prototype;_.l.configureRendererStamper=function(){return{"data.menu":It,"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(r){var f=[];if(r.metadataText&&Object.keys(r.metadataText).length>0){var I=this.ytRendererBehavior.getSimpleString(r.metadataText);r.upcomingEventData&&r.upcomingEventData.upcomingEventText&&(I=_.mV(I,Number(r.upcomingEventData.startTime)));f.push(I)}else r.shortViewCountText&&f.push(this.ytRendererBehavior.getSimpleString(r.shortViewCountText)),r.publishedTimeText&&f.push(this.ytRendererBehavior.getSimpleString(r.publishedTimeText)),r.upcomingEventData&&r.upcomingEventData.upcomingEventText&&
(I=this.ytRendererBehavior.getSimpleString(r.upcomingEventData.upcomingEventText),f.push(_.mV(I,Number(r.upcomingEventData.startTime))));return f};
_.l.calculateBylineText=function(r){return r.shortBylineText?r.shortBylineText:r.bylineText?r.bylineText:null};
_.l.calculateIsDisabled=function(r){return!!r.isDisabled};
_.l.computeHrefWithDefault=function(r){return this.ytComponentBehavior.computeHref_(r)||_.$1(o8V)};
_.l.onDetailsTap=function(r){var f=this.data&&this.data.navigationEndpoint;f&&!_.iB(_.JN(r)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.N("kevlar_grid_video_renderer_killswitch")?_.kA(this.hostElement,"yt-navigate",{endpoint:f}):this.ytComponentBehavior.resolveCommand(f))};
_.l.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12695_inlinePreviewHoverListener=O0({mediaRenderer:this,lockupElement:_.e(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.e(this.hostElement).querySelector("ytd-thumbnail")})};
_.l.clearInlinePreviewHoverListeners=function(){var r;(r=this.JSC$12695_inlinePreviewHoverListener)==null||rY(r)};
_.l.computeThumbnailWidth=function(r,f){return f&&f>0?f:r?360:210};
_.l.computeShowChannelThumbnail=function(r,f){var I;return f&&!!(r==null?0:(I=r.channelThumbnailSupportedRenderers)==null?0:I.channelThumbnailWithLinkRenderer)};
_.OC.Object.defineProperties(Xu.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.JSC$12695_inlinePreviewHoverListener)==null?0:at(r))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Xu.prototype.dataChanged=Xu.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Xu.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Xu.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Xu.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],Xu.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.J(_.jW),_.B("design:type",Object)],Xu.prototype,"ytdLockupBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],Xu.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Xu.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],Xu.prototype,"noEndpoints",void 0);_.A([_.K({computed:"calculateBylineText(data)"}),_.B("design:type",Object)],Xu.prototype,"bylineText",void 0);
_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Xu.prototype,"isSearch",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Xu.prototype,"isDownloading",void 0);_.A([_.K({reflectToAttribute:!0,value:0}),_.B("design:type",Number)],Xu.prototype,"width",void 0);_.A([_.K({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.B("design:type",Object)],Xu.prototype,"isDisabled",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Xu.prototype,"dataChanged",null);_.A([_.R("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Xu.prototype,"isHovered",null);Xu=_.A([_.U({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],Xu);
_.Q(Xu,"ytd-grid-video-renderer",function(){if(wfC!==void 0)return wfC;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return wfC=r},{mode:_.QQ("kevlar_poly_si_batch_j047")?1:2});var Q8V;var N5=function(){var r=_.y.apply(this,arguments)||this;r.roundedContainer=!0;r.skipRoundingTop=!1;r.disableTopPadding=!1;r.amsterdamEnabled=_.N("enable_desktop_amsterdam_info_panels");return r};
_.t(N5,_.y);N5.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
N5.prototype.onClick=function(r){var f,I=(f=this.data)==null?void 0:f.sourceEndpoint;!_.iB(_.JN(r),this.hostElement,["A".toString()])&&I&&_.kA(this.hostElement,"yt-navigate",{endpoint:I})};
_.OC.Object.defineProperties(N5.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 r;return!((r=this.data)==null||!r.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var r,f;return(f=(r=this.data)==null?void 0:r.paragraphMaxLines)!=null?f:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],N5.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],N5.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],N5.prototype,"showVerticalDividers",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],N5.prototype,"roundedContainer",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],N5.prototype,"skipRoundingTop",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],N5.prototype,"disableTopPadding",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],N5.prototype,"amsterdamEnabled",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],N5.prototype,"showMetadataAtTop",null);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],N5.prototype,"showMetadataBelowTitle",null);_.A([_.K({reflectToAttribute:!0}),_.R("data.menu"),_.B("design:type",Object),_.B("design:paramtypes",[])],N5.prototype,"hasMenu",null);_.A([_.K({reflectToAttribute:!0}),_.R("data.truncateParagraphs"),_.B("design:type",Object),_.B("design:paramtypes",[])],N5.prototype,"truncateParagraphs",null);
_.A([_.K({reflectToAttribute:!0}),_.R("data.paragraphMaxLines"),_.B("design:type",Number),_.B("design:paramtypes",[])],N5.prototype,"paragraphMaxLines",null);_.A([_.K({type:_.N("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.R("data.background"),_.B("design:type",Object),_.B("design:paramtypes",[])],N5.prototype,"background",null);N5=_.A([_.U({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],N5);
_.Q(N5,"ytd-info-panel-content-renderer",function(){if(Q8V!==void 0)return Q8V;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Q8V=r},{mode:_.QQ("kevlar_poly_si_batch_j076")?1:2});var AXV;var ZOU;var GcD;var kcX;var $g=function(){return _.y.apply(this,arguments)||this};
_.t($g,_.y);$g.prototype.computeStyle=function(r){return r};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],$g.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],$g.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],$g.prototype,"style_",void 0);$g=_.A([_.zX({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],$g);
_.Q($g,"yt-channel-thumbnail-with-link-renderer",function(){if(kcX===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;GcD===void 0&&(GcD=document.createElement("template"));var C=GcD;I.call(f,C.content.cloneNode(!0),r.content.firstChild);kcX=r}r=kcX;return r},{mode:2});var Fu=function(){var r=_.y.apply(this,arguments)||this;r.modernTypography=_.N("web_modern_typography");return r};
_.t(Fu,_.y);Fu.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"}}}};
Fu.prototype.computeTitleStyle=function(r){return r||null};
Fu.prototype.computeAvatarStyle=function(r){return r||null};
Fu.prototype.computeShowNavigationButton=function(r,f){return!(r==null||!r.navigationButton||f)};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Fu.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Fu.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.B("design:type",String)],Fu.prototype,"titleStyle",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.B("design:type",String)],Fu.prototype,"avatarStyle",void 0);_.A([_.K(),_.B("design:type",Boolean)],Fu.prototype,"hideNavigationButton",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Fu.prototype,"isModernSd",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Fu.prototype,"modernTypography",void 0);
Fu=_.A([_.U({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],Fu);
_.Q(Fu,"ytd-rich-list-header-renderer",function(){if(ZOU!==void 0)return ZOU;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ZOU=r},{mode:_.QQ("kevlar_poly_si_batch_j058")?1:2});var P3=function(){return _.y.apply(this,arguments)||this};
_.t(P3,_.y);P3.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]]"}}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],P3.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],P3.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],P3.prototype,"data",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],P3.prototype,"isSearch",void 0);P3=_.A([_.U({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],P3);
_.Q(P3,"ytd-preview-card-renderer",function(){if(AXV!==void 0)return AXV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return AXV=r},{mode:1});var BZX;var tc=function(){return _.y.apply(this,arguments)||this};
_.t(tc,_.y);tc.prototype.configureRendererStamper=function(){return{"data.menu":It}};
tc.prototype.dataChanged=function(){var r=this.get("colorExtractionPalette.section1Color",this.data);r=_.MG(r);_.Zh(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":r})};
tc.prototype.computeCardStyle=function(r){return this.get("style.value",r)||null};
tc.prototype.dataChanged=tc.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],tc.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],tc.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],tc.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],tc.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.B("design:type",String)],tc.prototype,"cardStyle",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tc.prototype,"dataChanged",null);tc=_.A([_.U({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],tc);
_.Q(tc,"ytd-compact-channel-recommendation-card-renderer",function(){if(BZX!==void 0)return BZX;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return BZX=r},{mode:1});var qIs;var us3;var Tt=function(){var r=_.y.apply(this,arguments)||this;r.alignAuto=!1;r.collapsed=!0;r.isToggled=!1;r.alwaysCollapsed=!1;r.canToggle=!0;r.collapsedHeight=80;r.disableToggle=!1;r.alwaysToggleable=!1;r.reversed=!1;r.shouldUseNumberOfLines=!1;r.recomputeOnResize=!1;r.canToggleJobId=0;r.lastReversed=!1;return r};
_.t(Tt,_.y);_.l=Tt.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 r=_.e(this.hostElement),f=r.childNodes,I=document.createDocumentFragment(),C=r.childNodes.length-1;C>=0;C--)_.e(I).appendChild(f[C]);_.N("enable_shadydom_free_scoped_node_methods")?_.Oi(this.hostElement).appendChild(I):r.appendChild(I)}};
_.l.ready=function(){var r=this;_.Fi(function(){r.initChildrenObserver()},1)};
_.l.detached=function(){this.detachObserver()};
_.l.toggle=function(r,f){this.canToggle&&(this.isToggled=f,_.kA(this.hostElement,"yt-refit"),r&&r.stopPropagation())};
_.l.reset=function(){this.childrenChanged()};
_.l.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.l.computeIsMoreVisible=function(r,f){return r&&!f};
_.l.computeShouldUseNumberOfLines=function(r){try{return!!r&&window.CSS.supports("-webkit-line-clamp","1")}catch(f){}return!1};
_.l.computeIsLessVisible=function(r,f){return r&&f};
_.l.observeCollapsedHeightAndMaxLines=function(){var r=this.collapsedHeight,f=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Zh(this.hostElement,{"--ytd-expander-max-lines":""+f,"--ytd-expander-collapsed-height":""}):_.Zh(this.hostElement,{"--ytd-expander-collapsed-height":r+"px","--ytd-expander-max-lines":""})};
_.l.handleMoreTap=function(r){this.disableToggle||(_.kA(this.hostElement,"yt-expander-more-tapped"),this.toggle(r,!0))};
_.l.handleLessTap=function(r){_.kA(this.hostElement,"yt-expander-less-tapped");this.toggle(r,!1)};
_.l.initChildrenObserver=function(){var r=this;this.observer=new MutationObserver(function(){r.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.l.childrenChanged=function(){var r=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){O6(function(){r.canToggleJobId=0;r.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()};
_.l.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LT("collapsed-changed",this.collapsed))};
_.l.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LT("is-toggled-changed",this.isToggled))};
_.l.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LT("can-toggle-changed",this.canToggle))};
_.OC.Object.defineProperties(Tt.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Tt.prototype.canToggleChangedForBinding=Tt.prototype.canToggleChangedForBinding;Tt.prototype.isToggledChangedForBinding=Tt.prototype.isToggledChangedForBinding;Tt.prototype.collapsedChangedForBinding=Tt.prototype.collapsedChangedForBinding;Tt.prototype.observeCollapsedHeightAndMaxLines=Tt.prototype.observeCollapsedHeightAndMaxLines;Tt.prototype.onIronResize=Tt.prototype.onIronResize;Tt.prototype.reversedChanged=Tt.prototype.reversedChanged;Tt.prototype.toggledChanged=Tt.prototype.toggledChanged;
Tt.prototype.alwaysToggleableChanged=Tt.prototype.alwaysToggleableChanged;_.A([_.J(_.Pq),_.B("design:type",Object)],Tt.prototype,"ironResizableBehavior",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Tt.prototype,"alignAuto",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Tt.prototype,"collapsed",void 0);_.A([_.K(),_.B("design:type",Object)],Tt.prototype,"isToggled",void 0);_.A([_.K(),_.B("design:type",Object)],Tt.prototype,"alwaysCollapsed",void 0);
_.A([_.K(),_.B("design:type",Object)],Tt.prototype,"canToggle",void 0);_.A([_.K(),_.B("design:type",Object)],Tt.prototype,"collapsedHeight",void 0);_.A([_.K(),_.B("design:type",Object)],Tt.prototype,"disableToggle",void 0);_.A([_.K(),_.B("design:type",Object)],Tt.prototype,"alwaysToggleable",void 0);_.A([_.K(),_.B("design:type",Object)],Tt.prototype,"reversed",void 0);_.A([_.K(),_.B("design:type",Number)],Tt.prototype,"maxNumberOfLines",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.B("design:type",Object)],Tt.prototype,"shouldUseNumberOfLines",void 0);_.A([_.K(),_.B("design:type",Object)],Tt.prototype,"recomputeOnResize",void 0);_.A([_.uA("#content"),_.B("design:type",HTMLDivElement)],Tt.prototype,"content",void 0);_.A([_.YN("alwaysToggleable"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tt.prototype,"alwaysToggleableChanged",null);
_.A([_.YN("isToggled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tt.prototype,"toggledChanged",null);_.A([_.R("canToggleJobId"),_.B("design:type",Object),_.B("design:paramtypes",[])],Tt.prototype,"isResetting",null);_.A([_.Bt("reversed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tt.prototype,"reversedChanged",null);
_.A([_.kO("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tt.prototype,"onIronResize",null);_.A([_.Bt("maxNumberOfLines","collapsedHeight"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tt.prototype,"observeCollapsedHeightAndMaxLines",null);_.A([_.Bt("collapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tt.prototype,"collapsedChangedForBinding",null);
_.A([_.Bt("isToggled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tt.prototype,"isToggledChangedForBinding",null);_.A([_.Bt("canToggle"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tt.prototype,"canToggleChangedForBinding",null);Tt=_.A([_.U({disableElementRegistration:!0,is:"ytd-expander"})],Tt);
_.Q(Tt,"ytd-expander",function(){if(us3!==void 0)return us3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return us3=r},{mode:1});var c3=function(){return _.y.apply(this,arguments)||this};
_.t(c3,_.y);c3.prototype.computeIsCarousel=function(r){return!!r.isCarousel};
c3.prototype.observeLightsourcePalette=function(){var r,f=(r=this.data)==null?void 0:r.vibrantsourceColorPaletteData;f&&_.zY(this.hostElement,f)};
c3.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
c3.prototype.observeLightsourcePalette=c3.prototype.observeLightsourcePalette;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],c3.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],c3.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],c3.prototype,"data",void 0);_.A([_.K({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],c3.prototype,"isCarousel",void 0);
_.A([_.Bt("data.vibrantsourceColorPaletteData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],c3.prototype,"observeLightsourcePalette",null);c3=_.A([_.U({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],c3);
_.Q(c3,"ytd-media-upsell-renderer",function(){if(qIs!==void 0)return qIs;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="arrow_drop_down" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return qIs=r},{mode:2});var Df3;var W3=function(){var r=_.y.apply(this,arguments)||this;r.JSC$12723_playerEvents=new Map;r.listeningToPlayer=!1;r.startX=0;r.active=!1;r.shouldShowButtons=_.N("web_buttons_hidden_killswitch");r.isHighlighted=!1;r.useHighlightStyling=_.N("web_enable_deeper_metadata_highlight_styling");r.modern=_.N("kevlar_modern_sd");r.enableProblemWalkthrough=_.N("problem_walkthrough_sd");return r};
_.t(W3,_.y);_.l=W3.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$12723_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.l.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.GF(this,this.onRepeatButtonToggle));_.N("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.GF(this,this.onActiveUpdate))};
_.l.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.GF(this,this.onRepeatButtonToggle));_.N("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.GF(this,this.onActiveUpdate))};
_.l.onDataChanged=function(){this.removePlayerListeners()};
_.l.onColorPaletteChange=function(){var r={},f;if(_.Pt()==="USER_INTERFACE_THEME_DARK"&&((f=this.data)==null?0:f.darkColorPalette)){var I=this.data.darkColorPalette;r["--ytd-macro-markers-list-item-background-color"]=_.g_(this.get("section2Color",I))}else{var C;_.Pt()==="USER_INTERFACE_THEME_LIGHT"&&((C=this.data)==null?0:C.lightColorPalette)&&(I=this.data.lightColorPalette,r["--ytd-macro-markers-list-item-background-color"]=_.g_(this.get("section3Color",I)))}I?(r["--ytd-macro-markers-list-item-title-color"]=
_.g_(this.get("primaryTitleColor",I)),r["--ytd-macro-markers-list-item-secondary-color"]=_.g_(this.get("secondaryTitleColor",I)),r["--ytd-macro-markers-list-item-timestamp-background-color"]=_.g_(this.get("section1Color",I)),this.customButtonProperties={customColors:{color:_.g_(this.get("primaryTitleColor",I))}},this.useColorSampling=!0):(r["--ytd-macro-markers-list-item-background-color"]="initial",r["--ytd-macro-markers-list-item-title-color"]="initial",r["--ytd-macro-markers-list-item-secondary-color"]=
"initial",r["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Zh(this.hostElement,r)};
_.l.onEndpointMouseDown=function(r){this.startX=r.clientX};
_.l.onEndpointClick=function(r){var f=this,I,C,Y;return _.x(function(V){if(V.nextAddress==1){if(f.startX!==r.clientX)return r.preventDefault(),V.return();f.data&&f.ytRendererBehavior.logExplicitClick(f.data);if(!f.seekWithAnimationOnClick)return V.jumpTo(0);if(r.button!==0||r.shiftKey||r.altKey||r.metaKey||r.ctrlKey||_.iB(_.JN(r),f.hostElement,["BUTTON".toString()]))return V.return();r.stopPropagation();r.preventDefault();return f.data?_.b(V,_.Ok().getPlayerPromise(),3):V.return()}I=V.yieldResult;
Y=(C=_.F(f.data.onTap,_.vj))==null?void 0:C.startTimeSeconds;Y!==void 0&&I.seekToTimeWithAnimation(Y*1E3,_.Rr(f.data.title));_.wO(V)})};
_.l.computeLayout=function(r){return r};
_.l.computeIsHighlighted=function(r){return!!r};
_.l.computeCarouselType=function(r){return r};
_.l.hideModernCarousel=function(r){return this.modern&&this.hideThumbnail(r)};
_.l.hideThumbnail=function(r){return this.enableProblemWalkthrough&&r!==null&&r==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.l.onRepeatButtonToggle=function(r){var f=this;r.detail.toggled&&_.Ok().getPlayerPromise().then(function(I){f.ytPlayerListenerBehavior.listenToPlayerEvents(I,f.JSC$12723_playerEvents);f.listeningToPlayer=!0})};
_.l.onLoopRangeChange=function(r){var f=_.e(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(f){var I=f.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",f.polymerController.data);if(I){var C=Number(I.endTimeMs);if(Number(I.startTimeMs)!==(r==null?void 0:r.startTimeMs)||C!==(r==null?void 0:r.endTimeMs))f.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.l.removePlayerListeners=function(){var r=this;this.listeningToPlayer&&_.Ok().getPlayerPromise().then(function(f){r.ytPlayerListenerBehavior.unlistenFromPlayerEvents(f,r.JSC$12723_playerEvents);r.listeningToPlayer=!1})};
_.l.onActiveUpdate=function(r){this.active=r.detail.active};
W3.prototype.onColorPaletteChange=W3.prototype.onColorPaletteChange;W3.prototype.onDataChanged=W3.prototype.onDataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],W3.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],W3.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.iQ.YtPlayerListenerBehavior),_.B("design:type",_.RN)],W3.prototype,"ytPlayerListenerBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],W3.prototype,"data",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],W3.prototype,"useCustomColors",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],W3.prototype,"active",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],W3.prototype,"shouldShowButtons",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.B("design:type",String)],W3.prototype,"layout",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.B("design:type",Object)],W3.prototype,"isHighlighted",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],W3.prototype,"useHighlightStyling",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],W3.prototype,"modern",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],W3.prototype,"enableProblemWalkthrough",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.B("design:type",String)],W3.prototype,"carouselType",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],W3.prototype,"useColorSampling",void 0);_.A([_.K(),_.B("design:type",Boolean)],W3.prototype,"seekWithAnimationOnClick",void 0);_.A([_.K(),_.B("design:type",Object)],W3.prototype,"customButtonProperties",void 0);
_.A([_.uA("#repeat-button"),_.B("design:type",HTMLElement)],W3.prototype,"repeatButton",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],W3.prototype,"onDataChanged",null);_.A([_.Bt("data.lightColorPalette","data.darkColorPalette"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],W3.prototype,"onColorPaletteChange",null);
W3=_.A([_.U({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],W3);
_.Q(W3,"ytd-macro-markers-list-item-renderer",function(){if(Df3!==void 0)return Df3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Df3=r},{mode:1});var rMU;var fI8;var Lc=function(){var r=_.y.apply(this,arguments)||this;r.modernTypography=_.N("web_modern_typography");return r};
_.t(Lc,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Lc.prototype,"ytRendererBehavior",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Lc.prototype,"modernTypography",void 0);_.A([_.K(),_.B("design:type",Object)],Lc.prototype,"data",void 0);Lc=_.A([_.U({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],Lc);
_.Q(Lc,"ytd-title-and-button-list-header-renderer",function(){if(fI8!==void 0)return fI8;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return fI8=r},{mode:1});var II4;var Ce3=new _.Go("BUTTON_RENDERER_WIZ_TOKEN"),YAU=new _.Go("BUTTON_RENDERER_TOKEN");_.mq=_.Hc(function(r){var f=_.a().resolve(_.ZY(Ce3));if(f)return _.p(f,Object.assign({},r));var I=_.a().resolve(YAU);return I?_.p(c8K,null,function(){return _.p(se,null,function(){var C,Y,V,S,h,w,n,d,z,g,X,P;return void I(r.data(),{onButtonClickCallback:r.onButtonClickCallback,shouldShowIcons:(C=r.shouldShowIcons)==null?void 0:C.call(r),icon:(Y=r.icon)==null?void 0:Y.call(r),processAllEndpoints:(V=r.processAllEndpoints)==null?void 0:V.call(r),preventDefault:(S=r.preventDefault)==null?void 0:S.call(r),
stopPropagation:(h=r.stopPropagation)==null?void 0:h.call(r),disableButtonRendererClickHandling:(w=r.disableButtonRendererClickHandling)==null?void 0:w.call(r),className:(n=r.className)==null?void 0:n.call(r),buttonOverrides:(d=r.buttonOverrides)==null?void 0:d.call(r),forceModernIconButton:(z=r.forceModernIconButton)==null?void 0:z.call(r),isSubscribe:(g=r.isSubscribe)==null?void 0:g.call(r),alignByText:(X=r.alignByText)==null?void 0:X.call(r),forceDisabled:(P=r.forceDisabled)==null?void 0:P.call(r)})})}):
_.p(_.B9,null)},"Y");
_.mq.idomCompat=!0;var lI4=_.Hc(function(r){var f=r.data,I=_.JG(r.useSquareAspectRatio,!1);return _.p("dismissed-mini-game-card-view-model",null,_.p(_.M,{cond:function(){var C,Y;return(C=f().responseText)==null?void 0:(Y=C.runs)==null?void 0:Y.length},
then:function(){var C={};return _.p("div",{class:_.qd("yt-mini-game-card-view-model__dismissed-card",(C["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!I()},C["yt-mini-game-card-view-model--dismissed-square-card"]=I,C))},_.p("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.p(_.M,{cond:function(){return f().responseText.runs[0].text},
then:function(Y){return _.p("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:Y},Y)}}),_.p(_.X1,{data:function(){return f().buttons}},{buttonRenderer:_.mq,
buttonViewModel:_.LF})))}}))},"Z");var wnC=_.Hc(function(r){r=_.jS(r,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var f=r.data,I=r.useFullWidth,C=r.isDesktopWeb,Y=r.addSearchResultTopMargin,V=function(){return f().layout},S=function(){return f().title},h=function(){return f().genre},w=function(){return f().channelName},n=function(){return f().image},d=function(){return f().colorPalette},z=function(){return f().actionButton},g=function(){return f().overflowButton},X=function(){return f().avatar},
P=function(){var O={};
O=_.qd("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(O["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return C()},O));
return _.p("div",{class:O},_.p(VIq,{imageData:n,colorPalette:d}),_.p(Ee_,{onTap:function(){return f().onTap},
imageData:n,accessibilityText:function(){return f().accessibilityText},
overlayBadgeText:function(){return f().overlayBadgeText},
iconName:function(){return f().iconName},
unplayableInlinePlaybackIconName:function(){return f().unplayableInlinePlaybackIconName},
isDesktopWeb:C}),_.p(_.M,{cond:function(){return!C()},
then:function(){return _.p(_.B9,null,_.p(SAU,{layout:V,colorPalette:d,isDesktopWeb:C,overflowButton:g,avatar:X,onTap:function(){return f().onTap},
genre:h,title:S,channelName:w,entityRedesignExperiments:function(){return f().entityRedesignExperiments}}),_.p(ei,{actionButton:z}))}}))},W=function(){var O={};
O=_.qd((O["yt-mini-game-card-view-model--search-result-desktop"]=function(){return C()},O["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!C()},O["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return Y()},O));
return _.p("div",{class:O},P(),_.p(x0D,{description:function(){return f().description},
isDesktopWeb:C,title:S,genre:h,onTap:function(){return f().onTap},
actionButton:z,overflowButton:g,avatar:X,channelName:w}))},m=function(){var O=function(){var Z;
return(Z=f().entityRedesignExperiments)==null?void 0:Z.changePlayablesLayoutWithCta},k={};
k=_.qd("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(k["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return O()},k["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return C()},k["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return C()&&f().width===135},k["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return C()},k["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!O()&&C()&&f().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},k["yt-mini-game-card-view-model--big-metadata-font"]=function(){return f().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},k["yt-mini-game-card-view-model--use-full-width"]=function(){return I()},k["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!z()},k));
return _.p("div",{class:k},_.p(_.M,{cond:function(){return O()},
then:function(){return _.p(_.B9,null,_.p(hy_,{entityRedesignExperiments:function(){return f().entityRedesignExperiments},
colorPalette:d,isDesktopWeb:C,onTap:function(){return f().onTap},
accessibilityText:function(){return f().accessibilityText},
overlayBadgeText:function(){return f().overlayBadgeText},
iconName:function(){return f().iconName},
unplayableInlinePlaybackIconName:function(){return f().unplayableInlinePlaybackIconName},
actionButton:z,imageData:n}),_.p(SAU,{layout:V,colorPalette:d,isDesktopWeb:C,overflowButton:g,avatar:X,onTap:function(){return f().onTap},
genre:h,title:S,channelName:w,entityRedesignExperiments:function(){return f().entityRedesignExperiments}}),_.p(_.M,{cond:function(){return!!O()===!1&&z()},
then:function(){return _.p(ei,{actionButton:z})}}))},
else:function(){return _.p(_.B9,null,_.p(VIq,{imageData:n,colorPalette:d}),_.p(Ee_,{onTap:function(){return f().onTap},
imageData:n,accessibilityText:function(){return f().accessibilityText},
overlayBadgeText:function(){return f().overlayBadgeText},
iconName:function(){return f().iconName},
unplayableInlinePlaybackIconName:function(){return f().unplayableInlinePlaybackIconName},
isDesktopWeb:C}),_.p(SAU,{layout:V,colorPalette:d,isDesktopWeb:C,overflowButton:g,avatar:X,onTap:function(){return f().onTap},
genre:h,title:S,channelName:w,entityRedesignExperiments:function(){return f().entityRedesignExperiments}}),_.p(ei,{actionButton:z}))}}))},v=function(){var O={};
O=_.qd("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(O["yt-mini-game-card-view-model--square-card-desktop"]=function(){return C()},O["yt-mini-game-card-view-model--use-full-width"]=function(){return I()},O));
return _.p("div",{class:O},_.p(Ee_,{onTap:function(){return f().onTap},
imageData:n,accessibilityText:function(){return f().accessibilityText},
overlayBadgeText:function(){return f().overlayBadgeText},
iconName:function(){return f().iconName},
unplayableInlinePlaybackIconName:function(){return f().unplayableInlinePlaybackIconName},
isDesktopWeb:C}),_.p(SAU,{layout:V,colorPalette:d,isDesktopWeb:C,overflowButton:g,avatar:X,onTap:function(){return f().onTap},
genre:h,title:S,channelName:w,entityRedesignExperiments:function(){return f().entityRedesignExperiments}}))};
return _.p("mini-game-card-view-model",{class:r.className},_.p(_.MC,null,_.p(_.nz,{when:function(){return V()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return m()}),_.p(_.nz,{when:function(){return V()==="MINI_APP_LAYOUT_SQUARE"}},function(){return v()}),_.p(_.nz,{when:function(){return V()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return W()})))},"$");
wnC.idomCompat=!0;var ei=_.Hc(function(r){var f=_.JG(r.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.p(_.X1,{data:r.actionButton},{buttonViewModel:function(I){return _.p("div",{class:f},_.p(_.LF,{data:I.data}))}})},"aa"),Ee_=_.Hc(function(r){var f=r.onTap;
var I=r.imageData;var C=r.accessibilityText;var Y=r.overlayBadgeText;var V=r.iconName;var S=r.unplayableInlinePlaybackIconName;r=r.isDesktopWeb;return _.p(_.h8,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:f},_.p(_.J3,{data:I,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(C==null?void 0:C())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.p(b48,{overlayBadgeText:Y,iconName:V,unplayableInlinePlaybackIconName:S,isDesktopWeb:r}))},"ba"),b48=_.Hc(function(r){var f=r.overlayBadgeText;
var I=r.iconName;var C=r.unplayableInlinePlaybackIconName;var Y=r.isDesktopWeb;return _.p("div",{class:"yt-mini-game-card-view-model__badge-container"},_.p(_.M,{cond:I,then:function(V){return _.p("div",{class:"yt-mini-game-card-view-model__badge"},_.p("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.p(_.V2,{icon:V,className:"yt-mini-game-card-view-model__icon"}),_.p("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},f)))}}),_.p(_.M,{cond:function(){return!I()&&
f()},
then:function(){return _.p("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},f)}}),_.p(_.M,{cond:function(){return C()&&Y()},
then:function(){return _.p("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.p(_.V2,{icon:C,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ca"),VIq=_.Hc(function(r){var f=r.colorPalette;
var I=r.imageData;var C=function(){return f().vibrantColorPalette?f().vibrantColorPalette.section2Color:f().sectionTwoColor};
return _.p(_.B9,null,_.p("div",{class:"yt-mini-game-card-view-model__background-base",style:_.lB({"background-color":function(){return ab(C(),"1")}})}),_.p("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.lB({"background-image":function(){return"url("+I().sources[0].url+")"}})}),_.p("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.lB({background:function(){return"linear-gradient(180deg,\n    "+ab(C(),".8")+" 0%,\n    "+ab(C(),".4")+" 25%,\n    "+ab(f().vibrantColorPalette?f().vibrantColorPalette.section4Color:f().sectionFourColor,".8")+" 100%)"}})}))},"da"),SAU=_.Hc(function(r){var f=r.layout;
var I=r.colorPalette;var C=r.overflowButton;var Y=r.avatar;var V=r.onTap;var S=r.title;var h=r.channelName;var w=r.entityRedesignExperiments;var n=r.genre;var d=function(){var g;return f()!=="MINI_APP_LAYOUT_SQUARE"&&((g=I())==null?0:g.textPrimaryColor)?"color: "+ab(I().textPrimaryColor,".7"):""},z=function(){var g;
return w==null?void 0:(g=w())==null?void 0:g.changePlayablesLayoutWithCta};
return _.p("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.p(_.M,{cond:Y,then:function(){return _.p("div",{class:"yt-mini-game-card-view-model__avatar"},_.p(_.X1,{data:Y},{avatarViewModel:_.$U}))}}),_.p(_.h8,{command:V,
className:"yt-mini-game-card-view-model__metadata-details"},_.p("h3",{class:"yt-mini-game-card-view-model__title",title:S},S),_.p(_.M,{cond:Y,then:function(){return _.p("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.p("span",{class:"yt-mini-game-card-view-model__genre",title:h,style:d},h),_.p("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:d},n))},
else:function(){return _.p(_.M,{cond:z,then:function(){return _.p("span",{class:"yt-mini-game-card-view-model__genre",title:n},n)},
else:function(){return _.p("span",{class:"yt-mini-game-card-view-model__genre",title:n,style:d},n)}})}})),_.p("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.p(_.X1,{data:C},{buttonViewModel:function(g){var X=g.data;
return _.p(_.LF,{data:function(){return Object.assign({},X(),{customFontColor:z()?void 0:X().customFontColor})}})}})))},"ea"),hy_=_.Hc(function(r){var f=r.entityRedesignExperiments;
var I=r.colorPalette;var C=r.isDesktopWeb;var Y=r.onTap;var V=r.accessibilityText;var S=r.overlayBadgeText;var h=r.iconName;var w=r.unplayableInlinePlaybackIconName;var n=r.actionButton;r=r.imageData;var d=function(){var z;return f==null?void 0:(z=f())==null?void 0:z.changePlayablesLayoutWithCta};
return _.p("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.p(VIq,{imageData:r,colorPalette:I}),_.p(Ee_,{onTap:Y,imageData:r,accessibilityText:V,overlayBadgeText:S,iconName:h,unplayableInlinePlaybackIconName:w,isDesktopWeb:C}),_.p(_.M,{cond:function(){return(d==null?void 0:d())&&(n==null?void 0:n())},
then:function(){return _.p(ei,{actionButton:n})}}))},"fa"),x0D=_.Hc(function(r){var f=r.description;
var I=r.isDesktopWeb;var C=r.title;var Y=r.genre;var V=r.onTap;var S=r.actionButton;var h=r.overflowButton;var w=r.avatar;r=r.channelName;var n={};n=_.qd("yt-mini-game-card-view-model--search-result-metadata-wrapper",(n["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=I,n["yt-mini-game-card-view-model--show-unplayable-on-hover"]=I,n["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!I()},n));
var d={};d=_.qd("yt-mini-game-card-view-model__search-result-info-row",(d["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!I()},d));
return _.p("div",{class:n},_.p("div",{class:d},_.p(_.h8,{command:V,className:"yt-mini-game-card-view-model__metadata-details"},_.p("h3",{class:"yt-mini-game-card-view-model__title",title:C},C),_.p("span",{class:"yt-mini-game-card-view-model__genre",title:Y},Y)),_.p(ei,{actionButton:S,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.p("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.p(_.X1,{data:h},{buttonViewModel:_.LF}))),_.p("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.p("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.p("div",{class:"yt-mini-game-card-view-model__avatar"},_.p(_.X1,{data:w},{avatarViewModel:function(z){var g=z.data;return _.p(_.$U,{data:function(){return Object.assign({},g(),{avatarImageSize:I()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.p(_.h8,{command:V,
className:"yt-mini-game-card-view-model__description"},_.p("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},r)),_.p(_.h8,{command:V,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.p("div",null)))),_.p(_.M,{cond:I,then:function(){return _.p(_.h8,{command:V,className:"yt-mini-game-card-view-model__description"},f)}}))},"ga");_.Kv(wnC,"mini-game-card-view-model",{props:{data:_.jv,className:_.jv,useFullWidth:_.jv,isDesktopWeb:_.jv,addSearchResultTopMargin:_.jv}});_.Kv(lI4,"dismissed-mini-game-card-view-model",{props:{data:_.jv,useSquareAspectRatio:_.jv}});var Jc=function(){var r=_.y.apply(this,arguments)||this;r.isSearch=!1;r.isRichGrid=!1;return r};
_.t(Jc,_.y);_.l=Jc.prototype;_.l.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.l.dismissibleItemOnYtServiceRequestSent=function(r,f){f.actions&&this.dismissibleItemProcessActions(r,f.actions)};
_.l.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.l.dataChanged=function(){this.dismissibleItemReset()};
_.l.dismissibleItemProcessActions=function(r,f){for(var I=0;I<f.length;I++){var C=f[I];_.F(C,_.da)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.F(C,_.da)),r.stopPropagation())}};
_.l.dismissibleItemHandleReplaceEnclosingAction=function(r){this.dismissedRenderer=r.item;this.isDismissed=!0};
_.l.experimentalPropertiesChanged=function(){_.N("kevlar_mini_game_card_c3po_to_wiz")||this.ytIdomTemplatingBehavior.debounceRender()};
_.l.renderIdom=function(){if(!_.N("kevlar_mini_game_card_c3po_to_wiz")&&this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var r=!!this.useSquareAspectRatio;mv(lI4)({data:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:r===void 0?!1:r})}else mv(wnC)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0})};
_.OC.Object.defineProperties(Jc.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){if(!_.N("kevlar_mini_game_card_c3po_to_wiz"))return!1;var r;return!!this.data&&!((r=this.dismissedRenderer)==null?0:r.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){if(!_.N("kevlar_mini_game_card_c3po_to_wiz"))return!1;var r;return!((r=this.dismissedRenderer)==null||!r.notificationMultiActionRenderer)}}});
Jc.prototype.experimentalPropertiesChanged=Jc.prototype.experimentalPropertiesChanged;Jc.prototype.dataChanged=Jc.prototype.dataChanged;Jc.prototype.dismissibleItemOnRequestSent=Jc.prototype.dismissibleItemOnRequestSent;Jc.prototype.dismissibleItemOnYtServiceRequestSent=Jc.prototype.dismissibleItemOnYtServiceRequestSent;_.A([_.J(_.N("kevlar_mini_game_card_c3po_to_wiz")?{}:OPC),_.B("design:type",Object)],Jc.prototype,"ytIdomTemplatingBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],Jc.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Jc.prototype,"isSearch",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Jc.prototype,"isDismissed",void 0);_.A([_.K(),_.B("design:type",Object)],Jc.prototype,"dismissedRenderer",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Jc.prototype,"isRichGrid",void 0);
_.A([_.R("data.layout"),_.B("design:type",Object),_.B("design:paramtypes",[])],Jc.prototype,"useSquareAspectRatio",null);_.A([_.R("data","dismissedRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],Jc.prototype,"showCard",null);_.A([_.R("data","dismissedRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],Jc.prototype,"showDismissed",null);
_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],Jc.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.A([_.kO("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Jc.prototype,"dismissibleItemOnRequestSent",null);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Jc.prototype,"dataChanged",null);_.A([_.Bt("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Jc.prototype,"experimentalPropertiesChanged",null);Jc=_.A([_.zX({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],Jc);
_.Q(Jc,"ytd-mini-game-card-view-model",function(){if(II4!==void 0)return II4;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return II4=r},{mode:_.QQ("kevlar_poly_si_batch_j081")?1:2});var pnV;var ne3;var ji=function(){return _.o6.apply(this,arguments)||this};
_.t(ji,_.o6);ji.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
ji.prototype.getContinuationUrl=function(r){var f={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(f.itct=this.data.clickTrackingParams);return _.UQ(r,f)};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ji.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ji.prototype,"data",void 0);ji=_.A([_.zX({is:"yt-reload-continuation",noInjection:!0})],ji);var d04;var zyU;var H3=function(){var r=_.y.apply(this,arguments)||this;r.notificationData={};return r};
_.t(H3,_.y);_.l=H3.prototype;_.l.isMenuExpanded=function(r){return r&&r.length<=1?"undefined":"false"};
_.l.dataChanged_=function(){this.selected=void 0;var r=this.computeSelectedIndex_(this.data);r>=0&&(this.selected=r);r=this.data&&this.data.length>1;_.ob(this.hostElement,"has-items",r);_.e(this.hostElement).querySelector("#label").tabIndex=r?0:-1};
_.l.onDropdownOpen=function(){var r=_.t1();if(this.parentTrackingParams&&this.data){var f=_.VH(this.parentTrackingParams);this.data.forEach(function(I){r&&f&&I.trackingParams&&(I=_.VH(I.trackingParams),_.mw(r,f,I),_.j_(r,[I]))})}else this.parentTrackingParams||_.t7(new _.nf("No parent tracking params passed in for yt-dropdown-menu."))};
_.l.hasNotification=function(r){var f;if(r.targetId&&((f=this.notificationData)==null?0:f.targetId)){var I;return r.targetId===((I=this.notificationData)==null?void 0:I.targetId)}};
_.l.computeSelectedIndex_=function(r){if(r)for(var f=0,I=r.length;f<I;f++)if(r[f].selected)return f;return-1};
_.l.computeLabel_=function(r){return this.data&&r!=void 0?this.data[r].title:""};
_.l.computeShowIcon_=function(r,f){return!f&&!!r};
_.l.computeVerticalOffset_=function(r){return r?36:0};
_.l.computeEndpoint_=function(r){return r.endpoint||r.navigationEndpoint};
_.l.onLabelClick_=function(r){this.data&&this.data.length<=1?r.stopPropagation():this.menuExpanded="true"};
_.l.onIronActivate_=function(r){r=r.detail.item;var f=_.e(this.hostElement).querySelector("#repeat").itemForElement(r);if(f&&f.trackingParams){var I=_.t1(),C=_.VH(f.trackingParams);I&&_.im(I,C)}if(f&&f.serviceEndpoint)_.N("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(f.serviceEndpoint):_.Do(this.hostElement,[f.serviceEndpoint]),_.kA(this.hostElement,"yt-playlist-reloading");else a:{if((f=r.querySelector("yt-supported-renderers"))&&(f=
f.rendererElement)&&f.is=="yt-reload-continuation"){f.trigger();break a}(r=r.querySelector("yt-reload-continuation"))&&r.trigger()}};
_.l.onTap_=function(r){r.preventDefault()};
_.l.onItemTap_=function(r){this.ytEndpointBehavior.onEndpointTap_(r)};
_.l.onLinkFocus_=function(r){try{var f=r.target}catch(C){}if(f){var I=f.querySelector("tp-yt-paper-item");I&&_.Pc(this,"focus",function(){I.focus()})}};
_.l.onMenuClose_=function(){this.menuExpanded="false"};
_.l.isLabelIconActive_=function(r){return r==="true"};
_.l.computeHasSubtitle_=function(r){return!!r};
_.l.computeHrefForItem_=function(r){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(r))};
_.l.updateSelectedFromBinding=function(r){this.selected=r.detail.value};
H3.prototype.onMenuClose_=H3.prototype.onMenuClose_;H3.prototype.onTap_=H3.prototype.onTap_;H3.prototype.onIronActivate_=H3.prototype.onIronActivate_;H3.prototype.onDropdownOpen=H3.prototype.onDropdownOpen;H3.prototype.dataChanged_=H3.prototype.dataChanged_;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],H3.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.DG.YtEndpointBehavior),_.B("design:type",Object)],H3.prototype,"ytEndpointBehavior",void 0);
_.A([_.K(),_.B("design:type",Array)],H3.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],H3.prototype,"parentTrackingParams",void 0);_.A([_.K(),_.B("design:type",Object)],H3.prototype,"selected",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],H3.prototype,"useLabel",void 0);_.A([_.K(),_.B("design:type",String)],H3.prototype,"icon",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],H3.prototype,"iconLabel",void 0);
_.A([_.K(),_.B("design:type",String)],H3.prototype,"ariaLabel",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],H3.prototype,"disabled",void 0);_.A([_.K({computed:"isMenuExpanded(data)"}),_.B("design:type",String)],H3.prototype,"menuExpanded",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],H3.prototype,"closeOnActivate",void 0);_.A([_.K({reflectToAttribute:!0,value:_.N("web_modern_buttons")}),_.B("design:type",Boolean)],H3.prototype,"modernButtons",void 0);
_.A([_.K(),_.B("design:type",Object)],H3.prototype,"notificationData",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],H3.prototype,"dataChanged_",null);_.A([_.kO("paper-dropdown-open"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],H3.prototype,"onDropdownOpen",null);
_.A([_.kO("iron-activate"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],H3.prototype,"onIronActivate_",null);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],H3.prototype,"onTap_",null);_.A([_.kO("iron-overlay-closed"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],H3.prototype,"onMenuClose_",null);
H3=_.A([_.zX({is:"yt-dropdown-menu",disableElementRegistration:!0})],H3);
_.Q(H3,"yt-dropdown-menu",function(){if(zyU===void 0){var r=document.createElement("template");_.c(r,'\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$="[[ariaLabel]]" 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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;d04===void 0&&(d04=document.createElement("template"));var C=d04;I.call(f,C.content.cloneNode(!0),r.content.firstChild);zyU=r}r=zyU;return r},{mode:2});var ic=function(){var r=_.y.apply(this,arguments)||this;r.hasNotification=!1;return r};
_.t(ic,_.y);ic.prototype.computeId=function(r){return r};
ic.prototype.computeHorizontalAlign=function(r){return r?"right":"left"};
ic.prototype.computeAccessibilityLabel=function(r){var f,I;return((f=r.accessibility)==null?void 0:(I=f.accessibilityData)==null?void 0:I.label)||null};
ic.prototype.notificationDataChanged=function(){var r;this.hasNotification=!!this.notificationData&&!((r=this.data)==null?0:r.icon)};
ic.prototype.notificationDataChanged=ic.prototype.notificationDataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ic.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.PD.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],ic.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ic.prototype,"data",void 0);_.A([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.B("design:type",String)],ic.prototype,"id",void 0);
_.A([_.K({value:!1}),_.B("design:type",Boolean)],ic.prototype,"isRightAligned",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],ic.prototype,"disabled",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],ic.prototype,"closeOnActivate",void 0);_.A([_.K(),_.B("design:type",Object)],ic.prototype,"notificationData",void 0);_.A([_.K(),_.B("design:type",Object)],ic.prototype,"hasNotification",void 0);
_.A([_.Bt("notificationData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ic.prototype,"notificationDataChanged",null);ic=_.A([_.zX({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],ic);
_.Q(ic,"yt-sort-filter-sub-menu-renderer",function(){if(ne3===void 0){var r=document.createElement("template");_.c(r,'\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-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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;pnV===void 0&&(pnV=document.createElement("template"));var C=pnV;I.call(f,C.content.cloneNode(!0),r.content.firstChild);ne3=r}r=ne3;return r},{mode:2});_.GL(XnR);
var MIV=_.Hc(function(r){var f=r.children;var I=r.className;var C=r.style;var Y=r.role;var V=r.ariaSelected;var S=r.ariaLabel;var h=r.ariaHidden;var w=r.ariaLabelledby;var n=r.ariaDescribedby;var d=r.command;var z=r.elementsCommand;var g=r.forceNewState;var X=r.tabIdentifier;var P=r.target;var W=r.tabIndex;var m=r.stopPropagation;r=_.hR(function(){var v=_.Nd({innertubeCommand:d==null?void 0:d(),elementsCommand:z==null?void 0:z(),forceNewState:g==null?void 0:g(),stopPropagation:(m==null?void 0:m())!==
!1});v||(v={});v["aria-hidden$"]=h==null?void 0:h();var O;v.tabindex$=(O=W==null?void 0:W())!=null?O:v.tabindex$;var k;v["force-new-state$"]=(k=g==null?void 0:g())!=null?k:v["force-new-state$"];var Z;v.role$=(Z=Y==null?void 0:Y())!=null?Z:v.role$;var Cw;v["aria-hidden$"]=(Cw=h==null?void 0:h())!=null?Cw:v["aria-hidden$"];var rR;v.target$=(rR=P==null?void 0:P())!=null?rR:v.target$;return v},void 0,"SU0Mnc");
return _.p(_.h8,{aTagConfig:r,className:I,style:C,ariaLabel:S,ariaLabelledby:w,ariaDescribedby:n,ariaSelected:V,tabIdentifier:X},f)},"ha");var Ncl=_.N("kevlar_modern_sd")?"yt-spec-place-data-view-model-shape__thumbnail-round":"",geX=_.rW($0B);_.GL($0B);_.Kv(geX,"place-data-view-model",{props:{data:_.jv}});var aI4=new _.Go("INLINE_PLAYBACK_HOOK_TOKEN");var Rym=function(r){this.setActiveSlideIndex=r;this.jobIds=[];this.isSlideshowPlaying=!1},K1K=function(r){if(r.isSlideshowPlaying){r.isSlideshowPlaying=!1;
for(var f=r.jobIds,I=0,C=f.length;I<C;I++)_.F_.cancelJob(f[I]);r.jobIds.length=0}},vec=function(r,f){r.isSlideshowPlaying||(r.isSlideshowPlaying=!0,XnD(r),Ncg(r,f,0))},XnD=function(r){_.oB(_.F_,function(){r.setActiveSlideIndex(0)},1)},Ncg=function(r,f,I){r.jobIds.push(_.oB(_.F_,function(){var C=I<f-1?I+1:0;
r.setActiveSlideIndex(C);Ncg(r,f,C)},1800))};var L1B=new _.Go("IMAGE_ON_LOAD_HANDLER_TOKEN");var $04=_.Hc(function(r){return _.p("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.p(_.M,{cond:function(){var f;return(f=r.data())==null?void 0:f.thumbnail},
then:function(f){return _.p(_.J3,{data:f,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ia");_.Rt=_.Hc(function(r){var f=r.data;var I=r.lockupExperiments;r={};return _.p("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.p("div",{class:_.qd("ytThumbnailOverlayButtonViewModelButton",(r.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var C;return I&&((C=I())==null?void 0:C.useLegacySizedIconButton)},r))},_.p(_.X1,{data:function(){return f().overlayButton}},{buttonViewModel:function(C){return _.p(_.LF,{data:C.data,
buttonOverrides:function(){var Y;return I&&((Y=I())==null?0:Y.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ja");
_.Rt.idomCompat=!0;var F1s=_.Hc(function(r){var f=_.IC(function(I){I.preventDefault();return!1});
return _.p("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":f},_.p(_.X1,{data:function(){return r.data().buttons}},{toggleButtonViewModel:function(I){return _.p("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.p(_.F1,{data:I.data}))}}))},"ka");
F1s.idomCompat=!0;var Peg=_.Hc(function(r){var f=function(){var I;return((I=_.F(r.data().rendererContext,_.U0))==null?void 0:I.label)||""};
return _.p("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.p(_.M,{cond:function(){return r.data().image},
then:function(){return _.p("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.p(_.J3,{data:function(){return r.data().image},
alt:f}))}}),_.p(_.M,{cond:function(){return r.data().text},
then:function(){return _.p("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return r.data().text})}}))},"la");var eyE=_.zk({thumbnailOverlayTitleViewModel:HOB,thumbnailOverlayBadgeViewModel:RZX,thumbnailBottomOverlayViewModel:TZq,thumbnailOverlayFullViewModel:Peg,thumbnailOverlayButtonViewModel:_.Rt}),JMq=_.zk({thumbnailHoverOverlayViewModel:WpV,thumbnailHoverOverlayToggleActionsViewModel:F1s}),jqu=_.zk({animatedThumbnailOverlayViewModel:$04});_.GL(H4w);var tI8,Tc_;tI8=_.Hc(function(r){var f=[],I=function(){var g,X;return vl((g=r.width)==null?void 0:g.call(r),(X=r.height)==null?void 0:X.call(r))},C=_.a().resolve(_.ZY(L1B)),Y=_.yy(function(){f.push("elRef.value set");
var g;(g=r.playbackRef)==null||g.call(r,{thumbnailElRef:Y,thumbnail:r.data().image,thumbnailOverlays:r.data().overlays,thumbnailSize:I()})});
_.$E(function(){f.push("onInit");_.$L(function(){f.push("onCleanup")})});
var V=_.XA(Pel),S=function(){var g,X;return(X=(g=r.aspectRatio)==null?void 0:g.call(r))!=null?X:0},h=function(){return(r.data().image?_.LeK(r.data().image):S())<=1&&S()===0},w=function(){return h()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},n=function(){Y.value||_.t7(new _.nf("Thumbnail elRef.value is null",f.join("\n")));
C&&Y.value&&C(Y.value)},d=function(){var g,X;
return((g=r.hovered)==null?void 0:g.call(r))&&I()!=="large"&&((X=r.data().overlays)==null?void 0:X.some(function(P){return _.F(P,m0l)}))},z={};
return _.p("yt-thumbnail-view-model",{class:_.qd("yt-thumbnail-view-model",r.className,function(){return i4K(S())},function(){var g,X;
a:{var P=I(),W=(g=r.disableRounding)==null?void 0:g.call(r);g=(X=r.isClip)==null?void 0:X.call(r);if(!W&&!g)switch(P){case "large":X="yt-thumbnail-view-model--large";break a;case "small":X="yt-thumbnail-view-model--small";break a;default:X="yt-thumbnail-view-model--medium";break a}X=void 0}return X},(z["yt-thumbnail-view-model--cinematic"]=h,z)),
style:_.lB({"background-color":function(){var g,X=h()?(g=r.data().backgroundColor)==null?void 0:g.lightTheme:void 0;return X?ab(X,"1"):void 0}}),
el:Y},_.p(_.M,{cond:h,then:function(){return _.p("div",{class:"yt-thumbnail-view-model__blurred-image"},_.p(_.J3,{data:function(){return r.data().image},
alt:"",contentMode:w,targetWidth:r.width,onload:n}))}}),_.p("div",{class:"yt-thumbnail-view-model__image"},_.p(_.J3,{data:function(){return r.data().image},
alt:"",contentMode:w,targetWidth:r.width,onload:n}),null),_.p(_.X1,{data:function(){return d()?void 0:r.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:iOU,thumbnailOverlayBadgeViewModel:function(g){return _.p(RZX,{data:g.data,thumbnailSize:I,isClip:r.isClip})},
thumbnailBottomOverlayViewModel:TZq,thumbnailOverlayFullViewModel:Peg,thumbnailOverlayButtonViewModel:function(g){return _.p(_.Rt,{data:g.data,lockupExperiments:r.lockupExperiments})}}),_.p(_.X1,{data:function(){var g;
return((g=r.hovered)==null?0:g.call(r))?r.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(g){return _.p(Lpq,{data:g.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:F1s}),_.p(_.X1,{data:function(){var g;return((g=r.hovered)==null?0:g.call(r))&&V()?r.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:$04}),_.p(_.M,{cond:r.isClip,then:function(){return cMd()}}))},"ma");
Tc_=_.N("web_enable_sink_lockups_batch")?tI8:H4w;_.v3=_.N("web_enable_sink_lockups_batch")?tI8:_.rW(Tc_,{callbacks:{playbackRef:!0}});tI8.idomCompat={callbacks:{playbackRef:!0}};var yMK=_.zk({thumbnailViewModel:Tc_});_.GL(U0u);var cMU=_.Hc(function(r){var f=_.E(_.ld(-1,void 0,"GEkecf")),I=f.next().value,C=f.next().value;_.$E(function(){var Y=new Rym(C);vec(Y,r.data().thumbnails.length);_.$L(function(){K1K(Y)})});
return _.p("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.p(_.X1,{data:function(){return r.data().thumbnails}},{thumbnailViewModel:function(Y,V){return _.p("div",{class:function(){var S=!r.data().primaryThumbnail,h=V(),w=I(),n=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
S&&h===0&&n.push("yt-collection-thumbnail-slideshow--first-slide");h<=w&&n.push("yt-collection-thumbnail-slideshow--show-slide");return n.join(" ")}},_.p(_.v3,{data:Y.data,
disableRounding:r.disableRounding}))}}))},"na"),AMU=_.N("web_enable_sink_lockups_batch")?cMU:U0u,W1_=_.N("web_enable_sink_lockups_batch")?cMU:_.rW(U0u);
cMU.idomCompat=!0;var sqK=new _.Go("DWELL_DETECTOR_REGISTRY_TOKEN");var Qql=_.zk({thumbnailViewModel:Tc_});_.GL(Z4U);var m0g=_.Hc(function(r){var f=oew(r.triggeringElement),I=function(){return!!r.data().primaryThumbnail};
return _.p("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.p(L14,{stackEnabled:I,thumbnailSize:function(){var C,Y;return vl((C=r.width)==null?void 0:C.call(r),(Y=r.height)==null?void 0:Y.call(r))},
doubleStack:r.doubleStack,stackColor:function(){return r.data().stackColor}},_.p("div",null,_.p(_.X1,{data:function(){return r.data().primaryThumbnail}},{thumbnailViewModel:function(C){var Y={};
return _.p(_.v3,{data:C.data,width:r.width,height:r.height,aspectRatio:r.aspectRatio,disableRounding:r.disableRounding,className:_.qd((Y["yt-collection-thumbnail-view-model--has-stacks"]=I,Y)),hovered:r.hovered,playbackRef:r.playbackRef})}}),_.p(_.M,{cond:function(){var C;
return f()&&((C=r.data().thumbnails)==null?void 0:C.length)},
then:function(){return _.p("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.p(W1_,{data:r.data,disableRounding:function(){return!I()}}))}}))))},"oa"),eyq=_.N("web_enable_sink_lockups_batch")?m0g:_.rW(Z4U,{callbacks:{playbackRef:!0}});
m0g.idomCompat={callbacks:{playbackRef:!0}};
var L14=_.Hc(function(r){var f=r.children;var I=r.stackEnabled;var C=r.thumbnailSize;var Y=r.doubleStack;var V=r.stackColor;var S,h=(S=_.a().resolve(_.ZY(_.cI)))==null?void 0:S();return _.p(_.M,{cond:I,then:function(){return _.p(IuD,{data:function(){var w,n;return{experimentEnabled:!0,thumbnailSize:C(),doubleStack:Y==null?void 0:Y(),color:h?V==null?void 0:(w=V())==null?void 0:w.darkTheme:V==null?void 0:(n=V())==null?void 0:n.lightTheme,enableResponsiveMode:!1}}},f)},
else:function(){return f}})},"pa");var JMC=new _.Go("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var yd;_.Kc={calledOnce:!0,state:"visible"};yd={calledOnce:!0,state:"hidden"};_.Uq=_.Hc(function(r){var f=r.data;var I=r.customCommandResolver;var C=r.className;var Y=r.delayedClassName;r=r.animationEntityKey;var V=_.yy(),S=_.JG(r,""),h=_.VS(Zgl,S),w=function(){var rR,EP;return(EP=(rR=h())==null?void 0:rR.value)!=null?EP:!1},n=function(){_.eS(_.hv("booleanEntity",S(),{key:S(),
value:!0}));v=void 0};
r=_.E(_.YZ(w));var d=r.next().value,z=r.next().value;r=_.E(_.YZ(w));var g=r.next().value,X=r.next().value;r=_.E(_.YZ(function(){var rR;return w()?(rR=f().styleTransitionConfig)==null?void 0:rR.destinationStyle:void 0}));
var P=r.next().value,W=r.next().value,m=function(){var rR=Object.assign({},f(),P()&&{style:P()}),EP,Pu,Wu=rR.label,cu=(EP=rR.interaction)==null?void 0:(Pu=EP.accessibility)==null?void 0:Pu.label;EP=rR.iconImage?rR.label&&rR.label.content?rR.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:Wu,accessibilityLabel:cu,style:qAw(rR.style),type:uUc(rR.style),state:"active",size:Bcd(rR.size),iconPosition:EP,disabled:!1,aTagConfig:klB(rR,I)}},v;
_.ZW(V,{visibilityCallback:function(rR){var EP,Pu=(EP=f().interaction)==null?void 0:EP.onFirstVisible;rR&&Pu&&_.F2(Pu)},
showOption:_.Kc});var O=function(){return Ek(m(),!!f().iconImage)};
C=_.qd(function(){return"ytwAdButtonViewModelHost"},function(){return f().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var rR=!!f().delayedAppearanceConfig,EP=d();
return rR?EP?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var rR=!!f().delayedAppearanceConfig,EP=g();
return rR?EP?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!f().delayedAppearanceConfig||d()?Y==null?void 0:Y():""},C!=null?C:"");
var k=function(){var rR,EP=(rR=f().delayedAppearanceConfig)==null?void 0:rR.delayedInvisibleSeconds;EP&&(v=_.pF(_.F_,function(){z(!0);Z()},EP*1E3))},Z=function(){var rR,EP=(rR=f().delayedAppearanceConfig)==null?void 0:rR.delayedVisibleSeconds;
EP&&(v=_.pF(_.F_,function(){X(!0);Cw()},EP*1E3))},Cw=function(){var rR,EP=(rR=f().styleTransitionConfig)==null?void 0:rR.styleTransitionSeconds,Pu,Wu=(Pu=f().styleTransitionConfig)==null?void 0:Pu.destinationStyle;
EP&&Wu?v=_.pF(_.F_,function(){W(Wu);n()},EP*1E3):n()};
_.$E(function(){var rR;((rR=f().delayedAppearanceConfig)==null?0:rR.transitionDurationSeconds)&&V.value.style.setProperty("transition-duration",f().delayedAppearanceConfig.transitionDurationSeconds+"s");k()});
_.$L(function(){v&&_.F_.cancelJob(v)});
return _.p("ad-button-view-model",{class:C,el:V},_.p(_.M,{cond:m,then:function(){return _.p(k4,{data:m,icon:function(){return _.p(_.M,{cond:function(){return f().iconImage},
then:function(rR){return _.p(_.J3,{data:rR,alt:"",targetWidth:O,targetHeight:O,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"qa");var jq4=_.Hc(function(r){var f=r.data;r=_.yy();_.ZW(r,{visibilityCallback:function(I){var C,Y=(C=f().interaction)==null?void 0:C.onFirstVisible;I&&Y&&_.F2(Y)},
showOption:_.Kc});return _.p("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:r},_.p("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.p(_.X1,{data:function(){return f().secondaryAdButton}},{adButtonViewModel:function(I){return _.p(_.Uq,{data:I.data})}})),_.p("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.p(_.X1,{data:function(){return f().primaryAdButton}},{adButtonViewModel:function(I){return _.p(_.Uq,{data:I.data})}})))},"ra");var H48=_.Hc(function(r){var f=function(){var I;return((I=r.data())==null?void 0:I.answers)||[]};
return _.p("yt-survey-icons",{class:"ytSurveyIconsHost"},_.p("div",{class:"ytSurveyIconsHeader"},_.p("div",{class:"ytSurveyIconsTitle"},function(){var I;return(I=r.data())==null?void 0:I.text}),_.p("div",null,_.p(k4,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var I;(I=r.onDismiss)==null||I.call(r)}}},
iconName:"DISMISSAL"}))),_.p("div",null,_.p("div",{class:"ytSurveyIconsAnswers"},_.p(_.pz,{each:function(){return f()},
keyBy:"INDEX"},function(I,C){return _.p("div",null,_.p(k4,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var Y;(Y=r.onSelect)==null||Y.call(r,I(),C)}}},
icon:function(){return _.p(_.V2,{icon:function(){var Y,V;return(Y=I())==null?void 0:(V=Y.icon)==null?void 0:V.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.p("div",{class:"ytSurveyIconsAnswersText"},_.p("div",null,function(){return f().length?f()[0].text:""}),_.p("div",null,function(){return f().length?f()[f().length-1].text:""}))))},"sa");var i43=_.Hc(function(r){var f=_.E(_.ld(!1,void 0,"s8HkOb")),I=f.next().value,C=f.next().value,Y=_.VS(bOR,function(){var h;return(h=r.data().keys)==null?void 0:h.surveyEntityKey}),V=_.VS(pfR,function(){var h;
return(h=r.data().keys)==null?void 0:h.surveyStateEntityKey});
_.KN("ytd-slimline-survey-show-action",function(){C(!1)});
var S=function(){var h,w;var n=(h=V())==null?void 0:(w=h.questionStack)==null?void 0:w[0];if(n!==void 0){var d,z;return(d=Y())==null?void 0:(z=d.questions)==null?void 0:z[n]}};
f={};return _.p("yt-slimline-survey-view-model",{class:_.qd("ytSlimlineSurveyViewModelHost",(f.ytSlimlineSurveyViewModelCollapsed=function(){return I()},f))},_.p("div",{class:"ytSlimlineSurveyViewModelContainer"},_.p(_.M,{cond:function(){var h;
return((h=S())==null?void 0:h.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.p(H48,{data:function(){return S()},
onSelect:function(h,w){var n,d;return _.x(function(z){C(!0);if(d=(n=r.data())==null?void 0:n.onSelectRating)_.F2(d),_.eS(BDq(w));_.wO(z)})},
onDismiss:function(){C(!0)}})}})))},"ta");var Ry_=_.Hc(function(r){return _.p("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.p(_.X1,{data:function(){var f;return(f=r.data())==null?void 0:f.attachments}},{flexibleActionsViewModel:function(f){return _.p("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.p(d1C,{data:f.data,
layout:function(){var I;return((I=r.lockupStyle())==null?void 0:I.arrangement)===1?0:1},
justifyContentOverride:function(){var I;return((I=r.lockupStyle())==null?void 0:I.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(f){return _.p("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.p(i43,{data:f.data}))},
expandableMetadataViewModel:function(f){f=f.data;var I;return _.p("div",{class:"ytLockupAttachmentsViewModelAttachment"},(I=_.a().resolve(_.ZY(JMC)))==null?void 0:I({data:f}))},
adButtonGroupViewModel:function(f){return _.p("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.p(jq4,{data:f.data}))}}))},"ua");var Yhc=_.Bw("rich_grid_min_item_width",310),IOP=_.Bw("rich_grid_max_item_width",500);var zam=_.Hc(function(r){var f=r.data;return _.p("br-nz-badge-shape",{class:_.qd(function(){return bm$(f().brNzRatingBadgeType)}),
role:function(){return f().accessibilityText?"img":void 0},
"aria-label":function(){return f().accessibilityText}},function(){var I;
return(I=f())==null?void 0:I.text})},"va");_.GL(MxK);var veT,xnE;veT=_.Hc(function(r){var f=function(){var I=r.data(),C,Y;return I?dZd(I,!((C=r.workaroundShortsIsThumbnailBadge)==null||!C.call(r)),(Y=r.modern)==null?void 0:Y.call(r)):void 0};
return _.p("yt-badge-view-model",{class:_.qd("yt-badge-view-model-wiz",r.class)},_.p(_.MC,null,_.p(_.nz,{when:function(){var I;return!((I=f())==null||!I.brNzRatingBadgeType)}},function(){return _.p(zam,{data:function(){return f()}})}),_.p(_.nz,{when:function(){return!!f()&&!f().brNzRatingBadgeType}},function(){return _.p(_.Av,{data:function(){return f()}})})))},"wa");
xnE=_.N("web_enable_sink_yt_badge_view_model")?veT:MxK;_.sq=_.N("web_enable_sink_yt_badge_view_model")?veT:_.rW(MxK);veT.idomCompat=!0;var aOd,gvP;aOd=16/9;gvP=2/3;_.Oq=_.Hc(function(r){var f=r.data;var I=r.className;var C=r.imageSizeConfig;var Y=r.notifyOnLoaded;r=_.yy();var V=function(){return f().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},S=function(){var d;
return _.RK((d=f())==null?void 0:d.rendererContext)},h={};
h=(h["yt-content-preview-image-view-model-wiz"]=!0,h["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return V()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},h["yt-content-preview-image-view-model-wiz--tappable"]=function(){return S()},h);
var w=function(){var d,z;return(z=(d=_.F(f().rendererContext,_.U0))==null?void 0:d.label)!=null?z:""},n=function(){return NoR(f())};
_.KF(r,function(){var d;return(d=f())==null?void 0:d.rendererContext});
return _.p("yt-content-preview-image-view-model",{el:r,role:function(){return S()?"link":void 0},
tabindex:function(){return S()?0:void 0},
class:_.qd(I,h,function(){var d=V();var z=C==null?void 0:C();d=d==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||d==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||d==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||d==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(z==null?void 0:z.size)!=null&&z.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(z==null?void 0:z.size)!=null&&z.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return d}),
style:function(){return XX$(V(),f().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",C==null?void 0:C(),$Zl(n()),f().layoutWidth,f().layoutHeight)}},_.p(_.M,{cond:n,
then:function(d){return _.p(_.J3,{data:d,alt:w,"data-disabled$":function(){return!w()},
notifyOnLoaded:Y})}}),_.p(_.X1,{data:function(){var d;
return(d=f())==null?void 0:d.overlays}},{thumbnailHoverOverlayViewModel:Lpq,
thumbnailOverlayButtonViewModel:_.Rt}))},"xa");
_.Oq.idomCompat=!0;var ot=_.Hc(function(r){var f=r.data;var I=r.className;var C=r.useSmallLayout;var Y=r.useMediumText;r=_.yy();var V={};Y=(V["yt-attribution-view-model-wiz"]=!0,V["yt-attribution-view-model-wiz--medium-text"]=Y,V);_.KF(r,function(){var S;return(S=f())==null?void 0:S.rendererContext});
return _.p("yt-attribution-view-model",{el:r,class:_.qd(I,Y)},_.p(_.M,{cond:function(){return _.RK(f().rendererContext)},
then:function(){return _.p("button",{class:"yt-attribution-view-model-wiz--tappable"},_.p(K13,{data:f,useSmallLayout:C}))},
else:function(){return _.p(K13,{data:f,useSmallLayout:C})}}))},"ya"),K13=_.Hc(function(r){var f=r.data;
var I=r.useSmallLayout;var C=function(){return{size:(I==null?0:I())?16:24}};
return _.p(_.B9,null,_.p(_.X1,{data:function(){return f().contentPreviewImage}},{contentPreviewImageViewModel:function(Y){return _.p(_.Oq,{data:Y.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:C})}}),_.p(_.X1,{data:function(){return f().badge}},{badgeViewModel:function(Y){return _.p(_.sq,{data:Y.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.p(_.M,{cond:function(){return f().text},
then:function(){return _.p(_.wW,{text:function(){return f().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.p(_.M,{cond:function(){return f().suffix},
then:function(){return _.p(_.wW,{text:function(){return f().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"za");
ot.idomCompat=!0;var Ls$=_.zk({avatarStackViewModel:_.zt,badgeViewModel:xnE});_.GL(J$K);var yM3,U04,sq3,O4D,oe8,Qqg,AMV;yM3=_.Hc(function(r){var f=r.delimiter;var I=r.max;var C=r.index;var Y=r.isStandalone;return _.p(_.M,{cond:function(){return I()-1>C()},
then:function(){var V={};return _.p("span",{class:_.qd("yt-content-metadata-view-model-wiz__delimiter",(V["yt-content-metadata-view-model-wiz__delimiter--standalone"]=Y,V)),"aria-hidden":!0},f)}})},"Aa");
U04=_.Hc(function(r){var f=r.metadataPart;var I=r.maxLines;return _.p(_.wW,{text:function(){return f().text},
linkInheritColor:!0,className:function(){return jWK(I())},
userInput:!0})},"Ba");
sq3=_.Hc(function(r){var f=r.metadataPart;var I=r.maxLines;return _.p(_.M,{cond:function(){return f().tooltip},
then:function(C){return _.p("span",{title:C,role:"tooltip"},_.p(U04,{metadataPart:f,maxLines:I}))},
else:function(){return _.p(U04,{metadataPart:f,maxLines:I})}})},"Ca");
O4D=_.Hc(function(r){var f=r.metadataPart;var I=r.isOverlay;var C=r.useMediumText;var Y=r.hideAvatar;var V=function(){return f().maxLines!==void 0?f().maxLines:1};
return _.p(_.B9,null,_.p(_.X1,{data:function(){return f().avatarStack}},{avatarStackViewModel:function(S){return _.p(_.zt,{data:S.data,
isOverlay:I,useMediumText:C,hideAvatar:Y})},
badgeViewModel:_.sq}),_.p(_.M,{cond:function(){return f().text},
then:function(){return _.p(sq3,{metadataPart:f,maxLines:V})}}))},"Da");
oe8=_.Hc(function(r){var f=r.metadataRow;var I=r.isInline;var C=r.delimiter;var Y=r.isOverlay;var V=r.useMediumText;var S=r.extensions;var h=function(){var n;return P5U(S==null?void 0:(n=S())==null?void 0:n.lockupMetadata,f())},w=function(){return f().metadataParts||[]};
r={};return _.p("div",{class:_.qd("yt-content-metadata-view-model-wiz__metadata-row",(r["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=I,r["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var n;return txE(S==null?void 0:(n=S())==null?void 0:n.lockupMetadata,f())},r["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var n;
return!!(S==null?0:(n=S())==null?0:n.lockupMetadata)&&f().badges},r))},_.p(_.X1,{data:function(){return f().badges}},{badgeViewModel:function(n){return _.p("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.p(_.sq,{data:n.data}))}}),_.p(_.pz,{each:w},function(n,d){return _.p(_.B9,null,_.p(O4D,{metadataPart:n,
isOverlay:Y,useMediumText:V,hideAvatar:h}),_.p(yM3,{delimiter:C,max:function(){return w().length},
index:d,isStandalone:!1}))}),_.p(_.M,{cond:function(){return f().isSpacerRow&&!I()},
then:function(){return _.p("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ea");
Qqg=_.Hc(function(r){var f=_.jS(r,{layout:0,isOverlay:!1});r=f.className;var I=f.data,C=f.layout,Y=f.isOverlay,V=f.useMediumText,S=f.extensions;f=_.yy();var h=function(){return C()===0};
_.KF(f,function(){return I().rendererContext});
var w=function(){return I().metadataRows||[]},n={};
return _.p("yt-content-metadata-view-model",{class:_.qd(r,"yt-content-metadata-view-model-wiz",(n["yt-content-metadata-view-model-wiz--inline"]=h,n["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.RK(I().rendererContext)},n["yt-content-metadata-view-model-wiz--medium-text"]=V,n)),
el:f},_.p(_.pz,{each:w},function(d,z){return _.p(_.B9,null,_.p(oe8,{metadataRow:d,isInline:h,delimiter:function(){return I().delimiter},
isOverlay:Y,useMediumText:V,extensions:S}),_.p(_.M,{cond:function(){return h()&&!d.isSpacerRow},
then:function(){return _.p(yM3,{delimiter:function(){return I().delimiter},
max:function(){return w().length},
index:z,isStandalone:!0})}}))}))},"Fa");
AMV=_.N("web_enable_sink_yt_content_metadata_view_model")?Qqg:J$K;_.Z4V=_.N("web_enable_sink_yt_content_metadata_view_model")?Qqg:_.rW(J$K);Qqg.idomCompat=!0;var RaK=_.zk({avatarViewModel:_.$U,decoratedAvatarViewModel:_.dN,avatarStackViewModel:_.zt,contentMetadataViewModel:AMV,buttonViewModel:_.LF,attributionViewModel:ot});_.GL(vvm);var Gl8=_.Hc(function(r){var f={};return _.p("yt-lockup-metadata-view-model",{class:_.qd("yt-lockup-metadata-view-model-wiz",function(){a:{var I=r.lockupStyle();if(I==null?0:I.isOverlay)I="yt-lockup-metadata-view-model-wiz--overlay";else switch(I==null?void 0:I.arrangement){case 1:I="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:I="yt-lockup-metadata-view-model-wiz--vertical"}}return I},function(){a:{var I=r.lockupStyle();
if(I==null?0:I.isTiny)I="yt-lockup-metadata-view-model-wiz--tiny";else switch(I==null?void 0:I.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":I="yt-lockup-metadata-view-model-wiz--compact";break a;default:I="yt-lockup-metadata-view-model-wiz--standard"}}return I},(f["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var I;
return(I=r.lockupStyle())==null?void 0:I.isOverlay},f["yt-lockup-metadata-view-model-wiz--card"]=function(){var I;
return(I=r.lockupStyle())==null?void 0:I.isCard},f["yt-lockup-metadata-view-model-wiz--centered"]=function(){var I;
return(I=r.lockupStyle())==null?void 0:I.isCentered},f["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var I;
return(I=r.lockupStyle())==null?void 0:I.typographyBump},f["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var I;
return(I=r.lockupStyle())==null?void 0:I.useLegacyTypography},f["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var I;
return(I=r.lockupStyle())==null?void 0:I.useRichGridLegacyTypography},f))},_.p(_.X1,{data:function(){return r.data().image}},{avatarStackViewModel:function(I){return _.p("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.p(_.zt,{data:I.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(I){return _.p("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.p(_.$U,{data:I.data}))},
decoratedAvatarViewModel:function(I){return _.p("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.p(_.dN,{data:I.data}))}}),_.p("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.p("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var I;return(I=r.data().title)==null?void 0:I.content}},_.p(_.M,{cond:function(){return r.data().title},
then:function(I){return _.p(_.h8,{command:r.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:r.lockupAccessibilityLabel},_.p(_.wW,{text:I}))}})),_.p("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.p(_.X1,{data:function(){return r.data().metadata}},{contentMetadataViewModel:function(I){return _.p(_.Z4V,{data:I.data,
layout:1,useMediumText:function(){var C,Y;return((C=r.lockupStyle())==null?void 0:C.typographyBump)||((Y=r.lockupStyle())==null?void 0:Y.useRichGridLegacyTypography)},
extensions:function(){var C,Y;return{lockupMetadata:{byline:{hideAvatar:((C=r.lockupStyle())==null?void 0:C.arrangement)===0,addPadding:((Y=r.lockupStyle())==null?void 0:Y.arrangement)===1}}}}})}})),_.p(_.X1,{data:function(){return r.data().attribution}},{attributionViewModel:function(I){return _.p("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.p(ot,{data:I.data,
useSmallLayout:!0}))}})),_.p("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.p(_.X1,{data:function(){return r.data().menuButton}},{buttonViewModel:function(I){return _.p(_.LF,{data:I.data,
buttonOverrides:function(){var C;return((C=r.lockupStyle())==null?0:C.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ga"),kl4=_.N("web_enable_sink_lockups_batch")?Gl8:_.rW(vvm);
Gl8.idomCompat=!0;var BcU=_.Hc(function(r){var f=_.yy();_.Xl(function(){requestAnimationFrame(function(){_.y9(f.value)})});
var I={},C={},Y={};return _.p("notification-multi-action-renderer",{class:_.qd("ytNotificationMultiActionRendererHost",(I.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var V;return(V=r.useLegacyShelfStyle)==null?void 0:V.call(r)},I)),
el:f},_.p("span",{"aria-live":"polite",class:_.qd("ytNotificationMultiActionRendererTextContainer",(C.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var V;return(V=r.useLegacyShelfStyle)==null?void 0:V.call(r)},C))},_.p(_.wW,{text:function(){return r.data().responseText}})),_.p("div",{class:_.qd("ytNotificationMultiActionRendererButtonContainer",(Y.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var V;
return(V=r.useLegacyShelfStyle)==null?void 0:V.call(r)},Y))},_.p(_.X1,{data:function(){var V;
return(V=r.data().buttons)==null?void 0:V.map(function(S){if(S=S.buttonRenderer){var h,w=Object,n=w.assign,d=(h=S.icon)==null?void 0:h.iconType;h=(h=S.command||S.serviceEndpoint||S.navigationEndpoint)?{innertubeCommand:h}:void 0;S={buttonViewModel:n.call(w,{},{iconName:d,onTap:h,trackingParams:S.trackingParams,titleFormatted:S.text?_.dF(S.text):void 0},KsB(S))}}else S=void 0;return S}).filter(function(S){return!!S})}},{buttonViewModel:function(V,S){return _.p("div",null,_.p(_.LF,{data:V.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var h;return((h=r.useModernStyles)==null?0:h.call(r))?{type:S()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ha");var qA8=_.Hc(function(r){var f=_.yy();_.Xl(function(){requestAnimationFrame(function(){_.y9(f.value)})});
return _.p("notification-text-renderer",{el:f,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.p(_.wW,{text:function(){return r.data().successResponseText}}))},"Ia");_.uUT=_.Hc(function(r){var f=_.VS(ApE,function(){var C;return y$E((C=r.contentId)==null?void 0:C.call(r))}),I=function(){var C;
return _.F((C=f())==null?void 0:C.command,_.da)};
return _.p(_.M,{cond:function(){var C;if(!(C=I())){var Y;C=_.F((Y=f())==null?void 0:Y.command,vpq)}return C},
then:function(){return _.p(_.M,{cond:I,then:function(){var C={};return _.p("div",{class:_.qd("ytDismissibleItemReplacedContent",function(){var Y;return UZR((Y=r.aspectRatio)==null?void 0:Y.call(r))})},_.p("div",{class:_.qd((C.ytDismissibleItemAspectRatioContainer=function(){var Y;
return((Y=r.aspectRatio)==null?void 0:Y.call(r))!==void 0},C))},_.p(_.X1,{data:function(){var Y;
return(Y=I())==null?void 0:Y.item}},{notificationMultiActionRenderer:function(Y){return _.p(BcU,{data:Y.data,
useModernStyles:r.useModernStyle,useLegacyShelfStyle:r.useLegacyShelfStyle})},
notificationTextRenderer:qA8})))}})},
else:r.children})},"Ja");_.D0B=_.Hc(function(r){var f=r.data;var I=r.customCommandResolver;r=_.Ue();var C=function(){var V;return((V=f().interaction)==null?0:V.onTap)?function(S){var h;Glw(S,(h=f().interaction)==null?void 0:h.onTap,I)}:void 0},Y=function(){var V,S=f(),h=C(),w=(V=_.F(f().rendererContext,_.U0))==null?void 0:V.label;
a:switch(S.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":V=1;break a;default:V=0}return{size:ovw(S.size),type:V,onTap:h,accessibilityText:w}};
_.ZW(r,{visibilityCallback:function(V){var S,h=(S=f().interaction)==null?void 0:S.onFirstVisible;V&&h&&_.F2(h)},
showOption:_.Kc});return _.p("ad-avatar-view-model",{class:function(){var V;return((V=f().interaction)==null?0:V.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:r},_.p(_.M,{cond:function(){return f().image},
then:function(V){return _.p(JX3,{data:Y,image:V})}}))},"Ka");_.Qd=_.Hc(function(r){r=_.jS(r,{hasDot:!1});var f=Object.assign({},r),I=r.data,C=r.hasDot;r=r.customCommandResolver;var Y=(delete f.data,delete f.hasDot,delete f.customCommandResolver,f);f=function(){return I().style};
f!==void 0&&f!==null||_.Hw(Error("Dh"));f=_.yy();_.oK(f,function(){return I().interaction},r);
return _.p("ad-badge-view-model",{class:_.qd(function(){var V;return((V=I().interaction)==null?0:V.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var V=Y.adRenderingContextType();
I();return V==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:f},_.p(_.Av,{data:function(){var V;I();return{type:2,text:(V=I().label)==null?void 0:V.content,adsIncludeDot:C(),isOverlay:I().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"La");var r$V;_.Ac=_.Hc(function(r){var f=r.data;var I=r.customCommandResolver;var C=r.adRenderingContextType;r=_.yy();_.oK(r,function(){return f().interaction},I);
_.ZW(r,{visibilityCallback:function(Y){var V,S=(V=f().interaction)==null?void 0:V.onFirstVisible;Y&&S&&_.F2(S)},
showOption:_.Kc});return _.p("ad-details-line-view-model",{class:function(){var Y;return((Y=f().interaction)==null?0:Y.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:r},_.p(_.M,{cond:function(){return f().style},
then:function(Y){return _.p(_.pz,{each:function(){var V;return((V=f())==null?void 0:V.attributes)||[]},
keyBy:"INDEX"},function(V){return _.p(r$V,{attribute:V,style:Y,adRenderingContextType:function(){return C()}})})}}))},"Ma");
r$V=_.Hc(function(r){var f=r.attribute;var I=r.style;var C=r.adRenderingContextType;return _.p(_.M,{cond:function(){return f().text},
then:function(Y){return _.p(_.wW,{text:Y,className:function(){var V=C();I();return V==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Na");var fOC=_.Hc(function(r){var f=r.data;var I=r.typographyBump;var C=function(){return f().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
r={};return _.p(_.B9,null,_.p("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.p(_.wW,{text:function(){return f().headline},
className:_.qd("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(r.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return C==null?void 0:C()},r.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(I==null?void 0:I())&&!(C==null?0:C())},r)),
linkInheritColor:!0}),_.p(_.M,{cond:function(){return f().description},
then:function(Y){var V={};return _.p(_.wW,{text:Y,className:_.qd("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(V.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return C==null?void 0:C()},V.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(I==null?void 0:I())&&!(C==null?0:C())},V)),
linkInheritColor:!0})}}),_.p("div",{class:function(){return C()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.p(_.X1,{data:function(){return f().adBadge}},{adBadgeViewModel:function(Y){return _.p(_.Qd,{data:Y.data,
hasDot:function(){return!!f().adDetailsLine},
adRenderingContextType:function(){return f().adRenderingContextType}})}}),_.p(_.X1,{data:function(){return f().adDetailsLine}},{adDetailsLineViewModel:function(Y){return _.p(_.Ac,{data:Y.data,
adRenderingContextType:function(){return f().adRenderingContextType}})}}))),_.p("div",{class:function(){return C()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.p(_.X1,{data:function(){return f().menu}},{buttonViewModel:function(Y){return _.p(_.LF,{data:Y.data,
buttonOverrides:function(){a:switch(f().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var V="S";break a;default:V="M"}return{size:V}}})}})))},"Oa"),IOs=_.Hc(function(r){var f=r.data;
var I=r.noBottomMargin;var C=r.useVideoLockupTopPadding;var Y=r.typographyBump;r={};r=_.qd("ytwFeedAdMetadataViewModelHostMetadata",(r.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return I==null?void 0:I()},r.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return C==null?void 0:C()},r));
var V=function(){return f().adBadge};
V!==void 0&&V!==null||_.Hw(Error("Eh"));V={};var S={};return _.p(_.B9,null,_.p(_.M,{cond:function(){return f().adAvatar},
then:function(){return _.p("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.p(_.X1,{data:function(){return f().adAvatar}},{adAvatarViewModel:function(h){return _.p(_.D0B,{data:h.data})}}))}}),_.p("div",{class:r},_.p("div",{class:_.qd("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(V.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return Y==null?void 0:Y()},V.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(Y==
null?void 0:Y())&&_.N("web_enable_typography_bump_v2")},V))},_.p(_.wW,{text:function(){return f().headline},
linkInheritColor:!0})),_.p(_.M,{cond:function(){return f().description},
then:function(h){return _.p(_.wW,{text:h,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.p("div",{class:function(){return f().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.N("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.p(_.X1,{data:function(){return f().adBadge}},
{adBadgeViewModel:function(h){return _.p(_.Qd,{data:h.data,
hasDot:function(){return!!f().adDetailsLine},
adRenderingContextType:function(){return f().adRenderingContextType}})}}),_.p(_.X1,{data:function(){return f().adDetailsLine}},{adDetailsLineViewModel:function(h){return _.p(_.Ac,{data:h.data,
adRenderingContextType:function(){return f().adRenderingContextType}})}})),_.p(_.M,{cond:function(){return f().secondaryDescription},
then:function(h){return _.p(_.wW,{text:h,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.p("div",{class:_.qd("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(S.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return C==null?void 0:C()},S))},_.p(_.X1,{data:function(){return f().menu}},{buttonViewModel:_.LF})))},"Pa"),C5B=_.Hc(function(r){var f=r.data;
var I=r.noBottomMargin;var C=r.listenToTapEvent;var Y=r.setTouchEndHandler;var V=r.useVideoLockupTopPadding;var S=r.typographyBump;var h=_.yy();_.oK(h,function(){return f().interaction},void 0,function(){return C==null?void 0:C()});
r=_.E(_.ld(!1,void 0,"v9Bv8e"));var w=r.next().value,n=r.next().value;r=_.IC(function(){(Y==null?0:Y())&&!w()&&(h.value.click(),n(!0),setTimeout(function(){n(!1)},100));
return!1});
_.ZW(h,{visibilityCallback:function(d){var z,g=(z=f().interaction)==null?void 0:z.onFirstVisible;d&&g&&_.F2(g)},
showOption:_.Kc});return _.p("feed-ad-metadata-view-model",{class:function(){var d;return((d=f().interaction)==null?0:d.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:h,"on:touchend":r},_.p(_.MC,null,_.p(_.nz,{when:function(){return f().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.p(fOC,{data:f,
typographyBump:S})}),_.p(_.nz,{when:function(){return f().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.p(IOs,{data:f,
noBottomMargin:I,useVideoLockupTopPadding:V,typographyBump:S})})))},"Qa");var YhT;_.Z2=_.Hc(function(r){return _.p("yt-lockup-view-model",{class:_.qd(r.className)},_.p(_.uUT,{contentId:function(){return r.data().contentId},
useModernStyle:!0,aspectRatio:function(){var f,I;return((f=r.containerType)==null?void 0:f.call(r))!==3?haP(r.data().contentType,(I=r.force16By9ThumbnailAspectRatio)==null?void 0:I.call(r)):void 0}},function(){return _.p(YhT,Object.assign({},r))}))},"Ra");
YhT=_.Hc(function(r){r=_.jS(r,{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 f=r.data,I=r.containerLayoutConfig,C=r.containerType,Y=r.sizing,V=r.protectBackground,S=r.typographyBump,h=r.force16By9ThumbnailAspectRatio,w=r.thumbnailFixedWidth,n=r.thumbnailTargetWidth,d=r.lockupExperiments,z=r.elementsPerRow;
r=_.yy();_.KF(r,function(){var iU;return(iU=f())==null?void 0:iU.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var g=_.XA(tIw),X=_.a().resolve(_.ZY(aI4)),P=X?{}:void 0,W=function(){var iU,oR,vu;return(vu=(oR=_.F((iU=f())==null?void 0:iU.rendererContext,_.U0))==null?void 0:oR.label)!=null?vu:void 0},m=function(){var iU=I==null?void 0:I(),oR;
if(iU==null?0:iU.containerType){var vu=(oR=f())==null?void 0:oR.contentType;oR=d();var wB=S(),qT=n(),gB=V();iU=Object.assign({},wXl(EvR(iU),lOl(iU.responsiveSize),wB,vu,iU.force16By9ThumbnailAspectRatio,qT,gB,oR),{thumbnailFixedWidth:iU.contentPreviewWidth})}else iU=wXl(C(),Y(),S(),(vu=f())==null?void 0:vu.contentType,h(),n(),V(),d());return iU};
X&&P&&X({enabled:function(){return g()},
itemPlaybackModel:function(){return f().itemPlayback},
thumbnailElRef:function(){return P.thumbnailElRef},
containerElRef:r,options:function(){var iU,oR=(iU=_.F(f().metadata,$A8))==null?void 0:iU.endorsement;iU=P.thumbnailOverlays||[];oR&&iU.push(oR);var vu,wB;return{thumbnail:P.thumbnail,thumbnailOverlays:iU,accessibilityText:W(),thumbnailSize:P.thumbnailSize,enableRounding:m().isCollection,containPlayerWithinThumbnail:m().isCollection,trackingParams:(vu=_.F(f().rendererContext,_.rtK))==null?void 0:(wB=vu.loggingDirectives)==null?void 0:wB.trackingParams}}});
var v=0;X=_.E(_.ld(!1,void 0,"HzAs3"));var O=X.next().value,k=X.next().value;X=_.E(_.ld(!1,void 0,"ujOXud"));var Z=X.next().value,Cw=X.next().value;X=_.IC(function(){var iU=g()&&f().itemPlayback;Z()?(_.F_.cancelJob(v),v=_.F_.addJob(function(){k(!iU)},8,32)):k(!iU);
return!0});
var rR=_.IC(function(){v&&(_.F_.cancelJob(v),v=0);k(!1)});
_.$L(function(){v&&(_.F_.cancelJob(v),v=0)});
var EP=Omq(function(){Cw(!0)}),Pu=EP.touchFeedbackEvents,Wu=EP.touchFeedbackOnPointerUp,cu=EP.touchFeedbackOnPointerDown;
EP=EP.touchFeedbackOnPointerLeave;var OP={};return _.p("div",{el:r,class:_.qd("yt-lockup-view-model-wiz",function(){a:{var iU=m();if(iU.isOverlay)iU="yt-lockup-view-model-wiz--overlay";else switch(iU.arrangement){case 1:iU="yt-lockup-view-model-wiz--horizontal";break a;default:iU="yt-lockup-view-model-wiz--vertical"}}return iU},function(){a:{var iU=m();
if(iU.isOverlay)iU="yt-lockup-view-model-wiz--overlay";else{switch(iU.collectionStackNumber){case 1:iU="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:iU="yt-lockup-view-model-wiz--collection-stack-2";break a}iU=void 0}}return iU},(OP["yt-lockup-view-model-wiz--card"]=function(){return m().isCard},OP["yt-lockup-view-model-wiz--compact"]=function(){return m().isTiny||m().sizing!=="STANDARD"},OP["yt-lockup-view-model-wiz--protect-background"]=V,OP["yt-lockup-view-model-wiz--add-margins"]=
function(){return m().addMarginForFullbleed},OP["yt-lockup-view-model-wiz--centered"]=function(){return m().isCentered},OP["yt-lockup-view-model-wiz--fullbleed"]=function(){return m().fullbleed},OP["yt-lockup-view-model-wiz--single-column-grid"]=function(){return z()===1&&C()===2},OP["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var iU;
return(iU=d())==null?void 0:iU.useRichGridLegacyMargin},OP)),
"on:mousedown":cu,"on:mouseleave":rR,"on:mouseup":Wu,"on:mouseover":X,"on:touchstart":cu,"on:touchend":Wu,"on:pointerleave":EP},_.p(_.h8,{command:function(){var iU;return _.i6((iU=f())==null?void 0:iU.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return w()&&m().arrangement===1?"width: "+w():""}},_.p(_.X1,{data:function(){var iU;
return(iU=f())==null?void 0:iU.contentImage}},{thumbnailViewModel:function(iU){return _.p(_.v3,{data:iU.data,
aspectRatio:function(){return m().aspectRatio},
disableRounding:function(){return m().disableRounding},
width:n,hovered:O,isClip:function(){var oR;return((oR=f())==null?void 0:oR.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:F1P(P),lockupExperiments:function(){return d()}})},
collectionThumbnailViewModel:function(iU){return _.p(eyq,{data:iU.data,aspectRatio:function(){return m().aspectRatio},
disableRounding:function(){return m().disableRounding},
width:n,doubleStack:function(){return m().collectionStackNumber===2},
hovered:O,playbackRef:F1P(P)})},
decoratedAvatarViewModel:_.dN})),_.p("div",{class:"yt-lockup-view-model-wiz__metadata"},_.p(_.X1,{data:function(){var iU;return(iU=f())==null?void 0:iU.metadata}},{lockupMetadataViewModel:function(iU){return _.p(kl4,{data:iU.data,
lockupStyle:m,lockupCommand:function(){var oR;return _.i6((oR=f())==null?void 0:oR.rendererContext)},
lockupAccessibilityLabel:function(){return W()}})},
feedAdMetadataViewModel:function(iU){return _.p(C5B,{data:iU.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:S})}}),_.p(_.X1,{data:function(){var iU;
return(iU=f())==null?void 0:iU.attachmentSlot}},{lockupAttachmentsViewModel:function(iU){return _.p(Ry_,{data:iU.data,
lockupStyle:m})}})),_.p(_.xZ,{model:function(){a:{switch(m().collectionStackNumber){case 1:var iU=8;
break a;case 2:iU=12;break a}iU=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:iU}},
pointerDownEvent:Pu.pointerDownEvent,pointerUpEvent:Pu.pointerUpEvent,pointerLeaveEvent:Pu.pointerLeaveEvent}))},"Sa");
_.Z2.idomCompat=!0;_.Kv(_.Z2,"yt-lockup-view-model",{props:{data:_.jv,containerLayoutConfig:_.jv,containerType:_.jv,sizing:_.jv,protectBackground:_.jv,typographyBump:_.jv,thumbnailFixedWidth:_.jv,thumbnailTargetWidth:_.jv,force16By9ThumbnailAspectRatio:_.jv,className:_.jv,lockupExperiments:_.jv,elementsPerRow:_.jv}});_.GL(Bow);var lOg=_.rW(Bow,{callbacks:{onExpandClick:!0}});var IZB=_.zk({buttonViewModel:_.LF}),Vx4=_.rW(r0q);_.GL(r0q);_.GL(uaK);_.GL(DZR);_.Kv(Vx4,"yt-video-attribute-view-model",{props:{data:_.jv,className:_.jv}});var Gt=function(){var r=_.y.apply(this,arguments)||this;r.useHighlightStyling=_.N("web_enable_deeper_metadata_highlight_styling");r.isSearch=!1;r.JSC$12943_lastScrollContainerWidth=NaN;r.pageLoadingFromNavigation=!1;r.currentIndex=0;r.supportComponentResize=!1;return r};
_.t(Gt,_.y);_.l=Gt.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",_.GF(this,this.onPageChange))};
_.l.detached=function(){document.removeEventListener("yt-page-type-changed",_.GF(this,this.onPageChange))};
_.l.getItemsPath=function(){return"data.cards"};
_.l.onIronResize=function(){this.updateListStyles()};
_.l.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var r;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(r=this.data)==null?void 0:r.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.N("problem_walkthrough_sd")&&!!this.centerItems};
_.l.computeCardListStyle=function(r){return r||null};
_.l.computeEmpty=function(r){return!this.get("cards.length",r)};
_.l.computeThumbnailStyle=function(r){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",r)||null};
_.l.computeHasSubtitle=function(r){return!!this.get("header.richListHeaderRenderer.subtitle",r)};
_.l.computeInitialCountNumber=function(r){return this.hasSquareMiniApp&&r==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&r==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:r==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:r==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:r==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&r==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.l.computeUseFloorScrolling=function(r){return r==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.l.computeHasGameCard=function(r){return(r=this.get("cards",r))?r.some(function(f){return f.gameCardRenderer}):!1};
_.l.computeCenterHeaderTitle=function(r){return!(r==null||!r.centerHeaderTitle)};
_.l.computeHasPortraitMiniApp=function(r){return(r=r==null?void 0:r.cards)?r.some(function(f){return f.miniGameCardViewModel&&f.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.l.computeHasSquareMiniApp=function(r){return(r=r==null?void 0:r.cards)?r.some(function(f){return f.miniGameCardViewModel&&f.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.l.computeHasSkinnyWidthPortraitMiniApp=function(r){return(r=r==null?void 0:r.cards)?r.some(function(f){return f.miniGameCardViewModel&&f.miniGameCardViewModel.width===135}):!1};
_.l.computeCenterItems=function(r){return!!r};
_.l.computeHasInfoPanel=function(r){var f;return r==null?void 0:(f=r.cards)==null?void 0:f.some(function(I){return I.infoPanelContentRenderer})};
_.l.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.l.getItemByIndex=function(r){var f=this.items.children;return f&&f.length>r?f[r]:void 0};
_.l.onPageChange=function(){var r=this;this.pageLoadingFromNavigation=!0;_.F_.addJob(function(){r.pageLoadingFromNavigation=!1;_.qy(r.hostElement,"yt-terminate-video-preview-action")},8)};
_.l.updateListStyles=function(){if(_.N("problem_walkthrough_sd")&&this.JSC$12943_scrollContainer!==void 0){var r=this.JSC$12943_scrollContainer.clientWidth;r!==this.JSC$12943_lastScrollContainerWidth&&(this.JSC$12943_lastScrollContainerWidth=r,_.Zh(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(r*.8,415)+"px"}),_.kA(this.hostElement,"iron-resize"))}};
_.OC.Object.defineProperties(Gt.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.N("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return _.N("kevlar_modern_sd")&&!!((r=this.data)==null?0:(f=r.cards)==null?0:(I=f[0])==null?0:I.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return!!((r=this.data)==null?0:(f=r.cards)==null?0:(I=f[0])==null?0:I.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return _.N("enable_desktop_amsterdam_info_panels")&&!!((r=this.data)==null?0:(f=r.cards)==null?0:(I=f[0])==null?0:I.infoPanelContentRenderer)}}});
Gt.prototype.dataChanged=Gt.prototype.dataChanged;Gt.prototype.onIronResize=Gt.prototype.onIronResize;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Gt.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Gt.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.ZL.YtdHorizontalListBehavior),_.B("design:type",Object)],Gt.prototype,"ytdHorizontalListBehavior",void 0);
_.A([_.J(_.TD),_.B("design:type",Object)],Gt.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Gt.prototype,"data",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Gt.prototype,"useCustomColors",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Gt.prototype,"useHighlightStyling",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.B("design:type",Object)],Gt.prototype,"cardListStyle",void 0);_.A([_.K({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.B("design:type",Boolean)],Gt.prototype,"empty",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.B("design:type",Boolean)],Gt.prototype,"hasSubtitle",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.B("design:type",Boolean)],Gt.prototype,"thumbnailStyle",void 0);_.A([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.B("design:type",Boolean)],Gt.prototype,"hasGameCard",void 0);_.A([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.B("design:type",Boolean)],Gt.prototype,"centerHeaderTitle",void 0);
_.A([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.B("design:type",Boolean)],Gt.prototype,"hasPortraitMiniApp",void 0);_.A([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.B("design:type",Boolean)],Gt.prototype,"hasSquareMiniApp",void 0);_.A([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.B("design:type",Boolean)],Gt.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.A([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.B("design:type",Boolean)],Gt.prototype,"hasInfoPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Gt.prototype,"isSearch",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Gt.prototype,"inlineStructuredDescription",void 0);_.A([_.uA("#scroll-container"),_.B("design:type",HTMLDivElement)],Gt.prototype,"JSC$12943_scrollContainer",void 0);
_.A([_.K({computed:"computeInitialCountNumber(data.style.type)"}),_.B("design:type",Number)],Gt.prototype,"initialCount",void 0);_.A([_.K({computed:"computeUseFloorScrolling(data.style.type)"}),_.B("design:type",Boolean)],Gt.prototype,"useFloorScrolling",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.B("design:type",Boolean)],Gt.prototype,"centerItems",void 0);_.A([_.K(),_.B("design:type",Object)],Gt.prototype,"pageLoadingFromNavigation",void 0);
_.A([_.K(),_.B("design:type",Object)],Gt.prototype,"currentIndex",void 0);_.A([_.K(),_.B("design:type",Number)],Gt.prototype,"scrollCount",void 0);_.A([_.K(),_.B("design:type",Object)],Gt.prototype,"supportComponentResize",void 0);_.A([_.uA("#items"),_.B("design:type",HTMLDivElement)],Gt.prototype,"items",void 0);_.A([_.kO("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gt.prototype,"onIronResize",null);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gt.prototype,"dataChanged",null);_.A([_.K({reflectToAttribute:!0}),_.R("inlineStructuredDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Gt.prototype,"hideNavigationButton",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Gt.prototype,"modernChapters",null);
_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Gt.prototype,"hasVideoAttributeViewModels",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Gt.prototype,"modernInfoPanels",null);Gt=_.A([_.U({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],Gt);
_.Q(Gt,"ytd-horizontal-card-list-renderer",function(){if(rMU!==void 0)return rMU;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return rMU=r},{mode:_.QQ("kevlar_poly_si_batch_j072")?1:2});_.GL(Y9K);var EvD=_.Hc(function(r){var f=r.data;var I={};return _.p("video-summary-content-view-model",{class:_.qd("video-summary-content-view-model-wiz",r.className,(I["video-summary-content-view-model-wiz--is-search"]=r.isSearch,I))},_.p(_.pz,{each:function(){var C=[],Y=f().paragraphs;if(Y==null||!Y.length)return[];for(var V=0;V<Y.length;V++){var S=_.F(Y[V],C$P),h=void 0;V>0&&(h=_.F(Y[V-1],C$P));h&&!!h.marker===!!S.marker?C[C.length-1].paragraphs.push(S):C.push({isList:!!S.marker,paragraphs:[S]})}return C},
keyBy:"INDEX"},function(C){return _.p(_.M,{cond:function(){return C().isList},
then:function(){return _.p("ul",{class:"video-summary-content-view-model-wiz__list"},_.p(_.pz,{each:function(){return C().paragraphs},
keyBy:"INDEX"},function(Y){return _.p("li",{class:"video-summary-content-view-model-wiz__list-item"},_.p(_.wW,{text:function(){return Y().text}}))}))},
else:function(){return _.p(_.pz,{each:function(){return C().paragraphs},
keyBy:"INDEX"},function(Y){return _.p("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.p(_.wW,{text:function(){return Y().text}}))})}})}),_.p(_.M,{cond:function(){return!!_.F(f().likeButtonViewModel,tv)&&!!_.F(f().dislikeButtonViewModel,Tk)},
then:function(){return _.p("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.p("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.p(_.NV,{data:function(){return _.F(f().likeButtonViewModel,tv)},
disableIconAnimation:!0})),_.p(_.Xm,{data:function(){return _.F(f().dislikeButtonViewModel,Tk)}}))}}))},"Ta"),Sh3=_.N("web_enable_sink_video_summary_content_view_model")?EvD:Y9K,xZq=_.N("web_enable_sink_video_summary_content_view_model")?EvD:_.rW(Y9K);
EvD.idomCompat=!0;_.N("web_enable_sink_video_summary_content_view_model")?_.Kv(Sh3,"video-summary-content-view-model",{props:{data:_.jv,isSearch:_.jv,className:_.jv}}):_.Z5(Sh3,"video-summary-content-view-model",{propNames:["data","isSearch","className"]});var kg=function(){var r=_.y.apply(this,arguments)||this;var f,I;r.isExpanded=(I=(f=r.data)==null?void 0:f.isExpanded)!=null?I:!1;r.disableExpand=!1;r.showProminentLabel=!1;r.showRightSideLabel=!0;r.toggleExpandableContent=function(C){r.disableExpand||(C.stopPropagation(),_.RC(_.JN(C),r.hostElement,["info","expanded-subtitle"])||(r.isExpanded=!r.isExpanded,r.ytRendererBehavior.logExplicitClick(r.data),r.JSC$12956_cardList&&!_.N("expandable_metadata_a11y_fix_ks")&&_.UC(r,function(){_.KW(r.hostElement)})))};
r.useSquareThumbnail=!1;r.startX=0;return r};
_.t(kg,_.y);_.l=kg.prototype;_.l.computeUseSquareThumbnail=function(){var r;return(r=this.data)==null?void 0:r.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 r,f;this.isExpanded=(f=(r=this.data)==null?void 0:r.isExpanded)!=null?f:!1;var I,C,Y,V;if(r=this.isDarkTheme()?(I=this.data)==null?void 0:(C=I.colorData)==null?void 0:C.darkColorPalette:(Y=this.data)==null?void 0:(V=Y.colorData)==null?void 0:V.lightColorPalette){var S,h;if((S=this.data)==null?0:(h=S.colorData)==null?0:h.vibrantColorPalette)r.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.zY(this.hostElement,r)}}};
_.l.isExpandedChanged=function(){this.isExpanded&&this.JSC$12956_cardList&&_.kA(this.JSC$12956_cardList,"iron-resize")};
_.l.computeIsExpanded=function(r){return!!r.isExpanded};
_.l.computeShowProminentLabel=function(r,f){var I;return!!(r==null?0:(I=r.header)==null?0:I.showLeadingCollapsedLabel)&&!f};
_.l.computeShowRightSideLabel=function(r,f){var I;return!(r==null?0:(I=r.header)==null?0:I.showLeadingCollapsedLabel)&&!f};
_.l.captureContentClick=function(r){if(!this.disableExpand)if(_.N("expandable_metadata_fix_killswitch")){var f=r.target;_.L6g(f,"ytd-macro-markers-list-item-renderer")||r.stopPropagation();(f==null?void 0:f.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.RC(_.JN(r),this.hostElement,["items"])||_.iB(_.JN(r),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.l.timestampClick=function(r){r.stopPropagation();var f,I;(r=(f=this.data)==null?void 0:(I=f.header)==null?void 0:I.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(r)};
_.l.onDown=function(r){r.stopPropagation();this.startX=r.detail?r.detail.x:0};
_.l.onUp=function(r){this.skipKeyInteraction(r)&&r.stopPropagation()};
_.l.skipKeyInteraction=function(r){var f=r.target;if((f==null?void 0:f.id)==="scroll-container"||(f==null?void 0:f.id)==="items"||r.detail&&r.detail.x!==this.startX)return!0;r=_.JN(r);r=_.E(r);for(f=r.next();!f.done;f=r.next()){f=f.value;if(f===this.hostElement)break;if(f.hasAttribute&&f.hasAttribute("skip-key-interaction"))return!0}return!1};
_.l.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.OC.Object.defineProperties(kg.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var r;return!!_.F((r=this.data)==null?void 0:r.expandedContent,e_s)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var r;return!!_.F((r=this.data)==null?void 0:r.expandedContent,_.FZU)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var r,f;return!((r=this.data)==null||!r.useCustomColors)&&!((f=this.data)==null||!f.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var r,f;return!!((r=this.data)==null?0:(f=r.header)==null?0:f.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var r,f;return!!((r=this.data)==null?0:(f=r.header)==null?0:f.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var r,f;return!!((r=this.data)==null?0:(f=r.header)==null?0:f.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
kg.prototype.onUp=kg.prototype.onUp;kg.prototype.onDown=kg.prototype.onDown;kg.prototype.isExpandedChanged=kg.prototype.isExpandedChanged;kg.prototype.dataChanged=kg.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],kg.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],kg.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],kg.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],kg.prototype,"isExpanded",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],kg.prototype,"disableExpand",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],kg.prototype,"isSearch",void 0);
_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],kg.prototype,"isWatch",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.B("design:type",Object)],kg.prototype,"showProminentLabel",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.B("design:type",Object)],kg.prototype,"showRightSideLabel",void 0);
_.A([_.K({value:!1,reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kg.prototype,"hasVideoSummary",null);_.A([_.K({value:!1,reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kg.prototype,"hasLockupViewModel",null);_.A([_.K({reflectToAttribute:!0}),_.R("data","isWatch"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kg.prototype,"useCustomColors",null);
_.A([_.K({reflectToAttribute:!0}),_.R("data","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kg.prototype,"showInfoButton",null);_.A([_.R("data","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kg.prototype,"showTimestamp",null);_.A([_.R("data","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kg.prototype,"showExpandedSubtitle",null);
_.A([_.R("data","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kg.prototype,"showThumbnail",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],kg.prototype,"useVppShoppingDestinationStyle",null);_.A([_.K(),_.B("design:type",Object)],kg.prototype,"toggleExpandableContent",void 0);_.A([_.uA("ytd-horizontal-card-list-renderer"),_.B("design:type",Object)],kg.prototype,"JSC$12956_cardList",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.B("design:type",Object)],kg.prototype,"useSquareThumbnail",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kg.prototype,"dataChanged",null);_.A([_.Bt("isExpanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kg.prototype,"isExpandedChanged",null);
_.A([_.kO("down"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],kg.prototype,"onDown",null);_.A([_.kO("up"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],kg.prototype,"onUp",null);kg=_.A([_.U({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],kg);
_.Q(kg,"ytd-expandable-metadata-renderer",function(){if(YIU!==void 0)return YIU;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return YIU=r},{mode:1});var has,wXg=function(){if(has!==void 0)return has;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return has=r};_.Kv(_.zt,"yt-avatar-stack-view-model",{props:{className:_.jv,data:_.jv,overrides:_.jv,isOverlay:_.jv,useMediumText:_.jv,decorations:_.jv,hideAvatar:_.jv}});_.gW("itemSectionRenderer","videoRenderer","ytd-video-renderer");var B3=function(){var r=_.y.apply(this,arguments)||this;r.disableExpand=!1;r.shouldShowChannelInfo=!1;r.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return r};
_.t(B3,_.y);_.l=B3.prototype;_.l.computeUseSearchUi=function(){var r,f;return this.isSearch||((r=this.data)==null?void 0:(f=r.style)==null?void 0:f.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.l.computeUseThreeLineTitle=function(){var r;return((r=this.data)==null?void 0:r.maxTitleLines)===3};
_.l.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.N("polymer_video_renderer_defer_menu")&&!uhX?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(){_.ob(this.hostElement,"blue-links",_.N("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.QB(_.e(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var r=this.get("data.buttons.buttonRenderer.serviceEndpoint"),f;r&&((f=_.F(r.commandMetadata,_.$$))==null?0:f.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(r);this.updateInlinePreviewHoverListeners()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12961_inlinePreviewHoverListener=O0({mediaRenderer:this,lockupElement:this.JSC$12961_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.l.clearInlinePreviewHoverListeners=function(){var r;(r=this.JSC$12961_inlinePreviewHoverListener)==null||rY(r)};
_.l.onTextWrapperClick=function(r){var f,I,C=this.hideTranslation?(f=this.data)==null?void 0:f.untranslatedNavigationEndpoint:(I=this.data)==null?void 0:I.navigationEndpoint;f=_.RC(_.JN(r),this.hostElement,["expandable-metadata"]);!C||f&&!_.N("expandable_metadata_fix_killswitch")||_.iB(_.JN(r),this.hostElement,["A".toString(),"BUTTON".toString()])||_.kA(this.hostElement,"yt-navigate",{endpoint:C})};
_.l.computeThumbnailWidth=function(r,f,I,C,Y){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:C?Y==="MASSIVE"?600:Y==="BIG"?500:Y==="MEDIUM"?450:420:I?360:f?128:r?210:246};
_.l.computeUseBiggerThumbs=function(r){return r&&_.N("enable_desktop_search_bigger_thumbs")};
_.l.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.l.computeVideoStyle=function(){if(_.N("enable_video_style")){var r,f;return(r=this.data)==null?void 0:(f=r.style)==null?void 0:f.value}};
_.l.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.l.handleHideItemSectionVideosByIdCommand=function(r){var f;r=(f=_.F(r,fVg))==null?void 0:f.videoId;this.data&&this.data.videoId===r&&(this.isHidden=!0)};
_.l.getMetadataSnippetContainerClass=function(r){return r?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.l.computeTitleText=function(r,f,I){return r?I:f};
_.l.computeDescriptionSnippet=function(r,f,I){return r?I:f};
_.l.computeSnippetText=function(r,f,I){return r?I:f};
_.l.computeNavigationEndpoint=function(r,f){return r?f==null?void 0:f.untranslatedNavigationEndpoint:f==null?void 0:f.navigationEndpoint};
_.l.hideInlineTitleIcon=function(r,f){return r||!f};
_.OC.Object.defineProperties(B3.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 r;return(r=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?r:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return!!(this==null?0:(r=this.data)==null?0:(f=r.channelThumbnailSupportedRenderers)==null?0:(I=f.channelThumbnailWithLinkRenderer)==null?0:I.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var r;return!!_.F((r=this.data)==null?void 0:r.avatar,PHq)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.JSC$12961_inlinePreviewHoverListener)==null?0:at(r))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.OC.Object.defineProperties(B3,{template:{configurable:!0,enumerable:!0,get:function(){return wXg()}}});
B3.prototype.dataChanged=B3.prototype.dataChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],B3.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],B3.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],B3.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],B3.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.J(_.jW),_.B("design:type",Object)],B3.prototype,"ytdLockupBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],B3.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],B3.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],B3.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],B3.prototype,"isBackstageVideo",void 0);
_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],B3.prototype,"isPostCompactVideo",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],B3.prototype,"isHistory",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],B3.prototype,"isRichGridVideoPost",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],B3.prototype,"isHidden",void 0);
_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],B3.prototype,"isSearch",void 0);_.A([_.K({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.B("design:type",Boolean)],B3.prototype,"useSearchUi",void 0);_.A([_.K({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.B("design:type",Boolean)],B3.prototype,"useThreeLineTitle",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.B("design:type",Boolean)],B3.prototype,"useBiggerThumbs",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.B("design:type",Object)],B3.prototype,"videoStyle",void 0);_.A([_.K({computed:"computeDisableExpand(videoStyle)"}),_.B("design:type",Object)],B3.prototype,"disableExpand",void 0);
_.A([_.K({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.B("design:type",Object)],B3.prototype,"shouldShowChannelInfo",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.qC("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],B3.prototype,"biggerThumbsStyle",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.B("design:type",String)],B3.prototype,"inlineTitleIcon",void 0);_.A([_.K({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.B("design:type",Object)],B3.prototype,"computedNavigationEndpoint",void 0);_.A([_.K({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(r,f){return _.f2(r.entities,"searchVideoResultEntity",f)}}),
_.B("design:type",Object)],B3.prototype,"searchVideoResultEntity",void 0);_.A([_.uA("ytd-thumbnail"),_.B("design:type",HTMLElement)],B3.prototype,"thumbnail",void 0);_.A([_.uA("#dismissible"),_.B("design:type",HTMLElement)],B3.prototype,"JSC$12961_dismissibleMedia",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],B3.prototype,"dataChanged",null);
_.A([_.R("searchVideoResultEntity"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],B3.prototype,"hideTranslation",null);_.A([_.R("searchVideoResultEntity"),_.B("design:type",Array),_.B("design:paramtypes",[])],B3.prototype,"hiddenBadgeGroups",null);_.A([_.R("data","useAvatar"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],B3.prototype,"shouldShowChannelThumbnail",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],B3.prototype,"useAvatar",null);
_.A([_.R("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],B3.prototype,"isHovered",null);B3=_.A([_.U({is:"ytd-video-renderer",disableElementRegistration:!0})],B3);_.Q(B3,"ytd-video-renderer",function(){return wXg()},{mode:_.QQ("kevlar_poly_si_batch_j047")?1:2});var q5=function(){var r=_.y.apply(this,arguments)||this;r.editDialog=null;r.roundedContainer=!0;r.isLoading=!1;r.isRichGrid=!1;r.isRichGridRepost=!1;r.reduceSidePaddings=_.N("reduce_side_paddings_in_shelf");r.JSC$12968_spinnerEl=null;return r};
_.t(q5,_.y);_.l=q5.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 r=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var f=0,I=this.data.actions&&this.data.actions.length;f<I;f++)this.openEditDialog(_.F(this.data.actions[f],PwV));if((f=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(f=this.get("buttonRenderer.hint.hintRenderer.hintId",f))&&f.startsWith("share-post-hint")){var C=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(C){_.Zv.getInstance();var Y=G$(_.iX(_.VR("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.F_.addLowPriorityJob(function(){_.rX(r.hostElement,Y,C)})}}}};
_.l.updatePoll=function(r){r>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.l.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12968_spinnerEl||(this.JSC$12968_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.e(this.hostElement).appendChild(this.JSC$12968_spinnerEl));this.JSC$12968_spinnerEl&&(this.JSC$12968_spinnerEl.active=this.isLoading)};
_.l.onYtNavigate=function(r){var f=this.get("updateCommentDialogEndpoint",r.detail.endpoint);f&&(this.openEditDialog(f),r.stopPropagation())};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null};
_.l.onYtCommentPollRevert=function(r,f){f&&this.updatePoll(f.selectedChoiceIndex)};
_.l.onYtServiceRequestSent=function(r,f){var I;f.endpoint&&(_.F(f.endpoint,o$3)||_.F(f.endpoint,Olg)&&((I=_.F(f.endpoint,Olg))==null||!I.clientActions))&&(this.isLoading=!0);if(f.actions)for(r=0;r<f.actions.length;r++)I=f.actions[r],_.F(I,XD)&&(I=this.get("updateBackstagePollAction.selectedChoiceIndex",I),I==void 0&&(I=-1),this.updatePoll(I))};
_.l.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.l.openEditDialog=function(r){r&&r.dialog&&(this.editDialog=r.dialog,r=this.editDialogEl.firstElementChild)&&(r.focus(),r.openDialog&&r.openDialog())};
_.l.computeIsPostHidden=function(r,f){return!!r||f};
_.l.computeSurfaceType=function(r){return r?r.toLowerCase().replace(/_/g,"-"):""};
_.l.computeUsesCompactLockup=function(r){return r==="BACKSTAGE_SURFACE_TYPE_HOME"||r==="BACKSTAGE_SURFACE_TYPE_SEARCH"||r==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||r==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||r==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||r==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.l.computeShowWithoutToolbar=function(r){return!r.actionButtons&&!r.actionMenu};
_.l.computePostAttachment=function(r){if(r.backstageAttachment){if(_.F(r.backstageAttachment,XqC))return"poll";if(_.F(r.backstageAttachment,YKq))return"quiz";if(_.F(r.backstageAttachment,_.e8))return"video";if(_.F(r.backstageAttachment,l4q))return"uploaded-videos";if(_.F(r.backstageAttachment,D24))return r.contentText?"image":"image-only";if(_.F(r.backstageAttachment,rPX))return"playlist"}return"none"};
_.l.computePostTabIndex=function(r){return r?0:-1};
_.l.computeButtonTooltipPosition=function(r){return this.computeUsesCompactLockup(r)?"top":"bottom"};
_.l.computeHasText=function(r){return!(r==null||!r.contentText)};
_.l.onTap=function(r){var f,I;if(((f=this.data)==null?0:f.navigationEndpoint)&&((I=this.data)==null?void 0:I.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var C;((C=this.data)==null?0:C.navigationEndpoint)&&!_.iB(_.JN(r)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.kA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.OC.Object.defineProperties(q5.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.voteCount)||_.iX("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.F(this.data.backstageAttachment,XqC))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.F(this.data.backstageAttachment,l4q))}}});
q5.prototype.onYtServiceRequestCompleted=q5.prototype.onYtServiceRequestCompleted;q5.prototype.onYtServiceRequestSent=q5.prototype.onYtServiceRequestSent;q5.prototype.onYtCommentPollRevert=q5.prototype.onYtCommentPollRevert;q5.prototype.onYtCommentboxDismiss=q5.prototype.onYtCommentboxDismiss;q5.prototype.onYtNavigate=q5.prototype.onYtNavigate;q5.prototype.isLoadingChanged=q5.prototype.isLoadingChanged;q5.prototype.dataChanged=q5.prototype.dataChanged;q5.prototype.contentTextChanged=q5.prototype.contentTextChanged;
_.A([_.J(_.TD),_.B("design:type",Object)],q5.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],q5.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],q5.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],q5.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Object)],q5.prototype,"editDialog",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],q5.prototype,"roundedContainer",void 0);_.A([_.K(),_.B("design:type",Object)],q5.prototype,"isLoading",void 0);_.A([_.K({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.B("design:type",String)],q5.prototype,"surface",void 0);
_.A([_.K({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.B("design:type",Boolean)],q5.prototype,"usesCompactLockup",void 0);_.A([_.K({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],q5.prototype,"showWithoutToolbar",void 0);_.A([_.K({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.B("design:type",String)],q5.prototype,"attachment",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],q5.prototype,"isRichGrid",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],q5.prototype,"isRichGridRepost",void 0);_.A([_.K({reflectToAttribute:!0,value:_.N("use_better_post_dismissals")}),_.B("design:type",Boolean)],q5.prototype,"useBetterPostDismissals",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],q5.prototype,"reduceSidePaddings",void 0);
_.A([_.K({computed:"computeHasText(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],q5.prototype,"hasText",void 0);_.A([_.uA("#expander"),_.B("design:type",Object)],q5.prototype,"expander",void 0);_.A([_.uA("#action-buttons"),_.B("design:type",Object)],q5.prototype,"actionButtons",void 0);_.A([_.uA("#edit-dialog"),_.B("design:type",HTMLElement)],q5.prototype,"editDialogEl",void 0);
_.A([_.Bt("data.contentText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],q5.prototype,"contentTextChanged",null);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],q5.prototype,"dataChanged",null);_.A([_.Bt("isLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],q5.prototype,"isLoadingChanged",null);
_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],q5.prototype,"onYtNavigate",null);_.A([_.kO("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],q5.prototype,"onYtCommentboxDismiss",null);_.A([_.kO("yt-comment-poll-revert"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],q5.prototype,"onYtCommentPollRevert",null);
_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],q5.prototype,"onYtServiceRequestSent",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],q5.prototype,"onYtServiceRequestCompleted",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],q5.prototype,"voteCount",null);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],q5.prototype,"commentCount",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],q5.prototype,"hasPoll",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],q5.prototype,"hasUploadedVideo",null);q5=_.A([_.U({is:"ytd-post-renderer",disableElementRegistration:!0})],q5);
_.Q(q5,"ytd-post-renderer",function(){if(Tg_!==void 0)return Tg_;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Tg_=r},{mode:1});var bmX;var pXB;var uc=function(){return _.y.apply(this,arguments)||this};
_.t(uc,_.y);uc.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],uc.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],uc.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.ZL.YtdHorizontalListBehavior),_.B("design:type",Object)],uc.prototype,"ytdHorizontalListBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],uc.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],uc.prototype,"data",void 0);
_.A([_.K({value:"$.items.children"}),_.B("design:type",String)],uc.prototype,"itemsPath",void 0);_.A([_.K({value:1}),_.B("design:type",Number)],uc.prototype,"initialCount",void 0);_.A([_.K(),_.B("design:type",String)],uc.prototype,"surface",void 0);uc=_.A([_.U({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],uc);
_.Q(uc,"ytd-post-multi-image-renderer",function(){if(pXB!==void 0)return pXB;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return pXB=r},{mode:_.QQ("kevlar_poly_si_batch_j079")?1:2});var nvC={"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"}}},D2=function(){var r=_.y.apply(this,arguments)||this;r.hasInlineCommentSection=!1;r.editDialog=null;r.isLoading=!1;r.shouldHideAuthor=!1;r.shouldShowVideoTime=!1;
r.isInEngagementPanel=!1;r.hideBorder=!1;r.usesFullLockup=!1;r.shouldShowMenuInCompactView=!1;r.JSC$12984_spinnerEl=null;r.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return r};
_.t(D2,_.y);_.l=D2.prototype;_.l.configureRendererStamper=function(){return nvC};
_.l.computeIsPollHeaderEnabled=function(r){return(r==null?void 0:r.pollMetadataIcon)!=null};
_.l.getPublishTimeStampString=function(r,f){f=new Date((Number(f)-60*((new Date).getTimezoneOffset()-(new Date(Number(f)*1E3)).getTimezoneOffset()))*1E3);f=(new JQ(10)).format(f);if(r&&r.runs&&r.runs.length)for(var I=0;I<r.runs.length;I++)r.runs[I].text&&(r.runs[I].text=r.runs[I].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",f));return r};
_.l.created=function(){this.JSC$12984_spinnerEl=null};
_.l.contentTextChanged=function(){this.expander.reset()};
_.l.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var r;if((r=this.data)==null?0:r.actions){r=_.E(this.data.actions);for(var f=r.next();!f.done;f=r.next())this.openEditDialog(_.F(f.value,PwV))}};
_.l.handleSignalActionOpenPostCommentDialogAction=function(){_.e(this.hostElement).querySelector("#action-buttons").reply()};
_.l.updatePoll=function(r,f){f&&this.set("data.pollMetadataVoteCountText",f);this.hasInlineCommentSection&&(r=r>=0,f=_.e(this.hostElement).querySelector("#action-buttons"),r?f.reply():f.hideReplyDialog())};
_.l.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12984_spinnerEl||(this.JSC$12984_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.e(this.hostElement).appendChild(this.JSC$12984_spinnerEl));this.JSC$12984_spinnerEl&&(this.JSC$12984_spinnerEl.active=this.isLoading)};
_.l.onYtNavigate=function(r){var f=this.get("updateCommentDialogEndpoint",r.detail.endpoint);f&&(this.openEditDialog(f),r.stopPropagation())};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null};
_.l.onYtCommentPollRevert=function(r,f){f&&this.updatePoll(f.selectedChoiceIndex,f.totalVotes)};
_.l.onYtServiceRequestSent=function(r,f){r.stopPropagation();r=_.F(f.endpoint,Olg);if(_.F(f.endpoint,o$3)||r&&!r.clientActions)this.isLoading=!0;if(f.actions)for(r=0;r<f.actions.length;r++){var I=f.actions[r],C=_.F(I,XD);C&&(I=this.get("updateBackstagePollAction.selectedChoiceIndex",I),I===void 0&&(I=-1),this.updatePoll(I,C.totalVotes))}};
_.l.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.l.openEditDialog=function(r){r&&r.dialog&&(this.editDialog=r.dialog,r=this.editDialogElement.firstElementChild)&&(r.focus(),r.openDialog&&r.openDialog())};
_.l.computeIsBodyHidden=function(r,f){return!!r||f};
_.OC.Object.defineProperties(D2.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var r,f;if((r=this.data)==null?0:(f=r.pollMetadataIcon)==null?0:f.iconType)return _.kN(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.voteCount)||_.iX("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.F(this.data.backstageAttachment,XqC))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.F(this.data.backstageAttachment,YKq))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.F(this.data.backstageAttachment,l4q))}}});
D2.prototype.onYtServiceRequestCompleted=D2.prototype.onYtServiceRequestCompleted;D2.prototype.onYtServiceRequestSent=D2.prototype.onYtServiceRequestSent;D2.prototype.onYtCommentPollRevert=D2.prototype.onYtCommentPollRevert;D2.prototype.onYtCommentboxDismiss=D2.prototype.onYtCommentboxDismiss;D2.prototype.onYtNavigate=D2.prototype.onYtNavigate;D2.prototype.isLoadingChanged=D2.prototype.isLoadingChanged;D2.prototype.dataChanged=D2.prototype.dataChanged;D2.prototype.contentTextChanged=D2.prototype.contentTextChanged;
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],D2.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],D2.prototype,"rendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],D2.prototype,"rendererstamperBehavior",void 0);_.A([_.uA("#contentTextExpander"),_.B("design:type",Object)],D2.prototype,"expander",void 0);
_.A([_.uA("#edit-dialog"),_.B("design:type",Element)],D2.prototype,"editDialogElement",void 0);_.A([_.K(),_.B("design:type",Object)],D2.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],D2.prototype,"hasInlineCommentSection",void 0);_.A([_.K(),_.B("design:type",Object)],D2.prototype,"editDialog",void 0);_.A([_.K(),_.B("design:type",Object)],D2.prototype,"isLoading",void 0);
_.A([_.K({computed:"computeIsPollHeaderEnabled(data)"}),_.B("design:type",Boolean)],D2.prototype,"isPollHeaderEnabled",void 0);_.A([_.K(),_.B("design:type",Object)],D2.prototype,"shouldHideAuthor",void 0);_.A([_.K(),_.B("design:type",Object)],D2.prototype,"shouldShowVideoTime",void 0);_.A([_.K(),_.B("design:type",Object)],D2.prototype,"isInEngagementPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],D2.prototype,"hideBorder",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],D2.prototype,"usesFullLockup",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],D2.prototype,"shouldShowMenuInCompactView",void 0);_.A([_.R("isInEngagementPanel"),_.B("design:type",Number),_.B("design:paramtypes",[])],D2.prototype,"postTextMaxLines",null);_.A([_.R("data.icon.iconType"),_.B("design:type",Object),_.B("design:paramtypes",[])],D2.prototype,"pollIcon",null);
_.A([_.Bt("data.contentText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],D2.prototype,"contentTextChanged",null);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],D2.prototype,"dataChanged",null);_.A([_.Bt("isLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],D2.prototype,"isLoadingChanged",null);
_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],D2.prototype,"onYtNavigate",null);_.A([_.kO("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],D2.prototype,"onYtCommentboxDismiss",null);_.A([_.kO("yt-comment-poll-revert"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],D2.prototype,"onYtCommentPollRevert",null);
_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],D2.prototype,"onYtServiceRequestSent",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],D2.prototype,"onYtServiceRequestCompleted",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],D2.prototype,"voteCount",null);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],D2.prototype,"commentCount",null);_.A([_.R("data.backstageAttachment"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],D2.prototype,"hasPoll",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],D2.prototype,"hasQuiz",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],D2.prototype,"hasUploadedVideo",null);
D2=_.A([_.U({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],D2);
_.Q(D2,"ytd-backstage-post-renderer",function(){if(bmX!==void 0)return bmX;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return bmX=r},{mode:1});var dZU;var rA=function(){var r=_.y.apply(this,arguments)||this;r.editDialog=null;r.showExpandButton=!1;r.isRichGrid=!1;r.usesFullLockup=!1;return r};
_.t(rA,_.y);_.l=rA.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(r){return this.usesCompactLockup||r&&r.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.l.computeUsesCompactLockup=function(r){return!!r.condensedContent};
_.l.computeShowFullContentText=function(r){return!r};
_.l.onYtNavigate=function(r){r=this.get("updateCommentDialogEndpoint",r.detail.endpoint);this.openEditDialog(r)};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null};
_.l.openEditDialog=function(r){r&&r.dialog&&(this.editDialog=r.dialog,r=this.repostEditDialogEl.firstElementChild)&&(r.focus(),r.openDialog&&r.openDialog())};
_.l.onTap=function(r){if(this.data){var f=null;this.usesCompactLockup&&!_.iB(_.JN(r)||[],this.hostElement,["YT-IMG-SHADOW"])?f=this.get("navigationEndpoint",this.data):r.target===this.moreButtonEl&&(f=this.get("navigationEndpoint",r.target.data));f&&_.kA(this.hostElement,"yt-navigate",{endpoint:f})}};
rA.prototype.onYtCommentboxDismiss=rA.prototype.onYtCommentboxDismiss;rA.prototype.onYtNavigate=rA.prototype.onYtNavigate;rA.prototype.dataChanged=rA.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],rA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],rA.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Object)],rA.prototype,"editDialog",void 0);_.A([_.K({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],rA.prototype,"usesCompactLockup",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],rA.prototype,"showExpandButton",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],rA.prototype,"isRichGrid",void 0);
_.A([_.K({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.B("design:type",Boolean)],rA.prototype,"showFullContentText",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],rA.prototype,"usesFullLockup",void 0);_.A([_.uA("#more"),_.B("design:type",Object)],rA.prototype,"moreButtonEl",void 0);_.A([_.uA("#repost-content-text"),_.B("design:type",HTMLElement)],rA.prototype,"repostContentTextEl",void 0);
_.A([_.uA("#repost-edit-dialog"),_.B("design:type",HTMLElement)],rA.prototype,"repostEditDialogEl",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rA.prototype,"dataChanged",null);_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],rA.prototype,"onYtNavigate",null);
_.A([_.kO("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rA.prototype,"onYtCommentboxDismiss",null);rA=_.A([_.U({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],rA);
_.Q(rA,"ytd-shared-post-renderer",function(){if(dZU!==void 0)return dZU;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return dZU=r},{mode:1});var za_;var Mx3;var fB=function(){return _.y.apply(this,arguments)||this};
_.t(fB,_.y);fB.prototype.attached=function(){var r=this;this.networkStatusManager||(this.networkStatusManager=new _.ix,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){r.onlineHandler()}))};
fB.prototype.detached=function(){var r=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){r.onlineHandler()}),delete this.networkStatusManager)};
fB.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],fB.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],fB.prototype,"data",void 0);fB=_.A([_.U({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],fB);
_.Q(fB,"ytd-reload-page-button-renderer",function(){if(Mx3!==void 0)return Mx3;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
return Mx3=r},{mode:1});var gvs={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"},IQ=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return r};
_.t(IQ,_.y);_.l=IQ.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(r){return!!r.bodyText};
_.l.computeButtons=function(r){var f=[];r.ctaButton&&f.push(r.ctaButton);r.secondaryButton&&f.push(r.secondaryButton);return f};
_.l.computeRendererStyle=function(r){return r.style?r.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():r.icon?"":"no-icon"};
_.l.getIconName=function(r,f){f=f===void 0?!1:f;if(r===void 0)return"";r=this.get("icon.iconType",r);var I;_.N("enable_hlp_client_icon_pick")?I=this.getThemedIcon(r,f):I=r;(f=gvs[I])||(f="yt-icons");return[f,I].join(":")};
_.l.getThemedIcon=function(r,f){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(r)?f?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(r)?f?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":r};
_.l.isThumbnail=function(r){return!!r.thumbnail};
_.l.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.l.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],IQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],IQ.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],IQ.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],IQ.prototype,"data",void 0);
_.A([_.K({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.B("design:type",String)],IQ.prototype,"rendererStyle",void 0);_.A([_.K({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.B("design:type",String)],IQ.prototype,"iconName",void 0);_.A([_.K({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],IQ.prototype,"thumbnail",void 0);_.A([_.K({computed:"computeButtons(data)"}),_.B("design:type",Array)],IQ.prototype,"buttons",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],IQ.prototype,"isDarkTheme",void 0);_.A([_.K({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],IQ.prototype,"hasBodyText",void 0);IQ=_.A([_.U({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],IQ);
_.Q(IQ,"ytd-background-promo-renderer",function(){if(za_!==void 0)return za_;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return za_=r},{mode:1});var aOU;var CB=function(){var r=_.y.apply(this,arguments)||this;r.collections=_.N("web_modern_collections_v2");return r};
_.t(CB,_.y);_.OC.Object.defineProperties(CB.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var r,f,I,C,Y,V;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(r=this.data)==null?void 0:(f=r.thumbnail)==null?void 0:f.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(C=I.thumbnail)==null?void 0:C.vibrantColorPalette,darkColorPalette:(Y=this.data)==null?void 0:(V=Y.thumbnail)==null?void 0:V.darkColorPalette,experimentEnabled:this.collections}}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],CB.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],CB.prototype,"collections",void 0);_.A([_.R("data","collections"),_.B("design:type",Object),_.B("design:paramtypes",[])],CB.prototype,"collectionStack",null);CB=_.A([_.U({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],CB);
_.Q(CB,"ytd-compact-station-renderer",function(){if(aOU!==void 0)return aOU;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return aOU=r},{mode:1});var XXX;var Yh=function(){var r=_.y.apply(this,arguments)||this;r.isRichGrid=!1;return r};
_.t(Yh,_.y);Yh.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]]"}}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Yh.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Yh.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Yh.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Yh.prototype,"isRichGrid",void 0);Yh=_.A([_.U({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],Yh);
_.Q(Yh,"ytd-grid-channel-renderer",function(){if(XXX!==void 0)return XXX;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return XXX=r},{mode:1});var NoD;var lF=function(){return _.y.apply(this,arguments)||this};
_.t(lF,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],lF.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],lF.prototype,"data",void 0);lF=_.A([_.U({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],lF);
_.Q(lF,"ytd-grid-movie-playlist-renderer",function(){if(NoD!==void 0)return NoD;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return NoD=r},{mode:1});var $Zg;var VZ=function(){var r=_.y.apply(this,arguments)||this;r.downloadProgress=0;r.transferState="TRANSFER_STATE_UNKNOWN";r.modernButtons=_.N("web_modern_buttons");r.useModernCollectionsV2=_.N("web_modern_collections_v2");return r};
_.t(VZ,_.y);VZ.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
VZ.prototype.configureRendererStamper=function(){return{"data.menu":It}};
VZ.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
VZ.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.N("woffle_playlist_renderer_killswitch")){var r,f=PHE(this.entityInfo,this.transferState,this.downloadProgress,(r=this.data)==null?void 0:r.playlistId,this.isOnline);r=f.viewPlaylistText;var I=f.badges;f=f.thumbnailOverlays;this.isDownloads=!!r||!!I;this.set("data.viewPlaylistText",r);I&&I.length>0&&this.set("data.badges",I);f&&f.length>0&&this.set("data.thumbnailOverlays",
f)}};
_.OC.Object.defineProperties(VZ.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 r;return!((r=this.data)==null?0:r.menu)}}});
VZ.prototype.transferStateChanged=VZ.prototype.transferStateChanged;VZ.prototype.dataChanged=VZ.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.jW),_.B("design:type",Object)],VZ.prototype,"ytdLockupBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],VZ.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],VZ.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.K({selector:_.yLd,selectorArgs:["data.playlistId"]}),_.B("design:type",Object)],VZ.prototype,"downloadProgress",void 0);_.A([_.K({selector:_.P1,selectorArgs:["data.playlistId"]}),_.B("design:type",Object)],VZ.prototype,"transferState",void 0);_.A([_.K({selector:KRR,selectorArgs:["data.playlistId"]}),_.B("design:type",Object)],VZ.prototype,"entityInfo",void 0);_.A([_.K({selector:JLP}),_.B("design:type",Boolean)],VZ.prototype,"isOnline",void 0);
_.A([_.K(),_.B("design:type",Object)],VZ.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],VZ.prototype,"downloadRenderData",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],VZ.prototype,"modernButtons",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],VZ.prototype,"isDownloads",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],VZ.prototype,"useModernCollectionsV2",void 0);
_.A([_.R("transferState"),_.K({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],VZ.prototype,"downloadState",null);_.A([_.R("data"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],VZ.prototype,"menuHidden",null);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VZ.prototype,"dataChanged",null);
_.A([_.YN("transferState","downloadProgress","isOnline"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VZ.prototype,"transferStateChanged",null);VZ=_.A([_.U({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],VZ);
_.Q(VZ,"ytd-grid-playlist-renderer",function(){if($Zg!==void 0)return $Zg;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return $Zg=r},{mode:1});var FsX;var EJ=function(){var r=_.y.apply(this,arguments)||this;r.collections=_.N("web_modern_collections_v2");return r};
_.t(EJ,_.y);EJ.prototype.configureRendererStamper=function(){return{"data.menu":It,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.OC.Object.defineProperties(EJ.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var r,f,I,C,Y,V;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(r=this.data)==null?void 0:(f=r.thumbnail)==null?void 0:f.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(C=I.thumbnail)==null?void 0:C.vibrantColorPalette,darkColorPalette:(Y=this.data)==null?void 0:(V=Y.thumbnail)==null?void 0:V.darkColorPalette,experimentEnabled:this.collections}}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],EJ.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.J(_.jW),_.B("design:type",Object)],EJ.prototype,"ytdLockupBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],EJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],EJ.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],EJ.prototype,"collections",void 0);_.A([_.R("data","collections"),_.B("design:type",Object),_.B("design:paramtypes",[])],EJ.prototype,"collectionStack",null);EJ=_.A([_.U({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],EJ);
_.Q(EJ,"ytd-grid-radio-renderer",function(){if(FsX!==void 0)return FsX;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return FsX=r},{mode:1});var P5V;var S9=function(){var r=_.y.apply(this,arguments)||this;r.useModernCollectionsV2=_.N("web_modern_collections_v2");return r};
_.t(S9,_.y);S9.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
S9.prototype.computeNavigationEndpoint=function(r){return CCl(r==null?void 0:r.navigationEndpoint)};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],S9.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],S9.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.jW),_.B("design:type",Object)],S9.prototype,"ytdLockupBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],S9.prototype,"data",void 0);_.A([_.K({computed:"computeNavigationEndpoint(data)"}),_.B("design:type",Object)],S9.prototype,"computedNavigationEndpoint",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],S9.prototype,"useModernCollectionsV2",void 0);S9=_.A([_.U({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],S9);
_.Q(S9,"ytd-grid-show-renderer",function(){if(P5V!==void 0)return P5V;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return P5V=r},{mode:1});var txq;_.xh=function(r){this.playerClient=r};
_.To_=function(r,f,I){I=I===void 0?{}:I;return r.playerClient.setOption("ad",f,I)};
_.xh.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.xh.prototype.executeCommand=function(r,f){this.getOptions().includes("executeCommand")?_.To_(this,"executeCommand",{command:r,layoutId:f}):_.Bo("Calling executeCommand when adModule is not loaded")};var hI=function(){return _.y.apply(this,arguments)||this};
_.t(hI,_.y);hI.prototype.getLayoutId=function(){var r=_.jH("yt.www.ads.eventcache.getLastCompanionData");return r?(r=r())&&r.layoutId:null};
hI.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var r=_.sk(),f=this.getLayoutId(),I=this.data.clickthroughEndpoint;r&&f&&_.N("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?r.getPlayerPromise().then(function(C){(new _.xh(C)).executeCommand(I,f)}):_.kA(this.hostElement,"yt-navigate",{endpoint:I})}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],hI.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],hI.prototype,"data",void 0);hI=_.A([_.U({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],hI);
_.Q(hI,"ytd-shopping-companion-item-renderer",function(){if(txq!==void 0)return txq;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return txq=r},{mode:1});var c$8;var wA=function(){var r=_.y.apply(this,arguments)||this;r.isExpandableContent=!1;return r};
_.t(wA,_.y);_.OC.Object.defineProperties(wA.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return((r=this.data)==null?void 0:r.price)||((f=this.data)==null?void 0:(I=f.dealsData)==null?void 0:I.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var r,f;if((r=this.data)!=null&&r.dealsData&&((f=this.data)==null||!f.priceReplacementText)){r=this.data.dealsData;var I,C,Y;return((I=r.salesData)==null?void 0:I.originalPrice)||((C=r.priceDropData)==null?void 0:C.referencePrice)||((Y=r.promotionData)==null?void 0:Y.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var r,f;return(r=this.data)==null?void 0:(f=r.dealsData)==null?void 0:f.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],wA.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],wA.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],wA.prototype,"isExpandableContent",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],wA.prototype,"showCta",null);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],wA.prototype,"ctaText",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],wA.prototype,"hasPriceTopPosition",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],wA.prototype,"hasPriceBottomPosition",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],wA.prototype,"useNewStyle",null);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],wA.prototype,"showPriceReplacementText",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],wA.prototype,"priceValue",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],wA.prototype,"showDeal",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],wA.prototype,"showAffiliateDisclaimer",null);
_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],wA.prototype,"useSaleStyle",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],wA.prototype,"useFromBrandCtaStyle",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],wA.prototype,"useFromVendorCtaStyle",null);
_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],wA.prototype,"useShoppingCollectionCtaStyle",null);wA=_.A([_.U({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],wA);
_.Q(wA,"ytd-vertical-product-card-renderer",function(){if(c$8!==void 0)return c$8;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return c$8=r},{mode:1});var Ws3;var bF=function(){return _.y.apply(this,arguments)||this};
_.t(bF,_.y);bF.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],bF.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.jW),_.B("design:type",Object)],bF.prototype,"ytdLockupBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],bF.prototype,"data",void 0);bF=_.A([_.U({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],bF);
_.Q(bF,"ytd-grid-movie-renderer",function(){if(Ws3!==void 0)return Ws3;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Ws3=r},{mode:1});var LsX;var pB=function(){var r=_.y.apply(this,arguments)||this;r.rounded=!0;r.itemStyle="small-item";return r};
_.t(pB,_.y);pB.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var r,f,I,C,Y=(f=_.F((r=this.data)==null?void 0:r.buttonCommand,_.RQ3))==null?void 0:(I=f.item)==null?void 0:(C=I.notificationTextRenderer)==null?void 0:C.successResponseText;Y&&_.lZm(this.hostElement,Y)}};
_.OC.Object.defineProperties(pB.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.data)==null?void 0:r.isProductPlaceholder)!==void 0&&((f=this.data)==null?void 0:f.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.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}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],pB.prototype,"rounded",void 0);_.A([_.K(),_.B("design:type",Object)],pB.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],pB.prototype,"itemStyle",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],pB.prototype,"hasPrice",null);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],pB.prototype,"hasPriceReplacementText",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],pB.prototype,"hasAdditionalFeesText",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],pB.prototype,"hasAffiliateDisclaimer",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],pB.prototype,"isProductPlaceholder",null);
_.A([_.K(),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],pB.prototype,"hideOpenInNewIcon",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],pB.prototype,"ariaLabel",null);pB=_.A([_.U({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],pB);
_.Q(pB,"ytd-merch-shelf-item-renderer",function(){if(LsX!==void 0)return LsX;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return LsX=r},{mode:1});var mZ4=_.Hc(function(r){var f=_.yy();_.KF(f,function(){return r.data().rendererContext});
return _.p("button-card-view-model",{el:f,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return r.data().title},
role:"button"},_.p(_.xZ,{model:{}}),_.p("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.p("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.p(_.M,{cond:function(){return r.data().image},
then:function(I){return _.p(_.J3,{data:I,alt:function(){var C;return(C=r.data().title)!=null?C:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.p("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return r.data().title})))},"Ua");_.N("web_button_view_model_wcw_registration_killswitch")||_.Kv(mZ4,"button-card-view-model",{props:{data:_.jv}});_.Kv(_.Hc(function(r){r=_.jS(r,{className:void 0});var f=r.data;r=r.className;var I=_.hR(function(){return f().onTapCommand},void 0,"NprDr");
return _.p("ytd-shopping-item-card",{class:_.qd("ytdShoppingItemCardHost",r)},_.p(_.h8,{command:I,className:"ytdShoppingItemCardHostLink"},_.p("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.p(_.X1,{data:function(){return f().thumbnailViewModel}},{thumbnailViewModel:function(C){return _.p(_.v3,{data:C.data,
aspectRatio:3})}})),_.p("div",null,_.p("p",{class:"ytdShoppingItemCardHostItemTitle"},_.p(_.wW,{text:function(){return f().itemTitle}})),_.p("p",{class:"ytdShoppingItemCardHostPrice"},_.p(_.wW,{text:function(){return f().priceOrStatus}})))))},"Va"),"ytd-shopping-item-card",{props:{data:_.jv,
className:_.jv}});var ea3={isAdsVideo:!0},J$3={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},jW3={showPlayerControls:!1,videoPreviewDurationMs:15E3},nDE={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.N("web_shorts_imp_fullwidth_killswitch")};var qI=null,VV$={};var xwq="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(" "),nB={},hYu=(nB.FEwhat_to_watch="home",nB.FEhashtag="hashtag",nB.FEtrending="trending",nB.FEhistory="history",nB.SPunlimited="premium",nB.FEmemberships_and_purchases="paid_memberships",nB.SPredeem_code="redeem",nB.SPverify_location="locate",nB.SPminor_moment="minor_moment",
nB.FEmini_app_container="mini_app",nB.FEnews_destination="news",nB.SPopen_in_app="open_in_app",nB.FEexplore="explore",nB.FEsubscriptions="subscriptions",nB.FEsfv_audio_pivot="sfv_audio_pivot",nB.FEplaylist_aggregation="playlist_aggregation",nB);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");_.fe("init");var Hm3=function(){},Ks4=_.Hc(function(r){var f=r.data;
var I=r.inlineMetadata;var C=r.aspectRatio;var Y=r.scrimStyle;var V=r.className;var S=r.useDefaultStyle;var h=new Hm3,w=_.N("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",n=_.hR(function(){return(S==null?0:S())?w==="SHORTS_LOCKUP_STYLE_SLIM":f().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"x5GdUe"),d=_.hR(function(){return _.tR(I)||n()||!1},void 0,"pcPnBf"),z=function(){return(Y==null?void 0:Y())!==void 0?Y==null?void 0:Y():1};
r=_.yy(function(k){h&&(h.hostElement=k,W())});
_.ZW(r,{visibilityCallback:function(k){var Z=f().onFirstVisible;k&&Z&&_.F2(Z)},
showOption:{calledOnce:!0,state:"visible"}});V=_.qd("shortsLockupViewModelHost",V);var g=_.yy(),X={};X=_.qd(function(){return n(),"shortsLockupViewModelHostThumbnailContainer"},(X.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.tR(C)===1},X.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.tR(C)===2},X.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!n()},X.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.N("web_shorts_2_by_3_lockups_study")&&!_.N("desktop_search_enable_two_by_three_shorts_aspect_ratio")},X));
var P,W=function(){if(h){var k;(k=P)==null||rY(k);var Z;h.hostElement&&((Z=h.data)==null?0:Z.inlinePlayerData)&&(P=O0({mediaRenderer:h,lockupElement:h.hostElement,thumbnailElement:g.value,videoPreviewOpts:nDE}))}};
_.az(function(){h&&(h.data=f(),W())});
var m=_.hR(function(){return f().thumbnail},void 0,"FXJKOd"),v=_.hR(function(){return f().badge},void 0,"RHSDwe"),O=_.hR(function(){return f().onTap},void 0,"twXQme");
return _.p("ytm-shorts-lockup-view-model",{el:r,class:V},_.p(_.B9,null,_.p(_.h8,{command:O,className:_.qd("shortsLockupViewModelHostEndpoint","reel-item-endpoint",""),ariaHidden:function(){return!d()},
tabIndex:function(){return d()?0:-1}},_.p("div",{el:g,
class:X},_.p(_.M,{cond:m,then:function(){return _.p(_.J3,{data:function(){return m()},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.p(_.M,{cond:d,
then:function(){return _.p(imB,{data:f,scrimStyle:z,useDefaultStyle:S})}}),_.p(_.X1,{data:v},{badgeViewModel:function(k){return _.p(_.sq,{data:k.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.p(_.M,{cond:function(){return d()&&f().menuOnTap},
then:function(){return _.p(Ra3,{data:f,inlineMetadata:!0})}}),_.p(_.M,{cond:function(){return!d()},
then:function(){return _.p(vv_,{data:f,useDefaultStyle:S})}})))},"Wa"),imB=_.Hc(function(r){var f=r.data;
var I=r.scrimStyle;var C=r.useDefaultStyle;var Y=_.N("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",V=C&&_.N("web_hide_primary_text_for_pivot_panel"),S=_.hR(function(){return(C==null?0:C())?Y==="SHORTS_LOCKUP_STYLE_SLIM":f().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"qtqqA");
r={};r=_.qd("shortsLockupViewModelHostInlineMetadata",(r.shortsLockupViewModelHostMetadataRounded=function(){return!S()},r.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(I==null?void 0:I())===3&&!_.N("enable_shorts_lockup_new_scrim")},r.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(I==null?void 0:I())===3&&_.N("enable_shorts_lockup_new_scrim")},r.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(I==null?void 0:I())===2||(I==null?void 0:
I())===4},r.shortsLockupViewModelHostShowOverPlayer=function(){return!0},r),"image-overlay-text");
var h={};return _.p("div",{class:r},_.p("h3",{class:_.qd("shortsLockupViewModelHostMetadataTitle",(h.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(I==null?void 0:I())===4},h)),
"aria-label":function(){return f().accessibilityText}},_.p(_.M,{cond:function(){var w;
return!((w=f().overlayMetadata)==null||!w.primaryText)&&!V},
then:function(){return _.p(_.wW,{text:function(){var w;return(w=f().overlayMetadata)==null?void 0:w.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.p(_.M,{cond:function(){var w;
return(w=f().overlayMetadata)==null?void 0:w.secondaryText},
then:function(){return _.p(y$q,{data:f,scrimStyle:I,className:void 0})}}))},"Xa"),vv_=_.Hc(function(r){var f=r.data;
var I=r.useDefaultStyle;var C=_.N("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",Y=_.hR(function(){return(I==null?0:I())?C==="SHORTS_LOCKUP_STYLE_SLIM":f().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"VQCGke");
r=_.qd(function(){return Y()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var V,S=_.IC(function(){var w;(w=V)==null||w.click();return!1}),h={};
return _.p("div",{class:r,"on:click":S},_.p("h3",{class:_.qd("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(h.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var w,n;return!((w=f().overlayMetadata)==null?0:(n=w.primaryText)==null?0:n.content)},h)),
"aria-label":function(){return f().accessibilityText}},_.p(_.h8,{ref:function(w){return void(V=w)},
command:function(){return f().onTap},
className:_.qd("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var w,n;return(w=f().overlayMetadata)==null?void 0:(n=w.primaryText)==null?void 0:n.content}},_.p(_.M,{cond:function(){return!!f().overlayMetadata},
then:function(){return _.p(_.wW,{text:function(){var w;return(w=f().overlayMetadata)==null?void 0:w.primaryText},
noEndpoints:!0,noStyleRuns:!0})}}))),_.p(_.M,{cond:function(){var w;
return(w=f().overlayMetadata)==null?void 0:w.secondaryText},
then:function(){return _.p(y$q,{data:f,className:"shortsLockupViewModelHostOutsideMetadataSubhead"})}}),_.p(_.M,{cond:function(){return f().menuOnTap},
then:function(){return _.p(Ra3,{data:f,inlineMetadata:!1})}}))},"Ya"),y$q=_.Hc(function(r){var f=r.data;
var I=r.scrimStyle;r=r.className;var C={};return _.p("div",{class:_.qd((C.shortsLockupViewModelHostMetadataSubhead=function(){return(I==null?void 0:I())!==4},C.shortsLockupViewModelHostMetadataSubheadNew=_.N("enable_shorts_lockup_new_scrim"),C.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(I==null?void 0:I())===4},C),r),
"aria-hidden":"true"},_.p(_.wW,{text:function(){var Y;return(Y=f().overlayMetadata)==null?void 0:Y.secondaryText},
noStyleRuns:!0}))},"Za"),Ra3=_.Hc(function(r){var f=r.data;
var I=r.inlineMetadata;r={};r=_.qd((r.shortsLockupViewModelHostInlineMetadataMenu=function(){return I()},r.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!I()},r.shortsLockupViewModelHostShowOverPlayer=function(){return!0},r),"image-overlay-text");
return _.p("div",{class:r},_.p(k4,{data:function(){return{style:I()?"overlay":"mono",accessibilityLabel:f().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(C){C.preventDefault();C.stopPropagation();var Y=_.Nd({elementsCommand:f().menuOnTap,forceNewState:!0});if(Y==null?0:Y.onclick)Y.onclick(C)}}},
iconName:"MORE_VERT"}))},"$a");var zYm=_.zk({badgeViewModel:xnE}),peK=function(){},UZD=_.rW(aZU),sW4=_.Hc(function(r){var f=r.data;
var I=r.inlineMetadata;var C=r.aspectRatio;var Y=r.scrimStyle;var V=r.className;var S=r.useDefaultStyle;r=_.hR(function(){var w=f().entityId;return w?w.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"FWALZc");
var h=_.N("web_shorts_lockup_view_model_sink")?Ks4:UZD;return _.p("ytm-shorts-lockup-view-model-v2",{class:_.qd("shortsLockupViewModelHost",V)},_.p(_.uUT,{contentId:r,aspectRatio:function(){return(C==null?void 0:C())===1?1:(C==null?void 0:C())===2?2:4}},function(){return _.p(h,{data:f,
inlineMetadata:I,aspectRatio:C,scrimStyle:Y,className:V,useDefaultStyle:S})}))},"ab");
_.GL(aZU);_.GL(dww);_.GL(gDU);_.GL(XeE);_.GL(MV$);_.Kv(sW4,"ytm-shorts-lockup-view-model-v2",{props:{data:_.vI,inlineMetadata:_.vI,aspectRatio:_.vI,scrimStyle:_.vI,className:_.vI,useDefaultStyle:_.vI}});var OmC=16/9*210,dA=function(){var r=_.y.apply(this,arguments)||this;r.isExpandableContent=!1;r.hideShelfHeader=!1;r.engagementPanel=!1;r.buttonClasses=["arrow"];r.isSearch=!1;r.disableScrollEventListener=!1;r.containsLockup=!1;r.overrideArrowPositionForProductCard=!1;r.overrideArrowPositionForShoppingItemCard=!1;r.overrideArrowPositionForReelItems=!1;r.overrideArrowPositionForGridMovie=!1;r.overrideArrowPositionToCenter=!1;r.isSearchPostShelf=!1;r.overrideArrowPositionForMixedShelf=!1;r.overrideArrowPositionForMixedShelfShortsOnly=
!1;r.hasBigThumbsReelItems=!1;r.shouldUseMixedListHeight=!1;r.shouldUseShortsListHeight=!1;r.gridVideoWidth=0;r.isSearchVodShelf=!1;r.disableWheelScroll=!1;r.sizing="COMPACT";r.shortsLockupAspectRatio=0;return r};
_.t(dA,_.y);_.l=dA.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(),_.N("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.l.computeInitialCountNumber=function(r){if(!r)return 6;var f=r.items.some(function(V){return!!V.topicRecommendationsChipRenderer}),I=r.items.some(function(V){return!!V.displayAdRenderer}),C=this.computeShouldListItemsHaveEqualHeight(r),Y=r.items.some(function(V){return!!V.gridPlaylistRenderer});
r=r.items.some(function(V){return!!V.shoppingItemCardViewModel});
return f?9:I?8:Y||C?10:r?7:6};
_.l.computeContainsPost=function(r){return!!r&&!!r.items&&r.items.some(function(f){return!!f.postRenderer})};
_.l.computeContainsLockup=function(){if(_.N("web_horizontal_list_lockup_arrow_killswitch"))return!1;var r,f;return(r=this.data)==null?void 0:(f=r.items)==null?void 0:f.some(function(I){return!!I.lockupViewModel})};
_.l.maybeUpdateLockupAspectRatio=function(){var r,f;if(this.computeContainsLockup()&&((r=this.data)==null?0:(f=r.items)==null?0:f.length)){var I;r=haP((I=this.data.items[0].lockupViewModel)==null?void 0:I.contentType,this.data.force16By9ThumbnailAspectRatio);I=q8R(r);I=this.computeLockupWidth()/I;_.Zh(this.hostElement,{"--yt-horizontal-list-content-height":I+"px"})}};
_.l.computeOverrideArrowPositionForProductCard=function(r){if(this.isExpandableContent)return!1;var f;return!!(r==null?0:(f=r.items)==null?0:f.some(function(I){return!!I.verticalProductCardRenderer}))};
_.l.computeOverrideArrowPositionForShoppingItemCard=function(r){var f;return!!(r==null?0:(f=r.items)==null?0:f.some(function(I){return!!I.shoppingItemCardViewModel}))};
_.l.computeOverrideArrowPositionForReelItemRenderer=function(r){return this.containsReelItemRenderer(r)};
_.l.computeHasBigThumbsReelItems=function(r,f){return r&&this.containsReelItemRenderer(f)};
_.l.computeShouldListItemsHaveEqualHeight=function(r){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(r==null?void 0:r.itemSizeConstraint)};
_.l.computeShouldListItemsHaveShortsHeight=function(r){return this.computeShouldListItemsHaveEqualHeight(r)&&!this.containsGridVideoRenderer(r)};
_.l.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.l.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.l.containsReelItemRenderer=function(r){var f;return!!(r==null?0:(f=r.items)==null?0:f.some(function(I){return!(!I.reelItemRenderer&&!I.shortsLockupViewModel)}))};
_.l.containsGridVideoRenderer=function(r){var f;return!!(r==null?0:(f=r.items)==null?0:f.some(function(I){return!!I.gridVideoRenderer||!!I.lockupViewModel}))};
_.l.computeContainsGridMovieRenderer=function(r){var f;return!!(r==null?0:(f=r.items)==null?0:f.some(function(I){return!!I.gridMovieRenderer}))};
_.l.computeOverrideArrowPositionToCenter=function(r){return this.computeIsSearchPostShelf(r)};
_.l.computeIsSearchPostShelf=function(r){var f;return!!(r==null?0:(f=r.items)==null?0:f.some(function(I){var C,Y;return((Y=(C=I.postRenderer)==null?void 0:C.surface)!=null?Y:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.l.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(r){var f;return!!(r==null?0:(f=r.items)==null?0:f.some(function(I){var C,Y,V;return((V=(C=I.backgroundPromoRenderer)==null?void 0:(Y=C.style)==null?void 0:Y.value)!=null?V:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.l.computeIsSearchVodShelf=function(r,f){return r&&this.containsGridVideoRenderer(f)};
_.l.computeDisableWheelScroll=function(r,f){return this.computeIsSearchVodShelf(r,f)};
_.l.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.l.computeShortsLockupAspectRatio=function(r){return r&&_.N("web_shorts_2_by_3_lockups_no_search")&&!_.N("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.l.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Zh(this.hostElement,{"--ytd-reel-item-thumbnail-height":OmC+"px"})};
dA.prototype.dataChanged=dA.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],dA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.ZL.YtdHorizontalListBehavior),_.B("design:type",Object)],dA.prototype,"ytdHorizontalListBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],dA.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Object)],dA.prototype,"isExpandableContent",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],dA.prototype,"hideShelfHeader",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],dA.prototype,"engagementPanel",void 0);_.A([_.K(),_.B("design:type",Array)],dA.prototype,"buttonClasses",void 0);_.A([_.K(),_.B("design:type",Object)],dA.prototype,"isSearch",void 0);
_.A([_.K(),_.B("design:type",Object)],dA.prototype,"disableScrollEventListener",void 0);_.A([_.K({computed:"computeInitialCountNumber(data)"}),_.B("design:type",Number)],dA.prototype,"initialCount",void 0);_.A([_.K({computed:"computeContainsPost(data)"}),_.B("design:type",Boolean)],dA.prototype,"supportComponentResize",void 0);_.A([_.K({computed:"computeContainsPost(data)"}),_.B("design:type",Boolean)],dA.prototype,"containsPost",void 0);
_.A([_.K({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.B("design:type",Object)],dA.prototype,"containsLockup",void 0);_.A([_.K({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],dA.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.A([_.K({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.B("design:type",Object)],dA.prototype,"overrideArrowPositionForProductCard",void 0);_.A([_.K({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.B("design:type",Object)],dA.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.A([_.K({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.B("design:type",Object)],dA.prototype,"overrideArrowPositionForReelItems",void 0);_.A([_.K({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.B("design:type",Object)],dA.prototype,"overrideArrowPositionForGridMovie",void 0);
_.A([_.K({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.B("design:type",Object)],dA.prototype,"overrideArrowPositionToCenter",void 0);_.A([_.K({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.B("design:type",Object)],dA.prototype,"isSearchPostShelf",void 0);_.A([_.K({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.B("design:type",Object)],dA.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.A([_.K({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.B("design:type",Object)],dA.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.A([_.K({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.B("design:type",Object)],dA.prototype,"hasBigThumbsReelItems",void 0);
_.A([_.K({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.B("design:type",Object)],dA.prototype,"shouldUseMixedListHeight",void 0);_.A([_.K({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.B("design:type",Object)],dA.prototype,"shouldUseShortsListHeight",void 0);_.A([_.K({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.B("design:type",Object)],dA.prototype,"gridVideoWidth",void 0);
_.A([_.K({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.B("design:type",Object)],dA.prototype,"isSearchVodShelf",void 0);_.A([_.K({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.B("design:type",Object)],dA.prototype,"disableWheelScroll",void 0);_.A([_.K({computed:"computeSizing(isSearch)"}),_.B("design:type",Object)],dA.prototype,"sizing",void 0);
_.A([_.K({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.B("design:type",Object)],dA.prototype,"shortsLockupAspectRatio",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dA.prototype,"dataChanged",null);
_.Q(dA,"yt-horizontal-list-renderer",function(){if(j0V===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);j0V=r}r=j0V;return r},{mode:1});var ov8;var QWg=[10,12,14,16,18,20,24,28,32,36],A$T=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],zf=function(){var r=_.y.apply(this,arguments)||this;r.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";r.hideOverflow=!1;r.useRoboto=!1;r.fontClass="";r.overflown=!1;r.actionMap={"yt-window-resized":"resize"};return r};
_.t(zf,_.y);_.l=zf.prototype;
_.l.attached=function(){var r=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();_.UC(this,function(){r.resize()});
if(!_.Yp){var f,I,C;(f=document)==null||(I=f.fonts)==null||(C=I.ready)==null||C.then(function(){r.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 r=this.getMaxNumLines(),f=this.getMinFont(),I=this.getMaxFont(),C=this.useRoboto?QWg:A$T;for(C=C.filter(function(V){return V<=I&&V>=f});C.length>1;){var Y=Math.floor(C.length/2);
this.updateFontSize(C[Y]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=r)C=C.slice(Y,C.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>r)C=C.slice(0,Y);else break}this.updateFontSize(C[C.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(r)}};
_.l.handleOverflow=function(r){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>r&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",r.toString()))};
_.l.updateFontSize=function(r){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+r;this.textNode.classList.add(this.fontClass)};
_.l.getMaxFont=function(){var r=this.useRoboto?QWg:A$T;r=r[r.length-1];return this.maxFontSize&&this.maxFontSize<=r?this.maxFontSize:r};
_.l.getMinFont=function(){var r=(this.useRoboto?QWg:A$T)[0];return this.minFontSize&&this.minFontSize>=r?this.minFontSize:r};
_.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+_.Rr(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("Fh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
zf.prototype.guideIsExpandedChanged=zf.prototype.guideIsExpandedChanged;zf.prototype.dataChanged=zf.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],zf.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],zf.prototype,"actionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],zf.prototype,"text",void 0);
_.A([_.K(),_.B("design:type",String)],zf.prototype,"fontFamily",void 0);_.A([_.K(),_.B("design:type",Number)],zf.prototype,"maxWidth",void 0);_.A([_.K(),_.B("design:type",Number)],zf.prototype,"maxHeight",void 0);_.A([_.K(),_.B("design:type",Number)],zf.prototype,"maxFontSize",void 0);_.A([_.K(),_.B("design:type",Number)],zf.prototype,"minFontSize",void 0);_.A([_.K(),_.B("design:type",Number)],zf.prototype,"maxLines",void 0);_.A([_.K(),_.B("design:type",Object)],zf.prototype,"hideOverflow",void 0);
_.A([_.K({selector:_.TaU}),_.B("design:type",Boolean)],zf.prototype,"guideIsExpanded",void 0);_.A([_.uA("#container"),_.B("design:type",HTMLElement)],zf.prototype,"containerNode",void 0);_.A([_.uA("#text"),_.B("design:type",HTMLElement)],zf.prototype,"textNode",void 0);_.A([_.YN("text"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zf.prototype,"dataChanged",null);
_.A([_.YN("guideIsExpanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zf.prototype,"guideIsExpandedChanged",null);zf=_.A([_.U({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],zf);
_.Q(zf,"yt-dynamic-sizing-formatted-string",function(){if(ov8!==void 0)return ov8;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ov8=r},{mode:1});var ZmX;_.Ga3=function(r){_.fw.call(this,r)};
_.t(_.Ga3,_.fw);var ka_=function(r){_.fw.call(this,r)};
_.t(ka_,_.Ga3);var MP=function(){return _.y.apply(this,arguments)||this};
_.t(MP,_.y);MP.prototype.onTapSuspendedChannel=function(){var r;if((r=this.data)!=null&&r.serviceEndpoint){var f,I;(r=(I=_.F((f=this.data)==null?void 0:f.serviceEndpoint,_.HR))==null?void 0:I.url)?_.$O(r,void 0,void 0,window.top):(f=new ka_("Did not handle suspended account tap. No appealUrl."),_.Fo(f))}else f=new ka_("Did not handle suspended account tap. No serviceEndpoint."),_.Fo(f)};
MP.prototype.onTap=function(){var r=this,f=_.IB(),I,C=(I=_.fv(f,{veType:7116}))!=null?I:void 0;_.cl(f,{visualElement:C});_.Xd();this.saveRoleText();var Y;if((Y=this.data)==null?0:Y.youtubeSuspended)this.onTapSuspendedChannel();else{var V=!1,S,h;(f=(h=_.F((S=this.data)==null?void 0:S.serviceEndpoint,_.BaT))==null?void 0:h.supportedTokens)&&f.forEach(function(w){if(w.accountSigninToken)if(V=!0,r.onAccountItemTap)r.onAccountItemTap(w.accountSigninToken.signinUrl);else _.$O(w.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!V){if(S=this.get("serviceEndpoint",this.data))V=!0,this.ytComponentBehavior.resolveCommand(S);V||_.PR(new ka_("Did not handle account switch tap. No token."))}}};
MP.prototype.saveRoleText=function(){if(this.data){var r=this.data,f=r.channelDelegationRole;if(f){var I,C=(I=_.F(r==null?void 0:r.serviceEndpoint,_.BaT))==null?void 0:I.supportedTokens;if(!C){var Y,V,S,h;C=(Y=_.F(r==null?void 0:r.serviceEndpoint,_.Nh))==null?void 0:(V=Y.popup)==null?void 0:(S=V.confirmDialogRenderer)==null?void 0:(h=S.confirmButton)==null?void 0:h.buttonRenderer;var w;C=(w=_.F(C==null?void 0:C.command,_.Il))==null?void 0:w.commands;if(!C)return;var n;C=(n=_.F(C[1],_.BaT))==null?
void 0:n.supportedTokens}if(C){w=void 0;n=_.E(C);for(C=n.next();!C.done;C=n.next())if(C=C.value,C.datasyncIdToken){w=C.datasyncIdToken.datasyncIdToken;break}if(w){var d;a:{if(_.xMK()&&(n=_.$yK(w+"::pom"))){n=new Vb(n);break a}n=void 0}(d=n)==null||d.set("role_text",f);if(($MB?$MB:window.location).href.indexOf("studio")!==-1&&(d=hIU())){n=d.src?(new URL(d.src)).origin:"*";var z;(z=d.contentWindow)==null||z.postMessage({action:"save_pom_role",datasyncId:w,roleText:f},n)}}}}}};
_.OC.Object.defineProperties(MP.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var r,f,I=(r=this.data)==null?void 0:(f=r.accountPhoto)==null?void 0:f.thumbnails;return I&&I.length>0&&(I[0].height===36||I[0].height===48)?I[0].height:40}}});
MP.prototype.onTap=MP.prototype.onTap;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],MP.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],MP.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!1}),_.B("design:type",Function)],MP.prototype,"onAccountItemTap",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],MP.prototype,"enableRingForActiveAccount",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],MP.prototype,"thumbnailSize",null);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],MP.prototype,"onTap",null);MP=_.A([_.U({is:"ytd-account-item-renderer",disableElementRegistration:!0})],MP);
_.Q(MP,"ytd-account-item-renderer",function(){if(ZmX!==void 0)return ZmX;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return ZmX=r},{mode:1});var Bo8;var gA=function(){return _.y.apply(this,arguments)||this};
_.t(gA,_.y);gA.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.a().resolve(_.Gg).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],gA.prototype,"data",void 0);gA=_.A([_.U({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],gA);
_.Q(gA,"ytd-identity-chip-renderer",function(){if(Bo8!==void 0)return Bo8;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Bo8=r},{mode:1});var qh3;var ua3;var DZD;var r0C;var Xh=function(){var r=_.y.apply(this,arguments)||this;r.richItemMinWidth=_.Bw("wn_grid_min_item_width",310);r.isShorts=!1;r.isWatchNext=!1;r.isExploreHub=!1;return r};
_.t(Xh,_.y);_.OC.Object.defineProperties(Xh.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var r=[],f=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Zh(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var I;if(((I=this.data)==null?0:I.rows)&&f)for(f*=this.data.rows,I=0;I<f;I++)r.push({});return r}}});
_.A([_.J(_.PH),_.B("design:type",Object)],Xh.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Xh.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Xh.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.XN,value:3}),_.B("design:type",Number)],Xh.prototype,"itemsPerRow",void 0);_.A([_.K({selector:_.t8$,value:6}),_.B("design:type",Number)],Xh.prototype,"slimItemsPerRow",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Number)],Xh.prototype,"richItemMinWidth",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.ar}),_.B("design:type",Boolean)],Xh.prototype,"miniMode",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Xh.prototype,"isShorts",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Xh.prototype,"isWatchNext",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Xh.prototype,"isExploreHub",void 0);
_.A([_.R("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.B("design:type",Array),_.B("design:paramtypes",[])],Xh.prototype,"cardItems",null);Xh=_.A([_.U({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Xh);
_.fZ4=_.os()(Xh,"ytd-ghost-grid-renderer",function(){if(r0C===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);r0C=r}r=r0C;return r},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.Kv(_.Hc(function(r){var f=_.jS(r,{numberOfComments:3}).numberOfComments,I=_.jS(r,{isInitialLoad:!1}).isInitialLoad,C=_.jS(r,{engagementPanel:!1}).engagementPanel,Y=function(){return Math.min(Number(f==null?void 0:f())||20,20)};
return _.p("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.p(_.M,{cond:function(){return!(C==null?0:C())&&(I==null?void 0:I())},
then:function(){return _.p("div",{class:"ytGhostCommentsComments"},_.p("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.p("div",{class:_.qd("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.p("div",{class:_.qd("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.p("div",{class:"ytGhostCommentsGhostCard"},_.p("div",{class:"ytGhostCommentsAvatar"},_.p("div",{class:"ytGhostCommentsCircle"})),_.p("div",{class:"ytGhostCommentsComments"},_.p("div",{class:"ytGhostCommentsMeta"},
_.p("div",{class:_.qd("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.p("div",{class:_.qd("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.p("div",{class:"ytGhostCommentsComments"},_.p(_.pz,{each:function(){return Array((Y==null?void 0:Y())||3)}},function(){return _.p("div",{class:"ytGhostCommentsGhostCard"},_.p("div",{class:"ytGhostCommentsAvatar"},_.p("div",{class:"ytGhostCommentsCircle"})),_.p("div",{class:"ytGhostCommentsHost"},_.p("div",{class:"ytGhostCommentsMeta"},
_.p("div",{class:_.qd("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.p("div",{class:_.qd("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.p("div",{class:_.qd("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.p("div",{class:"ytGhostCommentsGhostLikeDislike"},_.p("div",{class:_.qd("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.p("div",{class:_.qd("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"bb"),"yt-ghost-comments",{props:{numberOfComments:_.jv,
isInitialLoad:_.jv,engagementPanel:_.jv}});_.gW("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var NP=function(){var r=_.y.apply(this,arguments)||this;r.isOverridable=!1;r.spinnerActive=!1;r.showButton=!1;r.isCommentsSection=!1;r.engagementPanel=!0;r.isShortsGrid=!1;r.isShortsPage=!1;r.isWatchPage=!1;r.ghostCardExperimentEnabled=_.N("show_ghost_comments_shorts_watch")||_.N("show_ghost_comments_desktop_watch");r.originalShowButton=!1;r.endOfList=!1;return r};
_.t(NP,_.y);_.l=NP.prototype;_.l.resetIntersectionObserver=function(){var r;(r=this.observer)==null||r.disconnect();this.observer=void 0};
_.l.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var r,f;((r=this.data)==null?void 0:r.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((f=this.data)==null?0:f.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.l.initializeIntersectionObserver=function(){var r=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(f){f=_.E(f);for(var I=f.next();!I.done;I=f.next())I.value.isIntersecting&&(r.triggerContinuation(),r.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 r;((r=this.data)==null?0:r.continuationEndpoint)&&(r=_.F(this.data.continuationEndpoint,_.$Z))&&this.ytdReduxBehavior.dispatch(_.kI({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:r}}))};
_.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(r,f){if(!_.N("kevlar_hide_spinner_on_empty_continuation_killswitch")){var I;(I=f.actions)!=null&&I.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 r=3;if(this.engagementPanel){var f,I,C;r=Math.floor(((((f=this.hostElement)==null?void 0:(I=f.parentElement)==null?void 0:(C=I.parentElement)==null?void 0:C.scrollHeight)||108)-108)/108);r=this.isInitialLoad?Math.max(r,3):3}f=[].concat(_.Na(this.hostElement.querySelectorAll("yt-ghost-comments")));f=_.E(f);for(I=f.next();!I.done;I=f.next())I=I.value,I.numberOfComments=r,I.isInitialLoad=this.isInitialLoad,I.engagementPanel=
this.engagementPanel}};
_.l.detached=function(){this.resetIntersectionObserver()};
_.OC.Object.defineProperties(NP.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.N("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.N("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
NP.prototype.numberOfGhostCommentsChanged=NP.prototype.numberOfGhostCommentsChanged;NP.prototype.continuationTriggerOffsetChanged=NP.prototype.continuationTriggerOffsetChanged;NP.prototype.showButtonChanged=NP.prototype.showButtonChanged;NP.prototype.onYtServiceRequestCompletedForButtonRenderer=NP.prototype.onYtServiceRequestCompletedForButtonRenderer;NP.prototype.onServiceRequestCompleted=NP.prototype.onServiceRequestCompleted;NP.prototype.onYtServiceRequestSentForButtonRenderer=NP.prototype.onYtServiceRequestSentForButtonRenderer;
NP.prototype.observeData=NP.prototype.observeData;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],NP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.WD.YtVisibilityBehavior),_.B("design:type",Object)],NP.prototype,"ytVisibilityBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],NP.prototype,"ytComponentBehavior",void 0);
_.A([_.J(_.PH),_.B("design:type",Object)],NP.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],NP.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],NP.prototype,"isOverridable",void 0);_.A([_.K(),_.B("design:type",Object)],NP.prototype,"spinnerActive",void 0);_.A([_.K(),_.B("design:type",Object)],NP.prototype,"showButton",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],NP.prototype,"isCommentsSection",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],NP.prototype,"engagementPanel",void 0);_.A([_.K(),_.B("design:type",Object)],NP.prototype,"isShortsGrid",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.WRU}),_.B("design:type",Object)],NP.prototype,"isShortsPage",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.$x}),_.B("design:type",Object)],NP.prototype,"isWatchPage",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],NP.prototype,"ghostCardExperimentEnabled",void 0);
_.A([_.K(),_.B("design:type",Number)],NP.prototype,"continuationTriggerOffset",void 0);_.A([_.K(),_.B("design:type",Object)],NP.prototype,"endOfList",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],NP.prototype,"isInitialLoad",void 0);_.A([_.uA("ytd-button-renderer"),_.B("design:type",_.KT)],NP.prototype,"buttonRenderer",void 0);_.A([_.K(),_.B("design:type",Object)],NP.prototype,"buttonOverrides",void 0);
_.A([_.K(),_.R("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.B("design:type",Object),_.B("design:paramtypes",[])],NP.prototype,"isShortsCommentsSection",null);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NP.prototype,"observeData",null);
_.A([_.kO("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NP.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],NP.prototype,"onServiceRequestCompleted",null);
_.A([_.kO("yt-service-request-completed-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NP.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.A([_.YN("showButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NP.prototype,"showButtonChanged",null);
_.A([_.YN("continuationTriggerOffset"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NP.prototype,"continuationTriggerOffsetChanged",null);_.A([_.Bt("isInitialLoad","engagementPanel"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NP.prototype,"numberOfGhostCommentsChanged",null);NP=_.A([_.U({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],NP);
_.Q(NP,"ytd-continuation-item-renderer",function(){if(DZD!==void 0)return DZD;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return DZD=r},{mode:1});var IZ4;var $h=function(){var r=_.y.apply(this,arguments)||this;r.downloadProgress=0;r.transferState="TRANSFER_STATE_UNKNOWN";r.downloadState="DOWNLOAD_STATE_UNKNOWN";r.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";r.offlineVideoPolicyExpirationTimestamp=0;r.downloadedVideoPlaybackPosition=0;return r};
_.t($h,_.y);$h.prototype.dataChanged=function(){var r;this.videoData=_.F((r=this.data)==null?void 0:r.renderer,tZg);this.transferStateChanged()};
$h.prototype.downloadProgressChanged=function(){if(this.entityInfo){var r=Object.assign({},this.videoData),f=tNE(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),I=f.publishedTimeText,C=f.badges;r.shortViewCountText=f.shortViewCountText;r.publishedTimeText=I;r.badges=C;this.set("videoData",r)}};
$h.prototype.transferStateChanged=function(){if(this.entityInfo){var r=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",f=_.hQ(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!xx(this.entityInfo.policyEntity),I=Object.assign({},this.videoData),C=tNE(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),Y=C.publishedTimeText,V=C.badges;I.shortViewCountText=
C.shortViewCountText;I.publishedTimeText=Y;I.badges=V;I.isDisabled=f;I.isWatched=this.downloadedVideoPlaybackPosition>0;I.navigationEndpoint=f?void 0:fiU(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var S;r&&((S=this.videoData)==null?0:S.videoId)&&!_.N("dl_resume_click_killswitch")&&(I.isDisabled=!1,I.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});I.thumbnailOverlays=FZd(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",I)}};
$h.prototype.transferStateChanged=$h.prototype.transferStateChanged;$h.prototype.downloadProgressChanged=$h.prototype.downloadProgressChanged;$h.prototype.dataChanged=$h.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],$h.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],$h.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],$h.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Object)],$h.prototype,"videoData",void 0);_.A([_.K({selector:tQ,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],$h.prototype,"downloadProgress",void 0);_.A([_.K(),_.B("design:type",Number)],$h.prototype,"relativeDateReference",void 0);_.A([_.K({selector:_.FN,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],$h.prototype,"transferState",void 0);
_.A([_.K({selector:kKU,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],$h.prototype,"downloadState",void 0);_.A([_.K({selector:HlR,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],$h.prototype,"offlinePolicyAction",void 0);_.A([_.K({selector:ilm,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],$h.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.A([_.K({selector:T3,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],$h.prototype,"downloadedVideoPlaybackPosition",void 0);_.A([_.K({selector:v$$,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],$h.prototype,"entityInfo",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],$h.prototype,"isDownloading",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$h.prototype,"dataChanged",null);
_.A([_.YN("downloadProgress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$h.prototype,"downloadProgressChanged",null);_.A([_.YN("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$h.prototype,"transferStateChanged",null);
$h=_.A([_.U({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],$h);
_.Q($h,"ytd-downloaded-video-grid-video-renderer",function(){if(IZ4!==void 0)return IZ4;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return IZ4=r},{mode:_.QQ("kevlar_poly_si_batch_j025")?1:2});var C$s;var Fh=function(){};
Fh.prototype.resolve=function(r,f){var I=this;return _.x(function(C){return _.b(C,I.resolveCommand(r,f),0)})};var Y93,Pg;Y93=cxl(function(r){return r.targetId},{shouldPersist:!1});
Pg=Y93.updateData;_.lZ_=Y93.useUpdatableData;var VVX,EDq;VVX=cxl(function(r){return r.targetId});
EDq=VVX.updateData;_.S94=VVX.useUpdatableData;var xwC=NHR.bind(null,Pg),hY4=NHR.bind(null,EDq);(function(r,f,I){var C=_.F(I==null?void 0:I.updatedRenderer,_.f4C);return C?r({targetId:f},function(){return C}):!1}).bind(null,Pg);var tI=function(){};
_.t(tI,Fh);tI.prototype.resolveCommand=function(r){var f;return _.x(function(I){f=_.F(r,_.sTB);if(!f)return I.return();xwC(f.targetId,f);_.wO(I)})};var Tf=function(){var r=_.rm.apply(this,arguments)||this;r.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return r};
_.t(Tf,_.rm);_.l=Tf.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(r){var f=_.F(r,_.H9D);if(this.data&&this.data.targetId&&f&&this.continuationPathMap&&f.targetId===this.data.targetId){var I=oYl(r);if((r=I&&this.continuationPathMap[I])&&I){I=this.get(r,this.data);var C;a:{for(C=0;C<I.length;C++){var Y=I[C],V=void 0,S=!!_.F((V=_.F(Y,MX3))==null?void 0:V.content,_.NxV);if(_.F(Y,_.Ip)||S)break a}C=I.length}r="data."+r;f.continuationItems?C===I.length-1?(this.pop(r),this.push.apply(this,[r].concat(_.Na(f.continuationItems)))):
C===I.length?this.push.apply(this,[r].concat(_.Na(f.continuationItems))):this.splice.apply(this,[r,C,1].concat(_.Na(f.continuationItems))):this.splice(r,C,1);(_.N("web_enable_voting_animation")||_.N("enable_music_web_cairo_voting_animation"))&&_.kA(this.hostElement,"yt-append-continuation-items-action-finished");_.kA(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.t7(new _.nf("append continuation path does not exist",I))}};
_.l.handleReloadContinuationItemsCommand=function(r){var f=_.F(r,_.sTB);if(this.data&&f){if(_.N("web_explore_hub")||_.N("web_client_explore_hub")||_.N("web_explore_hub_on_hover")||_.N("web_client_explore_hub_on_hover"))try{_.a().resolve(tI).resolveCommand(r)}catch(V){}if(this.data.targetId&&this.continuationPathMap&&f.targetId===this.data.targetId&&(!_.N("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||f.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var I,C=(I=
f.slot)==null?void 0:I.replace("RELOAD_CONTINUATION_SLOT_","");I=(r=oYl(r)+"-"+(C==null?void 0:C.toLowerCase()))&&this.continuationPathMap[r];if(!I||!r||!C)_.t7(new _.nf("reload continuation path does not exist",r));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(f)){if(f.replaceWithFirstItem){var Y;this.set("data."+I,((Y=f.continuationItems)==null?0:Y.length)?f.continuationItems[0]:{})}else this.set("data."+I,f.continuationItems?f.continuationItems:
[]);this.continuationIsReloading=!1;_.kA(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.l.handleShowReloadUiCommand=function(r){r=_.F(r,k1_);var f;((f=this.data)==null?0:f.targetId)&&(r==null?0:r.targetId)&&r.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
Tf.prototype.observeData=Tf.prototype.observeData;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Tf.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Tf.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Tf.prototype,"data",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Tf.prototype,"continuationIsReloading",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tf.prototype,"observeData",null);Tf=_.A([_.fx()],Tf);_.cg=[_.tK.YtComponentBehavior,_.o_.YtActionHandlerBehavior,Tf.prototype];_.Wg={};_.Wg.YtNextContinuationBehavior=[_.Kh.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",_.GF(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.GF(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(r,f){r.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,f,{}):(r={locationRetrieved:function(I){this.makeNextContinuationRequest_(I,f,{})}.bind(this)},_.kA(this.hostElement,"yt-retrieve-location",r))},
makeNextContinuationRequest_:function(r,f,I){_.No("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();r=f(r);var C;this.canUseContextualNetworkManager_()&&(C=this.getNetworkManager());C||(C=_.a().resolve(_.bA));f=_.Wl.instance;if(_.Lz("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&f){C=_.yC([r.startsWith("/")?r.substr(1):r]);var Y,V;I=_.cP(f,{},C,I==null?void 0:(Y=I.context)==null?void 0:(V=Y.clickTracking)==null?void 0:V.clickTrackingParams).then(function(S){return{response:S}})}else I=
this.nextContinuation.usePost?C.postData(r,I):C.fetchData(r);
I.then(this.updateNextContinuationData_.bind(this,r));this.pendingContinuationRequest_=I;this.startListeningForNavigate_()},
updateNextContinuationData_:function(r,f){var I=this;_.No("ncl");this.pendingContinuationRequest_=void 0;if(f){var C={};this.nextContinuation&&(C=this.nextContinuation);if(f.response&&f.response.continuationContents&&f.response.continuationContents[C.continuationType]){r=f.response.continuationContents[C.continuationType];var Y=C.header||"data.header",V=r[C.responseHeaderKey||"header"];V&&this.set(Y,V);Y=C.contentsArray||"data.contents";V=this.getContents_(r,C.responseContentsKey||"contents")||[];
this.pathExists_(Y)?(V.unshift(Y),this.push.apply(this,V)):this.set(Y,V);V&&($wE(_.IB(),f.response,this.hostElement,function(S){_.Bj(I.hostElement,"yt-store-grafted-ve-action",[S])}),_.kA(this.hostElement,"yt-next-continuation-data-updated",{continuationData:f,
page:this,contentsArray:Y}));this.set(C.continuationsArray||"data.continuations",r[C.responseContinuationsKey||"continuations"]||[])}else f.reload?_.t7(new _.nf("Reloading from continuation is unsupported")):f.responseContext&&f.responseContext.errors||(delete f.xsrf_token,delete f.timing,delete f.endpoint,delete f.csn,f.responseContext&&delete f.responseContext.serviceTrackingParams,Y={request:_.yM(r,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(f).sort()},f.response&&(Y.responseContentKeys=
Object.keys(f.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(Y.continuationType=this.nextContinuation.continuationType.substr(0,256)),f=new _.nf("Malformed continuation",Y),r.indexOf("/comment_service_ajax")==0?_.t7(f):_.Fo(f)),this.set(C.continuationsArray||"data.continuations",[])}else _.PR(new _.nf("Missing continuation response",r))},
getContents_:function(r,f){f=f.split(".");return _.X0.getValueByKeys(r,f)},
pathExists_:function(r){var f=this;r=r.toString().split(".");for(var I=0;I<r.length;I++)if(f=f[r[I]],f===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var we3;var bZs;var LB=function(){var r=_.y.apply(this,arguments)||this;r.triggered_=!1;return r};
_.t(LB,_.y);_.l=LB.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_||(_.kA(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(r,f){return r===void 0?null:r.label||!f?r.label:this.showMoreText_};
_.l.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.l.getContinuationUrl=function(r){var f={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(f.itct=this.data.clickTrackingParams);return _.UQ(r,f)};
_.l.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
LB.prototype.showButtonChanged_=LB.prototype.showButtonChanged_;LB.prototype.observeData_=LB.prototype.observeData_;_.A([_.J(_.WD.YtVisibilityBehavior),_.B("design:type",Object)],LB.prototype,"ytVisibilityBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],LB.prototype,"data",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],LB.prototype,"showButton",void 0);
_.A([_.K({value:!1}),_.B("design:type",Boolean)],LB.prototype,"showIcon",void 0);_.A([_.K({computed:"computeLabel_(data, showButton)"}),_.B("design:type",Object)],LB.prototype,"label",void 0);_.A([_.K({value:_.iX(_.VR("SHOW_MORE",void 0,"Show More"))}),_.B("design:type",Object)],LB.prototype,"showMoreText_",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],LB.prototype,"spinnerActive_",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],LB.prototype,"hasBeenTriggered_",void 0);
_.A([_.K({value:void 0}),_.B("design:type",String)],LB.prototype,"observeVisibleOption",void 0);_.A([_.K({value:void 0}),_.B("design:type",String)],LB.prototype,"observeHiddenOption",void 0);_.A([_.K({value:"observe_once"}),_.B("design:type",Object)],LB.prototype,"observePrescanOption",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],LB.prototype,"observeData_",null);
_.A([_.Bt("showButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],LB.prototype,"showButtonChanged_",null);LB=_.A([_.zX({is:"yt-next-continuation",disableElementRegistration:!0})],LB);
_.Q(LB,"yt-next-continuation",function(){if(bZs===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;we3===void 0&&(we3=document.createElement("template"));var C=we3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);bZs=r}r=bZs;return r},{mode:2});var pe3;var nDq;var m5=function(){return _.y.apply(this,arguments)||this};
_.t(m5,_.y);m5.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],m5.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],m5.prototype,"data",void 0);m5=_.A([_.zX({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],m5);
_.Q(m5,"yt-music-pass-small-feature-info-renderer",function(){if(nDq===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;pe3===void 0&&(pe3=document.createElement("template"));var C=pe3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);nDq=r}r=nDq;return r},{mode:2});_.gW("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var e9=function(){var r=_.y.apply(this,arguments)||this;r.isCollapsible=!1;r.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return r};
_.t(e9,_.y);_.l=e9.prototype;_.l.computeIsCollapsible=function(r){return!!(((r==null?0:r.showMoreText)||(r==null?0:r.visibleRowCount))&&(r==null?0:r.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 r=this;_.Pc(this,"updateGridInitItems",function(){r.maybeUpdateInitialItemsDisplayed()})};
_.l.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var r=this.getVisibleWidth();r!==0&&(r=Math.floor(r/214)*(this.data.visibleRowCount||2),r!==this.initialCount&&(this.initialCount=r,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.l.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.l.computeExpandVisible=function(r,f,I,C){return r&&f&&I&&!!C&&!!C.showMoreText};
_.l.computeShowMoreButton=function(r){return{text:r,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.l.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.l.initCollapsed=function(){var r=this;this.ytLazyListBehavior.canShowMore=!1;var f;(this.collapsed=!((f=this.data)==null||!f.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.UC(this,function(){_.qy(r.hostElement,"yt-refit-popups-action")})};
_.l.fillRestIfNotCollapsible=function(){var r=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!r||this.ytLazyListBehavior.fillRemainingListItems()};
_.l.computeViewAllHidden=function(r,f){return r||!f.viewAllEndpoint};
e9.prototype.fillRestIfNotCollapsible=e9.prototype.fillRestIfNotCollapsible;e9.prototype.initCollapsed=e9.prototype.initCollapsed;e9.prototype.onIronResize=e9.prototype.onIronResize;e9.prototype.persistentGuideChanged=e9.prototype.persistentGuideChanged;_.A([_.J(_.Pq),_.B("design:type",Object)],e9.prototype,"ironResizableBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],e9.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.AW.YtLazyListBehavior),_.B("design:type",Object)],e9.prototype,"ytLazyListBehavior",void 0);_.A([_.J(_.Wg.YtNextContinuationBehavior),_.B("design:type",Object)],e9.prototype,"ytNextContinuationBehavior",void 0);_.A([_.J(_.mB.YtdGuideStateAwareBehavior),_.B("design:type",Object)],e9.prototype,"ytdGuideStateAwareBehavior",void 0);
_.A([_.J(_.cg),_.B("design:type",Object)],e9.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],e9.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],e9.prototype,"collapsed",void 0);_.A([_.K(),_.B("design:type",Number)],e9.prototype,"initialCount",void 0);_.A([_.K({computed:"computeShowMoreButton(data.showMoreText)"}),_.B("design:type",Object)],e9.prototype,"showMoreButton",void 0);
_.A([_.K({computed:"computeIsCollapsible(data)"}),_.B("design:type",Object)],e9.prototype,"isCollapsible",void 0);_.A([_.uA("#items"),_.B("design:type",HTMLElement)],e9.prototype,"items",void 0);_.A([_.YN("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],e9.prototype,"persistentGuideChanged",null);_.A([_.kO("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],e9.prototype,"onIronResize",null);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],e9.prototype,"initCollapsed",null);_.A([_.YN("canShowMore"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],e9.prototype,"fillRestIfNotCollapsible",null);e9=_.A([_.U({is:"ytd-grid-renderer",disableElementRegistration:!0})],e9);
_.Q(e9,"ytd-grid-renderer",function(){if(C$s!==void 0)return C$s;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return C$s=r},{mode:_.QQ("kevlar_poly_si_batch_j025")?1:2});var JI=function(){return _.y.apply(this,arguments)||this};
_.t(JI,_.y);
JI.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"}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],JI.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],JI.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],JI.prototype,"data",void 0);JI=_.A([_.U({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],JI);
_.Q(JI,"ytd-carousel-ad-renderer",function(){if(ua3!==void 0)return ua3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ua3=r},{mode:1});var dw8;var j9=function(){return _.y.apply(this,arguments)||this};
_.t(j9,_.y);_.l=j9.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,j9.JSC$13166_CLICK_LOCATION_ID_MAP))};
_.l.onSitelinkTap=function(r){r.stopPropagation();var f,I,C=r==null?void 0:(f=r.model)==null?void 0:(I=f.item)==null?void 0:I.onTap;C&&this.ytSparklesClickLocationBehavior.handleClick(C,r,!1)};
_.l.onTap=function(r){var f=this.data&&this.data.content&&this.data.content.navigationEndpoint;f&&this.ytSparklesClickLocationBehavior.handleClick(f,r,!1)};
_.l.sendImpression=function(){if(this.data&&this.data.content)for(var r=_.E(this.data.content.impressionEndpoints||[]),f=r.next();!f.done;f=r.next()){f=_.E(f.value.loggingUrls||[]);for(var I=f.next();!I.done;I=f.next())I=I.value,I.baseUrl&&HW(I.baseUrl,I.attributionSrcMode)}};
j9.prototype.onTap=j9.prototype.onTap;j9.prototype.dataChanged=j9.prototype.dataChanged;j9.JSC$13166_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"]]);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],j9.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],j9.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.Qu.YtSparklesClickLocationBehavior),_.B("design:type",Object)],j9.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],j9.prototype,"data",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j9.prototype,"dataChanged",null);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],j9.prototype,"onTap",null);j9=_.A([_.U({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],j9);
_.Q(j9,"ytd-promoted-sparkles-text-search-renderer",function(){if(dw8!==void 0)return dw8;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return dw8=r},{mode:1});var zY_;var Hg=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-mute-ad-action":"handleMuteAd"};return r};
_.t(Hg,_.y);_.l=Hg.prototype;
_.l.configureRendererStamper=function(){return{"data.menu":{id:_.N("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(r){return!(r==null||!r.adBadge)};
_.l.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",Hg.JSC$13175_DEFAULT_AD_BADGE_RENDERER),_.ob(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,Hg.JSC$13175_CLICK_LOCATION_ID_MAP))};
_.l.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var r;(((r=this.data)==null?void 0:r.impressionCommands)||[]).forEach(function(f){f=_.E(f.loggingUrls||[]);for(var I=f.next();!I.done;I=f.next())I=I.value,I.baseUrl&&HW(I.baseUrl,I.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.l.onTap=function(r){var f,I=(f=this.data)==null?void 0:f.navigationEndpoint,C;(f=(C=this.data)==null?void 0:C.thumbnailNavigationEndpoint)&&_.RC(_.JN(r),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(f,r,!1):I&&this.ytSparklesClickLocationBehavior.handleClick(I,r,!1)};
_.l.handleMuteAd=function(){this.collapsed=!0};
_.l.attached=function(){var r=this;_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&r.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){_.N("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.OC.Object.defineProperties(Hg.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var r;return!(((r=this.data)==null?void 0:r.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var r;return!(((r=this.data)==null?void 0:r.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.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}}});
Hg.prototype.dataChanged=Hg.prototype.dataChanged;
Hg.JSC$13175_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"]]);
Hg.JSC$13175_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.VR("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Hg.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Hg.prototype,"ytRendererBehavior",void 0);_.A([_.J($G),_.B("design:type",Object)],Hg.prototype,"ytdActiveViewBehavior",void 0);
_.A([_.J([_.o_.YtActionHandlerBehavior]),_.B("design:type",Object)],Hg.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.Qu.YtSparklesClickLocationBehavior),_.B("design:type",Object)],Hg.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Hg.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Hg.prototype,"collapsed",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.N("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],Hg.prototype,"useBiggerThumbs",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.qC("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],Hg.prototype,"biggerThumbsStyle",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.N("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.B("design:type",Boolean)],Hg.prototype,"fixAlignmentSmallScreens",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.N("enable_desktop_search_bigger_thumbs_square")}}),
_.B("design:type",Boolean)],Hg.prototype,"useBiggerThumbsSquare",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("data.mediaHoverOverlay"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Hg.prototype,"hideHoverOverlay",null);_.A([_.K({reflectToAttribute:!0}),_.R("data.promotedSparklesWebStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Hg.prototype,"webSearchLayout",null);
_.A([_.K({reflectToAttribute:!0}),_.R("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Hg.prototype,"webSearchLayoutLandscape",null);_.A([_.K({reflectToAttribute:!0}),_.R("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Hg.prototype,"webSearchLayoutSquare",null);
_.A([_.K({reflectToAttribute:!0}),_.R("data.promotedSparklesWebStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Hg.prototype,"sparklesCtaNoBackground",null);_.A([_.K({reflectToAttribute:!0}),_.R("data.actionButton"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Hg.prototype,"hideActionButton",null);_.A([_.K({computed:"computeButtonOverride(uiUpdate)"}),_.B("design:type",Object)],Hg.prototype,"buttonOverride",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.B("design:type",Boolean)],Hg.prototype,"hasNewAdBadge",void 0);_.A([_.R("data.promotedSparklesWebStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Hg.prototype,"useRoundedBadge",null);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hg.prototype,"dataChanged",null);Hg=_.A([_.U({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],Hg);
_.Q(Hg,"ytd-promoted-sparkles-web-renderer",function(){if(zY_!==void 0)return zY_;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return zY_=r},{mode:1});var MVX;var iF=function(){return _.y.apply(this,arguments)||this};
_.t(iF,_.y);_.l=iF.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(r){return!(r==null||!r.ctaRenderer)};
_.l.onCtaClick=function(){var r,f,I,C=(r=this.data)==null?void 0:(f=r.ctaRenderer)==null?void 0:(I=f.buttonRenderer)==null?void 0:I.command;C&&this.ytComponentBehavior.resolveCommand(C)};
_.l.onWatchButtonClick=function(){var r,f,I,C=(r=this.data)==null?void 0:(f=r.watchButtonRenderer)==null?void 0:(I=f.buttonRenderer)==null?void 0:I.command;C&&this.ytComponentBehavior.resolveCommand(C)};
_.l.onTap=function(){};
_.l.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",iF.JSC$13178_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",iF.JSC$13178_DEFAULT_CLICK_LOCATION_BEHAVIOR,iF.JSC$13178_CLICK_LOCATION_ID_MAP),this.thumbnail)){var r=this.thumbnail.getElementsByTagName("a");r.length>0&&(r=r.namedItem("thumbnail"))&&r.removeAttribute("href")}};
_.l.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var r=_.E(this.data.impressionUrls),f=r.next();!f.done;f=r.next())f=f.value,cNB(f,L4u(f));this.data.impressionsFired=!0}};
_.l.maybeComputeHref=function(){return null};
_.l.computeIsShortDR=function(r){return!(r==null||!r.watchButtonRenderer)&&!(r==null||!r.ctaRenderer)&&!!this.enableShortDR};
_.l.computeIsNewUiOrShortDr=function(r){return!!this.enableUiUpdate||this.computeIsShortDR(r)};
_.l.computeIsNewUiAndNotShortDr=function(r){return!!this.enableUiUpdate&&!this.computeIsShortDR(r)};
_.l.computeHideAvatar=function(r){return!((r==null?0:r.channelThumbnail)&&this.computeIsNewUiOrShortDr(r))};
_.l.onClick=function(r){var f,I=(f=this.data)==null?void 0:f.navigationEndpoint;if(this.enableShortDR&&I&&(_.F(I,_.vj)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(I,r,!!_.F(I,_.vj)),r.stopPropagation();else if(I&&_.F(I,_.vj))this.ytSparklesClickLocationBehavior.handleClick(I,r,!0),r.stopPropagation();else if(I){var C,Y;((C=this.data)==null?0:C.navigationEndpoint)&&((Y=this.data)==null?0:Y.adPlaybackContextParams)&&aBK(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(I)}};
_.l.computeButtonOverride=function(r){if(this.computeIsNewUiOrShortDr(r))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.l.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.l.onThumbnailContainerClick=function(r){this.onClick(r)};
_.l.computeThumbnailWidth=function(r,f){return r?f==="MASSIVE"?600:f==="BIG"?500:f==="MEDIUM"?450:420:360};
_.l.attached=function(){var r=this;_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&r.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){_.N("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
iF.prototype.dataChanged=iF.prototype.dataChanged;iF.prototype.onTap=iF.prototype.onTap;iF.JSC$13178_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.VR("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};iF.JSC$13178_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
iF.JSC$13178_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"}];_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],iF.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);_.A([_.J($G),_.B("design:type",Object)],iF.prototype,"ytdActiveViewBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],iF.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.Qu.YtSparklesClickLocationBehavior),_.B("design:type",Object)],iF.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],iF.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0,value:function(){return _.N("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],iF.prototype,"useBiggerThumbs",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.N("enable_video_display_compact_button_group_for_desktop_search")}}),
_.B("design:type",Boolean)],iF.prototype,"enableShortDR",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.N("enable_vac_ui_update_for_desktop_search")}}),
_.B("design:type",Boolean)],iF.prototype,"enableUiUpdate",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.qC("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],iF.prototype,"biggerThumbsStyle",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.B("design:type",Boolean)],iF.prototype,"showCta",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.B("design:type",Boolean)],iF.prototype,"isShortDr",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.B("design:type",Boolean)],iF.prototype,"isShortDrOrNewUi",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.B("design:type",Boolean)],iF.prototype,"isNewUiAndNotShortDr",void 0);_.A([_.K({computed:"computeButtonOverride(data)"}),_.B("design:type",Object)],iF.prototype,"buttonOverride",void 0);_.A([_.K({computed:"computeSecondaryButtonOverride(data)"}),_.B("design:type",Object)],iF.prototype,"secondaryButtonOverride",void 0);_.A([_.uA("ytd-thumbnail"),_.B("design:type",HTMLElement)],iF.prototype,"thumbnail",void 0);
_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iF.prototype,"onTap",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iF.prototype,"dataChanged",null);iF=_.A([_.U({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],iF);
_.Q(iF,"ytd-promoted-video-renderer",function(){if(MVX!==void 0)return MVX;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return MVX=r},{mode:1});var gDV;var RQ=function(){var r=_.y.apply(this,arguments)||this;r.useRoundedBadge=!0;r.sitelinkIds=[];return r};
_.t(RQ,_.y);_.l=RQ.prototype;
_.l.configureRendererStamper=function(){return{"data.menu":{id:_.N("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 r;(r=this.data)!=null&&r.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,RQ.JSC$13185_CLICK_LOCATION_ID_MAP)};
_.l.onTap=function(r){var f,I=(f=this.data)==null?void 0:f.navigationCommand;I&&!_.RC(_.JN(r),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(I,r,!1)};
_.l.onSitelinkTap=function(r){var f,I,C=r==null?void 0:(f=r.model)==null?void 0:(I=f.item)==null?void 0:I.onTap;C&&this.ytSparklesClickLocationBehavior.handleClick(C,r,!1)};
_.l.configureSitelinkClickTargets=function(){var r=this,f,I,C=(f=this.data)==null?void 0:(I=f.clickLocationTargets)==null?void 0:I.find(function(Y){return Y.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
C&&_.e(this.hostElement).querySelectorAll(".sitelink").forEach(function(Y){_.ob(Y,"yt-simple-endpoint",!0);r.sitelinkIds.push(Y.id);var V,S;(V=r.ytSparklesClickLocationBehavior)==null||(S=V.clickTargetMap)==null||S.set(Y.id,C)})};
_.l.sendImpression=function(){var r,f,I=((r=this.data)==null?void 0:(f=r.impressionCommand)==null?void 0:f.loggingUrls)||[];r=_.E(I);for(f=r.next();!f.done;f=r.next())f=f.value,f.baseUrl&&HW(f.baseUrl,f.attributionSrcMode)};
_.l.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.OC.Object.defineProperties(RQ.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
RQ.prototype.onTap=RQ.prototype.onTap;RQ.prototype.dataChanged=RQ.prototype.dataChanged;RQ.JSC$13185_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"]]);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],RQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.Qu.YtSparklesClickLocationBehavior),_.B("design:type",Object)],RQ.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],RQ.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],RQ.prototype,"showFavicon",null);_.A([_.K({reflectToAttribute:!0,value:function(){return _.N("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],RQ.prototype,"useBiggerThumbs",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.qC("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],RQ.prototype,"biggerThumbsStyle",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.N("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.B("design:type",Boolean)],RQ.prototype,"enableThumbnailScalingFix",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RQ.prototype,"dataChanged",null);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],RQ.prototype,"onTap",null);RQ=_.A([_.U({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],RQ);
_.Q(RQ,"ytd-text-image-no-button-layout-renderer",function(){if(gDV!==void 0)return gDV;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return gDV=r},{mode:_.QQ("kevlar_poly_si_batch_j028")?1:2});var aZV;var vg=function(){var r=_.y.apply(this,arguments)||this;r.isInlinePlaybackState=!1;r.uiUpdate=_.N("web_modern_buttons");r.hideCta=_.N("hide_cta_for_home_web_video_ads");r.noBottomMargin=!1;r.animateInTimeStamp=_.Bw("hide_cta_for_home_web_video_ads_animate_in_time");r.animateInCta=!1;r.isHovered=!1;r.player=null;r.JSC$13192_playerEvents=new Map;r.JSC$13192_preventProgressSaveTimer=null;r.delayedCtaJobId=null;return r};
_.t(vg,_.y);_.l=vg.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$13192_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13192_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.N("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$13192_playerEvents)};
_.l.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",vg.JSC$13191_DEFAULT_CLICK_LOCATION_BEHAVIOR,vg.JSC$13191_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.l.hoverChanged=function(){var r=this;this.delayedCtaJobId&&(_.F_.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.N("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.pF(_.F_,function(){r.buttonContainer.classList.add("show-delayed-buttons")},_.Bw("delayed_cta_on_web_delay_milliseconds")))};
_.l.setPlayer=function(){var r=this,f;return _.x(function(I){if(I.nextAddress==1)return(f=_.qy(r.hostElement,"yt-get-inline-preview-player-action"))&&f[0]?_.b(I,f[0].getPlayerPromise(),3):I.jumpTo(0);r.player=I.yieldResult;r.ytPlayerListenerBehavior.listenToPlayerEvents(r.player,r.JSC$13192_playerEvents);_.wO(I)})};
_.l.onPlaybackStart=function(){var r=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13192_preventProgressSaveTimer=_.oB(_.F_,function(){r.JSC$13192_preventProgressSaveTimer=null},1E4))};
_.l.onVideoProgress=function(r){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&r>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.l.resetPreventProgressSaveTimer=function(){_.F_.cancelJob(this.JSC$13192_preventProgressSaveTimer);this.JSC$13192_preventProgressSaveTimer=null};
_.l.getSimpleString=function(r){return _.Rr(r)};
_.l.onClick=function(r){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var f,I=(f=this.data)==null?void 0:f.navigationEndpoint,C;f=(C=this.data)==null?void 0:C.channelEndpoint;var Y,V;(C=(V=_.F((Y=this.data)==null?void 0:Y.adCtaButton,_.Ll))==null?void 0:V.command)&&_.RC(_.JN(r),this.hostElement,["call-to-action"])?_.N("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(C,r,!1):f&&_.RC(_.JN(r),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(f,r,!1):!_.RC(_.JN(r),this.hostElement,["secondary-button"])&&I&&(_.N("enable_short_dr_for_desktop_launchable")?(Y=!!_.F(I,_.vj),this.isInlinePlaybackState&&Y&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(I,r,Y)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(I,r,!0)))}};
_.l.updateWatchEndpointStartTime=function(){var r,f;this.player&&((r=this.data)==null?0:r.inlinePlaybackEndpoint)&&((f=this.data)==null?0:f.navigationEndpoint)&&!this.JSC$13192_preventProgressSaveTimer&&(r=Math.floor(this.player.getCurrentTime()),_.F(this.data.navigationEndpoint,_.vj).startTimeSeconds=r,_.F(this.data.inlinePlaybackEndpoint,_.vj).startTimeSeconds=r)};
_.l.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.l.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.OC.Object.defineProperties(vg.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.N("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var r,f;return!((r=this.data)==null||!r.watchButton)&&!((f=this.data)==null||!f.adCtaButton)}}});
vg.prototype.hoverChanged=vg.prototype.hoverChanged;vg.prototype.dataChanged=vg.prototype.dataChanged;
vg.JSC$13191_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"]]);
vg.JSC$13191_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"}];
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],vg.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],vg.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],vg.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.Qu.YtSparklesClickLocationBehavior),_.B("design:type",Object)],vg.prototype,"ytSparklesClickLocationBehavior",void 0);
_.A([_.J(_.iQ.YtPlayerListenerBehavior),_.B("design:type",_.RN)],vg.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],vg.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],vg.prototype,"isInlinePlaybackState",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],vg.prototype,"miniMode",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],vg.prototype,"uiUpdate",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],vg.prototype,"hideCta",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],vg.prototype,"noBottomMargin",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],vg.prototype,"animateInCta",void 0);_.A([_.K({computed:"computeButtonOverride(uiUpdate)"}),_.B("design:type",Object)],vg.prototype,"buttonOverride",void 0);
_.A([_.K({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.B("design:type",Object)],vg.prototype,"secondaryButtonOverride",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],vg.prototype,"isHovered",void 0);_.A([_.uA("#button-container"),_.B("design:type",HTMLElement)],vg.prototype,"buttonContainer",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],vg.prototype,"typographyBump",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("typographyBump"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vg.prototype,"typographyBumpV2",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vg.prototype,"dataChanged",null);_.A([_.Bt("isHovered"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vg.prototype,"hoverChanged",null);
_.A([_.R("data"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vg.prototype,"isButtonGroup",null);vg=_.A([_.U({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],vg);
_.Q(vg,"ytd-ad-inline-playback-meta-block",function(){if(aZV!==void 0)return aZV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return aZV=r},{mode:_.QQ("kevlar_poly_si_batch_j065")?1:2});var Xeq;var KB=function(){var r=_.y.apply(this,arguments)||this;r.noBottomMargin=!1;r.isInlinePreviewTriggered=!1;r.JSC$13197_activeViewMeasurementDataResolver=_.eu();return r};
_.t(KB,_.y);_.l=KB.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 r=this;this.updateInlinePreviewHoverListeners();this.JSC$13197_activeViewMeasurementDataResolver.promise.then(function(f){r.ytdActiveViewBehavior.enableActiveViewMeasurement(f,15)});
_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&r.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){this.clearInlinePreviewHoverListeners();_.N("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13197_inlinePreviewHoverListener=O0({mediaRenderer:this,lockupElement:this.JSC$13197_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:ea3})};
_.l.clearInlinePreviewHoverListeners=function(){var r;(r=this.JSC$13197_inlinePreviewHoverListener)==null||rY(r)};
_.l.onDataChanged=function(){var r;((r=this.data)==null?0:r.activeView)&&this.JSC$13197_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",KB.JSC$13196_DEFAULT_CLICK_LOCATION_BEHAVIOR,KB.JSC$13196_CLICK_LOCATION_ID_MAP);this.thumbnail&&(r=this.thumbnail.getElementsByTagName("a"),r.length>0&&(r=r.namedItem("thumbnail"))&&r.removeAttribute("href"));var f,I;if(((f=this.data)==
null?0:f.hasAutoplay)||((I=this.data)==null?0:I.forceImpAutoplay)){var C;(C=this.JSC$13197_inlinePreviewHoverListener)==null||OO8(C)}};
_.l.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.l.onThumbnailContainerClick=function(r){if(this.data&&this.data.navigationEndpoint){var f,I=(f=this.data)==null?void 0:f.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(I,r,!!_.F(I,_.vj));r.stopPropagation()}};
_.l.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.l.impressionLog=function(){var r=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var f,I,C=(I=_.F((f=this.data)==null?void 0:f.onImpression,_.Il))==null?void 0:I.commands;C&&(C.forEach(function(Y){Y.clickTrackingParams&&delete Y.clickTrackingParams;r.ytComponentBehavior.resolveCommand(Y)}),this.data.impressionsFired=!0)}};
_.OC.Object.defineProperties(KB.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.JSC$13197_inlinePreviewHoverListener)==null?0:at(r))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
KB.prototype.onTypographyBumpChanged=KB.prototype.onTypographyBumpChanged;KB.prototype.onDataChanged=KB.prototype.onDataChanged;KB.JSC$13196_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);KB.JSC$13196_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"}];
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],KB.prototype,"ytComponentBehavior",void 0);_.A([_.J($G),_.B("design:type",Object)],KB.prototype,"ytdActiveViewBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],KB.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.J(_.jW),_.B("design:type",Object)],KB.prototype,"ytdLockupBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],KB.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.Qu.YtSparklesClickLocationBehavior),_.B("design:type",Object)],KB.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],KB.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],KB.prototype,"noBottomMargin",void 0);
_.A([_.K(),_.B("design:type",Object)],KB.prototype,"isInlinePreviewTriggered",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.ar}),_.B("design:type",Boolean)],KB.prototype,"miniMode",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],KB.prototype,"typographyBump",void 0);_.A([_.uA("ytd-thumbnail"),_.B("design:type",HTMLElement)],KB.prototype,"thumbnail",void 0);_.A([_.uA("#dismissible"),_.B("design:type",HTMLElement)],KB.prototype,"JSC$13197_dismissibleMedia",void 0);
_.A([_.uA("ytd-ad-inline-playback-meta-block"),_.B("design:type",HTMLElement)],KB.prototype,"adInlinePlaybackMetaBlock",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],KB.prototype,"onDataChanged",null);_.A([_.YN("typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],KB.prototype,"onTypographyBumpChanged",null);
_.A([_.R("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],KB.prototype,"isHovered",null);KB=_.A([_.U({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],KB);
_.Q(KB,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(Xeq!==void 0)return Xeq;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Xeq=r},{mode:1});var NHD;var yZ=function(){var r=_.y.apply(this,arguments)||this;r.isInlinePreviewTriggered=!1;r.JSC$13200_activeViewMeasurementDataResolver=_.eu();return r};
_.t(yZ,_.y);_.l=yZ.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 r=this;this.updateInlinePreviewHoverListeners();this.JSC$13200_activeViewMeasurementDataResolver.promise.then(function(f){r.ytdActiveViewBehavior.enableActiveViewMeasurement(f,15)})};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13200_inlinePreviewHoverListener=O0({mediaRenderer:this,lockupElement:this.JSC$13200_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:ea3})};
_.l.clearInlinePreviewHoverListeners=function(){var r;(r=this.JSC$13200_inlinePreviewHoverListener)==null||rY(r)};
_.l.onDataChanged=function(){var r;((r=this.data)==null?0:r.activeView)&&this.JSC$13200_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",yZ.JSC$13199_DEFAULT_CLICK_LOCATION_BEHAVIOR,yZ.JSC$13199_CLICK_LOCATION_ID_MAP);this.thumbnail&&(r=this.thumbnail.getElementsByTagName("a"),r.length>0&&(r=r.namedItem("thumbnail"))&&r.removeAttribute("href"))};
_.l.onThumbnailContainerClick=function(r){if(this.data&&this.data.navigationEndpoint){var f,I=(f=this.data)==null?void 0:f.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(I,r,!0);r.stopPropagation()}};
_.l.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.l.impressionLog=function(){var r=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var f,I,C=(I=_.F((f=this.data)==null?void 0:f.onImpression,_.Il))==null?void 0:I.commands;C&&(C.forEach(function(Y){Y.clickTrackingParams&&delete Y.clickTrackingParams;_.a().resolve(_.Gg).resolveCommand(Y,{form:{element:r.hostElement}})}),this.data.impressionsFired=!0)}};
_.OC.Object.defineProperties(yZ.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.JSC$13200_inlinePreviewHoverListener)==null?0:at(r))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
yZ.prototype.onDataChanged=yZ.prototype.onDataChanged;yZ.JSC$13199_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);yZ.JSC$13199_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"}];_.A([_.J($G),_.B("design:type",Object)],yZ.prototype,"ytdActiveViewBehavior",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],yZ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],yZ.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.J(_.jW),_.B("design:type",Object)],yZ.prototype,"ytdLockupBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],yZ.prototype,"ytdReduxBehavior",void 0);
_.A([_.J(_.Qu.YtSparklesClickLocationBehavior),_.B("design:type",Object)],yZ.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],yZ.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],yZ.prototype,"isInlinePreviewTriggered",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.ar}),_.B("design:type",Boolean)],yZ.prototype,"miniMode",void 0);_.A([_.uA("ytd-thumbnail"),_.B("design:type",HTMLElement)],yZ.prototype,"thumbnail",void 0);
_.A([_.uA("#dismissible"),_.B("design:type",HTMLElement)],yZ.prototype,"JSC$13200_dismissibleMedia",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yZ.prototype,"onDataChanged",null);_.A([_.R("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yZ.prototype,"isHovered",null);yZ=_.A([_.U({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],yZ);
_.Q(yZ,"ytd-video-display-full-buttoned-renderer",function(){if(NHD!==void 0)return NHD;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return NHD=r},{mode:1});var l1=function(r,f,I,C){C=C===void 0?!1:C;_.fw.call(this,r);this.adsClientErrorMessage=I;this.aggressivelySample=C;this.args=[];f&&this.args.push(f)};
_.t(l1,_.fw);var CH=function(r,f,I,C){C=C===void 0?!1:C;_.fw.call(this,r);this.adsClientErrorMessage=I;this.aggressivelySample=C;this.args=[];f&&this.args.push(f)};
_.t(CH,_.fw);var $wq=function(r){_.Mu.call(this);var f=this;this.initializationFunction=r;this.instance=null;this.addOnDisposeCallback(function(){_.Z8(f.instance);f.instance=null})};
_.t($wq,_.Mu);$wq.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.Bo("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var mwR=function(){var r=new Map;[].forEach(function(f){r.set(f.JSC$26730_getType(),f)})};new Promise(function(){});var tVl=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"]]),F7c=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"}]]),F7T=function(r){this.experimentApiProvider=r;r=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=r<.1};var UJ=function(r,f,I,C){_.Mu.call(this);this.adsControlFlowEventListeners=f;this.adEventLogger=I;this.experimentApiProvider=C;this.adsControlFlowManagerHelper=r(this,this,this,this,this);_.V$(this,this.adsControlFlowManagerHelper);r=_.E(f);for(f=r.next();!f.done;f=r.next())_.V$(this,f.value)};
_.t(UJ,_.Mu);var P$D=function(r,f,I,C){sJ(r.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",f,I,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,C);r=_.E(r.adsControlFlowEventListeners);for(C=r.next();!C.done;C=r.next())P$D(C.value,f,I)};
_.l=UJ.prototype;_.l.onOpportunityProcessedExternallyManaged=function(r,f,I,C){sJ(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",r,I,f,void 0,void 0,void 0,void 0,void 0,void 0,void 0,C)};
_.l.onSlotReceivedExternallyManaged=function(r,f){OJ(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",r,f)};
_.l.onSlotEntered=function(r){if(oQ(this.adsControlFlowManagerHelper,r)!=null){OJ(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",r);this.adsControlFlowManagerHelper.onSlotEntered(r);for(var f=_.E(this.adsControlFlowEventListeners),I=f.next();!I.done;I=f.next())I.value.onSlotEntered(r);if(oQ(this.adsControlFlowManagerHelper,r)!=null&&oQ(this.adsControlFlowManagerHelper,r).isOccupyingSlotType()&&QZ(this.adsControlFlowManagerHelper,r)&&!tVg(this.adsControlFlowManagerHelper,r)){var C;AI(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",r,(C=QZ(this.adsControlFlowManagerHelper,r))!=null?C:void 0);r=oQ(this.adsControlFlowManagerHelper,r);r.slotLifecycleStage!=="entered"&&ZM(r.slot,r.slotLifecycleStage,"enterLayoutForSlot");r.slotLifecycleStage="rendering";r.registeredLayoutRenderingAdapter.startRendering(r.layout)}}};
_.l.onSlotExited=function(r){if(oQ(this.adsControlFlowManagerHelper,r)!=null){OJ(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",r);this.adsControlFlowManagerHelper.onSlotExited(r);for(var f=_.E(this.adsControlFlowEventListeners),I=f.next();!I.done;I=f.next())I.value.onSlotExited(r);oQ(this.adsControlFlowManagerHelper,r)!=null&&oQ(this.adsControlFlowManagerHelper,r).markedForUnscheduleAfterOutboundAdapterRequests&&THU(this,r)}};
_.l.onLayoutReceivedExternallyManaged=function(r,f,I){r.managerLayer!=="core"&&AI(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",r,f,I)};
var c04=function(r,f,I){if(oQ(r.adsControlFlowManagerHelper,f)!=null){AI(r.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",f,I);r=_.E(r.adsControlFlowEventListeners);for(var C=r.next();!C.done;C=r.next())c04(C.value,f,I)}};
UJ.prototype.onLayoutExited=function(r,f,I){if(oQ(this.adsControlFlowManagerHelper,r)!=null){AI(this.adEventLogger,P$R(I),r,f);this.adsControlFlowManagerHelper.onLayoutExited(r,f);for(var C=_.E(this.adsControlFlowEventListeners),Y=C.next();!Y.done;Y=C.next())Y.value.onLayoutExited(r,f,I);(I=QZ(this.adsControlFlowManagerHelper,r))&&f.layoutId===I.layoutId&&W73(this,r)}};
UJ.prototype.disposeInternal=function(){var r=L7_(this.adsControlFlowManagerHelper);r=_.E(r);for(var f=r.next();!f.done;f=r.next())THU(this,f.value);_.Mu.prototype.disposeInternal.call(this)};
var THU=function(r,f){if(oQ(r.adsControlFlowManagerHelper,f)!=null)if(oQ(r.adsControlFlowManagerHelper,f).JSC$26761_isSlotExitRequested()||oQ(r.adsControlFlowManagerHelper,f).JSC$26761_isLayoutExitRequested())oQ(r.adsControlFlowManagerHelper,f).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(oQ(r.adsControlFlowManagerHelper,f).isOccupyingSlotType())oQ(r.adsControlFlowManagerHelper,f).markedForUnscheduleAfterOutboundAdapterRequests=!0,W73(r,f);else if(oQ(r.adsControlFlowManagerHelper,f).JSC$26761_isSlotFillRequested())oQ(r.adsControlFlowManagerHelper,
f).markedForUnscheduleAfterOutboundAdapterRequests=!0,oQ(r.adsControlFlowManagerHelper,f)!=null&&(OJ(r.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",f),f=oQ(r.adsControlFlowManagerHelper,f),f.fulfillmentLifecycleStage="fill_cancel_requested",f.registeredFulfillmentAdapter.cancelSlotFilling());else{var I=QZ(r.adsControlFlowManagerHelper,f),C;r.experimentApiProvider.get();(C=_.N("h5_enable_layout_unscheduling_events"))&&(I?mwB(r,f,I):_.Bo(Error("Hh"),f,I,void 0,!1));OJ(r.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",f);var Y=oQ(r.adsControlFlowManagerHelper,f),V=f.slotEntryTrigger,S=Y.registeredSlotEntryTriggerAdapters.get(V.triggerId);S&&(S.unregisterTrigger(V),Y.registeredSlotEntryTriggerAdapters.delete(V.triggerId));V=_.E(f.slotFulfillmentTriggers);for(S=V.next();!S.done;S=V.next()){S=S.value;var h=Y.registeredFulfillmentTriggerAdapters.get(S.triggerId);h&&(h.unregisterTrigger(S),Y.registeredFulfillmentTriggerAdapters.delete(S.triggerId))}V=_.E(f.slotExpirationTriggers);
for(S=V.next();!S.done;S=V.next())if(S=S.value,h=Y.registeredExpirationTriggerAdapters.get(S.triggerId))h.unregisterTrigger(S),Y.registeredExpirationTriggerAdapters.delete(S.triggerId);Y.hasLayout()&&(V=Y.layout,Gf(Y,V.layoutExitNormalTriggers),Gf(Y,V.layoutExitSkipTriggers),Gf(Y,V.layoutExitMuteTriggers),Gf(Y,V.layoutExitUserInputSubmittedTriggers),Gf(Y,V.layoutExitUserCancelledTriggers));Y.registeredFulfillmentAdapter=void 0;Y.registeredSlotAdapter!=null&&(Y.registeredSlotAdapter.release(),Y.registeredSlotAdapter=
void 0);Y.registeredLayoutRenderingAdapter!=null&&(Y.registeredLayoutRenderingAdapter.release(),Y.registeredLayoutRenderingAdapter=void 0);Y=r.adsControlFlowManagerHelper;oQ(Y,f)&&(Y=eYT(Y,f.slotType+"_"+f.slotPhysicalPosition))&&Y.delete(f.slotId);OJ(r.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",f);r=_.E(r.adsControlFlowEventListeners);for(Y=r.next();!Y.done;Y=r.next())Y=Y.value,Y.onSlotUnscheduled(f),I&&!C&&mwB(Y,f,I)}},mwB=function(r,f,I){AI(r.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
f,I);
AI(r.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",f,I);r=_.E(r.adsControlFlowEventListeners);for(var C=r.next();!C.done;C=r.next())C=C.value,I&&mwB(C,f,I)},W73=function(r,f){if(oQ(r.adsControlFlowManagerHelper,f)!=null&&oQ(r.adsControlFlowManagerHelper,f).isOccupyingSlotType()){var I=QZ(r.adsControlFlowManagerHelper,f);
if(I&&tVg(r.adsControlFlowManagerHelper,f)){if(oQ(r.adsControlFlowManagerHelper,f)!=null){var C=r.adEventLogger,Y;var V=((Y=F7c.get("abandoned"))==null?void 0:Y.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";AI(C,V,f,I);r=oQ(r.adsControlFlowManagerHelper,f);r.slotLifecycleStage!=="rendering"&&ZM(r.slot,r.slotLifecycleStage,"exitLayout");r.slotLifecycleStage="rendering_stop_requested";r.registeredLayoutRenderingAdapter.stopRendering(I,"abandoned")}}else{OJ(r.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
f);try{C=oQ(r.adsControlFlowManagerHelper,f);if(!C)throw new CH("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");C.slotLifecycleStage!=="enter_requested"&&C.slotLifecycleStage!=="entered"&&C.slotLifecycleStage!=="rendering"&&ZM(C.slot,C.slotLifecycleStage,"exitSlot");C.slotLifecycleStage="exit_requested";if(C.registeredSlotAdapter===void 0)throw C.slotLifecycleStage="scheduled",new CH("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
C.registeredSlotAdapter.exit()}catch(S){S instanceof CH&&S.adsClientErrorMessage?(J0D(r.adEventLogger,S.adsClientErrorMessage,f),_.Bo(S,f,void 0,void 0,S.aggressivelySample)):(J0D(r.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",f),_.Bo(S,f))}}}};var kh=function(r,f,I,C,Y,V){_.Mu.call(this);this.registry=r;this.experimentApiProvider=V;this.slotMap=new Map};
_.t(kh,_.Mu);var eYT=function(r,f){return(r=r.slotMap.get(f))?r:new Map},oQ=function(r,f){return eYT(r,f.slotType+"_"+f.slotPhysicalPosition).get(f.slotId)},L7_=function(r){var f=[];
r.slotMap.forEach(function(I){I=_.E(I.values());for(var C=I.next();!C.done;C=I.next())f.push(C.value.slot)});
return f};
kh.prototype.onSlotEntered=function(r){r=oQ(this,r);r.slotLifecycleStage!=="enter_requested"&&ZM(r.slot,r.slotLifecycleStage,"onSlotEntered");r.slotLifecycleStage="entered"};
var tVg=function(r,f){r=oQ(r,f);return r.hasLayout()&&r.isRendering()},QZ=function(r,f){(r=oQ(r,f))?r.hasLayout()&&!r.layout&&_.Bo("Unexpected empty layout",f):_.Bo("Unexpected undefined slotState",f);
return(r==null?void 0:r.layout)||null};
kh.prototype.onSlotExited=function(r){r=oQ(this,r);r.slotLifecycleStage!=="exit_requested"&&ZM(r.slot,r.slotLifecycleStage,"onSlotExited");r.slotLifecycleStage="scheduled"};
kh.prototype.onLayoutExited=function(r,f){r=oQ(this,r);r.isPrimaryLayout(f)&&(r.slotLifecycleStage!=="rendering_stop_requested"&&ZM(r.slot,r.slotLifecycleStage,"onLayoutExited"),r.slotLifecycleStage="entered")};
var Gf=function(r,f){f=_.E(f);for(var I=f.next();!I.done;I=f.next()){I=I.value;var C=r.registeredLayoutExitTriggerAdapters.get(I.triggerId);C&&(C.unregisterTrigger(I),r.registeredLayoutExitTriggerAdapters.delete(I.triggerId))}},ZM=function(r,f,I){_.Bo("Slot stage was "+f+" when calling method "+I,r)};var HZX=function(r){_.Mu.call(this);this.deps=r;this.JSC$13249_adsControlFlowManager=j7q(this)};
_.t(HZX,_.Mu);var j7q=function(r){var f=new UJ(function(I,C,Y,V){return new kh(r.deps.registry,I,C,Y,V,r.deps.experimentApiProvider)},new Set(L7m(r.deps.registry).concat(r.deps.listeners)),r.deps.adEventLogger,r.deps.experimentApiProvider);
_.V$(r,f);return f};var iZV=function(r,f){_.Mu.call(this);this.experimentApiProvider=r;this.eventLoggingSettingsProvider=f;this.eventCount=0};
_.t(iZV,_.Mu);iZV.prototype.logEvent=function(r){sJ(this,r)};
var OJ=function(r,f,I,C){sJ(r,f,void 0,void 0,void 0,I,void 0,void 0,void 0,I.adSlotLoggingData,void 0,void 0,C)},AI=function(r,f,I,C,Y){sJ(r,f,void 0,void 0,void 0,I,C?C:void 0,void 0,void 0,I.adSlotLoggingData,C?C.adLayoutLoggingData:void 0,void 0,Y)},J0D=function(r,f,I){sJ(r,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,I,void 0,void 0,void 0,I.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:f})},sJ=function(r,f,I,C,Y,V,S,h,w,n,d,z,g){g=g===void 0?0:g;
RYs(r.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+f,"slot:",V,"layout:",S,"ping:",h,"Opportunity:",{opportunityType:I,associatedSlotId:C,slotsFromOpportunity:Y,triggerBundle:w,adSlotLoggingData:n,adLayoutLoggingData:d});try{var X=function(){r.experimentApiProvider.get();if(f!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){f||_.Bo("Empty PACF event type",V,S);var P=r.eventLoggingSettingsProvider.get();var W;(W=P.alwaysIncludeDebugData)||(P.experimentApiProvider.get(),W=
!1);P=W;W={eventType:f,eventOrder:++r.eventCount};var m={};V&&(m.slotData=c0B(P,V));if(S){var v={type:S.layoutType,controlFlowManagerLayer:tVl.get(S.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};P&&(v.debugData={layoutId:S.layoutId});m.layoutData=v}h&&(m.pingData={pingDispatchStatus:h.dispatchStatus,serializedAdPingMetadata:h.ping.serializedAdPingMetadata,pingIndex:h.index});w&&(m.triggerData=THd(w.trigger,w.category));I&&(m.opportunityData=W7K(P,I,C,Y));W.adClientData=m;n&&(W.serializedSlotAdServingData=
n.serializedSlotAdServingDataEntry);d&&(W.serializedAdServingData=d.serializedAdServingDataEntry);z&&(W.errorInfo=z);_.NW("adsClientStateChange",{adsClientEvent:W})}};
g&&g>0?_.dp(_.tF(),function(){return X()},g):X()}catch(P){RYs(r.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.dp(_.tF(),function(){_.Bo(P instanceof Error?P:String(P),V,S,{pacf_message:"exception during pacf logging"})})}};var vDU=function(r,f){iZV.call(this,r,f)};
_.t(vDU,iZV);var K7T=function(){},RYs=function(r,f){return _.N(f)};var Uw4=function(){var r=new y0X;this.JSC$13268_adsControlFlowManager=(new HZX(r)).JSC$13249_adsControlFlowManager},y0X=function(){_.Mu.call(this);
var r=this;this.experimentApiProvider=new $wq(function(){return new K7T});
var f=new $wq(function(){return new F7T(r.experimentApiProvider)});
this.adEventLogger=new vDU(this.experimentApiProvider,f);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.t(y0X,_.Mu);var s7B=function(){},OZq,Bg=function(){OZq||(OZq=new s7B);
return OZq},qP=function(r){if(!r.JSC$13279_externallyManagedSlotAdapterCallback){var f=(new Uw4).JSC$13268_adsControlFlowManager;
r.JSC$13279_externallyManagedSlotAdapterCallback=f}return r.JSC$13279_externallyManagedSlotAdapterCallback},oD4=function(r,f,I){var C=f.opportunityType,Y=Error("Ih");
if(C!==void 0){var V=qP(r);P$D(V,C,void 0,I)}else _.Bo(Y,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});V=[];if(f.adSlotAndLayoutMetadata!==void 0){f=_.E(f.adSlotAndLayoutMetadata);for(var S=f.next();!S.done;S=f.next()){var h=S.value;if(S=h.adSlotMetadata)if(V.push(S),r.onSlotReceivedExternallyManaged(S,I),h.adLayoutMetadata){h=_.E(h.adLayoutMetadata);for(var w=h.next();!w.done;w=h.next())r.onLayoutReceivedExternallyManaged(S,w.value,I)}else I>0&&_.Bo("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
C,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else I>0&&_.Bo("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+C,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else I>0&&_.Bo("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+C,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(C!==void 0)r.onOpportunityProcessedExternallyManaged(C,V,void 0,I);else _.Bo(Y,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
s7B.prototype.onSlotReceivedExternallyManaged=function(r,f){r=YU(r);if(r instanceof CH)_.Bo(r,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else qP(this).onSlotReceivedExternallyManaged(r,f)};
s7B.prototype.onLayoutReceivedExternallyManaged=function(r,f,I){r=YU(r);f=eYc(f);if(r instanceof CH)_.Bo(r,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(f instanceof l1)_.Bo(f,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else qP(this).onLayoutReceivedExternallyManaged(r,f,I)};
s7B.prototype.onOpportunityProcessedExternallyManaged=function(r,f,I,C){var Y=[];f=_.E(f);for(var V=f.next();!V.done;V=f.next())V=YU(V.value),V instanceof CH?_.Bo(V,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):Y.push(V);qP(this).onOpportunityProcessedExternallyManaged(r,Y,I,C)};
var Q7C=function(r,f){f=YU(f);if(f instanceof CH)_.Bo(f,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var I=qP(r);OJ(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",f);I=_.E(I.adsControlFlowEventListeners);for(var C=I.next();!C.done;C=I.next())C=oQ(C.value,f),C.slotLifecycleStage!=="not_scheduled"&&ZM(C.slot,C.slotLifecycleStage,"onSlotScheduled"),C.slotLifecycleStage="scheduled";r=qP(r);OJ(r.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",f);r=_.E(r.adsControlFlowEventListeners);
for(I=r.next();!I.done;I=r.next())I.value.onSlotEntered(f)}},A0q=function(r,f){f=YU(f);
if(f instanceof CH)_.Bo(f,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var I=qP(r);OJ(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",f);I=_.E(I.adsControlFlowEventListeners);for(var C=I.next();!C.done;C=I.next())C.value.onSlotExited(f);r=qP(r);OJ(r.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",f);r=_.E(r.adsControlFlowEventListeners);for(I=r.next();!I.done;I=r.next())I.value.onSlotUnscheduled(f)}},ZZB=function(r,f,I){f=YU(f);
I=eYc(I);if(f instanceof CH)_.Bo(f,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(I instanceof l1)_.Bo(I,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var C=qP(r);AI(C.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",f,I);C=_.E(C.adsControlFlowEventListeners);for(var Y=C.next();!Y.done;Y=C.next())Y.value.onLayoutScheduled(f,I);r=qP(r);AI(r.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",f,I);r=_.E(r.adsControlFlowEventListeners);
for(C=r.next();!C.done;C=r.next())c04(C.value,f,I)}},uF=function(r,f,I){f=YU(f);
I=eYc(I);if(f instanceof CH)_.Bo(f,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(I instanceof l1)_.Bo(I,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var C=qP(r);AI(C.adEventLogger,P$R("normal"),f,I);C=_.E(C.adsControlFlowEventListeners);for(var Y=C.next();!Y.done;Y=C.next())Y.value.onLayoutExited(f,I,"normal");r=qP(r);r=_.E(r.adsControlFlowEventListeners);for(C=r.next();!C.done;C=r.next())mwB(C.value,f,I)}};_.DM=_.Hc(function(r){var f=_.jS(r,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});r=Object.assign({},f);var I=f.data;f=f.customCommandResolver;var C=(delete r.data,delete r.customCommandResolver,r),Y=_.yy();_.oK(Y,function(){return I().interaction},f,function(){var h;
return(h=C.listenToTapEvent)==null?void 0:h.call(C)});
_.ZW(Y,{visibilityCallback:function(h){var w,n=(w=I().interaction)==null?void 0:w.onFirstVisible;h&&(n&&_.F2(n),C.setOnErrorHandler()&&J0R(Y))},
showOption:_.Kc});r=_.E(_.ld(!1,void 0,"eiYvIe"));var V=r.next().value,S=r.next().value;r=_.IC(function(){var h;((h=C.setTouchEndHandler)==null?0:h.call(C))&&!V()&&(Y.value.click(),S(!0),setTimeout(function(){S(!1)},100));
return!1});
return _.p("ad-image-view-model",{class:function(){var h,w=[((h=I().interaction)==null?0:h.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],n;((n=C.isGridViewEnabled)==null?0:n.call(C))&&w.push("ytwAdImageViewModelHostInGridView");return w.join(" ")},
el:Y,"on:touchend":r},_.p("div",{class:"ytwAdImageViewModelHostImageContainer"},_.p(_.J3,{data:function(){var h;return{sources:I().imageSources,contentMode:(h=I().imageProperties)==null?void 0:h.contentMode}},
alt:function(){var h,w;return((h=I().interaction)==null?void 0:(w=h.accessibility)==null?void 0:w.label)||""},
targetHeight:C.targetHeight,targetWidth:C.targetWidth,preserveHeight:C.preserveHeight,preserveWidth:C.preserveWidth,useWidth:C.useWidth,style:function(){var h,w;return"vertical-align: bottom;"+(((h=I().background)==null?0:h.color)?"background-color:"+_.MG((w=I().background)==null?void 0:w.color)+";":"")},
className:function(){return C.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var h,w;return(w=(h=C.setDraggable)==null?void 0:h.call(C))!=null?w:void 0}})))},"cb");var GjU=_.Hc(function(r){var f=r.data,I=r.listenToTapEvent,C=_.yy();_.N("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.oK(C,function(){return f().interaction},void 0,function(){return I==null?void 0:I()});
_.ZW(C,{visibilityCallback:function(V){var S,h=(S=f().interaction)==null?void 0:S.onFirstVisible;V&&h&&_.F2(h)},
showOption:_.Kc});r=_.IC(function(){if(_.N("enable_web_home_top_landscape_image_layout_legacy_click_command")){var V,S=(V=f().interaction)==null?void 0:V.onTap;S&&_.kA(C.value,"yt-navigate",{endpoint:_.aB(S)})}});
var Y=function(){};
return _.p("ad-button-hover-overlay-view-model",{"on:click":r,class:function(){var V;return((V=f().interaction)==null?0:V.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:C},function(){return _.N("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.p(_.X1,{data:function(){return f().button}},{adButtonViewModel:function(V){return _.p(_.Uq,{data:V.data,
customCommandResolver:Y})}}):_.p(_.X1,{data:function(){return f().button}},{adButtonViewModel:_.Uq})}())},"db");var VU;_.Kv(_.Hc(function(r){var f=r.data;var I=_.yy();_.N("stop_av_measurement_on_detach")&&_.$L(function(){SB(I)});
_.oK(I,function(){return f().interaction},void 0,function(){return!0});
_.ZW(I,{visibilityCallback:function(S){if(S){var h;(S=(h=f().interaction)==null?void 0:h.onFirstVisible)&&_.F2(S);var w;if(h=(w=f().adLayoutData)==null?void 0:w.activeViewData)E1(I,h),_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&SB(I)})}else _.N("stop_av_measurement_on_detach")&&SB(I)},
showOption:_.Kc,hideOption:yd});r=_.E(_.ld(!1,void 0,"yzu6qe"));var C=r.next().value,Y=r.next().value;r=_.IC(function(){Y(!0)});
var V=_.IC(function(){Y(!1)});
return _.p("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:I,"on:mouseenter":r,"on:mouseleave":V},_.p("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.lB({"max-width":function(){return _.N("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.p("div",{class:function(){var S;
a:{var h;switch((S=_.F(f().thumbnailImage,zK))==null?void 0:(h=S.imageProperties)==null?void 0:h.renderingAspect){case "RENDERING_ASPECT_SQUARE":S="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":S="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}S=void 0}return S}},_.p(_.X1,{data:function(){return f().thumbnailImage}},{adImageViewModel:function(S){return _.p(_.DM,
{data:S.data,
listenToTapEvent:!0,setTouchEndHandler:_.N("enable_top_landscape_image_experiment_dom_id_web")})}})),_.p("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.p(_.M,{cond:function(){var S,h,w;
return(S=_.F(f().thumbnailImage,zK))==null?void 0:(h=S.imageProperties)==null?void 0:(w=h.overlayIcon)==null?void 0:w.iconImage},
then:function(S){return _.p(_.J3,{data:S,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.p("div",{class:function(){return C()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.p(_.X1,{data:function(){return f().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(S){return _.p(GjU,
{data:S.data,
listenToTapEvent:!0})}}))),_.p("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.p(_.X1,{data:function(){return f().feedAdMetadata}},{feedAdMetadataViewModel:function(S){return _.p(C5B,{data:S.data,
listenToTapEvent:!0,setTouchEndHandler:_.N("enable_top_landscape_image_experiment_dom_id_web")})}})))},"eb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.jv}});_.Kv(_.Hc(function(r){var f=r.data;var I=_.yy();_.N("stop_av_measurement_on_detach")&&_.$L(function(){SB(I)});
var C=_.XA(_.eO);_.oK(I,function(){return f().interaction});
_.ZW(I,{visibilityCallback:function(n){if(n){var d;(n=(d=f().interaction)==null?void 0:d.onFirstVisible)&&_.F2(n);var z;if(d=(z=f().adLayoutData)==null?void 0:z.activeViewData)E1(I,d),_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&SB(I)})}else _.N("stop_av_measurement_on_detach")&&SB(I)},
showOption:_.Kc,hideOption:yd});var Y=_.IC(function(n){var d,z,g=(d=_.F(f().adImage,zK))==null?void 0:(z=d.interaction)==null?void 0:z.onTap;g&&(_.N("enable_square_image_components_ui_web_with_custom_event")?_.kA(I.value,"yt-navigate",{endpoint:_.aB(g)}):Glw(n,g))}),V=_.IC(function(){var n,d,z=(n=_.F(f().adButton,kb8))==null?void 0:(d=n.interaction)==null?void 0:d.onTap;
z&&_.kA(I.value,"yt-navigate",{endpoint:_.aB(z)})}),S=function(){};
r={};var h={},w={};return _.p("square-image-layout-view-model",{class:_.qd("ytwSquareImageLayoutViewModelHost",(r.ytwSquareImageLayoutViewModelHostColumn=C,r)),el:I},_.p("div",{class:_.qd("ytwSquareImageLayoutViewModelHostImage",(h.ytwSquareImageLayoutViewModelHostColumnImage=C,h))},function(){return _.N("enable_square_image_components_ui_web_with_native_img")?_.p("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var n,d,z;return((n=_.F(f().adImage,zK))==null?void 0:(d=n.imageSources)==
null?void 0:(z=d[0])==null?void 0:z.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:!1,"on:click":Y}):_.p(_.X1,{data:function(){return f().adImage}},{adImageViewModel:function(n){return _.p(_.DM,{data:n.data,
isGridViewEnabled:C,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.p("div",{class:_.qd("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(w.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=C,w))},_.p(_.X1,{data:function(){return f().feedAdMetadata}},{feedAdMetadataViewModel:C5B}),function(){return _.N("enable_square_image_components_ui_web_with_float_button")?_.p("div",{"on:click":V},_.p(_.X1,{data:function(){return f().adButton}},
{adButtonViewModel:function(n){var d={};
return _.p(_.Uq,{data:n.data,customCommandResolver:S,className:_.qd((d.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,d.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=C,d))})}})):_.p(_.X1,{data:function(){return f().adButton}},{adButtonViewModel:function(n){var d={};
return _.p(_.Uq,{data:n.data,className:_.qd((d.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,d.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=C,d))})}})}()))},"fb"),"square-image-layout-view-model",{props:{data:_.jv}});_.Kv(_.Hc(function(r){var f=r.data;var I=r.noBottomMargin;var C=r.typographyBump;var Y=_.yy();_.N("stop_av_measurement_on_detach")&&_.$L(function(){SB(Y)});
_.N("enable_web_home_top_landscape_image_layout_level_click")&&_.oK(Y,function(){return f().interaction},void 0,function(){return!0});
r=function(){return f().interaction};
r!==void 0&&r!==null||_.Hw(Error("Jh"));_.ZW(Y,{visibilityCallback:function(d){if(d){var z;(d=(z=f().interaction)==null?void 0:z.onFirstVisible)&&_.F2(d);var g;if(z=(g=f().adLayoutData)==null?void 0:g.activeViewData)E1(Y,z),_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&SB(Y)})}else _.N("stop_av_measurement_on_detach")&&SB(Y)},
showOption:_.Kc,hideOption:yd});var V=function(){var d,z,g;return(d=_.F(f().thumbnailImage,zK))==null?void 0:(z=d.background)==null?void 0:(g=z.backgroundImageSource)==null?void 0:g.imageSources};
r=_.E(_.ld(!1,void 0,"GIwTMc"));var S=r.next().value,h=r.next().value;r=_.IC(function(){h(!0)});
var w=_.IC(function(){h(!1)}),n=function(){return S()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.p("top-landscape-image-layout-view-model",{class:function(){var d;return((d=f().interaction)==null?0:d.onTap)&&_.N("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:Y,"on:mouseenter":r,"on:mouseleave":w},_.p("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.p(_.M,{cond:function(){return V()&&V().length>0},
then:function(){return _.p("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.lB({top:"0","background-image":function(){return"url("+String(V()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.p(_.M,{cond:function(){return!!f().adButtonHoverOverlay},
then:function(){return _.p("div",{class:n},_.p(_.X1,{data:function(){return f().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:GjU}))}}),_.p("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.p(_.X1,{data:function(){return f().thumbnailImage}},{adImageViewModel:function(d){return _.p(_.DM,{data:d.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.N("enable_web_home_top_landscape_image_layout_level_click")})}})),_.p("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.p(_.J3,{data:{sources:[{clientResource:{imageName:_.N("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.p("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.p(_.X1,{data:function(){return f().feedAdMetadata}},{feedAdMetadataViewModel:function(d){return _.p(C5B,{data:d.data,
noBottomMargin:function(){return I==null?void 0:I()},
listenToTapEvent:function(){return _.N("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return C==null?void 0:C()}})}})))},"gb"),"top-landscape-image-layout-view-model",{props:{data:_.jv,
noBottomMargin:_.jv,typographyBump:_.jv}});_.Kv(_.Hc(function(r){var f=r.data;var I=r.typographyBump;var C=_.yy();_.N("stop_av_measurement_on_detach")&&_.$L(function(){SB(C)});
_.ZW(C,{visibilityCallback:function(Y){if(Y){var V;(Y=(V=f().interaction)==null?void 0:V.onFirstVisible)&&_.F2(Y);var S;if(V=(S=f().adLayoutData)==null?void 0:S.activeViewData)E1(C,V),_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&SB(C)})}else _.N("stop_av_measurement_on_detach")&&SB(C)},
showOption:_.Kc,hideOption:yd});return _.p("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:C},_.p("div",null,_.p(_.X1,{data:function(){return f().videoLockup}},{lockupViewModel:function(Y){return _.p(_.Z2,{data:Y.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:I})}})))},"hb"),"video-display-button-group-layout-view-model",{props:{data:_.jv,
noBottomMargin:_.jv,typographyBump:_.jv}});_.Kv(_.Hc(function(r){var f=r.data;var I=r.typographyBump;var C=_.yy();_.N("stop_av_measurement_on_detach")&&_.$L(function(){SB(C)});
_.ZW(C,{visibilityCallback:function(Y){if(Y){var V;(Y=(V=f().interaction)==null?void 0:V.onFirstVisible)&&_.F2(Y);var S;if(V=(S=f().adLayoutData)==null?void 0:S.activeViewData)E1(C,V),_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&SB(C)})}else _.N("stop_av_measurement_on_detach")&&SB(C)},
showOption:_.Kc,hideOption:yd});return _.p("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:C},_.p("div",null,_.p(_.X1,{data:function(){return f().videoLockup}},{lockupViewModel:function(Y){return _.p(_.Z2,{data:Y.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:I})}})))},"ib"),"video-display-full-layout-view-model",{props:{data:_.jv,
noBottomMargin:_.jv,typographyBump:_.jv}});_.kjg=_.Hc(function(r){var f=r.data;r=_.yy();return _.p("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:r},_.p(_.M,{cond:function(){return f().imageBadge},
then:function(I){return _.p(_.J3,{data:I,alt:""})}}))},"jb");var BHX=_.Hc(function(r){var f=r.data;var I=r.customCommandResolver;r=_.yy();_.oK(r,function(){return f().interaction},I);
_.ZW(r,{visibilityCallback:function(C){var Y,V=(Y=f().interaction)==null?void 0:Y.onFirstVisible;C&&V&&_.F2(V)},
showOption:_.Kc});return _.p("carousel-ad-card-image-view-model",{class:function(){var C;return((C=f().interaction)==null?0:C.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:r,"aria-label":function(){var C,Y;return(C=f().interaction)==null?void 0:(Y=C.accessibility)==null?void 0:Y.label}},_.p(_.X1,{data:function(){return f().adImage}},{adImageViewModel:function(C){return _.p(_.DM,{data:C.data,
customCommandResolver:I})}}),_.p("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.p(_.X1,{data:function(){return f().badge}},{adCardBadgeViewModel:_.kjg})),_.p(_.xZ,{model:{color:4}}))},"kb");var q9U=_.Hc(function(r){var f=_.E(_.ld(0,void 0,"o9Bzd")),I=f.next().value;f.next();var C=f.next().value,Y=_.E(_.ld(!1,void 0,"KLdzYe"));f=Y.next().value;var V=Y.next().value,S;_.$L(function(){clearTimeout(S)});
Y=_.IC(function(){var n;((n=r.animate)==null?0:n.call(r))?(V(!0),S=setTimeout(function(){V(!1);h()},200)):h();
return!1});
var h=function(){C(function(n){return(n+r.numShownItems())%r.data().length})},w={};
return _.p("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.p("div",{class:_.qd("ytwHorizontalCarouselCarouselWrapper")},_.p("div",{class:_.qd("ytwHorizontalCarouselCarouselInnerWrapper",(w.ytwHorizontalCarouselAnimating=f,w))},_.p(_.pz,{each:r.data,keyBy:"INDEX"},function(n,d){return _.p("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.lB({"flex-basis":function(){return"calc((100% - (8px * "+(r.numShownItems()-1)+")) / "+r.numShownItems()+")"},
order:function(){var z=d-I();z<0&&(z+=r.data().length);return z}})},r.children(n,d))}))),_.p("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":Y},r.nextButton()))},"lb");var upC=_.Hc(function(r){var f=r.data;var I=r.customCommandResolver;var C=r.expansive;r=_.yy();_.ZW(r,{visibilityCallback:function(Y){var V,S=(V=f().interaction)==null?void 0:V.onFirstVisible;Y&&S&&_.F2(S)},
showOption:_.Kc});return _.p("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:r},_.p(q9U,{data:function(){var Y;return((Y=f())==null?void 0:Y.carouselAdCards)||[]},
nextButton:function(){return _.p(_.X1,{data:function(){return f().nextButton}},{buttonViewModel:function(Y){var V=Y.data;
return _.p(_.LF,{data:function(){return(C==null?0:C())?Object.assign({},V(),{style:"mono"}):V()},
className:_.N("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(Y){return _.p(_.X1,{data:Y},{carouselAdCardImageViewModel:function(V){return _.p(BHX,{data:V.data,customCommandResolver:I})}})}))},"mb");var Dw3=_.Hc(function(r){var f=r.data;var I=r.customCommandResolver;var C=r.className;var Y=r.buttonClassName;var V=r.animationEntityKey;var S=r.expansive;return _.p("carousel-button-view-model",{class:_.qd("ytwCarouselButtonViewModelHost",C)},_.p(_.X1,{data:function(){return f().carousel}},{carouselAdCardCollectionViewModel:function(h){return _.p(upC,{data:h.data,
customCommandResolver:I,expansive:S})}}),_.p(_.X1,{data:function(){return f().button}},{adButtonViewModel:function(h){var w=h.data;
return _.p(_.Uq,{data:function(){return(S==null?0:S())?Object.assign({},w(),{style:"AD_BUTTON_STYLE_TONAL"}):w()},
className:Y,customCommandResolver:I,animationEntityKey:V})}}))},"nb");_.ruT=_.Hc(function(r){var f=r.data;r=r.className;var I=_.yy();_.$E(function(){var C;((C=f())==null?0:C.backgroundColor)&&I.value.setAttribute("data-background-color",String(f().backgroundColor))});
return _.p("pivot-button-view-model",{el:I,class:_.qd("ytwPivotButtonViewModelHost",r)},_.p(_.h8,{command:function(){var C=f();C=C.onClickCommand?_.aB(C.onClickCommand):C.contentDescription?_.sr(C.contentDescription):void 0;return C},
ariaLabel:function(){return f().contentDescription}},_.p(_.M,{cond:function(){return f().thumbnail},
then:function(C){return _.p(_.J3,{data:C,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.p(_.M,{cond:function(){return f().icon},
then:function(C){return _.p(_.V2,{icon:function(){return C().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"ob");_.fDs=_.Hc(function(r){var f=r.data;var I=r.buttonShapeOverrideables;return _.p("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.p(_.X1,{data:function(){return f().buttonViewModels}},{buttonViewModel:function(C){return _.p(_.LF,{data:C.data,
buttonOverrides:I})},
likeButtonViewModel:function(C){return _.p(_.NV,{data:C.data,buttonShapeOverrideables:I})},
dislikeButtonViewModel:function(C){return _.p(_.Xm,{data:C.data,buttonShapeOverrideables:I})}}))},"pb");var IDX=_.Hc(function(r){var f=r.avatar;var I=r.headline;var C=r.badge;var Y=r.description;var V=r.expansive;r={};return _.p("yt-ad-metadata-shape",{class:_.qd("ytAdMetadataShapeHost",(r.ytAdMetadataShapeHostLarge=V,r))},_.p("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.p(_.M,{cond:f,then:function(S){return _.p(_.D0B,{data:function(){return(V==null?0:V())?Object.assign({},S(),{size:"AD_AVATAR_SIZE_MPLUS"}):S()}})}}),_.p("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.p(_.wW,{text:I,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.p(_.M,{cond:C,then:function(S){return _.p(_.Qd,{data:function(){return(V==null?0:V())?Object.assign({},S(),{style:"AD_BADGE_STYLE_STARK"}):S()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.p("h2",{class:"ytAdMetadataShapeHostDescription"},_.p(_.wW,{text:Y,
linkInheritColor:!0})))},"qb");var Co_=_.Hc(function(r){var f=r.data;var I=r.onShow;var C=r.expansive;r=_.yy();_.oK(r,function(){return f().interaction});
_.$E(function(){var V,S=(V=f().animatedRenderingConfig)==null?void 0:V.delayedSecondsToVisible;if(S){var h=setTimeout(I,S*1E3);_.$L(function(){clearTimeout(h)})}});
var Y={};return _.p("reels-ad-card-buttoned-view-model",{class:_.qd(function(){var V;return((V=f().interaction)==null?0:V.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(Y.ytwReelsAdCardButtonedViewModelHostExpansive=C,Y)),
el:r},_.p(IDX,{avatar:function(){return _.F(f().avatar,ZDg)},
headline:function(){return f().headline},
badge:function(){return _.F(f().adBadge,Gb_)},
description:function(){return f().description},
expansive:C}),_.p(_.X1,{data:function(){return f().ctaButton}},{adButtonViewModel:function(V){var S=V.data;
return _.p(_.Uq,{data:function(){return(C==null?0:C())?Object.assign({},S(),{style:"AD_BUTTON_STYLE_FILLED"}):S()}})}}))},"rb");var YV3=_.Hc(function(r){var f=r.data;r=r.expansive;var I=_.yy();_.N("web_ad_metadata_clickable")&&_.oK(I,function(){return f().interaction});
var C={};C=_.D5("ytwReelsAdMetadataViewModelHost",(C.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.N("web_ad_metadata_clickable"),C));return _.p("reels-ad-metadata-view-model",{class:C,el:I},_.p(IDX,{avatar:function(){return _.F(f().avatar,ZDg)},
headline:function(){return f().headline},
badge:function(){return _.F(f().adBadge,Gb_)},
description:function(){return f().description},
expansive:r}))},"sb");var lDV={iconPosition:"icon-with-label",size:"L"},Vz3=_.Hc(function(r){var f=r.data;r=r.overlayDensity;var I=_.yy(),C=_.JG(r,0);_.az(function(){I.value.setAttribute("overlay-density",String(C()))});
var Y=function(){var z;return(z=f().reelsAdCardButtonedEntityKey)!=null?z:""},V=function(){return Y()+"/ad_button"},S=_.VS(Zgl,Y),h=function(){var z,g;
return(g=(z=S())==null?void 0:z.value)!=null?g:!1},w=_.XA(y0$),n=function(){return Object.assign({},lDV,(w()||C()===2)&&{style:"overlay-dark"})};
r={};var d={};return _.p("reels-player-overlay-layout-view-model",{class:_.qd("ytwReelsPlayerOverlayLayoutViewModelHost",(r.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!f().extension},r.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},r)),
el:I},_.p("div",{class:_.qd("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(d.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},d))},_.p("div",{"aria-hidden":function(){return h()},
class:_.qd("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return h()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.lB({"transition-duration":function(){return OZE(f())}})},_.p(_.X1,{data:function(){return f().adMetadata}},{reelsAdMetadataViewModel:function(z){return _.p(YV3,{data:z.data,
expansive:function(){return C()===1}})}}),_.p(_.M,{cond:function(){return f().extension},
then:function(z){return _.p("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.p(_.X1,{data:z},{adButtonViewModel:function(g){return _.p(_.Uq,{data:g.data,animationEntityKey:V,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(g){return _.p(Dw3,{data:g.data,animationEntityKey:V,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return C()===1}})}}))}})),_.p("div",{"aria-hidden":function(){return!h()},
class:_.qd("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return h()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.lB({"transition-duration":function(){return OZE(f())}})},_.p(_.X1,{data:function(){return f().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(z){return _.p(Co_,{data:z.data,
onShow:function(){_.eS(_.hv("booleanEntity",Y(),{key:Y(),value:!0}))},
expansive:function(){return C()===1}})}}))),_.p("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.p(_.X1,{data:function(){return f().actions}},{reelActionBarViewModel:function(z){return _.p(_.fDs,{data:z.data,
buttonShapeOverrideables:n})}}),_.p(_.X1,{data:function(){return f().menu}},{buttonViewModel:function(z){return _.p(_.LF,{data:z.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},n(),{type:"tonal"})}})}}),_.p(_.X1,{data:function(){return f().pivotButton}},{pivotButtonViewModel:function(z){return _.p(_.ruT,{data:z.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"tb");_.Kv(Vz3,"reels-player-overlay-layout-view-model",{props:{data:_.jv,overlayDensity:_.jv}});var rK=function(){var r=_.y.apply(this,arguments)||this;r.noBottomMargin=!1;r.overlayDensity=0;return r};
_.t(rK,_.y);_.l=rK.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]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.N("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 r=this;MGK(function(){r.isAttached&&fH(r.JSC$13322_storedAdSlotMetadata,r.JSC$13322_storedAdLayoutMetadata,r.adSlotMetadata,r.adLayoutMetadata)&&uF(Bg(),r.JSC$13322_storedAdSlotMetadata,r.JSC$13322_storedAdLayoutMetadata)})};
_.l.attached=function(){fH(this.JSC$13322_storedAdSlotMetadata,this.JSC$13322_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&ZZB(Bg(),this.JSC$13322_storedAdSlotMetadata,this.JSC$13322_storedAdLayoutMetadata)};
_.l.detached=function(){fH(this.JSC$13322_storedAdSlotMetadata,this.JSC$13322_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&uF(Bg(),this.JSC$13322_storedAdSlotMetadata,this.JSC$13322_storedAdLayoutMetadata)};
_.l.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.l.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13322_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13322_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13322_storedAdLayoutMetadata!==void 0&&this.JSC$13322_storedAdSlotMetadata!==void 0&&uF(Bg(),this.JSC$13322_storedAdSlotMetadata,this.JSC$13322_storedAdLayoutMetadata),ZZB(Bg(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13322_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13322_storedAdSlotMetadata=this.adSlotMetadata)};
_.OC.Object.defineProperties(rK.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.adLayoutMetadata}}});
rK.prototype.onAdMetadataChanged=rK.prototype.onAdMetadataChanged;rK.prototype.onTypographyBumpChanged=rK.prototype.onTypographyBumpChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],rK.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],rK.prototype,"rendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],rK.prototype,"ytComponentBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],rK.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],rK.prototype,"noBottomMargin",void 0);_.A([_.K(),_.B("design:type",Object)],rK.prototype,"overlayDensity",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],rK.prototype,"typographyBump",void 0);_.A([_.R("data.adLayoutMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],rK.prototype,"adLayoutMetadata",null);_.A([_.K(),_.B("design:type",Object)],rK.prototype,"adSlotMetadata",void 0);
_.A([_.uA("ytd-video-display-full-buttoned-and-button-group-renderer"),_.B("design:type",HTMLElement)],rK.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.A([_.Bt("typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rK.prototype,"onTypographyBumpChanged",null);_.A([_.Bt("adLayoutMetadata","adSlotMetadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rK.prototype,"onAdMetadataChanged",null);
rK=_.A([_.U({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],rK);
_.Q(rK,"ytd-in-feed-ad-layout-renderer",function(){if(qh3!==void 0)return qh3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return qh3=r},
{mode:_.QQ("kevlar_poly_si_batch_j028")?1:2});var ESq;var SVU;var fU=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return r};
_.t(fU,_.y);_.l=fU.prototype;_.l.computeHasLiveDescription=function(r){return!(r==null||!r.liveDescription)};
_.l.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.l.onYtToggleButton=function(r){var f,I=(f=this.data)==null?void 0:f.videoReminderEntityKey;I&&this.ytdReduxBehavior.dispatch(_.hv("upcomingEventReminderStateEntity",I,{key:I,state:r.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 r;this.videoReminderState&&_.F((r=this.data)==null?void 0:r.cta,_.mR)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.l.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var r=_.yH(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);r&&(r.startsWith("//")&&(r="https:"+r),this.hostElement.classList.add("channel-banner"),_.Zh(this.hostElement,{"--ytvmh-channel-banner":"url("+r+")"}))}else _.N("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.l.onPlayerReady=function(){this.onIronResize()};
_.l.maybeFlushDebouncer=function(){_.N("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(r){var f;r=(f=r.getElementsByTagName("yt-attributed-string"))==null?void 0:f[0];OBl(r==null?void 0:r.polymerController)})};
_.l.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var r=_.e(this.hostElement).querySelector("#live-description"),f;r&&((f=this.data)==null?0:f.shortLiveDescription)&&r.clientWidth<r.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
fU.prototype.onIronResize=fU.prototype.onIronResize;fU.prototype.videoReminderStateChanged=fU.prototype.videoReminderStateChanged;fU.prototype.dataChanged=fU.prototype.dataChanged;fU.prototype.onYtToggleButton=fU.prototype.onYtToggleButton;_.A([_.J(_.Pq),_.B("design:type",Object)],fU.prototype,"ironResizableBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],fU.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],fU.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],fU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],fU.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],fU.prototype,"data",void 0);_.A([_.K({selectorArgs:["data.videoReminderEntityKey"],selector:U$K}),_.B("design:type",Object)],fU.prototype,"videoReminderState",void 0);
_.A([_.K({reflectToAttribute:!0,value:_.N("web_modern_buttons")}),_.B("design:type",Boolean)],fU.prototype,"rounded",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.B("design:type",Boolean)],fU.prototype,"hasLiveDescription",void 0);_.A([_.K({reflectToAttribute:!0,value:_.N("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.B("design:type",Boolean)],fU.prototype,"resizableAdBannerSafariFix",void 0);
_.A([_.K({reflectToAttribute:!0,value:_.N("align_three_dot_menu_with_title_description")}),_.B("design:type",Boolean)],fU.prototype,"menuFix",void 0);_.A([_.Dh("yt-formatted-string"),_.B("design:type",Array)],fU.prototype,"formattedStrings",void 0);_.A([_.uA("#cta-button"),_.B("design:type",HTMLElement)],fU.prototype,"ctaButton",void 0);_.A([_.kO("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],fU.prototype,"onYtToggleButton",null);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fU.prototype,"dataChanged",null);_.A([_.Bt("videoReminderState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fU.prototype,"videoReminderStateChanged",null);_.A([_.kO("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fU.prototype,"onIronResize",null);
fU=_.A([_.U({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],fU);
_.Q(fU,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(SVU!==void 0)return SVU;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return SVU=r},{mode:1});var xtg;var Iu=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};r.isLocked=!1;return r};
_.t(Iu,_.y);_.l=Iu.prototype;_.l.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.l.onExpandedChanged=function(){this.expanded&&_.qy(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.l.onMouseOver=function(){this.maybeExpand()};
_.l.onTap=function(){this.maybeExpand()};
_.l.onExpandableTileExpanding=function(r){r!==this&&(this.expanded=!1)};
_.l.onExpandableTileLockAndCollapse=function(r){this.isLocked=!0;r!==this&&(this.expanded=!1)};
_.l.onExpandableTileUnlock=function(){this.isLocked=!1};
Iu.prototype.onTap=Iu.prototype.onTap;Iu.prototype.onMouseOver=Iu.prototype.onMouseOver;Iu.prototype.onExpandedChanged=Iu.prototype.onExpandedChanged;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Iu.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Iu.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Iu.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Iu.prototype,"expanded",void 0);_.A([_.YN("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Iu.prototype,"onExpandedChanged",null);_.A([_.kO("mouseover"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Iu.prototype,"onMouseOver",null);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Iu.prototype,"onTap",null);
Iu=_.A([_.U({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],Iu);
_.Q(Iu,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(xtg!==void 0)return xtg;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return xtg=r},{mode:1});var h7C;var CU=function(){var r=_.y.apply(this,arguments)||this;r.buttonOverrides={style:"overlay"};r.useYtdPlayer=_.N("use_ytd_player_for_desktop_masthead");r.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};r.playbackFinished=!1;r.JSC$13334_playerManager=null;r.JSC$13334_mastheadCounter=new qZ8;return r};
_.t(CU,_.y);_.l=CU.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$13334_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13334_playerManager=new En)};
_.l.ready=function(){var r=this;this.JSC$13334_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var f=_.e(this.hostElement).querySelector("#player");this.useYtdPlayer?f.style.display="none":(this.ytdPlayer.style.display="none",pZs(this.JSC$13334_playerManager,f,function(){r.onPlaybackEnded()}),_.e(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var I;
((I=r.data)==null?0:I.navigationEndpoint)&&_.kA(r.hostElement,"yt-navigate",{endpoint:r.data.navigationEndpoint})}))};
_.l.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13334_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.l.attached=function(){var r=this;_.Fi(function(){r.maybePlayVideo()})};
_.l.maybePlayVideo=function(){var r=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$13334_playerManager.playVideo(),this.getPlayerPromise().then(function(){r.JSC$13334_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.l.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13334_playerManager.stopVideo()};
_.l.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var r,f={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((r=this.data.playbackStartMs)!=null?r:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(f);this.setupYtdPlayer()}else dQ4(this.JSC$13334_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(nrD(this.JSC$13334_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.l.getPlayerPromise=function(){return this.JSC$13334_playerManager.getPlayerPromise()};
_.l.onYtToggleButton=function(r){this.useYtdPlayer?this.toggleMute(r.detail.toggled):r.detail.toggled?this.JSC$13334_playerManager.mute():this.JSC$13334_playerManager.unMute()};
_.l.onYtNavigate=function(r){var f=PQR(r.detail.endpoint),I=tWP(this.data.clickthroughReportingData);f&&I&&(r.detail.endpoint.watchEndpoint?r.detail.tempData=I:_.sl(f,I,30))};
_.l.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.l.onExpandedChanged=function(){this.expanded?(_.qy(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(r){r!==this&&(this.stopVideo(),this.expanded=!1)};
_.l.onExpandableTileLockAndCollapse=function(r){r!==this&&(this.isLocked=!0,this.expanded=!1)};
_.l.onExpandableTileUnlock=function(){this.isLocked=!1};
_.l.lockAndCollapseExpandableTiles=function(){_.Bj(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.l.unlockExpandableTiles=function(){_.Bj(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.l.setupYtdPlayer=function(){var r=this,f;return _.x(function(I){if(I.nextAddress==1)return _.b(I,r.ytdPlayer.getPlayerPromise(),2);f=I.yieldResult;f.addEventListener("onStateChange",function(C){r.onPlayerStateChange(C)});
f.addEventListener("onCueRangeExit",function(C){r.onCueRangeExit(C)});
_.wO(I)})};
_.l.onPlayerStateChange=function(r){if(r===1&&(r=this.ytdPlayer.getPlayer())){var f=r.getCurrentTime(),I,C,Y=f+((C=(I=this.data)==null?void 0:I.playbackDurationMs)!=null?C:0)/1E3;r.addCueRange("playback",f,Y);this.JSC$13334_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.l.onCueRangeExit=function(r){r==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.l.toggleMute=function(r){var f=this,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,f.ytdPlayer.getPlayerPromise(),2);I=C.yieldResult;r?I.mute():I.unMute();_.wO(C)})};
CU.prototype.onTap=CU.prototype.onTap;CU.prototype.onMouseOver=CU.prototype.onMouseOver;CU.prototype.onExpandedChanged=CU.prototype.onExpandedChanged;CU.prototype.onYtNavigate=CU.prototype.onYtNavigate;CU.prototype.onYtToggleButton=CU.prototype.onYtToggleButton;CU.prototype.dataChanged=CU.prototype.dataChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],CU.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],CU.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],CU.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],CU.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],CU.prototype,"expanded",void 0);_.A([_.K(),_.B("design:type",Object)],CU.prototype,"buttonOverrides",void 0);
_.A([_.K(),_.B("design:type",Object)],CU.prototype,"useYtdPlayer",void 0);_.A([_.uA("#ytd-player"),_.B("design:type",Object)],CU.prototype,"ytdPlayer",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CU.prototype,"dataChanged",null);_.A([_.kO("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],CU.prototype,"onYtToggleButton",null);
_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],CU.prototype,"onYtNavigate",null);_.A([_.YN("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CU.prototype,"onExpandedChanged",null);_.A([_.kO("mouseover"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CU.prototype,"onMouseOver",null);
_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CU.prototype,"onTap",null);CU=_.A([_.U({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],CU);
_.Q(CU,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(h7C!==void 0)return h7C;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return h7C=r},{mode:1});var wV4;var Yr=function(){return _.y.apply(this,arguments)||this};
_.t(Yr,_.y);Yr.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Yr.prototype.onShow=function(){var r=_.e(this.hostElement).querySelector("#live-description"),f;r&&((f=this.data)==null?0:f.shortLiveDescription)&&r.clientWidth<r.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Yr.prototype.onYtToggleButton=function(r){var f,I=(f=this.data)==null?void 0:f.videoReminderEntityKey;I&&this.ytdReduxBehavior.dispatch(_.hv("upcomingEventReminderStateEntity",I,{key:I,state:r.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Yr.prototype.videoReminderStateChanged=function(){var r;this.videoReminderState&&_.F((r=this.data)==null?void 0:r.cta,_.mR)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Yr.prototype.videoReminderStateChanged=Yr.prototype.videoReminderStateChanged;Yr.prototype.onYtToggleButton=Yr.prototype.onYtToggleButton;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Yr.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],Yr.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Yr.prototype,"data",void 0);
_.A([_.K({selectorArgs:["data.videoReminderEntityKey"],selector:U$K}),_.B("design:type",Object)],Yr.prototype,"videoReminderState",void 0);_.A([_.kO("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Yr.prototype,"onYtToggleButton",null);_.A([_.Bt("videoReminderState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Yr.prototype,"videoReminderStateChanged",null);
Yr=_.A([_.U({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Yr);
_.Q(Yr,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(wV4!==void 0)return wV4;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return wV4=r},{mode:_.QQ("kevlar_poly_si_batch_j065")?1:2});var bk_;var lu=function(){var r=_.y.apply(this,arguments)||this;r.useYtdPlayer=_.N("use_ytd_player_for_desktop_masthead");r.buttonOverrides={style:"overlay"};r.JSC$13342_playerManager=null;r.JSC$13342_mastheadCounter=new qZ8;r.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return r};
_.t(lu,_.y);_.l=lu.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$13342_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13342_playerManager=new En)};
_.l.ready=function(){var r=this;this.JSC$13342_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var f;(f=this.embeddedPlayer)==null||f.remove()}else{var I;(I=this.ytdPlayer)==null||I.remove();pZs(this.JSC$13342_playerManager,this.embeddedPlayer,function(){r.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){r.data&&r.data.navigationEndpoint&&_.kA(r.hostElement,"yt-navigate",{endpoint:r.data.navigationEndpoint})})}};
_.l.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13342_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.l.dataChanged=function(){var r=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var f=!this.data.disableAutoPlayback,I,C={autoplay:f,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((I=this.data.playbackStartMs)!=null?I:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(f?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(C);this.setupYtdPlayer()}else dQ4(this.JSC$13342_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(nrD(this.JSC$13342_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13342_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.Bj(r.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");r.JSC$13342_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.l.getPlayerPromise=function(){return this.JSC$13342_playerManager.getPlayerPromise()};
_.l.onYtToggleButton=function(r){this.useYtdPlayer?this.toggleMute(r.detail.toggled):r.detail.toggled?this.JSC$13342_playerManager.mute():this.JSC$13342_playerManager.unMute()};
_.l.onYtNavigate=function(r){var f=PQR(r.detail.endpoint),I=tWP(this.data.clickthroughReportingData);f&&I&&(r.detail.endpoint.watchEndpoint?r.detail.tempData=I:_.sl(f,I,30))};
_.l.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13342_playerManager.stopVideo()};
_.l.setupYtdPlayer=function(){var r=this,f;return _.x(function(I){if(I.nextAddress==1)return _.b(I,r.ytdPlayer.getPlayerPromise(),2);f=I.yieldResult;f.addEventListener("onStateChange",function(C){r.onPlayerStateChange(C)});
f.addEventListener("onCueRangeExit",function(C){r.onCueRangeExit(C)});
_.wO(I)})};
_.l.onPlayerStateChange=function(r){if(r===1&&(r=this.ytdPlayer.getPlayer())){var f=r.getCurrentTime(),I,C,Y=f+((C=(I=this.data)==null?void 0:I.playbackDurationMs)!=null?C:0)/1E3;r.addCueRange("playback",f,Y);_.Bj(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13342_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.l.onCueRangeExit=function(r){r==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.l.toggleMute=function(r){var f=this,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,f.ytdPlayer.getPlayerPromise(),2);I=C.yieldResult;r?I.mute():I.unMute();_.wO(C)})};
_.OC.Object.defineProperties(lu.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var r,f;if(!((r=this.data)==null?0:(f=r.accessibilityData)==null?0:f.label))return"Ad primary link";var I,C;return _.VR("AD_TITLE",{title:(I=this.data)==null?void 0:(C=I.accessibilityData)==null?void 0:C.label})}}});
lu.prototype.onYtMastheadHidden=lu.prototype.onYtMastheadHidden;lu.prototype.onYtNavigate=lu.prototype.onYtNavigate;lu.prototype.onYtToggleButton=lu.prototype.onYtToggleButton;lu.prototype.dataChanged=lu.prototype.dataChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],lu.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],lu.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],lu.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],lu.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],lu.prototype,"useYtdPlayer",void 0);_.A([_.uA("ytd-toggle-button-renderer"),_.B("design:type",Object)],lu.prototype,"muteButton",void 0);_.A([_.K(),_.B("design:type",Object)],lu.prototype,"buttonOverrides",void 0);
_.A([_.R("data.accessibilityData.label"),_.B("design:type",String),_.B("design:paramtypes",[])],lu.prototype,"titleAriaLabel",null);_.A([_.uA("#replay-button"),_.B("design:type",Object)],lu.prototype,"replayButton",void 0);_.A([_.uA("#player-container"),_.B("design:type",Object)],lu.prototype,"playerContainer",void 0);_.A([_.uA("#player"),_.B("design:type",Object)],lu.prototype,"embeddedPlayer",void 0);_.A([_.uA("#ytd-player"),_.B("design:type",Object)],lu.prototype,"ytdPlayer",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lu.prototype,"dataChanged",null);_.A([_.kO("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],lu.prototype,"onYtToggleButton",null);_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],lu.prototype,"onYtNavigate",null);
_.A([_.kO("yt-masthead-hidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lu.prototype,"onYtMastheadHidden",null);lu=_.A([_.U({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],lu);
_.Q(lu,"ytd-video-masthead-ad-primary-video-renderer",function(){if(bk_!==void 0)return bk_;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return bk_=r},{mode:2});var pVg;var VX=function(){var r=_.y.apply(this,arguments)||this;r.collapsed=!1;r.impressionResolver=_.eu();r.JSC$13346_activeViewMeasurementDataResolver=_.eu();r.actionMap={"yt-mute-ad-action":"handleMuteAd"};return r};
_.t(VX,_.y);_.l=VX.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 r=this;_.e(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){r.expandAd()});
this.hostElement.addEventListener("yt-action",function(f){if(f.detail.actionName==="yt-service-request"){var I=f.detail.args[1];I.videoMastheadAdMuteCommand&&(r.collapseAd(I.videoMastheadAdMuteCommand.encryptedMastheadId),f.stopPropagation())}})};
_.l.attached=function(){var r=this;_.Fi(function(){r.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(f){if(!r.collapsed){f=_.E(f);for(var I=f.next();!I.done;I=f.next())I=I.value,HW(I.baseUrl,I.attributionSrcMode);r.data.impressionCommand=void 0}});
this.JSC$13346_activeViewMeasurementDataResolver.promise.then(function(f){r.ytdActiveViewBehavior.enableActiveViewMeasurement(f,15)});
_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&r.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.dataChanged=function(){var r;((r=this.data.impressionCommand)==null?0:r.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var f;((f=this.data)==null?0:f.activeView)&&this.JSC$13346_activeViewMeasurementDataResolver.resolve(this.data.activeView);(r=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(r.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.l.computeWidescreen=function(r){var f;return!!(r&&((f=_.F(r,sJX))==null?0:f.isWidescreen))};
_.l.computeExpandable=function(r){return!!(r&&r.length>0)};
_.l.onIronResize=function(){if(this.expandable){var r=_.e(this.hostElement).querySelector("#expandable-tile-container :first-child");r&&!r.expanded&&(r.expanded=!0)}};
_.l.handleMuteAd=function(){this.collapseAd(null)};
_.l.restoreCollapsedState=function(r){this.collapsed=_.xI().get("HIDDEN_MASTHEAD_ID")===r};
_.l.collapseAd=function(r){if(r){var f=_.xI();f.set("HIDDEN_MASTHEAD_ID",r);f.save()}(r=_.e(this.hostElement).querySelector("#video"))&&_.kA(r,"yt-masthead-hidden");this.collapsed=!0};
_.l.expandAd=function(){var r=_.xI();r.set("HIDDEN_MASTHEAD_ID",!1);r.save();location.reload()};
_.l.detached=function(){_.N("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
VX.prototype.onIronResize=VX.prototype.onIronResize;VX.prototype.dataChanged=VX.prototype.dataChanged;_.A([_.J(_.Pq),_.B("design:type",Object)],VX.prototype,"ironResizableBehavior",void 0);_.A([_.J($G),_.B("design:type",Object)],VX.prototype,"ytdActiveViewBehavior",void 0);_.A([_.J(_.WH),_.B("design:type",Object)],VX.prototype,"ytdGridStateAwareBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],VX.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],VX.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],VX.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],VX.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.B("design:type",Boolean)],VX.prototype,"widescreen",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.B("design:type",Boolean)],VX.prototype,"expandable",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],VX.prototype,"collapsed",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VX.prototype,"dataChanged",null);
_.A([_.kO("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VX.prototype,"onIronResize",null);VX=_.A([_.U({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],VX);
_.Q(VX,"ytd-video-masthead-ad-v3-renderer",function(){if(pVg!==void 0)return pVg;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return pVg=r},{mode:2});var EX=function(){return _.y.apply(this,arguments)||this};
_.t(EX,_.y);_.l=EX.prototype;_.l.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.l.ready=function(){var r=this;MGK(function(){r.isAttached&&fH(r.JSC$13351_storedAdSlotMetadata,r.JSC$13351_storedAdLayoutMetadata,r.adSlotMetadata,r.adLayoutMetadata)&&uF(Bg(),r.JSC$13351_storedAdSlotMetadata,r.JSC$13351_storedAdLayoutMetadata)})};
_.l.attached=function(){fH(this.JSC$13351_storedAdSlotMetadata,this.JSC$13351_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&ZZB(Bg(),this.JSC$13351_storedAdSlotMetadata,this.JSC$13351_storedAdLayoutMetadata)};
_.l.detached=function(){fH(this.JSC$13351_storedAdSlotMetadata,this.JSC$13351_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&uF(Bg(),this.JSC$13351_storedAdSlotMetadata,this.JSC$13351_storedAdLayoutMetadata)};
_.l.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13351_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13351_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13351_storedAdLayoutMetadata!==void 0&&this.JSC$13351_storedAdSlotMetadata!==void 0&&uF(Bg(),this.JSC$13351_storedAdSlotMetadata,this.JSC$13351_storedAdLayoutMetadata),ZZB(Bg(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13351_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13351_storedAdSlotMetadata=this.adSlotMetadata)};
_.OC.Object.defineProperties(EX.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.adLayoutMetadata}}});
EX.prototype.onAdMetadataChanged=EX.prototype.onAdMetadataChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],EX.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],EX.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],EX.prototype,"data",void 0);_.A([_.R("data.adLayoutMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],EX.prototype,"adLayoutMetadata",null);
_.A([_.K(),_.B("design:type",Object)],EX.prototype,"adSlotMetadata",void 0);_.A([_.Bt("adLayoutMetadata","adSlotMetadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EX.prototype,"onAdMetadataChanged",null);EX=_.A([_.U({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],EX);
_.Q(EX,"ytd-page-top-ad-layout-renderer",function(){if(ESq!==void 0)return ESq;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return ESq=
r},{mode:_.QQ("kevlar_poly_si_batch_j070")?1:2});var nSB;var Sn=function(){var r=_.y.apply(this,arguments)||this;r.noBottomMargin=!1;r.overlayDensity=0;r.typographyBump=!1;return r};
_.t(Sn,_.y);_.l=Sn.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 r=this;MGK(function(){r.isAttached&&r.adSlotMetadata&&A0q(Bg(),r.adSlotMetadata)})};
_.l.attached=function(){if(this.adSlotMetadata){var r;if(this.adSlotMetadata===((r=this.data)==null?void 0:r.adSlotMetadata))Q7C(Bg(),this.adSlotMetadata);else{var f;_.t7(Error("Kh`"+this.adSlotMetadata+"`"+((f=this.data)==null?void 0:f.adSlotMetadata)))}}};
_.l.detached=function(){this.adSlotMetadata&&A0q(Bg(),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&&A0q(Bg(),this.adSlotMetadata),Q7C(Bg(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.OC.Object.defineProperties(Sn.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var r,f,I=_.F((r=this.data)==null?void 0:(f=r.fulfillmentContent)==null?void 0:f.fulfilledLayout,_.op3),C;return(r=(C=_.F(I==null?void 0:I.renderingContent,ODV))==null?void 0:C.layout)?r.toLowerCase().replace(/_/g,"-"):""}}});
Sn.prototype.onAdSlotMetadataChanged=Sn.prototype.onAdSlotMetadataChanged;Sn.prototype.onTypographyBumpChanged=Sn.prototype.onTypographyBumpChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Sn.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Sn.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Sn.prototype,"rendererBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],Sn.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],Sn.prototype,"noBottomMargin",void 0);_.A([_.K(),_.B("design:type",Object)],Sn.prototype,"overlayDensity",void 0);_.A([_.K(),_.B("design:type",Object)],Sn.prototype,"typographyBump",void 0);_.A([_.uA("ytd-in-feed-ad-layout-renderer"),_.B("design:type",HTMLElement)],Sn.prototype,"inFeedAdLayoutRenderer",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",String),_.B("design:paramtypes",[])],Sn.prototype,"layout",null);_.A([_.Bt("typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Sn.prototype,"onTypographyBumpChanged",null);_.A([_.Bt("data.adSlotMetadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Sn.prototype,"onAdSlotMetadataChanged",null);
Sn=_.A([_.U({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Sn);
_.Q(Sn,"ytd-ad-slot-renderer",function(){if(nSB!==void 0)return nSB;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return nSB=r},{mode:_.QQ("kevlar_poly_si_batch_j077")?
1:2});var dtU;var xr=function(){return _.y.apply(this,arguments)||this};
_.t(xr,_.y);_.l=xr.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.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&aBK(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.l.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var r=_.E(this.data.impressionUrls),f=r.next();!f.done;f=r.next())f=f.value,cNB(f,L4u(f));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.l.attached=function(){var r=this;_.N("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&r.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){_.N("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.OC.Object.defineProperties(xr.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.N("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.N("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
xr.prototype.dataChanged=xr.prototype.dataChanged;xr.prototype.onTap=xr.prototype.onTap;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],xr.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.A([_.J($G),_.B("design:type",Object)],xr.prototype,"ytdActiveViewBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],xr.prototype,"ytdReduxBehavior",void 0);
_.A([_.K({selector:_.eO}),_.B("design:type",Object)],xr.prototype,"isGridViewEnabled",void 0);_.A([_.R("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],xr.prototype,"watchFeedBigThumbs",null);_.A([_.R("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],xr.prototype,"thumbnailWidth",null);_.A([_.K(),_.B("design:type",Object)],xr.prototype,"data",void 0);
_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xr.prototype,"onTap",null);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xr.prototype,"dataChanged",null);xr=_.A([_.U({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],xr);
_.Q(xr,"ytd-compact-promoted-video-renderer",function(){if(dtU!==void 0)return dtU;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-promoted-video-renderer">\n</ytd-thumbnail>\n<div class="details style-scope ytd-compact-promoted-video-renderer">\n  <a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-promoted-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n      <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n      </ytd-video-meta-block>\n      <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n        <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n      </div>\n    </div>\n  </a>\n  <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n</div>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return dtU=r},{mode:1});var z73;_.gW("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var h2=function(){return _.y.apply(this,arguments)||this};
_.t(h2,_.y);h2.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],h2.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],h2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],h2.prototype,"data",void 0);h2=_.A([_.U({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],h2);
_.Q(h2,"ytd-search-pyv-renderer",function(){if(z73!==void 0)return z73;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return z73=r},{mode:1});var Mz_;_.gW("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var wK=function(){var r=_.y.apply(this,arguments)||this;r.roundedContainer=!0;r.JSC$13367_handleOpenPostCommentDialogActionAfterStamp=!1;r.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return r};
_.t(wK,_.y);_.l=wK.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$13367_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.l.handleSignalActionOpenPostCommentDialogAction=function(){var r=_.e(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");r?r.openDialog():this.JSC$13367_handleOpenPostCommentDialogActionAfterStamp=!0};
_.l.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.l.computeHideBorder=function(){return this.isInEngagementPanel};
_.l.computeIsCompact=function(){return this.isInEngagementPanel};
_.l.computeUsesCompactLockup=function(r){return r==="BACKSTAGE_SURFACE_TYPE_HOME"||r==="BACKSTAGE_SURFACE_TYPE_SEARCH"||r==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||r==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||r==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||r==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.l.computeUsesFullLockup=function(){var r,f=(r=this.data)==null?void 0:r.post,I;r=(I=_.F(f,rJ4))==null?void 0:I.surface;var C;I=(C=_.F(f,IRU))==null?void 0:C.originalPost;var Y;if(C=r||((Y=_.F(I,rJ4))==null?void 0:Y.surface))return!this.computeUsesCompactLockup(C)&&this.useUpdatedRepostUi;var V;return((V=_.F(f,IRU))==null?void 0:V.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.OC.Object.defineProperties(wK.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var r,f;return((f=_.F((r=this.data)==null?void 0:r.post,rJ4))==null?void 0:f.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.useUpdatedRepostUi}}});
wK.prototype.onYtCommentModerationPanelEmpty=wK.prototype.onYtCommentModerationPanelEmpty;wK.prototype.onStampFinished=wK.prototype.onStampFinished;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],wK.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],wK.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],wK.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],wK.prototype,"roundedContainer",void 0);_.A([_.K({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.B("design:type",Boolean)],wK.prototype,"hideBorder",void 0);_.A([_.K({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.B("design:type",Boolean)],wK.prototype,"isCompact",void 0);
_.A([_.K({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.B("design:type",Boolean)],wK.prototype,"usesFullLockup",void 0);_.A([_.kO("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wK.prototype,"onStampFinished",null);
_.A([_.kO("ytd-comment-moderation-panel-empty"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],wK.prototype,"onYtCommentModerationPanelEmpty",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],wK.prototype,"isInEngagementPanel",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],wK.prototype,"useUpdatedRepostUi",null);
wK=_.A([_.U({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],wK);
_.Q(wK,"ytd-backstage-post-thread-renderer",function(){if(Mz_!==void 0)return Mz_;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Mz_=r},{mode:1});var gSs;var bu=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return r};
_.t(bu,_.y);bu.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
bu.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var r=this.data.thumbnail.thumbnails;this.isDarkTheme&&(r=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(r=_.yH(r,24,void 0,"height"))?r:void 0}};
bu.prototype.onDarkModeToggledAction=function(r){this.isDarkTheme=r};
bu.prototype.computeHasText=function(){var r;return!((r=this.data)==null||!r.text)};
_.OC.Object.defineProperties(bu.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.gn(this.bannerImageUrl))+'");'}}});
bu.prototype.computeHasText=bu.prototype.computeHasText;bu.prototype.computeBannerImageUrl=bu.prototype.computeBannerImageUrl;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],bu.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],bu.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],bu.prototype,"ytRendererBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],bu.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],bu.prototype,"isDarkTheme",void 0);_.A([_.K(),_.B("design:type",String)],bu.prototype,"bannerImageUrl",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.B("design:type",Boolean)],bu.prototype,"hasText",void 0);_.A([_.Bt("data","isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bu.prototype,"computeBannerImageUrl",null);
_.A([_.Bt("data.text"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bu.prototype,"computeHasText",null);_.A([_.R("bannerImageUrl"),_.B("design:type",Object),_.B("design:paramtypes",[])],bu.prototype,"bannerStyle",null);bu=_.A([_.U({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],bu);
_.Q(bu,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(gSs!==void 0)return gSs;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return gSs=r},{mode:1});var aD3;var pU=function(){return _.y.apply(this,arguments)||this};
_.t(pU,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],pU.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],pU.prototype,"data",void 0);pU=_.A([_.U({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],pU);
_.Q(pU,"ytd-backstage-zero-state-renderer",function(){if(aD3!==void 0)return aD3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return aD3=r},{mode:1});var XVU;var nU=function(){return _.y.apply(this,arguments)||this};
_.t(nU,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],nU.prototype,"data",void 0);_.A([_.K({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],nU.prototype,"icon",void 0);nU=_.A([_.U({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],nU);
_.Q(nU,"ytd-post-filter-zero-state-renderer",function(){if(XVU!==void 0)return XVU;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return XVU=r},{mode:1});var NSg;var $tg={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},dK=function(){return _.y.apply(this,arguments)||this};
_.t(dK,_.y);dK.prototype.configureRendererStamper=function(){return $tg};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],dK.prototype,"rendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],dK.prototype,"data",void 0);_.A([_.K({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],dK.prototype,"icon",void 0);dK=_.A([_.U({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],dK);
_.Q(dK,"ytd-post-scheduling-zero-state-renderer",function(){if(NSg!==void 0)return NSg;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return NSg=r},{mode:1});var FD4;var zQ=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return r};
_.t(zQ,_.y);zQ.prototype.onTabsActivate=function(r){this.data&&this.data.tabs&&_.kA(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[r.detail.selected].navigationEndpoint})};
zQ.prototype.shouldShowTotalCount=function(r){return r&&r.totalCount!==void 0};
zQ.prototype.handleUpdatePostsTotalCountAction=function(r){var f=this.get(["data.tabs",1,"totalCount"]),I=this.get("updatePostsTotalCountAction.updateType",r);r=this.get("updatePostsTotalCountAction.number",r);f!==void 0&&I!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&r&&(I==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(f)+r):I==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(f)-r))};
_.OC.Object.defineProperties(zQ.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var r=0,f=this.data.tabs.length;r<f;r++)if(this.data.tabs[r].selected)return r;return 0}}});
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],zQ.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],zQ.prototype,"rendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],zQ.prototype,"data",void 0);_.A([_.R("data.tabs"),_.B("design:type",Number),_.B("design:paramtypes",[])],zQ.prototype,"selected",null);zQ=_.A([_.U({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],zQ);
_.Q(zQ,"ytd-post-stream-filter-renderer",function(){if(FD4!==void 0)return FD4;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return FD4=r},{mode:1});var PoX;var MQ=function(){return _.y.apply(this,arguments)||this};
_.t(MQ,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],MQ.prototype,"kevlarBehaviors",void 0);_.A([_.K(),_.B("design:type",Object)],MQ.prototype,"data",void 0);MQ=_.A([_.U({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],MQ);
_.Q(MQ,"ytd-channel-age-gate-renderer",function(){if(PoX!==void 0)return PoX;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return PoX=r},{mode:1});var tz8;_.gW("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var gK=function(){var r=_.y.apply(this,arguments)||this;r.data=null;return r};
_.t(gK,_.y);gK.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.OC.Object.defineProperties(gK.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return((r=this.data)==null?0:(f=r.title)==null?0:(I=f.runs)==null?0:I.length)?147:160}}});
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],gK.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],gK.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],gK.prototype,"imageSizePx",null);gK=_.A([_.U({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],gK);
_.Q(gK,"ytd-channel-owner-empty-state-renderer",function(){if(tz8!==void 0)return tz8;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return tz8=r},{mode:1});var TSs;var cuV;var au=function(){var r=_.y.apply(this,arguments)||this;r.boundSubmitSearch=function(){r.submitSearch()};
r.boundClearSearch=function(){r.clearSearch()};
return r};
_.t(au,_.y);_.l=au.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=AEc||!this.input.value};
_.l.submitOnEnterKeyUp=function(r){r.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(){_.kA(this.hostElement,"search-query-changed",this.input.value)};
au.prototype.toggleClearButton=au.prototype.toggleClearButton;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],au.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],au.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],au.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],au.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],au.prototype,"hideClearButton",void 0);_.A([_.K(),_.B("design:type",Object)],au.prototype,"boundSubmitSearch",void 0);_.A([_.K(),_.B("design:type",Object)],au.prototype,"boundClearSearch",void 0);_.A([_.uA("#input"),_.B("design:type",Object)],au.prototype,"input",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],au.prototype,"toggleClearButton",null);
au=_.A([_.U({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],au);
_.Q(au,"ytd-channel-switcher-search-box-renderer",function(){if(cuV!==void 0)return cuV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return cuV=r},{mode:1});var WDD;var Xv=function(){var r=_.y.apply(this,arguments)||this;r.boundSubmit=function(){r.submit()};
return r};
_.t(Xv,_.y);_.l=Xv.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 r=this;this.form.addEventListener("submit",function(f){return r.onSubmit(f)})};
_.l.onSubmit=function(r){r.preventDefault();return!1};
_.l.toggleClearButton=function(){this.hideClearButton=AEc||!this.input.value};
_.l.submitOnEnterKeyUp=function(r){r.keyCode===13&&this.submit()};
_.l.submit=function(){var r=this.data.endpoint,f=(0,_.X0.unsafeClone)(r);_.F(f,_.lA)?_.F(f,_.lA).query=this.input.value:_.F(f,_.VB)&&(_.F(f,_.VB).query=this.input.value);var I=_.F(f.commandMetadata,_.oo);(I==null?0:I.url)?(I.url=_.mN(I.url,"query",this.input.value),_.kA(this.hostElement,"yt-navigate",{endpoint:f})):_.F(f,iD3)?(_.F(f,iD3).channelSwitcherQuery=this.input.value,_.a().resolve(_.Gg).resolveCommand(f,{form:{element:this.hostElement}})):(r=Error("Lh`"+JSON.stringify(r)),_.Fo(r))};
_.l.getUrl=function(r){return this.get("commandMetadata.webCommandMetadata.url",r)};
Xv.prototype.toggleClearButton=Xv.prototype.toggleClearButton;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Xv.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Xv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Xv.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Xv.prototype,"hideClearButton",void 0);
_.A([_.K(),_.B("design:type",Object)],Xv.prototype,"boundSubmit",void 0);_.A([_.uA("#form"),_.B("design:type",HTMLFormElement)],Xv.prototype,"form",void 0);_.A([_.uA("#input"),_.B("design:type",Object)],Xv.prototype,"input",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Xv.prototype,"toggleClearButton",null);Xv=_.A([_.U({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Xv);
_.Q(Xv,"ytd-search-box-renderer",function(){if(WDD!==void 0)return WDD;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return WDD=r},{mode:2});var NQ=function(){var r=_.y.apply(this,arguments)||this;r.showSearchBox=!0;return r};
_.t(NQ,_.y);NQ.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],NQ.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],NQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],NQ.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],NQ.prototype,"showSearchBox",void 0);NQ=_.A([_.U({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],NQ);
_.Q(NQ,"ytd-channel-switcher-header-renderer",function(){if(TSs!==void 0)return TSs;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return TSs=r},{mode:1});var LD4;var mtV;var $r=function(){var r=_.y.apply(this,arguments)||this;r.isDisplayed=!0;return r};
_.t($r,_.y);_.l=$r.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(r){return r||"UNKNOWN"};
_.l.onYtServiceRequestCompleted=function(r){r.stopPropagation();this.isDisplayed=!1};
_.l.onClose=function(){this.isDisplayed=!1};
$r.prototype.onYtServiceRequestCompleted=$r.prototype.onYtServiceRequestCompleted;$r.prototype.dataChanged=$r.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],$r.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],$r.prototype,"data",void 0);
_.A([_.K({computed:"computeType(data.type)",reflectToAttribute:!0}),_.B("design:type",String)],$r.prototype,"type",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],$r.prototype,"isDisplayed",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$r.prototype,"dataChanged",null);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],$r.prototype,"onYtServiceRequestCompleted",null);$r=_.A([_.U({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],$r);
_.Q($r,"ytd-alert-with-button-renderer",function(){if(mtV!==void 0)return mtV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return mtV=r},{mode:1});var Fv=function(){var r=_.y.apply(this,arguments)||this;r.noResult=!1;r.enableAlertBanner=!1;r.dismissedAlertBanner=!1;r.hideCreateChannelButton=!1;r.boundDismissAlertBanner=function(){r.dismissAlertBanner()};
r.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return r};
_.t(Fv,_.y);_.l=Fv.prototype;_.l.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.l.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.l.updateChannelSwitcherAction=function(r){var f;r=(f=_.F(r,z0T))==null?void 0:f.page;_.F(r,dK4)!==void 0&&(this.data=_.F(r,dK4))};
_.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(r,f){if(this.data&&this.data.contents&&this.data.contents.length){r=[];var I=[];this.hideCreateChannelButton=this.noResult=!1;for(var C=document.querySelectorAll("ytd-account-item-renderer"),Y=_.E(C),V=Y.next();!V.done;V=Y.next())V=V.value,I.push(V),V.style.display="block";this.resetRightBorder(I);if(f){this.hideCreateChannelButton=!0;for(I=1;I<this.data.contents.length;I++)if(V=this.data.contents[I],_.F(V,Jsq)){var S=void 0,h=void 0;Y=(S=_.F(V,Jsq))==null?void 0:(h=
S.accountName)==null?void 0:h.simpleText;h=S=void 0;V=(S=_.F(V,Jsq))==null?void 0:(h=S.channelHandle)==null?void 0:h.simpleText;(S=C[I-1])&&Y&&_.nw(Y,f)?r.push(S):_.N("enable_handle_search_on_channel_switcher")&&S&&V&&_.nw(V.toString(),f.toString())?r.push(S):S.style.display="none"}r.length===0&&(this.noResult=!0);this.resetRightBorder(r)}}};
_.l.resetRightBorder=function(r){for(var f=0;f<r.length;f++)r[f].style.borderRight=!this.hideCreateChannelButton&&(f+2)%3===0||this.hideCreateChannelButton&&(f+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.l.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.l.setShowSearchBox=function(r){if(r&&r.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var f=0;f<r.contents.length;f++)_.F(r.contents[f],_.Ip)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.l.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.OC.Object.defineProperties(Fv.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null?0:r.contents)}}});
Fv.prototype.onContinuationItemsUpdated=Fv.prototype.onContinuationItemsUpdated;Fv.prototype.searchQueryChanged=Fv.prototype.searchQueryChanged;Fv.prototype.onDataChanged=Fv.prototype.onDataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Fv.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Fv.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Fv.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.cg),_.B("design:type",Object)],Fv.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Fv.prototype,"data",void 0);_.A([_.uA("ytd-channel-switcher-header-renderer"),_.B("design:type",Object)],Fv.prototype,"channelSwitcherHeaderRenderer",void 0);_.A([_.K(),_.B("design:type",Object)],Fv.prototype,"noResult",void 0);
_.A([_.K(),_.B("design:type",Object)],Fv.prototype,"enableAlertBanner",void 0);_.A([_.K(),_.B("design:type",Object)],Fv.prototype,"dismissedAlertBanner",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Fv.prototype,"hideCreateChannelButton",void 0);_.A([_.R("data.contents"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Fv.prototype,"isLoading",null);_.A([_.K(),_.B("design:type",Object)],Fv.prototype,"boundDismissAlertBanner",void 0);
_.A([_.K({computed:"computeButtonOverride()"}),_.B("design:type",Object)],Fv.prototype,"buttonOverride",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fv.prototype,"onDataChanged",null);_.A([_.kO("search-query-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,String]),_.B("design:returntype")],Fv.prototype,"searchQueryChanged",null);
_.A([_.kO("yt-next-continuation-data-updated"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Fv.prototype,"onContinuationItemsUpdated",null);Fv=_.A([_.U({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Fv);
_.Q(Fv,"ytd-channel-switcher-page-renderer",function(){if(LD4!==void 0)return LD4;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return LD4=r},{mode:1});var e74;var JuV;var PZ=function(){var r=_.y.apply(this,arguments)||this;r.images=[];r.selectedImageIndex=0;return r};
_.t(PZ,_.y);_.l=PZ.prototype;
_.l.ready=function(){_.S$(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.S$(this.JSC$13412_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.S$(this.JSC$13412_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.S$(this.JSC$13412_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.l.onThumbnailClick=function(r){if(r=r.event_.detail)this.selectedImageIndex=this.images.indexOf(r)};
_.l.updateImageThumbnails=function(r){r=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:r.event_.detail});this.images.splice(this.selectedImageIndex,1,r);this.images=[].concat(_.Na(this.images))};
_.l.cancelImageRepositions=function(){this.selectedImageIndex=0;_.kA(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.l.saveImageRepositions=function(){this.selectedImageIndex=0;_.kA(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.OC.Object.defineProperties(PZ.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var r=this;return(this.images||[]).map(function(f,I){return{image:f,selected:I===r.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],PZ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.uA("ytd-backstage-image-preview-renderer"),_.B("design:type",Object)],PZ.prototype,"JSC$13412_imagePreviewContainer",void 0);_.A([_.uA(".thumbnail-images-container"),_.B("design:type",HTMLElement)],PZ.prototype,"thumbnailImagesContainer",void 0);_.A([_.K(),_.B("design:type",Array)],PZ.prototype,"images",void 0);
_.A([_.K(),_.B("design:type",Object)],PZ.prototype,"repositionInstructions",void 0);_.A([_.K(),_.B("design:type",Object)],PZ.prototype,"selectedImageIndex",void 0);_.A([_.R("images","selectedImageIndex"),_.B("design:type",Array),_.B("design:paramtypes",[])],PZ.prototype,"thumbnailRendererDatas",null);_.A([_.R("images","selectedImageIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],PZ.prototype,"selectedImageData",null);
PZ=_.A([_.U({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],PZ);
_.Q(PZ,"ytd-backstage-multi-image-reposition-renderer",function(){if(JuV!==void 0)return JuV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return JuV=r},{mode:1});var t2=function(r,f){_.zh.call(this);this.uploadUrl=r;this.channelId=f;this.imagesUploadData=[]};
_.t(t2,_.zh);t2.prototype.getAllUploadStatuses=function(){var r=this,f,I,C;return _.x(function(Y){if(Y.nextAddress==1)return _.b(Y,jLq(r),2);f=Y.yieldResult;I=f.get("succeed");C=f.get("failed");return Y.return(I.concat(C))})};
var ik4=function(r){var f,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,jLq(r),2);f=C.yieldResult;I=f.get("failed");I.length>0&&HkD(r,I);return C.return(r.getAllUploadStatuses())})},jLq=function(r){var f,I,C,Y,V,S,h;
return _.x(function(w){if(w.nextAddress==1)return f=new Map,_.b(w,Promise.allSettled(r.imagesUploadData.map(function(n){return n.uploadPromise})),2);
I=w.yieldResult;C=[];Y=_.E(I);for(V=Y.next();!V.done;V=Y.next())S=V.value,S.status==="fulfilled"&&C.push(S.value);h=r.imagesUploadData.map(function(n){return n.image}).filter(function(n){return C.every(function(d){return d.id!==n.id})});
f.set("succeed",C);f.set("failed",h);return w.return(f)})},HkD=function(r,f){f=_.E(f);
for(var I=f.next();!I.done;I=f.next()){var C=r;I=I.value;R73(C,I.id)>=0&&C.cancel(I.id);var Y=new vS8(I),V=_.XM_(C.uploadUrl,{"X-YouTube-ChannelId":C.channelId},I.imageBlob);Y.transfer=V;Y.uploadPromise=KDU(V,I);C.imagesUploadData.push(Y);V.run()}};
t2.prototype.cancel=function(r){var f=R73(this,r);f!==-1&&((f=this.imagesUploadData[f].transfer)&&f.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(I){return I.image.id!==r}))};
var R73=function(r,f){return r.imagesUploadData.findIndex(function(I){return I.image.id===f})},KDU=function(r,f){return new Promise(function(I,C){r.listen("l",function(){var Y=r.getResponseText();
Y?(Y=JSON.parse(Y).encryptedBlobId,f.encryptedBlobId=Y,I(f)):C("upload failed")});
r.listen("n",function(){C("upload failed")})})},vS8=function(r){this.image=r};var oDB=function(r,f,I,C,Y){this.id=r;this.imageBlob=f;this.localImageSrc=I;this.naturalWidth=C;this.naturalHeight=Y;this.previewCoordinates=this.naturalHeight>this.naturalWidth?{top:(this.naturalHeight-this.naturalWidth)/2/this.naturalHeight,right:1,bottom:(this.naturalHeight+this.naturalWidth)/2/this.naturalHeight,left:0}:{top:0,right:(this.naturalWidth+this.naturalHeight)/2/this.naturalWidth,bottom:1,left:(this.naturalWidth-this.naturalHeight)/2/this.naturalWidth}};var yu_=[".jpeg",".jpg",".png"],TQ=function(){var r=_.y.apply(this,arguments)||this;r.showImagesPreview=!1;r.pollOptions=[];r.errorMessage="";r.optionPlaceholderText="";r.optionDefaultText="";r.JSC$13423_imageId=0;r.maxFileSizeMb=0;r.maxAspectRatio=0;r.invalidFileSizeError="";r.invalidAspectRatioError="";r.invalidFileTypeError="";r.imageSelector=new Ew(null,"single_file",yu_);return r};
_.t(TQ,_.y);_.l=TQ.prototype;_.l.ready=function(){_.S$(this.imageSelector,"j",this.onImageSelect,!1,this);_.S$(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.S$(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.l.dataChanged=function(){var r,f,I=_.F((r=this.data)==null?void 0:(f=r.cellTemplate)==null?void 0:f.onEmptyCellTap,n3C);if(I&&I.uploadUrl&&I.channelId){var C;this.maxFileSizeMb=((C=I.imageValidationInfo)==null?void 0:C.maxFileSizeMb)||0;var Y;this.maxAspectRatio=((Y=I.imageValidationInfo)==null?void 0:Y.allowedMaxAspectRatio)||0;var V;this.invalidFileSizeError=this.getSimpleString((V=this.data)==null?void 0:V.invalidFileSizeError);var S;this.invalidAspectRatioError=this.getSimpleString((S=this.data)==
null?void 0:S.invalidAspectRatioError);var h;this.invalidFileTypeError=this.getSimpleString((h=this.data)==null?void 0:h.invalidFileTypeError);this.uploadManager=new t2(I.uploadUrl,I.channelId)}};
_.l.onEditorInfoChange=function(){this.optionPlaceholderText=_.Rr(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.Rr(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.l.observeAddImageError=function(){this.errorMessage!==""&&_.kA(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.l.onPollOptionsChange=function(){for(var r=!1,f=[],I=0;I<this.pollOptions.length;I++){var C=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(I+1);this.pollOptions[I].placeholderText!==C?(r=!0,f.push(Object.assign({},this.pollOptions[I],{placeholderText:C}))):f.push(this.pollOptions[I])}r&&(this.pollOptions=f);this.isValid()?_.kA(this.hostElement,"yt-commentbox-post-enable"):_.kA(this.hostElement,"yt-commentbox-post-disable")};
_.l.createPollOptions=function(r){var f=[],I;r=(I=r==null?void 0:r.minPollOptions)!=null?I:0;for(I=0;I<r;I++)f.push(this.createPollOption());return f};
_.l.onImageSelect=function(r){var f=this,I,C,Y,V,S,h;return _.x(function(w){if(w.nextAddress==1){if(f.selectedImageIndex===void 0)return w.jumpTo(0);I=r.files[0];f.errorMessage="";C=f.validateImage(I);if(C!=="")return f.errorMessage=C,w.return();Y=new yk(f.maxAspectRatio,!1,!0);return _.b(w,Y.transform(I),3)}if(w.nextAddress!=4)return V=w.yieldResult,V.transformedData?V.invalidAspectRatio?(f.errorMessage=f.invalidAspectRatioError,w.return()):_.b(w,Q7q(f.JSC$13423_imageId,r.files[0],V.transformedData),
4):(f.errorMessage=f.invalidFileTypeError,w.return());S=w.yieldResult;f.JSC$13423_imageId++;HkD(f.uploadManager,[S]);h=Object.assign({},f.pollOptions[f.selectedImageIndex],{image:S});f.pollOptions.splice(f.selectedImageIndex,1,h);f.refreshPollOptions();_.kA(f.hostElement,"yt-backstage-poll-image-select");_.wO(w)})};
_.l.validateImage=function(r){return r.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.l.refreshPollOptions=function(){this.pollOptions=[].concat(_.Na(this.pollOptions))};
_.l.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.Na(this.pollOptions),[this.createPollOption()]))};
_.l.onRemovePollOption=function(r){var f=this.pollOptions[r.model.index];f&&f.image&&this.uploadManager.cancel(f.image.id);this.pollOptions.splice(r.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.kA(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.l.onTextInput=function(){this.refreshPollOptions()};
_.l.onImageButtonClick=function(r){this.selectedImageIndex=r.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(r){r=r.event_.detail;for(var f=0,I=[],C=_.E(this.pollOptions),Y=C.next();!Y.done;Y=C.next())Y=Y.value,Y.image!==void 0?(Y=Object.assign({},Y,{image:r[f]}),I.push(Y),f++):I.push(Y);this.showImagesPreview=!1;this.pollOptions=[].concat(_.Na(I))};
_.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 r=0,f=_.E(this.pollOptions),I=f.next();!I.done;I=f.next())if(I=I.value,I.optionText.trim()!==""||I.image!==void 0){if(!I.image||this.hasCustomOptionText&&I.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;r++}return r>=Number(this.editorInfo.minPollOptions)};
_.l.getAllUploadStatuses=function(){var r=this,f,I,C,Y;return _.x(function(V){if(V.nextAddress==1)return _.b(V,r.uploadManager.getAllUploadStatuses(),2);f=V.yieldResult;I=_.E(f);for(C=I.next();!C.done;C=I.next())if(Y=C.value,Y.encryptedBlobId===void 0)return V.return(ik4(r.uploadManager));return V.return(f)})};
_.l.getPostCreateOptions=function(){for(var r=[],f=_.E(this.pollOptions),I=f.next();!I.done;I=f.next())I=I.value,I.image!==void 0&&r.push({text:this.hasCustomOptionText?I.optionText:I.placeholderText,image:I.image});return r};
_.l.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.l.createButtonRenderer=function(r,f){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:r,accessibilityData:{accessibilityData:{label:this.getSimpleString(r)}},isDisabled:f}};
_.l.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.l.computeThumbnailRendererData=function(r){return r?{image:r,selected:!1}:void 0};
_.l.getSimpleString=function(r){return _.Rr(r)};
_.l.updateOptionTextFromBinding=function(r){if(r.target){var f=Array.from(_.e(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(r.target);if(f>=0){var I;this.pollOptions[f].optionText=(I=r.detail.value)!=null?I:""}}};
_.OC.Object.defineProperties(TQ.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var r,f;return this.pollOptions.length<((f=(r=this.editorInfo)==null?void 0:r.maxPollOptions)!=null?f:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(r){return r.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(r){return r.image}).map(function(r){return r.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(r){return r.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var r,f=(r=this.data)==null?void 0:r.addOptionButtonText;return f?this.createButtonRenderer(f,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var r,f=(r=this.data)==null?void 0:r.repositionImagesButtonLabel;return f?this.createButtonRenderer(f,!this.hasImages):void 0}}});
TQ.prototype.onPollOptionsChange=TQ.prototype.onPollOptionsChange;TQ.prototype.observeAddImageError=TQ.prototype.observeAddImageError;TQ.prototype.onEditorInfoChange=TQ.prototype.onEditorInfoChange;TQ.prototype.dataChanged=TQ.prototype.dataChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],TQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.uA("ytd-backstage-multi-image-reposition-renderer"),_.B("design:type",Object)],TQ.prototype,"imageRepositionContainer",void 0);
_.A([_.K(),_.B("design:type",Object)],TQ.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],TQ.prototype,"editorInfo",void 0);_.A([_.K(),_.B("design:type",t2)],TQ.prototype,"uploadManager",void 0);_.A([_.K(),_.B("design:type",Object)],TQ.prototype,"showImagesPreview",void 0);_.A([_.K(),_.B("design:type",Array)],TQ.prototype,"pollOptions",void 0);_.A([_.K(),_.B("design:type",Object)],TQ.prototype,"errorMessage",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TQ.prototype,"dataChanged",null);_.A([_.YN("editorInfo"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TQ.prototype,"onEditorInfoChange",null);_.A([_.Bt("errorMessage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TQ.prototype,"observeAddImageError",null);
_.A([_.YN("pollOptions"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TQ.prototype,"onPollOptionsChange",null);_.A([_.R("pollOptions","editorInfo"),_.B("design:type",Object),_.B("design:paramtypes",[])],TQ.prototype,"isAllowedToAddOption",null);_.A([_.R("pollOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],TQ.prototype,"hasImages",null);
_.A([_.R("pollOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],TQ.prototype,"imagesToReposition",null);_.A([_.R("pollOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],TQ.prototype,"hasCustomOptionText",null);_.A([_.R("data","isAllowedToAddOption"),_.B("design:type",Object),_.B("design:paramtypes",[])],TQ.prototype,"addOptionButton",null);_.A([_.R("data","hasImages"),_.B("design:type",Object),_.B("design:paramtypes",[])],TQ.prototype,"repositionImagesButton",null);
TQ=_.A([_.U({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],TQ);
_.Q(TQ,"ytd-backstage-image-poll-editor-renderer",function(){if(e74!==void 0)return e74;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return e74=r},{mode:2});var Utg={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 sL4;var cZ=function(){var r=_.y.apply(this,arguments)||this;r.a11yConfig=Utg;r.imageDisplayOffsetTop=0;r.imageDisplayOffsetLeft=0;r.pickerDisplayOffsetTop=0;r.pickerDisplayOffsetLeft=0;r.showPreviewContainer=!0;r.startPicker=!1;r.repositionOptional=!1;r.editOnlyMode=!1;r.savedImageDisplayOffsetTop=0;r.savedImageDisplayOffsetLeft=0;return r};
_.t(cZ,_.y);_.l=cZ.prototype;_.l.created=function(){_.Hq.requestAvailability()};
_.l.ready=function(){};
_.l.onArrowKeysDown=function(r){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){r.detail.keyboardEvent.preventDefault();var f=0,I=0,C="";switch(r.detail.keyboardEvent.key){case "ArrowUp":A0E(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?C=this.a11yConfig.reachBottomOfImage:f=this.imageHeight*.05*-1;break;case "ArrowDown":A0E(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?C=this.a11yConfig.reachTopOfImage:
f=this.imageHeight*.05;break;case "ArrowLeft":A0E(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?C=this.a11yConfig.reachRightOfImage:I=this.imageWidth*.05*-1;break;case "ArrowRight":A0E(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?C=this.a11yConfig.reachLeftOfImage:I=this.imageWidth*.05}C&&_.VR(C)&&_.kA(this.hostElement,"iron-announce",{text:_.VR(C)});if(I||f)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+f)),r=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),r=_.VR(this.a11yConfig.imageVerticalPosition,{x_percent:""+r,y_percent:""+(100-r)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+I)),r=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),r=_.VR(this.a11yConfig.imageHorizontalPosition,{x_percent:""+r,y_percent:""+(100-r)})),r&&_.kA(this.hostElement,"iron-announce",{text:r})}};
_.l.getPreviewPosition=function(r,f,I,C){return Math.round(100*(r+f*.5-I)/C)};
_.l.calculateDisplayPosition=function(){var r=this.imageData.naturalWidth,f=this.imageData.naturalHeight;this.displayScale=Math.max(200/r,200/f);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var I=r*this.displayScale*this.imageData.previewCoordinates.left,C=f*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=f>r?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-I;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=r>f?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-C;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=r*this.displayScale;this.imageHeight=f*this.displayScale};
_.l.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.l.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.l.getSignedPosition=function(r,f,I){return f==="X"&&_.Lz("HTML_DIR")==="rtl"?I==="-"?r+"px":r*-1+"px":I==="-"?r*-1+"px":r+"px"};
_.l.pickerMove=function(r){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var f=this.pickerOffsetX-r.clientX,I=this.pickerOffsetY-r.clientY;this.pickerOffsetX=r.clientX;this.pickerOffsetY=r.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
I)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-f))}};
_.l.pickerMoveStart=function(r){this.startPicker=!0;this.pickerOffsetX=r.clientX;this.pickerOffsetY=r.clientY};
_.l.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var r=this.generateCropPreview();r&&_.kA(this.hostElement,"ytd-backstage-image-preview-coordinates-update",r)};
_.l.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.kA(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.l.deleteImage=function(){_.kA(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 r=this.generateCropPreview();r&&_.kA(this.hostElement,"ytd-backstage-image-preview-coordinates-save",r)};
_.l.getPreviewOffset=function(r,f,I){return f&&r?(I==="X"&&_.Lz("HTML_DIR")==="rtl"?300/f*r:300/f*r*-1)+"px":"0px"};
_.l.getSimpleText=function(r){return r?_.Rr(r):""};
_.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}};
_.OC.Object.defineProperties(cZ.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var r=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.VR(this.a11yConfig.imageVerticalPosition,{x_percent:""+r,y_percent:""+(100-r)})+"\n"+_.VR(this.a11yConfig.verticalRepositionInstruction)}r=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.VR(this.a11yConfig.imageHorizontalPosition,{x_percent:""+r,y_percent:""+(100-r)})+"\n"+_.VR(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 r,f,I=(r=this.instruction)==null?void 0:(f=r.previewInstruction)==null?void 0:f.editButtonLabel;return I?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleText(I)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var r,f,I,C,Y=this.editOnlyMode?(r=this.instruction)==null?void 0:(f=r.editInstruction)==null?void 0:f.saveImagesButtonLabel:(I=this.instruction)==null?void 0:(C=I.editInstruction)==null?void 0:C.saveButtonLabel;return Y?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:Y,accessibilityData:{accessibilityData:{label:this.getSimpleText(Y)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var r,f,I=(r=this.instruction)==null?void 0:(f=r.previewInstruction)==null?void 0:f.deleteButtonLabel;return I?{size:"SIZE_SMALL",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleText(I)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var r,f,I=(r=this.instruction)==null?void 0:(f=r.editInstruction)==null?void 0:f.cancelButtonLabel;r=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return I?{style:r,size:"SIZE_SMALL",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleText(I)}}}: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"}}});
cZ.prototype.onEditOnlyModeUpdate=cZ.prototype.onEditOnlyModeUpdate;cZ.prototype.onImageChange=cZ.prototype.onImageChange;_.A([_.K(),_.B("design:type",oDB)],cZ.prototype,"imageData",void 0);_.A([_.K(),_.B("design:type",Object)],cZ.prototype,"instruction",void 0);_.A([_.K(),_.B("design:type",Object)],cZ.prototype,"a11yConfig",void 0);_.A([_.K(),_.B("design:type",Number)],cZ.prototype,"imageWidth",void 0);_.A([_.K(),_.B("design:type",Number)],cZ.prototype,"imageHeight",void 0);
_.A([_.K(),_.B("design:type",Number)],cZ.prototype,"displayScale",void 0);_.A([_.K(),_.B("design:type",Object)],cZ.prototype,"imageDisplayOffsetTop",void 0);_.A([_.K(),_.B("design:type",Object)],cZ.prototype,"imageDisplayOffsetLeft",void 0);_.A([_.K(),_.B("design:type",Object)],cZ.prototype,"pickerDisplayOffsetTop",void 0);_.A([_.K(),_.B("design:type",Object)],cZ.prototype,"pickerDisplayOffsetLeft",void 0);_.A([_.K(),_.B("design:type",Object)],cZ.prototype,"showPreviewContainer",void 0);
_.A([_.K(),_.B("design:type",Object)],cZ.prototype,"startPicker",void 0);_.A([_.K(),_.B("design:type",Number)],cZ.prototype,"pickerOffsetX",void 0);_.A([_.K(),_.B("design:type",Number)],cZ.prototype,"pickerOffsetY",void 0);_.A([_.K(),_.B("design:type",Object)],cZ.prototype,"repositionOptional",void 0);_.A([_.K(),_.B("design:type",Object)],cZ.prototype,"editOnlyMode",void 0);_.A([_.uA("#picker-container"),_.B("design:type",HTMLElement)],cZ.prototype,"JSC$13436_pickerContainer",void 0);
_.A([_.uA("#picker"),_.B("design:type",HTMLElement)],cZ.prototype,"picker",void 0);_.A([_.uA("#preview-clipper"),_.B("design:type",HTMLElement)],cZ.prototype,"previewClipper",void 0);_.A([_.uA("#image-in-picker-background"),_.B("design:type",HTMLImageElement)],cZ.prototype,"JSC$13436_imageInBackground",void 0);_.A([_.uA("#image-in-picker"),_.B("design:type",HTMLImageElement)],cZ.prototype,"JSC$13436_imageInPicker",void 0);
_.A([_.uA("#image-in-preview-clipper"),_.B("design:type",HTMLImageElement)],cZ.prototype,"JSC$13436_imageInPreviewClipper",void 0);_.A([_.R("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],cZ.prototype,"altLabelForImage",null);_.A([_.R("imageHeight","imageWidth"),_.B("design:type",Number),_.B("design:paramtypes",[])],cZ.prototype,"pickerSize",null);
_.A([_.R("imageHeight","imageWidth"),_.B("design:type",Object),_.B("design:paramtypes",[])],cZ.prototype,"imageOrientationStyle",null);_.A([_.R("instruction"),_.B("design:type",Object),_.B("design:paramtypes",[])],cZ.prototype,"editButton",null);_.A([_.R("instruction","editOnlyMode"),_.B("design:type",Object),_.B("design:paramtypes",[])],cZ.prototype,"saveButton",null);_.A([_.R("instruction"),_.B("design:type",Object),_.B("design:paramtypes",[])],cZ.prototype,"deleteButton",null);
_.A([_.R("instruction","editOnlyMode"),_.B("design:type",Object),_.B("design:paramtypes",[])],cZ.prototype,"cancelButton",null);_.A([_.R("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.B("design:type",Number),_.B("design:paramtypes",[])],cZ.prototype,"cropOffsetTop",null);_.A([_.R("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.B("design:type",Number),_.B("design:paramtypes",[])],cZ.prototype,"cropOffsetLeft",null);
_.A([_.R("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],cZ.prototype,"pickerBackgroundStyle",null);_.A([_.R("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],cZ.prototype,"pickerDisplayStyle",null);_.A([_.R("cropOffsetLeft","cropOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],cZ.prototype,"imageInPickerStyle",null);
_.A([_.R("cropOffsetLeft","cropOffsetTop","pickerSize"),_.B("design:type",String),_.B("design:paramtypes",[])],cZ.prototype,"previewClipperStyle",null);_.A([_.YN("imageData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cZ.prototype,"onImageChange",null);_.A([_.YN("editOnlyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cZ.prototype,"onEditOnlyModeUpdate",null);
_.A([_.R("showPreviewContainer"),_.B("design:type",String),_.B("design:paramtypes",[])],cZ.prototype,"pickerModeStyle",null);cZ=_.A([_.U({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],cZ);
_.Q(cZ,"ytd-backstage-image-preview-renderer",function(){if(sL4!==void 0)return sL4;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return sL4=r},{mode:1});var Ok3;var oSX={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 QL_;var Au3;var WZ=function(){var r=_.y.apply(this,arguments)||this;r.a11yConfig=oSX;r.imageDisplayOffsetTop=0;r.imageDisplayOffsetLeft=0;r.pickerDisplayOffsetTop=0;r.pickerDisplayOffsetLeft=0;r.cropCoordinatesSaved=!1;r.previewSize=0;r.startPicker=!1;r.repositionOptional=!1;return r};
_.t(WZ,_.y);_.l=WZ.prototype;_.l.created=function(){_.Hq.requestAvailability()};
_.l.ready=function(){};
_.l.onArrowKeysDown=function(r){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){r.detail.keyboardEvent.preventDefault();var f=0,I=0,C="";switch(r.detail.keyboardEvent.key){case "ArrowUp":ZZR(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?C=this.a11yConfig.reachBottomOfImage:f=this.imageHeight*.05*-1;break;case "ArrowDown":ZZR(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?C=this.a11yConfig.reachTopOfImage:
f=this.imageHeight*.05;break;case "ArrowLeft":ZZR(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?C=this.a11yConfig.reachRightOfImage:I=this.imageWidth*.05*-1;break;case "ArrowRight":ZZR(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?C=this.a11yConfig.reachLeftOfImage:I=this.imageWidth*.05}C&&_.VR(C)&&_.kA(this.hostElement,"iron-announce",{text:_.VR(C)});if(I||f)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+f)),r=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),r=_.VR(this.a11yConfig.imageVerticalPosition,{x_percent:""+r,y_percent:""+(100-r)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+I)),r=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),r=_.VR(this.a11yConfig.imageHorizontalPosition,{x_percent:""+r,y_percent:""+(100-r)})),r&&_.kA(this.hostElement,"iron-announce",{text:r})}};
_.l.getPreviewPosition=function(r,f,I,C){return Math.round(100*(r+f*.5-I)/C)};
_.l.displayImage=function(){var r=this.JSC$13447_pickerContainer.getBoundingClientRect().width,f=this.JSC$13447_pickerContainer.getBoundingClientRect().height,I=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),C=this.JSC$13447_imageInBackground.naturalWidth,Y=this.JSC$13447_imageInBackground.naturalHeight;this.displayScale=Math.max(I/C,I/Y);this.imageWidth=C*this.displayScale;this.imageHeight=Y*this.displayScale;this.pickerDisplayOffsetLeft=(r-I)/2;this.pickerDisplayOffsetTop=
(f-I)/2;this.imageDisplayOffsetLeft=Y>C?this.pickerDisplayOffsetLeft:(r-this.imageWidth)/2;this.imageDisplayOffsetTop=C>Y?this.pickerDisplayOffsetTop:(f-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.l.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13447_imageInBackground.src=this.imageData.toString(),this.JSC$13447_imageInPicker.src=this.imageData.toString(),this.JSC$13447_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.l.getSignedPosition=function(r,f,I){return f==="X"&&_.Lz("HTML_DIR")==="rtl"?I==="-"?r+"px":r*-1+"px":I==="-"?r*-1+"px":r+"px"};
_.l.pickerMove=function(r){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var f=this.pickerOffsetX-r.clientX,I=this.pickerOffsetY-r.clientY;this.pickerOffsetX=r.clientX;this.pickerOffsetY=r.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
I)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-f))}};
_.l.pickerMoveStart=function(r){this.startPicker=!0;this.pickerOffsetX=r.clientX;this.pickerOffsetY=r.clientY};
_.l.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.l.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.kA(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.l.getPreviewOffset=function(r,f,I,C){return f&&r&&I?(C==="X"&&_.Lz("HTML_DIR")==="rtl"?I/f*r:I/f*r*-1)+"px":"0px"};
_.l.getSimpleText=function(r){return r?_.Rr(r):""};
_.l.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var r=this.cropOffsetTop/this.imageHeight,f=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,I=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,C=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.e(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.kA(this.hostElement,"yt-img-crop-coordinates-update",{top:r,right:f,bottom:I,left:C})}};
_.OC.Object.defineProperties(WZ.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var r=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.VR(this.a11yConfig.imageVerticalPosition,{x_percent:""+r,y_percent:""+(100-r)})+"\n"+_.VR(this.a11yConfig.verticalRepositionInstruction)}r=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.VR(this.a11yConfig.imageHorizontalPosition,{x_percent:""+r,y_percent:""+(100-r)})+"\n"+_.VR(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 r,f=(r=this.learnMore.runs[0])==null?void 0:r.navigationEndpoint,I;return((I=_.F(f,_.HR))==null?void 0:I.url)||void 0}}}});
WZ.prototype.onImageDataChange=WZ.prototype.onImageDataChange;_.A([_.K(),_.B("design:type",Object)],WZ.prototype,"imageData",void 0);_.A([_.K(),_.B("design:type",Object)],WZ.prototype,"instruction",void 0);_.A([_.K(),_.B("design:type",Object)],WZ.prototype,"a11yConfig",void 0);_.A([_.K(),_.B("design:type",Number)],WZ.prototype,"imageWidth",void 0);_.A([_.K(),_.B("design:type",Number)],WZ.prototype,"imageHeight",void 0);_.A([_.K(),_.B("design:type",Number)],WZ.prototype,"displayScale",void 0);
_.A([_.K(),_.B("design:type",Object)],WZ.prototype,"imageDisplayOffsetTop",void 0);_.A([_.K(),_.B("design:type",Object)],WZ.prototype,"imageDisplayOffsetLeft",void 0);_.A([_.K(),_.B("design:type",Object)],WZ.prototype,"pickerDisplayOffsetTop",void 0);_.A([_.K(),_.B("design:type",Object)],WZ.prototype,"pickerDisplayOffsetLeft",void 0);_.A([_.K(),_.B("design:type",Object)],WZ.prototype,"cropCoordinatesSaved",void 0);_.A([_.K(),_.B("design:type",Object)],WZ.prototype,"previewSize",void 0);
_.A([_.K(),_.B("design:type",Object)],WZ.prototype,"startPicker",void 0);_.A([_.K(),_.B("design:type",Number)],WZ.prototype,"pickerOffsetX",void 0);_.A([_.K(),_.B("design:type",Number)],WZ.prototype,"pickerOffsetY",void 0);_.A([_.K(),_.B("design:type",Object)],WZ.prototype,"repositionOptional",void 0);_.A([_.uA("#picker-container"),_.B("design:type",HTMLElement)],WZ.prototype,"JSC$13447_pickerContainer",void 0);_.A([_.uA("#picker"),_.B("design:type",HTMLElement)],WZ.prototype,"picker",void 0);
_.A([_.uA("#image-in-picker-background"),_.B("design:type",HTMLImageElement)],WZ.prototype,"JSC$13447_imageInBackground",void 0);_.A([_.uA("#image-in-picker"),_.B("design:type",HTMLImageElement)],WZ.prototype,"JSC$13447_imageInPicker",void 0);_.A([_.uA("#image-in-preview-clipper"),_.B("design:type",HTMLImageElement)],WZ.prototype,"JSC$13447_imageInPreviewClipper",void 0);_.A([_.uA("#full-image-as-preview"),_.B("design:type",HTMLImageElement)],WZ.prototype,"imageAsPreview",void 0);
_.A([_.R("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],WZ.prototype,"altLabelForImage",null);_.A([_.R("imageHeight","imageWidth"),_.B("design:type",Number),_.B("design:paramtypes",[])],WZ.prototype,"pickerSize",null);_.A([_.R("imageHeight","imageWidth"),_.B("design:type",Object),_.B("design:paramtypes",[])],WZ.prototype,"imageOrientationStyle",null);
_.A([_.R("instruction.previewInstruction.editButtonLabel"),_.B("design:type",Object),_.B("design:paramtypes",[])],WZ.prototype,"editButton",null);_.A([_.R("instruction.editInstruction.saveButtonLabel"),_.B("design:type",Object),_.B("design:paramtypes",[])],WZ.prototype,"saveButton",null);_.A([_.R("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.B("design:type",Number),_.B("design:paramtypes",[])],WZ.prototype,"cropOffsetTop",null);
_.A([_.R("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.B("design:type",Number),_.B("design:paramtypes",[])],WZ.prototype,"cropOffsetLeft",null);_.A([_.R("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],WZ.prototype,"pickerBackgroundStyle",null);_.A([_.R("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],WZ.prototype,"pickerDisplayStyle",null);
_.A([_.R("cropOffsetLeft","cropOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],WZ.prototype,"imageInPickerStyle",null);_.A([_.R("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.B("design:type",String),_.B("design:paramtypes",[])],WZ.prototype,"previewClipperStyle",null);_.A([_.Bt("imageData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WZ.prototype,"onImageDataChange",null);
_.A([_.R("cropCoordinatesSaved"),_.B("design:type",String),_.B("design:paramtypes",[])],WZ.prototype,"pickerModeStyle",null);_.A([_.R("instruction.editInstruction.learnMore"),_.B("design:type",Object),_.B("design:paramtypes",[])],WZ.prototype,"learnMore",null);_.A([_.R("learnMore"),_.B("design:type",Object),_.B("design:paramtypes",[])],WZ.prototype,"learnMoreUrl",null);WZ=_.A([_.zX({is:"yt-img-crop-picker",disableElementRegistration:!0})],WZ);
_.Q(WZ,"yt-img-crop-picker",function(){if(Au3===void 0){var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;QL_===void 0&&(QL_=document.createElement("template"));var C=QL_;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Au3=r}r=Au3;return r},{mode:2});var LU=function(){var r=_.y.apply(this,arguments)||this;r.errorMessage="";r.hasPreview=!1;r.isBackstagePost=!1;r.dismissButtonOverrides={size:"XS"};return r};
_.t(LU,_.y);_.l=LU.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(r){_.e(this.hostElement).querySelector("#preview-picker").imageData=r;this.hasPreview=!0;_.kA(this.hostElement,"yt-backstage-image-select-preview")};
_.l.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var r=_.e(this.hostElement).querySelector("#dropzone");r.classList.remove("dragover");r.classList.remove("error");_.kA(this.hostElement,"yt-backstage-image-select-cancel")};
_.l.setupOverlay=function(){var r=this.imageUploadEndpoint;this.removeOverlay();if(r&&r.imageValidationInfo){var f=_.e(this.hostElement).querySelector("#dropzone"),I=_.e(this.hostElement).querySelector("#select");this.overlay=new sw(r.uploadUrl,r.channelId,r.imageValidationInfo.maxFileSizeMb,r.imageValidationInfo.allowedMaxAspectRatio,f,I,!0);_.S$(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.S$(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.S$(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.S$(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.S$(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.l.removeOverlay=function(){this.overlay&&(_.di(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.di(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.di(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.di(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.di(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.l.onDragOver=function(r){var f=_.e(this.hostElement).querySelector("#dropzone");_.ob(f,"dragover",r.value)};
_.l.onPreview=function(r){this.setPreview(r.value)};
_.l.onImageError=function(r){if(r.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var f;r=(f=this.data)==null?void 0:f.fileSizeError}else if(r.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var I;r=(I=this.data)==null?void 0:I.invalidError}else if(r.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var C;r=(C=this.data)==null?void 0:C.invalidAspectRatioError}else return;this.errorMessage=_.Rr(r);_.e(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.l.onImageAlert=function(r){this.onImageError(r)};
_.l.uploadPromise=function(){var r=this,f=this.overlay&&this.overlay.uploadPromise();if(f)return f.catch(function(){throw Error(r.data?_.Rr(r.data.uploadFailureError):"");})};
_.OC.Object.defineProperties(LU.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var r,f;if((r=this.data)==null?0:(f=r.icon)==null?0:f.iconType)return _.kN(this.data.icon.iconType)}}});
LU.prototype.setupOverlay=LU.prototype.setupOverlay;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],LU.prototype,"rendererStamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],LU.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],LU.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],LU.prototype,"imageUploadEndpoint",void 0);_.A([_.K(),_.B("design:type",Object)],LU.prototype,"errorMessage",void 0);
_.A([_.K(),_.B("design:type",sw)],LU.prototype,"overlay",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],LU.prototype,"hasPreview",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],LU.prototype,"isBackstagePost",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],LU.prototype,"selectionCancel",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],LU.prototype,"previewCancel",null);
_.A([_.R("data.icon.iconType"),_.B("design:type",Object),_.B("design:paramtypes",[])],LU.prototype,"icon",null);_.A([_.K(),_.B("design:type",Object)],LU.prototype,"dismissButtonOverrides",void 0);_.A([_.Bt("imageUploadEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],LU.prototype,"setupOverlay",null);LU=_.A([_.U({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],LU);
_.Q(LU,"ytd-backstage-image-select-renderer",function(){if(Ok3!==void 0)return Ok3;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Ok3=r},{mode:1});var Zk4;var G2U;var mx=function(){var r=_.y.apply(this,arguments)||this;r.selected=!1;return r};
_.t(mx,_.y);_.l=mx.prototype;_.l.computeSelected=function(r){return r==null?void 0:r.selected};
_.l.computeTransform=function(r,f,I){var C,Y,V=(Y=(C=this.imageContainer)==null?void 0:C.getBoundingClientRect())!=null?Y:{width:0,height:0};C=Math.max(V.width/f,V.height/I);I=I*C*r.top;return"translateX("+this.getSignedPosition(f*C*r.left,"X","-")+") translateY("+this.getSignedPosition(I,"Y","-")+")"};
_.l.getSignedPosition=function(r,f,I){return f==="X"&&_.Lz("HTML_DIR")==="rtl"?I==="-"?r+"px":r*-1+"px":I==="-"?r*-1+"px":r+"px"};
_.l.onClick=function(){var r;_.kA(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(r=this.data)==null?void 0:r.image)};
_.l.onKeyPress=function(r){if(r.keyCode===13)this.onClick()};
_.OC.Object.defineProperties(mx.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.data)==null?void 0:(f=r.image)==null?void 0:f.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.data)!=null&&r.image){var f;r=(f=this.data)==null?void 0:f.image;return r.previewCoordinates.top!==0||r.previewCoordinates.left!==0?(f=this.computeTransform(r.previewCoordinates,r.naturalWidth,r.naturalHeight),r.naturalHeight>=r.naturalWidth?"width:inherit;transform:"+f+";":"height:inherit;transform:"+f+";"):r.naturalHeight>=r.naturalWidth?"width:inherit;":"height:inherit;"}}}});
mx.prototype.onKeyPress=mx.prototype.onKeyPress;_.A([_.uA(".image-container"),_.B("design:type",HTMLElement)],mx.prototype,"imageContainer",void 0);_.A([_.K(),_.B("design:type",Object)],mx.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.B("design:type",Object)],mx.prototype,"selected",void 0);_.A([_.R("data.image"),_.B("design:type",Object),_.B("design:paramtypes",[])],mx.prototype,"thumbnailUrl",null);
_.A([_.R("data.image","data.image.previewCoordinates"),_.B("design:type",Object),_.B("design:paramtypes",[])],mx.prototype,"thumbnailStyle",null);_.A([_.kO("keypress"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],mx.prototype,"onKeyPress",null);mx=_.A([_.U({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],mx);
_.Q(mx,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(G2U!==void 0)return G2U;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return G2U=r},{mode:2});var en=function(r,f,I){I=I===void 0?!1:I;_.zh.call(this);var C=this;this.dropZoneOverlay=new Vk(r);this.selectOverlay=I?new Ew(f,"multiple_file",["image/*"]):new Ew(f,"single_file",["image/*"]);this.handler=new _.B8(this);_.V$(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(f,"click",function(){C.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.t(en,_.zh);en.prototype.onChange=function(r){var f;(f=r.files)!=null&&f.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:r.files}))};var J2=function(){var r=_.y.apply(this,arguments)||this;r.addImageErrorMessage="";r.errorMessage="";r.images=[];r.selectedImageIndex=0;r.modern=_.N("web_modern_buttons");r.maxNumImagesPerPost=_.Bw("max_num_images_per_post_web_ui");r.JSC$13462_imageId=0;return r};
_.t(J2,_.y);_.l=J2.prototype;_.l.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.kA(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.l.observeDragToReorder=function(){var r=this;if(this.showImagesPreview){var f,I=wgg(_.Zv.getInstance(),(f=this.data)==null?void 0:f.dragToReorderTooltip);_.F_.addLowPriorityJob(function(){_.rX(r.hostElement,I,r.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(r){return(r==null?void 0:r.localImageSrc)||void 0};
_.l.onRendererstamperFinished=function(){_.vT4(this.ytReorderableBehavior,_.e(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.e(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.l.handleDrop=function(r){var f=r.currDragItem;if(f!=null&&f.data){r=this.images[this.selectedImageIndex];var I=f.data.image,C=this.images.indexOf(I)||0;f=_.QE(f.parentNode.children,f);this.images.splice(C,1);this.images.splice(f,0,I);this.images=[].concat(_.Na(this.images));this.selectedImageIndex=this.images.indexOf(r)}};
_.l.setUpImagePicker=function(){var r=this.imageUploadEndpoint;r&&r.imageValidationInfo&&(this.uploadManager=new t2(r.uploadUrl,r.channelId),this.initialPicker||(this.initialPicker=new en(this.dropzone,this.selectLink,!0),_.S$(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new en(this.addImageButtonContainer,this.addImageSelectButton),_.S$(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.S$(this.JSC$13462_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.S$(this.JSC$13462_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.S$(_.e(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.l.detached=function(){this.initialPicker&&(_.di(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.di(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.l.onInitialSelectImages=function(r){var f=this;return _.x(function(I){return _.b(I,f.onSelectImages(r,!1),0)})};
_.l.onAddImage=function(r){var f=this;return _.x(function(I){return _.b(I,f.onSelectImages(r,!0),0)})};
_.l.onSelectImages=function(r,f){var I=this,C,Y,V,S,h,w,n,d,z,g,X,P,W,m,v,O,k,Z,Cw,rR;return _.x(function(EP){switch(EP.nextAddress){case 1:f?I.addImageErrorMessage="":(I.images=[],I.errorMessage="");C=r.detail;Y=I.validateImages([].concat(_.Na(C)));if(Y!=="")return f?I.addImageErrorMessage=Y:I.errorMessage=Y,EP.return();V=[].concat(_.Na(C)).map(function(Pu){return(new yk(I.maxAspectRatio,!1,!0)).transform(Pu)});
return _.b(EP,Promise.allSettled(V),2);case 2:S=EP.yieldResult,h=_.E(S.entries()),w=h.next();case 3:if(w.done){EP.jumpTo(5);break}n=w.value;d=_.E(n);z=d.next().value;g=d.next().value;X=z;P=g;if(P.status!=="fulfilled"){v=m=W=void 0;f?I.addImageErrorMessage=_.Rr((W=I.data)==null?void 0:W.invalidError):I.errorMessage=I.errorMessage===""?_.Rr((m=I.data)==null?void 0:m.invalidError):_.Rr((v=I.data)==null?void 0:v.multiFileError);EP.jumpTo(4);break}O=P.value;O.cropped&&_.kA(I.hostElement,"yt-backstage-multi-image-cropped");
if(O.invalidAspectRatio){Cw=Z=k=void 0;f?I.addImageErrorMessage=_.Rr((k=I.data)==null?void 0:k.invalidAspectRatioError):I.errorMessage=I.errorMessage===""?_.Rr((Z=I.data)==null?void 0:Z.invalidAspectRatioError):_.Rr((Cw=I.data)==null?void 0:Cw.multiFileError);EP.jumpTo(4);break}return _.b(EP,Q7q(I.JSC$13462_imageId,r.detail[X],O.transformedData),8);case 8:rR=EP.yieldResult,I.images.push(rR),I.JSC$13462_imageId++;case 4:w=h.next();EP.jumpTo(3);break;case 5:if(I.errorMessage!==""||I.addImageErrorMessage!==
"")return EP.return();f?HkD(I.uploadManager,[I.images[I.images.length-1]]):HkD(I.uploadManager,I.images);I.images=[].concat(_.Na(I.images));I.selectedImageIndex=f?Math.max(I.images.length-1,0):0;_.kA(I.hostElement,"yt-backstage-multi-image-select");_.wO(EP)}})};
_.l.onThumbnailClick=function(r){if(r=r.event_.detail)this.selectedImageIndex=this.images.indexOf(r)};
_.l.validateImages=function(r){if(r.length>this.maxNumImagesPerPost){var f;return _.Rr((f=this.data)==null?void 0:f.multiImageExceedMaxImageCountError)}var I=1048576*this.maxFileSizeMb;r=r.filter(function(V){return V.size>I}).length;
if(r===0)return"";var C,Y;r=r>1?(C=this.data)==null?void 0:C.multiFileError:(Y=this.data)==null?void 0:Y.fileSizeError;return _.Rr(r)};
_.l.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.Na(this.images));this.selectedImageIndex=0};
_.l.repositionImage=function(r){this.images[this.selectedImageIndex].previewCoordinates=r.event_.detail;this.images=[].concat(_.Na(this.images))};
_.l.getAllUploadStatuses=function(){var r=this,f,I,C,Y;return _.x(function(V){if(V.nextAddress==1)return _.b(V,r.uploadManager.getAllUploadStatuses(),2);f=V.yieldResult;I=_.E(f);for(C=I.next();!C.done;C=I.next())if(Y=C.value,Y.encryptedBlobId===void 0)return V.return(ik4(r.uploadManager));return V.return(f)})};
_.l.hasImages=function(){return this.images.length>0};
_.l.cancel=function(){for(var r=this.uploadManager,f=_.E(r.imagesUploadData),I=f.next();!I.done;I=f.next())r.cancel(I.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.kA(this.hostElement,"yt-backstage-multi-image-cancel")};
_.OC.Object.defineProperties(J2.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.imageUploadEndpoint)==null?void 0:(f=r.imageValidationInfo)==null?void 0:f.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.imageUploadEndpoint)==null?void 0:(f=r.imageValidationInfo)==null?void 0:f.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var r,f;if((r=this.data)==null?0:(f=r.icon)==null?0:f.iconType)return _.kN(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.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 r=this;return(this.images||[]).map(function(f,I){return{renderer:{image:f,selected:I===r.selectedImageIndex}}})}}});
J2.prototype.setUpImagePicker=J2.prototype.setUpImagePicker;J2.prototype.onRendererstamperFinished=J2.prototype.onRendererstamperFinished;J2.prototype.observeDragToReorder=J2.prototype.observeDragToReorder;J2.prototype.observeAddImageError=J2.prototype.observeAddImageError;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],J2.prototype,"rendererStamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],J2.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.KSU),_.B("design:type",Object)],J2.prototype,"ytReorderableBehavior",void 0);_.A([_.uA("#dropzone"),_.B("design:type",HTMLElement)],J2.prototype,"dropzone",void 0);_.A([_.uA("#select-link"),_.B("design:type",HTMLElement)],J2.prototype,"selectLink",void 0);_.A([_.uA("#thumbnail-drag-drop-area"),_.B("design:type",HTMLElement)],J2.prototype,"thumbnailDragDropArea",void 0);_.A([_.uA("#add-image-button-container"),_.B("design:type",HTMLElement)],J2.prototype,"addImageButtonContainer",void 0);
_.A([_.uA("#add-image-button"),_.B("design:type",HTMLElement)],J2.prototype,"addImageSelectButton",void 0);_.A([_.uA("#image-preview-container"),_.B("design:type",Object)],J2.prototype,"JSC$13462_imagePreviewContainer",void 0);_.A([_.K(),_.B("design:type",Object)],J2.prototype,"addImageErrorMessage",void 0);_.A([_.K(),_.B("design:type",Object)],J2.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],J2.prototype,"errorMessage",void 0);
_.A([_.K(),_.B("design:type",Object)],J2.prototype,"imageUploadEndpoint",void 0);_.A([_.K(),_.B("design:type",Array)],J2.prototype,"images",void 0);_.A([_.K(),_.B("design:type",en)],J2.prototype,"initialPicker",void 0);_.A([_.K(),_.B("design:type",en)],J2.prototype,"addImagePicker",void 0);_.A([_.K(),_.B("design:type",t2)],J2.prototype,"uploadManager",void 0);_.A([_.K(),_.B("design:type",Object)],J2.prototype,"selectedImageIndex",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],J2.prototype,"modern",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],J2.prototype,"maxNumImagesPerPost",void 0);_.A([_.R("imageUploadEndpoint"),_.B("design:type",Number),_.B("design:paramtypes",[])],J2.prototype,"maxAspectRatio",null);_.A([_.R("imageUploadEndpoint"),_.B("design:type",Number),_.B("design:paramtypes",[])],J2.prototype,"maxFileSizeMb",null);
_.A([_.R("data.icon.iconType"),_.B("design:type",Object),_.B("design:paramtypes",[])],J2.prototype,"dropIcon",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],J2.prototype,"selectionCancel",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],J2.prototype,"previewCancel",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],J2.prototype,"dataForAddImageButton",null);
_.A([_.R("errorMessage"),_.B("design:type",String),_.B("design:paramtypes",[])],J2.prototype,"dropzoneClass",null);_.A([_.R("images"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],J2.prototype,"showImagesPreview",null);_.A([_.R("images"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],J2.prototype,"containMaxImages",null);_.A([_.Bt("addImageErrorMessage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],J2.prototype,"observeAddImageError",null);
_.A([_.Bt("showImagesPreview"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],J2.prototype,"observeDragToReorder",null);_.A([_.R("images","selectedImageIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],J2.prototype,"selectedImageData",null);_.A([_.R("images","selectedImageIndex"),_.B("design:type",Array),_.B("design:paramtypes",[])],J2.prototype,"thumbnailRenderers",null);
_.A([_.kO("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],J2.prototype,"onRendererstamperFinished",null);_.A([_.Bt("imageUploadEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],J2.prototype,"setUpImagePicker",null);J2=_.A([_.U({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],J2);
_.Q(J2,"ytd-backstage-multi-image-select-renderer",function(){if(Zk4!==void 0)return Zk4;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Zk4=r},{mode:1});var k2s;var BSU;var qV4;var jn=function(){var r=_.y.apply(this,arguments)||this;r.boundCaptureFocus=function(f){r.onCaptureFocus(f)};
return r};
_.t(jn,_.y);_.l=jn.prototype;_.l.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.l.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.l.onCaptureFocus=function(r){_.JN(r).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.l.getIconType=function(r){return r?"yt-icons:"+r.toLowerCase():null};
_.l.onSelect=function(){var r;if((r=this.data)==null?0:r.onSelectCommand)if(_.N("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var f;((f=_.F(this.data.onSelectCommand.commandMetadata,_.oo))==null?0:f.url)?_.kA(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.a().resolve(_.Gg).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.OC.Object.defineProperties(jn.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Rr(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}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],jn.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],jn.prototype,"data",void 0);_.A([_.uA("#item"),_.B("design:type",HTMLElement)],jn.prototype,"item",void 0);_.A([_.R("data.label"),_.B("design:type",String),_.B("design:paramtypes",[])],jn.prototype,"label",null);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],jn.prototype,"value",null);jn=_.A([_.U({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],jn);
_.Q(jn,"ytd-privacy-dropdown-item-renderer",function(){if(qV4!==void 0)return qV4;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return qV4=r},{mode:1});var HZ=function(){var r=_.y.apply(this,arguments)||this;r.value="";r.label="";r.disabled=!1;return r};
_.t(HZ,_.y);_.l=HZ.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 r;if(this.value&&(r=this.data)!=null&&r.entries){r=_.E(this.data.entries);for(var f=r.next();!f.done;f=r.next())if((f=this.getRendererForEntry(f.value))&&this.getItemRendererValue(f)===this.value){this.label=this.ytComponentBehavior.getSimpleString(f.label);break}}};
_.l.setInitialLabel=function(){if(this.data&&this.data.entries)for(var r=_.E(this.data.entries),f=r.next();!f.done;f=r.next())if(f=this.getRendererForEntry(f.value)){if(f.isSelected){this.label=this.ytComponentBehavior.getSimpleString(f.label);break}this.data.label&&(this.label=this.data.label)}};
_.l.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var r=_.E(this.data.entries),f=r.next();!f.done;f=r.next()){f=this.getRendererForEntry(f.value);var I=void 0;if((I=f)==null?0:I.isSelected)return this.getItemRendererValue(f)||-1}return-1};
_.l.getItemRendererValue=function(r){return"stringValue"in r||"int32Value"in r?r.stringValue||r.int32Value||null:null};
_.l.getRendererForEntry=function(r){return r.dropdownItemRenderer||r.privacyDropdownItemRenderer||r.navigationDropdownItemRenderer||null};
_.l.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LT("value-changed",this.value))};
_.l.updateValueFromBinding=function(r){this.value=r.detail.value};
HZ.prototype.valueChangedForBinding=HZ.prototype.valueChangedForBinding;HZ.prototype.valueChanged=HZ.prototype.valueChanged;HZ.prototype.dataChanged=HZ.prototype.dataChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],HZ.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],HZ.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],HZ.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],HZ.prototype,"value",void 0);_.A([_.K(),_.B("design:type",Object)],HZ.prototype,"label",void 0);_.A([_.uA("#entries"),_.B("design:type",Object)],HZ.prototype,"entries",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],HZ.prototype,"disabled",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HZ.prototype,"dataChanged",null);
_.A([_.YN("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HZ.prototype,"valueChanged",null);_.A([_.Bt("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HZ.prototype,"valueChangedForBinding",null);HZ=_.A([_.U({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],HZ);
_.Q(HZ,"ytd-flat-dropdown-renderer",function(){if(BSU!==void 0)return BSU;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return BSU=r},{mode:1});var uOC;var iu=function(){var r=_.y.apply(this,arguments)||this;r.quizOptions=[];r.explanationPlaceholderText="";r.optionPlaceholderText="";r.correctAnswerIndex=-1;r.isMarkAnswerTooltipShown=!1;r.timer=0;return r};
_.t(iu,_.y);_.l=iu.prototype;_.l.dataChanged=function(){this.optionPlaceholderText=_.Rr(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.Rr(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.l.onMarkCorrectAnswer=function(r){var f,I=((f=this.quizOptions[this.correctAnswerIndex])==null?void 0:f.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[r.model.index]=Object.assign({},this.quizOptions[r.model.index],{explanationText:I,isCorrect:!0});this.correctAnswerIndex=r.model.index;this.quizOptions=[].concat(_.Na(this.quizOptions))};
_.l.updatePlaceholderTexts=function(){for(var r=!1,f=[],I=0;I<this.quizOptions.length;I++){var C=this.optionPlaceholderText+" "+(I+1),Y=void 0;((Y=this.quizOptions[I])==null?void 0:Y.placeholderText)!==C?(r=!0,f.push(Object.assign({},this.quizOptions[I],{placeholderText:C}))):f.push(this.quizOptions[I])}r&&(this.quizOptions=f);this.isValid()?_.kA(this.hostElement,"yt-commentbox-post-enable"):_.kA(this.hostElement,"yt-commentbox-post-disable")};
_.l.getSimpleString=function(r){return _.Rr(r)};
_.l.createQuizOptions=function(r){var f=[],I;r=(I=r==null?void 0:r.minQuizOptions)!=null?I:0;for(I=0;I<r;I++)f.push(this.createQuizOption());return f};
_.l.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.Na(this.quizOptions),[this.createQuizOption()]))};
_.l.onInput=function(){this.quizOptions=[].concat(_.Na(this.quizOptions))};
_.l.onExplanationInput=function(){_.kA(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.l.onRemoveQuizOption=function(r){this.quizOptions.splice(r.model.index,1);r.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:r.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.Na(this.quizOptions));this.quizOptions.length===0&&_.kA(this.hostElement,"yt-quiz-attachment-dismiss")};
_.l.updateHintRenderer=function(){var r=this;clearTimeout(this.timer);this.timer=setTimeout(function(){r.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 r=0,f=0,I=_.E(this.quizOptions),C=I.next();!C.done;C=I.next()){C=C.value;var Y=void 0;if(((Y=C.optionText)==null?void 0:Y.trim())!==""||C.isCorrect){C.isCorrect&&f++;Y=void 0;if(this.hasCustomOptionText&&((Y=C.optionText)==null?void 0:Y.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;r++}}return r>=
Number(this.editorInfo.minQuizOptions)&&f===1};
_.l.getPostCreateOptions=function(){for(var r=[],f=_.E(this.quizOptions),I=f.next();!I.done;I=f.next()){I=I.value;var C=void 0;((C=I.optionText)==null?void 0:C.trim())!==""&&r.push({pollOption:{text:I.optionText,explanation:I.explanationText},isCorrect:I.isCorrect})}return r};
_.l.getExplanationText=function(){var r;return((r=this.quizOptions[this.correctAnswerIndex])==null?void 0:r.explanationText)||""};
_.l.maybeDisplayMarkAnswerEduToolTip=function(){var r,f,I,C,Y,V,S;this.shouldShowMarkAnswerTooltip()&&((r=this.editorInfo)==null?0:(f=r.markAnswerButton)==null?0:(I=f.buttonRenderer)==null?0:(C=I.hint)==null?0:(Y=C.hintRenderer)==null?0:(V=Y.content)==null?0:(S=V.bubbleHintRenderer)==null?0:S.text)&&(_.Zv.getInstance(),r=G$(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,(r==null?void 0:r.length)>0&&this.optionSelectors&&_.u7(r[0],this.optionSelectors[0]))};
_.l.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var r=0,f=_.E(this.quizOptions),I=f.next();!I.done;I=f.next()){I=I.value;var C=void 0;((C=I.optionText)==null?void 0:C.trim())!==""&&r++;if(I.isCorrect)return!1}return r<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(r){if(r.target){var f=Array.from(_.e(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(r.target);if(f>=0){var I;this.quizOptions[f].optionText=(I=r.detail.value)!=null?I:""}}};
_.OC.Object.defineProperties(iu.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var r,f,I=(r=this.editorInfo)==null?void 0:(f=r.addOptionButton)==null?void 0:f.buttonRenderer;I&&(I.style="STYLE_SUGGESTIVE",I.size="SIZE_SMALL",I.isDisabled=!this.isAllowedToAddOption);return(I==null?0:I.text)?I:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var r,f;return this.quizOptions.length<((f=(r=this.editorInfo)==null?void 0:r.maxQuizOptions)!=null?f:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(r){var f;return(f=r.optionText)==null?void 0:f.trim()})}}});
iu.prototype.updatePlaceholderTexts=iu.prototype.updatePlaceholderTexts;iu.prototype.dataChanged=iu.prototype.dataChanged;_.A([_.K(),_.B("design:type",Object)],iu.prototype,"editorInfo",void 0);_.A([_.K(),_.B("design:type",Array)],iu.prototype,"quizOptions",void 0);_.A([_.K(),_.B("design:type",Object)],iu.prototype,"explanationPlaceholderText",void 0);_.A([_.Dh(".option-selector-button"),_.B("design:type",Array)],iu.prototype,"optionSelectors",void 0);
_.A([_.YN("editorInfo"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iu.prototype,"dataChanged",null);_.A([_.R("editorInfo","isAllowedToAddOption","quizOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],iu.prototype,"addAnswerButton",null);_.A([_.R("editorInfo","quizOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],iu.prototype,"isAllowedToAddOption",null);
_.A([_.YN("quizOptions"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iu.prototype,"updatePlaceholderTexts",null);_.A([_.R("quizOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],iu.prototype,"hasCustomOptionText",null);iu=_.A([_.U({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],iu);
_.Q(iu,"ytd-backstage-quiz-editor-renderer",function(){if(uOC!==void 0)return uOC;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return uOC=r},{mode:2});var DtD;var rSX=(aV.FIRSTDAYOFWEEK+1)%7;var fT8;var IT8=[],CDB=0,YLq=0;CDB=0;YLq=24;if(.25*(YLq-CDB)<0)fT8=[];else{for(var lTq=CDB;lTq<YLq;lTq+=.25)IT8.push(lTq);fT8=IT8}var VA3=fT8.map(function(r){r=r*60*60;return{secondsSinceMidnight:r,text:(new JQ(7)).format(new Date(0,0,0,0,0,r))}});var Ej4;var sX=function(){var r=_.y.apply(this,arguments)||this;r.skipNextOpenDialog=!1;r.errorMessage="";return r};
_.t(sX,_.y);_.l=sX.prototype;_.l.attached=function(){var r=this,f=new MutationObserver(function(){r.JSC$13505_calendarMain.scrollHeight>0&&(f.disconnect(),r.calendarConfig&&r.calendarConfig.selectedDate&&r.scrollToDate())});
f.observe(this.JSC$13505_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){f.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 r=this.validateDateText();r.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(r.details)):this.textbox.setAttribute("invalid","")}};
_.l.handleDayClick=function(r){r.model.day.date&&(this.commitDate(r.model.day.date),this.dialog.close())};
_.l.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var r=ID$(this.calendarConfig.selectedDate,this.renderData);r!==void 0&&this.JSC$13505_calendarMain.scrollToIndex(r)}};
_.l.scrollToNextMonth=function(){this.JSC$13505_calendarMain.scrollToIndex(this.JSC$13505_calendarMain.firstVisibleIndex+1)};
_.l.scrollToPrevMonth=function(){this.JSC$13505_calendarMain.firstVisibleIndex===0&&this.JSC$13505_calendarMain.scrollTo(0,0);this.JSC$13505_calendarMain.scrollToIndex(this.JSC$13505_calendarMain.firstVisibleIndex-1)};
_.l.onFormSubmit=function(r){r.preventDefault();this.calendarConfig&&(r=this.validateDateText(),r.isValid&&(this.commitDate(r.details),this.dialog.close()))};
_.l.onEscOrClickingOutside=function(r){r=r.detail.path&&!!r.detail.path.length&&r.detail.path[0];if(r.classList.contains("ytd-calendar-date-picker")){r===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var f=0;f<this.dropdownButton.children.length;f++)this.dropdownButton.children[f]===r&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}r=this.textbox.value!==this.dateText;f=this.validateDateText();r&&f.isValid&&this.commitDate(f.details);this.dialog.close();this.textbox.value=
this.dateText};
_.l.commitDate=function(r){this.calendarConfig&&(this.set("calendarConfig.selectedDate",r),_.kA(this.hostElement,"ytd-calendar-date-selected",r))};
_.l.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var r=this.textbox.value;var f=new Date;r=(new NSl(2)).parse(r,f,{validate:!0})===r.length?ruc(f):void 0;if(!r)return this.errorMessage=_.VR("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};f=this.calendarConfig.start;var I=this.calendarConfig.end;if(kjl(r,f))return this.errorMessage=_.VR("ENTER_DATE_OR_LATER",{allowed_date:DwK(f)}),{isValid:!1,details:void 0};if(kjl(I,r))return this.errorMessage=
_.VR("ENTER_DATE_OR_EARLIER",{allowed_date:DwK(I)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:r}};
_.OC.Object.defineProperties(sX.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?DwK(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var r=this.calendarConfig,f=[],I=0;I<7;I++)f.push(aV.NARROWWEEKDAYS[(I+rSX)%7]);I=[];for(var C=new Date(r.start.year,r.start.month);C.getFullYear()<r.end.year||C.getFullYear()===r.end.year&&C.getMonth()<=r.end.month;){var Y=I,V=Y.push,S=C.getFullYear(),h=C.getMonth(),w=r,n=void 0,d=[],z=Object.freeze({extraCssClass:"invisible",debugClass:""}),g=new Date(S,h),X=ruc(g);g=g.getDay();for(var P=ruc(new Date);X.month===
h;){g!==rSX&&n||(n=Array.from({length:7}).fill(z),d.push(n));var W={date:{year:S,month:h,day:X.day},extraCssClass:"",debugClass:""};w.selectedDate&&W.date&&Gjd(W.date,w.selectedDate)&&(W.extraCssClass+=" selected");if(kjl(X,w.start)||kjl(w.end,X))W.extraCssClass+=" disabled";Gjd(X,P)&&(W.extraCssClass+=" today");W.extraCssClass=W.extraCssClass.trim();n[(g-rSX+7)%7]=W;X=q9d(X);g=(g+1)%7}V.call(Y,{weeks:d,monthLabel:aV.SHORTMONTHS[h]+" "+S,year:S,month:h,monthLabelExtraCssClass:d[0][2]===z?"shift-down-label":
""});C.setMonth(C.getMonth()+1)}return{months:I,daysOfWeekLabel:f}}}}});
sX.prototype.onEscOrClickingOutside=sX.prototype.onEscOrClickingOutside;sX.prototype.scrollToDate=sX.prototype.scrollToDate;_.A([_.K(),_.B("design:type",Object)],sX.prototype,"calendarConfig",void 0);_.A([_.K(),_.B("design:type",Object)],sX.prototype,"skipNextOpenDialog",void 0);_.A([_.K(),_.B("design:type",Object)],sX.prototype,"errorMessage",void 0);_.A([_.uA("#textbox"),_.B("design:type",HTMLInputElement)],sX.prototype,"textbox",void 0);
_.A([_.uA("#calendar-dialog"),_.B("design:type",Object)],sX.prototype,"dialog",void 0);_.A([_.uA("#calendar-main"),_.B("design:type",Object)],sX.prototype,"JSC$13505_calendarMain",void 0);_.A([_.uA("#date-picker"),_.B("design:type",HTMLElement)],sX.prototype,"dropdownButton",void 0);_.A([_.R("calendarConfig.selectedDate"),_.B("design:type",String),_.B("design:paramtypes",[])],sX.prototype,"dateText",null);
_.A([_.R("calendarConfig","calendarConfig.selectedDate"),_.B("design:type",Object),_.B("design:paramtypes",[])],sX.prototype,"renderData",null);_.A([_.Bt("renderData","calendarConfig.selectedDate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sX.prototype,"scrollToDate",null);_.A([_.kO("iron-overlay-canceled"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],sX.prototype,"onEscOrClickingOutside",null);
sX=_.A([_.zX({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],sX);
_.Q(sX,"ytd-calendar-date-picker",function(){if(Ej4!==void 0)return Ej4;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Ej4=r},{mode:2});var SLq=_.VR("UTC_OFFSET_FORMAT",{utc_offset:(new JQ("Z")).format(new Date)}),xnq=(new Date).getTimezoneOffset()*-60,hus=new Date,wiC,bpg=eo(hus.getTimezoneOffset());wiC=cN4(L44(bpg,hus));var pi4=_.VR("LOCAL_TIME_GMT_LABEL",{gmt_text:wiC.replace("+0","+").replace("-0","-").replace(":00","")}),OX=function(){var r=_.y.apply(this,arguments)||this;r.selectedTimeIndex=0;r.selectedTimezoneIndex=0;r.timeOfDayOptions=VA3;return r};
_.t(OX,_.y);_.l=OX.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 r=upq();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=r,this.selectedTimeIndex=0;else{var f=fDP(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},r,{selectedDate:f.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(I){return I.secondsSinceMidnight===f.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.l.onDatePicked=function(r){this.selectedDate=r.detail};
_.l.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.kA(this.hostElement,"ytd-date-time-selection-cancelled")};
_.l.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var r=this.selectedDate;r=new Date(r.year,r.month,r.day);_.kA(this.hostElement,"ytd-date-time-selection-update",Math.floor(r.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+r.getTimezoneOffset()*60))}};
_.l.getTimezoneFormat=function(r){return r.localizedDisplayText?r.localizedDisplayText:_.VR("TIMEZONE_FORMAT",{utc_offset_text:""+r.localizedUtcOffset,city_name:""+r.localizedName})};
_.l.updateSelectedTimeIndexFromBinding=function(r){this.selectedTimeIndex=r.detail.value};
_.l.updateSelectedTimezoneIndexFromBinding=function(r){this.selectedTimezoneIndex=r.detail.value};
_.OC.Object.defineProperties(OX.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var r=this.data.timezoneOptions;var f={name:"Etc/Unknown",localizedName:_.VR("LOCAL_TIME_LABEL"),localizedUtcOffset:SLq,utcOffsetSec:""+xnq,localizedDisplayText:pi4};r?r.length&&r[0].name!==f.name&&(r[0].localizedDisplayText||(f.localizedDisplayText=""),r.unshift(f)):r=[f];return r}}},
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]}}});
OX.prototype.onDateTimeTimezoneChange=OX.prototype.onDateTimeTimezoneChange;OX.prototype.onDatePicked=OX.prototype.onDatePicked;OX.prototype.updateDefaultSelectedValue=OX.prototype.updateDefaultSelectedValue;_.A([_.K(),_.B("design:type",Object)],OX.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],OX.prototype,"calendarConfig",void 0);_.A([_.K(),_.B("design:type",Object)],OX.prototype,"selectedDate",void 0);_.A([_.K(),_.B("design:type",Object)],OX.prototype,"selectedTimeIndex",void 0);
_.A([_.K(),_.B("design:type",Object)],OX.prototype,"selectedTimezoneIndex",void 0);_.A([_.uA("#time-listbox"),_.B("design:type",Object)],OX.prototype,"timeListBox",void 0);_.A([_.uA("#timezone-listbox"),_.B("design:type",Object)],OX.prototype,"timezoneListBox",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],OX.prototype,"rendererStamperBehavior",void 0);_.A([_.R("data.timezoneOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],OX.prototype,"timeZones",null);
_.A([_.YN("data","timeZones"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OX.prototype,"updateDefaultSelectedValue",null);_.A([_.R("selectedTimezoneIndex","timeZones"),_.B("design:type",Object),_.B("design:paramtypes",[])],OX.prototype,"selectedTimezone",null);_.A([_.R("selectedTimeIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],OX.prototype,"selectedTime",null);
_.A([_.kO("ytd-calendar-date-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],OX.prototype,"onDatePicked",null);_.A([_.Bt("selectedTimezone","selectedTime","selectedDate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OX.prototype,"onDateTimeTimezoneChange",null);OX=_.A([_.U({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],OX);
_.Q(OX,"ytd-date-time-picker-renderer",function(){if(DtD!==void 0)return DtD;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return DtD=r},{mode:1});var njU;var ou=function(){var r=_.y.apply(this,arguments)||this;r.boundOnTapDismissButton=function(){r.dismissTapHandler()};
r.dismissButtonOverrides={size:"XS"};return r};
_.t(ou,_.y);ou.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}}}}}};
ou.prototype.dismissTapHandler=function(){_.kA(this.hostElement,"yt-backstage-attachment-dismissed")};
ou.prototype.computeAttachmentType=function(r){return r?r.backstageImageRenderer?"image":r.videoRenderer?"video":"none":"none"};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ou.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ou.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ou.prototype,"attachmentPreview",void 0);_.A([_.K(),_.B("design:type",Object)],ou.prototype,"dismissButton",void 0);_.A([_.K(),_.B("design:type",Object)],ou.prototype,"boundOnTapDismissButton",void 0);
_.A([_.K(),_.B("design:type",Object)],ou.prototype,"dismissButtonOverrides",void 0);_.A([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.B("design:type",String)],ou.prototype,"attachmentType",void 0);ou=_.A([_.U({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],ou);
_.Q(ou,"ytd-backstage-dismissable-attachment",function(){if(njU!==void 0)return njU;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return njU=r},{mode:1});var dn3;var QX=function(){var r=_.y.apply(this,arguments)||this;r.selectedVideoId=void 0;r.picker=void 0;r.dismissButtonOverrides={size:"XS"};r.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return r};
_.t(QX,_.y);_.l=QX.prototype;_.l.onServiceRequestCompleted=function(r){r.stopPropagation()};
_.l.handleAddVideoPreviewAction=function(r){r=this.get("addVideoPreviewAction",r);this.onGetVideoPreviewSuccess(r)};
_.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(r){var f=this,I=_.Rr(this.get("addVideoLinkAction.title",r)),C=this.get("addVideoLinkAction.onePickHostId",r);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",r);C&&(this.picker||(I=_.Tt_(_.Wuu(C).setTitle(I).addView($C_()).addView(Ntg()),function(Y){f.onPickVideo(Y)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",r)||I.addView("youtube"),this.picker=I.build()),this.picker.setVisible(!0))};
_.l.onPickVideo=function(r){if(r)if(r.action==="cancel")_.kA(this.hostElement,"yt-video-link-button-cancel");else if(r.action==="picked"){r=r.docs;if(!r||r.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(r=(r==null?0:r.length)?r[0]:void 0)?r.id:void 0;this.setVideoPreview()}};
_.l.setVideoPreview=function(){var r=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){r.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.l.onGetVideoPreviewSuccess=function(r){if(r&&r.videoPreview&&r.cancelButton)this.videoPreview=r.videoPreview,this.cancelButton=r.cancelButton,_.kA(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;_.kA(this.hostElement,"yt-video-link-cancel")};
_.l.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
QX.prototype.onServiceRequestCompleted=QX.prototype.onServiceRequestCompleted;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],QX.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],QX.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],QX.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],QX.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],QX.prototype,"videoPreview",void 0);_.A([_.K(),_.B("design:type",Object)],QX.prototype,"cancelButton",void 0);_.A([_.K(),_.B("design:type",Object)],QX.prototype,"getVideoPreviewCommand",void 0);_.A([_.K(),_.B("design:type",Object)],QX.prototype,"dismissButtonOverrides",void 0);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],QX.prototype,"onServiceRequestCompleted",null);QX=_.A([_.U({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],QX);
_.Q(QX,"ytd-backstage-video-link-attachment",function(){if(dn3!==void 0)return dn3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return dn3=r},{mode:1});var zuV;var MAg;var gjU;var A2=function(){return _.y.apply(this,arguments)||this};
_.t(A2,_.y);A2.prototype.dataChanged=function(){this.active=!1};
A2.prototype.onTap=function(){_.kA(this.hostElement,"yt-select-emoji-suggestion",this.data)};
A2.prototype.identity=function(r){return r};
_.OC.Object.defineProperties(A2.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var r,f,I,C;if((r=this.data)==null?0:(f=r.image)==null?0:(I=f.thumbnails)==null?0:(C=I[0])==null?0:C.url)return r=this.data.image.thumbnails[0].url,r.startsWith("data:image/svg+xml")?bM(r):_.gn(r)}}});
A2.prototype.dataChanged=A2.prototype.dataChanged;_.A([_.K(),_.B("design:type",Object)],A2.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],A2.prototype,"active",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],A2.prototype,"dataChanged",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],A2.prototype,"imageSrc",null);
A2=_.A([_.U({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],A2);
_.Q(A2,"ytd-emoji-suggestion",function(){if(gjU!==void 0)return gjU;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return gjU=r},{mode:1});var aTC=/.*([:@#].*?)$/,ZS=function(){var r=_.y.apply(this,arguments)||this;r.suggestions=[];r.suggestionIndex=-1;r.JSC$13533_lastSuggestionRange=null;return r};
_.t(ZS,_.y);_.l=ZS.prototype;_.l.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.l.getSuggestions=function(r){var f=[],I=oR8(this.emojiManager,r.substr(0,3));if(I)for(var C in I)if(C.toLocaleLowerCase().indexOf(r)===0){var Y=I[C];if(Y&&Y.emojiId){Y=P2(this.emojiManager,Y.emojiId);var V=void 0,S=void 0,h=void 0,w=void 0,n=((V=Y)==null?0:V.isCustomEmoji)?(S=Y)==null?void 0:(h=S.shortcuts)==null?void 0:h[0]:(w=Y)==null?void 0:w.emojiId;V=void 0;f.push({suggestion:{image:(V=Y)==null?void 0:V.image,alt:n,text:C}});if(f.length>=64)break}}return f?f.sort(function(d,z){return z.suggestion.text<
d.suggestion.text?-1:z.suggestion.text===d.suggestion.text?0:1}):null};
_.l.insertSuggestion=function(r){_.kA(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13533_lastSuggestionRange,text:r.alt});this.dropdown.opened=!1};
_.l.updateSuggestionsAtCaret=function(r){this.updateSuggestions(r,this.retrieveTextBeforeRange(r))};
_.l.offsetStartOfRangeBy=function(r,f){r.startOffset>=f&&r.setStart(r.startContainer,r.startOffset-f)};
_.l.updateSuggestions=function(r,f){var I=this;this.JSC$13533_lastSuggestionRange&&(this.JSC$13533_lastSuggestionRange.detach(),this.JSC$13533_lastSuggestionRange=null);if((f=aTC.exec(f))&&f.length&&(f=f[f.length-1].toLocaleLowerCase(),f.length>2||f===":_")&&(this.offsetStartOfRangeBy(r,f.length),this.JSC$13533_lastSuggestionRange=r,(r=this.getSuggestions(f))&&r.length)){this.suggestions=r;_.UC(this,function(){I.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(r.length-1);return}this.dropdown.opened=!1};
_.l.onKeyDown=function(r){if(this.dropdown.opened)switch(r.key){case "Escape":this.dropdown.opened=!1;r.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);r.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);r.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),r.preventDefault()}};
_.l.onKeyUp=function(r,f){switch(r.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(f);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(f)}};
_.l.onKeyPress=function(r){r.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),r.preventDefault())};
_.l.changeSuggestionIndex=function(r){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(r+this.suggestions.length)%this.suggestions.length,r=this.dropdownContent.children[this.suggestionIndex],r.active=!0,this.dropdownContent.scrollTop=r.offsetTop)};
_.l.retrieveTextBeforeRange=function(r){var f=r.startContainer;return f&&f.nodeType===Node.TEXT_NODE?f.textContent.substr(0,r.startOffset):""};
ZS.prototype.onKeyPress=ZS.prototype.onKeyPress;ZS.prototype.onKeyUp=ZS.prototype.onKeyUp;ZS.prototype.onKeyDown=ZS.prototype.onKeyDown;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ZS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Array)],ZS.prototype,"suggestions",void 0);_.A([_.K(),_.B("design:type",_.$n)],ZS.prototype,"emojiManager",void 0);_.A([_.K(),_.B("design:type",Number)],ZS.prototype,"verticalSuggestionsOffset",void 0);
_.A([_.uA("#dropdown"),_.B("design:type",Object)],ZS.prototype,"dropdown",void 0);_.A([_.uA("#dropdown-content"),_.B("design:type",HTMLDivElement)],ZS.prototype,"dropdownContent",void 0);_.A([_.kO("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],ZS.prototype,"onKeyDown",null);_.A([_.kO("keyup"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent,Range]),_.B("design:returntype")],ZS.prototype,"onKeyUp",null);
_.A([_.kO("keypress"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],ZS.prototype,"onKeyPress",null);ZS=_.A([_.U({disableElementRegistration:!0,is:"ytd-emoji-input"})],ZS);
_.Q(ZS,"ytd-emoji-input",function(){if(MAg!==void 0)return MAg;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return MAg=r},{mode:2});var Xi_;var GQ=function(){var r=_.y.apply(this,arguments)||this;r.hasMaxOptions=!1;return r};
_.t(GQ,_.y);_.l=GQ.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(r){var f=this;this.set("pollOptions",[]);var I;for(I=0;I<Math.min(r.length,this.data.maxPollOptions);I++)this.push("pollOptions",r[I].substring(0,this.data.maxPollOptionChars));for(;I<this.data.minPollOptions;I++)this.push("pollOptions","");this.hasMaxOptions=I>=this.data.maxPollOptions;_.UC(this,function(){for(var C=f.pollOptions,Y=_.e(f.hostElement).querySelectorAll(".poll-option-input"),V=0;V<Y.length;V++)Y[V].value=C[V]})};
_.l.focusChanged=function(){_.Zh(this.hostElement)};
_.l.onInput=function(){var r=this;_.Pc(this,"onInput",function(){r.isValid()?_.kA(r.hostElement,"yt-commentbox-post-enable"):_.kA(r.hostElement,"yt-commentbox-post-disable")},300)};
_.l.setPollOptions=function(){var r=[],f,I=((f=this.data)==null?0:f.minPollOptions)?this.data.minPollOptions:0;for(f=0;f<I;f++)r.push("");return r};
_.l.addPollOption=function(){var r=this;_.kA(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.F_.addLowPriorityJob(function(){var f;(f=_.e(r.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||f.focus()})};
_.l.onRemovePollOption=function(r){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.kA(this.hostElement,"yt-poll-attachment-dismiss")):(r=this.repeat.indexForElement(r.target.parentNode),r!==null&&(this.splice("pollOptions",r,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.kA(this.hostElement,"yt-commentbox-post-enable"))))};
_.l.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.l.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var r=0,f=this.pollOptions.length;r<f;r++)if(this.pollOptions[r].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.l.getPollOptions=function(){return this.pollOptions};
_.l.setPollOptionsFromInputs=function(){for(var r=_.e(this.hostElement).querySelectorAll(".poll-option-input"),f=0;f<r.length;f++)this.pollOptions[f]=r[f].value.trim()};
_.l.clearPollOptions=function(){var r=_.e(this.hostElement).querySelectorAll(".poll-option-input");r=_.E(r);for(var f=r.next();!f.done;f=r.next())f.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.l.getSimpleString=function(r){return _.Rr(r)};
_.l.updateValueFromBinding=function(r){if(r.target&&this.pollOptions){var f=Array.from(_.e(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(r.target);if(f>=0){var I;this.pollOptions[f]=(I=r.detail.value)!=null?I:"";this.notifyPath("pollOptions."+f)}}};
GQ.prototype.dataChanged=GQ.prototype.dataChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],GQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],GQ.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Array)],GQ.prototype,"pollOptions",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],GQ.prototype,"hasMaxOptions",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],GQ.prototype,"enableCreationBox",void 0);
_.A([_.uA("#repeat"),_.B("design:type",b7)],GQ.prototype,"repeat",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GQ.prototype,"dataChanged",null);GQ=_.A([_.U({disableElementRegistration:!0,is:"ytd-poll-attachment"})],GQ);
_.Q(GQ,"ytd-poll-attachment",function(){if(Xi_!==void 0)return Xi_;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Xi_=r},{mode:2});var NrX;var $n4;var FHs;var PDT;var kr=function(){return _.y.apply(this,arguments)||this};
_.t(kr,_.y);_.OC.Object.defineProperties(kr.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],kr.prototype,"rendererBehaviors",void 0);_.A([_.K(),_.B("design:type",Object)],kr.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],kr.prototype,"focused",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("focused"),_.B("design:type",Object),_.B("design:paramtypes",[])],kr.prototype,"ariaSelected",null);kr=_.A([_.zX({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],kr);
_.Q(kr,"yt-user-mention-suggestion-renderer",function(){if(PDT===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;FHs===void 0&&(FHs=document.createElement("template"));var C=FHs;I.call(f,C.content.cloneNode(!0),r.content.firstChild);PDT=r}r=PDT;return r},{mode:2});var tAD;var Trs;var BZ=function(){var r=_.y.apply(this,arguments)||this;r.focusedSuggestionIndex=-1;return r};
_.t(BZ,_.y);_.l=BZ.prototype;_.l.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.l.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.l.setFocusedSuggestionIndex=function(r){!this.data||!this.data.suggestions||r<0||r>=this.data.suggestions.length||(this.focusedSuggestionIndex=r,r=this.getSuggestionId(r),this._setFocusedSuggestionId(r))};
_.l.advanceSuggestion=function(r){this.focusedSuggestionIndex===-1||r!==-1&&r!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+r),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.l.ensureSuggestionVisible=function(r){r=this.getSuggestionId(r);r=_.e(this.hostElement).querySelector("[id="+r+"]");r!=null&&(r.offsetTop<this.hostElement.scrollTop?r.scrollIntoView(!0):r.offsetTop+r.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&r.scrollIntoView(!1))};
_.l.getSuggestionId=function(r){return"user-mention-suggestion-"+r};
_.l.onSuggestionTap=function(r){var f=_.F(r.model.item,SGU);this.ytRendererBehavior.logExplicitClick(f);_.kA(this.hostElement,"yt-user-mention-suggestion-selected",{data:f,index:r.model.index})};
_.l.onSuggestionMouseMove=function(r){r.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(r.model.index)};
_.l.isSuggestionFocused=function(r,f){return r===f};
_.l.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.l.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LT("focused-suggestion-id-changed",this.focusedSuggestionId))};
BZ.prototype.focusedSuggestionIdChangedForBinding=BZ.prototype.focusedSuggestionIdChangedForBinding;BZ.prototype.onDomChange=BZ.prototype.onDomChange;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],BZ.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],BZ.prototype,"focusedSuggestionIndex",void 0);_.A([_.K({readOnly:!0}),_.B("design:type",String)],BZ.prototype,"focusedSuggestionId",void 0);
_.A([_.kO("dom-change"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],BZ.prototype,"onDomChange",null);_.A([_.Bt("focusedSuggestionId"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BZ.prototype,"focusedSuggestionIdChangedForBinding",null);BZ=_.A([_.zX({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],BZ);
_.Q(BZ,"yt-user-mention-suggestions-dropdown",function(){if(Trs===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;tAD===void 0&&(tAD=document.createElement("template"));var C=tAD;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Trs=r}r=Trs;return r},{mode:2});var qQ=function(){var r=_.y.apply(this,arguments)||this;r.suggestionsResponse=null;r.activeMention=null;r.selectionChangeListener=r.onSelectionChange.bind(r);r.handlesEnabled=_.N("enable_handles_in_mention_suggest_posts");r.handlesInMentionSuggestionsEnabled=_.N("handles_in_mention_suggest_posts");r.zeroPrefixMentionSuggestionEnabled=_.N("enable_zero_prefix_mention_suggestion_web");r.pendingQuery=null;r.flowNonce=null;return r};
_.t(qQ,_.y);_.l=qQ.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(r){return!!(r&&r.suggestions&&r.suggestions.length>0)};
_.l.onInput=function(){var r=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var f=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),I=this.activeMention.JSC$9151_getText().slice(-1)===" ",C=this.activeMention.JSC$9151_getText().slice(-2,-1)===" ",Y="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9151_getText().slice(-2,-1))>=
0;Y=this.zeroPrefixMentionSuggestionEnabled&&Y;if(this.activeMention.isCollapsed()||(f||C||Y)&&I)this.cancelActiveMention();else{var V=this.activeMention.JSC$9151_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Pc(this,"requestSuggestions",function(){r.requestSuggestions(V)},100)}}}};
_.l.onServiceRequestSent=function(r){r.stopPropagation()};
_.l.onServiceRequestCompleted=function(r){r.stopPropagation();r=r.detail.data;r.query&&(!this.pendingQuery||this.pendingQuery!==r.query)||!this.zeroPrefixMentionSuggestionEnabled&&r.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=r,this.hasSuggestions(r)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.l.onServiceRequestError=function(r){r.stopPropagation()};
_.l.onUserMentionSuggestionSelected=function(r){this.selectSuggestion(r.detail.data,r.detail.index)};
_.l.onSelectionChange=function(){if(this.activeMention){var r=_.nH(),f=this.activeMention.JSC$9151_containsRange(r);r=r&&this.containsHelper(this.dropdown,r.getContainer());f||r||this.cancelActiveMention()}};
_.l.containsHelper=function(r,f){var I;if(((I=window.ShadyDOM)==null?void 0:I.noPatch)===!0)return r.contains(f);for(;f;){if(f===r)return!0;f=f instanceof ShadowRoot?f.host:f.parentNode}return!1};
_.l.maybeStartSuggest=function(){var r=_.nH();if(r&&r.isCollapsed()){var f=r.JSC$9151_getStartNode(),I=r.JSC$9151_getStartOffset();if(f instanceof Text&&!(I<1)){var C=f.textContent;!(C=C&&C.charAt(I-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(C)<0||(this.activeMention=_.mm(f,I-1,r.JSC$9151_getEndNode(),r.JSC$9151_getEndOffset()),this.flowNonce=Ny(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.l.updateActiveMention=function(){if(this.activeMention){var r=_.nH();r&&r.isCollapsed()&&(this.activeMention=_.mm(this.activeMention.JSC$9151_getStartNode(),this.activeMention.JSC$9151_getStartOffset(),r.JSC$9151_getEndNode(),r.JSC$9151_getEndOffset()))}};
_.l.requestSuggestions=function(r){if(this.activeMention){var f={suggestions_query:r};this.pendingQuery=r;_.Do(this.hostElement,[this.suggestionsEndpoint,f])}};
_.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(r){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),r.preventDefault())};
_.l.focusNextSuggestion=function(r){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),r.preventDefault())};
_.l.selectFocusedSuggestion=function(r){if(this.hasSuggestions(this.suggestionsResponse)){var f=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.F(f,SGU)&&(this.selectSuggestion(_.F(f,SGU),this.dropdown.focusedSuggestionIndex),r.preventDefault())}};
_.l.selectSuggestion=function(r,f){if(r){var I=this.activeMention;if(I){var C=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&r.handle?_.L9(C,"\u00a0\u2068@"+r.handle+"\u2069\u00a0"):this.handlesEnabled?_.L9(C,"\u00a0"+r.displayName+"\u00a0"):_.L9(C,"\u00a0@"+r.displayName+"\u00a0");t6(C,"/channel/"+r.channelId);C.classList.add("yt-formatted-string","yt-simple-endpoint");C.setAttribute("spellcheck","false");I.isCollapsed()||I.JSC$9151_removeContents();I.insertNode(C,!0);r=document.createTextNode(" ");
C.parentNode.insertBefore(r,C.nextSibling);window.getSelection().collapse(r,1);f={suggestionSelected:{suggestionIndex:f}};if(this.zeroPrefixMentionSuggestionEnabled){var Y;f.suggestionSelected.isZeroPrefix=((Y=this.suggestionsResponse)==null?void 0:Y.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",f);this.cancelActiveMention();_.kA(this.hostElement,"yt-mention-inserted")}}};
_.l.getPositionTarget=function(r){return r&&r.getBrowserRangeObject()};
_.l.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.l.onFocusedSuggestionIdChanged=function(r){var f=_.v0d(this.hostElement)[0];f&&(r.detail.value?f.setAttribute("aria-activedescendant",r.detail.value):f.removeAttribute("aria-activedescendant"))};
_.l.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.l.logGELEvent=function(r,f){r={eventType:r,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};f&&(r=Object.assign(r,f));_.NW("userMentionAutoCompleteBoxEvent",r)};
qQ.prototype.onDomChange=qQ.prototype.onDomChange;qQ.prototype.onUserMentionSuggestionSelected=qQ.prototype.onUserMentionSuggestionSelected;qQ.prototype.onServiceRequestError=qQ.prototype.onServiceRequestError;qQ.prototype.onServiceRequestCompleted=qQ.prototype.onServiceRequestCompleted;qQ.prototype.onServiceRequestSent=qQ.prototype.onServiceRequestSent;qQ.prototype.onInput=qQ.prototype.onInput;_.A([_.J(_.dx),_.B("design:type",Object)],qQ.prototype,"ironA11yKeysBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],qQ.prototype,"suggestionsEndpoint",void 0);_.A([_.K(),_.B("design:type",Object)],qQ.prototype,"suggestionsResponse",void 0);_.A([_.K(),_.B("design:type",Object)],qQ.prototype,"activeMention",void 0);_.A([_.uA("#dropdown"),_.B("design:type",Object)],qQ.prototype,"dropdown",void 0);_.A([_.uA("#iron-dropdown"),_.B("design:type",Object)],qQ.prototype,"ironDropdown",void 0);
_.A([_.kO("input"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],qQ.prototype,"onInput",null);_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],qQ.prototype,"onServiceRequestSent",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],qQ.prototype,"onServiceRequestCompleted",null);
_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],qQ.prototype,"onServiceRequestError",null);_.A([_.kO("yt-user-mention-suggestion-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],qQ.prototype,"onUserMentionSuggestionSelected",null);
_.A([_.kO("dom-change"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],qQ.prototype,"onDomChange",null);qQ=_.A([_.zX({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],qQ);
_.Q(qQ,"yt-user-mention-autosuggest-input",function(){if($n4===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;NrX===void 0&&(NrX=document.createElement("template"));var C=NrX;I.call(f,C.content.cloneNode(!0),r.content.firstChild);$n4=r}r=$n4;return r},{mode:2});var uu=null;
_.wm({is:"ytd-commentbox",_template:function(){if(zuV!==void 0)return zuV;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="yt-icons:arrow_drop_down" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return zuV=r},
behaviors:[_.X3K.YtHostElementBehavior,_.dx,_.o_.YtActionHandlerBehavior,_.tK.YtComponentBehavior,_.On.YtRendererstamperBehavior,_.lrC.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(r,f){return _.f2(r.entities,"aadcGuidelinesStateEntityPayload",f)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(r,f){return _.f2(r.entities,"commentboxStateEntity",f)},
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 _.ti}},
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:_.N("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.N("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",_.GF(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(r){this.fire(r?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(r){this.set("submitButtonDisabled",void 0);this.clear();r&&this.computeIsEmojiButtonDisplayed_(r)&&(r=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&r.updateEmojiCategories()},
observePrefilledImage_:function(r,f,I){this.isValidPrefilledImage_(r,f,I)&&(this.prefilledAttachment_="image",this.prefilledImageData_=f,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(r,f){this.isValidPrefilledVideo_(r,f)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(r){r&&r.pollData&&r.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(r.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.V8();this.focus()},
detached:function(){document.removeEventListener("tap",_.GF(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(r){r=r.detail;r=r.isCustomEmoji?r.shortcuts[0]:r.emojiId;var f=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(f,r);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var r=_.nH();if(r){r=r.getBrowserRangeObject();for(var f=r.commonAncestorContainer;f;){if(f===this.getEditableTextArea_())return r;f=f.parentNode}}r=this.getEditableTextArea_();r=_.L6(r,r.childNodes.length);r.select();return r.getBrowserRangeObject()},
insertTextWithEmojis_:function(r,f,I){(f=this.emojiManager.createDocumentFragment(f,!0,!1,I===void 0?!0:I))&&f.childNodes.length!==0&&(r.collapsed||r.deleteContents(),I=f.lastChild,r.insertNode(f),_.k3B(I).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var r=_.nH();if(r){var f=r.JSC$9151_getStartNode(),I=r.JSC$9151_getEndNode();if(Com(f)&&Com(I)){var C=r.JSC$9151_getStartOffset(),Y;if(_.Sg&&f.nodeType===Node.ELEMENT_NODE&&(Y=_.Vd8(f)))_.L6(Y,0).select();else{Y=wY(f)?f:_.mI(f,wY);var V=wY(I)?I:_.mI(I,wY);if(Y||V)if(r.isCollapsed()){if(f.nodeType===Node.TEXT_NODE){r=!0;C===f.length&&(r=!1);if(uu==="end"||uu==="right")r=!1;f=f.parentNode;r=[].concat(_.Na(f.parentNode.childNodes)).indexOf(f)+(r?0:1);_.L6(f.parentNode,r).select()}}else Y?
Y.previousSibling&&Y.previousSibling.length>0?_.mm(I,r.JSC$9151_getEndOffset(),Y.previousSibling,Y.previousSibling.length-1).select():(f=document.createTextNode("\u200b"),Y.parentNode.insertBefore(f,Y),_.mm(I,r.JSC$9151_getEndOffset(),f,0).select()):V&&(V.nextSibling&&V.nextSibling.length>0?_.mm(f,r.JSC$9151_getStartOffset(),V.nextSibling,1).select():(I=document.createTextNode("\u200b"),V.parentNode.insertBefore(I,V.nextSibling),_.mm(f,r.JSC$9151_getStartOffset(),I,I.length).select()));uu=null}}else uu=
null}else uu=null},
leftKeyPressed_:function(){uu="left"},
rightKeyPressed_:function(){uu="right"},
endKeyPressed_:function(){uu="end"},
maybeDeleteChip_:function(){var r=xtl(!0);if(r){var f=_.nH(),I=f.JSC$9151_getStartNode();f=f.JSC$9151_getStartOffset();_.PK(I,f,r,r.childNodes.length).select()}},
maybeBackspaceChip_:function(){var r=xtl(!1);if(r){var f=_.nH(),I=f.JSC$9151_getStartNode();f=f.JSC$9151_getStartOffset();_.PK(I,f,r,0).select()}},
maybeBackspaceChipWordMode_:function(r){var f=_.nH();if(f.isCollapsed()){var I=f.JSC$9151_getStartNode();f=f.JSC$9151_getStartOffset();var C=h7q(I,f,!0);C&&(_.PK(I,f,C,0).select(),document.execCommand("delete"),r.preventDefault(),r.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(r){var f=_.nH();if(f.isCollapsed()){var I=f.JSC$9151_getStartNode();f=f.JSC$9151_getStartOffset();var C=h7q(I,f,!1);C&&(_.PK(I,f,C,C.childNodes.length).select(),document.execCommand("delete"),r.preventDefault(),r.stopImmediatePropagation())}},
onTap_:function(r){if(!r.defaultPrevented&&(r.currentTarget.tagName==="YTD-COMMENTBOX"&&wY(r.target)&&r.preventDefault(),this.isEmojiPickerDisplayed)){var f=this.$$("#emojis"),I=this.$$("#emoji-button"),C=this.getEditableTextArea_();if((r=r.path?r.path:r.composedPath&&r.composedPath())&&!r.includes(f)&&!r.includes(C)&&!r.includes(I))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(r,f,I){return r==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&f!==void 0&&f.encryptedBlobId!==null&&f.sourceExternalVideoId!==null&&I!==void 0&&I.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(r,f){return r==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!f&&!!f.videoRenderer&&!!f.videoRenderer.videoId},
isValidPrefilledAttachment_:function(r,f,I){return this.isValidPrefilledImage_(r,f,I)||this.isValidPrefilledVideo_(r,I)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.N("enable_multi_image_post_creation")){var r=this.$$("ytd-backstage-multi-image-select-renderer");r&&r.hasImages()&&r.cancel()}else(r=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&r.cancel();(r=this.$["poll-attachment"])&&this.hasPoll_&&r.clearPollOptions();(r=this.$["image-poll-attachment"])&&this.hasImagePoll_&&r.resetPollOptions();(r=this.$["quiz-attachment"])&&this.hasQuiz_&&r.resetQuizOptions();
(r=this.$["video-link-attachment"])&&this.hasVideo_&&r.cancel();(r=this.$["access-restrictions-selector"].firstElementChild)&&r.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 _.e(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.e(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(r,f){r=lDU(r,this.emojiManager,f).cloneNode(!0);for(f=r.firstChild;f;)if(f.nodeType!==1)f=f.nextSibling;else switch(f.tagName){case "BR":var I=_.FW();_.ni8(I,f);f=I.nextSibling;break;case "DIV":(I=f.lastChild)&&f.nextSibling&&_.cY(_.FW(),I);f.previousSibling&&(f.previousSibling.nodeType===1||f.previousSibling.nodeType===3&&!f.previousSibling.textContent.endsWith("\n"))&&_.T1(_.FW(),f);I&&I.nodeName==="BR"&&_.bE(I);I=f;f.hasChildNodes()?(f=f.firstChild,
_.d6B(I)):(f=f.nextSibling,_.bE(I));break;default:f=f.nextSibling}return wVu(r)},
onAddImageError_:function(r){r.stopPropagation();this.errorMessage_=_.iX(r.detail)},
setTextAreaValue_:function(r){r||(r="");var f=this.getEditableFormattedString_();f.text="";this.getEditableTextArea_().innerText="";typeof r==="string"&&(r={runs:[{text:r}]});f.text=r},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();uu=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var r=this.getEditableTextArea_();r&&(_.L6(r,r.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Lz("HTML_DIR")==="rtl"){var r=this.getEditableTextArea_(),f=this.getTextAreaValue()!==""?"auto":"rtl";r.setAttribute("dir",f)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var r;return X7K((r=this.$["quiz-attachment"])==null?void 0:r.getExplanationText())||X7K(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var r=null;if(this.isEmojiButtonDisplayed){var f=this.getInputRange_();f&&(r=this.emojiInput.retrieveTextBeforeRange(f))}this.insertText_(r,!0);this.updateCharCount_();this.setSubmitButton_();r=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=r.scrollHeight>r.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var r=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:r})},
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(r){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(r)},
onPasteEmoji_:function(r){r.preventDefault();r.stopImmediatePropagation();r=r.clipboardData.getData("text/plain");this.insertText_(r,!1,!1)},
insertText_:function(r,f,I){f=f===void 0?!1:f;I=I===void 0?!0:I;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&r){var C=this.getInputRange_().cloneRange();this.emojiManager&&C&&(f&&this.emojiInput.offsetStartOfRangeBy(C,r.length),this.insertTextWithEmojis_(C,r,I),YVK(this.getEditableTextArea_().lastChild)||(C=this.getInputRange_().cloneRange()),C&&(this.emojiInput.updateSuggestions(C,r),this.updateSuggestionOffset_(C)))}},
setSubmitButton_:function(){if(this.data){var r=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",f=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(r||f){var I=this.getTextAreaValue().trim();f=I===this.previousText_;I=!I||this.aboveCharLimit_;r&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(I=this.aboveCharLimit_);this.submitButtonDisabled=
f||I||!this.getTextLength();r&&_.N("enable_post_scheduling")&&(this.submitButtonDisabled=f&&!this.scheduledPublishTimeSec_||I)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.Rr,computeCreationBoxClass_:function(r){return r?"focused":"not-focused"},
computeFooterMessageClass_:function(r,f){return f?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(r,f){return f?f:r},
computeFooterMessageHidden_:function(r,f){return!f&&!r},
computePlaceholderText_:function(r,f,I){return(I==="video"||I==="image")&&(r==null?0:r.prefilledPlaceholderText)?r==null?void 0:r.prefilledPlaceholderText:f==="poll"||f==="image-poll"?r==null?void 0:r.pollPostPlaceholderText:f==="quiz"?r==null?void 0:r.quizPostPlaceholderText:f==="image"?r==null?void 0:r.imagePostPlaceholderText:r==null?void 0:r.placeholderText},
computeHideAttachmentButtons_:function(r,f,I,C){return r===void 0?!1:C&&this.getSimpleString(C)===this.getSimpleString(r.rateLimitErrorMessage)?!0:f!=="none"||I!=="none"||!r.videoLinkButton&&!r.pollButton&&!r.imagePollButton&&!r.quizButton&&!r.imageButton},
computeHideDismissableAttachment_:function(r){return r!=="image"&&r!=="video"},
computeHasVideo_:function(r){return r==="video"},
computeHasImage_:function(r){return r==="image"},
computeHasPoll_:function(r){return r==="poll"},
computeHasImagePoll_:function(r){return r==="image-poll"},
computeHasQuiz_:function(r){return r==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(r){return r&&r.backstageAttachment?r.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!r.backstageAttachment.quizRenderer&&!r.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(r){if(this.isValidPrefilledAttachment_(r.purpose,r.prefilledImageData,r.backstageAttachment))return r.backstageAttachment},
computeEditAttachment_:function(r){if(this.computePrefilledContent_(r)===void 0)return r.backstageAttachment},
computeAuthorThumbnailDimension_:function(r,f){return r&&!f?24:40},
computeImageUploadEndpoint_:function(r){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",r)},
computeRateLimitErrorCommands_:function(r){var f,I;return r==null?void 0:(f=r.advancedTierFeatures)==null?void 0:(I=f.rateLimit)==null?void 0:I.rateLimitCommands},
computeIsBackstageComment_:function(r){return!(!r||r!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(r){return this.get("submitButton.buttonRenderer.serviceEndpoint",r)||this.get("replyButton.buttonRenderer.serviceEndpoint",r)||this.get("postButton.buttonRenderer.serviceEndpoint",r)},
computeSubmitButtonOverride:function(){if(_.N("web_modern_buttons")){var r,f;return{segmentedPosition:this.dropdownSchedulePanel_||!((r=this.data)==null?0:(f=r.postOptionsMenu)==null?0:f.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.N("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(r,f){r=this.get("submitButton.buttonRenderer",r)||this.get("replyButton.buttonRenderer",r)||this.get("postButton.buttonRenderer",r);f&&(r=f);r&&(r=Object.assign({},r),r.serviceEndpoint=void 0,r.isDisabled=this.submitButtonDisabled);return r},
computeHasExternalLinksAccess_:function(r){if(_.N("enable_rfa_external_links")){var f,I,C;return(C=r==null?void 0:(f=r.advancedTierFeatures)==null?void 0:(I=f.externalLinks)==null?void 0:I.allowExternalLinks)!=null?C:!0}return!0},
computeIsEmojiButtonDisplayed_:function(r){return r.emojiButton&&r.emojiPicker&&r.emojiPicker.emojiPickerRenderer&&r.emojiPicker.emojiPickerRenderer.categories?r.emojiPicker.emojiPickerRenderer.categories.find(function(f){return f.emojiPickerCategoryRenderer?f.emojiPickerCategoryRenderer.emojiIds&&f.emojiPickerCategoryRenderer.emojiIds.length>0:f.emojiPickerUpsellCategoryRenderer?f.emojiPickerUpsellCategoryRenderer.emojis&&f.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(r){return r.charLimit?r.charLimit:null},
computeDropdownSchedulingPanel_:function(r,f){if(r==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&f)return f},
computeInlineSchedulingPanel_:function(r,f){if(r==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&f)return f},
computeHideAuthorThumbnail_:function(r,f){return r||this.computeUseIdentityChip_(f)},
computeHideIdentityChipRenderer_:function(r,f){return r||!this.computeUseIdentityChip_(f)},
computeUseIdentityChip_:function(r){return!!r&&!!r.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(r){var f,I,C,Y;(r==null?0:(f=r.detail)==null?0:(I=f.endpoint)==null?0:I.ypcGetOffersEndpoint)||(r==null?0:(C=r.detail)==null?0:(Y=C.endpoint)==null?0:Y.ypcOffersEndpoint)?(r.stopPropagation(),_.Do(this,[r.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",r)&&(r.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(r){this.addedAttachment="video";this.selectedVideoId_=r.detail.videoId},
commentboxStateEntityChanged_:function(r){var f=this;(r==null?void 0:r.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(r==null?void 0:r.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){f.focus()})},
onYtServiceRequestSent_:function(r,f){if(f.actions)for(r=_.E(f.actions),f=r.next();!f.done;f=r.next())f.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(r){this.isLoading=!1;var f=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",r),I,C,Y,V=r==null?void 0:(I=r.detail)==null?void 0:(C=I.data)==null?void 0:(Y=C.actionResult)==null?void 0:Y.commentboxStateEntityKey;if(f)this.errorMessage_=f;else if(V){var S;this.dismissData_=r==null?void 0:(S=r.detail)==null?void 0:S.data;this.commentboxStateKey_=V}else{this.clear();var h;this.fire("yt-commentbox-dismiss",r==null?void 0:(h=r.detail)==
null?void 0:h.data)}},
onYtServiceRequestError_:function(r){r.stopPropagation();this.isLoading=!1;var f,I;if(((f=this.data)==null?void 0:f.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((I=this.data)==null?void 0:I.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(f=this.get("detail.error.args",r)||[],f.length>1&&f[1].message){this.handlePostsServiceRequestError_(f[1].message);return}(r=this.get("detail.error.message",r))?this.errorMessage_=this.data.errorMessage||_.iX(r):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(r){if(_.N("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var f=_.E(this.rateLimitErrorCommands),I=f.next();!I.done;I=f.next())if(I=I.value,I.errorLabel===r){_.u7(I.command,this.hostElement);return}this.errorMessage_=_.iX(r)},
submitIfNotBackstagePost_:function(r){if(!this.isBackstagePost)this.onSubmit_(r)},
onSubmit_:function(r){var f=this,I,C,Y,V,S,h,w,n,d,z,g,X,P,W,m;return _.x(function(v){switch(v.nextAddress){case 1:r.stopPropagation();if(!f.serviceEndpoint||!f.isValidInput_())return v.return();if(f.shouldShowPostAadcNotice_())return f.showPostAadcNotice_(),v.return();if(f.shouldShowCommentAadcNotice_())return f.showCommentAadcNotice_(),v.return();if(!(f.$$("ytd-backstage-multi-image-select-renderer")&&f.hasImage_&&_.N("enable_multi_image_post_creation"))){v.jumpTo(2);break}I=f.$$("ytd-backstage-multi-image-select-renderer");
return _.b(v,I.getAllUploadStatuses(),3);case 3:C=v.yieldResult;if(!C)return v.return();Y=_.E(C);for(V=Y.next();!V.done;V=Y.next())if(S=V.value,S.encryptedBlobId===void 0)return f.isLoading=!1,w=h=void 0,f.errorMessage_=(w=(h=f.imageUploadEndpoint_)==null?void 0:h.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?w:null,v.return();return v.return(f.submitForm_(void 0,void 0,void 0,void 0,I.images,f.taggedVideoId_));case 2:if(!f.hasImagePoll_||!f.$["image-poll-attachment"]){v.jumpTo(4);
break}return _.b(v,f.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:n=v.yieldResult;if(!n)return v.return();d=_.E(n);for(z=d.next();!z.done;z=d.next())if(g=z.value,!g.encryptedBlobId)return f.isLoading=!1,X=void 0,f.errorMessage_=(X=f.data.errorMessage)!=null?X:null,v.return();case 4:W=(P=f.$$("ytd-backstage-image-select-renderer"))&&P.uploadPromise(),m=f.getSharedPostId_(),W?W.then(function(){f.submitForm_.apply(f,_.Na(_.XE.apply(0,arguments)))}).catch(function(O){f.isLoading=!1;
f.errorMessage_=_.iX(O.message)}):f.selectedVideoId_?f.submitForm_(void 0,f.selectedVideoId_):f.prefilledAttachment_==="image"?f.submitForm_(f.prefilledImageData_.encryptedBlobId,void 0,void 0,f.prefilledImageData_.sourceExternalVideoId,void 0,f.taggedVideoId_):f.prefilledAttachment_==="video"?f.submitForm_(void 0,f.data.backstageAttachment.videoRenderer.videoId):m?f.submitForm_(void 0,void 0,m):f.taggedVideoId_!==void 0?f.submitForm_(void 0,void 0,void 0,void 0,void 0,f.taggedVideoId_):f.submitForm_(),
_.wO(v)}})},
openSchedulingPanel:function(r){r&&r.scheduleButton&&r.scheduleButton.buttonRenderer&&(this.scheduleButton_=r.scheduleButton.buttonRenderer);r&&r.dateTimePicker&&this.set("data.schedulingDateTimePicker",r.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(r){r.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(r){r.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(r){r.stopPropagation();r.detail.alertMessage&&(this.alertMessage_=r.detail.alertMessage)},
onImageSelected_:function(r){r.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(r){r.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(r){r.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(r.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(r){r.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(r){var f=this.$["video-link-attachment"];f&&f.onLaunchVideoPicker(r)},
onAttachmentDismiss_:function(r){r.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"&&_.N("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.N("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 r;if(this.addedAttachment==="image-poll"&&((r=this.$["image-poll-attachment"])==null||!r.isValid()))return!1;var f;if(this.addedAttachment==="quiz"&&((f=this.$["quiz-attachment"])==null||!f.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;r=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(r=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")r=!0;return r||!!this.getTextAreaValue().trim()},
submitForm_:function(r,f,I,C,Y,V){var S=this.getTextAreaValue().trim(),h={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&S===this.previousText_&&(S=void 0);S!==void 0&&(h.comment_text=S);this.isLoading=!0;V!=void 0&&(h.tagged_video_id=V);r?(h.image_blob_id=r,this.imagePreviewCoordinates_&&(h.image_preview_coordinates=this.imagePreviewCoordinates_)):f?h.attached_video_id=f:I?h.shared_post_id=I:Y&&Y.length>0&&(h.images_data=Y.map(function(w){return{encryptedBlobId:w.encryptedBlobId,
previewCoordinates:w.previewCoordinates}}));
C&&(h.source_video_id=C);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(h.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(h.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(h.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.N("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(h.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.N("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(h.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.Do(this,[this.serviceEndpoint,h])},
onIsInputFocusChanged_:function(r,f){r?this.fire("yt-autonav-pause-focus"):f!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(r){var f=this.getEditableTextArea_();[].concat(_.Na(r.dataTransfer.items)).forEach(function(I){I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(C){f.appendChild(document.createTextNode(C))})});
r.preventDefault()},
preventDefault_:function(r){r.preventDefault()},
onSuggestionInsert_:function(r){this.insertTextWithEmojis_(r.detail.range,r.detail.text)},
onEmojiSuggestionClick_:function(r){this.emojiInput.insertSuggestion(r.detail)},
computeSubmitButtonClass_:function(r,f){return!f||r?"":"with-options"},
updateSuggestionOffset_:function(r){if(this.emojiInput&&_.e(this.emojiInput).querySelector("#dropdown")){var f=this.getEditableTextArea_().getBoundingClientRect().bottom,I=r.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(f-I)+5;f=this.getEditableTextArea_().getBoundingClientRect().left;r=r.getBoundingClientRect().left-f;_.e(this.emojiInput).querySelector("#dropdown").style.marginLeft=r+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(r){if(_.N("enable_post_scheduling")&&this.data&&this.data.purpose){r=r.detail;if(Math.floor(Date.now()/1E3)>=r)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var f=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(f)||f!==r?this.scheduledPublishTimeSec_=r:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=r;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var r=["image-button","image-poll-button","poll-button"];_.N("enable_quiz_creation")&&r.push("quiz-button");_.N("auto_convert_posts_video_tag")||r.push("video-link-button");return r},
getButtonRenderer:function(r,f){if(r)switch(f){case "video-link-button":var I;return((I=r.videoLinkButton)==null?void 0:I.buttonRenderer)||void 0;case "image-button":var C;return((C=r.imageButton)==null?void 0:C.buttonRenderer)||void 0;case "poll-button":var Y;return((Y=r.pollButton)==null?void 0:Y.buttonRenderer)||void 0;case "image-poll-button":var V;return((V=r.imagePollButton)==null?void 0:V.buttonRenderer)||void 0;case "quiz-button":var S;return((S=r.quizButton)==null?void 0:S.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var r;return(r=this.data)==null||!r.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var r,f;return!((r=this.data)==null||!r.openAadcDialog)&&!((f=this.aadcGuidelinesState_)==null||!f.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Lz("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var r;((r=this.data)==null?0:r.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.WW("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(r){r.clickTrackingParams&&_.IB().clickCommand(r);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.Bj(this,"yt-close-popup-action")},
onHideIdentityChip:function(r){var f;this.set("data.placeholderText",(f=r.hideIdentityChipAction)==null?void 0:f.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var DS=function(){var r=_.y.apply(this,arguments)||this;r.isOpen=!1;r.modern=_.N("web_modern_buttons");r.roundedContainer=!0;r.dropdownButtonOverride=_.N("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;r.inPopupContainer=!1;r.isCommentboxLoading=!1;var f=["image-button","image-poll-button","poll-button"];_.N("enable_quiz_creation")&&f.push("quiz-button");_.N("auto_convert_posts_video_tag")||f.push("video-link-button");r.attachmentButtonIds=f;r.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 r};
_.t(DS,_.y);_.l=DS.prototype;_.l.computeButtonOverride=function(){var r;return((r=this.data)==null?0:r.postOptionsMenu)&&_.N("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.l.configureRendererStamper=function(){var r={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.N("auto_convert_posts_video_tag")||(r["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return r};
_.l.ready=function(){var r=this,f=_.e(this.hostElement).querySelector("#placeholder-area"),I=function(C){r.onOpen(C)};
f.addEventListener("tap",I);f.addEventListener("keypress",I)};
_.l.showButtonEduTooltip=function(){var r,f,I,C,Y,V,S;if(_.N("enable_quiz_creation")&&((r=this.data)==null?0:(f=r.quizButton)==null?0:(I=f.buttonRenderer)==null?0:(C=I.hint)==null?0:(Y=C.hintRenderer)==null?0:(V=Y.content)==null?0:(S=V.bubbleHintRenderer)==null?0:S.text)&&(_.Zv.getInstance(),r=G$(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(r==null?void 0:
r.length)>0)){this.ytComponentBehavior.resolveCommand(r[0],{form:{element:this.quizButton}});return}var h;if((h=this.data)==null?0:h.imagePollButtonTooltip)if(_.Zv.getInstance(),h=G$(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(h==null?void 0:h.length)>0){this.ytComponentBehavior.resolveCommand(h[0],{form:{element:this.imagePollButton}});return}var w;_.N("enable_multi_image_post_creation")&&
((w=this.data)==null?0:w.multiImageButtonTooltip)&&(_.Zv.getInstance(),w=G$(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(w==null?void 0:w.length)>0&&this.ytComponentBehavior.resolveCommand(w[0],{form:{element:this.imageButton}}))};
_.l.onCreatePollAction=function(r){_.F(r,$B_)&&(this.JSC$13588_commentbox.addedAttachment="poll",this.openDialog())};
_.l.onAddVideoLinkAction=function(r){if(_.F(r,NeC))this.JSC$13588_commentbox.onAddVideoLink(r)};
_.l.onShowSchedulingPanelCommand=function(r){(r=_.F(r,qvD))&&this.openSchedulingPanel(r)};
_.l.onCreateImagePollCommand=function(r){_.F(r,I43)&&(this.JSC$13588_commentbox.openImagePollComponent(),this.openDialog())};
_.l.onCreateQuizCommand=function(r){_.F(r,CNV)&&(this.JSC$13588_commentbox.openQuizComponent(),this.openDialog())};
_.l.openSchedulingPanel=function(r){_.N("enable_post_scheduling")&&(this.openDialog(),this.JSC$13588_commentbox.openSchedulingPanel(r))};
_.l.onCreateCommentAction=function(r){this.get("createCommentAction.contents",r)&&(this.JSC$13588_commentbox.clear(),this.closeDialog())};
_.l.onOpen=function(r){r instanceof KeyboardEvent&&r.type==="keypress"&&r.keyCode!==13&&r.keyCode!==32||(this.data.prepareAccountEndpoint?_.kA(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.l.onYtCommentboxDismiss=function(){this.closeDialog()};
_.l.onYtCommentboxLoadingStart=function(r){r.stopPropagation();this.isCommentboxLoading=!0};
_.l.onYtCommentboxLoadingEnd=function(r){r.stopPropagation();this.isCommentboxLoading=!1};
_.l.onYtVideoLinkButtonCancel=function(r){r.stopPropagation();this.onOpen(r)};
_.l.onYtVideoLinkSelected=function(r){r.stopPropagation();this.onOpen(r)};
_.l.onIronSelect=function(r){r.stopPropagation();r.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=r.detail.item.value&&(this.accessRestriction?(this.accessRestriction=r.detail.item.value,this.onOpen(r)):this.accessRestriction=r.detail.item.value)};
_.l.onYtNavigate=function(r){this.get("detail.endpoint.backstageImageUploadEndpoint",r)&&(this.JSC$13588_commentbox.addedAttachment="image",this.JSC$13588_commentbox.submitButtonDisabled=!0,this.onOpen(r))};
_.l.onRequestSent=function(r){if(_.N("web_button_rework"))for(var f=_.E(r.detail),I=f.next();!I.done;I=f.next())_.F(I.value,n3C)&&(this.JSC$13588_commentbox.addedAttachment="image",this.JSC$13588_commentbox.submitButtonDisabled=!0,this.onOpen(r))};
_.l.openDialog=function(){this.JSC$13588_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13588_commentbox.focus()};
_.l.onPopupClosed=function(){_.Zv.getInstance()};
_.l.computeCreationDisabled=function(r){return!!r};
_.l.computeIsCreationDialog=function(r){return!!r&&r==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.l.computeDisabledPostButton=function(r){if(!r)return null;r.isDisabled=!0;return r};
_.l.computeIsCreationDialogWithHeader=function(r){return!this.inPopupContainer&&!!r&&!!r.authorText&&r.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.l.computeIsHeaderHidden=function(r,f){return!r||f};
_.l.computeDropdownRendererClasses=function(r){return r?["text-secondary-style"]:[]};
_.l.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var r=_.e(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;r&&r.reset()};
DS.prototype.onPopupClosed=DS.prototype.onPopupClosed;DS.prototype.onRequestSent=DS.prototype.onRequestSent;DS.prototype.onYtNavigate=DS.prototype.onYtNavigate;DS.prototype.onIronSelect=DS.prototype.onIronSelect;DS.prototype.onYtVideoLinkSelected=DS.prototype.onYtVideoLinkSelected;DS.prototype.onYtVideoLinkButtonCancel=DS.prototype.onYtVideoLinkButtonCancel;DS.prototype.onYtCommentboxLoadingEnd=DS.prototype.onYtCommentboxLoadingEnd;DS.prototype.onYtCommentboxLoadingStart=DS.prototype.onYtCommentboxLoadingStart;
DS.prototype.onYtCommentboxDismiss=DS.prototype.onYtCommentboxDismiss;DS.prototype.showButtonEduTooltip=DS.prototype.showButtonEduTooltip;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],DS.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],DS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],DS.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],DS.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],DS.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],DS.prototype,"isOpen",void 0);_.A([_.K({computed:"computeButtonOverride(data)"}),_.B("design:type",Object)],DS.prototype,"buttonOverride",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],DS.prototype,"modern",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],DS.prototype,"roundedContainer",void 0);_.A([_.K(),_.B("design:type",Object)],DS.prototype,"dropdownButtonOverride",void 0);_.A([_.K({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.B("design:type",Boolean)],DS.prototype,"creationDisabled",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],DS.prototype,"enableCreationBox",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.B("design:type",Boolean)],DS.prototype,"isCreationDialog",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],DS.prototype,"inPopupContainer",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.B("design:type",Boolean)],DS.prototype,"isCreationDialogWithHeader",void 0);_.A([_.K(),_.B("design:type",Object)],DS.prototype,"accessRestriction",void 0);
_.A([_.K({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.B("design:type",Array)],DS.prototype,"dropdownRendererClasses",void 0);_.A([_.K(),_.B("design:type",Object)],DS.prototype,"isCommentboxLoading",void 0);_.A([_.K(),_.B("design:type",Array)],DS.prototype,"attachmentButtonIds",void 0);_.A([_.uA("#image-button"),_.B("design:type",HTMLElement)],DS.prototype,"imageButton",void 0);
_.A([_.uA("#image-poll-button"),_.B("design:type",HTMLElement)],DS.prototype,"imagePollButton",void 0);_.A([_.uA("#quiz-button"),_.B("design:type",HTMLElement)],DS.prototype,"quizButton",void 0);_.A([_.uA("#commentbox"),_.B("design:type",Object)],DS.prototype,"JSC$13588_commentbox",void 0);_.A([_.Bt("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DS.prototype,"showButtonEduTooltip",null);
_.A([_.kO("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],DS.prototype,"onYtCommentboxDismiss",null);_.A([_.kO("yt-commentbox-loading-start"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],DS.prototype,"onYtCommentboxLoadingStart",null);
_.A([_.kO("yt-commentbox-loading-end"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],DS.prototype,"onYtCommentboxLoadingEnd",null);_.A([_.kO("yt-video-link-button-cancel"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],DS.prototype,"onYtVideoLinkButtonCancel",null);
_.A([_.kO("yt-video-link-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],DS.prototype,"onYtVideoLinkSelected",null);_.A([_.kO("iron-select"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],DS.prototype,"onIronSelect",null);_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],DS.prototype,"onYtNavigate",null);
_.A([_.kO("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],DS.prototype,"onRequestSent",null);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DS.prototype,"onPopupClosed",null);DS=_.A([_.U({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],DS);
_.Q(DS,"ytd-backstage-post-dialog-renderer",function(){if(k2s!==void 0)return k2s;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return k2s=r},{mode:1});var cSC;var WH3;var rz=function(){return _.y.apply(this,arguments)||this};
_.t(rz,_.y);_.l=rz.prototype;_.l.computeHeartButtonStyle=function(r){return(r==null?0:r.styleType)?r.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.l.onYtButtonTap=function(){if(this.data.isEnabled){var r=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(r=this.getEndpoint(r))&&_.a().resolve(_.Gg).resolveCommand(r,{form:{element:this.hostElement}})}else(r=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(r)};
_.l.toggle=function(r){this.set("data.isHearted",r!==void 0?r:!this.data.isHearted)};
_.l.getEndpoint=function(r){var f,I=(f=this.data)==null?void 0:f.heartEndpoint,C;f=(C=this.data)==null?void 0:C.unheartEndpoint;if(I&&f)return r?f:I};
_.l.computeButtonAccessibility=function(r,f){var I,C,Y=r==null?void 0:(I=r.heartedAccessibility)==null?void 0:(C=I.accessibilityData)==null?void 0:C.label,V,S;r=r==null?void 0:(V=r.unheartedAccessibility)==null?void 0:(S=V.accessibilityData)==null?void 0:S.label;return f?Y:r};
_.OC.Object.defineProperties(rz.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 r;return _.N("kevlar_system_icons")&&!((r=this.data)==null||!r.isHearted)}}});
rz.prototype.onYtButtonTap=rz.prototype.onYtButtonTap;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],rz.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.RO),_.B("design:type",Object)],rz.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],rz.prototype,"data",void 0);_.A([_.R("data.isHearted"),_.B("design:type",Object),_.B("design:paramtypes",[])],rz.prototype,"heartTooltip",null);
_.A([_.R("data.isHearted"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],rz.prototype,"iconFilled",null);_.A([_.K({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.B("design:type",String)],rz.prototype,"buttonAccessibility",void 0);_.A([_.K({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.B("design:type",String)],rz.prototype,"heartButtonStyle",void 0);
_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rz.prototype,"onYtButtonTap",null);rz=_.A([_.U({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],rz);
_.Q(rz,"ytd-creator-heart-renderer",function(){if(WH3!==void 0)return WH3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return WH3=r},{mode:1});var fP=function(){var r=_.y.apply(this,arguments)||this;r.hasCreatorReply=!1;r.buttonOverrides={size:"S",iconPosition:"icon-only"};r.replyButtonOverrides={size:"S",type:"text"};r.forceIconButton=!_.N("web_modern_buttons");r.modern=_.N("web_modern_buttons");r.buttonTooltipPosition="bottom";r.systemIcons=_.N("kevlar_system_icons");r.replyDialog=null;return r};
_.t(fP,_.y);_.l=fP.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&&_.e(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var r,f,I;this.isLiked=this.systemIcons&&!!((r=this.data)==null?0:(f=r.likeButton)==null?0:(I=f.toggleButtonRenderer)==null?0:I.isToggled)};
_.l.computeShowVoteCountBeginning=function(r,f){return r===void 0||f===void 0?!0:r.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!f&&this.ytRendererBehavior.getSimpleString(f)!=="0"};
_.l.computeShowVoteCountEnd=function(r,f){return r===void 0||f===void 0?!0:r.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!f&&this.ytRendererBehavior.getSimpleString(f)!=="0"};
_.l.computeShowCommentCount=function(r,f){return r===void 0||f===void 0?!0:r.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!f&&this.ytRendererBehavior.getSimpleString(f)!=="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(r){r&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.e(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=r,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.l.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.l.onRequestSent=function(r){if(_.N("web_button_rework")){r=_.E(r.detail);for(var f=r.next();!f.done;f=r.next())(f=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",f.value))&&this.showReplyDialog(f)}};
_.l.onYtNavigate=function(r){var f,I;(r=(f=_.F(r.detail.endpoint,_.zmB))==null?void 0:(I=f.dialog)==null?void 0:I.commentReplyDialogRenderer)&&this.showReplyDialog(r)};
_.l.onYtServiceRequestSent=function(r,f){r.stopPropagation();if(f.actions)for(r=0;r<f.actions.length;r++){var I=_.F(f.actions[r],t2X);I&&this.handleUpdateCommentVoteAction(I)}};
_.l.handleUpdateCommentVoteAction=function(r){this.voteCount=r.voteCount||_.iX("0");r.voteStatus==="LIKE"?this.JSC$13599_ytdDislikeToggleButtonRenderer.toggle(!1):r.voteStatus==="DISLIKE"?this.JSC$13599_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13599_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13599_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.l.computeReplyButtonHidden=function(r){return r};
_.l.computeReplyButtonBeginning=function(r){return(r==null?0:r.replyButton)&&r.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?r.replyButton:void 0};
_.l.computeReplyButtonEnd=function(r){return(r==null?0:r.replyButton)&&r.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?r.replyButton:void 0};
_.l.computeActionButtonStyle=function(r){return(r==null?0:r.style)?r.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.l.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.l.onYtToggleButton=function(r){var f,I;this.isLiked=this.systemIcons&&!!((f=r.detail)==null?0:(I=f.actions)==null?0:I.like)};
fP.prototype.onYtToggleButton=fP.prototype.onYtToggleButton;fP.prototype.onButtonTooltipPositionChanged=fP.prototype.onButtonTooltipPositionChanged;fP.prototype.onYtServiceRequestSent=fP.prototype.onYtServiceRequestSent;fP.prototype.onYtNavigate=fP.prototype.onYtNavigate;fP.prototype.onRequestSent=fP.prototype.onRequestSent;fP.prototype.onYtCommentboxDismiss=fP.prototype.onYtCommentboxDismiss;fP.prototype.dataChange=fP.prototype.dataChange;
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],fP.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],fP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],fP.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],fP.prototype,"voteCount",void 0);_.A([_.K(),_.B("design:type",Object)],fP.prototype,"commentCount",void 0);_.A([_.K(),_.B("design:type",Object)],fP.prototype,"replyThumbnail",void 0);
_.A([_.K(),_.B("design:type",Object)],fP.prototype,"hasCreatorReply",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],fP.prototype,"enableCreationBox",void 0);_.A([_.K({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.B("design:type",String)],fP.prototype,"actionButtonsStyle",void 0);_.A([_.K({computed:"computeReplyButtonBeginning(data)"}),_.B("design:type",Object)],fP.prototype,"replyButtonBeginning",void 0);
_.A([_.K({computed:"computeReplyButtonEnd(data)"}),_.B("design:type",Object)],fP.prototype,"replyButtonEnd",void 0);_.A([_.K(),_.B("design:type",Object)],fP.prototype,"buttonOverrides",void 0);_.A([_.K(),_.B("design:type",Object)],fP.prototype,"replyButtonOverrides",void 0);_.A([_.K(),_.B("design:type",Object)],fP.prototype,"forceIconButton",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],fP.prototype,"useCommentIcon",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],fP.prototype,"modern",void 0);_.A([_.K(),_.B("design:type",Object)],fP.prototype,"buttonTooltipPosition",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],fP.prototype,"systemIcons",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],fP.prototype,"isLiked",void 0);_.A([_.uA("ytd-button-renderer"),_.B("design:type",Object)],fP.prototype,"ytdReplyButtonRenderer",void 0);
_.A([_.uA("#like-button"),_.B("design:type",Object)],fP.prototype,"JSC$13599_ytdLikeToggleButtonRenderer",void 0);_.A([_.uA("#dislike-button"),_.B("design:type",Object)],fP.prototype,"JSC$13599_ytdDislikeToggleButtonRenderer",void 0);_.A([_.uA("#reply-dialog"),_.B("design:type",HTMLElement)],fP.prototype,"replyDialogElement",void 0);_.A([_.uA("#reply-button"),_.B("design:type",HTMLElement)],fP.prototype,"replyButtonElement",void 0);
_.A([_.uA("#reply-button-end"),_.B("design:type",HTMLElement)],fP.prototype,"replyButtonEndElement",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fP.prototype,"dataChange",null);_.A([_.kO("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],fP.prototype,"onYtCommentboxDismiss",null);
_.A([_.kO("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],fP.prototype,"onRequestSent",null);_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],fP.prototype,"onYtNavigate",null);
_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],fP.prototype,"onYtServiceRequestSent",null);_.A([_.Bt("buttonTooltipPosition"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fP.prototype,"onButtonTooltipPositionChanged",null);
_.A([_.kO("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],fP.prototype,"onYtToggleButton",null);fP=_.A([_.U({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],fP);
_.Q(fP,"ytd-comment-action-buttons-renderer",function(){if(cSC!==void 0)return cSC;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return cSC=r},{mode:1});var LHB;var Ii=function(){return _.y.apply(this,arguments)||this};
_.t(Ii,_.y);Ii.prototype.focus=function(){_.e(this.hostElement).querySelector("#commentbox").focus()};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ii.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Ii.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],Ii.prototype,"zeroStepChannelCreationRenderer",void 0);Ii=_.A([_.U({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],Ii);
_.Q(Ii,"ytd-comment-dialog-renderer",function(){if(LHB!==void 0)return LHB;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return LHB=r},{mode:1});var mnX;var CP=function(){var r=_.y.apply(this,arguments)||this;r.buttonOverrides={size:"S",iconPosition:"icon-only"};r.replyButtonOverrides={size:"S",type:"text"};return r};
_.t(CP,_.y);_.l=CP.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(r){if(r){var f=this.replyBox;f||(f=document.createElement("ytd-comment-reply-dialog-renderer"),f.id="replybox",_.e(this.replyDialogDiv).appendChild(f));f.data=r;this.replyDialogDiv.hidden=!1;f.openDialog()}};
_.l.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.l.onYtServiceRequestSent=function(r,f){r.stopPropagation();if(f.actions)for(var I=0;I<f.actions.length;I++){var C=_.F(f.actions[I],t2X);C?this.handleUpdateCommentVoteAction(C):r.target===this.heartButton&&this.toggleHeartState()}};
_.l.handleUpdateCommentVoteAction=function(r){var f;(f=this.toolbarState)!=null&&f.key&&this.ytdReduxBehavior.dispatch(_.Po("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:r.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":r.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.l.toggleHeartState=function(){var r;(r=this.toolbarState)!=null&&r.key&&this.ytdReduxBehavior.dispatch(_.Po("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.OC.Object.defineProperties(CP.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return(((r=this.toolbarState)==null?void 0:r.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(f=this.toolbarData)==null?void 0:f.likeCountLiked:(I=this.toolbarData)==null?void 0:I.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.toolbarSurface)==null?void 0:r.commentDisabledActionCommand)!==void 0}},
isSubscribersOnlyComments:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.toolbarSurface)==null?void 0:r.subscribersOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.toolbarSurface)==null?void 0:r.prepareAccountCommand)!==void 0&&!_.N("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var r,f=_.F((r=this.toolbarSurface)==null?void 0:r.prepareAccountCommand,_.gF),I,C,Y,V,S,h,w,n,d;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((I=this.toolbarSharedData)==null||!I.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((C=this.toolbarState)==null?void 0:C.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:f!=null?f:_.F((Y=this.toolbarSurface)==null?void 0:Y.likeCommand,_.gF),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:f!=null?f:_.F((V=this.toolbarSurface)==null?void 0:V.unlikeCommand,_.gF),defaultCommand:this.isVisiblyDisabled?_.F((S=this.toolbarSurface)==null?void 0:S.commentDisabledActionCommand,_.gF):void 0,defaultTooltip:(h=this.toolbarData)==null?void 0:h.likeInactiveTooltip,toggledTooltip:(w=this.toolbarData)==null?void 0:w.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(n=this.toolbarData)==null?void 0:n.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(d=this.toolbarSharedData)==null?void 0:d.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var r,f=_.F((r=this.toolbarSurface)==null?void 0:r.prepareAccountCommand,_.gF),I,C,Y,V,S,h,w,n,d,z;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((I=this.toolbarSharedData)==null||!I.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((C=this.toolbarState)==null?void 0:C.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:f!=null?f:_.F((Y=this.toolbarSurface)==null?void 0:Y.dislikeCommand,_.gF),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:f!=null?f:_.F((V=this.toolbarSurface)==null?void 0:V.undislikeCommand,_.gF),defaultCommand:this.isVisiblyDisabled?_.F((S=this.toolbarSurface)==null?void 0:S.commentDisabledActionCommand,_.gF):void 0,defaultTooltip:(h=this.toolbarData)==null?void 0:h.dislikeInactiveTooltip,toggledTooltip:(w=this.toolbarData)==null?void 0:
w.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(n=this.toolbarSharedData)==null?void 0:n.dislikeReplyButtonA11y:(d=this.toolbarSharedData)==null?void 0:d.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(z=this.toolbarSharedData)==null?void 0:z.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var r,f,I;if(((r=this.toolbarState)==null?void 0:r.heartState)!==void 0&&((f=this.toolbarState)==null?void 0:f.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((I=this.toolbarState)==null?void 0:I.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var C,Y,V,S,h,w,n,d,z,g,X,P,W,m;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(C=this.toolbarData)==null?void 0:C.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((Y=this.toolbarState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((V=this.toolbarState)==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((S=this.toolbarState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((h=this.toolbarState)==null?void 0:h.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.F((w=this.toolbarSurface)==null?void 0:w.heartCommand,
_.gF),unheartEndpoint:this.isVisiblyDisabled?void 0:_.F((n=this.toolbarSurface)==null?void 0:n.unheartCommand,_.gF),disabledEndpoint:this.isVisiblyDisabled?_.F((d=this.toolbarSurface)==null?void 0:d.commentDisabledActionCommand,_.gF):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(z=this.toolbarData)==null?void 0:z.heartActiveTooltip,unheartedTooltip:(g=this.toolbarData)==null?void 0:g.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((X=
this.toolbarState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(P=this.toolbarSharedData)==null?void 0:P.unheartButtonA11y:(W=this.toolbarSharedData)==null?void 0:W.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(m=this.toolbarSharedData)==null?void 0:m.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.toolbarSurface)==null||!r.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var r,f,I,C;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubscribersOnlyComments?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(r=this.commentStrings)==null?void 0:r.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubscribersOnlyComments?void 0:_.F((f=this.toolbarSurface)==null?void 0:f.replyCommand,_.gF),command:this.isVisiblyDisabled?_.F((I=this.toolbarSurface)==null?void 0:I.commentDisabledActionCommand,
_.gF):this.isSubscribersOnlyComments?_.F((C=this.toolbarSurface)==null?void 0:C.subscribersOnlySnackbarCommand,_.gF):void 0}}}});
CP.prototype.onYtServiceRequestSent=CP.prototype.onYtServiceRequestSent;CP.prototype.hideReplyDialogDiv=CP.prototype.hideReplyDialogDiv;_.A([_.K(),_.B("design:type",Object)],CP.prototype,"commentStrings",void 0);_.A([_.K(),_.B("design:type",Boolean)],CP.prototype,"isReply",void 0);_.A([_.K(),_.B("design:type",Object)],CP.prototype,"toolbarData",void 0);_.A([_.K(),_.B("design:type",Object)],CP.prototype,"toolbarSharedData",void 0);
_.A([_.K(),_.B("design:type",String)],CP.prototype,"toolbarStateKey",void 0);_.A([_.K(),_.B("design:type",String)],CP.prototype,"toolbarSurfaceKey",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],CP.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],CP.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],CP.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.uA("#reply-dialog"),_.B("design:type",HTMLElement)],CP.prototype,"replyDialogDiv",void 0);_.A([_.uA("#replybox"),_.B("design:type",Object)],CP.prototype,"replyBox",void 0);_.A([_.uA("ytd-creator-heart-renderer"),_.B("design:type",Object)],CP.prototype,"heartButton",void 0);_.A([_.K({selector:function(r,f){return _.f2(r.entities,"engagementToolbarStateEntityPayload",f)},
selectorArgs:["toolbarStateKey"]}),_.B("design:type",Object)],CP.prototype,"toolbarState",void 0);_.A([_.K({selector:sfq,selectorArgs:["toolbarSurfaceKey"]}),_.B("design:type",Object)],CP.prototype,"toolbarSurface",void 0);_.A([_.K(),_.B("design:type",Object)],CP.prototype,"buttonOverrides",void 0);_.A([_.kO("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CP.prototype,"hideReplyDialogDiv",null);
_.A([_.R("toolbarData","toolbarState"),_.B("design:type",String),_.B("design:paramtypes",[])],CP.prototype,"likeCount",null);_.A([_.R("likeCount"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],CP.prototype,"showLikeCount",null);_.A([_.R("toolbarSurface"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],CP.prototype,"isVisiblyDisabled",null);_.A([_.R("toolbarSurface"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],CP.prototype,"isSubscribersOnlyComments",null);
_.A([_.R("toolbarSurface"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],CP.prototype,"hasPrepareAccountCommand",null);_.A([_.R("toolbarData","toolbarState","toolbarSurface"),_.B("design:type",Object),_.B("design:paramtypes",[])],CP.prototype,"likeToggleButtonRenderer",null);_.A([_.R("isReply","toolbarData","toolbarState","toolbarSurface"),_.B("design:type",Object),_.B("design:paramtypes",[])],CP.prototype,"dislikeToggleButtonRenderer",null);
_.A([_.R("toolbarData","toolbarState","toolbarSurface"),_.B("design:type",Object),_.B("design:paramtypes",[])],CP.prototype,"creatorHeartSupportedRenderer",null);_.A([_.R("toolbarSurface"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],CP.prototype,"hasReplyCommand",null);_.A([_.R("toolbarSurface","commentStrings","isVisiblyDisabled"),_.B("design:type",Object),_.B("design:paramtypes",[])],CP.prototype,"replyButtonRenderer",null);
_.A([_.K(),_.B("design:type",Object)],CP.prototype,"replyButtonOverrides",void 0);_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],CP.prototype,"onYtServiceRequestSent",null);CP=_.A([_.U({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],CP);
_.Q(CP,"ytd-comment-engagement-bar",function(){if(mnX!==void 0)return mnX;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return mnX=r},{mode:1});var euC;var YM=function(){return _.y.apply(this,arguments)||this};
_.t(YM,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],YM.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],YM.prototype,"data",void 0);YM=_.A([_.U({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],YM);
_.Q(YM,"ytd-comment-inline-thumbnail-renderer",function(){if(euC!==void 0)return euC;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return euC=r},{mode:1});var JSB;var l4=function(){return _.y.apply(this,arguments)||this};
_.t(l4,_.y);_.A([_.K(),_.B("design:type",Object)],l4.prototype,"data",void 0);l4=_.A([_.U({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],l4);
_.Q(l4,"ytd-comment-pause-composer-renderer",function(){if(JSB!==void 0)return JSB;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return JSB=r},{mode:1});var jmX;var Hp_;var V1=function(){var r=_.y.apply(this,arguments)||this;r.isOpen=!1;return r};
_.t(V1,_.y);_.l=V1.prototype;_.l.dataChanged=function(){this.isOpen=!1};
_.l.onTap=function(){this.data&&(this.data.navigationEndpoint?_.kA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.l.focus=function(){this.JSC$13625_commentbox.focus()};
_.l.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.l.openDialog=function(){this.isOpen=!0;this.JSC$13625_commentbox.focus();this.JSC$13625_commentbox.maybeHeightChanged()};
V1.prototype.onYtCommentboxDismiss=V1.prototype.onYtCommentboxDismiss;V1.prototype.dataChanged=V1.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],V1.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],V1.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],V1.prototype,"isOpen",void 0);_.A([_.uA("#commentbox"),_.B("design:type",Object)],V1.prototype,"JSC$13625_commentbox",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],V1.prototype,"dataChanged",null);_.A([_.kO("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],V1.prototype,"onYtCommentboxDismiss",null);V1=_.A([_.U({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],V1);
_.Q(V1,"ytd-comment-reply-dialog-renderer",function(){if(Hp_!==void 0)return Hp_;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Hp_=r},{mode:1});var ipB;var Ep=function(){return _.y.apply(this,arguments)||this};
_.t(Ep,_.y);_.OC.Object.defineProperties(Ep.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var r,f,I=(r=this.data)==null?void 0:(f=r.icon)==null?void 0:f.iconType;return I?"yt-icons:"+I.toLowerCase():null}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ep.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Ep.prototype,"data",void 0);_.A([_.K(),_.R("data.icon"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ep.prototype,"icon",null);Ep=_.A([_.U({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Ep);
_.Q(Ep,"ytd-pinned-comment-badge-renderer",function(){if(ipB!==void 0)return ipB;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ipB=r},{mode:1});var Ru8;var vjs={},KH3={input:!0,meta:!0,br:!0,link:!0,img:!0},Sy=null;vjs.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(){Sy==null&&(Sy=document.createElement("tp-yt-paper-tooltip"),Sy.offset=8,Sy.fitToVisibleBounds=!0)},
onMouseOver_:function(r){if(r=_.mI(r.target,function(Y){return Y==this||Y.getAttribute&&Y.getAttribute("shared-tooltip-text")}.bind(this),!0)){var f=r.getAttribute("shared-tooltip-text");
if(f){var I=this,C=null;r!=this&&(r.tagName.toLowerCase()in KH3?I=r.parentElement:I=r,r.id&&(C=r.id));this.polymerController.createTooltipIfRequired_();if(Sy.parentElement!=I||Sy.for!=C)(0,_.AN)(Sy).textContent=f,_.e(I).appendChild(Sy),Sy.for=C,Sy.animationDelay=this.polymerController.sharedTooltipAnimationDelay,Sy.position=this.polymerController.sharedTooltipPosition}}}};var xM=function(){return _.y.apply(this,arguments)||this};
_.t(xM,_.y);xM.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]]"}}}}}};
xM.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
xM.prototype.colorChanged=function(){var r,f,I,C=(r=this.data)==null?void 0:(f=r.color)==null?void 0:(I=f.basicColorPaletteData)==null?void 0:I.foregroundBodyColor;C&&(this.rgbBadgeColor=_.MG(C));_.e(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
xM.prototype.tooltipChanged=function(){var r;((r=this.data)==null?0:r.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
xM.prototype.tooltipChanged=xM.prototype.tooltipChanged;xM.prototype.colorChanged=xM.prototype.colorChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],xM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(vjs.YtSharedTooltipBehavior),_.B("design:type",Object)],xM.prototype,"ytSharedTooltipBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],xM.prototype,"data",void 0);
_.A([_.K({value:"#4285F4"}),_.B("design:type",String)],xM.prototype,"rgbBadgeColor",void 0);_.A([_.Bt("data.color"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xM.prototype,"colorChanged",null);_.A([_.Bt("data.tooltip"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xM.prototype,"tooltipChanged",null);xM=_.A([_.U({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],xM);
_.Q(xM,"ytd-sponsor-comment-badge-renderer",function(){if(Ru8!==void 0)return Ru8;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Ru8=r},{mode:1});var ySX;var UnX;var hr=function(){return _.y.apply(this,arguments)||this};
_.t(hr,_.y);hr.prototype.computeState=function(r){switch(r==null?void 0:r.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"}};
hr.prototype.updateStateIdentifier=function(r){if(this.viewModel.triStateKey){var f=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.Po("triStateButtonStateEntityPayload",f,{key:f,stateIdentifier:r}))}};
hr.prototype.onClick=function(){var r=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(){r.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){r.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.OC.Object.defineProperties(hr.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 r;return((r=this.data)==null?void 0:r.buttonText)||""}}});
_.A([_.K(),_.B("design:type",Object)],hr.prototype,"viewModel",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],hr.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],hr.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],hr.prototype,"ytRendererBehavior",void 0);_.A([_.K({selector:OME,selectorArgs:["viewModel.triStateKey"]}),_.B("design:type",Object)],hr.prototype,"triStateButtonStateEntity",void 0);
_.A([_.K({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.B("design:type",String)],hr.prototype,"state",void 0);_.A([_.R("viewModel","state"),_.B("design:type",Object),_.B("design:paramtypes",[])],hr.prototype,"data",null);_.A([_.R("data"),_.B("design:type",String),_.B("design:paramtypes",[])],hr.prototype,"buttonText",null);hr=_.A([_.U({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],hr);
_.Q(hr,"ytd-tri-state-button-view-model",function(){if(UnX!==void 0)return UnX;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return UnX=r},{mode:1});var smV;var OpT;var wz=function(){var r=_.y.apply(this,arguments)||this;r.defaultIconToFilled=!_.N("kevlar_fill_comment_chip_icon_killswitch");return r};
_.t(wz,_.y);wz.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
wz.prototype.dataChanged=function(){if(this.data){var r,f;((r=this.data.chipColorPalette)==null?0:r.backgroundColor)&&((f=this.data.chipColorPalette)==null?0:f.foregroundTitleColor)&&_.Zh(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.g_(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.g_(this.data.chipColorPalette.foregroundTitleColor)});var I;((I=this.data)==null?0:I.command)?(_.Zh(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Zh(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}};
wz.prototype.onTap=function(){var r;if(this.data&&(r=this.data)!=null&&r.command){var f;this.ytComponentBehavior.resolveCommand((f=this.data)==null?void 0:f.command)}};
wz.prototype.getIconSize=function(){return _.N("kevlar_fill_comment_chip_icon_killswitch")?24:12};
wz.prototype.onTap=wz.prototype.onTap;wz.prototype.dataChanged=wz.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],wz.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],wz.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.dx),_.B("design:type",Object)],wz.prototype,"ironA11yKeysBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],wz.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Object)],wz.prototype,"basePriceText",void 0);_.A([_.K(),_.B("design:type",Object)],wz.prototype,"chipIcon",void 0);_.A([_.K(),_.B("design:type",Object)],wz.prototype,"defaultIconToFilled",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wz.prototype,"dataChanged",null);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wz.prototype,"onTap",null);
wz=_.A([_.zX({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],wz);
_.Q(wz,"yt-pdg-comment-chip-renderer",function(){if(OpT===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;smV===void 0&&(smV=document.createElement("template"));var C=smV;I.call(f,C.content.cloneNode(!0),r.content.firstChild);OpT=r}r=OpT;return r},{mode:2});var b4=function(){var r=_.y.apply(this,arguments)||this;r.useSmallAvatars=_.N("small_avatars_for_comments");r.webWatchCompactComments=_.N("web_watch_compact_comments");r.editDialog=null;return r};
_.t(b4,_.y);_.l=b4.prototype;_.l.onShow=function(){_.No("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 r={"--ytd-comment-paid-background-color":_.g_(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Zh(this.hostElement,r)}else _.Zh(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.l.resetExpander=function(){var r;(r=this.expander)==null||r.reset()};
_.l.openEditDialog=function(r){r.dialog&&(this.editDialog=r.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.l.onYtNavigate=function(r){var f=r.detail.endpoint;if(f=_.F(f,_.MrT)||_.F(f,_.g33))r.stopPropagation(),this.openEditDialog(f)};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null;_.Zh(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.l.onAuthorThumbnailClicked=function(){var r=this;_.N("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(f,I){r.onAuthorThumbnailEndpointSuccess(I)},
onServerError:function(f,I){_.t7(new _.nf("Failed to resolve the command",I))}}})};
_.l.onAuthorThumbnailEndpointSuccess=function(r){if((r=r==null?void 0:r.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(r,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();r=r==null?void 0:r.clickTrackingParams;var f=_.Pj();r&&f&&_.IB().graftServerVe(r,f)}};
_.l.logScreenVe=function(){_.f3(_.IB(),66557)};
_.l.onYtCommentboxResize=function(r){var f;(r==null?0:(f=r.detail)==null?0:f.height)&&_.Zh(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":r.detail.height+"px"})};
_.OC.Object.defineProperties(b4.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 r,f=(r=this.commentEntity)==null?void 0:r.author;return f&&(f.isCreator||f.isVerified||f.isArtist)?{renderer:{authorEndpoint:f.channelPageEndpoint?_.F(f.channelPageEndpoint,_.gF):_.F(f.channelCommand,_.gF),authorText:{runs:[{text:f.displayName}]},color:f.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:f.isArtist?{iconType:"AUDIO_BADGE"}:
f.isVerified?{iconType:f.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:f.isArtist||f.isVerified?f.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var r,f=(r=this.commentEntity)==null?void 0:r.author;return f!=null&&f.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:f.sponsorBadgeUrl}]},tooltip:f.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var r;return _.F((r=this.commentSurfaceEntity)==null?void 0:r.pdgCommentChip,_.Z6q)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var r;return this.voiceReplyContainerViewModel&&((r=this.voiceReplyContainerViewModel)==null?void 0:r.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var r;return _.F((r=this.commentSurfaceEntity)==null?void 0:r.voiceReplyContainerViewModel,JJU)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var r;return this.voiceReplyContainerViewModel&&(r=this.voiceReplyContainerViewModel)!=null&&r.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var r,f;return(f=(r=this.commentSurfaceEntity)==null?void 0:r.commentBackgroundColor)!=null?f:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.N("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var r,f;return(((r=this.commentEntity)==null?void 0:(f=r.properties)==null?void 0:f.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var r,f;if(_.N("enable_profile_cards_on_comments")&&((r=this.commentEntity)==null?0:(f=r.author)==null?0:f.profileCardEndpoint)&&this.viewModel.allowProfileCard){var I,C;return _.F((I=this.commentEntity)==null?void 0:(C=I.author)==null?void 0:C.profileCardEndpoint,_.gF)}var Y,V;return _.F((Y=this.commentEntity)==null?void 0:(V=Y.avatar)==null?void 0:V.endpoint,_.gF)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var r,f;if(_.N("enable_profile_cards_on_comments")&&((r=this.commentEntity)==null?0:(f=r.author)==null?0:f.channelPageEndpoint)){var I,C;return _.F((I=this.commentEntity)==null?void 0:(C=I.author)==null?void 0:C.channelPageEndpoint,_.gF)}var Y,V;return _.F((Y=this.commentEntity)==null?void 0:(V=Y.avatar)==null?void 0:V.endpoint,_.gF)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var r,f,I,C,Y=(r=this.commentEntity)==null?void 0:(f=r.avatar)==null?void 0:(I=f.image)==null?void 0:(C=I.sources)==null?void 0:C[0];return Y?{thumbnails:[{url:Y.url,width:Y.width,height:Y.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.commentEntity)==null?0:(f=r.author)==null?0:f.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.commentEntity)==null?void 0:(f=r.author)==null?void 0:f.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.commentEntity)==null?void 0:(f=r.properties)==null?void 0:f.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var r;return _.F((r=this.commentSurfaceEntity)==null?void 0:r.publishedTimeCommand,_.gF)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var r,f;if(((r=this.commentEntity)==null?0:r.translatedContent)&&((f=this.translateButtonState)==null?void 0:f.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var I;if((I=this.voiceReplyContainerViewModel)==null?0:I.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var C,Y;return((C=this.commentEntity)==null?void 0:(Y=C.properties)==null?void 0:Y.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.commentSharedEntity)==null?void 0:(f=r.strings)==null?void 0:f.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.commentSharedEntity)==null?void 0:(f=r.strings)==null?void 0:f.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.commentEntity)==null||!r.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var r,f,I=(f=_.F((r=this.viewModel)==null?void 0:r.translateButton,ev8))!=null?f:{},C,Y,V,S,h,w,n,d,z,g,X;return Object.assign({},I,{untoggledStateData:Object.assign({},I.untoggledStateData,{buttonText:(C=this.commentEntity)==null?void 0:(Y=C.translateData)==null?void 0:Y.text}),togglingStateData:Object.assign({},I.togglingStateData,{buttonText:(V=this.commentSharedEntity)==null?
void 0:(S=V.strings)==null?void 0:S.translatingText}),toggledStateData:Object.assign({},I.toggledStateData,{buttonText:(h=this.commentSharedEntity)==null?void 0:(w=h.strings)==null?void 0:w.seeOriginalText}),transitionCommand:((n=this.commentEntity)==null?0:n.translatedContent)?void 0:_.F((d=this.commentEntity)==null?void 0:(z=d.translateData)==null?void 0:z.translateComment,_.gF),triStateKey:(g=this.commentEntity)==null?void 0:(X=g.properties)==null?void 0:X.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return((f=_.F(_.F((r=this.toolbarSurface)==null?void 0:r.menuCommand,_.gF),aig))==null?void 0:(I=f.menu)==null?void 0:I.menuRenderer)||null}}});
b4.prototype.onYtCommentboxResize=b4.prototype.onYtCommentboxResize;b4.prototype.onYtCommentboxDismiss=b4.prototype.onYtCommentboxDismiss;b4.prototype.onYtNavigate=b4.prototype.onYtNavigate;b4.prototype.resetExpander=b4.prototype.resetExpander;b4.prototype.updateBackgroundColor=b4.prototype.updateBackgroundColor;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],b4.prototype,"ytdReduxBehavior",void 0);
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],b4.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],b4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.uA("#author-thumbnail > button"),_.B("design:type",HTMLElement)],b4.prototype,"authorThumbnailAnchor",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("viewModel"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],b4.prototype,"linked",null);
_.A([_.R("viewModel","linked"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"linkedCommentBadge",null);_.A([_.K({reflectToAttribute:!0}),_.R("viewModel"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],b4.prototype,"pinned",null);_.A([_.R("viewModel","pinned"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"pinnedCommentBadge",null);
_.A([_.R("commentEntity","commentSharedEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"authorCommentBadge",null);_.A([_.K({reflectToAttribute:!0}),_.R("authorCommentBadge"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"hasAuthorBadge",null);_.A([_.R("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"sponsorCommentBadge",null);
_.A([_.K({reflectToAttribute:!0}),_.R("sponsorCommentBadge"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"hasSponsorBadge",null);_.A([_.R("commentSurfaceEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"pdgCommentChipRenderer",null);_.A([_.K({reflectToAttribute:!0}),_.R("voiceReplyContainerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"hasVoiceReply",null);
_.A([_.R("commentSurfaceEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"voiceReplyContainerViewModel",null);_.A([_.R("voiceReplyContainerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"voiceReplyUnavailableText",null);_.A([_.K(),_.B("design:type",Object)],b4.prototype,"data",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"viewModel",null);
_.A([_.K({selector:function(r,f){return _.f2(r.entities,"commentSharedEntityPayload",f)},
selectorArgs:["viewModel.sharedKey"]}),_.B("design:type",Object)],b4.prototype,"commentSharedEntity",void 0);_.A([_.K({selector:function(r,f){return _.f2(r.entities,"commentEntityPayload",f)},
selectorArgs:["viewModel.commentKey"]}),_.B("design:type",Object)],b4.prototype,"commentEntity",void 0);_.A([_.K({selector:function(r,f){return _.f2(r.entities,"commentSurfaceEntityPayload",f)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.B("design:type",Object)],b4.prototype,"commentSurfaceEntity",void 0);_.A([_.K({selector:sfq,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.B("design:type",Object)],b4.prototype,"toolbarSurface",void 0);_.A([_.K({selector:OME,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.B("design:type",Object)],b4.prototype,"translateButtonState",void 0);
_.A([_.R("commentSurfaceEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"backgroundColor",null);_.A([_.K({reflectToAttribute:!0}),_.R("viewModel"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],b4.prototype,"optimalReadingWidthComments",null);_.A([_.uA("ytd-expander"),_.B("design:type",Object)],b4.prototype,"expander",void 0);
_.A([_.Bt("backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],b4.prototype,"updateBackgroundColor",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],b4.prototype,"useSmallAvatars",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],b4.prototype,"webWatchCompactComments",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"isReply",null);
_.A([_.R("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"authorThumbnailEndpoint",null);_.A([_.R("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"authorNameEndpoint",null);_.A([_.R("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"authorThumbnail",null);_.A([_.R("commentEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],b4.prototype,"authorTextClass",null);
_.A([_.R("commentEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],b4.prototype,"authorChannelName",null);_.A([_.R("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"publishedTime",null);_.A([_.R("commentSurfaceEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"publishedTimeCommand",null);
_.A([_.R("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"contentText",null);_.A([_.Bt("contentText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],b4.prototype,"resetExpander",null);_.A([_.R("commentEntity"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],b4.prototype,"shouldShowReadMoreInitially",null);
_.A([_.R("commentSharedEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],b4.prototype,"expandText",null);_.A([_.R("commentSharedEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],b4.prototype,"collapseText",null);_.A([_.R("commentEntity"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],b4.prototype,"shouldShowTranslateButton",null);
_.A([_.R("commentEntity","commentSharedEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"translateButton",null);_.A([_.R("toolbarSurface"),_.B("design:type",Object),_.B("design:paramtypes",[])],b4.prototype,"overflowMenuRenderer",null);_.A([_.K(),_.B("design:type",Object)],b4.prototype,"editDialog",void 0);_.A([_.uA("ytd-comment-dialog-renderer"),_.B("design:type",Object)],b4.prototype,"editCommentDialogContainer",void 0);
_.A([_.uA("ytd-comment-reply-dialog-renderer"),_.B("design:type",Object)],b4.prototype,"editReplyDialogContainer",void 0);_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],b4.prototype,"onYtNavigate",null);_.A([_.kO("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],b4.prototype,"onYtCommentboxDismiss",null);
_.A([_.kO("yt-commentbox-resize"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],b4.prototype,"onYtCommentboxResize",null);b4=_.A([_.U({disableElementRegistration:!0,is:"ytd-comment-view-model"})],b4);
_.Q(b4,"ytd-comment-view-model",function(){if(ySX!==void 0)return ySX;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ySX=r},{mode:_.QQ("kevlar_poly_si_batch_j025")?1:2});var pP=function(){var r=_.y.apply(this,arguments)||this;r.modern=_.N("web_modern_buttons");r.isWatchGrid=_.N("kevlar_watch_grid");r.buttonOverrides={style:"call-to-action"};r.JSC$13671_spinnerEl=null;return r};
_.t(pP,_.y);_.l=pP.prototype;_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.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 r=this.expanderContents;r&&(r.hidden=!0);this.isLoading=!1};
_.l.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.l.isLoadingChanged=function(){this.isLoading&&!this.JSC$13671_spinnerEl&&(this.JSC$13671_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.e(this.expanderContents).appendChild(this.JSC$13671_spinnerEl));this.JSC$13671_spinnerEl&&(this.JSC$13671_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var r;(r=this.contents)==null||r.classList.remove("reloading")}};
_.l.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var r=_.F(this.data.viewReplies,_.Ll);r&&this.ytRendererBehavior.logExplicitClick(r)};
_.l.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var r=_.F(this.data.hideReplies,_.Ll);r&&this.ytRendererBehavior.logExplicitClick(r)};
_.l.isShowMoreChanged=function(){var r=_.e(this.hostElement).querySelector("#expander-contents");r&&(r.hidden=this.isShowRepliesVisible)};
_.l.computeAlign=function(){if(this.modern){var r;return!((r=this.data)==null?0:r.viewRepliesCreatorThumbnail)}};
_.OC.Object.defineProperties(pP.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var r,f=(r=this.data)==null?void 0:r.contents;return!!f&&f.length>0&&!!f[f.length-1].continuationItemRenderer}}});
pP.prototype.isShowMoreChanged=pP.prototype.isShowMoreChanged;pP.prototype.isLoadingChanged=pP.prototype.isLoadingChanged;pP.prototype.triggerFirstContinuation=pP.prototype.triggerFirstContinuation;pP.prototype.dataChanged=pP.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],pP.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.cg),_.B("design:type",Object)],pP.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],pP.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],pP.prototype,"modern",void 0);_.A([_.K(),_.B("design:type",Boolean)],pP.prototype,"isLoading",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],pP.prototype,"isShowRepliesVisible",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],pP.prototype,"useNewFormatting",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],pP.prototype,"isWatchGrid",void 0);_.A([_.K(),_.B("design:type",Object)],pP.prototype,"buttonOverrides",void 0);_.A([_.uA("#expander-contents"),_.B("design:type",HTMLElement)],pP.prototype,"expanderContents",void 0);_.A([_.uA("ytd-continuation-item-renderer"),_.B("design:type",Object)],pP.prototype,"continuationItemRenderer",void 0);_.A([_.uA("#contents"),_.B("design:type",HTMLElement)],pP.prototype,"contents",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pP.prototype,"dataChanged",null);_.A([_.R("data.contents"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],pP.prototype,"hasContinuation",null);_.A([_.kO("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pP.prototype,"triggerFirstContinuation",null);
_.A([_.Bt("isLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pP.prototype,"isLoadingChanged",null);_.A([_.Bt("isShowRepliesVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pP.prototype,"isShowMoreChanged",null);pP=_.A([_.U({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],pP);
_.Q(pP,"ytd-comment-replies-renderer",function(){if(jmX!==void 0)return jmX;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return jmX=r},{mode:1});var ojs;var nP=function(){var r=_.y.apply(this,arguments)||this;r.isOpen=!1;r.commentDialog=null;r.useSmallAvatars=_.N("small_avatars_for_comments");r.useSmallAvatarsEngagementPanelOnly=_.N("small_avatars_for_comments_ep");r.placeholderFocusListener=null;r.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return r};
_.t(nP,_.y);_.l=nP.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 r=this,f=_.e(this.hostElement).querySelector("#placeholder-area"),I=_.e(this.hostElement).querySelector("#simplebox-placeholder"),C=function(Y){Y.stopPropagation();Y instanceof KeyboardEvent&&Y.type==="keypress"&&Y.keyCode!==13&&Y.keyCode!==32||r.openDialog()};
this.placeholderFocusListener=C;I.addEventListener("focus",this.placeholderFocusListener);f.addEventListener("tap",C);f.addEventListener("keypress",C)};
_.l.maybeRemoveFocusEventListener=function(){var r;(r=this.data)!=null&&r.prepareAccountEndpoint&&!_.N("web_comments_simplebox_modal_focus_on_tap_ks")&&(r=_.e(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(r.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.l.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.l.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.N("web_comment_simplebox_resolve_polymer_command_ks")?_.qv.instance.resolveCommand(this.data.prepareAccountEndpoint):_.u7(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.e(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.l.onYtCommentboxDismiss=function(r){r.stopPropagation();this.isOpen=!1};
_.l.onCreateCommentAction=function(r){this.get("createCommentAction.contents",r)&&(this.isOpen=!1)};
_.l.computeCommentDialog=function(r){return{placeholderText:r.placeholderText,authorThumbnail:r.authorThumbnail,submitButton:r.submitButton,imageButton:r.imageButton,cancelButton:r.cancelButton,emojiButton:r.emojiButton,emojis:r.emojis,emojiPicker:r.emojiPicker,aadcGuidelinesStateEntityKey:r.aadcGuidelinesStateEntityKey,openAadcDialog:r.openAadcDialog,unicodeEmojisUrl:r.unicodeEmojisUrl}};
_.l.onHideIdentityChip=function(r){_.F(r,FYD)&&this.set("data.placeholderText",_.F(r,FYD).placeholderText)};
nP.prototype.onYtCommentboxDismiss=nP.prototype.onYtCommentboxDismiss;nP.prototype.dataChanged=nP.prototype.dataChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],nP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],nP.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],nP.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],nP.prototype,"isOpen",void 0);_.A([_.K(),_.B("design:type",Object)],nP.prototype,"commentDialog",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],nP.prototype,"engagementPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],nP.prototype,"useSmallAvatars",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],nP.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],nP.prototype,"enableCreationBox",void 0);_.A([_.K(),_.B("design:type",Boolean)],nP.prototype,"showCreateDialog",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nP.prototype,"dataChanged",null);
_.A([_.kO("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],nP.prototype,"onYtCommentboxDismiss",null);nP=_.A([_.U({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],nP);
_.Q(nP,"ytd-comment-simplebox-renderer",function(){if(ojs!==void 0)return ojs;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ojs=r},{mode:1});var Qmg;_.gW("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var dz=function(){var r=_.y.apply(this,arguments)||this;r.addHoverEffect=_.N("swatcheroo_comments_hover_effect");return r};
_.t(dz,_.y);dz.prototype.onTap=function(r){if(this.addHoverEffect&&!this.engagementPanel&&!_.iB(_.JN(r)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var f;((f=window.getSelection())==null?0:f.toString().length)||_.u7({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
dz.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.OC.Object.defineProperties(dz.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.data)!=null&&r.commentViewModel)return _.F(this.data.commentViewModel,mB4)}}});
dz.prototype.onTap=dz.prototype.onTap;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],dz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],dz.prototype,"addHoverEffect",void 0);_.A([_.K(),_.B("design:type",Object)],dz.prototype,"data",void 0);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],dz.prototype,"commentViewModel",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],dz.prototype,"engagementPanel",void 0);_.A([_.kO("tap"),_.kO("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],dz.prototype,"onTap",null);dz=_.A([_.U({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],dz);
_.Q(dz,"ytd-comment-thread-renderer",function(){if(Qmg!==void 0)return Qmg;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Qmg=r},{mode:_.QQ("kevlar_poly_si_batch_j025")?1:2});var ASV;var zT=function(){var r=_.y.apply(this,arguments)||this;r.modernTypography=_.N("web_modern_typography");r.compactHeader=_.N("web_watch_compact_comments_header");r.hidePanelButton=!1;r.isPostSchedulingEnabled=_.N("enable_post_scheduling");r.hasFinishedStamping=!1;r.JSC$13689_handleOpenPostCommentDialogActionAfterStamp=!1;r.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return r};
_.t(zT,_.y);_.l=zT.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$13689_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.l.onYtServiceRequestSent=function(r,f){if(!_.N("kevlar_command_handler")&&f.actions)for(r=0;r<f.actions.length;r++){var I=f.actions[r];_.F(I,qvD)&&_.e(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.F(I,qvD))}};
_.l.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var r;if(this.getPrefilledBackstagePostDialog((r=this.data)==null?void 0:r.actions)){_.e(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var f=_.e(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;f&&_.UC(this,function(){f.focus();f.openDialog&&f.openDialog()})}}else this.hasActionsChange=!0};
_.l.computeIsBackstage=function(r){return r};
_.l.onYtCommentboxDismiss=function(){_.e(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.l.removePrefilledDialog=function(r){if(r==null?0:r.actions){for(var f=r.actions.length-1;f>=0;f--){var I=void 0;((I=_.F(r.actions[f],dXg))==null?0:I.dialog)&&delete r.actions[f]}this.set("data",void 0);this.set("data",r)}};
_.l.getPrefilledBackstagePostDialog=function(r){if(r)for(var f=0;f<r.length;f++){var I=r[f],C=void 0;if((C=_.F(I,dXg))==null?0:C.dialog)return _.F(I,dXg).dialog}return null};
_.l.computeBackstagePostDialog=function(r){return r&&(this.getPrefilledBackstagePostDialog(r.actions)||r.createRenderer)};
_.l.dataChanged=function(){if(this.data){var r=this.data.customEmojis,f=this.data.unicodeEmojisUrl;_.ti.clear();f&&_.Kfg(_.ti,f);r&&_.ti.load(r)}};
_.l.handleSignalActionOpenPostCommentDialogAction=function(){var r=_.e(this.hostElement).querySelector("ytd-comment-simplebox-renderer");r?r.openDialog():this.JSC$13689_handleOpenPostCommentDialogActionAfterStamp=!0};
_.OC.Object.defineProperties(zT.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.N("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var r,f,I,C,Y,V,S;return!this.hidePanelButton&&_.N("kevlar_watch_comments_panel_button")&&((S=_.F((r=this.data)==null?void 0:(f=r.sortMenu)==null?void 0:(I=f.sortFilterSubMenuRenderer)==null?void 0:(C=I.subMenuItems)==null?void 0:(Y=C[0])==null?void 0:(V=Y.serviceEndpoint)==null?void 0:V.commandMetadata,_.oo))==null?void 0:S.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.VR("MINIPLAYER_EXPAND_LABEL"),text:_.iX(_.VR("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
zT.prototype.dataChanged=zT.prototype.dataChanged;zT.prototype.onYtCommentboxDismiss=zT.prototype.onYtCommentboxDismiss;zT.prototype.observePrefilledBackstagePostDialog=zT.prototype.observePrefilledBackstagePostDialog;zT.prototype.onYtServiceRequestSent=zT.prototype.onYtServiceRequestSent;zT.prototype.onStampFinished=zT.prototype.onStampFinished;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],zT.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],zT.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],zT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],zT.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],zT.prototype,"modernTypography",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],zT.prototype,"compactHeader",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],zT.prototype,"engagementPanel",void 0);_.A([_.K(),_.B("design:type",Object)],zT.prototype,"hidePanelButton",void 0);_.A([_.K({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.B("design:type",Boolean)],zT.prototype,"isBackstage",void 0);_.A([_.K({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.B("design:type",Object)],zT.prototype,"backstagePostDialog",void 0);
_.A([_.K(),_.B("design:type",Object)],zT.prototype,"isPostSchedulingEnabled",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("data","showCommentsPanelButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],zT.prototype,"useSpaceBetween",null);_.A([_.K({reflectToAttribute:!0}),_.R("data","hidePanelButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],zT.prototype,"showCommentsPanelButton",null);
_.A([_.R("data","showCommentsPanelButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],zT.prototype,"commentsPanelButtonData",null);_.A([_.kO("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zT.prototype,"onStampFinished",null);_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],zT.prototype,"onYtServiceRequestSent",null);
_.A([_.Bt("data.actions"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zT.prototype,"observePrefilledBackstagePostDialog",null);_.A([_.kO("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],zT.prototype,"onYtCommentboxDismiss",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zT.prototype,"dataChanged",null);
zT=_.A([_.U({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],zT);
_.Q(zT,"ytd-comments-header-renderer",function(){if(ASV!==void 0)return ASV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ASV=r},{mode:1});var Zp8;var MD=function(){return _.y.apply(this,arguments)||this};
_.t(MD,_.y);_.A([_.K(),_.B("design:type",Object)],MD.prototype,"data",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],MD.prototype,"ytRendererBehavior",void 0);MD=_.A([_.U({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],MD);
_.Q(MD,"ytd-destination-button-renderer",function(){if(Zp8!==void 0)return Zp8;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Zp8=r},{mode:1});var Gv3;var gz=function(){var r=_.y.apply(this,arguments)||this;r.isRichGrid=!1;r.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};r.modernTypography=_.N("web_modern_typography");return r};
_.t(gz,_.y);_.l=gz.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 r;if((r=this.data)==null||!r.isExpanded){r=this.hostElement.clientWidth;var f;if(r&&(f=this.data)!=null&&f.destinationButtons){f=Math.floor((r+4)/214);r=this.data.destinationButtons.length;var I=Math.ceil(r/f);this.fullyVisibleRows=r%f===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}}}};
_.l.updateRichGridDestinationButtonsVisibility=function(){var r,f;if(this.isRichGrid&&((r=this.data)==null||!r.isExpanded)&&(f=this.data)!=null&&f.destinationButtons){r=this.richGridItemsPerRow+1;f=this.data.destinationButtons.length;var I=Math.ceil(f/r);this.fullyVisibleRows=f%r===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}};
_.l.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
gz.prototype.updateRichGridDestinationButtonsVisibility=gz.prototype.updateRichGridDestinationButtonsVisibility;_.A([_.K(),_.B("design:type",Object)],gz.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Number)],gz.prototype,"fullyVisibleRows",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],gz.prototype,"isShowMoreVisible",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],gz.prototype,"isRichGrid",void 0);
_.A([_.K({selector:_.XN,value:0}),_.B("design:type",Number)],gz.prototype,"richGridItemsPerRow",void 0);_.A([_.K(),_.B("design:type",Object)],gz.prototype,"gridStateActionMap",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],gz.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],gz.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],gz.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],gz.prototype,"ytdReduxBehavior",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],gz.prototype,"modernTypography",void 0);_.A([_.Bt("data","richGridItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gz.prototype,"updateRichGridDestinationButtonsVisibility",null);
gz=_.A([_.U({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],gz);
_.Q(gz,"ytd-destination-shelf-renderer",function(){if(Gv3!==void 0)return Gv3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Gv3=r},{mode:1});var kvg;var ai=function(){return _.y.apply(this,arguments)||this};
_.t(ai,_.y);ai.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"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ai.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ai.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ai.prototype,"data",void 0);ai=_.A([_.U({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],ai);
_.Q(ai,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(kvg!==void 0)return kvg;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return kvg=r},{mode:1});var BrX;var Xb=function(){var r=_.y.apply(this,arguments)||this;r.disableAnimation=!1;r.isSlimlineSurvey=!1;r.isSlimlineSurveyFollowUp=!1;r.isShortsStyle=!1;return r};
_.t(Xb,_.y);Xb.prototype.onTap=function(r){r.preventDefault();this.data&&_.kA(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.OC.Object.defineProperties(Xb.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 r,f,I,C,Y;return((r=this.data)==null?0:r.checked)?(f=this.data)==null?void 0:(I=f.onStateIcon)==null?void 0:I.iconType:(C=this.data)==null?void 0:(Y=C.defaultStateIcon)==null?void 0:Y.iconType}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Xb.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Xb.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Xb.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],Xb.prototype,"disableAnimation",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Xb.prototype,"isSlimlineSurvey",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Xb.prototype,"isSlimlineSurveyFollowUp",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Xb.prototype,"isShortsStyle",void 0);_.A([_.R("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Xb.prototype,"isAnimatedIcon",null);
_.A([_.R("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.B("design:type",Number),_.B("design:paramtypes",[])],Xb.prototype,"iconSize",null);_.A([_.R("isShortsStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Xb.prototype,"isDarkTheme",null);_.A([_.R("data.checked"),_.B("design:type",Object),_.B("design:paramtypes",[])],Xb.prototype,"icon",null);Xb=_.A([_.U({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Xb);
_.Q(Xb,"ytd-rating-survey-option-renderer",function(){if(BrX!==void 0)return BrX;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return BrX=r},{mode:2});var qLs;var ND=function(){var r=_.y.apply(this,arguments)||this;r.firstResponseText=null;r.lastResponseText=null;r.selectedNonStarOption=null;r.hideOptions=!1;r.hideUndoButton=!0;r.disableAnimation=!1;r.showResponseRangeText=!1;r.selectedRatingIndex=-1;r.isSlimlineSurvey=!1;r.isSlimlineSurveyFollowUp=!1;r.isShortsStyle=!1;r.slimlineSurveyRatingSelectedIndex=-1;return r};
_.t(ND,_.y);_.l=ND.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(r,f){var I=this;r=f.onStateIcon&&f.defaultStateIcon&&f.onStateIcon.iconType===f.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(S,h){S.responseText===f.responseText?I.isSlimlineSurvey?(I.selectedRatingIndex=h,I.ytdReduxBehavior.dispatch(BDq(h))):(I.setSurveyOptionValue(h,!0,"checked"),I.setSurveyOptionValue(h,!0,"selected")):(I.setSurveyOptionValue(h,!1,"checked"),I.setSurveyOptionValue(h,
!1,"selected"))});
else if(r)this.selectedNonStarOption=f,this.hideOptions=!0;else{var C=this.ytRendererBehavior.getSimpleString(f.responseText),Y=!0;this.getOptionRenderers().forEach(function(S,h){I.setSurveyOptionValue(h,Y,"checked");I.setSurveyOptionValue(h,!1,"selected");I.ytRendererBehavior.getSimpleString(S.responseText)===C&&(Y=!1,I.setSurveyOptionValue(h,!0,"selected"))})}r=f.responseEndpoint;
var V;f.followUpCommand&&(V=_.F(f.followUpCommand,okC));this.isSlimlineSurvey?(this.resetComponent(),_.Bj(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.Bj(this.hostElement,"ytd-inline-survey-rating-select-action",[r,V])};
_.l.showSelectedOption=function(){var r=this;_.F_.addJob(function(){var f=r.getOptionRenderers()[r.slimlineSurveyRatingSelectedIndex];r.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),f)},8,100)};
_.l.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(r){var f;return(f=_.F(r,AA3))!=null?f:{}}):[]};
_.l.onUndoClick=function(){this.resetComponent();_.Bj(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.l.setSurveyOptionValue=function(r,f,I){this.notifyPath("data.ratings."+r+".ratingSurveyOptionRenderer."+I);this.set("data.ratings."+r+".ratingSurveyOptionRenderer."+I,f)};
_.l.resetComponent=function(){var r=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var f=this.getOptionRenderers(),I,C;this.firstResponseText=(C=(I=f[0])==null?void 0:I.responseText)!=null?C:null;var Y,V;this.lastResponseText=(V=(Y=f[f.length-1])==null?void 0:Y.responseText)!=null?V:null;f.forEach(function(S,h){r.setSurveyOptionValue(h,!1,"checked");r.setSurveyOptionValue(h,!1,"selected")})};
_.OC.Object.defineProperties(ND.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
ND.prototype.onOptionChange=ND.prototype.onOptionChange;ND.prototype.dataChanged=ND.prototype.dataChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ND.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ND.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],ND.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ND.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Object)],ND.prototype,"firstResponseText",void 0);_.A([_.K(),_.B("design:type",Object)],ND.prototype,"lastResponseText",void 0);_.A([_.K(),_.B("design:type",Object)],ND.prototype,"selectedNonStarOption",void 0);_.A([_.K(),_.B("design:type",Object)],ND.prototype,"hideOptions",void 0);_.A([_.K(),_.B("design:type",Object)],ND.prototype,"hideUndoButton",void 0);_.A([_.K(),_.B("design:type",Object)],ND.prototype,"disableAnimation",void 0);
_.A([_.K(),_.B("design:type",Object)],ND.prototype,"showResponseRangeText",void 0);_.A([_.K(),_.B("design:type",Object)],ND.prototype,"selectedRatingIndex",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ND.prototype,"isSlimlineSurvey",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ND.prototype,"isSlimlineSurveyFollowUp",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ND.prototype,"isShortsStyle",void 0);_.A([_.K({selector:function(r){return r.ui.slimlineSurveyRatingSelectedIndex}}),
_.B("design:type",Object)],ND.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.A([_.R("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ND.prototype,"isSingleSelect",null);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ND.prototype,"dataChanged",null);
_.A([_.kO("ytd-rating-survey-option-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],ND.prototype,"onOptionChange",null);ND=_.A([_.U({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],ND);
_.Q(ND,"ytd-rating-survey-renderer",function(){if(qLs!==void 0)return qLs;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return qLs=r},{mode:1});var ujV;var Dng;var rD4;var gSP=(aV.FIRSTDAYOFWEEK+1)%7,flq=function(r,f,I,C){var Y="";if(C.selection&&nSR(C.selection))zN(r,C.selection)&&(Y+=" selected");else if(C.selection&&dtd(C.selection)){var V=C.selection.selectionState||"START_DATE";zN(r,C.selection.start)&&(Y+=" period-start ",V==="START_DATE"&&(Y+="selected"));zN(r,C.selection.end)&&(Y+=" period-end ",V==="END_DATE"&&(Y+="selected"));Mp(r,C.selection.start)||Mp(C.selection.end,r)||(Y+=" highlighted")}if(Mp(f,C.start)||Mp(C.end,f))Y+=" disabled";C.circleToday&&
zN(f,I)&&(Y+=" today");return Y};var $M=function(){return _.y.apply(this,arguments)||this};
_.t($M,_.y);_.l=$M.prototype;_.l.attached=function(){var r=this;_.UC(this,function(){r.JSC$13723_calendarMain.scrollHeight>0&&(r.calendarConfig.selection?r.scrollToDate(z7K(r.calendarConfig.selection)):r.scrollToDate(r.calendarConfig.end))})};
_.l.updateSelection=function(r){r=aDK(Object.assign({},this.calendarConfig,{selection:r}),flq);this.splice.apply(this,["renderData.months",0,r.length].concat(_.Na(r)))};
_.l.scrollToDate=function(r){this.renderData&&(r=XVd(r,this.renderData),r!==void 0&&this.JSC$13723_calendarMain.scrollToIndex(r))};
_.l.scrollToNextMonth=function(){this.JSC$13723_calendarMain.scrollToIndex(this.JSC$13723_calendarMain.firstVisibleIndex+1)};
_.l.scrollToPrevMonth=function(){this.JSC$13723_calendarMain.firstVisibleIndex===0&&this.JSC$13723_calendarMain.scrollTo(0,0);this.JSC$13723_calendarMain.scrollToIndex(this.JSC$13723_calendarMain.firstVisibleIndex-1)};
_.l.handleDayClick=function(r){_.Bj(this.hostElement,"ytd-calendar-date-clicked",[r.model.day.date])};
_.l.handleDayMouseDown=function(r){r.preventDefault();_.Bj(this.hostElement,"ytd-calendar-date-mousedown",[r.model.day.date])};
_.l.handleDayMouseUp=function(r){_.Bj(this.hostElement,"ytd-calendar-date-mouseup",[r.model.day.date])};
_.l.handleDayMouseEnter=function(r){r.preventDefault();_.Bj(this.hostElement,"ytd-calendar-date-mouseenter",[r.model.day.date])};
_.l.handleDayMouseLeave=function(r){_.Bj(this.hostElement,"ytd-calendar-date-mouseleave",[r.model.day.date])};
_.OC.Object.defineProperties($M.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var r=this.calendarConfig,f=flq;f=f===void 0?flq:f;for(var I=[],C=0;C<7;C++)I.push(aV.NARROWWEEKDAYS[(C+gSP)%7]);return{months:aDK(r,f),daysOfWeekLabel:I}}}});
_.A([_.K(),_.B("design:type",Object)],$M.prototype,"calendarConfig",void 0);_.A([_.uA("#calendar-main"),_.B("design:type",Object)],$M.prototype,"JSC$13723_calendarMain",void 0);_.A([_.R("calendarConfig"),_.B("design:type",Object),_.B("design:paramtypes",[])],$M.prototype,"renderData",null);$M=_.A([_.U({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],$M);
_.Q($M,"ytd-scrollable-calendar",function(){if(rD4!==void 0)return rD4;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return rD4=r},{mode:2});var Ilq;var C9V;var Fb=function(){var r=_.y.apply(this,arguments)||this;r.hideCharCounter=!1;r.hideLabel=!1;r.noLabelFloat=!1;r.autoValidate=!0;r.invalid=!1;r.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return r};
_.t(Fb,_.y);_.l=Fb.prototype;_.l.reset=function(r){this.value=r&&this.data?this.data.value=r:"";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 r,f;if(((r=this.data)==null?0:r.value)||((f=this.data)==null?void 0:f.value)==="")this.value=this.data.value;else{var I;((I=this.data)==null?void 0:I.value)!==void 0||this.value||(this.value="")}};
_.l.computeLabel=function(r,f){return f?"":_.Rr(r)};
_.l.computeAriaLabel=function(r,f){return f?_.Rr(r):""};
_.l.computeErrorMessage=function(r,f,I,C){!r&&f?r=I||this.strings.REQUIRED_LABEL:(r=_.Rr(C),r=_.pw(r,"&")?"document"in _.Yq?u$B(r):DcU(r):r);return r};
_.l.computeType=function(r){return r==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.l.onTextValueChanged=function(r){this.value=r.detail.value;var f;(f=this.onValueChanged)==null||f.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(r){(r=_.F(r,w7B))&&this.data&&this.data.id===r.id&&(r.invalid!==void 0&&(this.invalid=r.invalid),r.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",r.invalidValueErrorMessage))};
_.l.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LT("value-changed",this.value))};
_.l.updateInvalidFromBinding=function(r){this.invalid=r.detail.value};
_.OC.Object.defineProperties(Fb.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var r;return!((r=this.data)==null||!r.isMultiline)}}});
Fb.prototype.valueChangedForBinding=Fb.prototype.valueChangedForBinding;Fb.prototype.valueChanged=Fb.prototype.valueChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Fb.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Fb.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Fb.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],Fb.prototype,"data",void 0);_.A([_.K(),_.B("design:type",String)],Fb.prototype,"value",void 0);_.A([_.K(),_.B("design:type",String)],Fb.prototype,"pattern",void 0);_.A([_.K(),_.B("design:type",String)],Fb.prototype,"errorMessage",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],Fb.prototype,"componentStyle",void 0);_.A([_.K(),_.B("design:type",Object)],Fb.prototype,"hideCharCounter",void 0);
_.A([_.K(),_.B("design:type",Object)],Fb.prototype,"hideLabel",void 0);_.A([_.K(),_.B("design:type",Object)],Fb.prototype,"noLabelFloat",void 0);_.A([_.K(),_.B("design:type",Function)],Fb.prototype,"onValueChanged",void 0);_.A([_.K(),_.B("design:type",Boolean)],Fb.prototype,"isMultilineOverride",void 0);_.A([_.K(),_.B("design:type",Object)],Fb.prototype,"autoValidate",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Fb.prototype,"invalid",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Fb.prototype,"enableOverlayTheme",void 0);_.A([_.K({value:{REQUIRED_LABEL:_.VR("REQUIRED_LABEL",void 0,"Required")}}),_.B("design:type",Object)],Fb.prototype,"strings",void 0);_.A([_.uA("#input"),_.B("design:type",Object)],Fb.prototype,"input",void 0);_.A([_.R("data","isMultilineOverride"),_.B("design:type",Object),_.B("design:paramtypes",[])],Fb.prototype,"isMultiline",null);
_.A([_.YN("data.value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fb.prototype,"valueChanged",null);_.A([_.Bt("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fb.prototype,"valueChangedForBinding",null);Fb=_.A([_.zX({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],Fb);
_.Q(Fb,"yt-text-input-form-field-renderer",function(){if(C9V===void 0){var r=document.createElement("template");_.c(r,'\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="" 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]]" 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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;Ilq===void 0&&(Ilq=document.createElement("template"));var C=Ilq;I.call(f,C.content.cloneNode(!0),r.content.firstChild);C9V=r}r=C9V;return r},{mode:2});var PO=function(){var r=_.y.apply(this,arguments)||this;r.data=void 0;r.selectionState="START_DATE";r.isStartDateInvalid=!1;r.isEndDateInvalid=!1;r.autoapply=!1;r.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 r};
_.t(PO,_.y);_.l=PO.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:gY(this.data.selection.start),end:gY(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:_.Sd(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 r=this.calendar.calendarConfig,f=r.end;r=$tl({start:r.start,end:this.endDate||f},this.startDateInput.value||"");this.isStartDateInvalid=!r.isValid;r.isValid&&(r=r.value,this.selection=this.endDate?{start:r,end:this.endDate}:r,this.calendar.scrollToDate(r));this.updateInvalidState()}};
_.l.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var r=this.calendar.calendarConfig,f=r.start;r=$tl({start:this.startDate||f,end:r.end},this.endDateInput.value||"");this.isEndDateInvalid=!r.isValid;r.isValid&&(r=r.value,this.selection={start:this.startDate,end:r},this.calendar.scrollToDate(r));this.updateInvalidState()}};
_.l.handleCalendarDateClicked=function(r){var f=this.selection&&z7K(this.selection),I=this.selection&&Mzm(this.selection);f&&!Mp(r,f)&&this.selectionState==="END_DATE"?(this.selection={start:f,end:r},this.selectionState="START_DATE"):(I&&!Mp(I,r)?this.selection={start:r,end:I}:this.selection=r,this.selectionState="END_DATE")};
_.l.handleCalendarDateMouseDown=function(r){this.selection&&!nSR(this.selection)&&(this.dragPivot=zN(r,this.selection.start)?this.selection.end:zN(r,this.selection.end)?this.selection.start:r)};
_.l.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.l.handleCalendarDateMouseEnter=function(r){this.dragPivot&&(this.selection={start:function(f,I){return Mp(f,I)?f:I}(this.dragPivot,r),
end:function(f,I){return Mp(f,I)?I:f}(this.dragPivot,r)},this.dragPivot||(this.selectionState="START_DATE"))};
_.l.handleCalendarDateMouseLeave=function(){};
_.l.handleCalendarSubmitDateRange=function(){this.selection&&!nSR(this.selection)&&_.Bj(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.l.updateInvalidState=function(){var r=function(f,I){I?f.setAttribute("invalid",""):f.removeAttribute("invalid")};
r(this.startDateInput,this.isStartDateInvalid);r(this.endDateInput,this.isEndDateInvalid)};
_.l.updateDateStrings=function(){this.selection&&(nSR(this.selection)?pVl(this.selection):(pVl(this.selection.start),pVl(this.selection.end)))};
_.l.updateCalendarSelection=function(r){this.calendar.updateSelection(Object.assign({},r,{selectionState:this.selectionState}))};
_.l.updateIsStartDateInvalidFromBinding=function(r){this.isStartDateInvalid=r.detail.value};
_.l.updateIsEndDateInvalidFromBinding=function(r){this.isEndDateInvalid=r.detail.value};
_.l.updateStartDateStringFromBinding=function(){};
_.l.updateEndDateStringFromBinding=function(){};
_.OC.Object.defineProperties(PO.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:gY(this.data.dateRangeStart),end:gY(this.data.dateRangeEnd),selection:{start:gY(this.data.selection.start),end:gY(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&z7K(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Mzm(this.selection)}}});
PO.prototype.resetTextboxes=PO.prototype.resetTextboxes;PO.prototype.observeSelection=PO.prototype.observeSelection;PO.prototype.dataChanged=PO.prototype.dataChanged;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],PO.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],PO.prototype,"ytRendererstamperBehavior",void 0);_.A([_.uA("#calendar"),_.B("design:type",Object)],PO.prototype,"calendar",void 0);
_.A([_.uA("#start-date"),_.B("design:type",Object)],PO.prototype,"startDateInput",void 0);_.A([_.uA("#end-date"),_.B("design:type",Object)],PO.prototype,"endDateInput",void 0);_.A([_.K(),_.B("design:type",Object)],PO.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],PO.prototype,"selection",void 0);_.A([_.K(),_.B("design:type",String)],PO.prototype,"selectionState",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],PO.prototype,"calendarConfig",null);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],PO.prototype,"errorMessage",null);_.A([_.R("selection"),_.B("design:type",Object),_.B("design:paramtypes",[])],PO.prototype,"startDate",null);_.A([_.R("selection"),_.B("design:type",Object),_.B("design:paramtypes",[])],PO.prototype,"endDate",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PO.prototype,"dataChanged",null);
_.A([_.Bt("selection","selectionState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PO.prototype,"observeSelection",null);_.A([_.Bt("selectionState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PO.prototype,"resetTextboxes",null);PO=_.A([_.U({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],PO);
_.Q(PO,"ytd-date-period-picker-renderer",function(){if(Dng!==void 0)return Dng;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Dng=r},{mode:1});var tr=function(){var r=_.y.apply(this,arguments)||this;var f={};r.actionMap=(f["ytd-date-period-picker-apply"]="handleDateRangeUpdated",f);return r};
_.t(tr,_.y);tr.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
tr.prototype.handleDateRangeUpdated=function(){};
_.A([_.K(),_.B("design:type",Object)],tr.prototype,"data",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],tr.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],tr.prototype,"rendererstamperBehavior",void 0);tr=_.A([_.U({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],tr);
_.Q(tr,"ytd-report-history-section-header-renderer",function(){if(ujV!==void 0)return ujV;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return ujV=r},{mode:1});var YxB;var llB;var Vwg;var TT=function(){return _.y.apply(this,arguments)||this};
_.t(TT,_.y);_.OC.Object.defineProperties(TT.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.data)==null?0:(f=r.icon)==null?0:f.iconType)?_.kN(this.data.icon.iconType):""}}});
_.A([_.K(),_.B("design:type",Object)],TT.prototype,"data",void 0);_.A([_.R("data"),_.B("design:type",String),_.B("design:paramtypes",[])],TT.prototype,"icon",null);TT=_.A([_.U({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],TT);
_.Q(TT,"ytd-report-history-table-text-cell-renderer",function(){if(Vwg!==void 0)return Vwg;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Vwg=r},{mode:1});var cO=function(){return _.y.apply(this,arguments)||this};
_.t(cO,_.y);cO.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],cO.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],cO.prototype,"data",void 0);cO=_.A([_.U({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],cO);
_.Q(cO,"ytd-report-history-table-reason-cell-renderer",function(){if(llB!==void 0)return llB;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return llB=r},{mode:1});var WO=function(){return _.y.apply(this,arguments)||this};
_.t(WO,_.y);WO.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"}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],WO.prototype,"rendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],WO.prototype,"data",void 0);WO=_.A([_.U({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],WO);
_.Q(WO,"ytd-report-history-table-cell-renderer",function(){if(YxB!==void 0)return YxB;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
return YxB=r},{mode:1});var Es4;var LP=function(){var r=_.y.apply(this,arguments)||this;r.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 r};
_.t(LP,_.y);LP.prototype.onDataChanged=function(){var r;if((r=this.data)==null?0:r.style)this.componentStyle=this.getStyleName(this.data.style)};
LP.prototype.getCellForColumn=function(r){return this.cells.find(function(f){var I;return((I=_.F(f==null?void 0:f.cell,kh3)||_.F(f==null?void 0:f.cell,GhT))==null?void 0:I.columnId)===r.type})};
LP.prototype.getClassForColumn=function(r){switch(r){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
LP.prototype.getStyleName=function(r){switch(r){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.OC.Object.defineProperties(LP.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var r;return(((r=this.data)==null?void 0:r.cells)||[]).map(function(f){return _.F(f,ZdB)})}}});
LP.prototype.onDataChanged=LP.prototype.onDataChanged;_.A([_.K(),_.B("design:type",Object)],LP.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Array)],LP.prototype,"columnRenderData",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],LP.prototype,"componentStyle",void 0);_.A([_.R("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],LP.prototype,"cells",null);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],LP.prototype,"onDataChanged",null);LP=_.A([_.U({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],LP);
_.Q(LP,"ytd-report-history-table-row-renderer",function(){if(Es4!==void 0)return Es4;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Es4=r},{mode:1});var SxT;var xEs;var FDB={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},Po$={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var m$=function(){return _.y.apply(this,arguments)||this};
_.t(m$,_.y);m$.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"}}}}}};
m$.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.OC.Object.defineProperties(m$.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?0:r.columns)?LDu(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return cuU(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var r=this.tableSpec,f=FDB;f=f===void 0?Po$:f;f=WDR(r.columnDimensions,r.columnsToShow||[],f);r=0;f=_.E(f);for(var I=f.next();!I.done;I=f.next())I=I.value,r+=I.minWidth+I.paddingLeft+I.paddingRight;return r}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.A([_.J(_.cg),_.B("design:type",Object)],m$.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],m$.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],m$.prototype,"data",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],m$.prototype,"tableSpec",null);_.A([_.R("tableSpec"),_.B("design:type",Array),_.B("design:paramtypes",[])],m$.prototype,"columnRenderData",null);
_.A([_.R("tableSpec"),_.B("design:type",Number),_.B("design:paramtypes",[])],m$.prototype,"totalMinWidth",null);_.A([_.R("totalMinWidth"),_.B("design:type",String),_.B("design:paramtypes",[])],m$.prototype,"tableWidthStyle",null);m$=_.A([_.U({is:"ytd-table-renderer",disableElementRegistration:!0})],m$);
_.Q(m$,"ytd-table-renderer",function(){if(xEs!==void 0)return xEs;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return xEs=r},{mode:1});var ey=function(){return _.y.apply(this,arguments)||this};
_.t(ey,_.y);ey.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}}}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ey.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ey.prototype,"data",void 0);ey=_.A([_.U({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],ey);
_.Q(ey,"ytd-report-reason-history-modal-renderer",function(){if(SxT!==void 0)return SxT;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return SxT=r},{mode:1});var hO8;var w68;var bCT;var Jr=function(){return _.y.apply(this,arguments)||this};
_.t(Jr,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Jr.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Jr.prototype,"data",void 0);Jr=_.A([_.U({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],Jr);
_.Q(Jr,"ytd-profile-column-stats-entry-renderer",function(){if(bCT!==void 0)return bCT;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return bCT=r},{mode:1});var p6g;var jy=function(){return _.y.apply(this,arguments)||this};
_.t(jy,_.y);jy.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],jy.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],jy.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],jy.prototype,"data",void 0);jy=_.A([_.U({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],jy);
_.Q(jy,"ytd-profile-column-stats-renderer",function(){if(p6g!==void 0)return p6g;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return p6g=r},{mode:1});var ns4;var HO=function(){return _.y.apply(this,arguments)||this};
_.t(HO,_.y);_.OC.Object.defineProperties(HO.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.data)==null||!r.useThumbnailSize)return 80;var f,I;r=(f=this.data)==null?void 0:(I=f.thumbnail)==null?void 0:I.thumbnails;var C;return r&&((C=r[0])==null?void 0:C.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.data)==null||!r.useThumbnailSize)return 80;var f,I;r=(f=this.data)==null?void 0:(I=f.thumbnail)==null?void 0:I.thumbnails;var C;return r&&((C=r[0])==null?void 0:C.height)||80}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],HO.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],HO.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],HO.prototype,"componentStyle",void 0);_.A([_.R("data.useThumbnailSize"),_.B("design:type",Object),_.B("design:paramtypes",[])],HO.prototype,"thumbnailWidth",null);
_.A([_.R("data.useThumbnailSize"),_.B("design:type",Object),_.B("design:paramtypes",[])],HO.prototype,"thumbnailHeight",null);HO=_.A([_.U({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],HO);
_.Q(HO,"ytd-profile-column-user-info-renderer",function(){if(ns4!==void 0)return ns4;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ns4=r},{mode:1});var i4=function(){return _.y.apply(this,arguments)||this};
_.t(i4,_.y);i4.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]]"}}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],i4.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],i4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],i4.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],i4.prototype,"componentStyle",void 0);i4=_.A([_.U({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],i4);
_.Q(i4,"ytd-profile-column-renderer",function(){if(w68!==void 0)return w68;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return w68=r},{mode:1});var Ri=function(){var r=_.y.apply(this,arguments)||this;r.componentStyle="NON_CENTERED_PROFILE";return r};
_.t(Ri,_.y);Ri.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Ri.prototype.getIcon=function(r){return r?"settings:"+r.toLowerCase():null};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Ri.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Ri.prototype,"data",void 0);Ri=_.A([_.U({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Ri);
_.Q(Ri,"ytd-page-introduction-renderer",function(){if(hO8!==void 0)return hO8;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return hO8=r},{mode:1});var dEC;var vO=function(){return _.y.apply(this,arguments)||this};
_.t(vO,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],vO.prototype,"data",void 0);vO=_.A([_.U({is:"ytd-report-description-renderer",disableElementRegistration:!0})],vO);
_.Q(vO,"ytd-report-description-renderer",function(){if(dEC!==void 0)return dEC;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return dEC=r},{mode:1});var zOs;var MwX;var KP=function(){return _.y.apply(this,arguments)||this};
_.t(KP,_.y);KP.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],KP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],KP.prototype,"data",void 0);KP=_.A([_.U({is:"ytd-video-report-renderer",disableElementRegistration:!0})],KP);
_.Q(KP,"ytd-video-report-renderer",function(){if(MwX!==void 0)return MwX;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return MwX=r},{mode:1});var gs3;_.gW("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.gW("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var y1=function(){return _.y.apply(this,arguments)||this};
_.t(y1,_.y);y1.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]]"}}}}}};
y1.prototype.computeMessageStyle=function(r){return r};
y1.prototype.computeButtonOverride=function(r){var f;if((r==null?0:(f=r.style)==null?0:f.value)&&r.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],y1.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],y1.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],y1.prototype,"shelf",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],y1.prototype,"panel",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.B("design:type",Boolean)],y1.prototype,"componentStyle",void 0);_.A([_.K({computed:"computeButtonOverride(data)"}),_.B("design:type",Object)],y1.prototype,"buttonOverride",void 0);y1=_.A([_.U({is:"ytd-message-renderer",disableElementRegistration:!0})],y1);
_.Q(y1,"ytd-message-renderer",function(){if(gs3!==void 0)return gs3;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return gs3=r},{mode:1});var Up=function(){return _.y.apply(this,arguments)||this};
_.t(Up,_.y);Up.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"}}}};
Up.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
Up.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.OC.Object.defineProperties(Up.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var r,f;return!!(((r=this.data)==null?0:r.header)&&((f=this.data)==null?0:f.table))}}});
Up.prototype.onRequestError=Up.prototype.onRequestError;_.A([_.J(_.cg),_.B("design:type",Object)],Up.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Up.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Up.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Up.prototype,"data",void 0);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Up.prototype,"isUnifiedReportHistory",null);_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Up.prototype,"onRequestError",null);Up=_.A([_.U({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],Up);
_.Q(Up,"ytd-report-history-section-renderer",function(){if(zOs!==void 0)return zOs;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return zOs=r},{mode:1});var alV;var sp=function(){var r=_.y.apply(this,arguments)||this;r.answerExpanded=!1;return r};
_.t(sp,_.y);sp.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],sp.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],sp.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],sp.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],sp.prototype,"answerExpanded",void 0);sp=_.A([_.U({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],sp);
_.Q(sp,"ytd-handles-claiming-faq-renderer",function(){if(alV!==void 0)return alV;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return alV=r},{mode:1});var X6g;var Op=function(){return _.y.apply(this,arguments)||this};
_.t(Op,_.y);_.A([_.K(),_.B("design:type",Object)],Op.prototype,"data",void 0);Op=_.A([_.U({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],Op);
_.Q(Op,"ytd-handles-claiming-faq-section-renderer",function(){if(X6g!==void 0)return X6g;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return X6g=r},{mode:1});var NC8;var oi=function(){var r=_.y.apply(this,arguments)||this;r.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";r.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";r.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";r.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";r.leftSquiggly=r.leftSquigglyLight;r.rightSquiggly=r.rightSquigglyLight;
r.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};r.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return r};
_.t(oi,_.y);_.l=oi.prototype;_.l.updateLeftSquigglyStyle=function(){_.Zh(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.l.updateRightSquigglyStyle=function(){_.Zh(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.l.ready=function(){var r=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(r)};
_.l.onDarkModeToggledAction=function(r){r!==this.isDarkTheme&&(this.set("isDarkTheme",r),r?(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]]"}}}}}};
oi.prototype.updateRightSquigglyStyle=oi.prototype.updateRightSquigglyStyle;oi.prototype.updateLeftSquigglyStyle=oi.prototype.updateLeftSquigglyStyle;_.A([_.K(),_.B("design:type",Object)],oi.prototype,"data",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],oi.prototype,"isDarkTheme",void 0);_.A([_.K(),_.B("design:type",String)],oi.prototype,"leftSquiggly",void 0);_.A([_.K(),_.B("design:type",String)],oi.prototype,"rightSquiggly",void 0);
_.A([_.Bt("leftSquiggly"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oi.prototype,"updateLeftSquigglyStyle",null);_.A([_.Bt("rightSquiggly"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oi.prototype,"updateRightSquigglyStyle",null);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],oi.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],oi.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],oi.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],oi.prototype,"actionButtonOverride",void 0);oi=_.A([_.U({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],oi);
_.Q(oi,"ytd-handles-claiming-header-renderer",function(){if(NC8!==void 0)return NC8;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return NC8=r},{mode:1});var $E8;var Q1=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};r.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";r.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";r.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";r.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
r.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";r.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";r.image0SquigglyBackground=r.image0LightSquigglyBackground;r.image1SquigglyBackground=r.image1LightSquigglyBackground;r.image3SquigglyBackground=r.image3LightSquigglyBackground;return r};
_.t(Q1,_.y);_.l=Q1.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(r){r!==this.isDarkTheme&&(this.isDarkTheme=r)};
_.l.updateImage0SquigglyBackground=function(){_.Zh(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.l.updateImage1SquigglyBackground=function(){_.Zh(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.l.updateImage3SquigglyBackground=function(){_.Zh(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.l.updateTitleAndImages=function(){var r,f;((r=this.data)==null?void 0:(f=r.titleImages)==null?void 0:f.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))};
Q1.prototype.updateImage3SquigglyBackground=Q1.prototype.updateImage3SquigglyBackground;Q1.prototype.updateImage1SquigglyBackground=Q1.prototype.updateImage1SquigglyBackground;Q1.prototype.updateImage0SquigglyBackground=Q1.prototype.updateImage0SquigglyBackground;Q1.prototype.onThemeChanged=Q1.prototype.onThemeChanged;Q1.prototype.onDataChanged=Q1.prototype.onDataChanged;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Q1.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Q1.prototype,"isDarkTheme",void 0);_.A([_.K(),_.B("design:type",Object)],Q1.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],Q1.prototype,"title0",void 0);_.A([_.K(),_.B("design:type",Object)],Q1.prototype,"title1",void 0);_.A([_.K(),_.B("design:type",Object)],Q1.prototype,"title2",void 0);_.A([_.K(),_.B("design:type",Object)],Q1.prototype,"title3",void 0);
_.A([_.K(),_.B("design:type",Object)],Q1.prototype,"title4",void 0);_.A([_.K(),_.B("design:type",Object)],Q1.prototype,"image0",void 0);_.A([_.K(),_.B("design:type",Object)],Q1.prototype,"image1",void 0);_.A([_.K(),_.B("design:type",Object)],Q1.prototype,"image2",void 0);_.A([_.K(),_.B("design:type",Object)],Q1.prototype,"image3",void 0);_.A([_.K(),_.B("design:type",Object)],Q1.prototype,"image4",void 0);_.A([_.K(),_.B("design:type",String)],Q1.prototype,"image0SquigglyBackground",void 0);
_.A([_.K(),_.B("design:type",String)],Q1.prototype,"image1SquigglyBackground",void 0);_.A([_.K(),_.B("design:type",String)],Q1.prototype,"image3SquigglyBackground",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Q1.prototype,"onDataChanged",null);_.A([_.Bt("isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Q1.prototype,"onThemeChanged",null);
_.A([_.Bt("image0SquigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Q1.prototype,"updateImage0SquigglyBackground",null);_.A([_.Bt("image1SquigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Q1.prototype,"updateImage1SquigglyBackground",null);
_.A([_.Bt("image3SquigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Q1.prototype,"updateImage3SquigglyBackground",null);Q1=_.A([_.U({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],Q1);
_.Q(Q1,"ytd-handles-claiming-title-images-section-renderer",function(){if($E8!==void 0)return $E8;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return $E8=r},{mode:1});var FE4;var Ar=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return r};
_.t(Ar,_.y);Ar.prototype.ready=function(){var r=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(r)};
Ar.prototype.onDarkModeToggledAction=function(r){r!==this.isDarkTheme&&this.set("isDarkTheme",r)};
Ar.prototype.onCopyButtonClick=function(){var r=this,f,I,C;return _.x(function(Y){return(f=r.data)!=null&&f.primaryChannelUrl?_.b(Y,navigator.clipboard.writeText(((I=r.data)==null?0:I.encodedChannelUrl)?r.data.encodedChannelUrl:"https://"+_.Rr((C=r.data)==null?void 0:C.primaryChannelUrl)),0):Y.jumpTo(0)})};
_.A([_.K(),_.B("design:type",Object)],Ar.prototype,"data",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Ar.prototype,"ytComponentBehavior",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Ar.prototype,"isDarkTheme",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Ar.prototype,"ytActionHandlerBehavior",void 0);Ar=_.A([_.U({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Ar);
_.Q(Ar,"ytd-handles-claiming-update-social-renderer",function(){if(FE4!==void 0)return FE4;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return FE4=r},{mode:1});var P93;var ZA=function(){var r=_.y.apply(this,arguments)||this;r.JSC$13818_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";r.JSC$13818_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";r.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};r.squigglyBackground=r.JSC$13818_squigglyBackgroundLight;return r};
_.t(ZA,_.y);ZA.prototype.updateSquigglyBackgroundStyle=function(){_.Zh(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
ZA.prototype.ready=function(){var r=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",r);this.squigglyBackground=r?this.JSC$13818_squigglyBackgroundDark:this.JSC$13818_squigglyBackgroundLight};
ZA.prototype.onDarkModeToggledAction=function(r){r!==this.isDarkTheme&&(this.set("isDarkTheme",r),this.squigglyBackground=r?this.JSC$13818_squigglyBackgroundDark:this.JSC$13818_squigglyBackgroundLight)};
ZA.prototype.updateSquigglyBackgroundStyle=ZA.prototype.updateSquigglyBackgroundStyle;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ZA.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ZA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],ZA.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ZA.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],ZA.prototype,"isDarkTheme",void 0);_.A([_.K(),_.B("design:type",String)],ZA.prototype,"squigglyBackground",void 0);_.A([_.Bt("squigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZA.prototype,"updateSquigglyBackgroundStyle",null);ZA=_.A([_.U({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],ZA);
_.Q(ZA,"ytd-handles-claiming-vanity-info-renderer",function(){if(P93!==void 0)return P93;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return P93=r},{mode:1});var twg;var GT=function(){var r=_.y.apply(this,arguments)||this;r.JSC$13821_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";r.JSC$13821_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";r.squigglyBackground=r.JSC$13821_squigglyBackgroundLight;r.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return r};
_.t(GT,_.y);_.l=GT.prototype;_.l.ready=function(){var r=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(r)};
_.l.onDarkModeToggledAction=function(r){r!==this.isDarkTheme&&(this.set("isDarkTheme",r),this.squigglyBackground=r?this.JSC$13821_squigglyBackgroundDark:this.JSC$13821_squigglyBackgroundLight)};
_.l.updateSquigglyBackgroundStyle=function(){_.Zh(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 r=this,f,I;return _.x(function(C){f=r.data.videoId;I="http://i1.ytimg.com/vi/"+f+"/maxresdefault.jpg";r.playerElement.loadVideoWithPlayerVars({video_id:f,iurlhq:I});_.wO(C)})};
GT.prototype.onDataChanged=GT.prototype.onDataChanged;GT.prototype.updateSquigglyBackgroundStyle=GT.prototype.updateSquigglyBackgroundStyle;_.A([_.K({value:!1}),_.B("design:type",Boolean)],GT.prototype,"isDarkTheme",void 0);_.A([_.K(),_.B("design:type",String)],GT.prototype,"squigglyBackground",void 0);_.A([_.uA("#player"),_.B("design:type",Object)],GT.prototype,"playerElement",void 0);_.A([_.K(),_.B("design:type",Object)],GT.prototype,"data",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],GT.prototype,"ytActionHandlerBehavior",void 0);_.A([_.Bt("squigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GT.prototype,"updateSquigglyBackgroundStyle",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GT.prototype,"onDataChanged",null);
GT=_.A([_.U({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],GT);
_.Q(GT,"ytd-handles-claiming-video-item-renderer",function(){if(twg!==void 0)return twg;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return twg=r},{mode:1});var TCB;var BO=function(){var r=_.rm.apply(this,arguments)||this;r.dragging=!1;r.dragMouseStart=0;r.dragOffsetStart=0;r.containerWidthDiff=0;r.boundPrevClick=function(){r.set("offset",kM(r,r.offset-(r.scrollDistance||320)))};
r.boundNextClick=function(){r.set("offset",kM(r,r.offset+(r.scrollDistance||320)))};
r.boundScrollContainerMouseDown=function(f){r.dragMouseStart=f.clientX;r.dragOffsetStart=r.offset;r.dragging=!0};
r.boundScrollContainerDrag=function(f){r.dragging&&r.set("offset",kM(r,r.dragOffsetStart-(f.clientX-r.dragMouseStart)))};
r.boundMouseUp=function(){r.onMouseUp()};
r.boundWheelScroll=function(f){var I=0;Math.abs(f.deltaX)>=Math.abs(f.deltaY)?I=f.deltaX:f.shiftKey&&(I=f.deltaY);I!==0&&(r.offset+=I,f.stopPropagation(),f.preventDefault())};
r.boundChipCloudChipScrollIntoView=function(f){(f=f.detail)&&r.scrollChipIntoView(f)};
return r};
_.t(BO,_.rm);BO.prototype.attached=function(){var r=_.e(this.hostElement).querySelector("#scroll-container");r.addEventListener("wheel",this.boundWheelScroll);r.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);r.style.touchAction="pan-y";r.addEventListener("pointerdown",this.boundScrollContainerMouseDown);r.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
BO.prototype.detached=function(){var r=_.e(this.hostElement).querySelector("#scroll-container");r.removeEventListener("wheel",this.boundWheelScroll);r.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);r.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);r.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
BO.prototype.reset=function(){this.set("offset",0);_.UC(this,this.setContainerWidthDiff);qD(this)};
var kM=function(r,f){return Math.min(Math.max(f,0),r.containerWidthDiff)};
BO.prototype.onMouseUp=function(){this.dragging=!1};
BO.prototype.transformContainer=function(){this.offset=kM(this,this.offset);var r=_.Lz("HTML_DIR")==="rtl"?"":"-";_.e(this.hostElement).querySelector("#chips").style.transform="translateX("+r+this.offset+"px)";qD(this)};
var qD=function(r){_.UC(r,r.setButtonsState)};
BO.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=kM(this,this.offset));this.atStart=this.offset<=0};
BO.prototype.setContainerWidthDiff=function(){var r=_.e(this.hostElement).querySelector("#scroll-container"),f=_.e(this.hostElement).querySelector("#chips");r&&f&&(this.containerWidthDiff=f.clientWidth-r.clientWidth)};
BO.prototype.scrollChipIntoView=function(r){var f=_.e(this.hostElement).querySelector("#scroll-container");if(f){var I=this.atStart?0:106,C=this.atEnd?0:106;r.offsetLeft<this.offset+I?this.offset=kM(this,r.offsetLeft-I):r.offsetLeft+r.clientWidth>this.offset+f.clientWidth-C&&(this.offset=kM(this,r.offsetLeft+r.clientWidth+C-f.clientWidth))}};
BO.prototype.transformContainer=BO.prototype.transformContainer;_.A([_.K({value:0}),_.B("design:type",Number)],BO.prototype,"offset",void 0);_.A([_.K({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],BO.prototype,"atStart",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],BO.prototype,"atEnd",void 0);_.A([_.K(),_.B("design:type",Number)],BO.prototype,"scrollDistance",void 0);
_.A([_.Bt("offset"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BO.prototype,"transformContainer",null);BO=_.A([_.fx()],BO);var cDs;var WET;var eOB=_.Hc(function(r){var f=r.data;r=_.E(_.ld(!1,void 0,"icHmSe"));var I=r.next().value,C=r.next().value;r={};r=_.qd("ytChipShapeChip",function(){a:switch(f==null?void 0:f().state){case 0:var h="ytChipShapeActive";break a;case 1:h="ytChipShapeDisabled";break a;default:h="ytChipShapeInactive"}return h},function(){var h=f().type===1||f().type===2,w=f();
return h||w!=null&&w.startIcon?w==null||!w.startIcon||w!=null&&w.text?h?"ytChipShapeEndIconPadding":(w==null?0:w.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(r.ytChipShapeFocused=function(){var h;
return I()&&((h=f())==null?void 0:h.state)!==1},r));
var Y=function(h){if((f==null?void 0:f().state)!==1){var w,n;(n=(w=f()).onTap)==null||n.call(w,h)}},V=_.IC(function(){var h=_.a().resolve(_.ZY(_.nF));
if(h){C(h.isKeyBoardInUse());var w,n;(n=(w=f()).onFocusIn)==null||n.call(w)}return!1}),S=_.IC(function(){C(!1);
return!1});
return _.p("chip-shape",{class:"ytChipShapeHost","on:focusin":V,"on:focusout":S},_.p(LEB,{shouldWrapInButton:function(){return f().type!==2},
selected:function(){return f().state===0},
onClick:Y,isDropdown:function(){return f().type===1},
accessibilityLabel:function(){return f().accessibilityLabel}},_.p("div",{class:r},_.p(_.M,{cond:function(){return f().startIcon},
then:function(){return _.p(_.V2,{icon:function(){var h;return(h=f())==null?void 0:h.startIcon},
className:function(){return f().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return f().text},_.p(mEs,{shape:f,
onClick:Y}))))},"ub");
eOB.idomCompat=!0;var LEB=_.Hc(function(r){var f=_.IC(function(I){r.onClick(I);return!1});
return _.p(_.M,{cond:r.shouldWrapInButton,then:function(){return _.p("button",{class:"ytChipShapeButtonReset","on:click":f,role:function(){return r.isDropdown()?"combobox":"tab"},
"aria-label":r.accessibilityLabel,"aria-selected":r.selected},r.children)},
else:function(){return r.children}})},"vb"),mEs=_.Hc(function(r){var f=r.shape;
var I=r.onClick;var C=_.IC(function(Y){I(Y);return!1});
return _.p(_.MC,null,_.p(_.nz,{when:function(){return f().type===1}},function(){return _.p(_.V2,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.p(_.nz,{when:function(){return f().type===2}},function(){return _.p("button",{class:"ytChipShapeButtonReset",
"on:click":C},_.p(_.V2,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.p(_.nz,{when:function(){return f().type===0}},function(){return _.p(_.B9,null)}))},"wb");_.Kv(eOB,"chip-shape",{props:{data:_.jv}});var u4=function(){var r=_.y.apply(this,arguments)||this;r.disableDeselectEvent=!1;r.modern=_.N("web_modern_typography");r.useChipShape=_.N("web_chip_shape_defrag");r.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return r};
_.t(u4,_.y);_.l=u4.prototype;_.l.beforeRegister=function(){_.N("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.l.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.l.onSelectChipCommand=function(r){if(!this.selected&&this.data&&(r=_.F(r,Ies),r.targetId&&r.targetId===this.data.targetId))this.onTap()};
_.l.onFilterChipTransformCommand=function(r){if(!this.selected&&this.data){var f;(r=(f=_.F(r,V2V))==null?void 0:f.chipUniqueId)&&r===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.l.dataChanged=function(){var r=this;_.UC(this,function(){r.data&&r.data.isSelected&&!r.selected&&(r.scrollChipIntoView(),r.onTap())})};
_.l.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.l.computeChipStyle=function(r){return r!=null?r:"STYLE_DEFAULT"};
_.l.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.Bj(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.Bj(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 r=_.a().resolve(_.ZY(_.nF));r&&r.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.l.scrollChipIntoView=function(){_.kA(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.OC.Object.defineProperties(u4.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return iku({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
u4.prototype.onFocus=u4.prototype.onFocus;u4.prototype.onTap=u4.prototype.onTap;u4.prototype.selectionChanged=u4.prototype.selectionChanged;u4.prototype.dataChanged=u4.prototype.dataChanged;_.A([_.J(_.gx),_.B("design:type",Object)],u4.prototype,"ironButtonState",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],u4.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],u4.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],u4.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.dx),_.B("design:type",Object)],u4.prototype,"ironA11yKeysBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],u4.prototype,"disableDeselectEvent",void 0);_.A([_.K(),_.B("design:type",Object)],u4.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("data.icon"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],u4.prototype,"hasIcon",null);
_.A([_.K({reflectToAttribute:!0}),_.R("data.uniqueId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],u4.prototype,"isGnomeChip",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],u4.prototype,"modern",void 0);_.A([_.K({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.B("design:type",String)],u4.prototype,"chipStyle",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],u4.prototype,"selected",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],u4.prototype,"useChipShape",void 0);_.A([_.R("data","selected"),_.B("design:type",Object),_.B("design:paramtypes",[])],u4.prototype,"chipShapeData",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],u4.prototype,"dataChanged",null);_.A([_.Bt("selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],u4.prototype,"selectionChanged",null);
_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],u4.prototype,"onTap",null);_.A([_.kO("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],u4.prototype,"onFocus",null);u4=_.A([_.zX({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],u4);
_.Q(u4,"yt-chip-cloud-chip-renderer",function(){if(WET===void 0){var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;cDs===void 0&&(cDs=document.createElement("template"));var C=cDs;I.call(f,C.content.cloneNode(!0),r.content.firstChild);WET=r}r=WET;return r},{mode:2});var DA=function(){var r=_.y.apply(this,arguments)||this;r.isDarkTheme=!1;r.notSticky=!1;r.transparentBackground=!1;r.shouldHide=!1;r.disableSticky=!1;r.fluidWidth=!1;r.isClipList=!1;r.defaultChipIndex=0;r.isPlaylist=!1;r.playlistVotingAnimationEnabled=_.N("web_enable_voting_animation");r.toolbarHeight=0;r.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return r};
_.t(DA,_.y);_.l=DA.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 r=this;document.addEventListener("scroll",_.GF(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var f;this.toolbarHeight=((f=document.querySelector("ytd-masthead"))==null?void 0:f.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(I){r.handleIntersect(I)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){r.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.l.detached=function(){var r;(r=this.intersectionObserver)==null||r.disconnect();var f;(f=this.resizeObserver)==null||f.disconnect();document.removeEventListener("scroll",_.GF(this,this.updateChipBarWidthAndTop))};
_.l.dataChanged=function(){var r=this,f,I,C;((C=_.F((f=this.data)==null?void 0:(I=f.contents)==null?void 0:I[0],Fiq))==null?void 0:C.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var Y=this.findSelectedChipIndex();this.selectedIndex!==Y&&(this.selectedIndex=-1);_.UC(this,function(){r.selectedIndex=Y;r.updating=!1;r.ytScrollableChipCloudBehavior.reset()})};
_.l.findSelectedChipIndex=function(){var r;if((r=this.data)==null||!r.contents)return 0;r=this.data.contents;for(var f=0;f<r.length;f++){var I=void 0;if((I=_.F(r[f],Fiq))==null?0:I.isSelected)return f}return 0};
_.l.computeStyle=function(r){return r};
_.l.handleChipCloudChipSelectAction=function(r){r=this.JSC$13840_chipsSelector.indexOf(r);r>-1&&this.JSC$13840_chipsSelector.selectIndex(r)};
_.l.handleChipCloudChipDeselectAction=function(){if(_.N("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var r,f,I,C=(I=_.F((r=this.data)==null?void 0:(f=r.contents)==null?void 0:f[0],Fiq))==null?void 0:I.navigationEndpoint;C&&_.Bj(this.hostElement,"yt-browse-section-list-reload-endpoint",[C]);this.JSC$13840_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.l.onGuideIsExpandedChanged=function(){var r=this.ytScrollableChipCloudBehavior;_.UC(r,r.setContainerWidthDiff);qD(this.ytScrollableChipCloudBehavior)};
_.l.onResize=function(){var r=this.ytScrollableChipCloudBehavior;_.UC(r,r.setContainerWidthDiff);qD(this.ytScrollableChipCloudBehavior)};
_.l.onDarkModeToggledAction=function(r){this.isDarkTheme=r};
_.l.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.l.handleIntersect=function(r){_.N("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||r[0].intersectionRatio===1)};
_.l.updateDimensions=function(){var r=this.ytRendererBehavior.parentComponent;if(r){var f,I=(f=r.headerElement)!=null?f:r;_.Zh(this.hostElement,{"--ytd-rich-grid-chips-bar-width":I.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.l.updateSelectedIndexFromBinding=function(r){this.selectedIndex=r.detail.value};
_.l.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var r;(r=this.sortFilterHeaderRendererElement)==null||r.setAttribute("is-playlist-page-with-filters","")}};
_.l.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.kI({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.OC.Object.defineProperties(DA.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 r,f,I=(r=this.data)==null?void 0:(f=r.contents)==null?void 0:f.find(function(C){return _.F(C,cP4)});
return{sortFilterHeaderRenderer:_.F(I,cP4)}}}});
DA.prototype.dispatchChipBarIsSticky=DA.prototype.dispatchChipBarIsSticky;DA.prototype.isPlaylistPageChanged=DA.prototype.isPlaylistPageChanged;DA.prototype.updateChipBarWidthAndTop=DA.prototype.updateChipBarWidthAndTop;DA.prototype.onResize=DA.prototype.onResize;DA.prototype.onGuideIsExpandedChanged=DA.prototype.onGuideIsExpandedChanged;DA.prototype.dataChanged=DA.prototype.dataChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],DA.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],DA.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],DA.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.Pq),_.B("design:type",Object)],DA.prototype,"ironResizableBehavior",void 0);_.A([_.J(),_.B("design:type",BO)],DA.prototype,"ytScrollableChipCloudBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],DA.prototype,"ytdReduxBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],DA.prototype,"data",void 0);_.A([_.K({value:0}),_.B("design:type",Number)],DA.prototype,"selectedIndex",void 0);_.A([_.K({value:320}),_.B("design:type",Number)],DA.prototype,"scrollDistance",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],DA.prototype,"isDarkTheme",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],DA.prototype,"notSticky",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],DA.prototype,"transparentBackground",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.B("design:type",String)],DA.prototype,"componentStyle",void 0);_.A([_.K({selector:_.TaU}),_.B("design:type",Boolean)],DA.prototype,"guideIsExpanded",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],DA.prototype,"shouldHide",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],DA.prototype,"disableSticky",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],DA.prototype,"fluidWidth",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],DA.prototype,"isClipList",void 0);_.A([_.K(),_.B("design:type",Object)],DA.prototype,"defaultChipIndex",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],DA.prototype,"isPlaylist",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],DA.prototype,"playlistVotingAnimationEnabled",void 0);_.A([_.uA("#chips"),_.B("design:type",Object)],DA.prototype,"JSC$13840_chipsSelector",void 0);_.A([_.uA("ytd-sort-filter-header-renderer"),_.B("design:type",HTMLElement)],DA.prototype,"sortFilterHeaderRendererElement",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],DA.prototype,"updating",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DA.prototype,"dataChanged",null);_.A([_.Bt("guideIsExpanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DA.prototype,"onGuideIsExpandedChanged",null);_.A([_.kO("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DA.prototype,"onResize",null);
_.A([_.YN("isChannelPageGrid","disableSticky","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DA.prototype,"updateChipBarWidthAndTop",null);_.A([_.R("componentStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],DA.prototype,"isChannelPageGrid",null);_.A([_.R("componentStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],DA.prototype,"isHashtagLandingPage",null);
_.A([_.Bt("isPlaylistPage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DA.prototype,"isPlaylistPageChanged",null);_.A([_.R("componentStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],DA.prototype,"isPlaylistPage",null);_.A([_.R("componentStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],DA.prototype,"isDisableDeselectEvent",null);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],DA.prototype,"sortFilterHeaderRendererData",null);_.A([_.K({reflectToAttribute:!0,selector:_.jxK}),_.B("design:type",String)],DA.prototype,"frostedGlassMode",void 0);_.A([_.Bt("notSticky"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DA.prototype,"dispatchChipBarIsSticky",null);DA=_.A([_.U({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],DA);
_.Q(DA,"ytd-feed-filter-chip-bar-renderer",function(){if(TCB!==void 0)return TCB;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return TCB=r},{mode:1});var JD3;var j44=_.Hc(function(r){var f=r.data;var I=r.buttonIndex;var C=r.selectedIndex;var Y=r.onSelect;var V=function(){return I()===C()},S=function(){var w,n;
return(n=(w=f().text)==null?void 0:w.content)!=null?n:""};
_.IC(function(){});
r=_.jO();var h=_.IC(function(){Y(f().onSubmitCommand);return!1});
return _.p("yt-toggleable-image-button-view-model",{class:function(){var w={};w=(w["toggleable-image-button-view-model-wiz"]=!0,w[""]=!0,w["toggleable-image-button-view-model-wiz__semi-transparent"]=C()!==-1&&!V(),w);return _.D5(w)},
tabindex:0,"aria-label":S,"aria-pressed":V,role:"button","on:keydown":r,"on:click":h},_.p(_.M,{cond:function(){return f().logo},
then:function(w){return _.p(_.J3,{data:w,className:function(){var n={};n=(n["toggleable-image-button-view-model-wiz__image"]=!0,n["toggleable-image-button-view-model-wiz__circular-radius"]=!(!f().backgroundColor||!f().backgroundColorDarkMode),n["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(V()&&f().backgroundColor&&f().backgroundColorDarkMode),n);return _.D5(n)},
alt:S,useWidth:!1,style:function(){if(V()&&f().backgroundColor&&f().backgroundColorDarkMode){var n=ab(Number(f().backgroundColorDarkMode),"1");var d=ab(Number(f().backgroundColor),"1");n="background: linear-gradient(180deg,"+n+","+d+") border-box;"}else n="";return n}})}}),_.p(_.xZ,{model:{borderRadius:"16px"}}),_.p("p",{class:function(){var w={};
w=(w["toggleable-image-button-view-model-wiz__label"]=!0,w["toggleable-image-button-view-model-wiz__bold-text"]=V(),w);return _.D5(w)}},_.p(_.wW,{text:function(){return f().text}})))},"xb");
j44.idomCompat=!0;var iCB=_.Hc(function(r){var f=r.data;r=_.E(_.ld({index:-1,command:{}},void 0,"Zcqtsb"));var I=r.next().value,C=r.next().value;return _.p("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.p("div",{class:"nudge-form-view-model-wiz__form-options"},_.p(_.X1,{data:function(){return f().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(Y,V){return _.p(j44,{data:Y.data,buttonIndex:V,selectedIndex:function(){return I().index},
onSelect:function(S){C({index:V(),command:S})}})}})),_.p(_.wW,{text:function(){return f().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.p("div",{class:"nudge-form-view-model-wiz__submit"},_.p(_.X1,{data:function(){return f().submitButton}},{buttonViewModel:function(Y){return _.p(HCC,{data:Y.data,
isDisabled:function(){return I().index===-1},
onClick:function(){_.F2(I().command)}})}})))},"yb");
iCB.idomCompat=!0;var HCC=_.Hc(function(r){var f=_.hR(function(){return Object.assign({},r.data(),{state:r.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.p(_.LF,{data:f,onClick:r.onClick})},"zb");_.Kv(iCB,"yt-nudge-form-view-model",{props:{data:_.jv}});var ry=function(){var r=_.y.apply(this,arguments)||this;r.roundedContainer=!0;r.buttonUpdate=_.N("web_modern_buttons");r.isDarkMode=!1;r.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return r};
_.t(ry,_.y);_.l=ry.prototype;_.l.computeNudgeStyle=function(r){return r?"modernized-nudge":""};
_.l.handleDarkModeToggledAction=function(r){this.isDarkMode=r};
_.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(r){return r?!!r.applyModernizedStyle&&!!r.enableHorizontalButtons&&!!r.secondaryButton:!1};
_.OC.Object.defineProperties(ry.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var r,f;return(f=(r=this.data)==null?void 0:r.backgroundStyle)!=null?f:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var r,f;return(f=(r=this.data)==null?void 0:r.contentsLocation)!=null?f:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null?0:r.lightIconImage)}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ry.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ry.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],ry.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],ry.prototype,"actionHandlerBehavior",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("isHideEnclosingAction"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ry.prototype,"isHidden",null);_.A([_.K(),_.B("design:type",Object)],ry.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ry.prototype,"roundedContainer",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ry.prototype,"buttonUpdate",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.B("design:type",String)],ry.prototype,"nudgeStyle",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("data.trimStyle"),_.B("design:type",String),_.B("design:paramtypes",[])],ry.prototype,"trimStyle",null);_.A([_.K({reflectToAttribute:!0}),_.R("data.backgroundStyle"),_.B("design:type",String),_.B("design:paramtypes",[])],ry.prototype,"backgroundStyle",null);
_.A([_.K({reflectToAttribute:!0}),_.R("data.contentsLocation"),_.B("design:type",String),_.B("design:paramtypes",[])],ry.prototype,"contentsLocation",null);_.A([_.K({reflectToAttribute:!0}),_.R("data.disableDropShadow"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ry.prototype,"noShadow",null);_.A([_.K({reflectToAttribute:!0}),_.R("data.lightIconImage"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ry.prototype,"noIcon",null);
_.A([_.K({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.B("design:type",Boolean)],ry.prototype,"isHorizontalButtons",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Object)],ry.prototype,"isDarkMode",void 0);ry=_.A([_.U({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],ry);
_.Q(ry,"ytd-feed-nudge-renderer",function(){if(JD3!==void 0)return JD3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return JD3=r},{mode:_.QQ("kevlar_poly_si_batch_j028")?1:2});var ROU;var vsq;var fn=function(){var r=_.y.apply(this,arguments)||this;r.collapsed=!1;r.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return r};
_.t(fn,_.y);fn.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"}}}};
fn.prototype.handleRatingSelect=function(){var r;((r=this.data)==null?0:r.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
fn.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],fn.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],fn.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],fn.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],fn.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.TD),_.B("design:type",Object)],fn.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],fn.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],fn.prototype,"collapsed",void 0);fn=_.A([_.U({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],fn);
_.Q(fn,"ytd-slimline-survey-renderer",function(){if(vsq!==void 0)return vsq;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return vsq=r},{mode:1});var KEX;var Iy=function(){return _.y.apply(this,arguments)||this};
_.t(Iy,_.y);Iy.prototype.maybeGetBackgroundColor=function(r){return this.isDarkMode?r.section2Color:r.section3Color};
Iy.prototype.colorPaletteChanged=function(){var r=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;r&&(r==null?0:r.secondaryTitleColor)&&this.maybeGetBackgroundColor(r)?(this.hostElement.style.backgroundColor=_.MG(this.maybeGetBackgroundColor(r)),this.hostElement.style.color=_.MG(r.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Iy.prototype.colorPaletteChanged=Iy.prototype.colorPaletteChanged;_.A([_.J(_.PH),_.B("design:type",Object)],Iy.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Iy.prototype,"data",void 0);_.A([_.K({selector:function(r){return r.ui.darkModeIsEnabled}}),
_.B("design:type",Boolean)],Iy.prototype,"isDarkMode",void 0);_.A([_.K(),_.B("design:type",Object)],Iy.prototype,"lightColorPalette",void 0);_.A([_.K(),_.B("design:type",Object)],Iy.prototype,"darkColorPalette",void 0);_.A([_.Bt("darkColorPalette","lightColorPalette","data","isDarkMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Iy.prototype,"colorPaletteChanged",null);Iy=_.A([_.U({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Iy);
_.Q(Iy,"ytd-endorsement-header-renderer",function(){if(KEX!==void 0)return KEX;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return KEX=r},{mode:1});_.Kv(_.dN,"yt-decorated-avatar-view-model",{props:{data:_.jv,className:_.jv}});var Cn=function(){var r=_.y.apply(this,arguments)||this;r.fullHeight=_.N("web_rich_grid_media_full_height");r.showChannelAvatar=!0;r.hasPlaylistThumbnail=!1;r.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};r.prepareThumbnailForPageTransition=function(){_.N("web_thumbnail_to_watch_transition")&&(r.thumbnail.style.viewTransitionName="thumbnail-to-watch",r.cleanupThumbnailAfterPageTransition(r.thumbnail))};
return r};
_.t(Cn,_.y);_.l=Cn.prototype;
_.l.configureRendererStamper=function(){return{lazyLoadMenu:It,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 r=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.N("kevlar_modern_downloads_page")||!r};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13866_inlinePreviewHoverListener=O0({mediaRenderer:this,lockupElement:this.JSC$13866_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.l.getVideoPreviewOpts=function(){var r={},f;if((f=this.data)==null?0:f.multipleInlinePlaybackEndpoint)r=jW3;this.isRadio&&(r=J$3);return _.N("web_thumbnail_to_watch_transition")?Object.assign({},r,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):r};
_.l.clearInlinePreviewHoverListeners=function(){var r;(r=this.JSC$13866_inlinePreviewHoverListener)==null||rY(r)};
_.l.getOwner=function(){var r,f,I;return((r=this.data)==null?void 0:(f=r.channelThumbnailSupportedRenderers)==null?void 0:f.channelThumbnailWithLinkRenderer)||_.F((I=this.data)==null?void 0:I.showProviderChannelThumbnail,M23)};
_.l.updateLockupSize=function(){var r;((r=this.getOwner())==null?0:r.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.l.getFeedbackEndpoint=function(r){if(_.F(r,_.LG))return r;var f,I;r=(I=(f=_.F(r,_.Il))==null?void 0:f.commands)!=null?I:[];f=_.E(r);for(I=f.next();!I.done;I=f.next())if(I=this.getFeedbackEndpoint(I.value))return I;return null};
_.l.computeNavigationEndpoint=function(r){return CCl(r==null?void 0:r.navigationEndpoint)};
_.l.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var r=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(r)!==JSON.stringify(this.data)&&this.set("data",r)}};
_.l.onDataChanged=function(){var r=this,f=this.getOwner();if(f){this.set("data.owner",f);var I,C,Y,V,S,h=((I=this.data)==null?void 0:(C=I.shortBylineText)==null?void 0:(Y=C.runs)==null?void 0:(V=Y[0])==null?void 0:V.text)||((S=f.name)==null?void 0:S.simpleText);this.set("data.owner.title",h)}var w,n,d,z,g,X;f=((w=this.data)==null?void 0:(n=w.thumbnailRenderer)==null?void 0:n.playlistVideoThumbnailRenderer)||((d=this.data)==null?void 0:(z=d.thumbnailRenderer)==null?void 0:z.playlistCustomThumbnailRenderer)||
((g=this.data)==null?void 0:(X=g.thumbnailRenderer)==null?void 0:X.showCustomThumbnailRenderer);var P;((P=this.data)==null?0:P.thumbnail)||!f||this.set("data.thumbnail",f.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){r.updateLockupSize()});
var W;if(w=((W=this.data)==null?void 0:W.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(w);var m;((m=this.dismissActionToReplayEntity)==null?0:m.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.l.onHiddenChanged=function(){this.updateLockupSize()};
_.l.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.Bj(this.hostElement,"yt-terminate-video-preview-action");else{var r;(r=this.videoTitleLink)==null||r.focus()}};
_.l.metadataColorChanged=function(){var r;if(this.metadataColor&&((r=this.videoTitle)==null?0:r.style))this.videoTitle.style.color=_.MG(this.metadataColor);else{var f,I;!this.metadataColor&&((f=this.videoTitle)==null?0:(I=f.style)==null?0:I.color)&&(this.videoTitle.style.color="")}};
_.l.onDetailsClick=function(r){var f=this.computedNavigationEndpoint;f&&(_.iB(_.JN(r),this.hostElement,["A","BUTTON"])||_.kA(this.hostElement,"yt-navigate",{endpoint:f}))};
_.l.cleanupThumbnailAfterPageTransition=function(r){_.DGK(document,"yt-page-type-changed",function(){r.style.viewTransitionName=""})};
_.l.onRendererTap=function(){this.prepareThumbnailForPageTransition();var r,f,I=((r=this.data)==null?void 0:r.serviceEndpoint)||this.getFeedbackEndpoint((f=this.data)==null?void 0:f.navigationEndpoint);I&&_.F(I,_.LG)&&this.ytComponentBehavior.resolveCommand(I)};
_.l.onMouseDown=function(r){var f=r.target,I=this.computedNavigationEndpoint,C;r=f.href||((C=_.F(I==null?void 0:I.commandMetadata,_.oo))==null?void 0:C.url);C=f.data||I;r&&C&&EFB(r,C)};
_.l.computeVideoTitleText=function(){var r;if((r=this.data)==null?0:r.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.l.computeHasPlaylistThumbnail=function(r){var f,I,C,Y,V;if((((f=r.thumbnailRenderer)==null?0:f.playlistVideoThumbnailRenderer)||((I=r.thumbnailRenderer)==null?0:I.playlistCustomThumbnailRenderer)||((C=r.thumbnailRenderer)==null?0:C.showCustomThumbnailRenderer)||((Y=r.thumbnailRenderer)==null?0:Y.playlistVideoThumbnailRenderer)||((V=r.thumbnailRenderer)==null?0:V.playlistCustomThumbnailRenderer))&&r.thumbnailOverlays)for(f=0;f<r.thumbnailOverlays.length;f++)if(I=void 0,(I=r.thumbnailOverlays[f])==
null?0:I.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.OC.Object.defineProperties(Cn.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.N("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var r;return(r=this.data)==null?void 0:r.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var r;return(r=this.data)==null?void 0:r.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.JSC$13866_inlinePreviewHoverListener)==null?0:at(r))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.CJ(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.data)==null?void 0:r.videoId)||((f=this.data)==null?void 0:f.playlistId)||""}}});
Cn.prototype.onMouseDown=Cn.prototype.onMouseDown;Cn.prototype.metadataColorChanged=Cn.prototype.metadataColorChanged;Cn.prototype.onIsDismissedChanged=Cn.prototype.onIsDismissedChanged;Cn.prototype.onHiddenChanged=Cn.prototype.onHiddenChanged;Cn.prototype.onDataChanged=Cn.prototype.onDataChanged;Cn.prototype.handleReloadDownloadsInfo=Cn.prototype.handleReloadDownloadsInfo;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Cn.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Cn.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Cn.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],Cn.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.J(_.jW),_.B("design:type",Object)],Cn.prototype,"ytdLockupBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],Cn.prototype,"ytdReduxBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],Cn.prototype,"data",void 0);_.A([_.K(),_.B("design:type",String)],Cn.prototype,"entitySelectorType",void 0);_.A([_.K(),_.B("design:type",Boolean)],Cn.prototype,"noEndpoints",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],Cn.prototype,"isRadio",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.ar}),_.B("design:type",Boolean)],Cn.prototype,"miniMode",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Cn.prototype,"fullHeight",void 0);
_.A([_.K(),_.B("design:type",Boolean)],Cn.prototype,"showDarkVideoMetadata",void 0);_.A([_.K(),_.B("design:type",Boolean)],Cn.prototype,"showLightVideoMetadata",void 0);_.A([_.K(),_.B("design:type",Number)],Cn.prototype,"metadataColor",void 0);_.A([_.K(),_.B("design:type",Object)],Cn.prototype,"showChannelAvatar",void 0);_.A([_.K(),_.B("design:type",Boolean)],Cn.prototype,"hidden",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],Cn.prototype,"showYtInteraction",void 0);
_.A([_.K(),_.B("design:type",String)],Cn.prototype,"dismissedContentId",void 0);_.A([_.K({selectorArgs:["dismissedContentId"],selector:ApE}),_.B("design:type",Object)],Cn.prototype,"dismissActionToReplayEntity",void 0);
_.A([_.K({selectorArgs:["entitySelectorType","mediaId"],selector:function(r,f,I){if(_.N("kevlar_modern_downloads_page")&&I&&f&&f!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(f){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var C=v$$(r,I);if(C){f=_.FN(r,I);var Y=tQ(r,I),V=kKU(r,I);r=T3(r,I);var S=tNE(C,f,Y,V);Y=S.shortViewCountText;var h=S.publishedTimeText;S=S.badges;var w=r>0;V=FZd(C,f,V,r);C=_.hQ(f)||f==="TRANSFER_STATE_FAILED"||f==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!xx(C.policyEntity)?
void 0:fiU(I,r,C.videoEntity.lengthSeconds);f==="TRANSFER_STATE_PAUSED_BY_USER"&&I&&!_.N("dl_resume_click_killswitch")&&(C={offlineVideoEndpoint:{videoId:I,action:"ACTION_RESUME"}});I={shortViewCountText:Y,publishedTimeText:h,badges:S,isWatched:w,navigationEndpoint:C,thumbnailOverlays:V}}else I=void 0;return I;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(f=KRR(r,I))if(C=_.P1(r,I),V=_.yLd(r,I),C!=="TRANSFER_STATE_UNKNOWN"){I=PHE(f,C,V,I,JLP(r));break a}I=void 0}return I;default:_.t7(new _.nf("Error: entitySelectorType defined but not matched in selector.",
r,f))}}}),
_.B("design:type",Object)],Cn.prototype,"entityDrivenState",void 0);_.A([_.K({computed:"computeVideoTitleText(data)"}),_.B("design:type",Object)],Cn.prototype,"videoTitleText",void 0);_.A([_.K({computed:"computeHasPlaylistThumbnail(data)"}),_.B("design:type",Object)],Cn.prototype,"hasPlaylistThumbnail",void 0);_.A([_.K({computed:"computeNavigationEndpoint(data)"}),_.B("design:type",Object)],Cn.prototype,"computedNavigationEndpoint",void 0);
_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Cn.prototype,"typographyBump",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("typographyBump"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Cn.prototype,"typographyBumpV2",null);_.A([_.uA("#video-title"),_.B("design:type",HTMLElement)],Cn.prototype,"videoTitle",void 0);_.A([_.uA("#video-title-link"),_.B("design:type",HTMLElement)],Cn.prototype,"videoTitleLink",void 0);
_.A([_.uA("#thumbnail"),_.B("design:type",HTMLElement)],Cn.prototype,"thumbnail",void 0);_.A([_.uA("#dismissible"),_.B("design:type",HTMLElement)],Cn.prototype,"JSC$13866_dismissibleMedia",void 0);_.A([_.R("data.menu"),_.B("design:type",Object),_.B("design:paramtypes",[])],Cn.prototype,"lazyLoadMenu",null);_.A([_.R("data.menu"),_.B("design:type",Object),_.B("design:paramtypes",[])],Cn.prototype,"immediateLoadMenu",null);
_.A([_.YN("entityDrivenState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cn.prototype,"handleReloadDownloadsInfo",null);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cn.prototype,"onDataChanged",null);_.A([_.YN("hidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cn.prototype,"onHiddenChanged",null);
_.A([_.Bt("isDismissed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cn.prototype,"onIsDismissedChanged",null);_.A([_.Bt("metadataColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cn.prototype,"metadataColorChanged",null);_.A([_.kO("mousedown"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Cn.prototype,"onMouseDown",null);
_.A([_.R("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Cn.prototype,"isHovered",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Cn.prototype,"useAvatar",null);_.A([_.R("data","entitySelectorType"),_.B("design:type",String),_.B("design:paramtypes",[])],Cn.prototype,"mediaId",null);Cn=_.A([_.U({is:"ytd-rich-grid-media",disableElementRegistration:!0})],Cn);
var yD8=_.os()(Cn,"ytd-rich-grid-media",function(){if(ROU!==void 0)return ROU;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return ROU=r},{mode:_.QQ("kevlar_poly_si_batch_j072")?1:2});var UEs;var YK=function(){var r=_.y.apply(this,arguments)||this;r.removeMaxWidth=!0;r.insetMetadata=!1;return r};
_.t(YK,_.y);_.l=YK.prototype;_.l.configureRendererStamper=function(){return{innerMenu:It,outerMenu:Object.assign({},It,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.onDataChanged=function(){var r,f=((r=this.data)==null?void 0:r.trackingParams)||"";f&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(f));var I;((I=this.dismissActionToReplayEntity)==null?0:I.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$13871_inlinePreviewHoverListener=O0({mediaRenderer:this,lockupElement:this.JSC$13871_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:nDE})};
_.l.clearInlinePreviewHoverListeners=function(){var r;(r=this.JSC$13871_inlinePreviewHoverListener)==null||rY(r)};
_.l.onRendererTap=function(){var r,f,I=(r=this.data)==null?void 0:(f=r.serviceEndpoints)==null?void 0:f[0];_.F(I,_.LG)&&this.componentBehavior.resolveCommand(I)};
_.l.onDetailsClick=function(r){var f,I=(f=this.data)==null?void 0:f.navigationEndpoint;I&&(_.iB(_.JN(r),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(I))};
_.l.onShow=function(){var r=this.data;r.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(r.onFirstVisibleCommand),delete r.onFirstVisibleCommand)};
_.OC.Object.defineProperties(YK.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var r;return this.insetMetadata?void 0:(r=this.data)==null?void 0:r.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var r;return this.insetMetadata?(r=this.data)==null?void 0:r.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var r=this.data;if(r!=null&&r.badge&&(r=_.F(r.badge,zbB))){var f,I,C;return[{metadataBadgeRenderer:{label:((f=r.label)==null?void 0:(I=f.runs)==null?void 0:I[0].text)||((C=r.label)==null?void 0:C.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var r=this.data;return Object.assign({},r.headline,{accessibility:r.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return this.isSlimShort?(r=this.computedTitle)==null?void 0:(f=r.accessibility)==null?void 0:(I=f.accessibilityData)==null?void 0:I.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.JSC$13871_inlinePreviewHoverListener)==null?0:at(r))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
YK.prototype.onDataChanged=YK.prototype.onDataChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],YK.prototype,"componentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.jW),_.B("design:type",Object)],YK.prototype,"ytdLockupBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],YK.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.TD),_.B("design:type",Object)],YK.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],YK.prototype,"ytdReduxBehavior",void 0);_.A([_.uA("ytd-thumbnail"),_.B("design:type",HTMLElement)],YK.prototype,"thumbnail",void 0);_.A([_.uA("#dismissible"),_.B("design:type",HTMLElement)],YK.prototype,"JSC$13871_dismissibleMedia",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],YK.prototype,"removeMaxWidth",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],YK.prototype,"insetMetadata",void 0);_.A([_.K(),_.B("design:type",String)],YK.prototype,"dismissedContentId",void 0);_.A([_.K({selectorArgs:["dismissedContentId"],selector:ApE}),_.B("design:type",Object)],YK.prototype,"dismissActionToReplayEntity",void 0);_.A([_.R("insetMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],YK.prototype,"thumbnailObjectFit",null);
_.A([_.R("data","insetMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],YK.prototype,"innerMenu",null);_.A([_.R("data","insetMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],YK.prototype,"outerMenu",null);_.A([_.K(),_.B("design:type",Object)],YK.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.ar}),_.B("design:type",Boolean)],YK.prototype,"miniMode",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YK.prototype,"onDataChanged",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],YK.prototype,"shortsBadges",null);_.A([_.R("data"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],YK.prototype,"isShort",null);
_.A([_.R("data"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],YK.prototype,"isSlimShort",null);_.A([_.R("data","isShort"),_.B("design:type",Object),_.B("design:paramtypes",[])],YK.prototype,"computedTitle",null);_.A([_.R("isSlimShort","computedTitle"),_.B("design:type",Object),_.B("design:paramtypes",[])],YK.prototype,"computedAccessibilityLabel",null);
_.A([_.R("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],YK.prototype,"isHovered",null);YK=_.A([_.U({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],YK);
_.Q(YK,"ytd-rich-grid-slim-media",function(){if(UEs!==void 0)return UEs;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return UEs=r},{mode:_.QQ("kevlar_poly_si_batch_j063")?1:2});var s48;var OCg;var lt=function(){var r=_.y.apply(this,arguments)||this;r.darkerDarkTheme=_.N("web_darker_dark_theme");return r};
_.t(lt,_.y);lt.prototype.computeIcon=function(r){return r&&r.iconType?"yt-sys-icons:"+r.iconType.toLowerCase():""};
lt.prototype.onMouseEnter=function(){this.isHovered=!0};
lt.prototype.onMouseLeave=function(){this.isHovered=!1};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],lt.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],lt.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],lt.prototype,"data",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],lt.prototype,"isHovered",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],lt.prototype,"darkerDarkTheme",void 0);lt=_.A([_.U({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],lt);
_.Q(lt,"ytd-expand-on-hover-card-renderer",function(){if(OCg!==void 0)return OCg;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return OCg=r},{mode:1});var os_,Q4B=function(){if(os_!==void 0)return os_;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return os_=r};_.gW("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Vz=function(){var r=_.y.apply(this,arguments)||this;r.compactStyle=!1;r.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return r};
_.t(Vz,_.y);_.l=Vz.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(r){return!(r&&r.subscriberCountText&&r.videoCountText)||this.compactStyle};
_.l.hasDualButtons=function(r){return r&&r.purchaseButton&&r.subscribeButton};
_.l.backgroundColorChanged=function(){if(this.data!==void 0){var r=this.data.backgroundColor;this.isDarkTheme&&(r=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=r!=null?_.MG(r):"transparent"}};
_.l.onDarkModeToggledAction=function(r){this.isDarkTheme=r};
_.l.onTap=function(r){var f,I,C=((f=this.data)==null?void 0:f.navigationEndpoint)||((I=this.data)==null?void 0:I.serviceEndpoint);_.F(C,_.DK)&&(C&&_.a().resolve(_.Gg).resolveCommand(C,{form:{element:this.hostElement}}),r.preventDefault())};
_.l.computeChannelEndpoint=function(r){return _.F(r,_.DK)?null:r};
_.l.computeHrefEndpoint=function(r){return _.F(r,_.DK)?null:this.componentBehavior.computeHref_(r)};
_.l.computeChannelRendererStyle=function(r){return r};
_.l.computeIconSize=function(r){return r?108:136};
_.OC.Object.defineProperties(Vz,{template:{configurable:!0,enumerable:!0,get:function(){return Q4B()}}});
Vz.prototype.backgroundColorChanged=Vz.prototype.backgroundColorChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Vz.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Vz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.RO),_.B("design:type",Object)],Vz.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Vz.prototype,"componentBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],Vz.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],Vz.prototype,"isDarkTheme",void 0);_.A([_.K({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.B("design:type",String)],Vz.prototype,"channelRendererStyle",void 0);_.A([_.K({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Vz.prototype,"dualButtons",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.N("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],Vz.prototype,"useBiggerThumbs",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.qC("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],Vz.prototype,"biggerThumbStyle",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Vz.prototype,"compactStyle",void 0);_.A([_.Bt("data","isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vz.prototype,"backgroundColorChanged",null);Vz=_.A([_.U({is:"ytd-channel-renderer",disableElementRegistration:!0})],Vz);_.Q(Vz,"ytd-channel-renderer",function(){return Q4B()},{mode:1});var ADD;var ZCs;_.gW("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var EB=function(){var r=_.y.apply(this,arguments)||this;r.displayItemCount=2;r.collections=_.N("web_modern_collections_v2");r.hasPlaylistThumbnail=!1;r.stackThumbnailSize="large";return r};
_.t(EB,_.y);_.l=EB.prototype;_.l.attached=function(){this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.l.computeFirstVideos=function(r,f){return r&&f?r.slice(0,f):[]};
_.l.computeThumbnailWidth=function(r,f){return r?f==="BIG"?500:f==="MASSIVE"?600:f==="MEDIUM"?450:420:360};
_.l.computeThumbnailHeight=function(r,f){return r?f==="BIG"?280:f==="MASSIVE"?337:234:202};
_.l.clearInlinePreviewHoverListeners=function(){var r;(r=this.JSC$13884_inlinePreviewHoverListener)==null||rY(r)};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13884_inlinePreviewHoverListener=O0({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:jW3,thumbnailElement:this.thumbnail})};
_.l.computeHasPlaylistThumbnail=function(r){var f,I;if((((f=r.thumbnailRenderer)==null?0:f.playlistVideoThumbnailRenderer)||((I=r.thumbnailRenderer)==null?0:I.playlistCustomThumbnailRenderer))&&r.thumbnailOverlays)for(f=0;f<r.thumbnailOverlays.length;f++)if(I=void 0,(I=r.thumbnailOverlays[f])==null?0:I.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.OC.Object.defineProperties(EB.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.JSC$13884_inlinePreviewHoverListener)==null?0:at(r))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
EB.prototype.dataChanged=EB.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],EB.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.jW),_.B("design:type",Object)],EB.prototype,"ytdLockupBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],EB.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],EB.prototype,"displayItemCount",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.N("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],EB.prototype,"useBiggerThumbs",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.qC("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],EB.prototype,"biggerThumbsStyle",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],EB.prototype,"collections",void 0);_.A([_.K({computed:"computeHasPlaylistThumbnail(data)"}),_.B("design:type",Object)],EB.prototype,"hasPlaylistThumbnail",void 0);_.A([_.K(),_.B("design:type",String)],EB.prototype,"stackThumbnailSize",void 0);_.A([_.uA("ytd-thumbnail"),_.B("design:type",HTMLElement)],EB.prototype,"thumbnail",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EB.prototype,"dataChanged",null);_.A([_.R("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],EB.prototype,"isHovered",null);EB=_.A([_.U({is:"ytd-radio-renderer",disableElementRegistration:!0})],EB);
_.Q(EB,"ytd-radio-renderer",function(){if(ZCs!==void 0)return ZCs;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ZCs=r},{mode:_.QQ("kevlar_poly_si_batch_j058")?1:2});var G0q;_.gW("itemSectionRenderer","showRenderer","ytd-show-renderer");var SR=function(){return _.y.apply(this,arguments)||this};
_.t(SR,_.y);SR.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
SR.prototype.computeThumbnailWidth=function(r){return r?360:246};
SR.prototype.computeUseProminentThumbs=function(r){return r};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],SR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],SR.prototype,"data",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],SR.prototype,"isSearch",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.B("design:type",Boolean)],SR.prototype,"useProminentThumbs",void 0);SR=_.A([_.U({is:"ytd-show-renderer",disableElementRegistration:!0})],SR);
_.Q(SR,"ytd-show-renderer",function(){if(G0q!==void 0)return G0q;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return G0q=r},{mode:1});_.gW("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var xK=function(){var r=_.y.apply(this,arguments)||this;r.isRichGrid=!1;return r};
_.t(xK,_.y);xK.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"}}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],xK.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],xK.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],xK.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],xK.prototype,"isRichGrid",void 0);xK=_.A([_.U({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],xK);
_.Q(xK,"ytd-feed-entry-renderer",function(){if(ADD!==void 0)return ADD;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return ADD=r},{mode:1});var k0q;var ht=function(){return _.y.apply(this,arguments)||this};
_.t(ht,_.y);ht.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.A([_.J(_.PH),_.B("design:type",Object)],ht.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ht.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],ht.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ht.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.XN,value:3}),_.B("design:type",Number)],ht.prototype,"itemsPerRow",void 0);
ht=_.A([_.U({is:"ytd-link-card-renderer",disableElementRegistration:!0})],ht);
_.Q(ht,"ytd-link-card-renderer",function(){if(k0q!==void 0)return k0q;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return k0q=r},{mode:1});var BCU;var wy=function(){return _.y.apply(this,arguments)||this};
_.t(wy,_.y);_.l=wy.prototype;_.l.configureRendererStamper=function(){return{"data.menu":It,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.onRendererTap=function(r){if(!this.ytdDismissibleItemBehavior.isDismissed){var f,I=(f=this.data)==null?void 0:f.navigationEndpoint;I&&!_.iB(_.JN(r),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(I)?_.iB(_.JN(r),this.hostElement,["A"])||_.kA(this.hostElement,"yt-navigate",{endpoint:I}):this.ytComponentBehavior.resolveCommand(I,{}))}};
_.l.maybeComputeHref=function(r){return this.ytComponentBehavior.computeHref_(r,!0)};
_.l.getNavigationCommand=function(r){return this.isNavigationCommand(r)?r:null};
_.l.isNavigationCommand=function(r){return r?_.F(r,_.lA)||_.F(r,_.vj)||_.F(r,_.HR)?!0:!1:!1};
wy.prototype.onRendererTap=wy.prototype.onRendererTap;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],wy.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],wy.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],wy.prototype,"ytComponentBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],wy.prototype,"data",void 0);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],wy.prototype,"onRendererTap",null);wy=_.A([_.U({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],wy);
_.Q(wy,"ytd-lumiere-promo-item-image-renderer",function(){if(BCU!==void 0)return BCU;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return BCU=r},{mode:1});var qxX;var bt=function(){return _.y.apply(this,arguments)||this};
_.t(bt,_.y);bt.prototype.computeLandscapeThumbnail=function(){var r;return((r=this.data)==null?void 0:r.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],bt.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],bt.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.ar}),_.B("design:type",Boolean)],bt.prototype,"miniMode",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.XN}),_.B("design:type",Number)],bt.prototype,"itemsPerRow",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.B("design:type",Boolean)],bt.prototype,"landscapeThumbnail",void 0);bt=_.A([_.U({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],bt);
_.Q(bt,"ytd-lumiere-shelf-details-renderer",function(){if(qxX!==void 0)return qxX;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return qxX=r},{mode:_.QQ("kevlar_poly_si_batch_j076")?1:2});var ueD;var pn=function(){return _.y.apply(this,arguments)||this};
_.t(pn,_.y);pn.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],pn.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],pn.prototype,"data",void 0);pn=_.A([_.U({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],pn);
_.Q(pn,"ytd-primetime-promo-details-renderer",function(){if(ueD!==void 0)return ueD;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return ueD=r},{mode:1});var DEV;var nn=function(){return _.y.apply(this,arguments)||this};
_.t(nn,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],nn.prototype,"data",void 0);nn=_.A([_.U({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],nn);
_.Q(nn,"ytd-panel-show-style-metadata-renderer",function(){if(DEV!==void 0)return DEV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return DEV=r},{mode:1});var rOX;var dy=function(){return _.y.apply(this,arguments)||this};
_.t(dy,_.y);_.l=dy.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(r){if(r)return r.smallFormFactorBackgroundThumbnail||r.largeFormFactorBackgroundThumbnail};
_.l.maybeComputeHref=function(r){return this.ytComponentBehavior.computeHref_(r,!0)};
_.l.isNavigationCommand=function(r){return r?_.F(r,_.lA)||_.F(r,_.vj)||_.F(r,_.HR)?!0:!1:!1};
_.l.getNavigationCommand=function(r){return this.isNavigationCommand(r)?r:null};
dy.prototype.onPanelTap=dy.prototype.onPanelTap;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],dy.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],dy.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],dy.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],dy.prototype,"roundedContainer",void 0);_.A([_.K({reflectToAttribute:!0,value:_.N("web_modern_buttons")}),_.B("design:type",Boolean)],dy.prototype,"modernButtons",void 0);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dy.prototype,"onPanelTap",null);dy=_.A([_.U({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],dy);
_.Q(dy,"ytd-primetime-promo-panel-renderer",function(){if(rOX!==void 0)return rOX;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return rOX=r},{mode:1});_.Kv(_.Hc(function(r){r=_.jS(r,{data:{},useFullWidth:!1});var f=r.data,I=r.useFullWidth,C=function(){return f().caption},Y=function(){return f().image},V=function(){return _.aB(f().onTap)};
r={};r=_.qd("ytTeaserCardViewModelHost",(r.ytTeaserCardViewModelUseFullWidth=function(){return I()},r));
return _.p("teaser-card-view-model",{class:r},_.p(_.M,{cond:function(){return V()},
then:function(){return _.p(MIV,{className:"ytTeaserCardViewModelLink",command:V,forceNewState:!0,useATagConfig:!0},_.p("div",{class:"ytTeaserCardViewModelImageContainer"},_.p(_.M,{cond:Y,then:function(S){return _.p(_.J3,{data:S,className:"ytTeaserCardViewModelImage",alt:""})}})),_.p("p",{class:"ytTeaserCardViewModelCaption"},C))}}))},"Ab"),"teaser-card-view-model",{props:{data:_.jv,
useFullWidth:_.jv}});var fg4=new _.Go("RICH_GRID_VIDEO_RENDERER_TOKEN");_.Kv(_.Hc(function(r){var f=r.data;var I=r.showYtInteractionInContent;var C=function(){return!!f().selectableFeedback};
r=_.E(_.ld(!1,void 0,"nblDw"));var Y=r.next().value,V=r.next().value;_.$E(function(){var g=_.F(f().primaryButton,_.$4);(g==null?0:g.isToggled)&&V(g.isToggled)});
r=_.IC(function(g){if(!C())return!1;if(Y()){var X;var P=(X=f().selectableFeedback)==null?void 0:X.onDeselect}else{var W;P=(W=f().selectableFeedback)==null?void 0:W.onSelect}P&&_.F2(P,{form:{element:g.target}});V(!Y());if(g=_.F(f().primaryButton,_.$4))g.isToggled=Y();return!1});
var S=function(){if(!C()){var g,X=(g=f().loggingDirectives)==null?void 0:g.trackingParams;X&&_.lH(_.a().resolve(_.Ef),X)}},h=_.RZ$(),w=function(){var g;
return C()?(g=f().selectableFeedback)==null?void 0:g.a11yLabel:void 0},n=function(){return C()?{toggled:Y()}:{}},d=_.a().resolve(_.ZY(fg4)),z={};
return _.p("yt-feedback-item-renderer",{class:_.qd("ytFeedbackItemRendererHost",(z.ytFeedbackItemRendererSelectableFeedback=C,z)),"on:click":r,"on:keydown":h,title:w,"aria-label":w,"aria-pressed":function(){return C()?Y():void 0},
tabindex:function(){return C()?0:void 0},
role:function(){return C()?"button":void 0}},_.p("div",{class:"ytFeedbackItemRendererContentContainer"},_.p(_.X1,{data:function(){return f().content}},{videoRenderer:function(g){return _.p(d,{data:g.data,
showYtInteraction:I})},
lockupViewModel:function(g){return _.p(_.Z2,{data:g.data,containerType:2})}})),_.p("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.p(_.X1,{data:function(){return f().primaryButton}},{toggleButtonViewModel:function(g){return _.p(_.F1,{data:g.data,
buttonShapeOverrides:n,disableExplicitClickLogging:!0,onToggle:S})}})))},"Bb"),"yt-feedback-item-renderer",{props:{data:_.jv,
showYtInteractionInContent:_.jv}});var zn=function(){var r=_.y.apply(this,arguments)||this;r.isShortsGrid=!1;r.isCompactGrid=!1;r.isShortsPanelGrid=!1;r.renderedFromRichGrid=!1;r.isInFirstColumn=!1;r.noGutterMargins=!1;r.isInlineGroupItem=!1;r.insetMetadata=!1;r.noBottomMarginInAds=_.N("web_no_bottom_margin_for_home_ad_buttons");r.force16By9ThumbnailAspectRatio=!1;r.useCompactList=!1;r.containerType=2;r.thumbnailTargetWidth=9999;r.isResponsiveGrid=!1;r.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};r.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};r.hoverListener=r.hover.bind(r);r.leaveListener=r.leave.bind(r);r.highlighted=!1;r.JSC$13919_unsubscribeFromInlinePreviewIsActive=function(){};
return r};
_.t(zn,_.y);_.l=zn.prototype;_.l.computeContainerType=function(){return this.useCompactList?3:2};
_.l.computeThumbnailTargetWidth=function(){var r;return(r=this.itemWidth)!=null?r:9999};
_.l.updateIsInFirstColumn=function(){var r;this.isInFirstColumn=((r=this.data)==null?void 0:r.colIndex)===0};
_.l.observerContainerType=function(){if(this.lockup){var r=this.lockup;r.containerType=this.containerType;r.sizing=this.sizing;r.typographyBump=this.typographyBump;r.itemWidth=this.itemWidth}this.richGridMedia&&_.N("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.N("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(r){r=r.relatedTarget;var f=document.querySelector("ytd-video-preview");r&&f&&_.Oi(f).contains(r)||this.removeAndCleanupHighlight()};
_.l.hover=function(){var r;if(!this.highlighted&&(!_.N("web_enable_rich_item_on_focus_effect")||(r=this.data)!=null&&r.onFocusEffect)){var f,I;((f=this.data)==null?void 0:(I=f.onFocusEffect)==null?void 0:I.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(r=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:r,boxShadow:"0 0 0 10px "+r}));var C,Y;((C=this.data)==null?void 0:(Y=C.onFocusEffect)==null?void 0:
Y.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 r=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13919_unsubscribeFromInlinePreviewIsActive=_.wj(_.K2(),_.LRq,function(f){r.highlighted&&!f&&r.removeAndCleanupHighlight()})};
_.l.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13919_unsubscribeFromInlinePreviewIsActive()};
_.l.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.l.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.l.getBackgroundColor=function(){var r,f,I=(r=this.data)==null?void 0:(f=r.onFocusEffect)==null?void 0:f.onFocusColor;if(I){if(document.documentElement.hasAttribute("dark")&&(I==null?0:I.darkTheme))return _.MG(I==null?void 0:I.darkTheme);if(I==null?0:I.lightTheme)return _.MG(I==null?void 0:I.lightTheme)}};
_.l.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var r=_.t1(),f,I,C;r&&((f=this.data)==null?0:f.trackingParams)&&((I=this.data)==null?void 0:I.colIndex)!=null&&((C=this.data)==null?void 0:C.rowIndex)!=null&&_.vF(r,_.VH(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.l.isSlimMediaRenderer=function(r){return!!_.F(r==null?void 0:r.content,_.ZV_)||!!_.F(r==null?void 0:r.content,Akg)||!!_.F(r==null?void 0:r.content,_.W_)||!!_.F(r==null?void 0:r.content,pq8)};
_.l.isPostRenderer=function(){var r,f;return!!_.F((r=this.data)==null?void 0:r.content,fRC)||!!_.F((f=this.data)==null?void 0:f.content,IRU)};
_.l.computeIsGameCardShelf=function(){var r;return!!_.F((r=this.data)==null?void 0:r.content,fB3)};
_.l.computeIsMiniGameCardShelf=function(){var r,f;return!!_.F((r=this.data)==null?void 0:r.content,MmD)||!!_.F((f=this.data)==null?void 0:f.content,gc8)};
_.l.computeIsTeaserCard=function(){var r;return!!_.F((r=this.data)==null?void 0:r.content,gc8)};
_.l.computeIsSelectableFeedbackItem=function(){var r,f;return!((f=_.F((r=this.data)==null?void 0:r.content,_.XzX))==null||!f.selectableFeedback)};
_.l.computeContainsLumierePosters=function(){var r,f;return((f=_.F((r=this.data)==null?void 0:r.content,b9C))==null?void 0:f.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.l.computeIsExpandOnHoverCardShelf=function(){var r;return!!_.F((r=this.data)==null?void 0:r.content,wY4)};
_.l.computeIsLinkCardShelf=function(){var r;return!!_.F((r=this.data)==null?void 0:r.content,nJ_)};
_.l.computeIsReelItemStyleAvatarCircle=function(r){var f;return((f=_.F(r==null?void 0:r.content,_.W_))==null?void 0:f.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.l.computeIsLinkCardFullWidth=function(r,f){var I;return((I=_.F(r==null?void 0:r.content,nJ_))==null?void 0:I.useFullWidth)||f<=2};
_.OC.Object.defineProperties(zn.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&&_.N("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.N("web_enable_rich_item_on_focus_effect")||_.N("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.N("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.N("web_shorts_2_by_3_lockups_study")||_.N("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
zn.prototype.richGridHoverHighlightChanged=zn.prototype.richGridHoverHighlightChanged;zn.prototype.observerContainerType=zn.prototype.observerContainerType;zn.prototype.updateIsInFirstColumn=zn.prototype.updateIsInFirstColumn;_.A([_.J(_.PH),_.B("design:type",Object)],zn.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],zn.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],zn.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],zn.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.jW),_.B("design:type",Object)],zn.prototype,"ytdLockupBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],zn.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.B("design:type",Boolean)],zn.prototype,"isPost",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.B("design:type",Boolean)],zn.prototype,"containsLumierePosters",void 0);_.A([_.K({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.B("design:type",Boolean)],zn.prototype,"isSlimMedia",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.B("design:type",Boolean)],zn.prototype,"isGameCardShelf",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.B("design:type",Boolean)],zn.prototype,"isMiniGameCardShelf",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.B("design:type",Boolean)],zn.prototype,"isTeaserCard",void 0);_.A([_.K({computed:"computeIsSelectableFeedbackItem(data)"}),_.B("design:type",Boolean)],zn.prototype,"isSelectableFeedbackItem",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],zn.prototype,"isShortsGrid",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],zn.prototype,"isSlimGrid",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],zn.prototype,"isCompactGrid",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],zn.prototype,"isShortsPanelGrid",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.B("design:type",Boolean)],zn.prototype,"isExpandOnHoverCardShelf",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.B("design:type",Boolean)],zn.prototype,"isLinkCardShelf",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.XN,value:3}),_.B("design:type",Number)],zn.prototype,"itemsPerRow",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],zn.prototype,"renderedFromRichGrid",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],zn.prototype,"isInFirstColumn",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],zn.prototype,"noGutterMargins",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],zn.prototype,"isInlineGroupItem",void 0);_.A([_.K(),_.B("design:type",Object)],zn.prototype,"insetMetadata",void 0);
_.A([_.K(),_.B("design:type",Object)],zn.prototype,"noBottomMarginInAds",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],zn.prototype,"isShelfItem",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.B("design:type",Boolean)],zn.prototype,"isReelItemStyleAvatarCircle",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.B("design:type",Boolean)],zn.prototype,"isLinkCardFullWidth",void 0);
_.A([_.K(),_.B("design:type",Object)],zn.prototype,"force16By9ThumbnailAspectRatio",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],zn.prototype,"useCompactList",void 0);_.A([_.K(),_.B("design:type",String)],zn.prototype,"sizing",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],zn.prototype,"typographyBump",void 0);_.A([_.K(),_.B("design:type",Number)],zn.prototype,"itemWidth",void 0);_.A([_.K(),_.B("design:type",Boolean)],zn.prototype,"isHomeShelf",void 0);
_.A([_.K(),_.B("design:type",Boolean)],zn.prototype,"isHomeGrid",void 0);_.A([_.uA("yt-lockup-view-model"),_.B("design:type",HTMLElement)],zn.prototype,"lockup",void 0);_.A([_.uA("ytd-rich-grid-media"),_.B("design:type",HTMLElement)],zn.prototype,"richGridMedia",void 0);_.A([_.uA("ytd-ad-slot-renderer"),_.B("design:type",HTMLElement)],zn.prototype,"adSlotRenderer",void 0);_.A([_.K({computed:"computeContainerType(useCompactList)"}),_.B("design:type",Object)],zn.prototype,"containerType",void 0);
_.A([_.K({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.B("design:type",Object)],zn.prototype,"thumbnailTargetWidth",void 0);_.A([_.R("showYtInteractionOnRichItem"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],zn.prototype,"showYtInteractionOnRichGridMedia",null);_.A([_.R("isSelectableFeedbackItem","richGridHoverHighlight"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],zn.prototype,"showYtInteractionOnRichItem",null);
_.A([_.R("typographyBump","isHomeGrid"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],zn.prototype,"richTypographyBump",null);_.A([_.K({reflectToAttribute:!0}),_.R("isShortsGrid","isCompactGrid"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],zn.prototype,"richGridHoverHighlight",null);_.A([_.R("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.B("design:type",Number),_.B("design:paramtypes",[])],zn.prototype,"shortsLockupViewModelAspectRatio",null);
_.A([_.R("isInlineGroupItem"),_.B("design:type",Number),_.B("design:paramtypes",[])],zn.prototype,"shortsLockupViewModelScrimStyle",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zn.prototype,"updateIsInFirstColumn",null);_.A([_.Bt("containerType","sizing","typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zn.prototype,"observerContainerType",null);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],zn.prototype,"isResponsiveGrid",void 0);_.A([_.K(),_.B("design:type",Object)],zn.prototype,"lockupExperiments",void 0);_.A([_.Bt("richGridHoverHighlight"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zn.prototype,"richGridHoverHighlightChanged",null);zn=_.A([_.U({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],zn);
_.IgU=_.os()(zn,"ytd-rich-item-renderer",function(){if(s48===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);s48=r}r=s48;return r},{mode:_.QQ("kevlar_poly_si_batch_j028")?1:2});var QLm={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var DtR=_.iX(_.VR("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var C84;var M8=function(){var r=_.y.apply(this,arguments)||this;r.useResponsiveGrid=!1;r.hidden=!1;r.standardShelfMargins=_.N("web_rich_grid_standard_shelf_margins");r.isShowMoreHidden=!1;r.isExpanded=!1;r.isInnerShelf=!1;r.allVideosCount=0;r.allPlaylistCount=0;r.haveSmartDownloadsCompleted=!1;r.isShowLessHidden=!0;r.restrictContentsOverflow=!1;r.firstShownIndex=0;r.horizontalOffset=0;r.atEnd=!0;r.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};r.nextClick=function(){var f;(f=r.data)!=null&&f.contents&&(r.firstShownIndex+=r.currentElementsPerRow,r.updateHorizontalOffset(),r.updateHorizontalItemVisibility())};
r.previousClick=function(){var f;(f=r.data)!=null&&f.contents&&(r.firstShownIndex-=r.currentElementsPerRow,r.updateHorizontalOffset(),r.updateHorizontalItemVisibility())};
return r};
_.t(M8,_.y);_.l=M8.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]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.Lz("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 r;if((r=this.data)!=null&&r.contents&&this.containerWidth){var f;((f=this.data.responsiveContainerConfiguration)==null?0:f.responsiveSize)?(r=_.ITw(this.data.responsiveContainerConfiguration,this.containerWidth),r=_.QS(Object.assign({},r,{standardUnitMinWidth:this.standardUnitMinWidth}))):r=_.QS({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=r.typographyBump;if(this.elementsPerRow!==
r.numItems||this.gutter!==r.gutter)this.elementsPerRow=r.numItems,this.gutter=r.gutter,this.itemWidth=r.itemWidth,_.Zh(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":r.gutter+"px"})}};
_.l.computeSizing=function(){if(!(this.isLumiere||this.isShortsShelf()&&_.N("web_use_layout_library_for_rich_grid_disable_shorts"))){var r=_.VxB(this.data);if(r)return r;if(_.N("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.isShortsShelf()&&_.N("web_use_layout_library_for_rich_grid_disable_shorts")?!1:!this.isLumiere&&this.sizing};
_.l.computeButton=function(r){var f=_.F(r,_.Ll);r=Object.assign({},_.F(r,_.Ll));return f?(r.text||(r.text={simpleText:r.tooltip}),r.style="STYLE_MONO_OUTLINE",r.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",r):f};
_.l.onRowIndexChange=function(){var r=_.t1(),f,I;((f=this.data)==null?0:f.trackingParams)&&((I=this.data)==null?void 0:I.rowIndex)!=null&&r&&_.vF(r,_.VH(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.l.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var r,f=((r=this.getRichItemRenderers()[0])==null?void 0:r.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*f;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.l.requestElementsPerRow=function(){_.kA(this.hostElement,"yt-request-elements-per-row")};
_.l.onUpdateElementsPerRowAction=function(r,f,I,C,Y,V){if(this.containerWidth!==V&&(this.containerWidth=V,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&r&&f&&I&&C&&Y&&(this.elementsPerRow!==r||this.postsPerRow!==f||this.slimItemsPerRow!==I||this.gameCardsPerRow!==C||this.miniGameCardsPerRow!==Y)&&(this.elementsPerRow=r,this.postsPerRow=f,this.slimItemsPerRow=I,this.gameCardsPerRow=C,this.miniGameCardsPerRow=Y,this.updateItemVisibility())};
_.l.getRichItemRenderers=function(){return _.e(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.l.updateItemVisibility=function(){var r=this;if(this.data&&this.data.contents){var f=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(C,Y){var V;((V=r.data)==null?0:V.isExpanded)?(C.hidden=Y>f-1,C.ytRendererBehavior.markDirty()):C.hidden=Y>r.currentElementsPerRow-1||Y>f-1});
var I=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||I||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||I||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.l.setHeightToSingleRow=function(){var r=this.getRichItemRenderers(),f=Number.parseInt(getComputedStyle(r[0]).marginBottom,10)||0;r=r.slice(0,this.currentElementsPerRow).reduce(function(I,C){return Math.max(I,C.getBoundingClientRect().height+f)},0);
this.contents.style.height=r+"px"};
_.l.focusNextExpandedItem=function(){var r;((r=this.data)==null?0:r.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.l.focusItem=function(r,f){var I=this.getRichItemRenderers();if(I[r]&&(r=I[r].querySelector(".focus-on-expand"))){if(f){var C;(C=I[this.currentElementsPerRow])==null||C.scrollIntoView({behavior:"smooth",block:"center"})}r.focus({preventScroll:!0})}};
_.l.onDataChange=function(){var r=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.UC(this,function(){r.updateItemVisibility()});
var f;if((f=this.data)==null?0:f.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Zh(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),f=0;f<this.data.contents.length;f++){var I=_.F(this.data.contents[f],_.FD)||{};I.colIndex=f;I.rowIndex=this.data.rowIndex}};
_.l.handleRerenderDownloadsData=function(){_.N("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(r){var f=this,I;return _.x(function(C){(I=f.inlinePreviewIsEnabled)&&f.ytdReduxBehavior.dispatch(_.um8(!1));return C.return(new Promise(function(Y){r(function(){I&&f.ytdReduxBehavior.dispatch(_.um8(!0));Y()})}))})};
_.l.expandShelf=function(){var r=this;if(this.data){var f,I=(f=_.F(this.data.showMoreButton,_.Ll))==null?void 0:f.trackingParams;I&&_.lH(_.IB(),I);this.data.isExpanded=!0;this.blockInlinePreview(function(C){r.setHeightToSingleRow();r.updateItemVisibility();r.contents.style.height=r.contents.scrollHeight+"px";_.F_.addJob(function(){r.contents.style.height="auto";r.focusNextExpandedItem();C()},2,200)})}};
_.l.collapseShelf=function(){var r=this;return _.x(function(f){if(f.nextAddress==1){if(!r.data)return f.return();r.data.isExpanded=!1;return _.b(f,r.blockInlinePreview(function(I){r.contents.style.height=r.contents.scrollHeight+"px";r.setHeightToSingleRow();_.F_.addJob(function(){r.updateItemVisibility();r.contents.style.height="auto";I()},2,200)}),2)}_.kA(r.hostElement,"yt-rich-shelf-renderer-collapse",r.data.trackingParams);
r.focusItem(0,!1);_.wO(f)})};
_.l.updateArrowButtonStatus=function(){var r=this.getRichItemRenderers().length;if(!_.N("web_rich_shelf_renderer_use_data_contents_killswitch")){var f,I;r=((f=this.data)==null?void 0:(I=f.contents)==null?void 0:I.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=r};
_.l.onChildElementFocus=function(r){this.hasChevronButtons&&(r=r.target.closest("#contents > *"),this.contents.contains(r)&&(r.offsetLeft<this.horizontalOffset?this.previousClick():r.offsetLeft+r.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("+(_.Lz("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.l.updateHorizontalOffset=function(){var r=this.getRichItemRenderers(),f=r.length;if(!_.N("web_rich_shelf_renderer_use_data_contents_killswitch")){var I,C;f=((I=this.data)==null?void 0:(C=I.contents)==null?void 0:C.length)||0}var Y;r=((Y=r[0])==null?void 0:Y.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>f?this.firstShownIndex=f-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*r};
_.l.isSlimMediaShelfRenderer=function(){var r,f,I,C=(I=_.F((r=this.data)==null?void 0:(f=r.contents)==null?void 0:f[0],_.FD))==null?void 0:I.content;return!!(_.F(C,_.ZV_)||_.F(C,Akg)||_.F(C,_.W_)||_.F(C,pq8))};
_.l.isGameCardShelf=function(){var r,f,I,C=(I=_.F((r=this.data)==null?void 0:(f=r.contents)==null?void 0:f[0],_.FD))==null?void 0:I.content;return!!_.F(C,fB3)};
_.l.isGnomeShelf=function(){var r,f,I,C=(I=_.F((r=this.data)==null?void 0:(f=r.contents)==null?void 0:f[0],_.FD))==null?void 0:I.content;return!!_.F(C,_.XzX)};
_.l.isMiniGameCardShelf=function(){var r,f,I,C=(I=_.F((r=this.data)==null?void 0:(f=r.contents)==null?void 0:f[0],_.FD))==null?void 0:I.content;return!!_.F(C,MmD)||!!_.F(C,gc8)};
_.l.hasGameBoxArtAvatarStyle=function(){var r;return((r=this.data)==null?void 0:r.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.l.hasRoundedGameBoxArtAvatarStyle=function(){var r;return((r=this.data)==null?void 0:r.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.l.isShortsShelf=function(){var r,f,I,C=(I=_.F((r=this.data)==null?void 0:(f=r.contents)==null?void 0:f[0],_.FD))==null?void 0:I.content;return!!_.F(C,_.W_)||!!_.F(C,pq8)};
_.l.isPostShelfRenderer=function(){var r,f,I,C=(I=_.F((r=this.data)==null?void 0:(f=r.contents)==null?void 0:f[0],_.FD))==null?void 0:I.content;return!(!_.F(C,fRC)&&!_.F(C,IRU))};
_.l.isLumiereShelf=function(){var r,f,I=_.F((r=this.data)==null?void 0:(f=r.contents)==null?void 0:f[0],_.FD);return!!_.F(I==null?void 0:I.content,b9C)};
_.l.isLumiereShelfWithPosters=function(){var r,f,I=_.F((r=this.data)==null?void 0:(f=r.contents)==null?void 0:f[0],_.FD),C;return((C=_.F(I==null?void 0:I.content,b9C))==null?void 0:C.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.l.isExpandOnHoverCardShelf=function(){var r,f,I,C=(I=_.F((r=this.data)==null?void 0:(f=r.contents)==null?void 0:f[0],_.FD))==null?void 0:I.content;return!!_.F(C,wY4)};
_.l.computeHasFeaturedBadge=function(){var r,f,I=_.F((r=this.data)==null?void 0:(f=r.badges)==null?void 0:f[0],_.aeX);return I?I.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.l.computeHasPaygatedFeaturedBadge=function(){var r,f,I=_.F((r=this.data)==null?void 0:(f=r.badges)==null?void 0:f[0],_.aeX);return I?(I==null?void 0:I.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.l.computeHeaderHidden=function(){var r,f,I,C,Y,V;return!((r=this.data)==null?0:r.icon)&&!((f=this.data)==null?0:f.title)&&!((I=this.data)==null?0:I.subtitle)&&!((C=this.data)==null?0:C.thumbnail)&&!((Y=this.data)==null?0:Y.badges)&&!((V=this.data)==null?0:V.menu)};
_.l.showCtaButton=function(){var r;return!((r=this.data)==null||!r.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 r,f;return((r=this.data)==null?void 0:(f=r.responsiveContainerConfiguration)==null?void 0:f.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.l.onSectionReactiveDismissal=function(r,f,I){var C,Y;var V=(C=this.data)==null?void 0:(Y=C.targetingContext)==null?void 0:Y.targetGroupId;this&&V&&f.targetGroupId&&V.includes(f.targetGroupId)?(C=this.rowIndex,r=C===void 0?!1:!(f.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&C<=r)):r=!1;r&&(this.hidden=I)};
_.OC.Object.defineProperties(M8.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var r=this.elementsPerRow;this.isPostShelfRenderer()?r=this.postsPerRow:this.isSlimMediaShelfRenderer()?r=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?r=this.slimItemsPerRow-1:this.isGameCardShelf()?r=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(r=this.miniGameCardsPerRow);return r}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.N("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var r,f;return!((r=this.data)==null||!r.previousButton)&&!((f=this.data)==null||!f.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 r;return((r=_.a().resolve(_.y2).getCurrentPage())==null?void 0:r.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var r,f,I,C;return!((r=this.data)==null?0:(f=r.thumbnail)==null?0:(I=f.accessibility)==null?0:(C=I.accessibilityData)==null?0:C.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
M8.prototype.onChildElementFocus=M8.prototype.onChildElementFocus;M8.prototype.handleRerenderDownloadsData=M8.prototype.handleRerenderDownloadsData;M8.prototype.onDataChange=M8.prototype.onDataChange;M8.prototype.onRowIndexChange=M8.prototype.onRowIndexChange;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],M8.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],M8.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.TD),_.B("design:type",Object)],M8.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],M8.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],M8.prototype,"ytdReduxBehavior",void 0);_.A([_.K({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.B("design:type",Object)],M8.prototype,"useResponsiveGrid",void 0);_.A([_.K(),_.B("design:type",Object)],M8.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Number)],M8.prototype,"standardUnitMinWidth",void 0);_.A([_.K({reflectToAttribute:!0,value:3}),_.B("design:type",Number)],M8.prototype,"elementsPerRow",void 0);_.A([_.K({value:3}),_.B("design:type",Number)],M8.prototype,"postsPerRow",void 0);_.A([_.K({value:6}),_.B("design:type",Number)],M8.prototype,"slimItemsPerRow",void 0);_.A([_.K({value:6}),_.B("design:type",Number)],M8.prototype,"gameCardsPerRow",void 0);
_.A([_.K({value:6}),_.B("design:type",Number)],M8.prototype,"miniGameCardsPerRow",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],M8.prototype,"hidden",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],M8.prototype,"standardShelfMargins",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],M8.prototype,"isShowMoreHidden",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],M8.prototype,"isExpanded",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],M8.prototype,"isInnerShelf",void 0);_.A([_.K({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.B("design:type",Boolean)],M8.prototype,"isShorts",void 0);_.A([_.K({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.B("design:type",Boolean)],M8.prototype,"isLumiere",void 0);_.A([_.K({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.B("design:type",Boolean)],M8.prototype,"hasBoxArtThumbnailStyle",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.B("design:type",Boolean)],M8.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.B("design:type",Boolean)],M8.prototype,"hasFeaturedBadge",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.B("design:type",Boolean)],M8.prototype,"hasPaygatedFeaturedBadge",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.B("design:type",Boolean)],M8.prototype,"isHeaderHidden",void 0);_.A([_.K({selector:_.Rqq}),_.B("design:type",Object)],M8.prototype,"allVideosCount",void 0);_.A([_.K({selector:fTw}),_.B("design:type",Object)],M8.prototype,"allPlaylistCount",void 0);_.A([_.K({selector:Zlm}),_.B("design:type",Object)],M8.prototype,"haveSmartDownloadsCompleted",void 0);
_.A([_.K({selectorArgs:["entitySelectorType"],selector:function(r,f){if(_.N("kevlar_modern_downloads_page")&&f&&f!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var I=r.entities;switch(f){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":f=_.z3(I);r=Np(f);var C=_.wG(f);I=_.gG(I);I=_.AZ(ZkB(C,I,f.length));return{contents:r,subtitle:I};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return I=_.z3(I),{contents:Np(I)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return I=
_.Mj(I),{contents:Np(I)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return I=_.n$l(I),{contents:Np(I)};default:_.t7(new _.nf("Error: entitySelectorType defined but not matched in selector.",r,f))}}}}),
_.B("design:type",Object)],M8.prototype,"entityDrivenRichShelfData",void 0);_.A([_.K({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.B("design:type",Boolean)],M8.prototype,"hasTopCtaButton",void 0);_.A([_.K({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.B("design:type",Boolean)],M8.prototype,"hasBottomCtaButton",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.B("design:type",Boolean)],M8.prototype,"force16By9ThumbnailAspectRatio",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],M8.prototype,"isShowLessHidden",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],M8.prototype,"restrictContentsOverflow",void 0);_.A([_.K({selector:_.mhP}),_.B("design:type",Boolean)],M8.prototype,"inlinePreviewIsEnabled",void 0);
_.A([_.K({computed:"computeSizing(data)"}),_.B("design:type",String)],M8.prototype,"sizing",void 0);_.A([_.K(),_.B("design:type",Boolean)],M8.prototype,"typographyBump",void 0);_.A([_.K(),_.B("design:type",Number)],M8.prototype,"itemWidth",void 0);_.A([_.K(),_.B("design:type",Object)],M8.prototype,"firstShownIndex",void 0);_.A([_.K(),_.B("design:type",Object)],M8.prototype,"horizontalOffset",void 0);_.A([_.K(),_.B("design:type",Object)],M8.prototype,"atEnd",void 0);
_.A([_.uA("#contents"),_.B("design:type",HTMLElement)],M8.prototype,"contents",void 0);_.A([_.Bt("data.rowIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],M8.prototype,"onRowIndexChange",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],M8.prototype,"onDataChange",null);
_.A([_.Bt("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],M8.prototype,"handleRerenderDownloadsData",null);_.A([_.kO("focusin"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],M8.prototype,"onChildElementFocus",null);_.A([_.K({reflectToAttribute:!0}),_.R("data","isHomePage"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],M8.prototype,"isTruncated",null);
_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],M8.prototype,"hideBottomDivider",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],M8.prototype,"hasChevronButtons",null);_.A([_.R("firstShownIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],M8.prototype,"previousButtonOverride",null);
_.A([_.R("atEnd"),_.B("design:type",Object),_.B("design:paramtypes",[])],M8.prototype,"nextButtonOverride",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],M8.prototype,"isHomePage",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],M8.prototype,"thumbnailAriaHidden",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],M8.prototype,"initiallyIsExpanded",null);
_.A([_.R("data"),_.B("design:type",String),_.B("design:paramtypes",[])],M8.prototype,"entitySelectorType",null);M8=_.A([_.U({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],M8);
_.Y3D=_.os()(M8,"ytd-rich-shelf-renderer",function(){if(C84===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);C84=r}r=C84;return r},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.QQ("kevlar_poly_si_batch_j028")?1:2});var lg4;_.Kv(i43,"yt-slimline-survey-view-model",{props:{data:_.jv}});var gy=function(){var r=_.y.apply(this,arguments)||this;r.tileLottieAnimationRef={};r.backgroundLottieAnimationRef={};r.isOnHoverBehaviorForLottieEnabled=!0;r.useBiggerShowcaseImage=_.N("enable_desktop_search_bigger_thumbs");r.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return r};
_.t(gy,_.y);_.l=gy.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"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.l.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var r=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);r!==this.hasTile&&this.set("hasTile",r);r=this.hasLogo(this.data)||!!this.data.badgeText;r!==this.hasMetadata&&this.set("hasMetadata",r);r=this.data.overflowButton?!1:r;r!==this.showLogoImage&&this.set("showLogoImage",r);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(r){if(r&&this.data){var f=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var I=_.U6((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);I&&f.push('background-image: url("'+I+'");')}var C;((C=r.basicColorData)==null?void 0:C.backgroundColor)!==void 0&&f.push("background-color: "+_.g_(r.basicColorData.backgroundColor)+";");return f.join("")}};
_.l.onDarkModeToggledAction=function(r){r!==this.isDarkTheme&&this.set("isDarkTheme",r)};
_.l.getCurrentLogo=function(r,f){if(r)return f?r.darkLogoImage:r.lightLogoImage};
_.l.getCurrentStaticTileImage=function(r,f){if(this.hasStaticTile(r))return r.darkTileImage?f?r.darkTileImage:r.tileImage:r.tileImage};
_.l.computeTitleStyle=function(r){if(this.data&&this.data.title&&r&&r.basicColorData&&r.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.MG(r.basicColorData.foregroundTitleColor)+";"};
_.l.computeSubtitleStyle=function(r){if(this.data&&this.data.subtitle&&r&&r.basicColorData&&r.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.MG(r.basicColorData.foregroundBodyColor)+";"};
_.l.computeSupplementalStyle=function(r){if(this.data&&this.data.supplementalText&&r&&r.supplementalTextColor!==void 0)return r=_.MG(r.supplementalTextColor),"color:"+r+";--yt-endpoint-color:"+r+";--yt-endpoint-hover-color:"+r+";--yt-endpoint-visited-color:"+r+";--yt-formatted-string-bold-font-weight:700;"};
_.l.computeBadgeStyle=function(r){if(this.data&&this.data.badgeText&&r&&r.basicColorData&&r.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.MG(r.basicColorData.foregroundActivatedColor)+";"};
_.l.computeDismissIconStyle=function(r){var f,I;if((r==null?0:(f=r.dismissButtonColorData)==null?0:f.foregroundTitleColor)&&(r==null?0:(I=r.dismissButtonColorData)==null?0:I.backgroundColor))return"--yt-button-color:"+_.g_(r.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.g_(r.dismissButtonColorData.backgroundColor)+";"};
_.l.computeOverflowIconStyle=function(r){var f,I;if((r==null?0:(f=r.dismissButtonColorData)==null?0:f.foregroundTitleColor)&&(r==null?0:(I=r.dismissButtonColorData)==null?0:I.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.g_(r.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.g_(r.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.g_(r.dismissButtonColorData.foregroundTitleColor)+";"};
_.l.computeBannerStyle=function(r){return r?r.toLowerCase().replace(/_/g,"-"):""};
_.l.computeLocation=function(r){switch(r==null?void 0:r.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.l.shouldShowTileSection=function(r,f,I){return!this.shouldExpandLogo(r,f,I)&&f};
_.l.shouldShowExpandedLogoSection=function(r,f,I){return this.shouldExpandLogo(r,f,I)&&r!==void 0&&this.hasLogo(r)};
_.l.shouldExpandLogo=function(r,f,I){return r&&f?!1:I>=2};
_.l.hasStaticTile=function(r){return!(r==null||!r.tileImage)};
_.l.hasTileLottie=function(r){var f;return!!(r==null?0:(f=r.tileLottie)==null?0:f.url)};
_.l.hasLogo=function(r){return this.getCurrentLogo(r,this.isDarkTheme)!==void 0};
_.l.getLogoHeight=function(r){return this.logoWithPadding(r)?"26":"20"};
_.l.getExpandedLogoHeight=function(r){return this.logoWithPadding(r)?"31":"24"};
_.l.getLogoImageId=function(r){return this.logoWithPadding(r)?"logo-image-with-padding":"logo-image"};
_.l.hasBackgroundLottie=function(r){var f;return!!(r==null?0:(f=r.backgroundLottie)==null?0:f.url)};
_.l.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var r,f;(r=this.tileLottieAnimationRef)==null||(f=r.lottieEl)==null||f.play();var I,C;(I=this.backgroundLottieAnimationRef)==null||(C=I.lottieEl)==null||C.play()}};
_.l.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var r,f;(r=this.tileLottieAnimationRef)==null||(f=r.lottieEl)==null||f.pause();var I,C;(I=this.backgroundLottieAnimationRef)==null||(C=I.lottieEl)==null||C.pause()}};
_.l.pauseLottie=function(){var r,f;(r=this.tileLottieAnimationRef)==null||(f=r.lottieEl)==null||f.pause();var I,C;(I=this.backgroundLottieAnimationRef)==null||(C=I.lottieEl)==null||C.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.l.performPrimaryButtonAction=function(){var r,f,I;((r=this.data)==null?0:(f=r.primaryButton)==null?0:(I=f.buttonRenderer)==null?0:I.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.l.requestElementsPerRow=function(){_.kA(this.hostElement,"yt-request-elements-per-row")};
_.l.updateButtonPalette=function(){if(this.data&&this.currentColorData){var r;((r=this.data.dismissButton)==null?0:r.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 f;if((f=this.data.primaryButton)==null?0:f.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 I;if((I=this.data.secondaryButton)==
null?0:I.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 C;((C=this.data.primaryButton)==null?0:C.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var Y;((Y=this.data.secondaryButton)==null?0:Y.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.l.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var r=this.getTileLottieDataBasedOnTheme(),f,I;if(r.url!==((f=this.tileLottiePlayerProps)==null?void 0:(I=f.animationConfig)==null?void 0:I.path)){var C,Y;(C=this.tileLottieAnimationRef)==null||(Y=C.lottieEl)==null||Y.destroy();var V;this.isOnHoverBehaviorForLottieEnabled=!((V=r.settings)==null?0:V.autoplay);var S,h;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(h=(S=r.settings)==null?void 0:S.autoplay)!=null?h:!1,loop:this.getLottieLoopValue(r.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof r.url==="string"?this.tileLottiePlayerProps.animationConfig.path=r.url:this.tileLottiePlayerProps.animationConfig.animationData=r.url}}};
_.l.getOverflowButton=function(r){return _.F(r.overflowButton,g7V)};
_.l.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var r=this.getBackgroundLottieDataBasedOnTheme(),f,I;if(r.url!==((f=this.backgroundLottiePlayerProps)==null?void 0:(I=f.animationConfig)==null?void 0:I.path)){var C,Y;(C=this.backgroundLottieAnimationRef)==null||(Y=C.lottieEl)==null||Y.destroy();var V;this.isOnHoverBehaviorForLottieEnabled=!((V=r.settings)==null?0:V.autoplay);var S,h;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(h=(S=r.settings)==null?void 0:S.autoplay)!=null?h:!1,loop:this.getLottieLoopValue(r.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof r.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=r.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
r.url}}};
_.l.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var r;((r=this.tileLottieAnimationRef)==null?void 0:r.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var f;((f=this.backgroundLottieAnimationRef)==null?void 0:f.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.l.getTileLottieDataBasedOnTheme=function(){var r;if(this.isDarkTheme&&((r=this.data)==null?0:r.darkThemeTileLottie))return this.data.darkThemeTileLottie;var f;return((f=this.data)==null?0:f.tileLottie)?this.data.tileLottie:{}};
_.l.getBackgroundLottieDataBasedOnTheme=function(){var r;if(this.isDarkTheme&&((r=this.data)==null?0:r.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var f;return((f=this.data)==null?0:f.backgroundLottie)?this.data.backgroundLottie:{}};
_.l.onUpdateElementsPerRowAction=function(r){r&&this.elementsPerRow!==r&&(this.elementsPerRow=r)};
_.l.getLottieLoopValue=function(r){return r?r.loop!==void 0?r.loop:r.loopCount?r.loopCount-1:!0:!0};
_.l.logoWithPadding=function(r){var f,I,C;return(r=(f=this.getCurrentLogo(r,this.isDarkTheme))==null?void 0:(I=f.thumbnails)==null?void 0:(C=I[0])==null?void 0:C.height)&&r%31===0?!0:!1};
gy.prototype.currentColorChanged=gy.prototype.currentColorChanged;gy.prototype.themeChanged=gy.prototype.themeChanged;gy.prototype.dataChanged=gy.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],gy.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],gy.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],gy.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],gy.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],gy.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],gy.prototype,"primaryButton",void 0);_.A([_.K(),_.B("design:type",Object)],gy.prototype,"secondaryButton",void 0);
_.A([_.K({reflectToAttribute:!0,value:3}),_.B("design:type",Number)],gy.prototype,"elementsPerRow",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],gy.prototype,"isDarkTheme",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],gy.prototype,"hasTile",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],gy.prototype,"hasMetadata",void 0);
_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],gy.prototype,"showLogoImage",void 0);_.A([_.K(),_.B("design:type",Object)],gy.prototype,"currentColorData",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.B("design:type",String)],gy.prototype,"bannerStyle",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.B("design:type",String)],gy.prototype,"location",void 0);
_.A([_.K(),_.B("design:type",Object)],gy.prototype,"tileLottiePlayerProps",void 0);_.A([_.K(),_.B("design:type",Object)],gy.prototype,"tileLottieAnimationRef",void 0);_.A([_.K(),_.B("design:type",Object)],gy.prototype,"backgroundLottiePlayerProps",void 0);_.A([_.K(),_.B("design:type",Object)],gy.prototype,"backgroundLottieAnimationRef",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],gy.prototype,"useBiggerShowcaseImage",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],gy.prototype,"isHideEnclosingAction",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gy.prototype,"dataChanged",null);_.A([_.YN("isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gy.prototype,"themeChanged",null);
_.A([_.YN("currentColorData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gy.prototype,"currentColorChanged",null);gy=_.A([_.U({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],gy);
_.Q(gy,"ytd-statement-banner-renderer",function(){if(lg4!==void 0)return lg4;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return lg4=r},{mode:1});var V13;var ay=function(){var r=_.y.apply(this,arguments)||this;r.isSearch=!1;r.hideShelfHeader=!1;r.engagementPanel=!1;r.disableMouseScroll=!0;r.useFloorScrolling=!0;r.modernTypography=_.N("web_modern_typography");return r};
_.t(ay,_.y);ay.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.VR("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.VR("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
ay.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
ay.prototype.onDataChanged=ay.prototype.onDataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ay.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ay.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ay.prototype,"isSearch",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ay.prototype,"hideShelfHeader",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ay.prototype,"engagementPanel",void 0);_.A([_.K(),_.B("design:type",Object)],ay.prototype,"disableMouseScroll",void 0);_.A([_.K(),_.B("design:type",Object)],ay.prototype,"useFloorScrolling",void 0);_.A([_.K(),_.B("design:type",Object)],ay.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ay.prototype,"modernTypography",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ay.prototype,"onDataChanged",null);ay=_.A([_.U({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],ay);
_.Q(ay,"ytd-reel-shelf-renderer",function(){if(V13!==void 0)return V13;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return V13=r},{mode:_.QQ("kevlar_poly_si_batch_j028")?1:2});var Ez_;var S3U=_.Hc(function(r){var f=r.data;r=r.useSmallFont;var I={},C={};return _.p("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.p(_.M,{cond:function(){return f().favicon},
then:function(Y){return _.p(_.J3,{data:Y,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.p("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.p(_.wW,{text:function(){return f().title},
className:_.qd("yt-channel-external-link-view-model-wiz__title",(I["yt-channel-external-link-view-model-wiz__title--title-small-font"]=r,I)),ellipsisTruncate:!0,userInput:!0}),_.p(_.wW,{text:function(){return f().link},
className:_.qd("yt-channel-external-link-view-model-wiz__link",(C["yt-channel-external-link-view-model-wiz__link--link-small-font"]=r,C)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Cb");
S3U.idomCompat=!0;_.Kv(S3U,"yt-channel-external-link-view-model",{props:{data:_.jv,useSmallFont:_.jv}});_.gW("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var XQ=function(){var r=_.y.apply(this,arguments)||this;r.revealButtonClass="button";r.businessEmailDisplayState="HIDE_SECTION";return r};
_.t(XQ,_.y);_.l=XQ.prototype;_.l.refit=function(){var r=this;_.Fi(function(){_.qy(r.hostElement,"yt-refit-popups-action")});
_.UC(this,function(){_.qy(r.hostElement,"yt-refit-popups-action")})};
_.l.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.m0("https://www.google.com/recaptcha/api.js?trustedtypes=true"),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(r){return"mailto:"+r};
_.l.computeSafeUrl=function(r){if(r)return _.gn(r)};
_.l.linkEndpoint=function(r){return _.F(r.onTap,_.gF)};
_.l.linkEndpointToHref=function(r){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(r))};
_.l.onYtServiceRequestCompleted=function(r){var f;if((f=r.detail.data)==null?0:f.businessEmail)this.businessEmail=r.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var I;if((I=r.detail.data)==null?0:I.errorMessage)this.businessEmailErrorMessage=r.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.l.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var r=this.JSC$14022_captchaTextarea.value;if(r){r={recaptcha_response_token:r,channel_id:this.metadata.channelId};var f=_.F(this.metadata.onBusinessEmailRevealClickCommand,_.gF);f&&this.ytComponentBehavior.resolveCommand(f,{form:r})}}};
_.l.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.OC.Object.defineProperties(XQ.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var r;return _.F((r=this.data)==null?void 0:r.metadata,zvC)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.F(this.metadata.businessEmailRevealButton,_.NI)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var r=new URL(this.metadata.canonicalChannelUrl);return r.host+r.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 _.F(this.metadata.learnMoreOnTap,_.gF)}}});
XQ.prototype.onYtServiceRequestCompleted=XQ.prototype.onYtServiceRequestCompleted;XQ.prototype.businessEmailMetadataChanged=XQ.prototype.businessEmailMetadataChanged;XQ.prototype.refit=XQ.prototype.refit;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],XQ.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],XQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.uA("#g-recaptcha-response"),_.B("design:type",HTMLTextAreaElement)],XQ.prototype,"JSC$14022_captchaTextarea",void 0);_.A([_.K(),_.B("design:type",Object)],XQ.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],XQ.prototype,"revealButtonClass",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],XQ.prototype,"metadata",null);
_.A([_.R("metadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],XQ.prototype,"revealButton",null);_.A([_.R("metadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],XQ.prototype,"channelDisplayUrl",null);_.A([_.YN("metadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XQ.prototype,"refit",null);_.A([_.R("metadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],XQ.prototype,"formattedDescription",null);
_.A([_.R("metadata","learnMoreCommand"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XQ.prototype,"shouldRendereVerifiedPhoneStatus",null);_.A([_.R("metadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],XQ.prototype,"learnMoreCommand",null);_.A([_.K(),_.B("design:type",String)],XQ.prototype,"businessEmailDisplayState",void 0);_.A([_.K(),_.B("design:type",String)],XQ.prototype,"businessEmail",void 0);
_.A([_.K(),_.B("design:type",String)],XQ.prototype,"businessEmailErrorMessage",void 0);_.A([_.YN("metadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XQ.prototype,"businessEmailMetadataChanged",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],XQ.prototype,"onYtServiceRequestCompleted",null);
XQ=_.A([_.U({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],XQ);
_.Q(XQ,"ytd-about-channel-renderer",function(){if(Ez_!==void 0)return Ez_;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Ez_=r},{mode:1});var xR3;var N8=function(){return _.y.apply(this,arguments)||this};
_.t(N8,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],N8.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],N8.prototype,"data",void 0);N8=_.A([_.U({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],N8);
_.Q(N8,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(xR3!==void 0)return xR3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return xR3=r},{mode:1});var h8g;var $K=function(){return _.y.apply(this,arguments)||this};
_.t($K,_.y);$K.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],$K.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],$K.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],$K.prototype,"aligment",void 0);$K=_.A([_.U({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],$K);
_.Q($K,"ytd-channel-list-sub-menu-renderer",function(){if(h8g!==void 0)return h8g;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return h8g=
r},{mode:1});var wb3;var FQ=function(){return _.y.apply(this,arguments)||this};
_.t(FQ,_.y);FQ.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}}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],FQ.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],FQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],FQ.prototype,"data",void 0);FQ=_.A([_.U({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],FQ);
_.Q(FQ,"ytd-channel-sub-menu-renderer",function(){if(wb3!==void 0)return wb3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return wb3=r},{mode:1});var bb4;var pbg;var PA=function(){var r=_.y.apply(this,arguments)||this;r.isCompact=!1;return r};
_.t(PA,_.y);_.OC.Object.defineProperties(PA.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var r,f;return((f=_.F((r=this.data)==null?void 0:r.endpoint,_.HR))==null?void 0:f.target)==="TARGET_NEW_WINDOW"}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],PA.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],PA.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],PA.prototype,"isCompact",void 0);_.A([_.R("isCompact"),_.B("design:type",Number),_.B("design:paramtypes",[])],PA.prototype,"thumbnailWidth",null);
_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],PA.prototype,"openNewWindow",null);PA=_.A([_.U({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],PA);
_.Q(PA,"ytd-media-lockup-renderer",function(){if(pbg!==void 0)return pbg;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return pbg=r},{mode:1});var nz4;var tt=function(){return _.y.apply(this,arguments)||this};
_.t(tt,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],tt.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],tt.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],tt.prototype,"data",void 0);tt=_.A([_.U({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],tt);
_.Q(tt,"ytd-structured-description-channel-lockup-renderer",function(){if(nz4!==void 0)return nz4;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return nz4=r},{mode:1});var dRq;var Tn=function(){var r=_.y.apply(this,arguments)||this;r.isCompact=!1;r.collections=_.N("web_modern_collections_v2");r.collectionsStackColor=_.N("modernize_structured_description_playlist_lockups_v2");return r};
_.t(Tn,_.y);Tn.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:_.N("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.OC.Object.defineProperties(Tn.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var r,f,I,C,Y,V;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(r=this.data)==null?void 0:(f=r.thumbnail)==null?void 0:f.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(I=this.data)==null?void 0:(C=I.thumbnail)==null?void 0:C.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(Y=this.data)==null?void 0:(V=Y.thumbnail)==
null?void 0:V.vibrantColorPalette:void 0}}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Tn.prototype,"componentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Tn.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Tn.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Tn.prototype,"showSidePanelThumbnailOverlay",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Tn.prototype,"isCompact",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Tn.prototype,"collections",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Tn.prototype,"collectionsStackColor",void 0);_.A([_.R("data"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Tn.prototype,"twoLineTitle",null);
_.A([_.R("data","collections","collectionsStackColor"),_.B("design:type",Object),_.B("design:paramtypes",[])],Tn.prototype,"collectionStack",null);Tn=_.A([_.U({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],Tn);
_.Q(Tn,"ytd-structured-description-playlist-lockup-renderer",function(){if(dRq!==void 0)return dRq;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return dRq=r},{mode:1});var z8C;var cA=function(){return _.y.apply(this,arguments)||this};
_.t(cA,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],cA.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],cA.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],cA.prototype,"data",void 0);cA=_.A([_.U({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],cA);
_.Q(cA,"ytd-structured-description-video-lockup-renderer",function(){if(z8C!==void 0)return z8C;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return z8C=r},{mode:2});var WA=function(){return _.y.apply(this,arguments)||this};
_.t(WA,_.y);
WA.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}}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],WA.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],WA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],WA.prototype,"data",void 0);WA=_.A([_.U({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],WA);
_.Q(WA,"ytd-compact-infocard-renderer",function(){if(bb4!==void 0)return bb4;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return bb4=r},{mode:1});var M14;var Ln=function(){var r=_.y.apply(this,arguments)||this;r.useModernCollectionsV2=_.N("web_modern_collections_v2");return r};
_.t(Ln,_.y);Ln.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.OC.Object.defineProperties(Ln.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.N("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.N("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.N("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ln.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Ln.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],Ln.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],Ln.prototype,"ytdReduxBehavior",void 0);_.A([_.K({selector:_.eO}),_.B("design:type",Object)],Ln.prototype,"isGridViewEnabled",void 0);
_.A([_.R("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ln.prototype,"watchFeedBigThumbs",null);_.A([_.R("isGridViewEnabled","data"),_.K({reflectToAttribute:!0,value:"168"}),_.B("design:type",String),_.B("design:paramtypes",[])],Ln.prototype,"thumbnailWidth",null);_.A([_.R("isGridViewEnabled","data"),_.K({reflectToAttribute:!0,value:"94"}),_.B("design:type",String),_.B("design:paramtypes",[])],Ln.prototype,"customThumbnailSize",null);
_.A([_.K(),_.B("design:type",Object)],Ln.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Ln.prototype,"useModernCollectionsV2",void 0);Ln=_.A([_.U({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],Ln);
_.Q(Ln,"ytd-compact-playlist-renderer",function(){if(M14!==void 0)return M14;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return M14=r},{mode:1});var gzg;var mc=function(){var r=_.y.apply(this,arguments)||this;r.darkerDarkTheme=_.N("web_darker_dark_theme");r.roundedContainer=!0;r.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return r};
_.t(mc,_.y);_.l=mc.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(r){return r.style?r.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.l.onUpdateElementsPerRowAction=function(r){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&r===1};
_.l.requestElementsPerRow=function(){_.kA(this.hostElement,"yt-request-elements-per-row")};
mc.prototype.dataChanged=mc.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],mc.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],mc.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],mc.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],mc.prototype,"actionHandlerBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],mc.prototype,"data",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],mc.prototype,"hideThumbnail",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.B("design:type",String)],mc.prototype,"viewStyle",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],mc.prototype,"darkerDarkTheme",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],mc.prototype,"roundedContainer",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mc.prototype,"dataChanged",null);mc=_.A([_.U({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],mc);
_.Q(mc,"ytd-compact-promoted-item-renderer",function(){if(gzg!==void 0)return gzg;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return gzg=r},{mode:1});var agC;var eR=function(){var r=_.y.apply(this,arguments)||this;r.collections=_.N("web_modern_collections_v2");return r};
_.t(eR,_.y);eR.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
eR.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
eR.prototype.onYtNavigate=function(r,f){var I=this;if(f.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",f)){var C=this.get("watchEndpoint.videoId",f.endpoint),Y=_.qy(this.hostElement,"yt-get-current-video-id-action")[0];_.N("kevlar_mix_handle_first_endpoint_different")&&C&&Y&&C!==Y||(r.stopPropagation(),_.Ok().getPlayerPromise().then(function(V){if(V.getPlayerState()===0&&I.data.secondaryNavigationEndpoint)var S=I.data.secondaryNavigationEndpoint;else{S=
Object.assign({},f.endpoint);var h=_.F(S.commandMetadata,_.oo);h&&(V=Math.floor(V.getCurrentTime()),h.url=_.UQ(h.url,{t:V}),!_.N("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(h=_.F(S,_.vj)))&&(h.startTimeSeconds=V)}_.kA(I.hostElement,"yt-navigate",{endpoint:S})}))}};
_.OC.Object.defineProperties(eR.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.N("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.N("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var r,f,I,C,Y,V;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(r=this.data)==null?void 0:(f=r.thumbnail)==null?void 0:f.sampledThumbnailColor,vibrantColorPalette:(I=this.data)==null?void 0:(C=I.thumbnail)==null?void 0:C.vibrantColorPalette,darkColorPalette:(Y=this.data)==null?void 0:(V=Y.thumbnail)==null?void 0:V.darkColorPalette,experimentEnabled:this.collections}}}});
eR.prototype.onYtNavigate=eR.prototype.onYtNavigate;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.DG.YtEndpointBehavior),_.B("design:type",Object)],eR.prototype,"ytEndpointBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],eR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],eR.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.J(_.jW),_.B("design:type",Object)],eR.prototype,"ytdLockupBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],eR.prototype,"ytdReduxBehavior",void 0);_.A([_.K({selector:_.eO}),_.B("design:type",Object)],eR.prototype,"isGridViewEnabled",void 0);_.A([_.R("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],eR.prototype,"watchFeedBigThumbs",null);
_.A([_.R("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],eR.prototype,"thumbnailWidth",null);_.A([_.K(),_.B("design:type",Object)],eR.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],eR.prototype,"collections",void 0);_.A([_.R("data","collections"),_.B("design:type",Object),_.B("design:paramtypes",[])],eR.prototype,"collectionStack",null);
_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],eR.prototype,"onYtNavigate",null);eR=_.A([_.U({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],eR);
_.Q(eR,"ytd-compact-radio-renderer",function(){if(agC!==void 0)return agC;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return agC=r},{mode:1});var XbX;var Jt=function(){return _.y.apply(this,arguments)||this};
_.t(Jt,_.y);Jt.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Jt.prototype.computeRendererStyle=function(r){return r.style?r.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.A([_.K(),_.B("design:type",Object)],Jt.prototype,"data",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Jt.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Jt.prototype,"rendererBehavior",void 0);_.A([_.K({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.B("design:type",String)],Jt.prototype,"rendererStyle",void 0);
Jt=_.A([_.U({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],Jt);
_.Q(Jt,"ytd-compact-text-promo-renderer",function(){if(XbX!==void 0)return XbX;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return XbX=r},{mode:1});var N14;var jR=function(){var r=_.y.apply(this,arguments)||this;r.isShortsStyle=!1;return r};
_.t(jR,_.y);_.l=jR.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?_.kA(this.hostElement,"yt-disable-lockup-interaction"):_.kA(this.hostElement,"yt-enable-lockup-interaction"))};
_.l.isMetaBlockEmpty=function(r){return!r||!r.longBylineText&&!r.shortBylineText&&!r.shortViewCountText&&!r.viewCountText};
_.l.computeHasOneLineTitle=function(r){return this.forceOneLineTitle||!(r==null||!r.buttons)};
_.l.computeDisableInteraction=function(){var r;return!((r=this.data)==null?0:r.navigationEndpoint)};
_.l.hasSingularTopStandaloneBadge=function(){var r;return!((r=this.data)==null||!r.topStandaloneBadge)};
_.OC.Object.defineProperties(jR.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.N("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.N("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 r;return this.hasSingularTopStandaloneBadge()?[(r=this.data)==null?void 0:r.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var r;return this.shouldShowTopBadges?((r=this.data)==null?void 0:r.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
jR.prototype.disableInteractionChanged=jR.prototype.disableInteractionChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],jR.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],jR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],jR.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.J(_.jW),_.B("design:type",Object)],jR.prototype,"ytdLockupBehavior",void 0);
_.A([_.J(_.PH),_.B("design:type",Object)],jR.prototype,"ytdReduxBehavior",void 0);_.A([_.K({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.B("design:type",Boolean)],jR.prototype,"metaBlockEmpty",void 0);_.A([_.K({selector:_.eO}),_.B("design:type",Object)],jR.prototype,"isGridViewEnabled",void 0);_.A([_.R("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jR.prototype,"watchFeedBigThumbs",null);
_.A([_.R("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],jR.prototype,"thumbnailWidth",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],jR.prototype,"isShortsStyle",void 0);_.A([_.K(),_.B("design:type",Object)],jR.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.B("design:type",Boolean)],jR.prototype,"hasOneLineTitle",void 0);
_.A([_.K(),_.B("design:type",Boolean)],jR.prototype,"hideThumbnail",void 0);_.A([_.K(),_.B("design:type",Boolean)],jR.prototype,"forceOneLineTitle",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.B("design:type",Boolean)],jR.prototype,"disableInteraction",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],jR.prototype,"musicMetadataVideoLockup",void 0);
_.A([_.Bt("disableInteraction"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jR.prototype,"disableInteractionChanged",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jR.prototype,"shouldShowTopBadges",null);_.A([_.R("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],jR.prototype,"topBadges",null);
_.A([_.R("shouldShowTopBadges","data"),_.B("design:type",Array),_.B("design:paramtypes",[])],jR.prototype,"inlineMetadataBadges",null);_.A([_.R("shouldShowTopBadges"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jR.prototype,"shouldShowBadgesBelowMetadata",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],jR.prototype,"compactTitleClass",null);jR=_.A([_.U({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],jR);
_.Q(jR,"ytd-compact-video-renderer",function(){if(N14!==void 0)return N14;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return N14=r},{mode:_.QQ("kevlar_poly_si_batch_j067")?1:2});var $R_;_.gW("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var HA=function(){return _.y.apply(this,arguments)||this};
_.t(HA,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],HA.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],HA.prototype,"data",void 0);HA=_.A([_.U({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],HA);
_.Q(HA,"ytd-counterfactual-renderer",function(){if($R_!==void 0)return $R_;var r=document.createElement("template");_.c(r,"\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");r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return $R_=r},{mode:1});var FUq;var Ry=function(){var r=_.y.apply(this,arguments)||this;r.hidden=!1;return r};
_.t(Ry,_.y);Ry.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.a().resolve(_.Gg).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
Ry.prototype.computeHidden=function(r){return!!r};
_.OC.Object.defineProperties(Ry.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}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ry.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Ry.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.B("design:type",Object)],Ry.prototype,"hidden",void 0);_.A([_.R("data.label"),_.B("design:type",String),_.B("design:paramtypes",[])],Ry.prototype,"label",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ry.prototype,"value",null);
Ry=_.A([_.U({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],Ry);
_.Q(Ry,"ytd-dropdown-item-renderer",function(){if(FUq!==void 0)return FUq;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return FUq=r},{mode:1});var P8s;var t13;var vA=function(){return _.y.apply(this,arguments)||this};
_.t(vA,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],vA.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],vA.prototype,"data",void 0);_.A([_.K({computed:"getSimpleString(data.label)"}),_.B("design:type",String)],vA.prototype,"label",void 0);vA=_.A([_.U({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],vA);
_.Q(vA,"ytd-navigation-dropdown-item-renderer",function(){if(t13!==void 0)return t13;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return t13=r},{mode:1});var Kn=function(){var r=_.y.apply(this,arguments)||this;r.disabled=!1;r.value="";r.noLabelFloat=!1;r.noUnderline=!1;r.usePrimaryColor=!1;r.hasBackground=!1;r.verticalAlign="top";r.autosize=!1;r.minAutosizeWidth=100;r.autosizeFont="14px Roboto";return r};
_.t(Kn,_.y);_.l=Kn.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 _.LT("value-changed",this.value))};
_.l.stopPropagation=function(r){r.stopPropagation()};
_.l.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var r=this.canvas.getContext("2d");r&&(r.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(r.measureText(this.inputEl.value).width)+24)+"px")}};
_.l.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var r=0,f=this.data.entries.length;r<f;r++){var I=this.data.entries[r],C;for(C in I)if(I.hasOwnProperty(C)){var Y=I[C];if("isSelected"in Y&&Y.isSelected)return"stringValue"in Y?Y.stringValue||"":"int32Value"in Y?Y.int32Value||0:0}}return null};
_.l.updateValueFromBinding=function(r){this.value=r.detail.value};
_.OC.Object.defineProperties(Kn.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 r=0,f=this.data.entries.length;r<f;r++){var I=this.data.entries[r],C;for(C in I)if(I.hasOwnProperty(C)){var Y=I[C];if("isSelected"in Y&&Y.isSelected&&"label"in Y)return this.ytRendererBehavior.getSimpleString(Y.label)}}return null}}});
Kn.prototype.autoSizeLabel=Kn.prototype.autoSizeLabel;Kn.prototype.stopPropagation=Kn.prototype.stopPropagation;Kn.prototype.valueChangedForBinding=Kn.prototype.valueChangedForBinding;Kn.prototype.dataChanged=Kn.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Kn.prototype,"ytRendererStamperBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],Kn.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Kn.prototype,"disabled",void 0);_.A([_.K(),_.B("design:type",Object)],Kn.prototype,"value",void 0);_.A([_.K(),_.B("design:type",Object)],Kn.prototype,"noLabelFloat",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Kn.prototype,"noUnderline",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],Kn.prototype,"theme",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Kn.prototype,"usePrimaryColor",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Kn.prototype,"hasBackground",void 0);_.A([_.K(),_.B("design:type",Object)],Kn.prototype,"verticalAlign",void 0);_.A([_.K(),_.B("design:type",Object)],Kn.prototype,"autosize",void 0);_.A([_.K(),_.B("design:type",Object)],Kn.prototype,"minAutosizeWidth",void 0);_.A([_.K(),_.B("design:type",Object)],Kn.prototype,"autosizeFont",void 0);
_.A([_.uA("#entries"),_.B("design:type",Object)],Kn.prototype,"entries",void 0);_.A([_.uA("#input"),_.B("design:type",Object)],Kn.prototype,"inputEl",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kn.prototype,"dataChanged",null);_.A([_.YN("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kn.prototype,"valueChangedForBinding",null);
_.A([_.kO("iron-overlay-opened"),_.kO("iron-overlay-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Kn.prototype,"stopPropagation",null);_.A([_.kO("iron-select"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kn.prototype,"autoSizeLabel",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Kn.prototype,"label",null);
Kn=_.A([_.U({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],Kn);
_.Q(Kn,"ytd-dropdown-renderer",function(){if(P8s!==void 0)return P8s;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return P8s=r},{mode:1});var T14;var yz=function(){var r=_.y.apply(this,arguments)||this;r.isConstrainedList=!1;return r};
_.t(yz,_.y);yz.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"}}}};
yz.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
yz.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
yz.prototype.computeViewAllHidden=function(r,f){return r||!f.viewAllEndpoint};
yz.prototype.fillRestIfNoShowMore=yz.prototype.fillRestIfNoShowMore;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],yz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.AW.YtLazyListBehavior),_.B("design:type",Object)],yz.prototype,"ytLazyListBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],yz.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],yz.prototype,"isConstrainedList",void 0);_.A([_.YN("data","canShowMore"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yz.prototype,"fillRestIfNoShowMore",null);yz=_.A([_.U({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],yz);
_.Q(yz,"ytd-expanded-shelf-contents-renderer",function(){if(T14!==void 0)return T14;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return T14=r},{mode:_.QQ("kevlar_poly_si_batch_j025")?1:2});var cOs;var UB=function(){return _.y.apply(this,arguments)||this};
_.t(UB,_.y);UB.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}}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],UB.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],UB.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],UB.prototype,"data",void 0);UB=_.A([_.U({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],UB);
_.Q(UB,"ytd-feed-channel-filter-header-renderer",function(){if(cOs!==void 0)return cOs;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return cOs=r},{mode:1});var WU4;var LUB;var mRB;var sB=function(){return _.y.apply(this,arguments)||this};
_.t(sB,_.y);_.l=sB.prototype;_.l.onClick=function(r){var f,I=(f=this.data)==null?void 0:f.sectionEndpoint;!_.iB(_.JN(r),this.hostElement,["A".toString()])&&I&&_.kA(this.hostElement,"yt-navigate",{endpoint:I})};
_.l.computeHasSectionEndpoint=function(r){return(r==null?void 0:r.sectionEndpoint)!==void 0};
_.l.computeShowHeaderAsLink=function(r){return(r==null?void 0:r.header)!==void 0&&(r==null?void 0:r.sectionEndpoint)!==void 0};
_.l.computeShowSubheaderAsLink=function(r){return(r==null?void 0:r.subheader)!==void 0&&(r==null?void 0:r.sectionEndpoint)!==void 0&&(r==null?void 0:r.header)===void 0};
_.l.getHeaderAsLinkClass=function(r){var f=[],I;(r==null?0:(I=r.headerIcon)==null?0:I.iconType)&&f.push("header-link-active");return f.join(" ")};
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],sB.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],sB.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],sB.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],sB.prototype,"data",void 0);
_.A([_.K({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],sB.prototype,"hasSectionEndpoint",void 0);_.A([_.K({computed:"computeShowHeaderAsLink(data)"}),_.B("design:type",Boolean)],sB.prototype,"showHeaderAsLink",void 0);_.A([_.K({computed:"computeShowSubheaderAsLink(data)"}),_.B("design:type",Boolean)],sB.prototype,"showSubheaderAsLink",void 0);sB=_.A([_.U({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],sB);
_.Q(sB,"ytd-medical-panel-section-renderer",function(){if(mRB!==void 0)return mRB;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return mRB=r},{mode:1});var OB=function(){var r=_.y.apply(this,arguments)||this;r.isExpanded=!1;r.roundedContainer=!0;r.skipRoundingTop=!1;r.toggleExpandableSection=function(){r.isExpanded=!r.isExpanded};
return r};
_.t(OB,_.y);
OB.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]]"}}}}}};
OB.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
OB.prototype.dataChanged=OB.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],OB.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],OB.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],OB.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],OB.prototype,"isExpanded",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],OB.prototype,"roundedContainer",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],OB.prototype,"skipRoundingTop",void 0);_.A([_.K(),_.B("design:type",Object)],OB.prototype,"toggleExpandableSection",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OB.prototype,"dataChanged",null);OB=_.A([_.U({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],OB);
_.Q(OB,"ytd-medical-panel-content-renderer",function(){if(LUB!==void 0)return LUB;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return LUB=r},{mode:1});_.gW("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var oy=function(){var r=_.y.apply(this,arguments)||this;r.roundedContainer=!0;r.amsterdamEnabled=_.N("enable_desktop_amsterdam_info_panels");r.hasTitle=!1;r.linkIcon="OPEN_IN_NEW";r.isDismissed=!1;return r};
_.t(oy,_.y);
oy.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"}}}};
oy.prototype.computeHasTitle=function(r){return!(r==null||!r.title)};
oy.prototype.onClick=function(r){var f,I=(f=this.data)==null?void 0:f.headerEndpoint;!_.iB(_.JN(r),this.hostElement,["BUTTON".toString()])&&I&&this.ytComponentBehavior.resolveCommand(I)};
_.OC.Object.defineProperties(oy.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 r;return((r=this.data)==null?void 0:r.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.data)==null?void 0:r.disableBottomDivider)||!((f=this.data)==null?0:f.title)}}});
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],oy.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],oy.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],oy.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],oy.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],oy.prototype,"roundedContainer",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],oy.prototype,"amsterdamEnabled",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.B("design:type",Object)],oy.prototype,"hasTitle",void 0);
_.A([_.K({type:_.N("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.R("data.background"),_.B("design:type",Object),_.B("design:paramtypes",[])],oy.prototype,"background",null);_.A([_.K({type:_.N("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.R("data.titleStyle"),_.B("design:type",Object),_.B("design:paramtypes",[])],oy.prototype,"titleStyle",null);
_.A([_.K({type:_.N("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.R("data.titleStyle"),_.B("design:type",Object),_.B("design:paramtypes",[])],oy.prototype,"showLinkIcon",null);_.A([_.K(),_.B("design:type",String)],oy.prototype,"linkIcon",void 0);_.A([_.K({type:_.N("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],oy.prototype,"hideDivider",null);
_.A([_.K({selectorArgs:["data.dismissStateEntityKey"],selector:function(r,f){r=_.f2(r.entities,"dismissState",f);return(r==null?void 0:r.isDismissed)||(r==null?void 0:r.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(r==null?void 0:r.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.B("design:type",Object)],oy.prototype,"isDismissed",void 0);oy=_.A([_.U({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],oy);
_.Q(oy,"ytd-info-panel-container-renderer",function(){if(WU4!==void 0)return WU4;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return WU4=r},{mode:1});var e8s;_.gW("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var Qz=function(){var r=_.y.apply(this,arguments)||this;r.modernTypography=_.N("web_modern_typography");return r};
_.t(Qz,_.y);Qz.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Qz.prototype.computeStyle=function(r){return r?r:""};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Qz.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Qz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Qz.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.B("design:type",String)],Qz.prototype,"titleStyle",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Qz.prototype,"modernTypography",void 0);Qz=_.A([_.U({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],Qz);
_.Q(Qz,"ytd-item-section-header-renderer",function(){if(e8s!==void 0)return e8s;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return e8s=r},{mode:1});var JOs;var j$V,Hb3=function(){return j$V!==void 0?j$V:j$V=document.createElement("template")};
document.head.appendChild(Hb3().content);var ib3;_.At=new _.Go("VOTING_ANIMATION_CONTROLLER_TOKEN");var vzV=_.Hc(function(r){var f=r.data;var I=_.yy(),C=_.yy();r=_.E(_.ld("VOTE_STATUS_NONE",void 0,"FVF7mc"));var Y=r.next().value,V=r.next().value,S=_.VS(CDR,function(){var g;return(g=f())==null?void 0:g.entityKey}),h=_.N("web_enable_voting_animation")||_.N("enable_music_web_cairo_voting_animation");
_.$E(function(){var g;((g=f().initialState)==null?0:g.status)&&V(f().initialState.status)});
var w=function(){var g,X,P=(X=(g=f().initialState)==null?void 0:g.votes)!=null?X:0,W;g=(W=f().initialState)==null?void 0:W.status;return g==="VOTE_STATUS_UPVOTED"?P-1:g==="VOTE_STATUS_DOWNVOTED"?P+1:P},n=function(){return Y()==="VOTE_STATUS_UPVOTED"?w()+1:Y()==="VOTE_STATUS_DOWNVOTED"?w()-1:w()},d=function(g){var X=g?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
V(X);var P=n(),W=_.a().resolve(_.ZY(_.At)),m=S();m&&(g&&(m==null?0:m.upvoteDefaultButtonOnTap)?_.F2(m.upvoteDefaultButtonOnTap,{form:{element:I.value},disableClickTracking:!0}):(m==null?0:m.upvoteToggledButtonOnTap)&&_.F2(m.upvoteToggledButtonOnTap,{form:{element:I.value},disableClickTracking:!0}));var v;g=(v=m==null?void 0:m.enableOptimisticReordering)!=null?v:f().enableOptimisticReordering;h&&W&&f().itemId&&g&&R8D(W,f().itemId,P,X)},z=function(g){var X=g?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
V(X);var P=n(),W=_.a().resolve(_.ZY(_.At)),m=S();m&&(g&&(m==null?0:m.downvoteDefaultButtonOnTap)?_.F2(m.downvoteDefaultButtonOnTap,{form:{element:C.value},disableClickTracking:!0}):(m==null?0:m.downvoteToggledButtonOnTap)&&_.F2(m.downvoteToggledButtonOnTap,{form:{element:C.value},disableClickTracking:!0}));var v;g=(v=m==null?void 0:m.enableOptimisticReordering)!=null?v:f().enableOptimisticReordering;h&&W&&f().itemId&&g&&R8D(W,f().itemId,P,X)};
r={};r=_.qd("ytVotingViewModelVoteCount",(r.ytVotingViewModelVoteCountDisabled=function(){return f().isDisabled},r));
return _.p("voting-view-model",{class:"ytVotingViewModelHost"},_.p("div",{el:I},_.p(_.X1,{data:function(){var g=_.F(f().upvoteButton,_.$4);return{toggleButtonViewModel:Object.assign({},g,{isToggled:Y()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(g){return _.p(_.F1,{data:g.data,
onToggle:d})}})),_.p("div",{class:r},function(){var g,X,P;
return Y()==="VOTE_STATUS_UPVOTED"?(g=f().initialState)==null?void 0:g.compactVotesUpvoted:Y()==="VOTE_STATUS_DOWNVOTED"?(X=f().initialState)==null?void 0:X.compactVotesDownvoted:(P=f().initialState)==null?void 0:P.compactVotes}),_.p("div",{el:C},_.p(_.X1,{data:function(){var g=_.F(f().downvoteButton,_.$4);
return{toggleButtonViewModel:Object.assign({},g,{isToggled:Y()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(g){return _.p(_.F1,{data:g.data,
onToggle:z})}})))},"Db");_.Kv(_.Hc(function(r){var f=r.data;return _.p("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.p("div",{class:_.qd("ytEngagementBarViewModelEngagementBarWrapper",r.className)},_.p(_.X1,{data:function(){return f().actions}},{votingViewModel:vzV})))},"Eb"),"engagement-bar-view-model",{props:{data:_.jv,
className:_.jv}});var Zw=function(){var r=_.y.apply(this,arguments)||this;r.amsterdamPostMvp=_.N("web_amsterdam_post_mvp_playlists");r.cairoCollabPlaylistPostMvp=_.N("web_collab_playlist_thumbnail_size");r.playlistVotingAnimationEnabled=_.N("web_enable_voting_animation");r.downloadProgress=0;r.transferState="TRANSFER_STATE_UNKNOWN";r.downloadState="DOWNLOAD_STATE_UNKNOWN";r.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";r.offlineVideoPolicyExpirationTimestamp=0;return r};
_.t(Zw,_.y);_.l=Zw.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=_.N("kevlar_playlist_drag_handles")&&this.canReorder};
_.l.onDrag=function(){if(this.thumbnail){var r=_.e(this.thumbnail).querySelector("yt-image");r&&(r.shouldRenderLazy=!1)}};
_.l.onMenuOverlayChanged=function(r,f){this.menuOpened=f};
_.l.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.l.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.l.onContentsTap=function(r){var f,I=(f=this.data)==null?void 0:f.serviceEndpoints;if(I&&I.length===1&&_.F(I[0],weK)&&!_.iB(_.JN(r),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(I[0]);else{var C;(f=(C=this.data)==null?void 0:C.navigationEndpoint)&&_.N("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?KUD(_.a().resolve(_.iO),f):(_.xP().playlistSuggestionsShelfActivation=
!0,_.yO4(_.a().resolve(_.iO),f)):f&&!_.iB(_.JN(r),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.N("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.kA(this.hostElement,"yt-navigate",{endpoint:f}):this.ytComponentBehavior.resolveCommand(f))}};
_.l.computeStyle=function(r){return r?r.toLowerCase().replace(/_/g,"-"):""};
_.l.computeThumbnailWidth=function(r){return r==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.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=tNE(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 r,f,I,C=((r=this.downloadRenderData)==null?void 0:r.badges)&&((f=this.downloadRenderData)==null?void 0:f.badges)!==((I=this.data)==null?void 0:I.badges),Y,V,S;r=((Y=this.downloadRenderData)==null?void 0:Y.thumbnailOverlays)&&((V=this.downloadRenderData)==null?void 0:V.thumbnailOverlays)!==((S=this.data)==null?void 0:S.thumbnailOverlays);(!this.downloadRenderData||C||r)&&this.downloadStateChanged()}};
_.l.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var r,f,I=(r=this.data.menu)==null?void 0:(f=r.menuRenderer)==null?void 0:f.items;if(I)for(r=_.E(I),f=r.next();!f.done;f=r.next())if(f=f.value,I=void 0,_.F((I=f.menuServiceItemRenderer)==null?void 0:I.serviceEndpoint,_.TK)){var C=I=void 0,Y=void 0;f=(I=f)==null?void 0:(C=I.menuServiceItemRenderer)==null?void 0:(Y=C.serviceEndpoint)==null?void 0:Y.playlistEditEndpoint;Y=C=void 0;if(I=(C=f)==null?void 0:(Y=C.actions)==null?void 0:
Y[0])C=void 0,I.setVideoId=(C=this.data)==null?void 0:C.setVideoId;Y=C=I=void 0;if(f=(I=f)==null?void 0:(C=I.clientActions)==null?void 0:(Y=C[0])==null?void 0:Y.playlistRemoveVideosAction)I=void 0,f.setVideoIds=[(I=this.data)==null?void 0:I.setVideoId]}}};
_.OC.Object.defineProperties(Zw.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
Zw.prototype.setVideoIdChanged=Zw.prototype.setVideoIdChanged;Zw.prototype.dataChanged=Zw.prototype.dataChanged;Zw.prototype.downloadStateChanged=Zw.prototype.downloadStateChanged;Zw.prototype.onMenuOverlayChanged=Zw.prototype.onMenuOverlayChanged;Zw.prototype.canReorderChanged=Zw.prototype.canReorderChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Zw.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],Zw.prototype,"ytdReduxBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Zw.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.jW),_.B("design:type",Object)],Zw.prototype,"ytdLockupBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],Zw.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Zw.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Zw.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Zw.prototype,"amsterdamPostMvp",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Zw.prototype,"canReorder",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Zw.prototype,"menuOpened",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Zw.prototype,"handleIsHovered",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Zw.prototype,"persistentDragHandle",void 0);
_.A([_.K(),_.B("design:type",Object)],Zw.prototype,"downloadRenderData",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],Zw.prototype,"styleType",void 0);_.A([_.K({computed:"computeThumbnailWidth(data.style)"}),_.B("design:type",Number)],Zw.prototype,"thumbnailWidth",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Zw.prototype,"isDownloads",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Zw.prototype,"cairoCollabPlaylistPostMvp",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Zw.prototype,"playlistVotingAnimationEnabled",void 0);_.A([_.K({selector:tQ,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],Zw.prototype,"downloadProgress",void 0);_.A([_.K(),_.B("design:type",Number)],Zw.prototype,"relativeDateReference",void 0);
_.A([_.K({selector:_.FN,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],Zw.prototype,"transferState",void 0);_.A([_.K({selector:kKU,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],Zw.prototype,"downloadState",void 0);_.A([_.K({selector:HlR,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],Zw.prototype,"offlinePolicyAction",void 0);_.A([_.K({selector:ilm,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],Zw.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.A([_.K({selector:v$$,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],Zw.prototype,"entityInfo",void 0);_.A([_.K({selector:_.Nj}),_.B("design:type",Boolean)],Zw.prototype,"miniplayerIsActive",void 0);_.A([_.R("data"),_.B("design:type",String),_.B("design:paramtypes",[])],Zw.prototype,"playlistVideoId",null);_.A([_.uA("#thumbnail"),_.B("design:type",Object)],Zw.prototype,"thumbnail",void 0);
_.A([_.YN("canReorder"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zw.prototype,"canReorderChanged",null);_.A([_.kO("yt-menu-overlay-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Boolean]),_.B("design:returntype")],Zw.prototype,"onMenuOverlayChanged",null);
_.A([_.YN("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zw.prototype,"downloadStateChanged",null);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zw.prototype,"dataChanged",null);
_.A([_.YN("data.setVideoId"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zw.prototype,"setVideoIdChanged",null);Zw=_.A([_.U({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],Zw);
_.Q(Zw,"ytd-playlist-video-renderer",function(){if(ib3!==void 0)return ib3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);r.content.insertBefore(Hb3().content.cloneNode(!0),r.content.firstChild);return ib3=r},{mode:1});var UR4;var Gn=function(){return _.y.apply(this,arguments)||this};
_.t(Gn,_.y);_.A([_.K(),_.B("design:type",Object)],Gn.prototype,"data",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Gn.prototype,"rendererBehavior",void 0);Gn=_.A([_.U({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],Gn);
_.Q(Gn,"ytd-premium-browse-footer-renderer",function(){if(UR4!==void 0)return UR4;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return UR4=r},{mode:1});var s$C;var kK=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return r};
_.t(kK,_.y);_.l=kK.prototype;_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.handleDarkModeToggledAction=function(r){this.isDarkTheme=r};
_.l.computeHeaderLogoThumbnail=function(r,f){if(r)return f?r.darkLogo:r.lightLogo};
_.l.computeHeaderLogoHeight=function(r,f){var I,C,Y;return(r=(I=this.computeHeaderLogoThumbnail(r,f))==null?void 0:(C=I.thumbnails)==null?void 0:(Y=C[0])==null?void 0:Y.height)&&r%31===0?"31":"24"};
_.l.computeHeaderLogoMarginBottom=function(r,f){return this.computeHeaderLogoHeight(r,f)==="24"?"0":"-7"};
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],kK.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],kK.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],kK.prototype,"isDarkTheme",void 0);_.A([_.K({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.B("design:type",Object)],kK.prototype,"themeLogo",void 0);
_.A([_.K({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.B("design:type",String)],kK.prototype,"logoHeight",void 0);_.A([_.K({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.B("design:type",String)],kK.prototype,"logoMarginBottom",void 0);kK=_.A([_.U({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],kK);
_.Q(kK,"ytd-primetime-promo-header-renderer",function(){if(s$C!==void 0)return s$C;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return s$C=r},{mode:1});var ObU;_.GL(VAK);var ozg=_.Hc(function(r){var f=r.text;var I=r.className;var C=r.tagLevel;return _.p(_.MC,null,_.p(_.nz,{when:function(){return(C==null?void 0:C())===0}},function(){return _.p("h2",{class:I},f())}),_.p(_.nz,{when:function(){return(C==null?void 0:C())===1}},function(){return _.p("h3",{class:I},f())}),_.p(_.nz,{when:function(){return(C==null?void 0:C())===2}},function(){return _.p("h4",{class:I},f())}),_.p(_.dt,null,function(){return _.p("h2",{class:I},f())}))},"Fb"),Q$C=_.Hc(function(r){var f=_.IC(function(Y){var V;
(V=r.onClick)==null||V.call(r,Y)}),I={},C={};
return _.p("yt-shelf-header-layout",{class:_.qd("shelf-header-layout-wiz",(I["shelf-header-layout-wiz--disable-horizontal-padding"]=r.disableHorizontalPadding,I["shelf-header-layout-wiz--disable-vertical-padding"]=r.disableVerticalPadding,I["shelf-header-layout-wiz--responsive"]=r.useResponsiveLayout,I["shelf-header-layout-wiz--narrow"]=function(){var Y,V;return((Y=r.useResponsiveLayout)==null?void 0:Y.call(r))&&((V=r.forceSmallLayout)==null?void 0:V.call(r))},I["shelf-header-layout-wiz--is-overlay"]=
r.isOverlay,I["shelf-header-layout-wiz--tappable"]=!!r.onClick,I)),
"on:click":f,tabindex:r.onClick?0:void 0},_.p(_.M,{cond:r.leadingIcon,then:function(Y){return _.p("div",{class:"shelf-header-layout-wiz__leading-icon"},_.p(_.V2,{icon:Y}))},
else:function(){return _.p(_.M,{cond:r.hasLeadingImage,then:function(){var Y,V={};return _.p("div",{class:_.qd("shelf-header-layout-wiz__leading-image",(V["shelf-header-layout-wiz__leading-image--circular-image"]=r.circularImage,V))},(Y=r.leadingImage)==null?void 0:Y.call(r))}})}}),_.p("div",{class:"shelf-header-layout-wiz__label-container"},_.p(_.M,{cond:r.hasSuperlabel,
then:function(){var Y;return _.p("div",{class:"shelf-header-layout-wiz__superlabel"},(Y=r.superlabel)==null?void 0:Y.call(r))}}),_.p("div",{class:"shelf-header-layout-wiz__title-row"},_.p(ozg,{text:r.title,
className:_.qd("shelf-header-layout-wiz__title",(C["shelf-header-layout-wiz__title--small-title"]=r.forceSmallLayout,C)),tagLevel:r.tagLevel}),_.p(_.M,{cond:r.hasDetail,then:function(){var Y;return _.p("div",{class:"shelf-header-layout-wiz__detail"},(Y=r.detail)==null?void 0:Y.call(r))}})),_.p(_.M,{cond:r.hasSublabel,
then:function(){var Y;return _.p("div",{class:"shelf-header-layout-wiz__sublabel"},(Y=r.sublabel)==null?void 0:Y.call(r))}})),_.p(_.M,{cond:r.hasTrailingActions,
then:function(){var Y;return _.p("div",{class:"shelf-header-layout-wiz__trailing-actions"},(Y=r.trailingActions)==null?void 0:Y.call(r))}}))},"Gb"),piu=_.N("web_enable_sink_section_header")?Q$C:VAK,AOg=_.N("web_enable_sink_section_header")?Q$C:_.rW(VAK,{callbacks:{title:!0,
detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}});Q$C.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};var bpl=_.zk({flexibleActionsViewModel:z5C});_.GL(njd);var B1C;B1C=_.Hc(function(r){var f=r.data;return _.p("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:_.lB({"background-color":function(){return YLE(f().backgroundColor)?_.g_(YLE(f().backgroundColor)):void 0}})},_.p(AOg,{hasDetail:!1,
title:function(){return _.p(_.wW,{text:function(){return f().headline}})},
hasTitle:!0,sublabel:function(){return _.p(ZbX,{data:f})},
hasSublabel:function(){return!!f().sublabel||!!f().bottomBadge},
superlabel:function(){return _.p(Gx8,{data:f})},
hasSuperlabel:function(){return!!f().superlabel||!!f().topBadge},
leadingImage:function(){return _.p(kxX,{leadingAccessory:function(){return f().leadingAccessory}})},
hasLeadingImage:function(){return!!f().leadingAccessory},
trailingActions:function(){return _.p(_.X1,{data:function(){return f().trailingActions}},{flexibleActionsViewModel:a9})},
hasTrailingActions:function(){return!!f().trailingActions},
disableHorizontalPadding:r.disableHorizontalPadding,disableVerticalPadding:r.disableVerticalPadding,forceSmallLayout:r.forceSmallLayout,useResponsiveLayout:r.useResponsiveLayout,isOverlay:r.isOverlay,onClick:function(I){if(_.RK(f().rendererContext)){var C=_.i6(f().rendererContext);C&&_.X2(C,{form:{element:I.target,event:I}})}}}))},"Hb");
_.BA=_.N("web_enable_sink_section_header")?B1C:_.rW(njd);B1C.idomCompat=!0;var kxX=_.Hc(function(r){var f=r.leadingAccessory;return _.p(_.B9,null,_.p(_.M,{cond:function(){var I;return(I=f().image)!=null?I:_.ZK(f().themedImage)},
then:function(I){return _.p(_.J3,{data:I,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.p(_.M,{cond:function(){return _.F(f().avatar,_.s0)},
then:function(I){return _.p(_.$U,{data:I})}}))},"Ib"),ZbX=_.Hc(function(r){var f=r.data;
return _.p(_.B9,null,_.p(_.M,{cond:function(){return _.F(f().bottomBadge,SLE)},
then:function(I){var C={};return _.p(_.sq,{data:I,class:_.qd((C.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!I()&&!!f().sublabel},C))})}}),_.p(_.M,{cond:function(){return f().sublabel},
then:function(I){return _.p(_.wW,{text:I})}}))},"Jb"),Gx8=_.Hc(function(r){var f=r.data;
return _.p(_.B9,null,_.p(_.M,{cond:function(){return _.F(f().topBadge,SLE)},
then:function(I){var C={};return _.p(_.sq,{data:I,class:_.qd((C.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!I()&&!!f().superlabel},C))})}}),_.p(_.M,{cond:function(){return f().superlabel},
then:function(I){return _.p(_.wW,{text:I})}}))},"Kb");_.Kv(_.BA,"yt-section-header-view-model",{props:{data:_.jv,className:_.jv,disableHorizontalPadding:_.jv,disableVerticalPadding:_.jv,forceSmallLayout:_.jv,useResponsiveLayout:_.jv,isOverlay:_.jv}});_.gW("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var q8=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return r};
_.t(q8,_.y);_.l=q8.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 r=this;_.UC(this,function(){r.updateItemVisibility()})};
_.l.onUpdateElementsPerRowAction=function(r){r&&this.elementsPerRow!==r&&(this.elementsPerRow=r,this.updateItemVisibility())};
_.l.updateItemVisibility=function(){var r=this;this.data&&this.data.panels&&_.e(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(f,I){f.hidden=I>r.elementsPerRow-1})};
_.l.requestElementsPerRow=function(){_.kA(this.hostElement,"yt-request-elements-per-row")};
q8.prototype.onDataChange=q8.prototype.onDataChange;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],q8.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],q8.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],q8.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],q8.prototype,"actionHandlerBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],q8.prototype,"data",void 0);_.A([_.K({value:3}),_.B("design:type",Number)],q8.prototype,"elementsPerRow",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],q8.prototype,"onDataChange",null);q8=_.A([_.U({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],q8);
_.Q(q8,"ytd-primetime-promo-renderer",function(){if(ObU!==void 0)return ObU;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ObU=r},{mode:1});var q34;var ut=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return r};
_.t(ut,_.y);ut.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
ut.prototype.handleButtonRefreshAction=function(r){if(r=_.F(r,_.KtV))this.set("data.button",r.membershipButton),this.notifyPath("data.button")};
_.OC.Object.defineProperties(ut.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.data)==null?void 0:(f=r.avatars)==null?void 0:f.slice(0,8))||[]}}});
_.A([_.K(),_.B("design:type",Object)],ut.prototype,"data",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],ut.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ut.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ut.prototype,"rendererBehavior",void 0);_.A([_.R("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],ut.prototype,"avatars",null);
ut=_.A([_.U({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],ut);
_.Q(ut,"ytd-recognition-shelf-renderer",function(){if(q34!==void 0)return q34;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return q34=r},{mode:1});var u78;var DR4;var Dw=function(){var r=_.y.apply(this,arguments)||this;r.modernButtons=_.N("web_modern_buttons");return r};
_.t(Dw,_.y);_.l=Dw.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]]"}},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(r,f){return r!==void 0&&r.items?f?r.items.slice(0,this.data.collapsedItemCount):r.items:[]};
_.l.computeHideShowMore=function(r,f,I){return r>=f||!I};
_.l.computeHideShowAll=function(r,f,I){return!(r&&f)||I};
_.l.onMoreClick=function(){this.collapsed=!1};
_.OC.Object.defineProperties(Dw.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.N("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
Dw.prototype.dataChanged=Dw.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Dw.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Dw.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Dw.prototype,"data",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],Dw.prototype,"isSearch",void 0);
_.A([_.K({computed:"computeVisibleItems(data,collapsed)"}),_.B("design:type",Array)],Dw.prototype,"visibleItems",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],Dw.prototype,"collapsed",void 0);_.A([_.K({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.B("design:type",Boolean)],Dw.prototype,"hideShowMore",void 0);
_.A([_.K({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.B("design:type",Boolean)],Dw.prototype,"hideShowAll",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Dw.prototype,"modernButtons",void 0);_.A([_.R("isSearch"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Dw.prototype,"typographyBump",null);
_.A([_.R("isSearch"),_.B("design:type",String),_.B("design:paramtypes",[])],Dw.prototype,"thumbnailWidth",null);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Dw.prototype,"dataChanged",null);Dw=_.A([_.U({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],Dw);
_.Q(Dw,"ytd-vertical-list-renderer",function(){if(DR4!==void 0)return DR4;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return DR4=r},{mode:1});var rzs=_.op(["#"]);_.gW("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var r6=function(){var r=_.y.apply(this,arguments)||this;r.isConstrainedList=!1;r.modernTypography=_.N("web_modern_typography");return r};
_.t(r6,_.y);_.l=r6.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(r){return r||""};
_.l.computePlaceAnnotationUnderTitle=function(){var r;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((r=this.data)==null?void 0:r.thumbnailStyle)||"")};
_.l.computeHrefWithDefault=function(r){return this.ytComponentBehavior.computeHref_(r)||_.$1(rzs)};
_.l.computeIsPromoShelf=function(r){var f;return(r=r==null?void 0:(f=r[0])==null?void 0:f.metadataBadgeRenderer)?r.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.l.computePlaceBadgeBesideTitle=function(r){var f;return(r==null?0:(f=r[0])==null?0:f.metadataBadgeRenderer)?!this.computeIsPromoShelf(r):!1};
_.l.computeMenuIcon=function(r){return this.computeIsPromoShelf(r)?"yt-icons:more_vert":"yt-icons:more"};
_.l.onDataChange=function(){var r,f;((r=this.data)==null?0:(f=r.content)==null?0:f.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.l.onLockupRequested=function(r){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&r.detail&&r.detail.videoIds){for(var f=this.data.content.gridRenderer.items,I=new Set,C=_.E(r.detail.videoIds),Y=C.next();!Y.done;Y=C.next())I.add(Y.value);r.detail.returnValue=f.filter(function(V){return V.gridVideoRenderer&&V.gridVideoRenderer.videoId&&I.has(V.gridVideoRenderer.videoId)}).map(function(V){return V.gridVideoRenderer})}};
_.l.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
r6.prototype.onLockupRequested=r6.prototype.onLockupRequested;r6.prototype.onDataChange=r6.prototype.onDataChange;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],r6.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],r6.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],r6.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.Pq),_.B("design:type",Object)],r6.prototype,"ironResizableBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],r6.prototype,"data",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],r6.prototype,"isSearch",void 0);_.A([_.K(),_.B("design:type",Object)],r6.prototype,"isConstrainedList",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.N("kevlar_fluid_dismiss")}}),
_.B("design:type",Boolean)],r6.prototype,"enableFluidDismiss",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.B("design:type",String)],r6.prototype,"thumbnailStyle",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],r6.prototype,"modernTypography",void 0);_.A([_.K({computed:"computeMenuIcon(data.badges)"}),_.B("design:type",String)],r6.prototype,"menuIcon",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],r6.prototype,"onDataChange",null);_.A([_.kO("yt-lockup-requested"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],r6.prototype,"onLockupRequested",null);r6=_.A([_.U({is:"ytd-shelf-renderer",disableElementRegistration:!0})],r6);
_.Q(r6,"ytd-shelf-renderer",function(){if(u78!==void 0)return u78;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return u78=r},{mode:1});var ff3;var fs=function(){return _.y.apply(this,arguments)||this};
_.t(fs,_.y);fs.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.OC.Object.defineProperties(fs.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],fs.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],fs.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],fs.prototype,"data",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],fs.prototype,"isPlaylist",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],fs.prototype,"isClipList",void 0);
_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],fs.prototype,"isPlaylistPageWithFilters",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],fs.prototype,"hasTitle",null);_.A([_.K(),_.R("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.B("design:type",Object),_.B("design:paramtypes",[])],fs.prototype,"isRightAligned",null);
fs=_.A([_.U({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],fs);
_.Q(fs,"ytd-sort-filter-header-renderer",function(){if(ff3!==void 0)return ff3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ff3=r},{mode:1});var If3;var Id=function(){return _.y.apply(this,arguments)||this};
_.t(Id,_.y);
Id.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]]"}}}}}};
Id.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.OC.Object.defineProperties(Id.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.N("enable_creator_details_shelf_m2")){var r=[],f;((f=this.data)==null?0:f.creatorVideosButton)&&r.push(this.data.creatorVideosButton);var I;((I=this.data)==null?0:I.creatorAboutButton)&&r.push(this.data.creatorAboutButton);f=_.E(this.data.creatorCustomUrlButtons||[]);for(I=f.next();!I.done;I=f.next())r.push(I.value);return r}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.N("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Id.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.ZL.YtdHorizontalListBehavior),_.B("design:type",Object)],Id.prototype,"ytdHorizontalListBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Id.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Id.prototype,"engagementPanel",void 0);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Id.prototype,"creatorCustomUrlButtons",null);_.A([_.K({reflectToAttribute:!0}),_.R("data","creatorCustomUrlButtons"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Id.prototype,"showCreatorCustomUrlButtons",null);_.A([_.R("showCreatorCustomUrlButtons"),_.B("design:type",Number),_.B("design:paramtypes",[])],Id.prototype,"channelAvatarSize",null);
Id=_.A([_.U({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],Id);
_.Q(Id,"ytd-video-description-infocards-section-renderer",function(){if(If3!==void 0)return If3;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return If3=r},{mode:_.QQ("kevlar_poly_si_batch_j067")?1:2});var CSq;var Cs=function(){return _.y.apply(this,arguments)||this};
_.t(Cs,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Cs.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Cs.prototype,"data",void 0);_.A([_.K({computed:"computeIcon_(data.infoIcon)"}),_.B("design:type",Object)],Cs.prototype,"infoIcon",void 0);Cs=_.A([_.U({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],Cs);
_.Q(Cs,"ytd-eom-settings-disclaimer-renderer",function(){if(CSq!==void 0)return CSq;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return CSq=r},{mode:1});var YMV;var Yy=function(){return _.y.apply(this,arguments)||this};
_.t(Yy,_.y);_.OC.Object.defineProperties(Yy.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.suppressPaddingDisclaimer)}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Yy.prototype,"componentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Yy.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Yy.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Yy.prototype,"suppressPaddingDisclaimer",null);Yy=_.A([_.U({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],Yy);
_.Q(Yy,"ytd-product-list-header-renderer",function(){if(YMV!==void 0)return YMV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return YMV=r},{mode:1});var lfC;var lZ=function(){return _.y.apply(this,arguments)||this};
_.t(lZ,_.y);lZ.prototype.computeThumbnailStyle=function(r){if(r&&(r=_.MG(r)))return"background-color:"+r+";"};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],lZ.prototype,"rendererBehaviors",void 0);_.A([_.K(),_.B("design:type",Object)],lZ.prototype,"data",void 0);lZ=_.A([_.U({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],lZ);
_.Q(lZ,"ytd-hashtag-tile-renderer",function(){if(lfC!==void 0)return lfC;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return lfC=r},{mode:1});var VCC;var VA=function(){return _.y.apply(this,arguments)||this};
_.t(VA,_.y);VA.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}}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],VA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],VA.prototype,"data",void 0);VA=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],VA);
_.Q(VA,"ytd-sponsorships-alert-renderer",function(){if(VCC!==void 0)return VCC;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return VCC=r},{mode:1});var E94;var E4=function(){return _.y.apply(this,arguments)||this};
_.t(E4,_.y);E4.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.OC.Object.defineProperties(E4.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.N("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.N("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.A([_.J(_.TD),_.B("design:type",Object)],E4.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.J(_.jW),_.B("design:type",Object)],E4.prototype,"ytdLockupBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],E4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],E4.prototype,"ytRendererBehavior",void 0);_.A([_.K({selector:_.eO}),_.B("design:type",Object)],E4.prototype,"isGridViewEnabled",void 0);
_.A([_.R("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],E4.prototype,"watchFeedBigThumbs",null);_.A([_.R("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],E4.prototype,"thumbnailWidth",null);_.A([_.K(),_.B("design:type",Object)],E4.prototype,"data",void 0);E4=_.A([_.U({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],E4);
_.Q(E4,"ytd-compact-movie-renderer",function(){if(E94!==void 0)return E94;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return E94=r},{mode:1});var SM3;var xL8;var hN8=_.Lz("HTML_DIR")==="rtl",St=function(){var r=_.y.apply(this,arguments)||this;r.engagementPanel=!1;r.maxLines=2;r.expandButtonOffset=0;r.showExpandButton=!1;r.isTruncated=!1;r.isExpanded=!1;r.currentSnippetType=2;r.alwaysShowExpandButton=!1;r.JSC$14173_lastWidth=NaN;r.observer=null;r.left=0;r.right=0;r.mid=0;r.longestSnippetLength=0;r.isFinalSnippet=!1;r.isFirstMutation=!1;r.isResetMutation=!1;r.OVERFLOW_THRESHOLD=5;return r};
_.t(St,_.y);_.l=St.prototype;_.l.onClick=function(r){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.iB(_.JN(r)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var f;if((f=window.getSelection())==null||!f.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(){_.N("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.l.setUpBinarySearch=function(r){r=r*this.maxLines/8;this.left=0;var f,I;this.right=Math.min(r*2,(I=(f=this.simpleText)==null?void 0:f.length)!=null?I: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()&&_.t7(new _.nf("AttributedSnippet is empty when the description is not empty",this.text))};
_.l.mutationCallback=function(){if(this.observer!=null){var r=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var f=Math.floor(r*this.maxLines/8);this.setSnippetText(this.text,f);f!==0||this.attributedTextIsEmpty()||_.t7(new _.nf("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;r=r*this.maxLines/8;this.left=0;var I;this.right=Math.min(r*2,(I=(f=this.simpleText)==null?void 0:f.length)!=null?I: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(r){var f=this;this.observer||(this.observer=new MutationObserver(function(){f.mutationCallback()}));
this.observer.observe(r,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.l.attached=function(){var r=this;_.UC(this,function(){r.resize()})};
_.l.isExpandedChanged=function(){_.kA(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 r="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((hN8?"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",r);this.snippetContainer.style.setProperty("mask-image",
r)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(hN8?"right":"left",this.expandButtonOffset+"px")};
_.l.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.l.setSnippetText=function(r,f){r||(r={});if(_.WI(r)){var I=Vtc(r,f);I.attachmentRuns||I.commandRuns||I.decorationRuns||I.styleRuns||I.alignment||I.lineBreakMode?this.attributedSnippetTextEl?(_.N("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=Vtc(r,f),this.attributedSnippetTextEl.headerRuns=ltB(f,this.headerRuns)):this.attributedSnippetText={data:Vtc(r,f),headerRuns:ltB(f,this.headerRuns)},this.currentSnippetType=0):_.t7(new _.nf("Tried to set snippet text when HTML element was null",
r)):(this.plainSnippetText.textContent=t3(r.content||"",f),this.currentSnippetType=2)}else{a:{I=dnK(r,f);if(I.runs){I=_.E(I.runs);for(var C=I.next();!C.done;C=I.next())if(C=C.value,C.bold||C.deemphasize||C.italics||C.strikethrough||C.textColor||C.navigationEndpoint||_.F(C,zi)){I=!0;break a}}I=!1}I?this.formattedSnippetText?(this.formattedSnippetText.text=dnK(r,f),this.currentSnippetType=1):_.t7(new _.nf("Tried to set snippet text when HTML element was null",r)):(this.plainSnippetText.textContent=
t3(_.Rr(r),f),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 r=this.text;if(!_.WI(r))return!0;var f;return((f=r.content)==null?void 0:f.length)===0?!0:!1};
_.l.resize=function(r){if(this.snippetText){if(r===void 0?0:r)this.JSC$14173_lastWidth=NaN;var f=this.hostElement.offsetWidth;if(f!==this.JSC$14173_lastWidth&&!this.isExpanded)if(this.JSC$14173_lastWidth=f,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;r=0;var I,C;f=Math.min(f*this.maxLines/8*2,(C=(I=this.simpleText)==null?void 0:I.length)!=null?C:0)-1;for(I=0;r<=f;)C=Math.floor(r+(f-r)/2),this.setSnippetText(this.text,C),this.isOverflowing()?f=C-1:(r=C+1,I=C);this.setSnippetText(this.text,I);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 r=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.N("inline_expander_reset_focus_killswitch")||_.UC(this,function(){var f;((f=_.a().resolve(_.ZY(_.nF)))==null?0:f.isKeyBoardInUse())&&_.KW(r.hostElement)});
_.kA(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.l.onCollapseClick=function(){this.collapse();_.kA(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 r=this.expandSizer;return r?hN8?r.offsetParent?r.offsetParent.offsetWidth-r.offsetWidth-r.offsetLeft:0:r.offsetLeft:0};
_.OC.Object.defineProperties(St.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.WI(this.text)?this.text.content||"":_.Rr(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 _.WI(this.text)?!0:this.text&&_.N("web_replace_formatted_with_attributed_string")&&ctu(this.text)?(this.text=_.dF(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}}});
St.prototype.onTextChanged=St.prototype.onTextChanged;St.prototype.updateMaskAndExpandButtonOffset=St.prototype.updateMaskAndExpandButtonOffset;St.prototype.updateSnippetContainerMaxHeight=St.prototype.updateSnippetContainerMaxHeight;St.prototype.isExpandedChanged=St.prototype.isExpandedChanged;St.prototype.updateTextOnSnippetTypeChange=St.prototype.updateTextOnSnippetTypeChange;St.prototype.updateIsFormattedExpanded=St.prototype.updateIsFormattedExpanded;St.prototype.updateIsAttributedExpanded=St.prototype.updateIsAttributedExpanded;
St.prototype.onClick=St.prototype.onClick;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],St.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],St.prototype,"text",void 0);_.A([_.K(),_.B("design:type",Array)],St.prototype,"headerRuns",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],St.prototype,"engagementPanel",void 0);_.A([_.K(),_.B("design:type",Object)],St.prototype,"maxLines",void 0);
_.A([_.K(),_.B("design:type",String)],St.prototype,"expandLabel",void 0);_.A([_.K(),_.B("design:type",String)],St.prototype,"collapseLabel",void 0);_.A([_.K(),_.B("design:type",Object)],St.prototype,"expandCommand",void 0);_.A([_.K(),_.B("design:type",Object)],St.prototype,"expandButtonOffset",void 0);_.A([_.R("text"),_.B("design:type",String),_.B("design:paramtypes",[])],St.prototype,"simpleText",null);
_.A([_.kO("click"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],St.prototype,"onClick",null);_.A([_.R("text","isExpanded"),_.B("design:type",Object),_.B("design:paramtypes",[])],St.prototype,"expandedText",null);_.A([_.R("headerRuns","isExpanded"),_.B("design:type",Object),_.B("design:paramtypes",[])],St.prototype,"expandedHeaderRuns",null);
_.A([_.R("text"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],St.prototype,"hasAttributedStringText",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],St.prototype,"showExpandButton",void 0);_.A([_.R("collapseLabel","isExpanded"),_.B("design:type",Object),_.B("design:paramtypes",[])],St.prototype,"showCollapseButton",null);_.A([_.K(),_.B("design:type",Object)],St.prototype,"isTruncated",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],St.prototype,"isExpanded",void 0);_.A([_.K(),_.B("design:type",Boolean)],St.prototype,"isAttributedExpanded",void 0);_.A([_.Bt("isExpanded","hasAttributedStringText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],St.prototype,"updateIsAttributedExpanded",null);_.A([_.K(),_.B("design:type",Boolean)],St.prototype,"isFormattedExpanded",void 0);
_.A([_.Bt("isExpanded","hasAttributedStringText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],St.prototype,"updateIsFormattedExpanded",null);_.A([_.K(),_.B("design:type",Number)],St.prototype,"currentSnippetType",void 0);_.A([_.R("currentSnippetType"),_.B("design:type",Object),_.B("design:paramtypes",[])],St.prototype,"useAttributedSnippet",null);
_.A([_.R("currentSnippetType"),_.B("design:type",Object),_.B("design:paramtypes",[])],St.prototype,"useFormattedSnippet",null);_.A([_.R("currentSnippetType"),_.B("design:type",Object),_.B("design:paramtypes",[])],St.prototype,"usePlainSnippet",null);_.A([_.K(),_.B("design:type",Object)],St.prototype,"alwaysShowExpandButton",void 0);_.A([_.Bt("currentSnippetType"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],St.prototype,"updateTextOnSnippetTypeChange",null);
_.A([_.K(),_.B("design:type",Object)],St.prototype,"attributedSnippetText",void 0);_.A([_.uA("#snippet"),_.B("design:type",HTMLElement)],St.prototype,"snippetContainer",void 0);_.A([_.uA("#snippet-text"),_.B("design:type",HTMLElement)],St.prototype,"snippetText",void 0);_.A([_.uA("#plain-snippet-text"),_.B("design:type",HTMLElement)],St.prototype,"plainSnippetText",void 0);_.A([_.uA("#formatted-snippet-text"),_.B("design:type",Object)],St.prototype,"formattedSnippetText",void 0);
_.A([_.uA("#attributed-snippet-text"),_.B("design:type",Object)],St.prototype,"attributedSnippetTextEl",void 0);_.A([_.uA("#expand"),_.B("design:type",HTMLElement)],St.prototype,"expandButton",void 0);_.A([_.uA("#expand-sizer"),_.B("design:type",HTMLElement)],St.prototype,"expandSizer",void 0);_.A([_.YN("isExpanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],St.prototype,"isExpandedChanged",null);
_.A([_.Bt("isExpanded","maxLines"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],St.prototype,"updateSnippetContainerMaxHeight",null);_.A([_.Bt("isTruncated","showExpandButton","expandButtonOffset"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],St.prototype,"updateMaskAndExpandButtonOffset",null);
_.A([_.YN("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],St.prototype,"onTextChanged",null);St=_.A([_.U({is:"ytd-text-inline-expander",disableElementRegistration:!0})],St);
_.Q(St,"ytd-text-inline-expander",function(){if(xL8===void 0){var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);xL8=r}r=xL8;return r},{mode:2});var xy=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return r};
_.t(xy,_.y);xy.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
xy.prototype.handleUpdateDescriptionAction=function(r){if(r=_.F(r,_.y98))if(r.attributedDescription)this.set("data.attributedDescriptionBodyText",r.attributedDescription);else if(r.description){var f;((f=this.data)==null?0:f.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.dF(r.description)):this.set("data.descriptionBodyText",r.description)}};
_.OC.Object.defineProperties(xy.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var r,f;return!((r=this.data)==null||!r.attributedDescriptionBodyText)||!((f=this.data)==null||!f.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.data)==null?0:r.collapsedLineCount){var f;return(f=this.data)==null?void 0:f.collapsedLineCount}r=_.Bw("web_watch_description_collapsed_default_lines",12);if(_.N("ww_desc_line_page_size_ks"))return r;f=Math.round(_.Sl().height*_.Bw("web_watch_description_screen_height_percentage",.5)/20);return Math.max(f,r)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return(I=(r=this.data)==null?void 0:r.descriptionBodyText)!=null?I:(f=this.data)==null?void 0:f.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.sourceAttributions}}});
xy.prototype.panelContentVisibleChanged=xy.prototype.panelContentVisibleChanged;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],xy.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],xy.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],xy.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Boolean)],xy.prototype,"panelContentVisible",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],xy.prototype,"engagementPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],xy.prototype,"shortsPanel",void 0);_.A([_.uA("#inline-expander"),_.B("design:type",Object)],xy.prototype,"inlineExpander",void 0);
_.A([_.Bt("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xy.prototype,"panelContentVisibleChanged",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],xy.prototype,"hasDescriptionText",null);_.A([_.R("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],xy.prototype,"collapsedLines",null);
_.A([_.R("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.B("design:type",Object),_.B("design:paramtypes",[])],xy.prototype,"descriptionText",null);_.A([_.R("data","data.headerRuns"),_.B("design:type",Object),_.B("design:paramtypes",[])],xy.prototype,"headerRuns",null);_.A([_.R("data","data.sourceAttributions"),_.B("design:type",Object),_.B("design:paramtypes",[])],xy.prototype,"sourceAttributions",null);
xy=_.A([_.U({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],xy);
_.Q(xy,"ytd-expandable-video-description-body-renderer",function(){if(SM3!==void 0)return SM3;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return SM3=r},{mode:_.QQ("kevlar_poly_si_batch_j028")?1:2});var wyX;var brg=_.Hc(function(r){var f=r.data;return _.p("factoid-renderer",{class:"ytwFactoidRendererHost"},_.p("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return f().accessibilityText}},_.p("span",{class:"ytwFactoidRendererValue"},_.p(_.wW,{text:function(){return f().value}})),_.p("span",{class:"ytwFactoidRendererLabel"},_.p(_.wW,{text:function(){return f().label}}))))},"Lb");_.Kv(brg,"factoid-renderer",{props:{data:_.jv}});_.Kv(_.Hc(function(r){var f=r.data;return _.p("upload-time-factoid-renderer",null,_.p(_.X1,{data:function(){return f().factoid}},{factoidRenderer:brg}))},"Mb"),"upload-time-factoid-renderer",{props:{data:_.vI}});_.Kv(_.Hc(function(r){var f=r.data;return _.p("view-count-factoid-renderer",null,_.p(_.X1,{data:function(){return f().factoid}},{factoidRenderer:brg}))},"Nb"),"view-count-factoid-renderer",{props:{data:_.vI}});var hC=function(){var r=_.y.apply(this,arguments)||this;r.shortsPanel=!1;r.engagementPanel=!1;r.watchWhileSdp=_.N("shorts_desktop_watch_while_sdp");return r};
_.t(hC,_.y);hC.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"}}}}};
_.OC.Object.defineProperties(hC.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var r;return(r=this.data)==null?void 0:r.channel}}});
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],hC.prototype,"componentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],hC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],hC.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],hC.prototype,"shortsPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],hC.prototype,"engagementPanel",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],hC.prototype,"watchWhileSdp",void 0);_.A([_.R("shortsPanel","engagementPanel","data.channel"),_.B("design:type",Object),_.B("design:paramtypes",[])],hC.prototype,"showChannelInfo",null);hC=_.A([_.U({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],hC);
_.Q(hC,"ytd-video-description-header-renderer",function(){if(wyX!==void 0)return wyX;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return wyX=r},{mode:1});var py8;var w6=function(){return _.y.apply(this,arguments)||this};
_.t(w6,_.y);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],w6.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],w6.prototype,"ytRendererBehavior",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],w6.prototype,"noPadding",void 0);_.A([_.K(),_.B("design:type",Object)],w6.prototype,"data",void 0);w6=_.A([_.U({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],w6);
_.Q(w6,"ytd-list-item-view-model",function(){if(py8!==void 0)return py8;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return py8=r},{mode:1});var n9s;var dL_;var zN4;var MC4;var bZ=function(){var r=_.y.apply(this,arguments)||this;r.adaptiveFullWidth=!1;r.modernButtons=_.N("web_modern_buttons");r.buttonOverrides={style:"call-to-action",type:"filled"};r.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return r};
_.t(bZ,_.y);bZ.prototype.handleSetTimestamp_=function(r){this.data&&this.data.shortUrl&&(_.e(this.hostElement).querySelector("#share-url").value=r.isSet?_.vY(this.data.shortUrl,"t",r.timestamp):this.data.shortUrl)};
bZ.prototype.handleSignalActionCopyShareUrl_=function(r,f){(_.N("killswitch_copy_link_target_check")||_.e(this.hostElement).querySelector("#copy-button")===f)&&this.copyUrlToClipboard()};
bZ.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.e(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
bZ.prototype.computeStyle_=function(r){return r?r.toLowerCase().replace(/_/g,"-"):""};
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],bZ.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],bZ.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],bZ.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.B("design:type",String)],bZ.prototype,"rendererStyle",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],bZ.prototype,"adaptiveFullWidth",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],bZ.prototype,"modernButtons",void 0);_.A([_.K(),_.B("design:type",Object)],bZ.prototype,"buttonOverrides",void 0);bZ=_.A([_.zX({is:"yt-copy-link-renderer",disableElementRegistration:!0})],bZ);
_.Q(bZ,"yt-copy-link-renderer",function(){if(MC4===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;zN4===void 0&&(zN4=document.createElement("template"));var C=zN4;I.call(f,C.content.cloneNode(!0),r.content.firstChild);MC4=r}r=MC4;return r},{mode:2});_.gW("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var ps=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return r};
_.t(ps,_.y);_.l=ps.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 r=_.a().resolve(_.ZY(_.nF));r&&(this.keyboardFocused=r.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 r=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;r&&this.ytComponentBehavior.resolveCommand(r);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.l.handleUpdateToggleAction_=function(r){(r=_.F(r,uWB))&&this.data&&r.targetId==this.data.targetId&&this.set("data.toggled",r.toggled)};
_.l.toBoolean_=function(r){return!!r};
_.l.reset=function(){};
_.l.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LT("data-changed",this.data))};
_.l.updateDataToggledFromBinding=function(r){this.set("data.toggled",r.detail.value)};
ps.prototype.dataChangedForBinding=ps.prototype.dataChangedForBinding;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],ps.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],ps.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],ps.prototype,"data",void 0);_.A([_.K({computed:"computeDescription_(data.*)"}),_.B("design:type",Object)],ps.prototype,"description_",void 0);_.A([_.K({value:function(){return!!_.a().resolve(_.ZY(_.nF))&&_.N("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.B("design:type",Boolean)],ps.prototype,"useKeyboardFocused",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],ps.prototype,"keyboardFocused",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ps.prototype,"dataChangedForBinding",null);ps=_.A([_.zX({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],ps);
_.Q(ps,"yt-toggle-form-field-renderer",function(){if(dL_===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;n9s===void 0&&(n9s=document.createElement("template"));var C=n9s;I.call(f,C.content.cloneNode(!0),r.content.firstChild);dL_=r}r=dL_;return r},{mode:2});var g9_;var af8;var ns=function(){var r=_.y.apply(this,arguments)||this;r.isDarkTheme=!1;r.isSearch=!1;r.darkerDarkTheme=_.N("web_darker_dark_theme");r.noTopMargin=_.N("kevlar_watch_no_top_margin");r.maskFade=_.N("web_watch_chips_mask_fade");r.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 r};
_.t(ns,_.y);_.l=ns.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 r=this.getSelectedIndex();if(r>0)this.selected=r;else{this.selected=0;var f,I;(f=this.ytScrollableChipCloudBehavior)==null||(I=f.reset)==null||I.call(f)}};
_.l.getSelectedIndex=function(){var r;if((r=this.data)==null||!r.chips)return-1;r=-1;for(var f,I=0;I<((f=this.data)==null?void 0:f.chips.length);I++){var C=void 0,Y=void 0;if((C=this.data)==null?0:(Y=C.chips[I].chipCloudChipRenderer)==null?0:Y.isSelected){r=I;break}}return r};
_.l.onResize=function(){var r=this.ytScrollableChipCloudBehavior;_.UC(r,r.setContainerWidthDiff);qD(this.ytScrollableChipCloudBehavior)};
_.l.onDarkModeToggledAction=function(r){this.isDarkTheme=r};
_.l.handleRelatedChipCommand=function(r,f){r=this.JSC$14200_chipsSelector.indexOf(f);r!==-1&&this.JSC$14200_chipsSelector.selectIndex(r)};
_.l.handleChipCloudChipSelectAction=function(r){r=this.JSC$14200_chipsSelector.indexOf(r);r>-1&&this.JSC$14200_chipsSelector.selectIndex(r)};
_.l.handleChipCloudChipDeselectAction=function(){var r=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14200_chipsSelector&&((r==null?0:r.continuationCommand)?_.Do(this.hostElement,[r]):(r==null?0:r.searchEndpoint)?this.ytComponentBehavior.resolveCommand(r):r&&_.rX(this.hostElement,[r],this.hostElement),this.JSC$14200_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.l.updateSelectedFromBinding=function(r){this.selected=r.detail.value};
ns.prototype.onResize=ns.prototype.onResize;ns.prototype.dataChanged=ns.prototype.dataChanged;ns.prototype.isSearchChanged=ns.prototype.isSearchChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ns.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],ns.prototype,"actionHandlerBehavior",void 0);
_.A([_.J(_.Pq),_.B("design:type",Object)],ns.prototype,"ironResizableBehavior",void 0);_.A([_.J(),_.B("design:type",BO)],ns.prototype,"ytScrollableChipCloudBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],ns.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ns.prototype,"data",void 0);_.A([_.K({value:0}),_.B("design:type",Number)],ns.prototype,"selected",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ns.prototype,"isDarkTheme",void 0);_.A([_.K({value:160}),_.B("design:type",Number)],ns.prototype,"scrollDistance",void 0);_.A([_.K(),_.B("design:type",Object)],ns.prototype,"isSearch",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ns.prototype,"darkerDarkTheme",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ns.prototype,"noTopMargin",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ns.prototype,"maskFade",void 0);_.A([_.uA("#chips"),_.B("design:type",Object)],ns.prototype,"JSC$14200_chipsSelector",void 0);_.A([_.Bt("isSearch"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ns.prototype,"isSearchChanged",null);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ns.prototype,"dataChanged",null);
_.A([_.kO("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ns.prototype,"onResize",null);ns=_.A([_.zX({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],ns);
_.Q(ns,"yt-chip-cloud-renderer",function(){if(af8===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;g9_===void 0&&(g9_=document.createElement("template"));var C=g9_;I.call(f,C.content.cloneNode(!0),r.content.firstChild);af8=r}r=af8;return r},{mode:2});var Xy3,NVU=function(){return Xy3!==void 0?Xy3:Xy3=document.createElement("template")};
document.head.appendChild(NVU().content);var $LD;var F24=document.head,PSC=F24.appendChild,tCX;if($LD===void 0){var TVX=document.createElement("template");_.c(TVX,"");TVX.content.insertBefore(NVU().content.cloneNode(!0),TVX.content.firstChild);$LD=TVX}tCX=$LD;PSC.call(F24,tCX.content);var czV=_.Hc(function(r){var f=r.data;return _.p("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.p("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.p("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.p(_.M,{cond:function(){return _.ZK(f().image)},
then:function(I){return _.p("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.p(_.J3,{data:I,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.p("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.p(_.wW,{text:function(){return f().title}})),_.p("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.p(_.wW,{text:function(){return f().subtitle}})))),_.p(_.M,{cond:function(){var I;
return(I=f())==null?void 0:I.hasBottomDivider},
then:function(){return _.p("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Ob");var W2s=_.Hc(function(r){var f=r.data;return _.p("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.p("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.p(_.X1,{data:function(){var I;return(I=f().offerPlanDetailsItem)!=null?I:[]}},{offerPlanDetailsItemViewModel:function(I){return _.p("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.p(czV,{data:I.data}))}})),_.p("div",null,_.p(_.M,{cond:function(){return f().hasBottomDivider},
then:function(){return _.p("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.p("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.p("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.p("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.p("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Pb");var L2g=_.Hc(function(r){var f=r.data;r=_.E(_.ld(!1,void 0,"SpEGQd"));var I=r.next().value,C=r.next().value,Y=_.IC(function(){C(!I());return!1}),V=function(){var S;
return(S=f().offerPlanDetailsContainer)!=null?S:[]};
return _.p("lp-complex-offer-card-details-view-model",null,_.p("div",null,_.p(_.M,{cond:function(){return I()},
then:function(){return _.p("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.p("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":Y,"aria-expanded":I},_.p(_.wW,{text:function(){return f().expandedTitle}})),_.p("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.p(_.X1,{data:V},{offerPlanDetailsContainerViewModel:function(S){return _.p("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.p(W2s,{data:S.data}))}})),_.p("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.p(_.wW,{text:function(){return f().legalText}})))},
else:function(){return _.p("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":Y,"aria-expanded":I},_.p(_.wW,{text:function(){return f().collapsedTitle}}),_.p("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.p(_.V2,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Qb");var mLC=_.Hc(function(r){var f=r.data;return _.p("lp-complex-offer-card-option-view-model",null,_.p("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.p(_.M,{cond:function(){return f().topDividerText},
then:function(){return _.p("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.p("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.p("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.p("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.p(_.wW,{text:function(){return f().topDividerText}}))))}}),_.p(_.M,{cond:function(){return f().planPricingPrimary},
then:function(){return _.p("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.p(_.wW,{text:function(){return f().planPricingPrimary}}))}}),_.p(_.M,{cond:function(){return f().planPricingSecondary},
then:function(){return _.p("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.p(_.wW,{text:function(){return f().planPricingSecondary}}))}}),_.p(_.M,{cond:function(){return f().primaryButton},
then:function(){return _.p("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.p(_.X1,{data:function(){return f().primaryButton}},{buttonViewModel:function(I){return _.p(_.LF,{data:I.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Rb");var eN8=_.Hc(function(r){var f=r.data;var I=function(){var V;return((V=f())==null?void 0:V.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
r={};var C={},Y={};return _.p("ytm-lp-complex-offer-card-view-model",null,_.p("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.p("div",{class:_.qd((r.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=I,r),"ytmLpComplexOfferCardViewModelCardContainer")},_.p(_.M,{cond:function(){var V;return(V=f())==null?void 0:V.bannerText},
then:function(){return _.p("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.p("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.p(_.wW,{text:function(){return f().bannerText}})))}}),_.p(_.M,{cond:function(){return _.ZK(f().logo)},
then:function(V){var S={};return _.p("div",{class:_.qd((S.ytmLpComplexOfferCardViewModelLogoAlignLeft=I,S),"ytmLpComplexOfferCardViewModelLogo")},_.p(_.J3,{data:V,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.p("div",{class:_.qd((C.ytmLpComplexOfferCardViewModelTitleAlignLeft=I,C),"ytmLpComplexOfferCardViewModelTitle")},_.p(_.wW,{text:function(){return f().title}})),_.p(_.M,{cond:function(){var V;
return(V=f())==null?void 0:V.subtitle},
then:function(){var V={};return _.p("div",{class:_.qd((V.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=I,V),"ytmLpComplexOfferCardViewModelSubtitle")},_.p(_.wW,{text:function(){return f().subtitle}}))}}),_.p(_.M,{cond:function(){return f().planPricingPrimary},
then:function(){return _.p("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.p(_.wW,{text:function(){return f().planPricingPrimary}}))}}),_.p(_.M,{cond:function(){return f().planPricingSecondary},
then:function(){return _.p("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.p(_.wW,{text:function(){return f().planPricingSecondary}}))}}),_.p(_.M,{cond:function(){return f().purchaseButton},
then:function(){return _.p("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.p(_.X1,{data:function(){return f().purchaseButton}},{buttonViewModel:function(V){return _.p(_.LF,{data:V.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.p(_.M,{cond:function(){var V;
return(V=f())==null?void 0:V.offerOptions},
then:function(){return _.p("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.p(_.X1,{data:function(){return f().offerOptions}},{lpComplexOfferCardOptionViewModel:mLC}))}}),_.p("div",{class:_.qd((Y.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=I,Y),"ytmLpComplexOfferCardViewModelLegalText")},_.p(_.wW,{text:function(){return f().legalText}})),_.p(_.M,{cond:function(){var V;
return(V=f())==null?void 0:V.offerCardDetails},
then:function(){return _.p("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.p(_.X1,{data:function(){return f().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:L2g}))}}))))},"Sb");var JzD=_.Hc(function(r){var f=r.data;var I=function(){var S;return((S=f())==null?void 0:S.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
r={};var C={},Y={},V={};return _.p("ytm-lp-complex-offer-card-section-view-model",null,_.p("div",{class:_.qd("ytmLpComplexOfferCardSectionViewModelHost")},_.p("div",{class:_.qd((r.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=I,r),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.p("div",{class:_.qd((C.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=I,C),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.p("h2",{class:_.qd((Y.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
I,Y),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.p(_.wW,{text:function(){return f().title}}))),_.p(_.M,{cond:function(){var S;
return(S=f())==null?void 0:S.subtitle},
then:function(){var S={},h={};return _.p("div",{class:_.qd((S.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=I,S),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.p("div",{class:_.qd((h.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=I,h),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.p(_.wW,{text:function(){return f().subtitle}})))}}),_.p("div",{class:_.qd((V.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=I,V),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.p(_.X1,{data:function(){var S;
return(S=f().offerPlans)!=null?S:[]}},{lpComplexOfferCardViewModel:function(S){return _.p("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.p(eN8,{data:S.data}))}})))))},"Tb");_.cS=nBD.getInstance();var j24=_.Hc(function(r){return _.p("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":r.shouldAriaHideContent},_.p("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:r.questionId},_.p(_.wW,{text:r.question})))},"Ub"),Hrq=_.Hc(function(r){var f=r.data;
var I=r.themeOverride;r=_.E(_.ld(!1,void 0,"ljTVPd"));var C=r.next().value,Y=r.next().value;r=_.IC(function(){Y(!C());return!1});
var V=function(){return C()?"EXPAND_LESS":"EXPAND_MORE"},S=("faq-container"+_.TN(_.cS)).toString(),h="faq-question-and-answers-section-question"+_.TN(_.cS),w={},n={};
return _.p("faq-entry-view-model-c3",null,_.p("div",{class:_.qd("yt-lp-faq-entry-view-model",(w["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return I==null?void 0:I().useDarkTheme},w))},_.p("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":r,role:"button","aria-expanded":C,"aria-labelledby":h.toString(),"tab-index":"0"},_.p(j24,{question:function(){return f().question},
questionId:h,shouldAriaHideContent:!0}),_.p(_.M,{cond:function(){return C()!==void 0},
then:function(){return _.p("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.p(_.V2,{icon:V,ariaHidden:!0}),_.p("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.p("div",{class:_.qd("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(n["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!C()},n))},_.p("div",{id:S},_.p(_.pz,{each:function(){return f().answers||[]}},function(d){return _.p("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.p(_.wW,{text:d}))})))))},"Vb");
Hrq.idomCompat=!0;var ir3=_.Hc(function(r){var f=r.data;var I=r.themeOverride;r={};return _.p("lp-faq-section-view-model-c3",null,_.p("div",{class:_.qd("yt-lp-faq-section-view-model",(r["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return f().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},r["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(I==null||!I().useDarkTheme)},r))},_.p("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.p(_.M,{cond:function(){return f().header},
then:function(C){return _.p("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.p(_.wW,{text:C}))}}),_.p("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.p(_.X1,{data:function(){return f().faqs}},{faqEntryViewModel:function(C){return _.p(Hrq,{data:C.data,
themeOverride:I})}})),_.p("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.p(_.pz,{each:function(){return f().footers||[]}},function(C){return _.p(_.wW,{text:C})})),_.p(_.M,{cond:function(){return f().legal},
then:function(C){return _.p("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.p(_.wW,{text:C}))}}))))},"Wb");
ir3.idomCompat=!0;var RN4=_.Hc(function(r){var f=r.data;var I=r.themeOverride;_.$E(function(){var S=f().gtmId;S&&_.hK(S,_.Lz("GL",""))});
var C={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var S,h,w;return(w=(S=f().logo)==null?void 0:(h=S.accessibilityData)==null?void 0:h.label)!=null?w:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},Y=_.a().resolve(_.ZY(_.cI)),V=function(){return Y&&Y()||(I==null?void 0:I().useDarkTheme)};
return _.p("lp-header-section-view-model",null,_.p("div",{class:function(){var S=f().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",h=f().marginType==="LP_SECTION_MARGIN_TYPE_TOP",w=I==null?void 0:I().useDarkTheme,n=["lp-header-section-view-model"];S&&n.push("lp-header-section-view-model--ptc-layout-type");h&&n.push("lp-header-section-view-model__lp-header-section-margin");w&&n.push("lp-header-section-view-model--premium-force-dark-mode");return n.join(" ")}},_.p(_.M,{cond:function(){return f().logo},
then:function(){return _.p("div",null,_.p(_.M,{cond:V,then:function(){return _.p(_.M,{cond:function(){var S;return(S=f().logo)==null?void 0:S.imageDark},
then:function(S){return _.p(_.J3,Object.assign({},{data:S},C))}})},
else:function(){return _.p(_.M,{cond:function(){var S;return(S=f().logo)==null?void 0:S.imageLight},
then:function(S){return _.p(_.J3,Object.assign({},{data:S},C))}})}}))}}),_.p(_.M,{cond:function(){return f().title},
then:function(S){return _.p("div",{class:"lp-header-section-view-model__lp-header-title"},_.p(_.wW,{text:S}))}}),_.p("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.p(_.M,{cond:function(){return f().subtitles},
then:function(S){return _.p(_.pz,{each:S},function(h){return _.p("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.p(_.wW,{text:h}))})}})),_.p(_.M,{cond:function(){return f().additionalInfo},
then:function(S){return _.p("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.p(_.wW,{text:S}))}}),_.p("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.p(_.M,{cond:function(){return f().primaryButton},
then:function(S){return _.p("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.p(_.X1,{data:S},{buttonViewModel:_.LF}))}}),_.p(_.M,{cond:function(){return f().secondaryButton},
then:function(S){return _.p("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.p(_.X1,{data:S},{buttonViewModel:_.LF}))}})),_.p(_.M,{cond:function(){return f().otherOffersInfo},
then:function(S){return _.p("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.p(_.wW,{text:S}))}}),_.p("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.p(_.M,{cond:function(){return f().billingInfo},
then:function(S){return _.p(_.pz,{each:S},function(h){return _.p("div",null,_.p(_.wW,{text:h}))})}}))))},"Xb");
RN4.idomCompat=!0;var v9C=_.Hc(function(r){var f=r.data;var I=_.JG(r.themeOverride,{useDarkTheme:!1});r={};r=_.qd("ytm-lp-headline-section-view-model",(r["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return I().useDarkTheme},r));
return _.p("lp-headline-section-view-model",null,_.p("div",{class:r},_.p("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.p(_.wW,{text:function(){return f().title}})),_.p(_.M,{cond:function(){return f().subtitle},
then:function(C){return _.p("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.p(_.wW,{text:C}))}})))},"Yb");var K23=_.Hc(function(r){var f=r.data;var I=r.themeOverride;var C=_.a().resolve(_.ZY(_.cI)),Y=function(){return C&&C()||(I==null?void 0:I().useDarkTheme)},V=function(){var n,d;
var z=Y()?(n=f().textBackgroundImage)==null?void 0:n.imageDark:(d=f().textBackgroundImage)==null?void 0:d.imageLight;return Wed((z==null?void 0:z.sources)||[])},S=function(){var n,d;
return Y()?(n=f().featureImage)==null?void 0:n.imageDark:(d=f().featureImage)==null?void 0:d.imageLight},h=function(){return f().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},w=function(){var n,d;
return Y()?(n=f().logo)==null?void 0:n.imageDark:(d=f().logo)==null?void 0:d.imageLight};
return _.p("ytm-lp-large-feature-section-view-model",null,_.p("div",{class:function(){var n=f().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",d=f().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",z=(f().index||0)%2===1,g=I==null?void 0:I().useDarkTheme,X=["yt-lp-large-feature-section-view-model"];n?X.push("yt-lp-large-feature-section-view-model--music-feature-type"):d?X.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):z||X.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
g&&X.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return X.join(" ")}},_.p("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.p(_.M,{cond:S,
then:function(){return _.p(_.J3,{data:function(){return S()},
alt:function(){var n,d,z;return(z=(n=f().featureImage)==null?void 0:(d=n.accessibilityData)==null?void 0:d.label)!=null?z:""},
contentMode:h})}})),_.p("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var n;return((n=V())==null?0:n.url)?"background-image: url("+_.gn(V().url)+");":""}},_.p("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.p(_.M,{cond:w,
then:function(){return _.p(_.J3,{data:function(){return w()},
alt:function(){var n,d,z;return(z=(n=f().logo)==null?void 0:(d=n.accessibilityData)==null?void 0:d.label)!=null?z:""},
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"})}}),_.p(_.M,{cond:function(){return f().eyebrowText},
then:function(){return _.p("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.p(_.wW,{text:function(){return f().eyebrowText}}))}}),_.p(_.M,{cond:function(){return f().title},
then:function(){return _.p("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.p(_.wW,{text:function(){return f().title}}))}}),_.p(_.M,{cond:function(){return f().subtitles},
then:function(){return _.p("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.p(_.pz,{each:function(){return f().subtitles||[]}},function(n){return _.p(_.wW,{text:n})}))}})))))},"Zb");
K23.idomCompat=!0;var yz4=_.Hc(function(r){return _.p("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.p("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.p(_.V2,{icon:function(){var f;return(f=r.data())==null?void 0:f.iconType},
className:function(){var f;return((f=r.data())==null?void 0:f.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.p("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.p(_.wW,{text:function(){var f;
return(f=r.data())==null?void 0:f.text}}))))},"$b");var ULC=_.Hc(function(r){r=_.jS(r,{config:void 0,themeOverride:void 0});var f=r.data,I=r.config,C=r.themeOverride;r={};r=_.qd("ytm-lp-offer-card-option-view-model",(r["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var w;return(w=C())==null?void 0:w.useDarkTheme},r));
var Y=_.IC(function(){var w,n;(w=I())==null||(n=w.handleRadioButtonClick)==null||n.call(w,f());return!1}),V=function(){var w;
return(w=I())==null?void 0:w.shouldDisplayRadioButton},S=_.IC(function(){if(V()){var w,n;
(w=I())==null||(n=w.handleRadioButtonClick)==null||n.call(w,f())}return!1}),h=function(){var w;
return(w=f().featureListItems)!=null?w:[]};
return _.p("ytm-lp-offer-card-option-view-model",null,_.p("div",{class:r,"on:click":S},_.p(_.M,{cond:V,then:function(){return _.p("div",null,_.p("input",{type:"radio","on:click":Y,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var w;return!((w=I())==null||!w.isOptionSelected)}}))}}),_.p("div",null,_.p("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.p(_.wW,{text:function(){return f().eyebrowText}})),_.p("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.p(_.wW,{text:function(){return f().title}})),_.p("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.p(_.wW,{text:function(){return f().subtitle}})),_.p(_.M,{cond:function(){return h().length>0},
then:function(){return _.p("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.p(_.X1,{data:h},{lpFeatureListItemViewModel:yz4}))}}),_.p("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.p(_.wW,{text:function(){return f().description}})))))},"ac");
ULC.idomCompat=!0;var s2s=_.Hc(function(r){var f=r.data;var I=r.themeOverride;r=_.E(_.YZ(function(){var V,S=(V=f().offerOptions)==null?void 0:V[0];return _.F(S,E7D)||{}}));
var C=r.next().value,Y=r.next().value;r={};return _.p("ytm-lp-offer-card-view-model",null,_.p("div",{class:_.qd("ytm-lp-offer-card-view-model",(r["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(I==null||!I().useDarkTheme)},r))},_.p("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.p(_.M,{cond:function(){return f().titleIconType},
then:function(){return _.p("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.p(_.V2,{icon:function(){var V;return((V=f().titleIconType)==null?void 0:V.toString())||""}}))}}),_.p("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.p(_.wW,{text:function(){return f().title}})),_.p(_.X1,{data:function(){return f().titleBadge}},{badgeViewModel:function(V){return _.p("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.p(_.sq,{data:V.data}))}})),_.p("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.p(_.X1,{data:function(){return f().offerOptions}},{lpOfferCardOptionViewModel:function(V){var S=V.data;
return _.p(_.B9,null,_.p("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.p(ULC,{data:S,config:function(){var h;return{shouldDisplayRadioButton:(f().offerOptions||[]).length>1,isOptionSelected:S().id===((h=C())==null?void 0:h.id),handleRadioButtonClick:function(w){return void Y(w)}}},
themeOverride:I}))}})),_.p("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.p(_.X1,{data:function(){var V;
return(V=C())==null?void 0:V.purchaseButtonOverride}},{buttonViewModel:_.LF}))))},"bc");
s2s.idomCompat=!0;var OrV=_.Hc(function(r){var f=r.data;var I=r.themeOverride;r={};r=_.qd("ytm-lp-offer-card-section-view-model",(r["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var C;return I==null?void 0:(C=I())==null?void 0:C.useDarkTheme},r));
return _.p("ytm-lp-offer-card-section-view-model",null,_.p("div",{class:r},_.p(_.M,{cond:function(){return f().title!==void 0},
then:function(){return _.p("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.p("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.p(_.wW,{text:function(){return f().title}})),_.p(_.M,{cond:function(){return f().subtitle},
then:function(){return _.p("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.p(_.wW,{text:function(){return f().subtitle}}))}}))}}),_.p("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.p(_.X1,{data:function(){return f().offerCards}},{lpOfferCardViewModel:function(C){return _.p("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.p(s2s,{data:C.data,
themeOverride:I}))}})),_.p(_.M,{cond:function(){return f().footer},
then:function(){return _.p("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.p(_.wW,{text:function(){return f().footer}}))}})))},"cc");var o9q=_.Hc(function(r){var f=r.data;return _.p("lp-offer-table-cell-content-view-model",null,_.p("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.p(_.MC,null,_.p(_.nz,{when:function(){return f().title}},function(){return _.p(_.wW,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return f().title}})}),_.p(_.nz,{when:function(){return f().subTitle}},function(){return _.p(_.wW,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return f().subTitle}})}),_.p(_.nz,{when:function(){return f().featureDescription}},function(){return _.p(_.wW,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return f().featureDescription}})}),_.p(_.nz,{when:function(){return f().description}},function(){return _.p(_.wW,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return f().description}})}),_.p(_.nz,{when:function(){return f().iconType}},function(){return _.p("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.p(_.V2,{icon:function(){return f().iconType.toString()}}))}),_.p(_.nz,{when:function(){return f().purchaseButton}},function(){return _.p(_.X1,{data:function(){return f().purchaseButton}},{buttonViewModel:function(I){return _.p("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.p(_.LF,{data:I.data}))}})}),_.p(_.nz,{when:function(){return f().note}},function(){return _.p(_.wW,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return f().note}})}),_.p(_.nz,{when:function(){return f().featureDetail}},function(){return _.p(_.wW,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return f().featureDetail}})}),_.p(_.nz,{when:function(){return f().badge}},function(){return _.p(_.X1,{data:function(){return f().badge}},{badgeViewModel:_.sq})}))))},"dc");
o9q.idomCompat=!0;var Q2_=_.Hc(function(r){var f=r.data;return _.p("lp-offer-table-cell-view-model",null,_.p("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(f().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;"}}},_.p(_.X1,{data:function(){return f().contents}},{lpOfferTableCellContentViewModel:o9q})))},
"ec");
Q2_.idomCompat=!0;var Az3=_.Hc(function(r){var f=r.data;var I=r.lpTableIsFirstRow;var C=r.lpTableIsLastRow;var Y=function(){return(I==null?0:I())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},V=function(){return(I==null?0:I())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(C==null?0:C())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.p("ytm-lp-offer-table-row-view-model",null,_.p("div",{class:"yt-lp-offer-table-row-view-model"},_.p(_.X1,{data:function(){return f().rowHeaderCell}},{lpOfferTableCellViewModel:function(S){return _.p("div",{class:Y},_.p(Q2_,{data:S.data}))}}),_.p(_.X1,{data:function(){return f().contentCells}},{lpOfferTableCellViewModel:function(S){return _.p("div",{class:V},_.p(Q2_,{data:S.data}))}})))},"fc");
Az3.idomCompat=!0;var Zr3=_.Hc(function(r){var f=r.data;var I=r.themeOverride;var C=_.a().resolve(_.ZY(_.cI)),Y=function(){return _.F(f().logo,zMC)||{}};
r={};return _.p("ytm-lp-offer-table-section-view-model",null,_.p("div",{class:"yt-lp-offer-table-view-model"},_.p(_.M,{cond:function(){var V,S;return C&&C()||(I==null?0:I().useDarkTheme)?(V=Y())==null?void 0:V.imageDark:(S=Y())==null?void 0:S.imageLight},
then:function(V){return _.p(_.J3,{data:V,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var S,h,w;return(w=(S=Y())==null?void 0:(h=S.accessibilityData)==null?void 0:h.label)!=null?w:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.p("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.p(_.wW,{text:function(){return f().title}})),_.p("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.p(_.wW,{text:function(){return f().subtitle}})),_.p(_.M,{cond:function(){return f().disclaimers},
then:function(V){return _.p("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.p(_.pz,{each:V},function(S){return _.p("div",null,_.p(_.wW,{text:S}))}))}}),_.p("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.p(_.X1,{data:function(){return f().rows}},{lpOfferTableRowViewModel:function(V,S){return _.p(Az3,{data:V.data,
lpTableIsFirstRow:function(){return S()===0},
lpTableIsLastRow:function(){return S()===f().rows.length-1}})}})),_.p("div",{class:_.qd((r["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return f().hasFooterBackground},r))},_.p(_.M,{cond:function(){return f().footer},
then:function(){return _.p("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.p(_.wW,{text:function(){return f().footer}}))}}),_.p(_.M,{cond:function(){return f().footerTitle},
then:function(){return _.p("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.p(_.wW,{text:function(){return f().footerTitle}}))}}),_.p(_.M,{cond:function(){return f().footerDescription},
then:function(){return _.p("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.p(_.wW,{text:function(){return f().footerDescription}}))}}))))},"gc");
Zr3.idomCompat=!0;var GSs=_.Hc(function(r){var f=r.data;var I=r.themeOverride;var C=_.a().resolve(_.ZY(_.cI)),Y=function(){var h;return I==null?void 0:(h=I())==null?void 0:h.useDarkTheme},V=function(){var h,w;
return C&&C()||Y()?(h=f().image)==null?void 0:h.imageDark:(w=f().image)==null?void 0:w.imageLight};
r={};r=_.qd("ytm-lp-small-feature-section-view-model",(r["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=Y,r));var S=function(){var h,w,n;return(n=(h=f().image)==null?void 0:(w=h.accessibilityData)==null?void 0:w.label)!=null?n:""};
return _.p("ytm-lp-small-feature-section-view-model",{class:r},_.p(_.M,{cond:function(){return V()&&!R7K},
then:function(){return _.p("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.p(_.J3,{data:function(){return V()},
alt:S,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.p("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.p("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.p(_.M,{cond:function(){return f().title},
then:function(h){return _.p(_.wW,{text:h})}})),_.p("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.p(_.wW,{text:function(){return f().description}}))))},"hc");
GSs.idomCompat=!0;var kSq=_.Hc(function(r){var f=r.data;var I=r.themeOverride;r={};return _.p("ytm-lp-small-feature-section-group-view-model",null,_.p("div",{class:_.qd("ytm-lp-small-feature-section-group-view-model",(r["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(I==null||!I().useDarkTheme)},r))},_.p("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.p(_.X1,{data:function(){return f().smallFeatures}},{lpSmallFeatureSectionViewModel:function(C){return _.p("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.p(GSs,{data:C.data,
themeOverride:I}))}}))))},"ic");
kSq.idomCompat=!0;_.Kv(_.Hc(function(r){var f=r.data;var I=function(){return f().forcedTheme==="USER_INTERFACE_THEME_DARK"},C=function(){return f().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},Y=function(){var S="",h,w;
var n=_.a().resolve(_.ZY(_.cI));n=I()||(n==null?0:n())?(h=f().themedImageViewModel)==null?void 0:h.imageDark:(w=f().themedImageViewModel)==null?void 0:w.imageLight;(h=Wed((n==null?void 0:n.sources)||[]))&&h.url&&(S=C()?"background-image: linear-gradient(to bottom, transparent, "+(f().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.gn(h.url)+");":"background-image: url("+_.gn(h.url)+");");return S},V=function(){return{useDarkTheme:I()}};
r={};return _.p("yt-section-group-view-model",null,_.p("div",{class:_.qd("yt-lp-section-group-view-model",(r["yt-lp-section-group-view-model--premium-force-dark-mode"]=I,r["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return f().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},r))},_.p(_.M,{cond:function(){return Y().length},
then:function(){var S={};return _.p("div",{class:_.qd("yt-lp-section-group-view-model__bg-image",(S["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=C,S)),style:Y})}}),_.p("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.p(_.X1,{data:function(){return f().sections}},{lpFaqSectionViewModel:function(S){return _.p(ir3,{data:S.data,
themeOverride:V})},
lpHeaderSectionViewModel:function(S){return _.p(RN4,{data:S.data,themeOverride:V})},
lpHeadlineSectionViewModel:function(S){return _.p(v9C,{data:S.data,themeOverride:V})},
lpLargeFeatureSectionViewModel:function(S){return _.p(K23,{data:S.data,themeOverride:V})},
lpOfferCardSectionViewModel:function(S){return _.p(OrV,{data:S.data,themeOverride:V})},
lpComplexOfferCardSectionViewModel:function(S){return _.p(JzD,{data:S.data})},
lpOfferTableSectionViewModel:function(S){return _.p(Zr3,{data:S.data,themeOverride:V})},
lpSmallFeatureSectionGroupViewModel:function(S){return _.p(kSq,{data:S.data,themeOverride:V})}}))))},"jc"),"yt-section-group-view-model",{props:{data:_.jv}});var gjd=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.BV3=_.Hc(function(r){function f(){if(gjd.has(r.data().displayType)){var n=!C(),d;if((d=r.disableDeselection)==null||!d.call(r)||n){r.data().selected=n;d=Object.assign({},S(),{selected:n});h(d);var z;(z=r.callback)==null||z.call(r,d,n)}}}
var I=_.yy(),C=function(){var n,d;return!!(((n=r.selected)==null?void 0:n.call(r))!==void 0?(d=r.selected)==null?0:d.call(r):S().selected)},Y=_.E(_.YZ(r.data)),V=Y.next().value;
Y=Y.next().value;var S=V,h=Y,w=_.VS(MAl,function(){return r.data().chipEntityKey||""});
return _.p("chip-view-model",{class:"ytChipViewModelHost",el:I},_.p(eOB,{data:function(){var n,d=Object.assign({},S(),{selected:C()}),z=w(),g=(n=r.disableDeselection)==null?void 0:n.call(r);a:switch(d.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":n=1;break a;default:n=0}return{text:(z==null?void 0:z.text)||d.text,state:d.disabled?1:d.selected?0:2,type:n,onTap:aTq(d,I,f,g),accessibilityLabel:d.accessibilityLabel||d.text}}}))},"kc");
_.BV3.idomCompat={callbacks:{callback:!0}};_.qMg=_.Hc(function(r){var f=_.VS(zuU,function(){var S;return(S=r.data())==null?void 0:S.chipBarStateEntityKey}),I=function(){return r.data().disableDeselection},C=_.E(_.YZ(function(){var S;
if(((S=f())==null?void 0:S.selectedIndex)!=void 0)return f().selectedIndex;var h,w;S=_.E(((h=r.data())==null?void 0:(w=h.chips)==null?void 0:w.entries())||[]);for(h=S.next();!h.done;h=S.next()){h=_.E(h.value);w=h.next().value;h=h.next().value;var n=void 0;if((n=_.F(h,_.j8))==null?0:n.selected)return w}return-1})),Y=C.next().value,V=C.next().value;
return _.p("chip-bar-view-model",{class:_.qd("ytChipBarViewModelHost",r.className),role:"tablist"},_.p(_.X1,{data:function(){return r.data().chips}},{chipViewModel:function(S,h){return _.p("div",{class:"ytChipBarViewModelChipWrapper"},_.p(_.BV3,{data:S.data,
selected:function(){return h()===Y()},
callback:function(w,n){w=!!n;n=h();V(w?n:-1);var d,z=(d=r.data())==null?void 0:d.chipBarStateEntityKey;z&&w&&_.eS(_.hv("chipBarStateEntity",z,{key:z,selectedIndex:n}))},
disableDeselection:r.disableDeselection||I}))}}))},"lc");_.Kv(_.qMg,"chip-bar-view-model",{props:{data:_.vI,className:_.vI,disableDeselection:_.vI}});_.uHg=_.Hc(function(r){var f=r.data;r={};return _.p("divider-view-model",{class:_.qd("divider-view-model-wiz",(r["divider-view-model-wiz__inset-thin-padding"]=function(){return f().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},r))},_.p("div",{class:_.qd("divider-view-model-wiz__base-divider",function(){return Xim(f().dividerStyle)}),
style:_.lB({"background-color":function(){return f().backgroundColor?_.MG(f().backgroundColor):void 0}})}))},"mc");
_.uHg.idomCompat=!0;_.Kv(_.uHg,"divider-view-model",{props:{data:_.jv}});var PS=new Map,Fn=new Map,FHP=0,tH;var mn$=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],jm$={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var DL4,rfV;DL4=function(r){return function(f){return function(){return String(f())+r}}};
_.d6=DL4("px");rfV=DL4("s");var I7C=_.Hc(function(r){function f(Z){return function(){var Cw=X().numItemsPerGridRow,rR=Z()*Cw;Cw=rR+Cw;var EP,Pu;return(Pu=(EP=C().contents)==null?void 0:EP.slice(rR,Cw))!=null?Pu:[]}}
var I=_.jS(r,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),C=I.data,Y=I.layoutContainerWidth,V=I.shouldUseOwnContainerSize,S=I.marginSettings;I=_.E(_.ld(!0,void 0,"qgr2Je"));var h=I.next().value,w=I.next().value,n=function(){var Z,Cw=(Z=_.F(C().showMoreButton,_.NI))==null?void 0:Z.trackingParams;Cw&&_.lH(_.IB(),Cw);w(!1)},d=function(){var Z,Cw=(Z=_.F(C().showLessButton,_.NI))==null?void 0:Z.trackingParams;
Cw&&_.lH(_.IB(),Cw);w(!0)};
I=_.yy();var z=_.ipR(I,{canHaveZeroSize:!1}),g=function(){var Z;return(Z=C().contentAspectRatio)!=null?Z:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},X=_.hR(function(){var Z=_.QS({containerWidth:V()&&z.width()>0?z.width()||Y():Y(),
sizing:"EXTRA_COMPACT",marginSettings:S(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:Z.maxContainerWidth,numItemsPerGridRow:Z.numItems,contentPadding:V()?Z.margin:Z.contentMargin,itemWidth:Z.itemWidth,itemMargin:Z.gutter/2}},void 0,"pqVdjc"),P=function(){if(C().enableVerticalExpansion){if(h())return 1;
var Z,Cw,rR=(Cw=(Z=C().contents)==null?void 0:Z.length)!=null?Cw:0;return Math.ceil(rR/X().numItemsPerGridRow)}return X().numItemsPerGridRow<=2?2:1},W=function(){return C().enableVerticalExpansion&&C().showLessButton&&!h()&&P()>1},m=function(){var Z,Cw;
return C().enableVerticalExpansion&&C().showMoreButton&&h()&&((Cw=(Z=C().contents)==null?void 0:Z.length)!=null?Cw:0)>X().numItemsPerGridRow},v=function(){return!W()},O=function(){return!m()},k={};
return _.p("grid-shelf-view-model",{class:_.qd("ytGridShelfViewModelHost",r.className,(k.ytGridShelfViewModelHostHasBottomButton=function(){return W()||m()},k)),
el:I,style:_.lB({"margin-left":(0,_.d6)(function(){return X().contentPadding}),
"margin-right":(0,_.d6)(function(){return X().contentPadding})})},_.p(_.M,{cond:function(){return _.F(C().header,WZg)},
then:function(Z){return _.p(_.BA,{data:Z,disableHorizontalPadding:!0})}}),_.p("div",null,_.p(_.pz,{each:function(){return Array(P())}},function(Z,Cw){return _.p(f7V,{className:r.className,
items:f(Cw),responsiveGridShelfLayout:X,contentAspectRatio:g})})),_.p("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.p(_.X1,{data:function(){return C().showMoreButton}},{buttonViewModel:function(Z){return _.p("div",{hidden:O},_.p(_.LF,{data:Z.data,
onClick:n}))}}),_.p(_.X1,{data:function(){return C().showLessButton}},{buttonViewModel:function(Z){return _.p("div",{hidden:v},_.p(_.LF,{data:Z.data,
onClick:d}))}})))},"nc");
I7C.idomCompat=!0;var f7V=_.Hc(function(r){var f=r.items;var I=r.responsiveGridShelfLayout;var C=r.contentAspectRatio;r=r.className;var Y=_.yy();$nB(Y,function(){a:{var S=Y.value;for(var h=f(),w=[],n=0;n<h.length;n++){var d=_.F(h[n],pq8);if(!d||d==null||!d.inlinePlayerData){S=null;break a}var z=S.children.item(n);if(!z){S=null;break a}w.push({thumbnailElement:z,videoData:d})}S={gridVideoPreviewData:{gridItems:w}}}return S});
var V=(0,_.d6)(function(){return-I().itemMargin});
return _.p("div",{el:Y,class:_.qd("ytGridShelfViewModelGridShelfRow",r),style:_.lB({"margin-left":V,"margin-right":V})},_.p(_.X1,{data:f,replacementWrapper:function(S){return _.p(CvV,{responsiveGridShelfLayout:I},S)}},{shortsLockupViewModel:function(S){return _.p(CvV,{responsiveGridShelfLayout:I},_.p(sW4,{data:S.data,
aspectRatio:function(){return C()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"oc"),CvV=_.Hc(function(r){return _.p("div",{style:_.lB({width:(0,_.d6)(function(){return r.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+r.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},r.children)},"pc");
I7C.idomCompat=!0;_.Kv(I7C,"grid-shelf-view-model",{props:{data:_.jv,layoutContainerWidth:_.jv,shouldUseOwnContainerSize:_.jv,marginSettings:_.jv,className:_.jv}});_.YYB=_.Hc(function(r){var f=_.E(_.ld(!1,void 0,"YYtxR")),I=f.next().value,C=f.next().value;f={};return _.p("yt-alert-banner-view-model",{class:_.qd("ytAlertBannerViewModelHost",r.className,function(){var Y;a:switch((Y=r.data())==null?void 0:Y.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":Y="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":Y="ytAlertBannerViewModelWarning";break a;default:Y="ytAlertBannerViewModelInformational"}return Y},(f.ytAlertBannerViewModelDismissed=
I,f.ytAlertBannerViewModelFullbleed=r.fullbleed,f.ytAlertBannerViewModelNarrow=r.narrow,f.ytAlertBannerViewModelIsInRichGrid=r.isInRichGrid,f))},_.p(_.M,{cond:function(){var Y;
return!((Y=r.data())==null?0:Y.hideIcon)},
then:function(){return _.p("div",{class:"ytAlertBannerViewModelIcon"},_.p(_.V2,{icon:function(){return"info_circle"}}))}}),_.p("div",{class:"ytAlertBannerViewModelOuterContainer"},_.p("div",{class:"ytAlertBannerViewModelContainer"},_.p("div",{class:"ytAlertBannerViewModelContent"},_.p("div",{class:"ytAlertBannerViewModelHeading"},_.p(_.wW,{text:function(){var Y;
return(Y=r.data())==null?void 0:Y.heading}})),_.p("div",{class:"ytAlertBannerViewModelBody"},_.p(_.wW,{text:function(){var Y;
return(Y=r.data())==null?void 0:Y.body}})))),_.p(_.X1,{data:function(){var Y;
return(Y=r.data())==null?void 0:Y.actionButton}},{buttonViewModel:function(Y){return _.p(_.LF,{data:Y.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.p(_.X1,{data:function(){var Y;
return(Y=r.data())==null?void 0:Y.dismissButton}},{buttonViewModel:function(Y){return _.p(_.LF,{data:Y.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var V;((V=r.data())==null?0:V.disableLocalDismissBehavior)||C(!0)}})}}))},"qc");_.Kv(_.YYB,"yt-alert-banner-view-model",{props:{data:_.jv,fullbleed:_.jv,narrow:_.jv,isInRichGrid:_.jv,className:_.jv}});var Ruw;Ruw=_.zk({chipViewModel:_.BV3,buttonViewModel:_.LF});_.l7B=_.rW(vjP,{callbacks:{callback:!0}});_.GL(vjP);_.Kv(_.l7B,"chips-shelf-view-model",{props:{data:_.jv,callback:_.vI,enableSingleChipSelection:_.jv,disableChipsScrollAnimation:_.jv}});var Vf_=_.Hc(function(r){r=_.jS(r,{disabled:!1});var f=r.active,I=r.disabled;r={};r=_.qd("ytSwitchShapeTrack",(r.ytSwitchShapeTrackActive=function(){return f()},r.ytSwitchShapeTrackDisabled=function(){return I()},r));
var C={};C=_.qd("ytSwitchShapeKnob",(C.ytSwitchShapeKnobActive=function(){return f()},C));
return _.p("switch-shape",{class:"ytSwitchShapeHost"},_.p("div",{class:r}),_.p("div",{class:C}))},"rc");var Ed_=_.Hc(function(r){var f=_.jS(r,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),I=f.data;r=f.className;var C=f.handleOnTapEventInParent,Y=f.parentActive;f=_.E(_.YZ(function(){var z;return(z=Y())!=null?z:I().switchedOnByDefault||!1}));
var V=f.next().value,S=f.next().value,h=function(){return I().isDisabled},w=_.yy();
f=_.IC(function(z){return z.key==="Enter"?(z.preventDefault(),w.value.click(),!1):!0});
var n=_.IC(function(z){if(I().handleOnTapEventInParent||C())return!0;if(h())return!1;smU(I(),V(),z);S(!V());return!1}),d={};
d=_.qd("ytSwitchButtonViewModelButton",(d.ytSwitchButtonViewModelTappable=function(){return!h()},d));
return _.p("switch-button-view-model",{class:_.qd("ytSwitchButtonViewModelHost",r)},_.p("button",{el:w,class:d,"on:click":n,"on:keydown":f,"aria-label":function(){return V()?I().a11yLabelSwitchedOn:I().a11yLabelSwitchedOff},
"aria-pressed":V,"aria-disabled":h},_.p(Vf_,{active:V,disabled:h})))},"sc");_.GL(ASU);var xY4=_.Hc(function(r){var f=_.jS(r,{checked:!1});r=f.name;var I=f.onChange,C=f.onClick,Y=f.checked,V=f.labelRenderable,S=f.hasLeadingLabel,h=f.labelClass,w=f.isCompact,n=f.selectElementClass;f=f.disableHorizontalPadding;var d="checkbox"+_.TN(_.cS),z=_.IC(function(P){C==null||C(P);return!1}),g=_.IC(function(P){I==null||I(P);
return!1}),X={};
return _.p("checkbox-shape",null,_.p("label",{class:_.qd("checkbox-shape-wiz",h,(X["checkbox-shape-wiz--compact"]=w,X["checkbox-shape-wiz--disable-horizontal-padding"]=f,X))},_.p("input",{class:"checkbox-shape-wiz__input",id:d,checked:Y,name:r,type:"checkbox","prop:checked":Y,"on:change":g,"on:click":z}),_.p(_.M,{cond:function(){return!(S==null?0:S())},
then:function(){return _.p(SYs,{isLeading:!0,selectElementClass:n})}}),_.p(_.M,{cond:function(){return!!V},
then:function(){return _.p("div",{class:"checkbox-shape-wiz__label"},V==null?void 0:V())}}),_.p(_.M,{cond:S,
then:function(){return _.p(SYs,{isLeading:!1,selectElementClass:n})}})))},"tc"),rDu=_.N("web_enable_sink_checkbox_shape")?xY4:ASU,hzq=_.N("web_enable_sink_checkbox_shape")?xY4:_.rW(ASU,{callbacks:{onChange:!0,
onClick:!0,labelRenderable:!0}});xY4.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var SYs=_.Hc(function(r){var f=r.selectElementClass;r={};return _.p("div",{class:_.qd("checkbox-shape-wiz__checkbox",f,(r["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(f==null?0:f())},r)),
"aria-hidden":"true"},_.p(_.V2,{icon:_.N("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.p(_.V2,{icon:_.N("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"uc");_.GL(GvK);var buq,flE;buq=_.Hc(function(r){var f=r.name;var I=r.onChange;var C=r.onClick;var Y=r.checked;var V=r.labelRenderable;var S=r.useCheckIcon;var h=r.hasLeadingLabel;var w=r.labelClass;var n=r.isCompact;var d=r.selectElementClass;var z=r.ariaLabel;r=r.className;var g="radio"+_.TN(_.cS),X=_.IC(function(Z){I==null||I(Z);return!1}),P=_.IC(function(Z){C==null||C(Z);
return!1}),W=_.E(_.ld(!1,void 0,"HG0s4c")),m=W.next().value,v=W.next().value;
W=_.IC(function(){var Z;((Z=_.a().resolve(_.ZY(_.nF)))==null?0:Z.isKeyBoardInUse())&&v(!0)});
var O=_.IC(function(){v(!1)}),k={};
return _.p("radio-shape",{class:_.qd("radio-shape-wiz",r)},_.p("input",{class:"radio-shape-wiz__input",id:g,"prop:checked":Y,name:f,type:"radio","on:change":X,"on:click":P,"aria-label":z,"on:focusin":W,"on:focusout":O}),_.p("label",{class:_.qd("radio-shape-wiz__label-container",w,(k["radio-shape-wiz--compact"]=n,k["radio-shape-wiz__label-container--keyboard-focused"]=m,k)),for:g},_.p(_.M,{cond:function(){return!(h==null?0:h())},
then:function(){return _.p(wQB,{checked:Y,useCheckIcon:S,isLeading:!0,selectElementClass:d})}}),_.p(_.M,{cond:function(){return!!V},
then:function(){return _.p("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(z==null?0:z())?"true":"false"}},V==null?void 0:V())}}),_.p(_.M,{cond:h,
then:function(){return _.p(wQB,{checked:Y,useCheckIcon:S,isLeading:!1,selectElementClass:d})}})))},"vc");
flE=_.N("web_enable_sink_radio_shape")?buq:GvK;_.zE=_.N("web_enable_sink_radio_shape")?buq:_.rW(GvK,{callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}});buq.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var wQB=_.Hc(function(r){var f=r.useCheckIcon;var I=r.selectElementClass;r=function(){return(f==null?0:f())?"CHECK":_.N("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var C={};return _.p("div",{class:_.qd("radio-shape-wiz__radio",I,(C["radio-shape-wiz__radio--check-icon"]=f,C["radio-shape-wiz__radio--radio-default-style"]=function(){return!(I==null?0:I())},C)),
"aria-hidden":"true"},_.p(_.V2,{icon:r}),_.p(_.V2,{icon:r,active:function(){return!(f==null?0:f())}}))},"wc");var qLP=_.zk({buttonViewModel:_.LF,switchButtonViewModel:Ed_,avatarViewModel:_.$U,accountLinkButtonViewModel:auK,subscribeButtonViewModel:_.w04,collectionThumbnailViewModel:eyq,toggleButtonViewModel:_.F1});_.GL(IlE);var ndg,dYg;ndg=_.Hc(function(r){function f(){var wB;((wB=_.a().resolve(_.ZY(_.nF)))==null?0:wB.isKeyBoardInUse())&&vu(!0)}
function I(){vu(!1)}
var C=r.data;var Y=r.isMenuItem;var V=r.isCompact;var S=r.onTap;var h=r.trailingAccessory;var w=r.hideSelectionTextChevron;var n=r.disabled;var d=r.inPopup;var z=r.disableHorizontalPadding;r=r.isOverlay;var g=_.N("apply_button_role_to_list_item"),X=_.XA(function(wB){return yS$(wB,C())}),P=function(){return _.N("enable_web_shorts_captions_language_command")?Object.assign({},C(),X()):C()},W=function(){return!(P().isSelected===void 0||!P().selectionStyle||P().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
m=function(){return(_.RK(P().rendererContext)||S)&&!W()},v=function(){return _.RK(P().rendererContext)||W()},O={};
r=_.qd("yt-list-item-view-model-wiz",(O["yt-list-item-view-model-wiz--is-overlay"]=r,O["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!g&&oR()},O));
O={};var k=_.qd("yt-list-item-view-model-wiz__label",(O["yt-list-item-view-model-wiz__container"]=function(){return!W()},O["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!P().isDisabled||!(n==null||!n())},O["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!P().subtitle},O["yt-list-item-view-model-wiz__container--compact"]=V,O["yt-list-item-view-model-wiz__container--tappable"]=m,O["yt-list-item-view-model-wiz__container--in-popup"]=d,O["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return g&&oR()},O));
O={};var Z=_.qd("yt-list-item-view-model-wiz__container",(O["yt-list-item-view-model-wiz__container--tappable"]=v,O["yt-list-item-view-model-wiz__container--compact"]=V,O["yt-list-item-view-model-wiz__container--in-popup"]=d,O["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=z,O)),Cw=function(){return P().leadingImage||P().leadingAccessory},rR=_.qd("yt-list-item-view-model-wiz__image-container",function(){return Cw()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
d=_.yy();var EP=_.yy(),Pu=g?EP:d,Wu=_.Hc(function(){return _.p(_.M,{cond:function(){return g},
then:function(){return _.p("div",{class:k,el:EP,role:function(){return v()||m()?"button":void 0},
tabindex:function(){return S||m()?0:void 0},
"on:keydown":OP,"on:click":cu},_.p(pQq,{data:P,hideSelectionTextChevron:w,trailingAccessory:h}))},
else:function(){return _.p("div",{class:k,el:EP},_.p(pQq,{data:P,hideSelectionTextChevron:w,trailingAccessory:h}))}})},"xc");
Wu.idomCompat=!0;_.KF(d,function(){return P().rendererContext});
var cu=_.IC(function(wB){return void(S==null?void 0:S(wB))}),OP=_.jO(),iU=_.E(_.ld(!1,void 0,"bOoKke"));
O=iU.next().value;iU=iU.next().value;var oR=O,vu=iU;_.$E(function(){m()&&(Pu.value.addEventListener("focusin",f),Pu.value.addEventListener("focusout",I));_.$L(function(){Pu.value&&m()&&(Pu.value.removeEventListener("focusin",f),Pu.value.removeEventListener("focusout",I))})});
O=_.IC(function(){return!1});
return _.p("yt-list-item-view-model",{el:d,class:r,role:function(){return(Y==null?0:Y())?"menuitem":"listitem"},
tabindex:function(){var wB=m();wB=g?void 0:S||wB?0:void 0;return wB},
"on:keydown":g?O:OP,"on:click":g?O:cu},_.p(_.M,{cond:W,then:function(){return _.p(_.MC,null,_.p(_.nz,{when:function(){return P().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.p(hzq,{labelRenderable:function(){return _.p(Wu,null)},
isCompact:V,checked:function(){return P().isSelected},
hasLeadingLabel:function(){return!!Cw()},
labelClass:Z,selectElementClass:rR,disableHorizontalPadding:z})}),_.p(_.nz,{when:function(){return P().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.p(_.zE,{labelRenderable:function(){return _.p(Wu,null)},
isCompact:V,checked:function(){return P().isSelected},
hasLeadingLabel:function(){return!!Cw()},
labelClass:Z,selectElementClass:rR})}),_.p(_.nz,{when:function(){return P().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.p(_.zE,{labelRenderable:function(){return _.p(Wu,null)},
isCompact:V,checked:function(){return P().isSelected},
hasLeadingLabel:function(){return!!Cw()},
labelClass:Z,selectElementClass:rR,useCheckIcon:!0})}),_.p(_.dt,null,function(){return _.p(Wu,null)}))},
else:function(){return _.p(Wu,null)}}))},"yc");
dYg=_.N("web_enable_sink_list_view_models")?ndg:IlE;_.MF=_.N("web_enable_sink_list_view_models")?ndg:_.rW(IlE,{callbacks:{onTap:!0,trailingAccessory:!0}});ndg.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var pQq=_.Hc(function(r){var f=r.data;var I=r.hideSelectionTextChevron;var C=r.trailingAccessory;return _.p(_.B9,null,_.p(zz_,{data:f,isLeading:!0,hideSelectionTextChevron:function(){return!(I==null||!I())}}),_.p(MfT,{data:f}),_.p(_.M,{cond:function(){return!!C},
then:function(){return _.p("div",{class:"yt-list-item-view-model-wiz__trailing"},C==null?void 0:C())},
else:function(){return _.p(zz_,{data:f,isLeading:!1,hideSelectionTextChevron:function(){return!(I==null||!I())}})}}))},"zc"),zz_=_.Hc(function(r){var f=r.data;
var I=r.isLeading;var C=r.hideSelectionTextChevron;var Y=_.qd("yt-list-item-view-model-wiz__button-container");r={};var V=_.qd("yt-list-item-view-model-wiz__image-container",(r["yt-list-item-view-model-wiz__leading"]=I,r["yt-list-item-view-model-wiz__trailing"]=function(){return!I()},r)),S=function(){return I()?f().leadingImage:f().trailingImage},h=_.qd("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
r={};var w=_.qd("yt-list-item-view-model-wiz__accessory",(r["yt-list-item-view-model-wiz__leading"]=I,r["yt-list-item-view-model-wiz__trailing"]=function(){return!I()},r)),n=function(){return Br$(f().listItemIconAfterSelectionText)};
return _.p(_.M,{cond:function(){return kvl(f(),I())},
then:function(){return _.p(_.B9,null,_.p(_.M,{cond:S,then:function(d){return _.p("div",{class:V,"aria-hidden":"true"},_.p(_.J3,{data:d,alt:"",preserveWidth:!0,preserveHeight:!0,className:h}))}}),_.p(_.M,{cond:function(){return I()&&f().leadingAccessory},
then:function(){return _.p("div",{class:V},_.p(_.X1,{data:function(){return f().leadingAccessory}},{avatarViewModel:function(d){return _.p(_.$U,{data:d.data,
avatarButtonCustomClassName:h})},
collectionThumbnailViewModel:eyq}))}}),_.p(_.M,{cond:function(){return!I()&&f().trailingButton},
then:function(){return _.p("div",{class:Y},_.p(_.X1,{data:function(){return f().trailingButton}},{buttonViewModel:function(d){return _.p(_.LF,{data:d.data,
className:w})}}))}}),_.p(_.M,{cond:function(){var d;
return!I()&&((d=f().trailingButtons)==null?void 0:d.buttons)},
then:function(){return _.p("div",{class:Y},_.p(_.X1,{data:function(){var d;return(d=f().trailingButtons)==null?void 0:d.buttons}},{buttonViewModel:function(d){return _.p(_.LF,{data:d.data,
className:w})},
accountLinkButtonViewModel:function(d){return _.p(auK,{data:d.data,className:function(){return w()||""}})},
switchButtonViewModel:function(d){return _.p(Ed_,{data:d.data,className:w})},
subscribeButtonViewModel:function(d){return _.p(bS3,{data:d.data,isOverlay:!1,animateWidth:!1,className:w})},
toggleButtonViewModel:function(d){return _.p(_.F1,{data:d.data,className:w})}}))}}),_.p(_.M,{cond:function(){return!I()&&!!f().selectionText},
then:function(){return _.p(_.B9,null,_.p(_.wW,{text:function(){return f().selectionText},
className:_.qd("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.p(_.M,{cond:function(){return!C()},
then:function(){return _.p(_.V2,{icon:n,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Ac"),MfT=_.Hc(function(r){var f=r.data;
return _.p(_.M,{cond:function(){return f().title||f().subtitle},
then:function(){return _.p("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.p("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.p(_.M,{cond:function(){return f().title},
then:function(I){return _.p(_.wW,{text:I,className:"yt-list-item-view-model-wiz__title"})}})),_.p(_.M,{cond:function(){return f().subtitle},
then:function(I){return _.p(_.wW,{text:I,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Bc");_.g6=_.Hc(function(r){var f=r.data;var I=r.onTap;var C=r.onSwitch;var Y=r.overrideDisabled;r=_.E(_.YZ(function(){var d;return((d=ojP(n()))==null?void 0:d.switchedOnByDefault)||!1}));
var V=r.next().value,S=r.next().value;r=_.E(_.ld(!1,void 0,"Ri8Twb"));var h=r.next().value,w=r.next().value,n=function(){var d;if(!(d=f().switchButton)){var z=f();d=Y==null?void 0:Y();z={switchOnCommand:z.switchOnCommand,switchOffCommand:z.switchOffCommand,switchedOnByDefault:z.switchedOnByDefault,isDisabled:z.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:z.a11yLabelSwitchedOn,a11yLabelSwitchedOff:z.a11yLabelSwitchedOff};d!==void 0&&(z.isDisabled=d);d={switchButtonViewModel:z}}return d};
return _.p("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.p(_.MF,{data:function(){return{title:f().title,subtitle:f().attributedSubtitle,leadingImage:f().leadingImage,leadingAccessory:f().leadingAccessory,isDisabled:f().isDisabled}},
onTap:function(d){var z=ojP(n());!z||z.isDisabled||f().ignoreTapUntilCommandCompletes&&h()||(I==null||I(d),smU(z,V(),d,f().ignoreTapUntilCommandCompletes,w),S(!V()),C==null||C(V()))},
trailingAccessory:function(){return _.p(_.X1,{data:n},{switchButtonViewModel:function(d){return _.p(Ed_,{data:d.data,parentActive:V,handleOnTapEventInParent:!!I})}})}}))},"Cc");var gd8=_.VR("DOWNLOAD",{},"Download"),a78=_.VR("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),XQV=_.VR("RETRY",{},"Retry"),N$s=_.VR("PAUSE_DOWNLOADING",{},"Pause downloading"),$Yq=_.VR("RESUME_DOWNLOAD",{},"Resume download"),C9U={text:gd8,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},WS={text:a78,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},Vwl={text:XQV,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
YxR={text:N$s,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},llR={text:$Yq,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var Frg=_.Hc(function(r){var f=function(){var h=r.data();h=_.i6(h.rendererContext);var w;return(w=_.F(h,_.CF))==null?void 0:w.videoId},I=_.XA(function(h){var w=f(),n=xEP(r.data());
return w?_.FN(h,w):n?_.P1(h,n):"TRANSFER_STATE_UNKNOWN"}),C=_.VS(_.GKw,f),Y=_.XA(function(h){return _.sxR(h,f(),xEP(r.data()))}),V=function(){return Sxc(I(),C(),_.i6(r.data().rendererContext),!!xEP(r.data()))},S=function(){return Y()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.p("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:S},_.p(_.M,{cond:function(){return!S()},
then:function(){return _.p(_.M,{cond:V,then:function(h){return _.p(_.pz,{each:h},function(w){return _.p(_.MF,{data:w,isCompact:r.isCompact,isMenuItem:r.isMenuItem,inPopup:r.inPopup})})}})}}))},"Dc");
Frg.idomCompat=!0;var w6w=_.zk({listItemViewModel:dYg,downloadListItemViewModel:Frg,switchListItemViewModel:_.g6});_.GL(bCc);var Pvg;Pvg=_.Hc(function(r){var f=r.data;var I=r.isCompact;var C=r.hideSelectionTextChevron;var Y=r.inPopup;var V=r.isOverlay;var S=function(){return hOw(f())&&(Y==null?void 0:Y())};
r={};return _.p("yt-list-view-model",{class:_.qd("yt-list-view-model-wiz",(r["yt-list-view-model-wiz--kaios-spat-nav"]=KHK(),r)),role:function(){return S()?"menu":"list"}},_.p(_.X1,{data:function(){return f().listItems}},{listItemViewModel:function(h){return _.p(_.MF,{data:h.data,
isMenuItem:S,isCompact:I,hideSelectionTextChevron:C,inPopup:Y,isOverlay:V})},
downloadListItemViewModel:function(h){return _.p(Frg,{data:h.data,isMenuItem:S,isCompact:I,inPopup:Y})},
switchListItemViewModel:_.g6}))},"Ec");
_.tfT=_.N("web_enable_sink_list_view_models")?Pvg:_.rW(bCc);Pvg.idomCompat=!0;var T$4=_.Hc(function(r){var f=r.data;var I=r.isOverlay;r={};return _.p("yt-course-perks-view-model",{class:_.qd("ytwCoursePerksViewModelHost",(r.ytwCoursePerksViewModelHostOverlay=I,r))},_.p("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.p(_.wW,{text:function(){return f().title}})),_.p("div",null,_.p(_.M,{cond:function(){return f().perks},
then:function(C){return _.p(_.tfT,{data:function(){return{listItems:C()}},
isCompact:!0,isOverlay:I})}})))},"Fc");_.Kv(T$4,"yt-course-perks-view-model",{props:{data:_.vI,isOverlay:_.vI}});_.Kv(_.Hc(function(r){var f=r.data;return _.p("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.p("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.p(_.wW,{text:function(){return f().title}})),_.p("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.p(_.wW,{text:function(){return f().progressSummary}})),_.p("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.p("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.lB({width:function(){return f().progressPercentage*100+"%"}})})))},"Gc"),"yt-course-progress-view-model",{props:{data:_.jv}});var cfD=_.Hc(function(r){var f=_.jS(r,{}).data;return _.p("yt-progress-view-model",{class:"ytwProgressViewModelHost"},_.p(_.M,{cond:function(){return f().progressSummary},
then:function(I){return _.p("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.p(_.wW,{text:I}))}}),_.p("div",{class:"ytwProgressViewModelHostProgressContainer"},_.p("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.p(_.wW,{text:function(){var I;
return(I=f())==null?void 0:I.leadingLabel}})),_.p("div",{class:"ytwProgressViewModelHostProgressBar"},_.p("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){var I;return"width: "+(((I=f())==null?void 0:I.progressPercentage)||0)*100+"%"}}))))},"Hc");var ad=_.Hc(function(r){var f=r.starNumber;var I=r.data;var C=function(){var Y;return((Y=I())==null?void 0:Y.rating)||0};
return _.p(_.M,{cond:function(){return f()},
then:function(Y){return _.p(_.MC,null,_.p(_.nz,{when:function(){return C()>=Y()-.25}},function(){return _.p("div",{class:"ytStarRatingViewModelHostStar"},_.p(_.V2,{icon:"STAR_FILLED"}))}),_.p(_.nz,{when:function(){return C()>=Y()-.75}},function(){return _.p("div",{class:"ytStarRatingViewModelHostStar"},_.p(_.V2,{icon:"STAR_HALF"}))}),_.p(_.dt,null,function(){return _.p("div",{class:"ytStarRatingViewModelHostStar"},_.p(_.V2,{icon:"STAR_BORDER"}))}))}})},"Ic"),WrX=_.Hc(function(r){r=r.data;
return _.p("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.p(ad,{starNumber:1,data:r}),_.p(ad,{starNumber:2,data:r}),_.p(ad,{starNumber:3,data:r}),_.p(ad,{starNumber:4,data:r}),_.p(ad,{starNumber:5,data:r}))},"Jc");_.Kv(_.Hc(function(r){var f=_.jS(r,{}).data;return _.p("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.p("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.p(_.wW,{text:function(){var I;return(I=f())==null?void 0:I.title}})),_.p("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.p(_.M,{cond:function(){return f().starProgressViewModels},
then:function(I){return _.p("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.p(_.X1,{data:I},{progressViewModel:cfD}))}}),_.p("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.p("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.p(_.wW,{text:function(){var I;
return(I=f())==null?void 0:I.averageRatingLabel}})),_.p(_.M,{cond:function(){return f().zeroStateText},
then:function(I){return _.p("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.p(_.wW,{text:I}))}}),_.p(_.M,{cond:function(){return f().starRatingViewModel},
then:function(I){return _.p("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.p(_.X1,{data:I},{starRatingViewModel:WrX}))}}),_.p("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.p(_.wW,{text:function(){var I;
return(I=f())==null?void 0:I.totalRatingsCountLabel}})))))},"Kc"),"yt-course-ratings-view-model",{props:{data:_.vI}});var LrU;LrU={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.mYs=_.Hc(function(r){var f=_.yy(),I=_.ru();_.Xl(function(){requestAnimationFrame(function(){var Y;(Y=I.lottieEl)==null||Y.addEventListener("DOMLoaded",function(){var V;(V=r.onLottieLoaded)==null||V.call(r)})});
var C=r.data().browseEndpoint;C&&_.F2(C)});
return _.p("yt-learning-journey-loader-view-model",{class:_.qd("learningJourneyLoaderViewModelHost",r.className),"data-target-id":function(){var C;return((C=r.data)==null?void 0:C.call(r).targetId)||""},
el:f},_.p(_.uT,{className:_.qd("learningJourneyLoaderViewModelLoader",r.className),animationName:function(){return LrU.animationConfig.name},
data:LrU,animationRef:I}))},"Lc");_.Kv(_.mYs,"yt-learning-journey-loader-view-model",{props:{data:_.jv,className:_.vI,onLottieLoaded:_.vI}});var ezs=_.Hc(function(r){var f=function(){return r.data()},I=_.E(_.ld(-1,void 0,"GvxRR")),C=I.next().value,Y=I.next().value,V=function(n){return C()===n},S=function(n){return f().correctAnswerIndex===n},h=function(){return C()!==-1},w=_.IC(function(){Y(-1);
return!1});
return _.p("learning-journey-quiz-view-model",{class:_.qd("learningJourneyQuizViewModelHost",r.className),style:_.lB({background:function(){return eB(LH(f())).backgroundColor}})},_.p(_.M,{cond:function(){return!!f().video},
then:function(){return _.p("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.lB({background:function(){return eB(LH(f())).videoBackgroundColor}})},_.p(_.X1,{data:function(){return f().video}},{lockupViewModel:function(n){return _.p(_.Z2,{data:n.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.p("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.p("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.p("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.p("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.p("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.lB({color:function(){return eB(LH(f())).primaryTextColor}})},_.p(_.wW,{text:function(){var n=f(),d=h(),z=C()===f().correctAnswerIndex;
return d?z?n.successTitle:n.failureTitle:n.questionHeaderText}})),_.p("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.p(_.M,{cond:h,
then:function(){return _.p("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":w,role:"button","aria-label":"Reset","tab-index":"0"},_.p("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.lB({fill:function(){return eB(LH(f())).primaryTextColor}})},_.p("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"})))}}),
_.p(_.X1,{data:function(){return f().overflowMenu}},{buttonViewModel:function(n){return _.p(_.LF,{data:n.data})}}))),_.p("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.lB({color:function(){return eB(LH(f())).secondaryTextColor}})},_.p(_.wW,{text:function(){var n=f();
return h()?n.explanationText:n.questionSubheaderText}}))),_.p("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.p(_.pz,{each:function(){return f().optionsData||[]}},function(n,d){var z={};
return _.p("div",{class:_.qd("learningJourneyQuizViewModelHostQuizOptions",(z.learningJourneyQuizViewModelHostQuizHover=function(){return!h()},z.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return C()===f().correctAnswerIndex&&V(d())},z.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return C()!==f().correctAnswerIndex&&V(d())},z.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return h()&&!V(d())},z)),
"on:click":_.IC(function(){if(h())return!1;Y(d());return!1}),
style:_.lB({background:function(){return h()&&V(d())?"":eB(LH(f())).optionColor}}),
role:"button","aria-disabled":h,"tab-index":"0"},_.p(_.M,{cond:h,then:function(){return _.p("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var g=d();return S(g)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.lB({fill:function(){return eB(LH(f())).primaryTextColor}})},_.p("path",{d:function(){var g=d();
return S(g)?"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"}}))}}),_.p(_.wW,{text:n.optionText}))})))))},"Mc");
ezs.idomCompat=!0;_.Kv(ezs,"learning-journey-quiz-view-model",{props:{data:_.jv,className:_.jv}});var Jf4=_.Hc(function(r){var f=_.yy();_.KF(f,function(){return r.data().rendererContext});
var I=_.jS(r,{palette:void 0,isLastItem:!1}),C=I.palette,Y=I.isLastItem,V=function(){return r.data().isHighlighted},S=function(){var n;
return p6l((n=C())==null?void 0:n.iconDisabledColor)},h=function(){var n;
return p6l((n=C())==null?void 0:n.primaryTitleColor)},w=function(){var n;
return p6l((n=C())==null?void 0:n.secondaryTitleColor)};
I={};return _.p("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:f},_.p(_.X1,{data:function(){return r.data().thumbnail}},{thumbnailViewModel:_.v3}),_.p("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.p("div",{class:_.qd("ytMacroMarkerListItemViewModelTimeDescription",(I.ytMacroMarkerListItemViewModelHighlighted=V,I)),
style:_.lB({"background-color":function(){return V()?h():S()},
color:function(){return V()?"":w()}})},_.p(_.wW,{text:function(){return r.data().timestamp}})),_.p("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.lB({"background-color":function(){return Y()?"transparent":S()}})}),_.p("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(V()?h():w())}},_.p(_.wW,{text:function(){return r.data().title}}))))},"Nc");_.Xk=_.Hc(function(r){function f(Es){v("transform:translateX("+(_.Lz("HTML_DIR")==="rtl"?"":"-")+Es+"px)")}
function I(Es){return Math.min(Math.max(Es,0),m()-rR())}
function C(){var Es=Z()+cu();return Y()?(Math.round(rR()/Es)||1)*Es:0}
var Y=function(){return r.data().items||[]},V=function(){return r.data().previousButton},S=function(){return r.data().nextButton},h=function(){var Es,J_;
return(J_=(Es=r.disableArrows)==null?void 0:Es.call(r))!=null?J_:!1},w=function(){var Es;
return!((Es=r.forceNarrowLayout)==null||!Es.call(r))},n=_.yy(),d=_.yy(),z=_.E(_.ld(0,void 0,"yngx7d")),g=z.next().value,X=z.next().value;
z=_.E(_.ld(0,void 0,"rUOyGb"));var P=z.next().value,W=z.next().value,m=P;P=_.E(_.ld("",void 0,"jv2kWc"));z=P.next().value;var v=P.next().value;P=_.E(_.ld(0,void 0,"Xb0f0d"));var O=P.next().value,k=P.next().value,Z=O;P=_.E(_.ld(0,void 0,"pt5wQ"));O=P.next().value;var Cw=P.next().value,rR=O;P=_.E(_.ld(!1,void 0,"FfPefe"));var EP=P.next().value,Pu=P.next().value;P=_.E(_.ld(0,void 0,"kB5mhb"));O=P.next().value;var Wu=P.next().value,cu=O;P=_.E(_.ld(0,void 0,"dnDmUd"));var OP=P.next().value,iU=P.next().value,
oR=function(){var Es,J_=(Es=r.data())==null?void 0:Es.responsiveContainerConfiguration,xC,r2;return J_?lOl(J_==null?void 0:J_.responsiveSize):(r2=(xC=r.sizing)==null?void 0:xC.call(r))!=null?r2:"STANDARD"};
P=_.hR(function(){return!h()&&g()>0},void 0,"ZIGxke");
O=_.hR(function(){return!h()&&g()<m()-rR()},void 0,"OJzhRd");
var vu=function(){X(I(g()-C()));f(g())},wB=function(){X(I(g()+C()));
f(g())},qT=function(){n.value!==null&&C8()},gB;
_.$E(function(){C8();window.ResizeObserver?(gB=new ResizeObserver(_.z1(qT,0)),gB.observe(n.value)):window.addEventListener("resize",qT)});
_.$L(function(){if(window.ResizeObserver){var Es;(Es=gB)==null||Es.disconnect()}else window.removeEventListener("resize",qT)});
var C8=function(){var Es=n.value.clientWidth,J_=r.includeMargin!==void 0?r.includeMargin():!1,xC;var r2=r.hasPeek!==void 0?r.hasPeek():!((xC=r.data())==null||!xC.hasPeek);Es=_.QS({containerWidth:Es,hasPeek:r2,sizing:oR(),marginSettings:J_?w()?4:1:0});Wu(Es.gutter);iU(Es.margin);k(Es.itemWidth);Pu(Es.maxContainerWidth<528||w());Cw(Es.maxContainerWidth);Y()&&W((Es.itemWidth+Es.gutter)*Y().length-Es.gutter)};
return _.p("horizontal-shelf-view-model",{class:_.qd("ytwHorizontalShelfViewModelHost",r.className),el:n},_.p(_.M,{cond:function(){return r.data().header},
then:function(){return _.p("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.lB({width:function(){return rR()+"px"},
padding:function(){return"0 "+OP()+"px"}})},_.p(_.X1,{data:function(){return r.data().header}},{sectionHeaderViewModel:function(Es){return _.p(_.BA,{data:Es.data,
disableHorizontalPadding:!0,forceSmallLayout:EP,useResponsiveLayout:!0})}}))}}),_.p("div",{class:"ytwHorizontalShelfViewModelOuterContainer"},_.p("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.lB({width:function(){return rR()+"px"},
padding:function(){return"0 "+OP()+"px"},
overflow:function(){return h()?"auto":"hidden"}})},_.p("div",{class:"ytwHorizontalShelfViewModelItems",
el:d,style:z},_.p(_.X1,{data:Y},{macroMarkerListItemViewModel:function(Es,J_){return _.p("div",{style:_.lB({width:function(){return Z()+"px"},
"margin-right":function(){return(J_()===Y().length-1?0:cu())+"px"}})},_.p(Jf4,{data:Es.data,
palette:_.JG(r.palette),isLastItem:function(){return J_()===Y().length-1}}))},
lockupViewModel:function(Es,J_){var xC=Es.data;return _.p("div",{style:_.lB({width:function(){return Z()+"px"},
"margin-right":function(){return(J_()===Y().length-1?0:cu())+"px"}})},_.p(_.Z2,{data:xC,
containerType:4,sizing:oR,protectBackground:r.protectBackground,thumbnailFixedWidth:function(){return nsB(xC())+"px"},
thumbnailTargetWidth:function(){return nsB(xC())}}))}}))),_.p(_.M,{cond:P,
then:function(){return _.p("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.p(_.X1,{data:V},{buttonViewModel:function(Es){return _.p(_.LF,{data:Es.data,onClick:vu})}}))}}),_.p(_.M,{cond:O,
then:function(){return _.p("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.p(_.X1,{data:S},{buttonViewModel:function(Es){return _.p(_.LF,{data:Es.data,onClick:wB})}}))}})))},"Oc");
_.Xk.idomCompat=!0;var jA3=_.Hc(function(r){var f=function(){return r.data().targetId||""},I=function(){var z;
return((z=r.data())==null?void 0:z.expansionEntityKey)||""},C=_.VS(_.aaU,I),Y=function(){var z;
return((z=C())==null?void 0:z.value)===f()},V=function(z){_.eS(_.hv("stringEntity",I(),{key:I(),
value:z?f():""}))};
_.Xl(function(){r.data().isExpanded&&V(!0)});
var S=function(){if(Y()){var z=!0;r.onCollapse!==void 0&&(z=r.onCollapse());z&&V(!1)}else V(!0)},h=_.IC(S),w=function(){var z;
return(((z=r.accordionStyle)==null?void 0:z.call(r))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},n={},d={};
return _.p("yt-accordion-item-view-model",{class:_.qd("ytAccordionItemViewModelHost",r.className,(n.ytAccordionItemViewModelExpanded=function(){return Y()},n.ytAccordionItemViewModelHidden=function(){var z;
return(z=r.hideIfNotExpanded)==null?void 0:z.call(r)},n.ytAccordionItemViewModelMini=w,n)),
"data-target-id":f},_.p("div",{class:"ytAccordionItemViewModelContainer"},_.p("div",{class:"ytAccordionItemViewModelLeftSection","on:click":h},_.p(_.wW,{text:function(){return r.data().title},
className:"ytAccordionItemViewModelLabel"})),_.p("div",{class:"ytAccordionItemViewModelRightSection"},_.p(_.X1,{data:function(){return Y()?r.data().expandButton:r.data().collapseButton}},{buttonViewModel:function(z){return _.p(_.LF,{data:z.data,
className:"ytAccordionItemViewModelToggleButton",onClick:S})}}))),_.p("div",{class:"ytAccordionItemViewModelContainer"},_.p("div",{class:_.qd("ytAccordionItemViewModelContent",(d.ytAccordionItemViewModelExpandedSubtitle=function(){return Y()},d))},_.p(_.M,{cond:function(){return!w()},
then:function(){return _.p(_.wW,{text:function(){return r.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.p(_.X1,{data:function(){return r.data().content}},{horizontalShelfViewModel:function(z){return _.p(_.Xk,{data:z.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Pc");_.Hu4=_.Hc(function(r){var f=_.E((0,_.lZ_)(r.data)).next().value,I=function(){return r.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},C=function(){return I()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},Y=_.E(_.ld(!0,void 0,"CeVone")),V=Y.next().value,S=Y.next().value,h=function(){return C()&&V()},w=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){S(!V())}}};
Y={};return _.p("yt-accordion-view-model",{class:_.qd("ytAccordionViewModelHost",(Y.ytAccordionViewModelMinimized=function(){return h()},Y)),
"data-target-id":function(){return r.data().targetId||""}},_.p(_.M,{cond:function(){return C()||!!f().title},
then:function(){return _.p("div",{class:"ytAccordionViewModelHeader"},_.p("div",{class:"ytAccordionViewModelTitleSection"},_.p(_.M,{cond:function(){return!!r.data().headerIcon},
then:function(){return _.p(_.V2,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var n;return(n=r.data().headerIcon)==null?void 0:n.iconType}})}}),_.p(_.wW,{text:function(){return f().title},
className:"ytAccordionViewModelTitle"})),_.p("div",{class:"ytAccordionViewModelButtonSection"},_.p(_.M,{cond:C,then:function(){return _.p(k4,{data:w,iconName:function(){return h()?"chevron_down":"chevron_collapse"}})}})))}}),_.p("div",{class:"ytAccordionViewModelContent"},_.p(_.X1,{data:function(){return f().contents}},{accordionItemViewModel:function(n){return _.p(jA3,{data:n.data,
className:"ytAccordionViewModelRow",accordionStyle:I,hideIfNotExpanded:h,onCollapse:function(){return C()?(S(!0),!1):!0}})}})),_.p("div",null,_.p(_.M,{cond:function(){return!C()},
then:function(){return _.p(_.wW,{text:function(){return f().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"})}})))},"Qc");_.Kv(_.Hu4,"yt-accordion-view-model",{props:{data:_.jv}});_.Kv(_.Hc(function(r){var f,I=(f=_.a().resolve(_.ZY(_.cI)))==null?void 0:f(),C=_.E(_.ld(!1,void 0,"XM2Sxc"));f=C.next().value;var Y=C.next().value;C=_.E(_.ld(!0,void 0,"Jgzg2d"));var V=C.next().value,S=C.next().value,h=_.yy(),w=function(P){Y(!0);P={learningJourneyFormData:{query:P}};_.F2(r.data().searchEndpoint||{},{form:{formData:P}});return!1},n=_.IC(function(P){P.target.closest("button-view-model")&&Y(!0)});
C=_.IC(function(){S(h.value.value.length===0)});
var d=_.IC(function(P){if(P.key==="Enter"&&!P.shiftKey&&!V()){var W=P.target;P.preventDefault();w(W.value)}}),z={},g={},X={};
return _.p("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.p("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.p(_.J3,{data:function(){return r.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.p("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.p("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.p("div",{class:_.qd("ytLearningJourneyZeroStateSearchBar",(z.ytLearningJourneyZeroStateSearchBarDark=I,z))},_.p("textarea",{class:_.qd("ytLearningJourneyZeroStateTextInput",(g.ytLearningJourneyZeroStateTextInputDark=I,g)),el:h,"on:keyup":C,"on:keydown":d,placeholder:"What do you want to learn?",
rows:1})),_.p("div",{class:_.qd("ytLearningJourneyZeroStateSearchButtonContainer",(X.ytLearningJourneyZeroStateSearchButtonContainerDark=I,X))},_.p(_.LF,{data:function(){return _.F(r.data().searchButton,_.NI)},
className:"search-button",onClick:function(){return w(h.value.value)},
buttonOverrides:function(){return{disabled:V(),style:I?"mono-inverse":"mono",size:"XL"}}}))),_.p(_.M,{cond:function(){return!!r.data().errorBanner},
then:function(){return _.p("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.p(_.X1,{data:function(){return r.data().errorBanner}},{alertBannerViewModel:_.YYB}))}})),_.p(_.M,{cond:f,
then:function(){return _.p("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.p(_.X1,{data:function(){return r.data().loader}},{learningJourneyLoaderViewModel:function(P){return _.p(_.mYs,{data:P.data})}}))},
else:function(){return _.p("div",null,_.p(_.M,{cond:function(){return!!r.data().learningJourneyShelf},
then:function(){return _.p("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.p("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return r.data().learningJourneySectionTitle}),_.p(_.X1,{data:function(){return r.data().learningJourneyShelf}},{horizontalShelfViewModel:_.Xk}))}}),_.p("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.p("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return r.data().suggestedJourneySectionTitle}),
_.p("div",{"on:click":n},_.p(_.X1,{data:function(){return r.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(P){return _.p(a9,{data:P.data,
layout:1})}}))))}}))},"Rc"),"yt-learning-journey-zero-state",{props:{data:_.jv}});var iu4=_.Hc(function(r){var f=r.data;return _.p("ytvl-live-leaderboard-item-action-content-view-model",{class:_.qd("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.p(_.wW,{text:function(){var I;return(I=f())==null?void 0:I.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.p(_.X1,{data:function(){return f().actionButton}},{buttonViewModel:function(I){return _.p(_.LF,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:I.data})}}))},"Sc");var Rzs=_.Hc(function(r){var f=r.data;return _.p("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.qd("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.p(_.wW,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var I;return(I=f())==null?void 0:I.displayName},
ellipsisTruncate:!0}),_.p(_.X1,{data:function(){return f().badge}},{buttonViewModel:function(I){return _.p(_.LF,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:I.data})}}))},"Tc");_.Kv(_.Hc(function(r){var f=r.data;return _.p("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.p("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.p(_.wW,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var I;return(I=f())==null?void 0:I.rank}})),_.p("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.p(_.X1,{data:function(){return f().avatar}},{avatarViewModel:_.$U})),_.p("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.p(_.X1,{data:function(){return f().content}},{liveLeaderboardItemChannelContentViewModel:Rzs,
liveLeaderboardItemActionContentViewModel:iu4})),_.p(_.wW,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var I;return(I=f())==null?void 0:I.points}}))},"Uc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.jv}});_.Kv(_.Hc(function(r){var f=r.data;return _.p("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.p(_.wW,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var I,C;return(I=f())==null?void 0:(C=I.ranking)==null?void 0:C.rank}}),_.p("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.p(_.X1,{data:function(){return f().avatar}},{avatarViewModel:_.$U})),_.p(_.wW,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var I,C;return(I=f())==null?void 0:(C=I.channelContent)==null?void 0:C.channelName}}),_.p(_.wW,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var I;return(I=f())==null?void 0:I.points}}))},"Vc"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.jv}});var vd4=_.Hc(function(r){r=_.jS(r,{wrapper:!1}).wrapper;return _.p(_.M,{cond:r,then:function(){return _.p("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.p("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.p("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Wc");
vd4.idomCompat=!0;var Kr4=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],yf8=_.Hc(function(r){var f=r.data;var I=_.yy(),C=_.hR(function(){return f().command},void 0,"CGDtVe");
_.az(function(){C()&&_.X2(C(),{form:{element:I.value}})});
return _.p("div",{el:I,class:"YtQrCodeRendererHostContainer"},_.p(_.M,{cond:function(){return f().qrCodeImage},
then:function(Y){return _.p(_.J3,{data:Y,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.p(_.M,{cond:function(){return f().spinner},
then:function(){return _.p(vd4,null)}})}}),_.p(_.M,{cond:function(){return f().label},
then:function(Y){return _.p(_.wW,{text:Y,className:"YtQrCodeRendererHostLabel"})}}),_.p(_.M,{cond:function(){return f().labels},
then:function(Y){return _.p("div",{class:"YtQrCodeRendererHostLabels"},_.p(_.pz,{each:Y},function(V){return _.p(_.wW,{text:V})}))}}))},"Yc");_.Kv(_.Hc(function(r){var f=r.data;var I=_.hR(function(){return f().qrEntityKey},void 0,"joYCxd"),C=_.hR(function(){return f().deleteEntityOnDismiss},void 0,"x3yAde"),Y=_.hR(function(){return f().command},void 0,"dJe1Re"),V=_.VS(G_R,I);
r=_.hR(function(){return f().style&&Kr4.includes(f().style)},void 0,"rGILzf");
var S=_.yy();_.ZW(S,{visibilityCallback:function(h){h&&Y()&&_.X2(Y())},
showOption:{calledOnce:!0,state:"visible"}});_.$E(function(){_.$L(function(){C()&&I()&&_.Lx().dispatch(_.hv("qrCodeEntity",I()))})});
return _.p("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:S},_.p(_.M,{cond:r,then:function(){return _.p(_.M,{cond:V,then:function(h){return _.p(yf8,{data:h})}})}}))},"Xc"),"yt-qr-code-renderer",{props:{data:_.jv}});_.UYX=_.Hc(function(r){var f=r.data;var I=r.topbarOffset;var C,Y=((C=_.a().resolve(_.ZY(_.cI)))==null?void 0:C())||!1;return _.p("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var V=f();var S,h,w=Y?(S=V.config)==null?void 0:S.darkThemeBackgroundColor:(h=V.config)==null?void 0:h.lightThemeBackgroundColor;V=w?_.MG(w):void 0;V="background-color: "+V+";";I!==void 0&&(V+="top: -"+I()+"px;");return V},
"aria-hidden":!0},_.p(_.M,{cond:function(){var V,S,h;return!!((V=f().backgroundImageConfig)==null?0:(S=V.image)==null?0:(h=S.sources)==null?0:h.length)},
then:function(){return _.p(_.J3,{data:function(){var V;return(V=f().backgroundImageConfig)==null?void 0:V.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.p("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+dEq(Y,f().gradientColorConfig)+";"}}))},"Zc");
_.UYX.idomCompat=!0;_.GL(zOP);var sAU=_.Hc(function(r){var f=r.className;var I=r.data;var C=r.isOverlay;var Y=r.maxLinesOverride;var V=r.useMediumText;r=_.yy();var S=function(){return I().alwaysShowTruncationText},h=function(){return I().truncationText},w=function(){var X,P;
return(P=(X=_.F(I().rendererContext,_.U0))==null?void 0:X.label)!=null?P:""},n=_.E(_.ld(!1,void 0,"UGEJpb")),d=n.next().value,z=n.next().value;
_.KF(r,function(){return I().rendererContext});
n=_.IC(function(){I().expandOnTap&&z(!d());return!1});
var g={};return _.p("yt-description-preview-view-model",{el:r,class:_.qd("yt-description-preview-view-model-wiz",f,(g["yt-description-preview-view-model-wiz--clickable"]=function(){var X;return!((X=_.F(I().rendererContext,yS))==null||!X.onTap)},g["yt-description-preview-view-model-wiz--is-overlay"]=C,g)),
"on:click":n},_.p(_.M,{cond:function(){return I().description},
then:function(X){return _.p(_.M,{cond:d,then:function(){var P={};return _.p("div",{class:_.qd("yt-description-preview-view-model-wiz__description",(P["yt-description-preview-view-model-wiz__description--medium-text"]=V,P))},_.p(_.wW,{text:X}))},
else:function(){return _.p(lOg,{text:X,alwaysShowTruncationText:S,truncationText:h,maxLines:function(){var P;return(P=Y==null?void 0:Y())!=null?P:I().maxLines},
isOverlay:C,accessibilityLabel:w,useMediumText:V})}})}}))},"$c"),OuB=_.N("web_enable_sink_yt_description_preview_view_model")?sAU:_.rW(zOP);
sAU.idomCompat=!0;var od4=_.Hc(function(r){var f=r.data;var I=r.isOverlay;return _.p("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.p("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.p(_.X1,{data:function(){return f().header}},{sectionHeaderViewModel:function(C){return _.p(_.BA,{data:C.data,
isOverlay:I})}})),_.p("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.p(_.X1,{data:function(){return f().channelInfoButtons}},{flexibleActionsViewModel:a9})),_.p("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.p(_.X1,{data:function(){return f().description}},{descriptionPreviewViewModel:function(C){return _.p(OuB,{data:C.data,
isOverlay:I})}})))},"ad");
od4.idomCompat=!0;var QA3=_.Hc(function(r){var f=r.data;var I={};return _.p("factoid-view-model",{class:_.qd("ytwFactoidViewModelHost",(I.ytwFactoidViewModelHostOverlay=r.isOverlay,I))},_.p(_.wW,{text:function(){return f().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.p(_.wW,{text:function(){return f().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"bd");
QA3.idomCompat=!0;var Af3=_.Hc(function(r){var f=r.data;var I=r.isOverlay;return _.p("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.p(_.X1,{data:function(){return f().factoids}},{factoidViewModel:function(C){return _.p(QA3,{data:C.data,
isOverlay:I})}}))},"cd");
Af3.idomCompat=!0;_.Zu8=_.Hc(function(r){var f=r.data;var I=r.isOverlay;return _.p("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.p(_.X1,{data:function(){return f().items}},{channelInfoViewModel:function(C){return _.p("div",{class:"ytwCourseMetadataViewModelHostItem"},_.p(od4,{data:C.data,
isOverlay:I}))},
coursePerksViewModel:function(C){return _.p("div",{class:"ytwCourseMetadataViewModelHostItem"},_.p(T$4,{data:C.data,isOverlay:I}))},
descriptionPreviewViewModel:function(C){return _.p("div",{class:"ytwCourseMetadataViewModelHostItem"},_.p(OuB,{data:C.data,isOverlay:I}))},
factoidsRowViewModel:function(C){return _.p("div",{class:"ytwCourseMetadataViewModelHostItem"},_.p(Af3,{data:C.data,isOverlay:I}))}}))},"dd");var GeC=_.Hc(function(r){return _.p("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.p(_.X1,{data:function(){return r.data().content}},{courseMetadataViewModel:function(f){return _.p(_.Zu8,{data:f.data,
isOverlay:r.isOverlay})}}))},"ed");var keV=_.Hc(function(r){var f=r.data;r=r.className;var I=_.yy(),C=function(){var V;return _.RK((V=f())==null?void 0:V.rendererContext)},Y={};
Y=(Y["dynamic-text-view-model-wiz"]=!0,Y["dynamic-text-view-model-wiz--tappable"]=function(){return C()},Y);
_.KF(I,function(){var V;return(V=f())==null?void 0:V.rendererContext});
return _.p("yt-dynamic-text-view-model",{el:I,role:function(){return C()?"link":void 0},
tabindex:function(){return C()?0:void 0},
class:_.qd(r,Y)},_.p("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var V,S,h;return(h=(S=_.F((V=f())==null?void 0:V.rendererContext,_.U0))==null?void 0:S.label)!=null?h:""}},_.p(_.wW,{text:function(){return f().text},
userInput:!0})))},"fd");
keV.idomCompat=!0;_.B$V=_.Hc(function(r){var f=r.data;var I=r.isPositionRelative;var C=_.Ue(),Y=_.gsK("(max-width: 527.9px)"),V=function(){var S,h;return(h=(S=f())==null?void 0:S.style)!=null?h:"IMAGE_BANNER_STYLE_FULL_BLEED"};
r={};r=(r["yt-image-banner-view-model-wiz"]=!0,r["yt-image-banner-view-model-wiz--inset"]=function(){return alU(V())},r["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.tR(!0)&&!(I==null?0:I())},r["yt-image-banner-view-model-wiz--small-inset"]=function(){return alU(V())&&Y()},r["yt-image-banner-view-model-wiz--tappable"]=function(){var S;
return _.tR(C.value)&&_.RK((S=f())==null?void 0:S.rendererContext)},r);
_.KF(C,function(){var S;return(S=f())==null?void 0:S.rendererContext});
return _.p("yt-image-banner-view-model",{el:C,class:_.qd(r)},_.p(_.M,{cond:function(){var S;return(S=f())==null?void 0:S.image},
then:function(){return _.p(_.J3,{data:function(){return f().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.p(_.X1,{data:function(){var S;
return(S=f())==null?void 0:S.overlays}},{thumbnailHoverOverlayViewModel:Lpq}))},"gd");
_.B$V.idomCompat=!0;var qY3;qY3=_.Hc(function(r){var f=r.condition;var I=r.content;return _.p(_.M,{cond:f,then:function(){return _.p("div",{class:"page-header-view-model-wiz__scroll-container"},I())},
else:function(){return I()}})},"hd");
_.urq=_.Hc(function(r){var f=r.data;var I=r.noPadding;var C=r.enableBanner;var Y=r.cinematicContainerTopbarOffset;var V=r.allowCinematicContainerOverflow;var S=r.displayAsSidebar;var h=r.displayAsPanel;var w=X6l(),n=function(){return!!f().image||!!f().animatedImage},d=function(){return!!f().background},z=function(){return(S==null?0:S())||(h==null?0:h())?1:w()},g=function(){return z()===1},X=function(){return g()||z()===2},P=function(){return z()===4},W=function(){var cu=f();
var OP=!!f().heroImage;var iU=z(),oR=NCw(f()),vu=S==null?void 0:S(),wB=!cu.metadata,qT;if(qT=OP?_.F(cu.heroImage,av4):_.F(cu.animatedImage||cu.image,av4)){cu=qT.style;var gB=qT.layoutMode;qT=$Zl(NoR(qT));if(OP)OP=Mw$(iU,cu,gB,qT,vu);else b:if(wB)OP=iU===1?{size:48}:{size:72};else switch(iU){case 1:OP={size:72};break b;case 2:OP={size:120};break b;default:OP=oR<4?{size:120}:{size:160}}}else OP={size:0};return OP};
r={};r=_.qd((r["page-header-view-model-wiz"]=!0,r["page-header-view-model-wiz--no-padding"]=function(){return!(I==null||!I())},r["page-header-view-model-wiz--small-top-padding"]=function(){return g()&&!f().actions||z()===2&&!(n()||f().heroImage)},r["page-header-view-model-wiz--small-bottom-padding"]=function(){return X()&&!f().actions},r["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(V==null?0:V())},r["page-header-view-model-wiz--display-as-sidebar"]=S,r["page-header-view-model-wiz--display-as-panel"]=
h,r));
var m={},v=_.qd((m["page-header-view-model-wiz__page-header-headline"]=!0,m["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){return W().allowFullWidth},m)),O=function(){return g()&&(!!f().heroImage||n())&&NCw(f())>0},k=function(){return O()&&(h==null?void 0:h())};
m={};var Z=_.qd((m["page-header-view-model-wiz__page-header-title"]=!0,m["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!O()},m["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return O()&&!k()},m["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=k,m["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=d,m));
m={};var Cw=_.qd((m["page-header-view-model-wiz__page-header-headline-image"]=!0,m["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!f().heroImage&&X()},m));
m={};var rR=_.qd((m["page-header-view-model-wiz__page-header-banner-container"]=C,m["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var cu;return(C==null?void 0:C())&&((cu=_.F(f().banner,_.Nj8))==null?void 0:cu.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},m));
m={};var EP=_.qd((m["page-header-view-model-wiz__page-header-content-metadata"]=!0,m["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=d,m));m={};var Pu=_.qd((m["page-header-view-model-wiz__page-header-flexible-actions"]=!0,m["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!f().metadata||X()},m["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!X()},m));
m={};var Wu=_.qd((m["page-header-view-model-wiz__page-header-attribution"]=!0,m["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=d,m));return _.p("yt-page-header-view-model",{class:r},_.p(_.M,{cond:d,then:function(){return _.p("div",{class:"page-header-view-model-wiz__page-header-background"},_.p(_.X1,{data:function(){return f().background}},{cinematicContainerViewModel:function(cu){return _.p(_.UYX,{data:cu.data,
topbarOffset:Y})}}))}}),_.p(qY3,{condition:function(){return!(S==null||!S())},
content:function(){return _.p("div",{class:"page-header-view-model-wiz__page-header-content"},_.p(_.M,{cond:function(){return(C==null?void 0:C())&&f().banner},
then:function(){return _.p("div",{class:rR},_.p(_.X1,{data:function(){return f().banner}},{imageBannerViewModel:_.B$V}))}}),_.p("div",{class:v},_.p(_.M,{cond:n,
then:function(){return _.p(_.X1,{data:function(){var cu;if(!(cu=f().animatedImage)){cu=f();if(n()){var OP=cu=Object.assign({},cu),iU=z(),oR=NCw(f()),vu=OP.image,wB=_.F(vu,XP_),qT=wB==null?void 0:wB.avatar,gB=_.F(qT,_.s0);if(vu&&qT&&gB){switch(iU){case 1:gB.avatarImageSize="AVATAR_SIZE_XL";break;case 2:gB.avatarImageSize="AVATAR_SIZE_XXL";break;default:oR<4?gB.avatarImageSize="AVATAR_SIZE_XXL":gB.avatarImageSize="AVATAR_SIZE_XXXL"}_.N("web_enable_sink_page_header_view_model")&&(_.nv(qT,_.s0,Object.assign({},
gB)),wB.avatar=Object.assign({},qT),_.nv(vu,XP_,Object.assign({},wB)),OP.image=Object.assign({},vu))}}cu=cu.image}return cu}},{contentPreviewImageViewModel:function(cu){return _.p(_.Oq,{data:cu.data,
className:Cw,imageSizeConfig:W})},
decoratedAvatarViewModel:function(cu){return _.p(_.dN,{data:cu.data,className:Cw})}})}}),_.p(_.M,{cond:function(){return!!f().heroImage&&!(X()&&!W().allowFullWidth)},
then:function(){return _.p(_.X1,{data:function(){return f().heroImage}},{contentPreviewImageViewModel:function(cu){return _.p(_.Oq,{data:cu.data,
className:Cw,imageSizeConfig:W})}})}}),_.p("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.p(_.M,{cond:function(){return!!f().heroImage&&X()&&!W().allowFullWidth},
then:function(){return _.p("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.p(_.X1,{data:function(){return f().heroImage}},{contentPreviewImageViewModel:function(cu){return _.p(_.Oq,{data:cu.data,
className:Cw,imageSizeConfig:W})}}))}}),_.p(_.X1,{data:function(){return f().title}},{dynamicTextViewModel:function(cu){return _.p(keV,{data:cu.data,
className:Z})}}),_.p(_.X1,{data:function(){return f().metadata}},{contentMetadataViewModel:function(cu){return _.p(_.Z4V,{data:cu.data,
layout:function(){return g()?1:0},
className:EP,isOverlay:d,useMediumText:P})}}),_.p(_.M,{cond:function(){return f().description&&!g()},
then:function(){return _.p(_.X1,{data:function(){return f().description}},{descriptionPreviewViewModel:function(cu){return _.p(OuB,{data:cu.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:d,maxLinesOverride:function(){return g()?void 0:1},
useMediumText:P})}})}}),_.p(_.M,{cond:function(){return f().attribution&&!X()},
then:function(){return _.p(_.X1,{data:function(){return f().attribution}},{attributionViewModel:function(cu){return _.p(ot,{data:cu.data,
className:Wu,useMediumText:P})}})}}),_.p(_.M,{cond:function(){return f().actions&&!X()},
then:function(){return _.p(_.X1,{data:function(){return f().actions}},{flexibleActionsViewModel:function(cu){return _.p(a9,{data:cu.data,
layout:function(){return $Ew(z())},
className:Pu})}})}}))),_.p("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.p(_.M,{cond:function(){return f().description&&g()},
then:function(){return _.p(_.X1,{data:function(){return f().description}},{descriptionPreviewViewModel:function(cu){return _.p(OuB,{data:cu.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:d,maxLinesOverride:function(){return g()?void 0:1},
useMediumText:P})}})}}),_.p(_.M,{cond:function(){return f().attribution&&X()},
then:function(){return _.p(_.X1,{data:function(){return f().attribution}},{attributionViewModel:function(cu){return _.p(ot,{data:cu.data,
className:Wu,useMediumText:P})}})}}),_.p(_.M,{cond:function(){return f().actions&&X()},
then:function(){return _.p(_.X1,{data:function(){return f().actions}},{flexibleActionsViewModel:function(cu){return _.p(a9,{data:cu.data,
layout:function(){return $Ew(z())},
className:Pu})}})}})),_.p("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.p(_.X1,{data:function(){return f().bottomMetadataFlexibleContainer}},{flexibleContainer:function(cu){return _.p(GeC,{data:cu.data,
isOverlay:d})}})))}}))},"id");
_.urq.idomCompat=!0;_.Kv(_.Hc(function(r){var f=_.E(_.ld(!1,void 0,"vVRl3b")),I=f.next().value,C=f.next().value;return _.p("yt-official-card-view-model",{class:_.qd("ytOfficialCardViewModelHost",r.className),style:_.lB({"background-color":function(){var Y,V=YLE((Y=r.data())==null?void 0:Y.backgroundColor);return V?_.g_(V):void 0}})},_.p(_.X1,{data:function(){return r.data().header}},{pageHeaderViewModel:function(Y){return _.p(_.urq,{data:Y.data,
noPadding:!0})}}),_.p("div",{class:"ytOfficialCardViewModelContents"},_.p(_.X1,{data:function(){return r.data().contents}},{horizontalShelfViewModel:_.Xk})),_.p(_.M,{cond:I,
then:function(){return _.p("div",{class:"ytOfficialCardViewModelExpandedContent"},_.p(_.X1,{data:function(){return r.data().expandedContents}},{horizontalShelfViewModel:function(Y){return _.p(_.Xk,{data:Y.data,
sizing:"MINI"})}}),_.p("div",{class:"ytOfficialCardViewModelCollapseButton"},_.p(_.X1,{data:function(){return r.data().collapseButton}},{buttonViewModel:function(Y){return _.p(_.LF,{data:Y.data,
onClick:function(){C(!I())}})}})))},
else:function(){return _.p("div",{class:"ytOfficialCardViewModelExpandButton"},_.p(_.X1,{data:function(){return r.data().expandButton}},{buttonViewModel:function(Y){return _.p(_.LF,{data:Y.data,
onClick:function(){C(!I())}})}}))}}))},"jd"),"yt-official-card-view-model",{props:{data:_.jv,
className:_.jv}});var FEu=_.zk({buttonViewModel:_.LF});_.GL(P9K);_.Z5(P9K,"ytw-search-friction-view-model",{propNames:["data"]});_.NF=_.Hc(function(r){var f=_.yy(),I,C=(I=_.a().resolve(_.ZY(_.cI)))==null?void 0:I();_.az(function(){var Y=f.value;var V=new k4C,S=new Map(V.JSC$7200_sanitizerTable.globalAttributePolicies);S.set("style",{policyAction:4});V.JSC$7200_sanitizerTable=new MB(V.JSC$7200_sanitizerTable.allowedElements,V.JSC$7200_sanitizerTable.elementPolicies,V.JSC$7200_sanitizerTable.allowedGlobalAttributes,S,V.JSC$7200_sanitizerTable.globallyAllowedAttributePrefixes);var h=["data-time"];if(h===void 0)S=new Set(V.JSC$7200_sanitizerTable.globallyAllowedAttributePrefixes),
S.add("data-"),V.JSC$7200_sanitizerTable=new MB(V.JSC$7200_sanitizerTable.allowedElements,V.JSC$7200_sanitizerTable.elementPolicies,V.JSC$7200_sanitizerTable.allowedGlobalAttributes,V.JSC$7200_sanitizerTable.globalAttributePolicies,S);else{S=new Set(V.JSC$7200_sanitizerTable.allowedGlobalAttributes);h=_.E(h);for(var w=h.next();!w.done;w=h.next()){w=w.value;if(w.indexOf("data-")!==0)throw Error("qa`"+w);S.add(w)}V.JSC$7200_sanitizerTable=new MB(V.JSC$7200_sanitizerTable.allowedElements,V.JSC$7200_sanitizerTable.elementPolicies,
S,V.JSC$7200_sanitizerTable.globalAttributePolicies,V.JSC$7200_sanitizerTable.globallyAllowedAttributePrefixes)}S=new Set(V.JSC$7200_sanitizerTable.allowedGlobalAttributes);S.add("class");V.JSC$7200_sanitizerTable=new MB(V.JSC$7200_sanitizerTable.allowedElements,V.JSC$7200_sanitizerTable.elementPolicies,S,V.JSC$7200_sanitizerTable.globalAttributePolicies,V.JSC$7200_sanitizerTable.globallyAllowedAttributePrefixes);_.KK(Y,_.oCC(V.build(),TCR(r.text())));cDP(f.value)});
I={};return _.p("div",null,_.p("markdown-div",{class:_.qd("ytwMarkdownDivHost",(I.ytwMarkdownDivDark=C,I.ytwMarkdownDivHostSmall=function(){var Y;return((Y=r.isSmallText)==null?void 0:Y.call(r))||!1},I)),
el:f}))},"kd");
_.NF.idomCompat=!0;var DYB=_.Hc(function(r){var f=r.imageData;var I=_.JG(r.isInList,!1),C=function(){return I()?{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 _.p("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.p(_.M,{cond:function(){return f().image},
then:function(Y){return _.p(_.J3,{data:Y,alt:function(){return C().alt},
contentMode:function(){return C().contentMode},
targetWidth:function(){return C().targetWidth},
targetHeight:function(){return C().targetHeight},
className:function(){return C().className}})}}),_.p("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.p("div",{class:_.qd("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.p(_.wW,{text:function(){return f().title}})),_.p(_.pz,{each:function(){var Y;
return(Y=f().description)!=null?Y:[]}},function(Y){return _.p("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.p($y,{content:Y}))})))},"ld"),rlC=_.Hc(function(r){var f=r.list;
var I=function(){var C;return(C=f().items)!=null?C:[]};
return _.p("div",{class:"ytwGenAiRichTextViewModelListContent"},_.p(_.M,{cond:function(){return f().title},
then:function(C){return _.p("div",{class:_.qd("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.p(_.wW,{text:C}))}}),_.p(_.M,{cond:function(){return f().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.p("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.p(_.pz,{each:I},function(C){return _.p("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.p($y,{content:C,isInList:!0}))}))}}),_.p(_.M,{cond:function(){return f().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.p("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.p(_.pz,{each:I},function(C){return _.p("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.p($y,{content:C,isInList:!0}))}))}}),_.p(_.M,{cond:function(){return f().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.p("div",{class:"ytwGenAiRichTextViewModelImageList"},_.p(_.pz,{each:I},function(C){return _.p("div",{class:"ytwGenAiRichTextViewModelListItem"},_.p($y,{content:C,isInList:!0}))}))}}))},"md"),fQX=_.Hc(function(r){var f=r.table;
return _.p("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.p("thead",null,_.p("tr",null,_.p(_.pz,{each:function(){var I,C;return(C=(I=f().header)==null?void 0:I.cells)!=null?C:[]}},function(I){return _.p("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.p(_.pz,{each:function(){return I.contents}},function(C){return _.p($y,{content:C})}))}))),_.p("tbody",null,_.p(_.pz,{each:function(){var I;
return(I=f().rows)!=null?I:[]}},function(I){return _.p("tr",null,_.p(_.pz,{each:function(){return I.cells}},function(C){return _.p("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.p(_.pz,{each:function(){return C.contents}},function(Y){return _.p($y,{content:Y})}))}))})))},"nd"),$y=_.Hc(function(r){var f=r.content;
var I=_.JG(r.isInList,!1),C=function(){var Y,V;return(V=(Y=f().contentBlock)==null?void 0:Y.contents)!=null?V:[]};
return _.p("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.p(_.M,{cond:function(){return f().text},
then:function(Y){return _.p(_.wW,{className:"ytwGenAiRichTextViewModelText",text:Y})}}),_.p(_.M,{cond:function(){return f().image},
then:function(Y){return _.p(DYB,{imageData:Y,isInList:I})}}),_.p(_.M,{cond:function(){return f().list},
then:function(Y){return _.p(rlC,{list:Y})}}),_.p(_.M,{cond:function(){return f().contentBlock},
then:function(){return _.p("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.p(_.pz,{each:C},function(Y){return _.p($y,{content:Y,isInList:!1})}))}}),_.p(_.M,{cond:function(){return f().table},
then:function(Y){return _.p(fQX,{table:Y})}}))},"od"),IQU=_.Hc(function(r){var f={};
f=_.D5("ytwGenAiRichTextViewModelHost",(f.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.qC("search_overview_link_style")),f));return _.p("gen-ai-rich-text-view-model",{class:f},_.p($y,{content:function(){return r.data().content}}))},"pd");_.GL(WEc);_.GL(JH);_.CjC=_.Hc(function(r){var f=r.data;var I=function(){var W;return((W=f().loadingUi)!=null?W:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},C=function(){return f().isLoading&&(I()==="UNSPECIFIED"||I()==="GHOST_CARD")},Y=function(){return!f().isLoading},V=function(){return!!f().content&&!f().contents},S=function(){return!!f().contents},h=function(){return!!f().nextQueryButtons},w=function(){return f().isLoading&&I()==="INVISIBLE"},n=function(){var W,m;
return(m=(W=f().headerIcon)==null?void 0:W.iconType)!=null?m:""},d=function(){var W;
return(W=f().content)!=null?W:""},z=function(){return!!f().sourcesSection},g,X=!((g=_.a().resolve(_.ZY(_.cI)))==null||!g()),P=_.hR(function(){var W=[],m=f().contents;
if(m)for(var v=0;v<m.length;v++){var O=_.F(m&&m[v],ebB);O&&W.push(O)}return W},void 0,"ycU97e");
_.$E(function(){f().isLoading||_.Xc("so_re",void 0,"search_overview_answer")});
return _.p("ytd-overview-answer-view-model",{class:function(){var W={};W=(W.ytdOverviewAnswerViewModelHost=!0,W.ytdOverviewAnswerViewModelDarkBackground=X&&!w(),W.ytdOverviewAnswerViewModelLightBackground=!X&&!w(),W);return _.D5(W)}},_.p(_.M,{cond:function(){return!w()},
then:function(){return _.p(_.B9,null,_.p("h2",null,_.p("div",{class:"ytdOverviewAnswerViewModelHeader"},_.p(_.M,{cond:n,then:function(W){return _.p("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.p(_.V2,{icon:W}))}}),_.p("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.p("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return f().headerText}),_.p("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.p(_.wW,{text:function(){return f().headerSubtext}}))))),_.p(_.M,{cond:C,
then:function(){return WEc()}}),_.p(_.M,{cond:Y,
then:function(){return _.p(_.B9,null,_.p(_.M,{cond:V,then:function(){return _.p("div",{class:"ytdOverviewAnswerViewModelText"},_.p(_.NF,{text:d,isSmallText:!0}))}}),_.p(_.M,{cond:S,
then:function(){return _.p("div",{class:"ytdOverviewAnswerViewModelRichText"},_.p(_.pz,{each:P},function(W){return _.p(IQU,{data:W})}))}}),_.p(_.M,{cond:h,
then:function(){return _.p("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.p(_.X1,{data:function(){return f().nextQueryButtons}},{buttonViewModel:function(W){return _.p(_.LF,{data:W.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.Xk}))}}),_.p("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.p("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.p(_.M,{cond:function(){return!!_.F(f().likeButtonViewModel,tv)&&!!_.F(f().dislikeButtonViewModel,Tk)},
then:function(){return _.p("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.p(_.NV,{data:function(){return _.F(f().likeButtonViewModel,tv)},
disableIconAnimation:!0}),_.p(_.Xm,{data:function(){return _.F(f().dislikeButtonViewModel,Tk)}}))}})),_.p(_.M,{cond:function(){var W;
return(W=f().sourcesSection)==null?void 0:W.headerText},
then:function(W){return _.p("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.p(_.wW,{text:W}))}})),_.p(_.M,{cond:z,
then:function(){return _.p("div",{class:"ytdOverviewAnswerViewModelSources"},_.p(_.X1,{data:function(){var W;return(W=f().sourcesSection)==null?void 0:W.sourcesShelf}},{buttonViewModel:_.LF,
horizontalShelfViewModel:function(W){return _.p(_.Xk,{data:W.data,includeMargin:!0,hasPeek:!0})}}))}}),_.p(_.M,{cond:function(){return f().disclaimerText},
then:function(){return _.p("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.p(_.wW,{text:function(){return f().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"qd");var YF3=_.Hc(function(r){var f=r.data;var I=r.active;var C=_.yy();_.az(function(){var Y,V,S,h=((Y=_.a().resolve(_.ZY(_.cI)))==null?0:Y())?(V=f())==null?void 0:V.darkThemeColorPalette:(S=f())==null?void 0:S.lightThemeColorPalette;h&&(h.additiveBackground&&C.value.style.setProperty("--timestamp-active-background-color",_.g_(h.additiveBackground)),h.textSecondary&&C.value.style.setProperty("--timestamp-active-color",_.MG(h.textSecondary)))},"KHcbwb");
r={};return _.p("transcript-segment-view-model",{class:_.qd("ytwTranscriptSegmentViewModelHost",(r.ytwTranscriptSegmentViewModelHostActive=I,r.ytwTranscriptSegmentViewModelHostModern=_.N("enable_timeline_view_modern_transcript")||_.N("enable_timeline_view_modern_transcript_fe"),r)),el:C},_.p(_.M,{cond:function(){var Y;return(Y=f())==null?void 0:Y.timestamp},
then:function(Y){var V={};return _.p("div",{class:_.qd("ytwTranscriptSegmentViewModelTimestamp",(V.ytwTranscriptSegmentViewModelTimestampActive=I,V))},Y)}}),_.p(_.wW,{text:function(){var Y,V,S;
return(S=(Y=f())==null?void 0:Y.attributedText)!=null?S:{content:(V=f())==null?void 0:V.simpleText}},
linkInheritColor:!0}))},"rd");var lQX=_.Hc(function(r){var f=r.data;return _.p("div",{class:"yt-video-attributes-section-view-model__header"},_.p("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return f().headerTitle}),_.p(_.M,{cond:function(){return f().headerSubtitle},
then:function(){return _.p("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return f().headerSubtitle})}}))},"sd"),V03=_.Hc(function(r){function f(P){return Math.max(Math.min(P,0),n()-h())}
var I=r.data;var C=_.yy(),Y=_.yy();r=_.E(_.ld(0,void 0,"ucDlDf"));var V=r.next().value,S=r.next().value,h=V;r=_.E(_.ld(0,void 0,"lHzSub"));V=r.next().value;var w=r.next().value,n=V;r=_.E(_.ld(0,void 0,"Q8fDIe"));var d=r.next().value,z=r.next().value;_.$E(function(){var P=function(){S(Y.value.scrollWidth);w(C.value.clientWidth)};
P();if(window.ResizeObserver){var W=new ResizeObserver(P);W.observe(C.value);_.$L(function(){W.disconnect()})}});
var g=function(){z(f(d()+n()))},X=function(){z(f(d()-n()))};
return _.p("yt-video-attributes-section-view-model",null,_.p("div",{class:"yt-video-attributes-section-view-model"},_.p(_.M,{cond:function(){return I().headerTitle},
then:function(){return _.p(lQX,{data:I})}}),_.p("div",{class:_.qd("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:C},_.p("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.lB({transform:function(){var P=d();_.Lz("HTML_DIR")==="rtl"&&(P*=-1);return"translateX("+P+"px)"}}),
el:Y},_.p(_.X1,{data:function(){return I().videoAttributeViewModels}},{videoAttributeViewModel:Vx4}))),_.p(_.X1,{data:function(){return I().footerButton}},{buttonViewModel:function(P){return _.p(_.LF,{data:P.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.p(_.M,{cond:function(){return d()<0&&I().previousButton},
then:function(){return _.p("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.p(_.X1,{data:function(){return I().previousButton}},{buttonViewModel:function(P){return _.p(_.LF,{data:P.data,
onClick:g})}}))}}),_.p(_.M,{cond:function(){return d()>n()-h()&&I().nextButton},
then:function(){return _.p("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.p(_.X1,{data:function(){return I().nextButton}},{buttonViewModel:function(P){return _.p(_.LF,{data:P.data,
onClick:X})}}))}})))},"td");
V03.idomCompat=!0;var EmV=_.Hc(function(r){var f=r.data;var I=r.active;var C={},Y={};return _.p("timeline-item-view-model",{class:_.qd("ytwTimelineItemViewModelHost",(C.ytwTimelineItemViewModelHostChapterChild=r.chapterChild,C.ytwTimelineItemViewModelModern=_.N("enable_timeline_view_modern_transcript")||_.N("enable_timeline_view_modern_transcript_fe"),C))},_.p("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.p("div",{class:_.qd("ytwTimelineItemViewModelTimestamp",(Y.ytwTimelineItemViewModelTimestampActive=
I,Y))},function(){return f().timestamp})),_.p("div",{class:"ytwTimelineItemViewModelContentItems"},_.p(_.X1,{data:function(){return f().contentItems}},{transcriptSegmentViewModel:function(V){return _.p(YF3,{data:V.data,
active:I})},
videoAttributesSectionViewModel:V03})))},"ud");var SFU=_.Hc(function(r){var f=r.data;r={};return _.p("timeline-chapter-view-model",{class:_.qd("ytwTimelineChapterViewModelHost")},_.p("div",{class:_.qd("ytwTimelineChapterViewModelTitle",(r.ytwTimelineChapterViewModelModern=_.N("enable_timeline_view_modern_transcript")||_.N("enable_timeline_view_modern_transcript_fe"),r))},function(){return f().title}),_.p(_.X1,{data:function(){return f().contents}},{timelineItemViewModel:function(I){return _.p(EmV,{data:I.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(I){return _.p(V03,{data:I.data})}}))},"vd");var xg4=_.Hc(function(r){var f=r.data;var I=_.yy(),C=_.VS(_.Ogq,function(){var V;return(V=f().markersEngagementPanelSyncEntityKey)!=null?V:""}),Y=function(){var V;
return((V=C())==null?void 0:V.activeItemIndex)===f().index};
r=_.IC(function(V){var S,h,w,n,d;return _.x(function(z){if(z.nextAddress==1)return V.stopPropagation(),_.v8u(_.Ho(V),I.value,["A".toString(),"BUTTON".toString()])?z.return():(S=_.aB(f().onTap))?_.b(z,_.uB(),2):z.return();h=z.yieldResult;n=(w=_.F(S,_.vj))==null?void 0:w.startTimeSeconds;n===void 0||(d=h)!=null&&d.seekTo(n,!0);_.wO(z)})});
return _.p("macro-markers-panel-item-view-model",{class:_.qd("ytwMacroMarkersPanelItemViewModelHost",{"is-active":Y}),el:I,"on:click":r,tabindex:0},_.p(_.X1,{data:function(){var V;return(V=f())==null?void 0:V.item}},{timelineChapterViewModel:function(V){return _.p(SFU,{data:V.data,
active:Y})},
timelineItemViewModel:function(V){return _.p(EmV,{data:V.data,active:Y})},
videoAttributeViewModel:Vx4}))},"wd");
xg4.idomCompat=!0;_.Kv(xg4,"macro-markers-panel-item-view-model",{props:{data:_.jv}});_.Kv(V03,"yt-video-attributes-section-view-model",{props:{data:_.jv}});var heD=_.Hc(function(r){var f=function(){var I,C,Y;return(Y=(I=r.data().leadingLogoAccessibility)==null?void 0:(C=I.accessibilityData)==null?void 0:C.label)!=null?Y:""};
return _.p("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.p(_.M,{cond:function(){return r.data().leadingLogo},
then:function(I){return _.p(_.J3,{className:"ytwFantasySectionHeaderViewModelLogo",data:I,alt:f})}}),_.p("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.p(_.wW,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return r.data().title}}),_.p(_.wW,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return r.data().subtitle}})),_.p(_.X1,{data:function(){return r.data().trailingButton}},{buttonViewModel:function(I){return _.p(_.LF,{data:I.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"xd");var wUg=_.Hc(function(r){var f={};f=_.qd("ytwFantasyTeamViewModelHost",(f.ytwFantasyTeamViewModelCompact=function(){var Y;return!((Y=r.compact)==null||!Y.call(r))},f.ytwFantasyTeamViewModelUser=function(){return r.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},f.ytwFantasyTeamViewModelOpponent=function(){return r.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},f));
var I=function(){var Y,V,S;return(S=(Y=r.data().teamLogoAccessibility)==null?void 0:(V=Y.accessibilityData)==null?void 0:V.label)!=null?S:""},C=_.VS(QXK,function(){return r.data().teamEntityKey});
return _.p("ytw-fantasy-team-view-model",{class:f},_.p(_.M,{cond:function(){return r.data().teamLogo},
then:function(Y){return _.p(_.J3,{className:"ytwFantasyTeamViewModelLogo",data:Y,alt:I})}}),_.p("div",{class:"ytwFantasyTeamViewModelMetadata"},_.p("div",{class:"ytwFantasyTeamViewModelHeader"},_.p(_.wW,{className:"ytwFantasyTeamViewModelScore",
text:function(){var Y;return(Y=C())==null?void 0:Y.score}}),_.p(_.V2,{icon:function(){var Y;
return(Y=C())==null?void 0:Y.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.p(_.wW,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var Y;return(Y=C())==null?void 0:Y.projectedScore}})),_.p(_.wW,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return r.data().primaryText}}),_.p(_.wW,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return r.data().secondaryText}}),_.p(_.wW,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return r.data().tertiaryText}})),_.p(_.wW,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var Y;return(Y=C())==null?void 0:Y.score}}))},"yd");_.Kv(_.Hc(function(r){return _.p("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.p("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.p(_.X1,{data:function(){return r.data().summaryHeader}},{fantasySectionHeaderViewModel:heD})),_.p(_.X1,{data:function(){return r.data().userTeam}},{fantasyTeamViewModel:wUg}),_.p(_.X1,{data:function(){return r.data().opponentTeam}},{fantasyTeamViewModel:wUg}))},"zd"),"fantasy-league-summary-view-model",{props:{data:_.jv}});var bRs=_.Hc(function(r){var f=_.jS(r,{shape:{},useCustomTabRenderable:!1}),I=f.shape;f=f.useCustomTabRenderable;var C=r.customTabRenderable,Y=function(){return I().disabled},V=function(){return I().selected},S=function(){return I().title},h=function(){return I().icon},w=_.yy();
r=_.IC(function(z){var g;if(!Y()&&((g=I().aTagConfig)==null?0:g.onclick))I().aTagConfig.onclick(z);return!1});
var n=_.IC(function(z){if(z.key==="Enter"||z.key==="ArrowUp"||z.key==="ArrowDown")z.preventDefault(),w.value.click();return!1}),d={};
return _.p("yt-tab-shape",{class:_.qd("yt-tab-shape-wiz",function(){return I().className},(d["yt-tab-shape-wiz__tab--last-tab"]=function(){return I().isLastTab},d["yt-tab-shape-wiz--host-disabled"]=Y,d["yt-tab-shape-wiz--host-clickable"]=!C,d)),
role:C?void 0:"tab","aria-selected":V!=null?V:!1,"aria-disabled":Y,tabindex:C?void 0:0,"on:click":r,"on:keydown":n,el:w,"tab-identifier":function(){return I().identifier},
"tab-title":S},_.p(_.M,{cond:f,then:function(){return C()},
else:function(){var z={},g={};return _.p(_.B9,null,_.p("div",{class:_.qd("yt-tab-shape-wiz__tab",(z["yt-tab-shape-wiz__tab--tab-selected"]=V,z))},_.p(_.M,{cond:h,then:function(X){return _.p(_.V2,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return X().iconType}})}}),S),_.p("div",{class:_.qd("yt-tab-shape-wiz__tab-bar",(g["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=V,g))}))}}))},"Ad");
bRs.idomCompat={callbacks:{customTabRenderable:!0}};_.nmX=_.Hc(function(r){var f=r.shape;r=_.E(_.ld(48,void 0,"S7XsSd"));var I=r.next().value,C=r.next().value;r=_.E(_.ld(0,void 0,"CzMxb"));var Y=r.next().value,V=r.next().value,S=function(){return f().tabs},h=_.yy(),w=function(){var n,d;
return(d=(n=S())==null?void 0:n.findIndex(function(z){return z.selected}))!=null?d:-1};
_.$E(function(){var n=h.value.querySelectorAll("yt-tab-shape"),d=w()>-1?n[w()]:void 0;requestAnimationFrame(function(){C((d==null?void 0:d.getBoundingClientRect().width)||0)})});
_.az(function(){var n=w();requestAnimationFrame(function(){var d=h.value.querySelectorAll("yt-tab-shape"),z;C(((z=n>-1?d[n]:void 0)==null?void 0:z.getBoundingClientRect().width)||0);for(var g=z=0;g<n;g++)z+=d[g].offsetWidth+24;_.Lz("HTML_DIR")==="rtl"&&(z=-z);V(z)})});
r={};return _.p("yt-tab-group-shape",{class:_.qd("yt-tab-group-shape-wiz",(r["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return f().isOverflowHidden},r)),
el:h},_.p(_.M,{cond:S,then:function(n){return _.p(_.B9,null,_.p("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.p(_.pz,{each:n},function(d,z){return _.p(bRs,{shape:function(){return Object.assign({},d,{isLastTab:z()===n().length-1})},
customTabRenderable:d.customTabRenderable,useCustomTabRenderable:!!d.customTabRenderable})})),_.p(pUq,{width:I,
sliderOffset:Y}))}}))},"Bd");
_.nmX.idomCompat=!0;var pUq=_.Hc(function(r){var f=_.JG(r.sliderOffset,0),I=r.width;return _.p("div",{class:"yt-tab-group-shape-wiz__slider",style:_.lB({width:function(){return I()+"px"},
transform:function(){return"translateX("+f()+"px)"}})})},"Cd");var dgs=_.Hc(function(r){var f=function(){var V,S,h;return(h=(V=r.data().playerLogoAccessibility)==null?void 0:(S=V.accessibilityData)==null?void 0:S.label)!=null?h:""},I=_.VS(A4U,function(){return r.data().playerEntityKey}),C={};
C=_.qd("ytwFantasyPlayerViewModelHost",(C.ytwFantasyPlayerViewModelPlaying=function(){var V;return!((V=I())==null||!V.isPlayerPlaying)},C.ytwFantasyPlayerViewModelOnField=function(){var V;
return((V=I())==null?void 0:V.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},C.ytwFantasyPlayerViewModelRedZone=function(){var V;
return((V=I())==null?void 0:V.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},C));
var Y=function(){var V,S,h,w=((V=_.a().resolve(_.ZY(_.cI)))==null?0:V())?(S=r.data().playerLogoBackgroundColor)==null?void 0:S.darkTheme:(h=r.data().playerLogoBackgroundColor)==null?void 0:h.lightTheme;return w===void 0?"":_.g_(w)};
return _.p("ytw-fantasy-player-view-model",{class:C},_.p(_.M,{cond:function(){return r.data().playerLogo},
then:function(V){return _.p("div",{class:"ytwFantasyPlayerViewModelLogo"},_.p("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.p(_.J3,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.lB({"background-color":Y}),data:V,alt:f})),_.p("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.p(_.V2,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.p("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.p("div",{class:"ytwFantasyPlayerViewModelHeader"},_.p(_.wW,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var V;return(V=r.data())==null?void 0:V.playerNameText}}),_.p(_.wW,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var V;return(V=r.data())==null?void 0:V.playerDescriptionText}})),_.p("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.p(_.wW,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var V;return(V=I())==null?void 0:V.gamePeriodText}}),_.p(_.wW,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var V;return(V=r.data())==null?void 0:V.opponentTeamText}}),_.p(_.wW,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var V;return(V=I())==null?void 0:V.gameStatusText}}),_.p(_.wW,{className:_.qd("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var V;return(V=I())==null?void 0:V.playerStatusText}})),_.p("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.p(_.wW,{text:function(){var V;
return(V=I())==null?void 0:V.playerStatsText}}))),_.p(_.wW,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var V;return(V=I())==null?void 0:V.fantasyScore}}))},"Dd");var zeV=_.Hc(function(r){return _.p("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.p(_.M,{cond:function(){return r.data().players},
then:function(f){return _.p(_.X1,{data:f},{fantasyPlayerViewModel:dgs})}}))},"Ed");var M0U=_.Hc(function(r){var f=_.E(_.YZ(function(){var Y;return(Y=r.data().selectedTabIdentifierKey)!=null?Y:""})),I=f.next().value,C=f.next().value;
_.Xl(function(){var Y;(Y=r.setSelectedTabSignal)==null||Y.call(r,I)});
return _.p("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.p("div",{class:"ytTabbedViewModelTabGroup"},_.p(_.nmX,{shape:function(){var Y=r.data(),V=[],S={tabs:V};if(!Y.tabs)return S;Y=_.E(Y.tabs);for(var h=Y.next(),w={};!h.done;w={tabViewModel:void 0},h=Y.next())if(w.tabViewModel=_.F(h.value,R6V),w.tabViewModel){var n=h=void 0;V.push({aTagConfig:{onclick:function(d){return function(){var z;C((z=d.tabViewModel.tabIdentifier)!=null?z:"")}}(w)},
identifier:w.tabViewModel.tabIdentifier,selected:I()===w.tabViewModel.tabIdentifier,title:(n=(h=w.tabViewModel.title)==null?void 0:h.content)!=null?n:""})}return S}})),_.p(_.X1,{data:function(){var Y,V=_.E((Y=r.data().tabs)!=null?Y:[]);
for(Y=V.next();!Y.done;Y=V.next())if((Y=_.F(Y.value,R6V))&&Y.tabIdentifier===I())return Y.content}},{fantasyRosterViewModel:zeV}))},"Fd");_.Kv(_.Hc(function(r){var f=_.E(LER()),I=f.next().value,C=f.next().value;return _.p("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.p(_.wW,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return r.data().title}}),_.p(_.M,{cond:function(){return r.data().tabbedViewModel},
then:function(Y){return _.p(_.X1,{data:Y},{tabbedViewModel:function(V){return _.p(M0U,{data:V.data,setSelectedTabSignal:C})}})}}),_.p(_.M,{cond:function(){var Y,V=(Y=_.F(r.data().tabbedViewModel,vPq))==null?void 0:Y.tabs;
Y=_.F(V==null?void 0:V[0],R6V);V=_.F(V==null?void 0:V[1],R6V);var S=Y==null?void 0:Y.tabIdentifier;if(I()===S){var h,w;if(!((h=_.F(Y==null?void 0:Y.content,OdU))==null?0:(w=h.players)==null?0:w.length))return r.data().noUserTeamPlayersText}else{var n,d;if(!((n=_.F(V==null?void 0:V.content,OdU))==null?0:(d=n.players)==null?0:d.length))return r.data().noOpponentTeamPlayersText}},
then:function(Y){return _.p(_.wW,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:Y})}}))},"Gd"),"ytw-fantasy-matchup-view-model",{props:{data:_.jv}});_.Kv(_.Hc(function(r){return _.p("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.p(_.wW,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return r.data().title}}),_.p(_.M,{cond:function(){return r.data().matchupTeamPairs},
then:function(f){return _.p(_.pz,{each:f,keyBy:"INDEX"},function(I){return _.p("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.p(_.X1,{data:function(){return[I().firstTeam,I().secondTeam]}},{fantasyTeamViewModel:function(C){return _.p(wUg,{data:C.data,
compact:!0})}}))})}}))},"Hd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.jv}});_.Kv(_.Hc(function(r){var f=function(){var Y,V,S;return(S=(Y=r.data().userLogoAccessibility)==null?void 0:(V=Y.accessibilityData)==null?void 0:V.label)!=null?S:""},I=function(){var Y,V,S;
return(S=(Y=r.data().opponentLogoAccessibility)==null?void 0:(V=Y.accessibilityData)==null?void 0:V.label)!=null?S:""},C=_.VS(oRw,function(){return r.data().entityKey});
return _.p("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.p("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.p(_.M,{cond:function(){return r.data().userLogo},
then:function(Y){return _.p(_.J3,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Y,alt:f})}}),_.p("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.p(_.wW,{text:function(){return r.data().title}})),_.p(_.M,{cond:function(){return r.data().opponentLogo},
then:function(Y){return _.p(_.J3,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Y,alt:I})}})),_.p("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.p("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.p(_.wW,{text:function(){var Y;
return(Y=C())==null?void 0:Y.userWinNumberLabel}})),_.p("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.p("div",{class:_.qd("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.lB({flex:function(){var Y,V;return(V=(Y=C())==null?void 0:Y.userWinNumber)!=null?V:50}})}),_.p("div",{class:_.qd("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.lB({flex:function(){var Y,V;return(V=(Y=C())==null?void 0:Y.opponentWinNumber)!=null?V:50}})})),_.p("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.p(_.wW,{text:function(){var Y;
return(Y=C())==null?void 0:Y.opponentWinNumberLabel}}))))},"Id"),"fantasy-win-probability-view-model",{props:{data:_.jv}});_.gW("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Fk=function(){var r=_.y.apply(this,arguments)||this;r.darkerPanels=_.N("web_watch_darker_panels");r.commentsHidePanelButton=!1;r.isWatchGrid=!1;r.continuationShowButton=!1;r.isSearch=!1;r.isConstrainedList=!1;r.isWatch=!1;r.eligibleToSwitchToGrid=!1;r.epRestyle=!1;r.isCarouselInFeed=!0;r.topSpacingZero=!1;r.continuationIsInitialLoad=!0;r.enableSqueezebackPanels=_.N("web_shorts_enable_squeezeback_panels");r.enableAnchoredPanel=_.N("desktop_shorts_v2_anchored_panel");r.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};r.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return r};
_.t(Fk,_.y);_.l=Fk.prototype;_.l.updateLockupContainerTypes=function(r){if(this.eligibleToSwitchToGrid){var f;(f=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||f.forEach(function(I){I.containerType=r})}};
_.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]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",
errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",
expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},
learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},
reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.N("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.N("kevlar_low_priority_continuation")}}};
_.l.created=function(){this.JSC$14412_cachedViewportHeight=_.Lz("initialInnerHeight")||window.innerHeight};
_.l.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var r=_.e(this.hostElement).querySelector("ytd-comments-header-renderer");r&&(r.hidePanelButton=this.commentsHidePanelButton)}};
_.l.onRetrieveLocation=function(r,f){this.containsComments()&&(this.firstCommentsLoaded=f.hasComments=!0)};
_.l.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.l.onLoadReloadContinuation=function(r,f){var I=this;r.stopPropagation();this.isReloading=!0;_.kA(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(C){var Y=_.a().resolve(_.bA);C=f(C);Y.postData(C).then(function(V){I.onReloadContinuationData(V)})}})};
_.l.onReloadContinuationData=function(r){if(r=this.get("response.continuationContents.itemSectionContinuation",r)||this.get("response.contents.itemSectionRenderer",r)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",r)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",r))this.set("data.contents",r.contents||r.results),r.header&&this.set("data.header",r.header),this.set("data.continuations",
r.continuations||[]);this.isReloading=!1};
_.l.computeContentsClass=function(r){return r?"reloading":""};
_.l.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.l.computeSectionIdentifier=function(r){return r==null?void 0:r.sectionIdentifier};
_.l.computeFitContainer=function(r){return(r==null?void 0:r.sectionIdentifier)==="youchat-item-section"};
_.l.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.N("kevlar_disable_comments_auto_load")};
_.l.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.l.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.l.computeHasDestinationShelfRenderer=function(r){var f,I;return!!(r==null?0:(f=r.contents)==null?0:(I=f[0])==null?0:I.destinationShelfRenderer)};
_.l.computeHasSectionGroupViewModel=function(r){var f,I;return!!(r==null?0:(f=r.contents)==null?0:(I=f[0])==null?0:I.sectionGroupViewModel)};
_.l.computeStaticCommentsHeader=function(r){return r&&this.containsComments()};
_.l.computeEpRestyle=function(r){return _.N("web_ep_restyling")&&r&&this.containsComments()};
_.l.computeIsContinuationCommentSection=function(r){return(r==null?void 0:r.targetId)==="shorts-engagement-panel-comments-section"||(r==null?void 0:r.targetId)==="comments-section"||(r==null?void 0:r.targetId)==="engagement-panel-comments-section"};
_.l.computeSuppressPaddingDisclaimer=function(){var r,f,I,C;return!!((r=this.data)==null?0:(f=r.contents)==null?0:(I=f[0])==null?0:(C=I.productListHeaderRenderer)==null?0:C.suppressPaddingDisclaimer)};
_.l.computeHeaderStyle=function(r){switch(r==null?void 0:r.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.l.dataChanged=function(){this.firstCommentsLoaded=!1};
_.l.observeDataContentsLength=function(){var r,f;((r=this.data)==null?0:(f=r.contents)==null?0:f.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.l.onYtDismissibleItemDismissedChange=function(r){this._setItemDismissed(r.type==="yt-dismissible-item-dismissed")};
_.l.triggerContinuations=function(){for(var r=_.e(this.hostElement).querySelector("#continuations").children,f=0;f<r.length;f++)r[f].trigger()};
_.l.triggerInitialContinuations=function(){for(var r=_.e(this.hostElement).querySelector("#continuations").children,f=0;f<r.length;f++)r[f].triggerIfNotPreviouslyTriggered()};
_.l.handleYtItemSectionContinuation=function(r,f){var I;f&&((I=this.data)==null?void 0:I.sectionIdentifier)!==f||(this.set("data.continuations",[r]),this.triggerContinuations())};
_.l.handleYtItemSectionReplace=function(r,f){var I;f&&((I=this.data)==null?void 0:I.sectionIdentifier)!==f||(this.set("data.contents",r),this.set("data.continuations",[]))};
_.l.computeUseHeightHack=function(r){return r&&!_.N("kevlar_disable_height_hack")};
_.l.computeTopSpacingZero=function(r){return r};
_.l.continuationShowButtonChanged=function(){var r=_.e(this.hostElement).querySelector("ytd-continuation-item-renderer");r&&(r.showButton=this.continuationShowButton)};
_.l.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LT("data-changed",this.data))};
_.OC.Object.defineProperties(Fk.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.N("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return!!((r=this.data)==null?0:(f=r.contents)==null?0:(I=f[0])==null?0:I.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var r,f,I,C,Y,V,S;return!!((r=this.data)==null?0:(f=r.contents)==null?0:(I=f[0])==null?0:(C=I.shelfRenderer)==null?0:(Y=C.content)==null?0:(V=Y.gridRenderer)==null?0:(S=V.targetId)==null?0:S.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return!!((r=this.data)==null?0:(f=r.contents)==null?0:(I=f[0])==null?0:I.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return!!((r=this.data)==null?0:(f=r.contents)==null?0:(I=f[0])==null?0:I.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.qC("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.N("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.N("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14412_cachedViewportHeight-130)/150)},
set:function(){}}});
Fk.prototype.dataChangedForBinding=Fk.prototype.dataChangedForBinding;Fk.prototype.continuationShowButtonChanged=Fk.prototype.continuationShowButtonChanged;Fk.prototype.onYtDismissibleItemDismissedChange=Fk.prototype.onYtDismissibleItemDismissedChange;Fk.prototype.observeDataContentsLength=Fk.prototype.observeDataContentsLength;Fk.prototype.dataChanged=Fk.prototype.dataChanged;Fk.prototype.onServiceRequestCompleted=Fk.prototype.onServiceRequestCompleted;Fk.prototype.onLoadReloadContinuation=Fk.prototype.onLoadReloadContinuation;
Fk.prototype.onRetrieveLocation=Fk.prototype.onRetrieveLocation;Fk.prototype.commentsHidePanelButtonChanged=Fk.prototype.commentsHidePanelButtonChanged;Fk.prototype.updateLockupContainerTypes=Fk.prototype.updateLockupContainerTypes;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Fk.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Fk.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Fk.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.AW.YtLazyListBehavior),_.B("design:type",Object)],Fk.prototype,"ytLazyListBehavior",void 0);_.A([_.J(_.Wg.YtNextContinuationBehavior),_.B("design:type",Object)],Fk.prototype,"ytNextContinuationBehavior",void 0);_.A([_.J(_.cg),_.B("design:type",Object)],Fk.prototype,"ytContinuationHandlerBehavior",void 0);
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Fk.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],Fk.prototype,"ytdReduxBehavior",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Fk.prototype,"darkerPanels",void 0);_.A([_.K(),_.B("design:type",Object)],Fk.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],Fk.prototype,"engagementPanel",void 0);
_.A([_.K(),_.B("design:type",Object)],Fk.prototype,"commentsHidePanelButton",void 0);_.A([_.K(),_.B("design:type",Object)],Fk.prototype,"isWatchGrid",void 0);_.A([_.K(),_.B("design:type",Object)],Fk.prototype,"continuationShowButton",void 0);_.A([_.K({computed:"computeIsContinuationCommentSection(data)"}),_.B("design:type",Boolean)],Fk.prototype,"continuationIsCommentsSection",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],Fk.prototype,"autoFill",void 0);
_.A([_.K(),_.B("design:type",Boolean)],Fk.prototype,"continuationDisablePrescanVisibility",void 0);_.A([_.K(),_.B("design:type",Boolean)],Fk.prototype,"isReloading",void 0);_.A([_.K(),_.B("design:type",Object)],Fk.prototype,"isSearch",void 0);_.A([_.K(),_.B("design:type",Object)],Fk.prototype,"isConstrainedList",void 0);_.A([_.K(),_.B("design:type",Object)],Fk.prototype,"isWatch",void 0);_.A([_.K(),_.B("design:type",Object)],Fk.prototype,"eligibleToSwitchToGrid",void 0);
_.A([_.K({selector:_.eO}),_.B("design:type",Object)],Fk.prototype,"isGridViewEnabled",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.B("design:type",Object)],Fk.prototype,"epRestyle",void 0);_.A([_.R("isWatch"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Fk.prototype,"hideShortsShelfHeader",null);
_.A([_.R("isSearch","isWatch"),_.B("design:type",String),_.B("design:paramtypes",[])],Fk.prototype,"thumbnailWidth",null);_.A([_.R("isSearch","isWatch"),_.B("design:type",String),_.B("design:paramtypes",[])],Fk.prototype,"sizing",null);_.A([_.R("isWatch","isGridViewEnabled","data"),_.K({reflectToAttribute:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],Fk.prototype,"lockupContainerType",null);
_.A([_.Bt("lockupContainerType","data"),_.B("design:type",Function),_.B("design:paramtypes",[Number]),_.B("design:returntype")],Fk.prototype,"updateLockupContainerTypes",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],Fk.prototype,"pageSubtype",void 0);_.A([_.K({computed:"computeContainerWidth()"}),_.B("design:type",Number)],Fk.prototype,"containerWidth",void 0);_.A([_.K(),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Fk.prototype,"isPlaylist",null);
_.A([_.K(),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Fk.prototype,"isClipList",null);_.A([_.K(),_.B("design:type",Object)],Fk.prototype,"isCarouselInFeed",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Fk.prototype,"isPlaylistVideoContainer",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Fk.prototype,"isSearchFrictionPage",null);
_.A([_.K({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.B("design:type",Boolean)],Fk.prototype,"useHeightHack",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.B("design:type",Object)],Fk.prototype,"topSpacingZero",void 0);_.A([_.K({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.B("design:type",Boolean)],Fk.prototype,"showButton",void 0);
_.A([_.K(),_.B("design:type",Boolean)],Fk.prototype,"firstCommentsLoaded",void 0);_.A([_.K(),_.B("design:type",Object)],Fk.prototype,"continuationIsInitialLoad",void 0);_.A([_.K(),_.B("design:type",Boolean)],Fk.prototype,"isSearchDova",void 0);_.A([_.K({reflectToAttribute:!0,readOnly:!0}),_.B("design:type",Boolean)],Fk.prototype,"itemDismissed",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.B("design:type",String)],Fk.prototype,"sectionIdentifier",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.B("design:type",String)],Fk.prototype,"fitContainer",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.B("design:type",Boolean)],Fk.prototype,"hasDestinationShelfRenderer",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.B("design:type",Boolean)],Fk.prototype,"staticCommentsHeader",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Fk.prototype,"enableSqueezebackPanels",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Fk.prototype,"enableAnchoredPanel",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.B("design:type",Boolean)],Fk.prototype,"hasSectionGroupViewModel",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.B("design:type",Boolean)],Fk.prototype,"suppressDisclaimerSeparator",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.B("design:type",String)],Fk.prototype,"headerStyle",void 0);_.A([_.R("isSearch"),_.B("design:type",Object),_.B("design:paramtypes",[])],Fk.prototype,"lockupExperiments",null);
_.A([_.R("isSearch"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Fk.prototype,"typographyBump",null);_.A([_.uA("#header"),_.B("design:type",HTMLElement)],Fk.prototype,"header",void 0);_.A([_.Bt("commentsHidePanelButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fk.prototype,"commentsHidePanelButtonChanged",null);
_.A([_.kO("yt-retrieve-location"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Fk.prototype,"onRetrieveLocation",null);_.A([_.kO("yt-load-reload-continuation"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Function]),_.B("design:returntype")],Fk.prototype,"onLoadReloadContinuation",null);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fk.prototype,"onServiceRequestCompleted",null);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fk.prototype,"dataChanged",null);_.A([_.YN("data.contents.length"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fk.prototype,"observeDataContentsLength",null);
_.A([_.kO("yt-dismissible-item-dismissed"),_.kO("yt-dismissible-item-undismissed"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Fk.prototype,"onYtDismissibleItemDismissedChange",null);_.A([_.Bt("continuationShowButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fk.prototype,"continuationShowButtonChanged",null);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fk.prototype,"dataChangedForBinding",null);Fk=_.A([_.U({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Fk);
_.Q(Fk,"ytd-item-section-renderer",function(){if(JOs!==void 0)return JOs;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return JOs=r},{mode:1});var gmC;var HCq=_.iX(_.VR("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var mEP={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var aQ3={},j4u=(aQ3[0]={title:_.AZ(_.VR("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.AZ(_.VR("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:ol("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},aQ3[1]={title:_.AZ(_.VR("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:ol("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},aQ3);_.gW("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Pm=function(){var r=_.y.apply(this,arguments)||this;r.allVideosCount=0;r.allPlaylistCount=0;r.shouldRenderDownloadsBanner=!1;r.hasOptedIntoSmartDownloads=!1;r.areAllSmartDownloadsDeleted=!1;r.smartDownloadsCompleted=!1;return r};
_.t(Pm,_.y);Pm.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Pm.prototype.attached=function(){this.downloadsToRenderChanged()};
Pm.prototype.detached=function(){this.set("renderableData",{})};
Pm.prototype.downloadsToRenderChanged=function(){var r=_.K2().getState().entities,f=_.z3(r),I=_.N("kevlar_playlist_dl_page_killswitch")?FRc(r):_.Mj(r),C=_.g$K(r),Y=_.wG(f);r=_.gG(r);this.set("renderableData",ROd(I,f,C,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,Y,r))};
Pm.prototype.downloadsToRenderChanged=Pm.prototype.downloadsToRenderChanged;_.A([_.J(_.PH),_.B("design:type",Object)],Pm.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Pm.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Pm.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Pm.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],Pm.prototype,"renderableData",void 0);_.A([_.K({selector:_.Rqq}),_.B("design:type",Object)],Pm.prototype,"allVideosCount",void 0);_.A([_.K({selector:fTw}),_.B("design:type",Object)],Pm.prototype,"allPlaylistCount",void 0);_.A([_.K({selector:_.o$K}),_.B("design:type",Object)],Pm.prototype,"shouldRenderDownloadsBanner",void 0);_.A([_.K({selector:_.Qxl}),_.B("design:type",Object)],Pm.prototype,"hasOptedIntoSmartDownloads",void 0);
_.A([_.K({selector:_.ALR}),_.B("design:type",Object)],Pm.prototype,"areAllSmartDownloadsDeleted",void 0);_.A([_.K({selector:Zlm}),_.B("design:type",Object)],Pm.prototype,"smartDownloadsCompleted",void 0);_.A([_.YN("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pm.prototype,"downloadsToRenderChanged",null);
Pm=_.A([_.U({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Pm);
_.Q(Pm,"ytd-offline-item-section-renderer",function(){if(gmC!==void 0)return gmC;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return gmC=r},
{mode:1});var XU3;var N03;var tC=function(){return _.y.apply(this,arguments)||this};
_.t(tC,_.y);
tC.prototype.onDataChanged=function(){if(this.JSC$14439_lastData){var r=this.getFilterClass(this.JSC$14439_lastData.status);r&&this.hostElement.classList.remove(r)}var f;(r=this.getFilterClass((f=this.data)==null?void 0:f.status))&&this.hostElement.classList.add(r);r==="selected"?_.e(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.e(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");r==="disabled"?_.e(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.e(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14439_lastData=this.data};
tC.prototype.getFilterClass=function(r){switch(r){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
tC.prototype.onDataChanged=tC.prototype.onDataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],tC.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],tC.prototype,"data",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tC.prototype,"onDataChanged",null);tC=_.A([_.U({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],tC);
_.Q(tC,"ytd-search-filter-renderer",function(){if(N03!==void 0)return N03;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return N03=r},{mode:_.QQ("kevlar_poly_si_batch_j075")?1:2});var TE=function(){return _.y.apply(this,arguments)||this};
_.t(TE,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],TE.prototype,"data",void 0);TE=_.A([_.U({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],TE);
_.Q(TE,"ytd-search-filter-group-renderer",function(){if(XU3!==void 0)return XU3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return XU3=r},{mode:_.QQ("kevlar_poly_si_batch_j075")?1:2});var $gD;var cm=function(){return _.y.apply(this,arguments)||this};
_.t(cm,_.y);cm.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.V8());this.isCollapsed=!this.isCollapsed};
cm.prototype.navigateToAboutTheseResultsPage=function(){var r=zC("https://www.youtube.com/howyoutubeworks/product-features/search/");r?_.eF(window,r,"_blank"):_.eH(Error("Qh"))};
cm.prototype.dataChanged=function(){this.isCollapsed=!0};
cm.prototype.computeShowBottomBorder=function(){var r,f,I;return!!((r=this.data)==null?0:(f=r.button)==null?0:f.toggleButtonRenderer)||!((I=this.data)==null||!I.aboutTheseResultsButton)};
cm.prototype.dataChanged=cm.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],cm.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],cm.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.B("design:type",Boolean)],cm.prototype,"showBottomBorder",void 0);_.A([_.K(),_.B("design:type",Boolean)],cm.prototype,"renderCollapsibleMenu",void 0);
_.A([_.K(),_.B("design:type",Boolean)],cm.prototype,"isCollapsed",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cm.prototype,"dataChanged",null);cm=_.A([_.U({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],cm);
_.Q(cm,"ytd-search-sub-menu-renderer",function(){if($gD!==void 0)return $gD;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return $gD=r},{mode:1});var Fag;var Pj3=new _.Go("SECTION_LIST_RENDERER_TOKEN");var t03;var Wm=function(){return _.y.apply(this,arguments)||this};
_.t(Wm,_.y);Wm.prototype.computeStyle=function(r){return r?r.toLowerCase().replace(/_/g,"-"):""};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Wm.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Wm.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],Wm.prototype,"headerStyle",void 0);Wm=_.A([_.U({is:"ytd-text-header-renderer",disableElementRegistration:!0})],Wm);
_.Q(Wm,"ytd-text-header-renderer",function(){if(t03!==void 0)return t03;var r=document.createElement("template");_.c(r,"\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");r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return t03=r},{mode:1});var T03;var Ls=function(){return _.y.apply(this,arguments)||this};
_.t(Ls,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Ls.prototype,"data",void 0);Ls=_.A([_.U({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],Ls);
_.Q(Ls,"ytd-minor-moment-header-renderer",function(){if(T03!==void 0)return T03;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return T03=r},{mode:1});var clq;var me=function(){return _.y.apply(this,arguments)||this};
_.t(me,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],me.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],me.prototype,"data",void 0);me=_.A([_.U({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],me);
_.Q(me,"ytd-minor-moment-setting-alert-renderer",function(){if(clq!==void 0)return clq;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return clq=r},{mode:1});var Was;var LaV;var et=function(){var r=_.y.apply(this,arguments)||this;r.booleanSettingById=!1;r.smartDownloadsEnabledVE=_.pQ(128287);r.smartDownloadsDisabledVE=_.pQ(128286);r.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return r};
_.t(et,_.y);_.l=et.prototype;_.l.attachSmartDownloadsSettingVes=function(){var r;this.activeVeForLogging||((r=this.data)==null?void 0:r.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Ia(_.IB(),this.smartDownloadsEnabledVE),_.Ia(_.IB(),this.smartDownloadsDisabledVE))};
_.l.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.kA(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(r){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(r=_.jl(r).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.N("kevlar_settings_switch_resolve_command_killswitch")?_.a().resolve(_.Gg).resolveCommand(r,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(r)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.l.handleUpdateSettingsSwitch=function(r){(r=_.F(r,xKU))&&this.data&&this.data.id===r.id&&this.set("data.enabled",!!r.enabled)};
_.l.onToggleSettingsSwitch=function(r,f){this.data&&this.data.id===r&&this.set("data.enabled",f!=null?f:!this.data.enabled)};
_.l.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.Qk.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.l.maybeLogSmartDownloadsSettingVisibility=function(){var r=_.t1(),f;r&&((f=this.data)==null?void 0:f.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.j_(r,[this.smartDownloadsEnabledVE]),_.HF(r,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.j_(r,[this.smartDownloadsDisabledVE]),_.HF(r,[this.smartDownloadsEnabledVE])))};
_.l.maybeLogSmartDownloadsSettingClick=function(){var r;((r=this.data)==null?void 0:r.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.YP(_.IB(),this.activeVeForLogging)};
_.l.updateDataEnabledFromBinding=function(r){this.set("data.enabled",r.detail.value)};
_.OC.Object.defineProperties(et.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var r=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!r&&(r=this.ytRendererBehavior.getSimpleString(this.data.title));return r}}});
et.prototype.dataChanged=et.prototype.dataChanged;_.A([_.J(_.PH),_.B("design:type",Object)],et.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],et.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],et.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],et.prototype,"ytComponentBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],et.prototype,"data",void 0);_.A([_.K({selector:function(r,f){if(Object.keys(r==null?void 0:r.entities).length)switch(f){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return PRB(r.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.B("design:type",Object)],et.prototype,"booleanSettingById",void 0);_.A([_.K(),_.B("design:type",_.F6)],et.prototype,"activeVeForLogging",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],et.prototype,"toggleAriaLabel",null);_.A([_.YN("data"),_.YN("booleanSettingById"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],et.prototype,"dataChanged",null);
et=_.A([_.U({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],et);
_.Q(et,"ytd-settings-switch-renderer",function(){if(LaV!==void 0)return LaV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return LaV=r},{mode:1});var JC=function(){return _.y.apply(this,arguments)||this};
_.t(JC,_.y);JC.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}}}}};
_.OC.Object.defineProperties(JC.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var r=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(r+=" remove-left-margin");this.data.extraBottomSpace&&(r+=" extra-bottom-space");return r}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],JC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],JC.prototype,"data",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],JC.prototype,"contentsClassName",null);JC=_.A([_.U({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],JC);
_.Q(JC,"ytd-minor-moment-setting-section-renderer",function(){if(Was!==void 0)return Was;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Was=r},{mode:1});var mgX;var jt=function(){return _.y.apply(this,arguments)||this};
_.t(jt,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],jt.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],jt.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],jt.prototype,"data",void 0);jt=_.A([_.U({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],jt);
_.Q(jt,"ytd-empty-product-details-renderer",function(){if(mgX!==void 0)return mgX;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return mgX=r},{mode:1});var eeD;var JlD;var Hm=function(){var r=_.y.apply(this,arguments)||this;r.expanded=!0;return r};
_.t(Hm,_.y);Hm.prototype.getBadgeRowClass=function(r,f,I){for(var C=_.E(this.hostElement.querySelectorAll("yt-img-shadow")),Y=C.next();!Y.done;Y=C.next())Y.value.onShow();r=r.selected;return I?r!==-1?r===f?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(r!==void 0?r:0)===f?"badge-line":"badge-hidden"};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Hm.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Hm.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],Hm.prototype,"expanded",void 0);Hm=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],Hm);
_.Q(Hm,"ytd-sponsorships-loyalty-badges-renderer",function(){if(JlD!==void 0)return JlD;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return JlD=r},{mode:1});var jS4;var iZ=function(){var r=_.y.apply(this,arguments)||this;r.expanded=!0;return r};
_.t(iZ,_.y);iZ.prototype.getContainerClasses=function(r,f){r=r?"expanded":"collapsed";f&&(r+=" item");return r};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],iZ.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],iZ.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],iZ.prototype,"expanded",void 0);iZ=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],iZ);
_.Q(iZ,"ytd-sponsorships-perk-renderer",function(){if(jS4!==void 0)return jS4;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return jS4=r},{mode:1});var HRB;var Rd=function(){var r=_.y.apply(this,arguments)||this;r.expanded=!0;return r};
_.t(Rd,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Rd.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Rd.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],Rd.prototype,"expanded",void 0);Rd=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Rd);
_.Q(Rd,"ytd-sponsorships-perks-renderer",function(){if(HRB!==void 0)return HRB;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return HRB=r},{mode:1});var vm=function(){var r=_.y.apply(this,arguments)||this;r.isCollapsed=!1;return r};
_.t(vm,_.y);vm.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
vm.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
vm.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var r;this.expandCollapseButton=_.F((r=this.data)==null?void 0:r.expandButton,_.Ll)}else{var f;this.expandCollapseButton=_.F((f=this.data)==null?void 0:f.collapseButton,_.Ll)}};
vm.prototype.updateExpandCollapseButton=vm.prototype.updateExpandCollapseButton;vm.prototype.onDataChanged=vm.prototype.onDataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],vm.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],vm.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],vm.prototype,"isCollapsed",void 0);_.A([_.K(),_.B("design:type",Object)],vm.prototype,"expandCollapseButton",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vm.prototype,"onDataChanged",null);_.A([_.YN("data","isCollapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vm.prototype,"updateExpandCollapseButton",null);vm=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],vm);
_.Q(vm,"ytd-sponsorships-expandable-perks-renderer",function(){if(eeD!==void 0)return eeD;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return eeD=r},{mode:1});var iR4;var Ks=function(){return _.y.apply(this,arguments)||this};
_.t(Ks,_.y);Ks.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Ks.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Ks.prototype,"data",void 0);Ks=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],Ks);
_.Q(Ks,"ytd-sponsorships-actionable-message-renderer",function(){if(iR4!==void 0)return iR4;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return iR4=r},{mode:1});var ReX;var yA=function(){return _.y.apply(this,arguments)||this};
_.t(yA,_.y);_.l=yA.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(r){return r?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.l.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.l.computeMessageContainerStyle=function(r){var f=r.expandableItems?" style-clickable":"";return r.messageContainerStyle?r.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+f:"style-unspecified"+f};
_.l.isSinglePerk=function(r){return!!r.messageContainerStyle&&(r.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||r.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.l.onExpandedChanged=function(){var r=this;if(this.expanded)for(var f=_.E(this.hostElement.querySelectorAll("yt-img-shadow")),I=f.next();!I.done;I=f.next())I.value.onShow();_.UC(this,function(){_.kA(r.hostElement,"yt-refit")})};
_.l.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
yA.prototype.onDataChanged=yA.prototype.onDataChanged;yA.prototype.onExpandedChanged=yA.prototype.onExpandedChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],yA.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],yA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],yA.prototype,"data",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],yA.prototype,"expanded",void 0);
_.A([_.Bt("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yA.prototype,"onExpandedChanged",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yA.prototype,"onDataChanged",null);yA=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],yA);
_.Q(yA,"ytd-sponsorships-expandable-message-renderer",function(){if(ReX!==void 0)return ReX;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return ReX=r},{mode:_.QQ("kevlar_poly_si_batch_j028")?1:2});var vm_;var U4=function(){return _.y.apply(this,arguments)||this};
_.t(U4,_.y);U4.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"}}}}};
U4.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.F(this.data.endButton,_.Ll).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
U4.prototype.onDataChanged=U4.prototype.onDataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],U4.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],U4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],U4.prototype,"data",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U4.prototype,"onDataChanged",null);
U4=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],U4);
_.Q(U4,"ytd-sponsorships-heading-renderer",function(){if(vm_!==void 0)return vm_;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return vm_=r},{mode:1});var KaC;var s4=function(){return _.y.apply(this,arguments)||this};
_.t(s4,_.y);_.A([_.K(),_.B("design:type",Object)],s4.prototype,"data",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],s4.prototype,"ytRendererBehavior",void 0);s4=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],s4);
_.Q(s4,"ytd-sponsorships-links-renderer",function(){if(KaC!==void 0)return KaC;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return KaC=r},{mode:1});var yl_;var O4=function(){return _.y.apply(this,arguments)||this};
_.t(O4,_.y);_.l=O4.prototype;_.l.onDataChanged=function(){if(this.data&&this.data.expandableItems){var r;(r=_.e(this.hostElement).querySelector("tp-yt-paper-button"))==null||r.setAttribute("role","button")}else{var f;(f=_.e(this.hostElement).querySelector("tp-yt-paper-button"))==null||f.removeAttribute("role")}};
_.l.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.l.getExpansionIcon=function(r){return r?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.l.getTileClasses=function(r){return r?"tile expandable-tile":"tile"};
_.l.getButtonDisabled=function(r){return r?void 0:""};
O4.prototype.onDataChanged=O4.prototype.onDataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],O4.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],O4.prototype,"data",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],O4.prototype,"expanded",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],O4.prototype,"onDataChanged",null);
O4=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],O4);
_.Q(O4,"ytd-sponsorships-list-tile-renderer",function(){if(yl_!==void 0)return yl_;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return yl_=r},{mode:1});var UgC;var sSs;var od=function(){return _.y.apply(this,arguments)||this};
_.t(od,_.y);od.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],od.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],od.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],od.prototype,"data",void 0);od=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],od);
_.Q(od,"ytd-sponsorships-promotion-renderer",function(){if(sSs!==void 0)return sSs;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return sSs=r},{mode:1});var OR3;var QA=function(){return _.y.apply(this,arguments)||this};
_.t(QA,_.y);QA.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],QA.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],QA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],QA.prototype,"data",void 0);QA=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],QA);
_.Q(QA,"ytd-sponsorships-purchase-option-renderer",function(){if(OR3!==void 0)return OR3;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return OR3=r},{mode:1});var omg;var QSV;var AC=function(){return _.y.apply(this,arguments)||this};
_.t(AC,_.y);_.A([_.K(),_.B("design:type",Object)],AC.prototype,"data",void 0);AC=_.A([_.U({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],AC);
_.Q(AC,"ytd-ypc-offer-promo-renderer",function(){if(QSV!==void 0)return QSV;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return QSV=r},{mode:1});var Zt=function(){return _.y.apply(this,arguments)||this};
_.t(Zt,_.y);_.l=Zt.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(r,f){return r&&(f?r.collapseCallToAction:r.expansionCallToAction)};
_.l.getExpansionIcon=function(r){return r?"arrow_drop_up":"arrow_drop_down"};
_.l.expansionCallToActionTap=function(){var r=this;this.expanded=!this.expanded;_.UC(this,function(){_.kA(r.hostElement,"yt-refit")})};
_.l.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var r,f=(r=this.data)==null?void 0:r.onVisible;f&&this.ytComponentBehavior.resolveCommand(f)};
_.l.computeDisplayTitle=function(r){return!(!r||this.titledisplaystatus!=="show")};
_.l.computeDisplaySeparator=function(){return!1};
_.l.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
Zt.prototype.onDataChanged=Zt.prototype.onDataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Zt.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Zt.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Zt.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Zt.prototype,"data",void 0);
_.A([_.K({value:!1}),_.B("design:type",Boolean)],Zt.prototype,"expanded",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],Zt.prototype,"purchaseButtonClicked",void 0);_.A([_.K({reflectToAttribute:!0,value:"show"}),_.B("design:type",String)],Zt.prototype,"titledisplaystatus",void 0);_.A([_.K({computed:"computeDisplayTitle(data.title)"}),_.B("design:type",Boolean)],Zt.prototype,"displayTitle",void 0);
_.A([_.K({computed:"computeDisplaySeparator(data)"}),_.B("design:type",Boolean)],Zt.prototype,"displaySeparator",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zt.prototype,"onDataChanged",null);Zt=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],Zt);
_.Q(Zt,"ytd-sponsorships-tier-renderer",function(){if(omg!==void 0)return omg;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return omg=r},{mode:2});var GE=function(){return _.y.apply(this,arguments)||this};
_.t(GE,_.y);
GE.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"}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],GE.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],GE.prototype,"data",void 0);GE=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],GE);
_.Q(GE,"ytd-sponsorships-management-renderer",function(){if(UgC!==void 0)return UgC;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return UgC=r},{mode:1});var Al4;var ky=function(){return _.y.apply(this,arguments)||this};
_.t(ky,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ky.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ky.prototype,"data",void 0);ky=_.A([_.U({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],ky);
_.Q(ky,"ytd-open-in-native-app-view-model",function(){if(Al4!==void 0)return Al4;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Al4=r},{mode:_.QQ("kevlar_poly_si_batch_j028")?1:2});var ZRV;var Gmq;var kmq=_.op(["top-"]),B0q=_.op(["bottom-"]),qFT=_.op(["left-"]),u44=_.op(["right-"]),DgD={},rjq=function(r,f,I){r.removeAttribute("top-"+I);r.removeAttribute("bottom-"+I);r.removeAttribute("left-"+I);r.removeAttribute("right-"+I);f&&(f.top&&_.ys([_.BG(kmq)],r,"top-"+I,f.top),f.bottom&&_.ys([_.BG(B0q)],r,"bottom-"+I,f.bottom),f.left&&_.ys([_.BG(qFT)],r,"left-"+I,f.left),f.right&&_.ys([_.BG(u44)],r,"right-"+I,f.right))};
DgD.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(r){var f,I=_.e((f=this.hostElement)!=null?f:this),C;f=this.cardItemBoxBehaviorMarginTargetId&&I?I.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(C=this.hostElement)!=null?C:this;rjq(f,r,"margin")},
cardItemContainerPaddingChanged_:function(r){var f,I=_.e((f=this.hostElement)!=null?f:this),C;f=this.cardItemBoxBehaviorPaddingTargetId&&I?I.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(C=this.hostElement)!=null?C:this;rjq(f,r,"padding")}}];var Bm={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 f_V;var I_s;var qF=function(){return _.y.apply(this,arguments)||this};
_.t(qF,_.y);qF.prototype.textColorChanged_=function(){this.hostElement.style.color=Bm[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
qF.prototype.textColorChanged_=qF.prototype.textColorChanged_;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.A([_.J(DgD.YtCardItemBoxBehavior),_.B("design:type",Object)],qF.prototype,"ytCardItemBoxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],qF.prototype,"data",void 0);_.A([_.Bt("data.textColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qF.prototype,"textColorChanged_",null);
qF=_.A([_.zX({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],qF);
_.Q(qF,"yt-card-item-text-renderer",function(){if(I_s===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;f_V===void 0&&(f_V=document.createElement("template"));var C=f_V;I.call(f,C.content.cloneNode(!0),r.content.firstChild);I_s=r}r=I_s;return r},{mode:2});var CY_;var Y23;var uZ=function(){return _.y.apply(this,arguments)||this};
_.t(uZ,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],uZ.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],uZ.prototype,"data",void 0);uZ=_.A([_.zX({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],uZ);
_.Q(uZ,"yt-card-item-badge-renderer",function(){if(Y23===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;CY_===void 0&&(CY_=document.createElement("template"));var C=CY_;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Y23=r}r=Y23;return r},{mode:2});var l_4;var Ves;var Dt=function(){return _.y.apply(this,arguments)||this};
_.t(Dt,_.y);Dt.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Dt.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Dt.prototype,"data",void 0);Dt=_.A([_.zX({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Dt);
_.Q(Dt,"yt-card-item-text-collection-renderer",function(){if(Ves===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;l_4===void 0&&(l_4=document.createElement("template"));var C=l_4;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Ves=r}r=Ves;return r},{mode:2});var EbC;var S24;var rk=function(){return _.y.apply(this,arguments)||this};
_.t(rk,_.y);rk.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]]"}}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],rk.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],rk.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],rk.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Number)],rk.prototype,"iconSize",void 0);rk=_.A([_.zX({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],rk);
_.Q(rk,"yt-card-item-text-with-button-renderer",function(){if(S24===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;EbC===void 0&&(EbC=document.createElement("template"));var C=EbC;I.call(f,C.content.cloneNode(!0),r.content.firstChild);S24=r}r=S24;return r},{mode:2});var fg=function(){return _.y.apply(this,arguments)||this};
_.t(fg,_.y);fg.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"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],fg.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],fg.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],fg.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],fg.prototype,"data",void 0);fg=_.A([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],fg);
_.Q(fg,"ytd-commerce-cart-summary-line-item-renderer",function(){if(Gmq!==void 0)return Gmq;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Gmq=r},{mode:1});_.gW("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var IX=function(){var r=_.y.apply(this,arguments)||this;r.hidden=!1;return r};
_.t(IX,_.y);_.l=IX.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 r=this.commerceCartCheckoutButtonEntity,f;if(((f=this.data)==null?0:f.cartButton)&&r.checkoutSummaryText){var I,C=jB((I=this.data)==null?void 0:I.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+C+".cardItemTextRenderer.text",HS(r.checkoutSummaryText));if(r.checkoutDetailText){var Y;I=jB((Y=this.data)==null?void 0:Y.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+I+".cardItemTextRenderer.text",HS(r.checkoutDetailText))}if(r.checkoutAdditionalMetadataText){var V;
Y=jB((V=this.data)==null?void 0:V.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+Y+".cardItemTextRenderer.text",HS(r.checkoutAdditionalMetadataText))}}else r.estimatedTotalPrice&&(V=jB((C=this.data)==null?void 0:C.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+V+".cardItemTextRenderer.text",HS(r.estimatedTotalPrice)))};
_.l.updateIsHidden=function(){var r,f=(r=this.commerceCartCheckoutButtonEntity)==null?void 0:r.isHidden;f!==void 0&&(this.hidden=f)};
_.l.updateCheckoutButton=function(){var r,f=(r=this.commerceCartCheckoutButtonEntity)==null?void 0:r.isDisabled;f!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",f);var I;r=(I=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:I.innertubeCommand;r!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",r);var C;I=(C=this.commerceCartCheckoutButtonEntity)==null?void 0:C.checkoutButtonText;I!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:I})};
IX.prototype.entityChanged=IX.prototype.entityChanged;_.A([_.J(_.PH),_.B("design:type",Object)],IX.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],IX.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],IX.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],IX.prototype,"fullWidth",void 0);_.A([_.K(),_.B("design:type",Object)],IX.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],IX.prototype,"compact",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],IX.prototype,"hidden",void 0);
_.A([_.K({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:oTE}),_.B("design:type",Object)],IX.prototype,"commerceCartCheckoutButtonEntity",void 0);_.A([_.Bt("commerceCartCheckoutButtonEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IX.prototype,"entityChanged",null);IX=_.A([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],IX);
_.Q(IX,"ytd-commerce-cart-checkout-button-renderer",function(){if(ZRV!==void 0)return ZRV;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return ZRV=r},{mode:2});var xO_;_.hJ8={};
_.hJ8.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",_.GF(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.GF(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(r){!this.tappableItemBehaviorTapEnabled||r.keyCode!==13&&r.keyCode!==32||r.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var r=this.data.onTap;r.ypcGetCartEndpoint?(_.Do(this.hostElement,[r]),this.tappableItemBehaviorTapEnabled=!1):r.ypcOffersEndpoint?_.Do(this.hostElement,[r]):_.rX(this.hostElement,[r],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(r){this.tappableItemBehaviorTapEnabled=!!r},
tappableItemBehaviorOnTapEnabledChanged_:function(){var r=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(r.setAttribute("tabIndex",0),r.setAttribute("role","button")):(r.removeAttribute("tabIndex"),r.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(r){r.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var wvX;var ba3;var Cg=function(){return _.y.apply(this,arguments)||this};
_.t(Cg,_.y);Cg.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.aC("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.aC("sharingToggleButtonAndDefaultButton")}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Cg.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Cg.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Cg.prototype,"data",void 0);Cg=_.A([_.zX({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Cg);
_.Q(Cg,"yt-card-item-actions-renderer",function(){if(ba3===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;wvX===void 0&&(wvX=document.createElement("template"));var C=wvX;I.call(f,C.content.cloneNode(!0),r.content.firstChild);ba3=r}r=ba3;return r},{mode:2});var pvT;var nbV;var dOq;var zJ4;var Me3;var gb3;var YR=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return r};
_.t(YR,_.y);YR.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
YR.prototype.handleDarkModeToggledAction_=function(r){this.isDarkTheme_=r};
YR.prototype.computeThemeImage_=function(r,f){if(!r||!r.imageLight)return!1;this.isCircular_=r.isCircular;r.imageWidth&&(this.hostElement.style.width=r.imageWidth+"px");r.imageHeight&&(this.hostElement.style.height=r.imageHeight+"px");r.borderWidth&&(this.image.style.borderWidth=r.borderWidth+"px",this.image.style.borderStyle="solid");r.borderColor&&(this.image.style.borderColor=_.g_(r.borderColor));return f&&r.imageDark?r.imageDark:r.imageLight};
YR.prototype.computeThemeIcon_=function(r){var f,I;if(!(r==null?0:(f=r.themedIcon)==null?0:(I=f.icon)==null?0:I.iconType))return!1;this.icon.style.color=Bm[r.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(r.imageWidth||18)+"px";this.icon.style.height=(r.imageHeight||18)+"px";return _.kN(r.themedIcon.icon.iconType)};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],YR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(DgD.YtCardItemBoxBehavior),_.B("design:type",Object)],YR.prototype,"ytCardItemBoxBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],YR.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],YR.prototype,"data",void 0);
_.A([_.K({value:!1}),_.B("design:type",Boolean)],YR.prototype,"fit",void 0);_.A([_.K(),_.B("design:type",Boolean)],YR.prototype,"isDarkTheme_",void 0);_.A([_.K({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.B("design:type",Object)],YR.prototype,"themeImage_",void 0);_.A([_.K({computed:"computeThemeIcon_(data)"}),_.B("design:type",Object)],YR.prototype,"themeIcon_",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Object)],YR.prototype,"isCircular_",void 0);
_.A([_.uA("#image"),_.B("design:type",Object)],YR.prototype,"image",void 0);_.A([_.uA("#icon"),_.B("design:type",Object)],YR.prototype,"icon",void 0);YR=_.A([_.zX({is:"yt-themed-image-renderer",disableElementRegistration:!0})],YR);
_.Q(YR,"yt-themed-image-renderer",function(){if(gb3===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;Me3===void 0&&(Me3=document.createElement("template"));var C=Me3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);gb3=r}r=gb3;return r},{mode:2});var lW=function(){return _.y.apply(this,arguments)||this};
_.t(lW,_.y);lW.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"}}}}};
lW.prototype.computeImagePlacement_=function(r){return r||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],lW.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],lW.prototype,"data",void 0);_.A([_.K({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.B("design:type",String)],lW.prototype,"imagePlacement",void 0);
lW=_.A([_.zX({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],lW);
_.Q(lW,"yt-card-item-text-with-image-renderer",function(){if(zJ4===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;dOq===void 0&&(dOq=document.createElement("template"));var C=dOq;I.call(f,C.content.cloneNode(!0),r.content.firstChild);zJ4=r}r=zJ4;return r},{mode:2});var Vg=function(){return _.y.apply(this,arguments)||this};
_.t(Vg,_.y);Vg.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"}}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Vg.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Vg.prototype,"data",void 0);Vg=_.A([_.zX({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Vg);
_.Q(Vg,"yt-card-item-error-renderer",function(){if(nbV===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;pvT===void 0&&(pvT=document.createElement("template"));var C=pvT;I.call(f,C.content.cloneNode(!0),r.content.firstChild);nbV=r}r=nbV;return r},{mode:2});var a_q;var Xvg;_.gW("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var Eb=function(){return _.y.apply(this,arguments)||this};
_.t(Eb,_.y);_.l=Eb.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 r,f=(r=this.data)==null?void 0:r.backgroundColor;r=Bm[f||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.e(this.hostElement).querySelector("#main-content").style.backgroundColor=r};
_.l.headerPromoBackgroundColorChanged_=function(){var r,f=(r=this.data)==null?void 0:r.headerPromoBackgroundColor;r=Bm[f||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.e(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=r};
_.l.errorRendererVisibilityChanged_=function(){var r=this.isExpanded_,f;this.isErrorRendererVisible_=!((f=this.data)==null||!f.errorRenderer)&&!r};
_.l.onYtToggleButton_=function(r,f){this.isExpanded_=f.toggled};
Eb.prototype.onYtToggleButton_=Eb.prototype.onYtToggleButton_;Eb.prototype.errorRendererVisibilityChanged_=Eb.prototype.errorRendererVisibilityChanged_;Eb.prototype.headerPromoBackgroundColorChanged_=Eb.prototype.headerPromoBackgroundColorChanged_;Eb.prototype.backgroundColorChanged_=Eb.prototype.backgroundColorChanged_;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Eb.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Eb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(DgD.YtCardItemBoxBehavior),_.B("design:type",Object)],Eb.prototype,"ytCardItemBoxBehavior",void 0);_.A([_.J(_.hJ8.YtTappableItemBehavior),_.B("design:type",Object)],Eb.prototype,"ytTappableItemBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Eb.prototype,"data",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],Eb.prototype,"isExpanded_",void 0);
_.A([_.K({value:!1}),_.B("design:type",Boolean)],Eb.prototype,"isErrorRendererVisible_",void 0);_.A([_.Bt("data.backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Eb.prototype,"backgroundColorChanged_",null);_.A([_.Bt("data.headerPromoBackgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Eb.prototype,"headerPromoBackgroundColorChanged_",null);
_.A([_.Bt("data.errorRenderer","isExpanded_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Eb.prototype,"errorRendererVisibilityChanged_",null);_.A([_.kO("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[Event,Object]),_.B("design:returntype")],Eb.prototype,"onYtToggleButton_",null);Eb=_.A([_.zX({is:"yt-card-item-renderer",disableElementRegistration:!0})],Eb);
_.Q(Eb,"yt-card-item-renderer",function(){if(Xvg===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;a_q===void 0&&(a_q=document.createElement("template"));var C=a_q;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Xvg=r}r=Xvg;return r},{mode:2});_.gW("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Sk=function(){var r=_.y.apply(this,arguments)||this;r.hidden=!1;return r};
_.t(Sk,_.y);_.l=Sk.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 r,f=(r=this.commerceCartHeaderEntity)==null?void 0:r.isHidden;f!==void 0&&(this.hidden=f)}};
_.l.updateTitle=function(){var r=this.commerceCartHeaderEntity.isDisabled,f,I,C=(I=_.F((f=this.data)==null?void 0:f.item,wDT))==null?void 0:I.headingRenderer;C&&(f=jB(C,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+f+".0.cardItemTextRenderer.textColor",r?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.l.updateSummaryText=function(){var r=this.commerceCartHeaderEntity;if(this.compact){var f,I,C=(I=_.F((f=this.data)==null?void 0:f.item,wDT))==null?void 0:I.headingRenderer;C&&(f=jB(C,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+f+".1.cardItemTextRenderer.text",r.shortHeaderSummaryText?HS(r.shortHeaderSummaryText):r.headerSummaryText?HS(r.headerSummaryText):""))}else{var Y;if(f=(Y=_.F((C=this.data)==null?void 0:C.item,wDT))==null?void 0:Y.additionalInfoRenderer)f=jB(f,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+f+".text",r.headerSummaryText?HS(r.headerSummaryText):"")}};
_.l.updateCheckoutButton=function(){var r=this.commerceCartHeaderEntity,f,I,C=(I=_.F((f=this.data)==null?void 0:f.item,wDT))==null?void 0:I.additionalInfoRenderer;f=jB(C,"buttonRenderer");var Y;I=(Y=this.commerceCartHeaderEntity)==null?void 0:Y.isButtonDisabled;var V;Y=(V=this.commerceCartHeaderEntity)==null?void 0:V.isButtonHidden;I!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+f+".buttonRenderer.isDisabled",I);Y!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
Y);var S;r=(S=r.checkoutButtonCommand)==null?void 0:S.innertubeCommand;r!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+f+".buttonRenderer.command",r)};
Sk.prototype.entityChanged=Sk.prototype.entityChanged;_.A([_.J(_.PH),_.B("design:type",Object)],Sk.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Sk.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Sk.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Sk.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Sk.prototype,"compact",void 0);_.A([_.K({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(r,f){return _.f2(r.entities,"commerceCartHeaderEntity",f)}}),
_.B("design:type",Object)],Sk.prototype,"commerceCartHeaderEntity",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Sk.prototype,"hidden",void 0);_.A([_.Bt("commerceCartHeaderEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Sk.prototype,"entityChanged",null);Sk=_.A([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],Sk);
_.Q(Sk,"ytd-commerce-cart-header-renderer",function(){if(xO_!==void 0)return xO_;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return xO_=r},{mode:1});var NT8;var $O4=_.z1(function(r,f){var I;return(I=r.onChangeCallback)==null?void 0:I.call(r,f)},1E3),FP4=_.Hc(function(r){var f=r.data;
var I=r.iconMinus;r=r.iconPlus;var C=function(){return!!f().disabled},Y=_.E(_.ld(0,void 0,"r56zNb")),V=Y.next().value,S=Y.next().value;
Y={};Y=_.qd("yt-spec-quantity-incrementer-shape__icon",(Y["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return C()||V()===(f().onRemoveCommand?0:1)},Y));
var h={};h=_.qd("yt-spec-quantity-incrementer-shape__icon",(h["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return V()>=f().maxValue||C()},h));
var w={};w=_.qd("yt-spec-quantity-incrementer-shape__text",(w["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return V()>f().maxValue},w["yt-spec-quantity-incrementer-shape__text--text-disabled"]=C,w));
var n=_.IC(function(){if(V()===1){var z,g;(g=(z=f()).onRemoveCommand)==null||g.call(z)}z=V()>f().maxValue?f().maxValue:V()-1;S(z);$O4(f(),z);return!1}),d=_.IC(function(){if(V()===f().maxValue)return!1;
var z=V()+1;S(z);$O4(f(),z);return!1});
_.Xl(function(){S(f().value)});
return _.p("quantity-incrementer-shape",null,_.p("div",{class:"yt-spec-quantity-incrementer-shape"},_.p("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return V()===(f().onRemoveCommand?0:1)||C()},
"aria-label":function(){return V()!==1?f().minusLabel:f().minimumReachedLabel},
"on:click":n},_.p(_.xZ,{model:{circular:!0}}),_.p("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.p("div",{class:Y},I()))),_.p("div",{class:w},V),_.p("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return V()>=f().maxValue||C()},
"aria-label":function(){return V()!==f().maxValue?f().plusLabel:f().maximumReachedLabel},
"on:click":d},_.p(_.xZ,{model:{circular:!0}}),_.p("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.p("div",{class:h},r())))))},"Jd");_.Kv(_.Hc(function(r){function f(){I().onRemoveCommand&&_.F2(I().onRemoveCommand)}
var I=r.data;var C=_.VS(n8q,function(){return I().quantityIncrementerEntityKey});
return _.p("yt-quantity-incrementer-view-model",null,_.p(FP4,{data:function(){var Y=I(),V;var S=C()?!((V=C())==null||!V.disabled):!1;var h;V=C()?(h=C())==null?void 0:h.quantity:I().quantity;return yDw(Y,S,f,V)},
iconMinus:function(){return _.p(_.V2,{icon:"BAR_HORIZONTAL",className:_.D5("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.p(_.V2,{icon:"ADD",className:_.D5("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Kd"),"yt-quantity-incrementer-view-model",{props:{data:_.jv}});var xR=function(){var r=_.y.apply(this,arguments)||this;r.compact=!1;r.hasQuantityIncrementer=!1;return r};
_.t(xR,_.y);xR.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"}}}};
xR.prototype.computeHasQuantityIncrementer=function(){var r;return!!_.F((r=this.data)==null?void 0:r.picker,db3)};
xR.prototype.onLabelClick=function(){var r;(r=this.dropdownEl)==null||r.open()};
_.A([_.uA("ytd-dropdown-renderer"),_.B("design:type",Object)],xR.prototype,"dropdownEl",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],xR.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],xR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],xR.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],xR.prototype,"quantityColor",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],xR.prototype,"compact",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.B("design:type",Object)],xR.prototype,"hasQuantityIncrementer",void 0);xR=_.A([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],xR);
_.Q(xR,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(NT8!==void 0)return NT8;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return NT8=r},{mode:1});var PY3;var te4;var h4=function(){return _.y.apply(this,arguments)||this};
_.t(h4,_.y);h4.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
h4.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
h4.prototype.updateTitle=function(){var r=this.disabledCartItemEntity;r.disableActionName&&this.set("data.title",HS(r.disableActionName))};
h4.prototype.updateButton=function(){var r,f=(r=this.disabledCartItemEntity.undoCommand)==null?void 0:r.innertubeCommand;f!==void 0&&(this.set("data.actionButton.buttonRenderer.command",f),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
h4.prototype.entityChanged=h4.prototype.entityChanged;_.A([_.J(_.PH),_.B("design:type",Object)],h4.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],h4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(r,f){return _.f2(r.entities,"disabledCartItemEntity",f)}}),
_.B("design:type",Object)],h4.prototype,"disabledCartItemEntity",void 0);_.A([_.K(),_.B("design:type",Object)],h4.prototype,"data",void 0);_.A([_.Bt("disabledCartItemEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],h4.prototype,"entityChanged",null);h4=_.A([_.U({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],h4);
_.Q(h4,"ytd-disabled-cart-item-renderer",function(){if(te4!==void 0)return te4;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return te4=r},{mode:1});_.gW("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var wk=function(){var r=_.y.apply(this,arguments)||this;r.compact=!1;r.hidden=!1;r.errorHidden=!1;r.noOnTap=!1;return r};
_.t(wk,_.y);_.l=wk.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 r=this.firstButtonElement;r.alignByText=!0;r.iconAlignByText=!0}};
_.l.computeNoOnTap=function(r){return!r};
_.l.updateQuantityColor=function(){if(this.pickerElement){var r,f=(r=this.commerceCartItemEntity)==null?void 0:r.quantityColor;this.pickerElement.quantityColor=f}};
_.l.updateTotalPriceColor=function(){var r,f=(r=this.commerceCartItemEntity)==null?void 0:r.totalPriceColor;if(f){var I;r=_.F((I=this.data)==null?void 0:I.quantityPicker,pDq);if(I=_.F(r==null?void 0:r.price,bhU))I.textColor=f}};
_.l.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var r,f=(r=this.commerceCartItemEntity)==null?void 0:r.isHidden;f!==void 0&&(this.hidden=f)}};
_.l.updateHideErrorMessage=function(){var r,f=(r=this.commerceCartItemEntity)==null?void 0:r.hideErrorMessage;f!==void 0&&(this.errorHidden=f)};
_.l.updateQuantity=function(){var r=this,f,I=(f=this.commerceCartItemEntity)==null?void 0:f.quantity,C;f=(C=this.commerceCartItemEntity)==null?void 0:C.totalPrice;if(I){this.updateTotalPriceColor();this.updateQuantityColor();var Y;C=_.F((Y=this.data)==null?void 0:Y.quantityPicker,pDq);if(Y=_.F(C==null?void 0:C.price,bhU))Y.text=f?{simpleText:f.content}:void 0;if(f=_.F(C==null?void 0:C.picker,db3))f.quantity=I;var V;if(Y=(V=_.F(C==null?void 0:C.picker,PN3))==null?void 0:V.entries){V=!1;f=void 0;Y=
_.E(Y);for(C=Y.next();!C.done;C=Y.next())C=C.value,C.dropdownItemRenderer&&(f||(f=C.dropdownItemRenderer),C.dropdownItemRenderer.isSelected=!1,I===C.dropdownItemRenderer.int32Value&&(V=!0,C.dropdownItemRenderer.isSelected=!0));!V&&f&&(f.isSelected=!0)}_.UC(this,function(){var S;r.set("data.quantityPicker",_.X0.unsafeClone((S=r.data)==null?void 0:S.quantityPicker))})}};
wk.prototype.onYtRendererstamperFinished=wk.prototype.onYtRendererstamperFinished;wk.prototype.entityChanged=wk.prototype.entityChanged;_.A([_.K(),_.B("design:type",Object)],wk.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],wk.prototype,"compact",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],wk.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],wk.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],wk.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],wk.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(r,f){return _.f2(r.entities,"commerceCartItemEntity",f)}}),
_.B("design:type",Object)],wk.prototype,"commerceCartItemEntity",void 0);_.A([_.K(),_.B("design:type",Object)],wk.prototype,"quantityPicker",void 0);_.A([_.K(),_.B("design:type",Object)],wk.prototype,"compactQuantityPicker",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],wk.prototype,"hidden",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],wk.prototype,"errorHidden",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.B("design:type",Object)],wk.prototype,"noOnTap",void 0);_.A([_.uA("ytd-commerce-cart-item-quantity-picker-renderer"),_.B("design:type",Object)],wk.prototype,"pickerElement",void 0);_.A([_.uA("yt-button-renderer"),_.B("design:type",Element)],wk.prototype,"firstButtonElement",void 0);
_.A([_.Bt("commerceCartItemEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wk.prototype,"entityChanged",null);_.A([_.kO("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wk.prototype,"onYtRendererstamperFinished",null);wk=_.A([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],wk);
_.Q(wk,"ytd-commerce-cart-item-renderer",function(){if(PY3!==void 0)return PY3;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return PY3=r},{mode:_.QQ("kevlar_poly_si_batch_j028")?1:2});var TTB;var cjV;var bW=function(){return _.y.apply(this,arguments)||this};
_.t(bW,_.y);bW.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}}}}}};
bW.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
bW.prototype.updateCheckoutLineItems=function(){var r,f=(r=this.commerceCartCheckoutButtonEntity)==null?void 0:r.checkoutLineItems;f&&(r=f.map(function(I){a:{var C=I.price,Y=I.description;switch(I.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":I={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:HS(Y),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",
left:"CARD_ITEM_UX_SPACE_4"}}},price:{cardItemTextRenderer:{text:HS(C),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:I={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:HS(Y),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",
right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_0"}}},price:{cardItemTextRenderer:{text:HS(C),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 I}),this.set("data.summaryLineItems",r))};
bW.prototype.updateIsHidden=function(){var r,f=(r=this.commerceCartCheckoutButtonEntity)==null?void 0:r.isHidden;f!==void 0&&(this.hostElement.hidden=f)};
bW.prototype.entityChanged=bW.prototype.entityChanged;_.A([_.J(_.PH),_.B("design:type",Object)],bW.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],bW.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],bW.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],bW.prototype,"data",void 0);_.A([_.K({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:oTE}),_.B("design:type",Object)],bW.prototype,"commerceCartCheckoutButtonEntity",void 0);_.A([_.Bt("commerceCartCheckoutButtonEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bW.prototype,"entityChanged",null);bW=_.A([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],bW);
_.Q(bW,"ytd-commerce-cart-summary-renderer",function(){if(cjV!==void 0)return cjV;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return cjV=r},{mode:1});var WPD={};WPD.InjectBehavior=[Mic.InjectBehavior];var LP4;var mO8;var pg=function(){return _.y.apply(this,arguments)||this};
_.t(pg,_.y);
pg.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:_.aC("menuRenderer")}}};
pg.prototype.onMenuTap=function(r){r.stopPropagation()};
_.OC.Object.defineProperties(pg.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 r,f;return!(((r=this.data)==null||!r.sectionHeading)&&((f=this.data)==null?void 0:f.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var r,f;return!(((r=this.data)==null||!r.image)&&((f=this.data)==null?void 0:f.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var r,f;return!(((r=this.data)==null||!r.menu)&&((f=this.data)==null?void 0:f.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],pg.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],pg.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.hJ8.YtTappableItemBehavior),_.B("design:type",Object)],pg.prototype,"ytTappableItemBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],pg.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("data.accessibilityData"),_.B("design:type",String),_.B("design:paramtypes",[])],pg.prototype,"ariaLabel",null);_.A([_.R("data.sectionHeading","data.layout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],pg.prototype,"sectionHeadingVisible",null);_.A([_.R("data.image","data.layout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],pg.prototype,"imageVisible",null);
_.A([_.R("data.menu","data.layout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],pg.prototype,"menuVisible",null);pg=_.A([_.zX({is:"yt-activity-item-renderer",disableElementRegistration:!0})],pg);
_.Q(pg,"yt-activity-item-renderer",function(){if(mO8===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;LP4===void 0&&(LP4=document.createElement("template"));var C=LP4;I.call(f,C.content.cloneNode(!0),r.content.firstChild);mO8=r}r=mO8;return r},{mode:2});var eJX;var JjC;var jU3;var HaV;var dk=function(){return _.y.apply(this,arguments)||this};
_.t(dk,_.y);
dk.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"}}}}};
dk.prototype.backgroundColorChanged_=function(){var r,f=(r=this.data)==null?void 0:r.backgroundColor;this.hostElement.style.backgroundColor=Bm[f||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
dk.prototype.backgroundColorChanged_=dk.prototype.backgroundColorChanged_;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],dk.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],dk.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],dk.prototype,"data",void 0);
_.A([_.Bt("data.backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dk.prototype,"backgroundColorChanged_",null);dk=_.A([_.zX({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],dk);
_.Q(dk,"yt-offer-item-upsell-renderer",function(){if(HaV===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;jU3===void 0&&(jU3=document.createElement("template"));var C=jU3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);HaV=r}r=HaV;return r},{mode:2});_.gW("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var z_=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};r.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return r};
_.t(z_,_.y);_.l=z_.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:_.aC("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(r){return r};
_.l.computeContainerIsHidden_=function(r){return r&&!!r.isHidden};
_.l.computeShowSpinner_=function(r,f){return r&&f==="in-progress"};
_.l.computeShowMoreContentsButton_=function(r,f,I,C,Y){return!(!(C&&C.length||Y&&Y.length&&I)||!r||f)};
_.l.onToggleButton_=function(r){var f=this;r.stopPropagation();this.isExpanded_=r.detail&&r.detail.toggled;var I,C;this.isExpanded_&&!this.data.continuationSection.length&&((I=this.data)==null?0:(C=I.continuation)==null?0:C.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.kA(this.hostElement,"yt-load-next-continuation",function(Y){return f.getContinuationUrl_(f.data.continuation.onClickContinuationData,Y)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.Do(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.l.onShowMoreContentsButtonClicked_=function(r){var f=this;r.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.kA(this.hostElement,"yt-load-next-continuation",function(I){return f.getContinuationUrl_(f.data.continuations[0].nextContinuationData,I)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.Do(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.l.getContinuationUrl_=function(r,f){var I=r.continuation;r=r.clickTrackingParams;var C=_.t1();r&&C&&_.im(C,_.VH(r));return _.UQ(f,{continuation:I})};
_.l.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var r=_.e(this.hostElement).querySelector("#continuation-section");r&&(r=r.querySelectorAll("ytmusic-item-section-renderer"))&&r.forEach(function(f){return f.classList.add("memberships-and-purchases")})};
_.l.dataChanged_=function(){var r;this.isExpanded_=!((r=this.data)==null||!r.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.l.updateCardOnClickCommand_=function(r){r=_.F(r,Cg8);var f,I;this.data&&((f=this.data)==null?0:f.targetId)&&r&&r.targetId===((I=this.data)==null?void 0:I.targetId)&&r.onClickCommand&&(this.data.onClickCommand=r.onClickCommand,this.isOnClickCommand_=!0)};
_.l.backgroundColorChanged_=function(){var r,f=(r=this.data)==null?void 0:r.backgroundColor;this.hostElement.style.backgroundColor=Bm[f||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
z_.prototype.backgroundColorChanged_=z_.prototype.backgroundColorChanged_;z_.prototype.dataChanged_=z_.prototype.dataChanged_;z_.prototype.nextContinuationDataUpdated_=z_.prototype.nextContinuationDataUpdated_;z_.prototype.onToggleButton_=z_.prototype.onToggleButton_;_.A([_.J(_.cg),_.B("design:type",Object)],z_.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],z_.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],z_.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.Wg.YtNextContinuationBehavior),_.B("design:type",Object)],z_.prototype,"ytNextContinuationBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],z_.prototype,"ytRendererBehavior",void 0);_.A([_.J(WPD.InjectBehavior),_.B("design:type",Object)],z_.prototype,"injectBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],z_.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],z_.prototype,"compact",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],z_.prototype,"isExpanded_",void 0);_.A([_.K({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.B("design:type",String)],z_.prototype,"containerStyle_",void 0);_.A([_.K({value:"not-started"}),_.B("design:type",String)],z_.prototype,"continuationStatus_",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.B("design:type",Boolean)],z_.prototype,"showSpinner_",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],z_.prototype,"isOnClickCommand_",void 0);_.A([_.K({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.B("design:type",Boolean)],z_.prototype,"showMoreContentsButton_",void 0);
_.A([_.K({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(r,f){return!f||r.entities?null:_.f2(r.entities,"cardItemContainerEntity",f)}}),
_.B("design:type",Object)],z_.prototype,"cardItemContainerEntity_",void 0);_.A([_.kO("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],z_.prototype,"onToggleButton_",null);_.A([_.kO("yt-next-continuation-data-updated"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],z_.prototype,"nextContinuationDataUpdated_",null);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],z_.prototype,"dataChanged_",null);_.A([_.Bt("data.backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],z_.prototype,"backgroundColorChanged_",null);z_=_.A([_.zX({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],z_);
_.Q(z_,"yt-card-item-container-renderer",function(){if(JjC===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;eJX===void 0&&(eJX=document.createElement("template"));var C=eJX;I.call(f,C.content.cloneNode(!0),r.content.firstChild);JjC=r}r=JjC;return r},{mode:2});var MH=function(){return _.y.apply(this,arguments)||this};
_.t(MH,_.y);MH.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"}}}};
MH.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
MH.prototype.computeLoadingHidden=function(){var r;return!((r=this.commerceCartPageStateEntity)==null?0:r.cartActionInProgress)};
MH.prototype.updateNotification=function(){var r,f=(r=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:r.summaryText;f&&this.set("data.cartNotification",HS(f))};
MH.prototype.notificationEntityChanged=MH.prototype.notificationEntityChanged;_.A([_.J(_.PH),_.B("design:type",Object)],MH.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],MH.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],MH.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],MH.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],MH.prototype,"data",void 0);_.A([_.K({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(r,f){return _.f2(r.entities,"commerceCartExpandableNotificationEntity",f)}}),
_.B("design:type",Object)],MH.prototype,"commerceCartExpandableNotificationEntity",void 0);_.A([_.K({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(r,f){return _.f2(r.entities,"commerceCartPageStateEntity",f)}}),
_.B("design:type",Object)],MH.prototype,"commerceCartPageStateEntity",void 0);_.A([_.uA("#spinner"),_.B("design:type",HTMLElement)],MH.prototype,"spinner",void 0);_.A([_.Bt("commerceCartExpandableNotificationEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],MH.prototype,"notificationEntityChanged",null);MH=_.A([_.U({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],MH);
_.Q(MH,"ytd-commerce-cart-renderer",function(){if(TTB!==void 0)return TTB;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return TTB=r},{mode:1});var iaB;var gk=function(){var r=_.y.apply(this,arguments)||this;r.bigImage=!1;return r};
_.t(gk,_.y);_.OC.Object.defineProperties(gk.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.placeholderImageUrl}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],gk.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],gk.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],gk.prototype,"bigImage",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],gk.prototype,"placeholderImageUrl",null);gk=_.A([_.U({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],gk);
_.Q(gk,"ytd-empty-product-shelf-renderer",function(){if(iaB!==void 0)return iaB;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return iaB=r},{mode:1});var RJD;var aX=function(){var r=_.y.apply(this,arguments)||this;r.itemStyle="link-item";r.watchMetadataRefresh=!1;r.skinnyMode=!1;r.metaPanel=!1;r.inStructuredDescription=!1;r.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};r.updateOnResizeDebouncer=null;return r};
_.t(aX,_.y);_.l=aX.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(r){r.trackingParams&&_.IB().graftServerVe(r.trackingParams)};
_.l.handleUpdateMerchShelfAction=function(r){var f=this,I=_.F(r.updateMerchandiseShelfAction.merchandiseShelf,_.Qj4);I&&(I.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){f.attachVEs(I);f.data=I},Number(I.renderDelayMs))):(this.attachVEs(I),this.data=I))};
_.l.updateOnResize=function(){if(this.JSC$14607_scrollContainer!==void 0&&this.JSC$14607_scrollContainer.clientWidth!==0&&this.items!==void 0){var r=this.JSC$14607_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-r));this.ytdHorizontalListBehavior.reposition_();var f;switch((f=this.data)==null?void 0:f.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var I,
C;((I=this.data)==null?void 0:(C=I.items)==null?void 0:C.length)===1?this.itemStyle="cta-item":this.itemStyle=r>=740?"large-item":"small-item"}}};
_.l.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.f6(this.updateOnResizeDebouncer,_.OE.after(100),this.updateOnResize)};
aX.prototype.debouncedUpdateOnResize=aX.prototype.debouncedUpdateOnResize;aX.prototype.dataChanged=aX.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],aX.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.ZL.YtdHorizontalListBehavior),_.B("design:type",Object)],aX.prototype,"ytdHorizontalListBehavior",void 0);
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],aX.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],aX.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],aX.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],aX.prototype,"itemStyle",void 0);_.A([_.K({value:6}),_.B("design:type",Number)],aX.prototype,"initialCount",void 0);
_.A([_.K({value:"data.items"}),_.B("design:type",String)],aX.prototype,"itemsPath",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],aX.prototype,"watchMetadataRefresh",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],aX.prototype,"skinnyMode",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],aX.prototype,"metaPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],aX.prototype,"inStructuredDescription",void 0);
_.A([_.uA("#items"),_.B("design:type",HTMLDivElement)],aX.prototype,"items",void 0);_.A([_.uA("#scroll-container"),_.B("design:type",HTMLDivElement)],aX.prototype,"JSC$14607_scrollContainer",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aX.prototype,"dataChanged",null);_.A([_.kO("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aX.prototype,"debouncedUpdateOnResize",null);
aX=_.A([_.U({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],aX);
_.Q(aX,"ytd-merch-shelf-renderer",function(){if(RJD!==void 0)return RJD;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return RJD=r},{mode:2});var vb_;var Xx=function(){var r=_.y.apply(this,arguments)||this;r.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 r};
_.t(Xx,_.y);_.l=Xx.prototype;
_.l.addBackstagePostAction=function(r){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(r=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",r))&&(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:r}):this.set("data.contents",[{backstagePostThreadRenderer:r}]))};
_.l.addBackstageCommentAction=function(r){var f=this.get("addBackstageCommentAction.parentId",r);r=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",r);if(f&&r){f=this.postIdToIndices(f);for(var I=0;I<f.length;I++){var C=f[I];if(C<0)break;C="data.contents."+C+".backstagePostThreadRenderer.comments";this.get(C)&&(this.get(C+".backstageCommentsRenderer.contents")&&this.push(C+".backstageCommentsRenderer.contents",{commentThreadRenderer:r}),this.get(C+".backstageCommentsRenderer.teaserContents")?
this.push(C+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:r}):this.set(C+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:r}]))}}};
_.l.addBackstageReplyAction=function(r){var f=this.get("addBackstageReplyAction.parentId",r);r=this.get("addBackstageReplyAction.renderer.commentRenderer",r);f&&r&&this.setCreatorReply(f,r)};
_.l.banAuthorAction=function(r){var f=this.get("banAuthorAction.commentId",r);f&&(r=this.get("banAuthorAction.parentCommentId",r)||this.getParentPostId(f),this.removeFromStream(f,r))};
_.l.hideReportedCommentAction=function(r){var f=this.get("hideReportedCommentAction.commentId",r);f&&((r=this.get("hideReportedCommentAction.parentCommentId",r))||(r=this.getParentPostId(f)),this.removeFromStream(f,r))};
_.l.replaceBackstageCommentAction=function(r){var f=this.get("replaceBackstageCommentAction.commentId",r),I=this.get("replaceBackstageCommentAction.parentId",r);r=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",r);if(f&&I&&r){I=this.postIdToIndices(I);for(var C=0;C<I.length;C++){var Y=I[C];if(Y<0)break;var V=this.commentIdToIndex(f,Y,!1);if(V>=0){var S=this.get("data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+V+".commentThreadRenderer.replies.commentRepliesRenderer");
S&&(r.replies={commentRepliesRenderer:S});this.splice("data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",V,1,{commentThreadRenderer:r})}V=this.commentIdToIndex(f,Y,!0);if(V>=0){if(S=this.get("data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(V+".commentThreadRenderer.replies.commentRepliesRenderer")))r.replies={commentRepliesRenderer:S};this.splice("data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
V,1,{commentThreadRenderer:r})}}}};
_.l.replaceBackstagePostAction=function(r){var f=this.get("replaceBackstagePostAction.itemId",r);if(f){f=this.postIdToIndices(f);for(var I=0;I<f.length;I++){var C=f[I];if(C<0)break;var Y=this.getPostRendererType(C),V=this.get("replaceBackstagePostAction.renderer."+Y,r);if(!V&&Y!=="sharedPostRenderer")break;var S=!1;V||(S=!0,V=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",r));if(!V)break;var h={};S?(_.nv(h,rJ4,V),this.set("data.contents."+C+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
h)):(_.nv(h,new _.q(Y),V),this.set("data.contents."+C+".backstagePostThreadRenderer.post",h))}}};
_.l.replaceBackstageReplyAction=function(r){var f=this.get("replaceBackstageReplyAction.replyId",r),I=this.get("replaceBackstageReplyAction.parentId",r);r=this.get("replaceBackstageReplyAction.renderer.commentRenderer",r);f&&r&&I&&this.setCreatorReply(I,r)};
_.l.removeCommentAction=function(r){var f=this.get("removeCommentAction.commentId",r);if(f){var I=this.get("removeCommentAction.parentCommentId",r);I&&this.get("removeCommentAction.isCreatorReply",r)?this.setCreatorReply(I,void 0):(I||(I=this.getParentPostId(f)),this.removeFromStream(f,I))}};
_.l.setCreatorReply=function(r,f){var I=this.getParentPostId(r);if(I){I=this.postIdToIndices(I);for(var C=0;C<I.length;C++){var Y=I[C];if(Y<0)break;var V=this.commentIdToIndex(r,Y,!1);if(V>=0){var S="data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+V;V=S+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";S+=".commentThreadRenderer.replies";f==void 0?(this.set(S,{}),this.set(V,!1)):(this.set(S,{commentRepliesRenderer:{teaserContents:[{commentRenderer:f}]}}),
this.set(S+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(V,!0))}V=this.commentIdToIndex(r,Y,!0);V>=0&&(V="data.contents."+Y+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+V,Y=V+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",V+=".commentThreadRenderer.replies",f==void 0?(this.set(V,{}),this.set(Y,!1)):(this.set(V,{commentRepliesRenderer:{teaserContents:[{commentRenderer:f}]}}),this.set(Y,!0)))}}};
_.l.removeFromStream=function(r,f){if(f){f=this.postIdToIndices(f);for(var I=0;I<f.length;I++){var C=f[I];if(C<0)break;var Y=this.commentIdToIndex(r,C,!1);Y>=0&&this.splice("data.contents."+C+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",Y,1);Y=this.commentIdToIndex(r,C,!0);Y>=0&&this.splice("data.contents."+C+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",Y,1);C="data.contents."+C+".backstagePostThreadRenderer.post.backstagePostRenderer";
Y=C+".backstageAttachment.pollRenderer.votedCommentId";this.get(Y)===r&&(this.set(Y,null),this.set(C+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(f=this.postIdToIndices(r).reverse(),I=0;I<f.length;I++){C=f[I];if(C<0)break;Y=this.getPostRendererType(C);var V=this.get("backstagePostThreadRenderer.post."+Y,this.data.contents[C]);V.postId===r?this.splice("data.contents",C,1):Y==="sharedPostRenderer"&&this.set("data.contents."+C+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);V.scheduledPublishTimeSec&&_.Bj(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.l.postIdToIndices=function(r){for(var f=[],I=0;I<this.data.contents.length;I++){var C=this.getPostRendererType(I);this.get("backstagePostThreadRenderer.post."+C+".postId",this.data.contents[I])===r&&f.push(I);if(C==="sharedPostRenderer"){var Y=this.get("backstagePostThreadRenderer.post."+C+".originalPost.backstagePostRenderer.postId",this.data.contents[I]);C=this.get("backstagePostThreadRenderer.post."+C+".originalPost.postRenderer.postId",this.data.contents[I]);Y!==r&&C!==r||f.push(I)}}return f};
_.l.commentIdToIndex=function(r,f,I){if(f<0)return-1;var C,Y,V,S,h=_.F((C=this.data)==null?void 0:(Y=C.contents)==null?void 0:(V=Y[f])==null?void 0:(S=V.backstagePostThreadRenderer)==null?void 0:S.comments,uzV);return(f=I?h==null?void 0:h.teaserContents:h==null?void 0:h.contents)&&f.length?f.findIndex(function(w){return _.F(w,Te4).comment.commentRenderer.commentId===r}):-1};
_.l.getParentPostId=function(r){r=r.split(".");if(r[1])return r[0]};
_.l.getPostRendererType=function(r){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[r])?"sharedPostRenderer":"backstagePostRenderer"};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Xx.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Xx.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Xx.prototype,"data",void 0);Xx=_.A([_.U({disableElementRegistration:!0,is:"ytd-backstage-items"})],Xx);
_.Q(Xx,"ytd-backstage-items",function(){if(vb_!==void 0)return vb_;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return vb_=
r},{mode:1});var KPs;_.wm({is:"ytd-comments",_template:function(){if(KPs!==void 0)return KPs;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return KPs=r},
behaviors:[_.X3K.YtHostElementBehavior,_.iQ.YtPlayerListenerBehavior,_.D.YtRendererBehavior,_.o_.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,
value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)",
"headerChanged_(data.header)"],created:function(){this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_()},
contentsChanged_:function(r){r&&r.value&&r.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(r){r&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.al("wn_comments");var r=_.t1();r&&_.gX({clientScreenNonce:r},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(r){r=UEP(r);var f,I,C;if(r=(f=r)==null?void 0:(I=f.createCommentAction)==null?void 0:(C=I.contents)==null?void 0:C.commentThreadRenderer){var Y,V,S,h,w,n;!this.isBackstage&&((Y=this.data)==null?0:(V=Y.header)==null?0:(S=V.commentsHeaderRenderer)==null?0:(h=S.createRenderer)==null?0:(w=h.commentSimpleboxRenderer)==null?0:(n=w.zeroStep)==null?0:n.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var d,z,g,X;this.isBackstage&&((d=this.data)==null?0:(z=d.header)==null?0:(g=z.commentsHeaderRenderer)==null?0:(X=g.zeroStateMessage)==null?0:X.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(r)}},
doReplyInsert_:function(r,f,I,C){C?this.splice(r,C,0,f):this.push(r,f)},
getRepliesPath_:function(r){return"data.contents."+r+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(r,f){r=this.getRepliesPath_(r);return f?r+".commentRepliesRenderer.teaserContents":r+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(r){r=UEP(r);var f,I,C=(f=r)==null?void 0:(I=f.createCommentReplyAction)==null?void 0:I.parentCommentId,Y,V;if(f=(Y=r)==null?void 0:(V=Y.createCommentReplyAction)==null?void 0:V.contents)if(C=this.commentIdToIndex_(C),!(C<0))if(Y=this.getRepliesPath_(C),this.get(Y)){var S,h;r=(S=r)==null?void 0:(h=S.createCommentReplyAction)==null?void 0:h.replyToCommentId;S=this.getRepliesContentsPath_(C,!1);this.get(S)&&(h=this.get(S).length,Y=S+"."+(h-1)+".continuationItemRenderer",
this.get(Y+".button")?(Y=this.replyIdToIndex_(r,C,!1),this.doReplyInsert_(S,f,Y,h-1)):this.get(Y)||(h=this.replyIdToIndex_(r,C,!1),this.doReplyInsert_(S,f,h,null)));S=this.getRepliesContentsPath_(C,!0);this.get(S)?(C=this.replyIdToIndex_(r,C,!0),(!r||C>=0)&&this.doReplyInsert_(S,f,C,null)):this.set(S,[f])}else this.set(Y,{commentRepliesRenderer:{teaserContents:[f]}})},
hideReportedCommentAction_:function(r){var f,I=r==null?void 0:(f=r.hideReportedCommentAction)==null?void 0:f.commentId;if(I){var C;r=r==null?void 0:(C=r.hideReportedCommentAction)==null?void 0:C.parentCommentId;I=I.replace("#",".");r||(r=this.getParentCommentId_(I));this.remove_(I,r)}},
getParentCommentId_:function(r){r=r.split(".");if(r[1])return r[0]},
removeCommentAction_:function(r){var f,I=r==null?void 0:(f=r.removeCommentAction)==null?void 0:f.commentId;if(I){var C;r=r==null?void 0:(C=r.removeCommentAction)==null?void 0:C.parentCommentId;I=I.replace("#",".");r||(r=this.getParentCommentId_(I));this.remove_(I,r)}},
pinCommentAction_:function(r){r=UEP(r);var f,I,C=(f=r)==null?void 0:(I=f.pinCommentAction)==null?void 0:I.commentId;C&&(r=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",r))&&(this.remove_(C),this.insert_(r,!0))},
unpinCommentAction_:function(r){r=UEP(r);var f,I,C=(f=r)==null?void 0:(I=f.unpinCommentAction)==null?void 0:I.commentId;if(C){var Y,V,S;if(r=(Y=r.unpinCommentAction)==null?void 0:(V=Y.actionResult)==null?void 0:(S=V.update)==null?void 0:S.commentThreadRenderer)this.remove_(C),this.insert_(r)}},
banAuthorAction_:function(r){var f,I=r==null?void 0:(f=r.banAuthorAction)==null?void 0:f.commentId;if(I){var C;r=r==null?void 0:(C=r.banAuthorAction)==null?void 0:C.parentCommentId;I=I.replace("#",".");r||(r=this.getParentCommentId_(I));this.remove_(I,r)}},
commentIdToIndex_:function(r){var f;return r&&(f=this.data)!=null&&f.contents?this.data.contents.findIndex(function(I){var C,Y;return r===((I==null?void 0:(C=I.commentThreadRenderer)==null?void 0:C.commentViewModel)&&((Y=_.F(I.commentThreadRenderer.commentViewModel,mB4))==null?void 0:Y.commentId))}):-1},
insert_:function(r,f){var I,C;if((I=this.data)==null?0:(C=I.contents)==null?0:C.some(function(V){return!(V==null||!V.commentThreadRenderer)}))for(I=0,C=this.data.contents.length;I<C;I++){var Y=this.data.contents[I].commentThreadRenderer;
if(this.RenderingPriority[r.renderingPriority]>=this.RenderingPriority[Y.renderingPriority]){f&&this.RenderingPriority[r.renderingPriority]==this.RenderingPriority[Y.renderingPriority]?this.splice("data.contents",I,1,{commentThreadRenderer:r}):this.splice("data.contents",I,0,{commentThreadRenderer:r});break}}else this.set("data.contents",[{commentThreadRenderer:r}])},
doReplyRemove_:function(r,f,I){r=this.replyIdToIndex_(r,f,I);r<0||(f=this.getRepliesContentsPath_(f,I),this.splice(f,r,1))},
remove_:function(r,f){f=this.commentIdToIndex_(f);f<0?(f=this.commentIdToIndex_(r),f<0||this.splice("data.contents",f,1)):(this.doReplyRemove_(r,f,!1),this.doReplyRemove_(r,f,!0))},
replyIdToIndex_:function(r,f,I){if(f<0)return-1;f=this.getRepliesContentsPath_(f,I);f=this.get(f);if(!f||!f.length)return-1;I=0;for(var C=f.length;I<C;I++){var Y=void 0,V=void 0;if(((Y=f[I])==null?void 0:(V=Y.commentViewModel)==null?void 0:V.commentId)===r)return I}return-1},
computeIsBackstage_:function(r){return!!r},
tickForCommentsTimer_:function(r){_.No(r,void 0,"wn_comments")},
reloadComments_:function(r){r&&r.reloadCommentsCommand&&r.reloadCommentsCommand.command&&r.reloadCommentsCommand.command.continuationCommand&&_.Do(this,[r.reloadCommentsCommand.command])}});var NH=function(){return _.rm.apply(this,arguments)||this};
_.t(NH,_.rm);_.l=NH.prototype;_.l.bindIf=function(r,f,I){return r?f:I};
_.l.bindIfDefined=function(r,f){return r!==void 0?r:f};
_.l.booleanString=function(r){return(!!r).toString()};
_.l.equals=function(){for(var r=_.XE.apply(0,arguments),f=r[0],I=1;I<r.length;I++)if(f!=r[I])return!1;return!0};
_.l.isGreaterThan=function(r,f){return r>f};
_.l.isLessThan=function(r,f){return r<f};
_.l.logicalAND=function(){for(var r=_.XE.apply(0,arguments),f=!!r[0],I=1;I<r.length;I++)f=f&&!!r[I];return f};
_.l.logicalOR=function(){for(var r=_.XE.apply(0,arguments),f=!!r[0],I=1;I<r.length;I++)f=f||!!r[I];return f};
_.l.toBool=function(r){return!!r};
NH.prototype.toBool=NH.prototype.toBool;NH.prototype.logicalOR=NH.prototype.logicalOR;NH.prototype.logicalAND=NH.prototype.logicalAND;NH.prototype.isLessThan=NH.prototype.isLessThan;NH.prototype.isGreaterThan=NH.prototype.isGreaterThan;NH.prototype.equals=NH.prototype.equals;NH.prototype.booleanString=NH.prototype.booleanString;NH.prototype.bindIfDefined=NH.prototype.bindIfDefined;NH.prototype.bindIf=NH.prototype.bindIf;NH=_.A([_.fx()],NH);_.yjq=[NH.prototype];var UO_;var sU3;var $R=function(){return _.y.apply(this,arguments)||this};
_.t($R,_.y);$R.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
$R.prototype.onBackIconTap_=function(){window.history.back()};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],$R.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],$R.prototype,"data",void 0);$R=_.A([_.zX({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],$R);
_.Q($R,"yt-header-with-back-renderer",function(){if(sU3===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;UO_===void 0&&(UO_=document.createElement("template"));var C=UO_;I.call(f,C.content.cloneNode(!0),r.content.firstChild);sU3=r}r=sU3;return r},{mode:2});var Oa8;var obV;var Fx=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return r};
_.t(Fx,_.y);_.l=Fx.prototype;_.l.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.l.onDarkModeToggledAction=function(r){r!==this.isDarkTheme&&(this.isDarkTheme=r,this.setUrl())};
_.l.dataChanged=function(){var r=this;if(this.data){var f=this.setUrl();f&&_.BM({destination:window,iframe:this.iframe,origin:_.rg3(f.toString()),channelName:"yt-iframe",onMessage:function(I){(I=r.getCommunicationCommand(I.data))&&r.ytComponentBehavior.resolveCommand(I)},
onEstablished:function(){}})}};
_.l.setUrl=function(){if(this.data&&this.data.iframeUrl){var r=_.PW(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(r)return _.LK(this.iframe,r),r}};
_.l.getCommunicationCommand=function(r){var f;if((f=this.data)!=null&&f.onCommunicationCommandsMap){f=this.data.onCommunicationCommandsMap.find(function(Y){return Y.key===r});
if(f==null?0:f.value)return f==null?void 0:f.value;try{var I=G$q(_.MT(r)),C=this.data.onCommunicationCommandsMap.find(function(Y){return Y.key===(I==null?void 0:_.Tb(I,1))});
if(C==null?0:C.value)return C==null?void 0:C.value}catch(Y){}}};
Fx.prototype.dataChanged=Fx.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Fx.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Fx.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Fx.prototype,"actionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Fx.prototype,"data",void 0);
_.A([_.K({value:!1}),_.B("design:type",Boolean)],Fx.prototype,"isDarkTheme",void 0);_.A([_.uA("#iframe"),_.B("design:type",HTMLIFrameElement)],Fx.prototype,"iframe",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fx.prototype,"dataChanged",null);Fx=_.A([_.zX({is:"yt-iframe-renderer",disableElementRegistration:!0})],Fx);
_.Q(Fx,"yt-iframe-renderer",function(){if(obV===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;Oa8===void 0&&(Oa8=document.createElement("template"));var C=Oa8;I.call(f,C.content.cloneNode(!0),r.content.firstChild);obV=r}r=obV;return r},{mode:2});_.PT=function(r){_.Mu.call(this);this.callback=r;this.bezier=new js4(0,0,.4,0,.2,1,1,1);this.delay=new _.Aq(this.next,window,this);this.JSC$14638_animating=!1;_.V$(this,this.delay)};
_.t(_.PT,_.Mu);_.PT.prototype.isAnimating=function(){return this.JSC$14638_animating};
_.PT.prototype.start=function(r,f,I){this.config={from:r,to:f,duration:I,startTime:(0,_.Ad)()};this.JSC$14638_animating=!0;this.next()};
_.PT.prototype.stop=function(){this.delay.stop();this.JSC$14638_animating=!1;this.config=void 0};
_.PT.prototype.next=function(){if(this.config){var r=this.config,f=r.from,I=r.to,C=r.duration;r=r.startTime;var Y=(0,_.Ad)()-r;r=this.bezier;C=ixB(r,Y/C);if(C==0)r=r.y0;else if(C==1)r=r.y3;else{Y=ge(r.y0,r.y1,C);var V=ge(r.y1,r.y2,C);r=ge(r.y2,r.y3,C);Y=ge(Y,V,C);V=ge(V,r,C);r=ge(Y,V,C)}r=_.my(r,0,1);this.callback(f+(I-f)*r);r<1?this.delay.start():this.JSC$14638_animating=!1}};_.t4=new _.Go("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var QU4={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},ZaB=function(r,f,I,C){_.Mu.call(this);this.JSC$14646_miniAppId=r;this.localReleaseId=f;this.derivedDeviceInterface=I;this.isForeground=C;this.JSC$14646_playNonceResolver=new _.uX;this.playPingTimerId=NaN;this.playPingIntervalMs=_.Bw("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.Bw("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.N("enable_displaying_ppn");this.JSC$14646_miniAppClientDataProvider=_.a().resolve(_.t4);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;Ajg(this);var Y=setTimeout(function(){_.t7(new _.nf("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14646_playNonceResolver.promise.then(function(){clearTimeout(Y)})};
_.t(ZaB,_.Mu);var kPB=function(r,f){r.JSC$14646_playNonceResolver.resolve(f!=null?f:Ny(8));r.enableDisplayingPpn&&GPg(r).then(function(I){r.JSC$14646_miniAppClientDataProvider.clientData.set("post_play_nonce",I)})},GPg=function(r){return _.x(function(f){return f.nextAddress==1?_.b(f,r.JSC$14646_playNonceResolver.promise,2):f.return(f.yieldResult)})},Ajg=function(r){var f,I;
_.x(function(C){if(C.nextAddress==1)return _.b(C,r.JSC$14646_playNonceResolver.promise,2);f=C.yieldResult;I={miniAppInfo:{externalPostId:r.JSC$14646_miniAppId,localReleaseId:r.localReleaseId,postPlayNonce:f,derivedDeviceInterface:r.derivedDeviceInterface}};_.gX(I);_.wO(C)})},q2D=function(r){r.state!==0?_.t7(new _.nf("[MiniAppPlayLogger] recordPlayStart failed with state "+QU4[r.state])):(r.state=1,T_(r,"ma_cl"),cT(r,"PLAY_EVENT_TYPE_PLAY_START"),BT8(r))},uyT=function(r){r.isForeground=!1;
cT(r,"PLAY_EVENT_TYPE_PLAY_PAUSE")},DOT=function(r){r.state!==1&&r.state!==2?_.t7(new _.nf("[MiniAppPlayLogger] recordPlayEnd failed with state "+QU4[r.state])):(r.state=3,window.clearInterval(r.playPingTimerId),r.playPingTimerId=NaN,drl(),cT(r,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},rE3=function(r,f){r.state===2&&r.gameReady&&(r.firstClickRecorded?Date.now()-r.clickRecordedMs<r.playClickIntervalMs||(r.clickRecordedMs=Date.now(),cT(r,"PLAY_EVENT_TYPE_PLAY_CLICK")):f&&(T_(r,"ma_fua"),cT(r,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),r.firstClickRecorded=!0,r.clickRecordedMs=Date.now()))};
ZaB.prototype.logError=function(r){var f=this,I;_.x(function(C){if(C.nextAddress==1)return r.metadata.externalPostId=f.JSC$14646_miniAppId,I=r.metadata,_.b(C,Promise.race([f.JSC$14646_playNonceResolver.promise,new Promise(function(Y){setTimeout(function(){Y("")},3E4)})]),2);
I.postPlayNonce=C.yieldResult;r.metadata.localReleaseId=f.localReleaseId;r.loggingError.level="WARNING";_.Fo(r.loggingError,r.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:r.metadata});_.wO(C)})};
var fXC=function(r,f,I,C){var Y,V,S,h,w,n;_.x(function(d){if(d.nextAddress==1)return _.b(d,r.JSC$14646_playNonceResolver.promise,2);Y=d.yieldResult;V={externalPostId:r.JSC$14646_miniAppId,localReleaseId:r.localReleaseId,postPlayNonce:Y,sdkVersion:I,api:f};C!==void 0&&(V.networkRequestsMeasurement={networkRequests:_.u3(C,1),cachedRequests:_.u3(C,2),transferredBytes:_.u3(C,3)},(S=C)==null?0:_.nD(S,AP,6))&&(V.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((h=_.kB(C,
AP,6))==null?void 0:WM(h,1))||"0",cacheHits:((w=_.kB(C,AP,6))==null?void 0:WM(w,2))||"0",cachedBytes:((n=_.kB(C,AP,6))==null?void 0:WM(n,3))||"0"});_.NW("miniAppSdkUsage",V);_.wO(d)})},CPs=function(r,f,I){var C,Y,V,S,h,w,n,d,z,g,X,P,W,m,v,O;
_.x(function(k){if(k.nextAddress==1)return _.b(k,r.JSC$14646_playNonceResolver.promise,2);C=k.yieldResult;Y={externalPostId:r.JSC$14646_miniAppId,localReleaseId:r.localReleaseId,postPlayNonce:C,sdkVersion:I,measurementWindow:{startTimestampMs:String(PM(f,1)),endTimestampMs:String(PM(f,2))},frameRate:{averageFrameTimeDeltaMs:ts(f,3),averageFrameIdleTimeMs:ts(f,4)}};_.nD(f,Z4,5)&&(Y.networkRequests={networkRequests:(V=ra(f))==null?void 0:_.u3(V,1),cachedRequests:(S=ra(f))==null?void 0:_.u3(S,2),transferredBytes:(h=
ra(f))==null?void 0:_.u3(h,3),sameOriginStatusCodeToCounts:IXU((w=ra(f))==null?void 0:fpm(w,4)),crossOriginStatusCodeToCounts:IXU((n=ra(f))==null?void 0:fpm(n,5))},(d=ra(f))==null?0:_.nD(d,AP,6))&&(Y.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((z=ra(f))==null?void 0:(g=_.kB(z,AP,6))==null?void 0:WM(g,1))||"0",cacheHits:((X=ra(f))==null?void 0:(P=_.kB(X,AP,6))==null?void 0:WM(P,2))||"0",cachedBytes:((W=ra(f))==null?void 0:(m=_.kB(W,AP,6))==null?void 0:WM(m,3))||"0"});_.nD(f,
GW4,7)&&(Y.gameCapture={averageFrameTimeDeltaMs:(v=_.kB(f,GW4,7))==null?void 0:ts(v,1),averageFrameIdleTimeMs:(O=_.kB(f,GW4,7))==null?void 0:ts(O,2)});_.NW("miniAppPerformanceMetrics",Y);_.wO(k)})},YzT=function(r,f,I){var C,Y;
return _.x(function(V){if(V.nextAddress==1)return _.b(V,r.JSC$14646_playNonceResolver.promise,2);C=V.yieldResult;Y={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:r.JSC$14646_miniAppId,postPlayNonce:C,miniAppReleaseId:r.localReleaseId},derivedDeviceInterface:r.derivedDeviceInterface,adTriggerType:f};Y.rejectedReason=I||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.NW("miniAppAdEvent",Y);_.wO(V)})};
ZaB.prototype.disposeInternal=function(){_.Mu.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var cT=function(r,f,I,C){I=I===void 0?{}:I;C=C===void 0?!1:C;var Y,V,S,h;_.x(function(w){if(w.nextAddress==1)return Y=r.isForeground,V=r.beforeReady,_.b(w,r.JSC$14646_playNonceResolver.promise,2);S=w.yieldResult;h={externalPostId:r.JSC$14646_miniAppId,localReleaseId:r.localReleaseId,derivedDeviceInterface:r.derivedDeviceInterface,postPlayNonce:S,type:f};I.sequenceGroup=S;h.playState=V?"PLAY_STATE_NOT_READY":Y?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.NW("miniAppPlayEvent",h,I);
C&&_.$l();_.wO(w)})},T_=function(r,f){var I;
_.x(function(C){if(C.nextAddress==1)return I=(0,_.Ad)(),_.b(C,r.JSC$14646_playNonceResolver.promise,2);_.Xc(f,I);_.wO(C)})},BT8=function(r){isNaN(r.playPingTimerId)&&(r.playPingTimerId=_.ff(function(){r.state!==1&&r.state!==2?_.t7(new _.nf("[MiniAppPlayLogger] reportPlayPing failed with state "+QU4[r.state])):cT(r,"PLAY_EVENT_TYPE_PLAY_PING")},r.playPingIntervalMs))},IXU=function(r){return Array.from(r.entries()).map(function(f){var I=_.E(f);
f=I.next().value;I=I.next().value;return{key:f,value:I}})};var lXB=_.Bw("show_mini_app_ad_frequency_cap_ms",0),V73=function(){this.showAdIntervalMs=lXB;this.isRateLimited=!0},EQg=function(r,f){setTimeout(function(){return r.isRateLimited=!1},r.showAdIntervalMs);
r.showMiniAppAdCommand=f.showMiniAppAdCommand;r.isEmbeddedInWebview=f.isEmbeddedInWebview;r.playLogger=f.playLogger},xxq=function(r,f){var I;
return _.x(function(C){if(C.nextAddress==1){if(!r.showMiniAppAdCommand||!r.isEmbeddedInWebview)return C.return(Szg(r,f,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(r.isRateLimited)return C.return(Szg(r,f,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));r.adResolver=new _.uX;I=ncq(new pzX,f);RV(r.showMiniAppAdCommand,dJ3(I));r.isRateLimited=!0;setTimeout(function(){return r.isRateLimited=!1},r.showAdIntervalMs);
return _.b(C,r.adResolver.promise,2)}return C.return(C.yieldResult)})};
V73.prototype.onAdFinished=function(r){r=tQ_(r);var f;(f=this.adResolver)==null||f.resolve(r)};
var Szg=function(r,f,I){var C;return _.x(function(Y){if(Y.nextAddress==1)Y=_.b(Y,(C=r.playLogger)==null?void 0:YzT(C,ZCP(f),I),2);else{var V=Y.return;var S=new PO8;S=_.Bd(S,1,2);Y=V.call(Y,S)}return Y})};var hws=new _.Go("INNERTUBE_MANAGER_TOKEN");var w$4=function(){this.callbacks={}};
w$4.prototype.initialize=function(r){var f=this;this.callbacks=r;window.youtubewebview?window.youtubewebview.onmessage=function(I){b58(f,I)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(I){b58(f,I)})};
var b58=function(r,f){if(f.data)try{var I=G$q(f.data);if(_.yV(_.pD(I,1))!=null){var C=Ecg(_.Tb(I,2));switch(_.Tb(I,1)){case "yt-mini-app-load-audio-state":var Y,V;(V=(Y=r.callbacks).onAudioStateLoaded)==null||V.call(Y,_.Fz(C,wp(C,P_,1)));break;case "yt-mute-mini-app":var S,h;(h=(S=r.callbacks).onMuteMiniApp)==null||h.call(S);break;case "yt-unmute-mini-app":var w,n;(n=(w=r.callbacks).onUnmuteMiniApp)==null||n.call(w);break;case "yt-playable-exit":var d,z;(z=(d=r.callbacks).onExit)==null||z.call(d);
break;case "yt-post-play-nonce":var g,X;(X=(g=r.callbacks).onPostPlayNonceReceived)==null||X.call(g,LD(C,2,P_));break;case "yt-confirm-exit-mini-app":var P,W;(W=(P=r.callbacks).confirmExitMiniApp)==null||W.call(P);break;case "yt-confirm-exit-mini-app-edu":var m,v;(v=(m=r.callbacks).confirmExitMiniAppEdu)==null||v.call(m);break;case "yt-benchmarking-response":var O,k;(k=(O=r.callbacks).onNativeBenchmarkingMessageReceived)==null||k.call(O,LD(C,2,P_));break;case "yt-mini-app-load-3p-consent-state":var Z,
Cw;(Cw=(Z=r.callbacks).multiplayer3pAckStateLoaded)==null||Cw.call(Z,_.Fz(C,wp(C,P_,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var rR,EP;(EP=(rR=r.callbacks).exitMiniAppSeenStateLoaded)==null||EP.call(rR,_.Fz(C,wp(C,P_,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Pu,Wu;(Wu=(Pu=r.callbacks).onNavigateToNewMiniApp)==null||Wu.call(Pu);break;case "yt-game-data-available":var cu,OP;(OP=(cu=r.callbacks).onGameDataAvailable)==null||OP.call(cu,LD(C,2,P_));break;case "yt-pause-mini-app":var iU,
oR;(oR=(iU=r.callbacks).onPauseMiniApp)==null||oR.call(iU);break;case "yt-resume-mini-app":var vu,wB;(wB=(vu=r.callbacks).onResumeMiniApp)==null||wB.call(vu);break;case "yt-playable-ad-finished":var qT,gB;(gB=(qT=r.callbacks).onAdFinished)==null||gB.call(qT,LD(C,2,P_))}}else _.t7(Error("Rh"))}catch(C8){_.Fo(Error("Sh"))}else _.t7(Error("Th"))};var k0E=function(r){this.rpcErrorCode=r};var WT=function(r,f,I){this.intervalMs=r;this.apiFunc=f;this.type=I;this.schedulerReady=!0};
WT.prototype.call=function(r){var f=this,I;return _.x(function(C){if(C.nextAddress==1){if(f.type!==1&&r===f.cachedValue)return C.return();f.pendingApiRequestResolver||(f.pendingApiRequestResolver=new _.uX);I=f.pendingApiRequestResolver.promise;f.cachedValue=r;return _.b(C,p$3(f),2)}return C.return(I)})};
WT.prototype.flush=function(r){r=r===void 0?!1:r;var f=this;return _.x(function(I){return f.cachedValue===void 0?I.return():_.b(I,f.apiFunc(f.cachedValue,r),0)})};
var p$3=function(r){var f,I,C;return _.x(function(Y){switch(Y.nextAddress){case 1:if(!r.schedulerReady||!r.pendingApiRequestResolver)return Y.return();r.schedulerReady=!1;f=r.pendingApiRequestResolver;r.pendingApiRequestResolver=void 0;_.l_(Y,2);if(r.cachedValue===void 0){Y.jumpTo(4);break}return _.b(Y,r.apiFunc(r.cachedValue),5);case 5:I=Y.yieldResult,f.resolve(I);case 4:_.Hd(Y,3);break;case 2:C=_.ha(Y),f.reject(C);case 3:setTimeout(function(){return _.x(function(V){r.schedulerReady=!0;return _.b(V,
p$3(r),0)})},r.intervalMs),_.wO(Y)}})};var ueR=window.location.origin+"/miniapp_cloudsaves",BCd=[400,401],nQs=_.Bw("cloud_save_game_data_rate_limit_ms",3E3),M78=function(r){var f=this;this.JSC$14690_miniAppId=r;this.loadAttempts=0;this.cloudSaveIntervalMs=nQs;this.initialDownloadDataSucceeded=!1;this.JSC$14690_playNonceResolver=new _.uX;this.scottyUploadRateLimiter=new WT(this.cloudSaveIntervalMs,function(I,C){return dxT(f,I,C)},2);
this.downloadDataPromise=zwg(this);this.downloadDataPromise.then(function(){f.initialDownloadDataSucceeded=!0}).catch(function(){})},gQs=function(r,f){f.then(function(I){return r.JSC$14690_playNonceResolver.resolve(I)})},aXD=function(r){return _.x(function(f){return r.cachedData===void 0?f.return(r.downloadDataPromise):f.return(r.cachedData)})},X$C=function(r,f){return _.x(function(I){r.cachedData=f;
if(!r.initialDownloadDataSucceeded)throw Error("Uh");return _.b(I,r.scottyUploadRateLimiter.call(f),0)})},NEB=function(){return new Promise(function(r){setTimeout(r,1E3,"")})},$xX=function(r,f){var I,C;
return _.x(function(Y){if(Y.nextAddress==1)return I=r.JSC$14690_miniAppId,_.b(Y,Promise.race([r.JSC$14690_playNonceResolver.promise,NEB()]),2);C={"X-YouTube-MiniAppId":I,"X-YouTube-PostPlayNonce":Y.yieldResult};"DELEGATED_SESSION_ID"in _.cw&&Q6K(f,C);return Y.return(C)})},dxT=function(r,f,I){I=I===void 0?!1:I;
return _.x(function(C){return G0E()?_.N("enable_cloud_save_error_popup_after_retry")?C.return(new Promise(function(Y,V){var S,h,w,n,d;return _.x(function(z){switch(z.nextAddress){case 1:S=0,h=!0,n=w=null;case 2:if(!(h&&S++<2)){z.jumpTo(4);break}_.l_(z,5);return _.b(z,FzB(r,f,I),7);case 7:w=z.yieldResult;h=w.ok?!1:!BCd.includes(w.status);_.Hd(z,2);break;case 5:n=d=_.ha(z);h=qx$(n);z.jumpTo(2);break;case 4:w?w.ok?(Lg(r,nQs),Y()):(Lg(r,r.cloudSaveIntervalMs*2),V(Error("Vh`"+String(w.status),{cause:{rpcErrorCode:w.status}}))):
(Lg(r,r.cloudSaveIntervalMs*2),V(n||Error("Wh"))),_.wO(z)}})})):C.return(new Promise(function(Y,V){var S,h;
return _.x(function(w){if(w.nextAddress==1){if(r.JSC$14690_miniAppId==="")return V(Error("Xh")),w.return();_.l_(w,2);return _.b(w,FzB(r,f,I),4)}if(w.nextAddress!=2)return S=w.yieldResult,S.ok?(Lg(r,nQs),Y()):(Lg(r,r.cloudSaveIntervalMs*2),V(Error("Vh`"+String(S.status),{cause:{rpcErrorCode:S.status}}))),_.Hd(w,0);h=_.ha(w);Lg(r,r.cloudSaveIntervalMs*2);V(h);_.wO(w)})})):C.return()})},FzB=function(r,f,I){I=I===void 0?!1:I;
var C,Y,V;return _.x(function(S){if(S.nextAddress==1)return C=_.Dp((new TextEncoder).encode(f)),Y=DEU(),_.b(S,$xX(r,Y),2);V=S.yieldResult;return S.return(fetch(Y,{method:"POST",body:new Blob([C]),headers:V,keepalive:I}))})},zwg=function(r){var f,I;
return _.x(function(C){if(C.nextAddress==1){if(!G0E())return C.return("");if(r.JSC$14690_miniAppId==="")throw Error("Xh");if(r.loadAttempts>2)return C.return(r.downloadDataPromise);_.l_(C,2);return _.b(C,PPU(r),4)}if(C.nextAddress!=2)return f=C.yieldResult,C.return(f);I=_.ha(C);if(qx$(I)&&++r.loadAttempts<2)return C.return(zwg(r));throw I;})},PPU=function(r){var f,I,C,Y,V;
return _.x(function(S){switch(S.nextAddress){case 1:return _.l_(S,2),f=DEU(),_.b(S,$xX(r,f),4);case 4:return I=S.yieldResult,_.b(S,fetch(f,{method:"GET",headers:I}),5);case 5:return C=S.yieldResult,C.ok?_.b(S,C.text(),6):S.return(Promise.reject(Error("Yh`"+String(C.status),{cause:new k0E(C.status)})));case 6:return Y=S.yieldResult,S.return((new TextDecoder).decode(_.MT(Y)));case 2:return V=_.ha(S),S.return(Promise.reject(V))}})},Lg=function(r,f){r.cloudSaveIntervalMs=f;
r.scottyUploadRateLimiter.intervalMs=r.cloudSaveIntervalMs};
M78.prototype.flush=function(){var r=this;return _.x(function(f){return r.initialDownloadDataSucceeded?_.b(f,r.scottyUploadRateLimiter.flush(!0),0):f.return()})};var t73=uN(qs(1),k7(1)),TEC=uN(qs(1),k7(3)),mf=function(r){this.callbacks=r};
_.l=mf.prototype;_.l.onAudioToggled=function(r,f){(f===void 0||f)&&_.Ch("yt-mini-app-is-audio-enabled",r,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 rO$=function(r,f,I){this.callbacks=r;var C=this;this.sdkVersion=new _.uX;this.channel=new hl_(_.BM({destination:window,iframe:f,origin:(new URL(I.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var Y=ek;var V=qs(5);var S=new HG8;S=_.eg(S,1,1E4);V=_.Y1(V,4,OGV,S);Y(C,V);C.onAudioToggled(C.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){C.sdkVersion.resolve("")},1E4)};
_.t(rO$,mf);_.l=rO$.prototype;_.l.onAudioToggled=function(r,f){mf.prototype.onAudioToggled.call(this,r,f===void 0?!0:f);f=ek;var I=qs(2),C=new JF4;r=_.IZ(C,1,r);r=_.Y1(I,3,OGV,r);f(this,r)};
_.l.onPause=function(){mf.prototype.onPause.call(this);ek(this,qs(3))};
_.l.onResume=function(){mf.prototype.onResume.call(this);ek(this,qs(4))};
_.l.returnNativeBenchmarkingMessage=function(r){var f=ek,I=qs(6);var C=k7(_.nD(r,Oo,1)?1:2);r=_.nD(r,Oo,1)?r:null;C=_.Y1(C,5,Bq,r);f(this,uN(I,C))};
_.l.sendGameData=function(r){var f=ek,I=qs(7);r=_.Y1(I,5,OGV,r);f(this,r)};
_.l.sendStartGameFrameCapture=function(){ek(this,qs(9))};
var J4=function(r,f,I){var C,Y,V;return _.x(function(S){if(S.nextAddress==1)return C=r.callbacks,Y=C.onSdkCalled,V=f,_.b(S,r.sdkVersion.promise,2);Y.call(C,V,S.yieldResult,I);_.wO(S)})};
rO$.prototype.onMessage=function(){var r=this;return puq(fl,function(f){var I,C,Y,V,S,h,w,n,d,z,g,X,P,W,m,v,O,k,Z,Cw,rR,EP,Pu,Wu,cu,OP,iU,oR,vu,wB,qT,gB,C8,Es,J_,xC,r2,F9,SK,FX,iV,s7,W4,Qq,Gs,$C;return _.x(function(kq){switch(kq.nextAddress){case 1:if(!uC3(f.data))return _.t7(Error("Zh")),kq.return();I=_.cM(f.data,1);_.N("enable_iframe_message_get_type_via_fields")&&(C=f.data,I=Y=_.cM(C,1));switch(I){case 8:if(f.data.hasMetadata()){var XX=r.sdkVersion,hU=XX.resolve;var P4=f.data.getMetadata();P4=
_.Tb(P4,1);hU.call(XX,P4);clearTimeout(r.sdkVersionTimeoutId)}break;case 6:return kq.jumpTo(2);case 16:if(!_.dh(f.data,AF4,14,Ix))return kq.return();V=_.mt(f.data,AF4,14,Ix);(h=(S=r.callbacks).onGameFrameReceived)==null||h.call(S,V);return kq.return();case 17:if(!_.dh(f.data,Qp3,15,Ix))return kq.return();(n=(w=r.callbacks).onGameAudioReceived)==null||n.call(w,_.mt(f.data,Qp3,15,Ix));return kq.return();case 1:if(XX=_.mt(f.data,vwg,2,Ix))switch(_.cM(XX,1)){case 1:r.callbacks.onFirstFrameReady();if(_.N("enable_network_request_logging_on_game_events")&&
_.nD(XX,Z4,4)){J4(r,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.kB(XX,Z4,4));break}J4(r,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(P4=(hU=r.callbacks).onGameReady)==null||P4.call(hU);if(_.N("enable_network_request_logging_on_game_events")&&_.nD(XX,Z4,4)){J4(r,"MINI_APP_SDK_API_GAME_READY",_.kB(XX,Z4,4));break}J4(r,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.dh(XX,Gd,3,KyB))r.callbacks.onResourceLoaded(_.mt(XX,Gd,3,KyB))}return kq.return();case 3:return kq.jumpTo(3);case 4:return kq.jumpTo(4);
case 2:return kq.jumpTo(5);case 9:return kq.jumpTo(6);case 10:return r.callbacks.onClick(),kq.return();case 5:return kq.jumpTo(7);case 11:if(!_.dh(f.data,oE,9,Ix))return kq.return();d=_.mt(f.data,oE,9,Ix);(g=(z=r.callbacks).onBenchmarkingMessageReceived)==null||g.call(z,d);XX=f.reply;hU=qs(1);P4=k7(1);var N6=new oE;var hg=new Uint8Array(jnR(d,wp(d,cF4,6))|0);N6=Vy(N6,5,cF4,_.Os(hg,!1));P4=_.Y1(P4,5,Bq,N6);XX.call(f,uN(hU,P4));return kq.return();case 12:return kq.jumpTo(8);case 13:return kq.jumpTo(9);
case 15:if(!_.N("enable_open_yt_content"))return f.reply(TEC),kq.return();if(!_.dh(f.data,owq,12,Ix))return f.reply(uN(qs(1),k7(2))),kq.return();XX=_.mt(f.data,owq,12,Ix);X=_.Tb(XX,1);r.callbacks.onOpenYTContent(X);f.reply(t73);return kq.return();case 14:return kq.jumpTo(10);default:return kq.return()}kq.jumpTo(0);break;case 2:if(!_.dh(f.data,D4,5,Ix))return kq.return();hU=f.data;XX=wp(hU,Ix,5);hU=hU.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(XX=mo(hU,hU[_.L8]|0,D4,XX))||(XX=D4[QV])||
(XX=new D4,j3(XX.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),XX=D4[QV]=XX);P=XX;XX=_.Bk(P,Qm,1,_.qS());W=_.E(XX);m=W.next();case 12:if(m.done){kq.jumpTo(14);break}v=m.value;O=new _.nf;O.level=_.cM(v,2)===1?"WARNING":"ERROR";k=Igd(v.getSource());return _.b(kq,r.sdkVersion.promise,15);case 15:Z={source:k,sdkVersion:kq.yieldResult};_.F3(_.pD(v,6))!=null?(O.message=v.getMessage(),O.stack=_.Tb(v,5),Z.sdkErrorType=C8B(_.cM(v,6)),_.F3(_.pD(v,7))!=null&&(Z.sdkApi=Y3R(_.cM(v,7)))):O.stack=void 0;
rR=Cw=void 0;(rR=(Cw=r.callbacks).onError)==null||rR.call(Cw,{loggingError:O,metadata:Z});m=W.next();kq.jumpTo(12);break;case 14:return kq.return();case 3:return _.l_(kq,16),XX=r.callbacks,hU=XX.onSave,P4=_.mt(f.data,jp_,4,Ix),P4=_.Tb(P4,1),_.b(kq,hU.call(XX,P4),18);case 18:f.reply(t73);_.Hd(kq,17);break;case 16:return EP=_.ha(kq),Pu=vS,Wu=EP,cu=r.callbacks,OP="MINI_APP_SDK_API_SAVE_DATA",_.b(kq,r.sdkVersion.promise,19);case 19:Pu(Wu,cu,OP,kq.yieldResult),f.reply(TEC);case 17:return _.b(kq,J4(r,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return kq.return();case 4:return _.l_(kq,21),_.b(kq,r.callbacks.onLoad(),23);case 23:iU=kq.yieldResult;XX=f.reply;hU=qs(1);P4=k7(1);N6=new jp_;N6=_.w5(N6,1,iU);P4=_.Y1(P4,3,Bq,N6);XX.call(f,uN(hU,P4));_.Hd(kq,22);break;case 21:return oR=_.ha(kq),vu=vS,wB=oR,qT=r.callbacks,gB="MINI_APP_SDK_API_LOAD_DATA",_.b(kq,r.sdkVersion.promise,24);case 24:vu(wB,qT,gB,kq.yieldResult),f.reply(TEC);case 22:return _.b(kq,J4(r,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return kq.return();case 5:_.l_(kq,
26);r.callbacks.onSendHighScore(TH(_.mt(f.data,BM4,3,Ix).getValue()));f.reply(uN(qs(1),k7(1)));_.Hd(kq,27);break;case 26:return C8=_.ha(kq),Es=vS,J_=C8,xC=r.callbacks,r2="MINI_APP_SDK_API_SEND_SCORE",_.b(kq,r.sdkVersion.promise,28);case 28:Es(J_,xC,r2,kq.yieldResult),f.reply(TEC);case 27:return _.b(kq,J4(r,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return kq.return();case 6:if(!_.dh(f.data,qdD,8,Ix)){kq.jumpTo(30);break}XX=_.mt(f.data,qdD,8,Ix);XX=_.cM(XX,1);return _.b(kq,J4(r,Y3R(XX)),30);case 30:return kq.return();
case 7:return XX=f.reply,hU=qs(1),P4=k7(1),N6=r.callbacks.getLanguage(),P4=Vy(P4,4,Bq,Kq(N6)),XX.call(f,uN(hU,P4)),_.b(kq,J4(r,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return kq.return();case 8:if(!_.dh(f.data,kWU,10,Ix))return kq.return();F9=_.mt(f.data,kWU,10,Ix);SK=r.callbacks;FX=SK.onSdkPerformanceUpdate;return _.b(kq,r.sdkVersion.promise,33);case 33:return FX.call(SK,F9,kq.yieldResult),kq.return();case 9:XX=f.data;hU=wp(XX,Ix,11);if(_.yV(_.pD(XX,hU))==null)return f.reply(uN(qs(1),k7(2))),
kq.return();iV=LD(f.data,11,Ix);r.callbacks.onShareInviteCode(iV);f.reply(t73);return _.b(kq,J4(r,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return kq.return();case 10:if(_.dh(f.data,eB8,13,Ix)){kq.jumpTo(35);break}return _.b(kq,r.callbacks.onShowMiniAppAd(2),36);case 36:return s7=kq.yieldResult,f.reply(uN(qs(1),Uis(s7))),_.b(kq,J4(r,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return kq.return();case 35:XX=_.mt(f.data,eB8,13,Ix);a:switch(_.cM(XX,1)){case 1:XX={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:XX={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:XX={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}W4=XX;Qq=W4.adType;Gs=W4.sdkApi;XX=r.callbacks;hU=XX.onShowMiniAppAd;P4=_.mt(f.data,eB8,13,Ix);P4=_.Tb(P4,2);return _.b(kq,hU.call(XX,Qq,P4||void 0),38);case 38:return $C=kq.yieldResult,f.reply(uN(qs(1),Uis($C))),_.b(kq,J4(r,Gs),39);case 39:return kq.return()}})})};
var ek=function(r,f){_.x(function(I){r.channel.send(f);_.wO(I)})},KH=function(r,f,I){this.callbacks=r;
var C=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;r=EH$(f,(new URL(I.toString())).origin);this.gameSnacks=new TR8(r);this.gameSnacks.page.onReady(function(){C.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){C.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var Y,V;(V=(Y=C.callbacks).onGameReady)==null||V.call(Y)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(Y,V){try{C.callbacks.onSendHighScore(V)}catch(S){vS(S,C.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(Y,V){var S;return _.x(function(h){if(h.nextAddress==1)return _.l_(h,2),_.b(h,C.callbacks.onSave(C.decoder.decode(V)),4);if(h.nextAddress!=2)return _.Hd(h,0);S=_.ha(h);vS(S,C.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return h.return()})});
this.gameSnacks.storage.onLoad(function(){var Y,V;return _.x(function(S){if(S.nextAddress==1)return _.l_(S,2),_.b(S,C.callbacks.onLoad(),4);if(S.nextAddress!=2)return Y=S.yieldResult,S.return(C.encoder.encode(Y));V=_.ha(S);vS(V,C.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return S.return(C.encoder.encode(""))})});
this.gameSnacks.init()};
_.t(KH,mf);KH.prototype.onAudioToggled=function(r,f){mf.prototype.onAudioToggled.call(this,r,f===void 0?!0:f);var I;(I=this.gameSnacks)==null||I.audio.update(r)};
KH.prototype.onPause=function(){mf.prototype.onPause.call(this);var r;(r=this.gameSnacks)==null||r.game.pause()};
KH.prototype.onResume=function(){mf.prototype.onResume.call(this);var r;(r=this.gameSnacks)==null||r.game.resume()};var cEB=lgB,Wz4=_.Hc(function(r){var f=r.data;var I=r.loadingProgress;r=_.E(_.ld("",void 0,"LYYTdd"));var C=r.next().value,Y=r.next().value;r=_.E(_.ld(!1,void 0,"K0waae"));var V=r.next().value,S=r.next().value,h=[],w=function(){return"transform: scaleX("+(_.tR(I)||0)+")"},n=null,d=function(){var P;
return(P=f()&&n)!=null?P:n=f().showAnniversaryAnimation?6:cEB()};
_.az(function(){var P;if(f().timeOutMessages&&((P=f().timeOutMessages)==null?0:P.length)){n=null;P=_.E(h);for(var W=P.next();!W.done;W=P.next())clearTimeout(W.value);h.length=0;V1K(f().timeOutMessages,h,Y,S)}});
var z=function(){return!!f().persistentErrorMessageTitle},g=function(){return I!==void 0},X=function(){return f().title};
return _.p("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.p("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.p("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.p("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var P,W=(P=f().backgroundImage)==null?void 0:P.sources,m;return(W==null?0:W.length)?"background-image: url("+((m=W[0])==null?void 0:m.url)+")":
""}}),_.p("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.p(_.M,{cond:function(){return!z()},
then:function(){var P={};return _.p("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.p("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.p(_.uT,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+d()},
data:function(){var W="loading_animation_"+d();return{animationConfig:{name:W,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+W+".json",loop:!0,autoplay:!0}}}})),_.p("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.p(_.M,{cond:X,
then:function(){return _.p("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},X)}}),_.p("p",{class:_.qd("mini-app-splash-screen-view-model-wiz__timeout-message",(P["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return V()},P)),
"aria-live":"polite"},C),_.p(_.M,{cond:g,then:function(){return _.p("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.p("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:w}))}})))}}),_.p(_.M,{cond:z,
then:function(){return _.p("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.p("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return f().persistentErrorMessageTitle}),_.p(_.M,{cond:function(){return!!f().persistentErrorMessageDescription},
then:function(){return _.p("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return f().persistentErrorMessageDescription})}}))}})))},"Ld");var LzT=new _.Go("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var mxq=Um;Um=function(r){function f(I){if(I){var C,Y;(C=I.__spec)==null||(Y=C.didUnmount)==null||Y.call(C);for(C=0;C<I.childNodes.length;C++)f(I.childNodes[C])}}
mxq==null||mxq(r);wF(function(){for(var I=0;I<r.length;I++)f(r[I])})};var ew8=_.Hc(function(r){var f=r.data;var I=r.score;var C=r.formattedScore;var Y=r.onScoreChanged;var V=r.isEmbeddedInWebview;var S=_.Ue(),h=function(){var X;return _.F(f==null?void 0:(X=f())==null?void 0:X.buttonViewModel,_.NI)},w=function(){var X;
return(I==null?void 0:I())||Number(f==null?void 0:(X=f())==null?void 0:X.lastScore)||0},n=function(){var X;
return(C==null?void 0:C())||((X=h())==null?void 0:X.title)||""},d,z=1;
if(r=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))r=Number(r),z=isNaN(r)?1:r/100;_.az(function(){Y==null||Y(w());var X;var P=_.aB((X=h())==null?void 0:X.onTap);if(P){X=_.F(P,z6s);var W,m,v;X=_.F(X==null?void 0:(W=X.panelLoadingStrategy)==null?void 0:(m=W.inlineContent)==null?void 0:(v=m.dialogViewModel)==null?void 0:v.customContent,zWU)}else X=void 0;if(W=X)W.score=n()});
r=_.IC(function(){var X,P,W=f==null?void 0:(X=f())==null?void 0:(P=X.loggingDirectives)==null?void 0:P.trackingParams;W&&_.lH(_.a().resolve(_.Ef),W);return!1});
_.$E(function(){if(S.value){var X=S.value.querySelector("button"),P=h();X&&P&&Ezm(X,P);Qy("yt-share-playable-with-high-score",function(){var W=w().toString(),m=f==null?void 0:f().onShareHighScoreCommand,v=f==null?void 0:f().highScoreShareClientParamIdentifier,O=V==null?void 0:V();m&&(O?(v=new lvs,W=_.w5(v,2,W),RV(m,W.JSC$10172_serializeBinary())):v&&(_.a().resolve(LzT).clientParams.set(v,{miniAppClientParams:{highScore:W}}),osm(m,!1)))})}});
var g=function(){var X=h();X&&(I==null?0:I())&&X.accessibilityText&&(X.accessibilityText=X.accessibilityText.replace(d,n()));d=n();return{numberValue:w(),numberText:n(),heightPx:36,fontSizeMultiplier:z,shouldAnimate:!(I==null||!I())&&!0}};
return _.p("yt-mini-app-score-button-view-model",{class:function(){var X={};return _.D5("mini-app-score-button-view-model-wiz",(X["mini-app-score-button-view-model-wiz--is-visible"]=w()!==0,X))},
el:S,"on:click":r},sD(!1,function(){return _.p("span",{style:"display:none;"},w)}),_.p(_.X1,{data:function(){var X;
return f==null?void 0:(X=f())==null?void 0:X.buttonViewModel}},{buttonViewModel:function(X){return _.p(_.LF,{data:X.data,
animatedTextProps:g})}}))},"Md");var RwT=_.Hc(function(r){var f,I=(f=_.YJ("yt-mini-app-is-theater-mode-enabled"))!=null?f:!1,C=_.N("enable_playable_container_save_button"),Y=_.N("enable_play_next_destination_page_in_toolbar");f={};return _.p("ytm-mini-app-top-bar-view-model",null,_.p("div",{class:_.qd("yt-mini-app-top-bar-view-model",(f["yt-mini-app-top-bar-view-model--mobile"]=!1,f["yt-mini-app-top-bar-view-model--desktop"]=!0,f))},_.p("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.p(_.M,{cond:function(){var V;
return!!r.data().backButtonEdu&&!((V=r.isExitMiniAppSeen)==null?0:V.call(r))},
then:function(){return _.p(_.X1,{data:function(){return r.data().backButtonEdu}},{buttonViewModel:_.LF})},
else:function(){return _.p(_.X1,{data:function(){return r.data().backButton}},{buttonViewModel:_.LF})}}),_.p(_.M,{cond:function(){return r.data().viewAllButton&&!0},
then:function(){return _.p(_.X1,{data:function(){return r.data().viewAllButton}},{buttonViewModel:_.LF})}}),_.p(_.M,{cond:function(){return r.data().title&&!0},
then:function(){return _.p("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return r.data().title})}})),_.p("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.p(_.M,{cond:function(){var V;
return(V=r.isDesktopPlayPage)==null?void 0:V.call(r)},
then:function(){return _.p(_.B9,null,_.p(JE4,{highScoreButton:function(){return r.data().highScoreButton},
score:r.score,formattedScore:r.formattedScore,onScoreChanged:r.onScoreChanged,isEmbeddedInWebview:r.isEmbeddedInWebview}),_.p(jeV,{enableSaveButton:function(){return _.tR(C)},
saveButton:function(){return r.data().saveButton},
isSaved:r.isSaved,onSaveToggled:function(){return r.onSaveToggled}}),_.p(H5V,{menuButton:function(){return r.data().menuButton}}))},
else:function(){return _.p(_.M,{cond:function(){return!1},
then:function(){return _.p(_.X1,{data:function(){return r.data().playPageButton}},{buttonViewModel:function(V){return _.p(_.LF,{data:V.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.p(JE4,{highScoreButton:function(){return r.data().highScoreButton},
score:r.score,formattedScore:r.formattedScore,onScoreChanged:r.onScoreChanged,isEmbeddedInWebview:r.isEmbeddedInWebview})}})}})),_.p("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.p(_.X1,{data:function(){return r.data().muteButton}},{toggleButtonViewModel:function(V){var S=V.data;
return _.p(_.F1,{data:function(){var h,w;return Object.assign({},S(),{isToggled:(w=(h=r.isAudioEnabled)==null?void 0:h.call(r))!=null?w:!0})},
onToggle:r.onAudioToggled,useOutlinedIcon:!0})}}),_.p(_.X1,{data:function(){return r.data().theatreModeButton}},{toggleButtonViewModel:function(V){var S=V.data;
return _.p("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.p(_.F1,{data:function(){return Object.assign({},S(),{isToggled:I})},
useOutlinedIcon:!0}))}}),_.p(i5X,{fullscreenButton:function(){return r.data().fullscreenButton}}),_.p(_.M,{cond:function(){return _.tR(Y)&&r.data().viewAllButton&&!1},
then:function(){return _.p(_.X1,{data:function(){return r.data().viewAllButton}},{buttonViewModel:_.LF})}}),_.p(_.M,{cond:function(){var V;
return!((V=r.isDesktopPlayPage)==null?0:V.call(r))},
then:function(){return _.p(_.B9,null,_.p(jeV,{enableSaveButton:function(){return _.tR(C)},
saveButton:function(){return r.data().saveButton},
isSaved:r.isSaved,onSaveToggled:function(){return r.onSaveToggled}}),_.p(H5V,{menuButton:function(){return r.data().menuButton}}))}}))))},"Nd");
RwT.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var H5V=_.Hc(function(r){return _.p(_.X1,{data:r.menuButton},{buttonViewModel:_.LF})},"Od"),jeV=_.Hc(function(r){var f=r.enableSaveButton;
var I=r.saveButton;var C=r.isSaved;var Y=r.onSaveToggled;return _.p(_.M,{cond:function(){return f()&&!(I==null||!I())},
then:function(){return _.p(_.X1,{data:function(){var V=_.F(I==null?void 0:I(),_.$4),S;return{toggleButtonViewModel:Object.assign({},V,{isToggled:(S=C==null?void 0:C())!=null?S:!(V==null||!V.isToggled)})}}},{toggleButtonViewModel:function(V){return _.p(_.F1,{data:V.data,
onToggle:Y})}})}})},"Pd"),JE4=_.Hc(function(r){var f=r.highScoreButton;
var I=r.score;var C=r.formattedScore;var Y=r.onScoreChanged;var V=r.isEmbeddedInWebview;return _.p(_.X1,{data:f},{miniAppScoreButtonViewModel:function(S){return _.p(ew8,{data:S.data,score:I,formattedScore:C,onScoreChanged:Y,isEmbeddedInWebview:V})}})},"Qd"),i5X=_.Hc(function(r){r=r.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.p(_.B9,null):_.p(_.X1,{data:r},{buttonViewModel:_.LF})},"Rd");_.vQD=new _.Go("DESKTOP_CURRENT_PAGE");var oQC=_.Hc(function(r){var f=r.data;var I=_.N("force_active_time_logging_webview"),C=_.N("skip_logs_after_end_event"),Y=!1,V=new w$4,S=void 0,h=void 0,w=_.a().resolve(hws),n=new V73,d=void 0,z=void 0,g=[],X=void 0,P=void 0,W=!1,m=!1,v=!1,O=!1,k=new _.uX,Z=_.a().resolve(LzT),Cw=_.a().resolve(_.t4),rR=_.a().resolve(_.ZY(VJ)),EP,Pu=(EP=_.a().resolve(_.ZY(_.vQD)))==null?void 0:EP.getCurrentPage(),Wu=!1,cu=0,OP=function(qc){qc.preventDefault();return qc.returnValue=""},iU;
r=_.E(_.ld(!((iU=_.YJ("yt-mini-app-is-audio-enabled"))!=null&&!iU),void 0,"HPBZTb"));var oR=r.next().value,vu=r.next().value,wB;iU=_.E(_.ld(!((wB=_.YJ("exit-mini-app-seen-state"))==null||!wB),void 0,"kLuFyc"));var qT=iU.next().value,gB=iU.next().value;wB=_.E(_.ld(!1,void 0,"o1PbLc"));var C8=wB.next().value,Es=wB.next().value;wB=_.E(_.ld(void 0,void 0,"YlqNme"));var J_=wB.next().value,xC=wB.next().value;wB=_.E(_.ld(void 0,void 0,"AeYJne"));var r2=wB.next().value,F9=wB.next().value;wB=_.E(_.ld(!0,void 0,
"aEz9qb"));var SK=wB.next().value,FX=wB.next().value;wB=_.E(_.ld(!1,void 0,"bcquyc"));var iV=wB.next().value,s7=wB.next().value;wB=_.E(_.ld(void 0,void 0,"FMAC5b"));var W4=wB.next().value,Qq=wB.next().value;wB=_.E(_.ld(0,void 0,"HUGJEb"));var Gs=wB.next().value,$C=wB.next().value,kq=_.yy(),XX=function(){return f().isEmbeddedInWebview},hU=function(){return f().hasPlayNextShelf};
Qy("yt-page-type-changed",function(qc){if(_.N("enable_is_mini_app_page_active_bugfix"))qc.detail.newPageSubtype!=="mini_app"&&SK()&&hg();else if(qc=_.bZP()==="mini_app",qc!==SK())if(FX(qc),qc){var M6;qc=(M6=f().playableId)==null?void 0:M6.toString();qc!==void 0&&window.location.href.includes(qc)&&!m&&(O=!0,P4(),Vq(pq.value))}else qc||hg()});
Qy("yt-action",function(qc){qc.detail.actionName==="yt-engagement-panel-visible-changed"&&qc.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&qc.detail.args[2]==="PAmini_app_panel"&&hg();_.N("enable_is_mini_app_page_active_bugfix")?qc.detail.actionName==="yt-history-load"&&!SK()&&(Pu==null?0:Pu.active)?(FX(!0),P4(),Vq(pq.value)):qc.detail.actionName==="yt-history-load"&&SK()&&!f().isEmbeddedInWebview&&Xo():SK()&&qc.detail.actionName==="yt-history-load"&&(O?O=!1:f().isEmbeddedInWebview||Xo())});
_.$L(function(){N6()});
_.az(function(){P4()});
var P4=function(){var qc=f().playableId,M6=f().localReleaseId,ws=f().derivedDeviceInterface;if(m)_.t7(new _.nf("[MiniAppContainerViewModel] onEnter was called more than once"));else{m=!0;S=new ZaB(qc,M6,ws,document.visibilityState==="visible");q2D(S);h=new M78(qc);KzD(w,qc);EQg(n,{showMiniAppAdCommand:f().showMiniAppAdCommand,isEmbeddedInWebview:f().isEmbeddedInWebview,playLogger:S});L0m()&&(P=document.body.style.backgroundColor,_.e2(document.body,"background-color","black"));RM();z4();k=new _.uX;
if(f().isEmbeddedInWebview){if(qc=(new URLSearchParams(window.location.search)).get("postPlayNonce"))kPB(S,qc),Wu=!0;V.initialize({onAudioStateLoaded:function(ja){ak(ja)},
onMuteMiniApp:function(){ak(!1)},
onUnmuteMiniApp:function(){ak(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(ja){Wu||(kPB(S,ja),Wu=!0)},
confirmExitMiniApp:function(){var ja,OR,lr;return _.x(function(Om){if(Om.nextAddress==1)return f().confirmExitMiniAppCommand?_.b(Om,Promise.race([k.promise,Promise.resolve(!1)]),2):Om.return();(ja=Om.yieldResult)?!f().confirmExitMiniAppCommandEdu||(lr=(OR=qT)==null?void 0:OR())!=null&&lr?Rc(f().confirmExitMiniAppCommand):(Rc(f().confirmExitMiniAppCommandEdu),_.Ch("exit-mini-app-seen-state","true",2592E6)):Rc(f().closeMiniAppCommand);_.wO(Om)})},
onNativeBenchmarkingMessageReceived:function(ja){ja=Ly_(_.URu(ja));if(_.dh(ja,_.i1,3,TMD)){var OR=_.mt(ja,_.i1,3,TMD),lr=Q4R();var Om=TH(lr.getSeconds())-TH(OR.getSeconds());OR=_.u3(lr,2)-_.u3(OR,2);Om<0&&OR>0?(Om+=1,OR-=1E9):Om>0&&OR<0&&(--Om,OR+=1E9);Om=(new Oo).setSeconds(Om);Om=_.Ty(Om,2,_.PB(OR),0);_.CK(ja,1,Om)}var gh;(gh=z)==null||gh.returnNativeBenchmarkingMessage(ja)},
multiplayer3pAckStateLoaded:function(ja){Xo(ja)},
exitMiniAppSeenStateLoaded:function(ja){f().confirmExitMiniAppCommandEdu&&gB(ja)},
onNavigateToNewMiniApp:function(){Rc(f().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(ja){ja=new URLSearchParams(ja);var OR=void 0;ja.has("invite_code")&&(OR=new RB4,ja=ja.get("invite_code"),OR=_.w5(OR,1,ja));if(ja=OR){var lr;(lr=z)==null||lr.sendGameData(ja)}},
onPauseMiniApp:function(){Y=!0;pW()},
onResumeMiniApp:function(){Y=!0;O7()},
onAdFinished:function(ja){n.onAdFinished(ja)}});
f().showMultiplayer3pConsentDialogCommand||k.resolve(!0);Rc(f().onContainerReadyCommand)}else kPB(S),k.resolve(!0);gQs(h,GPg(S));GPg(S).then(function(ja){ja={miniAppPlayData:{postPlayNonce:ja}};var OR,lr=(OR=f().loggingDirectives)==null?void 0:OR.trackingParams;lr&&_.IB().stateChanged(lr,ja)});
qc=f().showSignInDialogCommand;!G0E()&&qc&&(_.Ch("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),Rc(qc));f().confirmExitMiniAppCommand&&rR&&(qc=s4w(f().confirmExitMiniAppCommand))&&(rR.customConfirmationCommand=qc)}},N6=function(){if(!C||m)P&&_.e2(document.body,"background-color",P),W=!1,X&&X.release(),h.flush().catch(function(qc){_.t7(qc)}),w.flush().catch(function(qc){_.t7(qc)}),DOT(S),Ay(),z=void 0,C&&(m=!1),yEC(Z)},hg=function(){FX(!1);
N6();Es(!1);Qq(void 0);xC(void 0);F9(void 0);cu=0;$C(0);C||(m=!1)},pW=function(){var qc;
(qc=z)==null||qc.onPause();X&&X.release();h.flush().catch(function(M6){_.t7(M6)});
w.flush().catch(function(M6){_.t7(M6)});
uyT(S)},O7=function(){var qc;
(qc=z)==null||qc.onResume();z4();qc=S;qc.isForeground=!0;cT(qc,"PLAY_EVENT_TYPE_PLAY_RESUME")},ak=function(qc){var M6;
(M6=z)==null||M6.onAudioToggled(qc);vu(qc)},Xo=function(qc){f().showMultiplayer3pConsentDialogCommand&&(f().isEmbeddedInWebview&&qc!==void 0&&k.resolve(qc),!qc&&_.bZP()==="mini_app"&&Rc(f().showMultiplayer3pConsentDialogCommand))},yq=function(){var qc,M6,ws,ja;
return _.x(function(OR){if(OR.nextAddress==1){if(C&&!m)return OR.return();!f().isLivestream||f().disableVideoCapture||(qc=z)!=null&&qc.sendStartGameFrameCapture();M6=(new URL(window.location.href)).searchParams;if(M6.has("invite_code")){var lr=new RB4,Om=M6.get("invite_code");ws=_.w5(lr,1,Om);(ja=z)==null||ja.sendGameData(ws)}C8()||(Es(!0),lr=S,lr.state!==1?_.t7(new _.nf("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+QU4[lr.state])):(_.uk("mini_app_ids_without_game_ready").includes(lr.JSC$14646_miniAppId)&&
(lr.gameReady=!0),lr.state=2,lr.beforeReady=!1,T_(lr,"ma_ffr"),cT(lr,"PLAY_EVENT_TYPE_PLAY_READY")));return _.b(OR,k.promise,2)}Rc(f().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();f().isEmbeddedInWebview||Xo();_.wO(OR)})},T6=function(){var qc=S;
qc.gameReady=!0;T_(qc,"ma_gr")},AU=function(qc){var M6;
return _.x(function(ws){if(ws.nextAddress==1)return _.l_(ws,2),_.b(ws,X$C(h,qc),4);if(ws.nextAddress!=2)return _.Hd(ws,0);M6=_.ha(ws);Rc(f().showSavingErrorPopupCommand);throw M6;})},w2=function(){var qc,M6;
return _.x(function(ws){if(ws.nextAddress==1)return _.l_(ws,2),_.b(ws,aXD(h),4);if(ws.nextAddress!=2)return qc=ws.yieldResult,ws.return(qc);M6=_.ha(ws);Rc(f().showLoadingErrorDialogCommand);throw M6;})},NU=function(qc){S.logError(qc)},to=function(qc,M6,ws){fXC(S,qc,M6,ws)},dI=function(qc,M6){CPs(S,qc,M6)},YB=function(){!I&&f().isEmbeddedInWebview||_.AV();
rE3(S,!0);W||(window.addEventListener("beforeunload",OP,{capture:!0}),W=!0)},k1=function(qc){var M6,ws,ja,OR,lr,Om,gh;
return _.x(function(KQ){if(KQ.nextAddress==1)return w&&(!d||d<qc)&&qc>0?_.b(KQ,Uxq(w,qc),3):KQ.jumpTo(0);M6=KQ.yieldResult;ws=_.E(M6);ja=ws.next().value;OR=ws.next().value;lr=ja;Om=OR;((gh=lr)==null?0:gh.displayString)&&Om&&(xC(Om),F9(lr.displayString));_.wO(KQ)})},z5=function(qc){var M6=f().onBenchmarkingMessageReceivedCommand;
if(M6){var ws=Q4R();_.Y1(qc,3,TMD,ws);RV(M6,miU(qc))}},X$=function(qc){var M6=f().onGameFrameReceivedCommand;
if(M6){var ws=new pzX;var ja=new xJ4;var OR=PM(qc,1);ja=_.pN(ja,1,OR);qc=_.Tb(qc,2);qc=_.w5(ja,2,qc);ws=_.CK(ws,2,qc);RV(M6,dJ3(ws))}},Jm=function(qc){var M6=f().onGameAudioDataReceivedCommand;
if(M6){var ws=new pzX;var ja=new wzB;qc=_.Tb(qc,1);ja=_.w5(ja,1,qc);ws=_.CK(ws,4,ja);RV(M6,dJ3(ws))}},UP=function(){var qc=new URLSearchParams(window.location.search);
if(f().isEmbeddedInWebview&&qc&&qc.get("override_hl")==="true"&&qc.get("hl"))return qc.get("hl");qc=document.documentElement.lang;return qc!==""?qc:_.c1},dB=function(qc){var M6=f().onShareInviteCodeCommand;
if(M6)if(f().isEmbeddedInWebview){var ws=new lvs;qc=_.w5(ws,1,qc);RV(M6,EPD(qc))}else ws=f().inviteCodeShareClientParamIdentifier,Z.clientParams.set(ws,{miniAppClientParams:{inviteCode:qc}}),Rc(M6)},l2=function(qc){var M6,ws,ja;
return _.x(function(OR){if(OR.nextAddress==1)return M6=f().onMiniAppOpenYtContentRequested,w&&_.N("enable_open_yt_content")&&M6?_.b(OR,seU(w,qc),3):OR.jumpTo(0);ws=OR.yieldResult;if(ws==="OK")if(f().isEmbeddedInWebview){var lr=new lBB;ja=Vy(lr,2,P_,Kq(qc));RV(M6,Sag(ja))}else Cw.clientData.set("video_id",qc),Rc(M6);_.wO(OR)})},Lj=function(qc){cu+=_.u3(qc,3);
qc=Math.min(Math.log(1+cu/15E6*9)/Math.log(10),.99);$C(qc);b2(qc)},b2=_.z1(function(qc){var M6=f().updateLoadingProgressCommand;
if(M6){var ws=new lBB;qc=Vy(ws,3,P_,_.xi(qc));RV(M6,Sag(qc))}},100),aD=function(qc){return xxq(n,qc)},z4=function(){var qc,M6;
((qc=_.ndl())==null?void 0:(M6=qc.wakeLock)==null?void 0:M6.request)!=null&&_.ndl().wakeLock.request("screen").then(function(ws){X=ws}).catch(function(){})},pq=_.yy();
_.az(function(){f().isSupportedCountry&&(G0E()||_.N("enable_sign_in_promo")||!f().showSignInDialogCommand?Vq(pq.value):Rc(f().onMiniAppReadyCommand))});
var tg=function(){return _.p("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return C8()?0:-1},
el:pq})},Vq=function(qc,M6){M6=M6===void 0?!1:M6;
var ws=N3();ws&&(M6||ws.toString()!==qc.getAttribute("src"))&&(z=fgu(f().source,{isAudioEnabled:oR,onFirstFrameReady:yq,onGameReady:T6,onSave:AU,onLoad:w2,onError:NU,onSdkCalled:to,onSdkPerformanceUpdate:dI,onClick:YB,onSendHighScore:k1,onBenchmarkingMessageReceived:z5,getLanguage:UP,onShareInviteCode:dB,onResourceLoaded:Lj,onOpenYTContent:l2,onShowMiniAppAd:aD,onGameFrameReceived:X$,onGameAudioReceived:Jm},qc,ws),YY(qc,"load",function(){T_(S,"ma_il");YY(qc,"load",function(){Vq(qc,!0)})}),_.LK(qc,
ws))},N3=function(){var qc=f().url;
if(qc&&(qc=_.PW(qc),qc!==null)){if(f().source&&f().source==="MINI_APP_SOURCE_GAMESNACKS")qc=_.Dj(qc,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.N("enable_origin_query_parameter_bugfix")){var M6=_.Pa(_.Psl(qc.toString()));M6=new URLSearchParams(M6||"");M6.set("origin",window.location.origin);M6=M6.toString();qc=_.x1(qc).toString();qc=_.SF(BB8.exec(qc)[0]+(M6.trim()?"#"+M6:""))}return qc}},zA=function(){var qc={};
qc=_.qd("yt-mini-app-container-view-model__loading-screen",(qc["yt-mini-app-container-view-model__loading-screen--fade-out"]=C8,qc));var M6=function(){return C8()?1:Gs()};
return _.p("div",{class:qc},_.p(_.X1,{data:function(){return f().splashScreen}},{miniAppSplashScreenViewModel:function(ws){return _.p(Wz4,{data:ws.data,
loadingProgress:M6})}}))},RM=function(){g=[];
g.push(_.S$(window,"visibilitychange",function(){v||Y&&XX()||(document.visibilityState==="visible"?O7():pW())}));
g.push(_.S$(window,"pagehide",function(){N6()}));
g.push(_.S$(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&kq.value.dispatchEvent(new Event("tap"))},0)}));
g.push(_.S$(kq.value,"pointerdown",function(){rE3(S,!1)},!0));
g.push(_.S$(kq.value,"pause",function(){v=!0;pW()}));
g.push(_.S$(kq.value,"play",function(){v=!1;O7()}));
g.push(_.S$(kq.value,"exit",function(){N6()}));
var qc=navigator.keyboard,M6=qc&&qc.lock;g.push(_.S$(window,uN4,function(){s7(rNV());rNV()?(f().hasPlayNextShelf&&hy("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Mb("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),M6&&qc.lock(["Escape"])):(f().hasPlayNextShelf&&Mb("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),hy("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),M6&&qc.unlock())}));
f().showMultiplayer3pConsentDialogCommand&&g.push(_.S$(window,"yt-playables-ack-3p-data-usage",function(){O58(w)}));
f().confirmExitMiniAppCommandEdu&&g.push(_.S$(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.Ch("exit-mini-app-seen-state","true",2592E6)}))},Ay=function(){g.forEach(function(qc){lT(qc)});
window.removeEventListener("beforeunload",OP,{capture:!0})},Rc=function(qc){qc&&osm(qc,f().isEmbeddedInWebview||!1)},Mb=function(qc,M6){qc=_.E(kq.value.getElementsByClassName(qc));
for(var ws=qc.next();!ws.done;ws=qc.next())ws.value.classList.add(M6)},hy=function(qc,M6){qc=_.E(kq.value.getElementsByClassName(qc));
for(var ws=qc.next();!ws.done;ws=qc.next())ws.value.classList.remove(M6)};
return function(){var qc={};qc=_.qd("yt-mini-app-container-view-model",(qc["yt-mini-app-container-view-model--desktop"]=!0,qc["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return f().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},qc["yt-mini-app-container-view-model--ios-web-view"]=L0m(),qc["yt-mini-app-container-view-model--no-top-bar"]=function(){return!f().topBar},qc["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return f().hasPlayNextShelf},qc["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return f().hasPlayNextShelf},qc["yt-mini-app-container-view-model--show-peek-below"]=function(){return!iV()&&f().hasPlayNextShelf},qc));
var M6={};M6=_.qd("yt-mini-app-container-view-model__content",(M6["yt-mini-app-container-view-model__content--desktop-content"]=!0,M6["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return f().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},M6["yt-mini-app-container-view-model--desktop-play-page"]=function(){return f().hasPlayNextShelf},M6));
return _.p("mini-app-container-view-model",{el:kq},_.p("div",{class:qc},_.p(_.M,{cond:function(){return f().topBar&&!iV()},
then:function(){return _.p(_.X1,{data:function(){return f().topBar}},{miniAppTopBarViewModel:function(ws){return _.p(RwT,{data:ws.data,
isAudioEnabled:oR,onAudioToggled:function(ja){ak(ja)},
score:J_,formattedScore:r2,onScoreChanged:function(ja){d=ja},
isEmbeddedInWebview:XX,isSaved:W4,onSaveToggled:function(ja){Qq(ja)},
isExitMiniAppSeen:qT,isDesktopPlayPage:hU})}})}}),_.p("div",{class:M6},_.p(_.M,{cond:SK,
then:function(){return tg()}}),_.p(_.M,{cond:function(){return!f().isEmbeddedInWebview},
then:function(){return zA()}}))))}()},"Sd");
oQC.idomCompat=!0;_.Kv(oQC,"mini-app-container-view-model",{props:{data:_.jv}});var QeT=_.Hc(function(r){var f=r.data;return _.p("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.p("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.IC(function(){var I=f().onTap;I&&_.F2(I)})},_.p(_.M,{cond:function(){return f().icon},
then:function(I){return _.p(_.V2,{icon:function(){return I().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.p("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return f().title})))},"Td");
QeT.idomCompat=!0;var AET=_.Hc(function(r){var f=_.yy(),I=_.E(_.ld(void 0,void 0,"kFCJ0c")),C=I.next().value,Y=I.next().value;I=_.E(_.ld(void 0,void 0,"PIPgWd"));var V=I.next().value,S=I.next().value;I=_.E(_.ld(void 0,void 0,"rV66ob"));var h=I.next().value,w=I.next().value,n=function(){var v=C();return v!==void 0?Math.abs(v):void 0},d=function(){var v=n();
return v===void 0||v<=3},z=function(){var v=n();
var O=V(),k=h();v=v!==void 0&&O!==void 0&&k!==void 0?O-k-v:void 0;return v===void 0||v<=3},g=function(v){f.value&&f.value.scrollBy({top:0,
left:(_.Lz("HTML_DIR")==="rtl"?-1:1)*v*f.value.clientWidth,behavior:"smooth"})},X=function(){var v;
Y((v=f.value)==null?void 0:v.scrollLeft);var O;S((O=f.value)==null?void 0:O.scrollWidth);var k;w((k=f.value)==null?void 0:k.clientWidth)},P=function(){g(-.5)},W=function(){g(.5)};
I=_.IC(function(){X()});
_.Xl(function(){X();if(f.value){var v=new ResizeObserver(X);v.observe(f.value);_.$L(function(){v.disconnect()})}});
var m={};return _.p("yt-sponsorships-scrollable-shelf",{class:_.qd("ytdSponsorshipsScrollableShelfHost",r.className)},_.p("div",{class:_.qd("ytdSponsorshipsScrollableShelfContent",(m.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return r.data().previousButton&&r.data().nextButton&&!d()&&!z()},m.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return r.data().previousButton&&!d()&&z()},m.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return r.data().nextButton&&
d()&&!z()},m)),
el:f,"on:scroll":I},r.children),_.p(_.M,{cond:function(){return!d()},
then:function(){return _.p(_.X1,{data:function(){return r.data().previousButton}},{buttonViewModel:function(v){return _.p(_.LF,{data:v.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:P})}})}}),_.p(_.M,{cond:function(){return!z()},
then:function(){return _.p(_.X1,{data:function(){return r.data().nextButton}},{buttonViewModel:function(v){return _.p(_.LF,{data:v.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:W})}})}}))},"Ud");
AET.idomCompat=!0;var GVT=_.Hc(function(r){var f=r.data;r={};return _.p("yt-sponsorships-hub",{class:_.qd("ytdSponsorshipsHubHost",(r.ytdSponsorshipsHubHostIndented=function(){return f().indented},r))},_.p("div",{class:"ytdSponsorshipsHubHeader"},_.p("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.p("div",{class:"ytdSponsorshipsHubAvatar"},_.p(_.X1,{data:function(){return f().avatar}},{avatarViewModel:_.$U})),_.p(_.M,{cond:function(){return f().badgeImage},
then:function(I){return _.p("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.p("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.p("div",{class:"ytdSponsorshipsHubBadge"},_.p(_.J3,{data:I,targetWidth:24,targetHeight:24,alt:""}))))}})),_.p("div",{class:"ytdSponsorshipsHubDetails"},_.p("div",{class:"ytdSponsorshipsHubTierName"},function(){return f().tierName}),_.p("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return f().membershipType}),_.p("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return f().membershipDurationOrExpiry})),_.p("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.p(_.X1,{data:function(){return f().manageButton}},{buttonViewModel:function(I){return _.p(_.LF,{data:I.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.p(_.X1,{data:function(){return f().actionMenuButton}},{buttonViewModel:function(I){return _.p(_.LF,{data:I.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.p("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return f().perksTitle}),_.p(AET,{data:function(){return{previousButton:f().previousPerkButton,
nextButton:f().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.p("div",{class:"ytdSponsorshipsHubPerkCards"},_.p(_.X1,{data:function(){return f().perkCards}},{sponsorshipsHubPerkCardViewModel:QeT}),_.p(_.M,{cond:function(){return f().viewAllPerksButton},
then:function(I){return _.p(Z5D,{data:I})}}))))},"Vd");
GVT.idomCompat=!0;var Z5D=_.Hc(function(r){var f=r.data;return _.p("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.p(_.X1,{data:function(){return f().button}},{buttonViewModel:_.LF}),_.p("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.p("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return f().title}),_.p("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return f().subtitle})))},"Wd");
Z5D.idomCompat=!0;_.Kv(GVT,"yt-sponsorships-hub",{props:{data:_.jv}});_.kVX=_.Hc(function(r){var f=r.data;return _.p("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.lB({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var I;return((I=f().badgeCutoutRadius)!=null?I:14)+"px"}})},_.p("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.p(_.X1,{data:function(){return f().startAvatar}},{avatarViewModel:_.$U}),_.p(_.X1,{data:function(){return f().endAvatar}},{avatarViewModel:_.$U})),_.p(_.X1,{data:function(){return f().badge}},{contentPreviewImageViewModel:function(I){return _.p("div",
{class:"ytDualAvatarViewModelBadge"},_.p(_.Oq,{data:I.data}))}}))},"Xd");
_.kVX.idomCompat=!0;var qzX=_.Hc(function(r){var f=r.data;var I,C=!((I=_.a().resolve(_.ZY(_.cI)))==null||!I());r=_.hR(function(){var d,z,g=C?(d=f().header)==null?void 0:d.backgroundColorDarkMode:(z=f().header)==null?void 0:z.backgroundColorLightMode;if(g!==void 0)return _.g_(g)},void 0,"UX2G6c");
I=_.hR(function(){var d,z;return C?(d=f().header)==null?void 0:d.backgroundImagePart1Dark:(z=f().header)==null?void 0:z.backgroundImagePart1Light},void 0,"GPAi1d");
var Y=_.hR(function(){var d,z;return C?(d=f().header)==null?void 0:d.backgroundImagePart2Dark:(z=f().header)==null?void 0:z.backgroundImagePart2Light},void 0,"nboJld"),V=_.hR(function(){return _.Lz("HTML_DIR")==="rtl"},void 0,"LGJceb"),S=_.yy(),h=!1,w=function(){var d=S.value;
if(d&&!h){var z,g=(z=d.parentElement)==null?void 0:z.parentElement;if(g)for(d=d.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),z=0;z<d.length;++z){var X=d[z];if(X instanceof HTMLElement){g.scrollTo({top:X.offsetTop+X.clientHeight/2-g.clientHeight/2,behavior:"smooth"});h=!0;break}}}};
_.$E(function(){var d=S.value;if(d){var z=new ResizeObserver(w);z.observe(d);_.$L(function(){z.disconnect()})}});
var n={};return _.p("yt-sponsorships-perks-list",{el:S,class:_.qd("ytdSponsorshipsPerksListHost",(n.ytdSponsorshipsPerksListHorizontalPadding=function(){return f().horizontalPaddingEnabled},n))},_.p("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.p("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.lB({"background-color":r})},_.p("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.p(_.M,{cond:I,then:function(d){var z={};return _.p("div",{class:_.qd((z.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=C,z.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!C,z.ytdSponsorshipsPerksListFlipped=V,z))},_.p(_.J3,{data:d,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.p("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.p(_.M,{cond:Y,
then:function(d){var z={};return _.p("div",{class:_.qd((z.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=C,z.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!C,z.ytdSponsorshipsPerksListFlipped=V,z))},_.p(_.J3,{data:d,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.p("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.p(_.X1,{data:function(){var d;
return(d=f().header)==null?void 0:d.dualAvatar}},{dualAvatarViewModel:_.kVX})))),_.p("div",{class:"ytdSponsorshipsPerksListBody"},_.p("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return f().title}),_.p(_.M,{cond:function(){return f().perks},
then:function(d){return _.p(_.pz,{each:d},function(z,g){var X={};return _.p("div",{class:_.qd("ytdSponsorshipsPerksListPerkContainer",(X.ytdSponsorshipsPerksListSelectedPerk=function(){var P=g(),W=f().selectedPerkIndex;return P===W},X))},_.p(_.M,{cond:function(){return g()>0},
then:function(){return _.p("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.p("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.p(_.M,{cond:function(){return z.icon},
then:function(P){return _.p(_.V2,{icon:function(){return P().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.p("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.p("div",{class:"ytdSponsorshipsPerksListPerkTitle"},z.title),_.p("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.p(_.wW,{text:z.description})),_.p(_.M,{cond:function(){return z.instructions},
then:function(){var P,W;return _.p("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.p("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(P=z.instructions)==null?void 0:P.title),_.p("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.p(_.wW,{text:(W=z.instructions)==null?void 0:W.text})))}}))),_.p(_.M,{cond:function(){return z.emoji},
then:function(P){return _.p("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.p(_.pz,{each:function(){return P()}},function(W){return _.p(_.J3,{data:W,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.p(BE4,{data:z}))})}})))},"Yd");
qzX.idomCompat=!0;var BE4=_.Hc(function(r){var f=r.data;var I=function(S,h){return S===h},C=function(){var S=f();
S=_.F(S==null?void 0:S.badgesShelf,wPU);return S!==void 0&&S!==null?S:{previousButton:{},nextButton:{}}},Y=_.Ue(),V=function(){var S=Y.value;
if(S){var h=S.parentElement;if(h){S=S.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var w=0;w<S.length;++w){var n=S[w];if(n instanceof HTMLElement){h.scrollTo({left:n.offsetLeft+n.clientWidth/2-h.clientWidth/2,behavior:"instant"});break}}}}};
_.$E(function(){var S=Y.value;if(S){var h=new ResizeObserver(V);h.observe(S);_.$L(function(){h.disconnect()})}});
return _.p("div",null,_.p(_.M,{cond:function(){return f().badges},
then:function(S){return _.p(AET,{data:C},_.p("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:Y},_.p(_.pz,{each:function(){return S()}},function(h,w){var n={},d={},z={};
return _.p("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.p(_.M,{cond:function(){return w()>0},
then:function(){return _.p("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.p("div",{class:_.qd("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(n.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return I(w(),f().currentBadgeIndex)},n.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!I(w(),f().currentBadgeIndex)},n))},_.p("div",{class:_.qd("ytdSponsorshipsPerksListLoyaltyBadge",(d.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return I(w(),
f().currentBadgeIndex)},d.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!I(w(),f().currentBadgeIndex)},d))},_.p(_.M,{cond:function(){return h.image},
then:function(g){var X={};return _.p("div",{class:_.qd((X.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return I(w(),f().currentBadgeIndex)},X.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!I(w(),f().currentBadgeIndex)},X))},_.p(_.J3,{data:g,
alt:""}))}})),_.p("div",{class:_.qd("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(z.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return I(w(),f().currentBadgeIndex)},z))},h.title)))})))}}))},"Zd");
BE4.idomCompat=!0;_.Kv(qzX,"yt-sponsorships-perks-list",{props:{data:_.jv}});_.Kv(_.Hc(function(r){return _.p("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.p(_.M,{cond:function(){return r.data().image},
then:function(f){return _.p(_.J3,{className:"ytwFantasyEmptyStateViewModelImage",data:f,ariaHidden:!0,alt:""})}}),_.p(_.wW,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return r.data().title}}),_.p(_.wW,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return r.data().subtitle}}),_.p(_.X1,{data:function(){return r.data().primaryButton}},{buttonViewModel:function(f){return _.p(_.LF,{data:f.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"$d"),"ytw-fantasy-empty-state-view-model",{props:{data:_.jv}});_.Kv(_.Hc(function(r){var f=r.data;var I;r=_.E(_.ld(!((I=_.YJ("yt-mini-app-is-theater-mode-enabled"))==null||!I),void 0,"CUtq5"));var C=r.next().value,Y=r.next().value,V;I=(V=_.a().resolve(_.ZY(Pj3)))!=null?V:function(){return _.p("div",null)};
_.KN("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){Y(!0);_.Ch("yt-mini-app-is-theater-mode-enabled",!0)});
_.KN("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){Y(!1);_.Ch("yt-mini-app-is-theater-mode-enabled",!1)});
V={};r={};var S={};return _.p("mini-app-play-page-renderer",{class:_.qd("miniAppPlayPageRendererHost",(V.miniAppPlayPageRendererHostDetailsView=function(){return!C()},V))},_.p("div",{class:_.qd("miniAppPlayPageRendererGameContainer",(r.miniAppPlayPageRendererGameContainerDetailsView=function(){return!C()},r))},_.p(_.X1,{data:function(){return f().containerViewModel}},{miniAppContainerViewModel:oQC}),_.p(_.M,{cond:function(){return!C()&&f().description},
then:function(){return _.p("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.p("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return f().description}))}})),_.p("div",{class:_.qd("miniAppPlayPageRendererPlayNextContainer",(S.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!C()},S))},_.p(_.X1,{data:function(){return f().sectionList}},{sectionListRenderer:I})))},"ae"),"mini-app-play-page-renderer",{props:{data:_.jv}});var jk=function(){var r=_.y.apply(this,arguments)||this;r.isSearch=!1;r.isConstrainedList=!1;r.hasChipsBar=!1;r.inReplyPanel=!1;r.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"}};r.monitorScroll=!0;r.SCROLL_ANIMATION_DURATION_MS=300;r.nextContinuation={continuationType:"sectionListContinuation"};return r};
_.t(jk,_.y);_.l=jk.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(r){switch(r.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.N("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.N("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.l.created=function(){var r=this;this.JSC$14775_scrollAnimation=new _.PT(function(f){r.hostElement.scrollTop=f})};
_.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(r){this.set("data.contents",r)};
_.l.computeHasSortFilter=function(r){return!!r&&!!r.sortFilterSubMenuRenderer};
_.l.computeShouldScrollInPanel=function(r){var f;return!!(r==null?0:(f=r.scrollPaneStyle)==null?0:f.scrollable)};
_.l.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.ob(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.l.scrollToTop=function(){this.hostElement.scrollTop=0};
_.l.scrollToItemSection=function(r){if(r=this.getItemByIdentifier(r))r=this.getScrollPositionForItem(r),this.hostElement.scrollTop!==r&&this.JSC$14775_scrollAnimation.start(this.hostElement.scrollTop,r,this.SCROLL_ANIMATION_DURATION_MS)};
_.l.getItemByIdentifier=function(r){var f=this.contents.querySelectorAll("ytd-item-section-renderer");if(f&&f.length!==0){var I=Array.from(f).findIndex(function(C){return C.sectionIdentifier===r});
return f[I===-1?0:I]}};
_.l.getScrollPositionForItem=function(r){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===r)return 0;r=_.Wk(r).y+this.hostElement.scrollTop-_.Wk(this.hostElement).y;return Math.min(r,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.OC.Object.defineProperties(jk.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.targetId)==="browse-feedFEclips"}}});
jk.prototype.onScroll=jk.prototype.onScroll;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],jk.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],jk.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.AW.YtLazyListBehavior),_.B("design:type",Object)],jk.prototype,"ytLazyListBehavior",void 0);_.A([_.J(_.Wg.YtNextContinuationBehavior),_.B("design:type",Object)],jk.prototype,"ytNextContinuationBehavior",void 0);
_.A([_.J(_.yjq),_.B("design:type",Object)],jk.prototype,"ytBooleanLogicBehavior",void 0);_.A([_.J(_.cg),_.B("design:type",Object)],jk.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],jk.prototype,"data",void 0);_.A([_.K({value:2}),_.B("design:type",Number)],jk.prototype,"initialCount",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],jk.prototype,"autoFill",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.B("design:type",Boolean)],jk.prototype,"hasSortFilter",void 0);_.A([_.K({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.B("design:type",Boolean)],jk.prototype,"hideBottomSeparator",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.B("design:type",Boolean)],jk.prototype,"shouldScrollInPanel",void 0);
_.A([_.K(),_.B("design:type",Object)],jk.prototype,"isSearch",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],jk.prototype,"isConstrainedList",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],jk.prototype,"responsiveSizing",void 0);_.A([_.K(),_.B("design:type",Object)],jk.prototype,"hasChipsBar",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],jk.prototype,"pageSubtype",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],jk.prototype,"engagementPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],jk.prototype,"liveChatEngagementPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],jk.prototype,"inReplyPanel",void 0);_.A([_.uA("#action-button"),_.B("design:type",HTMLElement)],jk.prototype,"actionButton",void 0);_.A([_.K(),_.B("design:type",Object)],jk.prototype,"scrollUpButtonData",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],jk.prototype,"engagementPanelDropdown",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],jk.prototype,"engagementPanelDialog",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],jk.prototype,"isClipList",null);_.A([_.uA("#contents"),_.B("design:type",HTMLElement)],jk.prototype,"monitorScrollElement",void 0);_.A([_.uA("#contents"),_.B("design:type",HTMLElement)],jk.prototype,"contents",void 0);
_.A([_.kO("scroll"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jk.prototype,"onScroll",null);jk=_.A([_.U({is:"ytd-section-list-renderer",disableElementRegistration:!0})],jk);
var ufg=_.os()(jk,"ytd-section-list-renderer",function(){if(Fag===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);Fag=r}r=Fag;return r},{mode:1});var Dx3;var rwD;var fFT;var IFs;var HT=function(){return _.y.apply(this,arguments)||this};
_.t(HT,_.y);HT.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
HT.prototype.onLikeButtonClick=function(r){r.stopPropagation();r.preventDefault()};
_.OC.Object.defineProperties(HT.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.data)!=null&&r.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)})}}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],HT.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],HT.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],HT.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],HT.prototype,"ytRendererStamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],HT.prototype,"data",void 0);
_.A([_.K({selectorArgs:["data.likeStatusEntityKey"],selector:Nm}),_.B("design:type",Object)],HT.prototype,"likeStatusEntity",void 0);_.A([_.R("data","likeStatusEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],HT.prototype,"likeButtonRenderer",null);HT=_.A([_.U({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],HT);
_.Q(HT,"ytd-slim-metadata-toggle-button-renderer",function(){if(IFs!==void 0)return IFs;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
return IFs=r},{mode:1});var iW=function(){var r=_.y.apply(this,arguments)||this;r.minimizePipBreakages=_.N("web_pip_minimize_breakages");r.showEqualizer=_.N("web_enable_playlist_video_lockup_equalizer");r.watchColorUpdate=_.N("kevlar_watch_color_update");r.actionMap={};return r};
_.t(iW,_.y);_.l=iW.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(r){return r&&r.menu?"editable":""};
_.l.computeSelected=function(r){return!(r==null||!r.selected)};
_.l.computeUseColorPalette=function(r){return!!((r==null?0:r.lightColorPalette)&&(r==null?0:r.darkColorPalette))};
_.l.computeLargerPlaylistThumbs=function(r,f){return _.N("web_enable_playlist_bigger_thumbnails")&&!f};
_.l.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.l.onYtServiceRequestSent=function(r,f){f.endpoint&&this.isHideEnclosingAction(f.endpoint)&&!this.selected&&m5q(_.jN(),this.data.videoId)};
_.l.isHideEnclosingAction=function(r){var f=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",r);r=this.get("likeEndpoint.status",r)==="INDIFFERENT";return f||r};
_.l.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.l.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.OC.Object.defineProperties(iW.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var r;return!!(this.withinMiniplayer&&((r=this.data)==null?0:r.actionButtons))}}});
iW.prototype.onYtServiceRequestSent=iW.prototype.onYtServiceRequestSent;iW.prototype.canReorderChanged=iW.prototype.canReorderChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],iW.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],iW.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],iW.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.jW),_.B("design:type",Object)],iW.prototype,"ytdLockupBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],iW.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],iW.prototype,"withinMiniplayer",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],iW.prototype,"minimizePipBreakages",void 0);_.A([_.K({computed:"computeSelected(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],iW.prototype,"selected",void 0);
_.A([_.K({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],iW.prototype,"useColorPalette",void 0);_.A([_.K({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.B("design:type",Boolean)],iW.prototype,"largerPlaylistThumbs",void 0);_.A([_.K(),_.B("design:type",Object)],iW.prototype,"showEqualizer",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],iW.prototype,"canReorder",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],iW.prototype,"touchPersistentDragHandle",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],iW.prototype,"handleIsHovered",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],iW.prototype,"watchColorUpdate",void 0);_.A([_.R("largerPlaylistThumbs"),_.B("design:type",Number),_.B("design:paramtypes",[])],iW.prototype,"thumbnailWidth",null);
_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],iW.prototype,"showActionButtons",null);_.A([_.YN("canReorder"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iW.prototype,"canReorderChanged",null);_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],iW.prototype,"onYtServiceRequestSent",null);
iW=_.A([_.U({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],iW);
_.Q(iW,"ytd-playlist-panel-video-renderer",function(){if(fFT!==void 0)return fFT;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return fFT=r},{mode:2});var RX=function(){return _.y.apply(this,arguments)||this};
_.t(RX,_.y);RX.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],RX.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],RX.prototype,"data",void 0);RX=_.A([_.U({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],RX);
_.Q(RX,"ytd-playlist-panel-supported-items",function(){if(rwD!==void 0)return rwD;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return rwD=
r},{mode:1});DG3=!0;dIV("\\P{N}");var S3d;var CG4=_.VR("END_OF_PLAYLIST",void 0,"End of playlist"),YtB=_.VR("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),vT=function(){var r=_.y.apply(this,arguments)||this;r.minimizePipBreakages=_.N("web_pip_minimize_breakages");r.updatedCoursePanel=_.N("move_three_dot_menu_to_playlist_panel_header_for_courses");r.reducedPlaylistHeight=_.N("web_playlist_mini_playlist_height");r.hideHeaderText=!1;r.useColorPalette=!1;r.collapsed=!1;r.collapsedPreServerOverride="not_tracked";
r.isHovered=!1;r.modernPanels=_.N("kevlar_watch_modern_panels");r.expandLabel=_.VR("MINIPLAYER_EXPAND_LABEL");r.collapseLabel=_.VR("MINIPLAYER_COLLAPSE_LABEL");r.isFloating=!1;r.metaPanel=!1;r.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};r.currentIndex=void 0;return r};
_.t(vT,_.y);_.l=vT.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 _.Gk(this.onThrottledScroll,1E3,this)};
_.l.onMouseEnter=function(){this.isHovered=!0};
_.l.onMouseLeave=function(){this.isHovered=!1};
_.l.computeOverflowMenuData=function(r){return r&&r.menu?r.menu:null};
_.l.computeCollapsible=function(r){return!r};
_.l.computeHasPlaylistButtons=function(r){return!(!r||!r.playlistButtons)};
_.l.computeHasSeparateSaveButton=function(r){return!(!r||!r.saveButton)};
_.l.computeHasToolbarButton=function(r,f){return!(!r||!(f||r.saveButton||r.menu))};
_.l.computePlaylistType=function(r){if(r&&r.playlistId)return r.playlistId.substring(0,4)};
_.l.computeCanReorder=function(r){return r?r.playlistId&&r.playlistId.startsWith("TLPQ")?!0:!!r.isEditable&&!r.isInfinite:!1};
_.l.attached=function(){var r=this;try{_.a().resolve(_.WP).setPlaylistComponent(this.hostElement)}catch(f){if(_.N("kevlar_park_on_playlist_token_killswitch"))throw f;_.mZ().parkOrScheduleJob(function(){_.a().resolve(_.WP).setPlaylistComponent(r.hostElement)},2,"ci")}_.Zo(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.l.detached=function(){_.GI(this.hostElement)};
_.l.computeTrailingIcon=function(r,f,I){return I?f?"yt-icons:collapse":"yt-icons:close":f?"yt-icons:expand":_.N("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.l.computeIndexMessage=function(r,f){return wbK(r+1)+" / "+wbK(f)};
_.l.onRenderStamperFinished=function(){if(this.scrollForStampDom){var r=!0;this.isHovered&&(r=!1);if(this.collapsed||this.hidden)r=!1;r&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.l.collapseChanged=function(){var r=this;this.collapsed||(_.aK(this.ytTaskEmitterBehavior.getTaskManager(),function(){r.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.l.hiddenChanged=function(){var r=this;this.hidden||_.aK(this.ytTaskEmitterBehavior.getTaskManager(),function(){r.scrollToCurrentVideo()})};
_.l.setupReordering=function(){var r=_.e(this.hostElement).querySelector("#items");uhX?_.vT4(this.ytReorderableBehavior,r,r,"playlist-drag-handle"):_.vT4(this.ytReorderableBehavior,r,r)};
_.l.scrollToCurrentVideo=function(){var r=this;_.F_.addJob(function(){var f=_.e(r.hostElement).querySelector("#items");if(f){f.style.setProperty("padding-bottom","");var I=_.e(r.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(I){f=I.parentElement||_.NB(document);var C=f||_.NB(document);var Y=_.Wk(I),V=_.Wk(C),S=_.U6D(C);if(C==_.NB(document)){var h=Y.x-C.scrollLeft;Y=Y.y-C.scrollTop}else h=Y.x-V.x-S.left,Y=Y.y-V.y-S.top;I=R14(I);V=C.clientHeight-
I.height;S=C.scrollLeft;var w=C.scrollTop;S+=h-(C.clientWidth-I.width)/2;C=new _.F0(S,w+(Y-V/2));f.scrollLeft=C.x;f.scrollTop=C.y}}},8)};
_.l.dataChanged=function(){var r=this;_.Rp3(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.UC(this,function(){_.dp(r.ytTaskEmitterBehavior.getTaskManager(),function(){r.ytRendererBehavior.markDirty();r.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.l.updateNowPlayingOverlay=function(){_.N("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.l.onPlaylistLockupNowPlaying=function(r,f){f&&(this.activeNowPlayingRenderer=f);this.updateNowPlayingOverlay()};
_.l.onScroll=function(){this.scrollThrottle.fire()};
_.l.onThrottledScroll=function(){var r=this;_.dp(this.ytTaskEmitterBehavior.getTaskManager(),function(){r.ytRendererBehavior.markDirty()})};
_.l.onToggleExpanded=function(r){this.collapsible&&_.jl(r).tagName!=="A"&&!_.iB(_.JN(r),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.l.setCollapsed=function(r){this.collapsible&&(this.collapsed=r,_.qy(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.l.handleCollapsedFromData=function(r){if(r){var f=r.playlistPanelCollapseState;f==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||f==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),f=f==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==f&&this.setCollapsed(f)):this.currentPlaylistId!==r.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(f=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==f&&this.setCollapsed(f),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=r.playlistId}};
_.l.handleDrop=function(r){var f=r.currDragItem;r=f.data.playlistSetVideoId;var I=_.QE(f.parentNode.childNodes,f),C=void 0;I>0&&(C=f.parentNode.childNodes[I-1].data.playlistSetVideoId);f=_.jN();if(f.responsePlaylistData&&f.responsePlaylistData.contents){var Y=wDc(r,f.responsePlaylistData);f.responsePlaylistData=(0,_.X0.unsafeClone)(f.responsePlaylistData);FKR(f.responsePlaylistData.contents,Y,I);f.queueProxy?Vi4(f.queueProxy,Y,I,r,C):f.playlistProxy&&Vi4(f.playlistProxy,Y,I,r,C);_.HP(f,_.iH(f,f.response?
f.response.autoplayRenderer:void 0))}};
_.l.handleDarkModeChange=function(r){r!==this.isDarkTheme&&(this.isDarkTheme=r)};
_.l.colorPaletteChanged=function(){var r,f=((r=this.data)==null?void 0:r.contents)||[],I;r=_.E(f);for(f=r.next();!f.done;f=r.next()){f=f.value;var C=void 0;if((C=f.playlistPanelVideoRenderer)==null?0:C.selected){r=f.playlistPanelVideoRenderer;C=f=void 0;(I=this.isDarkTheme?(f=r)==null?void 0:f.darkColorPalette:(C=r)==null?void 0:C.lightColorPalette)&&_.zY(this.hostElement,I);break}}this.useColorPalette=!!I};
_.OC.Object.defineProperties(vT.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var r,f;return!((r=this.data)==null||!r.playlistId)&&!((f=this.data)==null||!f.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var r=_.a().resolve(_.ZY(_.WP)),f;if(((f=this.data)==null?0:f.contents)&&(r==null?0:r.hasAutoplayData())){var I;if(((I=this.playlistLoopStateEntity)==null?void 0:I.state)==="PLAYLIST_LOOP_STATE_ONE"){if(r=this.data.currentIndex,r!==void 0){var C,Y;var V=(C=this.data.contents[r])==null?void 0:(Y=C.playlistPanelVideoRenderer)==null?void 0:Y.title}}else{var S,h=(S=_.F(r.getAutoplayEndpoint(),_.vj))==null?void 0:S.videoId,w,n;V=(w=this.data.contents.find(function(d){var z;
return((z=d.playlistPanelVideoRenderer)==null?void 0:z.videoId)===h}))==null?void 0:(n=w.playlistPanelVideoRenderer)==null?void 0:n.title}return V}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)!=null&&r.nextVideoLabel?this.nextVideoTitle?_.Rr(this.data.nextVideoLabel)+":":CG4:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var r;if(((r=this.data)==null?0:r.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.iX(YtB);var f;return(f=this.data)==null?void 0:f.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var r,f,I,C=(r=this.data)==null?void 0:(f=r.playlistButtons)==null?void 0:(I=f.menuRenderer)==null?void 0:I.topLevelButtons;if(C)for(r=_.E(C),f=r.next();!f.done;f=r.next())if(f=f.value,f.playlistLoopButtonRenderer)return f.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var r;return!!(this.collapsed&&((r=this.data)==null?0:r.nextVideoLabel))}}});
vT.prototype.colorPaletteChanged=vT.prototype.colorPaletteChanged;vT.prototype.onPlaylistLockupNowPlaying=vT.prototype.onPlaylistLockupNowPlaying;vT.prototype.updateNowPlayingOverlay=vT.prototype.updateNowPlayingOverlay;vT.prototype.dataChanged=vT.prototype.dataChanged;vT.prototype.hiddenChanged=vT.prototype.hiddenChanged;vT.prototype.collapseChanged=vT.prototype.collapseChanged;vT.prototype.onRenderStamperFinished=vT.prototype.onRenderStamperFinished;vT.prototype.onMouseLeave=vT.prototype.onMouseLeave;
vT.prototype.onMouseEnter=vT.prototype.onMouseEnter;_.A([_.J(_.Pq),_.B("design:type",Object)],vT.prototype,"ironResizableBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],vT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(HM8.YtPlaylistPanelBehavior),_.B("design:type",Object)],vT.prototype,"ytPlaylistPanelBehavior",void 0);
_.A([_.J(_.Kh.YtTaskEmitterBehavior),_.B("design:type",Object)],vT.prototype,"ytTaskEmitterBehavior",void 0);_.A([_.J(_.KSU),_.B("design:type",Object)],vT.prototype,"ytReorderableBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],vT.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],vT.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],vT.prototype,"actionHandlerBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],vT.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],vT.prototype,"autoplayData",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],vT.prototype,"withinMiniplayer",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],vT.prototype,"minimizePipBreakages",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],vT.prototype,"updatedCoursePanel",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],vT.prototype,"reducedPlaylistHeight",void 0);_.A([_.K({computed:"setMenuData_(data)"}),_.B("design:type",Object)],vT.prototype,"menuRendererData",void 0);_.A([_.K({computed:"computeOverflowMenuData(data)"}),_.B("design:type",Object)],vT.prototype,"overflowMenuDataTopRow",void 0);_.A([_.K({computed:"computeOverflowMenuData(data)"}),_.B("design:type",Object)],vT.prototype,"overflowMenuData",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],vT.prototype,"hideHeaderText",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],vT.prototype,"useColorPalette",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.B("design:type",Boolean)],vT.prototype,"collapsible",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],vT.prototype,"collapsed",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],vT.prototype,"hidden",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.B("design:type",Boolean)],vT.prototype,"hasPlaylistButtons",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.B("design:type",Boolean)],vT.prototype,"hasSeparateSaveButton",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.B("design:type",Boolean)],vT.prototype,"hasToolbar",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.B("design:type",String)],vT.prototype,"playlistType",void 0);_.A([_.K(),_.B("design:type",Object)],vT.prototype,"isHovered",void 0);_.A([_.K({selectorArgs:["playlistLoopStateEntityKey"],selector:_.Qfd}),_.B("design:type",Object)],vT.prototype,"playlistLoopStateEntity",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],vT.prototype,"modernPanels",void 0);_.A([_.K({value:56}),_.B("design:type",Number)],vT.prototype,"scrollMargin",void 0);_.A([_.K({computed:"computeCanReorder(data)"}),_.B("design:type",Boolean)],vT.prototype,"canReorder",void 0);_.A([_.K(),_.B("design:type",Object)],vT.prototype,"expandLabel",void 0);_.A([_.K(),_.B("design:type",Object)],vT.prototype,"collapseLabel",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],vT.prototype,"isFloating",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],vT.prototype,"metaPanel",void 0);_.A([_.K({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.B("design:type",String)],vT.prototype,"trailingIcon",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],vT.prototype,"isDarkTheme",void 0);
_.A([_.K({selector:_.Nj}),_.B("design:type",Boolean)],vT.prototype,"miniplayerIsActive",void 0);_.A([_.K({selector:function(r){return r.watch.playerState}}),
_.B("design:type",Number)],vT.prototype,"playerState",void 0);_.A([_.K(),_.B("design:type",Object)],vT.prototype,"activeNowPlayingRenderer",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vT.prototype,"moveThreeDotMenuToTopRow",null);_.A([_.R("data","autoplayData","playlistLoopStateEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],vT.prototype,"nextVideoTitle",null);
_.A([_.R("data","nextVideoTitle"),_.B("design:type",String),_.B("design:paramtypes",[])],vT.prototype,"nextVideoLabel",null);_.A([_.R("collapsed"),_.B("design:type",String),_.B("design:paramtypes",[])],vT.prototype,"buttonAriaLabel",null);_.A([_.R("data","playlistId","longBylineText"),_.B("design:type",Object),_.B("design:paramtypes",[])],vT.prototype,"mixLongByLine",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],vT.prototype,"playlistLoopStateEntityKey",null);
_.A([_.kO("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vT.prototype,"onMouseEnter",null);_.A([_.kO("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vT.prototype,"onMouseLeave",null);_.A([_.K({reflectToAttribute:!0}),_.R("data","collapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vT.prototype,"showNextVideoHeader",null);
_.A([_.kO("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vT.prototype,"onRenderStamperFinished",null);_.A([_.Bt("collapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vT.prototype,"collapseChanged",null);_.A([_.Bt("hidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vT.prototype,"hiddenChanged",null);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vT.prototype,"dataChanged",null);_.A([_.Bt("playerState","miniplayerIsActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vT.prototype,"updateNowPlayingOverlay",null);_.A([_.kO("yt-playlist-lockup-now-playing-active"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],vT.prototype,"onPlaylistLockupNowPlaying",null);
_.A([_.Bt("data","isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vT.prototype,"colorPaletteChanged",null);vT=_.A([_.U({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],vT);
_.lFq=_.os()(vT,"ytd-playlist-panel-renderer",function(){if(Dx3===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);Dx3=r}r=Dx3;return r},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var VEC;var Kg=function(){var r=_.y.apply(this,arguments)||this;r.modern=_.N("web_button_rework");return r};
_.t(Kg,_.y);Kg.prototype.computeShouldButtonBeVertical=function(r,f){return r||f};
Kg.prototype.onYtServiceRequestSent=function(r,f){(r=_.F(f.endpoint,_.yU))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.hv("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:r.status})):this.handleLikeEndpoint(r))};
Kg.prototype.computelikeStatusEntityKey=function(r){return r==null?void 0:r.likeStatusEntityKey};
Kg.prototype.handleLikeEndpoint=function(r){r.status==="LIKE"?this.JSC$14800_ytdDislikeToggleButtonRenderer.toggle(!1):r.status==="DISLIKE"?this.JSC$14800_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14800_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14800_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.OC.Object.defineProperties(Kg.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var r;return dRE(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(r=this.likeStatusEntity)==null?void 0:r.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var r;if(this.data&&((r=this.data)==null||!r.hideDislikeButton)){var f;return dRE(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(f=this.likeStatusEntity)==null?void 0:f.likeStatus)}}}});
Kg.prototype.onYtServiceRequestSent=Kg.prototype.onYtServiceRequestSent;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Kg.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],Kg.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Kg.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Kg.prototype,"vertical",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],Kg.prototype,"textTransform",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Kg.prototype,"useShortsIcon",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Kg.prototype,"underIconLabel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Kg.prototype,"modern",void 0);_.A([_.K({value:"left"}),_.B("design:type",String)],Kg.prototype,"buttonTooltipPosition",void 0);
_.A([_.K(),_.B("design:type",Object)],Kg.prototype,"overrides",void 0);_.A([_.uA("#like-button"),_.B("design:type",Object)],Kg.prototype,"JSC$14800_ytdLikeToggleButtonRenderer",void 0);_.A([_.uA("#dislike-button"),_.B("design:type",Object)],Kg.prototype,"JSC$14800_ytdDislikeToggleButtonRenderer",void 0);_.A([_.R("data","likeStatusEntity.likeStatus"),_.B("design:type",Object),_.B("design:paramtypes",[])],Kg.prototype,"likeButton",null);
_.A([_.R("data","likeStatusEntity.likeStatus"),_.B("design:type",Object),_.B("design:paramtypes",[])],Kg.prototype,"dislikeButton",null);_.A([_.K({computed:"computelikeStatusEntityKey(data)"}),_.B("design:type",String)],Kg.prototype,"likeStatusEntityKey",void 0);_.A([_.K({selectorArgs:["likeStatusEntityKey"],selector:Nm}),_.B("design:type",Object)],Kg.prototype,"likeStatusEntity",void 0);
_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],Kg.prototype,"onYtServiceRequestSent",null);Kg=_.A([_.U({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],Kg);
var Eu8=_.os()(Kg,"ytd-like-button-renderer",function(){if(VEC===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);VEC=r}r=VEC;return r},{mode:1});_.Stg={};
_.Stg.YtConditionalRendererBehavior=[_.D.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(r,f){var I=this,C,Y;return _.x(function(V){switch(V.nextAddress){case 1:if(!f)return I.hidden=!0,I.showSpinner=!1,V.return();if((C=r)==null?0:(Y=C.visibilityCondition)==null?0:Y.mode)switch(r.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return V.jumpTo(5);default:return V.jumpTo(6)}I.showSpinner=
!1;I.hidden=!0;return _.b(V,I.shouldShow_(r),4);case 4:I.hidden=!V.yieldResult;V.jumpTo(0);break;case 5:return _.b(V,I.shouldShow_(r),8);case 8:I.showSpinner=V.yieldResult;I.hidden=!1;V.jumpTo(0);break;case 6:return I.showSpinner=!1,_.b(V,I.shouldShow_(r),9);case 9:I.hidden=!V.yieldResult,_.wO(V)}})},
shouldShow_:function(r){return r&&r.supportedDatas&&r.supportedDatas.rendererVisibilityConditionData&&r.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(r.supportedDatas.rendererVisibilityConditionData.showIf):r&&r.visibilityCondition&&r.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(r.visibilityCondition.showIf):r&&r.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(r.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(r){switch(r){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(r){switch(r){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var r=_.Bj(this.hostElement,"yt-get-mdx-status");return r.length==1&&r[0].connected},
isLocationPermissionGranted_:function(){var r;return _.x(function(f){return f.nextAddress==1?navigator.permissions?_.b(f,navigator.permissions.query({name:"geolocation"}),3):f.jumpTo(2):f.nextAddress!=2?(r=f.yieldResult,f.return(Promise.resolve(r.state==="granted"))):f.return(Promise.resolve(!1))})}}];var xN8=function(r,f){f=f===void 0?{}:f;return function(I){var C=document.createElement(r),Y;var V=(Y=C.polymerController)!=null?Y:C;EMl(C,V,I,f);return C}}("yt-icon");var hFq=function(r){var f=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];f1K();_.OH("ytglobal.ytUtilActivityCallback_",function(){_.qy(r,"yt-user-activity")});
new Q9(function(){return f.JSC$14812_onMouseMove});
document.addEventListener("scroll",function(){return f.onScroll});
window.addEventListener("resize",function(){return f.onResize})},wx4=function(r,f,I){f in r.eventJobIds||(I=_.tF().addLowPriorityJob(function(){_.AV();
delete r.eventJobIds[f]},I),r.eventJobIds[f]=I)};
hFq.prototype.onScroll=function(r){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):r.target===document&&wx4(this,"scroll",200)};
hFq.prototype.onResize=function(){wx4(this,"resize",200)};
hFq.prototype.JSC$14812_onMouseMove=function(){wx4(this,"mousemove",100)};
_.OS=function(r){r.scrollEventsToIgnore+=1;r.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){r.scrollEventsToIgnore--},500))};var bt3=function(r){this.element=r;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
bt3.prototype.showFeedbackDialog=function(r,f,I,C){var Y=pxT();if(!Y)return!1;var V=cOP();V.productId=Y;f&&(V.flow="submit",V.report={description:f});I&&(pxT()==="59"?V.callback=_.Jn(function(){_.NW("userFeedbackEvent",{});I()}):V.callback=_.Jn(I));
V.bucket=C||_.Lz("GOOGLE_FEEDBACK_BUCKET","Other");nuU(V);r=dNX(this,"GFEEDBACK",r);try{_.Th_(V,r)}catch(S){return _.eH(S),!1}return!0};
bt3.prototype.showHelpDialog=function(r,f,I){var C=this,Y=pxT();if(!Y)return!1;var V={helpCenterPath:"/youtube",productData:dNX(this,"GUIDED_HELP",I)};nuU(V);var S=cOP();S.context=r||V.productData.context||"default";S.defaultHelpArticleId=f;S.enableSendFeedback=!0;(_.jH("gapi.load")||function(h,w){return w()})("client",function(){try{var h=ph8(Y,V);
if(_.N("web_always_load_chat_support")&&!C.chatSupportLoaded)try{h.JSC$7874_loadChatSupport(S),C.chatSupportLoaded=!0}catch(w){}h.startHelp(S)}catch(w){_.eH(w)}})};
var pxT=function(){var r=_.Lz("GOOGLE_FEEDBACK_PRODUCT_ID");r||_.eH(Error("ci"));return r},nuU=function(r){r&&(r.locale=_.N("kevlar_help_use_locale")?_.Lz("INNERTUBE_CONTEXT_HL","en"):_.Lz("HTML_LANG","en"))},dNX=function(r,f,I){var C=r.productData;
delete C.origin;C.device=_.Mc();var Y;a:{if(Y=document.createElement("canvas")){var V=Y.getContext("experimental-webgl",{stencil:!0});if(V){var S=V.getExtension("WEBGL_debug_renderer_info");if(S){Y=V.getParameter(S.UNMASKED_RENDERER_WEBGL);break a}}if(V=Y.getContext("webgl")){Y=V.getParameter(V.RENDERER);break a}}Y=null}C.gpu=Y;C.isSDC=!!_.Lz("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(Y=_.Lz("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.X0.extend(C,Y);_.t1K(f,C);_.T1u(C);(r=_.qy(r.element,"yt-get-autonav-pause-debug-state"))&&
r.length&&(C.autonav_pause_state=r[0]);r=_.Sj();C.browser_resolution=r.width+"\u00d7"+r.height+"@"+(window.devicePixelRatio||1)+"x";I&&_.X0.extend(C,I);return C};
bt3.prototype.resetProductData=function(){this.productData={}};var zF_=function(r){this.feedbackManager=new bt3(r)};
zF_.prototype.showFeedbackDialog=function(r,f,I,C){return this.feedbackManager.showFeedbackDialog(r,f,I,C)};
zF_.prototype.showHelpDialog=function(r,f,I){return this.feedbackManager.showHelpDialog(r,f,I)};var MEs=function(){this.baseUrl="";this.aTag=document.createElement("a")},A4V=function(r,f,I){I=I===void 0?{}:I;
I.pbj||(I.pbj=1);I=_.y3R(f,I);r.baseUrl&&I&&!_.sQ(I)[1]&&!_.OQ(I)&&(f=r.baseUrl,hm(f,"/")&&(f=f.slice(0,-1)),_.xq(I,"/")&&(I=I.slice(1)),I=f+"/"+I);t6(r.aTag,zC(I||""));return r.aTag.href};
MEs.prototype.fetchData=function(r){return _.agq(r)};
MEs.prototype.postData=function(r,f){var I={method:"POST"};if(f){for(var C=_.E(Object.keys(f)),Y=C.next();!Y.done;Y=C.next()){Y=Y.value;var V=f[Y];_.lV(V)&&(f[Y]=JSON.stringify(V))}I.postParams=f}return _.agq(r,I)};
_.Zgg=function(r,f,I,C,Y){r=A4V(r,f,I);if(!r)throw C=Error("di"),Object.assign(C,{params:f}),C;return _.agq(r,Y,C)};
MEs.prototype.requestDataForServiceEndpoint=function(r,f){if(_.F(r,_.i0B))return this.fetchData("/getAccountSwitcherEndpoint");f=f||{};var I=_.F(r,i7D);I?f.se=I.base64EncodedServiceEndpoint:f.sej=JSON.stringify(r);(I=_.t1())&&_.N("enable_service_ajax_csn")&&(f.csn=I);f.theme=_.Pt();_.F(r,jTK)&&_.Lz("DELEGATION_CONTEXT")&&(f.delegation_context=JSON.stringify(_.Lz("DELEGATION_CONTEXT")));I=null;for(var C in r)if(hm(C,"Endpoint")||hm(C,"Command")){I=C;break}if(!I){var Y=Error("ei");Object.assign(Y,{params:r});
_.RsU(Y,"WARNING");return new _.lz(function(S,h){h(Y)})}C={name:I};
var V;(I=(V=_.F(r,_.YI))==null?void 0:V.signal)&&(C.signal=I);(V=_.Kz(window.location.href))&&V.internalcountrycode&&(C.internalcountrycode=V.internalcountrycode);V="/service_ajax";_.N("debug_forward_web_query_parameters")&&(V=_.k5u(V,window.location.search));V=_.UQ(V,C);r.clickTrackingParams&&_.sl(V,{itct:r.clickTrackingParams});return this.postData(V,f)};_.guD=new _.Go("GFEEDBACK_TOKEN");var aF4;var Xx8;var NqD;var $Nq;var yg=function(){var r=_.y.apply(this,arguments)||this;r.compact=!1;return r};
_.t(yg,_.y);yg.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
yg.prototype.computeHasIcon_=function(r){return!!r};
yg.prototype.isSignInIcon_=function(r){return r=="yt-icons:prompted_sign_in"};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],yg.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.Stg.YtConditionalRendererBehavior),_.B("design:type",Object)],yg.prototype,"ytConditionalRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],yg.prototype,"data",void 0);
_.A([_.K({computed:"computeIcon_(data.icon)"}),_.B("design:type",Object)],yg.prototype,"icon_",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.B("design:type",Boolean)],yg.prototype,"hasIcon_",void 0);_.A([_.K({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.B("design:type",Boolean)],yg.prototype,"signInIcon_",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],yg.prototype,"compact",void 0);
yg=_.A([_.zX({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],yg);
_.Q(yg,"yt-player-error-message-renderer",function(){if($Nq===void 0){var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;NqD===void 0&&(NqD=document.createElement("template"));var C=NqD;I.call(f,C.content.cloneNode(!0),r.content.firstChild);$Nq=r}r=$Nq;return r},{mode:2});var Fn4;var PGV;var Ub=function(){return _.y.apply(this,arguments)||this};
_.t(Ub,_.y);Ub.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ub.prototype.computeIcon_=function(r){return r?"yt-icons:"+r.iconType.toLowerCase():"error_outline"};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Ub.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ub.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Ub.prototype,"data",void 0);_.A([_.K({computed:"computeIcon_(data.icon)"}),_.B("design:type",Object)],Ub.prototype,"icon_",void 0);Ub=_.A([_.zX({is:"yt-player-kav-renderer",disableElementRegistration:!0})],Ub);
_.Q(Ub,"yt-player-kav-renderer",function(){if(PGV===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;Fn4===void 0&&(Fn4=document.createElement("template"));var C=Fn4;I.call(f,C.content.cloneNode(!0),r.content.firstChild);PGV=r}r=PGV;return r},{mode:2});_.Kv(_.Hc(function(r){var f=_.yy(),I=_.E(_.ld(0,void 0,"gCmSbf")),C=I.next().value,Y=I.next().value;I=_.E(_.ld(null,void 0,"Rj9zMe"));var V=I.next().value,S=I.next().value;_.$E(function(){mRR(f.value,Y,S);f.value.scrollIntoView()});
I=e8P.bind(null,r.data,C);Qy("resize",function(){var h=V();if(C()===1&&h!==null){var w;(w=window.grecaptcha)==null||w.reset(h)}});
return _.p("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.p("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.p("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var h,w;return(h=r.data().accessibility)==null?void 0:(w=h.accessibilityData)==null?void 0:w.label}),_.p(_.wW,{text:I,
className:_.qd("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.p("div",{el:f,class:"ytwPlayerCaptchaViewModelGridItem"})))},"be"),"yt-player-captcha-view-model",{props:{data:_.vI}});var JOP=!1;_.tEV=_.Hc(function(r){var f=r.data;return _.p("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.p(_.M,{cond:function(){return f().icon},
then:function(I){return _.p("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.p(_.J3,{data:I,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.p(_.M,{cond:function(){return f().title},
then:function(I){return _.p("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.p(_.wW,{text:I}))}}),_.p(_.M,{cond:function(){return f().description},
then:function(I){return _.p("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.p(_.wW,{text:I}))}}),_.p(_.X1,{data:function(){return f().primaryButton}},{buttonViewModel:function(I){return _.p(_.LF,{data:I.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.p(_.X1,{data:function(){return f().secondaryButton}},{buttonViewModel:function(I){return _.p(_.LF,{data:I.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"ce");
_.tEV.idomCompat=!0;var Tq4=_.Hc(function(r){var f=r.data;_.ZN();return _.p("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.p("div",{class:"player-interstitial-renderer-wiz__scrim"},_.p(_.X1,{data:function(){return f().content}},{interstitialViewModel:_.tEV})))},"de");
Tq4.idomCompat=!0;_.Kv(Tq4,"yt-player-interstitial-renderer",{props:{data:_.jv}});var sb=function(){var r=_.y.apply(this,arguments)||this;r.noBackground=!1;r.compact=!1;r.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return r};
_.t(sb,_.y);sb.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"}}}};
sb.prototype.onUpdatePlayerErrorMessageCommand_=function(r){if(_.F(r,q5U)){var f;if(r=(f=_.F(r,q5U))==null?void 0:f.newPlayerErrorMessageRenderer)this.data=r}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],sb.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],sb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],sb.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],sb.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],sb.prototype,"status",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],sb.prototype,"noBackground",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],sb.prototype,"compact",void 0);sb=_.A([_.zX({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],sb);
var cw4=_.os()(sb,"yt-playability-error-supported-renderers",function(){if(Xx8===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;aF4===void 0&&(aF4=document.createElement("template"));var C=aF4;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Xx8=r}r=Xx8;return r},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var j$U=void 0,ibK=void 0;var KUR=new u08;var Ed=new _.Go("ENTITY_STATE_TOKEN"),Ob=new _.Go("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Wns=function(r){this.store=r;this.lGT=new _.fE3},obU=function(r,f,I){var C,Y;
if(!(Y=((C=f.playabilityStatus)==null?void 0:C.status)!=="OK")){r=r.store;var V;Y=f.offlineState&&((V=f.videoDetails)==null?0:V.videoId)?_.N("enable_pl_r_c_cd")?wqU(r.getState().entities,f.videoDetails.videoId):!!dhu(r.getState().entities,f.videoDetails.videoId):!1}if(Y)return!0;Y=ozl(f);if(Y===1){if(_.N("ab_v_vid_sig")){var S,h=(S=f.videoDetails)==null?void 0:S.videoId;if(!h||!I||h!==I){var w;f=new _.nf("282054944_vid",{q8s:I,a8r:(w=f.videoDetails)==null?void 0:w.videoId});_.Fo(f)}}return!0}GwK=
0;var n,d;w=(h=f.auxiliaryUi)==null?void 0:(n=h.messageRenderers)==null?void 0:(d=n.bkaEnforcementMessageViewModel)==null?void 0:d.displayType;if(Y!==3&&(w==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||w==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;w={reason:_.AZ(_.VR("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.N("ks_something_wrong_learn_more")?Utl("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.AZ(_.VR("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:_.AZ("282054944")};LnT(f,{playerErrorMessageRenderer:w});return!1},QUu=function(r,f){if(hVR(f)){_.Ib(1,!0);
var I=(I=hVR(f))&&_.HbK()?I:void 0;I?(LnT(f,{enforcementMessageViewModel:I}),r.lGT.increment("IN_PLAYER"),_.Ib(5)):(r.lGT.increment("SKIP_DISPLAY"),_.Ib(2))}},LnT=function(r,f){r.playabilityStatus=Object.assign({},r.playabilityStatus,{status:"ERROR",
errorScreen:f});r.videoDetails=void 0};
Wns.prototype.handleResponse=function(r,f){if(r.playabilityStatus){var I,C,Y,V=(f==null?void 0:(I=f.innerTubeRequest)==null?void 0:I.videoId)||(f==null?void 0:(C=f.innerTubeRequest)==null?void 0:(Y=C.playerRequest)==null?void 0:Y.videoId);obU(this,r,V)&&QUu(this,r)}};
Wns[ZB]=[Ed];var sUK=new _.Go("ADBLOCK_DETECTION_SERVICE_TOKEN");var qp=function(r){this.abK=r};
qp.prototype.bindInnertubeChallengeFetcher=function(r){this.abK.bicf(r)};
qp.prototype.registerChallengeFetchedCallback=function(r){this.abK.bcr(r)};
qp.prototype.getLatestChallengeResponse=function(){return this.abK.blc()};var jnB;_.oX=function(r,f,I){var C=this;this.network=r;this.options=f;this.networkStatusManager=I;this.kk=null;if(f.useBotguardEverywhere){var Y=new _.uX;this.kk=Y.promise;_.Yq.ytAtRC&&_.pF(_.F_,function(){var V,S;return _.x(function(h){if(h.nextAddress==1){if(!_.Yq.ytAtRC)return h.return();V=mNB(null);return _.b(h,C.xX(V),2)}S=h.yieldResult;_.Yq.ytAtRC&&_.Yq.ytAtRC(JSON.stringify(S));_.wO(h)})});
kx$().then(function(V){var S,h,w,n;return _.x(function(d){if(d.nextAddress==1)return V.bindInnertubeChallengeFetcher(function(z){return C.xX(mNB(z))}),_.b(d,jZE(),2);
S=d.yieldResult;h=V.getLatestChallengeResponse();w=h.challenge;if(!w)throw Error("fi");n={challenge:w,rW:BS(w),k9:S,bgChallenge:new GN};Y.resolve(n);V.registerChallengeFetchedCallback(function(z){z=z.challenge;if(!z)throw Error("gi");z={challenge:z,rW:BS(z),k9:S,bgChallenge:new GN};C.kk=Promise.resolve(z)});
_.wO(d)})})}else f.preload&&eF3(this,new Promise(function(V){_.dp(_.F_,function(){V(JwT(C))},0)}))};
jnB=function(r){var f={preload:!0,useBotguardEverywhere:_.N("attmusi")},I=!1;if(typeof f==="boolean")var C={preload:f};else typeof f==="undefined"?C={preload:!0}:(C=f,I=!!f.cjI);f=I?void 0:new _.ix;_.oX.instance=new _.oX(r,C,f);return _.oX.instance};
_.oX.prototype.i4y=function(){var r=this;return _.x(function(f){return f.nextAddress==1?_.b(f,Promise.race([r.kk,null]),2):f.return(!!f.yieldResult)})};
_.oX.prototype.rff=function(r,f,I){var C=this,Y,V,S;return _.x(function(h){C.kk===null&&eF3(C,JwT(C));Y=!1;V={};S=function(){var w,n,d;return _.x(function(z){switch(z.nextAddress){case 1:return _.b(z,C.kk,2);case 2:w=z.yieldResult;V.challenge=w.challenge;if(!w.k9){"c1a"in w.rW&&(V.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");z.jumpTo(3);break}n=Object.assign({},{c:w.challenge,e:r},f);_.l_(z,4);Y=!0;if(_.N("attbs")&&!_.N("attmusi")){d=_.DaB(w.k9,{mF:n});z.jumpTo(6);break}return _.b(z,w.k9.snapshot({mF:n}),
7);case 7:d=z.yieldResult;case 6:d?V.webResponse=d:V.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.Hd(z,3);break;case 4:_.ha(z),V.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(r==="ENGAGEMENT_TYPE_PLAYBACK"){var g=w.rW,X={};if(g.c6a){var P=Number(_.Lz("DCLKSTAT",0));X.reportingStatus=String(Number(g.c)^(isNaN(P)?0:P))}g.c6b&&(X.broadSpectrumDetectionResult=String(Number(g.c)^Number(_.Lz("CATSTAT",0))));V.adblockReporting=X}return z.return(V)}})};
return h.return(Promise.race([S(),Ht3(I,function(){var w=Object.assign({},V);Y&&(w.error="ATTESTATION_ERROR_VM_TIMEOUT");return w})]))})};
var mNB=function(r){var f={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};r&&(f.interpreterHash=r);return f},JwT=function(r,f){f=f===void 0?0:f;
var I,C,Y,V,S,h,w,n,d,z,g,X;return _.x(function(P){switch(P.nextAddress){case 1:I=mNB(f8D().raE);if(_.N("att_fet_ks"))return _.l_(P,7),_.b(P,r.xX(I),9);_.l_(P,4);return _.b(P,itV(r,I),6);case 6:S=P.yieldResult;Y=S.qcy;V=S.mgl;C=S;_.Hd(P,3);break;case 4:return _.ha(P),_.t7(Error("hi`"+f)),RFg(r,864E5),P.return({challenge:"",rW:{},k9:void 0,bgChallenge:void 0});case 9:C=P.yieldResult;if(!C)throw Error("ii");if(!C.challenge)throw Error("ji");Y=C.challenge;V=BS(Y);if("c1a"in V&&(!C.bgChallenge||!C.bgChallenge.program))throw Error("ki");
_.Hd(P,3);break;case 7:h=_.ha(P);_.t7(h);f++;if(f>=5)return _.t7(Error("hi`"+f)),RFg(r,864E5),P.return({challenge:"",rW:{},k9:void 0,bgChallenge:void 0});w=1E3*Math.pow(2,f-1)+Math.random()*1E3;return P.return(new Promise(function(W){_.dp(_.F_,function(){W(JwT(r,f))},w)}));
case 3:n=Gxw(V);RFg(r,n*1E3);d=void 0;if(!("c1a"in V&&C.bgChallenge)){P.jumpTo(10);break}z=Zb$(C.bgChallenge);_.l_(P,11);return _.b(P,C3B(f8D(),z),13);case 13:_.Hd(P,12);break;case 11:return g=_.ha(P),_.t7(g),P.return({challenge:Y,rW:V,k9:d,bgChallenge:z});case 12:return _.l_(P,14),d=new _.W7({challenge:z,l0:{zl:"aGIf"}}),_.b(P,d.oBS,16);case 16:_.Hd(P,10);break;case 14:X=_.ha(P),_.t7(X),d=void 0;case 10:return P.return({challenge:Y,rW:V,k9:d,bgChallenge:z})}})};
_.oX.prototype.xX=function(r){var f=this,I;return _.x(function(C){I=f.networkStatusManager;if(!I||I.isNetworkAvailable())return C.return(f.network.xX(r));_.$I("att_pna",void 0,"attestation_challenge_fetch");return C.return(new Promise(function(Y){I.listenOnce("publicytnetworkstatus-online",function(){f.network.xX(r).then(Y)})}))})};
var vug=function(r){if(!r)throw Error("ii");if(!r.challenge)throw Error("ji");var f=r.challenge,I=BS(f);if("c1a"in I&&(!r.bgChallenge||!r.bgChallenge.program))throw Error("ki");return Object.assign({},r,{qcy:f,mgl:I})},itV=function(r,f){var I,C,Y,V,S;
return _.x(function(h){switch(h.nextAddress){case 1:I=void 0,C=0,Y={};case 2:if(!(C<5)){h.jumpTo(4);break}if(!(C>0)){h.jumpTo(5);break}Y.qGE=1E3*Math.pow(2,C-1)+Math.random()*1E3;return _.b(h,new Promise(function(w){return function(n){_.dp(_.F_,function(){n(void 0)},w.qGE)}}(Y)),5);
case 5:return _.l_(h,7),_.b(h,r.xX(f),9);case 9:return V=h.yieldResult,h.return(vug(V));case 7:I=S=_.ha(h),S instanceof Error&&_.t7(S);case 8:C++;Y={qGE:void 0};h.jumpTo(2);break;case 4:throw I;}})},eF3=function(r,f){r.kk=f},Kn8=function(r){var f,I,C;
return _.x(function(Y){if(Y.nextAddress==1)return _.b(Y,Promise.race([r.kk,null]),2);f=Y.yieldResult;var V=JwT(r);r.kk=V;(I=f)==null||(C=I.k9)==null||C.dispose();_.wO(Y)})},RFg=function(r,f){var I=Date.now()+f,C=function(){var Y;
return _.x(function(V){Y=I-Date.now();return Y<1E3?_.b(V,Kn8(r),0):(_.dp(_.F_,C,Math.min(Y,6E4)),V.jumpTo(0))})};
C()},Ht3=function(r,f){return new Promise(function(I){_.dp(_.F_,function(){I(f())},r)})};var yw3=function(){};
yw3.prototype.processContext=function(r){var f=_.oX.instance;if(!f)return _.Kl();var I=rzP(r);return I?new v_(f.rff(I,u7w(r),500).then(function(C){var Y;(r==null?0:(Y=r.innerTubeRequest)==null?0:Y.context)||(r.innerTubeRequest.context={});Y=r.innerTubeRequest.context;Y.request||(Y.request={});Y.request.attestationResponseData=C})):_.Kl()};var UNX=function(r){this.innertubeTransportService=r};
UNX.prototype.xX=function(r){_.$I("att_fsr",void 0,"attestation_challenge_fetch");return _.cP(this.innertubeTransportService,r,_.yC(_.Q_U)).then(function(f){_.$I("att_frr",void 0,"attestation_challenge_fetch");return f})};_.snD=function(r){this.innertubeTransportService=r};var OtT=new _.Go("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var ouC=function(){},Aw3=function(r,f,I,C,Y){var V=_.Lz("YPC_MB_URL");
_.j2u(V).then(function(){QnX(V,r,f,I,C,Y)})},QnX=function(r,f,I,C,Y,V){try{var S=payments.business.integration,h=payments.business.integration.Style.create().withMaterialDesignStyle(),w=S.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.N("enable_window_constrained_buy_flow_dialog")&&(w=w.usingPopupStyle("windowConstrained"));V&&(w=w.usingCloseCallback(V));var n=I?I:_.Lz("YPC_GB_LANGUAGE"),d=_.Lz("SESSION_INDEX");S.bootstrap.fromPaymentsUrl(r);S.bootstrap.asMashupMode(w).usingGaiaIndex(d).usingLocale(n).usingStyle(h).usingDefaultActivityStatusChangeHandler().inStandaloneContext(S.standaloneContextAuthId.forGaia()).purchaseManager(f,function(z){C&&C(z)}).load(void 0,Y)}catch(z){throw Y&&Y(z),_.Fo(z),z;
}};var Zt4=new _.Go("PURCHASE_MANAGER_TOKEN");var Gp4=function(){var r=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return r.videos},
getContinuationsPresent:function(){return r.continuationsPresent},
setVideos:function(f){r.videos=f},
getRecommendedVideos:function(){return r.recommendedVideos},
setRecommendedVideos:function(f){r.recommendedVideos=f}}};
Gp4.prototype.addVideos=function(r){r&&(this.videos=r.filter(function(f){return!!_.IfK(f)}).map(function(f){var I=_.IfK(f);
a:{var C;if(f.playlistVideoRenderer&&((C=f.playlistVideoRenderer)==null?0:C.voteSortTiebreaker))var Y=f.playlistVideoRenderer.voteSortTiebreaker;else{if(_.F(f,DN)){var V;if(C=(Y=_.F(f,DN))==null?void 0:(V=Y.playlistItemData)==null?void 0:V.voteSortTiebreaker){Y=C;break a}}Y=""}}return{itemId:I,videoId:_.lfq(f),voteCount:_.VCq(f),voteSortTiebreaker:Y}}),this.continuationsPresent=!!_.F(r[r.length-1],_.Ip))};
var kpT=function(r,f){return r.videos.findIndex(function(I){return I.itemId===f})},BqB=function(r,f){return r.recommendedVideos.findIndex(function(I){return I.itemId===f})},qt4=function(r){r={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:r}}}}};_.a().resolve(_.Gg).resolveCommand(r)};var uPB=function(){Gp4.apply(this,arguments)};
_.t(uPB,Gp4);
var R8D=function(r,f,I,C){if(!r.parentElem)throw Error("pi");var Y=kpT(r,f);Y===-1&&(Y=BqB(r,f),Y=Y!==-1?Y+r.videos.length:-1);if(Y===-1)throw Error("qi");var V=Y>=r.videos.length?r.recommendedVideos[Y-r.videos.length]:r.videos[Y];V.voteCount=I;V.voteSortTiebreaker=Date.now().toString();Y>=r.videos.length?r.recommendedVideos.splice(Y-r.videos.length,1):r.videos.splice(Y,1);var S=r.videos;for(var h=0,w=S.length-1;h<=w;){var n=Math.floor((h+w)/2);if(S[n].voteCount<V.voteCount)w=n-1;else if(S[n].voteCount>V.voteCount)h=
n+1;else{a:{var d=V.voteSortTiebreaker;var z=S[n].voteSortTiebreaker;if(d.length!==z.length)d=d.length>z.length;else{for(var g=0;g<d.length;g++){var X=d.charCodeAt(g),P=z.charCodeAt(g);if(X>P){d=!0;break a}if(X<P)break}d=!1}}d?w=n-1:h=n+1}}S=h;if(S===-1)throw Error("ri");r.videos.splice(S,0,V);Y!==S&&DNU(r,Y,S,f,I,C)},DNU=function(r,f,I,C,Y,V){var S,h=(S=r.parentElem)==null?void 0:S.children,w=Math.min(f,I),n=Math.max(f,I);
if(h)for(S=w;S<=n;S++)h[S].style.viewTransitionName="item-"+String(S);document.startViewTransition(function(){if(r.parentElem){var d=r.parentElem.children;if(!(!d||f<0||f>=d.length||I<0||I>=d.length)){var z=d[f];if(z){z.remove();r.showRefreshPill=I>=r.videos.length-1&&r.continuationsPresent;if(!r.showRefreshPill){d=d[I]||null;var g;(g=r.parentElem)==null||g.insertBefore(z,d)}_.kA(r.parentElem,"yt-update-video-data-voting-animation",{toIdx:I,itemId:C,newVoteCount:Y,voteStatus:V,hideItem:r.showRefreshPill})}}}}).finished.then(function(){if(h)for(var d=
w;d<=n;d++)h[d].style.viewTransitionName="";
if(r.showRefreshPill)qt4(_.VR("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var z;if(z=d=(z=r.parentElem)==null?void 0:z.children[I])z=d.getBoundingClientRect(),d=z.bottom,z=!(z.top>=0&&d<=r.clientHeight);z&&(z=_.E_(f>I?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(f-I)),qt4(z))}})};var I64=function(r,f){var I=this;r?this.innertubeTransportServicePromise=Promise.resolve(r):f&&(this.innertubeTransportServicePromise=f(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new WT(3E3,function(C){return re3(I,C)},0);
this.validateMiniAppVideoIdRateLimiter=new WT(3E3,function(C){return f6X(I,C)},1)},KzD=function(r,f){r.JSC$14926_miniAppId=f;
r.reportMiniAppValueRateLimiter=new WT(3E3,function(I){return re3(r,I)},0);
r.validateMiniAppVideoIdRateLimiter=new WT(3E3,function(I){return f6X(r,I)},1)},Uxq=function(r,f){var I;
return _.x(function(C){if(C.nextAddress==1)return _.b(C,r.reportMiniAppValueRateLimiter.call(f),2);I=C.yieldResult;return C.return([I,f])})},re3=function(r,f){var I,C,Y,V,S,h,w;
return _.x(function(n){switch(n.nextAddress){case 1:return _.b(n,r.innertubeTransportServicePromise,2);case 2:return I=n.yieldResult,C=_.yC(uG4),Y=Date.now(),V={externalPostId:r.JSC$14926_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(Y/1E3),nanos:Math.round(Y%1E3*1E6)},intValue:""+f}},_.l_(n,3),_.b(n,_.cP(I,V,C),5);case 5:S=n.yieldResult;_.Hd(n,4);break;case 3:throw h=_.ha(n),h;case 4:if(S){if("error"in S&&S.error)throw S.error;if(S.errorMetadata)throw Error("si`"+
S.errorMetadata.status);if(w=S.userStatResult)return n.return(w);throw Error("ti");}throw Error("ui");}})},O58=function(r){var f,I,C,Y,V;
_.x(function(S){switch(S.nextAddress){case 1:return _.b(S,r.innertubeTransportServicePromise,2);case 2:return f=S.yieldResult,I=_.yC(uG4),C={externalPostId:r.JSC$14926_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.l_(S,3),_.b(S,_.cP(f,C,I),5);case 5:Y=S.yieldResult;_.Hd(S,4);break;case 3:throw V=_.ha(S),V;case 4:if(Y==null)throw Error("ui");if("error"in Y&&Y.error)throw Y.error;if(Y.errorMetadata)throw Error("si`"+Y.errorMetadata.status);_.wO(S)}})};
I64.prototype.flush=function(){var r=this;return _.x(function(f){return f.nextAddress==1?_.b(f,r.reportMiniAppValueRateLimiter.flush(),2):_.b(f,r.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var seU=function(r,f){return _.x(function(I){return I.nextAddress==1?_.b(I,r.validateMiniAppVideoIdRateLimiter.call(f),2):I.return(I.yieldResult)})},f6X=function(r,f){var I,C,Y,V,S,h;
return _.x(function(w){switch(w.nextAddress){case 1:return _.b(w,r.innertubeTransportServicePromise,2);case 2:return I=w.yieldResult,C=_.yC(onB),Y={videoId:f},_.l_(w,3),_.b(w,_.cP(I,Y,C),5);case 5:V=w.yieldResult;_.Hd(w,4);break;case 3:throw S=_.ha(w),S;case 4:if(V){if("error"in V&&V.error)throw V.error;if(V.errorMetadata)throw Error("si`"+V.errorMetadata.status);if(h=V.playabilityStatus)return w.return(h.status);throw Error("vi");}throw Error("ui");}})};
I64[ZB]=[_.ZY(_.pJ),_.ZY(NNs)];var CJ_=function(){this.clientData=new Map};
CJ_.prototype.getData=function(r){return this.clientData.get(r)};var YOV=function(r){this.store=r};
YOV.prototype.handleResponse=function(r){(r=_.F(r.frameworkUpdates,ju))&&_.VC(r,this.store)};
YOV[ZB]=[_.Nb];var l6D=new _.Go("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var V6B={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,1,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],
search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_list:[[0,
1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,
1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var EW4=new _.Go("ICON_SET_TOKEN"),SOC=new _.Go("ICON_URL_PROVIDER_TOKEN"),x9q=new _.Go("PREFETCH_ICONS_TOKEN"),hCV=new _.Go("ICON_MAP_FN_TOKEN");var Qg={},wNC=(Qg.ACCESS_TIME="clock",Qg.ACCOUNT_BOX="person_account",Qg.ACCOUNT_BOX_CAIRO="person_account_cairo",Qg.ACCOUNT_CIRCLE="person_circle",Qg.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",Qg.ACCOUNT_LINKED="account_link_success",Qg.ACCOUNT_UNLINKED="account_link",Qg.ADD_FRIEND="people",Qg.ADD_TO_LIBRARY=fG("add"),Qg.ADD_TO_PLAYLIST="add",Qg.ADD_TO_QUEUE_TAIL="list_queue",Qg.ADD_TO_REMOTE_QUEUE="list_music",Qg.ADD_TO_WATCH_LATER="clock",Qg.ADD_VIDEO_LINK="film_strip_add",Qg.ALERT_WARN_RED="alert_triangle",
Qg.ARROW_BACK="arrow_left",Qg.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",Qg.ARROW_DROP_DOWN="chevron_down",Qg.ARROW_DROP_UP="chevron_up",Qg.ARROW_FORWARD="arrow_right",Qg.AUDIOTRACK="audio",Qg.AUTO_AWESOME="sparkle",Qg.AVATAR_ANONYMOUS="person_circle",Qg.AVATAR_LOGGED_OUT="person_circle",Qg.BACK="arrow_left",Qg.BAR_CHART="bar_graph",Qg.BLOCK="slash_circle_left",Qg.BLOCK_USER="slash_circle_left",Qg.BOOKMARK_BORDER="bookmark",Qg.BREAKING_NEWS_ALT_1="article_alert",Qg.BROADCAST_CAIRO="podcast_cairo",
Qg.BUG_REPORT="bug",Qg.CAMERA_ALT="camera",Qg.CAMPAIGN="megaphone",Qg.CANCEL="x_circle",Qg.CAPTIONS="closed_caption",Qg.CAST_OUTLINE="chromecast",Qg.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Qg.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",Qg.CHAT="message_bubble_left",Qg.CHAT_BUBBLE="message_bubble_empty",Qg.CHECK_BOX_OUTLINE_BLANK="box_empty",Qg.CHECK_CIRCLE_OUTLINE="check_circle",Qg.CHECK_CIRCLE_THICK="check_circle",Qg.CLARIFY="article_clarify",Qg.CLOSED_CAPTION_SELECTED="closed_caption",Qg.CLOSE=
"x_mark",Qg.CLOUD_UPLOAD="cloud_arrow_up",Qg.COLLAPSE="chevron_up",Qg.COLLAPSE_CAIRO="chevron_up_cairo",Qg.COLLECTION="layers",Qg.COLOR_LENS="palette",Qg.COMMENT="message_bubble_right",Qg.CONSENT_SHIELD="person_shield",Qg.CONTENT_CUT="scissors",Qg.CONTENT_CUT_CAIRO="scissors_cairo",Qg.COURSE=_.N("web_enable_course_icon_update")?"creator_academy":"lightbulb",Qg.COURSE_CAIRO=_.N("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",Qg.CREATION_LIVE="radar_live",Qg.CREATION_UPLOAD=
"my_videos",Qg.CREATION_UPLOAD_RED="upload",Qg.CREATOR_STUDIO="youtube_studio",Qg.DELETE="trash_can",Qg.DELETE_SWEEP="trash_can",Qg.DESKTOP="laptop",Qg.DISLIKE="thumb_down",Qg.DISLIKE_SELECTED="thumb_down",Qg.DISMISSAL="x_mark",Qg.DISMISS_QUEUE="list_remove",Qg.DOWN_ARROW="arrow_down",Qg.DO_NOT_DISTURB="slash_circle_left",Qg.DRAFT="paper_corner_folded",Qg.DRAG_HANDLE="bars_2",Qg.EDIT="pencil",Qg.EMOJI="face_very_happy",Qg.EMOJI_FLAGS="flag",Qg.EMOJI_OBJECTS="lightbulb",Qg.EMOJI_PEOPLE="face_very_happy",
Qg.EMOJI_RECENT="clock",Qg.EMPTY_HEART="heart",Qg.EMPTY_LIKE="thumb_up",Qg.ERROR_BLACK="alert_circle",Qg.ERROR_OUTLINE="alert_circle",Qg.EXIT_APP="arrow_in",Qg.EXIT_TO_APP="arrow_in",Qg.EXPAND="chevron_down",Qg.EXPAND_ALL="chevron_expand",Qg.EXPAND_CAIRO="chevron_down_cairo",Qg.EXPAND_LESS="chevron_up",Qg.EXPAND_MORE="chevron_down",Qg.EXPLORE="compass",Qg.EXPLORE_DESTINATION="compass",Qg.EXTERNAL_LINK="open_new",Qg.FAB_UPLOAD="upload",Qg.FACE_HAPPY_OUTLINE="face_happy",Qg.FACT_CHECK="article_check",
Qg.FASHION_LOGO="fashion",Qg.FASHION_LOGO_CAIRO="fashion_cairo",Qg.FAVORITE="heart",Qg.FEEDBACK="message_bubble_alert",Qg.FEEDBACK_CAIRO="message_bubble_alert_cairo",Qg.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",Qg.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Qg.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Qg.FLAG="flag",Qg.FULL_HEART="heart",Qg.GAME_CONSOLE_DPAD="game_console_dpad",Qg.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",Qg.GAMING_LOGO="gaming",Qg.GAMING_LOGO_CAIRO="gaming_cairo",Qg.GO_TO_PAGE=
"arrow_right",Qg.GROUPS="people_group",Qg.HAPPY="face_happy",Qg.HEALTH_AND_SAFETY="shield_plus",Qg.HELP="question_circle",Qg.HELP_CAIRO="question_circle_cairo",Qg.HELP_OUTLINE="question_circle",Qg.HIDE="slash_circle_left",Qg.IMAGE="image",Qg.INFINITY_ICON="infinity",Qg.INFO="info_circle",Qg.INFO_OUTLINE="info_circle",Qg.INSERT_CHART_OUTLINED="bar_graph_box_vertical",Qg.INSERT_PHOTO="image",Qg.KEEP="pin",Qg.KEEP_OFF="pin_off",Qg.KEYBOARD="keyboard",Qg.KEYBOARD_ARROW_DOWN="chevron_down",Qg.KEYBOARD_ARROW_UP=
"chevron_up",Qg.KIDS_BLOCK="slash_circle_left",Qg.LANGUAGE="globe",Qg.LAUNCH="open_new",Qg.LEARNING="lightbulb",Qg.LEARNING_CAIRO="lightbulb_cairo",Qg.LIBRARY_ADD=fG("library_add"),Qg.LIBRARY_OUTLINE="library",Qg.LIBRARY_REMOVE=fG(),Qg.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",Qg.LIKES_PLAYLIST="thumb_up",Qg.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",Qg.LIKE="thumb_up",Qg.LIKE_SELECTED="thumb_up",Qg.LIVE="radar_live",Qg.LIVE_CAIRO="radar_live_cairo",Qg.LIVE_UNLISTED="link",Qg.LOCATION_ON="location_point",
Qg.LOCATION_PIN="location_point",Qg.LOOP="arrow_repeat",Qg.LOOP_ACTIVE="arrow_repeat",Qg.LOOP_ONE="arrow_repeat_1",Qg.LOOP_ONE_ACTIVE="arrow_repeat_1",Qg.MEH="face_meh",Qg.MEMBERS_ONLY_MODE_OFF="message_bubble_left",Qg.MESSAGE="message_bubble_left",Qg.MICROPHONE_ON="mic",Qg.MIX="youtube_mix",Qg.MONETIZATION_ON="dollar_sign_circle",Qg.MONEY_FILL="dollar_sign_container",Qg.MONEY_FILL_JPY="yen_sign_container",Qg.MONEY_HEART="dollar_sign_heart",Qg.MORE_HORIZ="overflow_horizontal",Qg.MORE_VERT="overflow_vertical",
Qg.MUSIC="audio",Qg.MUSIC_CAIRO="audio_cairo",Qg.MUSIC_NOTE_SYMBOL="music",Qg.MUSIC_SHUFFLE="arrow_shuffle",Qg.MY_CHANNEL="person_circle",Qg.MY_LOCATION="location_point",Qg.NEWS_STORY="news",Qg.NEXT="chevron_right",Qg.NOTIFICATIONS="bell",Qg.NOTIFICATIONS_ACTIVE="bell_on",Qg.NOTIFICATIONS_CAIRO="bell_cairo",Qg.NOTIFICATIONS_DONE_CHECKMARK="check",Qg.NOTIFICATIONS_INBOX="bell",Qg.NOTIFICATIONS_NONE="bell",Qg.NOTIFICATIONS_OFF="bell_off",Qg.NOT_INTERESTED="slash_circle_left",Qg.OFFICIAL_ARTIST_BADGE=
"audio",Qg.OFFLINE_CLOUD="cloud_off",Qg.OFFLINE_DOWNLOAD="download",Qg.OFFLINE_DOWNLOAD_CAIRO="download_cairo",Qg.OFFLINE_PAUSE="pause",Qg.OPEN_IN_NEW="open_new",Qg.OUTLINE_ADJUST="adjust",Qg.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Qg.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Qg.OUTLINE_BAG="bag",Qg.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",Qg.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Qg.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Qg.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",
Qg.PAID="dollar_sign",Qg.PAUSE_OUTLINED="pause",Qg.PAYMENT="credit_card",Qg.PERSON_RADAR_FILLED="person_radar",Qg.PHONE_DOWNLOAD="mobile_download",Qg.PLAYABLES_LOGO="tic_tac_toe",Qg.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",Qg.PLAYLISTS="list_play_arrow",Qg.PLAYLISTS_CAIRO="list_play_arrow_cairo",Qg.PLAYLIST_ADD=fG("list_add"),Qg.PLAYLIST_ADD_CHECK=fG("list_check"),Qg.PLAY_ALL="play_arrow",Qg.PLAY_CIRCLE="play_arrow_circle",Qg.PLAY_OUTLINED="play_arrow_circle",Qg.PRIVACY_INFO="shield",Qg.PRIVACY_PRIVATE=
"lock",Qg.PRIVACY_PUBLIC="earth",Qg.PRIVACY_UNLISTED="link",Qg.PROMOTE="megaphone",Qg.PURCHASES="price_tag",Qg.PURCHASE_SUPER_CHAT="super_chat",Qg.PURCHASE_SUPER_STICKER="super_sticker",Qg.QUESTION_ANSWER="message_bubble_question",Qg.QUEUE_PLAY_LAST="list_queue_last",Qg.QUEUE_PLAY_NEXT="list_play_arrow",Qg.REMIX_FILLED="youtube_shorts_remix",Qg.REMOVE="bar_circle",Qg.REMOVE_CIRCLE="bar_circle",Qg.REMOVE_CIRCLE_OUTLINE="bar_circle",Qg.REMOVE_FROM_HISTORY="bar_circle",Qg.REMOVE_FROM_PLAYLIST="bar_circle",
Qg.REPLAY="arrow_circle",Qg.REPORT_PROBLEM="alert_triangle",Qg.SAD="face_sad",Qg.SAVE_PLAYLIST=fG("library_add"),Qg.SCHEDULE="clock",Qg.SCHOOL="creator_academy",Qg.SCREEN_FULLSCREEN="screen_full",Qg.SEARCH_HISTORY="arrow_time",Qg.SELL="price_tag",Qg.SETTINGS="gear",Qg.SETTINGS_CAIRO="gear_cairo",Qg.SETTINGS_LIGHT="gear",Qg.SETTINGS_MATERIAL="gear",Qg.SHARE_ARROW="share",Qg.SHIELD_WITH_AVATAR="person_shield",Qg.SHOPPING_BAG="bag",Qg.SHOPPING_BAG_CAIRO="bag_cairo",Qg.SHOPPING_CART="cart",Qg.SHORTS_COMMENT=
"youtube_shorts_message_bubble_right",Qg.SHORTS_DISLIKE="youtube_shorts_thumb_down",Qg.SHORTS_LIKE="youtube_shorts_thumb_up",Qg.SHORTS_SHARE="youtube_shorts_share",Qg.SHUFFLE="arrow_shuffle",Qg.SLOW_MODE_OFF="message_bubble_left",Qg.SOCIAL="people",Qg.SORT="menu_sort",Qg.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",Qg.SPEED_1X="1x",Qg.SPEED_1_POINT_2X="1_point_2x",Qg.SPEED_1_POINT_5X="1_point_5x",Qg.SPEED_1_POINT_8X="1_point_8x",Qg.SPEED_2X="2x",Qg.SPEED_POINT_2X="point_2x",Qg.SPEED_POINT_8X="point_8x",
Qg.SPONSORSHIP_STAR=_.N("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",Qg.STAFF_PICK="spotlight",Qg.START_DVR="add",Qg.STAR_BORDER="star",Qg.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",Qg.STICKER_EMOTICON="face_happy",Qg.STOP_DVR="stop",Qg.SUBSCRIBE="youtube_logo_icon",Qg.SUBSCRIBE_PLUS="add_cairo",Qg.SUBSCRIPTION_MANAGER="gear",Qg.SUPERVISOR_ACCOUNT="people",Qg.SWAP_HORIZ="arrow_swap_horizontal",Qg.SWITCH_ACCOUNTS="person_account",Qg.TAB_ACCOUNT="person",Qg.TAB_ACTIVITY=
"bell",Qg.TAB_EXPLORE="compass",Qg.TAB_HOME="home",Qg.TAB_HOME_CAIRO="home_cairo",Qg.TAB_INBOX="mail",Qg.TAB_LIKED="thumb_up",Qg.TAB_MUSIC_PREMIUM="youtube_music",Qg.TAB_SHORTS="youtube_shorts",Qg.TAB_SHORTS_CAIRO="youtube_shorts_cairo",Qg.TAB_SUBSCRIPTIONS="subscriptions",Qg.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",Qg.TAB_TRENDING="fire",Qg.TIMER="stopwatch",Qg.TRENDING="fire",Qg.TRENDING_CAIRO="fire_cairo",Qg.TRENDING_UP="rating_up",Qg.TROPHY="trophy",Qg.TROPHY_CELEBRATIONS="fireworks",Qg.TUNE=
"adjust",Qg.UNBLOCK_USER="bar_circle",Qg.UNLIMITED="youtube_logo_icon",Qg.UNPLUGGED_LIVE_GUIDE="radar_live",Qg.UNPLUGGED_SPORTS="eye_off",Qg.UPLOADS="library",Qg.UP_ARROW="arrow_up",Qg.VERTICAL_ALIGN_BOTTOM="download",Qg.VERY_HAPPY="face_very_happy",Qg.VERY_SAD="face_very_sad",Qg.VIDEOS="play_arrow_circle",Qg.VIDEO_CALL="video_camera_add",Qg.VIDEO_LIBRARY_WHITE="library",Qg.VIDEO_YOUTUBE="youtube_logo_icon",Qg.VIEW_LIST="list_view",Qg.VIEW_LIST_CAIRO="list_view_cairo",Qg.VISIBILITY="eye",Qg.VISIBILITY_OFF=
"eye_off",Qg.VOLUME_MUTE="volume_off",Qg.VOLUME_UP="volume_on",Qg.WALLPAPER="image",Qg.WARNING="alert_triangle",Qg.WATCH_HISTORY="arrow_time",Qg.WATCH_HISTORY_CAIRO="arrow_time_cairo",Qg.WATCH_LATER="clock",Qg.WATCH_LATER_CAIRO="clock_cairo",Qg.WATCH_RELATED_MIX="youtube_mix",Qg.WHAT_TO_WATCH="home",Qg.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Qg.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",Qg.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",Qg.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",Qg.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",Qg.YT_OUTLINE_MUSIC_24="music",Qg);var A4={},b14=(A4.ACCESS_TIME="clock",A4.ACCOUNT_BOX="person2_rectangle",A4.ACCOUNT_BOX_CAIRO="person_square_stack",A4.ACCOUNT_CIRCLE="person_circle",A4.ACCOUNT_CIRCLE_CAIRO="person_circle",A4.ACCOUNT_UNLINKED="account_link",A4.ADD_CIRCLE="add_circle",A4.ADD_FRIEND="person_child",A4.ADD_TO_LIBRARY="bookmark",A4.ADD_TO_PLAYLIST="add",A4.ADD_TO_QUEUE_TAIL="queue",A4.ADD_TO_REMOTE_QUEUE="playlist_audio",A4.ADD_TO_WATCH_LATER="clock",A4.ADD_VIDEO_LINK="film_strip_add",A4.ADMIN_PANEL_SETTINGS="gear",A4.ALERT_WARN_RED=
"alert_triangle",A4.ALIGN_LEFT="text_align_left",A4.ARROWS_ALERT="arrow_split_alert",A4.ARROW_BACK="arrow_left",A4.ARROW_CIRCLE="arrow_counterclockwise",A4.ARROW_CIRCLE_PLAY="replay",A4.ARROW_CIRCLE_RIGHT="arrow_clockwise",A4.ARROW_DIAGONAL="arrow_up_left",A4.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",A4.ARROW_DROP_DOWN="chevron_down",A4.ARROW_DROP_UP="chevron_up",A4.ARROW_FORWARD="arrow_right",A4.ARROW_PAUSE="pause_history",A4.ARROW_UNDO="undo",A4.ARTICLE="text_page",A4.ARTICLE_ALERT="text_page_alert",
A4.ARTICLE_CHECK="text_page_check",A4.ARTICLE_CLARIFY="text_page_info",A4.AUDIOTRACK="audio",A4.AUDIO_BADGE="audio_badge",A4.AUDIO_SURROUND="surround_sound",A4.AVATAR_ANONYMOUS="person_circle",A4.AVATAR_LOGGED_OUT="person_circle",A4.BACK="arrow_left",A4.BAR_CHART="chart_bar",A4.BAR_CIRCLE="minus_circle",A4.BAR_HORIZONTAL="minus",A4.BLOCK="circle_slash",A4.BLOCK_USER="circle_slash",A4.BOOKMARK_BORDER="bookmark",A4.BOX_OPEN_CHECK="quiz",A4.BOX_PENCIL="square_pencil",A4.BREAKING_NEWS_ALT_1="text_page_alert",
A4.BROADCAST="podcast",A4.BROADCAST_CAIRO="podcast",A4.BUG_REPORT="bug",A4.CAMERA_ALT="camera",A4.CAMPAIGN="megaphone",A4.CANCEL="x_circle",A4.CAPTIONS="closed_captions",A4.CAST_OUTLINE="chromecast",A4.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",A4.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",A4.CHAT="text_bubble",A4.CHAT_BUBBLE="bubble",A4.CHECK_CIRCLE_OUTLINE="check_circle",A4.CHECK_CIRCLE_THICK="check_circle",A4.CHECK_DOUBLE="check_done",A4.CHECK_DOUBLE_OFF="check_done_slash",A4.CHEVRON_RIGHT_CAIRO=
"chevron_right",A4.CIRCLES_OVERLAP="account_link",A4.CLAPPERBOARD_CAIRO="clapperboard",A4.CLARIFY="text_page_info",A4.CLOCK_ARROWS="clock_split",A4.CLOCK_ARROWS_ALERT="clock_split_alert",A4.CLOSED_CAPTION="closed_captions",A4.CLOSED_CAPTION_SELECTED="closed_captions",A4.CLOSE="x",A4.CLOUD_UPLOAD="cloud_arrow_up",A4.COLLAPSE="chevron_up",A4.COLLAPSE_CAIRO="chevron_up",A4.COLLECTION="square3d_stack",A4.COLOR_LENS="paint_palette",A4.COMMENT="text_bubble",A4.CONSENT_SHIELD="person_shield",A4.CONTENT_CUT=
"scissors",A4.CONTENT_CUT_CAIRO="scissors",A4.COURSE="graduation_cap",A4.COURSE_CAIRO="graduation_cap",A4.CREATION_LIVE="live",A4.CREATION_POST="square_pencil",A4.CREATION_UPLOAD="video",A4.CREATION_UPLOAD_RED="upload",A4.CREATOR_ACADEMY="graduation_cap",A4.CREATOR_STUDIO="youtube_studio",A4.DARK_THEME="theme",A4.DELETE="trash_can",A4.DELETE_SWEEP="trash_can",A4.DESKTOP="laptop",A4.DISLIKE="thumb_down",A4.DISLIKE_SELECTED="thumb_down",A4.DISMISSAL="x",A4.DOGFOOD="pawprint",A4.DOLLAR_SIGN="dollar_sign_circle",
A4.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",A4.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",A4.DOWN_ARROW="arrow_down",A4.DO_NOT_DISTURB="circle_slash",A4.DRAFT="document",A4.EARTH="globe",A4.EDIT="pencil",A4.EMOJI="face_very_happy",A4.EMOJI_FLAGS="flag",A4.EMOJI_OBJECTS="lightbulb",A4.EMOJI_PEOPLE="face_very_happy",A4.EMOJI_RECENT="clock",A4.EMPTY_HEART="heart",A4.EMPTY_LIKE="thumb_up",A4.ERROR_BLACK="alert_circle",A4.ERROR_OUTLINE="alert_circle",A4.EXIT_APP="arrow_in",A4.EXIT_TO_APP="arrow_in",
A4.EXPAND="chevron_down",A4.EXPAND_ALL="chevron_expand",A4.EXPAND_CAIRO="chevron_down",A4.EXPAND_LESS="chevron_up",A4.EXPAND_MORE="chevron_down",A4.EXPLORE="compass",A4.EXPLORE_DESTINATION="compass",A4.EXTERNAL_LINK="arrow_up_right",A4.EYE_OFF="eye_slash",A4.FAB_UPLOAD="upload",A4.FACE_HAPPY_OUTLINE="face_happy",A4.FACE_MEH="face_neutral",A4.FACT_CHECK="text_page_check",A4.FASHION_LOGO="fashion",A4.FASHION_LOGO_CAIRO="fashion",A4.FEEDBACK="alert_bubble",A4.FEEDBACK_CAIRO="alert_bubble",A4.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",A4.FILL_ARROW_SOLID_UP_16="arrow_solid_up",A4.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",A4.FLAG_CAIRO="flag",A4.FLASH_OFF="flash_slash",A4.FLASH_ON="flash",A4.FULL_HEART="heart",A4.GAMING_LOGO="gaming",A4.GAMING_LOGO_CAIRO="gaming",A4.GO_TO_PAGE="arrow_right",A4.GROUPS="person3",A4.HAND_SWIPE_LEFT="gesture_swipe_left",A4.HAND_SWIPE_RIGHT="gesture_swipe_right",A4.HAPPY="face_happy",A4.HEALTH_AND_SAFETY="shield_health",A4.HEART_BOX="heart_cube",A4.HELP="help_circle",A4.HELP_CAIRO=
"help_circle",A4.HELP_OUTLINE="help_circle",A4.HIDE="circle_slash",A4.INCOGNITO_CAIRO="incognito",A4.INFINITY_ICON="infinity",A4.INFO="info_circle",A4.INFO_OUTLINE="info_circle",A4.INSERT_PHOTO="image",A4.KEEP="pin",A4.KEEP_OFF="pin_slash",A4.KEYBOARD="keyboard",A4.KEYBOARD_ARROW_DOWN="chevron_down",A4.KEYBOARD_ARROW_UP="chevron_up",A4.KIDS_BLOCK="circle_slash",A4.LANGUAGE="globe",A4.LAUNCH="arrow_up_right",A4.LEARNING="lightbulb",A4.LEARNING_CAIRO="lightbulb",A4.LIBRARY_ADD="bookmark",A4.LIBRARY_IMAGE=
"image_stack",A4.LIBRARY_MUSIC="audio_square_stack",A4.LIBRARY_OUTLINE="play_square_stack",A4.LIBRARY_REMOVE="bookmark",A4.LIKES_PLAYLIST="thumb_up",A4.LIKES_PLAYLIST_CAIRO="thumb_up",A4.LIKE="thumb_up",A4.LIKE_SELECTED="thumb_up",A4.LIST_QUEUE="queue",A4.LIVE_CAIRO="live",A4.LIVE_UNLISTED="link",A4.LOCATION_ON="location_pin",A4.LOCATION_PIN="location_pin",A4.LOCATION_POINT="location_pin",A4.LOOP="repeat",A4.LOOP_ACTIVE="repeat",A4.LOOP_ONE="repeat1",A4.LOOP_ONE_ACTIVE="repeat1",A4.MEET="google_meet",
A4.MEH="face_neutral",A4.MEMBERSHIPS="memberships",A4.MEMBERS_ONLY_MODE_OFF="text_bubble",A4.MENU_FILTER="filter",A4.MESSAGE="text_bubble",A4.MESSAGE_BUBBLE_GEAR="bubble_gear",A4.MESSAGE_BUBBLE_LEFT="text_bubble",A4.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",A4.MESSAGE_BUBBLE_OVERLAP="bubble_stack",A4.MESSAGE_BUBBLE_QUESTION="help_bubble",A4.MICROPHONE_ON="mic",A4.MONETIZATION_ON="dollar_sign_circle",A4.MONEY_FILL="dollar_sign_rectangle",A4.MONEY_FILL_JPY="yen_sign_rectangle",A4.MONEY_HAND="dollar_sign_circle_hand",
A4.MONEY_HEART="dollar_sign_heart",A4.MOON_Z="sleep_timer",A4.MORE_HORIZ="overflow_horizontal",A4.MORE_VERT="overflow_vertical",A4.MUSIC="audio",A4.MUSIC_CAIRO="audio",A4.MUSIC_NOTE_SYMBOL="audio",A4.MUSIC_SCISSORS="audio_scissors",A4.MUSIC_SHUFFLE="shuffle",A4.MY_CHANNEL="person_circle",A4.MY_LOCATION="location_pin",A4.MY_VIDEOS="video",A4.MY_VIDEOS_CAIRO="video",A4.NEWS_CAIRO="news",A4.NEWS_STORY="news",A4.NEXT="chevron_right",A4.NOTE_ADD="bubble_pencil",A4.NOTIFICATIONS="bell",A4.NOTIFICATIONS_ACTIVE=
"bell_waves",A4.NOTIFICATIONS_CAIRO="bell",A4.NOTIFICATIONS_DONE_CHECKMARK="check",A4.NOTIFICATIONS_INBOX="bell",A4.NOTIFICATIONS_NONE="bell",A4.NOTIFICATIONS_OFF="bell_slash",A4.NOT_INTERESTED="circle_slash",A4.OFFICIAL_ARTIST_BADGE="audio",A4.OFFLINE_CLOUD="cloud_slash",A4.OFFLINE_DOWNLOAD="download",A4.OFFLINE_DOWNLOAD_CAIRO="download",A4.OFFLINE_PAUSE="pause",A4.OPEN_IN_NEW="arrow_up_right",A4.OUTLINE_ADJUST="adjust",A4.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",A4.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",A4.OUTLINE_BAG="bag",A4.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",A4.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",A4.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",A4.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",A4.PAID="dollar_sign_circle",A4.PAUSE_OUTLINED="pause",A4.PAYMENT="credit_card",A4.PEOPLE="person_child",A4.PEOPLE_2="person2_rectangle",A4.PEOPLE_GROUP="person3",A4.PEOPLE_NOTE="bubble_asterisk",A4.PERSON_2="person2",A4.PERSON_ACCOUNT="person_square_stack",A4.PERSON_MINUS=
"person_x",A4.PERSON_MUSIC="person_audio",A4.PERSON_RADAR="person_waves",A4.PERSON_RADAR_FILLED="person_waves",A4.PERSON_SETTING="person_gear",A4.PHONE="phone",A4.PHONE_DOWNLOAD="mobile_arrow_down",A4.PICTURE_IN_PICTURE="picture_in_picture",A4.PLAYABLES_LOGO="playables",A4.PLAYABLES_LOGO_CAIRO="playables",A4.PLAYLISTS="playlist",A4.PLAYLISTS_CAIRO="playlist",A4.PLAYLIST_ADD="bookmark",A4.PLAYLIST_ADD_CHECK="bookmark",A4.PLAY_ALL="play",A4.PLAY_ARROW="play",A4.PLAY_ARROW_CIRCLE="play_circle",A4.PLAY_ARROW_HALF_CIRCLE=
"play_circle_half_dashed",A4.PLAY_CIRCLE="play_circle",A4.PLAY_OUTLINED="play_circle",A4.PODCAST_ADD="podcast_add",A4.PODCAST_CHECK="podcast_check",A4.PRIVACY_PRIVATE="lock",A4.PRIVACY_PUBLIC="globe",A4.PRIVACY_UNLISTED="link",A4.PROMOTE="megaphone",A4.PURCHASES="price_tag",A4.PURCHASE_SUPER_CHAT="super_chat",A4.PURCHASE_SUPER_STICKER="super_sticker",A4.QUESTION_ANSWER="help_bubble",A4.QUESTION_CIRCLE="help_circle",A4.QUEUE_PLAY_LAST="queue_last",A4.QUOTATION_MARK="quote",A4.RADAR_LIVE="live",A4.REMOVE=
"minus_circle",A4.REMOVE_CIRCLE="minus_circle",A4.REMOVE_CIRCLE_OUTLINE="minus_circle",A4.REMOVE_FROM_HISTORY="minus_circle",A4.REMOVE_FROM_PLAYLIST="minus_circle",A4.REPLAY="arrow_counterclockwise",A4.REPLAY_ARROW="replay",A4.REPORT_PROBLEM="alert_triangle",A4.RSS_OFF="rss_slash",A4.SAD="face_sad",A4.SAVE_PLAYLIST="bookmark",A4.SCHEDULE="clock",A4.SCHOOL="graduation_cap",A4.SCREEN_DEFAULT="player_default",A4.SCREEN_FULLSCREEN="player_full_enter",A4.SCREEN_LIGHT="ambient_mode",A4.SCREEN_SWITCH="player_switch",
A4.SEARCH_CAIRO="search",A4.SEARCH_HISTORY="history",A4.SELL="price_tag",A4.SETTINGS="gear",A4.SETTINGS_CAIRO="gear",A4.SETTINGS_LIGHT="gear",A4.SETTINGS_MATERIAL="gear",A4.SETTINGS_REMOTE="remote_waves",A4.SHARE="share",A4.SHARE_ARROW="share",A4.SHARE_CAIRO="share",A4.SHIELD="shield_x",A4.SHIELD_OFF="shield_slash",A4.SHIELD_WITH_AVATAR="person_shield",A4.SHOPPING_BAG="bag",A4.SHOPPING_BAG_CAIRO="bag",A4.SHOPPING_CART="cart",A4.SHORTS_COMMENT="text_bubble",A4.SHORTS_DISLIKE="thumb_down",A4.SHORTS_LIKE=
"thumb_up",A4.SHORTS_SHARE="share",A4.SLASH_CIRCLE_RIGHT="circle_slash",A4.SLOW_MODE_OFF="text_bubble",A4.SOCIAL="person_child",A4.SPARKLE="sparkles",A4.SPARK_IMAGE="image_spark",A4.SPARK_RADAR="spark_waves",A4.SPARK_VIDEO="video_spark",A4.SPEAKER_GROUP="speaker_stack",A4.SPEAKER_OFF="speaker_slash",A4.SPEED_1X="n1x",A4.SPEED_1_POINT_2X="n1point2x",A4.SPEED_1_POINT_5X="n1point5x",A4.SPEED_1_POINT_8X="n1point8x",A4.SPEED_2X="n2x",A4.SPONSORSHIP_STAR="memberships",A4.SPORTS="basketball",A4.SPOTLIGHT=
"spotlight",A4.STAFF_PICK="spotlight",A4.START_DVR="add",A4.STAR_BORDER="star",A4.STAR_HALF="star_half_filled",A4.STAR_SHOOTING="hype",A4.STICKER="sticker",A4.STICKER_EMOTICON="face_happy",A4.STOP_DVR="stop",A4.SUBSCRIBE="youtube",A4.SUBSCRIBE_PLUS="add",A4.SUBSCRIPTION_MANAGER="gear",A4.SUPERSTAR="super_star",A4.SUPERVISOR_ACCOUNT="person_child",A4.SWAP_HORIZ="arrow_swap_horizontal",A4.SWITCH_ACCOUNTS="person_square_stack",A4.TAB_ACCOUNT="person",A4.TAB_ACTIVITY="bell",A4.TAB_EXPLORE="compass",A4.TAB_HOME=
"home",A4.TAB_HOME_CAIRO="home",A4.TAB_INBOX="mail",A4.TAB_LIKED="thumb_up",A4.TAB_MUSIC_PREMIUM="youtube_music",A4.TAB_SHORTS="shorts",A4.TAB_SHORTS_CAIRO="shorts",A4.TAB_SUBSCRIPTIONS="subscriptions",A4.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",A4.TAB_TRENDING="trending",A4.TARGET="target",A4.TARGET_ADD="target_add",A4.TEMPLATE_ADD="template_add",A4.TEXT="font",A4.TIMER="stopwatch",A4.TRENDING_CAIRO="trending",A4.TRENDING_UP="arrow_trend_up",A4.TROPHY_CAIRO="trophy",A4.TROPHY_CELEBRATIONS="fireworks",
A4.TROPHY_STAR="star_trophy",A4.TUNE="adjust",A4.UNBLOCK_USER="minus_circle",A4.UNLIMITED="youtube",A4.UNPLUGGED_LIVE_GUIDE="live",A4.UNPLUGGED_SPORTS="eye_slash",A4.UPLOADS="play_square_stack",A4.UP_ARROW="arrow_up",A4.VERTICAL_ALIGN_BOTTOM="download",A4.VERY_HAPPY="face_very_happy",A4.VERY_SAD="face_very_sad",A4.VIDEOS="play_circle",A4.VIDEO_CALL="video_camera_add",A4.VIDEO_LIBRARY_WHITE="play_square_stack",A4.VIDEO_QUALITY_4K="n4k",A4.VIDEO_QUALITY_8K="n8k",A4.VIDEO_YOUTUBE="youtube",A4.VIEW_LIST_CAIRO=
"view_list",A4.VIEW_MODULE="view_column3_row2",A4.VISIBILITY="eye",A4.VISIBILITY_OFF="eye_slash",A4.VOLUME_DOWN="volume_min",A4.VOLUME_MUTE="volume_mute",A4.VOLUME_OFF="volume_mute",A4.VOLUME_STABLE="stable_volume",A4.VOLUME_UP="volume_max",A4.WALLPAPER="image",A4.WARNING="alert_triangle",A4.WATCH_HISTORY="history",A4.WATCH_HISTORY_CAIRO="history",A4.WATCH_LATER="clock",A4.WATCH_LATER_CAIRO="clock",A4.WATCH_RELATED_MIX="mix",A4.WHAT_TO_WATCH="home",A4.YOUTUBE_LINKED_TV="tv_mobile",A4.YOUTUBE_MUSIC_MONOCHROME=
"youtube_music",A4.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",A4.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",A4.YOUTUBE_SHORTS_ARROW_UP="arrow_up",A4.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",A4.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",A4.YOUTUBE_SHORTS_OUTLINE_24="shorts",A4);var pN8={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,2,24]],account_link:[[1,6,24]],account_link_error:[[1,5,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,7,16],[1,7,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,3,24],
[1,3,36]],add_half_circle:[[1,2,24]],adjust:[[0,6,24],[1,6,24]],airplane:[[0,2,24],[1,2,20],[1,2,24]],airplay:[[1,5,16],[1,5,24]],airplay_off:[[1,1,24]],album:[[0,4,24],[1,4,24]],alert_circle:[[0,7,24],[1,7,16],[1,7,24]],alert_triangle:[[0,6,12],[0,6,24],[1,6,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,1,48]],
arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,2,24],[1,2,24]],arrow_down_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrow_flip:[[1,8,16],[1,8,24]],arrow_flip_dollar_sign:[[1,1,24]],arrow_in:[[0,6,24],[1,6,24]],arrow_left:[[1,6,24,!0]],arrow_left_cairo:[[1,
2,24,!0]],arrow_merge:[[1,1,24]],arrow_out:[[0,1,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,2,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_solid_up:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_split:[[0,2,24],[1,2,24]],arrow_swap_horizontal:[[0,3,24],[1,3,24]],arrow_time:[[0,8,24],[1,8,24]],
arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,2,24],[1,2,24]],arrow_up_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,7,12],[0,7,16],[0,7,24],[1,7,24]],audio_badge:[[0,1,12],[0,1,16],[0,1,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,
3,24],[1,3,24]],bag:[[0,5,12],[0,5,18],[0,5,24],[1,5,18],[1,5,24]],bag_bookmark:[[1,1,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,1,24]],bell:[[0,8,24],[1,8,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,2,24]],blur:[[1,1,24]],book:[[1,1,24]],
bookmark:[[0,6,24],[1,6,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,1,24]],briefcase_slash:[[0,1,24]],brightness:[[0,1,24],[1,1,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],
[1,3,18],[1,3,24],[1,3,48]],bug:[[0,1,24],[1,1,24]],business:[[1,2,24]],cable:[[1,1,24]],calculator:[[0,1,24],[1,1,24]],calendar:[[0,2,24],[1,2,24]],camera:[[0,7,24],[1,7,24]],camera_audio:[[1,4,24]],camera_effects:[[1,4,24]],camera_flip:[[1,3,24]],camera_hashtag:[[1,4,24]],camera_switch:[[0,1,24],[1,1,24]],card:[[0,2,12],[0,2,16],[0,2,24]],cart:[[0,2,24],[1,2,24]],cat:[[0,1,24],[1,1,24]],celebration:[[1,1,24]],check:[[0,9,12],[0,9,16],[0,9,24],[1,9,16],[1,9,24]],check_circle:[[0,8,18],[0,8,24],[1,
8,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,2,24]],chevron_down:[[1,7,18],[1,7,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,1,24]],chevron_expand:[[1,4,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,8,16,!0],[1,8,18,!0],[1,8,24,!0]],chevron_left_circle:[[0,1,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,5,16,!0],[0,5,18,!0],[0,5,24,!0],[1,5,16,!0],[1,5,18,!0],[1,5,24,!0]],chevron_right_cairo:[[1,
2,24]],chevron_right_circle:[[0,1,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,7,16],[1,7,18],[1,7,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,1,24]],chromecast:[[0,6,24],[1,6,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,2,24],[1,2,36]],chromecast_waveform:[[1,1,24]],circle:[[0,5,24],[1,5,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,
1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,1,24],[1,1,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,7,24],[1,7,16],[1,7,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,1,24]],cloud_arrow_down:[[1,2,24]],cloud_arrow_up:[[0,3,24],[1,3,24]],cloud_check:[[0,1,24],[1,1,24]],cloud_ellipsis:[[0,1,24],[1,1,24]],cloud_off:[[1,
2,24]],code:[[1,1,24]],compass:[[0,6,24],[1,6,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,2,24]],copyright:[[0,2,24],[1,2,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,2,24]],crop:[[1,2,16],[1,2,24]],crop_rotate:[[1,1,24]],crown:[[0,2,16],[0,2,24],[1,2,12],[1,2,16],[1,2,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,2,24]],
dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],dollar_sign_circle_pause:[[1,1,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,20,12],[0,20,24],[1,20,16],[1,20,24]],dollar_sign_off:[[1,3,24]],download:[[0,9,24],[1,9,16],[1,9,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,
6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,5,18],[0,5,24],[1,5,24]],eye:[[0,3,24],[1,3,24]],eye_off:[[1,4,24]],eyedropper:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_image:[[1,1,24]],face_meh:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,1,24]],face_sad:[[0,7,24],[0,
7,36],[1,7,24],[1,7,36]],face_unhappy:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_upset:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],fashion:[[0,2,24],[1,2,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[1,2,24]],fast_forward:[[0,3,24]],film_strip:[[0,4,24],[1,4,24]],film_strip_add:[[1,1,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,6,24],[1,6,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],
fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,2,24]],flag:[[0,6,24],[1,6,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,1,24],[1,1,24]],flash_circle:[[0,3,18],[0,3,24],[1,3,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,3,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,2,16],[0,2,24],[1,2,24]],football:[[0,1,24],[1,1,24]],gaming:[[0,1,24],[1,1,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,6,24],[1,6,24]],gear_cairo:[[0,3,24],[1,
3,24]],ghost:[[1,3,24]],gif:[[1,1,24]],gift:[[0,1,24],[1,1,24]],globe:[[1,2,24]],glow:[[1,1,24]],google_lens:[[1,3,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,1,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,1,24]],hands_heart:[[0,1,24],[1,1,24]],hashtag:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],hd:[[0,
6,24],[1,6,24]],headset:[[0,6,24],[1,6,24]],heart:[[0,15,13],[0,15,24],[1,15,16],[1,15,24]],heart_box:[[1,1,24]],heart_circle:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],heart_off:[[1,2,24]],hierarchy:[[0,2,24],[1,2,24]],highlights:[[1,1,24]],home:[[0,7,24],[1,7,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,1,16],[1,1,24]],image:[[0,6,24],[1,6,24]],image_add:[[1,2,24]],image_wallpaper:[[1,1,24]],incognito:[[0,7,24],[1,7,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,1,24]],
info_circle:[[1,8,16],[1,8,18],[1,8,20],[1,8,24]],journey:[[1,1,24]],key:[[1,4,24]],keyboard:[[0,2,24],[1,2,24]],label:[[0,2,24],[1,2,24]],laptop:[[1,2,24]],laptop_mobile:[[0,2,24],[1,2,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,1,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,2,12],[0,2,24],[1,2,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,
2,24]],link:[[1,6,18],[1,6,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,1,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,
1,24]],lock:[[0,9,12],[0,9,24],[1,9,12],[1,9,16],[1,9,18],[1,9,24]],lock_open:[[1,2,24]],magic_wand:[[0,1,24],[1,1,24]],mail:[[0,6,24],[1,6,24]],map:[[1,2,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,
1,24]],medal:[[1,1,24]],medal_star:[[1,1,24]],meet:[[1,1,24]],megaphone:[[0,2,24],[1,2,24]],memberships:[[0,6,12],[0,6,16],[0,6,18],[0,6,24],[1,6,24]],mention:[[1,3,16],[1,3,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,
2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,8,24],[1,8,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,3,24],[1,3,24]],mobile_check:[[1,1,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,1,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,
1,24],[1,1,24]],motion:[[1,1,24]],move:[[1,1,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,3,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,2,24],[1,2,12],[1,2,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,1,24]],node_right:[[1,1,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,4,24],[1,4,
32]],overflow_vertical:[[1,10,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,2,24]],palette:[[1,1,24]],panels:[[0,1,24],[1,1,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,6,24]],pause_circle:[[0,1,12],[0,1,16],[0,1,24]],pdf:[[1,1,24]],pencil:[[1,6,16],[1,6,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,5,12],[0,5,13],[0,5,16],
[0,5,24],[0,5,48],[1,5,13],[1,5,16],[1,5,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,5,24]],person_box:[[1,5,24]],person_circle:[[0,8,24],[1,8,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,1,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],person_setting:[[1,6,24]],person_shield:[[1,6,24]],phone:[[0,1,24],[1,1,24]],picture_in_picture:[[0,1,24],[1,1,
24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,5,12],[0,5,24],[1,5,16],[1,5,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,2,24],[1,2,12],[1,2,16],[1,2,18],[1,2,24]],podcast_add:[[0,1,24],[1,1,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,1,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,7,16],[1,7,
24],[1,7,40]],pound:[[1,3,24]],presentation:[[1,1,24]],presentation_remove:[[1,1,24]],price_tag:[[0,6,12],[0,6,24],[1,6,24]],price_tag_heart:[[1,1,24]],qr_code:[[1,2,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,1,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,1,24]],remix:[[1,1,16],
[1,1,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,1,16],[1,1,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],samples:[[0,1,24],[1,1,24]],saturation:[[1,1,24]],scale:[[1,3,24]],scissors:[[0,6,12],[0,6,24],[1,6,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,2,16],[1,2,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,1,24]],sd:[[0,2,24],[1,2,24]],search:[[0,9,24],[1,9,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,3,24,!0],[1,3,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,
1,24]],shadow_soft:[[0,1,24]],shapes:[[0,2,24],[1,2,24]],share:[[0,9,24,!0],[0,9,32,!0],[1,9,16,!0],[1,9,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,1,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,4,24]],shield_add:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,1,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,3,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,3,24]],skip_previous:[[0,3,24]],skip_up:[[0,3,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,2,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,1,24]],spark:[[0,6,12],[0,6,16],[0,6,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,1,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,1,24]],speaker_off:[[1,1,24]],split:[[1,3,24]],sports:[[0,1,24]],spotlight:[[0,1,24],[1,1,24]],star:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],star_circle:[[0,1,12],[0,1,16],[0,1,18],[0,1,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,1,24]],stop:[[0,1,24]],stopwatch:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,8,24],[1,8,18],[1,8,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,2,12],[0,2,24],[1,2,24]],super_chat:[[1,6,18],[1,6,24]],super_sticker:[[0,6,16],[0,6,24],[1,6,16],[1,6,24]],super_store:[[1,1,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,1,24],[1,1,16],[1,1,24]],target_add:[[0,1,24],[1,1,16],[1,1,24]],template_add:[[1,2,16],[1,2,24]],template_play:[[0,1,24],[1,1,24]],text:[[0,8,24],[1,8,16],[1,8,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,1,24]],thumb_down:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],
[1,19,24],[1,19,36]],thumb_up:[[0,17,16],[0,17,24],[0,17,36],[1,17,16],[1,17,24],[1,17,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,1,24],[1,1,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],tilt:[[1,3,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,2,24]],toolbox:[[1,2,24]],transcript:[[1,1,16],[1,1,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,3,24],[1,3,24]],translate:[[1,1,24]],trash_can:[[1,6,16],[1,6,24]],triangle_down:[[1,5,
24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,1,24],[1,1,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,3,24],[1,3,24]],tv:[[0,5,12],[0,5,16],[0,5,24],[1,5,16],[1,5,24]],tv_arrow_left:[[1,1,24]],tv_circle:[[0,1,24],[1,1,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,4,24]],uploading:[[1,1,24]],variable:[[1,3,24]],verified_circle:[[1,4,24]],video_camera:[[0,7,24],[1,7,24]],
video_camera_add:[[1,1,24]],video_camera_off:[[1,1,24]],video_link:[[1,3,16],[1,3,24]],video_stitch:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,1,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,5,24],[1,5,24]],waveform:[[1,1,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],wrench:[[0,1,24],[1,1,24]],x:[[1,8,18],[1,8,24]],x_cairo:[[1,1,24]],x_circle:[[1,5,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,1,24]],yen_sign_container:[[0,
2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,3,24],[1,3,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,5,24],[1,5,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,
24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,
2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,6,24],[1,6,24]],youtube_tv:[[0,6,24],[1,6,24]],zoom_auto:[[0,1,24],[1,1,24]]};var nWC={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,8,24]],add_circle:[[0,5,24],[1,5,24]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,4,24],[1,4,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,9,24],[1,9,24]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,8,24],[1,8,24]],ambient_mode:[[1,1,
24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,1,24]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,7,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,3,24],[1,3,24]],
arrow_solid_up:[[0,3,24],[1,3,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,1,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,1,24]],audio:[[0,9,24],[1,9,24]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,
24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],
[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_gear:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_flip:[[1,
4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,10,24]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,
24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_right:[[1,6,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_mobile:[[1,3,24]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,9,24],[1,9,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,
3,24]],cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,1,24]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,24],[1,4,24]],csv:[[0,2,
24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,
1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[1,21,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],download:[[1,10,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,9,24],[1,9,24]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,2,24],[1,2,24]],face_paintbrush:[[1,
2,24]],face_sad:[[0,9,24],[1,9,24]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,8,24],[1,8,24]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,9,24],[1,9,24]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,6,24],[1,6,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,
8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,
1,24]],football:[[0,3,24],[1,3,24]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,
2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,2,24],[1,2,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,17,24],[1,17,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,2,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,9,24]],info_circle_spark:[[1,1,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,
2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],
link:[[1,7,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,11,24],[1,11,24]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,8,24],[1,8,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,
1,24]],minus:[[1,1,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,
1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,5,24]],overflow_vertical:[[1,11,24]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,7,24],[1,7,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,
8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[1,9,24]],person_circle_slash:[[1,2,24]],person_gear:[[1,1,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,
1,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,1,24],[1,1,24]],play_circle:[[0,1,24],[1,1,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,1,24],[1,1,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_portrait:[[1,1,24]],player_full_exit:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,1,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,1,24],[1,1,24]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,1,24]],playlist_x:[[1,1,24]],podcast:[[0,3,24],[1,3,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,
2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,8,24]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,
24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,1,24]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,1,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,7,24],[1,7,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,10,24],[1,10,24]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,
1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[1,10,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,2,24],[1,2,24]],shorts:[[0,2,24],[1,2,24]],shorts_empty:[[0,2,24],[1,2,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,1,24]],skip10_forward:[[1,
1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,1,24]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,5,24],[1,5,24]],skip_previous:[[0,5,24],[1,5,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,
24]],spacebar:[[1,2,24]],spark:[[0,8,24],[1,8,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],
square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,3,24],[1,3,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,3,24],[1,3,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,10,24],[1,10,24]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],
super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,2,24],[1,2,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,
24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,21,24],[1,21,24]],thumb_up:[[0,19,24],[1,19,24]],thumb_up_down:[[0,2,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[0,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,
3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,24],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[1,8,24]],video_camera_add:[[1,2,24]],video_link:[[1,4,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,
1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,2,24]],waveform_spark:[[1,1,24]],wrench:[[1,2,24]],x:[[1,9,24]],x_circle:[[0,7,24],[1,7,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,
7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var ZJ=function(r){this.iconUrlProvider=r};
ZJ.prototype.resolveIcon=function(r,f){var I=r.iconName;I=I.replace(/-/g,"_");r=Object.assign({},r,{iconName:this.mapIconTypeToStandardName(I)||I.toLowerCase()});if(_.N("enable_web_delhi_icons")){var C;return SMK(nWC,r,((C=this.iconUrlProvider)==null?void 0:C.getYtStandardUrl)||wy$,f)}var Y;return SMK(pN8,r,((Y=this.iconUrlProvider)==null?void 0:Y.getYtStandardUrl)||hNw,f)};
ZJ.prototype.mapIconTypeToStandardName=function(r){return _.N("enable_web_delhi_icons")?b14[r.toUpperCase()]:wNC[r.toUpperCase()]};
ZJ[ZB]=[_.ZY(SOC)];var d98=function(r){this.urlProvider=this.iconUrlProvider=r};
_.t(d98,ZJ);
d98.prototype.resolveIcon=function(r,f){r.iconName==="youtube_logo"&&(r.iconName="yt-logo-updated");if(r.iconName==="youtube_premium_logo"||r.iconName==="youtube_red_logo")r.iconName="yt-logo-red-updated";var I=Object.assign({},r);r.iconName==="menu"&&(_.N("enable_web_delhi_icons")||(I.iconName="bars_3"),I.iconStyle="youtube_outline");r.iconName==="youtube_music"&&(I.iconStyle="youtube_fill");r.iconName==="mail"&&r.iconSetName==="socialNetworksRound"&&(I.iconName="email");r.iconName==="more"&&(I.iconName=
"overflow_horizontal");r.iconName==="fullscreen"&&(I.iconName="screen_full");if(r.iconName==="play_all"||r.iconName==="play_arrow")I.iconStyle="youtube_fill";r.iconName==="premium_standalone"&&(I.iconName="premium_standalone_cairo");_.N("enable_connect_icon_update_web")&&r.iconName==="account_linked"&&(I.iconName="circles_overlap_check",I.iconStyle="youtube_fill");_.N("enable_connect_icon_update_web")&&r.iconName==="account_unlinked"&&(I.iconName="circles_overlap",I.iconStyle="youtube_outline");r=
Object.assign({},I,{iconName:(ZJ.prototype.mapIconTypeToStandardName.call(this,I.iconName)||I.iconName).toLowerCase()});var C;return(r=SMK(V6B,r,((C=this.urlProvider)==null?void 0:C.getUrl)||brl,f))?r:ZJ.prototype.resolveIcon.call(this,I,f)};
d98[ZB]=[_.ZY(SOC)];_.zCs=1;var G_=function(){};
_.t(G_,Fh);G_.prototype.resolveCommand=function(r){var f,I;return _.x(function(C){f=_.F(r,ysV);if(!f)return C.return();I=Number(f.enableDelayedPacfLoggingTvMs);if(isNaN(I)){var Y=Bg();oD4(Y,f,0)}else oD4(Bg(),f,I);_.wO(C)})};_.kR=function(){};
_.t(_.kR,Fh);
_.kR.prototype.resolveCommand=function(r,f){var I=this,C,Y,V,S,h,w,n;return _.x(function(d){C=_.F(r,U2T);V=(Y=f.form)==null?void 0:Y.element;h=(S=V)==null?void 0:S.closest("ytd-enforcement-message-view-model");if(!C||!h)return d.return();I.allowAdsAction||(w=C.fundingChoiceInstructionPageUrl,I.allowAdsAction=new dk8(window,_.PW(w)));var z=I.allowAdsAction;z.wallElement=h;z.allowAdsPopup.style.setProperty("display","flex","important");var g=z.scrollManager;g.originalBodyOverflow=g.JSC$7900_domHelper.JSC$7225_document_.body.style.overflow;g.JSC$7900_domHelper.JSC$7225_document_.body.style.overflow=
"hidden";z.wallElement.style.setProperty("display","none","important");cy4(z.accessibilityManager,z.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((n=I.allowAdsAction.allowAdsPopup)&&n instanceof HTMLElement)for(z=_.E(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),g=z.next();!g.done;g=z.next()){var X=_.E(g.value);g=X.next().value;X=X.next().value;n.style.setProperty(g,X)}_.wO(d)})};
_.kR.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var BT=function(){};
_.t(BT,Fh);BT.prototype.resolveCommand=function(r){var f;return _.x(function(I){f=_.F(r,kKV);if(!f)return I.return();QyK(r);_.wO(I)})};var qH=function(r){this.JSC$14966_commandHandler=r};
_.t(qH,Fh);
qH.prototype.resolveCommand=function(r){var f=this,I,C,Y,V,S,h,w,n;return _.x(function(d){if(d.nextAddress==1){I=_.F(r,N84);if((C=I)==null||!C.text||!navigator.clipboard)return d.return();_.l_(d,2);return _.b(d,navigator.clipboard.writeText(I.text),4)}if(d.nextAddress!=2){if(!I.successActions||I.successActions.length===0)return d.return();Y=_.E(I.successActions);for(V=Y.next();!V.done;V=Y.next())S=V.value,f.JSC$14966_commandHandler.resolveCommand(S);return _.Hd(d,0)}_.ha(d);if(!I.failureActions||I.failureActions.length===
0)return d.return();h=_.E(I.failureActions);for(w=h.next();!w.done;w=h.next())n=w.value,f.JSC$14966_commandHandler.resolveCommand(n);_.wO(d)})};
qH[ZB]=[_.Gg];var uW=function(r){this.JSC$14970_commandHandler=r};
_.t(uW,Fh);
uW.prototype.resolveCommand=function(r,f){var I=this,C,Y,V,S,h,w,n,d,z,g;return _.x(function(X){switch(X.nextAddress){case 1:C=_.F(r,IvX);if(!C)return X.return();_.l_(X,2);if(!C.imageBytes&&!C.imageUrl)throw Error("wi");if(!C.imageUrl){if(C.imageBytes){V=C.imageBytes;S=V.replace(/-/g,"+").replace(/_/g,"/");var P=n9P(S);Y=_.aw(P)}X.jumpTo(4);break}return _.b(X,fetch(C.imageUrl),5);case 5:return h=X.yieldResult,_.b(X,h.blob(),6);case 6:w=X.yieldResult,Y=_.aw(w);case 4:z=(n=f)==null?void 0:(d=n.form)==
null?void 0:d.element;g=document.createElement("a");t6(g,Y);z.appendChild(g);g.download="";g.click();z.removeChild(g);URL.revokeObjectURL(_.nK(Y));C.successCommand&&I.JSC$14970_commandHandler.resolveCommand(C.successCommand);_.Hd(X,0);break;case 2:_.ha(X),C.errorCommand&&I.JSC$14970_commandHandler.resolveCommand(C.errorCommand),_.wO(X)}})};
uW[ZB]=[_.Gg];var DJ=function(r){this.store=r};
_.t(DJ,Fh);DJ.prototype.resolveCommand=function(r){var f=this,I,C,Y;return _.x(function(V){C=(I=_.F(r,_.id8))==null?void 0:I.entityBatchUpdate;if(!C)return V.jumpTo(0);Y=Object.assign({},C,{mutations:[].concat(_.Na(C.mutations||[]))});return _.b(V,_.VC(Y,f.store),0)})};var M63=function(r){this.JSC$14977_commandHandler=r;this.feedbackDialogMap=new Map};
M63.prototype.openDialog=function(r,f){(r=this.feedbackDialogMap.get(r))&&this.JSC$14977_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:r}},f)};
M63[ZB]=[_.Gg];var rw=new _.Go("FEEDBACK_CONTROLLER_TOKEN");var fI=new _.Go("APP_STORE_TOKEN");var I3=function(r,f){this.store=r;this.controller=f};
_.t(I3,Fh);I3.prototype.resolveCommand=function(r,f){var I=this,C,Y,V,S,h,w,n,d,z,g,X,P,W,m,v,O,k;return _.x(function(Z){if(Z.nextAddress==1){C=_.F(r,_.LG);if(V=(Y=C)==null?void 0:Y.contentId)for(h=_.E(((S=C)==null?void 0:S.actions)||[]),w=h.next();!w.done;w=h.next())n=w.value,gW8(I,n,V);g=(d=f)==null?void 0:(z=d.form)==null?void 0:z.element;return _.b(Z,_.Do(g,[r]).catch(function(){}),2)}X=Z.yieldResult;
((P=X)==null?0:(W=P.data)==null?0:(m=W.feedbackResponses)==null?0:m.length)&&(O=(v=X.data.feedbackResponses[0])==null?void 0:v.followUpDialog)&&V&&(k=I.controller)!=null&&k.feedbackDialogMap.set(V,O);_.wO(Z)})};
var gW8=function(r,f,I){var C=_.F(f,_.Il);if(C){C=_.E(C.commands||[]);for(var Y=C.next();!Y.done;Y=C.next())gW8(r,Y.value,I)}_.F(f,_.da)&&r.store.dispatch(_.hv("commandEntity",y$E(I),{key:I,command:f}));_.F(f,vpq)&&r.store.dispatch(_.hv("commandEntity",y$E(I),{key:I,command:f}))};
I3[ZB]=[fI,rw];var CI=function(r){this.controller=r};
_.t(CI,Fh);CI.prototype.resolveCommand=function(r,f){var I=this,C,Y,V,S;return _.x(function(h){C=_.F(r,_.J7);V=(Y=C)==null?void 0:Y.targetId;if(((S=C)==null?void 0:S.signal)!=="TELL_US_WHY"||!V)return h.return();I.controller.openDialog(V,f);_.wO(h)})};
CI[ZB]=[rw];var Y5=function(r){this.store=r};
_.t(Y5,Fh);Y5.prototype.resolveCommand=function(r,f){var I=this,C,Y,V,S,h,w,n;return _.x(function(d){C=_.F(r,t0K);V=(Y=C)==null?void 0:Y.contentId;w=(S=f)==null?void 0:(h=S.form)==null?void 0:h.element;n=_.Do(w,[r]);V&&I.undo(V);return _.b(d,n,0)})};
Y5.prototype.undo=function(r){this.store.dispatch(_.hv("commandEntity",y$E(r),{key:r,command:void 0}))};
Y5[ZB]=[fI];var lp=function(r){this.JSC$14992_commandHandler=r};
_.t(lp,Fh);lp.prototype.resolveCommand=function(r){var f=this,I,C,Y,V,S,h,w,n;return _.x(function(d){I=_.F(r,uZ4);C=I.flowStateKey;Y=I.validationFailureCommand;V=I.submitValidFormCommand;S=mW(_.rM,[C||""]);h=_.F(S,rBB);((w=h)==null?0:w.isValid)&&V&&f.JSC$14992_commandHandler.resolveCommand(V);((n=h)==null?0:n.isValid)||!Y||f.JSC$14992_commandHandler.resolveCommand(Y);_.wO(d)})};
lp[ZB]=[_.Gg];var Ve=function(r){this.innertubeTransportService=r};
_.t(Ve,Fh);Ve.prototype.resolveCommand=function(r,f){var I=this,C;return _.x(function(Y){return _.b(Y,_.mC(I.innertubeTransportService,r,(C=f)==null?void 0:C.form).then(function(V){var S,h;f==null||(S=f.commandController)==null||(h=S.onSuccess)==null||h.call(S,r,V)},function(V){var S,h;
f==null||(S=f.commandController)==null||(h=S.onServerError)==null||h.call(S,r,V)}),0)})};
Ve[ZB]=[_.pJ];var Eu=function(){};
_.t(Eu,Fh);Eu.prototype.resolveCommand=function(r){var f,I,C,Y;return _.x(function(V){if(f=_.F(r,_.IGs)){if(I=f.gtmId)C=_.Lz("GL",""),_.hK(I,C);(Y=f.gtmData)&&_.wQ(Y)}_.wO(V)})};var SY=function(r,f){this.innertubeTransportService=r;this.JSC$15003_actionRouter=f};
_.t(SY,Fh);SY.prototype.resolveCommand=function(r){var f=this,I,C;return _.x(function(Y){I=_.F(r,E23);if(!I)return Y.return();C=I.command;if(!C)return Y.return();f.JSC$15003_actionRouter.triggerAction("yt-insert-rich-section-action",I);return _.b(Y,_.mC(f.innertubeTransportService,C,{disableCache:!0}),0)})};
SY[ZB]=[_.pJ,ox];zNB.bind(null,Pg);var a6s=zNB.bind(null,EDq);g9m.bind(null,Pg);var XN_=g9m.bind(null,EDq);NVd.bind(null,Pg);var N3D=NVd.bind(null,EDq);var x5=function(){};
_.t(x5,Fh);
x5.prototype.resolveCommand=function(r){var f,I,C,Y,V,S,h,w,n,d;return _.x(function(z){f=_.F(r,Rv4);if(!f)return z.return();C=((I=f.operations)==null?void 0:I.operations)||[];Y=_.E(C);for(V=Y.next();!V.done;V=Y.next())if(S=V.value,S.insertItemSectionContent){var g=S.insertItemSectionContent,X=g.contents||[];g.insertByPositionInSection?a6s(g.insertByPositionInSection.sectionTargetId,X,g.insertByPositionInSection.position):g.insertByRelativePositionInSection&&g.insertByRelativePositionInSection.sectionTargetId&&g.insertByRelativePositionInSection.itemTargetId&&
XN_(g.insertByRelativePositionInSection.sectionTargetId,g.insertByRelativePositionInSection.itemTargetId,X,g.insertByRelativePositionInSection.relativePosition)}else S.replaceSection?(g=S.replaceSection,X={},g.replaceByTargetId?X=g.replaceByTargetId:g.replaceByGroupId&&(X={targetId:g.replaceByGroupId.groupId,newContent:g.replaceByGroupId.newContent,undoKey:""}),X.newContent&&hY4(X.targetId,{continuationItems:[X.newContent]})):S.removeItem?(g=S.removeItem,g.removeByTargetId&&g.sectionTargetId&&N3D(g.sectionTargetId,
g.removeByTargetId.targetIds||[])):S.removeSection&&(S.removeSection.removeByTargetId?(h=void 0,$9q(((h=S.removeSection)==null?void 0:h.removeByTargetId.targetIds)||[])):S.removeSection.removeByGroupId&&(w=void 0,$9q(((w=S.removeSection)==null?void 0:w.removeByGroupId.groupIds)||[])));d=((n=f.operations)==null?void 0:n.scrollConfig)||{};Fjq(d);_.wO(z)})};
var $9q=function(r){r=_.E(r);for(var f=r.next();!f.done;f=r.next())hY4(f.value,{continuationItems:[]})},Fjq=function(r){if(r.scrollToItem){var f=r.scrollToItem.item||{},I=f.itemTargetId;
f=f.sectionTargetId;if(I&&f){var C=document.querySelector("[data-target-id="+f+"]"),Y=C==null?void 0:C.querySelector("[data-target-id="+I+"]");C&&Y&&setTimeout(function(){var V=Y.offsetTop-C.offsetTop,S;if(((S=r.scrollToItem)==null?void 0:S.scrollPosition)==="SCROLL_POSITION_CENTER")V-=C.offsetHeight/2,V+=Y.offsetHeight/2;else{var h;((h=r.scrollToItem)==null?void 0:h.scrollPosition)==="SCROLL_POSITION_END"&&(V-=C.offsetHeight,V+=Y.offsetHeight)}C.scroll({top:V,behavior:"smooth"})},100)}}};var hb=new _.Go("CLIENT_NAME_TOKEN");var PJg=new _.Go("DEFAULT_STORE_EXPIRATION_TOKEN");var Oaw=new _.Go("CLIENT_LOCATION_SERVICE_TOKEN");var ww=function(r,f,I){this.clientName=r||_.Lz("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=f||_.ct.getInstance();this.JSC$15031_commandHandler=I||_.qv.instance};
_.t(ww,Fh);ww.prototype.resolveCommand=function(r){var f=this,I,C;return _.x(function(Y){C=(I=_.F(r,AB4))==null?void 0:I.onComplete;f.clientLocationService.clearLocationPlayabilityToken(f.clientName);C&&f.JSC$15031_commandHandler.resolveCommand(C);_.wO(Y)})};
ww[ZB]=[hb,Oaw,_.Gg];var bp=function(r){this.innertubeTransportService=r};
_.t(bp,Fh);bp.prototype.resolveCommand=function(r,f){var I=this,C,Y,V,S;return _.x(function(h){V=(C=f)==null?void 0:(Y=C.form)==null?void 0:Y.element;return _.b(h,_.mC(I.innertubeTransportService,r,(S=f)==null?void 0:S.form).then(function(w){uMu(V,new CustomEvent("yt-service-request-completed"),{data:w},_.Lz("openPopupConfig"))}),0)})};
bp[ZB]=[_.pJ];var pI=function(){};
_.t(pI,Fh);pI.prototype.resolveCommand=function(r){var f,I;return _.x(function(C){f=_.F(r,Ya3);I=document.querySelector("mini-app-container-view-model");if(!f||!I)return C.return();f.isPlaying?I.dispatchEvent(new Event("play")):I.dispatchEvent(new Event("pause"));_.wO(C)})};var nI=function(){};
_.t(nI,Fh);nI.prototype.resolveCommand=function(r){var f,I,C,Y,V,S,h;return _.x(function(w){f=_.F(r,Bj3);if((I=f)==null||!I.paramKeys)return w.return();C=f.paramKeys;Y=_.Hh(window.location.href);V=_.E(C);for(S=V.next();!S.done;S=V.next())h=S.value,Y.JSC$7932_queryData_.remove(h);window.history.replaceState(window.history.state,document.title,Y.toString());_.wO(w)})};var t6D=function(){this.dropdownMap=new Map};_.T3X=new _.Go("DROPDOWN_CONTROLLER_TOKEN");var dw=function(r){this.controller=r};
_.t(dw,Fh);dw.prototype.resolveCommand=function(r){var f=this,I,C,Y,V;return _.x(function(S){I=_.F(r,LZ4);if(!I)return S.return();C=I;Y=C.dropdownId;V=C.selectedOptionIndex;if(Y===void 0||V===void 0)return S.return();var h=f.controller.dropdownMap.get(Y);h&&h(V);_.wO(S)})};
dw[ZB]=[_.T3X];var zu=function(r){this.controller=r};
_.t(zu,Fh);zu.prototype.resolveCommand=function(r){var f=this,I;return _.x(function(C){return(I=_.F(r,rkq))?_.b(C,f.controller.closeDialog(),0):C.return()})};
zu[ZB]=[_.MV];var Mq=function(r){this.controller=r};
_.t(Mq,Fh);Mq.prototype.resolveCommand=function(r){var f=this,I,C;return _.x(function(Y){I=_.F(r,jjV);if(!I)return Y.return();var V,S=I.panelIdentifier||((V=I.identifier)==null?void 0:V.tag);if(!S)throw Error("xi");return(C=S)?_.b(Y,f.controller.hidePanel(C),0):Y.jumpTo(0)})};
Mq[ZB]=[_.dD];var gw=function(r,f){this.innertubeTransportService=r;this.controller=f};
_.t(gw,Fh);gw.prototype.resolveCommand=function(r){var f=this,I,C,Y,V;return _.x(function(S){if(S.nextAddress==1)return I=_.F(r,HVV),(C=I)!=null&&C.panelId?_.b(S,f.controller.getReloadContinuation(I.panelId),2):S.return();if(S.nextAddress!=3)return(Y=S.yieldResult)?_.b(S,_.mC(f.innertubeTransportService,r,{continuation:Y}),3):S.return();V=S.yieldResult;return _.b(S,f.controller.updatePanel(I.panelId,V.content,!1),0)})};
gw[ZB]=[_.pJ,_.dD];var a3=function(r,f,I){this.innertubeTransportService=r;this.JSC$15067_screenManager=f;this.JSC$15067_commandHandler=I};
_.t(a3,Fh);
a3.prototype.resolveCommand=function(r){var f=this,I,C,Y,V,S,h;return _.x(function(w){if(w.nextAddress==1){I=_.F(r,_.PCC);if(!I)return w.return();if(I.commands)for(C=_.E(I.commands),Y=C.next();!Y.done;Y=C.next())V=Y.value,f.JSC$15067_commandHandler.resolveCommand(V,{disableClickTracking:!0});S=_.VH(r.clickTrackingParams);_.f3(f.JSC$15067_screenManager,21760,S,{layer:7,parentLayer:0});return _.b(w,_.mC(f.innertubeTransportService,r),2)}h=w.yieldResult;if(!h)return w.return();f.JSC$15067_screenManager.graftServerVe(h.trackingParams,S,
7);_.wO(w)})};
a3[ZB]=[_.pJ,_.Ef,_.Gg];var XM=new _.Go("PANEL_LOADING_STRATEGY_TOKEN");var Nq=function(r,f){this.controller=r;this.panelLoadingStrategy=f};
_.t(Nq,Fh);
Nq.prototype.resolveCommand=function(r,f){var I=this,C,Y,V;return _.x(function(S){C=_.F(r,z6s);if((Y=C)==null||!Y.panelLoadingStrategy)return S.return();V=function(h){var w,n,d,z,g,X,P,W,m;return _.x(function(v){n=_.F((w=h.dialogViewModel)==null?void 0:w.header,mA3);d={viewModel:h.dialogViewModel};z={};if(P=_.N("web_enable_dialog_header_label")?(g=n)==null?void 0:(X=g.headline)==null?void 0:X.content:void 0)z.ariaLabel=P;C.dismissOnBackgroundTap===!1&&(z.isModal=!0);return h.dialogViewModel?_.b(v,
I.controller.openDialog(d,(W=f)==null?void 0:(m=W.form)==null?void 0:m.element,z),0):v.return()})};
return _.b(S,I.panelLoadingStrategy.execute({command:r,data:C.panelLoadingStrategy,renderFn:V,createScreenConfig:{layer:4}}),0)})};
Nq[ZB]=[_.MV,XM];var $5=function(r,f,I){this.innertubeTransportService=r;this.controller=f;this.JSC$15087_screenManager=I};
_.t($5,Fh);
$5.prototype.resolveCommand=function(r,f){var I=this,C,Y,V,S,h,w,n,d,z,g,X,P;return _.x(function(W){switch(W.nextAddress){case 1:C=_.F(r,_.Wa);if(!C)return W.return();var m,v=C.panelIdentifier||((m=C.identifier)==null?void 0:m.tag);if(!v)throw Error("xi");Y=v;return _.b(W,I.controller.isVisible(Y,!0),2);case 2:if((V=W.yieldResult)&&C.blockIfPanelOpen)return W.return();w=(h=(S=I.controller).getPanelContent)==null?void 0:h.call(S,Y);if(!(m=w))if(C){var O;m=((O=C.globalConfiguration)==null?void 0:O.initialState)||
C.engagementPanel;if(O=!m)O=!!(C==null?0:(v=C.engagementPanelPresentationConfigs)==null?0:v.engagementPanelPopupPresentationConfig);O&&(m=_.$LR(C.panelIdentifier,C.identifier))}else m=void 0;n=m;d=C.engagementPanelPresentationConfigs;z=C.engagementPanelExtras;return _.b(W,I.controller.showPanel(Y,n,d,z,(g=f)==null?void 0:(X=g.form)==null?void 0:X.element),3);case 3:if(!C.globalConfiguration){W.jumpTo(0);break}_.f3(I.JSC$15087_screenManager,32633);return _.b(W,_.mC(I.innertubeTransportService,r),5);
case 5:return P=W.yieldResult,I.JSC$15087_screenManager.graftServerVe(P.trackingParams),_.b(W,I.controller.updatePanel(Y,P.content,!0,z,void 0,P.updatePanelContinuationData),0)}})};
$5[ZB]=[_.pJ,_.dD,_.Ef];var FM=function(r,f){this.controller=r;this.panelLoadingStrategy=f};
_.t(FM,Fh);FM.prototype.resolveCommand=function(r,f){var I=this,C,Y,V;return _.x(function(S){C=_.F(r,_.wu);if((Y=C)==null||!Y.panelLoadingStrategy)return S.return();V=function(h){var w,n;return _.x(function(d){return h.sheetViewModel?_.b(d,I.controller.openSheet({viewModel:h.sheetViewModel},(w=f)==null?void 0:(n=w.form)==null?void 0:n.element),0):d.return()})};
return _.b(S,I.panelLoadingStrategy.execute({command:r,data:C.panelLoadingStrategy,renderFn:V,createScreenConfig:{layer:0}}),0)})};
FM[ZB]=[_.z7,XM];var PC=function(r,f){this.controller=r;this.JSC$15095_commandHandler=f};
_.t(PC,Fh);PC.prototype.resolveCommand=function(r,f){var I=this,C,Y,V;return _.x(function(S){if(S.nextAddress==1){C=_.F(r,KdC);var h=_.F(C.showCommand,_.Wa),w,n,d=(n=h==null?void 0:h.panelIdentifier)!=null?n:h==null?void 0:(w=h.identifier)==null?void 0:w.tag;if(!d)throw Error("yi");Y=d;return _.b(S,I.controller.isVisible(Y),2)}return(V=S.yieldResult)?_.b(S,I.controller.hidePanel(Y),0):_.b(S,I.JSC$15095_commandHandler.resolveCommand(C.showCommand,f),0)})};
PC[ZB]=[_.dD,_.Gg];var tb=function(r,f,I){this.innertubeTransportService=r;this.controller=f;this.JSC$15098_screenManager=I};
_.t(tb,Fh);
tb.prototype.resolveCommand=function(r){var f=this,I,C,Y,V,S,h,w,n,d,z,g,X,P,W,m,v,O,k,Z,Cw,rR,EP;return _.x(function(Pu){switch(Pu.nextAddress){case 1:return C=I=_.F(r,yh_),Y=C.targetPanelIdentifier,V=C.contentSourcePanelIdentifier,S=C.globalConfiguration,((h=Y)==null?0:h.tag)&&((w=V)==null?0:w.tag)?S?_.b(Pu,f.controller.showPanel(Y.tag,_.$LR(Y.tag,Y),void 0,void 0,void 0),5):_.b(Pu,(g=(z=f.controller).getPanel)==null?void 0:g.call(z,V.tag),4):Pu.return();case 4:X=Pu.yieldResult;n=(P=X)==null?void 0:
(m=(W=P).getPanelContent)==null?void 0:m.call(W);Pu.jumpTo(3);break;case 5:return _.b(Pu,_.mC(f.innertubeTransportService,r),6);case 6:v=Pu.yieldResult,((O=v)==null?0:O.trackingParams)&&f.JSC$15098_screenManager.graftServerVe(v.trackingParams),n=(k=v)==null?void 0:k.content,d=(Z=v)==null?void 0:Z.updatePanelContinuationData;case 3:if(rR=(Cw=n)==null?void 0:Cw.engagementPanelSectionListRenderer)return _.b(Pu,f.controller.showPanel(Y.tag,void 0,void 0,void 0,void 0,{content:rR.content,secondaryHeaderContent:(EP=
rR.header)!=null?EP:{},targetId:rR.targetId},d),0);Pu.jumpTo(0)}})};
tb[ZB]=[_.pJ,_.dD,_.Ef];var Tu=function(r,f){this.JSC$15106_commandHandler=r;this.store=f};
_.t(Tu,Fh);Tu.prototype.resolveCommand=function(r){var f=this,I,C,Y,V,S;return _.x(function(h){if(h.nextAddress==1)return(I=_.F(r,uB_))?_.b(h,_.uB(),2):h.return();C=h.yieldResult;if(!C)return h.return();tC$(C,f.store,(Y=I)==null?void 0:Y.languageCode);V=C.isSubtitlesOn()?_.VR("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.VR("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");S=_.sr(V);f.JSC$15106_commandHandler.resolveCommand(S);_.wO(h)})};
Tu[ZB]=[_.Gg,Ed];var cC=function(r,f){this.shortsPlayerPromise=r;this.JSC$15110_commandHandler=f};
_.t(cC,Fh);
cC.prototype.resolveCommand=function(r){var f=this,I,C,Y,V,S,h,w,n;return _.x(function(d){if(d.nextAddress==1)return(I=_.F(r,b64))?_.b(d,f.shortsPlayerPromise,2):d.return();C=d.yieldResult;var z=TV$(C);z!=null&&z.length||(C.loadModule("captions"),z=TV$(C));Y=z;if((V=Y)==null||!V.length)return S=_.VR("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),h=_.sr(S),f.JSC$15110_commandHandler.resolveCommand(h),d.return();C.toggleSubtitles();w=C.isSubtitlesOn()?_.VR("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.VR("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");n=_.sr(w);f.JSC$15110_commandHandler.resolveCommand(n);_.wO(d)})};
cC[ZB]=[_.AYV,_.Gg];var WC=function(r){this.JSC$15113_playerPromise=r};
_.t(WC,Fh);WC.prototype.resolveCommand=function(r){var f=this,I,C,Y,V;return _.x(function(S){if(S.nextAddress==1)return(I=_.F(r,R_g))?_.b(S,f.JSC$15113_playerPromise,2):S.return();C=S.yieldResult;Y=C.getVideoData().video_id;I.videoId===Y&&(V=Number(I.offsetFromVideoStartMilliseconds),V>=0&&C.seekTo(V/1E3));_.wO(S)})};
WC[ZB]=[_.Zb];var ce4=_.rG("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),LI=function(r){this.store=r};
_.t(LI,Fh);
var Wj4=function(r){var f,I,C,Y;return _.x(function(V){if(V.nextAddress==1)return f=_.Lz("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,I=_.Lz("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,C=f||I,r.mainAppPlayer=new vH(C),_.b(V,r.mainAppPlayer.api,2);Y=V.yieldResult;Y.addEventListener("onStateChange",r.JSC$15117_playerStateChangeListener.bind(r));document.addEventListener("yt-page-data-updated",r.pauseOnNavigation.bind(r));window.addEventListener("state-navigatestart",
r.pauseOnNavigation.bind(r));_.wO(V)})};
LI.prototype.JSC$15117_playerStateChangeListener=function(r){switch(r){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"}Lj3(this)};
var Lj3=function(r){r.store.dispatch(_.hv("sfvAudioItemCurrentlyPlayingEntity",ce4,{key:ce4,externalVideoId:r.externalVideoId,sfvAudioItemPlaybackState:r.playbackState,nowPlayingEntityValue:r.nowPlayingEntityValue}))};
LI.prototype.pauseOnNavigation=function(){var r=this,f,I,C,Y;return _.x(function(V){if(V.nextAddress==1){if(!r.mainAppPlayer){var S=new _.nf("Error: mainAppPlayer is unavailable",r.mainAppPlayer);_.Fo(S);return V.return()}return _.b(V,r.mainAppPlayer.api,2)}f=V.yieldResult;C=(I=f)==null?void 0:I.getPlayerState();C!==1||(Y=f)!=null&&Y.pauseVideo();_.wO(V)})};
LI.prototype.playVideo=function(r,f,I){var C=this,Y,V;return _.x(function(S){if(S.nextAddress==1)return _.b(S,(Y=C.mainAppPlayer)==null?void 0:Y.api,2);V=S.yieldResult;if(!C.mainAppPlayer||!V){var h=new _.nf("Error: mainAppPlayer is unavailable",C.mainAppPlayer);_.Fo(h);return S.return()}return _.b(S,C.mainAppPlayer.loadVideoWithPlayerVars({videoId:C.externalVideoId,audio_only:"1",start:r/1E3,end:r/1E3+f,player_params:I}),0)})};
LI.prototype.pauseVideo=function(){var r=this,f,I;return _.x(function(C){if(C.nextAddress==1){if(!r.mainAppPlayer){var Y=new _.nf("Error: mainAppPlayer is unavailable",r.mainAppPlayer);_.Fo(Y);return C.return()}return _.b(C,r.mainAppPlayer.api,2)}f=C.yieldResult;(I=f)==null||I.pauseVideo();_.wO(C)})};
LI.prototype.resolveCommand=function(r){var f=this,I,C,Y,V,S,h,w,n,d,z,g,X,P,W,m,v,O,k,Z;return _.x(function(Cw){if(Cw.nextAddress==1)return I=_.F(r,SKD),Y=(C=I)==null?void 0:C.nowPlayingEntityValue,S=(V=I)==null?void 0:V.externalVideoId,z=Number((d=(h=I)==null?void 0:(w=h.defaultStartPoints)==null?void 0:(n=w[0])==null?void 0:n.offsetMs)!=null?d:"0"),v=Number((m=(g=I)==null?void 0:(X=g.defaultStartPoints)==null?void 0:(P=X[0])==null?void 0:(W=P.duration)==null?void 0:W.seconds)!=null?m:"15"),Z=(k=
(O=I)==null?void 0:O.playerParams)!=null?k:"",Y&&S?f.mainAppPlayer?Cw.jumpTo(2):_.b(Cw,Wj4(f),2):Cw.return();if(Cw.nextAddress!=6){if(f.nowPlayingEntityValue&&Y===f.nowPlayingEntityValue)return f.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.b(Cw,f.pauseVideo(),0):_.b(Cw,f.playVideo(z,v,Z),0);f.externalVideoId=S;f.nowPlayingEntityValue=Y;f.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.b(Cw,f.playVideo(z,v,Z),6)}Lj3(f);return Cw.jumpTo(0)})};
LI[ZB]=[Ed];var mh=function(r){this.JSC$15134_commandHandler=r};
_.t(mh,Fh);mh.prototype.resolveCommand=function(r,f){var I=this,C,Y,V,S,h;return _.x(function(w){if(w.nextAddress==1)return(C=_.F(r,DJs))?_.b(w,_.uB(),2):w.return();Y=w.yieldResult;if(!Y)return w.return();(V=mLq(Y))?I.JSC$15134_commandHandler.resolveCommand(V,f):(S=_.VR("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),h=_.sr(S),I.JSC$15134_commandHandler.resolveCommand(h));_.wO(w)})};
mh[ZB]=[_.Gg];var eY=function(r){this.JSC$15137_playerPromise=r};
_.t(eY,Fh);eY.prototype.resolveCommand=function(r){var f=this,I,C,Y,V,S;return _.x(function(h){if(h.nextAddress==1){I=_.F(r,v63);if(!I)return h.return();C=I.overlayRenderer;return C?(Y=_.F(C,QaV))?_.b(h,f.JSC$15137_playerPromise,3):h.jumpTo(0):h.return()}V=h.yieldResult;V.renderChapterSeekingAnimation(1,_.Rr(Y.text),(S=Y.icon)==null?void 0:S.iconType);_.wO(h)})};
eY[ZB]=[_.Zb];var Jb=function(r){this.store=r};
_.t(Jb,Fh);Jb.prototype.resolveCommand=function(r){var f=this,I,C,Y;return _.x(function(V){if(V.nextAddress==1){I=_.F(r,rA4);if(!I)return V.return();C="";(Y=f.store.getState().collabInviteLink)&&I.id===Y.playlistId?C=Y.inviteLinkURL:I.shortUrl&&(C=I.shortUrl);return C?_.b(V,navigator.clipboard.writeText(C),3):V.jumpTo(0)}var S={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.VR("COPY_LINK_SUCCESS_TOAST")}}}}};_.a().resolve(_.Gg).resolveCommand(S);_.wO(V)})};
Jb[ZB]=[fI];var jY=function(r,f){this.innertubeTransportService=r;this.JSC$15147_commandHandler=f};
_.t(jY,Fh);jY.prototype.resolveCommand=function(r,f){var I=this,C,Y,V,S,h,w,n,d,z,g;return _.x(function(X){if(X.nextAddress==1)return(C=_.F(r,_.JL))?_.b(X,_.mC(I.innertubeTransportService,r,(Y=f)==null?void 0:Y.form),2):X.return();(V=X.yieldResult)&&V.errorMetadata&&(S=V,h=_.sr(S.error.message),I.JSC$15147_commandHandler.resolveCommand(h));w=V;if((n=w)==null?0:n.actions)for(d=_.E(w.actions),z=d.next();!z.done;z=d.next())g=z.value,I.JSC$15147_commandHandler.resolveCommand(g);_.wO(X)})};
jY[ZB]=[_.pJ,_.Gg];var HC=function(){};
_.t(HC,Fh);HC.prototype.resolveCommand=function(r){var f;return _.x(function(I){f=_.F(r,AJ_);if(!f)return I.return();(new iB3(f)).show();_.wO(I)})};_.ip=new _.Go("PLAYLIST_EDIT_CONTROLLER_TOKEN");var R3=function(r,f,I,C){this.store=r;this.innertubeTransportService=f;this.controller=I;this.JSC$15155_commandHandler=C};
_.t(R3,Fh);
R3.prototype.resolveCommand=function(r,f){var I=this,C,Y,V,S,h,w,n,d,z,g,X,P,W,m,v,O,k,Z,Cw,rR,EP,Pu,Wu,cu,OP,iU;return _.x(function(oR){if(oR.nextAddress==1){C=_.F(r,_.TK);if(!C)return oR.return();if(C.clientActions){Y=_.E(C.clientActions);for(V=Y.next();!V.done;V=Y.next())S=V.value,I.JSC$15155_commandHandler.resolveCommand(S);var vu,wB=f==null?void 0:(vu=f.form)==null?void 0:vu.element;wB&&_.kA(wB,"yt-dismissible-item-action",C.clientActions)}return _.b(oR,_.mC(I.innertubeTransportService,r,(h=
f)==null?void 0:h.form),2)}if(w=oR.yieldResult)w.errorMetadata?(n=w,d=_.sr(n.error.message),I.JSC$15155_commandHandler.resolveCommand(d),"error"in w&&((z=f)==null?0:(g=z.commandController)==null?0:g.onServerError)&&((X=f)==null||(P=X.commandController)==null||P.onServerError(r,w))):(W=f)==null||(m=W.commandController)==null||(O=(v=m).onSuccess)==null||O.call(v,r,w);k=w;((Z=k)==null?0:Z.collaborationInviteLink)&&C.playlistId&&(_.N("web_enable_invite_collaborators_link")||_.N("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
I.store.dispatch(_.kI({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:C.playlistId,inviteLinkUrl:k.collaborationInviteLink}}));((Cw=k)==null?0:Cw.redirectEndpoint)&&I.JSC$15155_commandHandler.resolveCommand(k.redirectEndpoint);((rR=k)==null?0:(EP=rR.newHeader)==null?0:EP.playlistHeaderRenderer)?m9V(I.controller,k.newHeader.playlistHeaderRenderer):((Pu=k)==null?0:(Wu=Pu.newHeader)==null?0:Wu.musicEditablePlaylistDetailHeaderRenderer)&&m9V(I.controller,k.newHeader.musicEditablePlaylistDetailHeaderRenderer);
I.controller.playlistVideoListElement&&((cu=k)==null?0:(OP=cu.playlistEditResults)==null?0:(iU=OP[0])==null?0:iU.playlistEditVideoAddedResultData)&&((wB=I.controller.playlistVideoListElement)==null||wB.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:k.playlistEditResults[0].playlistEditVideoAddedResultData})));_.wO(oR)})};
R3[ZB]=[fI,_.pJ,_.ip,_.Gg];var vC=function(r,f){this.controller=r;this.JSC$15165_commandHandler=f};
_.t(vC,Fh);vC.prototype.resolveCommand=function(r,f){var I=this,C,Y,V;return _.x(function(S){C=_.F(r,fe4);I.controller.showRefreshPill&&((Y=C)==null?0:Y.command)&&(I.JSC$15165_commandHandler.resolveCommand((V=C)==null?void 0:V.command,f),I.controller.showRefreshPill=!1);_.wO(S)})};
vC[ZB]=[_.At,_.Gg];var KI=function(r,f){this.store=r;this.JSC$15169_commandHandler=f||_.qv.instance};
_.t(KI,Fh);KI.prototype.resolveCommand=function(r,f){var I=this,C,Y,V,S,h,w,n,d,z,g;return _.x(function(X){C=_.F(r,nkB);Y=I.store.getState().radioButtonGroup;if((V=C)==null?0:V.command)I.JSC$15169_commandHandler.resolveCommand((S=C)==null?void 0:S.command,f);else if(((h=C)==null?void 0:h.formId)===Y.currentFormId)for(w=Object.values(Y.commandsMap),n=_.E(w),d=n.next();!d.done;d=n.next()){z=d.value;g=_.aB(z);if(!g)return X.return();I.JSC$15169_commandHandler.resolveCommand(g,f)}_.wO(X)})};
KI[ZB]=[fI];var ye=new _.Go("USER_PREFS");var Uu=function(r){this.JSC$15173_prefCookie=r};
_.t(Uu,Fh);Uu.prototype.resolveCommand=function(r){var f=this,I;return _.x(function(C){(I=_.F(r,v2D))&&typeof I.useListView==="boolean"&&(_.hZ(0,155,I.useListView),f.JSC$15173_prefCookie.save());_.wO(C)})};
Uu[ZB]=[ye];var su=function(r){this.JSC$15177_prefCookie=r};
_.t(su,Fh);su.prototype.resolveCommand=function(r){var f=this,I,C,Y,V,S;return _.x(function(h){I=_.F(r,G13);if((C=I)==null||!C.gl)return h.return();Y=I.gl;V={persist_gl:"1",gl:Y};f.JSC$15177_prefCookie.set("gl",Y);f.JSC$15177_prefCookie.save();S=xeB(V);_.$O(S);_.wO(h)})};
su[ZB]=[ye];var Ou=function(r){this.JSC$15181_prefCookie=r};
_.t(Ou,Fh);Ou.prototype.resolveCommand=function(r){var f=this,I,C;return _.x(function(Y){I=_.F(r,ClU);if(!I)return Y.return();C=!1;I.flagNum&&typeof I.value==="boolean"?(_.hZ(0,I.flagNum,I.value),C=!0):I.key&&typeof I.stringValue==="string"&&(f.JSC$15181_prefCookie.set(I.key,I.stringValue),C=!0);C&&f.JSC$15181_prefCookie.save();_.wO(Y)})};
Ou[ZB]=[ye];var o3=new _.Go("PREF_STORAGE_PROMISE_TOKEN");var Qe=function(r){this.JSC$15185_prefStoragePromise=r};
_.t(Qe,Fh);Qe.prototype.resolveCommand=function(r){var f=this,I,C;return _.x(function(Y){if(Y.nextAddress==1)return(I=_.F(r,le3))?_.b(Y,f.JSC$15185_prefStoragePromise,2):Y.return();C=Y.yieldResult;return C===void 0||I.key===void 0||I.value===void 0?Y.return():_.b(Y,C.set(I.key,I.value),0)})};
Qe[ZB]=[o3];var eC3=function(r){this.innertubeTransportService=r};
_.t(eC3,Fh);eC3.prototype.resolveCommand=function(r,f){var I=this,C,Y;return _.x(function(V){(C=_.F(r,_.ms4))&&C&&C.isFirstRequest&&(_.al("search_overview_answer"),_.Xc("so_rq",void 0,"search_overview_answer"));return _.b(V,_.mC(I.innertubeTransportService,r,(Y=f)==null?void 0:Y.form),0)})};
eC3[ZB]=[_.pJ];var JeU=function(){};
_.t(JeU,Fh);
JeU.prototype.resolveCommand=function(r){var f,I,C,Y,V,S,h,w,n;return _.x(function(d){f=_.F(r,iVC);if((I=f)==null?0:I.sectionIdentifier){if(f.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(Y=(C=document.getElementsByTagName(f.sectionIdentifier))==null?void 0:C.item(0))Y.scrollIntoView({behavior:"smooth"}),(V=ZJc(Y))&&V.focus({preventScroll:!0});return d.return()}S=document.querySelector("[section-identifier="+f.sectionIdentifier+"]");h=document.querySelector("[section-identifier="+f.referenceSectionIdentifier+
"]");if(!S)return d.return();w=f.verticalScrollOffsetDp?f.verticalScrollOffsetDp:0;h&&(w-=h.offsetTop);window.scrollTo({top:S.offsetTop+w,behavior:"smooth"});(n=ZJc(S))&&n.focus({preventScroll:!0})}_.wO(d)})};var Ab=function(){};
_.t(Ab,Fh);
Ab.prototype.resolveCommand=function(r){var f,I,C,Y,V,S,h;return _.x(function(w){if(w.nextAddress==1){f=_.F(r,CHX);if(!f||!f.imageBytes||!navigator.clipboard)return w.return();if(f.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.Fo(Error("zi")),w.return();_.l_(w,2);C=(I=f)==null?void 0:I.imageBytes;Y=C.replace(/-/g,"+").replace(/_/g,"/");V=n9P(Y);S={};h=[new ClipboardItem((S[V.type]=V,S))];return _.b(w,navigator.clipboard.write(h),4)}if(w.nextAddress!=2)return _.Hd(w,0);
_.ha(w);_.wO(w)})};var Zq=function(r,f){this.innertubeTransportService=r;this.JSC$15200_commandHandler=f};
_.t(Zq,Fh);Zq.prototype.resolveCommand=function(r,f){var I=this,C,Y,V,S,h;return _.x(function(w){if(w.nextAddress==1)return(C=_.F(r,YGC))?_.b(w,_.mC(I.innertubeTransportService,r,(Y=f)==null?void 0:Y.form),2):w.return();(V=w.yieldResult)&&V.errorMetadata&&C.onFailureCommand&&I.JSC$15200_commandHandler.resolveCommand(C.onFailureCommand);S=V;((h=S)==null?0:h.shareCommand)&&I.JSC$15200_commandHandler.resolveCommand(S.shareCommand,f);_.wO(w)})};
Zq[ZB]=[_.pJ,_.Gg];var Gu=function(){};
_.t(Gu,Fh);Gu.prototype.resolveCommand=function(r){var f,I;return _.x(function(C){f=_.F(r,DBT);if(!f||!navigator.share)return C.return();I={url:f.url};try{return C.return(navigator.share(I))}catch(Y){}_.wO(C)})};var k5=function(){};
_.t(k5,Fh);k5.prototype.resolveCommand=function(){return _.x(function(r){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.wO(r)})};var BC=function(r){this.JSC$15210_navigationConfirmationService=r};
_.t(BC,Fh);BC.prototype.resolveCommand=function(){var r=this;return _.x(function(f){r.JSC$15210_navigationConfirmationService.cancelPendingNavigation();_.wO(f)})};
BC[ZB]=[VJ];var qq=function(r){this.JSC$15213_screenManager=r};
_.t(qq,Fh);qq.prototype.resolveCommand=function(r,f){var I=this,C,Y,V,S,h,w,n;return _.x(function(d){Y=(C=f.form)==null?void 0:C.event;S=(V=f.form)==null?void 0:V.element;if(!Y)throw new _.nf("Event not passed in when resolving command");h=_.E(Y.composedPath());for(w=h.next();!w.done;w=h.next())if(n=w.value,n.tagName==="YT-COPY-LINK-RENDERER")return n.copyUrlToClipboard(),S&&_.cl(I.JSC$15213_screenManager,S),d.return();_.wO(d)})};
qq[ZB]=[_.Ef];var up=function(){this.JSC$15217_miniAppClientDataProvider=_.a().resolve(_.t4)};
_.t(up,Fh);up.prototype.resolveCommand=function(){var r=this,f,I;return _.x(function(C){if(r.JSC$15217_miniAppClientDataProvider.clientData.has("video_id")){var Y=r.JSC$15217_miniAppClientDataProvider,V=Y.clientData.get("video_id");V&&Y.clientData.delete("video_id");f="https://youtube.com/watch?v="+V;I=zC(f);if(I===void 0)throw Error("Ai`"+f);_.eF(window,I)}_.wO(C)})};var Dq=function(){};
_.t(Dq,Fh);Dq.prototype.resolveCommand=function(){return _.x(function(r){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.wO(r)})};var r4=function(){};
_.t(r4,Fh);r4.prototype.resolveCommand=function(){var r;return _.x(function(f){if(f.nextAddress==1)return _.b(f,_.Xz$(window.document.documentElement),2);(r=document.querySelector("mini-app-container-view-model iframe"))&&r.focus();_.wO(f)})};var f0=function(r){this.JSC$15224_navigationConfirmationService=r};
_.t(f0,Fh);
f0.prototype.resolveCommand=function(){var r=this;return _.x(function(f){var I=r.JSC$15224_navigationConfirmationService,C=_.a().resolve(_.rQ),Y;if(((Y=I.navigateParams)==null?void 0:Y.data)!==void 0){var V;_.eTX(C,I.navigateParams.endpoint,I.navigateParams.data,(V=I.navigateParams.navigationType)!=null?V:1,I.navigateParams.tempData,I.navigateParams.isMiniplayer,void 0,!0);I.navigateParams=void 0;I.customConfirmationCommand=void 0}else I.navigateParams&&(C.navigate(I.navigateParams.endpoint,I.navigateParams.reload,
I.navigateParams.params,I.navigateParams.tempData,I.navigateParams.requestType,I.navigateParams.createScreenConfig,!0),I.navigateParams=void 0,I.customConfirmationCommand=void 0);_.wO(f)})};
f0[ZB]=[VJ];var IT=function(){};
_.t(IT,Fh);IT.prototype.resolveCommand=function(){return _.x(function(r){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.wO(r)})};var C0=function(r){this.JSC$15229_prefStorage=r};
_.t(C0,Fh);C0.prototype.resolveCommand=function(){var r=this,f,I;return _.x(function(C){switch(C.nextAddress){case 1:return _.b(C,r.JSC$15229_prefStorage,2);case 2:return(f=C.yieldResult)?_.b(C,f.set("sfvle",!1),3):C.return();case 3:return _.b(C,f.set("sfvles",!0),4);case 4:I=_.xI(),_.hZ(0,203,!1),_.hZ(0,204,!0),I.save(),_.wO(C)}})};
C0[ZB]=[o3];var YF=function(r){this.JSC$15232_prefStorage=r};
_.t(YF,Fh);YF.prototype.resolveCommand=function(){var r=this,f,I;return _.x(function(C){switch(C.nextAddress){case 1:return _.b(C,r.JSC$15232_prefStorage,2);case 2:return(f=C.yieldResult)?_.b(C,f.set("sfvle",!0),3):C.return();case 3:return _.b(C,f.set("sfvles",!0),4);case 4:I=_.xI(),_.hZ(0,203,!0),_.hZ(0,204,!0),I.save(),_.wO(C)}})};
YF[ZB]=[o3];var lq=function(){};
_.t(lq,Fh);lq.prototype.resolveCommand=function(r){var f;return _.x(function(I){f=_.F(r,YUq);if(!f||typeof f.key!=="string"||typeof f.value!=="string")return I.return();window.localStorage.setItem(f.key,f.value);_.wO(I)})};var V7=function(r){this.store=r};
_.t(V7,Fh);V7.prototype.resolveCommand=function(r){var f=this,I;return _.x(function(C){I=_.F(r,PjK);if(!I||!I.stepId||!I.token)return C.return();f.store.dispatch(G73({stepId:I.stepId,token:I.token,isSelected:!1}));_.wO(C)})};
V7[ZB]=[fI];var E8=function(r,f,I){this.innertubeTransportService=r;this.store=f;this.JSC$15243_screenManager=I};
_.t(E8,Fh);
E8.prototype.resolveCommand=function(r){var f=this,I,C,Y,V,S,h,w,n,d,z,g,X,P,W,m,v,O,k,Z,Cw,rR,EP,Pu;return _.x(function(Wu){I=_.F(r,So3);if(!I||(C=I.stepIds)==null||!C.length)return Wu.return();Y=f.store.getState().talkToRecs;V=[];S=[];h=_.E(I.stepIds);for(w=h.next();!w.done;w=h.next())for(n=w.value,d=void 0,(z=(d=Y.stepStates[n])==null?void 0:d.userQuery)&&S.push({userQuery:z.userQuery,userQueryToken:z.token}),g=void 0,X=(g=Y.stepStates[n])==null?void 0:g.selectionStates,P=_.E(Object.entries(X)),W=
P.next();!W.done;W=P.next())m=W.value,v=_.E(m),O=v.next().value,k=v.next().value,Z=O,Cw=k,Cw.isSelected&&V.push(Z);rR={selectedChipTokens:V,userQueries:S,submittedStepIds:I.stepIds};EP={browseTalk2recsFormData:rR};I.browseEndpoint?(Pu=r,_.nv(Pu,_.lA,I.browseEndpoint)):I.command&&(Pu=I.command);return Pu?_.b(Wu,_.mC(f.innertubeTransportService,Pu,{formData:EP,disableCache:!0}).then(function(cu){(cu==null?0:cu.trackingParams)&&f.JSC$15243_screenManager.graftServerVe(cu==null?void 0:cu.trackingParams)}),
0):Wu.return()})};
E8[ZB]=[_.pJ,fI,_.Ef];var SL=function(r){this.store=r};
_.t(SL,Fh);SL.prototype.resolveCommand=function(r){var f=this,I;return _.x(function(C){I=_.F(r,Fal);if(!I||!I.stepId||!I.token)return C.return();f.store.dispatch(G73({stepId:I.stepId,token:I.token,isSelected:!0}));_.wO(C)})};
SL[ZB]=[fI];var xF=function(r){this.store=r};
_.t(xF,Fh);xF.prototype.resolveCommand=function(r,f){var I=this,C,Y,V,S,h;return _.x(function(w){C=_.F(r,xBX);if(!C||!C.stepId||!C.userQueryToken)return w.return();h=(S=(Y=f)==null?void 0:(V=Y.form)==null?void 0:V.userQuery)!=null?S:"";I.store.dispatch(_.kI({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:C.stepId,userQueryToken:C.userQueryToken,userQuery:h}}));_.wO(w)})};
xF[ZB]=[fI];_.jIq=new _.Go("TIMELY_ACTIONS_CONTROLLER_TOKEN");var hT=function(r){this.controller=r};
_.t(hT,Fh);hT.prototype.resolveCommand=function(r){var f=this,I,C,Y,V;return _.x(function(S){I=_.F(r,JkD);if(!I)return S.return();C=I;Y=C.id;V=C.isVisible;if(Y===void 0||V===void 0)return S.return();var h;(h=f.controller.timelyActionsMap.get(Y))==null||h(Y,V);_.wO(S)})};
hT[ZB]=[_.jIq];var H1D=function(){this.timelyActionsMap=new Map};var w4=function(r){this.JSC$15270_commandHandler=r};
_.t(w4,Fh);w4.prototype.resolveCommand=function(r){var f=this,I,C,Y,V,S;return _.x(function(h){I=_.F(r,_.RQ3);if(!I)return h.return();V=(C=I.item)==null?void 0:(Y=C.notificationTextRenderer)==null?void 0:Y.successResponseText;if(!V)return h.return();S=_.Ur(V);f.JSC$15270_commandHandler.resolveCommand(S);_.wO(h)})};
w4[ZB]=[_.Gg];var bq=function(r,f){this.innertubeTransportService=r;this.JSC$15275_playerApiPromise=f};
_.t(bq,Fh);
bq.prototype.resolveCommand=function(r){var f=this,I,C,Y,V,S,h,w,n,d;return _.x(function(z){if(z.nextAddress==1)return _.b(z,f.JSC$15275_playerApiPromise,2);I=z.yieldResult;C=I.getOption("captions","track");Y=Object.assign({},_.F(r,_.tX3));(S=(V=I.getVideoData())==null?void 0:V.video_id)?Y.externalVideoId=S:_.Hw(Error("Bi"));if((h=C)==null?0:h.languageCode)Y.languageCode=C.languageCode;if((w=C)==null?0:w.kind)Y.kind=C.kind;if((n=C)==null?0:n.name)Y.name=C.name;d=Object.assign({},r,{getTranscriptEndpoint:Y});return _.b(z,
_.mC(f.innertubeTransportService,d),0)})};
bq[ZB]=[_.pJ,_.Zb];var p0=function(){};
_.t(p0,Fh);p0.prototype.resolveCommand=function(r){var f,I,C,Y,V,S,h,w;return _.x(function(n){f=_.F(r,p7C);if((I=f)==null||!I.paramKeyValuePairs)return n.return();C=window.location.href;Y=_.E(f.paramKeyValuePairs);for(V=Y.next();!V.done;V=Y.next())S=V.value,S.key&&S.value&&(h={},C=_.yM(C,(h[S.key]=S.value,h)));w=_.a().resolve(_.C_);_.I9(w,C);_.wO(n)})};var n0=function(r,f){this.JSC$15282_commandHandler=r;this.innertubeTransportService=f};
_.t(n0,Fh);
n0.prototype.resolveCommand=function(r,f){var I=this,C,Y,V,S,h,w,n,d,z,g,X,P,W,m,v,O,k;return _.x(function(Z){switch(Z.nextAddress){case 1:return(V=(C=f)==null?void 0:(Y=C.form)==null?void 0:Y.element)&&_.QU(V),S=_.xI().get("hl"),h="",_.l_(Z,2),_.b(Z,HrE(S),4);case 4:h=Z.yieldResult;_.Hd(Z,3);break;case 2:return _.ha(Z),V&&_.AH(V),_.Fo(Error("Di"),"ERROR"),Z.return();case 3:w=_.F(r,DAU);if(!w)return V&&_.AH(V),Z.return();(z=(n=w.commerceActionConfig)==null?void 0:(d=n.commandLifeCycleConfig)==null?
void 0:d.onStartCommand)&&I.JSC$15282_commandHandler.resolveCommand(z);return _.b(Z,_.mC(I.innertubeTransportService,r,{client_data:{paymentsClientToken:{token:h}}}),5);case 5:(g=Z.yieldResult)?(V&&_.AH(V),((m=g)==null?0:m.command)&&I.JSC$15282_commandHandler.resolveCommand(g.command),(k=(v=w.commerceActionConfig)==null?void 0:(O=v.commandLifeCycleConfig)==null?void 0:O.onSuccessCommand)&&I.JSC$15282_commandHandler.resolveCommand(k)):(V&&_.AH(V),_.Fo(Error("Ei")),(W=(X=w.commerceActionConfig)==null?
void 0:(P=X.commandLifeCycleConfig)==null?void 0:P.onFailureCommand)&&I.JSC$15282_commandHandler.resolveCommand(W)),_.wO(Z)}})};
n0[ZB]=[_.Gg,_.pJ];var d4=function(r,f,I){this.store=r;this.JSC$15298_commandHandler=f;this.innertubeTransportService=I};
_.t(d4,Fh);
d4.prototype.resolveCommand=function(r,f){var I=this,C,Y,V,S,h,w,n,d,z;return _.x(function(g){C=_.F(r,rKB);Y=C.googlePaymentPayload;C.onStartCommand&&I.JSC$15298_commandHandler.resolveCommand(C.onStartCommand);V=Y.encryptedPurchaseParams;S=Y.ypcLogWalletAnalyticDataEndpoint;h=C.serializedTransactionFlowLoggingParams;w=Y.serializedPaymentsClientParams;n=C.ypcCujContext;z=v9q(I.innertubeTransportService,(d=f)==null?void 0:d.form,V,S,h,w,n);return g.return(z.then(function(X){irK(f==null?void 0:f.form,
!1);var P=I.store,W=I.JSC$15298_commandHandler,m=X.integratorData;m==null||m===""||X.error!=null?(String(X.error)==="-1"&&C.onDismissCommand?W.resolveCommand(C.onDismissCommand):String(X.error)!=="-1"&&C.onFailureCommand&&W.resolveCommand(C.onFailureCommand),String(X.error)!=="-1"&&String(X.error)!=="132"&&_.Fo(Error("Fi"),"ERROR")):(C.googlePaymentEntityKey&&P.dispatch(_.hv("commerceAcquisitionClientPayloadEntity",C.googlePaymentEntityKey,{key:C.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:m,
fundsGuaranteeCallbackClientData:X.integratorClientCallbackData}}})),C.onSuccessCommand&&W.resolveCommand(C.onSuccessCommand));_.fe()},function(X){irK(f==null?void 0:f.form,!1);
_.Fo(X,"ERROR");C.onFailureCommand&&I.JSC$15298_commandHandler.resolveCommand(C.onFailureCommand)}))})};
d4[ZB]=[Ed,_.Gg,_.pJ];var zr=function(r,f){this.JSC$15302_commandHandler=r;this.purchaseManager=f};
_.t(zr,Fh);
zr.prototype.resolveCommand=function(r){var f=this,I,C,Y,V,S,h,w,n,d;return _.x(function(z){I=_.F(r,fG3);((C=I)==null?0:(Y=C.commandLifeCycleConfig)==null?0:Y.onStartCommand)&&f.JSC$15302_commandHandler.resolveCommand(I.commandLifeCycleConfig.onStartCommand);if(!((V=I)==null?0:(S=V.googlePaymentPurchaseManagerPayload)==null?0:S.securePayloadBytes))return _.Fo(Error("Gi"),"ERROR"),z.return();h=TGX(_.MT(I.googlePaymentPurchaseManagerPayload.securePayloadBytes));w=_.xI().get("hl");n=_.eu();Aw3(h.serialize(),
w,function(g){n.resolve(g)},function(g){n.reject(g)},n.resolve);
d=n.promise;return z.return(d.then(function(g){if(g)if(g==null?0:g.errorCode){_.Fo(Error("Hi`"+g.errorCode),"ERROR");var X,P;((X=I)==null?0:(P=X.commandLifeCycleConfig)==null?0:P.onFailureCommand)&&f.JSC$15302_commandHandler.resolveCommand(I.commandLifeCycleConfig.onFailureCommand)}else if(g==null?0:g.isCancelled){var W,m;((W=I)==null?0:(m=W.commandLifeCycleConfig)==null?0:m.onCancelCommand)&&f.JSC$15302_commandHandler.resolveCommand(I.commandLifeCycleConfig.onCancelCommand)}else{var v,O;((v=I)==
null?0:(O=v.commandLifeCycleConfig)==null?0:O.onSuccessCommand)&&f.JSC$15302_commandHandler.resolveCommand(I.commandLifeCycleConfig.onSuccessCommand)}},function(g){_.Fo(g,"ERROR");
var X,P;((X=I)==null?0:(P=X.commandLifeCycleConfig)==null?0:P.onFailureCommand)&&f.JSC$15302_commandHandler.resolveCommand(I.commandLifeCycleConfig.onFailureCommand)}))})};
zr[ZB]=[_.Gg,Zt4];var i1_=function(r,f){this.JSC$15310_commandHandler=r;this.commandAllowlistOverride=f;var I;this.commandAllowlist=(I=this.commandAllowlistOverride)!=null?I:J8};
i1_.prototype.handleResponse=function(r,f,I){var C,Y=f==null?void 0:(C=f.config)==null?void 0:C.command;if(!Y||this.commandAllowlist.some(function(V){return!!_.F(Y,V)})){f=void 0;
I!==void 0&&(f={form:{element:I}});r.onResponseReceivedCommand&&this.JSC$15310_commandHandler.resolveCommand(r.onResponseReceivedCommand,f);r.onResponseReceivedAction&&this.JSC$15310_commandHandler.resolveCommand(r.onResponseReceivedAction,f);r.onResponseReceivedEndpoint&&this.JSC$15310_commandHandler.resolveCommand(r.onResponseReceivedEndpoint,f);r.command&&this.JSC$15310_commandHandler.resolveCommand(r.command,f);if(r.onResponseReceivedCommands)for(I=_.E(r.onResponseReceivedCommands),C=I.next();!C.done;C=
I.next())this.JSC$15310_commandHandler.resolveCommand(C.value,f);if(r.onResponseReceivedActions)for(I=_.E(r.onResponseReceivedActions),C=I.next();!C.done;C=I.next())this.JSC$15310_commandHandler.resolveCommand(C.value,f);if(r.onResponseReceivedEndpoints)for(I=_.E(r.onResponseReceivedEndpoints),C=I.next();!C.done;C=I.next())this.JSC$15310_commandHandler.resolveCommand(C.value,f);if(r.actions)for(r=_.E(r.actions),I=r.next();!I.done;I=r.next())this.JSC$15310_commandHandler.resolveCommand(I.value,f)}};
i1_[ZB]=[_.Gg,_.ZY(yTq)];var RC3=new _.Go("INNERTUBE_TOKEN_SERVICE");var vWU=new _.Go("SCHEDULER_TOKEN");var KjT=function(r){this.scheduler=r;r={};this.tokenMap=(r.app={},r.user={},r)};
KjT.prototype.handleResponse=function(r,f){if(!f)throw Error("Ii");var I;if(r=(I=r.responseContext)==null?void 0:I.innertubeTokenJar){if(r.appTokens){var C,Y,V;I=(C=f.innerTubeRequest.context)==null?void 0:(Y=C.request)==null?void 0:(V=Y.innertubeTokenJar)==null?void 0:V.appTokens;ye_(this,r.appTokens,this.tokenMap.app,I)}if(r.userTokens){var S,h,w;f=(S=f.innerTubeRequest.context)==null?void 0:(h=S.request)==null?void 0:(w=h.innertubeTokenJar)==null?void 0:w.userTokens;ye_(this,r.userTokens,this.tokenMap.user,
f)}}};
KjT.prototype.processContext=function(r){r.request||(r.request={});var f=Object.keys(this.tokenMap.app).length,I=Object.keys(this.tokenMap.user).length;if(f||I)r.request.innertubeTokenJar={},f&&(r.request.innertubeTokenJar.appTokens=[].concat(_.Na(Object.values(this.tokenMap.app).flat()))),I&&(r.request.innertubeTokenJar.userTokens=[].concat(_.Na(Object.values(this.tokenMap.user).flat())))};
var ye_=function(r,f,I,C){f=_.E(f);for(var Y=f.next(),V={};!Y.done;V={token$jscomp$137:void 0},Y=f.next()){V.token$jscomp$137=Y.value;if(V.token$jscomp$137.type===void 0)throw new _.nf("InnerTube token has no type",V.token$jscomp$137);if(V.token$jscomp$137.clearTokens)I[V.token$jscomp$137.type]=[];else if(V.token$jscomp$137.value!==void 0){I[V.token$jscomp$137.type]||(I[V.token$jscomp$137.type]=[]);if(C!==void 0&&C.length){Y=_.E(C);for(var S=Y.next(),h={};!S.done;h={requestToken:void 0},S=Y.next())h.requestToken=
S.value,S=I[V.token$jscomp$137.type].findIndex(function(w){return function(n){return n===w.requestToken||(0,_.X0.equals)(n,w.requestToken)}}(h)),S>-1&&I[V.token$jscomp$137.type].splice(S,1)}I[V.token$jscomp$137.type].push(V.token$jscomp$137);
V.token$jscomp$137.maxAgeSeconds&&Number(V.token$jscomp$137.maxAgeSeconds)>0&&r.scheduler.addLowPriorityJob(function(w){return function(){var n=I[w.token$jscomp$137.type].indexOf(w.token$jscomp$137);n>-1&&I[w.token$jscomp$137.type].splice(n,1)}}(V),Number(V.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.nf("InnerTube token has no value",V.token$jscomp$137);
}};
KjT[ZB]=[vWU];var U93=new _.Go("LOCAL_INNERTUBE_ROUTER_TOKEN"),sIg=new _.Go("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Ml=function(r){this.serviceMap=r};
Ml.prototype.shouldPreferLocalResponse=function(r,f){return(r=O1_(this,r))?r.shouldPreferLocalResponse(f):!1};
Ml.prototype.localInnertubeResponse=function(r,f){var I=this,C;return _.x(function(Y){return(C=O1_(I,r))?Y.return(C.localInnertubeResponse(f)):Y.return(Promise.reject(Error("Ji")))})};
Ml.prototype.canProvideFallbackResponse=function(r,f){return(r=O1_(this,r))?r.canProvideFallbackResponse(f):!1};
Ml.prototype.localFallbackInnertubeResponse=function(r,f){var I=this,C;return _.x(function(Y){return(C=O1_(I,r))?Y.return(C.localFallbackInnertubeResponse(f)):Y.return(Promise.reject(Error("Ji")))})};
var O1_=function(r,f){f=_.Cf(f);return f?(r=r.serviceMap[f])?r:null:null};
Ml[ZB]=[sIg];var XC=function(){};
XC.prototype.shouldPreferLocalResponse=function(){return!1};
XC.prototype.localInnertubeResponse=function(){return _.x(function(r){return r.return(Promise.reject(Error("Ki")))})};
XC.prototype.canProvideFallbackResponse=function(){return!0};
XC.prototype.localFallbackInnertubeResponse=function(){var r,f,I;return _.x(function(C){r=Xn("CLOSE_POPUP");f={openPopupAction:yzB()};I={actions:[r,f]};return C.return(I)})};var nm$=function(r,f){this.JSC$15360_upliftPromise=r;this.store=f};
_.l=nm$.prototype;_.l.shouldPreferLocalResponse=function(r){var f=r.videoId,I;if(I=f)I=wqU(this.store.getState().entities,r.videoId);return I&&O7d(this.store.getState().entities,f)?s2P(this.store.getState().entities,r.playlistId):!1};
_.l.localInnertubeResponse=function(r){var f=this,I;return _.x(function(C){return(I=f.getPlayerResponse(r))?C.return(Promise.resolve(I)):C.return(Promise.reject(Error("Li")))})};
_.l.canProvideFallbackResponse=function(r){return!!r.videoId};
_.l.localFallbackInnertubeResponse=function(r){var f=this,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,f.JSC$15360_upliftPromise,2);I=f.getPlayerResponse(r);var Y;I?Y=C.return(Promise.resolve(I)):Y=p2(f.store.getState().entities,r.videoId)?C.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.AZ(_.VR("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:sLB()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
C.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.AZ(_.VR("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:Utl()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return Y})};
_.l.getPlayerResponse=function(r){return dhu(this.store.getState().entities,r.videoId)};var ap=function(r,f){this.localPlayerService=r;this.localWatchNextService=f};
ap.prototype.shouldPreferLocalResponse=function(r){var f=r.playerRequest;r=r.watchNextRequest;return!!(f&&this.localPlayerService.shouldPreferLocalResponse(f)&&r&&this.localWatchNextService.shouldPreferLocalResponse(r))};
ap.prototype.localInnertubeResponse=function(r){var f=this,I,C,Y,V;return _.x(function(S){if(S.nextAddress==1){I=r.playerRequest;C=r.watchNextRequest;if(!I||!C)throw new _.nf("Missing streaming request",r);return _.b(S,f.localPlayerService.localInnertubeResponse(I),2)}if(S.nextAddress!=3)return Y=S.yieldResult,_.b(S,f.localWatchNextService.localInnertubeResponse(C),3);V=S.yieldResult;return S.return({playerResponse:Y,watchNextResponse:V})})};
ap.prototype.canProvideFallbackResponse=function(r){var f=r.playerRequest;r=r.watchNextRequest;return!!(f&&this.localPlayerService.canProvideFallbackResponse(f)&&r&&this.localWatchNextService.canProvideFallbackResponse(r))};
ap.prototype.localFallbackInnertubeResponse=function(r){var f=this,I,C,Y,V;return _.x(function(S){if(S.nextAddress==1)return I=r.playerRequest,C=r.watchNextRequest,I&&C?_.b(S,f.localPlayerService.localFallbackInnertubeResponse(I),2):S.return(Promise.reject(new _.nf("Missing streaming request",r)));if(S.nextAddress!=3)return Y=S.yieldResult,_.b(S,f.localWatchNextService.localFallbackInnertubeResponse(C),3);V=S.yieldResult;return S.return({playerResponse:Y,watchNextResponse:V})})};var zW=function(r){this.JSC$15370_persistentStorePromiseAccessor=r};
zW.prototype.shouldPreferLocalResponse=function(){return!1};
zW.prototype.localInnertubeResponse=function(){return _.x(function(r){return r.return(Promise.reject(Error("Mi")))})};
zW.prototype.canProvideFallbackResponse=function(){return!0};
zW.prototype.localFallbackInnertubeResponse=function(){var r=this,f,I;return _.x(function(C){return C.nextAddress==1?_.b(C,r.JSC$15370_persistentStorePromiseAccessor(),2):C.nextAddress!=3?(f=C.yieldResult)?_.b(C,f.get("service:guide:fallback"),3):C.return(Promise.reject(Error("Ni"))):(I=C.yieldResult)&&_.lO(I)?C.return(OrU(_.lO(I))):C.return(Promise.reject(Error("Oi")))})};var Ni=function(){};
Ni.prototype.shouldPreferLocalResponse=function(){return!1};
Ni.prototype.localInnertubeResponse=function(){return _.x(function(r){return r.return(Promise.reject(Error("Pi")))})};
Ni.prototype.canProvideFallbackResponse=function(){return!0};
Ni.prototype.localFallbackInnertubeResponse=function(){var r,f,I;return _.x(function(C){r=Xn("CLOSE_POPUP");f={openPopupAction:yzB()};I={actions:[r,f]};return C.return(I)})};var dM=function(){this.urlMap=oWC;this.fallbackCommand=_.h9};
dM.prototype.shouldPreferLocalResponse=function(r){return(r=r.url)?!!QI3(this,r):!1};
dM.prototype.localInnertubeResponse=function(r){var f=this,I;return _.x(function(C){return(I=r.url)?C.return(Ae8(r,QI3(f,I))):C.return(Promise.reject(Error("Qi")))})};
dM.prototype.canProvideFallbackResponse=function(){return!0};
dM.prototype.localFallbackInnertubeResponse=function(r){var f=this,I,C,Y,V,S,h,w;return _.x(function(n){I=r.url;if(!I)return n.return(Ae8(r,f.fallbackCommand));if(C=QI3(f,I))return n.return(Ae8(r,C));Y=void 0;V=_.Cf(I);V==="/watch"&&(S=_.Jy(I,"v"))&&(w=(h=_.Jy(I,"list"))!=null?h:void 0,Y=_.QR(S,w));Y||(Y=f.fallbackCommand);return n.return(Ae8(r,Y))})};
var QI3=function(r,f){if(f)return r.urlMap[_.J1(f)]},Ae8=function(r,f){f&&r.parentTrackingParams&&(f.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:r.parentTrackingParams}},f.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:f})};var Mi=function(r,f,I){this.JSC$15380_upliftPromise=r;this.store=f;this.JSC$15380_persistentStorePromiseAccessor=I};
Mi.prototype.shouldPreferLocalResponse=function(){return!1};
Mi.prototype.localInnertubeResponse=function(){return _.x(function(r){return r.return(Promise.reject(Error("Ri")))})};
Mi.prototype.canProvideFallbackResponse=function(){return!0};
Mi.prototype.localFallbackInnertubeResponse=function(){var r=this;return _.x(function(f){return f.return(Z1q(r))})};
var Z1q=function(r){var f,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,Yw(r.JSC$15380_upliftPromise,r.store),2);f=C.yieldResult;I={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[ULq(f)]}}}};return C.return(GRD(r,I))})},GRD=function(r,f){var I,C;
return _.x(function(Y){if(Y.nextAddress==1)return _.b(Y,r.JSC$15380_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3)return I=Y.yieldResult,_.b(Y,VW(I),3);C=Y.yieldResult;return Y.return({responseContext:{},contents:f,topbar:C})})};var pG=function(r,f,I){this.JSC$15387_upliftPromise=r;this.store=f;this.JSC$15387_persistentStorePromiseAccessor=I};
pG.prototype.shouldPreferLocalResponse=function(r){var f=r.videoId;return f&&wqU(this.store.getState().entities,f)&&O7d(this.store.getState().entities,f)?s2P(this.store.getState().entities,r.playlistId):!1};
pG.prototype.localInnertubeResponse=function(r){var f=this,I,C;return _.x(function(Y){if(Y.nextAddress==1)return(I=r.videoId)?_.b(Y,f.JSC$15387_upliftPromise,2):Y.return(Promise.reject(Error("Si")));if(Y.nextAddress!=3)return _.b(Y,kR3(f,r,I),3);C=Y.yieldResult;return Y.return(B3V(f,C,I))})};
pG.prototype.canProvideFallbackResponse=function(r){return r.videoId?!0:!1};
pG.prototype.localFallbackInnertubeResponse=function(r){var f=this,I,C,Y,V;return _.x(function(S){switch(S.nextAddress){case 1:return(I=r.videoId)?_.b(S,f.JSC$15387_upliftPromise,2):S.return(Promise.reject(Error("Si")));case 2:return _.b(S,kR3(f,r,I),3);case 3:C=S.yieldResult;if(p2(f.store.getState().entities,I)){S.jumpTo(4);break}return _.b(S,Yw(f.JSC$15387_upliftPromise,f.store),5);case 5:return Y=S.yieldResult,S.return(qOT(C,Y));case 4:return wqU(f.store.getState().entities,I)&&O7d(f.store.getState().entities,
I)?S.return(B3V(f,C,I)):(V={title:_.AZ(_.VR("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:sLB()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},S.return(qOT(C,V)))}})};
var kR3=function(r,f,I){var C,Y,V,S,h;return _.x(function(w){if(w.nextAddress==1)return C=f.playlistId,Y=_.QR(I,C),_.b(w,r.JSC$15387_persistentStorePromiseAccessor(),2);if(w.nextAddress!=3)return V=w.yieldResult,_.b(w,VW(V),3);S=w.yieldResult;h={responseContext:{},currentVideoEndpoint:Y,topbar:S};return w.return(h)})},B3V=function(r,f,I){if(r=p2(r.store.getState().entities,I)){var C;
I=r.videoEntity;var Y,V={title:Zk(I.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.GM((C=I.localizedStrings)==null?void 0:C.viewCount),viewCount:_.GM((Y=I.localizedStrings)==null?void 0:Y.viewCount)}}};I.publishedTimestampMillis&&(V.dateText=_.GM(CH$(new Date(Number(I.publishedTimestampMillis)))));C={videoPrimaryInfoRenderer:V};Y=r.videoEntity;r=r.channelEntity;r={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:Zk(_.VR("SHOW_MORE",void 0,"Show more")),
showLessText:Zk(_.VR("SHOW_LESS",void 0,"Show less")),description:Y.formattedDescription,owner:{videoOwnerRenderer:{title:Zk(r.title),thumbnail:r.avatar}}}};f.contents={twoColumnWatchNextResults:{results:{results:{contents:[C,r]}}}}}return f},qOT=function(r,f){r.contents={singleColumnWatchNextResults:{results:{results:{contents:[ULq(f)]}}}};
return r};var gM=function(r,f,I){this.JSC$15393_upliftPromise=r;this.store=f;this.JSC$15393_persistentStorePromiseAccessor=I};
gM.prototype.shouldPreferLocalResponse=function(){return!1};
gM.prototype.localInnertubeResponse=function(){return _.x(function(r){return r.return(Promise.reject(Error("Ti")))})};
gM.prototype.canProvideFallbackResponse=function(){return!0};
gM.prototype.localFallbackInnertubeResponse=function(){var r=this,f,I,C,Y;return _.x(function(V){switch(V.nextAddress){case 1:return _.b(V,r.JSC$15393_persistentStorePromiseAccessor(),2);case 2:return f=V.yieldResult,_.b(V,VW(f),3);case 3:return I=V.yieldResult,C={responseContext:{},topbar:I},_.b(V,r.JSC$15393_upliftPromise,4);case 4:return _.b(V,Yw(r.JSC$15393_upliftPromise,r.store),5);case 5:return Y=V.yieldResult,C.watchStatus={backgroundPromoRenderer:Y},V.return(C)}})};var utC=new _.Go("ENDPOINT_MAP");var D9s=function(){var r=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return r.sequenceMap}}},exV=function(r,f,I){var C,Y=(C=f.config)==null?void 0:C.sequenceStrategy;
if(!Y)return I();r.sequenceMap.has(Y.sequenceKey)||r.sequenceMap.set(Y.sequenceKey,[]);r=r.sequenceMap.get(Y.sequenceKey);switch(Y.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return rm1(r,f,I);case "REQUEST_SEQUENCE_TYPE_REPLACE":return fd6(r,f,I);default:throw new _.nf("Request could not be sequenced",f);}},rm1=function(r,f,I){var C,Y,V;
return _.x(function(S){r.length>0?(Y=r[r.length-1],C=Y.responsePromise.then(function(){return I()})):C=I();
V={request:f,responsePromise:C};r.push(V);Idi(r,V);return S.return(V.responsePromise)})},fd6=function(r,f,I){I=I();
if(r.length>0)for(var C=_.E(r),Y=C.next();!Y.done;Y=C.next())Y.value.responsePromise=I;var V={request:f,responsePromise:I};r.push(V);Idi(r,V);return Promise.resolve().then(function(){return r.indexOf(V)>0?V.responsePromise.then(function(S){return Object.assign({},S,{sequenceMetaData:{skipProcessing:!0}})}):V.responsePromise})},Idi=function(r,f){f.responsePromise.then(function(){var I=r.indexOf(f);
I>-1&&r.splice(I,1)})};var CUi=new _.Go("REQUEST_SEQUENCING");var g4=function(){};
_.t(g4,aO);g4.prototype.getApiPaths=function(){return[]};
g4.prototype.getExtension=function(r){return _.F(r,WtB)};
g4.prototype.JSC$11807_buildRequest=function(r,f){r.recaptchaToken=f.recaptchaToken};
g4.prototype.getApiUrl=function(){return"/das_captcha"};var aT=function(){};
_.t(aT,aO);aT.prototype.getApiPaths=function(){return uT_};
aT.prototype.getExtension=function(r){return _.F(r,Cw3)};
aT.prototype.JSC$11807_buildRequest=function(r,f,I){I=I===void 0?{}:I;f.createBackstagePostParams&&(r.createBackstagePostParams=f.createBackstagePostParams);I.comment_text&&(r.commentText=I.comment_text);if(I.attached_video_id)r.videoAttachment={videoId:I.attached_video_id};else if(I.image_poll_options)r.pollAttachmentData={options:I.image_poll_options};else if(I.poll_options)r.pollAttachment={choices:I.poll_options};else if(I.quiz_options)r.quizAttachmentData={options:I.quiz_options};else if(I.image_blob_id)r.imageAttachment=
{encryptedBlobId:I.image_blob_id},I.source_video_id&&(r.imageAttachment.sourceExternalVideoId=I.source_video_id),I.image_preview_coordinates&&(r.imageAttachment.previewCoordinates=JSON.parse(I.image_preview_coordinates));else if(I.images_data)r.imagesAttachment={imagesData:I.images_data};else if(I.clip_external_video_id!==void 0||I.clip_offset_ms!==void 0||I.clip_duration_ms!==void 0){var C,Y,V,S,h;r.clipAttachment={externalVideoId:(V=I.clip_external_video_id)!=null?V:"",offsetMs:(S=(C=I.clip_offset_ms)==
null?void 0:C.toString())!=null?S:"",durationMs:(h=(Y=I.clip_duration_ms)==null?void 0:Y.toString())!=null?h:""}}else I.shared_post_id&&(r.sharedPostAttachment={postId:I.shared_post_id});I.tagged_video_id&&(r.postCreationData={taggedVideoId:I.tagged_video_id});I.access_restrictions&&(typeof I.access_restrictions==="number"&&(f=I.access_restrictions,r.accessRestrictions={restriction:f!==1&&f===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof I.access_restrictions==="string"&&
(r.accessRestrictionsParams=I.access_restrictions));I.scheduled_publish_time_sec&&(r.scheduledPublishTimeSec=I.scheduled_publish_time_sec.toString())};var XY=function(){};
_.t(XY,aO);XY.prototype.getApiPaths=function(){return lHX};
XY.prototype.getExtension=function(r){return _.F(r,VZ_)};
XY.prototype.JSC$11807_buildRequest=function(r,f,I){I=I===void 0?{}:I;f.decorateMessageParams&&(r.params=f.decorateMessageParams);I.text&&(r.text=I.text)};var Nl=function(){};
_.t(Nl,aO);Nl.prototype.getApiPaths=function(){return tp4};
Nl.prototype.getExtension=function(r){return _.F(r,YoD)};
Nl.prototype.JSC$11807_buildRequest=function(r,f,I){I=I===void 0?{}:I;I.video_id&&(r.videoId=I.video_id)};var $F=function(){};
_.t($F,aO);$F.prototype.getApiPaths=function(){return eV3};
$F.prototype.getExtension=function(r){return _.F(r,_.YI)};
$F.prototype.JSC$11807_buildRequest=function(r,f,I){I.suggestions_query&&(r.input=I.suggestions_query)};var FY=function(){};
_.t(FY,aO);FY.prototype.getApiPaths=function(){return hIV};
FY.prototype.getExtension=function(r){return _.F(r,lRD)};
FY.prototype.JSC$11807_buildRequest=function(r,f,I){I.comment_text!==void 0&&(r.commentText=I.comment_text);I.scheduled_publish_time_sec&&(r.scheduledPublishTimeSec=I.scheduled_publish_time_sec.toString());r.updateBackstagePostParams=f.updateBackstagePostParams};var Pp=function(){};
_.t(Pp,aO);Pp.prototype.getApiPaths=function(){return u1};
Pp.prototype.getExtension=function(r){return _.F(r,_.$Z)};
Pp.prototype.JSC$11807_buildRequest=function(r,f,I){I.formData&&(r.formData=I.formData);f.token?r.continuation=f.token:f.continuationTokenKey&&(I=_.K2().getState(),f=_.f2(I.entities,"continuationTokenEntity",f.continuationTokenKey))&&(r.continuation=String(f.continuationToken))};
var YP1=function(){};
_.t(YP1,aO);_.l=YP1.prototype;_.l.getApiPaths=function(){return u1};
_.l.getExtension=function(r){return _.F(r,_.lA)};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$11814_getStoreKey=function(r){if((r=this.getExtension(r))&&r.browseId){var f={browseId:r.browseId};r.browseEndpointContextSupportedConfigs&&(f.browseEndpointContextSupportedConfigs=JSON.stringify(r.browseEndpointContextSupportedConfigs));r.params&&(f.params=r.params);r.query&&(f.query=r.query);return _.Ro("browse",f)}};
_.l.JSC$11807_buildRequest=function(r,f,I){f.browseId&&(r.browseId=f.browseId);f.params&&(r.params=f.params);f.query&&(r.query=f.query);I.formData?r.formData=I.formData:f.formData&&(r.formData=f.formData);f.browseId==="FEsubscriptions"&&_.xI().getFlag(155)&&(r.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");f.browseId==="SPaccount_playback"&&(I=_.xI(),r.formData||(r.formData={}),r.formData.accountSettingsFormData={flagCaptionsDefaultOff:I.getFlag(65),flagAutoCaptionsDefaultOn:I.getFlag(66),
flagDisableInlinePreview:I.getFlag(186),flagAudioDescriptionDefaultOn:I.getFlag(198)});if(f.browseId==="FEwhat_to_watch"){I=_.xI();var C=I.getFlag(196);I.getFlag(197)&&(r.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:C}}})}f.browseId==="FEwhat_to_watch"&&(f=_.xI().getFlag(186),r.inlineSettingStatus=f?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.l.getRequestConfig=function(r,f){f=f===void 0?{}:f;var I={};if(r=this.JSC$11814_getStoreKey(r,f))I.storeStrategy={storeKey:r,disableCache:f.disableCache};_.N("web_log_browse_ticks_ks")||(I.requestTick="br_s",I.responseTick="br_r");return I};var tT=function(){};
_.t(tT,aO);tT.prototype.getApiPaths=function(){return AKB};
tT.prototype.getExtension=function(r){return _.F(r,$KC)};
tT.prototype.JSC$11807_buildRequest=function(r,f,I){r.legacyYoutubeChannelUsername=I.legacyYouTubeChannelUsername||"";r.legacyYoutubeChannelPassword=I.legacyYouTubeChannelPassword||""};var Tr=function(){};
_.t(Tr,aO);Tr.prototype.getApiPaths=function(){return rW3};
Tr.prototype.getExtension=function(r){return _.F(r,pY4)};
Tr.prototype.JSC$11807_buildRequest=function(r,f,I){I.recaptcha_response_token&&(r.recaptchaResponseToken=I.recaptcha_response_token);I.channel_id&&(r.channelId=I.channel_id)};var cp=function(){};
_.t(cp,aO);cp.prototype.getApiPaths=function(){return wHD};
cp.prototype.getExtension=function(r){return _.F(r,aR3)};
cp.prototype.JSC$11807_buildRequest=function(r,f,I){f.externalChannelId&&(r.externalChannelId=f.externalChannelId);I.handle&&(r.handleUpdate={handle:I.handle},f.handleEditSource&&(r.handleUpdate.handleEditSource=f.handleEditSource))};var Wp=function(){};
_.t(Wp,aO);Wp.prototype.getApiPaths=function(){return dM8};
Wp.prototype.getExtension=function(r){return _.F(r,jFg)};
Wp.prototype.JSC$11807_buildRequest=function(r,f,I){f.request&&(r.channelId=f.request.channelId);var C;if(I==null?0:(C=I.uploadDefaults)==null?0:C.emojiReactionSet)r.uploadDefaultsRequest||(r.uploadDefaultsRequest={}),r.uploadDefaultsRequest.emojiReactionSet=I.uploadDefaults.emojiReactionSet};var L0=function(){};
_.t(L0,aO);L0.prototype.getApiPaths=function(){return gGB};
L0.prototype.getExtension=function(r){return _.F(r,n2s)};
L0.prototype.JSC$11807_buildRequest=function(r,f,I){f.externalChannelId&&(r.externalChannelId=f.externalChannelId);f.channelHandleEntityKey&&(r.channelHandleEntityKey=f.channelHandleEntityKey);f.handleEditSource&&(r.handleEditSource=f.handleEditSource);I.handle?r.handle=I.handle:I.name&&(r.name=I.name)};var mL=function(){};
_.t(mL,aO);mL.prototype.getApiPaths=function(){return kws};
mL.prototype.getExtension=function(r){return _.F(r,Olg)};
mL.prototype.JSC$11807_buildRequest=function(r,f){f.actions?r.actions=f.actions:f.action&&(r.actions=[f.action])};var eL=function(){};
_.t(eL,aO);eL.prototype.getApiPaths=function(){return BQs};
eL.prototype.getExtension=function(r){return _.F(r,_.$Z)};
eL.prototype.JSC$11807_buildRequest=function(r,f){f.token&&(r.continuation=f.token)};var JT=function(){};
_.t(JT,aO);JT.prototype.getApiPaths=function(){return Fug};
JT.prototype.getExtension=function(r){return _.F(r,_.$Z)};
JT.prototype.JSC$11807_buildRequest=function(r,f){r.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";f.token&&(r.fetchCommentsParams={continuation:f.token})};var jL=function(){};
_.t(jL,aO);jL.prototype.getApiPaths=function(){return fH4};
jL.prototype.getExtension=function(r){return _.F(r,sxB)};
jL.prototype.JSC$11807_buildRequest=function(r,f,I){I=I===void 0?{}:I;f.createReplyParams&&(r.createReplyParams=f.createReplyParams);f.commentText&&(r.commentText=_.Rr(f.commentText));I.comment_text&&(r.commentText=I.comment_text);I.image_blob_id&&(r.imageAttachment={encryptedBlobId:I.image_blob_id});I.botguard_response&&(r.botguardResponse=I.botguard_response)};
_.OC.Object.defineProperties(jL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Hp=function(){};
_.t(Hp,aO);Hp.prototype.getApiPaths=function(){return IH_};
Hp.prototype.getExtension=function(r){return _.F(r,_.RbV)};
Hp.prototype.JSC$11807_buildRequest=function(r,f,I){I=I===void 0?{}:I;f.createCommentParams&&(r.createCommentParams=f.createCommentParams);f.commentText&&(r.commentText=_.Rr(f.commentText));f.videoPositionMention&&(r.videoPositionMention=f.videoPositionMention);f.sources&&(r.sources=f.sources);I.comment_text&&(r.commentText=I.comment_text);I.attached_video_id?r.videoAttachment={videoId:I.attached_video_id}:I.poll_options?r.pollAttachment={choices:I.poll_options}:I.image_blob_id?r.imageAttachment=
{encryptedBlobId:I.image_blob_id}:I.shared_post_id&&(r.sharedPostAttachment={postId:I.shared_post_id});I.access_restrictions&&typeof I.access_restrictions==="number"&&(f=I.access_restrictions,r.accessRestrictions={restriction:f!==1&&f===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});I.botguard_response&&(r.botguardResponse=I.botguard_response)};
_.OC.Object.defineProperties(Hp.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var iq=function(){};
_.t(iq,aO);iq.prototype.getApiPaths=function(){return bYB};
iq.prototype.getExtension=function(r){return _.F(r,Qxg)};
iq.prototype.JSC$11807_buildRequest=function(r,f,I){f.commentText&&(r.replyText=_.Rr(f.commentText));I.comment_text&&(r.replyText=I.comment_text);r.updateReplyParams=f.updateReplyParams};
_.OC.Object.defineProperties(iq.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var RT=function(){};
_.t(RT,aO);RT.prototype.getApiPaths=function(){return pHB};
RT.prototype.getExtension=function(r){return _.F(r,o$3)};
RT.prototype.JSC$11807_buildRequest=function(r,f,I){f.commentText&&(r.commentText=_.Rr(f.commentText));I.comment_text&&(r.commentText=I.comment_text);r.updateCommentParams=f.updateCommentParams};
_.OC.Object.defineProperties(RT.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var vp=function(){};
_.t(vp,aO);vp.prototype.getApiPaths=function(){return nG3};
vp.prototype.getExtension=function(r){return _.F(r,LYC)};
vp.prototype.JSC$11807_buildRequest=function(r,f){f.settings&&(r.settings=f.settings)};var K0=function(){};
_.t(K0,aO);K0.prototype.getApiPaths=function(){return zVT};
K0.prototype.getExtension=function(r){return _.F(r,dBX)};
K0.prototype.JSC$11807_buildRequest=function(r,f){f.channelCreationToken&&(r.channelCreationToken=f.channelCreationToken);f.source&&(r.source=f.source)};var y7=function(){};
_.t(y7,aO);y7.prototype.getApiPaths=function(){return ri4};
y7.prototype.getExtension=function(r){return _.F(r,g2q)};
y7.prototype.JSC$11807_buildRequest=function(r,f,I){I=I===void 0?{}:I;if(I.name&&(I.given_name||I.family_name))r=new _.nf("channel creation cannot set both GAIA and YouTube names",f),_.Fo(r);else{if(f.zeroStepChannelCreationParams){if(!I.comment_text){r=new _.nf("zero_step_create_comment_params but no zero_step_texts",f);_.Fo(r);return}r.zeroStepChannelCreationParams=f.zeroStepChannelCreationParams;r.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(r.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
I.comment_text,I.botguard_response&&(r.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=I.botguard_response))}r.channelCreationToken=f.channelCreationToken;I.given_name&&(r.givenName=I.given_name);I.family_name&&(r.familyName=I.family_name);f.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(r.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(I.name||I.handle||I.avatar_url||I.encryptedBlobId||I.isNameChanged!==void 0||I.isHandleChanged!==void 0||I.isDefaultProfilePhoto!==
void 0||I.obakeImageSource)r.overrideChannelCreationParams={},I.name&&(r.overrideChannelCreationParams.name=I.name),I.handle&&(r.overrideChannelCreationParams.handle=I.handle),I.avatar_url&&(r.overrideChannelCreationParams.avatarUrl=I.avatar_url),I.encryptedBlobId&&(r.overrideChannelCreationParams.blobEncryptionId=I.encryptedBlobId),I.enableIdentityForAllChannelCreationDialog&&(I.encryptedBlobId?r.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
I.isDefaultProfilePhoto!==void 0&&(r.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=I.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),I.isNameChanged!==void 0&&(r.overrideChannelCreationParams.identityForAllChannelCreationNameTag=I.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),I.isHandleChanged!==
void 0&&(r.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=I.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),I.obakeImageSource&&(r.overrideChannelCreationParams.obakeImageSourceType=I.obakeImageSource))}};var U8=function(){};
_.t(U8,aO);U8.prototype.getApiPaths=function(r){return(r=this.getExtension(r))&&r.status==="DISLIKE"?xzB:r&&r.status==="INDIFFERENT"?kJT:RV3};
U8.prototype.getExtension=function(r){return _.F(r,_.yU)};
U8.prototype.JSC$11807_buildRequest=function(r,f){f.target&&(r.target=f.target);if(f=this.getParams(f))r.params=f};
U8.prototype.getParams=function(r){switch(r==null?void 0:r.status){case "DISLIKE":return r.dislikeParams;case "INDIFFERENT":return r.removeLikeParams;default:return r==null?void 0:r.likeParams}};var s8=function(){};
_.t(s8,aO);s8.prototype.getApiPaths=function(){return lLX};
s8.prototype.getExtension=function(r){return _.F(r,qw8)};
s8.prototype.JSC$11807_buildRequest=function(r,f){f.settingItemId&&(r.settingItemId=f.settingItemId);f.stringValue!=null&&f.stringValue!==void 0?r.newValue={stringValue:f.stringValue}:f.intValue?r.newValue={intValue:f.intValue}:f.boolValue!==null&&f.boolValue!==void 0?r.newValue={boolValue:f.boolValue}:(r=new _.nf("Unknown value type for SetSettingEndpoint.",f),_.Fo(r))};var O8=function(){};
_.t(O8,aO);O8.prototype.getApiPaths=function(){return EGD};
O8.prototype.getExtension=function(r){return _.F(r,nP3)||void 0};
O8.prototype.JSC$11807_buildRequest=function(r,f,I){I=I===void 0?{}:I;f.channelIds&&(r.channelIds=f.channelIds);f.siloName&&(r.siloName=f.siloName);f.params&&(r.params=f.params);I.botguardResponse&&(r.botguardResponse=I.botguardResponse);I.feature&&(r.clientFeature=I.feature)};
_.OC.Object.defineProperties(O8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var oT=function(){};
_.t(oT,aO);oT.prototype.getApiPaths=function(){return xM3};
oT.prototype.getExtension=function(r){return _.F(r,uDV)||void 0};
oT.prototype.JSC$11807_buildRequest=function(r,f){f.channelIds&&(r.channelIds=f.channelIds);f.siloName&&(r.siloName=f.siloName);f.params&&(r.params=f.params)};
_.OC.Object.defineProperties(oT.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Q7=function(r){this.shareClientParamsProvider=r};
_.t(Q7,aO);Q7.prototype.getApiPaths=function(){return ci3};
Q7.prototype.getExtension=function(r){return _.F(r,Fm3)||_.F(r,_.PCC)||_.F(r,$XU)};
Q7.prototype.JSC$11807_buildRequest=function(r,f){f.serializedShareEntity&&(r.serializedSharedEntity=f.serializedShareEntity);if(f.clientParamIdentifier){var I;if((I=this.shareClientParamsProvider)==null?0:I.clientParams.has(f.clientParamIdentifier)){I=this.shareClientParamsProvider;f=f.clientParamIdentifier;var C=I.clientParams.get(f);C&&I.clientParams.delete(f);r.clientParams=C}}};
Q7[ZB]=[LzT];var AT=function(){};
_.t(AT,aO);AT.prototype.getApiPaths=function(){return OhB};
AT.prototype.getExtension=function(r){return _.F(r,JAs)};
AT.prototype.JSC$11807_buildRequest=function(r,f){f.params&&(r.params=f.params)};var Za=function(){};
_.t(Za,aO);Za.prototype.getApiPaths=function(){return hVD};
Za.prototype.getExtension=function(r){return _.F(r,LT4)};
Za.prototype.JSC$11807_buildRequest=function(r,f){f.dismissal&&(r.items=[f.dismissal])};
_.OC.Object.defineProperties(Za.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Gr=function(){};
_.t(Gr,aO);Gr.prototype.getApiPaths=function(){return HT4};
Gr.prototype.getExtension=function(r){return _.F(r,_.LG)||void 0};
Gr.prototype.JSC$11807_buildRequest=function(r,f,I){r.feedbackTokens=[];f.feedbackToken&&r.feedbackTokens.push(f.feedbackToken);if(f=f.cpn||I.cpn)r.feedbackContext={cpn:f};r.isFeedbackTokenUnencrypted=!!I.is_feedback_token_unencrypted;r.shouldMerge=!1;I.extra_feedback_tokens&&(r.shouldMerge=!0,r.feedbackTokens=r.feedbackTokens.concat(I.extra_feedback_tokens))};
_.OC.Object.defineProperties(Gr.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var kF=function(){};
_.t(kF,aO);kF.prototype.getApiPaths=function(){return HT4};
kF.prototype.getExtension=function(r){return _.F(r,_.YI)};
kF.prototype.JSC$11807_buildRequest=function(r,f,I){I.feedback_tokens&&(r.feedbackTokens=I.feedback_tokens,r.shouldMerge=!0)};
_.OC.Object.defineProperties(kF.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Bp=function(){};
_.t(Bp,aO);Bp.prototype.getApiPaths=function(){return HT4};
Bp.prototype.getExtension=function(r){return _.F(r,t0K)};
Bp.prototype.JSC$11807_buildRequest=function(r,f){f.undoToken&&(r.feedbackTokens=[f.undoToken]);f.isUndoTokenUnencrypted&&(r.isFeedbackTokenUnencrypted=f.isUndoTokenUnencrypted)};
_.OC.Object.defineProperties(Bp.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ql=function(){};
_.t(ql,aO);ql.prototype.getApiPaths=function(){return aL3};
ql.prototype.getExtension=function(r){return _.F(r,TiC)};
ql.prototype.JSC$11807_buildRequest=function(r,f){f.nextEndpoint&&_.F(f.nextEndpoint,_.HR)?r.nextEndpoint={urlEndpoint:_.F(f.nextEndpoint,_.HR)}:f.nextEndpoint&&_.F(f.nextEndpoint,_.vj)&&(r.nextEndpoint={watchEndpoint:_.F(f.nextEndpoint,_.vj)});f.setRacy&&(r.setRacy=f.setRacy);f.setControvercy&&(r.setControvercy=f.setControvercy)};var uq=function(r){this.JSC$15575_storeWithEntities=r};
_.t(uq,aO);uq.prototype.getApiPaths=function(){return bTs};
uq.prototype.getExtension=function(r){return _.F(r,qUV)};
uq.prototype.JSC$11807_buildRequest=function(r,f){f.flowId&&(r.flowId=f.flowId);f.targetId&&(r.targetId=f.targetId);f.continuation&&(r.continuation=f.continuation);var I=f.flowStateEntityKey;if(f.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&I&&this.JSC$15575_storeWithEntities){var C;if(f=(C=this.JSC$15575_storeWithEntities.getState())==null?void 0:C.entities)if(C=_.qo(I).entityType,C=_.f2(f,C,I))r.flowState=C,r.flowStateEntityKey=I}};
_.OC.Object.defineProperties(uq.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
uq[ZB]=[Ed];var ld6=function(){};
_.t(ld6,aO);_.l=ld6.prototype;_.l.getApiPaths=function(){return jO_};
_.l.JSC$11814_getStoreKey=function(){return _.Ro("guide")};
_.l.getRequestConfig=function(){var r=this.JSC$11814_getStoreKey(),f;r&&(f={storeStrategy:{storeKey:r}});return f};
_.l.isNavigationCommand=function(){return!0};
_.l.getExtension=function(r){return _.F(r,_.YI)};
_.l.JSC$11807_buildRequest=function(r){r.fetchLiveState=!0};var Da=function(){};
_.t(Da,aO);Da.prototype.getApiPaths=function(){return Zh8};
Da.prototype.getExtension=function(r){return _.F(r,jE8)};
Da.prototype.JSC$11807_buildRequest=function(){};var r7=function(){};
_.t(r7,aO);r7.prototype.getApiPaths=function(){return Gw3};
r7.prototype.getExtension=function(r){return _.F(r,H7q)};
r7.prototype.JSC$11807_buildRequest=function(){};var fM=function(){};
_.t(fM,aO);fM.prototype.getApiPaths=function(){return s_C};
fM.prototype.getExtension=function(r){return _.F(r,_.$Z)};
fM.prototype.JSC$11807_buildRequest=function(r,f){f.token&&(r.continuation=f.token);var I,C;r==null||(I=r.context)==null||(C=I.user)==null||delete C.onBehalfOfUser};
fM.prototype.getRequestConfig=function(r){var f={},I;if(((I=this.getExtension(r))==null?void 0:I.sessionIndex)!==void 0){var C;f={authStrategy:{sessionIndex:(C=this.getExtension(r))==null?void 0:C.sessionIndex}}}return f};var If=function(){};
_.t(If,aO);If.prototype.JSC$11807_getRequest=function(r){var f=this.getExtension(r),I=r="";if(f==null?0:f.popup)r="true";if(f==null?0:f.disableSignout)I="true";f={};return{input:"/getAccountSwitcherEndpoint",requestShell:iy("/getAccountSwitcherEndpoint","GET",(f["X-YouTube-Delegation-Context"]=_.Lz("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),f["X-YouTube-Account-Switcher-Popup"]=r,f["X-YouTube-Account-Switcher-Disable-Signout"]=I,f)),innerTubeRequest:{}}};
If.prototype.getApiPaths=function(){return[]};
If.prototype.getExtension=function(r){return _.F(r,_.i0B)};
If.prototype.JSC$11807_buildRequest=function(){};var CM=function(){};
_.t(CM,aO);CM.prototype.JSC$11807_getRequest=function(r){var f="/cross_account_channel_transfer";(r=this.getExtension(r))&&(f=Tbc(f,{target_session:r.targetSessionIndex,source_rapt:r.sourceRapt,rapt:r.targetRapt}));return{input:f,requestShell:iy(f,"GET"),innerTubeRequest:{}}};
CM.prototype.getApiPaths=function(){return[]};
CM.prototype.getExtension=function(r){return _.F(r,HDX)};
CM.prototype.JSC$11807_buildRequest=function(){};var ls=function(){};
_.t(ls,aO);ls.prototype.getApiPaths=function(){return p2q};
ls.prototype.isNavigationCommand=function(){return!0};
ls.prototype.getExtension=function(r){return _.F(r,_.YI)};
ls.prototype.JSC$11807_buildRequest=function(r){var f=_.xI().get("gsml","");f&&(r.safetyModeLockerObfuscatedGaiaId=f);r.userInterfaceTheme=_.Pt(!0);_.tN()?r.deviceTheme="DEVICE_THEME_SELECTED":_.cWE()?r.deviceTheme="DEVICE_THEME_SUPPORTED":r.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var VI=function(){};
_.t(VI,aO);VI.prototype.getApiPaths=function(){return s_C};
VI.prototype.getExtension=function(r){return _.F(r,iD3)};
VI.prototype.JSC$11807_buildRequest=function(r,f){if(f&&f.requestType&&(r.requestType=f.requestType,f.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||f.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var I=f.nextUrl;I&&(_.WFK(I)||QM(I))&&(r.nextNavendpoint={urlEndpoint:{url:I}})}f&&f.channelSwitcherQuery&&(r.channelSwitcherQuery=f.channelSwitcherQuery);f&&f.triggerChannelCreation&&(r.triggerChannelCreation=f.triggerChannelCreation);var C;if(f==null?0:(C=f.contentOwnerConfig)==
null?0:C.externalContentOwnerId)r.contentOwnerConfig=f.contentOwnerConfig;r.callCircumstance=f&&f.requestType&&f.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var Y,V;f=r==null?void 0:(Y=r.context)==null?void 0:(V=Y.user)==null?void 0:V.onBehalfOfUser;if(f!==void 0){r.obfuscatedSelectedGaiaId=f;var S,h;r==null||(S=r.context)==null||(h=S.user)==null||delete h.onBehalfOfUser}var w,n;if(Y=r==null?void 0:(w=r.context)==null?void 0:(n=w.user)==null?
void 0:n.serializedDelegationContext)r.selectedSerializedDelegationContext=Y};var nM=function(){};
_.t(nM,aO);nM.prototype.getApiPaths=function(){return TJ4};
nM.prototype.getExtension=function(r){return _.F(r,m2T)};
nM.prototype.JSC$11807_buildRequest=function(r,f){f.profileOwnerExternalChannelId&&(r.profileOwnerExternalChannelId=f.profileOwnerExternalChannelId);f.profileCardContext&&(r.profileCardContext=f.profileCardContext)};var d7=function(){};
_.t(d7,aO);d7.prototype.getApiPaths=function(){return oJ3};
d7.prototype.getExtension=function(r){return _.F(r,trD)};
d7.prototype.JSC$11807_buildRequest=function(r,f){f.params&&(r.params=f.params)};var zG=function(){};
_.t(zG,aO);zG.prototype.getApiPaths=function(){return Dbq};
zG.prototype.getExtension=function(r){return _.F(r,_.ykB)};
zG.prototype.JSC$11807_buildRequest=function(r,f){if(f=f.createBroadcastRequest)r.useMasks=f.useMasks,r.broadcastType=f.broadcastType,r.broadcastSource=f.broadcastSource,r.broadcastMetadata=f.broadcastMetadata,r.broadcastMetadataMask=f.broadcastMetadataMask,r.videoMetadata=f.videoMetadata,r.videoMetadataMask=f.videoMetadataMask,r.liveChatSettingsUpdate=f.liveChatSettingsUpdate,r.liveChatSettingsUpdateMask=f.liveChatSettingsUpdateMask,r.cloneVideoId=f.cloneVideoId,r.cloneWithOverrides=f.cloneWithOverrides,
r.targetEntity=f.targetEntity,r.scheduledRedirectMetadata=f.scheduledRedirectMetadata};var M$=function(){};
_.t(M$,aO);M$.prototype.getApiPaths=function(){return CnT};
M$.prototype.getExtension=function(r){return _.F(r,UJT)};
M$.prototype.JSC$11807_buildRequest=function(r,f,I){I=I===void 0?{}:I;f.params&&(r.params=f.params);I.questionText&&(r.questionText=I.questionText);I.optionText&&I.optionText.length>0&&(r.optionText=I.optionText)};var g7=function(){};
_.t(g7,aO);g7.prototype.getApiPaths=function(){return VpD};
g7.prototype.getExtension=function(r){return _.F(r,Kl_)};
g7.prototype.JSC$11807_buildRequest=function(r,f){f.params&&(r.params=f.params)};var af=function(){};
_.t(af,aO);af.prototype.getApiPaths=function(){return gn4};
af.prototype.getExtension=function(r){return _.F(r,H$X)};
af.prototype.JSC$11807_buildRequest=function(r,f){f.params&&(r.params=f.params)};var Xw=function(){};
_.t(Xw,aO);Xw.prototype.getApiPaths=function(){return X2B};
Xw.prototype.getExtension=function(r){return _.F(r,i$3)};
Xw.prototype.JSC$11807_buildRequest=function(r,f,I){f.params&&(r.params=f.params);f.continuation&&(r.continuation=f.continuation);I.currentPlayerState&&I.currentPlayerState.playerOffsetMs&&(r.currentPlayerState={playerOffsetMs:I.currentPlayerState.playerOffsetMs.toString()})};var N$=function(){};
_.t(N$,aO);N$.prototype.getApiPaths=function(){return NJ_};
N$.prototype.getExtension=function(r){return _.F(r,jH_)};
N$.prototype.JSC$11807_buildRequest=function(r,f,I){f.params&&(r.params=f.params);I.continuation&&(r.continuation=I.continuation);"hidden"in I&&(r.webClientInfo={isDocumentHidden:I.hidden});I.isInvalidationTimeoutRequest&&(r.isInvalidationTimeoutRequest=I.isInvalidationTimeoutRequest);I.invalidationPayload&&(f=JB8(_.MT(An(I.invalidationPayload))),r.invalidationPayloadLastPublishAtUsec=WM(f,2));I.reloadActionPanel&&(r.reloadActionPanel=I.reloadActionPanel);I.fullReload&&(r.fullReload=I.fullReload);
I.currentPlayerState&&(r.currentPlayerState=I.currentPlayerState)};var $T=function(){};
_.t($T,aO);$T.prototype.getApiPaths=function(){return vng};
$T.prototype.getExtension=function(r){return _.F(r,yBq)};
$T.prototype.JSC$11807_buildRequest=function(r,f){r.params=f.params};var Fw=function(){};
_.t(Fw,aO);Fw.prototype.getApiPaths=function(){return aH3};
Fw.prototype.getExtension=function(r){return _.F(r,sG_)};
Fw.prototype.JSC$11807_buildRequest=function(r,f){f.params&&(r.params=f.params)};var P5=function(){};
_.t(P5,aO);P5.prototype.getApiPaths=function(){return $zC};
P5.prototype.getExtension=function(r){return _.F(r,O6V)};
P5.prototype.JSC$11807_buildRequest=function(r,f){f.params&&(r.params=f.params)};var tp=function(){};
_.t(tp,aO);tp.prototype.getApiPaths=function(){return Kuq};
tp.prototype.getExtension=function(r){return _.F(r,sHX)};
tp.prototype.JSC$11807_buildRequest=function(r,f){f.params&&(r.params=f.params)};var TG=function(){};
_.t(TG,aO);TG.prototype.getApiPaths=function(){return UzV};
TG.prototype.getExtension=function(r){return _.F(r,O$T)};
TG.prototype.JSC$11807_buildRequest=function(r,f){f.params&&(r.params=f.params)};var c5=function(){};
_.t(c5,aO);c5.prototype.getApiPaths=function(){return BJ8};
c5.prototype.getExtension=function(r){return _.F(r,Wm3)};
c5.prototype.JSC$11807_buildRequest=function(r,f){f.params&&(r.params=f.params)};var W5=function(){};
_.t(W5,aO);W5.prototype.getApiPaths=function(){return CQD};
W5.prototype.getExtension=function(r){return _.F(r,_.oc3)};
W5.prototype.JSC$11807_buildRequest=function(r,f,I){I=I===void 0?{}:I;f.params&&(r.params=f.params);I.client_message_id&&(r.clientMessageId=I.client_message_id);I.recaptcha_token&&(r.recaptchaToken=I.recaptcha_token);I.rich_message&&I.rich_message.text_segments?(f=I.rich_message.text_segments.map(function(C){var Y={};C.text&&(Y.text=C.text);C.emoji_id&&(Y.emojiId=C.emoji_id);return Y}),r.richMessage={textSegments:f}):I.message&&(r.message=I.message);
I.currentPlayerState&&(r.currentPlayerState=I.currentPlayerState)};var LM=function(){};
_.t(LM,aO);LM.prototype.getApiPaths=function(){return YS4};
LM.prototype.getExtension=function(r){return _.F(r,QHX)};
LM.prototype.JSC$11807_buildRequest=function(r,f){f.params&&(r.params=f.params)};var mS=function(){};
_.t(mS,aO);mS.prototype.getApiPaths=function(){return SSX};
mS.prototype.getExtension=function(r){return _.F(r,Z$_)};
mS.prototype.JSC$11807_buildRequest=function(r,f,I){f.isUserInitiated&&(r.isUserInitiated=f.isUserInitiated);f.initiationSource&&(r.initiationSource=f.initiationSource);I.locationInfo&&(r.context.client.locationInfo=I.locationInfo)};var eG=function(){};
_.t(eG,aO);eG.prototype.getApiPaths=function(){return yi8};
eG.prototype.getExtension=function(r){return _.F(r,Urs)};
eG.prototype.JSC$11807_buildRequest=function(r,f,I){f.metadataUpdateRequest&&(f=f.metadataUpdateRequest,r.encryptedVideoId=f.encryptedVideoId,f.liveChat&&(f=f.liveChat,r.liveChat||(r.liveChat={}),f.performAsExternalChannelId&&(r.liveChat.performAsExternalChannelId=f.performAsExternalChannelId),f.source&&(r.liveChat.source=f.source)));var C;if(I==null?0:(C=I.liveChat)==null?0:C.liveChatSettings)r.liveChat||(r.liveChat={}),I=I.liveChat.liveChatSettings,r.liveChat.newLiveChatSettings=I,r.liveChat.newLiveChatSettingsMask||
(r.liveChat.newLiveChatSettingsMask={}),I.emojiReactionSet&&(r.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var Jp=function(){};
_.t(Jp,aO);Jp.prototype.getApiPaths=function(){return MWs};
Jp.prototype.getExtension=function(r){return _.F(r,_.DhV)};
Jp.prototype.JSC$11807_buildRequest=function(r,f,I){I.continuation?r.continuation=I.continuation:f.videoId&&(r.videoId=f.videoId);I.clientParams&&(r.clientParams=I.clientParams)};var jG=function(){};
_.t(jG,aO);jG.prototype.getApiPaths=function(){return Fug};
jG.prototype.getExtension=function(r){return _.F(r,_.tL)};
jG.prototype.JSC$11807_buildRequest=function(r,f){r.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";r.fetchCommentsParams={};f.videoId&&(r.fetchCommentsParams.encryptedVideoId=f.videoId);f.postId&&(r.fetchCommentsParams.postId=f.postId);f.externalChannelId&&(r.fetchCommentsParams.externalChannelId=f.externalChannelId);f.linkedCommentId&&(r.fetchCommentsParams.linkedCommentId=f.linkedCommentId);(0,_.X0.isEmpty)(r.fetchCommentsParams)&&delete r.fetchCommentsParams};var H5=function(){};
_.t(H5,aO);H5.prototype.getApiPaths=function(){return u1};
H5.prototype.JSC$11807_buildRequest=function(r){r.browseId="FEnotifications_inbox"};
H5.prototype.getExtension=function(r){return _.F(r,_.YI)};var is=function(){};
_.t(is,aO);is.prototype.getApiPaths=function(){return Fug};
is.prototype.JSC$11807_buildRequest=function(r,f){f.signal==="GET_NOTIFICATIONS_MENU"&&(r.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");f.ctoken&&(r.ctoken=f.ctoken)};
var VKs=function(){};
_.t(VKs,is);VKs.prototype.getExtension=function(r){return _.F(r,_.YI)};
var Eq3=function(){};
_.t(Eq3,is);Eq3.prototype.getExtension=function(r){return _.F(r,FT8)};var Rf=function(){};
_.t(Rf,aO);Rf.prototype.getApiPaths=function(){return mz4};
Rf.prototype.getExtension=function(r){return _.F(r,_.YI)};
Rf.prototype.JSC$11807_buildRequest=function(){};var v5=function(){};
_.t(v5,aO);v5.prototype.getApiPaths=function(){return sOg};
v5.prototype.getExtension=function(r){return _.F(r,GK8)||void 0};
v5.prototype.JSC$11807_buildRequest=function(r,f){f.params&&(r.params=f.params);f.secondaryParams&&(r.secondaryParams=f.secondaryParams)};var KM=function(){};
_.t(KM,aO);KM.prototype.getApiPaths=function(){return OT4};
KM.prototype.getExtension=function(r){return _.F(r,T8X)};
KM.prototype.JSC$11807_buildRequest=function(r,f){f.undo&&(r.undo=f.undo);f.serializedOptOut&&(r.serializedOptOut=f.serializedOptOut);f.serializedRecordInteractionsRequest&&(r.serializedRecordInteractionsRequest=f.serializedRecordInteractionsRequest)};var yI=function(){};
_.t(yI,aO);yI.prototype.getApiPaths=function(){return AiB};
yI.prototype.getExtension=function(r){return _.F(r,ch_)};
yI.prototype.JSC$11807_buildRequest=function(r,f){f.serializedInteractionsRequest&&(r.serializedRecordNotificationInteractionsRequest=f.serializedInteractionsRequest)};var Uc=function(){};
_.t(Uc,aO);Uc.prototype.getApiPaths=function(){return DRu};
Uc.prototype.getExtension=function(r){return _.F(r,oFu)};
Uc.prototype.JSC$11807_buildRequest=function(r,f,I){f=f===void 0?{}:f;I=I===void 0?{}:I;f.videoId?r.videoId=f.videoId:f.playlistId&&(r.playlistId=f.playlistId);var C,Y=(C=f.offlineWebClientEligibility)!=null?C:I.offlineWebClientEligibility;Y&&(r.offlineWebClientEligibility=Y);var V;if(C=(V=f.preferredFormatType)!=null?V:I.preferredFormatType)r.preferredFormatType=C;var S;if(V=(S=f.lastOfflineQualitySettingsSavedMs)!=null?S:I.lastOfflineQualitySettingsSavedMs)r.lastOfflineQualitySettingsSavedMs=V;
f.params&&(r.params=f.params)};var sc=function(){};
_.t(sc,aO);sc.prototype.getApiPaths=function(){return Ow};
sc.prototype.getExtension=function(r){return _.F(r,_.$Z)};
sc.prototype.JSC$11807_buildRequest=function(r,f,I){I=I===void 0?{}:I;f.token&&(r.continuation=f.token);I.formData&&(r.formData=I.formData)};var Oc=function(){};
_.t(Oc,aO);Oc.prototype.getApiPaths=function(){return Ow};
Oc.prototype.getExtension=function(r){return _.F(r,HVV)};
Oc.prototype.JSC$11807_buildRequest=function(r,f,I){I=I===void 0?{}:I;r.continuation=I.continuation};var of=function(){};
_.t(of,aO);of.prototype.getApiPaths=function(){return Ow};
of.prototype.getExtension=function(r){return _.F(r,_.Wa)};
of.prototype.JSC$11807_buildRequest=function(r,f){var I,C=f.panelIdentifier||((I=f.identifier)==null?void 0:I.tag);C&&(r.panelId=C);var Y;if((Y=f.globalConfiguration)==null?0:Y.params){var V;r.params=(V=f.globalConfiguration)==null?void 0:V.params}};
_.OC.Object.defineProperties(of.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var QI=function(){};
_.t(QI,aO);QI.prototype.getApiPaths=function(){return Ow};
QI.prototype.getExtension=function(r){return _.F(r,z6s)};
QI.prototype.JSC$11807_buildRequest=function(r,f){f.panelLoadingStrategy&&ZrK(r,f.panelLoadingStrategy)};var Ap=function(){};
_.t(Ap,aO);Ap.prototype.getApiPaths=function(){return Ow};
Ap.prototype.getExtension=function(r){return _.F(r,KmU)};
Ap.prototype.JSC$11807_buildRequest=function(r,f){f.loadingStrategy&&ZrK(r,f.loadingStrategy)};var Zr=function(){};
_.t(Zr,aO);Zr.prototype.getApiPaths=function(){return Ow};
Zr.prototype.getExtension=function(r){return _.F(r,_.wu)};
Zr.prototype.JSC$11807_buildRequest=function(r,f){f.panelLoadingStrategy&&ZrK(r,f.panelLoadingStrategy)};var GG=function(){};
_.t(GG,aO);GG.prototype.getApiPaths=function(){return Ow};
GG.prototype.getExtension=function(r){return _.F(r,yh_)};
GG.prototype.JSC$11807_buildRequest=function(r,f){var I,C=(I=f.contentSourcePanelIdentifier)==null?void 0:I.tag;C&&(r.panelId=C);var Y;if((Y=f.globalConfiguration)==null?0:Y.params){var V;r.params=(V=f.globalConfiguration)==null?void 0:V.params}};var kT=function(){};
_.t(kT,aO);kT.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
kT.prototype.getExtension=function(r){return _.F(r,UX4)};
kT.prototype.JSC$11807_buildRequest=function(r,f){f.params&&(r.params=f.params)};var B5=function(){};
_.t(B5,aO);B5.prototype.getApiPaths=function(){return zIT};
B5.prototype.getExtension=function(r){return _.F(r,o34)};
B5.prototype.JSC$11807_buildRequest=function(r,f){f.externalChannelId&&(r.externalChannelId=f.externalChannelId);f.superChatAction&&(r.superChatAction=f.superChatAction);f.superStickersAction&&(r.superStickersAction=f.superStickersAction)};var q$=function(){};
_.t(q$,aO);q$.prototype.getApiPaths=function(){return nnU};
q$.prototype.getExtension=function(r){return _.F(r,JPg)||_.F(r,ATu)};
q$.prototype.JSC$11807_buildRequest=function(r,f){f.videoIds?r.videoIds=f.videoIds:f.videoId&&(r.videoIds=[f.videoId]);f.playlistId&&(r.playlistId=f.playlistId);f.params&&(r.params=f.params);r.excludeWatchLater=!1};var us=function(){};
_.t(us,aO);us.prototype.getApiPaths=function(){return Yf_};
us.prototype.getExtension=function(r){return _.F(r,_.JL)};
us.prototype.JSC$11807_buildRequest=function(r,f,I){I.create_playlist_title?r.title=I.create_playlist_title:f.title&&(r.title=f.title);if(I.create_playlist_privacy_status&&typeof I.create_playlist_privacy_status==="number"){a:{var C=I.create_playlist_privacy_status;if(C!==0){if(C===1){C="PUBLIC";break a}if(C===2){C="UNLISTED";break a}}C="PRIVATE"}r.privacyStatus=C}else f.privacyStatus&&(r.privacyStatus=f.privacyStatus);I.create_playlist_description&&(r.description=I.create_playlist_description);f.videoIds&&
(r.videoIds=f.videoIds);f.params&&(r.params=f.params);f.sourcePlaylistId&&(r.sourcePlaylistId=f.sourcePlaylistId)};var Dr=function(){};
_.t(Dr,aO);Dr.prototype.getApiPaths=function(){return EnC};
Dr.prototype.getExtension=function(r){return _.F(r,ALD)};
Dr.prototype.JSC$11807_buildRequest=function(r,f){r.playlistId=f.playlistId};var r9=function(){};
_.t(r9,aO);r9.prototype.getApiPaths=function(){return PnU};
r9.prototype.getExtension=function(r){return _.F(r,XKC)};
r9.prototype.JSC$11807_buildRequest=function(r,f){f.playlistId&&(r.playlistId=f.playlistId);f.params&&(r.params=f.params)};var fL=function(){};
_.t(fL,aO);fL.prototype.getApiPaths=function(){return QOV};
fL.prototype.getExtension=function(r){return _.F(r,_.TK)||void 0};
fL.prototype.JSC$11807_buildRequest=function(r,f){f.actions&&(r.actions=f.actions);f.params&&(r.params=f.params);f.playlistId&&(r.playlistId=f.playlistId)};var I0=function(){};
_.t(I0,aO);_.l=I0.prototype;_.l.getApiPaths=function(){return ZT3};
_.l.getExtension=function(r){return _.F(r,_.xO)};
_.l.JSC$11807_buildRequest=function(r,f){f.videoId&&(r.playerRequest={videoId:f.videoId},f.playerParams&&(r.playerRequest.params=f.playerParams),f.racyCheckOk&&(r.playerRequest.racyCheckOk=!!f.racyCheckOk),f.contentCheckOk&&(r.playerRequest.contentCheckOk=!!f.contentCheckOk));f.params&&(r.params=f.params);f.inputType&&(r.inputType=f.inputType);r.disablePlayerResponse=!0};
_.l.getRequestConfig=function(r){var f;(r=this.JSC$11814_getStoreKey(r))&&(f={storeStrategy:{storeKey:r}});_.N("web_log_reels_ticks")&&(f=f||{},f.requestTick="r_wrs",f.responseTick="r_wrr");return f};
_.l.JSC$11814_getStoreKey=function(r){r=this.getExtension(r);if(_.N("shorts_controller_retrieve_seedless_sequence_v2")){if((r==null?void 0:r.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.Ro("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.N("web_prefetch_riw_for_next_video")||_.N("web_shorts_prefetch_service_enabled"))&&r!=null&&r.videoId){var f={videoId:r.videoId};r.params&&(f.params=r.params);return _.Ro("reel_item_watch",f)}};var CL=function(){};
_.t(CL,aO);_.l=CL.prototype;_.l.getApiPaths=function(){return GJT};
_.l.getExtension=function(r){return _.F(r,_.xO)};
_.l.JSC$11807_buildRequest=function(r,f,I){I=I===void 0?{}:I;r.sequenceParams=f.sequenceParams;var C;((C=I)==null?0:C.contentPlaybackContext)&&_.N("web_shorts_prefetch_service_enabled")&&(r.playbackContext={contentPlaybackContext:I.contentPlaybackContext})};
_.l.JSC$11814_getStoreKey=function(r){if(_.N("shorts_controller_retrieve_seedless_sequence_v2")&&(r=this.getExtension(r),r==null?0:r.sequenceParams))return _.Ro("reel_watch_sequence",{sequenceParams:r.sequenceParams})};
_.l.getRequestConfig=function(r){r=this.JSC$11814_getStoreKey(r);var f;r&&(f={storeStrategy:{storeKey:r}});_.N("reel_watch_sequence_request_log_ticks")&&(f=f||{},f.requestTick="r_wsrs",f.responseTick="r_wsrr",f.processorTick="r_wsrp");return f};
var Yt=function(){};
_.t(Yt,aO);Yt.prototype.getApiPaths=function(){return GJT};
Yt.prototype.getExtension=function(r){return _.F(r,_.$Z)};
Yt.prototype.JSC$11807_buildRequest=function(r,f,I){I=I===void 0?{}:I;f.token&&(r.continuation=f.token);var C;((C=I)==null?0:C.contentPlaybackContext)&&_.N("web_shorts_prefetch_service_enabled")&&(r.playbackContext={contentPlaybackContext:I.contentPlaybackContext})};
Yt.prototype.getRequestConfig=function(r){r=this.JSC$11814_getStoreKey(r);var f;r&&(f={storeStrategy:{storeKey:r}});_.N("reel_watch_sequence_request_log_ticks")&&(f=f||{},f.requestTick="r_wsrs",f.responseTick="r_wsrr",f.processorTick="r_wsrp");return f};var li=function(){};
_.t(li,aO);li.prototype.getApiPaths=function(){return w2C};
li.prototype.getExtension=function(r){return _.F(r,_.BiB)};
li.prototype.JSC$11807_buildRequest=function(r,f,I){I=I===void 0?{}:I;f.flagAction&&(r.action=f.flagAction);f.flagRequestType&&(r.flagRequestType=f.flagRequestType);f.additionalDetailCheckboxChecked&&(r.additionalDetailCheckboxChecked=f.additionalDetailCheckboxChecked);f.legalCheckboxChecked&&(r.legalCheckboxChecked=f.legalCheckboxChecked);f={};I.flag_issue_type!==void 0&&(f.issue=I.flag_issue_type);I.flag_affiliation!==void 0&&(f.affiliation=I.flag_affiliation);I.flag_full_name&&(f.fullName=I.flag_full_name);
Object.keys(f).length&&(r.legalReportDetails=f);if(I.flag_description||I.text)r.userComments=I.flag_description||I.text;f={};I.minutes!==void 0&&I.seconds!==void 0&&(f.minutes=I.minutes,f.seconds=I.seconds);I.vss_id&&(f.vssId=I.vss_id);Object.keys(f).length&&(r.videoReportDetails=f);f={};I.video_ids&&(f.videoIds=I.video_ids);I.impersonated_channel_url&&(f.impersonatedChannelUrl=I.impersonated_channel_url);Object.keys(f).length&&(r.channelAbuseReportDetails=f)};
_.OC.Object.defineProperties(li.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var V5=function(){};
_.t(V5,aO);V5.prototype.getApiPaths=function(){return MpD};
V5.prototype.getExtension=function(r){return _.F(r,PID)};
V5.prototype.JSC$11807_buildRequest=function(r,f){f.blockedForKidsContent&&(r.blockedForKidsContent=f.blockedForKidsContent)};var EN=function(){};
_.t(EN,aO);EN.prototype.getApiPaths=function(){return qf3};
EN.prototype.getExtension=function(r){return _.F(r,QT$)};
EN.prototype.JSC$11807_buildRequest=function(r,f,I){r.params=f.params;I.impersonated_channel_url&&(r.impersonatedChannelUrl=I.impersonated_channel_url)};var SD=function(){};
_.t(SD,aO);SD.prototype.getApiPaths=function(){return iTV};
SD.prototype.getExtension=function(r){return _.F(r,_.tmg)};
SD.prototype.JSC$11807_buildRequest=function(r,f){f.items&&(r.items=f.items);f.kidGaiaId&&(r.kidGaiaId=f.kidGaiaId)};var xt=function(){};
_.t(xt,aO);xt.prototype.getApiPaths=function(){return dz_};
xt.prototype.getExtension=function(r){return _.F(r,_.ms4)};
xt.prototype.JSC$11807_buildRequest=function(r,f){f.params&&(r.params=f.params);f.targetId&&(r.targetId=f.targetId)};var h5=function(){};
_.t(h5,aO);h5.prototype.getApiPaths=function(){return fLg};
h5.prototype.getExtension=function(r){return _.F(r,Pl4)};
h5.prototype.JSC$11807_buildRequest=function(r,f){f.externalVideoId&&(r.externalVideoId=f.externalVideoId);f.query&&(r.query=f.query);f.sourceTimelines&&(r.sourceTimelines=f.sourceTimelines)};var w9=function(){};
_.t(w9,aO);w9.prototype.getApiPaths=function(){return ILT};
w9.prototype.getExtension=function(r){return _.F(r,_.$Z)||void 0};
w9.prototype.JSC$11807_buildRequest=function(r,f){f.token&&(r.continuation=f.token)};
_.SP1=function(){};
_.t(_.SP1,aO);_.l=_.SP1.prototype;_.l.getApiPaths=function(){return ILT};
_.l.getExtension=function(r){return _.F(r,_.VB)||void 0};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$11814_getStoreKey=function(r,f){f=f===void 0?{}:f;if(!f.disableCache&&(r=this.getExtension(r))&&r.query)return f={query:r.query},r.params&&(f.params=r.params),_.Ro("search",f)};
_.l.JSC$11807_buildRequest=function(r,f,I){f.query&&(r.query=f.query);f.params&&(r.params=f.params);if(!_.N("web_forward_suggest_stats_killswitch")){var C=_.F(f,pKB);C&&(r.suggestStats=C)}var Y;!_.N("kevlar_searchbox_stats_killswitch")&&((Y=I.tempData)==null?0:Y.gs_l)&&!_.F(f,pKB)&&(r.webSearchboxStatsUrl="/search?oq="+(I.tempData.oq||"")+"&gs_l="+I.tempData.gs_l);var V;if((V=I.tempData)==null?0:V.entityMid)f=r.suggestionSearchParams||{},f.entityMid=I.tempData.entityMid,r.suggestionSearchParams=f};
_.l.getRequestConfig=function(r,f){f=f===void 0?{}:f;r=this.JSC$11814_getStoreKey(r,f);var I;r&&(I={storeStrategy:{storeKey:r}});_.N("web_log_search_ticks_ks")||(I=I||{},I.requestTick="sr_s",I.responseTick="sr_r");return I};var bi=function(){};
_.t(bi,aO);bi.prototype.getApiPaths=function(){return Wu4};
bi.prototype.getExtension=function(r){return _.F(r,YGC)};
bi.prototype.JSC$11807_buildRequest=function(r,f){f.serializedGetSharingProviderDataParams&&(r.serializedGetSharingProviderDataParams=f.serializedGetSharingProviderDataParams)};var pL=function(){};
_.t(pL,aO);pL.prototype.getApiPaths=function(){return LuU};
pL.prototype.getExtension=function(r){return _.F(r,QP3)};
pL.prototype.JSC$11807_buildRequest=function(r,f){f.endpoint&&(r.endpoint=f.endpoint);f.action&&(r.action=f.action)};var nL=function(){};
_.t(nL,aO);nL.prototype.getApiPaths=function(){return Sfq};
nL.prototype.getExtension=function(r){return _.F(r,Zl_)};
nL.prototype.JSC$11807_buildRequest=function(r,f){r.videoId=f.videoId;f.scheduledRedirectMetadataSourceVideoId&&(r.scheduledRedirectMetadata={sourceVideoId:f.scheduledRedirectMetadataSourceVideoId})};var xc6=XMLHttpRequest.prototype.fetch,hlU=xc6&&xc6.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!UH?!0:!1;var d9=function(r){this.JSC$15843_storeWithEntities=r};
_.t(d9,aO);_.l=d9.prototype;_.l.getApiPaths=function(){return onB};
_.l.getExtension=function(r){return _.F(r,_.vj)||_.F(r,_.xO)||_.F(r,B8T)};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$11814_getStoreKey=function(r){if((_.N("kevlar_cache_on_ttl_player")||_.N("mweb_enable_shorts_innertube_player_prefetch")||_.N("mweb_use_new_history_manager")||_.N("web_shorts_prefetch_service_enabled"))&&(r=this.getExtension(r))&&r.videoId){var f={videoId:r.videoId};r.playlistId&&(f.playlistId=r.playlistId);r.playerParams&&(f.params=r.playerParams);return _.Ro("player",f)}};
_.l.JSC$11807_getClientScreen=function(r){var f;return((f=r.contentPlaybackContext)==null?void 0:f.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.l.JSC$11807_buildRequest=function(r,f,I){if(_.N("enable_interstitial_entity_check")){var C=this.JSC$15843_storeWithEntities;if(f.videoId)for(var Y=_.E(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),V=Y.next();!V.done;V=Y.next()){V=V.value;var S;var h=void 0,w=void 0,n=f.videoId,d=V;(S=C)?(n=_.rG(n+d,"interstitialInteractionStateEntity"),S=(h=(w=_.f2(S.getState().entities,"interstitialInteractionStateEntity",n))==null?void 0:w.primaryButtonClicked)!=null?h:!1):S=!1;if(S)switch(V){case "CONTENT_CHECK_REQUIRED":f.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":f.racyCheckOk=!0}}}f.videoId&&(r.videoId=f.videoId);f.playlistId&&(r.playlistId=f.playlistId);f.index!==void 0&&(r.playlistIndex=f.index+1);f.playerParams&&(r.params=f.playerParams);"startTimeSeconds"in f&&f.startTimeSeconds&&(_.N("enable_player_request_builder_start_time_floor")?r.startTimeSecs=Math.floor(f.startTimeSeconds):r.startTimeSecs=f.startTimeSeconds);I.contentPlaybackContext&&(r.playbackContext={contentPlaybackContext:I.contentPlaybackContext});I.prefetchPlaybackContext&&
(r.playbackContext=Object.assign({},r.playbackContext,{prefetchPlaybackContext:I.prefetchPlaybackContext}),r.context.request||(r.context.request={}),r.context.request.isPrefetch=!0);r.playbackContext||(r.playbackContext={});C=dPV();r.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!C,supportXhr:hlU};I.overrideMutedAtStart&&(r.overrideMutedAtStart=I.overrideMutedAtStart);r.racyCheckOk=!!f.racyCheckOk;r.contentCheckOk=!!f.contentCheckOk;!_.N("captions_prefs_killswitch")&&(I=(I=_.YJ("yt-player-caption-language-preferences"))?
I:[],I==null?0:I.length)&&(r.captionParams={viewerSelectedCaptionLangs:I})};
_.l.getRequestConfig=function(r){r=this.JSC$11814_getStoreKey(r);var f;r&&(f={storeStrategy:{storeKey:r}});_.N("web_log_player_watch_next_ticks")&&(f=f||{},f.requestTick="ps_s",f.responseTick="ps_r");return f};
d9[ZB]=[Ed];var zz=function(){};
_.t(zz,aO);zz.prototype.getApiPaths=function(){return VWV};
zz.prototype.getExtension=function(r){return _.F(r,_.H3D)};
zz.prototype.JSC$11807_buildRequest=function(r,f){r.params=f.params;r.correctionText=f.correctionText};var M_=function(){};
_.t(M_,aO);M_.prototype.getApiPaths=function(){return q3u};
M_.prototype.getExtension=function(r){return _.F(r,_.tX3)};
M_.prototype.JSC$11807_buildRequest=function(r,f){f.params&&(r.params=f.params);r.searchQuery=f.searchQuery;r.languageCode=f.languageCode;r.kind=f.kind;r.name=f.name;r.externalVideoId=f.externalVideoId};var g9=function(){};
_.t(g9,aO);_.l=g9.prototype;_.l.getApiPaths=function(){return XHs};
_.l.getExtension=function(r){return _.F(r,_.vj)};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$11814_getStoreKey=function(r){if((r=this.getExtension(r))&&r.videoId){var f={videoId:r.videoId};r.playlistId&&(f.playlistId=r.playlistId);r.index&&(f.index=r.index);r.params&&(f.params=r.params);return _.Ro("next",f)}};
_.l.JSC$11807_getClientScreen=function(r){var f;return((f=r.contentPlaybackContext)==null?void 0:f.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.l.JSC$11807_buildRequest=function(r,f,I){f.videoId&&(r.videoId=f.videoId);f.playlistId&&(r.playlistId=f.playlistId);f.params&&(r.params=f.params);f.index!==void 0&&(r.playlistIndex=f.index);r.racyCheckOk=!(!I.racyCheckOk&&!f.racyCheckOk);r.contentCheckOk=!!f.contentCheckOk;I.contentPlaybackContext&&(r.autonavState=I.contentPlaybackContext.autonavState,r.playbackContext={vis:I.contentPlaybackContext.vis,lactMilliseconds:I.contentPlaybackContext.lactMilliseconds});I.prefetchPlaybackContext&&(r.context.request||
(r.context.request={}),r.context.request.isPrefetch=!0);_.N("captions_hats_killswitch")||(f=_.xI().getFlag(65),f=f!=null?!f:!1,I=!!_.YJ("yt-player-sticky-caption"),r.captionsRequested=f&&I)};
_.l.getRequestConfig=function(r){r=this.JSC$11814_getStoreKey(r);var f;r&&(f={storeStrategy:{storeKey:r}});_.N("web_log_player_watch_next_ticks")&&(f=f||{},f.requestTick="wn_s",f.responseTick="wn_r");return f};
var a0=function(){};
_.t(a0,aO);a0.prototype.getApiPaths=function(){return XHs};
a0.prototype.getExtension=function(r){return _.F(r,_.$Z)};
a0.prototype.JSC$11807_buildRequest=function(r,f){f.token&&(r.continuation=f.token)};var X5=function(r,f){this.playerRequestBuilder=r;this.watchNextRequestBuilder=f};
_.t(X5,aO);X5.prototype.getApiPaths=function(){return Ji4};
X5.prototype.getExtension=function(r){return _.F(r,_.vj)};
X5.prototype.isNavigationCommand=function(){return!0};
X5.prototype.JSC$11807_buildRequest=function(r,f,I){r.playerRequest={};this.playerRequestBuilder.JSC$11807_buildRequest(r.playerRequest,f,I);_.N("web_streaming_watch")&&(r.watchNextRequest={},this.watchNextRequestBuilder.JSC$11807_buildRequest(r.watchNextRequest,f,I))};
X5[ZB]=[d9,g9];var N_=function(){};
_.t(N_,aO);N_.prototype.getApiPaths=function(){return NvU};
N_.prototype.getExtension=function(r){return _.F(r,k$4)};
N_.prototype.JSC$11807_buildRequest=function(r,f){f.params&&(r.params=f.params)};var $t=function(r){this.JSC$15870_storeWithEntities=r};
_.t($t,aO);$t.prototype.getApiPaths=function(){return qn_};
$t.prototype.getExtension=function(r){return _.F(r,qG3)||_.F(r,DAU)};
$t.prototype.JSC$11807_buildRequest=function(r,f,I){I.client_data&&(r.clientData=I.client_data);if(f.commerceActionConfig){var C=f.commerceActionConfig;f=C.actionId;C=C.commerceActionParams;f&&(r.actionId=f);C&&(r.commerceActionParams=C)}else{var Y=f.actionId,V=f.commerceActionParams;I=f.entityKeys;Y&&(r.actionId=Y);V&&(r.commerceActionParams=V);var S;f=(C=this.JSC$15870_storeWithEntities)==null?void 0:(S=C.getState())==null?void 0:S.entities;if(I&&f){C=[];S=_.E(I);for(I=S.next();!I.done;I=S.next())if(Y=
I.value,I=_.qo(Y).entityType,Y=_.f2(f,I,Y))V={},C.push((V[I]=Y,V));r.entityMutationPayloads=C}}};
$t.prototype.getRequestConfig=function(r){var f,I=(f=_.F(r,qG3))==null?void 0:f.requestSequenceType;if(I&&r.clickTrackingParams&&I!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:r.clickTrackingParams,sequenceType:I}}};
$t[ZB]=[Ed];var F5=function(){};
_.t(F5,aO);F5.prototype.getApiPaths=function(){return $M4};
F5.prototype.getExtension=function(r){return _.F(r,_.Mv3)};
F5.prototype.JSC$11807_buildRequest=function(r,f){f.feedbackData&&(r.feedbackData=f.feedbackData);f.params&&(r.itemParams=f.params)};
_.OC.Object.defineProperties(F5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ps=function(){};
_.t(Ps,aO);Ps.prototype.getApiPaths=function(){return FB3};
Ps.prototype.getExtension=function(r){return _.F(r,gJU)};
Ps.prototype.JSC$11807_buildRequest=function(r,f,I){I.payments_payload&&(r.paymentsPayload=I.payments_payload);I.offer_params&&(r.offerParams=I.offer_params);f.transactionParams&&(r.transactionParams=f.transactionParams)};var t5=function(){};
_.t(t5,aO);t5.prototype.getApiPaths=function(){return PQB};
t5.prototype.getExtension=function(r){return _.F(r,_.aGU)};
t5.prototype.JSC$11807_buildRequest=function(r,f,I){I=I===void 0?{}:I;f.buybucketParams&&(r.buybucketData={params:f.buybucketParams},f.stickerParams?r.buybucketData.stickerParams=f.stickerParams:(I.rich_chat_message?r.buybucketData.richChatMessage=I.rich_chat_message:I.chat_message_text&&(r.buybucketData.chatMessageText=I.chat_message_text),I.purchase_price_micros&&(r.buybucketData.purchasePriceMicros=I.purchase_price_micros.toString())));f.donationAmountMicros&&(r.tipAmountMicros=f.donationAmountMicros,
f.tipParams&&(r.tipParams=f.tipParams));f.offerParams&&(r.offerParams=f.offerParams);f.productData&&(r.productData=f.productData);f.transactionParams&&(r.transactionParams=f.transactionParams)};var Tz=function(){};
_.t(Tz,aO);Tz.prototype.getApiPaths=function(){return tWs};
Tz.prototype.getExtension=function(r){return _.F(r,$b4)};
Tz.prototype.JSC$11807_buildRequest=function(r,f){f.updateFopParams&&(r.updateFopParams=f.updateFopParams)};var cs=function(){};
_.t(cs,aO);cs.prototype.getApiPaths=function(){return TvV};
cs.prototype.getExtension=function(r){return _.F(r,_.DK)};
cs.prototype.JSC$11807_buildRequest=function(r,f){f.couponCode&&(r.couponCode=f.couponCode);f.params&&(r.itemParams=f.params)};var Ws=function(){};
_.t(Ws,aO);Ws.prototype.getApiPaths=function(){return cWq};
Ws.prototype.getExtension=function(r){return _.F(r,_.ugg)};
Ws.prototype.JSC$11807_buildRequest=function(r,f,I){I=I===void 0?{}:I;f.params&&(r.params=f.params);I.ctk&&(r.clientToken=I.ctk)};var LL=function(r){this.JSC$15905_storeWithEntities=r};
_.t(LL,aO);LL.prototype.getApiPaths=function(){return WBq};
LL.prototype.getExtension=function(r){return _.F(r,_.H_)};
LL.prototype.JSC$11807_buildRequest=function(r,f,I){I.purchase_price_micros&&(r.productData={pdgData:{purchasePriceMicros:I.purchase_price_micros.toString()}},I.rich_chat_message&&(r.productData.pdgData.richChatMessage=I.rich_chat_message),I.currency_code&&(r.productData.pdgData.currencyCode=I.currency_code));f.transactionParams&&(r.transactionParams=f.transactionParams);f.clientLocationContext&&(r.clientLocationContext=f.clientLocationContext);I.payments_payload&&(r.paymentsPayload=I.payments_payload);
I.funds_guarantee_callback_client_data&&(r.fundsGuaranteeCallbackClientData=I.funds_guarantee_callback_client_data);var C,Y;I=(C=this.JSC$15905_storeWithEntities)==null?void 0:(Y=C.getState())==null?void 0:Y.entities;if(f.entityKeys&&I){C=[];f=_.E(f.entityKeys);for(Y=f.next();!Y.done;Y=f.next()){var V=Y.value;Y=_.qo(V).entityType;if(V=_.f2(I,Y,V)){var S={};C.push((S[Y]=V,S))}}r.entityMutationPayloads=C}};
LL[ZB]=[Ed];var mA=function(){};
_.t(mA,aO);mA.prototype.getApiPaths=function(){return LB3};
mA.prototype.getExtension=function(r){return _.F(r,XDT)};
mA.prototype.JSC$11807_buildRequest=function(r,f,I){I=I===void 0?{}:I;I.backend_analytics&&(r.serializedBackendAnalyticsEvent=I.backend_analytics);f.offerParams&&(r.offerParams=f.offerParams)};var eD=function(){};
_.t(eD,aO);eD.prototype.getApiPaths=function(){return TvV};
eD.prototype.getExtension=function(r){return _.F(r,weK)};
eD.prototype.JSC$11807_buildRequest=function(r,f){f.params&&(r.itemParams=f.params)};var J5=function(){};
_.t(J5,aO);J5.prototype.getApiPaths=function(){return mM_};
J5.prototype.getExtension=function(r){return _.F(r,_.Yng)};
J5.prototype.JSC$11807_buildRequest=function(r,f,I){I.resume_time_ms&&(r.resumeTimeMs=I.resume_time_ms);f.pauseParams&&(r.pauseParams=f.pauseParams)};var jD=function(){};
_.t(jD,aO);jD.prototype.getApiPaths=function(){return eI8};
jD.prototype.getExtension=function(r){return _.F(r,_.NQ_)};
jD.prototype.JSC$11807_buildRequest=function(r,f,I){I=I===void 0?{}:I;I.c&&(r.redeemCode=I.c);I.rd&&(r.riskData=I.rd);I.ctk&&(r.clientToken=I.ctk)};var Hs=function(){};
_.t(Hs,aO);Hs.prototype.getApiPaths=function(){return JWT};
Hs.prototype.getExtension=function(r){return _.F(r,_.lGs)};
Hs.prototype.JSC$11807_buildRequest=function(r,f){f.resumeParams&&(r.resumeParams=f.resumeParams)};var ii=function(r,f){this.clientName=r;this.defaultExpirationDelayMs=f};
ii.prototype.put=function(r,f){var I=this,C;return _.x(function(Y){C=Object.assign({},f.data);C.key=r;C.clientName=I.clientName;C.expireTimestampMs===void 0&&(C.expireTimestampMs=(Math.round((0,_.Ad)())+I.defaultExpirationDelayMs).toString());return Y.return(I.putInternal(r,C))})};
ii[ZB]=[hb,PJg];var wu2=function(){ii.apply(this,arguments);this.JSC$15935_responseStore=new Map};
_.t(wu2,ii);_.l=wu2.prototype;_.l.get=function(r){var f=this;return _.x(function(I){return I.return(rD(f,r))})};
_.l.putInternal=function(r,f){var I=this,C,Y,V;return _.x(function(S){C=I.defaultExpirationDelayMs;f.expireTimestampMs&&(C=Number(f.expireTimestampMs)-Math.round((0,_.Ad)()),Y=_.Bw("mweb_override_response_store_expiration_ms"),Y>0&&Y<C&&(C=Y));V=setTimeout(function(){I.remove(r)},C);
I.JSC$15935_responseStore.set(r,{entryData:f,timer:V});_.wO(S)})};
_.l.remove=function(r){var f=this;return _.x(function(I){bwY(f,r);_.wO(I)})};
_.l.removeAll=function(){var r=this;return _.x(function(f){r.JSC$15935_responseStore.forEach(function(I){clearTimeout(I.timer)});
r.JSC$15935_responseStore.clear();_.wO(f)})};
_.l.has=function(r){return!!this.JSC$15935_responseStore.get(r)};
_.l.getKeys=function(){return this.JSC$15935_responseStore.keys()};
var rD=function(r,f){if(r=r.JSC$15935_responseStore.get(f))return new _.DL(r.entryData)},bwY=function(r,f){var I=r.JSC$15935_responseStore.get(f);
I&&(clearTimeout(I.timer),r.JSC$15935_responseStore.delete(f))};var GSP;var qMl=function(r,f,I){ii.call(this,r,f);this.token=I};
_.t(qMl,ii);_.l=qMl.prototype;_.l.get=function(r){var f=this,I,C;return _.x(function(Y){return Y.nextAddress==1?_.b(Y,BVK(f.token),2):Y.nextAddress!=3?(I=Y.yieldResult,_.b(Y,I.get("ResponseStore",[r,f.clientName]),3)):(C=Y.yieldResult)?Y.return(new _.DL(C)):Y.return(void 0)})};
_.l.putInternal=function(r,f){var I=this,C;return _.x(function(Y){if(Y.nextAddress==1)return _.b(Y,BVK(I.token),2);C=Y.yieldResult;return _.b(Y,C.put("ResponseStore",f),0)})};
_.l.remove=function(r){var f=this,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,BVK(f.token),2);I=C.yieldResult;return C.return(I.delete("ResponseStore",[r,f.clientName]))})};
_.l.removeAll=function(){var r=this,f;return _.x(function(I){if(I.nextAddress==1)return _.b(I,BVK(r.token),2);f=I.yieldResult;return _.b(I,c7B(f,IDBKeyRange.only(r.clientName)),0)})};
_.l.has=function(){throw Error("Ui");};_.R0=new _.Go("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var puV=function(r){var f;this.stateTagsData=(f=r.responseContext)==null?void 0:f.stateTags},nq1=function(r){var f;
return((f=r.stateTagsData)==null?void 0:f.stateTagsModified)||[]};var dcq;dcq=function(r){this.JSC$15948_responseStore=r};
_.yW=function(r,f,I){if(!_.N("state_tags_killswitch")){var C=new puV(f);if(nq1(C).length>0){var Y=r.JSC$15948_responseStore.getKeys();Y=_.E(Y);for(var V=Y.next();!V.done;V=Y.next()){V=V.value;var S=rD(r.JSC$15948_responseStore,V);if(S){var h=_.lO(S);a:{var w=void 0;S=nq1(C);h=((w=(new puV(h)).stateTagsData)==null?void 0:w.relevantStateTags)||[];w=_.E(h);for(h=w.next();!h.done;h=w.next())if(h=h.value,h.stateTag!=null&&S.includes(h.stateTag)&&h.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){S=
!0;break a}S=!1}S&&bwY(r.JSC$15948_responseStore,V)}}}}var n;C=(n=f.responseContext)==null?void 0:n.maxAgeSeconds;_.N("web_prefetch_riw_for_next_video")&&!C&&f.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(C=3600);I&&C&&Number(C)>0&&(f=kZ(f,C),r.JSC$15948_responseStore.put(I,new _.DL(f)))};
dcq.prototype.handleResponse=function(r,f){if(!f)throw Error("Vi");var I,C;f=(I=f.config)==null?void 0:(C=I.storeStrategy)==null?void 0:C.storeKey;_.yW(this,r,f)};
dcq[ZB]=[_.uQ];_.KPP=new _.Go("STORE_RESPONSE_PROCESSOR_TOKEN");var zls=function(r){this.JSC$15951_responseStore=r};
zls.prototype.handleResponse=function(r,f){if(f.input.match(_.yC(GJT))){var I;if(r==null?0:(I=r.entries)==null?0:I.length)for(r=_.E(r.entries),f=r.next();!f.done;f=r.next()){I=f.value.command;var C=void 0;f=(C=_.F(I,_.xO))==null?void 0:C.unserializedPrefetchData;if(!I||!f)break;C=(new I0).JSC$11814_getStoreKey(I);var Y=_.F(f,dsq),V=void 0,S=void 0,h=void 0,w=_.Bw("web_shorts_prefetch_service_ttl_seconds")>0?_.Bw("web_shorts_prefetch_service_ttl_seconds"):Number((h=(V=Y)==null?void 0:(S=V.responseContext)==
null?void 0:S.maxAgeSeconds)!=null?h:3600);C&&w>0&&(Y=kZ(Y,w),this.JSC$15951_responseStore.put(C,new _.DL(Y)));I=(new d9).JSC$11814_getStoreKey(I);f=_.F(f,DXC);V=Y=C=void 0;S=_.Bw("web_shorts_prefetch_service_ttl_seconds")>0?_.Bw("web_shorts_prefetch_service_ttl_seconds"):Number((V=(C=f)==null?void 0:(Y=C.responseContext)==null?void 0:Y.maxAgeSeconds)!=null?V:3600);I&&S>0&&(f=kZ(f,S),this.JSC$15951_responseStore.put(I,new _.DL(f)))}}};
zls[ZB]=[_.uQ];var vs=function(){this.scheduler=_.tF()},MKV;
vs.prototype.pause=function(){throw Error("Wi");};
vs.prototype.resume=function(){throw Error("Wi");};
vs.prototype.queue=function(r){var f=this,I=_.eu(),C=_.dp(this.scheduler,function(){try{var Y;if(_.qv.instance)var V=_.qv.instance;else{var S=new _.nf("Error: Unexpected uninitialized CommandHandler.");_.Fo(S);V=void 0}(Y=V)==null||Y.resolveCommand(r.command);I.resolve()}catch(h){I.reject(h)}});
I.promise.thenCatch(function(Y){Y instanceof _.oV&&f.scheduler.cancelJob(C)});
return I.promise};
vs.prototype.queueAll=function(r){var f=new Map;r=_.E(r);for(var I=r.next();!I.done;I=r.next())I=I.value,f.set(I.id,this.queue(I));return f};var adp=function(r,f){var I=this;this.taskModel=r;this.onTaskCancelledCallback=f;this.resolver=_.eu();r=r.proto.prefetchConfig;if(!r)throw Error("Xi");if(!r.prefetchAction)throw Error("Yi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(C){C instanceof _.oV&&(gqB(I,I.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),I.onTaskCancelledCallback(I.taskModel.id,I.jobId),I.tick("pcc"));
throw C;});
this.timerName=this.taskModel.id;_.al(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},XuV=function(r){switch(r.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},gqB=function(r,f){_.gX({prefetchInfo:{cancellationReason:f}},r.timerName)};
adp.prototype.tick=function(r){_.Xc(r,void 0,this.timerName)};var y5=function(){var r=this;this.scheduler=_.tF();this.maxInflightTasks=_.Bw("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.Bw("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new Bmq;this.onTaskCancelled=function(f,I){I&&r.scheduler.cancelJob(I);NRp(r,f);KL(r,3)}},$c2=function(){y5.instance||(y5.instance=new y5);
return y5.instance};
y5.prototype.pause=function(){this.prefetchCoordinatorState=0};
y5.prototype.resume=function(){KL(this,0)};
y5.prototype.queue=function(r){r=FKY(this,r);KL(this,1);return r};
y5.prototype.queueAll=function(r){var f=new Map;r=_.E(r);for(var I=r.next();!I.done;I=r.next())I=I.value,f.set(I.id,FKY(this,I));KL(this,1);return f};
var FKY=function(r,f){var I=r.allPrefetchTasks.get(f.id);if(I)return I.cancellablePromise;try{var C=new adp(f,r.onTaskCancelled)}catch(V){return _.h3(V)}I=C;I.tick("pcq");var Y={prefetchInfo:{taskId:I.taskModel.id,isPrefetch:!0,fetchAction:I.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:I.taskModel.command.clickTrackingParams}};I.taskModel.csn&&(Y.clientScreenNonce=I.taskModel.csn);_.gX(Y,I.timerName);r.allPrefetchTasks.set(f.id,C);r.drainingHeap.insert(-XuV(C),C);return C.cancellablePromise},
KL=function(r,f){r.prefetchCoordinatorState===f&&(r.prefetchCoordinatorState=2,PUU(r))},PUU=function(r){for(var f={};r.prefetchCoordinatorState!==0;f={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(r.inflightPrefetchTasks.size>=r.maxInflightTasks){r.prefetchCoordinatorState=3;break}f.prefetchTask$jscomp$1=r.drainingHeap.remove();if(!f.prefetchTask$jscomp$1){r.prefetchCoordinatorState=1;break}f.taskId$jscomp$3=f.prefetchTask$jscomp$1.taskModel.id;if(r.allPrefetchTasks.has(f.taskId$jscomp$3)){var I=-1;r.coordinatorTimeoutMs>0&&(I=_.dp(r.scheduler,function(C){return function(){UN(r,C.taskId$jscomp$3,Error("Zi"))}}(f),r.coordinatorTimeoutMs));
r.inflightPrefetchTasks.set(f.taskId$jscomp$3,I);if(!r.JSC$15967_commandHandler){if(!_.qv.instance){UN(r,f.taskId$jscomp$3,Error("$i"));continue}r.JSC$15967_commandHandler=_.qv.instance}a:switch(f.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":I=1;break a;default:I=0}f.prefetchTask$jscomp$1.jobId=r.scheduler.addJob(function(C){return function(){C.prefetchTask$jscomp$1.tick("pcr");try{r.JSC$15967_commandHandler.resolveCommand(C.prefetchTask$jscomp$1.taskModel.command)||
UN(r,C.taskId$jscomp$3,Error("aj"))}catch(Y){UN(r,C.taskId$jscomp$3,Y)}}}(f),I,0)}}},tK1=function(r,f){(f=NRp(r,f))!=null&&(f.resolver.resolve(),f.tick("pce"));
KL(r,3)},UN=function(r,f,I){(f=NRp(r,f,I))!=null&&(f.resolver.reject(I),f.tick("pcc"),gqB(f,"CANCELLATION_REASON_ERROR"),Math.random()<=_.Bw("prefetch_coordinator_error_logging_sampling_rate")&&(I=new _.nf("Prefetch Command failed.",f.taskModel.id,I.message),_.Fo(I)));
KL(r,3)},NRp=function(r,f,I){var C=r.allPrefetchTasks.get(f);
C?((I=r.inflightPrefetchTasks.get(f))&&I!==-1&&r.scheduler.cancelJob(I),r.inflightPrefetchTasks.delete(f),r.allPrefetchTasks.delete(f)):_.t7(new _.nf("Unexpected missing prefetch task when deleting task.",f,I==null?void 0:I.message));return C};var TRq=function(r,f,I,C,Y){this.id=r;this.triggerOn=f;this.cancelOn=I;this.command=C;this.proto=Y};
_.OC.Object.defineProperties(TRq.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var cm6=function(){this.JSC$15972_prefetchCoordinator=$c2();MKV||(MKV=new vs);this.defaultCoordinator=MKV},WK7;
cm6.getInstance=function(){WK7||(WK7=new cm6);return WK7};
cm6.prototype.get=function(r){switch(r){case 0:return this.JSC$15972_prefetchCoordinator;default:return this.defaultCoordinator}};var sN=function(){this.coordinatorSupplier=cm6.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},elV=function(r){var f=_.t1()||void 0,I=Object.keys(LKd)[0];
if(I){var C=r.taskIdByTriggerId.get(I);if(C!=null){r.taskIdByTriggerId.delete(I);I=[];C=_.E(C);for(var Y=C.next();!Y.done;Y=C.next())if(Y=r.tasks.get(Y.value))f!=="UNDEFINED_CSN"&&(Y.csn=f),I.push(Y);I=rfU(I);f=[];I=_.E(I);for(C=I.next();!C.done;C=I.next()){Y=_.E(C.value);C=Y.next().value;Y=Y.next().value;C=r.coordinatorSupplier.get(C).queueAll(Y);C=_.E(C);var V=C.next();for(Y={};!V.done;Y={taskId$jscomp$9:void 0},V=C.next()){var S=_.E(V.value);V=S.next().value;S=S.next().value;Y.taskId$jscomp$9=
V;V=S;f.push(Y.taskId$jscomp$9);r.queuedPromisesByTask.set(Y.taskId$jscomp$9,_.XZ(V,function(h){return function(){mcs(r,h.taskId$jscomp$9)}}(Y)))}}}}else _.t7(new _.nf("Unexpected malformed TriggerEvent."))};
sN.prototype.trigger=function(r,f){var I=this,C=this.tasks.get(r);if(!C||this.queuedPromisesByTask.has(r))return!1;Jm2(this,r,C.triggerOn);f!=="UNDEFINED_CSN"&&(C.csn=f);f=this.coordinatorSupplier.get(C.taskType).queue(C);this.queuedPromisesByTask.set(r,_.XZ(f,function(){mcs(I,r)}));
return!0};
sN.prototype.cancel=function(r){var f=this.queuedPromisesByTask.get(r);if(f)f.cancel();else return mcs(this,r)};
var mcs=function(r,f){r.queuedPromisesByTask.delete(f);var I=r.tasks.get(f);if(!I)return!1;r.tasks.delete(f);Jm2(r,f,I.triggerOn);(I=DLB(I.cancelOn))&&(r=r.taskIdByCancelId.get(I))&&r.delete(f);return!0},Jm2=function(r,f,I){(I=Object.keys(I)[0])&&(r=r.taskIdByTriggerId.get(I))&&r.delete(f)};var LKd={taskRegistered:{}},ON=function(){sN.instance||(sN.instance=new sN);this.JSC$15981_taskManager=sN.instance};
_.t(ON,Fh);
ON.prototype.resolveCommand=function(r){var f=this,I,C;return _.x(function(Y){I=_.F(r,dAX);if((C=I)==null||!C.tasks){var V=new _.nf("RegisterTasksCommand is missing tasks.");_.Fo(V);return Y.return()}V=f.JSC$15981_taskManager;for(var S=_.E(I.tasks),h=S.next();!h.done;h=S.next())if(h=h.value,h=h.id&&h.triggerOn&&h.cancelOn&&h.command?new TRq(h.id,h.triggerOn,h.cancelOn,h.command,h):void 0,h){var w=Object.keys(h.triggerOn)[0];if(w){var n=DLB(h.cancelOn);n?(V.tasks.set(h.id,h),V.taskIdByTriggerId.has(w)||V.taskIdByTriggerId.set(w,
new Set),V.taskIdByTriggerId.get(w).add(h.id),V.taskIdByCancelId.has(n)||V.taskIdByCancelId.set(n,new Set),V.taskIdByCancelId.get(n).add(h.id)):_.t7(new _.nf("Unexpected malformed cancelOn field."))}else _.t7(new _.nf("Unexpected malformed triggerOn field."))}else _.t7(new _.nf("Unexpected malformed Task proto."));elV(f.JSC$15981_taskManager);_.wO(Y)})};var jRB={},Hw6=(jRB.rendered={priority:0,callback:function(){var r={};r.numCpu=navigator.hardwareConcurrency;var f={};f.ramGb=_.Yq.navigator.deviceMemory;var I={staticContext:{}};f.ramGb&&f7U(f.ramGb)&&(I.staticContext.memoryTotalKbytes=(f.ramGb*1048576).toString());r.numCpu&&f7U(r.numCpu)&&(I.staticContext.cpuCores=r.numCpu);if(_.N("web_enable_adaptive_appl_signal")){r={};f=_.Fc("rses_dpj");var C=_.Fc("rsef_dpj");f&&f>0&&C&&C>0&&(f=Math.ceil(C-f),f>0&&(r.loadLatency=f));r.loadLatency&&f7U(r.loadLatency)&&
(I.appL=r.loadLatency.toString())}_.NW("applicationStarted",I)}},jRB);var iw6=new _.Go("WINDOW_ON_ERROR"),RlU=new _.Go("ERROR_WEIGHT_MAPS"),vqq=new _.Go("INIT_ERROR");var KKq={},ym6=(KKq.initialized={priority:10,callback:function(r){r.injector.resolve(vqq)()}},KKq);var UcU=function(){},sRd=function(){var r=_.jH("meta_logger_impl");
r||(r=new UcU,_.OH("meta_logger_impl",r));return r},Ows=function(){sRd().csiSubscriptionKey=X1c("meta_logging_csi_event",function(r){var f=r.timerName;
if(r=r.timelineData){_.al(f,{startTime:r.startTime},f);r.infos&&_.gX(r.infos,f);for(var I=_.E(Object.keys(r.ticks)),C=I.next();!C.done;C=I.next())C=C.value,_.Xc(C,r.ticks[C],f)}})};
UcU.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&FQB(this.csiSubscriptionKey)};var oqp={},QR1=(oqp.initialized={priority:10,callback:function(){Ows()}},oqp);var Amq=function(r,f){this.innertubeClientName=r;this.JSC$15997_prefCookie=f};
Amq.prototype.record=function(){if(_.N("web_li_record_binary_eval_tick")){var r=_.Fc("rsef_dpj");var f=_.Fc("rses_dpj");r=r!==void 0&&f!==void 0?Math.round(r-f):void 0;if(r!==void 0&&r>0){f=_.YJ(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var I=this.poolSize;if(!(f.valuesSeen>=1E9)){if(f.valuesSample.length<I)f.valuesSample.push(r);else{var C=Math.floor(Math.random()*(f.valuesSeen+1));C<I&&(f.valuesSample[C]=r)}f.valuesSeen+=1}_.Ch(this.storagePrefix+"-"+this.innertubeClientName,
f,2592E3);r=f.valuesSample;f=I7q(r);r=r.length<5?void 0:f<400?1:f<1700?2:3;r!==void 0&&(this.JSC$15997_prefCookie.set(this.cookiePrefix+this.innertubeClientName,r),this.JSC$15997_prefCookie.save())}}else _.lg(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$15997_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$15997_prefCookie.save()};
Amq[ZB]=[hb,ye];var Zw6=function(){Amq.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.t(Zw6,Amq);var GB6=new _.Go("PAGE_LOAD_TIME_TOKEN");var kB3=new _.Go("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var o0=function(r,f){this.JSC$16018_storeWithEntities=r;this.JSC$16018_commandHandler=f;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
o0.prototype.start=function(){this.JSC$16018_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
o0.prototype.observeDownloadingEntities=function(){var r=_.VZm(this.JSC$16018_storeWithEntities.getState().entities).map(function(C){return E7R(C)});
if(r.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var f={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:OkK()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.AZ(_.VR("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16018_commandHandler.resolveCommand(f)}this.downloadingEntities=r}else if(this.downloadingEntities.length){var I=l4E(this.JSC$16018_storeWithEntities.getState().entities).map(function(C){return E7R(C)});
this.downloadingEntities.filter(function(C){return I.includes(C)}).length&&(r={openPopupAction:K2K()},this.JSC$16018_commandHandler.resolveCommand(r));
this.downloadingEntities=[]}};
o0[ZB]=[Ed,_.Gg];var BR6;_.Q5=function(r,f,I,C,Y,V,S,h){this.JSC$16021_playerApiPromise=r;this.JSC$16021_commandHandler=f;this.JSC$16021_screenManager=I;this.offlineWebClientEligibility=C;this.JSC$16021_prefStorage=Y;this.JSC$16021_actionRouter=V;this.entityTypeMap=S;this.JSC$16021_persistentStorePromiseAccessor=h;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
BR6=function(){var r=_.a().resolve(_.Q5),f;_.x(function(I){if(I.nextAddress==1)return r.downloadFailureListenerBound?I.return():_.b(I,r.JSC$16021_playerApiPromise,2);f=I.yieldResult;f.addEventListener("onOfflineOperationFailure",function(C){if(C.failureReason&&C.entityKey&&C.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(C.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var Y=_.qo(C.entityKey).entityId;Y&&r.JSC$16021_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
Y)}else if(_.N("kevlar_woffle")){Y=r.JSC$16021_commandHandler;var V=Y.resolveCommand;C=C.failureReason;var S=_.VR("TRANSFER_FAILED",void 0,"Download failed");C==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(S=_.VR("STORAGE_FULL",void 0,"Storage full"));V.call(Y,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.AZ(S),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
r.downloadFailureListenerBound=!0;_.wO(I)})};
_.Q5.prototype.deleteVideo=function(r,f){var I=this,C,Y,V;return _.x(function(S){if(S.nextAddress==1)return _.b(S,I.JSC$16021_playerApiPromise,2);C=S.yieldResult;V={offlineLoggingData:{offlineDeleteReason:(Y=f)!=null?Y:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.b(S,C.queueOfflineAction(r,I.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",V),0)})};
_.Q5.prototype.pauseVideoDownload=function(r){var f=this,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,f.JSC$16021_playerApiPromise,2);I=C.yieldResult;I.pauseVideoDownload(r);_.wO(C)})};
_.Q5.prototype.resumeVideoDownload=function(r){var f=this,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,f.JSC$16021_playerApiPromise,2);I=C.yieldResult;return _.b(C,I.resumeVideoDownload(r),0)})};
_.Q5[ZB]=[_.Zb,_.Gg,_.Ef,kB3,o3,ox,Rj3,Ob];var qP6=new _.Go("DOWNLOAD_STATE_STORE_TOKEN");var u$s=function(r,f){this.JSC$16040_persistentStorePromiseAccessor=r;this.store=f;this.upliftCompletionResolver=new _.uX},fU6=function(){var r=_.a().resolve(Dcp),f;
_.x(function(I){switch(I.nextAddress){case 1:if(r.upliftImplPromise)return I.return(r.upliftImplPromise);_.l_(I,2);r.upliftImplPromise=r_V(r);return _.b(I,r.upliftImplPromise,4);case 4:r.upliftCompletionResolver.resolve();_.Hd(I,3);break;case 2:throw f=_.ha(I),r.upliftCompletionResolver.reject(f),f;case 3:return I.return(r.upliftImplPromise)}})},r_V=function(r){var f,I,C;
return _.x(function(Y){switch(Y.nextAddress){case 1:return _.mO("LOGGED_IN")?_.b(Y,r.JSC$16040_persistentStorePromiseAccessor(),2):Y.return();case 2:f=Y.yieldResult;if(!f)return _.Xc("vdeur"),Y.return();_.Xc("vdeus");_.l_(Y,3);return _.b(Y,IU7(f),5);case 5:I=Y.yieldResult;r.store.dispatch(QGu(I));f.observe(function(V){AhE(r.store,V)});
_.Hd(Y,4);break;case 3:throw C=_.ha(Y),_.Xc("vdeur"),C;case 4:_.Xc("vdeuc"),_.wO(Y)}})},IU7=function(r){var f;
return _.x(function(I){if(I.nextAddress==1)return _.b(I,xYB(r),2);f=I.yieldResult;return I.return(f.reduce(function(C,Y){if(!Y.data||!Y.key||!Y.entityType)return C;C[Y.entityType]||(C[Y.entityType]={});C[Y.entityType][Y.key]=Y.data;return C},{}))})};
u$s[ZB]=[Ob,_.Nb];var Dcp;Dcp=new _.Go("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.A5=new _.Go("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var ZC=function(r,f){this.JSC$16043_persistentStorePromiseAccessor=r;this.transportService=f};
ZC.prototype.refresh=function(){var r=this,f,I,C,Y;return _.x(function(V){if(V.nextAddress==1)return _.mO("LOGGED_IN")?_.b(V,r.JSC$16043_persistentStorePromiseAccessor(),2):V.return();if(V.nextAddress!=3)return(f=V.yieldResult)?_.b(V,Q2m(f),3):V.return();if((I=V.yieldResult)&&!(Number(I.data.refreshTimestampMs||0)<(0,_.Ad)()))return V.return();C={browseId:"SPaccount_downloads"};Y=_.yC(u1);_.cP(r.transportService,C,Y).then(function(S){var h;if(f&&(S==null?void 0:(h=S.responseContext)==null?void 0:
h.maxAgeSeconds)!==0){var w;h=(S==null?void 0:(w=S.responseContext)==null?void 0:w.maxAgeSeconds)||604800;w=String(Math.floor((0,_.Ad)())+h*1E3);f.put("service:downloads_settings:fallback",new _.DL({innertubeResponse:S,refreshTimestampMs:w}))}});
_.wO(V)})};
ZC[ZB]=[_.R0,_.pJ];var Gz=function(r,f){this.JSC$16047_playerPromise=r;this.store=f;this.started=!1};
Gz.prototype.start=function(){var r=this,f;return _.x(function(I){if(I.nextAddress==1)return r.started?I.return():_.b(I,r.JSC$16047_playerPromise,2);f=I.yieldResult;f.addEventListener("onOrchestrationBecameLeader",r.updateIsLeader.bind(r,!0));f.addEventListener("onOrchestrationLostLeader",r.updateIsLeader.bind(r,!1));if(f.isOrchestrationLeader)r.updateIsLeader(f.isOrchestrationLeader());else{var C=new _.nf("Function isOrchestrationLeader is undefined",{"player.isReady":f.isReady(),"player.playVideo":f.playVideo?
"defined":"undefined"});_.Fo(C);r.updateIsLeader(!1)}r.started=!0;_.wO(I)})};
Gz.prototype.updateIsLeader=function(r){this.store.dispatch(_.kI({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:r}}))};
Gz[ZB]=[_.Zb,_.Nb];var CVB=function(r,f){this.networkStatusManager=r;this.JSC$16050_prefStoragePromise=f;this.redirectsToPreload=["https://youtube.com"]},Ys1=function(){var r=_.a().resolve(CVB),f,I,C,Y,V,S;
_.x(function(h){switch(h.nextAddress){case 1:return _.b(h,r.JSC$16050_prefStoragePromise,2);case 2:f=h.yieldResult;if(!(I=f)){h.jumpTo(3);break}return _.b(h,f.get("yt-redirect-prefetch-id"),4);case 4:I=h.yieldResult;case 3:if(I||!r.networkStatusManager.isNetworkAvailable())return h.return();C={cache:"reload",redirect:"manual"};Y=_.E(r.redirectsToPreload);V=Y.next();case 5:if(V.done){if(!f){h.jumpTo(0);break}return _.b(h,f.set("yt-redirect-prefetch-id",!0,86400),0)}S=V.value;_.l_(h,8);return _.b(h,
_.Yq.fetch(S,C),10);case 10:_.Hd(h,6);break;case 8:_.ha(h);case 6:V=Y.next(),h.jumpTo(5)}})};var kt=function(r){r?(this.container=r,this.containerWasInjected=!0):this.containerWasInjected=!1};
kt.prototype.openDialog=function(r,f,I){var C=this,Y;return _.x(function(V){(Y=C.container)==null||Y.openDialog(r,f,I);_.wO(V)})};
kt.prototype.closeDialog=function(){var r=this,f;return _.x(function(I){(f=r.container)==null||f.closeDialog();_.wO(I)})};
kt.prototype.isDialogOpen=function(){var r=this,f,I;return _.x(function(C){return C.return((I=(f=r.container)==null?void 0:f.isDialogOpen())!=null?I:!1)})};
kt[ZB]=[_.ZY(f9_)];_.lUs=new _.Go("POPUP_CONTROLLER_TOKEN");var V3V=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
V3V.prototype.registerPanel=function(r,f){if(r){this.panelMap.set(r,f);var I=this.pendingPanelResolvers.get(r);I&&(I.resolve(f),this.pendingPanelResolvers.delete(r))}};
V3V.prototype.getPanel=function(r){var f=this,I;return _.x(function(C){return(I=f.panelMap.get(r))?C.return(I):C.return(EC2(f,r))})};
var EC2=function(r,f){var I,C;return _.x(function(Y){if(I=r.pendingPanelResolvers.get(f))return Y.return(I.promise);C=new _.uX;r.pendingPanelResolvers.set(f,C);return Y.return(C.promise)})},SsB=function(r){V3V.call(this);
var f=this;this.popupController=r;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return f.panelMap.size}}};
_.t(SsB,V3V);_.l=SsB.prototype;_.l.getReloadContinuation=function(r){var f=this,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,f.getPanel(r),2);I=C.yieldResult;return C.return(I.getReloadContinuation())})};
_.l.showPanel=function(r,f,I,C,Y,V,S){var h=this,w,n,d,z;return _.x(function(g){if(g.nextAddress==1){S&&h.updatePanelContinuationDatas.set(r,S);if((w=I)==null?0:(n=w.engagementPanelPopupPresentationConfig)==null?0:n.popupType){d=I.engagementPanelPopupPresentationConfig.popupType;Y===void 0&&(Y=document.body);var X=g.return,P=h.popupController,W=P.openPopup;a:switch(d){case "PANEL_POPUP_TYPE_DIALOG":var m="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":m="DROPDOWN";break a;default:throw Error("cj`"+
d);}return X.call(g,W.call(P,r,f,m,Y))}return _.b(g,h.getPanel(r),2)}z=g.yieldResult;(f||V)&&z.updatePanel(f,!1,C,V);z.showPanel(C);_.wO(g)})};
_.l.hidePanel=function(r){var f=this,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,f.getPanel(r),2);I=C.yieldResult;I.hidePanel();f.popupController.closePopup(r);_.wO(C)})};
_.l.isVisible=function(r,f){var I=this,C;return _.x(function(Y){if(Y.nextAddress==1)return f&&!I.panelMap.has(r)?Y.return(!1):_.b(Y,I.getPanel(r),2);C=Y.yieldResult;return Y.return(C.isVisible())})};
_.l.updatePanel=function(r,f,I,C,Y,V){I=I===void 0?!1:I;var S=this,h;return _.x(function(w){if(w.nextAddress==1){if(!f&&!Y)return w.return();V&&S.updatePanelContinuationDatas.set(r,V);return _.b(w,S.getPanel(r),2)}h=w.yieldResult;h.updatePanel(f,I,C,Y);_.wO(w)})};
_.l.registerPanelContent=function(r,f){r&&this.panelContentMap.set(r,f)};
_.l.getPanelContent=function(r){return this.panelContentMap.get(r)};
_.l.getUpdatePanelContinuationData=function(r){return this.updatePanelContinuationDatas.get(r)};
SsB[ZB]=[_.lUs];var Bs=function(r,f){this.innertubeTransportService=r;this.JSC$16066_screenManager=f},xTs=function(r){var f;
return!((f=r.panelLoadingStrategy)==null||!f.requestTemplate)};
Bs.prototype.makeRequest=function(r){var f=this,I,C;return _.x(function(Y){switch(Y.nextAddress){case 1:if(!xTs(f)){Y.jumpTo(2);break}_.l_(Y,3);return _.b(Y,_.mC(f.innertubeTransportService,r),5);case 5:return I=Y.yieldResult,I?Y.return(I.content):(_.Fo(Error("dj")),Y.return(void 0));case 3:C=_.ha(Y),_.Fo(C);case 2:return Y.return(void 0)}})};
Bs.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
Bs.prototype.execute=function(r){var f=this,I,C,Y,V,S,h,w,n,d,z;return _.x(function(g){if(g.nextAddress==1){I=r;C=I.data;Y=I.fallbackVe;V=I.parentVe;S=I.createScreenConfig;h=I.renderFn;w=I.command;f.panelLoadingStrategy=C;var X,P,W=((X=f.panelLoadingStrategy)==null?0:X.screenVe)?(P=f.panelLoadingStrategy)==null?void 0:P.screenVe:Y;W&&_.f3(f.JSC$16066_screenManager,W,V,S);return(n=f.getContent())?_.b(g,h(n),2):g.jumpTo(2)}return g.nextAddress!=4?xTs(f)?_.b(g,f.makeRequest(w),4):g.return():(z=d=g.yieldResult)?
_.b(g,h(z),0):g.return()})};
Bs[ZB]=[_.pJ,_.Ef];var q_=function(){};
q_.prototype.getContainer=function(){return _.Qw()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
q_.prototype.openSheet=function(r,f){var I=this,C,Y,V,S,h,w;return _.x(function(n){switch(n.nextAddress){case 1:return C={stack:[],error:void 0,hasError:!1},_.l_(n,2,3),Y=OD,_.b(n,I.isSheetOpen(),5);case 5:V=n.yieldResult;Fxd(C,izK(Y));if(V&&!_.N("delay_sheet_open_killswitch")){if(f&&I.currentTarget===f)return(S=I.getContainer())==null||S.closeSheet(),n.return();I.pendingData={data:r,target:f};return n.return()}r.viewModel&&(r={viewModel:r.viewModel});(h=I.getContainer())==null||h.openSheet(r,f);
I.currentTarget=f;case 3:_.VY(n);c2K(C);_.xV(n,0);break;case 2:w=_.ha(n),C.error=w,C.hasError=!0,n.jumpTo(3)}})};
q_.prototype.closeSheet=function(){var r=this,f;return _.x(function(I){if(I.nextAddress==1)return _.b(I,(f=r.getContainer())==null?void 0:f.closeSheet(),2);if(I.nextAddress!=4)return r.currentTarget=void 0,!r.pendingData||_.N("delay_sheet_open_killswitch")?I.jumpTo(0):_.b(I,r.openSheet(r.pendingData.data,r.pendingData.target),4);r.pendingData=void 0;_.wO(I)})};
q_.prototype.isSheetOpen=function(){var r=this,f,I;return _.x(function(C){return C.return((I=(f=r.getContainer())==null?void 0:f.isSheetOpen())!=null?I:!1)})};var SQ=window.documentPictureInPicture;var N$P=_.op(["dark"]),$YE=_.op(["system-icons"]),Frl=_.op(["typography"]),Pvl=_.op(["lang"]),tfc=_.op(["style"]),Mfc=_.op(["dir"]),gdw=_.op(["rounded-container"]),a7w=_.op(["style"]),cfR=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],ui=function(r){this.JSC$16078_clientRoot=r;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
ui.prototype.openWindow=function(r){var f=this,I,C;return _.x(function(Y){if(Y.nextAddress==1)return!_.xw()||f.currentPipWindow?Y.return(!1):_.b(Y,(I=SQ?SQ:null)==null?void 0:I.requestWindow(r),2);if(Y.nextAddress!=3){C=Y.yieldResult;if(!C)return Y.return(!1);C.addEventListener("pagehide",function(){hg6(f)});
C.addEventListener("resize",f.handlePipWindowResize);f.pipWindowResizeDelay=new _.Aq(function(){f.currentPipWindow&&_.Bj(f.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.EZ(f.currentPipWindow.innerWidth,f.currentPipWindow.innerHeight)])},C);
T$B(C);Lrd(C);return _.b(Y,zzm(C),3)}if(!pQE())return Y.return(!1);f.currentPipWindow=C;f.JSC$16078_eventForwarder=Wr$(C,f.JSC$16078_clientRoot);f.pipWindowResizeDelay.start();return Y.return(!0)})};
ui.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var hg6=function(r){if(r.currentPipWindow){var f,I;(f=SQ?SQ:null)==null||(I=f.window)==null||I.close();r.currentPipWindow.removeEventListener("resize",r.handlePipWindowResize);var C;(C=r.pipWindowResizeDelay)==null||C.dispose();r.pipWindowResizeDelay=void 0;var Y;(Y=r.JSC$16078_eventForwarder)==null||Y.stop();r.JSC$16078_eventForwarder=void 0;f=_.E(r.onCloseCallbacks);for(I=f.next();!I.done;I=f.next())I=I.value,I();r.onCloseCallbacks=[];r.currentPipWindow=null}};
ui.prototype.getWindow=function(){return this.currentPipWindow};
var w4s=function(r,f){var I;(I=r.onCloseCallbacks)==null||I.push(f)};
_.OC.Object.defineProperties(ui.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
ui[ZB]=[XsT];_.b86=new _.Go("PICTURE_IN_PICTURE_CONTROLLER");var mYP=function(r,f){this.lengthY=this.lengthX=0;this.lengthX=f.x-r.x;this.lengthY=f.y-r.y};var p4U=function(){},m9V=function(r,f){var I;
(I=r.headerElement)==null||I.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:f}))};var nC7=function(){};
nC7.prototype.openPopup=function(r,f,I,C){var Y=this,V;return _.x(function(S){if(!Y.container)return S.return();V={openPopupAction:{popup:f,popupType:I,uniqueId:r}};return S.return(Y.container.handleOpenPopupAction(V,C))})};
nC7.prototype.closePopup=function(r){this.container&&this.container.closePopup(r)};var dT2=function(){this.openTunnels=new Map},m$K=function(r,f,I){if(HuB(I)){I={handleEvent:function(S){f&&!f.closed&&typeof f.postMessage==="function"&&S&&S.origin&&S.source===f&&S.data&&S.data.action==="gcl_setup"&&f.postMessage({action:"gcl_transfer",
gadSource:2},S.origin)}};
for(var C=_.E(r.openTunnels),Y=C.next();!Y.done;Y=C.next()){var V=_.E(Y.value);Y=V.next().value;V=V.next().value;if(Y.closed)try{window.removeEventListener("message",V),r.openTunnels.delete(Y)}catch(S){_.Fo(S)}}f&&r.openTunnels.size<15&&(r.openTunnels.set(f,I),window.addEventListener("message",I))}};var zgi=function(){this.clientParams=new Map},yEC=function(r){for(var f=_.E(r.clientParams.keys()),I=f.next();!I.done;I=f.next())I=I.value,I.startsWith("yt-mini-app-share")&&r.clientParams.delete(I)};var M32=function(r,f){_.Mu.call(this);var I=this;this.shortsController=r;this.storeWithShorts=f;r=_.wj(this.storeWithShorts,_.UwB,function(C){if(C){var Y,V=(Y=I.shortsController.getRoot())==null?void 0:Y.getPlayer(),S;(Y=(S=I.shortsController.alternativePlayerContainerElement)==null?void 0:S.getPlayerContainer())&&(V==null||V.appendTo(Y))}else{var h;S=(h=I.shortsController.alternativePlayerContainerElement)==null?void 0:h.getPlayerContainer().querySelector("#player");Y=I.shortsController.activeIndex;
(h=(V=I.shortsController.getRoot())==null?void 0:V.querySelector('ytd-reel-video-renderer[id="'+Y+'"] #player-container'))&&(S==null||S.appendTo(h,void 0,!0))}});
this.addOnDisposeCallback(r)};
_.t(M32,_.Mu);var DC=function(r,f,I,C,Y){var V=this;this.storeWithShorts=r;this.ephemeralResponseStore=f;this.store=I;this.innertubeTransportService=C;this.innertubeTransportLoader=Y;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.XA(_.xU);this.isShortsPipActive=_.XA(_.hH);this.nextReelVe=_.pQ(56921);this.prevReelVe=_.pQ(56922);this.backButtonVe=_.pQ(22156);this.TEST_ONLY={getActiveModules:function(){return V.activeModules}}},eX4,JI4,gCU;
DC.prototype.initOrDisposeActiveModules=function(r){r?this.activeModules.push(new M32(this,this.storeWithShorts)):(_.GZ(this.activeModules),this.activeModules.length=0)};
DC.prototype.getRoot=function(){return this.rootElement};
DC.prototype.setActiveIndex=function(r){this.activeIndex=r};
_.t9X=function(r,f){var I,C,Y,V,S,h;return _.x(function(w){switch(w.nextAddress){case 1:return I=new I0,(C=I.JSC$11814_getStoreKey(f))&&r.ephemeralResponseStore.has(C)?_.b(w,r.ephemeralResponseStore.get(C),7):_.b(w,gCU(r,f),4);case 4:Y=w.yieldResult;if(!C){w.jumpTo(3);break}V=kZ(Y,3600);return _.b(w,r.ephemeralResponseStore.put(C,new _.DL(V)),3);case 7:Y=(S=w.yieldResult)==null?void 0:_.lO(S);case 3:return Y.replacementEndpoint&&(h=_.F(Y.replacementEndpoint,_.xO))&&Y.sequenceContinuation&&(h.sequenceParams=
Y.sequenceContinuation),w.return(Y)}})};
eX4=function(r,f){f=(new CL).JSC$11814_getStoreKey(f);return!!f&&r.ephemeralResponseStore.has(f)};
JI4=function(r,f,I){var C,Y,V,S,h;_.x(function(w){if(w.nextAddress==1){C=new CL;Y=C.JSC$11814_getStoreKey(f);if(!Y)return w.return();if(I.reelWatchSequenceResponse)return V=kZ(I.reelWatchSequenceResponse,3600),r.ephemeralResponseStore.put(Y,new _.DL(V)),w.jumpTo(0);if(!r.ephemeralResponseStore.has(Y))return w.jumpTo(0);h=I;return _.b(w,r.ephemeralResponseStore.get(Y),4)}h.reelWatchSequenceResponse=(S=w.yieldResult)==null?void 0:_.lO(S);_.wO(w)})};
gCU=function(r,f){var I=I===void 0?{}:I;var C,Y,V;return _.x(function(S){switch(S.nextAddress){case 1:if(r.innertubeTransportService){C=r.innertubeTransportService;S.jumpTo(2);break}if(!r.innertubeTransportLoader){_.eH(Error("fj"));S.jumpTo(2);break}return _.b(S,r.innertubeTransportLoader(),4);case 4:C=S.yieldResult;case 2:return _.b(S,(Y=C)==null?void 0:_.mC(Y,f,I),5);case 5:return V=S.yieldResult,S.return(V)}})};
_.OC.Object.defineProperties(DC.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
DC[ZB]=[zXX,_.uQ,Ed,_.ZY(_.pJ),_.ZY(NNs)];_.aU1=new _.Go("STORAGE_MANAGER_TOKEN");var UY$=new Set(["touchmove","scroll"]);var X4B=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},NB3;
X4B.prototype.enqueue=function(r,f){f===1?this.currentPersistentToast=r:this.queue.push(r);this.openToast()};
X4B.prototype.openToast=function(){var r;(r=this.currentToast)!=null&&r.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.$T6=new _.Go("TOAST_MANAGER_TOKEN");var F36;_.PV7=_.Hc(function(r){return _.p("basic-content-view-model",{class:_.qd("ytBasicContentViewModelHost",_.JG(r.className))},_.p(_.M,{cond:function(){return r.data().headline},
then:function(f){return _.p("div",{class:"ytBasicContentViewModelHeadline"},_.p(_.wW,{text:f}))}}),_.p(_.pz,{each:function(){return r.data().paragraphs||[]},
keyBy:"INDEX"},function(f){return _.p("div",{class:"ytBasicContentViewModelParagraph"},_.p(_.M,{cond:function(){var I=f();return!!(I.header||I.customHeader||I.headline)},
then:function(){return _.p(F36,{paragraph:f})}}),_.p(_.M,{cond:function(){return f().asset||f().text},
then:function(){return _.p("div",{class:"ytBasicContentViewModelParagraphContent"},_.p(_.M,{cond:function(){return f().asset},
then:function(I){return _.p("div",{class:"ytBasicContentViewModelParagraphAsset"},_.p(_.X1,{data:I},{contentPreviewImageViewModel:_.Oq}))}}),_.p(_.M,{cond:function(){return f().text},
then:function(I){return _.p("div",{class:"ytBasicContentViewModelParagraphText"},_.p(_.wW,{text:I}))}}))}}))}))},"ee");
F36=_.Hc(function(r){var f=r.paragraph;return _.p(_.B9,null,_.p(_.M,{cond:function(){return f().headline},
then:function(I){return _.p(_.wW,{text:I,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.p(_.X1,{data:function(){return f().header||f().customHeader}},{sectionHeaderViewModel:function(I){return _.p(_.BA,{data:I.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"fe");var TB2=_.Hc(function(r){return _.p("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.p(_.M,{cond:function(){return r.expanded()},
then:function(){return _.p("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.p("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.p(_.M,{cond:function(){return r.data().expandedTitleImage},
then:function(f){return _.p("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.p(_.J3,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:f}))}}),_.p("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.p("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.p(_.wW,{text:function(){return r.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.p(_.wW,{text:function(){return r.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.p(_.wW,{text:function(){return r.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.p("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.p(_.X1,{data:function(){return r.data().infoButton}},{buttonViewModel:_.LF}),_.p(_.X1,{data:function(){return r.data().collapseButton}},{buttonViewModel:function(f){return _.p(_.LF,{data:f.data,
onClick:function(){var I;(I=r.expandedCallback)==null||I.call(r,!1)}})}})))},
else:function(){return _.p(t3Y,Object.assign({},r))}}))},"ge"),c_B=_.Hc(function(r){return _.p("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.p(_.M,{cond:function(){return r.data().collapsedLabelImage},
then:function(f){return _.p("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.p(_.J3,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:f,alt:""}))}}),_.p(_.wW,{text:function(){return r.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"he"),t3Y=_.Hc(function(r){var f=_.IC(function(){var I;
return void((I=r.expandedCallback)==null?void 0:I.call(r,!0))});
return _.p("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":f},_.p("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.p(_.M,{cond:function(){return r.data().collapsedImage},
then:function(I){return _.p("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.p(_.J3,{width:16,height:16,data:I,alt:""}))}}),_.p(_.M,{cond:function(){return r.data().showLeadingCollapsedLabel},
then:function(){return _.p(c_B,Object.assign({},r))}}),_.p("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.p(_.wW,{text:function(){return r.data().collapsedTitle}}))),_.p("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.p(_.M,{cond:function(){return!r.data().showLeadingCollapsedLabel},
then:function(){return _.p(c_B,Object.assign({},r))}}),_.p(_.X1,{data:function(){return r.data().infoButton}},{buttonViewModel:_.LF}),_.p(_.X1,{data:function(){return r.data().expandButton}},{buttonViewModel:function(I){return _.p(_.LF,{data:I.data,
onClick:function(){var C;(C=r.expandedCallback)==null||C.call(r,!0)}})}})))},"ie");var W3B=_.Hc(function(r){var f=_.E(_.YZ(function(){return r.data().initiallyExpanded})),I=f.next().value,C=f.next().value,Y,V=(Y=_.a().resolve(_.ZY(_.cI)))==null?void 0:Y(),S=function(){var h=r.data().colorData;
if(h)return V?h==null?void 0:h.darkColorPalette:h==null?void 0:h.lightColorPalette};
return _.p("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.lB({"background-color":function(){var h=S();return(h==null?0:h.section2Color)?_.g_(h.section2Color):""}})},_.p(_.X1,{data:function(){return r.data().header}},{expandableMetadataHeaderViewModel:function(h){return _.p(TB2,{data:h.data,
expanded:function(){return!!I()},
expandedCallback:function(w){C(w)}})}}),_.p(_.M,{cond:function(){return I()},
then:function(){return _.p("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.p(_.X1,{data:function(){return r.data().expandedContent}},{horizontalShelfViewModel:function(h){return _.p(_.Xk,{data:h.data,
includeMargin:!0,forceNarrowLayout:!0,palette:S})},
videoSummaryContentViewModel:function(h){return _.p(xZq,{data:h.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(h){return _.p(_.Z2,{data:h.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(h){return _.p(_.PV7,{data:h.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.p(_.X1,{data:function(){return r.data().expandedBottomButtons}},{buttonViewModel:function(h){return _.p("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.p(_.LF,{data:h.data}))}}))}}))},"je");var L32=_.Hc(function(r){var f=r.text;var I=r.marqueeSpacing;var C=r.scrollDelay;var Y=r.scrollDuration;var V=r.enableMarqueeScroll;r=r.large;var S=_.E(_.ld(!1,void 0,"kfNqfd")),h=S.next().value,w=S.next().value,n=_.E(_.ld(0,void 0,"bYgZbf"));S=n.next().value;var d=n.next().value,z=_.yy();n=_.yy();var g=_.yy(),X=_.a().resolve(_.Lv);_.az(function(){if(V()){var m=g.value.getBoundingClientRect().width,v=z.value.getBoundingClientRect().width;if(m>v){var O=(X==="ltr"?-1:1)*(m+(I?I():16));Promise.resolve().then(function(){w(!0);
d(O)})}}});
var P={},W={};return _.p("marquee-scroll",{class:_.qd("ytMarqueeScrollHost",(P.ytMarqueeScrollHostLarge=r,P)),el:z},_.p("div",{id:"marquee-scroll-inner-container",class:_.qd("ytMarqueeScrollInnerContainer",(W.ytMarqueeScrollAnimationEnabled=function(){return h()},W)),
el:n,style:_.lB({gap:I?(0,_.d6)(I):"16px","animation-duration":Y?rfV(Y):"16s","animation-delay":C?rfV(C):"3s","--marquee-translate":(0,_.d6)(S)})},_.p("span",{el:g,dir:"auto"},_.p(_.wW,{text:f,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.p(_.M,{cond:h,then:function(){return _.p("span",{"aria-hidden":"true",dir:"auto"},_.p(_.wW,{text:f,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"ke");_.mTY=_.Hc(function(r){var f=r.data;var I=r.overlayDensity;r=_.IC(function(){f().onTapCommand&&_.F2(f().onTapCommand);return!1});
var C=_.jO(),Y={};return _.p("reel-sound-metadata-view-model",{class:_.qd("ytReelSoundMetadataViewModelHost",(Y.ytReelSoundMetadataViewModelHostLarge=function(){return(I==null?void 0:I())===1},Y)),
"on:click":r,tabindex:0,role:"button","on:keydown":C},_.p("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.p(_.M,{cond:function(){return f().musicIcon},
then:function(V){return _.p(_.J3,{data:V,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.p("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.p(L32,{text:function(){return f().soundMetadata},
enableMarqueeScroll:function(){return!!f().enableMarqueeScroll},
large:function(){return(I==null?void 0:I())===1}}))))},"le");var egp,J_i,rg,Rgd,K3d,i8d,sDU,UT7;egp=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];J_i=_.Bw("wil_icon_max_concurrent_fetches",Infinity);
rg=function(r,f,I){var C=this;this.iconSet=r;this.appDirection=f;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Yq.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.N("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.N("wil_icon_network_first");this.renderWhenIdle=_.N("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.N("wil_icon_load_immediately");this.isPurging=!1;r=function(){C.cacheStorageAvailable&&(C.cacheStorageAsync=_.Yq.caches.open("yt-icons").then(function(V){return C.cacheStorageSync=V}).catch(function(){C.cacheStorageAvailable=!1}))};
I=(I==null?void 0:I())||{};I=_.E(Object.entries(I));for(f=I.next();!f.done;f=I.next()){var Y=_.E(f.value);f=Y.next().value;Y=Y.next().value;Y=EQ(Y);jDi(Y);this.iconCache[f]=Y.cloneNode(!0)}this.isPurging=H8s(this);this.isPurging instanceof Promise?this.isPurging.then(r):r()};
_.E5K=function(r,f){var I=r.resolveIcon(f);return I?r.renderingMode===1?i8d(r,I,r.renderingMode):(f=r.iconCache[I.url])?(f=f.cloneNode(!0),Rgd(r,f),i8d(r,I,r.renderingMode,f)):_.vC6(r,I).then(function(C){var Y=C?0:1;Rgd(r,C);return i8d(r,I,Y,C)}):(_.PR(new _.nf("Icon not found",{iconShape:f})),function(){})};
Rgd=function(r,f){if(f){r.counter+=1;r="_yt"+r.counter;f=[f].concat(_.Na(f.getElementsByTagName("*")));f=_.E(f);for(var I=f.next();!I.done;I=f.next())if(I=I.value,I.tagName==="style"&&I.textContent)I.textContent=K3d(I.textContent,r,!0);else for(var C=_.E(I.attributes),Y=C.next();!Y.done;Y=C.next()){Y=Y.value;Y.name==="id"&&(Y.value+=r);["mask","fill","clip-path"].includes(Y.name)&&(Y.value=K3d(Y.value,r));if(Y.name==="style"){var V=I.style;try{V.cssText=K3d(V.cssText,r,!0)}catch(d){var S=void 0,h=
void 0,w=void 0,n=void 0;fS({error:((S=d)==null?void 0:(w=(h=S).toString)==null?void 0:w.call(h))||"",el:I.outerHTML,style:!!V,cssText:(n=V)==null?void 0:n.cssText})}}Y.name==="xlink:href"&&(Y.value=Y.value.replace(/#(.*)/,"#$1"+r))}}};
K3d=function(r,f,I){var C=/url\(["']?#(.*?)["']?\)/;(I===void 0?0:I)&&(C=/url\(["']?#(.*?)["']?\)/g);return r.replace(C,"url(#$1"+f+")")};
i8d=function(r,f,I,C){return function(Y,V){var S=Object.assign({},{iconColor:"currentcolor",iconWidth:f.size+"px",iconHeight:f.size+"px",iconDisplay:"block"},V);V=_.wL("DIV");var h=S.iconColor,w=S.iconFilter;S="width: "+S.iconWidth+"; height: "+S.iconHeight+"; display: "+S.iconDisplay+";";w&&(S+=" filter: "+w+";");I===0&&(S+=" fill: "+h+";");I===1&&(w=f.url,S+=" -webkit-mask: url("+w+") no-repeat center / cover; mask: url("+(w+") no-repeat center / cover; background-color: ")+h);f.allowMirroring&&
r.appDirection==="rtl"&&(S+=" transform: scale(-1, 1); transform-origin: center center;");V.setAttribute("style",S);I===0&&C&&V.appendChild(C);Y.appendChild(V)}};
_.vC6=function(r,f){var I,C,Y;return _.x(function(V){I=function(S){return cL(S)};
C=f.url;if(!y_s(C))throw Error("gj");Y=UT7(r,C);return V.return(Y.then(function(S){return S.clone().text()}).then(function(S){var h=I(S);
S=f.size;var w=_.wL("DIV");_.KK(w,h);h=_.bE(w.firstElementChild!==void 0?w.firstElementChild:_.z18(w.firstChild,!0));S=jDi(h,S);r.iconCache[C]=S.cloneNode(!0);delete r.responsePromises[C];return S}).catch(function(){}))})};
sDU=function(r){var f,I=(f=r.requestAninmationFrameResolver)==null?void 0:f.promise;I||(r.requestAninmationFrameResolver=new _.uX,I=r.requestAninmationFrameResolver.promise,_.Yq.requestAnimationFrame(function(){var C;(C=r.requestAninmationFrameResolver)==null||C.resolve();r.requestAninmationFrameResolver=null}));
return I};
UT7=function(r,f){var I,C;return _.x(function(Y){if(Y.nextAddress==1)return r.waitForAnimationFrame?_.b(Y,sDU(r),2):Y.jumpTo(2);I=r.responsePromises[f];I||(C=function(){var V,S,h;return _.x(function(w){switch(w.nextAddress){case 1:if(!r.cacheStorageAvailable){V=void 0;w.jumpTo(2);break}if(S=r.cacheStorageSync){w.jumpTo(3);break}return _.b(w,r.cacheStorageAsync,4);case 4:S=w.yieldResult;case 3:V=S;case 2:return h=V,r.isNetworkFirstStrategy?w.return(r.fetchAndUpdateCache(f,h).catch(r.getCacheStorageResponse.bind(r,
f,h))):w.return(r.getCacheStorageResponse(f,h).catch(r.fetchAndUpdateCache.bind(r,f,h)))}})},I=r.renderWhenIdle?new Promise(function(V,S){_.dp(_.F_,function(){C().then(V).catch(S)},10)}):C(),r.responsePromises[f]=I);
return Y.return(I.catch(function(V){delete r.responsePromises[f];fS({error:(V==null?0:V.toString)?V.toString():"",url:f});throw V;}))})};
rg.prototype.fetchAndUpdateCache=function(r,f){var I=this;return _.x(function(C){return C.return(O81(I,r).then(function(Y){oCi(I,r,Y,f);return Y}))})};
var O81=function(r,f){var I;return _.x(function(C){if(r.numFetches<J_i)return r.numFetches+=1,C.return(QD6(r,f).finally(function(){--r.numFetches;if(Object.keys(r.queuedResponseResolvers).length){var Y=Object.keys(r.queuedResponseResolvers)[0],V=r.queuedResponseResolvers[Y];delete r.queuedResponseResolvers[Y];V.resolve(O81(r,Y))}}));
I=new _.uX;r.queuedResponseResolvers[f]=I;return C.return(I.promise)})},QD6=function(r,f,I){I=I===void 0?2:I;
var C;return _.x(function(Y){C={credentials:"same-origin",priority:"low"};return Y.return(_.Yq.fetch(f,C).then(function(V){return V.ok?V:Promise.reject(Error("hj`"+V.status+"`"+V.statusText))}).catch(function(V){if(I>0)return QD6(r,f,I-1);
throw V;}))})},oCi=function(r,f,I,C){_.x(function(Y){return C?Y.return(new Promise(function(V){_.dp(_.F_,function(){var S,h;
return _.x(function(w){switch(w.nextAddress){case 1:if(!r.isNetworkFirstStrategy){S=void 0;w.jumpTo(2);break}return _.b(w,C.match(f).catch(function(){}),3);
case 3:S=w.yieldResult;case 2:if(h=S){w.jumpTo(4);break}return _.b(w,C.put(f,I.clone()).catch(function(n){fS({error:(n==null?0:n.toString)?n.toString():"",url:f})}),4);
case 4:V(),_.wO(w)}})},50)})):Y.return()})};
rg.prototype.getCacheStorageResponse=function(r,f){return _.x(function(I){return f?I.return(f.match(r).then(function(C){return C&&C.ok?C:Promise.reject()})):I.return(Promise.reject())})};
var jDi=function(r,f){f===void 0||r.getAttribute("viewBox")||r.setAttribute("viewBox","0 0 "+f+" "+f);r.setAttribute("focusable","false");r.setAttribute("aria-hidden","true");try{r.style.pointerEvents="none",r.style.display="inherit",r.style.width="100%",r.style.height="100%"}catch(Y){var I;fS({error:((I=Y)==null?0:I.toString)?Y.toString():""});try{r.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(V){var C;fS({error:((C=V)==null?0:C.toString)?V.toString():
""})}}return r},y_s=function(r){for(var f=_.E(egp),I=f.next();!I.done;I=f.next())if(r.startsWith(I.value)&&r.endsWith(".svg"))return!0;
return!1};
rg.prototype.resolveIcon=function(r){return this.iconSet.resolveIcon(r)};
var fS=function(r){_.t7(new _.nf("Error in IconManager",r))},H8s=function(r){if(_.N("wil_icons_cache_purge_killswitch"))return!1;
try{var f=_.Yq.localStorage}catch(V){return!1}if(!f||!r.cacheStorageAvailable)return!1;var I=function(V){try{var S;(S=f)==null||S.setItem("yt-icons-last-purged",V.toString())}catch(w){var h;fS({error:((h=w)==null?0:h.toString)?w.toString():""})}},C=Number(f.getItem("yt-icons-last-purged"));
if(!C)return C=new Date,C=C.setDate(C.getDate()-Math.floor(Math.random()*90+1)),I(C),!1;if(function(V,S){V=new Date(V);S=new Date(S);return S.getMonth()-V.getMonth()+12*(S.getFullYear()-V.getFullYear())}(C,Date.now())<3)return!1;
try{return _.Yq.caches.delete("yt-icons").then(function(V){V&&I(Date.now());return V}).catch(function(){return!1}).finally(function(){r.isPurging=!1})}catch(V){var Y;
fS({error:((Y=V)==null?0:Y.toString)?V.toString():""});return!1}};
rg[ZB]=[EW4,_.Lv,_.ZY(hCV)];_.Ig=function(r,f){this.iconManager=r;this.iconsToFetch=f};
_.Ig[ZB]=[_.Bc,_.ZY(x9q)];var A_s=function(r,f,I){this.requestKey=r;this.x2r=f;this.pmc=I;this.yVM=function(){return new XMLHttpRequest};
this.ykU=void 0;this.yyA=[]};
A_s.prototype.getLatestChallengeResponse=function(){return this.pmc};
var z4s=function(r,f,I){var C,Y,V,S;return _.x(function(h){if(h.nextAddress==1){_.al("attestation_challenge_fetch");_.Xc("att_fs",void 0,"attestation_challenge_fetch");if(!r.ykU)throw new _.$k(9,"Missing fetcher");return _.b(h,r.ykU(f,I),2)}C=h.yieldResult;V=(Y=C)==null?void 0:Y.bgChallenge;if(!V)throw new _.$k(15,"Missing field");r.pmc=C;r.yyA.forEach(function(w){w(C)});
S=Zb$(V);_.Xc("att_fc",void 0,"attestation_challenge_fetch");n6$("attestation_challenge_fetch");return h.return(S)})},yo8=function(r,f){var I,C,Y,V,S;
return _.x(function(h){switch(h.nextAddress){case 1:I=new CX(100,3E5,.25,2),C=void 0;case 2:if(!(I.currBackoffCount_<10)){h.jumpTo(4);break}_.l_(h,5);if(!(I.currBackoffCount_>0)){h.jumpTo(7);break}return _.b(h,sAd(I.getValue()),7);case 7:return _.b(h,Z8p(r,f),9);case 9:return Y=h.yieldResult,h.return(Y);case 5:V=_.ha(h);V instanceof _.$k?C=V:(S=V instanceof Error?V.message:"Unknown",C=new _.$k(9,S));TnT(I);h.jumpTo(2);break;case 4:if(C)throw C;throw new _.$k(9,"Unknown error");}})},Z8p=function(r,
f){f=l88(Vj8(new YZU,f),r.requestKey);
var I=new _.uX,C=r.yVM();C.open("POST",r.x2r);C.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");C.setRequestHeader("Content-Type","application/json+protobuf");C.onload=function(){if(_.U7K(C)){var Y=duV(C.responseText);I.resolve(Y)}else I.reject(new _.$k(_.rRm(_.DY(C)),C.statusText))};
C.onerror=function(){I.reject(new _.$k(_.rRm(_.DY(C)),C.statusText))};
C.send(f.serialize());return I.promise};var k4i=function(r){this.networkStatusManager=r;this.isDownloaded=AzK===void 0?function(){return!1}:AzK;
this.isReady=!1;this.uLb=G46(this)},G46=function(r){var f;
return _.x(function(I){if(I.nextAddress==1)return _.b(I,jZE(),2);if(I.nextAddress!=3)return f=I.yieldResult,_.b(I,ijD(f),3);r.mR=I.yieldResult;odu(r.mR).then(function(){r.isReady=!0});
return I.return(r.mR)})},BBq=function(r,f,I){r.mR?(r=r.mR.cI({mF:I,
h9B:!0,sZA:!0}),f.serviceIntegrityDimensions={poToken:r}):_.Fo(Error("ij"))};
k4i.prototype.processContext=function(r){var f=this;if(!r.input.match(_.yC(onB)))return _.Kl();var I=r.innerTubeRequest,C=I.videoId;return!C||this.isDownloaded(I)||this.networkStatusManager&&!this.mR&&!this.networkStatusManager.isNetworkAvailable()?_.Kl():this.mR?this.isReady?(BBq(this,I,C),_.Kl()):new v_(odu(this.mR).then(function(){BBq(f,I,C)})):new v_(this.uLb.then(function(Y){return _.x(function(V){if(V.nextAddress==1)return _.b(V,odu(Y),2);
BBq(f,I,C);_.wO(V)})}))};var qsd=new _.Go("WEB_PO_CONTEXT_PROCESSOR");var uX6=function(r,f){var I=this;this.euB=0;var C;this.vCK=(C=f==null?void 0:f.vCK)!=null?C:window;this.networkStatusManagerPromise=f==null?void 0:f.networkStatusManagerPromise;var Y;this.requestKey=(Y=f==null?void 0:f.requestKey)!=null?Y:_.qC("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var V;this.qqW=(V=f==null?void 0:f.qqW)!=null?V:function(w){return new Ld(w)};
var S;C=(S=f==null?void 0:f.f2f)!=null?S:function(w,n,d){return new A_s(w,n,d)};
this.bgChallenge=Zb$(r.bgChallenge);this.ttlSeconds=Gxw(BS(r.challenge||""));this.oo=C(this.requestKey,_.N("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Yq.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",r);OuR(this.oo);var h;this.yHU=(h=f==null?void 0:f.yHU)!=null?h:function(w){_.S$(I.vCK.document,"visibilitychange",function(){I.vCK.document.visibilityState===
"visible"&&w()})}},rU2=function(r){if(!r.k9){var f={maxAttempts:5,
jJ6:r.ttlSeconds*1E3};QAK(r.vCK);r.k9=r.qqW({oo:r.oo,l0:{disable:_.N("html5_web_po_disable_remote_logging"),zl:"aGIf",yxl:iER("html5_web_po_experiment_ids"),v4h:_.N("wpo_dis_lfdms")?0:1E3,p0:_.N("wpo_gel_strz")?function(C){var Y=stV.get(C);Y||(Y=new U54(C),Y=new ED(Y),stV.set(C,Y));return Y}:void 0},
i61:f,jqW:r.bgChallenge,q5c:AfK});r.euB=Date.now();wk8(r.k9,function(){r.euB=Date.now()});
vaq(r.k9,function(){return _.x(function(C){return C.return(DTi(r))})});
var I=r.b0h.bind(r);r.networkStatusManagerPromise&&r.ttlSeconds>0&&r.networkStatusManagerPromise.then(function(C){C.listen("publicytnetworkstatus-online",I)});
r.yHU(I)}};
uX6.prototype.b0h=function(){if(Date.now()>this.euB+this.ttlSeconds*1E3){var r;(r=this.k9)==null||h4q(r)}};
var DTi=function(r){if(r.i2c)return r.i2c;if(!r.k9)throw Error("jj");r.i2c=new jX({k9:r.k9,oo:r.oo,edB:!0,onError:AfK});return r.i2c},Geq=function(r,f){r=new uX6(r,f);
rU2(r);DTi(r)};var CS=function(r,f){this.store=r;this.queue=[];this.supportsFocus=_.N("web_ephemeral_actions_focus");f==null||f.addEventListener("yt-navigate-start",this.reset.bind(this))};
CS.prototype.enqueue=function(r){var f=r.command,I=r.durationMs,C=r.elementToFocus;var Y=r.label;var V=r.elementToFocus;r.command?Y=_.VR("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:Y,shortcut:_.VR("SHIFT_PLUS_ENTER")}):V&&this.supportsFocus&&(r=Y+". "+_.VR("SHIFT_PLUS_ENTER")+" for more information.",Y=_.VR("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:Y,shortcut:_.VR("SHIFT_PLUS_ENTER")},r));I={announcement:Y,durationMs:I!=null?I:this.supportsFocus?8E3:void 0};f?I.command=f:C&&this.supportsFocus&&(C.classList.add("ephemeral-action-focusable-element"),
I.selector=C.tagName+".ephemeral-action-focusable-element");this.queue.push(I);fpU(this)};
CS.prototype.activate=function(r){var f=_.Vfm(this.store.getState());if(f){if(f==null?0:f.command)_.X2(f.command),this.store.dispatch(KJV(null));(f==null?0:f.selector)&&this.supportsFocus&&(f=document.querySelector(f.selector),_.EEu(f));r.preventDefault()}};
var fpU=function(r){if(!_.Vfm(r.store.getState())&&r.queue.length){var f=r.queue.shift();f&&(r.previousAnnouncement===f.announcement&&(f.announcement+="\u00a0"),r.store.dispatch(KJV(f)),r.previousAnnouncement=f.announcement,r.timeoutId=setTimeout(function(){if(f.selector&&r.supportsFocus){var I;(I=document.querySelector(f.selector))==null||I.classList.remove("ephemeral-action-focusable-element")}r.store.dispatch(KJV(null));fpU(r)},f.durationMs))}};
CS.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(KJV(null));this.queue.length=0;this.timeoutId=void 0};
CS[ZB]=[_.Nb,_.rQ];_.Y_=new _.Go("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var IpY=new _.Go("AUTH_SERVICE_TOKEN");var qYK=_.op(["about:blank"]),B$U;var C2p=new _.Go("API_IFRAME_TOKEN"),Y76=new _.Go("FETCH_FN_TOKEN"),lpi=new _.Go("PARSE_FN_TOKEN"),Vdq=new _.Go("WINDOW_REQUEST_TOKEN");var M43;M43=new _.Go("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.EiB=new _.Go("MISC_UI_SHARED_FLAGS_TOKEN");var S7V=function(){};
S7V.prototype.getFlag=function(r){if(r.configType!==2)throw Error("kj");return x67(r)};
var x67=function(r){switch(r.flagType){case "bool":return _.N(r.flagName);case "int":return _.uV(_.Bw(r.flagName));case "double":return _.Bw(r.flagName);case "string":return _.qC(r.flagName);case "int32_list":return iER(r.flagName);case "int64_list":return iER(r.flagName).map(function(f){return _.uV(f)});
case "string_list":return _.uk(r.flagName);default:throw Error("lj");}};var lb=function(r,f,I){f=f===void 0?{}:f;T9.call(this,I===void 0?"uninitialized":I);this.env=r;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}];f.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=f.shouldWaitOnAsyncImmediate)};
_.t(lb,T9);lb.prototype.init=function(r){var f=this,I;return _.x(function(C){if(C.nextAddress==1)return f.processPluginOptions.shouldWaitOnAsyncImmediate?_.b(C,r(f.env),2):(r(f.env),C.jumpTo(2));if(C.nextAddress!=4)return f.jobSet?_.b(C,f.jobSet.completedResolver.promise,4):C.jumpTo(4);I=_.mZ();I.parkOrScheduleJob(function(){f.transition("rendering")},10,"ci");
_.wO(C)})};
lb.prototype.initialRender=function(r){var f=this,I;return _.x(function(C){if(C.nextAddress==1)return f.processPluginOptions.shouldWaitOnAsyncImmediate?_.b(C,r(f.env),2):(r(f.env),C.jumpTo(2));if(C.nextAddress!=4)return f.jobSet?_.b(C,f.jobSet.completedResolver.promise,4):C.jumpTo(4);I=_.mZ();I.parkOrScheduleJob(function(){f.transition("rendered")},10,"cr");
_.wO(C)})};
lb.prototype.afterRenderImmediate=function(r){var f=this,I;return _.x(function(C){if(C.nextAddress==1)return f.processPluginOptions.shouldWaitOnAsyncImmediate?_.b(C,r(f.env),2):(r(f.env),C.jumpTo(2));if(C.nextAddress!=4)return f.jobSet?_.b(C,f.jobSet.completedResolver.promise,4):C.jumpTo(4);I=_.mZ();I.parkOrScheduleJob(function(){f.transition("after-render-deferred")},10,"carml");
_.wO(C)})};
lb.prototype.afterRenderDeferred=function(r){var f=this;return _.x(function(I){r(f.env);_.wO(I)})};var h12={},wB2=(h12.rendered={priority:0,callback:function(r){GL8(r.injector.resolve(zL))}},h12);var bqd=!1,V0K=0,IQd=null,lQ$=null;var pB2=new _.Go("NETWORK_SLI_TOKEN");var niq=function(r,f,I,C){this.networkSli=r;this.fetchFn=f;this.parseFn=I;this.requestFn=C};
niq.prototype.fetch=function(r,f,I){var C=this,Y,V,S;return _.x(function(h){Y=d6s(C,r,f);S=(V=C.fetchFn)!=null?V:fetch;return h.return(S(Y).then(function(w){return C.handleResponse(w,I)}).catch(function(w){_.t7(w);
if((I==null?0:I.expectJsonStrict)&&w instanceof qA&&w.errorType===1)return Promise.reject(w)}))})};
var mHU=function(r,f,I,C){var Y,V,S,h,w,n;return _.x(function(d){switch(d.nextAddress){case 1:return Y=d6s(r,f,I),_.l_(d,2),_.b(d,fetch(Y),4);case 4:V=d.yieldResult;_.Hd(d,3);break;case 2:throw _.ha(d),new qA(2,"Failed to parse streaming response",Y.url);case 3:if(!V.redirected&&!V.ok)throw(S=r.networkSli)==null||S.failure(),new _.nf("Streaming fetch request not ok",Y.url);if(!V.body)throw new _.nf("No response body in streaming response",Y.url);h=V.body.pipeThrough(new TextDecoderStream).getReader();
w=new _.Di;n={};return d.return(z1q(r,h,w,Pq$,n,C))}})},d6s=function(r,f,I){if(r.networkSli){var C=_.Cf(_.Ol(f,"key"))||"/UNKNOWN_PATH";
r.networkSli.start(C)}C=I;_.N("wug_networking_gzip_request")&&(C=G3R(I));var Y;return new ((Y=r.requestFn)!=null?Y:window.Request)(f,C)},z1q=function(r,f,I,C,Y,V){var S,h,w,n,d,z,g,X,P;
return _.x(function(W){if(W.nextAddress==1)return _.b(W,f.read(),2);S=W.yieldResult;h=S.value;if(w=S.done)return(n=r.networkSli)==null||n.success(),W.return(Y);try{d=I.parse(h)}catch(m){throw new qA(1,"Failed to parse streaming response",h);}if(d!=null)for(z=_.E(d),g=z.next();!g.done;g=z.next())X=g.value,C(Y,X),P=void 0,(P=V)==null||P(Y,X);return W.return(z1q(r,f,I,C,Y,V))})};
niq.prototype.handleResponse=function(r,f){var I,C=(I=this.parseFn)!=null?I:JSON.parse;I=r.text().then(function(Y){if((f==null?0:f.jspbResponseCtor)&&r.ok)return CrB(f.jspbResponseCtor,Y);Y=Y.replace(")]}'","");if((f==null?0:f.expectJsonStrict)&&Y)try{var V=C(Y)}catch(h){throw new qA(1,"JSON parsing failed after fetch");}var S;return(S=V)!=null?S:C(Y)});
r.redirected||r.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),I=I.then(function(Y){_.t7(new _.nf("Error: API fetch failed",r.status,r.url,Y));return Object.assign({},Y,{errorMetadata:{status:r.status}})}));
return I};
niq[ZB]=[_.ZY(pB2),_.ZY(Y76),_.ZY(lpi),_.ZY(Vdq)];var MdV=new _.Go("NETWORK_MANAGER_TOKEN");var giq=[1,2,4,8,16,30],XB7=function(r){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=r.maxTimeMs;this.maxFrameCount=r.maxFrameCount===void 0?Math.ceil(60*r.maxTimeMs/1E3):r.maxFrameCount;r=_.E(giq);for(var f=r.next();!f.done;f=r.next())this.brokenFrameSummarizers.push(new ap2(f.value/60*1E3))},Ns6=function(r){var f=r.frameCountInternal>=r.maxFrameCount;
return r.elapsedTimeMs>=r.maxTimeMs||f},$63=function(r){for(var f=[],I=_.E(r.brokenFrameSummarizers),C=I.next();!C.done;C=I.next())C=C.value,C=C.brokenFrameCount!==0?{severityMs:Math.round(C.targetFrameTimeMs),
eventCount:C.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(C.averageDurationBetweenEventsMs)}:void 0,C&&f.push(C);return{summaries:f,monitoringDurationMs:Math.round(r.elapsedTimeMs)}};
_.OC.Object.defineProperties(XB7.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 ap2=function(r){this.targetFrameTimeMs=r;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.OC.Object.defineProperties(ap2.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var F63=function(){};
F63.prototype.start=function(r,f){var I=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var C=new XB7({maxTimeMs:r});this.monitor=C;this.lastSummaryInternal=void 0;this.metadataToLog=f;return new Promise(function(Y){var V=function(S){if(S===void 0)I.stop(),Y(void 0);else if(I.monitor!==C)S=Object.assign({},$63(C),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),Y(S);else{var h=I.monitor;if(!Ns6(h)){h.frameCountInternal++;if(h.prevTime===void 0)h.startTime=
S;else for(var w=S-h.prevTime,n=_.E(h.brokenFrameSummarizers),d=n.next();!d.done;d=n.next()){d=d.value;var z=d.currTimeMs;d.currTimeMs+=w;w>d.targetFrameTimeMs+2&&(d.brokenFrameCount++,d.timeOfFirstBrokenFrameMs===void 0&&(d.timeOfFirstBrokenFrameMs=z),d.timeOfLastBrokenFrameMs=z)}h.prevTime=S}Ns6(I.monitor)?Y(I.stop()):_.F_.addJob(V,5,0)}};
_.F_.addJob(V,5,0)})};
F63.prototype.stop=function(r){if(!this.monitor)return this.lastSummaryInternal;var f=Object.assign({},$63(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(f.monitoringDurationMs){r=r!=null?r:this.metadataToLog;var I={droppedFramesSummary:f,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};r&&(I[r.type]=r.data);_.NW("manualSmoothnessMeasurement",I)}this.monitor=void 0;this.lastSummaryInternal=f;this.metadataToLog=void 0;return f};_.P2q=new _.Go("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var tdV;tdV=function(r){this.JSC$16198_expiringStorage=new zU(r)};
_.Tsq=function(r){if(_.EmU()&&(r=_.F0l(_.bh()+"::"+r)))return new tdV(r)};
tdV.prototype.set=function(r,f,I){I=I!==void 0?Date.now()+I:void 0;this.JSC$16198_expiringStorage.set(r,f,I)};
tdV.prototype.get=function(r){return this.JSC$16198_expiringStorage.get(r)};
tdV.prototype.remove=function(r){this.JSC$16198_expiringStorage.remove(r)};var cU6=new _.Go("SESSION_STORAGE");_.Vj=function(){};
_.Vj.getInstance=function(){var r=_.jH("ytglobal.storage_");r||(r=new _.Vj,_.OH("ytglobal.storage_",r));return r};
_.Vj.prototype.estimate=function(){var r,f,I;return _.x(function(C){r=navigator;return((f=r.storage)==null?0:f.estimate)?C.return(r.storage.estimate()):((I=r.webkitTemporaryStorage)==null?0:I.queryUsageAndQuota)?C.return(SFd()):C.return()})};
_.OH("ytglobal.storageClass_",_.Vj);var W6q=!1;var L61=_.op(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),m67=_.op(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var oWC={"/":_.h9,"/?feature=ytca":_.h9,"/feed/downloads":_.KDd};var nG=function(r,f,I){this.JSC$16211_upliftPromise=r;this.store=f;this.JSC$16211_persistentStorePromiseAccessor=I};
nG.prototype.shouldPreferLocalResponse=function(r){return r.browseId==="FEdownloads"||r.browseId==="FEsmart_downloads"&&_.N("kevlar_modern_downloads_page")?!0:!1};
nG.prototype.localInnertubeResponse=function(r){var f=this;return _.x(function(I){return r.browseId==="FEdownloads"?_.N("kevlar_modern_downloads_page")?I.return(e1Y(f)):I.return(JU1(f)):r.browseId==="FEsmart_downloads"&&_.N("kevlar_modern_downloads_page")?I.return(jYp(f)):I.return(Promise.reject(Error("nj")))})};
nG.prototype.canProvideFallbackResponse=function(){return!0};
nG.prototype.localFallbackInnertubeResponse=function(r){var f=this,I,C,Y;return _.x(function(V){switch(V.nextAddress){case 1:return _.b(V,f.JSC$16211_persistentStorePromiseAccessor(),2);case 2:I=V.yieldResult;if(r.browseId!=="SPaccount_downloads"||!I){V.jumpTo(3);break}return _.b(V,Q2m(I),4);case 4:if(C=V.yieldResult)return V.return(_.lO(C));case 3:return r.browseId==="FEwhat_to_watch"?V.return(Hq3(f)):(Y=_.N("web_offline_continuation_automatic_retry")||_.N("web_offline_continuation_retry_button"))&&
r.continuation?V.return(iqq(f)):V.return(R1B(f))}})};
var Hq3=function(r){var f;return _.x(function(I){if(I.nextAddress==1)return _.b(I,r.JSC$16211_upliftPromise,2);f=_.n$l(r.store.getState().entities);return f.length?I.return(vis(r,f)):I.return(R1B(r))})},JU1=function(r){var f,I;
return _.x(function(C){if(C.nextAddress==1)return _.b(C,r.JSC$16211_upliftPromise,2);if(C.nextAddress!=3)return f=K63([{offlineItemSectionRenderer:{}}]),_.b(C,yU6(r,f),3);I=C.yieldResult;I.onResponseReceivedActions=[Xn("REFRESH_DOWNLOADS")];return C.return(I)})},e1Y=function(r){var f,I,C,Y,V,S,h,w,n,d,z,g,X;
return _.x(function(P){if(P.nextAddress==1)return _.b(P,r.JSC$16211_upliftPromise,2);if(P.nextAddress!=3)return f=r.store.getState(),I=f.entities,C=_.z3(I),Y=_.Mj(I),V=_.Qxl(f),S=_.o$K(f),h=_.ALR(f),w=_.g$K(I),n=_.wG(C),d=_.gG(I),z={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.k2P(C,Y,w,V,S,n,d,h),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},g=_.VR("DOWNLOADS",void 0,"Downloads"),_.b(P,U6Y(r,z,g),3);X=P.yieldResult;
X.onResponseReceivedActions=[Xn("REFRESH_DOWNLOADS")];return P.return(X)})},jYp=function(r){var f,I,C,Y,V,S,h,w,n;
return _.x(function(d){if(d.nextAddress==1)return _.b(d,r.JSC$16211_upliftPromise,2);if(d.nextAddress!=3)return f=r.store.getState(),I=f.entities,C=_.z3(I),Y=_.wG(C),V=_.gG(I),S={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.qVu(C),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},h=_.VR("SMART_DOWNLOADS",void 0,"Smart downloads"),w=ZkB(Y,V),_.b(d,U6Y(r,S,h,w),3);n=d.yieldResult;n.onResponseReceivedActions=[Xn("REFRESH_DOWNLOADS")];
return d.return(n)})},R1B=function(r){var f,I;
return _.x(function(C){if(C.nextAddress==1)return _.b(C,Yw(r.JSC$16211_upliftPromise,r.store),2);f=C.yieldResult;I=K63([ULq(f)]);return C.return(yU6(r,I))})},iqq=function(r){var f,I,C,Y;
return _.x(function(V){if(V.nextAddress==1)return f={},I=r.store.getState().continuation.continuationCommand,_.nv(f,_.$Z,I),_.b(V,Yw(r.JSC$16211_upliftPromise,r.store,f,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);C=V.yieldResult;Y={};_.nv(Y,_.H9D,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:C}}}],targetId:"browse-feedFEwhat_to_watch"});return V.return({responseContext:{},onResponseReceivedActions:[Y]})})},K63=function(r){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:r}}}}]}}},vis=function(r,f){var I,C;
return _.x(function(Y){var V={contents:Np(f)};I=V&&V.contents?V:{};_.N("kevlar_modern_downloads_page")&&(I=Object.assign({},_.uOq(f),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));C={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:I}}}]}};return Y.return(yU6(r,C))})},yU6=function(r,f){var I,C;
return _.x(function(Y){if(Y.nextAddress==1)return _.b(Y,r.JSC$16211_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3)return I=Y.yieldResult,_.b(Y,VW(I),3);C=Y.yieldResult;return Y.return({responseContext:{},contents:f,topbar:C})})},U6Y=function(r,f,I,C){var Y,V;
return _.x(function(S){if(S.nextAddress==1)return _.b(S,r.JSC$16211_persistentStorePromiseAccessor(),2);if(S.nextAddress!=3)return Y=S.yieldResult,_.b(S,VW(Y),3);V=S.yieldResult;var h=S.return;var w=C;w=w===void 0?"":w;w={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:I}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.VR("SETTINGS",void 0,"Settings"),accessibilityText:_.VR("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:ol("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:w}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:I};
return h.call(S,{responseContext:{},contents:f,topbar:V,header:{pageHeaderRenderer:w}})})};var sYd=function(){this.moduleRegistry={};this.fetchCount=0};
sYd.prototype.isFetching=function(){return this.fetchCount>0};
var Rp=function(r,f){r.moduleRegistry[f.toString()]={asyncId:f,isFetching:!1};return r};
sYd.prototype.JSC$16222_loadModules=function(){for(var r=this,f=new Map,I=[],C=_.E(_.XE.apply(0,arguments)),Y=C.next();!Y.done;Y=C.next()){Y=Y.value;var V=this.moduleRegistry[Y];V?V.resolver?f.set(Y,V.resolver):(V.resolver=new _.uX,f.set(Y,V.resolver),I.push(V.asyncId),V.isFetching=!0):(V=new _.uX,f.set(Y,V),V.resolve(void 0))}I.length&&(this.fetchCount+=1,_.XZ(_.gJ.getMultipleAsync.apply(_.gJ,_.Na(I)).then(function(S){for(var h=0;h<I.length;h++){var w=S[h],n=r.moduleRegistry[I[h].toString()];n.isFetching=
!1;n.resolver.resolve(w)}}).catch(function(S){for(var h=_.E(I),w=h.next();!w.done;w=h.next()){w=w.value;
var n=r.moduleRegistry[w.toString()];n.resolver=void 0;n.isFetching=!1;f.get(w.toString()).reject(S)}}),function(){--r.fetchCount}));
return Promise.all([].concat(_.Na(f.values())).map(function(S){return S.promise}))};_.va=new _.Go("MODULE_REGISTRY_TOKEN");var Oq2={},oi2=(Oq2.rendered={priority:0,callback:function(r){a:{var f=void 0;try{var I;b:{if(_.xMK()){var C=_.$yK(_.bh()+"::pom");if(C){var Y=new Vb(C);break b}}Y=void 0}var V=(I=Y)==null?void 0:I.get("role_text");if(!V)break a;f={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:V}]}}}}}}catch(w){}f&&r.injector.resolve(_.Gg).resolveCommand(f)}try{var S=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(S){var h=JSON.parse(S);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
h&&r.injector.resolve(_.Gg).resolveCommand(h)}}catch(w){}}},Oq2);var QY1,AUi={},Zq6=(AUi.initialized={priority:10,callback:function(){QY1=FC()}},AUi.rendering={callback:function(r){var f;
return _.x(function(I){if(I.nextAddress==1)return _.b(I,QY1,2);f=I.yieldResult;if(!f.endpoint)throw Error("pj`"+_.Yq.location.href);ca(r,f);_.wO(I)})}},AUi);var G6i={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(_.Na(_.N("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(r){var f=r.stack;if(f.includes("chrome://")||f.includes("chrome-extension://")||r.message.includes("chrome-extension://")||f.includes("moz-extension://")||f.includes("local.adguard.org")||f.includes("auctioneer3.50million.club")||f.includes("youtubedownloader")||f.includes("youtube_home_page")||f.includes("is_youtube_video_no_longer_available")||
f.includes("switchScreenSizeHack")||f.includes("yt_main_big_banner.js")||f.includes("YouTubeCenter.js")||f.includes("/mytube.js")||f.includes("JSON.parseWrapper")||f.includes("/inj_js/common.js")||f.includes("firebug-lite")||f.includes(".repl.co/")||f.includes("linkfix")||f.includes("playAfterAd")||r.message.includes("Access is denied for this document")&&f.includes("<anonymous>")||r.fileName==="user-script"||r.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
f.includes("<anonymous>"))return!0;if(f.includes("https://www.youtube.com"))return!1;r=f.split("\n");if(!r.length)return!1;if(r.length<=3&&f.includes("s.onloadeddata"))return!0;f=0;for(var I=_.E(r),C=I.next();!C.done;C=I.next())C=C.value,(C.includes("https://")||C.includes("http://"))&&f++;return f/r.length>.95},
weight:0},{callback:function(r){return r.message==="Unknown Error"&&r.name.indexOf("NS_")===0},
weight:100},{callback:function(r){if(!_.Yp)return!1;var f=r.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||r.message.includes("available to complete this operation"),I=r.stack.includes("webcomponents")&&r.message==="Object doesn't support this action";r=r.message.includes("object that does not implement interface Element");return f||I||r},
weight:0},{callback:function(r){return r.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(r){return r.message==="Operation is not supported"&&(r.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(r){return r.stack.includes("eval code (eval (code:1:1)")||r.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(r){return r.message.includes("Permission denied")&&r.stack.includes("this.domHandler")?!0:r.name.includes("TypeError")&&r.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(r){if(!r.stack)return!1;var f=r.stack.trim().split("\n");f.length&&f[0].endsWith("Error: "+r.message)&&f.shift();f.length&&f[f.length-1].includes("at window.onerror (")&&f.pop();if(!f.length)return!0;if(r.message==="Script error.")return f[0].includes("www.youtube.com")||f.length>=2&&f[0].startsWith("at new")&&f[1].startsWith("at window.onerror");if(r.message==="Unexpected token")return!0;r=_.E(f);for(f=r.next();!f.done;f=r.next())if(f=f.value,!(f.includes("<anonymous>")||
f.startsWith("load@")||f.startsWith("global code@")||f.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(r){return r.message==="Cannot read property 'experiments'"&&r.stack.includes("/s/player/")},
weight:500},{callback:function(r){return r.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(r){return r.stack.includes("/embed.js")?(r.params&&r.params&&(r.params.name="56"),!0):!1},
weight:1},{callback:function(){var r;if(r=_.xp)r=/Chrome\/(\d+)/.exec(_.Mc()),r=(r?parseFloat(r[1]):NaN)>=66;return!(r||_.Sg&&_.Ev(65)||_.Wd&&_.Ev(12.1)||UH&&_.Ev(79))},
weight:500}]};var k67={},Bsq=(k67.initialized={priority:10,callback:function(r){r.injector.addProvider({provide:XsT,useValue:r.root});r.injector.addProvider({provide:iw6,useValue:$dq});r.injector.addProvider({provide:RlU,useValue:G6i});var f={};r.injector.addProvider((f.provide=vqq,f.useFactory=function(I,C){return function(){l7R(I,C)}},f[ZB]=[iw6,
RlU],f));r.injector.addProvider({provide:Y0,useClass:Y0})}},k67);var q76={},u32=(q76.initialized={priority:3,callback:function(){var r;if(r=dyc()){r=r.replace("/",".");var f=_.xI();f.set("tz",r);f.save();r=!0}else r=!1;r||(r=_.xI(),r.set("utco",-Math.floor((new Date).getTimezoneOffset())),r.save())}},q76);var D62={},rgd=(D62.initialized={priority:10,callback:function(r){r.injector.resolve(Y0).start();r=_.Wt();var f=_.mO("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.mO("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.mO("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.mO("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.wM(_.AAK(),{mainAppWeb:Object.assign({},r,{pageType:f})});_.wM(Ghc(),{mainAppWeb:Object.assign({},r,{pageType:f})});
_.wM(khK(),{mainAppWeb:r});_.wM(BiR(),{mainAppWeb:r});Vqg(function(){_.bO(khK(),"FAILURE");_.bO(BiR(),"FAILURE")});
N0K();$gR();Dzd()}},D62);var f$s={},I$7=(f$s.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Xc("dl"),_.mZ().processSignal("pcl");else{var r=function(){_.Xc("dl");_.mZ().processSignal("pcl");window.removeEventListener("load",r)};
window.addEventListener("load",r)}}},f$s);var Cr6={},YWY=(Cr6.rendering={priority:0,callback:function(){var r=_.mZ();r.parkOrScheduleJob(function(){r.processSignal("eocs")},10,"eor",5E3)}},Cr6);var l$d=function(){};
_.t(l$d,Fh);
l$d.prototype.resolveCommand=function(r,f){var I,C,Y,V,S,h,w,n;return _.x(function(d){Y=(I=_.F(r,_.zmB))==null?void 0:(C=I.dialog)==null?void 0:C.commentReplyDialogRenderer;if(!Y)throw new _.nf("No dialog in createCommentReplyDialogEndpoint");S=(V=f.form)==null?void 0:V.event;if(!S)throw new _.nf("Event not passed in when resolving command");h=_.E(S.composedPath());for(w=h.next();!w.done;w=h.next())if(n=w.value,n.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||n.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return n.showReplyDialog(Y),d.return();
_.wO(d)})};var Ey=function(r){this.pageRequestService=r;this.JSC$16237_prefetchCoordinator=$c2()};
_.t(Ey,Fh);Ey.prototype.resolveCommand=function(r){var f=this,I,C,Y,V;return _.x(function(S){if(S.nextAddress==1){I=_.F(r,B8T);if((C=I)==null||!C.taskId)throw Error("qj");Y=I.taskId;_.l_(S,2);return _.b(S,_.L53(f.pageRequestService,r,{},"").then(function(h){if(!h)throw Error("rj");},function(h){throw Error("sj`"+h);
}),4)}if(S.nextAddress!=2)return tK1(f.JSC$16237_prefetchCoordinator,Y),_.Hd(S,0);
V=_.ha(S);UN(f.JSC$16237_prefetchCoordinator,Y,V);_.wO(S)})};
Ey[ZB]=[$w];var ST=function(r){this.innertubeTransportService=r};
_.t(ST,Fh);ST.prototype.resolveCommand=function(r){var f=this,I,C;return _.x(function(Y){I=_.F(r,qw8);if(I.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||I.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")C=I.boolValue?2:1,_.Qk.getInstance().setState(C,!0,!0);return _.b(Y,_.mC(f.innertubeTransportService,r),0)})};
ST[ZB]=[_.pJ];var x_={},Va2=(x_.addToPlaylistEndpoint=O_(bp),x_.addToToastAction=O_(w4),x_.adsControlFlowOpportunityReceivedCommand=O_(G_),x_.captionLanguageSelectActionCommand=O_(Tu),x_.captionPickerEndpoint=O_(cC),x_.changeMiniAppPlayStateCommand=O_(pI),x_.changeTimelyActionVisibilityCommand=O_(hT),x_.channelCreationFormEndpoint=O_(Ve),x_.clearLocationCommand=O_(ww),x_.clearUrlParamCommand=O_(nI),x_.copyLinkCommand=O_(Jb),x_.copyTextEndpoint=O_(qH),x_.createCommentReplyDialogEndpoint=Dru(l$d),x_.createPlaylistServiceEndpoint=
O_(jY),x_.dismissDialogEndpoint=O_(zu),x_.entityUpdateCommand=O_(DJ),x_.feedbackEndpoint=O_(I3),x_.getAnswerCommand=O_(eC3),x_.getPaymentsClientTokenCommand=O_(n0),x_.getTranscriptEndpoint=O_(bq),x_.googlePaymentBillingCommand=O_(d4),x_.googlePaymentPurchaseManagerCommand=O_(zr),x_.hideEngagementPanelEndpoint=O_(Mq),x_.insertRichSectionCommand=O_(SY),x_.listMutationCommand=O_(x5),x_.logGtmCommand=O_(Eu),x_.notifyDropdownOptionSelectedCommand=O_(dw),x_.openAdAllowlistInstructionCommand=O_(_.kR),x_.openOnePickAddVideoModalCommand=
O_(HC),x_.persistSubscriptionsDisplayPreferencesCommand=O_(Uu),x_.pingingEndpoint=O_(BT),x_.playlistEditEndpoint=O_(R3),x_.playlistVotingRefreshPopupCommand=O_(vC),x_.refreshPanelEndpoint=O_(gw),x_.saveImageToDeviceEndpoint=O_(uW),x_.scrollToSectionEndpoint=Dru(JeU),x_.seekToVideoTimestampCommand=O_(WC),x_.selectCountryCommand=O_(su),x_.setCookieCommand=O_(Ou),x_.setLocalStorageCommand=O_(lq),x_.setPrefStorageEntryCommand=O_(Qe),x_.setSettingEndpoint=O_(ST),x_.sfvAudioItemPlaybackCommand=O_(LI),x_.shareImageCommand=
O_(Ab),x_.sharingProviderDataCommand=O_(Zq),x_.showCaptionLanguageSelectActionCommand=O_(mh),x_.showDialogCommand=O_(Nq),x_.showEngagementPanelEndpoint=O_($5),x_.showSheetCommand=O_(FM),x_.showTransientPlayerScrimOverlayCommand=O_(eY),x_.submitFormWithValidationFlowCommand=O_(lp),x_.talkToRecsDeselectCommand=O_(V7),x_.talkToRecsNextCommand=O_(E8),x_.talkToRecsSelectCommand=O_(SL),x_.talkToRecsUpdateTextCommand=O_(xF),x_.toggleEngagementPanelCommand=O_(PC),x_.undoFeedbackEndpoint=O_(Y5),x_.updateEngagementPanelContentCommand=
O_(tb),x_.updateUrlParamCommand=O_(p0),x_.verifyCommand=O_(Ve),x_.webNativeShareCommand=O_(Gu),x_.webSubmitFormCommand=O_(KI),x_.ACK_PLAYABLES_3P_DATA_CONSENT=O_(k5),x_.CANCEL_NAVIGATION=O_(BC),x_.COPY_SHARE_URL=O_(qq),x_.MINI_APP_EXIT_DIALOG_SEEN=O_(Dq),x_.MINI_APP_OPEN_URL=O_(up),x_.REQUEST_MINI_APP_FULLSCREEN=O_(r4),x_.RESUME_NAVIGATION=O_(f0),x_.SHARE_PLAYABLE_WITH_HIGH_SCORE=O_(IT),x_.TELL_US_WHY=O_(CI),x_);
_.N("web_enable_prefetching_videos_on_home")&&(Va2.prefetchWatchCommand=O_(Ey),Va2.registerTasksCommand=O_(ON));_.N("enable_share_panel_navigation_logging_fix_on_web")&&(Va2.shareEntityServiceEndpoint=O_(a3));var ZYD=Object.assign({},Va2);var EH3={},SW3=(EH3.initialized={priority:10,callback:clE},EH3);var xes={},hLB=(xes.initialized={callback:function(r){var f={},I={};zpm().install((f.document_disposed={callback:function(){_.N("finalize_all_timelines")?drl():Mo();Cjq("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.cpw();var C=r.injector.resolve(Y0);C.intervalId!==void 0&&(C.intervalId&&_.F_.cancelJob(C.intervalId),C.intervalId=void 0,--C.currentPartitionIndex,C=SNV(C),C>0&&j_3({mainAppWeb:_.Wt(),survivalSli:{partitionMinute:C,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));PgV(iR);Rx!=null&&
Rx.flush();Zx&&Zx.snapshotAndFlush();C=_.E(stV.values());for(var Y=C.next();!Y.done;Y=C.next())Y.value.snapshotAndFlush()}},f),(I.flush_logs={callback:function(){_.$l()}},I))}},xes);var wE1={},bjs=(wE1.rendered={priority:0,callback:function(){var r=new B53;r.increment("STARTED");if(_.Lz("LOGGED_IN")&&_.Lz("SERVER_VERSION")!=="test"&&_.Lz("SERVER_VERSION")!=="dev"&&!J_C()&&!egU()){r.increment("EXECUTING");var f=document.createElement("iframe");f.style.display="none";_.a$c(f,2,_.gn("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Lz("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(f);r.increment("DONE")}}},wE1);var pEY={},nH2=(pEY.rendered={callback:function(){$c2().resume()}},pEY);var de2={acknowledgeChannelTouStrikeCommand:FA(AT),addToPlaylistServiceEndpoint:FA(q$),addToPlaylistEndpoint:FA(q$),addUpcomingEventReminderEndpoint:FA(d7),browseEndpoint:FA(YP1),channelCreationFormEndpoint:FA(K0),channelCreationServiceEndpoint:FA(y7),claimLegacyYoutubeChannelEndpoint:FA(tT),clearSearchHistoryEndpoint:FA(Da),clearWatchHistoryEndpoint:FA(r7),commerceActionCommand:Pl($t),createBackstagePostEndpoint:FA(aT),createBroadcastCommand:FA(zG),createCommentEndpoint:FA(Hp),createCommentReplyEndpoint:FA(jL),
createLiveChatPollEndpoint:FA(M$),createPlaylistServiceEndpoint:FA(us),crossAccountChannelTransferEndpoint:FA(CM),deleteLiveChatMessageCommand:FA(g7),deletePlaylistEndpoint:FA(Dr),deleteVideoEndpoint:FA(nL),dismissalEndpoint:FA(Za),feedbackEndpoint:FA(Gr),flagEndpoint:FA(li),getAccountSwitcherEndpoint:FA(If),verifyCommand:FA(g4),getAccountsListInnertubeEndpoint:FA(VI),getCommentsFromInboxCommand:FA(jG),getDownloadActionCommand:FA(Uc),getFlowCommand:Pl(uq),getKidsBlocklistPickerCommand:FA(V5),getNotificationMenuEndpoint:FA(Eq3),
getPaymentInstrumentsParamsCommand:FA(Ws),getPaymentsClientTokenCommand:Pl($t),getPdgBuyFlowCommand:FA(kT),getReportFormEndpoint:FA(EN),getSearchInVideoCommand:FA(h5),getAnswerCommand:FA(xt),getSurveyCommand:FA(pL),getTranscriptEndpoint:FA(M_),getPostVideoPreviewEndpoint:FA(Nl),decorateMessageEndpoint:FA(XY),likeEndpoint:FA(U8),liveChatActionEndpoint:FA($T),liveChatEndpoint:FA(N$),liveChatItemContextMenuEndpoint:FA(af),liveChatPurchaseMessageEndpoint:FA(Fw),liveChatReplayEndpoint:FA(Xw),manageLiveChatUserEndpoint:FA(tp),
metadataUpdateCommand:FA(eG),moderateLiveChatEndpoint:FA(TG),modifyChannelNotificationPreferenceEndpoint:FA(v5),notificationOptOutEndpoint:FA(KM),openSuperStickerBuyFlowCommand:FA(P5),performCommentActionEndpoint:FA(mL),playlistEditEndpoint:FA(fL),playlistEditorEndpoint:FA(r9),profileCardCommand:FA(nM),recordNotificationInteractionsEndpoint:FA(yI),reelWatchEndpoint:FA(I0),refreshPanelEndpoint:FA(Oc),removeUpcomingEventReminderEndpoint:FA(c5),resolveLocationCommand:FA(mS),revealBusinessEmailCommand:FA(Tr),
searchEndpoint:FA(_.SP1),sendLiveChatMessageEndpoint:FA(W5),sendLiveChatVoteEndpoint:FA(LM),setSettingEndpoint:FA(s8),shareEntityServiceEndpoint:Pl(Q7),sharingProviderDataCommand:FA(bi),showEngagementPanelEndpoint:FA(of),showMoreDrawerCommand:FA(Ap),showSheetCommand:FA(Zr),showDialogCommand:FA(QI),subscribeEndpoint:FA(O8),transcriptSubmitCaptionCorrectionCommand:FA(zz),undoFeedbackEndpoint:FA(Bp),unsubscribeEndpoint:FA(oT),updateBackstagePostEndpoint:FA(FY),updateCommentEndpoint:FA(RT),updateCommentReplyEndpoint:FA(iq),
updateCommentsSettingsEndpoint:FA(vp),updateCreatorChannelInnertubeCommand:FA(Wp),updateKidsBlacklistEndpoint:FA(SD),updateEngagementPanelContentCommand:FA(GG),updatePdgFeatureEnablementCommand:FA(B5),updatedMetadataEndpoint:FA(Jp),validateChannelHandleCommand:FA(L0),updateChannelPageSettingsEndpoint:FA(cp),verifyAgeEndpoint:FA(ql),watchEndpoint:Pl(d9),whitelistEditEndpoint:FA(N_),ypcCancelRecurrenceEndpoint:FA(F5),ypcCompleteTransactionEndpoint:FA(Ps),ypcFixInstrumentEndpoint:FA(Tz),ypcGetCartEndpoint:FA(t5),
ypcGetOffersEndpoint:FA(cs),ypcHandleTransactionEndpoint:Pl(LL),ypcLogWalletAnalyticDataEndpoint:FA(mA),ypcOffersEndpoint:FA(eD),ypcPauseSubscriptionCommand:FA(J5),ypcRedeemCodeEndpoint:FA(jD),ypcResumeSubscriptionCommand:FA(Hs),ypcUpdateFopEndpoint:FA(Tz)},hx={},zLB=(hx.GET_ACCOUNT_MENU=FA(ls),hx.GET_NOTIFICATIONS_MENU=FA(VKs),hx.GET_NOTIFICATIONS_INBOX=FA(H5),hx.GET_UNSEEN_NOTIFICATION_COUNT=FA(Rf),hx.GET_USER_MENTION_SUGGESTIONS=FA($F),hx.LOAD_GUIDE=FA(ld6),hx.SUBMIT_FEEDBACK=FA(kF),hx),wg={},
Ma7=(wg.CONTINUATION_REQUEST_TYPE_BROWSE=FA(Pp),wg.CONTINUATION_REQUEST_TYPE_SEARCH=FA(w9),wg.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=FA(a0),wg.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=FA(fM),wg.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=FA(JT),wg.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=FA(eL),wg.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=FA(Yt),wg.CONTINUATION_REQUEST_TYPE_GET_PANEL=FA(sc),wg),gHq={player:_.N("web_streaming_player")?Pl(X5):Pl(d9),watchNext:FA(g9)},a$6={player:Pl(d9),reelItemWatch:FA(I0),
reelWatchSequence:FA(CL)},XE6={watchEndpoint:Pl(X5)},N26={commandEndpointMap:de2,signalEndpointMap:zLB,continuationEndpointMap:Ma7,watchEndpointMap:gHq,reelWatchEndpointMap:a$6,streamingEndpointMap:XE6};var $ed,Fo2,PrU,taY={disableAllTransitions:(Fo2=($ed=window).matchMedia)==null?void 0:(PrU=Fo2.call($ed,"(prefers-reduced-motion: reduce)"))==null?void 0:PrU.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var T2s=new _.Go("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.cg3=new _.Go("VIEW_TRANSITION_MANAGER_TOKEN");var Wo3=function(r){this.config=r;this.transitionTasksMap=new Map;r=_.E(r.transitionConfigs);for(var f=r.next();!f.done;f=r.next())f=_.E(f.value).next().value,this.transitionTasksMap.set(f,[])};
Wo3[ZB]=[T2s];var WaP={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 mg$=["videoPrimaryInfoRenderer","title"],eeR=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var Lo6;Lo6=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.med=_.Hc(function(r){r=_.jS(r,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var f=r.data,I=r.playlistData,C=r.expanded,Y=r.onExpandClick,V=r.isReadyToResume,S=function(){var d;return!((d=I())==null||!d.contents)},h=function(){var d=I();
return d&&d.totalVideos&&d.currentIndex!==void 0?d.currentIndex+1+" / "+d.totalVideos:""};
r=_.IC(function(){_.bb(_.a().resolve(_.iO))});
var w=_.IC(function(){S()&&Y&&Y()}),n={};
return _.p("ytd-miniplayer-info-bar",{class:_.qd("ytdMiniplayerInfoBarHost",(n.ytdMiniplayerInfoBarHasPlaylistData=S,n)),"on:click":w},_.p("div",{class:"ytdMiniplayerInfoBarContent"},_.p("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":r},_.p(_.wW,{text:function(){var d=f();var z=I();if(z==null?0:z.contents){var g;d=(g=_.nJm(z))==null?void 0:g.title}else d=d==null?void 0:d.miniplayerTitle;return jSu(d)},
noEndpoints:!0,ellipsisTruncate:!0})),_.p("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.p("h1",null,_.p(_.wW,{className:"ytdMiniplayerInfoBarSubtitleText",text:function(){var d=f();var z=I();d=V()?{simpleText:_.VR("CONTINUE_WATCHING",void 0,"Continue watching")}:(z==null?0:z.contents)?z.titleText:d==null?void 0:d.miniplayerSubtitle;return jSu(d)},
noEndpoints:!0,ellipsisTruncate:!0})),_.p(_.M,{cond:function(){return!!h()&&!V()},
then:function(){return _.p("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.p("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.p("span",null,h))}}),_.p(_.M,{cond:V,
then:function(){return _.p(tTs,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:Lo6})}}))),_.p(_.M,{cond:S,
then:function(){return _.p("div",{class:"ytdMiniplayerInfoBarExpand"},_.p(k4,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(d){Y&&(Y(),d.stopPropagation())}}},
iconName:function(){return C()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"me");var eL3;eL3=_.Hc(function(r){return _.p("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.p(k4,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:r.onTap}},
iconName:"yt-icons:close"}))},"ne");
_.Jg7=_.Hc(function(r){r=_.jS(r,{playabilityStatus:void 0,isDisabled:!1});var f=r.size,I=r.playabilityStatus,C=r.isDisabled,Y=_.yy();r=_.E(_.ld(void 0,void 0,"bJr0Se"));var V=r.next().value,S=r.next().value;r=_.XA(_.hH);var h=!1,w=function(){return f().height<=0};
_.az(function(){var g=f(),X=w(),P=V();P&&!X&&P.setInternalSize(g.width,g.height)});
_.Xl(function(){var g,X,P;return _.x(function(W){if(W.nextAddress==1){g=_.a().resolve(_.iO);X=g.getPlayerElement();if(!g.isMiniplayerActive()||!X||!Y.value)return W.return();X.appendTo(Y.value);return _.b(W,X.getPlayerPromise(),2)}P=W.yieldResult;P.setSizeStyle(!1,!0);S(P);_.wO(W)})});
_.$L(function(){n()});
_.az(function(){var g=V();if(g)if(C()){var X=g.getPlayerState();(h=X===-1||X===1||X===3)&&g.pauseVideo()}else n()});
var n=function(){if(h){h=!1;var g;(g=V())==null||g.playVideo()}},d=_.IC(function(){_.bb(_.a().resolve(_.iO))}),z={};
return _.p("ytd-miniplayer-player-container",{class:_.qd("ytdMiniplayerPlayerContainerHost",(z.ytdMiniplayerPlayerContainerHidden=w,z.ytdMiniplayerPlayerContainerHostShortsPip=r,z)),style:_.lB({width:function(){return f().width+"px"},
height:function(){return f().height+"px"}})},_.p("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:Y}),_.p(_.M,{cond:function(){return!!I()&&!_.jAK(I())},
then:function(){return _.p(cw4,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var g;return((g=I())==null?void 0:g.errorScreen)||null},
status:function(){var g;return((g=I())==null?void 0:g.status)||null}})}}),_.p(_.M,{cond:C,
then:function(){return _.p("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":d},_.p(eL3,{onTap:function(){_.a().resolve(_.iO).close()}}))}}))},"oe");_.jM3=_.Hc(function(r){var f=r.toastData;var I=_.yy();r=_.E(_.YZ(function(){return!!f()}));
var C=r.next().value,Y=r.next().value;r=_.E(_.ld(!1,void 0,"xkrBze"));var V=r.next().value,S=r.next().value,h=function(){var d;return _.Rr((d=f())==null?void 0:d.data.title)};
_.$E(function(){_.Hq.requestAvailability();f()&&Y(!1)});
var w,n;_.az(function(){C()&&(_.kA(I.value,"iron-announce",{text:f().label+" "+h()}),w&&_.F_.cancelJob(w),w=_.F_.addLowPriorityJob(function(){S(!0)},2500))});
_.az(function(){V()&&(n&&_.F_.cancelJob(n),n=_.F_.addLowPriorityJob(function(){Y(!1);S(!1)},300))});
r={};return _.p("ytd-miniplayer-toast",{el:I,class:_.qd("ytdMiniplayerToastHost",(r.ytdMiniplayerToastOpening=function(){return C()},r.ytdMiniplayerToastClosing=function(){return V()},r))},_.p(_.M,{cond:function(){var d;
return(d=f())==null?void 0:d.data},
then:function(d){return _.p(v84,{className:"ytdMiniplayerToastThumbnail",data:d,width:78})}}),_.p("div",{class:"ytdMiniplayerToastInfo"},_.p("div",{class:"ytdMiniplayerToastLabel"},function(){var d;
return(d=f())==null?void 0:d.label}),_.p("div",{class:"ytdMiniplayerToastTitle"},h)))},"pe");var oml;var GmE=new Set,ZRU=null;var B0E=null;var ijY=_.Hc(function(r){var f=r.progressState;var I=r.multiMarkersPlayerBarRenderer;var C=r.progressBarWidth;var Y=function(){return rjE(I())},V=function(){return CYm(f())},S=function(){return C()*(f().playedTime/f().videoDuration)};
return _.p("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.p(_.pz,{each:Y},function(h,w){return _.p(HjU,{modifiedProps:V,chapters:Y,index:w,playedProgressWidth:S,backgroundGradientPosition:function(){var n=V(),d=Y(),z=w(),g=S();return(n.playedTime-jQ(_.F(d[z],JF)))/n.playedTime*g}})}))},"qe"),HjU=_.Hc(function(r){var f=r.modifiedProps;
var I=r.chapters;var C=r.index;var Y=r.playedProgressWidth;var V=r.backgroundGradientPosition;r={};r=_.qd("ytChapteredProgressBarChapteredPlayerBarChapter",(r.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return S().isScrubbing},r.ytChapteredProgressBarHoveredMacroMarker=function(){return S().scrubberHovering},r.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return S().videoPosition==="seen"},r));
var S=function(){return Y2K(f(),I(),C())},h=function(){var w=f();
var n=I(),d=C();if(Y2K(w,n,d).videoPosition!=="active")w=0;else{var z=jQ(_.F(n[d],JF));w=(w.playedTime-z)/((jQ(_.F(n[d+1],JF))||w.videoDuration)-z)}return w};
return _.p("div",{class:r,style:_.lB({width:function(){var w=f(),n=I(),d=C(),z=_.F(n[d],JF);n=_.F(n[d+1],JF);return(n?jQ(n)-jQ(z):w.videoDuration-jQ(z))/w.videoDuration*100+"%"},
"background-color":function(){a:{var w=S();switch(w.videoPosition){case "pending":w=w.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":w=w.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:w=""}}return w},
"background-size":function(){return(l_u(S())?Y():"")+"px"},
"background-position-x":function(){return(l_u(S())?V():"")+"px"}})},_.p("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var w=f(),n=I(),d=C();if(Y2K(w,n,d).videoPosition==="seen")var z=0;else z=jQ(_.F(n[d],JF)),n=jQ(_.F(n[d+1],JF))||w.videoDuration,w=w.videoDuration*w.percentLoaded,z=n<=w?1:z>=w?0:(w-z)/(n-z);return"width: "+z*100+"%"}}),_.p("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.lB({width:function(){return h()*100+"%"},
"background-size":function(){return(l_u(S(),h())?Y():"")+"px"},
"background-position-x":function(){return(l_u(S(),h())?V():"")+"px"}})}))},"re");var RLq=function(r,f){f=f===void 0?nZX:f;var I,C=[],Y,V=!1;return function(){var S=_.XE.apply(0,arguments);if(V&&I===this&&f(S,C))return Y;Y=r.apply(this,S);V=!0;I=this;C=S;return Y}}(function(r){var f=r.heatMarkers,I=r.minHeightDp===void 0?0:r.minHeightDp,C=r.maxHeightDp===void 0?60:r.maxHeightDp;
var Y=Y===void 0?!1:Y;var V=1E3/f.length;r=[];r.push({x:0,y:100});for(var S=0;S<f.length;S++){var h=void 0,w=((h=_.F(f[S],oPq))==null?void 0:h.heatMarkerIntensityScoreNormalized)||0;h=(S+.5)*V;w=100-_.my(w*100,I/321*100,C/321*100);S!==0||Y||r.push({x:0,y:w});r.push({x:h,y:w});S===f.length-1&&r.push({x:1E3,y:w})}r.push({x:1E3,y:100});f="";for(I=0;I<r.length;I++)Y=r[I],I===0?Y="M "+Y.x.toFixed(1)+","+Y.y.toFixed(1):(C=ezP(r[I-1],r[I-2],Y),V=ezP(Y,r[I-1],r[I+1],!0),Y=" C "+(C.x.toFixed(1)+","+C.y.toFixed(1)+
" "+V.x.toFixed(1)+","+V.y.toFixed(1)+" "+Y.x.toFixed(1)+","+Y.y.toFixed(1))),f+=Y;return f});var vH6=_.Hc(function(r){var f=r.progressBarProps;var I=r.config;var C={};r=_.qd("ytHeatSeekerHost",(C.ytHeatSeekerHighContrast=r.highContrast,C));var Y=function(){return Kaq(I().chapterData)};
return _.p("yt-progress-bar-heatseeker",{class:r,style:function(){var V;return"height: 320px; display: "+(f().isDragging&&((V=Y())==null?0:V.heatMarkers)?"block":"none")}},_.p(_.M,{cond:Y,
then:function(V){return _.p(_.M,{cond:function(){return V().heatMarkers},
then:function(){return _.p("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.p("path",{d:function(){return RLq(V())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"se");var Kod=_.Hc(function(r){var f=r.progressBarProps;var I=r.config;r={};r=_.qd("ytProgressBarLineProgressBarLine",(r.ytProgressBarLineProgressBarLineRounded=function(){return I().rounded},r.ytProgressBarLineProgressBarLineBottomInset=function(){return I().position===2},r));
return _.p("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.p("div",{class:r},_.p("div",{class:"ytProgressBarLineProgressBarBackground"}),_.p("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+f().percentLoaded*100+"%"}}),_.p("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var C=f();return"width: "+(C.videoDuration?_.my(C.hoveredTime/C.videoDuration,0,1):0)*100+"%"}}),_.p("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+iRu(f())*100+"%"}})))},"te");
Kod.idomCompat=!0;var yg7=_.Hc(function(r){var f=r.progressBarProps;var I=r.playheadData;var C=r.interpolateDotPosition;var Y=r.hidePlayhead;r={};var V=_.qd("ytProgressBarPlayheadProgressBarPlayheadDot",(r.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return f().isDragging},r.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!f().isDragging&&Y()},r));
return _.p("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.lB({"margin-left":function(){return Re$(f())*100+"%"},
transform:function(){return"translateX(-"+(C()?Re$(f())*12:6)+"px)"}})},_.p(_.M,{cond:function(){var S;
return(S=_.JG(I)())==null?void 0:S.playheadImage},
then:function(S){var h={};return _.p("div",{class:_.qd("ytProgressBarPlayheadProgressBarPlayheadCustom",(h.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return f().isDragging},h.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!f().isDragging&&Y()},h)),
style:_.lB({"transform-origin":function(){return(C()?Re$(f())*20:10)+"px center"}})},_.p(_.J3,{data:S,
alt:"","aria-hidden":"true"}))},
else:function(){return _.p("div",{class:V,style:_.lB({"transform-origin":function(){return(C()?Re$(f())*12:6)+"px center"}})})}}))},"ue");
yg7.idomCompat=!0;var pS=function(r,f,I,C,Y,V){this.getProgressBarRect=r;this.updateProgressBarRect=f;this.getFilmstripYPosition=I;this.setFineScrubbingDraggedTime=C;this.updateFilmStripDraggedYDistance=Y;this.resetFilmStripYOffset=V;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.Gk(this.onThrottledSeek,100,this)},UeV=function(r,f,I){return function(C){r.handleClick(C,f(),I())}},oHB=function(r,f){return function(I){sMi(r,
I,OjU(I),f())}},QMd=function(r,f){return function(I){sMi(r,I,{x:I.clientX,
y:I.clientY},f())}},Zj3=function(r,f,I){return function(C){var Y=f(),V=I();
AgY(r,C,OjU(C),Y,V,!0);if(V.onTouchMove)V.onTouchMove(Y)}},kyd=function(r,f,I){return function(C){Gyq(r,C,f(),I())}},B2V=function(r,f){return function(){r.handleMouseLeave(f())}},qWd=function(r,f,I){return function(){var C=f(),Y=I();
nS(r,C,Y);if(Y.onTouchEnd)Y.onTouchEnd(C)}},u9d=function(r,f,I){return function(){var C=f(),Y=I();
nS(r,C,Y);if(Y.onTouchEnd)Y.onTouchEnd(C)}},De6=function(r,f,I){return function(){nS(r,f(),I())}},r67=function(r){return function(f){if(f.keyCode===39){var I,C;
(I=r())==null||(C=I.playerApi)==null||C.seekBy(5,void 0,void 0,72)}else if(f.keyCode===37){var Y,V;(Y=r())==null||(V=Y.playerApi)==null||V.seekBy(-5,void 0,void 0,71)}}},fzY=function(r,f,I){return function(C){!I().disableScrubbing&&r.startPosition&&Gyq(r,C,f(),I())}},Iz6=function(r,f,I){return function(){if(!I().disableScrubbing)if(r.startPosition){var C=f(),Y=I();
nS(r,f(),I());if(Y.onTouchEnd)Y.onTouchEnd(C)}else f().setState({isDragging:!1})}},OjU=function(r){r=r.touches[0];
return{x:r.clientX,y:r.clientY}},Gyq=function(r,f,I,C){if(f.buttons!==1){if(f.movementX||f.movementY)f.preventDefault(),f.stopPropagation(),r=CM2(r,I,f.clientX),I.setState({isHovering:!0,
hoveredTime:r*I.videoDuration})}else YR7(I),AgY(r,f,{x:f.clientX,y:f.clientY},I,C,!1)};
pS.prototype.handleMouseLeave=function(r){YR7(r)};
var YR7=function(r){r.isHovering&&r.setState({isHovering:!1,hoveredTime:0})},sMi=function(r,f,I,C){r.startPosition||(r.startPosition=I,r.updateProgressBarRect(),r.controlsWereVisibleBeforeDragging=C.controlsVisible,f.stopPropagation(),_.N("medium_progress_bar_modification")||f.preventDefault())},AgY=function(r,f,I,C,Y,V){if(r.startPosition)if(V&&Y.isInlinePlayback&&r.startPosition&&!r.hasDraggedTheMinimumDistance&&Math.abs(I.y-r.startPosition.y)>Math.abs(I.x-r.startPosition.x))nS(r,C,Y);
else if(f.preventDefault(),f.stopPropagation(),C.videoDuration&&(r.startPosition&&!r.hasDraggedTheMinimumDistance&&(r.hasDraggedTheMinimumDistance=Math.abs(I.x-r.startPosition.x)>=1),Y.enableFineScrubbing&&(r.startPosition&&(r.isDraggedForFineScrubbing=-(I.y-r.startPosition.y)>=60),!r.startPosition||I.y>=r.startPosition.y||(C.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:VeP(C.draggedTime,C,Y.chapterData)}),r.setFineScrubbingDraggedTime(C.draggedTime),r.updateFilmStripDraggedYDistance(r.startPosition.y,
I.y,C))),r.hasDraggedTheMinimumDistance)){f=CM2(r,C,I.x);if(r.isDraggedForFineScrubbing){var S;(S=C.playerApi)==null||S.pauseVideo();C.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:C.draggedTime,filmStripXDistance:VeP(f*C.videoDuration,C,Y.chapterData)})}Y.enableFineScrubbing&&(!Y.enableFineScrubbing||r.getFilmstripYPosition(C)<68)||C.setState({draggedTime:f*C.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:r.controlsWereVisibleBeforeDragging});var h;(h=
Y.cancelAutohideControlsFn)==null||h.call(Y)}},nS=function(r,f,I){var C=I.enableFineScrubbing&&f.fineScrubbingActiveState!=="off";
if(f.isDragging||C){C={isDragging:!1,playedTime:f.draggedTime,controlsVisible:r.controlsWereVisibleBeforeDragging};I.enableFineScrubbing&&f.fineScrubbingActiveState!=="on"&&(r.resetFilmStripYOffset(),C.fineScrubbingActiveState="off");var Y=Y===void 0?B0E:Y;var V=_.t1(0);V&&Y&&_.Rl(V,Y,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(f.playedTime*1E3),endMediaTimeMs:Math.round(f.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});f.setState(C);
r.seekThrottle.fire(f.draggedTime,f,7);_.N("mweb_new_progress_bar_play_on_seek")&&r.resumeVideo(f);I.unmuteOnSeek&&(I=f.playerApi,f.volumeMuted&&(I==null||I.unMute()))}else f.setState({controlsVisible:!f.controlsVisible}),(V=I.triggerAutohideControlsAfterDelayFn)==null||V.call(I);r.startPosition=null;r.hasDraggedTheMinimumDistance=!1;r.isDraggedForFineScrubbing=!1;r.controlsWereVisibleBeforeDragging=!1};
pS.prototype.handleClick=function(r,f,I){this.updateProgressBarRect();r.stopPropagation();r=CM2(this,f,r.clientX)*f.videoDuration;f.setState({playedTime:r});if(f.playerState!==2){var C;(C=I.triggerAutohideControlsAfterDelayFn)==null||C.call(I)}this.seekThrottle.fire(r,f,7)};
var CM2=function(r,f,I){r=r.getProgressBarRect(f);return _.my(0,(I-r.left)/r.width,1)};
pS.prototype.resumeVideo=function(r){if(r.draggedTime<r.videoDuration){var f;(f=r.playerApi)==null||f.playVideo()}};
pS.prototype.onThrottledSeek=function(r,f,I){if(f=f.playerApi){var C;if((C=f.getVideoData())==null?0:C.isLive)C=this.getProgressState(f),r+=(C==null?void 0:C.seekableStart)||0;f.seekTo(r,void 0,void 0,void 0,I)}};
pS.prototype.getProgressState=function(r){var f=r==null?void 0:r.getPresentingPlayerType();return r==null?void 0:r.getProgressState(f)};var E1V,VF6,SRq,hnd,lz6,wLd,bKB,pLV,n1B;E1V=_.Hc(function(r){var f=r.progressBarProps;var I=r.config;var C=r.progressBarWidthPx;var Y=r.chapterData;var V=wv$(f,function(){return I().isShortsPage}),S=function(){return!f().isHovering&&!I().isShortsPage};
r={};var h=_.qd("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(r.ytPlayerStoryboardHostMwebShorts=function(){return I().isShortsPage&&!1},r));
return _.p("yt-player-storyboard",null,_.p(_.M,{cond:function(){return f().isDragging||f().isHovering},
then:function(){return _.p(_.M,{cond:V,then:function(w){return _.p(_.M,{cond:S,then:function(){return _.p("div",{class:h,"aria-hidden":"true"},_.p(lz6,{props:f,config:I,isBigboard:!0,chapterData:Y}))},
else:function(){return _.p(VF6,{props:f,frame:w,config:I,progressBarWidthPx:C,chapterData:Y})}})}})}}))},"ve");
_.x36=_.Hc(function(r){var f=r.progressBarProps;var I=wv$(f,r.isShortsPage);return _.p("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.p(_.M,{cond:function(){return f().isDragging||f().isHovering},
then:function(){return _.p(_.M,{cond:I,then:function(C){return _.p(SRq,{frame:C,props:f,isBigboard:!0})}})}}))},"we");
VF6=_.Hc(function(r){var f=r.props;var I=r.frame;var C=r.config;var Y=r.progressBarWidthPx;r=r.chapterData;var V={};V=_.qd("ytPlayerStoryboardHost",(V.ytPlayerStoryboardHostMwebShorts=function(){return C().isShortsPage&&!1},V.ytPlayerStoryboardHostInlinePlayer=function(){return C().isInlinePlayer},V.ytPlayerStoryboardHostFadeIn=function(){return C().useFadeInAnimation},V));
return _.p("div",{class:V,"aria-hidden":"true",style:function(){var S=f(),h=Ebq(I()),w=Y();S=S2B(S)/S.videoDuration;var n=w*S,d=h/2+6;h=w-(h/2+6);return"left: "+(n<=d?d/w*100:n>=h?h/w*100:S*100)+"%"}},_.p(_.M,{cond:function(){var S=f();
return!(C().isShortsPage&&S.videoDuration<15)},
then:function(){return _.p(SRq,{frame:I,props:f,isBigboard:!1})}}),_.p(lz6,{props:f,
config:C,isBigboard:!1,chapterData:r}))},"xe");
SRq=_.Hc(function(r){var f=r.frame;var I=r.props;var C=r.isBigboard;var Y=function(){var h,w;return(w=(h=I().playerApi)==null?void 0:h.getVideoContentRect())!=null?w:{width:0,height:0}},V=function(){return Ebq(f())},S=function(){var h=f();
return h?h.height/h.rows:0};
r={};r=_.qd((r.ytPlayerStoryboardBigboardImageWrapper=C,r.ytPlayerStoryboardStoryboardImageWrapper=function(){return!C()},r));
return _.p("div",{class:r,style:function(){return"width: "+(C()?Y().width:V())+"px; height: "+(C()?Y().height:S())+"px;"}},_.p(hnd,{frame:f,
storyboardWidth:V,storyboardHeight:S,storyboardScale:function(){return(C()?Y().width:V())/V()}}))},"ye");
hnd=_.Hc(function(r){var f=r.frame;var I=r.storyboardWidth;var C=r.storyboardHeight;var Y=r.storyboardScale;var V=function(){var S=f().row,h=f().column,w=I(),n=C(),d=Y();return{left:-h*w*d,top:-S*n*d}};
return _.p("img",{src:function(){return f().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+V().left+"px; top: "+V().top+"px; width: "+f().width*Y()+"px; height: "+f().height*Y()+"px;"}})},"ze");
lz6=_.Hc(function(r){var f=r.props;var I=r.config;var C=r.isBigboard;var Y=r.chapterData;r={};r=_.qd("ytPlayerStoryboardMetadata",(r.ytPlayerStoryboardMetadataBigboard=C,r));return _.p("div",{class:r},_.p(_.M,{cond:C,then:function(){return _.p(_.B9,null,_.p(wLd,{props:f,config:I}),_.p(_.M,{cond:function(){a:{var V=f();var S=I(),h=Y(),w;if((S==null?0:S.activeChapter)&&((w=_.F(S==null?void 0:S.activeChapter,JF))==null?0:w.title))V=!0;else{S=_.E(ylm(h));for(S=S.next();!S.done;S=S.next()){V=(S=_.F(S.value,
A93))&&xOm(V,S);break a}V=!1}}return V},
then:function(){return _.p(bKB,{props:f,config:I,isBigboard:!0,chapterData:Y})}}))},
else:function(){return _.p(_.B9,null,_.p(bKB,{props:f,config:I,isBigboard:!0,chapterData:Y}),_.p(wLd,{props:f,config:I}))}}))},"Ae");
wLd=_.Hc(function(r){var f=r.props;var I=r.config;r={};r=_.qd("ytPlayerStoryboardTimestamp",(r.ytPlayerStoryboardTimestampShorts=function(){return I().isShortsPage},r.ytPlayerStoryboardTimestampIsHovering=function(){return f().isHovering||I().isShortsPage&&!0},r));
return _.p("div",{class:r},_.p(_.B9,null,function(){return _.hJw(S2B(f()))}))},"Be");
bKB=_.Hc(function(r){var f=r.props;var I=r.config;var C=r.isBigboard;var Y=r.chapterData;r={};C=_.qd("ytPlayerStoryboardTitle",(r.ytPlayerStoryboardTitleBigboard=C,r));return _.p("div",{class:C},_.p(_.M,{cond:function(){return!I().isShortsPage},
then:function(){return _.p(pLV,{props:f,activeChapter:function(){return I().activeChapter},
chapterData:Y})}}))},"Ce");
pLV=_.Hc(function(r){var f=r.props;var I=r.activeChapter;var C=r.chapterData;return _.p(_.B9,null,_.p(_.pz,{each:function(){return ylm(C())},
keyBy:"INDEX"},function(Y){return _.p(_.B9,null,_.p(_.M,{cond:function(){return _.F(Y(),A93)&&xOm(f(),_.F(Y(),A93))},
then:function(){return _.p(n1B,{timedMarker:function(){return _.F(Y(),A93)}})}}))}),_.p(_.M,{cond:function(){var Y;
return I()&&((Y=_.F(I(),JF))==null?void 0:Y.title)},
then:function(Y){return _.p(_.wW,{text:Y,noPreWrap:!0})}}))},"De");
n1B=_.Hc(function(r){var f=r.timedMarker;return _.p(_.B9,null,_.p("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.p(_.V2,{icon:function(){return f().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.p(_.wW,{text:function(){return f().label},
noPreWrap:!0}))},"Ee");_.d3V=_.Hc(function(r){var f=r.progressBarProps;var I=r.playheadData;var C=r.config;r=_.yy();var Y=_.yy(),V=_.yy(),S=_.E(_.ld({width:0,left:0},void 0,"NcXsUb")),h=S.next().value,w=S.next().value,n=function(){V.value&&w(V.value.getBoundingClientRect())},d=function(){h().width<=0&&n();
return h()};
Qy("resize",n);var z=new pS(d,function(){},function(){return 0},function(){},function(){},function(){}),g=function(){return f()};
S=_.E(_.ld(!1,void 0,"ZsF6Xc"));var X=S.next().value,P=S.next().value;S=_.IC(function(){P(!0);C().position===2?setTimeout(function(){n()},100):n()});
var W=_.IC(function(){P(!1);B2V(z,g)()}),m=_.IC(function(vu){C().doSeekOnClick&&UeV(z,g,C)(vu);
return!1}),v=_.IC(function(vu){oHB(z,g)(vu);
return!1}),O=_.IC(function(vu){QMd(z,g)(vu);
return!1}),k=_.IC(function(vu){Zj3(z,g,C)(vu);
return!1}),Z=_.IC(function(vu){kyd(z,g,C)(vu);
return!1}),Cw=_.IC(function(){qWd(z,g,C)();
return!1}),rR=_.IC(function(){u9d(z,g,C)();
return!1}),EP=_.IC(function(){De6(z,g,C)();
return!1}),Pu=_.IC(function(vu){r67(g)(vu);
return!1});
Qy("mousemove",fzY(z,g,C));Qy("mouseup",Iz6(z,g,C));_.$E(function(){qFc(Y.value);P(!1);n();Iz6(z,g,C)()});
var Wu={};Wu=_.qd("ytPlayerProgressBarHost",function(){return C().className},(Wu.ytPlayerProgressBarHostReadOnly=function(){return C().disableScrubbing},Wu.ytPlayerProgressBarHostHidden=function(){return C().hideProgressBar&&!X()},Wu.ytPlayerProgressBarHostLowerPlayer=function(){return C().position===0},Wu.ytPlayerProgressBarHostBottomEdge=function(){return C().position===1},Wu.ytPlayerProgressBarHostBottomInset=function(){return C().position===2},Wu.ytPlayerProgressBarHostCustom=function(){return C().position===
3},Wu));
var cu={},OP=_.qd("ytPlayerProgressBarBackground",(cu.ytPlayerProgressBarBackgroundHide=function(){return C().position===2&&!X()&&!f().isDragging},cu));
cu={};cu=_.qd("ytPlayerProgressBarDragContainer",(cu.ytPlayerProgressBarDragContainerBottomEdge=function(){return C().position===1},cu));
var iU={};iU=_.qd("ytPlayerProgressBarProgressBar",(iU.ytPlayerProgressBarProgressBarInset=function(){return C().position===2},iU.ytPlayerProgressBarProgressBarInsetMinimized=function(){return C().position===2&&!X()&&!f().isDragging},iU));
var oR=function(){return Math.floor(iRu(f())*100)};
return _.p("yt-progress-bar",{el:r,class:Wu},_.p(_.M,{cond:function(){return C().position===2},
then:function(){return _.p("div",{class:OP})}}),_.p("div",{el:Y,
"on:click":m,"on:touchstart":v,"on:touchmove":k,"on:mouseenter":S,"on:mousedown":O,"on:mouseleave":W,"on:mousemove":Z,"on:mouseup":rR,"on:touchend":Cw,"on:touchcancel":EP,"on:keydown":Pu,class:cu,role:"slider","aria-valuenow":oR,"aria-valuetext":function(){return oR()+"%"},
tabindex:0,"aria-label":_.VR("SEEK_SLIDER")},_.p("div",{el:V,class:iU},_.p(vH6,{progressBarProps:f,config:C,highContrast:function(){return!!C().isInlinePlayback}}),_.p(_.M,{cond:function(){return C().chapterData&&Ugq(C().chapterData)},
then:function(){return _.p(ijY,{progressState:f,multiMarkersPlayerBarRenderer:function(){return C().chapterData},
progressBarWidth:function(){return h().width}})},
else:function(){return _.p(Kod,{progressBarProps:f,config:C})}}),_.p(yg7,{progressBarProps:f,
playheadData:I,interpolateDotPosition:function(){return C().position!==2},
hidePlayhead:function(){return C().playheadDotBehavior===1&&!X()}}))),_.p(E1V,{progressBarProps:f,
config:function(){return{activeChapter:I_P(f(),C().chapterData),getProgressBarWidthPx:function(){return d().width},
isShortsPage:!!C().isShortsPage,isInlinePlayer:!!C().isInlinePlayback,useFadeInAnimation:!!C().isInlinePlayback}},
progressBarWidthPx:function(){return h().width},
chapterData:function(){return C().chapterData}}))},"Fe");
_.d3V.idomCompat=!0;Object.assign({},_.sSP(),{setState:function(){},
domMeasurements:{},appApi:_.HRR(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var znq;
_.MF2=_.Hc(function(){var r,f=(r=_.Ha(baK().playerApi))!=null?r:void 0;r=_.E(_.ld(!1,void 0,"HLFBmb"));var I=r.next().value,C=r.next().value;r=_.E(_.ld(!1,void 0,"lHH9bc"));var Y=r.next().value,V=r.next().value;r=_.E(_.ld(!1,void 0,"zsY7yd"));var S=r.next().value,h=r.next().value;r=_.E(_.ld(!1,void 0,"KeHQgc"));var w=r.next().value,n=r.next().value;r=_.E(_.ld(0,void 0,"gLLCj"));var d=r.next().value,z=r.next().value;r=_.E(_.ld(0,void 0,"s3RYkf"));var g=r.next().value,X=r.next().value;r=_.E(_.ld(!1,void 0,
"Dn608e"));var P=r.next().value,W=r.next().value;r=_.E(_.ld(0,void 0,"AnkH1b"));var m=r.next().value,v=r.next().value;r=_.E(_.ld(0,void 0,"QYNL0b"));var O=r.next().value,k=r.next().value;r=_.E(_.ld("",void 0,"Yzw45d"));var Z=r.next().value,Cw=r.next().value;r=_.E(_.ld(-1,void 0,"iiVI0c"));var rR=r.next().value,EP=r.next().value,Pu=_.hR(function(){var Wu={controlsVisible:I(),isOverlayHidden:Y(),shouldWaitToHideControls:S(),isDragging:w(),isHovering:P(),videoDuration:m(),playedTime:O(),videoId:Z(),
draggedTime:g(),hoveredTime:d(),playerState:rR()};return Object.assign({},_.sSP(),Wu,{domMeasurements:{},setState:function(cu){cu.controlsVisible!==void 0&&C(cu.controlsVisible);cu.isOverlayHidden!==void 0&&V(cu.isOverlayHidden);cu.shouldWaitToHideControls!==void 0&&h(cu.shouldWaitToHideControls);cu.isDragging!==void 0&&n(cu.isDragging);cu.isHovering!==void 0&&W(cu.isHovering);cu.draggedTime!==void 0&&X(cu.draggedTime);cu.hoveredTime!==void 0&&z(cu.hoveredTime);cu.videoDuration!==void 0&&v(cu.videoDuration);
cu.playedTime!==void 0&&k(cu.playedTime);cu.videoId!==void 0&&Cw(cu.videoId);cu.playerState!==void 0&&EP(cu.playerState)},
appApi:_.HRR(),playerApi:f})},void 0,"ZW7y9");
_.Xl(function(){f==null||f.addEventListener("onVideoProgress",Alu(Pu));f==null||f.addEventListener("onVideoDataChange",QSU(Pu));f==null||f.addEventListener("onStateChange",ORK(Pu))});
_.$L(function(){if(f==null?0:f.isReady())f==null||f.removeEventListener("onVideoProgress",Alu(Pu)),f==null||f.removeEventListener("onVideoDataChange",QSU(Pu)),f==null||f.removeEventListener("onStateChange",ORK(Pu))});
return _.p("desktop-shorts-player-controls",null,_.p(znq,{playerControlsProps:Pu}))},"Ge");
znq=_.Hc(function(r){var f=r.playerControlsProps;return _.p("div",{class:"desktopShortsPlayerControlsWizHost"},_.p(_.d3V,{progressBarProps:f,config:function(){return{isShortsPage:!0,hideProgressBar:f().videoDuration<30&&f().playerState!==2&&!f().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"He");_.GL(_.MeK);_.g1p=_.Hc(function(r){var f=r.data;return _.p("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.p(_.h8,{command:function(){return f().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.p(_.M,{cond:function(){return f().iconName},
then:function(I){return _.p(_.V2,{icon:I})}}),_.p("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return f().text}),_.p(_.M,{cond:function(){return f().showEndChevron},
then:function(){return _.p(_.V2,{icon:"CHEVRON_RIGHT"})}})))},"Ie");var azY=_.Hc(function(r){var f=r.data;var I=r.overlayDensity;r={};return _.p("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.p(_.X1,{data:function(){return f().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(C){var Y=C.data;
return _.p(_.dN,{data:function(){return(I==null?void 0:I())===1?Object.assign({},Y(),{avatar:{avatarViewModel:Object.assign({},_.F(Y().avatar,_.s0),{avatarImageSize:"AVATAR_SIZE_48"})}}):Y()}})}}),_.p(_.X1,{data:function(){return f().avatarStackViewModel}},{avatarStackViewModel:function(C){return _.p(_.zt,{data:C.data})}}),_.p(_.wW,{className:_.qd("ytReelChannelBarViewModelChannelName",(r.ytReelChannelBarViewModelChannelNameLarge=function(){return(I==null?void 0:I())===1},r)),
text:function(){return f().channelName},
linkInheritColor:!0,userInput:!0}),_.p("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.p(_.X1,{data:function(){return f().subscribeButtonViewModel}},{subscribeButtonViewModel:function(C){var Y=C.data;
return _.p(bS3,{data:function(){return(I==null?void 0:I())===1?Object.assign({},Y(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},Y().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):Y()},
isOverlay:!1})},
buttonViewModel:_.LF})),_.p("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.p(_.X1,{data:function(){var C,Y;return(Y=_.F((C=f())==null?void 0:C.sponsorButtonViewModel,n73))==null?void 0:Y.sponsorButton}},{buttonViewModel:function(C){return _.p(_.LF,{data:C.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Je");var XL6=_.Hc(function(r){var f={};return _.p("yt-reel-multi-format-link-view-model",{class:_.qd("ytReelMultiFormatLinkViewModelHost",(f.ytReelMultiFormatLinkViewModelHostTall=!0,f.ytReelMultiFormatLinkViewModelHostLarge=function(){var I;return((I=r.overlayDensity)==null?void 0:I.call(r))===1},f))},_.p(_.h8,{ariaLabel:function(){return r.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.aB(r.data().command)},
dangerousStopPropagation:!1},_.p("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.p(_.M,{cond:function(){return r.data().icon},
then:function(I){return _.p(_.J3,{data:I,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.p(_.wW,{text:function(){return r.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Ke");
XL6.idomCompat=!0;var NnU=_.Hc(function(r){var f=r.data;var I=r.overlayDensity;var C=_.yy();r=_.E(_.ld(!1,void 0,"xDqzhe"));var Y=r.next().value,V=r.next().value;r=_.E(_.ld(!1,void 0,"LI9CFd"));var S=r.next().value,h=r.next().value,w=function(){return f().isMultiLineSa},n=_.VS(Zgl,function(){var k,Z;
return(Z=(k=f().toggleableContent)==null?void 0:k.entityKey)!=null?Z:""}),d=function(){var k,Z,Cw;
return(Cw=f().toggleableContent)!=null&&Cw.entityKey?(Z=(k=n())==null?void 0:k.value)!=null?Z:!1:!1},z=function(){var k,Z,Cw,rR,EP,Pu,Wu,cu,OP,iU,oR;
return f().toggleableContent?d()?(k=f().toggleableContent)==null?void 0:k.toggledData:(Z=f().toggleableContent)==null?void 0:Z.untoggledData:{primaryText:(cu=(Cw=f().defaultContent)==null?void 0:Cw.primaryText)!=null?cu:f().text,secondaryText:(rR=f().defaultContent)==null?void 0:rR.secondaryText,onTapCommand:(OP=(EP=f().defaultContent)==null?void 0:EP.onTapCommand)!=null?OP:f().onTapCommand,icon:(iU=(Pu=f().defaultContent)==null?void 0:Pu.icon)!=null?iU:f().icon,image:(oR=(Wu=f().defaultContent)==
null?void 0:Wu.image)!=null?oR:f().image}},g=function(){return w()?f().trailingTapTarget:void 0};
r=function(k,Z){return function(){return Y()?Z:k}};
var X={leadingSection:r("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:r("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:r("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:r("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};r={};r=_.qd((r.ytShortsSuggestedActionViewModelStaticHost=function(){return!w()},r.ytShortsSuggestedActionViewModelDynamicHost=w,r.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return w()&&S()},r.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return w()&&!S()},r));
_.$E(function(){if(w()){var k=0,Z;if((Z=f().animationParams)==null?0:Z.shouldExpand){var Cw,rR;k=((rR=(Cw=f().animationParams)==null?void 0:Cw.expansionDelaySecs)!=null?rR:0)*1E3}var EP,Pu=((EP=f().animationParams)==null?0:EP.shouldExpand)?setTimeout(function(){V(!0)},k):void 0,Wu,cu;
k=((Wu=f().animationParams)==null?0:Wu.visibilityDelaySecs)?((cu=f().animationParams)==null?NaN:cu.visibilityDelaySecs)*1E3:0;var OP=setTimeout(function(){h(!0)},k);
_.$L(function(){Pu&&clearTimeout(Pu);clearTimeout(OP)})}});
var P=function(k){_.F2(k,Object.assign({},{form:{element:C.value}}))},W=_.IC(function(){var k,Z=(k=z())==null?void 0:k.onTapCommand;
Z&&P(Z)}),m=_.IC(function(){var k,Z;
if(k=(Z=g())==null?void 0:Z.onTapCommand)return P(k),!1}),v=_.lB({"vertical-align":"bottom",
"border-radius":function(){var k;return w()?((k=f().defaultContent)==null?0:k.isCircleImage)?"50%":"4px":"0px"},
width:function(){var k,Z,Cw;return w()&&((k=f().defaultContent)==null?0:k.imageSize)?((Cw=(Z=f().defaultContent)==null?void 0:Z.imageSize)!=null?Cw:24)+"px":null},
height:function(){var k,Z,Cw;return w()&&((k=f().defaultContent)==null?0:k.imageSize)?((Cw=(Z=f().defaultContent)==null?void 0:Z.imageSize)!=null?Cw:24)+"px":null}}),O={};
return _.p("yt-shorts-suggested-action-view-model",{class:r,el:C},_.p("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.p("button",{class:_.qd(function(){return w()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var k;
return(k=f().useFullRoundedBorder)!=null&&k?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!g()&&w()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":w()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var k;
return(k=f().disableFixedHeight)!=null&&k?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(O.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(I==null?void 0:I())===1},O)),
"on:click":W},_.p(_.xZ,{model:{color:4}}),_.p("div",{class:_.qd(function(){return w()?X.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.p(_.M,{cond:function(){var k;
return(k=z())==null?void 0:k.image},
then:function(k){return _.p(_.J3,{data:k,alt:"",className:function(){return w()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:v})}}),_.p(_.M,{cond:function(){var k,Z;
return(k=z())==null?void 0:(Z=k.icon)==null?void 0:Z.iconType},
then:function(k){return _.p(_.V2,{icon:k,active:d,className:function(){return w()?Y()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.p("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.p(_.M,{cond:function(){var k;
return(k=z())==null?void 0:k.primaryText},
then:function(k){return _.p("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.p(_.wW,{text:k}))}}),_.p(_.M,{cond:function(){var k;
return(k=z())==null?void 0:k.secondaryText},
then:function(k){return _.p("div",{class:X.secondaryText},_.p(_.wW,{text:k}))}}))),_.p(_.M,{cond:g,
then:function(k){return _.p("div",{class:X.trailingSection,"aria-label":function(){var Z;return(Z=k().a11yLabel)!=null?Z:""},
"on:click":m,role:"button",tabindex:0},_.p(_.xZ,{model:{color:4}}),_.p(_.V2,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Le");var $32=_.Hc(function(r){var f=r.data;var I=r.overlayDensity;var C=_.yy();r=_.IC(function(S){if(_.v8u(_.Ho(S),C.value,["A".toString()]))return!1;(S=f().truncatedTextOnTapCommand)&&_.F2(S);return!1});
var Y={},V={};return _.p("yt-shorts-video-title-view-model",{el:C,class:_.qd("ytShortsVideoTitleViewModelHost",(Y.ytShortsVideoTitleViewModelHostClickable=function(){return!!f().truncatedTextOnTapCommand},Y)),
"on:click":r},_.p("h2",{class:_.qd("ytShortsVideoTitleViewModelShortsVideoTitle",(V.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(I==null?void 0:I())===1},V))},_.p(_.wW,{text:function(){return f().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Me");_.FXi=_.Hc(function(r){var f=r.data;var I=r.overlayDensity;return _.p("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.p(_.X1,{data:function(){return f().metadataItems}},{badgeViewModel:function(C){return _.p("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.p(_.sq,{data:C.data}))},
playerDisclosureViewModel:function(C){return _.p("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.p(_.g1p,{data:C.data}))},
shortsSuggestedActionViewModel:function(C){return _.p("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.p(NnU,{data:C.data,overlayDensity:I}))},
reelChannelBarViewModel:function(C){return _.p("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.p(azY,{data:C.data,overlayDensity:I}))},
reelMultiFormatLinkViewModel:function(C){return _.p("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.p(XL6,{data:C.data,overlayDensity:I}))},
shortsVideoTitleViewModel:function(C){return _.p("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.p($32,{data:C.data,overlayDensity:I}))},
reelSoundMetadataViewModel:function(C){return _.p("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.p(_.mTY,{data:C.data,overlayDensity:I}))}}))},"Ne");var PMV=_.Hc(function(r){var f=_.jS(r,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),I=f.size,C=f.onTap,Y=f.disabled,V=f.tooltipText;return _.p("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.p(k4,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:I(),disabled:Y(),tooltipText:V(),onTap:C}},
iconName:r.iconType}))},"Oe"),tF2=_.Hc(function(r){function f(d){d.stopPropagation();
d.code==="ArrowUp"?(d.preventDefault(),NTw(h.value)):d.code==="ArrowDown"?(d.preventDefault(),$Ou(h.value)):d.code==="KeyM"?a_E():(d.code==="KeyK"||d.code==="Space")&&Xvl(w())}
var I=_.jS(r,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});r=I.previousButtonDisabled;var C=I.nextButtonDisabled,Y=I.data,V=I.playabilityStatus,S=I.previewThumbnail,h=_.yy(),w=_.XA(_.eqd),n;_.Xl(function(){(n=_.TZ(h.value))&&n.addEventListener("keydown",f)});
_.$L(function(){var d;(d=n)==null||d.removeEventListener("keydown",f)});
I=function(){var d,z,g;return(d=Y())==null?void 0:(z=d.reelPlayerOverlayRenderer)==null?void 0:(g=z.likeButton)==null?void 0:g.likeButtonRenderer};
return _.p("ytd-shorts-miniplayer-overlay",{el:h,class:"ytdShortsMiniplayerOverlayHost"},_.p("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.lB({"background-image":function(){var d=S();return d?'url("'+_.U6(d.thumbnails)+'")':""}})}),_.p("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.p("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.p(PMV,{iconType:function(){var d=w();
return d===2||d===-1||d===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){Xvl(w())},
tooltipText:function(){var d=w();return d===1||d===3?_.VR("PLAYER_LABEL_PAUSE"):_.VR("PLAYER_LABEL_PLAY")}}),_.p(_.MeK,null)),_.p("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.p(PMV,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:r,onTap:function(){NTw(h.value)},
tooltipText:_.VR("PREVIOUS_VIDEO_LABEL")}),_.p(PMV,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:C,onTap:function(){$Ou(h.value)},
tooltipText:_.VR("NEXT_VIDEO_LABEL")}),_.N("web_shorts_pip_like_button")?_.p("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.p(Eu8,{buttonTooltipPosition:"left",data:I,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.p("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.p(_.M,{cond:function(){var d,z;return _.F((d=Y())==null?void 0:(z=d.reelPlayerOverlayRenderer)==null?void 0:z.metapanel,
_.hbq)},
then:function(d){return _.p("div",{class:_.qd("ytdShortsMiniplayerOverlayInteractive")},_.p(_.FXi,{data:d}))}})),_.p("div",{class:_.qd("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var d;return!((d=Y())==null||!d.adsOverlay)||V()&&!JfB(V())}},_.p("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.p(_.MF2,null)))),_.p(_.M,{cond:function(){var d=Y(),z,g;
d=_.F(d==null?void 0:(z=d.adsOverlay)==null?void 0:(g=z.fulfillmentContent)==null?void 0:g.fulfilledLayout,QJs);return _.F(d==null?void 0:d.renderingContent,BhX)},
then:function(d){return _.p("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.p(Vz3,{data:d}))}}))},"Pe");var FPu=_.Hc(function(){var r=_.E(_.ld(new _.EZ(NaN,NaN),void 0,"HSMFk")),f=r.next().value,I=r.next().value;r=_.E(_.ld(!1,void 0,"uaAxwf"));var C=r.next().value,Y=r.next().value,V=_.E(_.ld(!1,void 0,"nVSwef"));r=V.next().value;var S=V.next().value,h=_.a().resolve(_.iO).miniplayerPropSignalMap[0],w=h.data,n=h.shortsData,d=h.nextButtonDisabled,z=h.shortsPreviewThumbnail,g=h.previousButtonDisabled,X=h.externalPlaylistData;V=h.toastData;var P=h.playabilityStatus,W=h.isDisabled,m=h.playerVe,v=h.closeVe;
h=_.XA(_.hH);_.KN("yt-pip-window-resized",function(Cw){I(Cw)});
_.KN("yt-activate-pip-miniplayer",function(){return _.x(function(Cw){S(!0);_.wO(Cw)})});
var O=function(){var Cw;return!((Cw=X())==null||!Cw.contents)&&C()},k=function(){var Cw=f(),rR=!!w(),EP=O();
Cw=Cw.clone();rR&&(Cw.height-=76);EP&&(Cw.height-=285);return Cw},Z=function(){Y(!C())};
_.az(function(){var Cw=m(),rR=_.t1(11),EP=_.Pj(11);rR&&EP&&Cw&&(_.mw(rR,EP,Cw),EP=v())&&(_.e_(rR,Cw,[EP]),_.j_(rR,[EP]))});
return _.p("ytd-pip-container",{class:"ytdPipContainerHost"},_.p(_.M,{cond:r,then:function(){return _.p(_.Jg7,{isDisabled:W,playabilityStatus:P,size:k})}}),_.p(_.M,{cond:w,
then:function(){return _.p(_.med,{data:w,expanded:C,onExpandClick:Z,playlistData:X})}}),_.p(_.M,{cond:O,
then:function(){return _.p("div",{class:"ytdPipContainerPlaylistPanel"},_.p(_.lFq,{data:X,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.p(_.M,{cond:h,
then:function(){return _.p(tF2,{data:n,nextButtonDisabled:d,previousButtonDisabled:g,playabilityStatus:P,previewThumbnail:z})}}),_.p("div",{class:"ytdPipContainerToast"},_.p(_.jM3,{toastData:V})))},"Qe");var dg=function(r,f){var I=this;this.pipController=r;this.JSC$16381_clientRoot=f;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=LaU();this.watchPipEnabled=_.N("web_watch_pip");this.shortsPipEnabled=_.N("web_shorts_pip");this.JSC$16381_watchWhileEnabled=_.N("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;_.wj(_.K2(),_.cLc,function(C){I.isSingleOptionSurveyActive=C});
this.JSC$16381_onPlayerPlayVideo=this.JSC$16381_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);_.R5(_.iz.getInstance(),this.miniplayerServiceActionMap,this.JSC$16381_clientRoot);_.xw()&&_.NW("genericClientExperimentEvent",{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},
FAs,iKd,enU,RnU,v16,KUD;
dg.prototype.handleMediaSessionPipActivation=function(){var r=this,f;return _.x(function(I){_.xP().mediaSessionPipActivation=!0;f=_.a().resolve(_.y2);return f.isOnWatch()&&r.watchPipEnabled?(_.xP().watchPipActivation=!0,_.Tn6(r,f.data),I.jumpTo(0)):f.isOnShorts()&&r.shortsPipEnabled?(_.xP().shortsPipActivation=!0,_.c6B(r),I.jumpTo(0)):r.isMiniplayerActive()&&r.watchPipEnabled&&!r.watchWhileMode?_.b(I,WX3(r),0):I.jumpTo(0)})};
var WX3=function(r){var f,I,C,Y;return _.x(function(V){if(V.nextAddress==1)return f=!r.miniplayerToPipMode,I=r.playerElement,C=r.miniplayerData,Y=r.watchResponse,_.b(V,r.deactivate(),2);if(V.nextAddress!=3)return f?(_.xP().mediaSessionPipActivation=!0,_.xP().watchPipActivation=!0):_.xP().miniplayerButtonActivation=!0,_.b(V,r.activate(I,C,Y),3);r.miniplayerToPipMode=f;_.wO(V)})};
dg.prototype.onDownloadedVideoDeleted=function(r){var f,I=_.F((f=this.miniplayerData)==null?void 0:f.watchEndpoint,_.vj),C,Y;I&&((C=this.watchResponse)==null?void 0:(Y=C.playerResponse)==null?void 0:Y.offlineState)!==void 0&&(f=I.videoId)&&r&&f===r&&this.close()};
dg.prototype.onShowMiniplayerCommand=function(r){var f=this,I,C,Y,V,S,h,w,n,d,z,g,X,P;return _.x(function(W){switch(W.nextAddress){case 1:return I=_.F(r,IVs),Y=(C=I)==null?void 0:C.miniplayerCommand,V=_.F(Y,_.vj),Y&&V&&!f.active?_.b(W,_.gj.getInstance(),2):W.return();case 2:return S=W.yieldResult,_.b(W,(h=S)==null?void 0:h.get("yt-miniplayer-shown-video-id"),3);case 3:w=W.yieldResult;n=V.videoId;if(!n||w===n)return W.return();d=_.a().resolve(_.y2);if(d.isOnWatch())return _.t7(Error("Bj")),W.return();
z={channelItem:{externalId:btoa(n)}};f.readyToResumeVe=_.pQ(121253,void 0,void 0,z);_.xP().showMiniplayerCommandActivation=!0;return _.b(W,_.yO4(f,Y,!0),4);case 4:return f.active?(_.zq(f,{readyToResumeVe:f.readyToResumeVe,continueWatching:!0,premiumBranding:!((g=I)==null||!g.showPremiumBranding)}),f.isReadyToResume=!0):_.zq(f,{continueWatching:!0,premiumBranding:!((X=I)==null||!X.showPremiumBranding)}),_.N("ytd_miniplayer_to_wiz")&&_.zq(f,{isReadyToResume:!0}),_.b(W,(P=S)==null?void 0:P.set("yt-miniplayer-shown-video-id",
V.videoId),5);case 5:f.readyToResumeVe=void 0,_.wO(W)}})};
dg.prototype.init=function(r){this.miniplayerEl?_.t7(new _.nf("MiniplayerService already initialized.")):this.miniplayerEl=r};
dg.prototype.isInitialized=function(){var r=!!this.miniplayerEl;r||_.t7(new _.nf("MiniplayerService used before initialized."));return r};
_.Tn6=function(r,f){if(r.isInitialized()){var I=_.JlR(f.response,f.playerResponse),C=_.a().resolve(_.y2).getPlayerFromWatch();_.xP().currentEndpoint=I.watchEndpoint||null;r.activate(C,I,f)}};
_.c6B=function(r){if(r.isInitialized()){var f=_.a().resolve(_.y2).getPlayerFromShorts();r.activate(f)}};
FAs=function(r,f){var I;(I=!r.isInitialized())||(I=_.a().resolve(_.y2).isOnWatch()&&r.watchPipMode,I=!(r.isMiniplayerActive()&&(_.xP().userActivation||_.xP().lockupActivation||I)));if(I)return!1;LXs(r,f)?_.bb(r):KUD(r,f);return r.watchPipMode?!_.a().resolve(_.y2).isOnWatch():!0};
dg.prototype.isMiniplayerActive=function(){return this.active};
var LXs=function(r,f){var I;f=(I=_.F(f,_.vj))==null?void 0:I.videoId;var C,Y;r=(Y=_.F((C=r.miniplayerData)==null?void 0:C.watchEndpoint,_.vj))==null?void 0:Y.videoId;return f!=null&&f===r};
dg.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.kA(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.Bj(this.miniplayerEl,"yt-navigate-home-action"))};
_.yO4=function(r,f,I,C){I=I===void 0?!1:I;var Y,V,S;return _.x(function(h){switch(h.nextAddress){case 1:if(r.active){h.jumpTo(2);break}Y=_.a().resolve(_.y2);if(S=(V=r.playerElement)!=null?V:Y.getPlayerFromWatch()){h.jumpTo(3);break}return _.b(h,_.a().resolve(_.Zb),4);case 4:S=Y.getPlayerFromWatch();case 3:if(!S){_.t7(Error("Dj"));h.jumpTo(2);break}return _.b(h,r.activate(S,C),2);case 2:return r.active?_.b(h,KUD(r,f,I),0):h.return()}})};
dg.prototype.activate=function(r,f,I){var C=this,Y,V,S,h,w,n,d,z,g;return _.x(function(X){switch(X.nextAddress){case 1:if(!C.isInitialized())return X.return();if(!r)return _.t7(Error("Dj")),X.return();if(_.IPC()||C.isMiniplayerActive())var P=!0;else P=_.xP().watchPipActivation||_.xP().watchWhileActivation,_.a().resolve(_.y2).isOnWatch()&&!P?(_.t7(new _.nf("miniplayer activated on watch page")),P=!0):P=_.xP().watchWhileActivation?C.userDeactivatedWatchWhile||!!document.pictureInPictureElement||pQE():
!1;if(P)return fPg(),X.return();Y=_.xP().mediaSessionPipActivation;V=_.xP().shortsPipActivation;S=_.xP().watchPipActivation;w=(h=_.xP().watchWhileActivation)||S;n=S||V;if(!C.pictureInPictureEnabled()||!n){X.jumpTo(2);break}return _.b(X,m37(C,Y),3);case 3:if(!X.yieldResult)return _.t7(Error("Cj")),fPg(),X.return();case 2:return C.setActive(!0),C.watchResponse=I,C.playerElement=r,C.updateMiniplayerData(f),_.b(X,enU(C,r),4);case 4:if(!C.active)return _.t7(new _.nf("miniplayer deactivated during activation")),
C.removePlayerListeners(),X.return();P=_.a().resolve(_.WP);P.addEventListener("yt-navigate",_.GF(C,C.onPlaylistNavigate));P.addEventListener("yt-playlist-data-updated",_.GF(C,C.JSC$16381_onPlaylistDataUpdated));C.JSC$16381_onPlaylistDataUpdated();fPg();C.JSC$16381_watchWhileEnabled&&_.J6s(C,h);C.pictureInPictureEnabled()&&C.shortsPipEnabled&&(C.shortsPipMode=V,_.K2().dispatch(s9D(C.shortsPipMode)));C.pictureInPictureEnabled()&&C.watchPipEnabled&&(C.watchPipMode=S,_.dYl(C.handleMediaSessionPipActivation));
C.player&&(d=C.player.getPlayerState(),z=d===1,_.K2().dispatch(qT3(d)),_.qy(C.miniplayerEl,"yt-miniplayer-play-state-changed",[z]),_.xP().isVideoPlaying=z);_.qy(C.miniplayerEl,"yt-miniplayer-endpoint-changed");jwV(C);_.HKU(C);return C.shortsPipMode||C.watchPipMode?_.b(X,_.uy(C.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.N("ytd_miniplayer_to_wiz")?_.b(X,_.uy(C.miniplayerEl,"yt-activate-miniplayer",[w]),6):_.b(X,_.uy(C.miniplayerEl,"yt-activate-miniplayer-action",[r,w]),6);case 6:iKd(C),RnU(C,!0),
(g=C.getPlayerElement())==null||g.focusOnPlayer(),_.wO(X)}})};
dg.prototype.updateMiniplayerData=function(r){this.miniplayerData=r;_.zq(this,{data:r})};
_.HKU=function(r){var f,I,C=((f=r.miniplayerData)==null?void 0:(I=f.miniplayerRenderer)==null?void 0:I.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";f=r.watchWhileMode||r.watchPipMode?C&&!_.a().resolve(_.y2).isOnWatch():C;_.zq(r,{isDisabled:f});var Y,V;I=_.F((Y=r.miniplayerData)==null?void 0:(V=Y.miniplayerRenderer)==null?void 0:V.minimizedEndpoint,_.Nh);f&&I&&_.a().resolve(_.z7).openSheet({openPopupActionCommand:{openPopupAction:I}},r.miniplayerEl)};
iKd=function(r){if(r.watchResponse&&!v16(r)){var f,I=(f=r.watchResponse.playerResponse)==null?void 0:f.trackingParams;I&&(_.zq(r,{expandVe:_.pQ(35989),closeVe:_.pQ(34699),readyToResumeCloseVe:_.pQ(131070),repositionVe:_.pQ(226204),resizeVe:_.pQ(226205)}),_.zq(r,{playerVe:_.VH(I)}))}};
enU=function(r,f){return _.x(function(I){if(I.nextAddress==1)return f.preparePlayer(),_.b(I,f.getPlayerPromise(),2);r.player=I.yieldResult;r.player&&(r.player.addEventListener("onPlayVideo",r.JSC$16381_onPlayerPlayVideo),r.player.addEventListener("onCloseMiniplayer",r.onPlayerCloseMiniplayer),r.player.addEventListener("onExpandMiniplayer",r.onPlayerExpandMiniplayer),r.player.addEventListener("onStateChange",r.onPlayerStateChange));_.wO(I)})};
_.l=dg.prototype;_.l.JSC$16381_onPlayerPlayVideo=function(r){var f=r.sessionData&&"autonav"in r.sessionData,I;r.sessionData&&r.sessionData.itct&&(I=r.sessionData.itct);var C=r.watchEndpoint;f=C&&f?_.rpw(C,I):_.QR(r.videoId,r.listId||void 0,I);r.sessionData&&_.sl(_.F(f.commandMetadata,_.oo).url,r.sessionData);KUD(this,f)};
_.l.onPlayerExpandMiniplayer=function(){_.bb(this)};
_.l.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.l.onPlayerStateChange=function(){if(this.player){var r=this.player.getPlayerState(),f=r===1;_.K2().dispatch(qT3(r));_.K2().dispatch(_.DVT(r));_.qy(this.miniplayerEl,"yt-miniplayer-play-state-changed",[f]);_.xP().isVideoPlaying=f;if(r===0){f=!_.Qk.getInstance().isAutoplaySetExplicitly();var I,C,Y,V,S,h,w=(I=this.watchResponse.response)==null?void 0:(C=I.contents)==null?void 0:(Y=C.twoColumnWatchNextResults)==null?void 0:(V=Y.autoplay)==null?void 0:(S=V.autoplay)==null?void 0:(h=S.autoplayExplicitChoiceDialogRenderer)==
null?void 0:h.confirmDialogRenderer;f&&w&&this.player.setAutonavState(1)}r===0&&this.watchWhileMode&&this.deactivate()}};
_.l.onPlaylistNavigate=function(r,f){var I=this,C,Y,V,S,h,w,n;return _.x(function(d){if(d.nextAddress==1){if(!_.F(f.endpoint,_.vj))return d.return();_.xP().currentEndpoint=f.endpoint;_.qy(I.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.a().resolve(_.y2).isOnWatch()&&(I.watchWhileMode||I.watchPipMode))return d.return();r.stopPropagation();(V=(Y=_.F((C=f.endpoint)==null?void 0:C.commandMetadata,_.oo))==null?void 0:Y.url)&&f.tempData&&!_.X0.isEmpty(f.tempData)&&_.sl(V,f.tempData);S={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};h=new fMU(function(){return I.getPlayerElement()},S,{layer:I.getScreenLayer()});
w=function(z){h.processChunk({endpoint:f.endpoint,data:z})};
KXB(I);I.miniplayerFetchRequest=y6B(I,f.endpoint,w);_.l_(d,2);return _.b(d,I.miniplayerFetchRequest,4)}if(d.nextAddress!=2)return n=d.yieldResult,U3q(I,n),_.Hd(d,0);_.ha(d);_.wO(d)})};
_.l.JSC$16381_onPlaylistDataUpdated=function(){var r=_.a().resolve(_.WP).getPlaylistData();this.hasPlaylistData=!!r;_.zq(this,{externalPlaylistData:r||{}})};
_.l.close=function(r){if(this.isInitialized())if(r){if(!((this.watchWhileMode||this.watchPipMode)&&_.a().resolve(_.y2).isOnWatch()||this.shortsPipMode)){var f;(f=this.getPlayerElement())==null||f.stop()}this.deactivate()}else _.jN().closeMiniplayer(this.miniplayerEl)};
_.l.deactivate=function(r){var f=this,I,C,Y,V;return _.x(function(S){if(S.nextAddress==1){if(!f.isInitialized()||!f.active)return S.return();f.setActive(!1);KXB(f);(I=!!r&&LXs(f,r))&&f.isSingleOptionSurveyActive&&_.Bj(f.miniplayerEl,"yt-show-watch-page-survey",[f.isSingleOptionSurveyActive]);return _.b(S,sw6(f),2)}if(S.nextAddress!=3){RnU(f,!1);f.isReadyToResume=!1;f.watchResponse=void 0;f.updateMiniplayerData(void 0);f.shortsPipMode&&(f.shortsPipMode=!1,_.K2().dispatch(s9D(f.shortsPipMode)),hg6(f.pipController),
(C=f.player)==null||C.setInternalSize(NaN,NaN));f.watchPipMode&&(f.watchPipMode=!1,hg6(f.pipController));(Y=f.watchWhileMode)&&_.J6s(f,!1);f.removePlayerListeners();var h=_.a().resolve(_.WP);h.removeEventListener("yt-navigate",_.GF(f,f.onPlaylistNavigate));h.removeEventListener("yt-playlist-data-updated",_.GF(f,f.JSC$16381_onPlaylistDataUpdated));_.xP().currentEndpoint=null;_.qy(f.miniplayerEl,"yt-miniplayer-endpoint-changed");f.playerElement=null;fPg();return f.shortsPipMode||f.watchPipMode?S.jumpTo(3):
_.b(S,_.uy(f.miniplayerEl,_.N("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[I,Y]),3)}(V=f.player)==null||V.setInternalSize(NaN,NaN);f.player=null;_.wO(S)})};
var sw6=function(r){var f;return _.x(function(I){f=_.a().resolve(_.y2);return r.shortsPipMode?_.b(I,f.movePlayerToShorts(r.playerElement),0):_.b(I,f.movePlayerToWatch(r.playerElement),0)})};
dg.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16381_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
dg.prototype.setActive=function(r){this.active=r;this.isSingleOptionSurveyActive?_.Bj(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.Bj(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.K2().dispatch(_.kI({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.J6s=function(r,f){r.watchWhileMode=f;_.zq(r,{watchWhile:f})};
RnU=function(r,f){if(!v16(r))if(r.shortsPipMode||r.watchPipMode){var I;(I=r.player)==null||I.setDocumentPictureInPicture(f)}else{var C;(C=r.player)==null||C.setMinimized(f)}};
v16=function(r){return r.watchWhileMode&&_.N("kevlar_watch_while_counterfactual")};
_.bb=function(r){var f;return _.x(function(I){switch(I.nextAddress){case 1:if(!r.isInitialized())return I.return();_.l_(I,2);return _.b(I,r.miniplayerFetchRequest,4);case 4:_.Hd(I,3);break;case 2:_.ha(I);case 3:r.watchResponse&&r.miniplayerData&&r.miniplayerData.watchEndpoint?(f={url:r.watchResponse.url,endpoint:r.miniplayerData.watchEndpoint,data:r.watchResponse,miniplayer:!0},_.kA(r.miniplayerEl,"yt-navigate-cache",f)):r.miniplayerData&&r.miniplayerData.watchEndpoint&&_.kA(r.miniplayerEl,"yt-navigate",
{endpoint:r.miniplayerData.watchEndpoint}),_.wO(I)}})};
KUD=function(r,f,I){var C,Y,V,S;return _.x(function(h){if(h.nextAddress==1){if(LXs(r,f))return h.return();_.xP().currentEndpoint=f;_.qy(r.miniplayerEl,"yt-miniplayer-endpoint-changed");_.qy(r.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.xP().isVideoPlaying=!1;C={clientParams:{miniplayer:!0,autoSaveToQueue:!I}};Y=new fMU(function(){return r.getPlayerElement()},C,{layer:r.getScreenLayer(),
parentLayer:0},void 0,r.readyToResumeVe);V=function(w){var n,d,z=Object.assign({},(n=w.playerResponse)==null?void 0:(d=n.playerConfig)==null?void 0:d.playbackStartConfig,{startPaused:!0}),g;I&&((g=w.playerResponse)==null?0:g.playerConfig)&&(w.playerResponse.playerConfig.playbackStartConfig=z);Y.processChunk({endpoint:f,data:w})};
KXB(r);r.miniplayerFetchRequest=y6B(r,f,V);_.l_(h,2);return _.b(h,r.miniplayerFetchRequest,4)}if(h.nextAddress!=2)return S=h.yieldResult,U3q(r,S),_.Hd(h,0);_.ha(h);_.wO(h)})};
dg.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var KXB=function(r){r.miniplayerFetchRequest&&(r.miniplayerFetchRequest.cancel&&r.miniplayerFetchRequest.cancel("Active request obsolete"),r.miniplayerFetchRequest=null)},y6B=function(r,f,I){var C=_.uH.instance,Y,V=(Y=_.F(f.commandMetadata,_.oo))==null?void 0:Y.url,S;
Y=!V||_.N("disable_miniplayer_tempdata")?{}:(S=MmR(V))!=null?S:{};return KG(C,f,Y,window.location.href,"watch",function(h,w){I(w)},function(h){return h!==r.miniplayerFetchRequest})},U3q=function(r,f){var I;
_.x(function(C){if(!f)return C.return();r.watchResponse=f;iKd(r);jwV(r);I=_.JlR(f.response,f.playerResponse);if(r.isMiniplayerActive()){f.response&&(r.playerElement.watchNextData=f.response);var Y=_.X0.getValueByKeys.apply(_.X0,[f].concat(_.Na(w3T)));_.X0.getValueByKeys.apply(_.X0,[f].concat(_.Na(zrX)))&&Y&&_.a().resolve(_.WP).setAutoplayRenderer(Y);if(Y)if(_.N("kevlar_is_pupi_enabled")){var V,S,h,w,n,d=((V=f.response)==null?0:(S=V.playerOverlays)==null?0:(h=S.playerOverlayRenderer)==null?0:(w=h.autonavToggle)==
null?0:(n=w.autoplaySwitchButtonRenderer)==null?0:n.enabled)?2:1;_.Qk.getInstance().setState(d,!1,!1)}else V=mJB()?2:1,(d=r.player)==null||d.setAutonavState(V);r.updateMiniplayerData(I);_.HKU(r)}_.wO(C)})},jwV=function(r){var f,I,C=(f=r.watchResponse)==null?void 0:(I=f.playerResponse)==null?void 0:I.playabilityStatus,Y;
f=C==null?void 0:(Y=C.miniplayer)==null?void 0:Y.miniplayerRenderer;(f==null?void 0:f.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&f.minimizedEndpoint&&_.Do(r.miniplayerEl,[f.minimizedEndpoint]);_.zq(r,{miniplayerRenderer:f,playabilityStatus:C})};
dg.prototype.openToast=function(r,f){_.zq(this,{toastData:{data:r,label:f}})};
_.zq=function(r,f){var I=r.miniplayerEl,C;for(C in f)I[C]=f[C];(0,r.miniplayerPropSignalMap[1])(f)};
dg.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var r;return this.playerElement?this.playerElement:(r=_.e(this.miniplayerEl).querySelector("#player-container"))==null?void 0:r.firstElementChild};
var m37=function(r,f){f=f===void 0?!1:f;var I,C,Y,V,S,h,w;return _.x(function(n){if(n.nextAddress==1){I=navigator.userActivation.isActive||f;if(!I||!_.xw())return n.return(!1);C=OKq(r);Y=C.width;V=C.height;return _.b(n,r.pipController.openWindow({width:Y,height:V}),2)}S=n.yieldResult;h=r.pipController.getWindow();if(!h||!S)return n.return(!1);h.document.body.style.overflow="hidden";w=PYK(h);w4s(r.pipController,function(){o1V(r);w()});
return n.return(!0)})},OKq=function(r){var f=_.xP().shortsPipActivation,I,C;
r=f?.5625:(C=(I=r.player)==null?void 0:I.getVideoAspectRatio())!=null?C:16/9;I=Math.min(window.innerWidth,window.innerHeight)/2;f=f?0:76;return r>1?new _.EZ(I,f+I/r):new _.EZ(I*r,f+I)},o1V=function(r){var f;
_.x(function(I){f=_.a().resolve(_.y2);return f.isOnWatch()&&r.watchPipMode||f.isOnShorts()&&r.shortsPipMode?_.b(I,r.deactivate(),0):r.miniplayerToPipMode?_.b(I,WX3(r),0):r.watchPipMode?_.b(I,_.bb(r),0):I.jumpTo(0)})};
dg.prototype.pictureInPictureEnabled=function(){return _.xw()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.OC.Object.defineProperties(dg.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
dg[ZB]=[_.b86,XsT];var Qw6="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(" "),
A6V="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" ");var ZKB=null;var GCi={},kC2=(GCi.initialized={priority:10,callback:function(r){var f=_.a();f.addProvider({provide:M43,useClass:S7V});f.addProvider({provide:_.EiB,useFactory:function(){return new gaC}});
f.addProvider({provide:hb,useValue:_.Lz("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});f.addProvider({provide:PJg,useValue:5184E6});f.addProvider({provide:vWU,useValue:_.tF()});f.addProvider({provide:GB6,useClass:Jtq});f.addProvider({provide:tI,useClass:tI});f.addProvider({provide:_.Zb,useFactory:function(){return o0_.promise}});
f.addProvider({provide:_.AYV,useFactory:function(){return _.Q94.promise}});
f.addProvider({provide:qcK,useValue:function(){var h;return((h=_.sk())==null?void 0:h.getPlayer())||null}});
var I={};f.addProvider((I.provide=_.R0,I.useFactory=function(h,w){return function(){return uHl(h,w)}},I[ZB]=[hb,
PJg],I));I={};f.addProvider((I.provide=_.uQ,I.useClass=wu2,I[ZB]=[hb,PJg],I));I={};f.addProvider((I.provide=_.KPP,I.useClass=dcq,I[ZB]=[_.uQ],I));f.addProvider({provide:fI,useFactory:_.K2});f.addProvider({provide:Ed,useFactory:_.K2});f.addProvider({provide:qP6,useFactory:_.K2});f.addProvider({provide:zXX,useFactory:_.K2});f.addProvider({provide:_.Nb,useFactory:_.K2});f.addProvider({provide:Ob,useValue:_.Yx});f.addProvider({provide:IpY,useClass:cZK});f.addProvider({provide:l6D,useClass:YOV});f.addProvider({provide:$t,
useClass:$t});f.addProvider({provide:d9,useClass:d9});f.addProvider({provide:g9,useClass:g9});f.addProvider({provide:X5,useClass:X5});f.addProvider({provide:LL,useClass:LL});f.addProvider({provide:uq,useClass:uq});f.addProvider({provide:Q7,useClass:Q7});f.addProvider({provide:utC,useValue:N26});f.addProvider({provide:_.Ef,useFactory:_.IB});f.addProvider({provide:ye,useFactory:_.xI});I={};f.addProvider((I.provide=gmq,I.useFactory=function(h){return function(w){var n=n===void 0?{}:n;var d,z,g=(z=_.F((d=
w.endpoint)==null?void 0:d.commandMetadata,_.oo))==null?void 0:z.rootVe;if(g){var X,P;if(d=w.previousCsn||((P=_.F((X=w.endpoint)==null?void 0:X.commandMetadata,Wi4))==null?void 0:P.parentCsn)){var W=W===void 0?{}:W;if(d!==_.t1(W.layer)||g!==LTB(W.layer))HdU(d,W.cttAuthInfo,W.layer||0),cAK(d,W.layer||0),X=W.layer||0,_.Ww(WT$(X===void 0?0:X),g);n.parentCsn=d}w.endpoint&&d?UMs(h,w.endpoint,n):_.f3(h,g,void 0,n);var m;((m=w.response)==null?0:m.trackingParams)&&h.graftServerVe(w.response.trackingParams);
var v;((v=w.playerResponse)==null?0:v.trackingParams)&&h.graftServerVe(w.playerResponse.trackingParams);var O;((O=w.reelWatchSequenceResponse)==null?0:O.trackingParams)&&h.graftServerVe(w.reelWatchSequenceResponse.trackingParams)}}},I[ZB]=[_.Ef],I));
I={};f.addProvider((I.provide=Dcp,I.useClass=u$s,I[ZB]=[Ob,_.Nb],I));I={};f.addProvider((I.provide=Gz,I.useClass=Gz,I[ZB]=[_.Zb,_.Nb],I));I={};f.addProvider((I.provide=o0,I.useClass=o0,I[ZB]=[Ed,_.Gg],I));f.addProvider({provide:_.lUs,useClass:nC7});I={};f.addProvider((I.provide=_.dD,I.useClass=SsB,I[ZB]=[_.lUs],I));f.addProvider({provide:_.z7,useClass:q_});f.addProvider({provide:_.MV,useClass:kt});I={};f.addProvider((I.provide=_.ip,I.useClass=p4U,I[ZB]=[_.ip],I));f.addProvider({provide:_.At,useClass:uPB});
f.addProvider({provide:Ve,useClass:Ve});f.addProvider({provide:bp,useClass:bp});f.addProvider({provide:XM,useClass:Bs});I={};f.addProvider((I.provide=FM,I.useClass=FM,I[ZB]=[_.z7,XM],I));_.N("web_enable_feedback_endpoint_resolver")&&(I={},f.addProvider((I.provide=I3,I.useClass=I3,I[ZB]=[fI,rw],I)),f.addProvider({provide:rw,useClass:M63}));_.N("web_enable_feedback_endpoint_resolver_batch_2")&&(I={},f.addProvider((I.provide=Y5,I.useClass=Y5,I[ZB]=[fI],I)),I={},f.addProvider((I.provide=CI,I.useClass=
CI,I[ZB]=[rw],I)));I={};f.addProvider((I.provide=Nq,I.useClass=Nq,I[ZB]=[_.MV,XM],I));I={};f.addProvider((I.provide=zu,I.useClass=zu,I[ZB]=[_.MV],I));I={};f.addProvider((I.provide=$5,I.useClass=$5,I[ZB]=[_.pJ,_.dD],I));I={};f.addProvider((I.provide=a3,I.useClass=a3,I[ZB]=[_.pJ,_.Ef],I));f.addProvider({provide:Ab,useClass:Ab});I={};f.addProvider((I.provide=KI,I.useClass=KI,I[ZB]=[fI],I));I={};f.addProvider((I.provide=V7,I.useClass=V7,I[ZB]=[fI],I));I={};f.addProvider((I.provide=E8,I.useClass=E8,I[ZB]=
[_.pJ,fI],I));I={};f.addProvider((I.provide=SL,I.useClass=SL,I[ZB]=[fI],I));I={};f.addProvider((I.provide=xF,I.useClass=xF,I[ZB]=[fI],I));I={};f.addProvider((I.provide=Mq,I.useClass=Mq,I[ZB]=[_.dD],I));I={};f.addProvider((I.provide=qq,I.useClass=qq,I[ZB]=[_.Ef],I));I={};f.addProvider((I.provide=C0,I.useClass=C0,I[ZB]=[o3],I));I={};f.addProvider((I.provide=YF,I.useClass=YF,I[ZB]=[o3],I));f.addProvider({provide:r4,useClass:r4});f.addProvider({provide:f0,useClass:f0});f.addProvider({provide:BC,useClass:BC});
I={};f.addProvider((I.provide=PC,I.useClass=PC,I[ZB]=[_.dD,_.Gg],I));f.addProvider({provide:x5,useClass:x5});I={};f.addProvider((I.provide=gw,I.useClass=gw,I[ZB]=[_.pJ,_.dD],I));f.addProvider({provide:pI,useClass:pI});I={};f.addProvider((I.provide=R3,I.useClass=R3,I[ZB]=[fI,_.pJ,_.ip],I));I={};f.addProvider((I.provide=jY,I.useClass=jY,I[ZB]=[_.pJ,_.Gg],I));f.addProvider({provide:aI4,useValue:pyw});f.addProvider({provide:L1B,useValue:$Hw});f.addProvider({provide:HC,useClass:HC});I={};f.addProvider((I.provide=
Jb,I.useClass=Jb,I[ZB]=[fI],I));I={};f.addProvider((I.provide=vC,I.useClass=vC,I[ZB]=[_.At,_.Gg],I));I={};f.addProvider((I.provide=lp,I.useClass=lp,I[ZB]=[_.Gg],I));f.addProvider({provide:DJ,useFactory:function(){return new DJ(_.K2())}});
f.addProvider({provide:Oaw,useFactory:_.ct.getInstance});I={};f.addProvider((I.provide=ww,I.useClass=ww,I[ZB]=[hb,Oaw,_.Gg],I));f.addProvider({provide:Eu,useClass:Eu});f.addProvider({provide:G_,useClass:G_});f.addProvider({provide:BT,useClass:BT});f.addProvider({provide:_.kR,useClass:_.kR});f.addProvider({provide:bq,useClass:bq});I={};f.addProvider((I.provide=LI,I.useClass=LI,I[ZB]=[Ed],I));I={};f.addProvider((I.provide=mh,I.useClass=mh,I[ZB]=[_.Gg],I));_.N("web_enable_prefetching_videos_on_home")&&
(f.addProvider({provide:ON,useClass:ON}),f.addProvider({provide:Ey,useClass:Ey}));I={};f.addProvider((I.provide=w4,I.useClass=w4,I[ZB]=[_.Gg],I));f.addProvider({provide:qH,useClass:qH});I={};f.addProvider((I.provide=Zq,I.useClass=Zq,I[ZB]=[_.pJ,_.Gg],I));I={};f.addProvider((I.provide=uW,I.useClass=uW,I[ZB]=[_.Gg],I));f.addProvider({provide:ST,useClass:ST});f.addProvider({provide:cC,useClass:cC});I={};f.addProvider((I.provide=Tu,I.useClass=Tu,I[ZB]=[Ed,_.Gg],I));I={};f.addProvider((I.provide=d4,I.useClass=
d4,I[ZB]=[Ed,_.Gg,_.pJ],I));I={};f.addProvider((I.provide=zr,I.useClass=zr,I[ZB]=[_.Gg],I));I={};f.addProvider((I.provide=n0,I.useClass=n0,I[ZB]=[_.Gg,_.pJ],I));I={};f.addProvider((I.provide=eY,I.useClass=eY,I[ZB]=[_.Zb],I));I={};f.addProvider((I.provide=WC,I.useClass=WC,I[ZB]=[_.Zb],I));f.addProvider({provide:Ou,useClass:Ou});f.addProvider({provide:Qe,useClass:Qe});f.addProvider({provide:lq,useClass:lq});f.addProvider({provide:Gu,useClass:Gu});f.addProvider({provide:su,useClass:su});f.addProvider({provide:nI,
useClass:nI});f.addProvider({provide:Uu,useClass:Uu});_.N("kevlar_enable_mss_lazy_load")&&f.addProvider({provide:_.va,useClass:sYd});f.addProvider({provide:_.BP,useClass:DC});f.addProvider({provide:ox,useFactory:function(){return _.iz.getInstance()}});
f.addProvider({provide:kB3,useFactory:buE});f.addProvider({provide:o3,useFactory:function(){return _.gj.getInstance()}});
f.addProvider({provide:Rj3,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});I={};f.addProvider((I.provide=_.Q5,I.useClass=_.Q5,I[ZB]=[_.Zb,_.Gg,_.Ef,kB3,o3,ox,Rj3,Ob],I));f.addProvider({provide:_.C_,useClass:YN4});f.addProvider({provide:_.T3X,useClass:t6D});I={};f.addProvider((I.provide=dw,I.useClass=dw,I[ZB]=[_.T3X],I));I={};f.addProvider((I.provide=_.A5,I.useFactory=function(h){return h.upliftCompletionResolver.promise},I[ZB]=[Dcp],I));
I=_.mO("IS_SHELL_LOAD")?"aa":"eocs";var C=_.mO("IS_SHELL_LOAD")?3:2;_.mZ().parkOrScheduleJob(function(){fU6()},C,I);
_.mZ().parkOrScheduleJob(function(){_.a().resolve(Gz).start()},2,"eocs");
_.mZ().parkOrScheduleJob(function(){BR6()},2,"eocs");
_.mZ().parkOrScheduleJob(function(){_.a().resolve(o0).start()},2,"eocs");
_.N("kevlar_debug_data_app_registration_ks")||$$q();f.addProvider({provide:_.dW,useValue:new hFq(r.root)});f.addProvider({provide:jq,useValue:new kiP});f.addProvider({provide:_.guD,useValue:new zF_(r.root)});f.addProvider({provide:_.bA,useValue:new MEs});f.addProvider({provide:_.rQ,useClass:ET});f.addProvider({provide:_.b86,useClass:ui});_.N("kevlar_network_sli_killswitch")||f.addProvider({provide:pB2,useValue:XZV});f.addProvider({provide:C2p,useFactory:urE});_.N("web_bind_fetch")&&(I={},f.addProvider((I.provide=
Y76,I.useFactory=DYR,I[ZB]=[_.ZY(C2p)],I)));_.N("web_bind_parse")&&(I={},f.addProvider((I.provide=lpi,I.useFactory=rlq,I[ZB]=[_.ZY(C2p)],I)));_.N("web_bind_window_request")&&(I={},f.addProvider((I.provide=Vdq,I.useFactory=fQ$,I[ZB]=[_.ZY(C2p)],I)));I={};f.addProvider((I.provide=sIg,I.useFactory=dgP,I[ZB]=[_.A5,fI,_.R0],I));I={};f.addProvider((I.provide=U93,I.useClass=Ml,I[ZB]=[sIg],I));f.addProvider({provide:CUi,useClass:D9s});f.addProvider({provide:RC3,useClass:KjT});I=[].concat(_.Na(J8));_.N("web_continuation_response_processing")&&
I.push(_.$Z);I.push(qG3);_.N("enable_share_panel_navigation_logging_fix_on_web")&&I.push(_.PCC);f.addProvider({provide:yTq,useValue:I});f.addProvider({provide:Ajl,useClass:i1_});f.addProvider({provide:MdV,useClass:niq});I={};f.addProvider((I.provide=sUK,I.useClass=Wns,I[ZB]=[Ed],I));_.F_.addLowPriorityJob(function(){vzU()});
I={};f.addProvider((I.provide=aM3,I.useFactory=function(h){return function(w){var n,d=(n=_.F(w.commandMetadata,_.oo))==null?void 0:n.url;if(!d)throw new _.nf("No URL for PBJ Command",w);d=Tbc(d,{pbj:"1"});n=Q6K(d,{})||{};n=Object.assign({},n,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Lz("STS").toString()});w=_.VD({command:JSON.stringify(w),session_token:_.Lz("XSRF_TOKEN")});return h.fetch(d,{method:"POST",headers:n,body:w})}},I[ZB]=[MdV],I));
I=[];I.push(f.resolve(RC3));C={};C=(C.client_location=_.ct.getInstance(),C.consistency=_.eIw(),C.entities=f.resolve(l6D),C.response_received_commands=f.resolve(Ajl),C.store=f.resolve(_.KPP),C.tokens=f.resolve(RC3),C);if(_.N("web_shorts_prefetch_service_enabled")){var Y=new zls(f.resolve(_.uQ));C.shorts_prefetch=Y}C.adblock_detection=f.resolve(sUK);f.addProvider({provide:_.ix,useClass:_.ix});Y=f.resolve(utC);var V=[];if(_.N("PremiumClientSharedConfig__enable_att_context_processor")||_.N("enable_att_for_transcript_request_on_web_client"))f.addProvider({provide:OtT,
useClass:yw3}),V.push(f.resolve(OtT));if(_.N("owl_pl_await")){var S={};f.addProvider((S.provide=qsd,S.useFactory=function(h){return new k4i(h)},S[ZB]=[_.ix],S));
V.push(f.resolve(qsd))}Tks(Y,f.resolve(MdV),f.resolve(IpY),C,f.resolve(_.uQ),I,V,f.resolve(U93),f.resolve(CUi));f.addProvider({provide:_.pJ,useValue:_.Wl.instance});_.N("start_client_gcf")&&f.addProvider({provide:zL,useValue:Q5B()});f.addProvider({provide:CVB,useFactory:function(){return new CVB(_.a().resolve(_.ix),_.gj.getInstance())}});
_.mZ().parkOrScheduleJob(function(){Ys1()},1,"eocs");
I={};f.addProvider((I.provide=ZC,I.useClass=ZC,I[ZB]=[_.R0,_.pJ],I));f.addProvider({provide:_.aU1,useFactory:_.Vj.getInstance});_.mZ().parkOrScheduleJob(function(){_.a().resolve(ZC).refresh()},0,"eocs");
XgX(N26.watchEndpointMap||{},Y.reelWatchEndpointMap||{},r.injector.resolve(_.pJ));f.addProvider({provide:$w,useValue:_.uH.instance});_.N("kevlar_signal_collection_killswitch")||(I={},f.addProvider((I.provide=Zw6,I.useClass=Zw6,I[ZB]=[hb,ye],I)),_.mZ().parkOrScheduleJob(function(){_.a().resolve(Zw6).record()},1,"eocs"));
_.N("web_debug_handler_registration_killswitch")||_.mZ().parkOrScheduleJob(function(){X5$("DOWNLOAD_PES",wQR);_.N("offline_client_state_export_ks")||X5$("OFFLINE_CLIENT_STATE",SYP)},0,"eocs");
_.N("kevlar_prevent_polymer_dynamic_font_load")&&_.mZ().parkOrScheduleJob(function(){var h=[_.u_(L61),_.u_(m67)];h=_.E(h);for(var w=h.next();!w.done;w=h.next()){w=w.value;var n=document.createElement("link");_.UR(n,w,"stylesheet");document.head.appendChild(n)}},1,"eocs");
I=r.injector.resolve(_.pJ);_.snD.instance=new _.snD(I);B1q(jnB(new UNX(I)));I={};r.injector.addProvider((I.provide=A7,I.useFactory=function(h){(h=h==null?void 0:h.getCurrentPage())?h=h.visibilityObserver:(ZKB||(ZKB=Jiu()),h=ZKB);return h},I[ZB]=[_.ZY(_.y2)],I.skipCache=!0,I));
f.addProvider({provide:_.iO,useClass:dg});f.addProvider({provide:VJ,useClass:ws_});f.addProvider({provide:SyR,useValue:z8q});r.injector.addProvider({provide:gK8,useValue:xN8});f.addProvider({provide:YAU,useValue:bbu});f.addProvider({provide:_.cI,useValue:P8P});r=f.addProvider;NB3||(NB3=new X4B);r.call(f,{provide:_.$T6,useValue:NB3});f.addProvider({provide:_.Lv,useValue:_.Lz("HTML_DIR")==="rtl"?"rtl":"ltr"});f.addProvider({provide:EW4,useClass:d98});f.addProvider({provide:_.Bc,useClass:rg});_.a().addProvider({provide:x9q,
useValue:Qw6.concat(A6V)});f.addProvider({provide:_.Ig,useClass:_.Ig});f.addProvider({provide:_.P2q,useValue:new F63});f.addProvider({provide:hws,useClass:I64});f.addProvider({provide:k5,useClass:k5});f.addProvider({provide:up,useClass:up});r={};f.addProvider((r.provide=tb,r.useClass=tb,r[ZB]=[_.pJ,_.dD],r));f.addProvider({provide:p0,useClass:p0});f.addProvider({provide:LzT,useClass:zgi});f.addProvider({provide:IT,useClass:IT});f.addProvider({provide:fg4,useValue:yD8});f.addProvider({provide:_.t4,
useClass:CJ_});_.N("enable_payments_purchase_manager")&&f.addProvider({provide:Zt4,useClass:ouC});f.addProvider({provide:cU6,useFactory:function(){return function(h){return _.Tsq(h)}}});
f.addProvider({provide:_.jIq,useClass:H1D});r={};f.addProvider((r.provide=hT,r.useClass=hT,r[ZB]=[_.jIq],r));f.addProvider({provide:Dq,useClass:Dq});f.addProvider({provide:Pj3,useValue:ufg});f.addProvider({provide:JMC,useValue:W3B});f.addProvider({provide:epu,useClass:dT2});f.addProvider({provide:T2s,useValue:taY});r={};f.addProvider((r.provide=_.cg3,r.useClass=Wo3,r[ZB]=[T2s],r));_.N("web_ephemeral_actions")&&(r={},f.addProvider((r.provide=_.Y_,r.useClass=CS,r[ZB]=[_.Nb,_.rQ],r)));if(_.N("web_explore_hub_on_hover")||
_.N("web_client_explore_hub_on_hover"))r={},f.addProvider((r.provide=SY,r.useClass=SY,r[ZB]=[_.pJ,ox],r));f.addProvider({provide:lqw,useValue:qbR})}},GCi);var Bni={},qRs=(Bni.initialized={priority:10,callback:function(){if(!bqd){f1K();Cjq("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.ff(_.S_(Cjq,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.N("log_heartbeat_with_lifecycles")){var r={};US.instance||(US.instance=new US);US.instance.install((r.document_visible={callback:YFK,priority:10},r.document_hidden={callback:YFK,priority:10},r))}else _.oh(document,"visibilitychange",YFK);bqd=!0}(r=_.t1())&&r!=="UNDEFINED_CSN"&&tXK(r)}},Bni);var uE7={},D3p=(uE7.initialized={callback:function(r){var f=_.pQ(232091),I=r.injector.resolve(_.Ef);_.Ia(I,f);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?teu()&&_.YP(I,f):(r=r.injector.resolve(cU6)("refresh_detector"))&&(r.get("first_tab_load")?_.YP(I,f):r.set("first_tab_load","1"))}},uE7);var rad={},fj3=(rad.initialized={priority:10,callback:jUK},rad);var IjU={},C_p=(IjU.initialized={priority:0,callback:function(){var r=new kZq,f="other";_.xp?f="chrome":_.Sg?f="firefox":_.Wd?f="safari":UH&&(f="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(I){r.increment(_.wl(),I,f)}).catch(function(){r.increment(_.wl(),!1,f)}):r.increment(_.wl(),!1,f)}},IjU);var YgV={},lj3=(YgV.rendering={priority:8,callback:HaU},YgV);var VPd={},EV6=(VPd.rendering={priority:10,callback:GPl},VPd.rendered={callback:ZaR},VPd),Sgi={},xaU=(Sgi.rendering={callback:GPl},Sgi.rendered={callback:ZaR},Sgi);var hU6=!1,wGp={},bid=(wGp.initialized={priority:10,callback:function(){hU6||(TpB({didPatch:function(r){r.el&&CLc(r.el,r.props)},
didUnmount:function(r){fuq(r.el)}}),hU6=!0)}},wGp);var pGp=/^\/shorts\/?$/;_.Ww("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.N("kevlar_enable_mss")){_.hSd(new L0_);var nVs=!0,daq,M1;nVs=nVs===void 0?!1:nVs;daq=daq===void 0?!1:daq;M1=M1===void 0?{}:M1;var zU3=M1.cssRowKey||"",MP7=M1.combinedSignature||"";!zU3&&window&&window._F_cssRowKey&&(zU3=window._F_cssRowKey,!MP7&&window._F_combinedSignature&&(MP7=window._F_combinedSignature));if(zU3&&typeof window._F_installCss!=="function")throw Error("vd");var gV3=M1.loaderClass||_.js,gg=kgB("base-js"),aj1,XGd=qQE("",gg);aj1=_.SF(XGd);var ag=new gV3(aj1,zU3,MP7,nVs,daq),NOi=
M1.useCors||gg&&gg.hasAttribute("crossorigin"),$as=M1.corsMode||gg&&gg.getAttribute("crossorigin");NOi&&(ag.useCors_=NOi);$as&&(ag.corsMode_=$as);M1.urlMaxLength&&(ag.urlMaxLength=M1.urlMaxLength);M1.fetchPriority&&(ag.fetchPriority=M1.fetchPriority);var F_d=FF();F_d.JSC$7954_loader_=ag;F_d.setBatchModeEnabled(!0)}
(function(){var r=document.querySelector("ytd-app");if(!r)throw Error("Ej");r=new lb({root:r,injector:_.a()});r.install(qRs);var f={};r.install((f.initialized={priority:10,callback:FBK},f));_.N("wp_lat_b")&&(f={},r.install((f.initialized={priority:10,callback:function(){keU()}},f)));
f={};r.install((f.rendered={priority:0,callback:XHP},f));f={};r.install((f.rendered={priority:0,callback:function(){_.F_.addLowPriorityJob(function(){_.zCs>1&&(pHR(),gGR())},4E4)}},f));
r.install(I$7);r.install(D3p);r.install(bid);W6q||(W6q=!0,Object.assign(ka,{handleError:xgu,enableComponentStacksInErrorMessages:!1}),iNU=OEB,PzK=heR,UW$=MyU,vlR=gMU,_.N("ytwiz_enable_debug_component_props")&&ZNK());r.install(hLB);r.install(Bsq);r.install(rgd);r.install(ym6);r.install(QR1);r.install(SW3);r.install(kC2);_.N("kevlar_enable_mss_lazy_load")&&r.install(fj3);r.install(u32);r.install(C_p);if(!_.mO("IS_SHELL_LOAD")||_.N("kevlar_fetch_initial_data_promise_client")||_.N("sw_nav_preload_pbj")){var I=
_.Cf(window.location.href);f=I&&I==="/watch";I=I&&I.match(pGp);f?r.install(xaU):I?r.install(lj3):r.install(EV6)}else r.install(Zq6);r.install(YWY);_.N("web_enable_prefetching_videos_on_home")&&r.install(nH2);_.N("start_client_gcf")&&r.install(wB2);r.install(Hw6);(new B53).increment("INSTALLED");r.install(bjs);r.install(oi2);r.transition("initialized");yfw()})();
_.qj=[[["ZCNlbjF4eXZic2JxdDFraW4=","ajMzdG5ybm1jdmFsdWUja2Y4"],"UExBQ0VNRU5UX0tJTkRfRU5EI3AyZTl5aGQ3Y2RiYUFEXw=="]];_.B1=["a3Mjc3BkNDBkY3g0eWJvZ2xvYmFsQ2FsbGJhYw==","Ym5vcm1hbGl0eURldGVjdGVkI2FyMmxmM3Q2bng1MG9uQQ==","aXAjNWMzbW84dXVneXVrb25BZFNr","ZWxtaGdmcmF3X3BsYXllcl9yZXNwb25zZSM5ZHhiYg==","Y2pkNGlicHh6YWRQbGFjZW1lbnRDb25maWcjaHRz"];_.Ra="a3Mjc3BkNDBkY3g0eWJvZ2xvYmFsQ2FsbGJhYw== Ym5vcm1hbGl0eURldGVjdGVkI2FyMmxmM3Q2bng1MG9uQQ== aXAjNWMzbW84dXVneXVrb25BZFNr ZWxtaGdmcmF3X3BsYXllcl9yZXNwb25zZSM5ZHhiYg== d3dlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyN4YXMxYWV4bWw1NA== ZWYjdHV5cXFzZDliMDNnYWJfc2Ff Y2pkNGlicHh6YWRQbGFjZW1lbnRDb25maWcjaHRz".split(" ");
_._ModuleManager_initialize=function(r,f){if(!_.Nu){if(!_.$a)return;_.hSd(_.$a())}_.Nu.setAllModuleInfoString(r,f)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.P0=function(r,f,I,C,Y){var V={};f&&(V[f]=I);C?V.errorType=C:Y&&(V.errorReason=Y);_.NW(r,V);_.$l()};
_.tx=function(r,f){_.lZm(r,_.iX(f))};
_.Tq=function(r){var f=_.mZ();return _.Fqg(f,r,1)};
_.wm({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 r=this.query;r&&(this.full||r[0]==="("||(r="("+r+")"),this._mq=window.matchMedia(r),this._add(),this.queryHandler(this._mq))},
queryHandler:function(r){this._setQueryMatches(r.matches)}});var Hi7;var ii2;var RUU=function(){};
_.l=RUU.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(){};
RUU=_.wm({is:"tp-yt-paper-radio-button",_template:function(){if(ii2!==void 0)return ii2;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;Hi7===void 0&&(Hi7=document.createElement("template"));var C=Hi7;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return ii2=r},
behaviors:[_.nUs],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(){_.UC(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var r=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),f=Math.floor(3*r);f%2!==r%2&&f++;this.updateStyles({"--paper-radio-button-ink-size":f+"px"})}})}});var vVi;var K_i;_.wm({_template:function(){if(K_i!==void 0)return K_i;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;vVi===void 0&&(vVi=document.createElement("template"));var C=vVi;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return K_i=r},
is:"tp-yt-paper-radio-group",behaviors:[_.WCU],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(r){var f=this._valueToItem(r);if(!f||!f.hasAttribute("disabled")){if(this.selected){f=this._valueToItem(this.selected);if(this.selected==r)if(this.allowEmptySelection)r="";else{f&&(f.checked=!0);return}f&&
(f.checked=!1)}_.TX.select.apply(this,[r]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(r){this._focusPrevious();r.preventDefault();this._activateFocusedItem()},
_onDownKey:function(r){this._focusNext();r.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(r){_.c83._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(r){_.c83._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.TX._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.FS._resetTabindices.apply(this,arguments);this.items.forEach(function(r){r.removeAttribute("aria-selected")},this)}});var yaV;_.gW("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var c0=function(){return _.y.apply(this,arguments)||this};
_.t(c0,_.y);_.l=c0.prototype;_.l.computeHasPrimaryIcon=function(r){return!(!r.icon&&!r.thumbnail)};
_.l.computeHasSecondary=function(r){return!(!r.secondaryIcon&&!r.secondaryNotificationText)};
_.l.computeHideSecondaryString=function(r){return!_.N("disable_hide_empty_secondary_string")&&!r.secondaryNotificationText};
_.l.computeCompactLinkStyle=function(r){return r?r.toLowerCase().replace(/_/g,"-"):""};
_.l.computeHasFitHeight=function(r){return r==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.l.isActiveEndpoint=function(r){return(r=this.get("commandMetadata.webCommandMetadata.url",r))?_.Cf(window.location.href)!=="/account_transfer_channel"&&_.Cf(window.location.href)!=="/gaia_link"&&_.Cf(window.location.href)!=="/channel_switcher"||r!=="/account"?_.Cf(window.location.href)===r:!0:!1};
_.l.onTap=function(){var r;((r=this.data)==null?0:r.serviceEndpoint)&&_.Do(this.hostElement,[this.data.serviceEndpoint])};
c0.prototype.onTap=c0.prototype.onTap;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],c0.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.B("design:type",Boolean)],c0.prototype,"active",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.B("design:type",String)],c0.prototype,"compactLinkStyle",void 0);
_.A([_.K({computed:"computeIcon_(data.icon)"}),_.B("design:type",Object)],c0.prototype,"icon",void 0);_.A([_.K({computed:"computeIcon_(data.secondaryIcon)"}),_.B("design:type",Object)],c0.prototype,"secondaryIcon",void 0);_.A([_.K({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],c0.prototype,"hasSecondary",void 0);_.A([_.K({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],c0.prototype,"hideSecondaryString",void 0);
_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],c0.prototype,"onTap",null);c0=_.A([_.U({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],c0);
_.Q(c0,"ytd-compact-link-renderer",function(){if(yaV!==void 0)return yaV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return yaV=r},{mode:1});var Ua3;_.gW("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var W0=function(){var r=_.y.apply(this,arguments)||this;r.role="link";r.tabindex="0";r.actionMap=_.N("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 r};
_.t(W0,_.y);_.l=W0.prototype;_.l.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Pt()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.l.getCurrentTheme=function(){return _.tN()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Pt()};
_.l.onThemeSelected=function(r,f){var I=r||f?r:_.Fd(),C=(I&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!I&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.WBE(_.Cf(window.location.href));_.hZ(0,165,r);_.hZ(0,174,f);this.prefs.save();C&&_.Bj(this.hostElement,"yt-dark-mode-toggled-action",[I]);_.Bj(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.l.onTap=function(){this.data.serviceEndpoint&&_.Do(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)};
W0.prototype.onTap=W0.prototype.onTap;W0.prototype.dataChanged=W0.prototype.dataChanged;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],W0.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],W0.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.OK),_.B("design:type",Object)],W0.prototype,"paperItemBehaviors",void 0);_.A([_.K(),_.B("design:type",Object)],W0.prototype,"data",void 0);_.A([_.K({value:function(){return _.xI()}}),
_.B("design:type",_.Bz)],W0.prototype,"prefs",void 0);_.A([_.K(),_.B("design:type",Object)],W0.prototype,"label",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],W0.prototype,"role",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],W0.prototype,"tabindex",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],W0.prototype,"dataChanged",null);
_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],W0.prototype,"onTap",null);W0=_.A([_.U({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],W0);
_.Q(W0,"ytd-toggle-theme-compact-link-renderer",function(){if(Ua3!==void 0)return Ua3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Ua3=r},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.o8=function(r){return function(f,I){var C=r||I.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(f,I,{get:function(){var Y;return this.$?this.$[C]:(Y=_.qG(this))==null?void 0:Y.querySelector("#"+C)},
enumerable:!0,configurable:!0})}};_.QK=function(r){r=r===void 0?!1:r;_.Mu.call(this);this.pubSub_=new _.EH(r);_.V$(this,this.pubSub_)};
_.rh(_.QK,_.Mu);_.QK.prototype.subscribe=function(r,f,I){return this.isDisposed()?0:this.pubSub_.subscribe(r,f,I)};
_.QK.prototype.unsubscribe=function(r,f,I){return this.isDisposed()?!1:this.pubSub_.unsubscribe(r,f,I)};
_.QK.prototype.unsubscribeByKey=function(r){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(r)};
_.QK.prototype.publish=function(r,f){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var YNB=function(){_.P0("ypcRedeemFlowStarted")},Sf=function(r){_.P0("ypcRedeemFlowFailed",void 0,void 0,void 0,r)},lCd=function(r,f,I){f&&I&&(r.videos.forEach(function(C){C.videoId===f&&(C.itemId=I)}),r.recommendedVideos.forEach(function(C){C.videoId===f&&(C.itemId=I)}))};var VD1;var EtV;/*

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
*/
_.wm({_template:function(){if(EtV!==void 0)return EtV;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;VD1===void 0&&(VD1=document.createElement("template"));var C=VD1;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return EtV=r},
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(r,f){var I=this._resolveSrc(r);I!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",r===""||f?this._setLoading(!1):(this._resolvedSrc=I,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 r=this.$.sizedImgDiv.style,f=this.$.placeholder.style;r.backgroundSize=f.backgroundSize=this.sizing;r.backgroundPosition=f.backgroundPosition=this.sizing?this.position:"";r.backgroundRepeat=f.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(r){r=_.qW(r,this.$.baseURIAnchor.href);r.length>=2&&r[0]==="/"&&r[1]!=="/"&&(r=(location.origin||location.protocol+"//"+location.host)+r);return r}});var SN2;var x_Y;_.wm({_template:function(){if(x_Y!==void 0)return x_Y;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;SN2===void 0&&(SN2=document.createElement("template"));var C=SN2;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return x_Y=r},
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(r){return r?"false":"true"},
_headingChanged:function(r){var f=this.getAttribute("heading"),I=this.getAttribute("aria-label");typeof I==="string"&&I!==f||this.setAttribute("aria-label",r)},
_computeHeadingClass:function(r){return r?" over-image":""},
_computeAnimated:function(r){return r}});var hT6=new _.q("addRendererToItemSectionAction");var wsU;var xd=function(){return _.y.apply(this,arguments)||this};
_.t(xd,_.y);xd.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],xd.prototype,"rendererBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],xd.prototype,"dismissibleItemBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],xd.prototype,"rendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],xd.prototype,"data",void 0);xd=_.A([_.U({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],xd);
_.Q(xd,"ytd-comment-history-entry-renderer",function(){if(wsU!==void 0)return wsU;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return wsU=r},{mode:1});var bL6;_.gW("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.gW("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var hf=function(){return _.y.apply(this,arguments)||this};
_.t(hf,_.y);_.l=hf.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(r){if(r.keyCode===13)this.onTap()};
_.l.onTap=function(){this.data.recordClickEndpoint&&_.a().resolve(_.Gg).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var r=this.data.navigationEndpoint;r&&_.F(r,_.tL)&&_.a().resolve(_.Gg).resolveCommand(r,{form:{element:this.hostElement}})};
_.l.readChanged=function(){var r;_.ob(this.hostElement,"unread",!((r=this.data)==null?0:r.read))};
_.l.dataChanged=function(){this.data&&_.ob(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.l.computeThumbnailSize=function(){var r;return((r=this.data)==null?0:r.highPriorityNotification)?32:48};
_.l.getEndpointURL=function(r){return r&&!_.F(r,_.tL)?this.componentBehavior.computeHref_(r):null};
_.l.getEndpointData=function(r){return r&&!_.F(r,_.tL)?r:null};
hf.prototype.computeThumbnailSize=hf.prototype.computeThumbnailSize;hf.prototype.dataChanged=hf.prototype.dataChanged;hf.prototype.readChanged=hf.prototype.readChanged;hf.prototype.onKeyUp=hf.prototype.onKeyUp;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],hf.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],hf.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],hf.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],hf.prototype,"data",void 0);_.A([_.K({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.B("design:type",Number)],hf.prototype,"thumbnailSize",void 0);_.A([_.kO("keyup"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],hf.prototype,"onKeyUp",null);
_.A([_.Bt("data.read"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hf.prototype,"readChanged",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hf.prototype,"dataChanged",null);_.A([_.Bt("data.highPriorityNotification"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hf.prototype,"computeThumbnailSize",null);
hf=_.A([_.U({is:"ytd-notification-renderer",disableElementRegistration:!0})],hf);
_.Q(hf,"ytd-notification-renderer",function(){if(bL6!==void 0)return bL6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return bL6=r},{mode:1});var pss;var w$=function(){return _.y.apply(this,arguments)||this};
_.t(w$,_.y);w$.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"}}}};
w$.prototype.computeActionButtonClass=function(r){return!r.actionButtons||r.actionButtons.length<=1?"single-button":r.description?"vertical-buttons":"horizontal-buttons"};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],w$.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],w$.prototype,"data",void 0);w$=_.A([_.U({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],w$);
_.Q(w$,"ytd-playlist-show-metadata-renderer",function(){if(pss!==void 0)return pss;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return pss=r},{mode:1});var nti;_.gW("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var bv=function(){return _.y.apply(this,arguments)||this};
_.t(bv,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],bv.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],bv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],bv.prototype,"data",void 0);bv=_.A([_.U({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],bv);
_.Q(bv,"ytd-purchase-item-renderer",function(){if(nti!==void 0)return nti;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return nti=r},{mode:1});var d_1;var zTV={};zTV.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(r){if(r)return r.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(r){if(r==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.gW("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var pu=function(){return _.y.apply(this,arguments)||this};
_.t(pu,_.y);pu.prototype.onYtNavigate=function(r){var f=this.openPopupBehavior.getNavigationEndpointPopupAction(r.detail.endpoint);f&&(r.stopPropagation(),this.openPopupBehavior.openPopup(f))};
pu.prototype.onYtNavigate=pu.prototype.onYtNavigate;_.A([_.J(zTV.YtSimpleTextSectionBehavior),_.B("design:type",Object)],pu.prototype,"ytSimpleTextSectionBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.RO),_.B("design:type",Object)],pu.prototype,"openPopupBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],pu.prototype,"data",void 0);
_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],pu.prototype,"onYtNavigate",null);pu=_.A([_.U({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],pu);
_.Q(pu,"ytd-simple-text-section-renderer",function(){if(d_1!==void 0)return d_1;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return d_1=r},{mode:1});var MDV;_.gW("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var nu=function(){return _.y.apply(this,arguments)||this};
_.t(nu,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],nu.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],nu.prototype,"data",void 0);nu=_.A([_.U({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],nu);
_.Q(nu,"ytd-unlimited-page-feature-info-renderer",function(){if(MDV!==void 0)return MDV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return MDV=r},{mode:1});var gtV;var aCV;var d$=function(){return _.y.apply(this,arguments)||this};
_.t(d$,_.y);d$.prototype.dataChanged=function(){if(this.data){var r=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);r&&(r=_.yH(r,screen.width),this.hostElement.style.backgroundImage="url("+r+")")}};
d$.prototype.dataChanged=d$.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],d$.prototype,"data",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],d$.prototype,"dataChanged",null);d$=_.A([_.U({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],d$);
_.Q(d$,"ytd-post-redemption-section-renderer",function(){if(aCV!==void 0)return aCV;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return aCV=r},{mode:1});var Xs6;var ze=function(){return _.y.apply(this,arguments)||this};
_.t(ze,_.y);ze.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ze.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ze.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ze.prototype,"data",void 0);ze=_.A([_.U({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],ze);
_.Q(ze,"ytd-ypc-post-redemption-renderer",function(){if(Xs6!==void 0)return Xs6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Xs6=r},{mode:1});_.gW("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var MY=function(){var r=_.y.apply(this,arguments)||this;r.MIN_CODE_LENGTH=12;r.MAX_CODE_LENGTH=24;return r};
_.t(MY,_.y);_.l=MY.prototype;_.l.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.l.created=function(){this.riskService=new _.eNw;this.loadPaymentThenable=_.j2u(_.Lz("YPC_MB_URL"))};
_.l.ready=function(){var r=this;this.code.addEventListener("keypress",function(f){r.onCodeInputKeypress(f)})};
_.l.dataChanged=function(){var r=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(f){f=_.E(f);for(var I=f.next();!I.done;I=f.next())I=I.value,I.type==="attributes"&&I.attributeName==="dark"&&r.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 r=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+r+")")}};
_.l.computeRedeemButton=function(r){(r=this.get("redeemButton.buttonRenderer",r))&&(r=Object.assign({},r,{serviceEndpoint:void 0}));return r};
_.l.onRedeemButtonTap=function(r){r.stopPropagation();YNB();this.redeemCode()};
_.l.redeemCode=function(){var r=this;this.isLoading=!0;var f=this.riskService.init();_.aP([f,this.loadPaymentThenable]).then(function(){var I=r.data.redeemButton.buttonRenderer.serviceEndpoint,C=_.JzR(),Y=payments.business.integration.ClientTokenFactory.createClientToken(_.F(I,_.NQ_).countryCode,C);C={c:r.code.value.trim(),rd:window.btoa(C),ctk:Y};I&&_.a().resolve(_.Gg).resolveCommand(I,{form:Object.assign({},C,{element:r.hostElement})})},function(){r.showGenericError();
Sf("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.eH(Error("Sl"))})};
_.l.onYtServiceRequestCompleted=function(r){r.stopPropagation();this.isLoading=!1;var f,I;this.errorMessage=(f=r.detail)==null?void 0:(I=f.data)==null?void 0:I.errorMessage;var C,Y;this.postRedemptionRenderer=(C=r.detail)==null?void 0:(Y=C.data)==null?void 0:Y.renderer;var V,S;if(r=(V=r.detail)==null?void 0:(S=V.data)==null?void 0:S.redirectEndpoint)this.isLoading=!0,_.kA(this.hostElement,"yt-navigate",{endpoint:r});this.errorMessage?Sf("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
r)&&_.P0("ypcRedeemFlowSucceeded")};
_.l.onYtServiceRequestError=function(r){r.stopPropagation();this.isLoading=!1;if(r=this.get("detail.error.message",r))this.errorMessage=_.iX(r);Sf("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.l.onInvokeInstrumentManagerActionCompleted=function(r){r.stopPropagation();this.redeemCode()};
_.l.onInvokeInstrumentManagerActionError=function(r){r.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",r)){case "instrumentManagerLoadError":this.showGenericError();Sf("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();Sf("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.P0("ypcRedeemFlowCancelled")}};
_.l.onInput=function(){var r=this;_.Pc(this,"onInput",function(){var f=r.code.value.trim();r.redeemButtonDisabled=f.length<r.MIN_CODE_LENGTH||f.length>r.MAX_CODE_LENGTH},200)};
_.l.onCodeInputKeypress=function(r){r.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(YNB(),this.redeemCode())};
_.l.computeImageUrl=function(r){return r?_.yH(r.thumbnails,600):null};
_.l.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
MY.prototype.onInvokeInstrumentManagerActionError=MY.prototype.onInvokeInstrumentManagerActionError;MY.prototype.onInvokeInstrumentManagerActionCompleted=MY.prototype.onInvokeInstrumentManagerActionCompleted;MY.prototype.onYtServiceRequestError=MY.prototype.onYtServiceRequestError;MY.prototype.onYtServiceRequestCompleted=MY.prototype.onYtServiceRequestCompleted;MY.prototype.dataChanged=MY.prototype.dataChanged;
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],MY.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],MY.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],MY.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],MY.prototype,"isLoading",void 0);_.A([_.K(),_.B("design:type",Boolean)],MY.prototype,"redeemButtonDisabled",void 0);
_.A([_.K(),_.B("design:type",Object)],MY.prototype,"errorMessage",void 0);_.A([_.K(),_.B("design:type",Object)],MY.prototype,"postRedemptionRenderer",void 0);_.A([_.K(),_.B("design:type",Object)],MY.prototype,"observer",void 0);_.A([_.uA("#code"),_.B("design:type",HTMLInputElement)],MY.prototype,"code",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],MY.prototype,"dataChanged",null);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],MY.prototype,"onYtServiceRequestCompleted",null);_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],MY.prototype,"onYtServiceRequestError",null);
_.A([_.kO("yt-invoke-instrument-manager-action-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],MY.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.A([_.kO("yt-invoke-instrument-manager-action-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],MY.prototype,"onInvokeInstrumentManagerActionError",null);MY=_.A([_.U({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],MY);
_.Q(MY,"ytd-redeem-code-renderer",function(){if(gtV!==void 0)return gtV;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return gtV=r},{mode:1});var N9Y;_.gW("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var g$=function(){var r=_.y.apply(this,arguments)||this;r.businessEmailDisplayState="HIDE_SECTION";return r};
_.t(g$,_.y);_.l=g$.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":(_.m0("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.l.onYtServiceRequestCompleted=function(r){var f;if((f=r.detail.data)==null?0:f.businessEmail)this.businessEmail=r.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var I;if((I=r.detail.data)==null?0:I.errorMessage)this.businessEmailErrorMessage=r.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.l.computeEmailHref=function(r){return"mailto:"+r};
_.l.computeSafeUrl=function(r){if(r)return _.gn(r)};
_.l.onBusinessEmailCaptchaSubmit=function(){var r;(r=this.data)!=null&&r.onBusinessEmailRevealClickCommand&&(r=this.JSC$18967_captchaTextarea.value)&&(r={recaptcha_response_token:r,channel_id:this.data.channelId},_.a().resolve(_.Gg).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},r,{element:this.hostElement})}))};
_.l.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.OC.Object.defineProperties(g$.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 r,f;return!((r=this.data)==null||!r.primaryLinks)&&!((f=this.data)==null?0:f.links)&&this.data.primaryLinks.every(function(I){return I.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var r,f;return!((r=this.data)==null||!r.primaryLinks)&&!((f=this.data)==null?0:f.links)&&!this.shouldShowNewLinks}}});
g$.prototype.onYtServiceRequestCompleted=g$.prototype.onYtServiceRequestCompleted;g$.prototype.dataChanged=g$.prototype.dataChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],g$.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],g$.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.uA("#g-recaptcha-response"),_.B("design:type",HTMLTextAreaElement)],g$.prototype,"JSC$18967_captchaTextarea",void 0);_.A([_.K(),_.B("design:type",Object)],g$.prototype,"data",void 0);_.A([_.K(),_.B("design:type",String)],g$.prototype,"businessEmailDisplayState",void 0);_.A([_.K(),_.B("design:type",String)],g$.prototype,"businessEmail",void 0);_.A([_.K(),_.B("design:type",String)],g$.prototype,"businessEmailErrorMessage",void 0);
_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],g$.prototype,"hideDetailsSection",null);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],g$.prototype,"dataChanged",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],g$.prototype,"shouldShowNewLinks",null);_.A([_.R("data","shouldShowLinks"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],g$.prototype,"shouldShowLegacyLinks",null);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],g$.prototype,"onYtServiceRequestCompleted",null);g$=_.A([_.U({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],g$);
_.Q(g$,"ytd-channel-about-metadata-renderer",function(){if(N9Y!==void 0)return N9Y;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return N9Y=r},{mode:1});var $_1;_.gW("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var aA=function(){return _.y.apply(this,arguments)||this};
_.t(aA,_.y);aA.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"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],aA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],aA.prototype,"data",void 0);aA=_.A([_.U({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],aA);
_.Q(aA,"ytd-channel-featured-content-renderer",function(){if($_1!==void 0)return $_1;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return $_1=r},{mode:1});var FA7;_.gW("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Xr=function(){var r=_.y.apply(this,arguments)||this;r.roundContainer=!0;r.amsterdamEnabled=_.N("enable_desktop_amsterdam_info_panels");return r};
_.t(Xr,_.y);_.l=Xr.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 r=this.data;r.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!r.style&&r.image&&r.image.thumbnails.length&&(r=r.image.thumbnails[0],this.imageWidth=r.width||0,this.imageHeight=r.height||0)};
_.l.computeSource=function(r){return r.secondarySource?_.Rr(r.secondarySource):_.Rr(r.source)};
_.l.computeClarifyStyle=function(r){return r?r.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.l.isLargeStyle=function(r){return r==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.l.computeBackgroundStyle=function(r){return r?r.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.l.computeHasActionButton=function(r){return!!r.actionButton};
_.l.computeHasBottomSection=function(r){return!!r.ctaHasBottomSection};
_.l.computeIsSourceMissing=function(r){return r.ctaHasBottomSection===!1?!0:r&&this.computeSource(r)?!1:!0};
_.l.computeSecondaryEndpoint=function(r){return r.secondaryEndpoint||r.endpoint};
Xr.prototype.dataChanged=Xr.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Xr.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Xr.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Number)],Xr.prototype,"imageWidth",void 0);_.A([_.K(),_.B("design:type",Number)],Xr.prototype,"imageHeight",void 0);
_.A([_.K({computed:"computeSecondaryEndpoint(data)"}),_.B("design:type",Object)],Xr.prototype,"secondaryEndpoint",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.B("design:type",Boolean)],Xr.prototype,"hasActionButton",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.B("design:type",Boolean)],Xr.prototype,"hasBottomSection",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.B("design:type",Boolean)],Xr.prototype,"missingSource",void 0);_.A([_.K({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],Xr.prototype,"icon",void 0);_.A([_.K({computed:"computeIcon_(data.secondaryIcon)"}),_.B("design:type",String)],Xr.prototype,"secondaryIcon",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.B("design:type",String)],Xr.prototype,"clarifyStyle",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.B("design:type",String)],Xr.prototype,"backgroundStyle",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Xr.prototype,"roundContainer",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Xr.prototype,"amsterdamEnabled",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Xr.prototype,"dataChanged",null);
Xr=_.A([_.U({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Xr);
_.Q(Xr,"ytd-clarification-renderer",function(){if(FA7!==void 0)return FA7;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return FA7=r},{mode:1});var Pip;var tD1;var NY=function(){var r=_.y.apply(this,arguments)||this;r.amsterdamEnabled=_.N("enable_desktop_amsterdam_info_panels");return r};
_.t(NY,_.y);_.l=NY.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(r){return r?"yt-icons:"+r.toLowerCase():null};
_.l.computeUseContacts=function(r){return!!r.contacts&&r.contacts.length>0};
_.l.computePhoneContact=function(r){var f,I;return(f=r.contacts)==null?void 0:(I=f.find(function(C){var Y;return(C==null?void 0:(Y=C.icon)==null?void 0:Y.iconType)==="PHONE"}))==null?void 0:I.actionText};
_.l.computeSmsContact=function(r){var f,I;return(f=r.contacts)==null?void 0:(I=f.find(function(C){var Y;return(C==null?void 0:(Y=C.icon)==null?void 0:Y.iconType)==="SMS"}))==null?void 0:I.actionText};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],NY.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],NY.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],NY.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],NY.prototype,"amsterdamEnabled",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.B("design:type",Boolean)],NY.prototype,"useContacts",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.B("design:type",String)],NY.prototype,"phoneContact",void 0);NY=_.A([_.U({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],NY);
_.Q(NY,"ytd-single-action-emergency-support-renderer",function(){if(tD1!==void 0)return tD1;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return tD1=r},{mode:1});_.gW("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var $d=function(){var r=_.y.apply(this,arguments)||this;r.roundedContainer=!0;r.amsterdamEnabled=_.N("enable_desktop_amsterdam_info_panels");return r};
_.t($d,_.y);$d.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"}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],$d.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],$d.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],$d.prototype,"roundedContainer",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],$d.prototype,"amsterdamEnabled",void 0);
$d=_.A([_.U({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],$d);
_.Q($d,"ytd-emergency-onebox-renderer",function(){if(Pip!==void 0)return Pip;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Pip=r},{mode:1});var T97;_.gW("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Fr=function(){return _.y.apply(this,arguments)||this};
_.t(Fr,_.y);Fr.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"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Fr.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Fr.prototype,"data",void 0);Fr=_.A([_.U({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Fr);
_.Q(Fr,"ytd-exploratory-results-renderer",function(){if(T97!==void 0)return T97;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return T97=r},{mode:1});var c5B;_.gW("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var PQ=function(){var r=_.y.apply(this,arguments)||this;r.messageData=null;return r};
_.t(PQ,_.y);_.l=PQ.prototype;_.l.onServiceRequestCompleted=function(r,f){r=f.actions||[];f=0;for(var I=r.length;f<I;f++){var C=r[f],Y=void 0,V=void 0;if((Y=_.F(C,_.da))==null?0:(V=Y.item)==null?0:V.messageRenderer)this.messageData=_.F(C,_.da).item.messageRenderer}};
_.l.dataChanged=function(){var r=this.data;this.hostElement.hidden=!1;_.ob(this.hostElement,"is-channel",r&&!r.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.l.computeThumbnailWidth=function(r){return r?126:56};
_.l.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.l.onSubmitTap=function(){var r=this.data,f=this.selectedResponseIndex;r!==void 0&&f!==void 0&&(r=r.responses[f],r.responseData&&_.a().resolve(_.Gg).resolveCommand(r.responseData,{form:{element:this.hostElement}}))};
_.l.onDismissTap=function(){this.hostElement.hidden=!0;var r=this.data;r!==void 0&&r.dismissalEndpoint&&_.a().resolve(_.Gg).resolveCommand(r.dismissalEndpoint,{form:{element:this.hostElement}})};
_.l.updateSelectedResponseIndexFromBinding=function(r){this.selectedResponseIndex=r.detail.value};
PQ.prototype.onSelectedResponseIndexChange=PQ.prototype.onSelectedResponseIndexChange;PQ.prototype.dataChanged=PQ.prototype.dataChanged;PQ.prototype.onServiceRequestCompleted=PQ.prototype.onServiceRequestCompleted;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],PQ.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],PQ.prototype,"messageData",void 0);
_.A([_.K(),_.B("design:type",Number)],PQ.prototype,"selectedResponseIndex",void 0);_.A([_.uA("#submit-button"),_.B("design:type",HTMLButtonElement)],PQ.prototype,"submitButton",void 0);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],PQ.prototype,"onServiceRequestCompleted",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PQ.prototype,"dataChanged",null);
_.A([_.Bt("selectedResponseIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PQ.prototype,"onSelectedResponseIndexChange",null);PQ=_.A([_.U({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],PQ);
_.Q(PQ,"ytd-feedback-elicitation-single-question-renderer",function(){if(c5B!==void 0)return c5B;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return c5B=r},{mode:1});var WA6;var tf=function(){return _.y.apply(this,arguments)||this};
_.t(tf,_.y);tf.prototype.computeThumbnailWidth=function(r){return r?602:428};
tf.prototype.updateWideFromBinding=function(r){this.wide=r.detail.value};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],tf.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],tf.prototype,"wide",void 0);tf=_.A([_.U({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],tf);
_.Q(tf,"ytd-newspaper-hero-video-renderer",function(){if(WA6!==void 0)return WA6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return WA6=r},{mode:1});var LAB;var Te=function(){return _.y.apply(this,arguments)||this};
_.t(Te,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Te.prototype,"rendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Te.prototype,"data",void 0);Te=_.A([_.U({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],Te);
_.Q(Te,"ytd-newspaper-mini-video-renderer",function(){if(LAB!==void 0)return LAB;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return LAB=r},{mode:1});var m_U;_.gW("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var cQ=function(){return _.y.apply(this,arguments)||this};
_.t(cQ,_.y);cQ.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"}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],cQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],cQ.prototype,"data",void 0);cQ=_.A([_.U({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],cQ);
_.Q(cQ,"ytd-newspaper-renderer",function(){if(m_U!==void 0)return m_U;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return m_U=r},{mode:1});var eT3;_.gW("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var WQ=function(){var r=_.y.apply(this,arguments)||this;r.isSegment=!1;r.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};r.nextContinuation={continuationType:"playlistVideoListContinuation"};return r};
_.t(WQ,_.y);_.l=WQ.prototype;_.l.attached=function(){_.a();var r;(r=_.a().resolve(_.ZY(_.ip)))!=null&&(r.playlistVideoListElement=this.hostElement)};
_.l.detached=function(){var r;(r=_.a().resolve(_.ZY(_.ip)))!=null&&(r.playlistVideoListElement=void 0);r=_.a().resolve(_.ZY(_.At));_.N("web_enable_voting_animation")&&r&&(r.parentElem=void 0,r.videos=[],r.continuationsPresent=!1,r.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 r=_.a().resolve(_.ZY(_.At));if(_.N("web_enable_voting_animation")&&this.data&&r){var f=_.e(this.hostElement).querySelector("#contents");f&&(r.parentElem=f);r.addVideos(this.data.contents)}_.Rp3(this.ytReorderableBehavior)};
_.l.onRendererstamperFinished=function(){this.canReorder&&_.vT4(this.ytReorderableBehavior,_.e(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.l.onPlaylistReloading=function(){this.isReloading=!0};
_.l.onUpdateSetVideoId=function(r){if(r.detail&&this.data&&this.data.contents){var f=r.detail;r=this.data.contents.findIndex(function(Y){var V;return((V=Y.playlistVideoRenderer)==null?void 0:V.videoId)===f.videoId});
if(!(r<0)&&f.setVideoId&&(this.set("data.contents."+r+".playlistVideoRenderer.setVideoId",f.setVideoId),_.N("web_enable_voting_animation"))){var I;if(r=_.F((I=this.data.contents[r].playlistVideoRenderer)==null?void 0:I.engagementBar,_.CSE)){var C;(C=r.actions)==null||C.forEach(function(Y){if(Y=_.F(Y,_.YMU))Y.itemId=f.setVideoId})}(I=_.a().resolve(_.ZY(_.At)))&&lCd(I,f.videoId,f.setVideoId)}}};
_.l.computeContentsClass=function(r){return r?"reloading":""};
_.l.computeIsSortable=function(r,f){return r&&f>0&&!this.isSegment&&!_.N("shorts_in_playlists_web")};
_.l.computeIsEditable=function(r){return r};
_.l.computeCanReorder=function(r){return r};
_.l.handlePlaylistRemoveVideosAction=function(r){if(this.get("playlistRemoveVideosAction.setVideoIds",r)&&this.data&&this.data.contents){r=_.F(r,_.KYV).setVideoIds;for(var f=this.data.contents.length-1;f>=0;){var I=this.data.contents[f].playlistVideoRenderer;I&&I.setVideoId&&r.includes(I.setVideoId)&&this.splice("data.contents",f,1);f--}_.Bj(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.l.updateIndices=function(){if(this.data&&this.data.contents)for(var r=0;r<this.data.contents.length;r++)this.set("data.contents."+r+".playlistVideoRenderer.index",_.iX(String(r+1)))};
_.l.handleDrop=function(r){r=r.currDragItem;var f=_.QE(r.parentNode.childNodes,r),I=this.data.contents.splice(Number(_.Rr(r.data.index))-1,1)[0];this.data.contents.splice(f,0,I);f=f?this.get("contents."+(f-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();r=this.buildReorderServiceEndpoint(r.data.setVideoId,f);this.ytComponentBehavior.resolveCommand(r)};
_.l.buildReorderServiceEndpoint=function(r,f){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",r),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",f),this.data.onReorderEndpoint):null};
_.l.handleUpdatePlaylistAction=function(r){var f;(r=_.F((f=_.F(r,_.yJ3))==null?void 0:f.updatedRenderer,_.f4C))&&this.canReorder!==r.canReorder&&this.set("data.canReorder",r.canReorder);r&&r.contents&&(this.set("data.contents",r.contents),this.isReloading=!1);r&&r.continuations&&this.set("data.continuations",r.continuations)};
_.l.handleAddRendererToItemSectionAction=function(r){var f,I=(f=_.F(r,hT6))==null?void 0:f.renderer,C;I&&((C=_.F(r,hT6))==null?void 0:C.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,I),r=_.a().resolve(_.ZY(_.At)),_.N("web_enable_voting_animation")&&r&&(I&&(f=_.IfK(I))&&r.recommendedVideos.push({itemId:f,videoId:_.lfq(I),voteCount:_.VCq(I),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.l.isVotingEnabledOnPlaylist=function(r){if(!r)return!1;r=_.E(r);for(r=r.next();!r.done;r=r.next()){var f=void 0;return!!_.F((f=r.value.playlistVideoRenderer)==null?void 0:f.engagementBar,_.CSE)}return!1};
_.l.onAppendContinuationItemsActionFinished=function(){var r;this.isVotingEnabledOnPlaylist((r=this.data)==null?void 0:r.contents)&&(this.updateIndices(),r=_.a().resolve(_.ZY(_.At)),_.N("web_enable_voting_animation")&&r&&this.data&&r.addVideos(this.data.contents))};
_.l.updateVideoData=function(r){if(r.detail&&this.data&&this.data.contents){var f=r.detail;r=f.toIdx;var I=f.itemId,C=f.newVoteCount,Y=f.voteStatus;f=f.hideItem;var V,S,h=(V=this.data)==null?void 0:(S=V.contents)==null?void 0:S.findIndex(function(z){return _.IfK(z)===I});
if(!(h<0)){V=this.data.contents[h];var w;if((w=V.playlistVideoRenderer)==null?0:w.voteCount)V.playlistVideoRenderer.voteCount=C;var n;if(w=_.F((n=V.playlistVideoRenderer)==null?void 0:n.engagementBar,_.CSE)){var d;(d=w.actions)==null||d.forEach(function(z){(z=_.F(z,_.YMU))&&z.initialState&&(z.initialState.votes=C,z.initialState.status=Y)})}this.data.contents.splice(h,1);
f||this.data.contents.splice(r,0,V);this.updateIndices()}}};
WQ.prototype.updateVideoData=WQ.prototype.updateVideoData;WQ.prototype.onAppendContinuationItemsActionFinished=WQ.prototype.onAppendContinuationItemsActionFinished;WQ.prototype.onUpdateSetVideoId=WQ.prototype.onUpdateSetVideoId;WQ.prototype.onPlaylistReloading=WQ.prototype.onPlaylistReloading;WQ.prototype.onRendererstamperFinished=WQ.prototype.onRendererstamperFinished;WQ.prototype.dataChanged=WQ.prototype.dataChanged;
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],WQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],WQ.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.Wg.YtNextContinuationBehavior),_.B("design:type",Object)],WQ.prototype,"ytNextContinuationBehavior",void 0);
_.A([_.J(_.KSU),_.B("design:type",Object)],WQ.prototype,"ytReorderableBehavior",void 0);_.A([_.J(_.cg),_.B("design:type",Object)],WQ.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],WQ.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],WQ.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],WQ.prototype,"isReloading",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],WQ.prototype,"isSegment",void 0);_.A([_.K({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.B("design:type",Boolean)],WQ.prototype,"isSortable",void 0);_.A([_.K({computed:"computeIsEditable(data.isEditable)"}),_.B("design:type",Boolean)],WQ.prototype,"isEditable",void 0);_.A([_.K({computed:"computeCanReorder(data.canReorder)"}),_.B("design:type",Boolean)],WQ.prototype,"canReorder",void 0);
_.A([_.K({value:101}),_.B("design:type",Number)],WQ.prototype,"scrollMargin",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WQ.prototype,"dataChanged",null);_.A([_.kO("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WQ.prototype,"onRendererstamperFinished",null);
_.A([_.kO("yt-playlist-reloading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WQ.prototype,"onPlaylistReloading",null);_.A([_.kO("yt-update-set-video-id"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],WQ.prototype,"onUpdateSetVideoId",null);
_.A([_.kO("yt-append-continuation-items-action-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WQ.prototype,"onAppendContinuationItemsActionFinished",null);_.A([_.kO("yt-update-video-data-voting-animation"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],WQ.prototype,"updateVideoData",null);WQ=_.A([_.U({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],WQ);
_.Q(WQ,"ytd-playlist-video-list-renderer",function(){if(eT3!==void 0)return eT3;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return eT3=r},{mode:_.QQ("kevlar_poly_si_batch_j047")?1:2});var J56;var Lu=function(){return _.y.apply(this,arguments)||this};
_.t(Lu,_.y);Lu.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"}}}}};
Lu.prototype.onTextWrapperTap=function(r){var f=this.data&&this.data.navigationEndpoint;f&&!_.iB(_.JN(r),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.kA(this.hostElement,"yt-navigate",{endpoint:f})};
Lu.prototype.dataChanged=function(){var r=this.get("data.offerButton.buttonRenderer.serviceEndpoint");r&&r.commandMetadata&&_.F(r.commandMetadata,_.$$)&&_.F(r.commandMetadata,_.$$).fireAutomatically&&_.a().resolve(_.Gg).resolveCommand(r,{form:{element:this.hostElement}})};
Lu.prototype.dataChanged=Lu.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Lu.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Lu.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.jW),_.B("design:type",Object)],Lu.prototype,"ytdLockupBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Lu.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.N("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],Lu.prototype,"useBiggerThumbs",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.qC("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],Lu.prototype,"biggerThumbsStyle",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Lu.prototype,"leftAligned",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Lu.prototype,"dataChanged",null);Lu=_.A([_.U({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Lu);
_.Q(Lu,"ytd-movie-renderer",function(){if(J56!==void 0)return J56;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return J56=r},{mode:1});var j02;var mr=function(){var r=_.y.apply(this,arguments)||this;r.rounded=!0;r.pageAttachedTo=void 0;r.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return r};
_.t(mr,_.y);mr.prototype.attached=function(){this.pageAttachedTo=_.a().resolve(_.y2).getCurrentPage();_.kA(this.hostElement,"yt-player-attached",this.player)};
mr.prototype.detached=function(){var r;if((r=this.pageAttachedTo)==null?0:r.hostElement)_.kA(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
mr.prototype.dataChanged=function(){var r;if((r=this.data)==null?0:r.videoId)r={video_id:this.data.videoId,autoplay:!0},!_.N("miniplayer_stop_channel_video_autoplay_killswitch")&&_.a().resolve(_.iO).isMiniplayerActive()&&(r.pause_at_start=!0,r.autoplay=!1),this.player.loadVideoWithPlayerVars(r)};
mr.prototype.handleSignalActionPausePlayer=function(){_.Ok().pause()};
mr.prototype.dataChanged=mr.prototype.dataChanged;_.A([_.K(),_.B("design:type",Object)],mr.prototype,"data",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],mr.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],mr.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],mr.prototype,"rounded",void 0);_.A([_.uA("#player"),_.B("design:type",Object)],mr.prototype,"player",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mr.prototype,"dataChanged",null);mr=_.A([_.U({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],mr);
_.Q(mr,"ytd-channel-video-player-renderer",function(){if(j02!==void 0)return j02;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return j02=r},{mode:1});var HL7;var iL2;var RT3;var ef=function(){var r=_.y.apply(this,arguments)||this;r.playing=!1;r.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.S3(r);r.active=!1;return r};
_.t(ef,_.y);_.l=ef.prototype;_.l.detached=function(){this.stop()};
_.l.play=function(){var r=this,f,I,C,Y,V;return _.x(function(S){if(S.nextAddress==1)return r.active=!0,f=r.get("data.inlinePlaybackEndpoint.watchEndpoint"),I=f.videoId||r.data.videoId,C=f.startTimeSeconds||0,Y=f.playerParams||null,_.N("kevlar_player_update_killswitch")?_.b(S,r.playerEl.update({args:{video_id:I,startSeconds:C,player_params:Y}}),2):(r.playerEl.loadVideoWithPlayerVars({video_id:I,startSeconds:C,player_params:Y,autoplay:!0}),S.jumpTo(2));if(S.nextAddress!=4)return _.b(S,r.playerEl.getPlayerPromise(),
4);V=S.yieldResult;V.unloadModule("annotations_module");V.addEventListener("onStateChange",function(h){r.onPlayerStateChange(h)});
_.wO(S)})};
_.l.onPlayerStateChange=function(r){if(this.active)switch(this.playing=r===1,r){case 1:_.kA(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.kA(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.l.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.l.resize=function(){var r=this,f;return _.x(function(I){if(I.nextAddress==1)return _.b(I,r.playerEl.getPlayerPromise(),2);f=I.yieldResult;f.setSize(NaN,NaN);_.wO(I)})};
_.A([_.K(),_.B("design:type",Object)],ef.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ef.prototype,"playing",void 0);_.A([_.K(),_.B("design:type",Object)],ef.prototype,"playerId",void 0);_.A([_.uA("#player"),_.B("design:type",Object)],ef.prototype,"playerEl",void 0);ef=_.A([_.U({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],ef);
_.Q(ef,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(RT3!==void 0)return RT3;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return RT3=r},{mode:1});var vtY;var KA6;var Jf=function(){var r=_.y.apply(this,arguments)||this;r.width=0;return r};
_.t(Jf,_.y);_.l=Jf.prototype;_.l.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.GF(this,this.onEnded));this.mp4El.addEventListener("error",_.GF(this,this.onError))};
_.l.detached=function(){this.videoEl.removeEventListener("ended",_.GF(this,this.onEnded));this.mp4El.removeEventListener("error",_.GF(this,this.onError))};
_.l.play=function(){var r=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var f=this.videoEl.play();f?f.then(function(){r.handleVideoStartPlaying()}).catch(function(){_.kA(r.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.kA(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 r;if((r=this.data)==null?0:r.thumbnailPlaceholder)r=_.yH(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+r+")";this.stop();this.autoplay&&this.play()};
_.l.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.l.onEnded=function(){this.stop();_.kA(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.l.onError=function(){_.kA(this.hostElement,"yt-video-thumbnail-error")};
_.l.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.l.getVideoThumbnail=function(r){if(r&&r.length)return r[0]};
Jf.prototype.dataChanged=Jf.prototype.dataChanged;_.A([_.K(),_.B("design:type",Object)],Jf.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Jf.prototype,"animatePlaceholderOnEntrance",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Jf.prototype,"autoplay",void 0);_.A([_.K({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.B("design:type",Object)],Jf.prototype,"videoThumbnail",void 0);
_.A([_.K(),_.B("design:type",Boolean)],Jf.prototype,"loop",void 0);_.A([_.K(),_.B("design:type",Boolean)],Jf.prototype,"isVideoPlaying",void 0);_.A([_.K(),_.B("design:type",Object)],Jf.prototype,"width",void 0);_.A([_.uA("#mp4"),_.B("design:type",HTMLElement)],Jf.prototype,"mp4El",void 0);_.A([_.uA("#placeholder"),_.B("design:type",HTMLElement)],Jf.prototype,"placeholderEl",void 0);_.A([_.uA("#video"),_.B("design:type",HTMLVideoElement)],Jf.prototype,"videoEl",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Jf.prototype,"dataChanged",null);Jf=_.A([_.zX({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],Jf);
_.Q(Jf,"yt-video-as-thumbnail-details",function(){if(KA6===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;vtY===void 0&&(vtY=document.createElement("template"));var C=vtY;I.call(f,C.content.cloneNode(!0),r.content.firstChild);KA6=r}r=KA6;return r},{mode:2});var jf=function(){var r=_.y.apply(this,arguments)||this;r.disableGridStateAware=!1;r.animationEnabled=_.N("enable_web_ketchup_hero_animation");r.transitioningOut=!1;r.narrow=!1;r.narrower=!1;r.isCarouselInFeed=!1;r.videoTimeoutJobId=0;r.panelTimeoutJobId=0;r.panelTimeoutJobStartMs=0;r.actionMap={"yt-window-resized":"onWindowResized"};return r};
_.t(jf,_.y);_.l=jf.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 r;this.player&&((r=this.data)==null?0:r.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(r){return r&&r.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.l.playVideo=function(){var r;this.video&&((r=this.data)==null?0:r.videoThumbnail)&&this.video.play();var f;this.player&&((f=this.data)==null?0:f.inlinePlaybackRenderer)&&this.player.play()};
_.l.stopVideo=function(){var r;this.video&&((r=this.data)==null?0:r.videoThumbnail)&&this.video.stop();var f;this.player&&((f=this.data)==null?0:f.inlinePlaybackRenderer)&&this.player.stop()};
_.l.transitionOut=function(){var r=this;this.transitioningOut=!0;return new Promise(function(f){var I=function(){_.e(r.hostElement).querySelector("#action-button").removeEventListener("animationend",I);_.F_.cancelJob(C);f();r.transitioningOut=!1};
var C=_.dp(_.F_,I,1E3);_.e(r.hostElement).querySelector("#action-button").addEventListener("animationend",I);r.player&&(r.player.playing=!1)})};
_.l.computeMetadataOrder=function(r){return r&&r.metadataOrder&&r.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?r.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.l.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.l.computeAvatarSize=function(r){return r&&r.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.l.onContentClick=function(r){if(!_.iB(_.JN(r),this.hostElement,["A".toString(),"BUTTON".toString()])){var f;if((f=this.data)==null?0:f.navigationEndpoint){var I;this.componentBehavior.resolveCommand((I=this.data)==null?void 0:I.navigationEndpoint)}}};
_.l.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.l.setBackgroundImage=function(r){if(r=this.getBackgroundImageUrl(r))_.e(this.hostElement).querySelector("#hero").style.backgroundImage="url("+r+")"};
_.l.setScrimLayer=function(r){var f=this.getScrimLayerColorStops(r);r=((r==null?void 0:r.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(r=180);_.Lz("HTML_DIR")==="rtl"&&(r=-r);f&&(_.e(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+r+"deg, "+f+")")};
_.l.isNarrower=function(){return this.hostElement.clientWidth<jf.NARROW_VERSION_SIZE};
_.l.getScrimLayerColorStops=function(){var r,f=(r=this.data)==null?void 0:r.scrimColorValues;if(!f)return null;if(f.length===1)return r=_.g_(f[0]),r+" 0%, "+r+" 100%";if(f.length===3){var I=[0,72,98];return f.map(function(C,Y){return _.g_(C)+" "+I[Y]+"%"}).join(",")}return null};
_.l.getBackgroundImageUrl=function(r){return r&&r.largeFormFactorBackgroundThumbnail?_.yH((r.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||r.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.l.onPlaying=function(){this.startVideoTimeout()};
_.l.onEnded=function(){this.rotate()};
_.l.startPanelTimeout=function(){var r=this;if(!this.panelTimeoutJobId){var f=this.get("data.minPanelDisplayDurationMs");f&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.dp(_.F_,function(){r.rotate()},f))}};
_.l.startVideoTimeout=function(){var r=this;if(!this.videoTimeoutJobId){_.F_.cancelJob(this.panelTimeoutJobId);var f=Date.now()-this.panelTimeoutJobStartMs;f=Math.max(0,this.get("data.minPanelDisplayDurationMs")-f);f=Math.max(this.get("data.minVideoPlayDurationMs")||0,f);this.videoTimeoutJobId=_.dp(_.F_,function(){r.rotate()},f)}};
_.l.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.F_.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.F_.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.l.rotate=function(){this.clearTimeouts();_.kA(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.OC.Object.defineProperties(jf.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.e(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.e(this.hostElement).querySelector("#video")}}});
_.OC.Object.defineProperties(jf,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
jf.prototype.onEnded=jf.prototype.onEnded;jf.prototype.onPlaying=jf.prototype.onPlaying;jf.prototype.dataChanged=jf.prototype.dataChanged;_.A([_.J(_.WH),_.B("design:type",Object)],jf.prototype,"ytdGridStateAwareBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],jf.prototype,"componentBehavior",void 0);_.A([_.J(_.mB.YtdGuideStateAwareBehavior),_.B("design:type",Object)],jf.prototype,"ytdGuideStateAwareBehavior",void 0);
_.A([_.J(_.yjq),_.B("design:type",Object)],jf.prototype,"ytBooleanLogicBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],jf.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],jf.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],jf.prototype,"ytRendererBehavior",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],jf.prototype,"disableGridStateAware",void 0);_.A([_.K(),_.B("design:type",Object)],jf.prototype,"data",void 0);_.A([_.K({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.B("design:type",String)],jf.prototype,"panelLayout",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],jf.prototype,"animationEnabled",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],jf.prototype,"transitioningOut",void 0);
_.A([_.K({computed:"computeMetadataOrder(data)"}),_.B("design:type",Boolean)],jf.prototype,"metadataOrder",void 0);_.A([_.K({computed:"computeByline(data)"}),_.B("design:type",Object)],jf.prototype,"byline",void 0);_.A([_.K({computed:"computeAvatarSize(data)"}),_.B("design:type",Number)],jf.prototype,"avatarSize",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],jf.prototype,"narrow",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],jf.prototype,"narrower",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],jf.prototype,"layoutStyle",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],jf.prototype,"isCarouselInFeed",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jf.prototype,"dataChanged",null);_.A([_.kO("yt-default-promo-panel-renderer-playing"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jf.prototype,"onPlaying",null);
_.A([_.kO("yt-default-promo-panel-renderer-ended"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jf.prototype,"onEnded",null);jf=_.A([_.U({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],jf);
_.Q(jf,"ytd-default-promo-panel-renderer",function(){if(iL2!==void 0)return iL2;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return iL2=r},{mode:1});_.gW("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var HQ=function(){var r=_.y.apply(this,arguments)||this;r.narrower=!1;r.dotMenuVisible=!1;r.paginationThumbnailsVisible=!1;r.active=!0;r.disableGridStateAware=!1;r.actionMap={"yt-window-resized":"onWindowResized"};return r};
_.t(HQ,_.y);_.l=HQ.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",_.GF(this,this.onPageTypeChange));this.currentPageSubtype=_.CJ(location.pathname);this.onWindowResized()};
_.l.detached=function(){this.jobId&&_.F_.cancelJob(this.jobId);this.updateSizeJobId&&_.F_.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.GF(this,this.onPageTypeChange))};
_.l.onPageTypeChange=function(r){this.active=r.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(r){r>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.F_.cancelJob(this.jobId);var f=this.getCurrentPanelElement();f&&f.stopVideo();this.currentItemIndex=r%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(f||(f=this.getCurrentPanelElement()),f.playVideo()):this.startRotationJob()};
_.l.scrollThumbnails=function(r){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var f=this.getCurrentPaginationElement();if(f){var I=_.e(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?I.style.transform="translateX(0)":(f=f.offsetWidth+8,I.style.transform="translateX(-"+f*(r-Math.ceil(Math.floor(this.overlay.offsetWidth/f)/2)+1)+"px)")}}};
_.l.onDataChanged=function(){var r=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.aK(_.F_,function(){r.getCurrentPanelElement().updateSize();r.updateSize()}))};
_.l.getCurrentPanelElement=function(){return _.e(_.e(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.l.getCurrentPaginationElement=function(){return _.e(_.e(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.l.getNavigationClass=function(r,f){return r===f?"selected":""};
_.l.getNavigationDurationStyle=function(r){return"animation-duration:"+(this.get("data.carouselItems."+r+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.l.onNavigationTap=function(r){var f=this,I=r.model.index;I!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){f.setCarouselItem(I)}),this.autorotateActive=!1)};
_.l.onVideoThumbnailEnded=function(){var r=this;if(this.shouldRotate()){var f=this.getCurrentPaginationElement();f&&(f.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){f.classList.remove("finished");r.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 r=this;_.F_.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.F_.addLowPriorityJob(function(){r.getCurrentPanelElement().transitionOut().then(function(){r.setNextCarouselItem()})},this.rotationTimeout))};
_.l.computeDotMenuVisible=function(r,f){return!!r&&!!r.carouselItems&&r.carouselItems.length>1&&!r.paginationThumbnails||!!f};
_.l.computePaginationThumbnailsVisible=function(r,f){var I,C;return((C=r==null?void 0:(I=r.paginationThumbnails)==null?void 0:I.length)!=null?C:0)>1&&!f};
_.l.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.l.computePaginatorAlignment=function(r){return(r==null?void 0:r.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(r){return(r!=null?r:0)<jf.NARROW_VERSION_SIZE};
HQ.prototype.activeChanged=HQ.prototype.activeChanged;HQ.prototype.onVideoNotPlaying=HQ.prototype.onVideoNotPlaying;HQ.prototype.onVideoThumbnailError=HQ.prototype.onVideoThumbnailError;HQ.prototype.onVideoThumbnailEnded=HQ.prototype.onVideoThumbnailEnded;HQ.prototype.onDataChanged=HQ.prototype.onDataChanged;_.A([_.J(_.WH),_.B("design:type",Object)],HQ.prototype,"ytdGridStateAwareBehavior",void 0);
_.A([_.J(_.mB.YtdGuideStateAwareBehavior),_.B("design:type",Object)],HQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],HQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],HQ.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],HQ.prototype,"currentItem",void 0);
_.A([_.K(),_.B("design:type",Number)],HQ.prototype,"currentItemIndex",void 0);_.A([_.K(),_.B("design:type",Number)],HQ.prototype,"rotationTimeout",void 0);_.A([_.K(),_.B("design:type",Number)],HQ.prototype,"loopCount",void 0);_.A([_.K({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.B("design:type",String)],HQ.prototype,"paginatorAlignment",void 0);_.A([_.K(),_.B("design:type",Number)],HQ.prototype,"jobId",void 0);
_.A([_.K(),_.B("design:type",Number)],HQ.prototype,"updateSizeJobId",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],HQ.prototype,"isCarouselInFeed",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],HQ.prototype,"narrower",void 0);_.A([_.K({computed:"computeDotMenuVisible(data, narrower)"}),_.B("design:type",Object)],HQ.prototype,"dotMenuVisible",void 0);
_.A([_.K({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.B("design:type",Object)],HQ.prototype,"paginationThumbnailsVisible",void 0);_.A([_.K({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.B("design:type",String)],HQ.prototype,"layoutType",void 0);_.A([_.K({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],HQ.prototype,"autorotateActive",void 0);_.A([_.K(),_.B("design:type",Object)],HQ.prototype,"active",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],HQ.prototype,"disableGridStateAware",void 0);_.A([_.uA("#overlay"),_.B("design:type",HTMLElement)],HQ.prototype,"overlay",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HQ.prototype,"onDataChanged",null);
_.A([_.kO("yt-video-thumbnail-ended"),_.kO("yt-default-promo-panel-renderer-rotate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HQ.prototype,"onVideoThumbnailEnded",null);_.A([_.kO("yt-video-thumbnail-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HQ.prototype,"onVideoThumbnailError",null);
_.A([_.kO("yt-video-thumbnail-not-playing"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HQ.prototype,"onVideoNotPlaying",null);_.A([_.YN("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HQ.prototype,"activeChanged",null);HQ=_.A([_.U({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],HQ);
_.Q(HQ,"ytd-carousel-item-renderer",function(){if(HL7!==void 0)return HL7;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return HL7=r},{mode:2});var y5q;var U_2;var s0s;var OLq;var iv=function(){var r=_.y.apply(this,arguments)||this;r.originalQuery=null;r.originalEndpoint=null;return r};
_.t(iv,_.y);iv.prototype.computeShowOriginalQueryWithoutEndpoint_=function(r,f){return!(!r||f)};
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],iv.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],iv.prototype,"correctedText",void 0);_.A([_.K(),_.B("design:type",Object)],iv.prototype,"correctedQuery",void 0);_.A([_.K(),_.B("design:type",Object)],iv.prototype,"correctedEndpoint",void 0);_.A([_.K(),_.B("design:type",Object)],iv.prototype,"originalText",void 0);_.A([_.K(),_.B("design:type",Object)],iv.prototype,"originalQuery",void 0);
_.A([_.K(),_.B("design:type",Object)],iv.prototype,"originalEndpoint",void 0);_.A([_.K({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.B("design:type",Boolean)],iv.prototype,"showOriginalQueryWithoutEndpoint",void 0);iv=_.A([_.zX({is:"yt-search-query-correction",disableElementRegistration:!0})],iv);
_.Q(iv,"yt-search-query-correction",function(){if(OLq===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;s0s===void 0&&(s0s=document.createElement("template"));var C=s0s;I.call(f,C.content.cloneNode(!0),r.content.firstChild);OLq=r}r=OLq;return r},{mode:2});_.gW("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var RA=function(){return _.y.apply(this,arguments)||this};
_.t(RA,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],RA.prototype,"data",void 0);RA=_.A([_.zX({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],RA);
_.Q(RA,"yt-did-you-mean-renderer",function(){if(U_2===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;y5q===void 0&&(y5q=document.createElement("template"));var C=y5q;I.call(f,C.content.cloneNode(!0),r.content.firstChild);U_2=r}r=U_2;return r},{mode:2});var otq;var Q06;_.gW("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var vQ=function(){return _.y.apply(this,arguments)||this};
_.t(vQ,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],vQ.prototype,"data",void 0);vQ=_.A([_.zX({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],vQ);
_.Q(vQ,"yt-including-results-for-renderer",function(){if(Q06===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;otq===void 0&&(otq=document.createElement("template"));var C=otq;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Q06=r}r=Q06;return r},{mode:2});var A52;var ZLs;_.gW("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var Ku=function(){return _.y.apply(this,arguments)||this};
_.t(Ku,_.y);Ku.prototype.computeExtraClasses_=function(r,f){var I="";r&&(I+=" "+r.toLowerCase().replace(/_/g,"-"));f&&(I+=" "+f.toLowerCase().replace(/_/g,"-"));return I};
Ku.prototype.computeUrlImg_=function(){var r=this.data;r.image&&(_.e(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.yH(r.image.thumbnails,Number.MAX_VALUE)+")")};
Ku.prototype.computeUrlImg_=Ku.prototype.computeUrlImg_;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ku.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Ku.prototype,"data",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ku.prototype,"computeUrlImg_",null);Ku=_.A([_.zX({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],Ku);
_.Q(Ku,"yt-music-pass-feature-info-renderer",function(){if(ZLs===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;A52===void 0&&(A52=document.createElement("template"));var C=A52;I.call(f,C.content.cloneNode(!0),r.content.firstChild);ZLs=r}r=ZLs;return r},{mode:2});var Gz3;var kzU;_.gW("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var yc=function(){return _.y.apply(this,arguments)||this};
_.t(yc,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],yc.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],yc.prototype,"data",void 0);yc=_.A([_.zX({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],yc);
_.Q(yc,"yt-no-results-found-showing-results-for-renderer",function(){if(kzU===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;Gz3===void 0&&(Gz3=document.createElement("template"));var C=Gz3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);kzU=r}r=kzU;return r},{mode:2});var B96;var qNB;_.gW("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var UY=function(){return _.y.apply(this,arguments)||this};
_.t(UY,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],UY.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],UY.prototype,"data",void 0);UY=_.A([_.zX({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],UY);
_.Q(UY,"yt-results-without-quotes-renderer",function(){if(qNB===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;B96===void 0&&(B96=document.createElement("template"));var C=B96;I.call(f,C.content.cloneNode(!0),r.content.firstChild);qNB=r}r=qNB;return r},{mode:2});var u5q;var D_7;_.gW("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var sY=function(){return _.y.apply(this,arguments)||this};
_.t(sY,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],sY.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],sY.prototype,"data",void 0);sY=_.A([_.zX({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],sY);
_.Q(sY,"yt-search-no-results-renderer",function(){if(D_7===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;u5q===void 0&&(u5q=document.createElement("template"));var C=u5q;I.call(f,C.content.cloneNode(!0),r.content.firstChild);D_7=r}r=D_7;return r},{mode:2});var rxi;var f9U;_.gW("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var OY=function(){return _.y.apply(this,arguments)||this};
_.t(OY,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],OY.prototype,"data",void 0);OY=_.A([_.zX({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],OY);
_.Q(OY,"yt-showing-results-for-renderer",function(){if(f9U===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;rxi===void 0&&(rxi=document.createElement("template"));var C=rxi;I.call(f,C.content.cloneNode(!0),r.content.firstChild);f9U=r}r=f9U;return r},{mode:2});var I9i;var Cbq;var Yy6;var l96;var oA=function(){var r=_.y.apply(this,arguments)||this;r.answerExpanded=!1;return r};
_.t(oA,_.y);oA.prototype.toggleAnswer_=function(r){var f=_.jl(r);f&&f.classList.contains("yt-simple-endpoint")||(r.preventDefault(),r.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
oA.prototype.toggleAnswer_=oA.prototype.toggleAnswer_;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],oA.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],oA.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],oA.prototype,"answerExpanded",void 0);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],oA.prototype,"toggleAnswer_",null);
oA=_.A([_.zX({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],oA);
_.Q(oA,"yt-generic-faq-question-renderer",function(){if(l96===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;Yy6===void 0&&(Yy6=document.createElement("template"));var C=Yy6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);l96=r}r=l96;return r},{mode:2});_.gW("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var Qc=function(){return _.y.apply(this,arguments)||this};
_.t(Qc,_.y);Qc.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Qc.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Qc.prototype,"data",void 0);Qc=_.A([_.zX({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Qc);
_.Q(Qc,"yt-faq-section-renderer",function(){if(Cbq===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;I9i===void 0&&(I9i=document.createElement("template"));var C=I9i;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Cbq=r}r=Cbq;return r},{mode:2});var VTY;var E_d;_.gW("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var Af=function(){return _.y.apply(this,arguments)||this};
_.t(Af,_.y);
Af.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"}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Af.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Af.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Af.prototype,"data",void 0);Af=_.A([_.zX({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],Af);
_.Q(Af,"yt-offer-item-expanded-renderer",function(){if(E_d===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;VTY===void 0&&(VTY=document.createElement("template"));var C=VTY;I.call(f,C.content.cloneNode(!0),r.content.firstChild);E_d=r}r=E_d;return r},{mode:2});var Sys;var x1d;_.gW("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Z7=function(){return _.y.apply(this,arguments)||this};
_.t(Z7,_.y);
Z7.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"}}}}};
Z7.prototype.computeFullWidthMode=function(r){return!(!r||!r.fullWidthMode)};
Z7.prototype.computeBorderlessMode=function(r){return!(!r||!r.borderlessMode)};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Z7.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Z7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Z7.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.B("design:type",Boolean)],Z7.prototype,"fullWidthMode",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.B("design:type",Boolean)],Z7.prototype,"borderlessMode",void 0);Z7=_.A([_.zX({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Z7);
_.Q(Z7,"yt-offer-item-renderer",function(){if(x1d===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;Sys===void 0&&(Sys=document.createElement("template"));var C=Sys;I.call(f,C.content.cloneNode(!0),r.content.firstChild);x1d=r}r=x1d;return r},{mode:2});var h5V;var w06;_.gW("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var Ge=function(){return _.y.apply(this,arguments)||this};
_.t(Ge,_.y);Ge.prototype.computeAriaLevel_=function(r){return this.getLevelID_(r)};
Ge.prototype.getLevelID_=function(r){return(r=r.match(/[0-9]+$/))&&r.length==1?r[0]:"1"};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ge.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Ge.prototype,"data",void 0);_.A([_.K({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.B("design:type",String)],Ge.prototype,"ariaLevel",void 0);_.A([_.K({value:"heading",reflectToAttribute:!0}),_.B("design:type",String)],Ge.prototype,"role",void 0);
_.A([_.K({value:-1,reflectToAttribute:!0}),_.B("design:type",Number)],Ge.prototype,"tabindex",void 0);Ge=_.A([_.zX({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],Ge);
_.Q(Ge,"yt-subscription-product-header-renderer",function(){if(w06===void 0){var r=document.createElement("template");_.c(r,"\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");r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;h5V===void 0&&(h5V=document.createElement("template"));var C=h5V;I.call(f,C.content.cloneNode(!0),r.content.firstChild);w06=r}r=w06;return r},{mode:2});var bS6;var p06;_.gW("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var kd=function(){return _.y.apply(this,arguments)||this};
_.t(kd,_.y);kd.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:_.aC("menuRenderer"),events:!0}}};
kd.prototype.onStampFinished_=function(){_.e(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
kd.prototype.onStampFinished_=kd.prototype.onStampFinished_;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],kd.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],kd.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],kd.prototype,"data",void 0);_.A([_.kO("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kd.prototype,"onStampFinished_",null);
kd=_.A([_.zX({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],kd);
_.Q(kd,"yt-subscription-product-renderer",function(){if(p06===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;bS6===void 0&&(bS6=document.createElement("template"));var C=bS6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);p06=r}r=p06;return r},{mode:2});var n_V;var d1i;_.gW("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var BQ=function(){return _.y.apply(this,arguments)||this};
_.t(BQ,_.y);BQ.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
BQ.prototype.imageScrimColorValuesChanged_=function(){var r,f=(r=this.data)==null?void 0:r.imageScrimColorValues;_.e(this.hostElement).querySelector("#scrim").style.backgroundColor=f?_.g_(f[0]):"transparent"};
BQ.prototype.imageScrimColorValuesChanged_=BQ.prototype.imageScrimColorValuesChanged_;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],BQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],BQ.prototype,"data",void 0);
_.A([_.Bt("data.imageScrimColorValues"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BQ.prototype,"imageScrimColorValuesChanged_",null);BQ=_.A([_.zX({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],BQ);
_.Q(BQ,"yt-subscription-product-upsell-offer-renderer",function(){if(d1i===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;n_V===void 0&&(n_V=document.createElement("template"));var C=n_V;I.call(f,C.content.cloneNode(!0),r.content.firstChild);d1i=r}r=d1i;return r},{mode:2});var z5i;var MT2;var g_3;var a9s;var X0q;var Ng7;var qY=function(){return _.y.apply(this,arguments)||this};
_.t(qY,_.y);qY.prototype.onYtServiceRequestError_=function(r){_.tx(this.hostElement,r.detail.error.message)};
qY.prototype.onYtServiceRequestError_=qY.prototype.onYtServiceRequestError_;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],qY.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],qY.prototype,"data",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],qY.prototype,"collapsible",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],qY.prototype,"isManageRed",void 0);
_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],qY.prototype,"onYtServiceRequestError_",null);qY=_.A([_.zX({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],qY);
_.Q(qY,"yt-single-ypc-offer-renderer",function(){if(Ng7===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;X0q===void 0&&(X0q=document.createElement("template"));var C=X0q;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Ng7=r}r=Ng7;return r},{mode:2});var uv=function(){return _.y.apply(this,arguments)||this};
_.t(uv,_.y);uv.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],uv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],uv.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],uv.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],uv.prototype,"isManageRed",void 0);uv=_.A([_.zX({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],uv);
_.Q(uv,"yt-single-ypc-offer-list-renderer",function(){if(a9s===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;g_3===void 0&&(g_3=document.createElement("template"));var C=g_3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);a9s=r}r=a9s;return r},{mode:2});var $1Y;var FkV;_.gW("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var D7=function(){return _.y.apply(this,arguments)||this};
_.t(D7,_.y);D7.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],D7.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],D7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],D7.prototype,"data",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],D7.prototype,"isManageRed",void 0);D7=_.A([_.zX({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],D7);
_.Q(D7,"yt-ypc-offers-list-renderer",function(){if(FkV===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;$1Y===void 0&&($1Y=document.createElement("template"));var C=$1Y;I.call(f,C.content.cloneNode(!0),r.content.firstChild);FkV=r}r=FkV;return r},{mode:2});_.gW("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var r0=function(){return _.y.apply(this,arguments)||this};
_.t(r0,_.y);
r0.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}}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],r0.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],r0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],r0.prototype,"data",void 0);r0=_.A([_.zX({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],r0);
_.Q(r0,"yt-unlimited-manage-subscription-page-renderer",function(){if(MT2===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;z5i===void 0&&(z5i=document.createElement("template"));var C=z5i;I.call(f,C.content.cloneNode(!0),r.content.firstChild);MT2=r}r=MT2;return r},{mode:2});var Pbd;var tT7;var fR=function(){return _.y.apply(this,arguments)||this};
_.t(fR,_.y);_.l=fR.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(r){r.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.l.handleHeaderTap_=function(r){r.preventDefault();r.stopPropagation();this.expandOffers_()};
_.l.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.l.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
fR.prototype.dataChanged_=fR.prototype.dataChanged_;_.A([_.J(_.dx),_.B("design:type",Object)],fR.prototype,"ironA11yKeysBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],fR.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],fR.prototype,"offersVisible_",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fR.prototype,"dataChanged_",null);fR=_.A([_.zX({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],fR);
_.Q(fR,"yt-collapsible-ypc-offer-renderer",function(){if(tT7===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;Pbd===void 0&&(Pbd=document.createElement("template"));var C=Pbd;I.call(f,C.content.cloneNode(!0),r.content.firstChild);tT7=r}r=tT7;return r},{mode:2});var TgU;var cx1;_.gW("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var IS=function(){return _.y.apply(this,arguments)||this};
_.t(IS,_.y);_.l=IS.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 r=_.yH(this.data.backgroundImage.thumbnails,screen.width),f=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=f?"linear-gradient(180deg, "+f+"), url("+r+")":"url("+r+")";this.data.gtmId&&_.hK(this.data.gtmId,_.Lz("GL",""))}};
_.l.onYtServiceRequestError_=function(r){_.tx(this.hostElement,r.detail.error.message)};
_.l.getScrimLayerColorStops_=function(){var r,f,I=(r=this.data.unlimitedHeaderV2Data)==null?void 0:(f=r.unlimitedHeaderV2Data)==null?void 0:f.scrimLayerColors;if(!I)return null;var C=100/I.length;return I.map(function(Y,V){V*=C;return _.g_(Y)+" "+V+"%"}).join(",")};
_.l.computeLogoWithPadding=function(r){var f,I,C;return(r=(f=r.unlimitedLogoImage)==null?void 0:(I=f.thumbnails)==null?void 0:(C=I[0])==null?void 0:C.height)&&r%31===0?!0:!1};
IS.prototype.onYtServiceRequestError_=IS.prototype.onYtServiceRequestError_;IS.prototype.dataChanged_=IS.prototype.dataChanged_;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],IS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],IS.prototype,"ytRendererBehavior",void 0);_.A([_.K({computed:"computeLogoWithPadding(data)"}),_.B("design:type",Boolean)],IS.prototype,"logoWithPadding",void 0);
_.A([_.K(),_.B("design:type",Object)],IS.prototype,"data",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IS.prototype,"dataChanged_",null);_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],IS.prototype,"onYtServiceRequestError_",null);IS=_.A([_.zX({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],IS);
_.Q(IS,"yt-unlimited-page-header-renderer",function(){if(cx1===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;TgU===void 0&&(TgU=document.createElement("template"));var C=TgU;I.call(f,C.content.cloneNode(!0),r.content.firstChild);cx1=r}r=cx1;return r},{mode:2});var Wkq;var LkY;_.gW("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var CR=function(){return _.y.apply(this,arguments)||this};
_.t(CR,_.y);CR.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],CR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],CR.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],CR.prototype,"data",void 0);CR=_.A([_.zX({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],CR);
_.Q(CR,"yt-unlimited-user-notification-renderer",function(){if(LkY===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;Wkq===void 0&&(Wkq=document.createElement("template"));var C=Wkq;I.call(f,C.content.cloneNode(!0),r.content.firstChild);LkY=r}r=LkY;return r},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.YjB=_.Hc(function(r){var f=_.jS(r,{numberOfChips:5}).numberOfChips;return _.p("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.p(_.pz,{each:function(){return Array(f==null?void 0:f())}},function(){return _.p("div",{class:"ytGhostChipShelfChip"})}))},"cg");_.lsq=_.Hc(function(r){var f=_.ru(),I=_.a().resolve(_.Lv);_.Xl(function(){requestAnimationFrame(function(){var Y;(Y=f.lottieEl)==null||Y.addEventListener("DOMLoaded",function(){var V;(V=r.onLottieLoaded)==null||V.call(r)})})});
var C={};return _.p("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var Y;return((Y=r.data)==null?void 0:Y.call(r).targetId)||""}},_.p(_.uT,{className:_.qd((C.ytChatLoadingViewModelRtl=I==="rtl",C)),
animationName:"YOUCHAT_LOADER",data:function(){var Y;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((Y=r.data)==null?void 0:Y.call(r).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:f}))},"dg");
}catch(e){_._DumpException(e)}
try{
var coB,WI1,LIY,mS6,e47,Jop,jcU,Ax,Z9,io1,R46,vXV,yoq,GZ2,Gq,Zo3,OoY,Aoq,Qc6,oX3,scV,kZV,B56,qZq,u0q,k_,DS6,ryY,fE6,V46,lE6,YDB,IE1,CE1,Eaq,SD6,xu6,his,whd,du2,gai,aE7,Xh6,$u3,PEq,TL7,cyB,W9B,L92,eiq,Jy6,jZV,HXi,iX6,Rid,vai,yy2,oaq,OXi,Uu3,QZ3,sZ2,AyB,BLB,kHs,ZX3,GHq,ub,qD6,Du3,I3s,Sm1,xkq,ho6,w9V,byB,p92,nLU,dkq,zod,Mbd,a37,X9d,NIV,Ho6,l3i;
_.og=function(r){var f=new _.nf("Error accessing DB");return _.vnl().then(function(I){return new Promise(function(C,Y){try{var V=I.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(r);V.onsuccess=function(){var S=V.result;C(S?S.value:null)};
V.onerror=function(){f.params={key:r,source:"onerror"};Y(f)}}catch(S){f.params={key:r,
thrownError:String(S)},Y(f)}})},function(){return null})};
_.T5V=function(r,f){var I=_.zLu(f);I!=="javascript:"&&I!=="data:"&&r.setAttribute("href",f)};
coB=function(r,f){return _.f2(r.entities,"flowStateEntity",f)};
WI1=function(r){return(r=r.getOption("captions","track"))?!!r.displayName:!1};
LIY=function(r,f){f=f.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(f==null||!f.length)return r;var I=f.filter(function(S){return S});
f=r.filter(function(S){return S.languageCode.startsWith("en")});
I=_.E(I);for(var C=I.next();!C.done;C=I.next())if(C=C.value,f.length){var Y=f[0],V=Object.assign({},Y);Y.languageCode!==C.languageCode&&(V.displayName=Y.languageName+" >> "+C.languageName,V.translationLanguage=C,r.push(V))}return r};
mS6=function(r){var f,I=(f=r.getOption("captions","tracklist",{includeAsr:!0}))!=null?f:[];_.N("mweb_watch_captions_enable_auto_translate")&&(I=LIY(I,r));return I};
e47=function(r){return _.yE(r,function(f){return f.languageCode==="en"})};
Jop=function(r){var f=Qj;if(WI1(r))r.setOption("captions","stickyLoading",{}),r.setOption("captions","track",{});else{var I=_.yE(mS6(r),function(C){return C.displayName===f});
r.setOption("captions","track",I)}};
jcU=function(r){if(!r)return 0;var f=r.getPresentingPlayerType(),I=r.getVideoData();return I&&I.isLive?(r=r.getProgressState(f),r.seekableEnd-r.seekableStart):r.getDuration(f)};
Ax=function(r,f){_.eQ(f,r,function(){return Ho6[f]},function(I){Ho6[f]=I;
if(!_.N("mweb_player_ve_show_ks")){var C=_.t1(0);C&&I&&_.JZ(C,I)}})};
Z9=function(r){(r=Ho6[r])&&_.YP(_.IB(),r)};
io1=function(r,f){for(var I=_.E(Object.keys(r)),C=I.next();!C.done;C=I.next())if(C=C.value,r[C]!==f[C])return!1;return!0};
R46=function(){return document.getElementById("player-control-overlay")};
vXV=function(r){r!==-1&&!_.N("player_controls_log_creation_killswitch")&&R46()&&(_.Xc("pcu_cs",r),_.Xc("pcu_ce"))};
yoq=function(r){return _.p("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(r.subscribeButton?[r.subscribeButton,r.channelAccess]:[r.channelAccess]).map(function(f){return _.p("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.p("div",{class:"yt-profile-identity-info-view-model-wiz--button"},KIp(f)))}))};
_.US3=function(r){var f=r.data;r=r.hideDivider;var I={};I=(I["yt-profile-identity-info-view-model-wiz__frame"]=!0,I["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!f.channelBanner,I);I={class:_.D5(I)};var C,Y={imageBannerViewModel:{image:(C=f.channelBanner)==null?void 0:C.image,style:"IMAGE_BANNER_STYLE_INSET"}};C=_.p("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},f.channelBanner?_.p("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
KIp(Y,{imageBannerViewModel:{isPositionRelative:!0}})):null);Y=_.p("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},KIp(f.avatar));var V;var S=_.p("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.p("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},f.channelDisplayName),f.verifiedOrOacBadge?_.p("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.p(_.J3,{data:{thumbnails:[{url:(V=f.verifiedOrOacBadge)==null?void 0:V.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);V=_.p("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},S,KIp(f.threeDotMenu));S=_.p("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.p("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.p("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},f.channelHandle),f.channelPronouns&&f.channelHandle?_.p("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.p("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},f.channelPronouns)),_.p("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.p("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},f.leftOfBulletInfo),f.leftOfBulletInfo&&f.rightOfBulletInfo?_.p("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.p("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},f.rightOfBulletInfo)));V=_.p("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},V,S);return _.p("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.p("div",I,C,_.p("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},Y,V),f.channelDescription?_.p("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},f.channelDescription):
null,yoq(f),r?null:_.p("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
GZ2=function(r,f){var I=_.JG(r,{}),C=scV("top",f),Y=scV("bottom",f),V=scV("left",f),S=scV("right",f);return _.lB({top:function(){return Gq(I().position,C)},
bottom:function(){return Gq(I().position,Y)},
left:function(){return Gq(I().position,V)},
right:function(){return Gq(I().position,S)},
position:function(){return Gq(I().positionType,OoY)},
height:function(){return Gq(I().height,k_)},
width:function(){return Gq(I().width,k_)},
"min-width":function(){return Gq(I().minWidth,k_)},
"min-height":function(){return Gq(I().minHeight,k_)},
"max-width":function(){return Gq(I().maxWidth,k_)},
"max-height":function(){return Gq(I().maxHeight,k_)},
"aspect-ratio":function(){return Gq(I().aspectRatio,String)},
"margin-top":function(){return Gq(I().margin,C)},
"margin-bottom":function(){return Gq(I().margin,Y)},
"margin-left":function(){return Gq(I().margin,V)},
"margin-right":function(){return Gq(I().margin,S)},
"padding-top":function(){return Gq(I().padding,C)},
"padding-bottom":function(){return Gq(I().padding,Y)},
"padding-left":function(){return Gq(I().padding,V)},
"padding-right":function(){return Gq(I().padding,S)},
"flex-direction":function(){return Gq(I().flexDirection,oX3)},
"justify-content":function(){return Gq(I().justifyContent,Qc6)},
"align-items":function(){return Gq(I().alignItems,Aoq)},
"flex-grow":function(){return Gq(I().flexGrow,String)},
"flex-shrink":function(){return Gq(I().flexShrink,String)},
"flex-basis":function(){return Gq(I().flexBasis,k_)},
"align-self":function(){return Gq(I().alignSelf,Aoq)},
"flex-wrap":function(){return Gq(I().flexWrap,Zo3)},
"align-content":function(){return Gq(I().alignContent,Aoq)}})};
Gq=function(r,f){return r!==void 0?f(r):void 0};
Zo3=function(r){switch(r){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
OoY=function(r){switch(r){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
Aoq=function(r){switch(r){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"}};
Qc6=function(r){switch(r){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"}};
oX3=function(r){switch(r){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"}};
scV=function(r,f){var I=f==="rtl";switch(r){case "top":var C=kZV;break;case "bottom":C=B56;break;case "left":C=qZq;break;default:C=u0q}return function(Y){return Gq(C(Y,I),k_)}};
kZV=function(r){var f=r.top;var I=r.vertical;r=r.all;var C;return(C=f!=null?f:I)!=null?C:r};
B56=function(r){var f=r.bottom;var I=r.vertical;r=r.all;var C;return(C=f!=null?f:I)!=null?C:r};
qZq=function(r,f){var I=r.left;var C=r.end;var Y=r.start;var V=r.horizontal;r=r.all;var S,h;return(h=(S=I!=null?I:f?C:Y)!=null?S:V)!=null?h:r};
u0q=function(r,f){var I=r.right;var C=r.end;var Y=r.start;var V=r.horizontal;r=r.all;var S,h;return(h=(S=I!=null?I:f?Y:C)!=null?S:V)!=null?h:r};
k_=function(r){var f=r.value;switch(r.unit){case "YPC_DIMENSION_UNIT_POINT":return f+"px";case "YPC_DIMENSION_UNIT_FRACTION":return f+"%";default:return""+f}};
DS6=function(r){switch(r){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"}};
ryY=function(r){var f=r!=null?r:{};r=f.fontRole;var I=f.fontSize;f=f.fontWeight;if(r!==null&&I!==null)switch(r){case "YPC_FONT_ROLE_DISPLAY":switch(I){case "YPC_FONT_SIZE_L":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(I){case "YPC_FONT_SIZE_L":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return f===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(I){case "YPC_FONT_SIZE_XL":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return f==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
fE6=function(r,f){return _.f2(r.entities,"pdpStateEntity",f)};
V46=function(r,f,I){function C(n){return Object.values(n).map(function(d){var z=d.productId;d=d.pricingOptionIndex;return IE1(Y(z).pricingOptions,d).pricingOptionId})}
function Y(n){return h().get(n)}
function V(n){n=C(n);I(n)}
var S=CE1([r,f],function(n,d){var z=n==null?void 0:n.selectedPricingOptions;n={};var g=!0;if(z&&d.length)for(var X=_.E(d),P=X.next();!P.done;P=X.next()){P=P.value;var W=YDB(P.pricingOptions,function(m){a:{m=m.pricingOptionId;for(var v=_.E(z),O=v.next();!O.done;O=v.next())if(O.value===m){m=!0;break a}m=!1}return m});
W>=0&&(g=!1,n[P.groupId]={productId:P.productId,pricingOptionIndex:W})}g&&d.length&&(n[d[0].groupId]={productId:d[0].productId,pricingOptionIndex:0});return n}),h=CE1([f],function(n){return new Map(n.map(function(d){return[d.productId,
d]}))}),w=CE1([f],function(n){var d=new Map;
n=_.E(n);for(var z=n.next();!z.done;z=n.next()){var g=z.value;z=g.groupId;var X=g.productId;g=_.E(lE6(g.pricingOptions));for(var P=g.next();!P.done;P=g.next()){var W=_.E(P.value);P=W.next().value;W=W.next().value;d.set(W.pricingOptionId,{groupId:z,productId:X,index:P,pricingOption:W})}}return d});
return{getProductById:Y,isProductSelected:function(n){var d=Y(n);if(!d)return!1;var z;return((z=S()[d.groupId])==null?void 0:z.productId)===n},
getSelectedPricingOptions:function(){return Object.values(S()).map(function(n){var d=n.productId;n=n.pricingOptionIndex;return IE1(Y(d).pricingOptions,n)})},
getSelectedProductByGroupId:function(n){var d;return(n=(d=S()[n])==null?void 0:d.productId)?Y(n):void 0},
onProductSelected:function(n){var d=Y(n);if(d){var z=S(),g;if(((g=z[d.groupId])==null?void 0:g.productId)!==n){var X,P;g=(P=(X=z[d.groupId])==null?void 0:X.pricingOptionIndex)!=null?P:0;X=0;for(P=d.pricingOptions[Symbol.iterator]();!P.next().done;)++X;X<=g&&(g=0);X={};V(Object.assign({},z,(X[d.groupId]={productId:n,pricingOptionIndex:g},X)))}}},
onPricingOptionSelected:function(n){var d=w().get(n);if(d){n=d.groupId;var z=d.productId;d=d.index;var g=S(),X,P;if(((X=g[n])==null?void 0:X.productId)!==z||((P=g[n])==null?void 0:P.pricingOptionIndex)!==d)X={},V(Object.assign({},g,(X[n]={productId:z,pricingOptionIndex:d},X)))}},
onClearGroupSelected:function(n){var d=S();d[n]&&(d=Object.fromEntries(Object.entries(d).filter(function(z){return _.E(z).next().value!==n})),V(d))}}};
lE6=function(r){return function I(){var C,Y,V,S,h;return _.iuB(I,function(w){switch(w.nextAddress){case 1:_.SP(w,2),C=0,Y=_.E(r),V=Y.next();case 4:if(V.done){w.jumpTo(2);break}S=V.value;h=_.RzP;return _.b(w,[C++,S],7);case 7:h(w.yieldResult);V=Y.next();w.jumpTo(4);break;case 2:_.VY(w),_.xV(w,0)}})}()};
YDB=function(r,f){r=_.E(lE6(r));for(var I=r.next();!I.done;I=r.next()){var C=_.E(I.value);I=C.next().value;C=C.next().value;if(f(C))return I}return-1};
IE1=function(r,f){r=_.E(lE6(r));for(var I=r.next();!I.done;I=r.next()){var C=_.E(I.value);I=C.next().value;C=C.next().value;if(I===f)return C}};
CE1=function(r,f){var I,C;return function(){for(var Y=r.map(function(S){return S()}),V=0;V<Y.length;V++)if(!I||Y[V]!==I[V]){I=Y;
C=f.apply(null,_.Na(Y));break}return C}};
Eaq=function(r){var f;return!!(r.productId&&r.groupId&&((f=r.pricingOptions)==null?0:f.length)&&r.pricingOptions.every(function(I){return I.pricingOptionId}))};
SD6=function(r,f,I){return V46(r,CE1([f],function(C){return C.filter(Eaq)}),I)};
xu6=function(r,f){return f.length===0?[r]:[r.slice(0,f[0]),r.slice(f[0])].filter(function(I){return I.length>0})};
his=function(r){switch(r){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""}};
whd=function(r,f,I,C){C=Object.assign({},C);_.nv(C,B0,{selectedOptionId:r,primaryButtonOverride:I});_.Lx().dispatch(_.hv("flowStateEntity",f,C))};
_.naV=function(){if(!bXq){var r=_.E(_.ld(new Map,void 0,"UJImUe"));bXq=r.next().value;phq=r.next().value}return bXq};
du2=function(r){if(r)return _.naV()().get(r)};
_.ziY=function(r,f){if(r&&f){var I=_.naV();I().set(r,f);r=I();phq(new Map(r))}};
_.M46=function(r){return{onSubmit:function(){var f;(f=du2(r()))==null||f.onSubmit()},
isValid:function(){var f=du2(r());return f?f.isValid():!0},
isSubmitting:function(){var f,I;return!!((f=du2(r()))==null?0:(I=f.isSubmitting)==null?0:I.call(f))}}};
gai=function(r,f){return _.f2(r.entities,"contextNoteFeedEntityPayload",f)};
aE7=function(r){r.style.height="auto";r.style.height=r.scrollHeight+"px"};
Xh6=function(r){return[r.syncStep,r.asyncStep].filter(function(f){return f!==void 0})};
$u3=function(r){var f,I,C;if(r=(f=r.structuredContextNoteFormSchema)==null?void 0:(I=f.fieldSchemas)==null?void 0:(C=I.noteBody)==null?void 0:C.validationSchema)for(f=_.E(Xh6(r)),I=f.next();!I.done;I=f.next()){I=I.value.rules;if(!I)break;I=_.E(I);for(I=I.next();!I.done;I=I.next())return _.F(I.value,_.NLq)}};
PEq=function(r){if(r){r=_.E(Xh6(r));for(var f=r.next();!f.done;f=r.next()){f=f.value.rules;if(!f)break;f=_.E(f);for(f=f.next();!f.done;f=f.next())return _.F(f.value,F9d)}}};
TL7=function(r){if(r){r=_.E(Xh6(r));for(var f=r.next();!f.done;f=r.next()){f=f.value.rules;if(!f)break;f=_.E(f);for(f=f.next();!f.done;f=f.next())return _.F(f.value,t41)}}};
cyB=function(r){r=/^https?:\/\//.test(r)?r:"http://"+r;try{var f=_.Hh(r)}catch(I){return!1}if(f.toString()!==r)return!1;r=f.JSC$7932_domain_.split(".");return r.length>1&&r.every(function(I){return!!I})};
W9B=function(r,f,I,C){var Y;C=(Y=C.structuredContextNoteData)==null?void 0:Y.createCommentEndpoint;if(Y=_.F(C,_.RbV))return Y.commentText=_.iX(r),Y.videoPositionMention=f,Y.sources=I,C};
L92=function(r){return r==null?void 0:r.stringValue};
eiq=function(r,f,I){r=r.map(function(C,Y){return{listItemViewModel:{title:C.title,subtitle:C.subtitle,leadingImage:C.leadingImage,trailingImage:Y===f?muY:void 0,rendererContext:{commandContext:{onTap:C.onTap}}}}});
return Object.assign({},I&&{header:{panelHeaderViewModel:{title:I}}},{content:{listViewModel:{listItems:r}}})};
Jy6=function(r,f){if(r&&f)switch(f){case "SELECTION_TYPE_BOOL":return r.boolValue;case "SELECTION_TYPE_INT":return r.intValue;case "SELECTION_TYPE_STRING":return r.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return r.privacyStatusValue}};
jZV=function(r){var f;r=(f=r.options)==null?void 0:f.findIndex(function(I){return I.isSelected});
return r===void 0?-1:r};
HXi=function(r,f,I){var C=function(){return r().label},Y={},V=_.qd("ytDropdownViewModelLabel",(Y.ytDropdownViewModelLabelError=f,Y));
return _.p(_.M,{cond:function(){return r().label&&!(I()===-1&&r().label&&!r().placeholderText)},
then:function(){return _.p("div",{class:V},_.p(_.wW,{text:C}))}})};
iX6=function(r,f){var I={};I=_.qd("ytDropdownViewModelTitle",(I.ytDropdownViewModelTitlePlaceholder=function(){return f()===-1},I));
return _.p("div",{class:I},_.p(_.wW,{text:function(){var C=r();var Y=f();if(Y===-1)C=C.placeholderText?C.placeholderText:C.label;else{var V,S;C=(V=C.options)==null?void 0:(S=V[Y])==null?void 0:S.title}return C}}))};
Rid=function(r,f){var I=function(){return r().hint};
return _.p(_.B9,null,_.p(_.M,{cond:function(){return I()&&!f()},
then:function(){return _.p("div",{class:_.qd("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.p(_.wW,{text:I,className:"ytDropdownViewModelSupportText"}))}}),_.p(_.M,{cond:f,
then:function(){return _.p("div",{id:"dropdown-view-model-error",role:"alert",class:_.qd("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.p(_.V2,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.p(_.wW,{text:f,className:"ytDropdownViewModelSupportText"}))}}))};
vai=function(r,f){var I=_.a().resolve(_.T3X);_.$E(function(){var C=r().id;C&&I!=null&&I.dropdownMap.set(C,f)})};
yy2=function(r){r=_.F(r.scheduleButton,K9s);r=_.F(r==null?void 0:r.primaryButton,_.NI);r=_.F(r==null?void 0:r.onTap,_.gF);var f,I,C=((I=_.F(r,_.Il))==null?void 0:I.commands)||[r];I=_.E(C);for(r=I.next();!r.done&&!(f=_.F(r.value,_.ykB));r=I.next());var Y;f=(Y=f)==null?void 0:Y.createBroadcastRequest;if(!f)throw Error("Gj");return f};
oaq=function(r,f,I){I=I===void 0?{}:I;var C,Y;return _.x(function(V){if(C=Uu3(f))return V.return(C);(Y=sZ2(r,f,I))&&OXi(f,Y);return V.return(Y)})};
OXi=function(r,f){var I=QZ3(r);I&&f.then(function(C){_.a().resolve(_.uQ).put(I,new _.DL({innertubeResponse:C}))})};
Uu3=function(r){if(r=QZ3(r)){var f=_.a().resolve(_.uQ);if(f.has(r))return f.get(r).then(function(I){return I==null?void 0:_.lO(I)})}return null};
QZ3=function(r){var f=_.F(r.endpoint,_.vj);if(f!=null&&f.videoId)return f={videoId:f.videoId},_.N("web_imp_player_mute_params")&&(f.mutedAtStart=r.startPlaybackInMutedState),_.Ro("inline_playback",f)};
sZ2=function(r,f,I){r=_.mC(r,f.endpoint,AyB(f,I)).then(function(C){return C});
return Promise.resolve(r)};
AyB=function(r,f){f=_.N("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!r.startPlaybackInMutedState},f):Object.assign({},{vis:5,autonav:"1"},f);var I;f={contentPlaybackContext:_.hN(f,(I=_.F(r.endpoint.commandMetadata,_.oo))==null?void 0:I.url,window.location.href)};_.N("web_imp_player_mute_params")&&(f.overrideMutedAtStart=!r.startPlaybackInMutedState);return f};
BLB=function(r,f){var I=window.MutationObserver;I&&(q1=new I(function(C,Y){C=_.E(C);for(var V=C.next();!V.done;V=C.next()){V=V.value;var S;if(S=V.type==="childList"&&V.target)a:{S=r;V=ZX3(V.target);S=ZX3(S);for(var h=null,w=0;w<V.length;w++)if(S.includes(V[w])){if(w===0){S=!1;break a}h=V[w];break}h?(V=GHq(V,h),S=GHq(S,h),S=V<S):S=!1}if(S){f();Y.disconnect();break}}}),(I=kHs())&&q1.observe(I,{childList:!0,
subtree:!0}))};
kHs=function(){var r=document.getElementsByTagName("ytd-rich-grid-renderer");if(r.length>0)return r[0];r=document.getElementsByTagName("ytd-section-list-renderer");return r.length>0?r[0]:null};
ZX3=function(r){for(var f=[];r;)f.push(r),r=r.parentElement;return f};
GHq=function(r,f){var I=Array.from(f.children);f=r.indexOf(f);return f>0?I.indexOf(r[f-1]):-1};
ub=function(r,f,I){I=I===void 0?{}:I;return _.VR(r,I,f)};
qD6=function(r){return r==null?void 0:r.filter(function(f){return f.premiereTrailerBadgeRenderer})};
Du3=function(r){var f,I=r==null?void 0:(f=r.find(function(d){return d.thumbnailOverlayTimeStatusRenderer}))==null?void 0:f.thumbnailOverlayTimeStatusRenderer,C;
if(I==null?0:(C=I.icon)==null?0:C.iconType){var Y;return{icon:I==null?void 0:(Y=I.icon)==null?void 0:Y.iconType}}var V,S;var h=(r=(V=r==null?void 0:(h=r.find(function(d){return d.thumbnailBottomOverlayViewModel}))==null?void 0:h.thumbnailBottomOverlayViewModel)==null?void 0:(S=V.badges)==null?void 0:S.find(function(d){var z,g;
return((z=_.F(d,uFi))==null?void 0:(g=z.inlinePlaybackBadgeData)==null?void 0:g.replicateAsTimestamp)===!0}))?_.F(r,uFi):void 0;
if(h==null?0:h.icon){var w,n;if(h=(w=_.mFR(h==null?void 0:h.icon))==null?void 0:(n=w.clientResource)==null?void 0:n.imageName)return{icon:h}}return{}};
I3s=function(r,f){var I="",C="";switch(r){case -1:case 0:I=f?"VOLUME_OFF":"VOLUME_OFF_FILLED";C=rRU;break;case 1:I=f?"VOLUME_UP_OUTLINE":"VOLUME_UP";C=f37;break;default:_.Sd(r)}return{iconName:I,ariaLabel:C}};
Sm1=function(r,f){var I=CdV,C=_.E(_.ld(YmY(new l3i(function(){},I,f)),void 0,"PAnyd")),Y=C.next().value,V=C.next().value,S=new l3i(function(h){V(h)},I,f);
_.az(function(){Promise.resolve().then(function(){var h,w=(h=r())!=null?h:{};S.playerControlsData=w;_.N("player_controls_skip_double_signal_old")&&(S.lastSeenPlayerApi=_.Ha(w.playerApi));_.N("player_controls_skip_double_signal_old")||(S.lastSeenPlayerApi=_.Ha(w.playerApi));Vb3(S)});
_.$L(function(){EL3(S)})});
_.$L(function(){EL3(S)});
return function(){return Y()}};
xkq=function(r){return function(f){var I=r(),C={playerState:f};if(f===1){var Y;(Y=I.playerApi)==null||Y.loadModule("captions")}if(f===0){var V;(V=I.playerApi)==null||V.unloadModule("captions")}(f!==-1||_.N("web_imp_controls_set_player_state_killswitch"))&&I.setState(C)}};
ho6=function(r){return function(f){r().setState({playbackRate:f})}};
w9V=function(r){return function(f){var I=r(),C=I.playerApi,Y=C==null?void 0:C.getVideoData(),V=(Y==null?void 0:Y.isLive)||!1;Y=Y==null?void 0:Y.video_id;V={videoDuration:jcU(C||void 0),isLive:V,videoId:Y};V.videoId!==I.videoId&&(V=Object.assign({},_.sSP(C),V));if(f==null?0:f.playertype)V.playerType=f.playertype;if(C){V.captionsAvailable=!!C.getOptions("captions");f=V;var S;Y=(S=C.getStoryboardLevel(C.getNumberOfStoryboardLevels()-1))==null?void 0:S.intervalMs;f.storyboardInterval=Y?Y/1E3:void 0;V.captionsAvailable&&
(V.captionsEnabled=WI1(C))}V.volumeMuted=!(C==null||!C.isMuted());I.setState(V)}};
byB=function(r){return function(f){var I=r(),C=I.playerApi;if(C){var Y=C.getPresentingPlayerType();f={playedTime:f||0,percentLoaded:C.getVideoLoadedFraction(),playerType:Y};I.playerState===0&&(f.playedTime=I.videoDuration);I.isLive&&(Y=C.getProgressState(Y),f.playedTime-=Y.seekableStart,f.videoDuration=jcU(C));if(I.playerType===1)C=!1;else{var V;if((V=I.uxConfig)==null?0:V.showCuedOverlay){var S;C=!((S=I.playerApi)==null?0:S.getPlayerStateObject(I.playerType).isDomPaused)}else C=!0}C&&delete f.playedTime;
I.setState(f)}}};
p92=function(r){return function(){var f=r(),I,C,Y,V={volume:(Y=(I=f.playerApi)==null?void 0:I.getVolume())!=null?Y:0,volumeMuted:!((C=f.playerApi)==null||!C.isMuted())};f.setState(V)}};
nLU=function(r){return function(){var f=r(),I=f.playerApi;if(I){var C={captionsAvailable:!!I.getOptions("captions")};C.captionsAvailable&&(C.captionsEnabled=WI1(I));f.setState(C)}}};
dkq=function(r){return function(){var f=r();if(f.playerApi&&!(f.volumeMuted||f.controlsVisible&&f.isProbablyAScreenreaderUser)){f.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var I;(I=document.querySelector(".player-control-play-pause-icon"))==null||I.focus()}}};
zod=function(r){return{appApi:Object.assign({},_.HRR(),{showCaptionsToggleToast:function(f){var I,C;(C=(I=r()).showCaptionsToggleToast)==null||C.call(I,f)},
openInMiniplayer:function(){var f,I;(I=(f=r()).openInMiniplayer)==null||I.call(f)}})}};
Mbd=function(r,f){var I,C,Y;return!!(r==null?0:(I=r.playerResponse)==null?0:(C=I.playerConfig)==null?0:(Y=C.inlinePlaybackConfig)==null?0:Y.showScrubbingControls)&&!(f==null?0:f.hideScrubbingControls)};
_.gLB=function(r){var f=!r.miniplayerIsActive;return[5,2,0].includes(r.miniplayerPlaybackState)||f};
a37={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};X9d=function(r,f){var I,C,Y,V,S;_.x(function(h){if(!f.length)return h.return([]);I=[];C=_.E(f);for(Y=C.next();!Y.done;Y=C.next())V=Y.value,(S=r.resolveIcon(V))&&!r.iconCache[S.url]&&I.push(_.vC6(r,S).then(function(){}).catch(function(){}));
return h.return(Promise.all(I))})};
NIV=function(r,f){var I=[];f=(new Set(f)).values();f=_.E(f);for(var C=f.next();!C.done;C=f.next()){C=C.value;for(var Y=_.E(Object.values(a37)),V=Y.next();!V.done;V=Y.next())I.push({iconName:C,iconStyle:V.value})}X9d(r.iconManager,I)};
_.$k6=function(r,f,I){var C=I!=null?I:r.iconsToFetch;C!=null&&C.length?f!==void 0&&f>=0?_.dp(_.F_,function(){NIV(r,C)},f):NIV(r,C):Promise.resolve()};
Ho6={};
l3i=function(r,f,I){var C=this;this.renderFn=r;this.listeners=f;this.context=I;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var Y;this.lastSeenPlayerApi=_.Ha((Y=this.playerControlsData)==null?void 0:Y.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.sSP(),void 0);_.N("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){YmY(C).setState({playerState:-1});C.resetRecentlyNavigatedJobId&&_.F_.cancelJob(C.resetRecentlyNavigatedJobId);C.recentlyNavigated=
!0;C.resetRecentlyNavigatedJobId=_.F_.addJob(function(){C.recentlyNavigated=!1},8,1E4)})};
l3i.prototype.setState=function(r){if(!_.N("mweb_player_skip_no_op_state_changes")||!io1(r,this.state))if(this.state=Object.assign({},this.state,r),!_.N("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)r=-1,_.N("player_controls_log_creation_killswitch")||R46()||(r=(0,_.Ad)()),_.Xc("pcu_s"),_.Xc("pcu_se"),_.Xc("pcu_rs"),this.renderFn(YmY(this)),_.Xc("pcu_re"),vXV(r),_.F_.addJob(function(){_.Xc("pcu_ap")},8)};
var YmY=function(r){var f;var I=_.Ha((f=r.playerControlsData)==null?void 0:f.playerApi);return Object.assign({},r.state,{setState:r.boundSetState,domMeasurements:{progressBarLineRect:r.progressBarLineRect},playerApi:I,appApi:r.context.appApi,playerContainer:r.context.playerContainer,playerControlContainer:r.context.playerControlContainer,uxConfig:r.context.uxConfig})},Vb3=function(r){r.listeners.forEach(function(f){r.eventListenerCleanupFunctions.push(f.register(function(){return YmY(r)},function(){return r.getData()}))})},
EL3=function(r){r.eventListenerCleanupFunctions.forEach(function(f){f()});
r.eventListenerCleanupFunctions.length=0};
l3i.prototype.getData=function(){return this.playerControlsData};
var D9=new _.q("abuseReportFlowState");var Fb6=new _.q("feedbackFormFlowState");var PdB=new _.q("inputBoxViewModel");var tbB=new _.q("flowNextStepCommand");var TI3=new _.q("flowPrevStepCommand");var cR6=new _.q("updateFlowCommand");_.Wb1=new _.q("flowStepRenderer");_.NLq=new _.q("lengthValidationRule");var F9d=new _.q("regexValidationRule");var t41=new _.q("selectedValidationRule");var Lb7=new _.q("talkToRecsViewModel");var mk3=new _.q("creatorGoalSetUpFlowDropdownItemViewModel");var eop=new _.q("creatorGoalSetUpFlowDropdownViewModel");var uFi=new _.q("thumbnailBadgeViewModel");_.JRp=new _.q("radioButtonGroupViewModel");var K9s=new _.q("panelFooterViewModel");var jzB=new _.q("ypcCancelRecurrenceCommand");var Hyd=new _.q("cancellationFlowState");var B0=new _.q("premiumPurchaseFlowState");var iy6=new _.q("surveyAnswerCardRenderer");var Ro6=new _.q("showMoreButtonRenderer");var vL6;var Kb7,yRp=function(){if(Kb7!==void 0)return Kb7;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;vL6===void 0&&(vL6=document.createElement("template"));var C=vL6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return Kb7=r};var rZ=function(){var r=_.y.apply(this,arguments)||this;r.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";r.goalDescription="";r.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";r.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";r.startButtonId="start-button";r.exampleButtonId="example-button";return r};
_.t(rZ,_.y);_.l=rZ.prototype;_.l.getGoalDropdownItems=function(){var r,f;return(f=_.F((r=this.data)==null?void 0:r.purchaseTargetDropdown,eop))==null?void 0:f.dropdownItems};
_.l.getTimerDropdownItems=function(){var r,f;return(f=_.F((r=this.data)==null?void 0:r.timerDropdown,eop))==null?void 0:f.dropdownItems};
_.l.getColorDropdownItems=function(){var r,f;return(f=_.F((r=this.data)==null?void 0:r.colorDropdown,eop))==null?void 0:f.dropdownItems};
_.l.getDropdownItemText=function(r){var f;return(f=_.F(r,mk3))==null?void 0:f.itemLabel};
_.l.getDropdownItemValue=function(r){r=_.F(r,mk3);return(r==null?void 0:r.timeLimit)||(r==null?void 0:r.purchaseTarget)||(r==null?void 0:r.eligiblePurchaseType)};
_.l.updateFlowState=function(r){_.Bj(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:r}])};
_.l.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.l.updateGoalValue=function(r){this.goal=r.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.l.onTextValueChanged=function(r){this.goalDescription=r.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.l.updateTimerValue=function(r){this.timer=r.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.l.updateTierValue=function(r){this.tier=r.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.l.getButtonViewModel=function(r){r=(r==null?void 0:r.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var f,I=_.F((f=this.data)==null?void 0:f.startGoalButton,_.NI);return Object.assign({},I,{state:r})};
_.OC.Object.defineProperties(rZ,{template:{configurable:!0,enumerable:!0,get:function(){return yRp()}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],rZ.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],rZ.prototype,"goal",void 0);_.A([_.K(),_.B("design:type",Object)],rZ.prototype,"goalDescription",void 0);_.A([_.K(),_.B("design:type",Object)],rZ.prototype,"timer",void 0);_.A([_.K(),_.B("design:type",Object)],rZ.prototype,"tier",void 0);
_.A([_.K(),_.B("design:type",Object)],rZ.prototype,"startButtonId",void 0);_.A([_.K(),_.B("design:type",Object)],rZ.prototype,"exampleButtonId",void 0);rZ=_.A([_.zX({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],rZ);_.Q(rZ,"yt-creator-goal-set-up-flow-view-model",function(){return yRp()},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var Uks;var sz6;var OyB;var fO=function(){return _.y.apply(this,arguments)||this};
_.t(fO,_.y);_.A([_.K(),_.B("design:type",Object)],fO.prototype,"data",void 0);fO=_.A([_.zX({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],fO);
_.Q(fO,"yt-survey-answer-card-renderer",function(){if(OyB===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;sz6===void 0&&(sz6=document.createElement("template"));var C=sz6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);OyB=r}r=OyB;return r},{mode:2});var oLY;var Qzp;var I8=function(){return _.y.apply(this,arguments)||this};
_.t(I8,_.y);_.l=I8.prototype;_.l.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.l.selectedItemChanged=function(r){_.Bj(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[r.feedbackToken||""]}])};
_.l.surveyAnswerCardRendererClicked=function(r){if(r.target&&_.F(r.model.item,iy6)){var f=r.target;r=_.F(r.model.item,iy6);r.onTapCommand?_.rX(f,[r.onTapCommand],f):this.data.onTapCommand&&_.rX(f,[this.data.onTapCommand],f);this.selectedItemChanged(r)}};
_.l.checkIsCancellationStyle=function(r){return r==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.l.updateSelectedItemFromBinding=function(r){this.selectedItem=r.detail.value};
I8.prototype.onSelectedItemChanged=I8.prototype.onSelectedItemChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],I8.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],I8.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],I8.prototype,"selectedItem",void 0);_.A([_.K({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.B("design:type",Boolean)],I8.prototype,"isCancellationStyle",void 0);
_.A([_.Bt("selectedItem"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],I8.prototype,"onSelectedItemChanged",null);I8=_.A([_.zX({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],I8);
_.Q(I8,"yt-survey-flow-step-renderer",function(){if(Qzp===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;oLY===void 0&&(oLY=document.createElement("template"));var C=oLY;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Qzp=r}r=Qzp;return r},{mode:2});var CO=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return r};
_.t(CO,_.y);CO.prototype.handleSurveyFlowStepOptionChanged=function(r){this.ytdReduxBehavior.dispatch(_.kI({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:r}));_.Bj(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:r}}])};
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],CO.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],CO.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],CO.prototype,"data",void 0);CO=_.A([_.U({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],CO);
_.Q(CO,"ytd-survey-flow-step-renderer",function(){if(Uks!==void 0)return Uks;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Uks=r},{mode:1});var KIp;KIp=_.zk({avatarViewModel:_.$U,buttonViewModel:_.LF,subscribeButtonViewModel:_.w04,imageBannerViewModel:_.B$V});_.AR1=_.rW(_.US3);_.GL(_.US3);var Zy6;var Y8=function(){return _.y.apply(this,arguments)||this};
_.t(Y8,_.y);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Y8.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Y8.prototype,"data",void 0);Y8=_.A([_.U({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],Y8);
_.Q(Y8,"ytd-channel-history-renderer",function(){if(Zy6!==void 0)return Zy6;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Zy6=r},{mode:1});var GA6;var lL=function(){return _.y.apply(this,arguments)||this};
_.t(lL,_.y);_.A([_.K(),_.B("design:type",Object)],lL.prototype,"data",void 0);lL=_.A([_.U({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],lL);
_.Q(lL,"ytd-feature-enablement-info-renderer",function(){if(GA6!==void 0)return GA6;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return GA6=r},{mode:1});var kAs;var BIV;var VK=function(){var r=_.y.apply(this,arguments)||this;r.textBoxMaxLength=_.N("enable_tvod_campaign_code_integration")?15:12;return r};
_.t(VK,_.y);_.l=VK.prototype;_.l.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.l.onSubmit=function(){var r=this.data.serviceEndpoint,f=_.F(r,_.DK);f&&r&&(f.couponCode=this.userInput,_.a().resolve(_.Gg).resolveCommand(r,{form:{element:this.hostElement}}))};
_.l.validate=function(){var r=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=r&&!this.data.errorMessage;this.showErrorMessage=r&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.N("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.l.computeStyle=function(r){return r};
_.l.computeShowValidationBelowInput=function(r){return r!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.l.updateUserInputFromBinding=function(r){this.userInput=r.currentTarget.value};
_.l.updateShowErrorMessageFromBinding=function(r){this.showErrorMessage=r.detail.value};
_.OC.Object.defineProperties(VK.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
VK.prototype.dataChanged=VK.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],VK.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],VK.prototype,"data",void 0);_.A([_.K(),_.B("design:type",String)],VK.prototype,"userInput",void 0);_.A([_.K(),_.B("design:type",Boolean)],VK.prototype,"disableApplyButton",void 0);_.A([_.K(),_.B("design:type",Boolean)],VK.prototype,"hideApplyButton",void 0);
_.A([_.K(),_.B("design:type",Boolean)],VK.prototype,"hideErrorMessage",void 0);_.A([_.K(),_.B("design:type",Boolean)],VK.prototype,"showTick",void 0);_.A([_.K(),_.B("design:type",Boolean)],VK.prototype,"showErrorMessage",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],VK.prototype,"couponStyle",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.B("design:type",Boolean)],VK.prototype,"showValidationBelowInput",void 0);_.A([_.K(),_.B("design:type",Object)],VK.prototype,"textBoxMaxLength",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VK.prototype,"dataChanged",null);
_.A([_.R("showTick","showErrorMessage","userInput"),_.B("design:type",String),_.B("design:paramtypes",[])],VK.prototype,"validationState",null);VK=_.A([_.U({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],VK);
_.Q(VK,"ytd-ypc-coupon-renderer",function(){if(BIV!==void 0)return BIV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return BIV=r},{mode:1});var EI=function(){return _.y.apply(this,arguments)||this};
_.t(EI,_.y);EI.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"}}}};
EI.prototype.computeStyle=function(r){return r};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],EI.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],EI.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],EI.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],EI.prototype,"buttonStyle",void 0);EI=_.A([_.U({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],EI);
_.Q(EI,"ytd-flow-bottom-bar-renderer",function(){if(kAs!==void 0)return kAs;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return kAs=r},{mode:1});var qmV;var uRs;var DkB;var SU=function(){return _.y.apply(this,arguments)||this};
_.t(SU,_.y);SU.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
SU.prototype.focus=function(r){this.title&&_.KW(this.title,r)};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],SU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],SU.prototype,"data",void 0);_.A([_.uA("#title"),_.B("design:type",HTMLElement)],SU.prototype,"title",void 0);SU=_.A([_.U({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],SU);
_.Q(SU,"ytd-flow-top-bar-renderer",function(){if(DkB!==void 0)return DkB;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return DkB=r},{mode:1});var rn7;var fY3;var IYU;var x8=function(){return _.y.apply(this,arguments)||this};
_.t(x8,_.y);x8.prototype.freeTextValueChanged=function(){_.Bj(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
x8.prototype.updateFreeTextValueFromBinding=function(r){this.freeTextValue=r.detail.value};
_.OC.Object.defineProperties(x8.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var r,f,I=(f=(r=this.data)==null?void 0:r.responseMaxLength)!=null?f:500,C;return((C=this.freeTextValue)!=null?C:"").length>=I?"maxed-out":""}}});
x8.prototype.freeTextValueChanged=x8.prototype.freeTextValueChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],x8.prototype,"data",void 0);_.A([_.K(),_.B("design:type",String)],x8.prototype,"freeTextValue",void 0);_.A([_.uA("#user-input"),_.B("design:type",HTMLTextAreaElement)],x8.prototype,"input",void 0);
_.A([_.R("freeTextValue"),_.B("design:type",Object),_.B("design:paramtypes",[])],x8.prototype,"characterLimitClass",null);_.A([_.Bt("freeTextValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x8.prototype,"freeTextValueChanged",null);x8=_.A([_.zX({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],x8);
_.Q(x8,"yt-free-text-input-flow-step-renderer",function(){if(IYU===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;fY3===void 0&&(fY3=document.createElement("template"));var C=fY3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);IYU=r}r=IYU;return r},{mode:2});var hX=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return r};
_.t(hX,_.y);hX.prototype.handleFreeTextFlowStepInputChanged=function(r){_.Bj(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:r}}])};
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],hX.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],hX.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],hX.prototype,"data",void 0);hX=_.A([_.U({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],hX);
_.Q(hX,"ytd-free-text-input-flow-step-renderer",function(){if(rn7!==void 0)return rn7;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return rn7=r},{mode:1});var Ck2;var YQV;var wZ=function(){return _.y.apply(this,arguments)||this};
_.t(wZ,_.y);_.A([_.K(),_.B("design:type",Object)],wZ.prototype,"data",void 0);wZ=_.A([_.U({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],wZ);
_.Q(wZ,"ytd-metadata-line-renderer",function(){if(YQV!==void 0)return YQV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return YQV=r},{mode:1});var bL=function(){return _.y.apply(this,arguments)||this};
_.t(bL,_.y);bL.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],bL.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],bL.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],bL.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],bL.prototype,"isMasthead",void 0);bL=_.A([_.U({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],bL);
_.Q(bL,"ytd-media-product-renderer",function(){if(Ck2!==void 0)return Ck2;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Ck2=r},{mode:1});var lY3;var pO=function(){return _.y.apply(this,arguments)||this};
_.t(pO,_.y);pO.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
pO.prototype.onBillboardImageLoaded=function(){_.kA(this.hostElement,"yt-refit")};
pO.prototype.onBillboardImageLoaded=pO.prototype.onBillboardImageLoaded;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],pO.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],pO.prototype,"data",void 0);_.A([_.uA("#billboardImage"),_.B("design:type",Object)],pO.prototype,"billboardImage",void 0);_.A([_.kO("yt-img-shadow-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pO.prototype,"onBillboardImageLoaded",null);
pO=_.A([_.U({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],pO);
_.Q(pO,"ytd-billboard-masthead-renderer",function(){if(lY3!==void 0)return lY3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return lY3=r},{mode:1});var VH2;var nO=function(){var r=_.y.apply(this,arguments)||this;r.smallSize=!1;return r};
_.t(nO,_.y);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],nO.prototype,"ytComponentBehaviorType",void 0);_.A([_.K(),_.B("design:type",Object)],nO.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],nO.prototype,"smallSize",void 0);nO=_.A([_.U({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],nO);
_.Q(nO,"ytd-bullet-formatted-string",function(){if(VH2!==void 0)return VH2;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return VH2=r},{mode:1});var EEB;var dZ=function(){return _.y.apply(this,arguments)||this};
_.t(dZ,_.y);dZ.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],dZ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],dZ.prototype,"data",void 0);dZ=_.A([_.U({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],dZ);
_.Q(dZ,"ytd-offer-detail-renderer",function(){if(EEB!==void 0)return EEB;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return EEB=r},{mode:1});var SQ1;var zc=function(){return _.y.apply(this,arguments)||this};
_.t(zc,_.y);zc.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],zc.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],zc.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],zc.prototype,"data",void 0);zc=_.A([_.U({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],zc);
_.Q(zc,"ytd-offer-detail-step-renderer",function(){if(SQ1!==void 0)return SQ1;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return SQ1=r},{mode:1});var xC2;var Mf=function(){var r=_.y.apply(this,arguments)||this;r.isInOfferModule=!1;return r};
_.t(Mf,_.y);_.l=Mf.prototype;_.l.computeHasEndpoint=function(){var r;return!((r=this.data)==null||!r.onClickCommand)};
_.l.dataChanged=function(){var r;if((r=this.data)==null?0:r.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 r;if((r=this.data)==null?0:r.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.l.handleClickEvent=function(){var r;if((r=this.data)==null?0:r.onClickCommand){var f;this.componentBehavior.resolveCommand((f=this.data)==null?void 0:f.onClickCommand)}};
_.l.onContentKeyDown=function(r){r.key==="Enter"?this.handleClickEvent(r):r.key===" "&&r.preventDefault()};
_.l.onContentKeyUp=function(r){r.key===" "&&this.handleClickEvent(r)};
Mf.prototype.dataChanged=Mf.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Mf.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Mf.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Mf.prototype,"data",void 0);_.A([_.K({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Mf.prototype,"hasEndpoint",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Mf.prototype,"isInOfferModule",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mf.prototype,"dataChanged",null);Mf=_.A([_.U({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Mf);
_.Q(Mf,"ytd-channel-masthead-renderer",function(){if(xC2!==void 0)return xC2;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return xC2=r},{mode:1});var hSp;var gZ=function(){var r=_.y.apply(this,arguments)||this;r.thumbnailObjectFit="CONTAIN";r.thumbnailObjectPosition="LEFT";r.isExpanded=!1;return r};
_.t(gZ,_.y);_.l=gZ.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 r;return((r=this.data)==null?void 0:r.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.l.onExpandBtnClick=function(){var r,f=_.F((r=this.data)==null?void 0:r.showMoreButtonRenderer,Ro6);f&&_.lH(_.IB(),f.trackingParams);this.isExpanded=!this.isExpanded};
_.l.onOfferInfoClick=function(r){this.isTapOnOfferInfoContainerEnabled&&(_.iB(_.JN(r)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.RC(_.JN(r)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.l.onBottomBarClick=function(){this.executeTapCommand()};
_.l.executeTapCommand=function(){var r,f=(r=this.data)==null?void 0:r.tapCommand;f&&this.ytComponentBehavior.resolveCommand(f)};
_.l.resetStates=function(){this.isExpanded=!1};
_.OC.Object.defineProperties(gZ.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var r=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),f,I,C;return((f=this.data)==null?void 0:f.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&r&&!!((I=this.data)==null?0:(C=I.benefits)==null?0:C.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return((f=_.F((r=this.data)==null?void 0:r.showMoreButtonRenderer,Ro6))==null?void 0:f.showMoreButtonTitle)||((I=this.data)==null?void 0:I.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return((f=_.F((r=this.data)==null?void 0:r.showMoreButtonRenderer,Ro6))==null?void 0:f.showLessButtonTitle)||((I=this.data)==null?void 0:I.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var r;return(r=this.showLessButtonTitle)!=null?r:""}var f;return(f=this.showMoreButtonTitle)!=null?f:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return((r=this.data)==null?void 0:r.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((f=this.data)==null?0:f.footerTitle)||((I=this.data)==null?0:I.footerSubtitle))}}});
gZ.prototype.dataChanged=gZ.prototype.dataChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],gZ.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],gZ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",String)],gZ.prototype,"thumbnailObjectFit",void 0);
_.A([_.K(),_.B("design:type",String)],gZ.prototype,"thumbnailObjectPosition",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.B("design:type",Boolean)],gZ.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.A([_.K(),_.B("design:type",Object)],gZ.prototype,"isExpanded",void 0);_.A([_.K(),_.B("design:type",Object)],gZ.prototype,"data",void 0);_.A([_.K({computed:"computeIcon_(data.footerIcon)"}),_.B("design:type",String)],gZ.prototype,"icon",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gZ.prototype,"dataChanged",null);_.A([_.R("data.thumbnail"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gZ.prototype,"hasThumbnail",null);_.A([_.R("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gZ.prototype,"enableExpandButton",null);
_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gZ.prototype,"enableOfferContentIcon",null);_.A([_.R("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.B("design:type",Object),_.B("design:paramtypes",[])],gZ.prototype,"showMoreButtonTitle",null);_.A([_.R("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.B("design:type",Object),_.B("design:paramtypes",[])],gZ.prototype,"showLessButtonTitle",null);
_.A([_.R("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.B("design:type",String),_.B("design:paramtypes",[])],gZ.prototype,"expandedBtnText",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gZ.prototype,"enableBottomBar",null);gZ=_.A([_.U({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],gZ);
_.Q(gZ,"ytd-offer-card-renderer",function(){if(hSp!==void 0)return hSp;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return hSp=r},{mode:1});var ww6;var a8=function(){return _.y.apply(this,arguments)||this};
_.t(a8,_.y);a8.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"}}}};
a8.prototype.onClick=function(r){if(!_.iB(r.composedPath()||[],this.hostElement,["A".toString()])){var f,I;if((r=(I=_.F((f=this.data)==null?void 0:f.actionButton,_.Ll))==null?void 0:I.command)&&!this.ytComponentBehavior.resolveCommand(r)){var C;(C=_.IB())==null||C.clickCommand(r);_.a().resolve(_.Gg).resolveCommand(r,{form:{element:this.hostElement}})}}};
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],a8.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],a8.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],a8.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],a8.prototype,"data",void 0);a8=_.A([_.U({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],a8);
_.Q(a8,"ytd-offer-content-renderer",function(){if(ww6!==void 0)return ww6;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return ww6=r},{mode:1});var bzq;var Xs=function(){return _.y.apply(this,arguments)||this};
_.t(Xs,_.y);Xs.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.OC.Object.defineProperties(Xs.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var r,f;return!((r=this.data)==null||!r.title)||!((f=this.data)==null||!f.description)}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Xs.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Xs.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Xs.prototype,"data",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Xs.prototype,"hasHeaderData",null);Xs=_.A([_.U({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Xs);
_.Q(Xs,"ytd-offer-section-renderer",function(){if(bzq!==void 0)return bzq;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return bzq=r},{mode:1});var pwY;var Nf=function(){return _.y.apply(this,arguments)||this};
_.t(Nf,_.y);
Nf.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"}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Nf.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Nf.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Nf.prototype,"data",void 0);Nf=_.A([_.U({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],Nf);
_.Q(Nf,"ytd-offer-selection-step-renderer",function(){if(pwY!==void 0)return pwY;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return pwY=r},{mode:1});var nE7;var $8=function(){return _.y.apply(this,arguments)||this};
_.t($8,_.y);$8.prototype.computeStyle=function(r){return r};
$8.prototype.computeImageWidth=function(r){return r==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.A([_.K({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.B("design:type",String)],$8.prototype,"containerStyle",void 0);_.A([_.K({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.B("design:type",String)],$8.prototype,"imageWidth",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],$8.prototype,"data",void 0);
$8=_.A([_.U({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],$8);
_.Q($8,"ytd-confirmation-masthead-renderer",function(){if(nE7!==void 0)return nE7;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return nE7=r},{mode:1});var dCY;var Fs=function(){return _.y.apply(this,arguments)||this};
_.t(Fs,_.y);Fs.prototype.computeStyle=function(r){return r};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Fs.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Fs.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.B("design:type",String)],Fs.prototype,"containerStyle",void 0);Fs=_.A([_.U({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],Fs);
_.Q(Fs,"ytd-purchase-complete-detail-renderer",function(){if(dCY!==void 0)return dCY;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return dCY=r},{mode:1});var zSi;var Pf=function(){var r=_.y.apply(this,arguments)||this;r.scriptsAppended=!1;return r};
_.t(Pf,_.y);Pf.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"}}}};
Pf.prototype.onDataChanged=function(){var r=this.get("data.gtmId");r&&(_.hK(r,_.Lz("GL","")),this.setupConversionTracking())};
Pf.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var r=document.createElement("noscript");r.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(r);this.scriptsAppended=!0}};
Pf.prototype.onDataChanged=Pf.prototype.onDataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Pf.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Pf.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Pf.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],Pf.prototype,"scriptsAppended",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pf.prototype,"onDataChanged",null);Pf=_.A([_.U({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],Pf);
_.Q(Pf,"ytd-purchase-complete-step-renderer",function(){if(zSi!==void 0)return zSi;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return zSi=r},{mode:1});var MHB;var tX=function(){var r=_.y.apply(this,arguments)||this;r.darkerDarkTheme=_.N("web_darker_dark_theme");return r};
_.t(tX,_.y);tX.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],tX.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],tX.prototype,"darkerDarkTheme",void 0);tX=_.A([_.U({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],tX);
_.Q(tX,"ytd-ypc-transaction-error-message-renderer",function(){if(MHB!==void 0)return MHB;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return MHB=r},{mode:1});var gE7;var aY2;var Tc=function(){var r=_.y.apply(this,arguments)||this;r.handlePhoneVerificationSuccess=function(f){if(r.isValidPhoneVerificationCompletionMessageEvent(f)){var I;((I=r.data)==null?0:I.nextStepCommand)&&r.ytComponentBehavior.resolveCommand(r.data.nextStepCommand)}};
return r};
_.t(Tc,_.y);Tc.prototype.isValidPhoneVerificationCompletionMessageEvent=function(r){if(r.data!=="yt-phone-verification-complete")return!1;r=_.OQ(r.origin);return r!==null&&r.includes("youtube.com")};
Tc.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Tc.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Tc.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Tc.prototype,"data",void 0);Tc=_.A([_.zX({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Tc);
_.Q(Tc,"yt-feature-enablement-soft-entry-renderer",function(){if(aY2===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;gE7===void 0&&(gE7=document.createElement("template"));var C=gE7;I.call(f,C.content.cloneNode(!0),r.content.firstChild);aY2=r}r=aY2;return r},{mode:1});var Xwd;var Nt1;var $CU;var FOq;var cf=function(){return _.y.apply(this,arguments)||this};
_.t(cf,_.y);_.A([_.K(),_.B("design:type",Object)],cf.prototype,"data",void 0);cf=_.A([_.zX({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],cf);
_.Q(cf,"yt-benefits-item-renderer",function(){if(FOq===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;$CU===void 0&&($CU=document.createElement("template"));var C=$CU;I.call(f,C.content.cloneNode(!0),r.content.firstChild);FOq=r}r=FOq;return r},{mode:2});var PkY;var tH3;var Wf=function(){return _.y.apply(this,arguments)||this};
_.t(Wf,_.y);Wf.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Wf.prototype.computeisWithoutPadding=function(){var r;return((r=this.data)==null?void 0:r.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Wf.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Wf.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.B("design:type",Boolean)],Wf.prototype,"isWithoutPadding",void 0);Wf=_.A([_.zX({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Wf);
_.Q(Wf,"yt-benefits-section-renderer",function(){if(tH3===void 0){var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;PkY===void 0&&(PkY=document.createElement("template"));var C=PkY;I.call(f,C.content.cloneNode(!0),r.content.firstChild);tH3=r}r=tH3;return r},{mode:2});var LO=function(){return _.y.apply(this,arguments)||this};
_.t(LO,_.y);LO.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
LO.prototype.computeisUsingLargeWidth=function(){var r;return((r=this.data)==null?void 0:r.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],LO.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],LO.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.B("design:type",Boolean)],LO.prototype,"isUsingLargeWidth",void 0);LO=_.A([_.zX({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],LO);
_.Q(LO,"yt-benefits-flow-step-renderer",function(){if(Nt1===void 0){var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;Xwd===void 0&&(Xwd=document.createElement("template"));var C=Xwd;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Nt1=r}r=Nt1;return r},{mode:2});var TtU;var cni;var mp=function(){return _.y.apply(this,arguments)||this};
_.t(mp,_.y);mp.prototype.checkIsUsingLargeWidth=function(){var r;return((r=this.data)==null?void 0:r.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.A([_.K(),_.B("design:type",Object)],mp.prototype,"data",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],mp.prototype,"ytRendererBehavior",void 0);_.A([_.K({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.B("design:type",Boolean)],mp.prototype,"isUsingLargeWidth",void 0);mp=_.A([_.zX({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],mp);
_.Q(mp,"yt-confirmation-flow-step-renderer",function(){if(cni===void 0){var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;TtU===void 0&&(TtU=document.createElement("template"));var C=TtU;I.call(f,C.content.cloneNode(!0),r.content.firstChild);cni=r}r=cni;return r},{mode:2});var WO1;var LOd;var eU=function(){return _.y.apply(this,arguments)||this};
_.t(eU,_.y);_.A([_.K(),_.B("design:type",Object)],eU.prototype,"data",void 0);eU=_.A([_.zX({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],eU);
_.Q(eU,"yt-info-flow-step-renderer",function(){if(LOd===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;WO1===void 0&&(WO1=document.createElement("template"));var C=WO1;I.call(f,C.content.cloneNode(!0),r.content.firstChild);LOd=r}r=LOd;return r},{mode:2});var mC6;var eSV;var JX=function(){return _.y.apply(this,arguments)||this};
_.t(JX,_.y);_.A([_.K(),_.B("design:type",Object)],JX.prototype,"data",void 0);JX=_.A([_.zX({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],JX);
_.Q(JX,"yt-info-list-flow-step-renderer",function(){if(eSV===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;mC6===void 0&&(mC6=document.createElement("template"));var C=mC6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);eSV=r}r=eSV;return r},{mode:2});var Jn6=_.Hc(function(r){var f=r.data;return _.p("styled-text-view-model",{class:_.qd("ytStyledTextViewModelHost",function(){return ryY(f().fontAttributes)},function(){return DS6(f().color)})},_.p(_.wW,{text:function(){return f().text},
ariaLabel:function(){var I,C,Y;return(Y=(I=f().accessibility)==null?void 0:(C=I.accessibilityData)==null?void 0:C.label)!=null?Y:""}}))},"Re");
Jn6.idomCompat=!0;var jv1=_.Hc(function(r){var f=function(){var Y,V,S,h;return(h=(S=(Y=r.alt)==null?void 0:Y.call(r))!=null?S:(V=r.data().accessibilityData)==null?void 0:V.label)!=null?h:""},I=function(){return r.data().imageWidth},C=function(){return r.data().imageHeight};
return _.p("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.p(_.M,{cond:function(){var Y=r.data();if(Y){var V,S,h;var w=((V=_.a().resolve(_.ZY(_.cI)))==null?0:V())?(S=Y.imageDark)!=null?S:Y.imageLight:(h=Y.imageLight)!=null?h:Y.imageDark}else w=void 0;return w},
then:function(Y){return _.p(_.J3,Object.assign({},r,{data:Y,alt:f,targetWidth:I,targetHeight:C,preserveHeight:!0,preserveWidth:!0}))}}))},"Se");
jv1.idomCompat=!0;var jU=_.Hc(function(r){var f=r.data;r=_.JG(function(){return f().slots},[]);
var I=_.JG(function(){return f().layoutProperties},{}),C=_.a().resolve(_.Lv);
return _.p("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:GZ2(I,C)},_.p(_.pz,{each:r,keyBy:"INDEX"},function(Y){return _.p("div",{class:"ytContainerLayoutViewModelSlot",style:GZ2(function(){return Y().layoutProperties},C)},_.p(_.X1,{data:function(){return Y().contents}},{containerLayoutViewModel:jU,
badgeViewModel:_.sq,buttonViewModel:_.LF,styledTextViewModel:Jn6,contentPreviewImageViewModel:function(V){return _.p(_.Oq,{data:V.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(V){return _.p(jv1,{data:V.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Te");
jU.idomCompat=!0;var HzU=_.Hc(function(r){var f=r.data;var I=r.stateFns;var C=function(){var n=f(),d=n.productId;return!(!n.clearGroupId&&!d)},Y=function(){var n=f(),d=n.clearGroupId;
return(n=n.productId)?I().isProductSelected(n):d?I().getSelectedProductByGroupId(d)==null:!1},V=function(){var n=f(),d=n.clearGroupId;
if(n=n.productId)I().onProductSelected(n);else if(d)I().onClearGroupSelected(d)},S=function(){var n=f(),d=n.clearGroupId;
if(n=n.productId){var z;return"group:"+(((z=I().getProductById(n))==null?void 0:z.groupId)||"")}return d?"group:"+d:""},h=_.JG(function(){return f().header},[]),w=_.JG(function(){return f().body},[]);
return _.p("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.p(_.M,{cond:function(){return h().length>0||C()},
then:function(){return _.p("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.p("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.p(_.X1,{data:h},{containerLayoutViewModel:function(n){return _.p("div",{class:"ytPdpCardSectionViewModelContentItem"},_.p(jU,{data:n.data}))},
styledTextViewModel:function(n){return _.p("div",{class:"ytPdpCardSectionViewModelContentItem"},_.p(Jn6,{data:n.data}))}})),_.p(_.M,{cond:C,
then:function(){return _.p("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.p(_.zE,{checked:Y,name:S,onChange:V}))}}))}}),_.p(_.M,{cond:function(){return w().length>0},
then:function(){return _.p("div",null,_.p(_.X1,{data:w},{containerLayoutViewModel:function(n){return _.p("div",{class:"ytPdpCardSectionViewModelContentItem"},_.p(jU,{data:n.data}))}}))}}))},"Ue");
HzU.idomCompat=!0;var iz6=_.Hc(function(r){var f=r.data;var I=r.stateFns;return _.p("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.p(_.M,{cond:function(){return f().banner},
then:function(C){return _.p("div",{class:"ytPdpCardViewModelBanner"},_.p(_.wW,{text:C}))}}),_.p(_.X1,{data:function(){return f().sections}},{pdpCardSectionViewModel:function(C){C=C.data;
var Y={};return _.p("div",{class:_.qd("ytPdpCardViewModelSectionContainer",(Y.ytPdpCardViewModelShowDividers=function(){return f().showDividers},Y))},_.p(HzU,{data:C,
stateFns:I}))}}))},"Ve");
iz6.idomCompat=!0;var RSY=_.Hc(function(r){var f=r.data;var I=r.isOverlay;r={};return _.p("pdp-masthead-view-model",{class:_.qd("ytPdpMastheadViewModelHost",(r.ytPdpMastheadViewModelIsOverlay=I,r))},_.p(_.X1,{data:function(){return f().image}},{contentPreviewImageViewModel:_.Oq,
themedImageViewModel:function(C){return _.p(jv1,{data:C.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.p(_.M,{cond:function(){return f().title},
then:function(C){return _.p("h1",{class:"ytPdpMastheadViewModelHeading"},_.p(_.wW,{text:C,isOverlay:I}))}}),_.p(_.pz,{each:function(){var C;
return(C=f().finePrint)!=null?C:[]}},function(C){return _.p("div",{class:"ytPdpMastheadViewModelFinePrint"},_.p(_.wW,{text:C,
isOverlay:I}))}))},"We");
RSY.idomCompat=!0;var vE3=_.Hc(function(r){var f=r.data;var I=r.stateFns;return _.p("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.p(_.pz,{each:function(){var C=I().getSelectedPricingOptions().map(function(V){return V.pricingOptionId}),Y=I().getSelectedProductByGroupId(f().groupId);
return Y?Y.pricingOptions.map(function(V){return{pricingOption:V,isSelected:C.includes(V.pricingOptionId)}}):(_.PR(Error("Fj`"+f().groupId)),[])},
keyBy:"INDEX"},function(C){return _.p("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.p("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.p(_.X1,{data:function(){return C().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:jU})),_.p("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.p(_.zE,{checked:function(){return C().isSelected},
onClick:function(){I().onPricingOptionSelected(C().pricingOption.pricingOptionId);var Y=C().pricingOption.onSelectPricingOption;if(Y=_.aB(Y)){var V;(V=_.a().resolve(_.Gg))==null||V.resolveCommand(Y)}}})))}))},"Xe");
vE3.idomCompat=!0;var KOB=_.Hc(function(r){var f=r.data;var I=r.stateFns;return _.p("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.p(_.X1,{data:function(){var C,Y;return(Y=(C=I().getSelectedPricingOptions()[0])==null?void 0:C.primaryButton)!=null?Y:f().emptyStateButton}},{buttonViewModel:_.LF}))},"Ye");
KOB.idomCompat=!0;var yns=_.Hc(function(r){var f=r.stateFns;return _.p("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.p(_.X1,{data:function(){return f().getSelectedPricingOptions().flatMap(function(I){return I.summaryLines}).filter(function(I){return!!I})}},{containerLayoutViewModel:function(I){return _.p("div",{class:"ytPdpSummaryViewModelLineItem"},_.p(jU,{data:I.data}))}}))},"Ze");
yns.idomCompat=!0;var UCq=_.Hc(function(r){function f(m){var v=S();_.eS(_.Po("pdpStateEntity",v,{key:v,selectedPricingOptions:m}))}
var I=r.data;var C=r.internalScrolling;var Y=r.stateFnsForTesting;var V=_.JG(function(){return I().allProducts},[]),S=_.JG(function(){return I().pdpStateEntityKey},""),h=_.VS(fE6,S),w=_.hR(function(){_.tR(!0);
var m;return(m=Y==null?void 0:Y())!=null?m:SD6(h,V,f)},void 0,"POBqwe"),n=_.JG(function(){return I().body},[]),d=_.JG(function(){return I().columnBreakHints},[]),z=function(){return I().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},g=function(){return z()||I().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},X=_.hR(function(){var m=_.ZK(I().background),v;
if(m==null?0:(v=m.sources)==null?0:v.length){var O=O===void 0?!0:O;m=_.jdU(void 0,m.sources,void 0,O,O?1E3:void 0,O?void 0:1E3)}else m=null;return m},void 0,"BkCmEd");
r=_.lB({"--pdp-view-model-background":function(){return X()?"url("+X()+")":void 0}});
var P={};C=_.qd("ytPdpViewModelHost",(P.ytPdpViewModelHasBackground=function(){return g()||!!X()},P.ytPdpViewModelHasDarkBackground=g,P.ytPdpViewModelHasScrim=z,P.ytPdpViewModelInternalScrolling=_.JG(C,!1),P));
var W=function(m){var v={};return _.qd("ytPdpViewModelItem",(v.ytPdpViewModelFullBleed=function(){return _.Tgm(m())==="dividerViewModel"||_.Tgm(m())==="sectionHeaderViewModel"},v.ytPdpViewModelNoVerticalPadding=function(){return _.Tgm(m())==="sectionHeaderViewModel"},v))};
_.$E(function(){var m=I().onStartCommand;if(m&&(m=_.aB(m))){var v;(v=_.a().resolve(_.Gg))==null||v.resolveCommand(m)}});
return _.p("pdp-view-model",{class:C,style:r},_.p("div",{class:"ytPdpViewModelColumnContainer"},_.p(_.pz,{each:function(){return xu6(n(),d())},
keyBy:"INDEX"},function(m){return _.p("div",{class:"ytPdpViewModelColumn"},_.p(_.X1,{data:m},{containerLayoutViewModel:function(v,O){v=v.data;return _.p("div",{class:W(function(){return m()[O()]})},_.p(jU,{data:v}))},
dividerViewModel:function(v,O){v=v.data;return _.p("div",{class:W(function(){return m()[O()]})},_.p(_.uHg,{data:v}))},
pdpCardViewModel:function(v,O){v=v.data;return _.p("div",{class:W(function(){return m()[O()]})},_.p(iz6,{data:v,
stateFns:w}))},
pdpMastheadViewModel:function(v,O){v=v.data;return _.p("div",{class:W(function(){return m()[O()]})},_.p(RSY,{data:v,
isOverlay:g}))},
pdpPricingOptionSelectorViewModel:function(v,O){v=v.data;return _.p("div",{class:W(function(){return m()[O()]})},_.p(vE3,{data:v,
stateFns:w}))},
pdpPrimaryButtonViewModel:function(v,O){v=v.data;return _.p("div",{class:W(function(){return m()[O()]})},_.p(KOB,{data:v,
stateFns:w}))},
pdpSummaryViewModel:function(v,O){v=v.data;return _.p("div",{class:W(function(){return m()[O()]})},_.p(yns,{data:v,
stateFns:w}))},
sectionHeaderViewModel:function(v,O){v=v.data;return _.p("div",{class:W(function(){return m()[O()]})},_.p(_.BA,{data:v}))}}))})))},"$e");
UCq.idomCompat=!0;_.Kv(UCq,"pdp-view-model",{props:{data:_.jv,stateFnsForTesting:_.vI,internalScrolling:_.vI}});var svi=_.Hc(function(r){var f=r.data;var I=r.className;var C=_.VS(_.rM,function(){return f().flowStateEntityKey});
return _.p("ytm-premium-purchase-button-renderer",{class:_.qd("yt-premium-purchase-button-renderer",I)},_.p(_.X1,{data:function(){var Y;return(Y=_.F(C(),B0))==null?void 0:Y.primaryButtonOverride}},{buttonRenderer:function(Y){return _.p(_.mq,{data:Y.data,
className:I})},
buttonViewModel:function(Y){return _.p(_.LF,{data:Y.data,className:I})}}))},"af");
svi.idomCompat=!0;var OzU=_.Hc(function(r){var f=r.data;var I=function(){return his(f().style)},C=_.qd("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",I),Y=_.qd("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",I);
return _.p("yt-flow-bottom-bar-renderer",{class:_.qd("yt-flow-bottom-bar-renderer",r.className,I)},_.p(_.X1,{data:function(){return f().secondaryButton}},{buttonRenderer:function(V){return _.p(_.mq,{data:V.data,
className:Y})},
buttonViewModel:function(V){return _.p(_.LF,{data:V.data,className:Y})},
premiumPurchaseButtonRenderer:function(V){return _.p(svi,{data:V.data,className:Y})}}),_.p(_.X1,{data:function(){return f().primaryButton}},{buttonRenderer:function(V){return _.p(_.mq,{data:V.data,
className:C})},
buttonViewModel:function(V){return _.p(_.LF,{data:V.data,className:C})},
premiumPurchaseButtonRenderer:function(V){return _.p(svi,{data:V.data,className:C})}}))},"bf");
OzU.idomCompat=!0;_.Kv(OzU,"yt-flow-bottom-bar-renderer",{props:{data:_.jv,className:_.jv}});var oEU=_.Hc(function(r){return _.p("yt-offer-summary-renderer",{class:_.qd(r.className,"ytOfferSummaryRendererHost")},_.p("div",{class:"ytOfferSummaryRendererTextContainer"},_.p("div",{class:"ytOfferSummaryRendererEyebrowText"},_.p(_.wW,{text:function(){return r.data().eyebrowText}})),_.p("div",{class:"ytOfferSummaryRendererTitle"},_.p(_.wW,{text:function(){return r.data().title}})),_.p("div",{class:"ytOfferSummaryRendererSubtitle"},_.p(_.wW,{text:function(){return r.data().subtitle}})),_.p("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.p(_.pz,{each:function(){var f;
return(f=r.data().featureListData)!=null?f:[]}},function(f){var I;
return _.p("div",{class:"ytOfferSummaryRendererFeatureList"},_.p(_.V2,{icon:(I=f.icon)==null?void 0:I.iconType,className:f.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.p("div",{class:"ytOfferSummaryRendererFeatureListText"},_.p(_.wW,{text:f.text})))})),_.p("div",{class:"ytOfferSummaryRendererDescription"},_.p(_.wW,{text:function(){return r.data().description}}))))},"cf");_.Kv(_.Hc(function(r){var f={};f=_.qd("ytOfferSummaryFlowStepRendererHost",(f.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=r.shouldDisableHeaderTopMargin,f));return _.p("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:f},_.p("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.p("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.p(_.wW,{text:function(){return r.data().header}})),_.p("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.p(_.wW,{text:function(){return r.data().subtitle}}))),_.p("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.p(_.X1,{data:function(){return r.data().offerSummary}},{offerSummaryRenderer:function(I){return _.p(oEU,{data:I.data,
className:r.flowClassName})}})))},"df"),"yt-offer-summary-flow-step-renderer",{props:{data:_.vI,
flowClassName:_.vI,flowStateEntityKey:_.vI,shouldDisableHeaderTopMargin:_.vI}});var QvU=_.Hc(function(r){var f=r.data;var I=r.className;var C=r.flowStateEntityKey;var Y=r.selectionStepStyle;r=_.IC(function(w){var n=f(),d=C==null?void 0:C();w.target&&(w.stopPropagation(),w=d||"",d=_.rM(_.Lx().getState(),w),n=Object.assign({},d,{premiumPurchaseFlowState:{selectedOptionId:n.optionId,primaryButtonOverride:n.primaryButtonOverride}}),_.Lx().dispatch(_.hv("flowStateEntity",w,n)));return!1});
var V=function(){return(C==null?void 0:C())||""},S=_.VS(_.rM,V);
_.$E(function(){var w=f(),n=V(),d=S();!_.F(d,B0)&&w.defaultSelected&&n!==""&&w.primaryButtonOverride&&whd(w.optionId||"",n,w.primaryButtonOverride,d)});
var h={};return _.p("ytm-option-item-renderer",{"on:click":r,class:_.qd(I,"ytm-option-item-renderer",(h["ytm-option-item-renderer--lp2-style"]=function(){return(Y==null?void 0:Y())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},h))},_.p("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.p("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var w=f(),n=V(),d=S();d=_.F(d,B0);return(d?(d==null?void 0:d.selectedOptionId)||"":w.defaultSelected&&n!==""?(w==null?void 0:w.optionId)||"":"")===f().optionId},
name:("input"+_.TN(_.cS)).toString()})),_.p("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.p(_.M,{cond:function(){return f().eyebrowText},
then:function(){return _.p("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.p(_.wW,{text:function(){return f().eyebrowText}}))}}),_.p("div",{class:"ytm-option-item-renderer__option-item-title"},_.p(_.wW,{text:function(){return f().title}})),_.p("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.p(_.wW,{text:function(){return f().subtitle}})),_.p("div",{class:"ytm-option-item-renderer__option-item-description"},_.p(_.wW,{text:function(){return f().description}}))))},
"ef");var AnV=_.Hc(function(r){var f=r.data;var I=r.flowClassName;var C=r.flowStateEntityKey;var Y=r.selectionStepStyle;return _.p("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.p("div",{class:"yt-option-section-renderer__option-section-header-section"},_.p("div",{class:"yt-option-section-renderer__option-section-header"},_.p(_.wW,{text:function(){return f().title}}),_.p(_.X1,{data:function(){return f().titleBadge}},{badgeViewModel:function(V){return _.p(_.sq,
{data:V.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.p(_.M,{cond:function(){return f().subtitle},
then:function(){return _.p("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.p(_.wW,{text:function(){return f().subtitle}}))}}),_.p(_.M,{cond:function(){return f().featureListData},
then:function(V){return _.p("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.p(_.pz,{each:V},function(S){var h;return _.p("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.p(_.V2,{icon:(h=S.icon)==null?void 0:h.iconType,className:S.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.p("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.p(_.wW,{text:S.text})))}))}}),_.p(_.pz,{each:function(){return f().sectionDisclaimers||[]}},function(V){return _.p("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.p(_.wW,{text:V}))})),_.p(_.X1,{data:function(){return f().optionItems}},{optionItemRenderer:function(V){return _.p("div",{class:"yt-option-section-renderer__option-item"},_.p(QvU,{data:V.data,
className:I,flowStateEntityKey:C,selectionStepStyle:Y}))}}),_.p(_.M,{cond:function(){return f().offerText},
then:function(){return _.p("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.p(_.wW,{text:function(){return f().offerText}}))}}))},"ff");
AnV.idomCompat=!0;var Zz6=_.Hc(function(r){var f=r.data;var I=r.flowClassName;var C=r.flowStateEntityKey;r=r.isDesktop;var Y=function(){var n;return(n=f().flowStateEntityKey)!=null?n:C==null?void 0:C()},V=function(){return(Y==null?void 0:Y())||""},S=function(){return f().style},h=_.VS(_.rM,V);
_.$E(function(){var n=f(),d=V(),z=h();!_.F(z,B0)&&n.noPreselect&&d!==""&&n.defaultButtonOverride&&whd("default",d,n.defaultButtonOverride,z)});
var w={};return _.p("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.qd("ytm-option-selection-flow-step-renderer",(w["ytm-option-selection-flow-step-renderer--desktop"]=r,w["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return f().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},w))},_.p("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"},
_.p("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.p(_.wW,{text:function(){return f().header}})),_.p("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.p(_.wW,{text:function(){return f().subtitle}}))),_.p(_.X1,{data:function(){return f().optionItems||[]}},{optionItemRenderer:function(n){return _.p("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.p(QvU,{data:n.data,
className:I,flowStateEntityKey:Y,selectionStepStyle:S}))},
optionSectionRenderer:function(n){return _.p("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.p(AnV,{data:n.data,flowClassName:I,flowStateEntityKey:Y,selectionStepStyle:S}))}}))},"gf");
Zz6.idomCompat=!0;_.Kv(Zz6,"yt-option-selection-flow-step-renderer",{props:{data:_.jv,flowClassName:_.jv,flowStateEntityKey:_.jv,isDesktop:_.jv}});var bXq,phq;_.Hf=_.Hc(function(r){var f=_.jS(r,{type:1,disablePadding:!1,disablePrimaryButton:!1}),I=f.data,C=f.type;r=f.disablePadding;var Y=f.disablePrimaryButton,V=f.onClickPrimaryButton,S=function(){return I().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},h=function(){return{disabled:Y(),
state:Y()?"disabled":"active"}},w=function(){return I().leadingLabel||I().trailingLabel};
f={};return _.p("yt-panel-footer-view-model",{class:_.qd("yt-panel-footer-view-model-wiz",(f["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return I().shouldHideDivider},f["yt-panel-footer-view-model-wiz--disable-padding"]=r,f))},_.p(_.M,{cond:w,
then:function(){var n={},d={};return _.p("div",{class:_.qd("yt-panel-footer-view-model-wiz__text-row",(n["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var z=I();return!(!z.leadingLabel&&!z.trailingLabel||!z.primaryButton&&!z.secondaryButton)},n))},_.p(_.wW,{text:function(){return I().leadingLabel},
className:_.qd((d["yt-panel-footer-view-model-wiz--text-padding"]=w,d))}),_.p(_.wW,{text:function(){return I().trailingLabel}}))}}),_.p(_.M,{cond:S,
then:function(){var n={};return _.p("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.p("div",{class:_.qd("yt-panel-footer-view-model-wiz__primary-button",(n["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return I().secondaryButton},n))},_.p(_.X1,{data:function(){return I().primaryButton}},{buttonViewModel:function(d){return _.p(_.LF,{data:d.data,
buttonOverrides:h,onClick:V})}})),_.p(_.X1,{data:function(){return I().secondaryButton}},{buttonViewModel:_.LF}))}}),_.p(_.M,{cond:function(){return!S()},
then:function(){var n={},d={},z={};return _.p("div",{class:_.qd("yt-panel-footer-view-model-wiz__button-row",(n["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===C()},n))},_.p("div",{class:_.qd("yt-panel-footer-view-model-wiz__button-row--left-button",(d["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===C()},d["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!I().secondaryButton||0===C()},d["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===C()},d))},_.p(_.X1,{data:function(){return I().secondaryButton}},{buttonViewModel:_.LF})),_.p("div",{class:_.qd("yt-panel-footer-view-model-wiz__primary-button",(z["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===C()||1===C()},z["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===C()},z))},_.p(_.X1,{data:function(){return I().primaryButton}},{buttonViewModel:function(g){return _.p(_.LF,{data:g.data,
buttonOverrides:h,onClick:V})}})))}}))},"hf");
_.Hf.idomCompat=!0;_.Gg1=_.Hc(function(r){r=_.jS(r,{disablePadding:!1});var f=r.data,I=r.disablePadding;r=_.M46(function(){return f().formId});
var C=r.onSubmit,Y=r.isValid,V=r.isSubmitting;return _.p("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.p(_.X1,{data:function(){return f().panelFooter}},{panelFooterViewModel:function(S){return _.p(_.Hf,{data:S.data,
onClickPrimaryButton:function(){C()},
disablePrimaryButton:function(){return!Y()||V()},
disablePadding:I})}}))},"jf");_.Kv(_.Gg1,"yt-form-footer-view-model",{props:{data:_.jv,disablePadding:_.jv}});_.Kv(_.Hc(function(r){return _.p("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.p("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.p(_.M,{cond:function(){var f;return(f=r.data())==null?void 0:f.image},
then:function(f){return _.p(_.J3,{data:f,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.p("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.p(_.wW,{text:function(){var f;
return(f=r.data())==null?void 0:f.title}})),_.p("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.p(_.wW,{text:function(){var f;
return(f=r.data())==null?void 0:f.subtitle}})),_.p("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.p(_.X1,{data:function(){var f;
return(f=r.data())==null?void 0:f.viewTipsButton}},{buttonViewModel:_.LF}))))},"kf"),"yt-contributor-zero-state-view-model",{props:{data:_.jv}});var kg6=_.Hc(function(r){var f=_.VS(gai,_.JG(function(){var I;return(I=r.data())==null?void 0:I.noteFeedEntityKey},""));
return _.p("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.p("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.p("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.p(_.M,{cond:function(){var I,C;return(I=r.data())==null?void 0:(C=I.noteData)==null?void 0:C.isPinned},
then:function(){return _.p(_.V2,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.p(_.wW,{text:function(){var I,C;
return(I=r.data())==null?void 0:(C=I.noteData)==null?void 0:C.headerText}}),_.p("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.p(_.wW,{text:function(){var I,C;
return(I=r.data())==null?void 0:(C=I.noteData)==null?void 0:C.delimiter}})),_.p(_.wW,{text:function(){var I,C;
return(I=f())==null?void 0:(C=I.contributorNote)==null?void 0:C.publishedTimeText}})),_.p(_.X1,{data:function(){var I,C,Y,V=(I=r.data())==null?void 0:I.noteData;
I=(C=f())==null?void 0:(Y=C.contributorNote)==null?void 0:Y.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:V.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:V.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:V.deleteDialogTitle}]},dialogMessages:[{runs:[{text:V.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:V.deleteActionText}]},command:{performCommentActionEndpoint:{action:I}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:V.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(I){return _.p(_.LF,{data:I.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.p("div",{class:"ytNoteViewModelNoteContent"},_.p(_.wW,{text:function(){var I,C;
return(I=f())==null?void 0:(C=I.contributorNote)==null?void 0:C.text}})))},"lf");
kg6.idomCompat=!0;_.Kv(kg6,"yt-note-view-model",{props:{data:_.jv}});var iL=_.Hc(function(r){var f=_.jS(r,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),I=f.label,C=f.text,Y=f.placeholder,V=f.hint;r=f.rows;var S=f.overflowStyle,h=f.outline,w=f.disabled,n=f.disableNewLines,d=f.characterLimit,z=f.validation,g=f.onInput,X=_.yy();f=_.E(_.YZ(function(){return C()}));
var P=f.next().value,W=f.next().value;f=_.E(_.ld(!1,void 0,"fXvinf"));var m=f.next().value,v=f.next().value,O=function(){v(!0)},k=function(){v(!1)};
_.$E(function(){var oR=X.value,vu=S(),wB=P();vu==="expand-vertically"&&wB&&aE7(oR);X.value.addEventListener("focusin",O);X.value.addEventListener("focusout",k)});
_.$L(function(){X.value.removeEventListener("focusin",O);X.value.removeEventListener("focusout",k)});
var Z=function(){var oR;return(oR=z())==null?void 0:oR.validate(P())},Cw=function(){return d()&&!Z()&&P().length>d().maxChars},rR=function(){return!!Z()||Cw()};
f=_.IC(function(oR){if(!oR.currentTarget)return!1;oR=oR.currentTarget;W(oR.value);S()==="expand-vertically"&&aE7(oR);g==null||g(oR.value);return!0});
var EP=_.IC(function(oR){n()&&oR.key==="Enter"&&oR.preventDefault();return!1}),Pu=_.IC(function(){X.value.focus()}),Wu=function(){return Y()||I()},cu={},OP={},iU={};
return _.p("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.p("div",{class:_.qd("ytStandardsTextareaShapeTextareaContainer",(cu.ytStandardsTextareaShapeTextareaContainerOutline=h,cu.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=w,cu.ytStandardsTextareaShapeTextareaContainerOutlineError=rR,cu)),"on:click":Pu},_.p("label",{class:_.qd("ytStandardsTextareaShapeLabel",(OP.ytStandardsTextareaShapeLabelFocused=m,OP.ytStandardsTextareaShapeLabelDisabled=w,OP.ytStandardsTextareaShapeLabelError=
function(){return rR()&&!w()},OP.ytStandardsTextareaShapeLabelHidden=function(){return!m()&&!P()&&!!Wu()},OP))},I),_.p("div",{class:_.qd("ytStandardsTextareaShapePlaceholder",(iU.ytStandardsTextareaShapePlaceholderVisible=function(){return!m()&&!P()},iU)),
"aria-hidden":"true"},Wu),_.p("textarea",{el:X,class:"ytStandardsTextareaShapeTextarea",rows:r,disabled:w,placeholder:Wu,"on:input":f,"on:keydown":EP},P)),_.p(_.M,{cond:function(){return V()&&!rR()},
then:function(){var oR={};return _.p("div",{class:_.qd("ytStandardsTextareaShapeHint",(oR.ytStandardsTextareaShapeHintDisabled=w,oR))},_.p("div",{class:"ytStandardsTextareaShapeHintHintMessage"},V))}}),_.p(_.M,{cond:Z,
then:function(){return _.p(Bt6,{disabled:w},_.p("div",{class:"ytStandardsTextareaShapeErrorMessage"},Z))}}),_.p(_.M,{cond:d,
then:function(oR){return _.p(_.M,{cond:Cw,then:function(){return _.p(Bt6,{disabled:w},_.p("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return oR().errorMessage}),_.p("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return P().length+"/"+oR().maxChars}))}})}}))},"mf");
iL.idomCompat={callbacks:{onInput:!0}};var Bt6=_.Hc(function(r){var f={};return _.p("div",{class:_.qd("ytStandardsTextareaShapeError",(f.ytStandardsTextareaShapeErrorDisabled=r.disabled,f)),role:"alert"},_.p(_.V2,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),r.children)},"nf");_.qQV=_.Hc(function(r){var f=r.data;return _.p("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.p(iL,{text:r.text,label:function(){var I;return(I=f().contentProperties)==null?void 0:I.labelText},
placeholder:function(){var I;return(I=f().contentProperties)==null?void 0:I.placeholderText},
hint:function(){var I;return(I=f().contentProperties)==null?void 0:I.hintText},
outline:function(){var I;return!((I=f().displayProperties)==null?0:I.hideBorder)},
overflowStyle:function(){var I;return((I=f().displayProperties)==null?0:I.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:r.disabled,disableNewLines:function(){var I;return(I=f().displayProperties)==null?void 0:I.disableNewLines},
onInput:r.onInput,characterLimit:r.characterLimit,validation:r.validation,rows:function(){var I;return(I=f().displayProperties)==null?void 0:I.rows}}))},"of");_.ulY=_.Hc(function(r){var f=r.data;return _.p("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.p(iL,{text:r.text,label:function(){var I;return(I=f().contentProperties)==null?void 0:I.labelText},
placeholder:function(){var I;return(I=f().contentProperties)==null?void 0:I.placeholderText},
hint:function(){var I;return(I=f().contentProperties)==null?void 0:I.hintText},
outline:function(){var I;return!((I=f().displayProperties)==null?0:I.hideBorder)},
overflowStyle:function(){var I;return((I=f().displayProperties)==null?0:I.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var I;return(I=f().displayProperties)==null?void 0:I.disableNewLines},
onInput:r.onInput,characterLimit:r.characterLimit,validation:r.validation,rows:function(){var I;return(I=f().displayProperties)==null?void 0:I.rows}}))},"pf");var DC3=_.Hc(function(r){var f=_.E(_.YZ(function(){var Wu,cu;return((Wu=r.data().structuredContextNoteFormSchema)==null?0:(cu=Wu.initialValues)==null?0:cu.noteBody)?r.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),I=f.next().value,C=f.next().value;
f=_.E(_.YZ(function(){r.data();return!1}));
var Y=f.next().value,V=f.next().value;f=_.E(_.YZ(function(){r.data();return!1}));
var S=f.next().value,h=f.next().value;f=_.E(_.YZ(function(){var Wu,cu;return((Wu=r.data().structuredContextNoteFormSchema)==null?0:(cu=Wu.initialValues)==null?0:cu.timestamp)?r.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var w=f.next().value,n=f.next().value;f=_.E(_.YZ(function(){r.data();return!1}));
var d=f.next().value,z=f.next().value;f=_.E(_.YZ(function(){var Wu,cu;return((Wu=r.data().structuredContextNoteFormSchema)==null?0:(cu=Wu.initialValues)==null?0:cu.sources)?[r.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var g=f.next().value,X=f.next().value;f=_.E(_.YZ(function(){r.data();return!1}));
var P=f.next().value,W=f.next().value;f=_.E(_.YZ(function(){return!1}));
var m=f.next().value,v=f.next().value;_.$E(function(){var Wu;_.ziY((Wu=r.data().structuredContextNoteFormSchema)==null?void 0:Wu.id,{isSubmitting:m,onSubmit:function(){v(!0);var cu=W9B(I(),w(),g(),r.data()),OP=_.a().resolve(_.Gg);cu&&OP&&OP.resolveCommand(cu,{commandController:{onSuccess:function(){v(!1)}}})},
isValid:function(){return Y()&&!S()&&!d()&&!P()}})});
var O=function(Wu){if(Wu!==void 0&&(C(Wu),!Y()&&Wu.length>0&&V(!0),Y())){var cu=$u3(r.data());if(cu){var OP=cu.minLength;cu=cu.maxLength;OP&&Wu.length<OP?h(!0):cu&&Wu.length>cu?h(!0):h(!1)}}},k=function(Wu){if(Wu!==void 0){n(Wu);
if(Wu.length>0){var cu,OP,iU,oR,vu=PEq((cu=r.data())==null?void 0:(OP=cu.structuredContextNoteFormSchema)==null?void 0:(iU=OP.fieldSchemas)==null?void 0:(oR=iU.timestamp)==null?void 0:oR.validationSchema);if(vu&&(cu=vu.regex)&&!(new RegExp(cu)).test(Wu)){z(!0);return}}z(!1)}},Z=function(Wu){if(Wu!==void 0){var cu=Wu.split(/[ \n]/).map(function(OP){return OP.trim()});
X(cu);if(Wu.length>0)for(Wu=_.E(cu),cu=Wu.next();!cu.done;cu=Wu.next())if(!cyB(cu.value)){W(!0);return}W(!1)}},Cw=function(){return{validate:function(Wu){if(Y()){var cu=$u3(r.data());
if(cu){var OP=cu.minLength;cu=cu.translations;if(OP&&Wu.length<OP)return cu==null?void 0:cu.minLengthErrorMessage}}}}},rR=function(){var Wu=$u3(r.data()),cu=Wu==null?void 0:Wu.maxLength,OP;
Wu=Wu==null?void 0:(OP=Wu.translations)==null?void 0:OP.maxLengthErrorMessage;if(cu&&Wu)return{maxChars:cu,errorMessage:Wu}},EP=function(){return{validate:function(Wu){if(Wu){var cu,OP,iU,oR,vu=PEq((cu=r.data())==null?void 0:(OP=cu.structuredContextNoteFormSchema)==null?void 0:(iU=OP.fieldSchemas)==null?void 0:(oR=iU.timestamp)==null?void 0:oR.validationSchema);
if(vu&&(cu=vu.regex,vu=vu.translations,cu&&!(new RegExp(cu)).test(Wu)))return vu==null?void 0:vu.regexErrorMessage}}}},Pu=function(){return{validate:function(Wu){if(Wu){var cu,OP,iU,oR,vu=TL7((cu=r.data())==null?void 0:(OP=cu.structuredContextNoteFormSchema)==null?void 0:(iU=OP.fieldSchemas)==null?void 0:(oR=iU.sources)==null?void 0:oR.validationSchema);
if(vu&&(cu=vu.translations,cu==null?0:cu.selectedErrorMessage))for(Wu=Wu.split(/[ \n]/).map(function(wB){return wB.trim()}),Wu=_.E(Wu),OP=Wu.next();!OP.done;OP=Wu.next())if(!cyB(OP.value))return Wu=void 0,(Wu=cu)==null?void 0:Wu.selectedErrorMessage}}}};
return _.p("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.p("div",{class:"ytStructuredContextNoteViewModelTextField"},_.p(_.X1,{data:function(){var Wu;return(Wu=r.data())==null?void 0:Wu.noteContents}},{textFormFieldViewModel:function(Wu){return _.p(_.ulY,{data:Wu.data,
onInput:O,validation:Cw,characterLimit:rR})},
textFieldViewModel:function(Wu){return _.p(_.qQV,{data:Wu.data,onInput:O,validation:Cw,characterLimit:rR})}})),_.p("div",{class:"ytStructuredContextNoteViewModelTextField"},_.p(_.X1,{data:function(){var Wu;
return(Wu=r.data())==null?void 0:Wu.noteTimestamp}},{textFormFieldViewModel:function(Wu){return _.p(_.ulY,{data:Wu.data,
onInput:k,validation:EP})},
textFieldViewModel:function(Wu){return _.p(_.qQV,{data:Wu.data,onInput:k,validation:EP})}})),_.p("div",{class:"ytStructuredContextNoteViewModelTextField"},_.p(_.X1,{data:function(){var Wu;
return(Wu=r.data())==null?void 0:Wu.noteSources}},{textFormFieldViewModel:function(Wu){return _.p(_.ulY,{data:Wu.data,
onInput:Z,validation:Pu})},
textFieldViewModel:function(Wu){return _.p(_.qQV,{data:Wu.data,onInput:Z,validation:Pu})}})))},"qf");
DC3.idomCompat=!0;_.Kv(DC3,"yt-structured-context-note-view-model",{props:{data:_.jv}});var rds=_.Hc(function(r){var f=_.E(_.YZ(function(){var V;if((V=r.controlled)==null?0:V.call(r))return[];var S;return(((S=r.data())==null?void 0:S.chips)||[]).map(function(h){h=_.F(h,_.j8);if(h==null?0:h.selected)return L92(h.chipValue)}).filter(function(h){return h!==void 0})})),I=f.next().value,C=f.next().value,Y=function(V){var S=L92(V.chipValue);
if(S!==void 0){var h;if((h=r.controlled)==null?0:h.call(r))return void r.controlled().onTap(S);V=I().includes(S)?[].concat(_.Na(I().filter(function(n){return n!==S}))):[].concat(_.Na(I()),[S]);
C(V);var w;if((w=r.uncontrolled)==null?0:w.call(r))r.uncontrolled().onUpdate(V)}};
return _.p("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.p(_.pz,{each:function(){return r.data().chips||[]}},function(V){return _.p("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.p(_.BV3,{data:function(){return _.F(V,_.j8)},
selected:function(){var S;if(S=_.F(V,_.j8)){var h=L92(S.chipValue);if(h!==void 0){var w;S=((w=r.controlled)==null?0:w.call(r))?r.controlled().selectedValues.includes(h):I().includes(h)}else S=void 0}else S=!1;return S},
callback:Y}))}))},"rf");var fyd=_.Hc(function(r){var f=r.data;var I=function(){var h;return((h=f())==null?void 0:h.flowStateKey)||""},C=_.VS(_.rM,I),Y=function(){var h;
return(h=_.F(C(),Fb6))==null?void 0:h.chips},V=function(h){if(h!==void 0){var w=Y()||[];
w=w.find(function(n){return n===h})?w.filter(function(n){return n!==h}):[].concat(_.Na(w),[h]);
w=Object.assign({},C(),{feedbackFormFlowState:Object.assign({},_.F(C(),Fb6),{chips:w})});_.eS(_.hv("flowStateEntity",I(),w))}},S=function(){var h;
return _.F((h=f())==null?void 0:h.inputBox,PdB)};
r=_.z1(function(h){var w=S();w=!(w==null?0:w.maxChars)||h.length<=w.maxChars;h=Object.assign({},C(),{feedbackFormFlowState:Object.assign({},_.F(C(),Fb6),{detail:h}),abuseReportFlowState:Object.assign({},_.F(C(),D9),{navigationEnabled:w})});_.eS(_.hv("flowStateEntity",I(),h))},150);
return _.p("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.p("div",{class:"ytFeedbackFormViewModelChips"},_.p(_.X1,{data:function(){var h;return(h=f())==null?void 0:h.chipSelection}},{chipSelectionFormFieldViewModel:function(h){return _.p(rds,{data:h.data,
controlled:function(){return{selectedValues:Y()||[],onTap:V}}})}})),_.p("div",{class:"ytFeedbackFormViewModelInputBox"},_.p(iL,{text:function(){var h;
return(h=_.F(C(),Fb6))==null?void 0:h.detail},
placeholder:function(){var h;return((h=S())==null?void 0:h.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var h=S();if(h&&h.maxChars)return{maxChars:h.maxChars,errorMessage:h.maxCharsExceededErrorMessage||""}},
onInput:r})),_.p("div",{class:"ytFeedbackFormViewModelFooterText"},_.p(_.wW,{text:function(){return f().footerText}})))},"sf");
fyd.idomCompat=!0;_.Kv(fyd,"yt-feedback-form-view-model",{props:{data:_.jv}});var Iy7=_.Hc(function(r){var f=r.data;var I=function(){return f().flowStateKey||""},C=_.VS(coB,I),Y=function(){return _.F(C(),D9)},V=function(){if(_.N("enable_gff_accessibility_fix")){var S=!0,h;
if((h=Y())==null?0:h.navigationEnabled){var w;_.F2((w=Y())==null?void 0:w.navigationCommand);S=!1}h=Object.assign({},C(),{abuseReportFlowState:Object.assign({},Y(),{isReportFormDirty:S})});_.eS(_.hv("flowStateEntity",I(),h))}else _.F2((S=Y())==null?void 0:S.navigationCommand)};
return _.p("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.p("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.p(_.X1,{data:function(){return f().cancelButton}},{buttonViewModel:function(S){return _.p(_.LF,{data:S.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:V})}}),_.p(_.X1,{data:function(){var S;
if(f().navButton){var h=Object;var w=h.assign,n=_.F(f().navButton,_.NI),d=((S=Y())==null?0:S.navigationEnabled)||_.N("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",z,g;S=_.F((z=Y())==null?void 0:z.navigationCommand,_.gF);z=(g=_.F(S,_.HR))==null?void 0:g.url;h={buttonViewModel:w.call(h,{},n,{state:d,iconName:z?"OPEN_IN_NEW":""})}}else h=void 0;return h}},{buttonViewModel:function(S){return _.p(_.LF,{data:S.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:V})}})))},"tf");
Iy7.idomCompat=!0;_.Kv(Iy7,"yt-report-form-bottom-bar-view-model",{props:{data:_.jv}});var Chp=_.Hc(function(r){var f=r.nextStep;return _.p("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.p("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.p(_.V2,{icon:function(){return f().iconName||""}})),_.p("div",null,_.p(_.wW,{text:function(){return f().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"uf"),YH6=_.Hc(function(r){var f=r.data;
var I,C=(I=_.a().resolve(_.ZY(_.cI)))==null?void 0:I(),Y=_.VS(_.rM,function(){return f().flowStateKey||""});
return _.p("yt-report-form-confirmation-page-view-model",{class:function(){var V;return((V=_.F(Y(),D9))==null?void 0:V.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.p("div",{class:function(){var V;
return((V=_.F(Y(),D9))==null?void 0:V.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.p(_.J3,{data:function(){return C&&f().imageDark?f().imageDark:f().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.p("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.p("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return f().confirmationHeader}),_.p("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.p(_.wW,{text:function(){return f().confirmationText}})),_.p("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.p(_.wW,{text:function(){return f().lawEnforcementText}})),
_.p("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return f().whatToExpectHeader}),_.p(_.M,{cond:function(){return f().nextSteps},
then:function(V){return _.p("div",null,_.p(_.pz,{each:V},function(S){return _.p(Chp,{nextStep:S})}))}}),_.p(_.M,{cond:function(){return f().legalReportText},
then:function(V){return _.p("div",null,_.p(_.wW,{text:V,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"vf");
YH6.idomCompat=!0;_.Kv(YH6,"yt-report-form-confirmation-page-view-model",{props:{data:_.jv}});var lyi=_.Hc(function(r){var f=r.data;var I=function(){var V;return((V=_.F(f().inputBox,PdB))==null?void 0:V.maxChars)||500},C=function(){return f().flowStateKey||""},Y=_.VS(_.rM,C);
r=_.z1(function(V){V=Object.assign({},Y(),{flowFormState:{isValid:V.length<=I()},abuseReportFlowState:{userComments:V,navigationEnabled:!(V.length>I()),isReportFormDirty:!0}});_.Lx().dispatch(_.Po("flowStateEntity",C(),V))},150);
_.$E(function(){var V=Object.assign({},Y(),{flowFormState:{isValid:!0}});_.Lx().dispatch(_.Po("flowStateEntity",C(),V))});
return _.p("yt-report-form-details-page-view-model",{class:function(){var V;return((V=_.F(Y(),D9))==null?void 0:V.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.p("h1",{class:function(){var V;
return((V=_.F(Y(),D9))==null?void 0:V.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return f().detailsPageHeader}),_.p("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.p(_.wW,{text:function(){return f().bodyText}})),_.p("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.p(iL,{label:function(){var V;
return((V=_.F(f().inputBox,PdB))==null?void 0:V.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var V;return{errorMessage:((V=_.F(f().inputBox,PdB))==null?void 0:V.maxCharsExceededErrorMessage)||"",maxChars:I()}},
onInput:r})))},"wf");
lyi.idomCompat=!0;_.Kv(lyi,"yt-report-form-details-page-view-model",{props:{data:_.jv}});var Vhd=_.Hc(function(r){var f=r.data;var I=r.selectedKey;var C=r.onSelected;var Y=r.groupName;var V=function(){return f().text},S=function(){return f().attributedText},h=function(){return f().subtext},w=function(){return f().attributedSubtext},n=_.p("div",{class:"ytRadioButtonItemViewModelLabel"},_.p(_.M,{cond:V,
then:function(){return _.p("div",null,V)}}),_.p(_.M,{cond:S,
then:function(){return _.p(_.wW,{text:S})}}),_.p(_.M,{cond:h,
then:function(){return _.p("div",{class:"ytRadioButtonItemViewModelSubText"},h)}}),_.p(_.M,{cond:w,
then:function(){return _.p("div",{class:"ytRadioButtonItemViewModelSubText"},_.p(_.wW,{text:w}))}})),d=function(){if(S()){var g;
return(g=S())==null?void 0:g.content}return V()},z=function(){if(w()){var g;
return(g=w())==null?void 0:g.content}return h()};
r={};return _.p("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.p(_.zE,{name:Y,checked:function(){return!(I==null||!I()||f().key!==(I==null?void 0:I()))},
onChange:function(g){C==null||C(g.target,f(),Y==null?void 0:Y())},
labelRenderable:function(){return n},
ariaLabel:function(){return z()?d()+", "+z():d()},
className:_.qd((r.ytRadioButtonItemViewModelSubTitle=function(){return!!f().subtext},r))}))},"xf");_.EBY=_.Hc(function(r){var f=r.data;var I=r.onSelected;var C=r.selectedKey;var Y=r.groupName;return _.p("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.p("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.p(_.X1,{data:function(){return f().radioButtons}},{radioButtonItemViewModel:function(V){return _.p(Vhd,{data:V.data,
onSelected:I,selectedKey:C,groupName:function(){return(Y==null?void 0:Y())||f().key}})}})))},"yf");var SH6=_.Hc(function(r){var f=r.data;var I=_.Ue(),C=function(){return f().flowStateKey||""},Y=_.VS(_.rM,C),V=function(){return _.F(Y(),D9)};
_.az(function(){var S,h;if(((S=V())==null?0:S.isReportFormDirty)&&((h=V())==null||!h.navigationEnabled)&&_.N("enable_gff_accessibility_fix")){var w;if(((w=V())==null?void 0:w.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var n;(n=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||n.scrollIntoView()}else{var d;(d=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||d.scrollIntoView()}}});
return _.p("yt-report-form-reason-select-page-view-model",{class:function(){var S;return((S=V())==null?void 0:S.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.p("h1",{class:function(){var S;
return((S=V())==null?void 0:S.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return f().pageHeader}),_.p("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.p(_.wW,{text:function(){return f().bodyText}})),_.p("div",{class:function(){var S;
return((S=V())==null?void 0:S.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.p(_.M,{cond:function(){var S,h;
return((S=V())==null?void 0:S.isReportFormDirty)&&!((h=V())==null?0:h.navigationEnabled)&&_.N("enable_gff_accessibility_fix")},
then:function(){return _.p("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:I},_.p(_.V2,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.p("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return f().emptyReasonSelectErrorMessage}))}}),_.p(_.EBY,{data:function(){return _.F(f().radioButtonGroup,_.JRp)},
onSelected:function(S,h){S=Object.assign({},Y(),{abuseReportFlowState:Object.assign({},V(),{reasonKey:h.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:h.command})});_.eS(_.hv("flowStateEntity",C(),S))},
selectedKey:function(){var S;return(S=V())==null?void 0:S.reasonKey},
groupName:"report-form-reason-select-page"})))},"zf");
SH6.idomCompat=!0;_.Kv(SH6,"yt-report-form-reason-select-page-view-model",{props:{data:_.jv}});var xUV=_.Hc(function(r){var f=r.data;var I,C=(I=_.a().resolve(_.ZY(_.cI)))==null?void 0:I();return _.p("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.p("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.p(_.J3,{data:function(){return C&&f().imageDark?f().imageDark:f().image},
alt:""})),_.p("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.p("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return f().header}),_.p(_.wW,{text:function(){return f().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Af");
xUV.idomCompat=!0;_.Kv(xUV,"yt-report-form-sign-in-page-view-model",{props:{data:_.jv}});_.Kv(_.Hc(function(r){var f=r.data;var I=function(){var n;return(n=f().textInputPlaceholder)==null?void 0:n.content},C=function(n){n=n.target.value.trim();
var d=f().onUpdateText;d&&_.F2(d,{form:{userQuery:n}});f().userQuery=n},Y=_.z1(function(n){C(n)},150),V=_.IC(function(n){Y(n);
return!1}),S=_.IC(function(n){n.key==="Enter"&&(C(n),(n=f().onNextStepCommand)&&_.F2(n,{}));
return!1}),h=_.yy(),w=function(){if(_.N("web_hide_explore_hub_until_user_navigates_back_to_home")){var n,d,z;
(z=(d=(n=h.value)==null?void 0:n.closest("ytd-flow-step-renderer"))==null?void 0:d.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||z.click()}};
return _.p("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:h},_.p("div",{class:"ytwTalkToRecsTopCornerButton"},_.p(_.X1,{data:function(){return f().topCornerButton}},{buttonViewModel:_.LF})),_.p("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.p("div",{class:"ytwTalkToRecsTitle"},_.p(_.wW,{text:function(){return f().title}})),_.p("div",{class:"ytwTalkToRecsSubtitle"},_.p(_.wW,{text:function(){return f().subtitle}})),_.p("div",{class:"ytwTalkToRecsChipsShelf"},_.p(_.X1,{data:function(){return f().answersShelf}},
{chipsShelfViewModel:function(n){return _.p(_.l7B,{data:n.data,
callback:w})}})),_.p(_.M,{cond:function(){return f().showOpenTextInput&&!_.N("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.p("div",{class:"ytwTalkToRecsUserInputBox"},_.p("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:I,value:function(){return f().userQuery},
"on:input":V,"on:keyup":S}))}})))},"Bf"),"yt-talk-to-recs-view-model",{props:{data:_.jv}});var muY={sources:[{clientResource:{imageName:"CHECK"}}]};_.hG7=_.Hc(function(r){var f=_.yy();r=_.jS(r,{error:void 0});var I=r.data,C=r.error,Y=r.onSelected;r=_.E(_.YZ(function(){return jZV(I())}));
var V=r.next().value,S=r.next().value;vai(I,function(z){S(z);var g,X,P=Jy6((g=I().options)==null?void 0:(X=g[z])==null?void 0:X.value,I().type);Y==null||Y(P);f.value.focus()});
r=_.IC(function(){if(!I().disabled){var z=I(),g=V(),X=f.value;z.options&&(z=eiq(z.options,g,z.label),_.a().resolve(_.z7).openSheet({viewModel:z},X))}});
var h=_.RZ$(),w=function(){return!!C()},n=function(){return!!I().disabled},d={};
d=_.qd("ytDropdownViewModelDropdownContainer",(d.ytDropdownViewModelDropdownContainerErrorBorder=w,d.ytDropdownViewModelDropdownContainerDisabled=n,d));return _.p("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.p("div",{class:d,"on:click":r,el:f,role:"combobox",tabindex:0,"on:keydown":h,"aria-invalid":w,"aria-disabled":n,"aria-describedby":function(){return w()?"dropdown-view-model-error":void 0}},_.p("div",{class:"ytDropdownViewModelText"},HXi(I,w,V),iX6(I,V)),_.p("div",{class:"ytDropdownViewModelChevronDown"},
_.p(_.V2,{icon:"CHEVRON_DOWN"}))),Rid(I,C))},"Cf");_.Kv(_.Hc(function(r){var f=r.data;var I=function(Y){var V=yy2(f());V.videoMetadata||(V.videoMetadata={});V.videoMetadata.sponsorshipsMetadata||(V.videoMetadata.sponsorshipsMetadata={});V.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(Y)},C=function(Y){var V=yy2(f());
V.scheduledRedirectMetadata||(V.scheduledRedirectMetadata={});V.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(Y)};
return _.p("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.p("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.p("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.p(_.wW,{text:function(){return f().title}}),_.p(_.V2,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.p(_.wW,{text:function(){return f().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.p(_.X1,{data:function(){return f().tierChoices}},{dropdownViewModel:function(Y){return _.p("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.p(_.hG7,{data:Y.data,
onSelected:I}))}}),_.p(_.X1,{data:function(){return f().startTimeChoices}},{dropdownViewModel:function(Y){return _.p("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.p(_.hG7,{data:Y.data,
onSelected:C}))}}),_.p(_.wW,{text:function(){return f().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.p("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.p(_.X1,{data:function(){return f().scheduleButton}},{panelFooterViewModel:_.Hf})))},"Df"),"ytfz-schedule-fanzone-view-model",{props:{data:_.jv}});_.Kv(_.Hc(function(r){var f=r.data;r=r.className===void 0?"":r.className;var I=_.VS(coB,function(){return f().flowStateEntityKey||""}),C={};
C=_.qd("ytFlowBottomBarViewModelFlowBottomBarButtons",(C.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return f().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||f().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},C));
var Y={},V=_.qd("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",C,(Y.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return f().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Y.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return f().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},Y));
Y={};var S=_.qd("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",C,(Y.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return f().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Y.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return f().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},Y));
C={};C=_.qd("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(C.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return f().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},C.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return f().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},C.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return f().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
C));
return _.p("yt-flow-bottom-bar-view-model",{class:_.qd("ytFlowBottomBarViewModelHost",r)},_.p(_.M,{cond:function(){var h;return(h=f())==null?void 0:h.textSection},
then:function(h){return _.p("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.p(_.wW,{text:h}))}}),_.p("div",{class:C},_.p(_.X1,{data:function(){return f().secondaryButton}},{buttonViewModel:function(h){return _.p(_.LF,{data:h.data,
className:S})}}),_.p(_.X1,{data:function(){return f().primaryButton}},{buttonViewModel:function(h){return _.p(_.LF,{data:h.data,
className:V,buttonOverrides:function(){var w;return{disabled:!((w=I())==null||!w.primaryButtonDisabled)}}})}})))},"Ef"),"yt-flow-bottom-bar-view-model",{props:{data:_.jv,
className:_.vI}});var wdp="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),R8=function(){var r=_.y.apply(this,arguments)||this;r.enableScrollingFix=!0;r.bottomBar=!1;r.hideBottomBar=!1;r.fitContent=!1;return r};
_.t(R8,_.y);_.l=R8.prototype;_.l.ready=function(){_.N("enable_pdp_icon_prefetch")&&_.$k6(_.a().resolve(_.Ig),0,wdp)};
_.l.focus=function(r){this.topBar?_.KW(this.topBar,r):this.paperDialog.focus(r)};
_.l.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16736_scroller&&(this.JSC$16736_scroller.dialogElement=this.paperDialog,this.JSC$16736_scroller.attached&&typeof this.JSC$16736_scroller.attached==="function"&&this.JSC$16736_scroller.attached())};
_.l.onDataChanged=function(){var r;this.fitContent=!((r=this.data)==null||!r.fitContent);var f;this.bottomBar=!((f=this.data)==null||!f.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.l.onProgressChanged=function(){var r,f,I=((f=(r=this.data)==null?void 0:r.progress)!=null?f:0)*100;this.progressElement.style.width=I+"%"};
_.l.isProgressHidden=function(){var r;return!((r=this.data)==null?0:r.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",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(r){return _.N("enable_wiz_next_lp2_msof")&&r&&!r.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.OC.Object.defineProperties(R8.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var r;return _.N("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.F((r=this.data)==null?void 0:r.content,Lb7)}}});
R8.prototype.onProgressChanged=R8.prototype.onProgressChanged;R8.prototype.onDataChanged=R8.prototype.onDataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],R8.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],R8.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],R8.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],R8.prototype,"enableScrollingFix",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],R8.prototype,"bottomBar",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],R8.prototype,"hideBottomBar",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],R8.prototype,"containsExploreHub",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],R8.prototype,"fitContent",void 0);_.A([_.uA("#progress"),_.B("design:type",HTMLElement)],R8.prototype,"progressElement",void 0);
_.A([_.uA("#scroller"),_.B("design:type",Object)],R8.prototype,"JSC$16736_scroller",void 0);_.A([_.uA("ytd-flow-top-bar-renderer"),_.B("design:type",HTMLElement)],R8.prototype,"topBar",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],R8.prototype,"onDataChanged",null);_.A([_.Bt("data.progress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],R8.prototype,"onProgressChanged",null);
R8=_.A([_.U({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],R8);
_.Q(R8,"ytd-flow-step-renderer",function(){if(uRs!==void 0)return uRs;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return uRs=r},{mode:1});var bf2=function(r){this.resolveCommand=r;this.steps={}},pd7=function(r,f){f=_.E(f||[]);
for(var I=f.next();!I.done;I=f.next()){I=I.value;var C=Object.values(I)[0],Y=void 0;if((Y=C)==null?0:Y.stepId)r.steps[C.stepId]=I}},zGB=function(r,f){var I,C,Y,V,S;
return _.x(function(h){if((I=r.state)==null||!I.currentStepId)return h.return(void 0);C=nBY(r);if(!C)return h.return(dUs(r));if(Y=_.F(C,_.Wb1)){var w;((w=Y.screenLoggingData)==null?0:w.screenVeType)&&_.f3(_.IB(),Y.screenLoggingData.screenVeType);((V=Y)==null?0:V.onStepStartCommand)&&r.resolveCommand((S=Y)==null?void 0:S.onStepStartCommand,{})}if(Y&&f){w=Y;var n,d,z,g;((n=f.flowLoggingData)==null?0:n.eventNamespace)&&((d=w.flowEventData)==null?0:d.eventType)&&((z=w.flowEventData)==null?0:z.eventMetadata)&&
((g=f.flowLoggingData)==null?0:g.flowType)&&(n=_.Dx(f.flowLoggingData.eventNamespace,w.flowEventData.eventType,w.flowEventData.eventMetadata),_.r_(_.fJ(),n,f.flowLoggingData.flowType));f.steps&&!f.steps.includes(C)&&f.steps.push(C)}return h.return(C)})};
bf2.prototype.back=function(){var r;(r=this.state)!=null&&r.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
bf2.prototype.handleUpdateFlowCommand=function(r){r.steps&&pd7(this,r.steps);r.entityUpdateCommand&&this.resolveCommand(r.entityUpdateCommand,{});r.flowContinuationCommand&&(r=r.flowContinuationCommand)&&(this.getFlowContinuationCommand=r);this.awaitFlowContinuation&&(this.awaitFlowContinuation(nBY(this)),this.awaitFlowContinuation=void 0)};
bf2.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var dUs=function(r){return _.x(function(f){return r.getFlowContinuationCommand?f.return(new Promise(function(I){r.awaitFlowContinuation=I;r.getFlowContinuationCommand&&r.resolveCommand(r.getFlowContinuationCommand,{flow_state:r.state})})):f.return(Promise.resolve(void 0))})},nBY=function(r){var f;
if((f=r.state)!=null&&f.currentStepId)return r.steps[r.state.currentStepId]};var vf=function(){var r=_.y.apply(this,arguments)||this;r.flowState=new bf2(function(f,I){I=I===void 0?{}:I;_.qv.instance.resolveCommand(f,{form:{form:I,element:r.hostElement}})});
r.initialState=!0;r.isLoading=!1;r.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return r};
_.t(vf,_.y);_.l=vf.prototype;_.l.onPopupClosed=function(r){r&&this.hostElement!==r.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(r){var f=this;_.Fi(function(){var I=_.e(f.hostElement).querySelector("ytd-flow-step-renderer");I.topBar?I.focus(r):f.topBar&&_.KW(f.topBar,r)},1)};
_.l.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.l.computeTopBarHidden=function(r){var f;return!((f=_.F(r,_.Wb1))==null||!f.topBarOverride)};
_.l.dataChanged=function(){var r=this,f,I;return _.x(function(C){if(C.nextAddress==1){((f=r.data)==null?0:f.steps)&&pd7(r.flowState,r.data.steps);if((I=r.data)==null?0:I.flowContinuationCommand){var Y=r.flowState,V=r.data.flowContinuationCommand;V&&(Y.getFlowContinuationCommand=V)}return _.b(C,zGB(r.flowState,r.data),2)}r.currentFlowStep=C.yieldResult;_.wO(C)})};
_.l.flowChanged=function(){var r=this,f;return _.x(function(I){if(I.nextAddress==1){if(!r.flow)return I.return();r.flowState.state=r.flow;r.isLoading=!0;return _.b(I,zGB(r.flowState,r.data),2)}f=I.yieldResult;if(!f||r.flow.isLoading)return I.return();r.currentFlowStep=f;r.initialState=!1;r.isLoading=!1;r.autofocusAndRefit();_.wO(I)})};
_.l.autofocusAndRefit=function(){var r=this,f=_.a().resolve(_.ZY(_.nF)),I=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),C=document.querySelector("yt-report-form-confirmation-page-view-model"),Y=document.querySelector("yt-report-form-details-page-view-model"),V=document.querySelector("yt-report-form-reason-select-page-view-model"),S=document.querySelector("yt-contributor-zero-state-view-model"),
h=document.querySelector("yt-structured-context-note-view-model"),w=document.querySelector("yt-note-view-model");(!I&&f&&f.isKeyBoardInUse()||C||!I&&Y||!I&&V||S||h||w)&&_.y9(this.hostElement);_.UC(this,function(){_.kA(r.hostElement,"yt-refit")})};
_.l.handleUpdateFlowCommand=function(r){this.data&&(r=_.F(r,cR6),r.targetId===this.data.targetId&&(r.flowContinuationCommand&&(this.data.flowContinuationCommand=r.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(r),this.autofocusAndRefit()))};
_.l.handleFlowNextStepCommand=function(r){this.data&&this.flow&&this.flow.key&&(r=_.F(r,tbB),r.targetId===this.data.targetId&&(r=r.stepId||"",this.ytdReduxBehavior.dispatch(_.Po("flowStateEntity",this.flow.key,{currentStepId:r,stepIdStack:(this.flow.stepIdStack||[]).concat(r)}))))};
_.l.handleFlowPrevStepCommand=function(r){if(this.data&&this.flow&&this.flow.key&&(r=_.F(r,TI3),r.targetId===this.data.targetId)){var f=[].concat(_.Na(this.flow.stepIdStack||[]));f.length>1?(f.pop(),this.ytdReduxBehavior.dispatch(_.Po("flowStateEntity",this.flow.key,{currentStepId:f[f.length-1],stepIdStack:f}))):r.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(r.onFirstStepCommand)}};
_.l.handleYpcCancelRecurrenceCommand=function(r){if(this.data&&this.flow&&this.flow.key&&(r=_.F(r,jzB),r.targetId===this.data.targetId&&r.endpointCommand)){var f=_.F(this.flow,Hyd);f&&_.F(r.endpointCommand,_.Mv3)&&(_.F(r.endpointCommand,_.Mv3).feedbackData=f.surveyFeedback);this.ytComponentBehavior.resolveCommand(r.endpointCommand)}};
_.l.handlePartialUpdateFlowStateEntity=function(r){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.Po("flowStateEntity",this.flow.key,r,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
vf.prototype.flowChanged=vf.prototype.flowChanged;vf.prototype.dataChanged=vf.prototype.dataChanged;vf.prototype.onPopupClosed=vf.prototype.onPopupClosed;_.A([_.J(_.PH),_.B("design:type",Object)],vf.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],vf.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],vf.prototype,"ytComponentBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],vf.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],vf.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],vf.prototype,"initialState",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],vf.prototype,"isLoading",void 0);_.A([_.K(),_.B("design:type",Object)],vf.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Object)],vf.prototype,"currentFlowStep",void 0);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],vf.prototype,"onPopupClosed",null);_.A([_.K({selectorArgs:["data.flowStateEntityKey"],selector:coB}),_.B("design:type",Object)],vf.prototype,"flow",void 0);_.A([_.uA("ytd-flow-top-bar-renderer"),_.B("design:type",HTMLElement)],vf.prototype,"topBar",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],vf.prototype,"dataChanged",null);_.A([_.YN("flow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],vf.prototype,"flowChanged",null);vf=_.A([_.U({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],vf);
_.MhY=_.os()(vf,"ytd-flow-root-renderer",function(){if(qmV!==void 0)return qmV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return qmV=r},{mode:_.QQ("kevlar_poly_si_batch_j025")?1:2});var gBs;var q1=null;_.Kv(_.Hc(function(r){return _.p("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.p("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.p(_.wW,{text:function(){return r.data().text}}),_.p("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Ff"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.jv}});var ayB=_.Hc(function(r){var f=r.playerControlsProps;var I=r.isShortsPage;return _.p("yt-bigboard",null,_.p(_.M,{cond:function(){return f().isDragging},
then:function(){return _.p("div",{class:"ytBigboardStoryboardHost"},_.p(_.x36,{progressBarProps:f,isShortsPage:I}))}}))},"Gf");
ayB.idomCompat=!0;_.KO={ACCOUNT_LABEL:ub("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:ub("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:ub("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:ub("AD_BADGE_HINT"),AD_BADGE_TEXT:ub("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:ub("ALL_CHANNELS_LABEL"),AMBIENT_MODE:ub("AMBIENT_MODE"),AMBIENT_MODE_OFF:ub("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:ub("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:ub("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:ub("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:ub("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:ub("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:ub("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:ub("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:ub("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:ub("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:ub("AUTOPLAY_UP_NEXT_IN"),BACK:ub("BACK"),CANCEL:ub("CANCEL"),CHANNEL_SWITCHER_LABEL:ub("CHANNEL_SWITCHER_LABEL"),CLOSE:ub("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:ub("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:ub("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:ub("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:ub("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:ub("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:ub("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:ub("COMMENT_MODAL_CONTENT"),CONFIRM_OK:ub("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:ub("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:ub("COPIED_TO_CLIPBOARD"),COPY:ub("COPY"),COPY_DEBUG_INFO:ub("COPY_DEBUG_INFO"),COPY_EMBED_CODE:ub("COPY_EMBED_CODE"),COPY_LINK_LABEL:ub("COPY_LINK_LABEL"),
COPY_VIDEO_URL:ub("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:ub("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:ub("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:ub("DELETE_FROM_DOWNLOADS"),DIALOG:ub("DIALOG"),DONE:ub("DONE"),DOWNLOAD:ub("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:ub("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:ub("FLAG_CONFIRM"),FLAG_CONTENT:ub("FLAG_CONTENT"),FLAG_LABEL:ub("FLAG_LABEL"),FLAG_TITLE:ub("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:ub("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:ub("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:ub("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:ub("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:ub("HIDE_SEARCH_FILTERS_LABEL"),HOME:ub("HOME","Home"),INVALID_RESPONSE_RECEIVED:ub("INVALID_RESPONSE_RECEIVED"),LIBRARY:ub("LIBRARY","Library"),LISTENING:ub("LISTENING"),LOADING:ub("LOADING"),LONG_PRESS_MIC_TO_SPEAK:ub("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:ub("LOOP"),MENU_DESKTOP:ub("MENU_DESKTOP"),MENU_EXIT:ub("MENU_EXIT"),
MENU_FEEDBACK:ub("MENU_FEEDBACK"),MENU_HELP:ub("MENU_HELP"),MENU_IMPRESSUM:ub("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:ub("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:ub("MENU_SETTINGS"),MENU_SIGN_IN:ub("MENU_SIGN_IN"),MENU_TITLE:ub("MENU_TITLE"),MENU_YOUR_DATA:ub("MENU_YOUR_DATA"),MORE_INFO:ub("MORE_INFO"),MORE_OPTIONS:ub("MORE_OPTIONS"),MUTE_VOLUME:ub("MUTE_VOLUME"),NEW_PLAYLIST:ub("NEW_PLAYLIST"),NEXT_VIDEO:ub("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:ub("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:ub("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:ub("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:ub("NOT_FOUND_TITLE"),NO_DOWNLOADS:ub("NO_DOWNLOADS"),NO_MIC_INPUT:ub("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:ub("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:ub("OOPS_MESSAGE"),OPEN_APP:ub("OPEN_APP"),OPEN_YOUTUBE:ub("OPEN_YOUTUBE"),PAUSE:ub("PAUSE"),PLAY:ub("PLAY"),PLAYER_CAPTION:ub("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:ub("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:ub("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:ub("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:ub("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:ub("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:ub("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:ub("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:ub("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:ub("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:ub("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:ub("PLAYER_MINIMIZE"),PLAYER_NEXT:ub("PLAYER_NEXT"),PLAYER_PAUSE:ub("PLAYER_PAUSE"),PLAYER_PLAY:ub("PLAYER_PLAY"),
PLAYER_PREVIOUS:ub("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:ub("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:ub("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:ub("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:ub("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:ub("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:ub("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:ub("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:ub("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:ub("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:ub("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:ub("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:ub("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:ub("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:ub("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:ub("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:ub("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:ub("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:ub("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:ub("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:ub("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:ub("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:ub("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:ub("PLAY_ALL"),PLEASE_FIX_ERRORS:ub("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:ub("PREVIOUS_VIDEO"),PRIVACY_POLICY:ub("PRIVACY_POLICY"),RELOAD:ub("RELOAD"),REQUIRED_LABEL:ub("REQUIRED_LABEL"),SAVE_PLAYLIST:ub("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:ub("SCRUB_SLIDE_USER_EDU"),SEARCH:ub("SEARCH","Search"),SEARCH_APPEND_LABEL:ub("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:ub("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:ub("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:ub("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:ub("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:ub("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:ub("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:ub("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:ub("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:ub("SEARCH_PPP_PLACEHOLDER_TEXT"),
SEEK_SLIDER:ub("SEEK_SLIDER"),SETTINGS_LABEL:ub("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:ub("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:ub("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:ub("SHOW_LESS"),SHOW_MORE:ub("SHOW_MORE"),SHOW_PLAYER_CONTROLS:ub("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:ub("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:ub("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:ub("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:ub("SIGN_IN_ON_WEB"),STABLE_VOLUME:ub("STABLE_VOLUME"),
STABLE_VOLUME_OFF:ub("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:ub("STABLE_VOLUME_ON"),STATS_FOR_NERDS:ub("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:ub("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:ub("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:ub("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:ub("SUGGESTION_THUMBNAIL_LABEL"),TERMS_OF_SERVICE:ub("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:ub("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:ub("TIMESTAMP_SECONDS"),TOGGLE_OFF:ub("TOGGLE_OFF"),
TOGGLE_ON:ub("TOGGLE_ON"),TRENDING:ub("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:ub("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:ub("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:ub("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:ub("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:ub("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),TURN_OFF_AUTOPLAY_DIALOG_TITLE:ub("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:ub("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:ub("VIDEO_LINK_LABEL")};var Xdi=_.Hc(function(r){var f=r.playerApi;r=_.yy(function(Y){Ax(Y,36843)});
var I=ub("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),C=_.IC(function(){Z9(36843);f&&f().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.p("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.p("button",{el:r,class:"ytPlayerControlsJumpForwardButtonButton",title:I,"aria-label":I,"on:click":C},_.p("span",null,_.p(_.V2,{icon:"FAST_FORWARD"}))))},"Hf");var Nl3=_.Hc(function(r){var f=r.appApi;r=_.yy(function(Y){Ax(Y,62946)});
var I=ub("OPEN_IN_MINIPLAYER"),C=_.IC(function(){Z9(62946);var Y,V;(V=(Y=f()).openInMiniplayer)==null||V.call(Y);return!1});
return _.p("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.p("button",{el:r,class:"ytMiniplayerButtonButton",title:I,"aria-label":I,"on:click":C},_.p(_.V2,{icon:"PICTURE_IN_PICTURE",active:!1})))},"If");var $U1=_.Hc(function(r){var f=r.playerApi;r=_.yy(function(S){Ax(S,142812)});
var I=_.E(_.ld(!1,void 0,"I3VCyb")),C=I.next().value,Y=I.next().value;I=function(){return ub("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(C()?1:2)})};
var V=_.IC(function(){Z9(142812);if(f){var S=f(),h=C();S.setPlaybackRate(h?1:2);Y(!C())}return!1});
return _.p("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.p("button",{el:r,class:"ytPlaybackSpeedButtonButton",title:I,"aria-label":I,"on:click":V},_.p("span",null,_.p(_.V2,{icon:function(){return C()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Jf");var FM7=_.Hc(function(r){var f=r.title;var I=r.ariaLabel;var C=r.icon;var Y=r.command;var V=r.veType;r=_.yy(function(h){V&&Ax(h,V())});
var S=_.IC(function(){V&&Z9(V());Y&&_.a().resolve(_.Gg).resolveCommand(Y())});
return _.p("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.p("button",{el:r,class:"ytdThumbnailOverlayButtonButton",title:f,"aria-label":I,"on:click":S},_.p(_.V2,{icon:C})))},"Kf");var PhV=["en-CA","en","es-MX","fr-CA"];var th1=_.Hc(function(r){var f=_.jS(r,{isOverlay:!1}),I=f.captionIconType,C=f.onClick;r=f.ariaLabel;var Y=f.ariaPressed,V=f.isOverlay;f=_.yy(function(w){Ax(w,127299)});
var S=_.IC(function(w){Z9(127299);C==null||C(w);return!1}),h={};
return _.p("ytm-closed-captioning-button",{class:_.qd("ytmClosedCaptioningButtonHost",(h.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return I()===-1&&V()},h.ytmClosedCaptioningButtonIconDisabled=function(){return I()===-1&&!V()},h))},_.p("button",{el:f,
class:"ytmClosedCaptioningButtonButton",title:r,"aria-label":r,"aria-pressed":Y,"on:click":S},_.p(_.V2,{icon:function(){var w="";var n=_.xI().get("hl");n=!n||PhV.includes(n)?"CLOSED_CAPTION":"SUBTITLES";var d=I();switch(d){case -1:case 0:w=n;break;case 1:w=n+"_FILLED";break;default:_.Sd(d)}return w}})))},"Lf");
th1.idomCompat={callbacks:{onClick:!0}};var Qj="";var TlU=_.Hc(function(r){var f=r.playerControlsProps,I=r.onClickFn;r=_.hR(function(){var V=f(),S=-1;V.captionsAvailable&&(S=V.captionsEnabled?1:0);return S},void 0,"WecR8e");
var C=_.hR(function(){var V=f();return V.captionsAvailable?_.VR(V.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.VR("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),Y=_.hR(function(){var V=f();
V=V.captionsAvailable?V.captionsEnabled:void 0;return V},void 0,"Q17ly");
return _.p("yt-closed-captions-toggle-button",null,_.p(th1,{captionIconType:r,ariaLabel:C,ariaPressed:Y,onClick:function(V){var S=f();if(S.captionsAvailable){var h=S.playerApi;if(h){var w=S.playerApi;if(w){var n=Qj;if(n){w=w.getOption("captions","track");var d;Qj=(d=w?w.displayName:null)!=null?d:n}else w.getOptions("captions")?(n=mS6(w),Qj=n.length?(d=e47(n))?d.displayName:n[0].displayName:""):Qj=""}Jop(h);_.N("mweb_disable_set_state_captions_killswitch")&&S.setState({captionsEnabled:!S.captionsEnabled})}}var z,
g;(g=(z=S.appApi).showCaptionsToggleToast)==null||g.call(z,S);I==null||I(V)},
isOverlay:!0}))},"Mf");var cd2=_.Hc(function(r){var f=r.data;return _.p("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.p(_.Av,{data:function(){return{type:16,text:_.mtU(f().label)}}}))},"Nf");var WMB=_.Hc(function(r){var f=_.qd("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return r.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return r.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return r.size()==="small"?r.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
r.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.p("animated-seek-arrows",{class:_.qd("ytPlayerControlsAnimatedSeekArrowsHost")},_.p("span",{class:f}),_.p("span",{class:f}),_.p("span",{class:f}))},"Of");
WMB.idomCompat=!0;var LM7=_.Hc(function(){var r=_.VR("PLAYER_SECONDS",{seconds_placeholder:"30"}),f=_.E(_.ld(!1,void 0,"Yj8msb")),I=f.next().value,C=f.next().value,Y=_.E(_.ld(!1,void 0,"r9Z50e"));f=Y.next().value;var V=Y.next().value;Y={};var S=_.qd("jumpForwardOverlayOverlay",(Y.jumpForwardOverlayOverlayHidden=f,Y));_.$E(function(){var h=null,w=null,n=function(){h!==null&&_.tF().cancelJob(h);w!==null&&_.tF().cancelJob(w);V(!0);C(!0);_.oB(_.tF(),function(){V(!1)});
h=_.oB(_.tF(),function(){V(!0);w=_.oB(_.tF(),function(){C(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",n);_.$L(function(){window.removeEventListener("jump-forward-clicked",n)})});
return _.p("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.p(_.M,{cond:I,then:function(){return _.p("div",{class:S},_.p(WMB,{direction:1,size:"large"}),_.p("div",null,r))}}))},"Pf");var f37=_.KO.MUTE_VOLUME,rRU=_.KO.UNMUTE_VOLUME,mU7=_.Hc(function(r){var f=r.muteIconType;var I=r.onClick;var C=r.useOutlineIcon;r=_.yy(function(S){Ax(S,28662)});
var Y=function(){return I3s(f(),C==null?void 0:C()).ariaLabel},V=_.IC(function(S){Z9(28662);
I==null||I(S);return!1});
return _.p("ytm-mute-button",{class:"ytmMuteButtonHost"},_.p("button",{el:r,class:"ytmMuteButtonButton",title:Y,"aria-label":Y,"on:click":V},_.p("span",null,_.p(_.V2,{icon:function(){return I3s(f(),C==null?void 0:C()).iconName}}))))},"Qf");var eG2=_.Hc(function(r){var f=r.volumeProps;var I=r.onClickFn;var C=r.useOutlineIcon;return _.p("yt-mute-toggle-button",null,_.p(mU7,{muteIconType:function(){var Y=f(),V=!_.N("mweb_treat_zero_volume_as_muted_killswitch")&&Y.volume===0;return Y.volumeMuted||V?0:1},
onClick:function(Y){var V=f().playerApi;V&&(V.isMuted()?V.unMute():V.mute(!1));I==null||I(Y)},
useOutlineIcon:function(){return!(C==null||!C())}}))},"Rf");
eG2.idomCompat=!0;var Jd6=_.Hc(function(r){var f=r.data;var I=_.yy();r=_.IC(function(){I.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.p("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:I,"on:animationend":r},_.p(_.h8,{command:function(){return f().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.p(_.M,{cond:function(){var C;return(C=f().icon)==null?void 0:C.iconType},
then:function(){return _.p("span",null,_.p(_.V2,{icon:function(){var C;return(C=f().icon)==null?void 0:C.iconType}}))}}),_.p("div",{class:"ytmPaidContentOverlayText"},_.p(_.wW,{text:function(){return f().text}})),_.p(_.M,{cond:function(){return f().navigationEndpoint},
then:function(){return _.p(_.V2,{icon:"CHEVRON_RIGHT"})}})))},"Sf");
Jd6.idomCompat=!0;var CdV=[].concat(_.Na([{register:function(r){var f=p92(r),I;(I=r().playerApi)==null||I.addEventListener("onVolumeChange",f);return function(){}}},
{register:function(r){var f=nLU(r);r=r().playerApi;r==null||r.addEventListener("captionschanged",f);r==null||r.addEventListener("captionssettingschanged",f);r==null||r.addEventListener("onCaptionsTrackListChanged",f);return function(){}}},
{register:function(r){if(!_.N("mweb_screenreader_accessible_player"))return function(){};
var f=dkq(r),I=document.querySelector("video");I==null||I.addEventListener("touchend",f);return function(){I==null||I.removeEventListener("touchend",f)}}},
{register:function(r){if(!_.N("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var f=dkq(r),I=document.querySelector("video");I==null||I.addEventListener("focus",f);return function(){I==null||I.removeEventListener("focus",f)}}}]),[{register:function(r){var f=xkq(r),I;
(I=r().playerApi)==null||I.addEventListener("onStateChange",f);return function(){}}},
{register:function(r){var f=ho6(r),I;(I=r().playerApi)==null||I.addEventListener("onPlaybackRateChange",f);return function(){}}},
{register:function(r){var f=w9V(r),I;(I=r().playerApi)==null||I.addEventListener("onVideoDataChange",f);return function(){}}},
{register:function(r){var f=byB(r),I,C;(I=r())==null||(C=I.playerApi)==null||C.addEventListener("onVideoProgress",f);return function(){}}}]);var j1U=_.Hc(function(r){var f=r.data;var I=function(){return _.VR("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+f().playbackRate})};
return _.p(_.M,{cond:function(){return f().playbackRate&&f().playbackRate!==1},
then:function(){return _.p("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.p("div",{class:"ytPlaybackRateOverlayOverlay"},_.p(WMB,{direction:1,size:"small"}),_.p("div",{class:"ytPlaybackRateOverlayLabel"},I)))}})},"Tf");var Hf2=_.Hc(function(r){var f=r.data;return _.p("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.p(_.M,{cond:function(){var I,C=(I=f())==null?void 0:I.playerResponse,Y;return C==null?void 0:(Y=C.paidContentOverlay)==null?void 0:Y.paidContentOverlayRenderer},
then:function(I){return _.p(Jd6,{data:I})}}))},"Vf"),ifY=_.Hc(function(r){var f=r.props;
var I=r.data;var C=r.options;var Y=function(){var n,d,z,g;return(n=I())==null?void 0:(d=n.playerResponse)==null?void 0:(z=d.playerConfig)==null?void 0:(g=z.inlinePlaybackConfig)==null?void 0:g.showAudioControls},V=function(){var n,d;
if(Y()&&((n=C())==null?void 0:(d=n.additionalButton)==null?void 0:d.button)!==void 0){var z,g,X;n=(z=I())==null?void 0:(g=z.playerApi)==null?void 0:(X=g.getSize())==null?void 0:X.height;if(!(n===void 0||n<184)){var P,W;return(P=C())==null?void 0:(W=P.additionalButton)==null?void 0:W.button}}},S=function(){var n,d;
return(n=C())==null?void 0:(d=n.additionalButton)==null?void 0:d.thumbnailOverlayButtonRenderers},h=function(){var n,d;
return(n=C())==null?void 0:(d=n.additionalButton)==null?void 0:d.thumbnailOverlayButtonViewModels},w=function(){var n=[_.p(eG2,{volumeProps:f}),
_.p(TlU,{playerControlsProps:f})];V()===1&&n.push(_.p(Xdi,{playerApi:function(){return f().playerApi}}));
V()===2&&n.push(_.p(Nl3,{appApi:function(){return f().appApi}}));
V()===3&&n.push(_.p($U1,{playerApi:function(){return f().playerApi}}));
var d=S();if(V()===4&&d){d=_.E(d);for(var z=d.next(),g={};!z.done;g={tooltip$jscomp$2:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$54:void 0,command$jscomp$568:void 0},z=d.next()){z=z.value;g.tooltip$jscomp$2=z.tooltip;var X=void 0,P=void 0;g.ariaLabel$jscomp$21=((X=z.accessibility)==null?void 0:(P=X.accessibilityData)==null?void 0:P.label)||g.tooltip$jscomp$2;X=void 0;g.icon$jscomp$54=(X=z.icon)==null?void 0:X.iconType;g.command$jscomp$568=z.command;g.tooltip$jscomp$2&&g.ariaLabel$jscomp$21&&g.icon$jscomp$54&&
n.push(_.p(FM7,{title:function(W){return function(){return W.tooltip$jscomp$2}}(g),
ariaLabel:function(W){return function(){return W.ariaLabel$jscomp$21}}(g),
icon:function(W){return function(){return W.icon$jscomp$54}}(g),
command:function(W){return function(){return W.command$jscomp$568}}(g)}))}}d=h();
if(V()===4&&d)for(d=_.E(d),z=d.next(),g={};!z.done;g={tooltip$jscomp$3:void 0,ariaLabel$jscomp$22:void 0,icon$jscomp$55:void 0,command$jscomp$569:void 0},z=d.next())z=z.value,g.tooltip$jscomp$3=z.title,g.ariaLabel$jscomp$22=z.accessibilityText||g.tooltip$jscomp$3,g.icon$jscomp$55=z.iconName,g.command$jscomp$569=_.aB(z.onTap),g.tooltip$jscomp$3&&g.ariaLabel$jscomp$22&&g.icon$jscomp$55&&n.push(_.p(FM7,{title:function(W){return function(){return W.tooltip$jscomp$3}}(g),
ariaLabel:function(W){return function(){return W.ariaLabel$jscomp$22}}(g),
icon:function(W){return function(){return W.icon$jscomp$55}}(g),
command:function(W){return function(){return W.command$jscomp$569}}(g)}));
return n};
return _.p(_.M,{cond:Y,then:function(){return _.p("div",{class:"ytInlinePlayerControlsTopRightControls"},_.p(_.pz,{each:w},function(n){return _.p("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.p("div",{class:"ytInlinePlayerControlsButtonIcon"},n))}))}})},"Wf"),KM7=_.Hc(function(r){var f=r.props;
var I=r.data;var C=r.options;r={};r=_.qd("ytInlinePlayerControlsBottomRightControls",(r.ytInlinePlayerControlsBottomRightControlsHidden=function(){var Y;return Mbd(I(),C())&&((Y=C())==null?void 0:Y.insetProgressBar)&&(f().isHovering||f().isDragging)},r));
return _.p("div",{class:r},_.p(RGd,{data:I}),_.p(_.M,{cond:function(){var Y;return!((Y=C())==null?0:Y.hideTimeDisplay)},
then:function(){return _.p(vBi,{props:f,data:I})}}))},"Xf"),RGd=_.Hc(function(r){var f=r.data;
return _.p(_.X1,{data:function(){var I;return qD6((I=f())==null?void 0:I.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:cd2})},"Yf"),vBi=_.Hc(function(r){var f=r.props;
var I=r.data;return _.p(_.M,{cond:function(){return f().isLive},
then:function(){return _.p(yd6,null)},
else:function(){return _.p(UU6,{props:f,data:I})}})},"Zf"),UU6=_.Hc(function(r){var f=r.props;
var I=r.data;var C=_.hR(function(){var Y;return Du3((Y=I())==null?void 0:Y.thumbnailOverlays)},void 0,"kUmuA");
return _.p("div",{class:_.qd("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.KO.PLAYER_TIME_ELAPSED+" "+_.hJw(f().playedTime)}},_.p(_.Av,{data:function(){var Y=_.hJw(f().videoDuration-f().playedTime);
return Object.assign({},{type:16,text:Y},C())}}))},"$f"),yd6=_.Hc(function(){return _.p("div",{class:_.qd("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.p(_.Av,{data:{type:17,
text:_.KO.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"ag"),s1s=_.Hc(function(r){var f=r.props;
var I=r.data;var C=r.options;return _.p(_.d3V,{progressBarProps:f,config:function(){var Y,V=_.F((Y=I())==null?void 0:Y.multiMarkersPlayerBar,_.O3g),S;Y=((S=C())==null?0:S.insetProgressBar)?2:1;var h;S=(h=C())==null?void 0:h.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:Y,chapterData:V,isInlinePlayback:!0,doSeekOnClick:S,playheadDotBehavior:S?1:0}}})},"bg");_.Kv(_.Hc(function(r){var f=r.data;var I=r.appApi;var C=r.options;var Y=Sm1(f,zod(I));r={};I={};return _.p("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.p("div",{class:_.qd("ytInlinePlayerControlsDarkenedOverlay",(r.ytInlinePlayerControlsDarkenedOverlayShow=function(){return Y().isHovering},r))}),_.p(LM7,null),_.p(j1U,{data:Y}),_.p(Hf2,{data:f}),_.p(ayB,{playerControlsProps:Y,
isShortsPage:!1}),_.p("div",{class:_.qd((I.ytInlinePlayerControlsControlsHidden=function(){return Y().isDragging},I))},_.p(ifY,{props:Y,
data:f,options:C}),_.p(KM7,{props:Y,data:f,options:C})),_.p(_.M,{cond:function(){return Mbd(f(),C())},
then:function(){return _.p(s1s,{props:Y,data:f,options:C})}}))},"Uf"),"yt-inline-player-controls",{props:{data:_.jv,
appApi:_.vI,options:_.jv}});var yK=function(){var r=_.y.apply(this,arguments)||this;r.opts=null;r.playerControlsData=null;r.playerControlsAppApi={openInMiniplayer:function(){r.openInMiniplayer()}};
r.playerControlsOptions={};r.noAnimation=!1;r.playbackIntentTriggered=!1;r.positionData=null;r.hidden=!0;r.active=!1;r.playing=!1;r.videoPreviewDataIndex=0;r.JSC$16794_playerPromise=null;r.player=null;r.enableAudioControls=!1;r.hasBeenUnmuted=!1;r.captionsHaveBeenTurnedOff=!1;r.JSC$16794_playerEvents=new Map;r.videoPreviewFetchRequest=null;r.scheduledPreviewEndJobId=null;r.JSC$16794_preventProgressSaveTimer=null;r.watchEndpointStartTimeUpdaterInterval=null;r.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};r.windowOnBlurFn=function(){r.deactivate()};
return r};
_.t(yK,_.y);_.l=yK.prototype;
_.l.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.N("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.l.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16794_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16794_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16794_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16794_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.GF(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.GF(this,this.onScroll))};
_.l.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.GF(this,this.onScroll))};
_.l.onPageTypeChange=function(){this.deactivate()};
_.l.onWindowResized=function(){this.deactivate()};
_.l.onCaptionsChanged=function(r){r=!!r.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!r);this.setCaptionSize()};
_.l.setCaptionSize=function(){var r;if(this.active&&!this.captionsHaveBeenTurnedOff&&((r=this.player)==null?0:r.getCaptionWindowContainerId())){var f;(f=this.player)==null||f.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 r=this.positionData,f=r.initialTopPosition,I=r.initialHorizontalPosition;_.Zh(this.hostElement,{"--ytd-video-preview-translate-left":r.finalHorizontalPosition-I+"px","--ytd-video-preview-translate-top":r.finalTopPosition-f+"px","--ytd-video-preview-original-top-position":f+"px","--ytd-video-preview-original-horizontal-position":I+"px",
"--ytd-video-preview-initial-scale":"scale("+r.initialScale+")","--ytd-video-preview-width":r.videoPreviewWidth+"px","--ytd-video-preview-height":r.videoPreviewHeight+"px"});return!0};
_.l.handleOpenVideoPreviewAction=function(r){var f=this,I;return _.x(function(C){if(!f.currentPageAllowed())return C.return(0);f.opts=r;return(I=f.alignVideoPreviewForAnimation(r.thumbnail))?C.return(f.activate()):C.return(0)})};
_.l.onMouseLeave=function(r){this.shouldDeactivateOnMouseLeave(r)&&this.deactivate()};
_.l.onScroll=function(){var r,f;((r=this.opts)==null?0:r.isAutoplay)&&((f=this.opts)==null?0:f.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.l.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.F_.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",yK.JSC$16793_DEFAULT_CLICK_LOCATION_BEHAVIOR,yK.JSC$16793_CLICK_LOCATION_ID_MAP)};
_.l.shouldDeactivateOnMouseLeave=function(r){r=r.relatedTarget;if(!r)return!0;var f;return(f=this.opts)!=null&&f.mediaRenderer?!_.Oi(this.opts.mediaRenderer).contains(r):!0};
_.l.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.l.onPlaybackStart=function(){var r=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$16794_preventProgressSaveTimer=
_.oB(_.F_,function(){r.resetPreventProgressSaveTimer()},1E4);
var f;if((f=this.opts)==null?0:f.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.oB(_.F_,function(){r.hasMultipleVideoPreviews()?r.startPlaybackForNextVideo():r.deactivate()},this.opts.videoPreviewDurationMs);
var I;this.player.setGlobalCrop(((I=this.opts)==null?0:I.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.l.getRoundedCornersSize=function(){var r;if((r=this.opts)==null?0:r.roundedCornersSize){var f;return(f=this.opts)==null?void 0:f.roundedCornersSize}var I;if((I=this.opts)==null?0:I.enableRounding){var C;if(((C=this.opts)==null?void 0:C.thumbnailSize)==="small")return 1;var Y;if(((Y=this.opts)==null?void 0:Y.thumbnailSize)==="medium")return 2;var V;if(((V=this.opts)==null?void 0:V.thumbnailSize)==="large")return 3}return _.N("web_imp_inset_progress_bar")?3:0};
_.l.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.l.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.l.onMediaContainerClick=function(r){this.isShortcutClick(r)||(this.navigateToWatch(r),r.preventDefault(),r.stopPropagation())};
_.l.activate=function(){var r=this,f,I,C,Y,V,S,h,w,n;return _.x(function(d){switch(d.nextAddress){case 1:if(!r.currentPageAllowed())return d.return(0);I=(f=r.videoPreviewData)==null?void 0:f.inlinePlaybackEndpoint;C=_.Wl.instance;if(!I||!C)return d.return(0);r.playbackIntentTriggered=!0;((Y=r.opts)==null?0:Y.mediaRenderer)&&((V=r.opts)==null||!V.isAutoplay)&&BLB(r.opts.mediaRenderer,function(){r.deactivate()});
_.UC(r,function(){r.revealPreviewUi()});
S={};_.N("enable_unknown_lact_fix_on_html5")&&(_.a().resolve(_.dW),S.lact=_.Zs());r.videoPreviewFetchRequest=oaq(C,r.getInlinePlaybackRequestData(r.videoPreviewData),S);_.l_(d,2);return _.b(d,r.videoPreviewFetchRequest,4);case 4:h=d.yieldResult;if(((w=h)==null?void 0:(n=w.playabilityStatus)==null?void 0:n.status)==="OK")return d.return(r.handlePlayerResponse(h));throw Error("Hj");case 2:_.ha(d),r.deactivate();case 3:return d.return(1)}})};
_.l.getInlinePlaybackRequestData=function(r){var f,I=_.N("web_imp_player_mute_params")?((f=this.opts)==null?void 0:f.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:r.inlinePlaybackEndpoint,startPlaybackInMutedState:I}};
_.l.handlePlayerResponse=function(r){var f=this,I,C,Y,V,S,h,w,n,d,z;return _.x(function(g){if(g.nextAddress==1){I=f.getInlinePlaybackVideoId();if(!(((C=r)==null?0:(Y=C.videoDetails)==null?0:Y.videoId)&&f.currentPageAllowed()&&f.playbackIntentTriggered&&f.opts&&I))return f.deactivate(),g.return(0);if(r.videoDetails.videoId!==I)return g.return(0);f.enableAudioControls=!!((V=r.playerConfig)==null?0:(S=V.inlinePlaybackConfig)==null?0:S.showAudioControls);r.trackingParams=f.getInlinePlaybackTrackingParams();
if(!f.inlinePlayer)return g.return(0);h={};if(n=_.F((w=f.videoPreviewData)==null?void 0:w.inlinePlaybackEndpoint,_.vj))h.watch_endpoint=n;if(f.videoPreviewData){var X,P=(X=_.F(f.videoPreviewData.inlinePlaybackEndpoint,_.vj))==null?void 0:X.startTimeSeconds;P!==void 0&&(r.playerConfig||(r.playerConfig={}),r.playerConfig.playbackStartConfig||(r.playerConfig.playbackStartConfig={}),r.playerConfig.playbackStartConfig.startPosition||(r.playerConfig.playbackStartConfig.startPosition={}),r.playerConfig.playbackStartConfig.startSeconds=
P,r.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(P*1E3))}f.inlinePlayer.loadVideoWithPlayerResponse(r,h);if(f.JSC$16794_playerPromise)return g.jumpTo(2);f.JSC$16794_playerPromise=f.inlinePlayer.getPlayerPromise();return _.b(g,f.JSC$16794_playerPromise,3)}g.nextAddress!=2&&(d=g.yieldResult,d.setInlinePreview(!0),d.setSizeStyle(!1,!0),f.ytPlayerListenerBehavior.listenToPlayerEvents(d,f.JSC$16794_playerEvents),f.player=d,_.kA(f.hostElement,"player-api-ready"));((z=f.opts)==
null?0:z.showPlayerControls)&&f.videoPreviewData&&f.player&&(f.playerControlsData={playerResponse:r,isInlinePlayback:!0,thumbnailOverlays:f.videoPreviewData.thumbnailOverlays,playerApi:f.player},f.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!f.unroundCornersForPlayback,additionalButton:f.getAdditionalButtonType(f.videoPreviewData.thumbnailOverlays)});return g.return(2)})};
_.l.revealPreviewUi=function(){var r=this;this.playbackIntentTriggered&&_.oUE(this,function(){r.hasThumbnailPositionChangedSinceTriggered()||(r.updateActiveState(!0),r.noAnimation=!1)})};
_.l.hasThumbnailPositionChangedSinceTriggered=function(){var r=this.positionData,f=this.getThumbnailPositionData();return(r==null?void 0:r.initialTopPosition)!==(f==null?void 0:f.initialTopPosition)||(r==null?void 0:r.initialHorizontalPosition)!==(f==null?void 0:f.initialHorizontalPosition)};
_.l.getThumbnailPositionData=function(){var r,f;if((f=this.opts)==null||!f.thumbnail)return null;f=this.opts.thumbnail;var I=((r=this.opts)==null?0:r.cropPlayerToFillThumbnailHorizontally)?!1:!0;var C=f.getBoundingClientRect();r=C.width;f=C.height;var Y=C.top+window.scrollY;C=C.left+window.scrollX;var V=I?Math.ceil(r):r;I=I?Math.ceil(f):f;var S=r/V;r={initialScale:S,initialTopPosition:Y-12*S,finalTopPosition:Y-12-(I-f)/2,initialHorizontalPosition:C-(12+(V-r)/2),finalHorizontalPosition:C-12-(V-r)/
2,videoPreviewWidth:V,videoPreviewHeight:I};return r};
_.l.updateActiveState=function(r){this.active=r;this.ytdReduxBehavior.dispatch(_.kI({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:r}))};
_.l.stopPlayer=function(r){r=r.resetWatchEndpointStartTime===void 0?!1:r.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(r)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.F_.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.l.deactivate=function(r){r=r===void 0?{}:r;r=r.resetWatchEndpointStartTime===void 0?!1:r.resetWatchEndpointStartTime;q1&&(q1.disconnect(),q1=null);this.stopPlayer({resetWatchEndpointStartTime:r});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.l.isValidThumbnailOverlayButton=function(r,f){r=r.thumbnailOverlayButtonRenderer;var I;return!!r&&!!r.tooltip&&!((I=r.icon)==null||!I.iconType)&&f.includes(r.icon.iconType)};
_.l.isValidThumbnailOverlayButtonViewModel=function(r,f){var I;r=_.F((I=r.thumbnailOverlayButtonViewModel)==null?void 0:I.overlayButton,_.NI);return!!r&&!!r.title&&!!r.iconName&&f.includes(r.iconName)};
_.l.getAdditionalButtonType=function(r){var f=this;if(_.N("web_imp_fastforward_button"))return{button:1};if(_.N("web_imp_miniplayer_button"))return{button:2};if(_.N("web_imp_playback_speed_button"))return{button:3};var I=["AUTO_AWESOME"],C=(r||[]).filter(function(V){return f.isValidThumbnailOverlayButton(V,I)}).map(function(V){return V.thumbnailOverlayButtonRenderer});
if(C.length)return{button:4,thumbnailOverlayButtonRenderers:C};var Y=["AUTO_AWESOME"];r=(r||[]).filter(function(V){return f.isValidThumbnailOverlayButtonViewModel(V,Y)}).map(function(V){return _.F(V.thumbnailOverlayButtonViewModel.overlayButton,_.NI)});
if(r.length)return{button:4,thumbnailOverlayButtonViewModels:r}};
_.l.allowCaptions=function(){var r;return!((r=this.opts)==null?0:r.forceCaptionsOff)};
_.l.allowUnmuting=function(){var r;return this.enableAudioControls&&!((r=this.opts)==null?0:r.forceMutedVolume)};
_.l.beginStartTimeUpdater=function(){var r=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.ff(function(){r.updateWatchEndpointStartTime()},1E3)};
_.l.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.l.resetPreventProgressSaveTimer=function(){this.JSC$16794_preventProgressSaveTimer!==null&&(_.F_.cancelJob(this.JSC$16794_preventProgressSaveTimer),this.JSC$16794_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.l.updateWatchEndpointStartTime=function(r){var f=this.videoPreviewData;if(this.player&&f!=null&&f.inlinePlaybackEndpoint&&!this.JSC$16794_preventProgressSaveTimer){r=r?0:Math.floor(this.player.getCurrentTime());var I=_.F(f.navigationEndpoint,_.vj);I&&(I.startTimeSeconds=r);if(f=_.F(f.inlinePlaybackEndpoint,_.vj))f.startTimeSeconds=r}};
_.l.isShortcutClick=function(r){return!!r&&(r.ctrlKey||r.shiftKey||r.metaKey)};
_.l.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.l.openInMiniplayer=function(){var r=this,f,I;return _.x(function(C){if(C.nextAddress==1){I=(f=r.videoPreviewData)==null?void 0:f.navigationEndpoint;if(!I)return C.return();_.xP().lockupActivation=!0;return _.b(C,_.yO4(_.a().resolve(_.iO),I),2)}_.xP().userActivation=!0;_.wO(C)})};
_.l.navigateToWatch=function(r){var f,I=(f=this.videoPreviewData)==null?void 0:f.navigationEndpoint;if(I){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(I,r,!0);else{if(_.N("web_thumbnail_to_watch_transition")){var C,Y;(C=this.opts)==null||(Y=C.onNavigateToWatchCallback)==null||Y.call(C)}_.kA(this.hostElement,"yt-navigate",{endpoint:I})}this.deactivate()}};
_.l.getInlinePlaybackVideoId=function(){var r,f;return(f=_.F((r=this.videoPreviewData)==null?void 0:r.inlinePlaybackEndpoint,_.vj))==null?void 0:f.videoId};
_.l.getInlinePlaybackTrackingParams=function(){var r,f;return(r=this.videoPreviewData)==null?void 0:(f=r.inlinePlaybackEndpoint)==null?void 0:f.clickTrackingParams};
_.l.hasMultipleVideoPreviews=function(){var r;return!!(((r=this.opts)==null?0:r.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.l.startPlaybackForNextVideo=function(){var r;(r=this.opts)!=null&&r.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())};
_.OC.Object.defineProperties(yK.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.opts)==null?0:r.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.opts)==null||!r.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 r;if(Array.isArray((r=this.opts)==null?void 0:r.videoPreviewData)){var f;return(f=this.opts)==null?void 0:f.videoPreviewData[this.videoPreviewDataIndex]}var I;return(I=this.opts)==null?void 0:I.videoPreviewData}}});
yK.prototype.onIsAdsVideoChange=yK.prototype.onIsAdsVideoChange;yK.prototype.onInlinePreviewIsEnabledChange=yK.prototype.onInlinePreviewIsEnabledChange;yK.prototype.optsChanged=yK.prototype.optsChanged;yK.prototype.onMouseLeave=yK.prototype.onMouseLeave;yK.JSC$16793_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);yK.JSC$16793_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"}];
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],yK.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],yK.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.iQ.YtPlayerListenerBehavior),_.B("design:type",_.RN)],yK.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],yK.prototype,"componentBehavior",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],yK.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.Qu.YtSparklesClickLocationBehavior),_.B("design:type",Object)],yK.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],yK.prototype,"opts",void 0);_.A([_.K(),_.B("design:type",Object)],yK.prototype,"playerControlsData",void 0);
_.A([_.K(),_.B("design:type",Object)],yK.prototype,"playerControlsAppApi",void 0);_.A([_.K(),_.B("design:type",Object)],yK.prototype,"playerControlsOptions",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],yK.prototype,"noAnimation",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],yK.prototype,"hidden",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],yK.prototype,"active",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],yK.prototype,"playing",void 0);_.A([_.K({selector:_.mhP}),_.B("design:type",Boolean)],yK.prototype,"inlinePreviewIsEnabled",void 0);_.A([_.K(),_.B("design:type",String)],yK.prototype,"pagePath",void 0);_.A([_.K({selector:_.$x}),_.B("design:type",Boolean)],yK.prototype,"isWatchPage",void 0);_.A([_.R("videoPreviewData"),_.B("design:type",Object),_.B("design:paramtypes",[])],yK.prototype,"thumbnailData",null);
_.A([_.R("opts","active"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yK.prototype,"hidePlayerControls",null);_.A([_.R("opts"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yK.prototype,"isAdsVideo",null);_.A([_.R("opts"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yK.prototype,"roundedCornersSmall",null);
_.A([_.R("opts"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yK.prototype,"roundedCornersMedium",null);_.A([_.R("opts"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yK.prototype,"roundedCornersLarge",null);_.A([_.R("opts"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yK.prototype,"unroundCornersForPlayback",null);
_.A([_.R("opts","videoPreviewDataIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],yK.prototype,"videoPreviewData",null);_.A([_.K(),_.B("design:type",Object)],yK.prototype,"videoPreviewDataIndex",void 0);_.A([_.uA("#inline-player"),_.B("design:type",Object)],yK.prototype,"inlinePlayer",void 0);_.A([_.kO("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[MouseEvent]),_.B("design:returntype")],yK.prototype,"onMouseLeave",null);
_.A([_.YN("opts"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yK.prototype,"optsChanged",null);_.A([_.YN("inlinePreviewIsEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yK.prototype,"onInlinePreviewIsEnabledChange",null);_.A([_.Bt("isAdsVideo"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yK.prototype,"onIsAdsVideoChange",null);
yK=_.A([_.U({is:"ytd-video-preview",disableElementRegistration:!0})],yK);
_.Q(yK,"ytd-video-preview",function(){if(gBs!==void 0)return gBs;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return gBs=r},{mode:2});
}catch(e){_._DumpException(e)}
try{
var sk7;var Oi2;/*

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
*/
_.wm({_template:function(){if(Oi2!==void 0)return Oi2;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;sk7===void 0&&(sk7=document.createElement("template"));var C=sk7;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return Oi2=r},
is:"tp-yt-paper-checkbox",behaviors:[_.nUs],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.UC(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var r=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),f="px",I=r.match(/[A-Za-z]+$/);I!==null&&(f=I[0]);r=parseFloat(r);I=8/3*r;f==="px"&&(I=Math.floor(I),I%2!==r%2&&I++);this.updateStyles({"--paper-checkbox-ink-size":I+
f})}})},
_computeCheckboxClass:function(r,f){var I="";r&&(I+="checked ");f&&(I+="invalid");return I},
_computeCheckmarkClass:function(r){return r?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.bH_._createRipple.call(this)}});var oVi=new _.q("radioButtonSurveyOptionRenderer"),Qk6=new _.q("checkboxSurveyOptionRenderer");var Aai;var Zi2;var Gsd=0,LS=function(){var r=_.y.call(this)||this;r.selected=!1;r.isOverlay=!1;r.inputId="toggle-option-"+Gsd;Gsd++;return r};
_.t(LS,_.y);LS.prototype.onTap=function(){_.kA(this.hostElement,"ytd-toggle-option-clicked")};
_.A([_.K(),_.B("design:type",String)],LS.prototype,"label",void 0);_.A([_.K(),_.B("design:type",String)],LS.prototype,"inputId",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],LS.prototype,"selected",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],LS.prototype,"isOverlay",void 0);LS=_.A([_.U({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.B("design:paramtypes",[])],LS);
_.Q(LS,"ytd-toggle-option-renderer",function(){if(Zi2!==void 0)return Zi2;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Zi2=r},{mode:1});var mk=function(){var r=_.y.apply(this,arguments)||this;r.isToggleOption=!1;r.isOverlay=!1;return r};
_.t(mk,_.y);mk.prototype.onTap=function(r){r.preventDefault();this.data&&(r=!this.data.checked,this.set("data.checked",r),_.kA(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:r,value:this.data.value}))};
_.OC.Object.defineProperties(mk.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
mk.prototype.onTap=mk.prototype.onTap;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],mk.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],mk.prototype,"isToggleOption",void 0);_.A([_.K(),_.B("design:type",Object)],mk.prototype,"isOverlay",void 0);_.A([_.R("data.responseText"),_.B("design:type",String),_.B("design:paramtypes",[])],mk.prototype,"label",null);
_.A([_.kO("ytd-toggle-option-clicked"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],mk.prototype,"onTap",null);mk=_.A([_.U({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],mk);
_.Q(mk,"ytd-checkbox-survey-option-renderer",function(){if(Aai!==void 0)return Aai;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Aai=r},{mode:1});var ks6;var BOs;var eT=function(){var r=_.y.apply(this,arguments)||this;r.checked=!1;r.isToggleOption=!1;return r};
_.t(eT,_.y);eT.prototype.onTap=function(){this.data&&(this.checked?_.Bj(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.Bj(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
eT.prototype.onTap=eT.prototype.onTap;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],eT.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],eT.prototype,"checked",void 0);_.A([_.K(),_.B("design:type",Object)],eT.prototype,"isToggleOption",void 0);_.A([_.kO("ytd-toggle-option-clicked"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],eT.prototype,"onTap",null);
eT=_.A([_.U({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],eT);
_.Q(eT,"ytd-radio-button-survey-option-renderer",function(){if(BOs!==void 0)return BOs;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return BOs=r},{mode:1});var Jx=function(){var r=_.y.apply(this,arguments)||this;r.disableAnimation=!1;r.isToggleOption=!0;r.followUpSurveyCommand=null;r.selectedRatingEndpoint=null;r.isSlimlineSurveyFollowUp=!1;r.isShortsStyle=!1;r.styleOverrideAttribute=!0;r.isDarkMode=!1;r.isSubmitted=!1;r.roundedContainer=!0;r.improveShortsResponseRate=_.N("web_improve_shorts_response_rate");r.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 r};
_.t(Jx,_.y);_.l=Jx.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 r=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(I){var C;if((C=I[0])!=null&&C.isIntersecting){_.rF().reportShown(r.hostElement);var Y;(Y=r.intersectionObserver)==null||Y.unobserve(r.hostElement)}},{rootMargin:"0px",
threshold:.6});var f;(f=this.intersectionObserver)==null||f.observe(this.hostElement)};
_.l.onDarkModeToggledAction=function(r){this.isDarkMode=r};
_.l.dataChanged=function(){var r;if(((r=this.data)==null?void 0:r.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var f;((f=this.data)==null?void 0:f.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var I,C,Y,V;this.darkColorPalette=(I=this.data)==null?void 0:(C=I.inlineContent)==null?void 0:(Y=C.compactVideoRenderer)==null?void 0:(V=Y.thumbnail)==null?
void 0:V.darkColorPalette;var S,h,w,n;this.lightColorPalette=(S=this.data)==null?void 0:(h=S.inlineContent)==null?void 0:(w=h.compactVideoRenderer)==null?void 0:(n=w.thumbnail)==null?void 0:n.lightColorPalette;var d,z;if(((d=this.data)==null?0:(z=d.inlineContent)==null?0:z.compactVideoRenderer)&&this.isShortsStyle){var g,X,P,W;r=_.U6((g=this.data)==null?void 0:(X=g.inlineContent)==null?void 0:(P=X.compactVideoRenderer)==null?void 0:(W=P.thumbnail)==null?void 0:W.thumbnails);_.Zh(this.hostElement,
{"--yt-background-url":"url("+r+")"})}};
_.l.handleRequestCompletion=function(){this.hostElement.hidden&&_.kA(this.hostElement,"yt-dismissible-item-dismissed")};
_.l.onPopupClosed=function(r){var f;((f=r.detail)==null?void 0:f.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.Bj(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.l.handleInlineSurveyRatingSelect=function(r,f){var I=this;this.selectedRatingEndpoint=r;this.followUpSurveyCommand=f;this.expanded=!!r;this.getOptionRenderers().forEach(function(C,Y){I.notifyPath("followUpSurveyCommand.followUpOptions."+Y+".checkboxSurveyOptionRenderer.checked");I.set("followUpSurveyCommand.followUpOptions."+Y+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),r=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.Bj(this.hostElement,"yt-reel-non-video-content-dismissal-command",[r]))};
_.l.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.Bj(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var r,f=(r=this.data)==null?void 0:r.dismissalEndpoint;f&&this.ytComponentBehavior.resolveCommand(f)}};
_.l.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.Bj(this.hostElement,"yt-close-popup-action"))};
_.l.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var r=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{r=this.getOptionRenderers().filter(function(C){return C.checked});
if(r.length===0)return;r=r.map(function(C){return C.responseEndpoint})}var f=[];
r.forEach(function(C,Y){Y!==0&&(C=_.F(C,_.LG))&&C.feedbackToken&&f.push(C.feedbackToken)});
if(r=r[0]){var I={};f.length>0&&(I.extra_feedback_tokens=f);this.ytComponentBehavior.resolveCommand(r,{form:I})}}};
_.l.getOptionRenderers=function(){var r=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(f){r.isSingleSelect=!!_.F(f,oVi);return r.isSingleSelect?_.F(f,oVi):_.F(f,Qk6)}):[]};
_.l.handleInlineSurveyOptionSelect=function(r){r=this.optionSelector.indexOf(r);r!==-1&&this.optionSelector.selectIndex(r)};
_.l.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.l.maybeGetBackgroundColor=function(r){return this.isDarkMode?r.section2Color:r.section3Color};
_.l.colorPaletteChanged=function(){var r=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;r=r&&this.maybeGetBackgroundColor(r);this.dismissibleEl.style.backgroundColor=!r||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.MG(r)};
_.OC.Object.defineProperties(Jx.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Jx.prototype.colorPaletteChanged=Jx.prototype.colorPaletteChanged;Jx.prototype.onPopupClosed=Jx.prototype.onPopupClosed;Jx.prototype.handleRequestCompletion=Jx.prototype.handleRequestCompletion;Jx.prototype.dataChanged=Jx.prototype.dataChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Jx.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Jx.prototype,"actionHandlerBehavior",void 0);
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Jx.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Jx.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],Jx.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.uA("#follow-up-survey-options"),_.B("design:type",Object)],Jx.prototype,"optionSelector",void 0);_.A([_.K(),_.B("design:type",Object)],Jx.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Object)],Jx.prototype,"disableAnimation",void 0);_.A([_.K(),_.B("design:type",Object)],Jx.prototype,"isToggleOption",void 0);_.A([_.K(),_.B("design:type",Object)],Jx.prototype,"followUpSurveyCommand",void 0);_.A([_.K(),_.B("design:type",Object)],Jx.prototype,"selectedRatingEndpoint",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Jx.prototype,"expanded",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Jx.prototype,"isSlimlineSurveyFollowUp",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Jx.prototype,"isShortsStyle",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Jx.prototype,"styleOverrideAttribute",void 0);_.A([_.K(),_.B("design:type",Boolean)],Jx.prototype,"isSingleSelect",void 0);_.A([_.K(),_.B("design:type",Object)],Jx.prototype,"isDarkMode",void 0);
_.A([_.K(),_.B("design:type",Object)],Jx.prototype,"lightColorPalette",void 0);_.A([_.K(),_.B("design:type",Object)],Jx.prototype,"darkColorPalette",void 0);_.A([_.R("selectedRatingEndpoint","isShortsStyle"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Jx.prototype,"isOptionSelected",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Jx.prototype,"roundedContainer",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Jx.prototype,"improveShortsResponseRate",void 0);_.A([_.uA("#dismissible"),_.B("design:type",HTMLElement)],Jx.prototype,"dismissibleEl",void 0);_.A([_.uA("#dismiss-button yt-icon-button"),_.B("design:type",HTMLElement)],Jx.prototype,"dismissButtonEl",void 0);_.A([_.uA("#inline-survey-header yt-icon-button"),_.B("design:type",HTMLElement)],Jx.prototype,"inlineHeaderDismissButtonEl",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Jx.prototype,"dataChanged",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Jx.prototype,"handleRequestCompletion",null);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Jx.prototype,"onPopupClosed",null);
_.A([_.Bt("darkColorPalette","lightColorPalette","isDarkMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Jx.prototype,"colorPaletteChanged",null);Jx=_.A([_.U({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Jx);
_.Q(Jx,"ytd-inline-survey-renderer",function(){if(ks6!==void 0)return ks6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ks6=r},{mode:1});
}catch(e){_._DumpException(e)}
try{
var nDV,dwq,zYU;nDV=function(r){return _.N("kevlar_watch_cinematics_invisible")||r.fullscreen&&_.N("kevlar_watch_cinematics_invisible_in_fullscreen")||r.theater&&!r.fullscreen&&_.N("kevlar_watch_cinematics_invisible_in_theater")};
dwq=function(){var r=document.createElement("canvas"),f=r.getContext("2d");if(!f)throw Error("Wl");_.e2(r,{position:"absolute",width:"100%",height:"100%"});return{element:r,context:f}};
zYU=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.N("kevlar_watch_cinematics_css_blur")};
_.MV3=function(r,f,I){return Math.abs(r-f)<=(I||1E-6)};
_.gD2=function(r,f){return r==f?!0:r&&f?r.width==f.width&&r.height==f.height:!1};_.aZ2=new _.q("notificationActionRenderer");var XeV=function(r){var f=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.uX;this.element.addEventListener("load",function(){f.loaded=!0;f.resolver.resolve(f.element)});
this.element.addEventListener("error",function(){f.failed=!0});
this.element.src=r};var NHY=function(r,f){this.image=r;this.frame=f};
NHY.prototype.drawToCanvas=function(r,f){var I=this.frame.width/this.frame.columns,C=this.frame.height/this.frame.rows,Y=f.offsetX,V=f.offsetY;nDV(f)?(r.fillStyle=f.fullscreen?"#000":"#0f0f0f",r.fillRect(Y,V,(f==null?void 0:f.width)||I,(f==null?void 0:f.height)||C)):r.drawImage(this.image,this.frame.column*I,this.frame.row*C,I,C,Y,V,(f==null?void 0:f.width)||I,(f==null?void 0:f.height)||C)};
var $wV=function(r){this.color=r};
$wV.prototype.drawToCanvas=function(r,f){var I=f.offsetX,C=f.offsetY,Y=f.width,V=f.height;r.fillStyle=nDV(f)?f.fullscreen?"#000":"#0f0f0f":this.color;r.fillRect(I,C,Y,V)};var D_=function(r,f){_.QK.call(this);this.playerApi=f;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.EZ(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();F76(this,r);_.P$Y(this);this.update()},c06;
_.t(D_,_.QK);D_.prototype.addEventListeners=function(){var r=this,f=function(){r.update()},I=function(Y){r.paused||(Y.type==="newdata"&&(r.mosaics.clear(),tV1(r),rE(r)),_.P$Y(r),r.update())},C=function(){r.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",f);this.playerApi.addEventListener("onVideoDataChange",I);this.playerApi.addEventListener("onStateChange",C);this.addOnDisposeCallback(function(){r.playerApi.removeEventListener("onVideoProgress",f);r.playerApi.removeEventListener("onVideoDataChange",I);r.playerApi.removeEventListener("onStateChange",C)})};
var F76=function(r,f){r.cinematicContainerRenderer!==f&&(r.cinematicContainerRenderer=f,tV1(r),rE(r),r.colorStoreUpdateJobId=_.F_.addLowPriorityJob(function(){var I;if((I=r.cinematicContainerRenderer.colorStore)!=null&&I.sampledColors){I=Infinity;for(var C=_.E(r.cinematicContainerRenderer.colorStore.sampledColors),Y=C.next();!Y.done;Y=C.next()){Y=Y.value;var V=Number(Y.key);V!==0&&V<I&&(I=V);V=_.g_(Y.value);r.colorStore.set(Y.key,V)}r.colorStoreTimeInterval=I}}))},tV1=function(r){r.colorStoreUpdateJobId&&
(_.F_.cancelJob(r.colorStoreUpdateJobId),r.colorStoreUpdateJobId=void 0);
r.colorStore.clear();r.currentStoryboardColor=void 0},THp=function(r,f){var I;
return(I=r.getStoryboardFrame(f))==null?void 0:I.url};
D_.prototype.onPlayerStateChange=function(){this.update()};
D_.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
_.P$Y=function(r){var f=r.getStoryboardFrame(0);f&&(f=new _.EZ(f.width/f.columns,f.height/f.rows),_.gD2(r.currentStoryboardSize,f)||(r.currentStoryboardSize=f,r.publish("STORYBOARD_SIZE_CHANGED",r.currentStoryboardSize)))};
c06=function(r,f){r.currentStoryboardIndex=f;r.pendingStoryboardIndex=NaN;f=r.getStoryboardFrame(r.currentStoryboardIndex);r.currentStoryboard=new NHY(r.mosaics.get(f.url).element,f);r.publish("STORYBOARD_CHANGED",r.currentStoryboard);r.lastUpdateTime=(0,_.Ad)()};
D_.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var rE=function(r){r.currentStoryboardIndex=NaN;r.pendingStoryboardIndex=NaN;r.currentStoryboard&&(r.currentStoryboard=void 0,r.publish("STORYBOARD_CHANGED",void 0));r.lastUpdateTime=NaN};
D_.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)rE(this);else{var r=this.playerApi.getPlayerState(1);if(r===-1||r===5||r===0)rE(this);else if(isNaN(this.lastUpdateTime)||!((0,_.Ad)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(r=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){r=""+Math.round(r*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var f=this.colorStore.get(r);f?f!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=f,this.currentStoryboard=new $wV(f),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.Ad)()):(_.t7(new _.nf("Could not find color for timestamp: "+r,this.cinematicContainerRenderer)),rE(this))}else rE(this);else W7d(this,r)}};
var W7d=function(r,f){var I=r.getStoryboardFrameIndex(f);if(I!==r.currentStoryboardIndex&&I!==r.pendingStoryboardIndex){f=THp(r,I);var C=r.mosaics.get(f);C?C.loaded&&c06(r,I):(r.pendingStoryboardIndex=I,I=new XeV(f),r.mosaics.set(f,I),I.resolver.promise.then(function(){if(!r.isDisposed()&&!r.paused&&!isNaN(r.pendingStoryboardIndex)){var Y=THp(r,r.pendingStoryboardIndex);if(Y){var V;(V=r.mosaics.get(Y))!=null&&V.loaded&&c06(r,r.pendingStoryboardIndex)}else rE(r)}}))}};
D_.prototype.getStoryboardFrameIndex=function(r){var f=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(r,f)};
D_.prototype.getStoryboardFrame=function(r){var f=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,I,C;return((C=(I=this.playerApi).getStoryboardFrame)==null?void 0:C.call(I,r,f))||null};
D_.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var Ie=function(r,f,I,C){C=C===void 0?!1:C;_.Mu.call(this);this.cinematicContainerRenderer=f;this.playerApi=I;this.theater=this.fullscreen=!1;var Y;this.ambientLightThemeEnabled=!C&&!!(f==null?0:(Y=f.config)==null?0:Y.enableInLightTheme);this.ambientFullscreenEnabled=C&&_.N("web_cinematic_fullscreen");this.container=document.createElement("div");r.appendChild(this.container);var V;if(_.N("web_cinematic_theater_mode")||_.N("web_cinematic_fullscreen")||(f==null?0:(V=f.config)==null?0:V.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);L7U(this);r=this.ambientV2Container||this.container;this.backCanvas=dwq();this.frontCanvas=dwq();r.appendChild(this.backCanvas.element);r.appendChild(this.frontCanvas.element);this.storyboardManager=new D_(f,this.playerApi);_.V$(this,this.storyboardManager);this.addEventListeners();mws(this)?eY6(this,100+f5(this)*3*2,100+f5(this)*3*2):J0Y(this);j7V(this,this.storyboardManager.currentStoryboard)};
_.t(Ie,_.Mu);var L7U=function(r){r.ambientV2Container?HZ3(r):(_.e2(r.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+iZ2(r)+", "+RY7(r)+")"}),zYU()&&_.e2(r.container,"filter","blur("+_.Bw("cinematic_watch_css_filter_blur_strength",40)+"px)"))},HZ3=function(r){if(r.ambientV2Container){var f=r.playerApi.getVideoAspectRatio();
_.e2(r.container,{"aspect-ratio":""+f,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.e2(r.ambientV2Container,{"aspect-ratio":""+f,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+iZ2(r)+", "+RY7(r)+")"});zYU()&&_.e2(r.ambientV2Container,"filter","blur("+_.Bw("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
Ie.prototype.setFullscreen=function(r,f){this.fullscreen=r;this.theater=!!f;L7U(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),r=this.storyboardManager.currentStoryboard,vDp(this),r&&K76(this,r)};
Ie.prototype.addEventListeners=function(){var r=this,f=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(Y){j7V(r,Y)}),I=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){J0Y(r)});
this.addOnDisposeCallback(function(){r.storyboardManager.unsubscribeByKey(f);r.storyboardManager.unsubscribeByKey(I)});
if(this.ambientV2Container){var C=function(){HZ3(r)};
this.playerApi.addEventListener("onVideoDataChange",C);this.addOnDisposeCallback(function(){r.playerApi.removeEventListener("onVideoDataChange",C)})}};
var J0Y=function(r){if(!mws(r)){var f=r.storyboardManager.currentStoryboardSize;isNaN(f.width)||isNaN(f.height)||eY6(r,Number(f.width)+f5(r)*3*2,Number(f.height)+f5(r)*3*2)}},eY6=function(r,f,I){r.backCanvas.element.width=f;
r.backCanvas.element.height=I;r.frontCanvas.element.width=f;r.frontCanvas.element.height=I},mws=function(r){return r.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},j7V=function(r,f){var I=r.frontCanvas.element.getAnimations()[0];
I?(I.pause(),r.backCanvas.context.globalAlpha=Number(getComputedStyle(r.frontCanvas.element).opacity),r.frontCanvas.element.style.opacity="0",I.finish()):r.backCanvas.context.globalAlpha=1;r.backCanvas.context.drawImage(r.frontCanvas.element,0,0,r.backCanvas.element.width,r.backCanvas.element.height);vDp(r);f&&K76(r,f);f=f?r.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.Bw("cinematic_watch_fade_out_duration",500);I=_.Bw("cinematic_watch_transition_frame_rate")/1E3;var C=
{};I&&(C={easing:"steps("+Math.round(f*I)+")"});r.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:f,iterations:1},C));r.frontCanvas.element.style.opacity="1"},vDp=function(r){var f=r.ambientLightThemeEnabled,I=r.ambientLightThemeEnabled||r.ambientFullscreenEnabled&&!_.N("web_cinematic_fullscreen_v2");
r.frontCanvas.context.fillStyle=r.theater&&f||r.fullscreen&&I?"#000":"#0f0f0f";zYU()||(r.frontCanvas.context.filter="blur(0)");r.frontCanvas.context.fillRect(0,0,r.frontCanvas.element.width,r.frontCanvas.element.height)},K76=function(r,f){zYU()||(r.frontCanvas.context.filter="blur("+f5(r)+"px)");
r.frontCanvas.context.globalAlpha=_.Bw("cinematic_watch_effect_opacity",.4);var I={offsetX:f5(r)*3,offsetY:f5(r)*3,theater:r.theater,fullscreen:r.fullscreen};mws(r)&&(I.width=100,I.height=100);f.drawToCanvas(r.frontCanvas.context,I);r.frontCanvas.context.globalAlpha=1},f5=function(r){var f;
return(f=r.cinematicContainerRenderer.config.blurStrength)!=null?f:5},iZ2=function(r){var f,I;
if((r.fullscreen||r.theater)&&((f=r.cinematicContainerRenderer.config)==null?0:(I=f.watchFullscreenConfig)==null?0:I.colorSourceWidthMultiplier))return r.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var C;return(C=r.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?C:r.cinematicContainerRenderer.config.colorSourceSizeMultiplier},RY7=function(r){var f,I;
if((r.fullscreen||r.theater)&&((f=r.cinematicContainerRenderer.config)==null?0:(I=f.watchFullscreenConfig)==null?0:I.colorSourceHeightMultiplier))return r.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var C;return(C=r.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?C:r.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
Ie.prototype.disposeInternal=function(){_.Mu.prototype.disposeInternal.call(this);this.container.remove()};
Ie.prototype.clear=function(){j7V(this)};
Ie.prototype.pause=function(){this.storyboardManager.pause()};var y03;y03=_.de(function(){var r,f,I=!((f=(r=document.createElement("canvas")).getContext)==null||!f.call(r,"2d")),C;r=!((C=CSS)==null||!C.supports("filter: blur(0)"));C=!!Element.prototype.animate&&!!Element.prototype.getAnimations;f=_.N("web_cinematic_fullscreen")||_.N("web_cinematic_theater_mode")||_.N("web_cinematic_light_theme")||!1;var Y;return I&&r&&C&&(!f||!((Y=CSS)==null||!Y.supports("aspect-ratio: 1 / 1")))});
_.C5=function(r,f){_.QK.call(this);this.container=r;this.playerApi=f;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=Uw6(this);this.update()};
_.t(_.C5,_.QK);_.s7s=function(r){var f=document.documentElement.hasAttribute("dark");r.isDarkModeEnabled=f;r.update()};
_.OZV=function(r,f){r.settingEnabled=f;r.update()};
_.C5.prototype.setFullscreen=function(r,f){this.fullscreen=r;this.theater=!!f;this.update()};
_.oD6=function(r,f){r.cinematicContainerRenderer=f;r.cinematicContainerRenderer&&(r.cinematicsVe=_.pQ(r.isShorts()?227858:159022),_.Ia(_.IB(),r.cinematicsVe),r.loggingClientData={watchCinematicContainerData:{presentationStyle:r.cinematicContainerRenderer.presentationStyle}});r.update()};
_.C5.prototype.isShorts=function(){var r,f;return((r=this.cinematicContainerRenderer)==null?void 0:(f=r.config)==null?void 0:f.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.C5.prototype.isAllowed=function(){var r;if(r=y03()){var f,I,C;r=((I=this.cinematicContainerRenderer)==null?void 0:I.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((C=this.cinematicContainerRenderer)==null||!C.colorStore)||((f=this.cinematicContainerRenderer)==null?void 0:f.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(r)if(_.N("web_cinematics_pausing")){var Y,V;r=this.isDarkModeEnabled||!!((Y=this.cinematicContainerRenderer)==
null?0:(V=Y.config)==null?0:V.enableInLightTheme)}else{var S,h;Y=!!((S=this.cinematicContainerRenderer)==null?0:(h=S.config)==null?0:h.enableInLightTheme)&&(_.Lz("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);r=this.isDarkModeEnabled||Y}if(S=r){var w,n;S=!((n=(w=this.prefersReducedMotionQuery)==null?void 0:w.matches)!=null&&n)}return S};
_.C5.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var Uw6=function(r){if(!_.N("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var f=window.matchMedia("(prefers-reduced-motion: reduce)"),I=function(){r.update()};
f.addListener(I);r.addOnDisposeCallback(function(){f.removeListener(I)});
return f}};
_.C5.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var r=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new Ie(this.container,r,this.playerApi,this.isDarkModeEnabled),_.V$(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var f=this.currentCinematicEffect;f.cinematicContainerRenderer!==
r&&(f.cinematicContainerRenderer=r,F76(f.storyboardManager,r),L7U(f));r=_.xI();_.hZ(0,194,!0);r.save();r=_.t1();this.cinematicsVe&&r&&_.j_(r,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(r=_.t1(),this.cinematicsVe&&r&&_.HF(r,[this.cinematicsVe],!1,this.loggingClientData),_.Z8(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.OC.Object.defineProperties(_.C5.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var ovq;var QW1;_.wm({_template:function(){if(QW1!==void 0)return QW1;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=
r.content,I=f.insertBefore;ovq===void 0&&(ovq=document.createElement("template"));var C=ovq;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return QW1=r},
is:"tp-yt-iron-pages",behaviors:[_.Pq,_.TX],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var HOs;_.iOp=function(){if(_.N("kevlar_home_skeleton")&&!HOs){var r=document.querySelector("#home-page-skeleton");r&&(_.Xc("hgcr"),_.bE(r),HOs=!0)}};
HOs=!1;_.aS=new _.q("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var e5Y,Jx6,jg3,HSY,iSU,v_p,KkU,sg7,o_3,Qg6,OS7,yx3,U16,Gq1,kq1;_.m1d=function(r,f,I){f=f===void 0?5:f;if(f!==0){var C=typeof r==="function"?r():document.querySelector(r);C?(I==null?0:I.enableSmartFocus)?_.EEu(C):C.focus():setTimeout(function(){_.m1d(r,f-1,I)},500)}};
e5Y=function(r){return _.SS$(_.EGR(r&16777215))<.5};
Jx6=function(r,f,I){var C=I.minimumRowsOfVideosBetweenSections===void 0?1:I.minimumRowsOfVideosBetweenSections;return r<(I.minimumRowsOfVideosAtStart===void 0?2:I.minimumRowsOfVideosAtStart)||f!==null&&r-f<=C?!1:!0};
jg3=function(r,f){var I=0,C=0;r=_.E(r);for(var Y=r.next();!Y.done;Y=r.next()){var V=Y.value;if(V.richItemRenderer)V.richItemRenderer.rowIndex=C,V.richItemRenderer.colIndex=I++,I===f&&(I=0,C++);else if(V.richGroupRenderer&&V.richGroupRenderer.numColumns!==void 0)V.richGroupRenderer.rowIndex=C,V.richGroupRenderer.colIndex=I,I+=V.richGroupRenderer.numColumns,I===f&&(I=0,C++);else if(V.richSectionRenderer){var S=Y=void 0;if(V=_.F((Y=V)==null?void 0:(S=Y.richSectionRenderer)==null?void 0:S.content,_.gkg))V.rowIndex=
C++}}};
HSY=function(r,f){var I=f.contentElement;f=f.rendererToTagNameMap;if(I&&f&&f.size!==0){for(var C=new Map,Y=_.E(I.children),V=Y.next();!V.done;V=Y.next()){V=V.value;var S=V.tagName.toLowerCase(),h=C.get(S);h||(h=[],C.set(S,h));h.push(V)}if(C.size!==0)for(Y=Math.min(r.length,I.children.length),V=new Map,S=0;S<Y;S++){h=Object.keys(r[S])[0];h=f.get(h);if(!h)break;var w=V.get(h);w===void 0&&(w=0,V.set(h,w));var n=C.get(h);if(!n||w>=n.length)break;V.set(h,w+1);h=n[w];w=I.children[S];w!==h&&(_.bgc=!0,_.pT$.set(h,
!0),I.insertBefore(h,w),_.pT$.delete(h),_.bgc=!1)}}};
iSU=function(r,f,I,C,Y,V,S){C=C===void 0?{}:C;if(!r||!r.length)return[];r=r.slice();var h=[],w=[];Y=null;for(var n=0,d=function(v){w.sort(function(Z,Cw){return Cw.skippedOnRow-Z.skippedOnRow});
for(var O,k=(O=w.shift())==null?void 0:O.content;k;)!k.richSectionRenderer&&v||h.push(k),O=void 0,k=(O=w.shift())==null?void 0:O.content},z=[];r.length>0||w.length>0;){for(var g=[],X=f;X>0;){var P=void 0,W=void 0,m=(W=w[0]&&w[0].skippedOnRow<n?(P=w.shift())==null?void 0:P.content:void 0)!=null?W:r.shift();
if(!m)break;if(m.richItemRenderer)P=m.richItemRenderer.targetId,W=void 0,P&&((W=S)==null?0:W.has(P))&&z.push(S.get(P)),g.push(m),X--;else if(m.richGroupRenderer&&m.richGroupRenderer.numColumns!==void 0)m.richGroupRenderer.numColumns<=X?(g.push(m),X-=m.richGroupRenderer.numColumns):X===f&&m.richGroupRenderer.numColumns>f?(g.push({richGroupRenderer:Object.assign({},m.richGroupRenderer,{numColumns:f})}),X=0):w.push({content:m,skippedOnRow:n});else if(m.richSectionRenderer)if(Jx6(n,Y,C)&&X===f){h.push(m);
Y=n;n++;continue}else w.push({content:m,skippedOnRow:n});else if(m.continuationItemRenderer){d(!0);h.push(m);X=0;break}if(X===0)h.push.apply(h,_.Na(g));else if(!I&&r.length===0){d(!1);h.push.apply(h,_.Na(g));X=0;break}}n++;z=_.E(z);for(g=z.next();!g.done;g=z.next())h.push(g.value),n++;z=[]}jg3(h,f);V&&HSY(h,V);return h};
v_p=function(r){var f=r.data;var I=r.uniqueId;r=r.overrides;var C,Y=((C=f.timedAnimationData)==null?void 0:C.animationTiming)||[];return _.p("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.p(_.kql,{settings:{uniqueId:I,timings:Y,experimentEnabled:Y.length>0,enabled:Y.length>0}},R5V(f.buttonRenderer,{buttonRenderer:{buttonOverrides:r}})))};
KkU=function(r){return r.talkToRecs};
sg7=function(r,f){if(f){var I=_.K2().getState().entities.flowStateEntity,C=yx3(r),Y=[f];C&&C!==f&&Y.push(C);var V=!0,S;if(I&&r.flowStateEntityKey&&((S=I[r.flowStateEntityKey])==null?void 0:S.primaryButtonDisabled)!==void 0){var h;V=!((h=I[r.flowStateEntityKey])==null||!h.primaryButtonDisabled)}U16(r,C!=null?C:f,Y,V)}};
o_3=function(r){return _.wj(_.K2(),function(f){return f.entities.flowStateEntity},function(f,I){if(r.flowStateEntityKey){var C,Y=f==null?void 0:(C=f[r.flowStateEntityKey])==null?void 0:C.currentStepId,V;
I=I==null?void 0:(V=I[r.flowStateEntityKey])==null?void 0:V.currentStepId;V=_.K2().getState().talkToRecs;if(Y&&Y!==I){var S;f=(f==null?void 0:(S=f[r.flowStateEntityKey])==null?void 0:S.stepIdStack)||Object.keys(V.stepStates);S=!OS7(V==null?void 0:V.stepStates[Y]);U16(r,Y,f,S)}}})};
Qg6=function(r){return _.wj(_.K2(),KkU,function(f){var I=yx3(r);if(I){var C=Object.keys(f.stepStates);f=!OS7(f==null?void 0:f.stepStates[I]);U16(r,I,C,f)}})};
OS7=function(r){var f=Object.keys((r==null?void 0:r.selectionStates)||{}).reduce(function(V,S){return V||(r==null?void 0:r.selectionStates[S].isSelected)},!1),I,C,Y=!!(r==null?0:(I=r.userQuery)==null?0:(C=I.userQuery)==null?0:C.trim());
return f||Y};
yx3=function(r){if(r.flowStateEntityKey){var f,I,C=(f=_.K2().getState().entities.flowStateEntity)==null?void 0:(I=f[r.flowStateEntityKey])==null?void 0:I.currentStepId;if(C)return C}};
U16=function(r,f,I,C){_.K2().dispatch(_.hv("flowStateEntity",r.flowStateEntityKey,{currentStepId:f,stepIdStack:I,key:r.flowStateEntityKey,primaryButtonDisabled:C}))};
_.Axd=function(r,f){return _.f2(r.entities,"youchatPendingResponseEntity",f)};
_.ZS6=function(r){return function(f){_.eS(_.hv("youchatPendingResponseEntity",r,{entityKey:r,isPendingResponse:f}))}};
Gq1=function(r){r==null||r.addEventListener("DOMLoaded",function(){r.goToAndPlay(r.totalFrames-48,!0)})};var Bgs;_.wm({_template:function(){if(Bgs!==void 0)return Bgs;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
var f=r.content,I=f.insertBefore;kq1===void 0&&(kq1=document.createElement("template"));var C=kq1;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return Bgs=r},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var qyV=new _.q("talkToRecsFlowRenderer");var uLi=new _.q("flowRootRenderer");var D1q=new _.q("chipsShelfViewModel");var rXY=new _.q("horizontalShelfViewModel");_.fui=new _.q("engagementPanelSectionListRenderer");var IuY=new _.q("conversationResourceViewModel");var CL6=function(){this.horizontal=!1},YIp=function(r,f){r.horizontal=f};
CL6.prototype.position=function(r,f,I,C){C=C===void 0?1:C;r=this.delta(r)*C+f;C=Math.max(f,I);return r>=Math.min(f,I)&&r<=C?r:I};
CL6.prototype.axis=function(r){r=this.direction(r);return r==="up"||r==="down"?"Y":"X"};var Ym=function(r,f,I){f=f===void 0?_.I_():f;this.target=r;this.manager=f;this.touchAction=I;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Ym.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(_.Na(this.events)));for(var r=_.E(this.events),f=r.next();!f.done;f=r.next())this.listen(f.value)}};
Ym.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.Na(this.events)));for(var r=_.E(this.events),f=r.next();!f.done;f=r.next())this.unlisten(f.value)}};
Ym.prototype.listen=function(r){this.eventMap[r]&&this.target.addEventListener(r,this.eventMap[r])};
Ym.prototype.unlisten=function(r){this.eventMap[r]&&this.target.removeEventListener(r,this.eventMap[r])};var lj=function(){CL6.apply(this,arguments)};
_.t(lj,CL6);lj.prototype.direction=function(r){var f=r.detail;r=f.deltaY;f=f.deltaX;return r&&!this.horizontal?r>0?"down":"up":f&&this.horizontal?f>0?"right":"left":"none"};
lj.prototype.distance=function(r){return Math.abs(this.delta(r))};
lj.prototype.delta=function(r){var f=this.direction(r),I=r.detail;r=I.deltaX;I=I.deltaY;return f==="up"||f==="down"?I||0:r||0};
lj.prototype.velocity=function(r){var f=this.direction(r),I=r.detail;r=I.velocityX;I=I.velocityY;return Math.abs(f==="up"||f==="down"?I||0:r||0)};_.VN=function(r,f,I,C,Y,V){Y=Y===void 0?new lj:Y;V=V===void 0?_.I_():V;Ym.call(this,f,V,C);var S=this;this.element=r;this.target=f;this.config=I;this.input=Y;this.manager=V;this.events=["panstart","panmove","panend"];this.onPanStart=function(){S.config.draggingClass&&S.element.classList.add(S.config.draggingClass);S.config.startAction&&S.config.startAction()};
this.onPanMove=function(h){var w=lup(S,h);if(w){S.move(h,w);w.fade&&S.fade(h,w);var n=S.input.direction(h);w.moveAction&&w.moveAction(VU6(S,h,w),n)}};
this.onPanEnd=function(h){var w,n,d,z,g,X;return _.x(function(P){if(P.nextAddress==1){S.animationRequestId&&cancelAnimationFrame(S.animationRequestId);S.animationRequestId=void 0;w=lup(S,h);if(!w)return P.return();n=w;d=n.triggerAction;z=n.fade;g=n.disableFinish;X=n.translateBack;var W=S.input.velocity(h),m=S.input.distance(h),v=S.threshold(w);return W>.3&&m>10||m>v?g?P.jumpTo(6):z?_.b(P,E86(S,h),6):_.b(P,SIB(S,h,w),6):X?_.b(P,S.translateBack(h),3):P.jumpTo(3)}P.nextAddress!=3&&d&&d();S.config.draggingClass&&
S.element.classList.remove(S.config.draggingClass);S.reset();_.wO(P)})};
r=Object.keys(I.triggers);this.directions=new Set(r);YIp(this.input,this.directions.has("right")||this.directions.has("left"))};
_.t(_.VN,Ym);_.VN.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var lup=function(r,f){f=r.input.direction(f);return r.config.triggers[f]};
_.VN.prototype.move=function(r,f){var I=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var C=I.input.axis(r),Y=I.input.position(r,I.config.startPosition,f.endPosition,f.moveRatio||1);I.element.style.transform="translate"+C+"("+Y+"px)";I.animationRequestId=void 0}))};
var VU6=function(r,f,I){var C=I.moveRatio||1;I=Math.abs(r.config.startPosition-I.endPosition);return Math.min(r.input.distance(f)*C,I)/I};
_.VN.prototype.fade=function(r,f){var I=f.endOpacity;r=VU6(this,r,f);r>0&&(this.element.style.opacity=""+(((I||0)-1)*r+1))};
_.VN.prototype.threshold=function(r){return r.threshold?r.threshold:Math.abs(r.endPosition-this.config.startPosition)/3};
var SIB=function(r,f,I){var C,Y,V,S,h,w,n;return _.x(function(d){if(d.nextAddress==1)return C=r.input.delta(f)+r.config.startPosition,Y=r.input.axis(f),V=I,S=V.endPosition,h=V.transitionEndPosition,n=(w=h)!=null?w:S,_.b(d,r.element.animate([{transform:"translate"+Y+"("+C+"px)"},{transform:"translate"+Y+"("+n+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);r.element.style.transform="translate"+Y+"("+n+"px)";_.wO(d)})};
_.VN.prototype.translateBack=function(r){var f=this,I,C;return _.x(function(Y){if(Y.nextAddress==1){if(!f.element.style.transform)return Y.return();I=f.input.axis(r);C=f.config.startPosition;return _.b(Y,f.element.animate([{transform:f.element.style.transform},{transform:"translate"+I+"("+C+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}f.element.style.transform="translate"+I+"("+C+"px)";_.wO(Y)})};
var E86=function(r,f){var I,C,Y,V;return _.x(function(S){if(S.nextAddress==1)return I=r.input.delta(f)+r.config.startPosition,C=r.input.axis(f),Y=I+70,V=r.element.style.opacity===""?1:r.element.style.opacity,_.b(S,r.element.animate([{transform:"translate"+C+"("+I+"px)",opacity:V},{transform:"translate"+C+"("+Y+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);r.element.style.transform="translate"+C+"("+Y+"px)";r.element.style.opacity="0";_.wO(S)})};var EF=function(){var r=_.rm.apply(this,arguments)||this;r._noAccessors=!0;r.scrollRate=3;r.autoScrollAnimationStart=0;r.autoScrollPaused=!1;r.autoScrollRafId=0;return r};
_.t(EF,_.rm);_.l=EF.prototype;_.l.created=function(){var r=this;this.boundAutoScrollHandler=function(f){r.autoScroll(f)}};
_.l.detached=function(){this.hostElement.removeEventListener("mouseout",_.GF(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.GF(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.GF(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.l.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.GF(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.GF(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.GF(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.GF(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.GF(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.GF(this,this.endAutoScroll)),this.endAutoScroll())};
_.l.autoScroll=function(r){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=r);var f;if(f=!this.autoScrollPaused&&this.scrollTarget)f=this.scrollTarget,f=f.scrollHeight-f.scrollTop!==f.clientHeight;f&&(f=1E3/this.scrollRate,r-=this.autoScrollAnimationStart,r>f&&(this.scrollTarget.scrollTop+=Math.ceil(r/f),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)};
EF.prototype.autoScrollEnabledChanged=EF.prototype.autoScrollEnabledChanged;_.A([_.K(),_.B("design:type",Object)],EF.prototype,"scrollRate",void 0);_.A([_.K(),_.B("design:type",Object)],EF.prototype,"scrollTarget",void 0);_.A([_.K(),_.B("design:type",Boolean)],EF.prototype,"autoScrollEnabled",void 0);_.A([_.Bt("autoScrollEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EF.prototype,"autoScrollEnabledChanged",null);EF=_.A([_.fx()],EF);_.xf6=[EF.prototype];var hZs;var R5V=_.zk({buttonRenderer:_.mq});_.GL(v_p);_.Z5(v_p,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var S0=function(){var r=_.y.apply(this,arguments)||this;r.hideJoinButtonBeforeSubscribed=_.N("hide_join_button_before_subscribed");r.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return r};
_.t(S0,_.y);_.l=S0.prototype;
_.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 r,f;(r=_.e(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(f=r.polymerController)==null||f.set("overrides",this.joinButtonOverrides);if(r=_.e(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))r.overrides=this.joinButtonOverrides};
_.l.handleButtonRefreshAction=function(r){if(r=_.F(r,_.KtV))this.set("data.membershipButton",r.membershipButton),this.notifyPath("data.membershipButton")};
_.l.onYtServiceRequestError=function(r){_.tx(this.hostElement,r.detail.error.message)};
_.l.handleUnsubscribeAction=function(){var r,f,I;((r=this.data)==null?void 0:(f=r.membershipButton)==null?void 0:(I=f.buttonRenderer)==null?void 0:I.style)==="STYLE_PRIMARY"&&_.e(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.OC.Object.defineProperties(S0.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.subscriptionStateEntity)==null||!r.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var r,f=(r=this.data)==null?void 0:r.membershipButton,I;r=(f==null?void 0:f.buttonRenderer)||_.F(f==null?void 0:(I=f.timedAnimationButtonRenderer)==null?void 0:I.buttonRenderer,_.Ll);return(r==null?void 0:r.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(r==null?void 0:r.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(r==null?void 0:r.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
S0.prototype.onYtServiceRequestError=S0.prototype.onYtServiceRequestError;S0.prototype.updateJoinButtonOverrides=S0.prototype.updateJoinButtonOverrides;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],S0.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],S0.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.PH),_.B("design:type",Object)],S0.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],S0.prototype,"data",void 0);_.A([_.R("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],S0.prototype,"hideJoin",null);_.A([_.K(),_.B("design:type",String)],S0.prototype,"subscribeKey",void 0);_.A([_.K({selectorArgs:["subscribeKey"],selector:_.qm}),_.B("design:type",Object)],S0.prototype,"subscriptionStateEntity",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],S0.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.A([_.R("subscriptionStateEntity"),_.K({reflectToAttribute:!0}),_.B("design:type",Object),_.B("design:paramtypes",[])],S0.prototype,"subscribed",null);_.A([_.R("subscribed","data.membershipButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],S0.prototype,"joinButtonOverrides",null);
_.A([_.Bt("joinButtonOverrides"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],S0.prototype,"updateJoinButtonOverrides",null);_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],S0.prototype,"onYtServiceRequestError",null);S0=_.A([_.U({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],S0);
_.os()(S0,"ytd-video-owner-renderer",function(){if(hZs===void 0){var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);hZs=r}r=hZs;return r},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});var wfi;var xm=function(){var r=_.y.apply(this,arguments)||this;r.buttonUpdate=_.N("web_button_rework");r.dismissButtonOverrides=_.N("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;r.forceDarkTheme=!1;r.forceLightTheme=!1;r.dynamicTextHeight=94;r.hasOverflowButton=!1;r.isInfeedModernization=!1;return r};
_.t(xm,_.y);_.l=xm.prototype;_.l.computeUrlImg=function(r){if(r)return _.U6(r.thumbnails)};
_.l.getLogoHeight=function(r){return this.logoWithPadding(r)?"31":"24"};
_.l.getLogoClassName=function(r){return this.logoWithPadding(r)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.l.logoWithPadding=function(r){var f,I;return(r=(f=r.thumbnails)==null?void 0:(I=f[0])==null?void 0:I.height)&&r%31===0?!0:!1};
_.l.sendImpressionEndpoints=function(r){r.impressionEndpoints&&_.Do(this.hostElement,r.impressionEndpoints)};
_.l.observeBasicPalette=function(){var r,f,I=(r=this.data)==null?void 0:(f=r.colorData)==null?void 0:f.basicColorPaletteData;I?_.zY(this.hostElement,I):_.zY(this.hostElement,{})};
_.l.observeDataChanged=function(){var r;this.dynamicTextHeight=((r=this.data)==null?0:r.supplementalText)?74:94;var f;this.hasSupplementalText=!((f=this.data)==null||!f.supplementalText);if(_.N("web_button_rework")){var I,C,Y,V;r=(I=this.data)==null?void 0:(C=I.actionButton)==null?void 0:(Y=C.buttonRenderer)==null?void 0:(V=Y.colorData)==null?void 0:V.basicColorPaletteData;var S,h,w;if(!((S=this.data)==null?0:(h=S.actionButton)==null?0:(w=h.buttonRenderer)==null?0:w.style)&&r){this.computeIsInfeedModernization(this.data)||
(r.borderColor=r.foregroundTitleColor);var n,d;this.set("data.actionButton.buttonRenderer",_.X0.unsafeClone((n=this.data)==null?void 0:(d=n.actionButton)==null?void 0:d.buttonRenderer))}}};
_.l.observeDataForCounterfactual=function(){if(_.N("kevlar_banner_cf_extra_logging")){var r;((r=this.data)==null?0:r.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.l.computeSupplementalStyle=function(){var r;if((r=this.data)!=null&&r.supplementalText){var f,I,C;if((f=this.data)==null?0:(I=f.colorData)==null?0:(C=I.basicColorPaletteData)==null?0:C.foregroundActivatedColor)return r=_.MG(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+r+"; --yt-endpoint-hover-color:"+r+"; --yt-endpoint-visited-color:"+r+"; --yt-formatted-string-bold-font-weight:700;"}};
_.l.computeForcedDarkTheme=function(){var r,f,I,C=(r=this.data)==null?void 0:(f=r.actionButton)==null?void 0:(I=f.buttonRenderer)==null?void 0:I.style,Y,V,S;r=e5Y(((Y=this.data)==null?void 0:(V=Y.colorData)==null?void 0:(S=V.basicColorPaletteData)==null?void 0:S.backgroundColor)||0);return C&&r};
_.l.computeForcedLightTheme=function(){var r,f,I,C=(r=this.data)==null?void 0:(f=r.actionButton)==null?void 0:(I=f.buttonRenderer)==null?void 0:I.style,Y,V,S;r=!e5Y(((Y=this.data)==null?void 0:(V=Y.colorData)==null?void 0:(S=V.basicColorPaletteData)==null?void 0:S.backgroundColor)||0);return C&&r};
_.l.computeHasOverflowButton=function(r){return!!r.overflowButton};
_.l.computeHasTitle=function(r){return!!r.title};
_.l.computeTitleMaxFontSize=function(r){return this.computeHasOverflowButton(r)?28:64};
_.l.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.l.computeIsInfeedModernization=function(){var r,f,I,C,Y=(r=this.data)==null?void 0:(f=r.actionButton)==null?void 0:(I=f.buttonRenderer)==null?void 0:(C=I.colorData)==null?void 0:C.basicColorPaletteData;return(Y==null?void 0:Y.backgroundColor)===452984831||(Y==null?void 0:Y.backgroundColor)===218103808};
xm.prototype.observeDataForCounterfactual=xm.prototype.observeDataForCounterfactual;xm.prototype.observeDataChanged=xm.prototype.observeDataChanged;xm.prototype.observeBasicPalette=xm.prototype.observeBasicPalette;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],xm.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.J(_.mB.YtdGuideStateAwareBehavior),_.B("design:type",Object)],xm.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],xm.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],xm.prototype,"buttonUpdate",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],xm.prototype,"hasSupplementalText",void 0);_.A([_.K(),_.B("design:type",Object)],xm.prototype,"dismissButtonOverrides",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.B("design:type",Boolean)],xm.prototype,"hasTitle",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.B("design:type",Object)],xm.prototype,"forceDarkTheme",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.B("design:type",Object)],xm.prototype,"forceLightTheme",void 0);_.A([_.K(),_.B("design:type",Object)],xm.prototype,"dynamicTextHeight",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.B("design:type",Object)],xm.prototype,"hasOverflowButton",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.B("design:type",Object)],xm.prototype,"isInfeedModernization",void 0);_.A([_.Bt("data.colorData.basicColorPaletteData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xm.prototype,"observeBasicPalette",null);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xm.prototype,"observeDataChanged",null);_.A([_.Bt("data.isVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xm.prototype,"observeDataForCounterfactual",null);xm=_.A([_.U({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],xm);
_.Q(xm,"ytd-banner-promo-renderer",function(){if(wfi!==void 0)return wfi;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return wfi=r},{mode:1});var bOY;var pfY;var n8i;var hl=function(){return _.y.apply(this,arguments)||this};
_.t(hl,_.y);_.A([_.K(),_.B("design:type",Object)],hl.prototype,"data",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],hl.prototype,"ytRendererBehavior",void 0);hl=_.A([_.U({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],hl);
_.Q(hl,"ytd-hashtag-grid-tile-renderer",function(){if(n8i!==void 0)return n8i;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return n8i=r},{mode:1});var w0=function(){return _.y.apply(this,arguments)||this};
_.t(w0,_.y);w0.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
w0.prototype.updateRichGridTrendingHashtagsVisibility=function(){var r,f;if(((r=this.data)==null||!r.isExpanded)&&(f=this.data)!=null&&f.tiles){r=this.data.tiles.length;f=r>this.richGridItemsPerRow?this.richGridItemsPerRow+1:r;var I=Math.ceil(r/f);this.fullyVisibleRows=r%f===1&&I===2?1:Math.min(I,2);this.isShowMoreVisible=this.fullyVisibleRows<I}};
w0.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
w0.prototype.updateRichGridTrendingHashtagsVisibility=w0.prototype.updateRichGridTrendingHashtagsVisibility;_.A([_.K(),_.B("design:type",Object)],w0.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Number)],w0.prototype,"fullyVisibleRows",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],w0.prototype,"isShowMoreVisible",void 0);_.A([_.K({selector:_.XN,value:0}),_.B("design:type",Number)],w0.prototype,"richGridItemsPerRow",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],w0.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],w0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],w0.prototype,"ytdReduxBehavior",void 0);_.A([_.Bt("data","richGridItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],w0.prototype,"updateRichGridTrendingHashtagsVisibility",null);
w0=_.A([_.U({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],w0);
_.Q(w0,"ytd-hashtag-grid-shelf-renderer",function(){if(pfY!==void 0)return pfY;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return pfY=r},{mode:1});var dfi;var zZV;var bj=function(){var r=_.y.apply(this,arguments)||this;r.visibleVideos=[];r.hiddenVideos=[];r.modern=_.N("web_modern_buttons");r.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return r};
_.t(bj,_.y);_.l=bj.prototype;_.l.attached=function(){var r=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",r);this.onDarkModeToggledAction(r)};
_.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 r=this;this.requestElementsPerRow();var f,I;this.currentColorPalette=this.isDarkTheme?(f=this.data)==null?void 0:f.darkColorData:(I=this.data)==null?void 0:I.lightColorData;var C;if((C=this.currentColorPalette)==null?0:C.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.UC(this,function(){r.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(r){return r};
_.l.onDarkModeToggledAction=function(r){r!==this.isDarkTheme&&this.set("isDarkTheme",r);this.data&&(this.currentColorPalette=r?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.l.getCurrentLogo=function(r,f){if(r)return f?r.darkLogoImage:r.lightLogoImage};
_.l.computeTitleStyle=function(r){var f;if((f=this.data)!=null&&f.title&&r&&r.textPrimary!==void 0)return"color:"+_.MG(r.textPrimary)+";"};
_.l.computeSubtitleStyle=function(r){var f;if((f=this.data)!=null&&f.subtitle&&r&&r.textSecondary!==void 0)return"color:"+_.MG(r.textSecondary)+";"};
_.l.computeDismissIconStyle=function(r){if(this.data&&this.data.dismissButton&&r&&r.textPrimary!==void 0)return"--yt-button-color:"+_.MG(r.textPrimary)+";"};
_.l.computeOverflowButtonStyle=function(r){if(this.data&&this.data.overflowButton&&r&&r.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.MG(r.textPrimary)+";--yt-spec-icon-active-other:"+_.MG(r.textPrimary)+";"};
_.l.computeBackgroundStyle=function(r){if(r&&this.data){var f="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var I=_.U6((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);I&&(f+='background-image:url("'+I+'");')}r.backgroundColor!==void 0&&(f+="background-color:"+_.g_(r.backgroundColor)+";");return f}};
_.l.computeButton=function(){var r,f=Object.assign({},_.F((r=this.data)==null?void 0:r.showMoreButton,_.Ll));if(this.modern&&f){f.style="STYLE_MONO_OUTLINE";var I;if(r=(I=this.currentColorPalette)==null?void 0:I.textPrimary)f.colorData={basicColorPaletteData:{foregroundTitleColor:r,borderColor:r}}}return f};
_.l.shouldShowBottomButton=function(r,f){return!(r==null?0:r.header)&&!(r==null||!r.primaryButton)&&f<3};
_.l.checkExpanded=function(r){this.isExpanded=r&&r.content?this.hiddenVideos.length===0:!0};
_.l.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.l.getLogoHeight=function(r){return this.logoWithPadding(r)?"26":"20"};
_.l.getLogoImageId=function(r){return this.logoWithPadding(r)?"logo-image-with-padding":"logo-image"};
_.l.computeHasSectionHeader=function(r){return!!r.header};
_.l.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var r;if((r=this.data.primaryButton)==null?0:r.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 f;((f=this.data.dismissButton)==null?0:f.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var I,C;((I=this.data)==null?0:(C=I.primaryButton)==null?0:C.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.l.setVisibleVideos=function(r){if(this.data&&this.data.content)if(this.data.content.length){var f=this.data.content.length;this.data.header?r?(this.visibleVideos=this.data.content.slice(0,Math.min(f,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(f,this.slimItemsPerRow),f)):(this.visibleVideos=this.data.content.slice(0,Math.min(f,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(f,this.elementsPerRow),f)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(f,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(f,this.elementsPerRow),f)):(this.visibleVideos=this.data.content.slice(0,Math.min(f,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(f,this.elementsPerRow-1),f))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.l.setHasMovieRenderer=function(){var r;if((r=this.data)!=null&&r.content){var f;this.hasMovieRenderer=!!_.F((f=this.data)==null?void 0:f.content[0],_.ZV_)}else this.hasMovieRenderer=!1};
_.l.requestElementsPerRow=function(){_.kA(this.hostElement,"yt-request-elements-per-row")};
_.l.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var r=_.E(this.hiddenMediaRenderers),f=r.next();!f.done;f=r.next())f.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(r=_.e(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&r.focus()}};
_.l.updateTitleSpec=function(){var r;(r=this.data)!=null&&r.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.l.logoWithPadding=function(r){var f,I,C;return(r=(f=this.getCurrentLogo(r,this.isDarkTheme))==null?void 0:(I=f.thumbnails)==null?void 0:(C=I[0])==null?void 0:C.height)&&r%31===0?!0:!1};
_.l.onUpdateElementsPerRowAction=function(r,f,I){r&&this.elementsPerRow!==r&&(this.elementsPerRow=r);I&&this.slimItemsPerRow!==I&&(this.slimItemsPerRow=I)};
bj.prototype.slimItemsPerRowChanged=bj.prototype.slimItemsPerRowChanged;bj.prototype.elementsPerRowChanged=bj.prototype.elementsPerRowChanged;bj.prototype.dataChanged=bj.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],bj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],bj.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],bj.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],bj.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],bj.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],bj.prototype,"currentColorPalette",void 0);_.A([_.K(),_.B("design:type",Array)],bj.prototype,"visibleVideos",void 0);_.A([_.K(),_.B("design:type",Array)],bj.prototype,"hiddenVideos",void 0);
_.A([_.K(),_.B("design:type",Object)],bj.prototype,"primaryButton",void 0);_.A([_.K({reflectToAttribute:!0,value:3}),_.B("design:type",Number)],bj.prototype,"elementsPerRow",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],bj.prototype,"isDarkTheme",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],bj.prototype,"isExpanded",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],bj.prototype,"largeTitle",void 0);
_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],bj.prototype,"hasMovieRenderer",void 0);_.A([_.K(),_.B("design:type",Number)],bj.prototype,"slimItemsPerRow",void 0);_.A([_.K(),_.B("design:type",Boolean)],bj.prototype,"showLightVideoMetadata",void 0);_.A([_.K(),_.B("design:type",Boolean)],bj.prototype,"showDarkVideoMetadata",void 0);_.A([_.K(),_.B("design:type",Number)],bj.prototype,"videoMetadataColor",void 0);
_.A([_.K({reflectToAttribute:!0,selector:_.ar}),_.B("design:type",Boolean)],bj.prototype,"miniMode",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.B("design:type",Boolean)],bj.prototype,"isFirstFeedItem",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.B("design:type",Boolean)],bj.prototype,"hasSectionHeader",void 0);
_.A([_.K({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],bj.prototype,"roundedContainer",void 0);_.A([_.Dh("#visible-video-container ytd-rich-grid-media"),_.B("design:type",Array)],bj.prototype,"visibleMediaRenderers",void 0);_.A([_.Dh("#hidden-video-container ytd-rich-grid-media"),_.B("design:type",Array)],bj.prototype,"hiddenMediaRenderers",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],bj.prototype,"modern",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bj.prototype,"dataChanged",null);_.A([_.Bt("elementsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bj.prototype,"elementsPerRowChanged",null);_.A([_.Bt("slimItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bj.prototype,"slimItemsPerRowChanged",null);
bj=_.A([_.U({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],bj);
_.Q(bj,"ytd-brand-video-shelf-renderer",function(){if(zZV!==void 0)return zZV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return zZV=r},{mode:1});var MU6;var pR=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return r};
_.t(pR,_.y);_.l=pR.prototype;_.l.attached=function(){var r=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",r);this.onDarkModeToggledAction(r)};
_.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 r,f;this.currentColorPalette=this.isDarkTheme?(r=this.data)==null?void 0:r.darkColorData:(f=this.data)==null?void 0:f.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.l.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.l.computeIsFirstFeedItem=function(r){return r};
_.l.onDarkModeToggledAction=function(r){r!==this.isDarkTheme&&this.set("isDarkTheme",r);this.data&&(this.currentColorPalette=r?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(r),this.updateButtonPalette())};
_.l.shouldShowThumbnailInMetadata=function(r){return r<=1};
_.l.computeVideoMetadataColor=function(){if(this.data){var r;if((r=this.currentColorPalette)==null?0:r.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.l.computeTitleStyle=function(r){var f;if((f=this.data)!=null&&f.title&&r&&r.textPrimary!==void 0)return"color:"+_.MG(r.textPrimary)+";"};
_.l.computeSubtitleStyle=function(r){var f;if((f=this.data)!=null&&f.subtitle&&r&&r.textSecondary!==void 0)return"color:"+_.MG(r.textSecondary)+";"};
_.l.computeOverflowButtonStyle=function(r){var f;if(this.data&&this.data.overflowButton&&(r==null?0:(f=r.dismissButtonColorData)==null?0:f.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.MG(r.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.MG(r.dismissButtonColorData.foregroundTitleColor)+";"};
_.l.computeBackgroundStyle=function(r){if(r&&this.data){var f="";r.backgroundColor!==void 0&&(f+="background-color:"+_.g_(r.backgroundColor)+";");return f}};
_.l.computeHasOverflowButton=function(r){return!!r.overflowButton};
_.l.updateButtonPalette=function(){if(this.data){var r;if((r=this.data.primaryButton)==null?0:r.buttonRenderer){var f;if((f=this.currentColorPalette)==null?0:f.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var I;((I=this.currentColorPalette)==null?0:I.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(){_.kA(this.hostElement,"yt-request-elements-per-row")};
_.l.updateTitleSpec=function(){var r;(r=this.data)!=null&&r.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(r){r&&this.elementsPerRow!==r&&(this.elementsPerRow=r)};
pR.prototype.elementsPerRowChanged=pR.prototype.elementsPerRowChanged;pR.prototype.dataChanged=pR.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],pR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],pR.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],pR.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],pR.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],pR.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],pR.prototype,"currentColorPalette",void 0);_.A([_.K(),_.B("design:type",Object)],pR.prototype,"primaryButton",void 0);
_.A([_.K({reflectToAttribute:!0,value:3}),_.B("design:type",Number)],pR.prototype,"elementsPerRow",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],pR.prototype,"isDarkTheme",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],pR.prototype,"titleSize",void 0);_.A([_.K(),_.B("design:type",Number)],pR.prototype,"videoMetadataColor",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.ar}),_.B("design:type",Boolean)],pR.prototype,"miniMode",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.B("design:type",Boolean)],pR.prototype,"isFirstFeedItem",void 0);_.A([_.K({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],pR.prototype,"roundedContainer",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.B("design:type",Boolean)],pR.prototype,"hasOverflowButton",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pR.prototype,"dataChanged",null);_.A([_.Bt("elementsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pR.prototype,"elementsPerRowChanged",null);pR=_.A([_.U({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],pR);
_.Q(pR,"ytd-brand-video-singleton-renderer",function(){if(MU6!==void 0)return MU6;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return MU6=r},{mode:_.QQ("kevlar_poly_si_batch_j070")?1:2});var g8d;var aud=_.Hc(function(r){var f=r.data;return _.p(_.J3,{data:function(){return f().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(f().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var I=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":I=88;break a;default:I=88}return I},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return f().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"bi"),NZU=_.Hc(function(r){var f=r.metadataRow;
var I=r.delimiter;return _.p(_.pz,{each:function(){return f().textParts||[]},
keyBy:"INDEX"},function(C,Y){return _.p(_.B9,null,_.p(_.wW,{text:C,noWrap:!0,userInput:!0}),_.p(Xf6,{delimiter:I,max:function(){return f().textParts.length},
index:Y}))})},"ci"),Xf6=_.Hc(function(r){var f=r.delimiter;
var I=r.max;var C=r.index;return _.p(_.M,{cond:function(){return(f==null?void 0:f())&&I()-1>C()},
then:function(){return _.p("span",null,f)}})},"di"),$fU=_.Hc(function(r){var f=r.data;
r={};return _.p("yt-profile-page-header-information-view-model",{class:_.qd("profile-page-header-information-view-model-wiz",(r["profile-page-header-information-view-model-wiz--mobile"]=!1,r))},_.p(_.M,{cond:function(){return f().onTap},
then:function(){return _.p(_.h8,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.aB(f().onTap)}},_.p(_.X1,{data:function(){return f().thumbnail}},{profilePageHeaderThumbnailViewModel:aud}))},
else:function(){return _.p("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.p(_.X1,{data:function(){return f().thumbnail}},{profilePageHeaderThumbnailViewModel:aud}))}}),_.p("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.p(_.M,{cond:function(){return f().onTap},
then:function(){return _.p(_.X1,{data:function(){return f().title}},{profilePageHeaderTitleViewModel:function(I){var C=I.data;
return _.p(_.h8,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.aB(C().onTap)}},_.p(_.wW,{text:function(){return C().title}}))}})},
else:function(){return _.p(_.X1,{data:function(){return f().title}},{profilePageHeaderTitleViewModel:function(I){var C=I.data;
return _.p(_.wW,{text:function(){return C().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.p(_.X1,{data:function(){return f().metadata}},{profilePageHeaderMetadataViewModel:function(I){var C=I.data;
return _.p(_.M,{cond:function(){return C().metadataRows},
then:function(Y){return _.p("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.p(_.pz,{each:Y,keyBy:"INDEX"},function(V,S){return _.p(_.B9,null,_.p(NZU,{metadataRow:V,delimiter:" \u2022 "}),_.p(Xf6,{delimiter:" \u2022 ",max:function(){return Y().length},
index:S}))}))}})}})))},"ei");
$fU.idomCompat=!0;_.Kv($fU,"yt-profile-page-header-information-view-model",{props:{data:_.jv}});var nR=function(){return _.y.apply(this,arguments)||this};
_.t(nR,_.y);nR.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],nR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],nR.prototype,"data",void 0);nR=_.A([_.U({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],nR);
_.Q(nR,"ytd-effect-pivot-header-view-model",function(){if(g8d!==void 0)return g8d;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return g8d=
r},{mode:1});var Fp3;var d0=function(){return _.y.apply(this,arguments)||this};
_.t(d0,_.y);d0.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],d0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],d0.prototype,"data",void 0);d0=_.A([_.U({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],d0);
_.Q(d0,"ytd-source-pivot-header-renderer",function(){if(Fp3!==void 0)return Fp3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Fp3=r},{mode:1});_.PLs=_.Hc(function(r){var f=r.data;r=_.yy();_.KF(r,function(){return f().rendererContext});
var I=function(){var C;return _.RK((C=f())==null?void 0:C.rendererContext)};
return _.p("content-list-item-view-model",{el:r,class:"ytContentListItemViewModelHost",role:function(){return I()?"listitem":void 0},
tabindex:function(){return I()?0:void 0}},_.p("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.p("div",{class:"ytContentListItemViewModelImageContainer"},_.p(_.M,{cond:function(){return f().image},
then:function(C){return _.p(_.J3,{data:C,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.p(_.X1,{data:function(){var C;
return(C=f())==null?void 0:C.avatar}},{avatarViewModel:_.$U})),_.p("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.p("div",{class:"ytContentListItemViewModelTitle"},_.p(_.wW,{text:function(){return f().title}})),_.p("div",{class:"ytContentListItemViewModelMetadata"},_.p(_.X1,{data:function(){return f().metadata}},{contentMetadataViewModel:function(C){return _.p(_.Z4V,{data:C.data,
layout:1})}})))),_.p("div",{class:"ytContentListItemViewModelActionButton"},_.p(_.X1,{data:function(){var C;
return(C=f())==null?void 0:C.actionButton}},{buttonViewModel:_.LF,
toggleButtonViewModel:_.F1})))},"fi");_.Kv(_.Hc(function(r){var f={},I={},C={},Y={};return _.p("yt-card-view-model",{class:_.qd("ytCardViewModelHost",r.className,(f.ytCardViewModelOutline=function(){return r.data().cardStyle==="CARD_STYLE_OUTLINE"},f),(I.ytCardViewModelRaised=function(){return r.data().cardStyle==="CARD_STYLE_RAISED"||r.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},I),(C.ytCardViewModelTonal=function(){return r.data().cardStyle==="CARD_STYLE_TONAL"},C),(Y.ytCardViewModelInverted=function(){return r.data().cardStyle===
"CARD_STYLE_INVERSE"},Y))},_.p(_.X1,{data:function(){return r.data().background}},{cinematicContainerViewModel:function(V){return _.p(_.UYX,{data:V.data})}}),_.p("div",{class:"ytCardViewModelContentWrapper"},_.p(_.X1,{data:function(){return r.data().content}},{contentListItemViewModel:function(V){return _.p(_.PLs,{data:V.data})}})),_.p(_.X1,{data:function(){return r.data().dismissAction}},{buttonViewModel:function(V){return _.p(_.LF,{data:V.data})}}))},"gi"),"yt-card-view-model",{props:{data:_.jv,
className:_.jv}});_.Kv(_.Hc(function(r){var f=function(){return _.F(r.data().flowRoot,uLi)};
_.$E(function(){var I=f(),C=function(){},Y=function(){};
if(I){var V,S,h=(S=_.F((V=I.steps)==null?void 0:V[0],_.Wb1))==null?void 0:S.stepId;sg7(I,h||"");C=o_3(I);Y=Qg6(I)}_.$L(function(){C();C=function(){};
Y();Y=function(){}})});
return _.p("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.p(_.uUT,{contentId:function(){return r.data().contentId}},function(){return _.p("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.p(_.M,{cond:f,
then:function(I){return _.p(_.MhY,{data:I})}}))}))},"hi"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.jv}});_.Kv(_.Hc(function(){return _.p("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.p("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.p("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.p(_.YjB,null)),_.p(_.fZ4,{data:{rows:1},isExploreHub:!0}))},"ii"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.Kv(_.Hc(function(r){var f=r.data;var I=r.standardUnitMinWidth;r=_.yy();var C=_.E((0,_.lZ_)(f)),Y=C.next().value,V=C.next().value,S=function(){var w,n=(w=Y())==null?void 0:w.contents;return n==null||n.length===0},h=function(){V(Object.assign({},Y(),{contents:[]}))};
_.ZW(r,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var w=_.F(f().chipsShelf,D1q);if(w!=null&&w!=null&&w.autoselectChipOnVisible){var n,d,z=_.F(w==null?void 0:(n=w.contents)==null?void 0:n[(d=w.autoselectedChipIndex)!=null?d:0],_.j8);z&&z.tapCommand&&_.F2(z.tapCommand)}}});
return _.p("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:r},_.p(_.uUT,{contentId:function(){return f().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.p("div",null,_.p("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.p(_.X1,{data:function(){return f().header}},{sectionHeaderViewModel:function(w){return _.p(_.BA,{data:w.data,
disableHorizontalPadding:!0})}})),_.p("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.p(_.X1,{data:function(){return f().chipsShelf}},{chipsShelfViewModel:function(w){return _.p(_.l7B,{data:w.data,
callback:h,enableSingleChipSelection:!0})}})),_.p("div",null,_.p(_.M,{cond:S,
then:function(){return _.p("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.p(_.fZ4,{data:{rows:1},isExploreHub:!0}))}}),_.p(_.X1,{data:function(){var w;
return(w=Y())==null?void 0:w.contents}},{richShelfRenderer:function(w){return _.p(_.Y3D,{data:w.data,
isInnerShelf:!0,standardUnitMinWidth:I})}})))}))},"ji"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.jv,
standardUnitMinWidth:_.jv}});var zm=function(){return _.y.apply(this,arguments)||this};
_.t(zm,_.y);
zm.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}}};
zm.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.A([_.J(_.PH),_.B("design:type",Object)],zm.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],zm.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.cg),_.B("design:type",Object)],zm.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],zm.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],zm.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Number)],zm.prototype,"standardUnitMinWidth",void 0);zm=_.A([_.U({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],zm);
_.Q(zm,"ytd-rich-section-renderer",function(){if(dfi!==void 0)return dfi;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return dfi=r},{mode:_.QQ("kevlar_poly_si_batch_j029")?
1:2});_.Kv(_.AR1,"yt-profile-identity-info-view-model",{props:{data:_.jv,hideDivider:_.jv}});_.Kv(_.urq,"yt-page-header-view-model",{props:{data:_.jv,noPadding:_.jv,enableBanner:_.jv,cinematicContainerTopbarOffset:_.jv,allowCinematicContainerOverflow:_.jv,displayAsSidebar:_.jv,displayAsPanel:_.jv}});_.Kv(_.Hc(function(r){var f=r.data;var I=function(){var Y;return(Y=f().numColumns)!=null?Y:2},C=function(){return I()>1?3:2};
r={};return _.p("ytd-rich-grid-group",{class:_.qd("ytdRichGridGroupHost",(r.ytdRichGridGroupHostFirstColumn=function(){return f().colIndex===0},r)),
style:_.lB({"--ytd-rich-grid-group-num-columns":I,"--ytd-rich-grid-items-per-group":C})},_.p("div",{class:"ytdRichGridGroupContents"},_.p(_.X1,{data:function(){var Y;return(Y=f().contents)==null?void 0:Y.slice(0,C())}},{richItemRenderer:function(Y){return _.p(_.IgU,{data:Y.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"ki"),"ytd-rich-grid-group",{props:{data:_.jv}});var Mg=function(){var r=_.y.apply(this,arguments)||this;r.resizeOnObserverInit=!1;r.isInlinePreviewDisabled=_.N("web_disable_inline_preview");r.disableStickyFilterBar=!1;r.transparentBackgroundChipsBar=!1;r.hideChipsBar=!1;r.isWatchDefaultLayout=!0;r.continuationShowButton=!1;r.rowReducedHorizontalMargin=!1;r.useCompactList=!1;r.manualDownloadsPresent=!1;r.smartDownloadsPresent=!1;r.shouldRenderDownloadsBanner=!1;r.hasOptedIntoSmartDownloads=!1;r.elementsPerRow=4;r.typographyBump=!1;r.showGnomeContents=
!1;r.showExploreHubContents=!1;r.slimItemsPerRow=1;r.pageLoadingFromNavigation=!1;r.loggingRefactor=_.N("kevlar_rich_grid_logging_fix");r.resizeObserver=null;r.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"};r.rendererToTagNameMap=
new Map(Object.entries(r.contentMapping()).map(function(f){var I=_.E(f);f=I.next().value;I=I.next().value;return[f,I.component]}));
r.insertedContent=new Map;return r};
_.t(Mg,_.y);_.l=Mg.prototype;_.l.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var r=_.E(_.e(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),f=r.next();!f.done;f=r.next())f.value.useCompactList=this.useCompactList};
_.l.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var r=_.E(_.e(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),f=r.next();!f.done;f=r.next())f=f.value,f.sizing=this.sizing,f.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",_.GF(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.Gk(this.resizeObserved,_.Bw("rich_grid_resize_delay_ms",50),this)};
_.l.detached=function(){var r;(r=this.resizeObserver)==null||r.disconnect();document.removeEventListener("yt-page-type-changed",_.GF(this,this.onPageChange))};
_.l.insertRichSection=function(r){var f=r.richItemTargetId;r=r.richSectionRendererToInsert;f&&r&&(this.insertedContent.set(f,r),this.reflowContent())};
_.l.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.l.computeIsInlinePreviewEnabled=function(r,f,I){return _.N("web_disable_inline_preview")?!1:!I&&_.gLB({miniplayerIsActive:r,miniplayerPlaybackState:f})};
_.l.computeSizing=function(){var r=_.VxB(this.data);if(r||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return r?this.useCompactList?"COMPACT":r:this.miniMode?"COMPACT":_.N("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.l.updateItemMinAndMaxWidth=function(){var r=_.Bw("rich_grid_max_item_width",500);r>0&&_.Zh(this.hostElement,{"--ytd-rich-grid-item-max-width":r+"px"});var f;r=this.getRichItemMinWidth((f=this.hostElement)==null?void 0:f.clientWidth);r>0&&_.Zh(this.hostElement,{"--ytd-rich-grid-item-min-width":r+"px"})};
_.l.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.l.resizeObserved=function(){_.qy(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.l.navigateBackToHome=function(){_.N("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.N("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var r=_.a().resolve(_.y2).isOnWatch(),f,I=((f=_.CJ(location.pathname))==null?void 0:f.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(I)||r)&&this.gnomeContents&&_.N("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);r&&this.exploreHubContents&&_.N("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.K2().dispatch(_.kI({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.l.onPageChange=function(){var r=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.N("disable_chip_select_on_nav")||_.qy(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.F_.addJob(function(){r.pageLoadingFromNavigation=!1;_.N("disable_chip_select_on_nav")&&_.N("h5_reset_cache_and_filter_before_update_masthead")&&r.resetCacheAndIsFilteredFeed();r.setMasthead();r.maybeSetBigYoodle();r.forceRefreshAndLog();r.terminateVideoPreview();_.N("web_hide_gnome_until_user_navigates_back_to_home")&&
(r.dataChanged(),_.UC(r,function(){if(r.showGnomeContents){var f=Array.from(_.e(r.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(C){C=_.e(C).querySelector("ytd-rich-shelf-renderer");return!!C&&C.isGnomeShelf()});
if(f){f=f.offsetTop-r.contentsElement.offsetTop;var I=_.a().resolve(_.y2).getCurrentPage();I&&I.getPageScrollingElement().scrollTo({top:f,behavior:"smooth"})}}}));
_.N("web_hide_explore_hub_until_user_navigates_back_to_home")&&(r.dataChanged(),_.UC(r,function(){if(r.showExploreHubContents&&!_.N("web_explore_hub_no_scroll")){var f=Array.from(_.e(r.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(C){return!!C.querySelector("ytd-talk-to-recs-flow-renderer")});
if(f){f=f.offsetTop-r.contentsElement.offsetTop;var I=_.a().resolve(_.y2).getCurrentPage();I&&I.getPageScrollingElement().scrollTo({top:f,behavior:"smooth"})}}}))},8)):((_.N("web_hide_gnome_until_user_navigates_back_to_home")||_.N("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.l.dataChanged=function(){var r=this,f=_.Bw("web_rich_grid_row_margin",0);f>0&&_.Zh(this.hostElement,{"--ytd-rich-grid-row-margin":f+"px"});_.qy(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.UC(this,function(){r.updateRichItemGridPositions();r.contentsElement&&_.Zh(r.hostElement,{"--ytd-rich-grid-content-offset-top":r.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.l.initResizeObserver=function(){var r=this;if(window.ResizeObserver){var f;(f=this.resizeObserver)==null||f.disconnect();var I=!1;this.resizeObserver=new ResizeObserver(function(){if(I){var C;(C=r.resizeObserver)==null||C.disconnect();var Y;(Y=r.throttledOnResize)==null||Y.fire();requestAnimationFrame(function(){var S;(S=r.throttledOnResize)==null||S.fire();r.initResizeObserver()})}else if(I=!0,r.resizeOnObserverInit){var V;
(V=r.throttledOnResize)==null||V.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.l.contentLengthChanged=function(){if(_.N("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.qy(this.hostElement,"ytd-rich-item-index-update-action")};
_.l.updateElementsPerRow=function(){_.qy(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.kI({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.kI({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.l.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.l.onRichShelfRendererCollapse=function(r){if(this.shownItems){var f=r.detail;r=this.shownItems.findIndex(function(C){var Y,V;return((V=_.F(C==null?void 0:(Y=C.richSectionRenderer)==null?void 0:Y.content,_.gkg))==null?void 0:V.trackingParams)===f});
var I=r+1;r<0||I>=this.contentsElement.children.length||!this.shownItems[I].richItemRenderer||this.contentsElement.children[I].scrollIntoView({behavior:"smooth",block:"start"})}};
_.l.onSoftReloadPage=function(){this.scrollUpToTop()};
_.l.handleRerenderDownloadsData=function(){_.N("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.l.handlePlaylistRemoveVideosAction=function(r){var f;if(((f=_.F(r,_.KYV))==null?0:f.setVideoIds)&&this.data&&this.data.contents){r=_.F(r,_.KYV).setVideoIds;for(f=this.data.contents.length-1;f>=0;){var I=_.F(this.data.contents[f],_.FD);(I=I&&_.F(I.content,_.W_))&&I.setVideoId&&r.includes(I.setVideoId)&&this.splice("data.contents",f,1);f--}this.updateIndices()}};
_.l.updateIndices=function(){if(this.data&&this.data.contents)for(var r=0;r<this.data.contents.length;r++)this.set("data.contents."+r+".richItemRenderer.index",_.iX(String(r+1)))};
_.l.hasTopRowInlinePlayableVideoWithEndorsement=function(r){var f;return!((f=r.slice(0,this.getItemsPerRow()))==null||!f.some(function(I){var C;I=_.F(I==null?void 0:(C=I.richItemRenderer)==null?void 0:C.content,_.e8);var Y;return(I==null?void 0:I.inlinePlaybackEndpoint)&&(I==null?void 0:(Y=I.thumbnailOverlays)==null?void 0:Y.some(function(V){return V.thumbnailOverlayEndorsementRenderer}))}))};
_.l.refreshGridLayoutNew=function(r,f,I,C){var Y=C.postsPerRow;var V=C.slimItemsPerRow;var S=C.gameCardsPerRow;C=C.miniGameCardsPerRow;var h;if((h=this.data)==null||!h.contents||!this.containerWidth)return!1;var w;if((w=this.data.responsiveContainerConfiguration)==null?0:w.responsiveSize){var n=_.ITw(this.data.responsiveContainerConfiguration,this.containerWidth),d;h=_.QS(Object.assign({},n,{standardUnitMinWidth:(d=this.data)==null?void 0:d.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&n.isCompactList)}else h=_.QS({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(n=this.data)==null?void 0:n.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=h.typographyBump;d=!1;if(r||this.elementsPerRow!==h.numItems||this.postsPerRow!==Y||this.slimItemsPerRow!==V||this.gameCardsPerRow!==
S||this.miniGameCardsPerRow!==C||this.gutter!==h.gutter)d=this.elementsPerRow!==h.numItems,this.elementsPerRow=h.numItems,this.postsPerRow=Y,this.slimItemsPerRow=V,this.gameCardsPerRow=S,this.miniGameCardsPerRow=C,this.gutter=h.gutter,this.itemWidth=h.itemWidth,this.reflowContent(f),_.Zh(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":h.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(I);this.ytdReduxBehavior.dispatch(_.kI({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:h.maxContainerWidth}));return d};
_.l.refreshGridLayout=function(r,f){var I,C=(I=this.hostElement)==null?void 0:I.clientWidth;this.containerWidth=this.adjustRichGridWidth(C,!0);var Y;if((Y=this.data)==null||!Y.contents||!this.containerWidth)return r&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.N("rg_pending_reflow_ks")&&(r=!0,this.pendingForceReflow=!1);I=this.getRichItemMinWidth(C);var V=this.isShortsPanel?146:194,S=this.getMiniGameCardMinWidth(),h=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
C=I=this.calcElementsPerRow(I,h);(Y=I<=3&&this.miniModeAllowed())&&(I=this.calcElementsPerRow(240,4));var w=this.calcMaxSlimElementsPerRow(I,h,this.isDefaultGrid);h=this.calcElementsPerRow(V,w);var n=this.calcElementsPerRow(this.isCompactGrid?V:154,w);V=this.calcElementsPerRow(this.isCompactGrid?V:S,w);S=!1;if(this.sizing)return this.refreshGridLayoutNew(r,f,Y,{postsPerRow:C,slimItemsPerRow:h,gameCardsPerRow:n,miniGameCardsPerRow:V});if(r||this.elementsPerRow!==I||this.postsPerRow!==C||this.slimItemsPerRow!==
h||this.gameCardsPerRow!==n||this.miniGameCardsPerRow!==V)S=this.elementsPerRow!==I,this.elementsPerRow=I,this.postsPerRow=C,this.slimItemsPerRow=h,this.gameCardsPerRow=n,this.miniGameCardsPerRow=V,this.reflowContent(f),this.updateElementsPerRow(),_.Zh(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)&&_.Zh(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(Y);_.qy(this.hostElement,"yt-rich-grid-layout-refreshed");return S};
_.l.getRichItemMinWidth=function(r){var f=_.Bw("rich_grid_min_item_width",310);if(!_.N("kevlar_disable_min_width_override")){var I,C;f=(C=(I=this.data)==null?void 0:I.minItemWidth)!=null?C:f}return f+_.D0R(r)};
_.l.calcMaxSlimElementsPerRow=function(r,f,I){return(I===void 0?0:I)?r===1?2:r%2===0?_.N("web_shorts_2_by_3_reduce_items_per_row")&&r>=4?r/2*3-1:r/2*3:_.N("web_shorts_2_by_3_reduce_items_per_row")&&r>=3?r+1:r+2:f*2};
_.l.adjustRichGridWidth=function(r,f){var I=_.N("disable_rich_grid_guide_compensation");if(!this.isWatch&&!I){I=_.a().resolve(_.ZY(_.LY));var C=I==null?void 0:I.guideElement;if(!(!I||I.getData()||C!=null&&C.opened||I.getMiniGuideVisible()))if(I.canFitPersistentGuide(r)&&I.getGuideExpandsAutomatically()){var Y,V,S=Number((Y=window.getComputedStyle(this.hostElement))==null?void 0:(V=Y.getPropertyValue("--app-drawer-width"))==null?void 0:V.replace("px",""));r-=S||0}else if(I.canFitMiniGuide(r)){var h;
Y=Number((S=window.getComputedStyle(this.hostElement))==null?void 0:(h=S.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:h.replace("px",""));r-=Y||0}}r>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(r-=f?32:48));return r};
_.l.calcElementsPerRow=function(r,f){var I=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),C=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((I+C)/(r+C))||1,f)};
_.l.reflowContent=function(r){var f=this;if(!this.isReflowing){this.isReflowing=!0;var I,C,Y=!!((I=this.data)==null?0:(C=I.contents)==null?0:C.some(function(X){return _.F(X,_.Ip)}));
I=this.getItemsPerRow();var V;C=(V=this.data)==null?void 0:V.reflowOptions;r&&(_.Xc("rgr_s"),_.UC(this,function(){_.Xc("rgr_nrf")}));
r={};(V=_.e(this.hostElement).querySelector("#contents"))&&(r={contentElement:V,rendererToTagNameMap:this.rendererToTagNameMap});V=(V=this.data.contents)?V.slice():[];var S=(_.N("web_hide_gnome_behind_feed_filter_chip")||_.N("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,h=_.N("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,w=-1,n=-1;if(this.isHomePage&&h){for(h=0;h<V.length;h++){var d=void 0,z=void 0;_.F((d=V[h])==null?void 0:
(z=d.richSectionRenderer)==null?void 0:z.content,qyV)&&(n=h)}n>-1&&(this.exploreHubContents=V.splice(n,1))}if(this.isHomePage&&S){for(n=0;n<V.length;n++)z=d=void 0,(h=_.F((d=V[n])==null?void 0:(z=d.richSectionRenderer)==null?void 0:z.content,_.gkg))&&S&&(z=d=void 0,h=_.F((d=h)==null?void 0:(z=d.contents)==null?void 0:z[0],_.FD),d=void 0,_.F((d=h)==null?void 0:d.content,_.XzX)&&(w=n));w>-1&&(this.gnomeContents=V.splice(w,1))}var g=iSU(V,I,Y,C,this.getRichGridStyle(),r,this.insertedContent);Y=function(){f.shownItems=
g;f.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(g),_.UC(this,Y)):Y()}};
_.l.getFirstRowItems=function(r){for(var f=[],I=0;I<r.length;I++){var C=void 0,Y=void 0,V=void 0,S=void 0,h=void 0,w=void 0;if(((C=r[I])==null?void 0:(Y=C.richItemRenderer)==null?void 0:Y.rowIndex)===0||((V=r[I])==null?void 0:(S=V.richGroupRenderer)==null?void 0:S.rowIndex)===0||((h=r[I])==null?void 0:(w=h.richSectionRenderer)==null?void 0:w.rowIndex)===0)f.push(r[I]);else break}return f};
_.l.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.l.handleChipCloudChipSelectAction=function(r,f){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.N("web_hide_gnome_behind_feed_filter_chip")&&(f?(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]);_.N("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.l.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.N("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(){_.qy(this.hostElement,"yt-terminate-video-preview-action")};
_.l.updateRichItemGridPositions=function(){var r={gridData:{gridColumnCount:this.elementsPerRow}},f;if((f=this.data)==null?0:f.trackingParams)this.loggingRefactor?_.IB().stateChanged(this.data.trackingParams,r):(f=_.t1())&&_.vF(f,_.VH(this.data.trackingParams),r);_.qy(this.hostElement,"ytd-rich-item-index-update-action")};
_.l.miniModeAllowed=function(){return _.N("disable_channels_mini_mode")?!1:this.isChannelPage};
_.l.getMiniGameCardMinWidth=function(){return 154};
_.l.updateMiniMode=function(r){this.miniMode=this.miniModeAllowed()&&r;this.ytdReduxBehavior.dispatch(_.kI({type:"SET_RICH_GRID_MINI_MODE",payload:r}))};
_.l.isCurrentPage=function(){return location.pathname===this.pagePath};
_.l.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var r=_.a().resolve(_.y2).getCurrentPage();r&&r.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 r,f=(r=this.data)==null?void 0:r.bigYoodle;this.bigYoodleData!==f&&(this.bigYoodleData=f)};
_.l.setMasthead=function(){var r;((r=this.data)==null?0:r.masthead)?this.mastheadData=this.data.masthead:_.N("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.l.getRichGridStyle=function(){var r,f;return(f=(r=this.data)==null?void 0:r.style)!=null?f:"RICH_GRID_STYLE_UNKNOWN"};
_.l.onIsShortsGridChange=function(){var r=this.ytdReduxBehavior,f=r.dispatch,I=this.getRichGridStyle();f.call(r,_.kI({type:"SET_RICH_GRID_STYLE",payload:I}))};
_.OC.Object.defineProperties(Mg.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var r;return(((r=this.data)==null?void 0:r.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var r;return(((r=this.data)==null?void 0:r.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var r=_.a().resolve(_.y2).getCurrentPage(),f,I,C;return(((f=this.data)==null?void 0:f.targetId)==="browse-feedFEsfv_audio_pivot"||_.N("web_enable_channel_pivot_panel")&&((I=this.data)==null?void 0:I.targetId)==="browse-feedFEsfv_channel_pivot"||_.N("web_enable_effect_pivot_panel")&&((C=this.data)==null?void 0:C.targetId)==="browse-feedFEsfv_effect_pivot")&&(r==null?void 0:r.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.N("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 r;return!((r=this.data)==null?0:r.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var r;return((r=_.a().resolve(_.y2).getCurrentPage())==null?void 0:r.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var r;return((r=_.a().resolve(_.y2).getCurrentPage())==null?void 0:r.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 r;return this.hideChipsBar||(((r=this.data)==null?void 0:r.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.N("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var r;return(((r=this.data)==null?void 0:r.targetId)||"")==="watch-next-feed"&&!_.N("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return((r=this.data)==null?0:r.enableContentSpecificAspectRatio)||((f=this.data)==null?0:(I=f.responsiveContainerConfiguration)==null?0:I.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.Bw("web_continuation_handler_margin",0):0}}});
Mg.prototype.onIsShortsGridChange=Mg.prototype.onIsShortsGridChange;Mg.prototype.onReloadContinuationFinish=Mg.prototype.onReloadContinuationFinish;Mg.prototype.reflowContent=Mg.prototype.reflowContent;Mg.prototype.handleRerenderDownloadsData=Mg.prototype.handleRerenderDownloadsData;Mg.prototype.onRichShelfRendererCollapse=Mg.prototype.onRichShelfRendererCollapse;Mg.prototype.onRequestElementsPerRow=Mg.prototype.onRequestElementsPerRow;Mg.prototype.contentLengthChanged=Mg.prototype.contentLengthChanged;
Mg.prototype.dataChanged=Mg.prototype.dataChanged;Mg.prototype.onSizingChange=Mg.prototype.onSizingChange;Mg.prototype.onUseCompactListChange=Mg.prototype.onUseCompactListChange;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Mg.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Mg.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.Pq),_.B("design:type",Object)],Mg.prototype,"ironResizableBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Mg.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.cg),_.B("design:type",Object)],Mg.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Mg.prototype,"componentBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],Mg.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Mg.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0,selector:_.ar}),_.B("design:type",Boolean)],Mg.prototype,"miniMode",void 0);_.A([_.K({value:[]}),_.B("design:type",Array)],Mg.prototype,"shownItems",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],Mg.prototype,"isReflowing",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],Mg.prototype,"isFilteredFeed",void 0);_.A([_.K({selector:_.TaU}),_.B("design:type",Boolean)],Mg.prototype,"guideIsExpanded",void 0);
_.A([_.K({selectorArgs:["entitySelectorType"],selector:function(r,f){if(_.N("kevlar_modern_downloads_page")&&f&&f!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(f){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var I=r.entities;f=_.z3(I);var C=_.Mj(I),Y=_.Qxl(r),V=_.o$K(r);r=_.ALR(r);var S=_.g$K(I),h=_.wG(f);I=_.gG(I);return _.k2P(f,C,S,Y,V,h,I,r);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return f=_.z3(r.entities),_.qVu(f);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return f=
_.n$l(r.entities),_.uOq(f);default:_.t7(new _.nf("Error: entitySelectorType defined but not matched in selector.",r,f))}}}),
_.B("design:type",Object)],Mg.prototype,"entityDrivenRichGridData",void 0);_.A([_.K(),_.B("design:type",Object)],Mg.prototype,"resizeOnObserverInit",void 0);_.A([_.K(),_.B("design:type",Object)],Mg.prototype,"bigYoodleData",void 0);_.A([_.K(),_.B("design:type",Object)],Mg.prototype,"mastheadData",void 0);_.A([_.K(),_.B("design:type",Boolean)],Mg.prototype,"isInlinePreviewDisabled",void 0);_.A([_.K(),_.B("design:type",Object)],Mg.prototype,"disableStickyFilterBar",void 0);
_.A([_.K(),_.B("design:type",Object)],Mg.prototype,"transparentBackgroundChipsBar",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Mg.prototype,"hideChipsBar",void 0);_.A([_.K(),_.B("design:type",Object)],Mg.prototype,"isWatchDefaultLayout",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Mg.prototype,"continuationShowButton",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Mg.prototype,"rowReducedHorizontalMargin",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Mg.prototype,"useCompactList",void 0);_.A([_.K({selector:function(r){return _.Mj(r.entities).length>0}}),
_.B("design:type",Object)],Mg.prototype,"manualDownloadsPresent",void 0);_.A([_.K({selector:function(r){return _.z3(r.entities).length>0}}),
_.B("design:type",Object)],Mg.prototype,"smartDownloadsPresent",void 0);_.A([_.K({selector:_.o$K}),_.B("design:type",Object)],Mg.prototype,"shouldRenderDownloadsBanner",void 0);_.A([_.K({selector:_.Qxl}),_.B("design:type",Object)],Mg.prototype,"hasOptedIntoSmartDownloads",void 0);_.A([_.Bt("useCompactList"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mg.prototype,"onUseCompactListChange",null);
_.A([_.Bt("sizing","typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mg.prototype,"onSizingChange",null);_.A([_.K({selector:_.eqd}),_.B("design:type",Number)],Mg.prototype,"miniplayerPlaybackState",void 0);_.A([_.K({selector:_.Nj}),_.B("design:type",Boolean)],Mg.prototype,"miniplayerIsActive",void 0);
_.A([_.K({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.B("design:type",Boolean)],Mg.prototype,"isInlinePreviewEnabled",void 0);_.A([_.K({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.B("design:type",String)],Mg.prototype,"sizing",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Mg.prototype,"elementsPerRow",void 0);
_.A([_.K(),_.B("design:type",Object)],Mg.prototype,"typographyBump",void 0);_.A([_.K(),_.B("design:type",Number)],Mg.prototype,"itemWidth",void 0);_.A([_.uA("#header"),_.B("design:type",HTMLElement)],Mg.prototype,"headerElement",void 0);_.A([_.uA("#contents"),_.B("design:type",HTMLElement)],Mg.prototype,"contentsElement",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mg.prototype,"dataChanged",null);
_.A([_.YN("data.contents.length"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mg.prototype,"contentLengthChanged",null);_.A([_.kO("yt-request-elements-per-row"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mg.prototype,"onRequestElementsPerRow",null);
_.A([_.kO("yt-rich-shelf-renderer-collapse"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Mg.prototype,"onRichShelfRendererCollapse",null);_.A([_.YN("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mg.prototype,"handleRerenderDownloadsData",null);
_.A([_.R("data"),_.B("design:type",String),_.B("design:paramtypes",[])],Mg.prototype,"entitySelectorType",null);_.A([_.K({reflectToAttribute:!0}),_.R("data.targetId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Mg.prototype,"isSub",null);_.A([_.K({reflectToAttribute:!0}),_.R("data.targetId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Mg.prototype,"isWatch",null);
_.A([_.K({reflectToAttribute:!0}),_.R("data.targetId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Mg.prototype,"isShortsPanel",null);_.A([_.K({reflectToAttribute:!0}),_.R("isWatch"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Mg.prototype,"reducedTopMargin",null);_.A([_.K({reflectToAttribute:!0}),_.R("data","isWatch","isWatchDefaultLayout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Mg.prototype,"noTopMargin",null);
_.A([_.K({reflectToAttribute:!0}),_.R("isInlinePreviewEnabled","shownItems"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Mg.prototype,"topRowEndorsement",null);_.A([_.R("data.header"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Mg.prototype,"hideHeader",null);_.A([_.kO("yt-rich-grid-reflow"),_.B("design:type",Function),_.B("design:paramtypes",[Boolean]),_.B("design:returntype")],Mg.prototype,"reflowContent",null);
_.A([_.kO("yt-reload-continuation-finish"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mg.prototype,"onReloadContinuationFinish",null);_.A([_.R("data"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Mg.prototype,"isSlimGrid",null);_.A([_.R("data"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Mg.prototype,"isShortsGrid",null);
_.A([_.R("data","isSlimGrid","isShortsGrid"),_.K(),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Mg.prototype,"noRichItemGutterMargins",null);_.A([_.R("data"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Mg.prototype,"isShortsGridSlim",null);_.A([_.R("data"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Mg.prototype,"isCompactGrid",null);
_.A([_.R("data"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Mg.prototype,"isDefaultGrid",null);_.A([_.R("data.targetId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Mg.prototype,"hideChipsBarOnHome",null);_.A([_.R("data.targetId"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Mg.prototype,"hideChipsBarOnWatch",null);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mg.prototype,"onIsShortsGridChange",null);_.A([_.R("data.enableContentSpecificAspectRatio"),_.K(),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Mg.prototype,"force16By9ThumbnailAspectRatio",null);_.A([_.R("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],Mg.prototype,"continuationTriggerOffset",null);Mg=_.A([_.U({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],Mg);
_.Q(Mg,"ytd-rich-grid-renderer",function(){if(bOY!==void 0)return bOY;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return bOY=r},{mode:2});var tU3=_.Hc(function(r){var f=r.thumbsUp;r=r.thumbsDown;var I=_.E(_.ld(!1,void 0,"OxPsH")),C=I.next().value,Y=I.next().value;I=_.E(_.ld(!1,void 0,"V5vWne"));var V=I.next().value,S=I.next().value;return _.p("div",{class:"ytwThumbsUpDownThumbs"},_.p(_.F1,{data:f,onToggle:function(h){Y(h);V()&&S(!1)},
buttonShapeOverrides:function(){return{toggled:C()}}}),_.p(_.F1,{data:r,
onToggle:function(h){S(h);C()&&Y(!1)},
buttonShapeOverrides:function(){return{toggled:V()}}}))},"li");
tU3.idomCompat=!0;var cXY=_.Hc(function(r){var f=function(){return r.data().pendingStateEntityKey||""},I=_.VS(_.Axd,f),C=function(){var Y;
if(!(Y=r.disabled())){var V;Y=!((V=I())==null||!V.isPendingResponse)}return Y};
return _.p("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.p(_.pz,{each:function(){return r.data().chipData||[]},
keyBy:"REFERENCE"},function(Y){return _.p(TZV,{data:Y,disabled:C,pendingStateKey:f,onError:r.onError})}))},"mi"),TZV=_.Hc(function(r){var f=_.yy(),I=_.E(_.ld(!0,void 0,"HBREAe")),C=I.next().value,Y=I.next().value,V=function(){return r.data().text.content},S=_.IC(function(h){var w,n,d,z,g,X,P,W;
return _.x(function(m){switch(m.nextAddress){case 1:h.stopPropagation();if(r.disabled())return m.return();n=String(Math.floor(((w=_.Db())==null?void 0:w.getCurrentTime())||0)*1E3);d="youchat-"+Date.now();z=function(){_.X2(r.data().onClick||{});var v={continuationCommand:{token:r.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},O={inputComposerFormData:{clientMessageId:d,playerOffsetMs:n}};return new Promise(function(k,Z){_.X2(v,{form:{formData:O},commandController:{onSuccess:function(Cw,
rR){k(rR)},
onServerError:function(Cw,rR){Z(rR.error)}}})})};
g=_.ZS6(r.pendingStateKey());g(!0);_.m1d("#youchat-input, ytd-engagement-panel-section-list-renderer #footer yt-chat-input-view-model textarea, ytm-engagement-panel-section-list-renderer .engagement-panel-section-list-footer-wrapper yt-chat-input-view-model button");Y(!1);_.l_(m,2);return _.b(m,z(),4);case 4:_.Hd(m,3);break;case 2:X=_.ha(m),(W=(P=r).onError)==null||W.call(P,X);case 3:g(!1),_.wO(m)}})});
return _.p(_.M,{cond:C,then:function(){return _.p("div",{class:"ytwYouChatChipsDataChipWrapper"},_.p("button",{el:f,class:"ytwYouChatChipsDataChip","data-disabled":r.disabled,"on:click":S,tabindex:0},V))}})},"ni");var Wp2=_.Hc(function(r){var f=r.data;return _.p("yt-conversation-resource-view-model",{class:_.qd("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.p(_.M,{cond:function(){var I;return(I=f().conversationResourceData)==null?void 0:I.learningGuideData},
then:function(I){return _.p(_.pz,{each:function(){return I().sectionData||[]}},function(C){return _.p("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.p(_.wW,{text:function(){return C.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.p("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.p(_.wW,{text:function(){return C.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.p(_.wW,{text:function(){return C.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"oi");
Wp2.idomCompat=!0;var LpV=_.Hc(function(r){var f=function(){var v;return(v=r.data().text)==null?void 0:v.content},I=function(){var v,O;
return(v=r.data().webData)==null?void 0:(O=v.textResult)==null?void 0:O.content},C=_.a().resolve(_.Lv),Y=_.ru(),V=function(){return r.data().chatResponseStyle},S=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:r.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},h=function(){var v;
return r.data().webData||((v=r.data().text)==null?void 0:v.content)||r.data().videoResultsData||r.data().conversationResourceViewModel},w=function(){var v;
return(v=r.data().videoResultsData)==null?void 0:v.videoShelf},n=function(){var v;
return _.F(((v=r.data().videoResultsData)==null?void 0:v.videoShelf)||{},rXY)},d=function(){var v;
return(v=r.data().webData)==null?void 0:v.sourcesShelf},z=function(){var v;
return _.F(((v=r.data().webData)==null?void 0:v.sourcesShelf)||{},rXY)},g=function(){return _.F(r.data().conversationResourceViewModel||{},IuY)},X=function(){return V()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||V()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:r.data().thumbsDownViewModel&&r.data().thumbsUpViewModel},P=function(){return _.F(r.data().thumbsUpViewModel,_.$4)},W=function(){return _.F(r.data().thumbsDownViewModel,_.$4)};
_.Xl(function(){requestAnimationFrame(function(){var v;(v=r.shouldAnimateIcon)!=null&&v.call(r)&&Gq1(Y.lottieEl)})});
var m={};return _.p("you-chat-item-view-model",{class:_.qd("ytwYouChatItemViewModelYouChatItemViewModel",(m.ytwYouChatItemViewModelHostNoPadding=function(){return!1},m)),
"data-target-id":function(){return r.data().id||""}},_.p(_.M,{cond:h,
then:function(){var v={};return _.p("div",{"aria-hidden":"true"},_.p(_.uT,{className:_.qd("ytwYouChatItemViewModelIcon",(v.ytwYouChatItemViewModelRtl=C==="rtl",v.ytwYouChatItemViewModelHidden=function(){return!(r.data().hideIcon||V()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||V()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:h())},v)),
animationName:"YOUCHAT_ICON",data:S,animationRef:Y}))}}),_.p(_.M,{cond:h,
then:function(){var v={};return _.p("div",{class:_.qd("ytwYouChatItemViewModelHost",(v.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return V()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},v.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return V()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},v.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return V()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},v)),
role:"alert"},_.p(_.M,{cond:f,then:function(O){return _.p(_.NF,{text:O})}}),_.p(_.M,{cond:I,
then:function(O){return _.p(_.NF,{text:O})}}),_.p(_.M,{cond:w,
then:function(){return _.p("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.p(_.Xk,{data:n,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.p(_.M,{cond:d,
then:function(){return _.p("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.p(_.Xk,{data:z,hasPeek:!0,disableArrows:!1}))}}),_.p(_.M,{cond:g,
then:function(){return _.p(Wp2,{data:g})}}),_.p(_.M,{cond:X,
then:function(){return _.p(tU3,{thumbsUp:P,thumbsDown:W})}}))}}),_.p(_.M,{cond:function(){return r.data().chipsData},
then:function(v){return _.p(cXY,{data:v,disabled:r.pending,onError:r.onError})}}))},"pi");
LpV.idomCompat={callbacks:{onError:!0,onSend:!0}};var mf6=_.Hc(function(r){var f=function(){return r.data().choiceSelectedText};
return _.p("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.p(_.M,{cond:f,then:function(){return _.p("div",{class:"ytYouChatUserTurnChoiceSelected"},_.p(_.wW,{text:f}))}}),_.p("div",{class:"ytYouChatUserTurnUserMessage"},function(){return r.data().text}))},"qi");var eZq=_.Hc(function(r){var f=_.E((0,_.S94)(r.data)).next().value;return _.p("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return r.data().targetId||""}},_.p(_.X1,{data:function(){return r.data().header}},{chipBarViewModel:_.qMg}),_.p(_.X1,{data:function(){return f().contents}},{accordionViewModel:_.Hu4,
alertBannerViewModel:_.YYB,chatLoadingViewModel:_.lsq,chatUserTurnViewModel:mf6,learningJourneyLoaderViewModel:_.mYs,lockupViewModel:_.Z2,youChatItemViewModel:function(I){return _.p(LpV,{data:I.data,pending:!1})}}))},"ri");_.Kv(_.Hc(function(r){var f=_.E((0,_.S94)(r.data)).next().value;return _.p("yt-section-list-renderer",{class:_.qd("ytSectionListRendererHost",r.className),"data-target-id":function(){return r.data().targetId||""}},_.p(_.X1,{data:function(){return f().contents}},{itemSectionRenderer:eZq}))},"si"),"yt-section-list-renderer",{props:{data:_.jv,
className:_.vI}});var JX6;var j8i;var g0=function(){return _.y.apply(this,arguments)||this};
_.t(g0,_.y);_.A([_.K(),_.B("design:type",Object)],g0.prototype,"data",void 0);g0=_.A([_.zX({is:"yt-alert-renderer",disableElementRegistration:!0})],g0);
_.Q(g0,"yt-alert-renderer",function(){if(j8i===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;JX6===void 0&&(JX6=document.createElement("template"));var C=JX6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);j8i=r}r=j8i;return r},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.W_Y=function(r,f){var I,C;f=f===void 0?{}:f;var Y,V,S,h,w,n,d,z,g,X,P,W;return _.x(function(m){switch(m.nextAddress){case 1:Y=f;V=Y.shouldWrap===void 0?!0:Y.shouldWrap;S=Y.skipTransitionTimeoutMs===void 0?300:Y.skipTransitionTimeoutMs;h=Y.beforeTransition;w=Y.afterTransition;if(!V||!document.startViewTransition||document.visibilityState==="hidden")return m.return(r());I=window.innerWidth;C=window.innerHeight;n=!1;(d=h)==null||d();_.l_(m,2);z=document.startViewTransition(r);g=setTimeout(function(){z.skipTransition();
n=!0},S);
return _.b(m,z.ready,4);case 4:return clearTimeout(g),_.b(m,z.finished,5);case 5:clearTimeout(g);(X=w)==null||X();_.Hd(m,0);break;case 2:P=_.ha(m),(W=w)==null||W(),P&&!n&&document.visibilityState!=="hidden"&&I===window.innerWidth&&C===window.innerHeight&&_.Fo(P),_.wO(m)}})};
_.XL=function(r){return r.watch.isTheaterMode};
_.L_6=function(r){var f=_.wL("DIV");r&&(f.className=r);f.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";r=_.wL("DIV");_.jYU(r,"200px","200px");f.appendChild(r);document.body.appendChild(f);r=f.offsetWidth-f.clientWidth;_.bE(f);return r};
_.N1=function(){for(var r=Array(36),f=0,I,C=0;C<36;C++)C==8||C==13||C==18||C==23?r[C]="-":C==14?r[C]="4":(f<=2&&(f=33554432+Math.random()*16777216|0),I=f&15,f>>=4,r[C]=_.Rhg[C==19?I&3|8:I]);return r.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 mad=_.op(['<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>']),
eUd=_.Pm3(mad);eUd.setAttribute("style","display: none;");document.head.appendChild(eUd.content);_.$_=_.LOK(_.L_6);var JaU;var jk3;var FL=function(){var r=_.y.apply(this,arguments)||this;r.icon=null;return r};
_.t(FL,_.y);FL.prototype.dismiss=function(){_.kA(this.hostElement,"yt-live-chat-error-message-dismiss")};
FL.prototype.computeIcon=function(r){return r&&r.iconType?"yt-icons:"+r.iconType.toLowerCase():"yt-icons:close"};
_.A([_.K(),_.B("design:type",Object)],FL.prototype,"data",void 0);_.A([_.K({computed:"computeIcon(data.icon)"}),_.B("design:type",Object)],FL.prototype,"icon",void 0);FL=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],FL);
_.Q(FL,"yt-live-chat-error-message-renderer",function(){if(jk3===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;JaU===void 0&&(JaU=document.createElement("template"));var C=JaU;I.call(f,C.content.cloneNode(!0),r.content.firstChild);jk3=r}r=jk3;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var R7d,vSq,KDp,yuU,Au6,Zk6,G2p,k27,BSp,tE,qVB,uOi,TV,DtY,rS3,fTq,ITq,CDs,YLV,lTV,VA6,EjB,SLV,xnV,hu7,wii,bp1,piB,njp,dn6,zu2,MA1,c$,gjp,aTi,XiU,FH7,PD6,tAY,Tr7,cSi,WH6,Nr3,$n6,mn3,eui,JSs,jm3,HpU,LHs,Ruq;R7d=function(r,f){return _.f2(r.entities,"timedMarkersListSyncEntity",f)};
vSq=function(r,f){return _.f2(r.entities,"liveReactionsDataEntity",f)};
KDp=function(r,f){r=_.f2(r.entities,"booleanEntity",f);return!(!r||!r.value)};
yuU=function(r,f){var I=_.t1();I&&r&&_.mw(I,_.VH(r),f)};
_.Ut1=function(){_.N("web_watch_log_theater_mode")&&_.PLR("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.sL6=function(r,f,I){if(!r.includes("START_TIME_PLACEHOLDER")||!r.includes("END_TIME_PLACEHOLDER"))return r;var C=new Date(0),Y=new Date(0);C.setUTCMilliseconds(f);Y.setUTCMilliseconds(I);return r.replace("START_TIME_PLACEHOLDER",_.mQ(C,7)).replace("END_TIME_PLACEHOLDER",_.mQ(Y,7))};
_.Okd=function(r){return r.watch.isWatchActive};
_.Ff=function(r){return r!=null&&r.watch?r.watch.isWatchFullscreen:!1};
_.oS3=function(r){return _.XL(r)||_.Ff(r)||_.LpE(r)};
_.QLU=function(r){return!_.oS3(r)};
_.P$=function(r){return r.watch.watchScrollTop};
Au6=function(r){return r.watch.isLiveChatCollapsed};
Zk6=function(r){return r.watch.openEngagementPanels};
G2p=function(r,f){return _.f2(r.entities,"booleanEntity",f)};
k27=function(){return function(r){_.eS(_.hv("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:r}))}};
BSp=function(r){switch(r){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}};
tE=function(r,f,I){var C=_.aB(I);r&&f&&C&&r.getPlayerPromise().then(function(Y){_.KSd(C)&&_.$l();(new _.xh(Y)).executeCommand(C,f);_.N("continue_playback_on_desktop_companion_click")||Y.pauseVideo()})};
qVB=function(r){var f=_.sk(),I;if(I=_.jH("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var C;I=(C=I())==null?void 0:C.layoutId}else I=null;tE(f,I,r)};
uOi=function(r){var f=_.sk(),I;if(I=_.jH("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var C;I=(C=I())==null?void 0:C.layoutId}else I=null;tE(f,I,r)};
TV=function(r,f){var I=r<0?"-":"";r=Math.abs(r);var C=Math.floor(r/3600),Y=Math.floor(r)%3600,V=Math.floor(Y/60);Y=Math.floor(Y)%60;var S="";(f===void 0?0:f)&&(S="."+Math.round((r-Math.floor(r))*10));return C>0?I+C+":"+(V<10?"0"+V:""+V)+":"+(Y<10?"0"+Y:""+Y)+S:I+V+":"+(Y<10?"0"+Y:""+Y)+S};
DtY=function(r){var f=r.match(/[^0-9:\.]/g);if(f&&f.length>0)return null;r=r.split(":");if(r.length===0||r.length>3)return null;f=1;for(var I=0;r.length>0;){var C=r.pop();if(C===void 0)break;var Y=Number(C);if(C===""||isNaN(Y))return null;I+=Y*f;f*=60}return I};
rS3=function(r,f,I,C){r=Math.max(I,r);f=Math.min(f,C-I);r+f>C?(I=C,r=I-f):I=r+f;return{start:r,end:I}};
fTq=function(r,f,I,C,Y,V){r<I?r=I:r+Y>C&&(r=C-Y);f>C&&(f=C);f=Math.min(r+V,Math.max(r+Y,f));return{start:r,end:f}};
ITq=function(r,f,I,C,Y,V){f>C?f=C:f-Y<I&&(f=I+Y);r<I&&(r=I);r=Math.min(f-Y,Math.max(f-V,r));return{start:r,end:f}};
CDs=function(r){return _.N("web_transcript_cue_id_killswitch")?String(r):"ytd-transcript-renderer_"+r};
YLV=function(r){return _.N("web_transcript_cue_id_killswitch")?!0:r.startsWith("ytd-transcript-renderer")};
lTV=function(r){var f=_.sk(),I;if(I=_.jH("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var C;I=(C=I())==null?void 0:C.layoutId}else I=null;tE(f,I,r)};
VA6=function(r){r.style.height="auto";r.style.height=Math.min(r.scrollHeight||20,80)+"px"};
EjB=function(r,f){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:f}}],insertByPositionInSection:{sectionTargetId:r,position:"INSERTION_POSITION_LAST"}}}]}}}};
SLV=function(r){var f=_.sk(),I;I=(I=_.jH("yt.www.ads.eventcache.getLastCompanionData"))?(I=I())&&I.layoutId:null;tE(f,I,r)};
xnV=function(r){var f=_.sk(),I;I=(I=_.jH("yt.www.ads.eventcache.getLastCompanionData"))?(I=I())&&I.layoutId:null;tE(f,I,r)};
hu7=function(r,f){f=f===void 0?!1:f;if(r.simpleText)r=[{text:r.simpleText}];else{var I;r=((I=r.runs)!=null?I:[]).map(function(C){return Object.assign({},C)})}if(f)for(f=_.E(r),I=f.next();!I.done;I=f.next())I.value.bold=!0;
return r};
wii=function(r){var f=r.startEndTimeTemplate,I=r.startTimeUtcMillis;r=r.endTimeUtcMillis;if(f&&I&&r)return _.iX(_.sL6(_.Rr(f),Number(I),Number(r)))};
bp1=function(r,f){var I,C,Y=r==null?void 0:(I=r.viewCount)==null?void 0:(C=I.videoViewCountRenderer)==null?void 0:C.shortViewCount;if(!f&&Y)return Y;var V,S;return r==null?void 0:(V=r.viewCount)==null?void 0:(S=V.videoViewCountRenderer)==null?void 0:S.viewCount};
piB=function(r,f){var I=r==null?void 0:r.relativeDateText;return!f&&I?[I,!0]:[r==null?void 0:r.dateText,!1]};
njp=function(r,f,I,C,Y){C=C===void 0?!0:C;Y=Y===void 0?"":Y;var V=bp1(r,f),S=_.E(piB(r,f)),h=S.next().value;S=S.next().value;f=f?r==null?void 0:r.sponsorsOnlyFirstTimeLongText:r==null?void 0:r.sponsorsOnlyFirstTimeShortText;var w=[];I&&V&&w.push(V);!I&&S||!h||w.push(h);r=[].concat(_.Na(w),[f,r==null?void 0:r.stationName,r==null?void 0:r.rating,r?wii(r):void 0,r==null?void 0:r.upNextProgramText,r==null?void 0:r.superTitleLink]).filter(function(n){return!!n});
I={runs:[]};for(V=0;V<r.length;V++)I.runs.push.apply(I.runs,_.Na(hu7(r[V],C))),V<r.length-1&&I.runs.push({text:" "+Y+" ",bold:C});return I};
dn6=function(r){if(r)return{runs:[{text:r,bold:!0}]}};
zu2=function(r){var f,I,C,Y;if(r=r==null?void 0:(f=r.contents)==null?void 0:(I=f.twoColumnWatchNextResults)==null?void 0:(C=I.results)==null?void 0:(Y=C.results)==null?void 0:Y.contents){var V,S;return(S=(V=r.find(function(h){return!!h.videoPrimaryInfoRenderer}))==null?void 0:V.videoPrimaryInfoRenderer)==null?void 0:S.updatedMetadataEndpoint}};
MA1=function(r,f){var I;return(I=r.sourceConfigs)==null?void 0:I.find(function(C){return C.videoId===f})};
c$=function(r){return r==="End of video"||r==="End of playlist"};
gjp=function(r){var f,I,C,Y;return(f=r.getWatchNextResponse())==null?void 0:(I=f.contents)==null?void 0:(C=I.twoColumnWatchNextResults)==null?void 0:(Y=C.playlist)==null?void 0:Y.playlist};
aTi=function(r){var f,I,C,Y,V,S;return(f=gjp(r))==null?void 0:(I=f.playlistButtons)==null?void 0:(C=I.menuRenderer)==null?void 0:(Y=C.topLevelButtons)==null?void 0:(V=Y[0])==null?void 0:(S=V.playlistLoopButtonRenderer)==null?void 0:S.playlistLoopStateEntityKey};
XiU=function(r){var f=_.a().resolve(_.WP),I;return(f=(I=_.F(f.getAutoplayEndpoint(),_.vj))==null?void 0:I.playlistId)&&f===r};
FH7=function(r,f,I,C,Y){function V(){_.F_.cancelJob(W$);var S=Nr3(f,I/r.getPlaybackRate()),h=S.hours,w=S.minutes;S=(S.seconds*1E3||6E4)/r.getPlaybackRate();r.setVideoTimeLeft($n6(h,w));C&&r.getPlayerState()!==0&&r.setSleepTimerTimeLeft($n6(h,w,!0));(h>0||w>0)&&!Y&&(W$=_.pF(_.F_,V,S))}
_.F_.cancelJob(W$);W$=_.pF(_.F_,V)};
PD6=function(r,f,I){function C(){_.F_.cancelJob(L5);var Y=Nr3(f,I),V=Y.hours;Y=Y.minutes;var S=6E4/r.getPlaybackRate();if(V>0||Y>0)r.setSleepTimerTimeLeft($n6(V,Y,!0)),L5=_.pF(_.F_,C,S)}
_.F_.cancelJob(L5);L5=_.pF(_.F_,C)};
tAY=function(r,f){var I=r.getVolume()/(f/500),C=function(Y){_.F_.cancelJob(mz);var V=Math.floor(Y-I);r.setVolume(V,!1);V>0&&(mz=_.pF(_.F_,function(){C(V)},500))};
_.F_.cancelJob(mz);mz=_.pF(_.F_,function(){C(r.getVolume())})};
Tr7=function(r,f){_.F_.cancelJob(mz);f&&r.syncVolume()};
cSi=function(){var r={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.VR("SLEEP_TIMER_DISRUPTED")}}}}};_.a().resolve(_.Gg).resolveCommand(r)};
WH6=function(r){return(r.getDuration()-r.getProgressState().current)*1E3};
Nr3=function(r,f){r=r+f-(0,_.Ad)();if(r<=0)return{hours:0,minutes:0,seconds:0};var I=new LHs(0,0,0,0,0,0,r);r=I.getHours();f=I.getMinutes();I=I.getSeconds();I!==0&&f++;f!==0&&f%60===0&&(r++,f=0);return{hours:r,minutes:f,seconds:I}};
$n6=function(r,f,I){return r>0&&f>0?I?_.VR("TIME_LEFT_HOURS_MINUTES",{hours:r.toString(),minutes:f.toString()}):_.VR("TIME_HOURS_MINUTES",{hours:r.toString(),minutes:f.toString()}):r>0?I?_.E_("TIME_LEFT_HOURS",r):_.E_("TIME_HOURS",r):I?_.VR("TIME_LEFT_MINUTES",{minutes:f.toString()}):_.VR("TIME_MINUTES",{minutes:f.toString()})};
mn3=function(r,f){if(r.timelyActions)return r.timelyActions.find(function(I){var C;return((C=_.F(I,e7))==null?void 0:C.cueRangeId)===f})};
eui=function(r){var f=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.C$(r);r.keyMap_.forEach(function(I,C){_.Am(f,C)||this.remove(C)},r)};
JSs=function(r,f){r.reloadContinuationItemsCommandMatcher=f};
_.JE=function(r,f){r.insertBefore(f,r.childNodes[0]||null)};
jm3=function(r){if(r>=48&&r<=57||r>=96&&r<=106||r>=65&&r<=90||_.VF&&r==0)return!0;switch(r){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 _.lf;default:return!1}};
HpU=function(r){if(r.altKey&&!r.ctrlKey||r.metaKey||r.keyCode>=112&&r.keyCode<=123)return!1;if(jm3(r.keyCode))return!0;switch(r.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!_.lf;default:return r.keyCode<166||r.keyCode>183}};
LHs=function(r,f,I,C,Y,V,S){this.date=typeof r==="number"?new Date(r,f||0,I||1,C||0,Y||0,V||0,S||0):new Date(r&&r.getTime?r.getTime():_.Dc())};
_.rh(LHs,_.MX);_.l=LHs.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(r){this.date.setHours(r)};
_.l.setMinutes=function(r){this.date.setMinutes(r)};
_.l.setSeconds=function(r){this.date.setSeconds(r)};
_.l.setMilliseconds=function(r){this.date.setMilliseconds(r)};
_.l.setUTCHours=function(r){this.date.setUTCHours(r)};
_.l.setUTCMinutes=function(r){this.date.setUTCMinutes(r)};
_.l.setUTCSeconds=function(r){this.date.setUTCSeconds(r)};
_.l.setUTCMilliseconds=function(r){this.date.setUTCMilliseconds(r)};
_.l.add=function(r){_.MX.prototype.add.call(this,r);r.hours&&this.setUTCHours(this.date.getUTCHours()+r.hours);r.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+r.minutes);r.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+r.seconds)};
_.l.JSC$9134_toIsoString=function(r){var f=_.MX.prototype.JSC$9134_toIsoString.call(this,r);return r?f+"T"+_.Dn(this.getHours(),2)+":"+_.Dn(this.getMinutes(),2)+":"+_.Dn(this.getSeconds(),2):f+"T"+_.Dn(this.getHours(),2)+_.Dn(this.getMinutes(),2)+_.Dn(this.getSeconds(),2)};
_.l.equals=function(r){return this.getTime()==r.getTime()};
_.l.toString=function(){return this.JSC$9134_toIsoString()};
_.l.clone=function(){var r=new LHs(this.date);r.firstDayOfWeek_=this.firstDayOfWeek_;r.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return r};
_.ips=function(r){return _.kI({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:r}})};
Ruq=new _.q("imageTileRenderer");var vj7=new _.q("adGridCardCollectionViewModel");var KH6=new _.q("carouselTitleViewModel");var yS3=new _.q("ctaCarouselItemViewModel");var Un3=new _.q("textFieldViewModel");_.sm2=new _.q("engagementPanelHeaderShowNavigationButtonCommand");var Op6=new _.q("hideEngagementPanelScrimAction");var oj7=new _.q("setActivePanelItemAction");var Qm1=new _.q("showEngagementPanelScrimAction");var AS2=new _.q("updateEngagementPanelAction");var Zpq=new _.q("updateSearchInVideoResultsAction");var Gvd=new _.q("transcriptCueGroupRenderer");var kv1=new _.q("transcriptCueRenderer");var Br3=new _.q("transcriptFooterRenderer");var qL7=new _.q("engagementPanelAdSubtitleRenderer");var uj2=new _.q("videoDescriptionFantasySectionViewModel");var Dn1=new _.q("deleteClipEngagementPanelCommand");var rDB=new _.q("loopCommand");var flV=new _.q("changeCreatorEndscreenVisibilityCommand");var IlV=new _.q("liveChatCallForQuestionsRenderer");var C92=new _.q("updateTimedMarkersSyncObserverCommand");var e7=new _.q("timelyActionViewModel");var Yxs=new _.q("timelyActionsOverlayViewModel");var lls=new _.q("repeatChapterCommand");var Vw1=new _.q("watchPlayerOverflowMenuCommand");var EsB=new _.q("compositeVideoOverlayRenderer");var Sx6=new _.q("sortFilterSubMenuRenderer");var xE7=new _.q("switchListItemViewModel");var hOq=new _.q("inputComposerViewModel");var w6q=new _.q("transcriptEditSegmentCommand");var bC6=new _.q("transcriptUpdateSegmentTextCommand");var p61=new _.q("transcriptSearchBoxRenderer");var ns6=new _.q("transcriptSegmentListRenderer");var dEi=new _.q("transcriptSegmentRenderer");_.zO7=new _.q("updateDateTextAction");var Mw3=new _.q("updateTitleAction");var gs6=new _.q("updateViewershipAction");var al2=new _.q("carouselLockupRenderer");var X61=new _.q("expandableVideoDescriptionBodyRenderer");var NCq=new _.q("videoDescriptionYouchatSectionViewModel");_.j7=_.Bw("kevlar_watch_page_horizontal_margin",24);_.$Eq=_.Bw("kevlar_watch_page_columns_top_padding",24);_.FEB=426+_.j7*2;_.H$=_.Bw("kevlar_watch_two_column_width_threshold",1E3);_.iP=_.j7*2;_.Re=_.Bw("kevlar_watch_secondary_width",402);_.P9d=_.Bw("kevlar_watch_secondary_max_width",600);_.tw1=_.Bw("kevlar_watch_max_player_width",1280);_.TCs=_.Bw("kevlar_watch_flexy_metadata_height",136);_.cD7=_.iP+310+_.j7;_.WE6=_.iP+360+_.j7;var LEs={PAUSE_CHAT:18};var mE7;var eOs;var v$=function(){return _.y.apply(this,arguments)||this};
_.t(v$,_.y);v$.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
v$.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var r=_.F(this.data.button,_.NI);r&&(r.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.OC.Object.defineProperties(v$,{template:{configurable:!0,enumerable:!0,get:function(){if(eOs===void 0){var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;mE7===void 0&&(mE7=document.createElement("template"));var C=mE7;I.call(f,C.content.cloneNode(!0),r.content.firstChild);eOs=r}r=eOs;return r}}});
_.A([_.J(_.FT),_.B("design:type",Object)],v$.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],v$.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K({selectorArgs:["data.enabledEntityKey"],selector:KDp,observer:"onEnabledChange"}),_.B("design:type",Boolean)],v$.prototype,"enabled",void 0);_.A([_.K(),_.B("design:type",Object)],v$.prototype,"data",void 0);v$=_.A([_.zX({is:"yt-disableable-button-view-model",noInjection:!0})],v$);var JDd;var j4B;var HCi=["transVert01","transVert02","transVert03"],iCs="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),K5=function(){var r=_.y.apply(this,arguments)||this;r.emojiManager=_.ti;r.isDarkTheme=document.documentElement.hasAttribute("dark");r.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};r.reactionBuckets=[];r.noEmojiIdentifier="NO_EMOJI";return r};
_.t(K5,_.y);_.l=K5.prototype;_.l.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.l.desktopFountainEmojiSizePxChanged=function(){_.Zh(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.l.createUserReactionAnimation=function(r){this.createEmojiAnimation(r,!0)};
_.l.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var r;((r=this.data)==null?0:r.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.hv("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.Na(this.emojiContainer.children)).forEach(function(f){f.remove()})};
_.l.detached=function(){this.cleanupFountain()};
_.l.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var r;this.reactionBuckets=_.X0.unsafeClone((r=this.emojiFountainData)==null?void 0:r.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.l.processEmojiBucket=function(r){var f=this;if(this.reactionBuckets&&!(r>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var I=this.reactionBuckets[r];this.generateEmojiAnimations(I);if(r<this.reactionBuckets.length-1){var C;if(I==null?0:(C=I.duration)==null?0:C.seconds)this.emojiBucketTimerId=setTimeout(function(){f.processEmojiBucket(r+1)},Number(I.duration.seconds)*1E3)}}};
_.l.generateEmojiAnimations=function(r){var f=this,I=this.getRandomEmojiIdFromBucketWithOverride(r);if(I&&I!==this.noEmojiIdentifier){var C=0;r.targetEps?(C=this.linearInterpolateBounded(1,20,100,12,r.emojiSizeIndex||0),this.createEmojiAnimation(I,!1,r.emojiAnimationMs,C),C=this.getEmojiDelayMsFromTargetEps(r.targetEps)):(this.createEmojiAnimation(I),C=this.getEmojiDelayMsFromDistribution(r.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){f.generateEmojiAnimations(r)},C)}};
_.l.getRandomEmojiIdFromBucketWithOverride=function(r){if(!(r&&r.reactionsData&&r.reactionsData.length&&r.totalReactions))return this.noEmojiIdentifier;for(var f=r.totalReactions,I=1,C=_.E(r.reactionsData),Y=C.next();!Y.done;Y=C.next())Y=Y.value,(Y.reactionWeightOverride||Y.reactionWeightOverride===0)&&Y.reactionCount&&(f-=Y.reactionCount,I-=Y.reactionWeightOverride);C=!0;I<0&&(C=!1,f=r.totalReactions,I=1);if(C&&I>0&&f===0)if(I===1){Y=0;for(var V=_.E(r.reactionsData),S=V.next();!S.done;S=V.next())S=
S.value,S.reactionCount&&S.reactionCount>0&&Y++;Y=1/Y;V=_.E(r.reactionsData);for(S=V.next();!S.done;S=V.next())S.value.reactionWeightOverride=Y}else for(Y=1/(1-I),V=_.E(r.reactionsData),S=V.next();!S.done;S=V.next())S=S.value,S.reactionWeightOverride&&(S.reactionWeightOverride*=Y);Y=Math.random();V=0;S=_.E(r.reactionsData);for(var h=S.next();!h.done;h=S.next())if(h=h.value,h.reactionCount&&(V=(h.reactionWeightOverride||h.reactionWeightOverride===0)&&C?V+h.reactionWeightOverride:V+I*h.reactionCount/
f,V>Y&&(h.reactionCount--,r.totalReactions--,h=this.reactionItemToEmojiString(h),h!==this.noEmojiIdentifier)))return h;return this.noEmojiIdentifier};
_.l.reactionItemToEmojiString=function(r){if(r.unicodeEmojiId)return r.unicodeEmojiId;if(r.emoteId)return r.emoteId;if(r.videoReactionType)switch(r.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.l.createEmojiAnimation=function(r,f,I,C){f=f===void 0?!1:f;this.lastEmojiRequestedForTesting=r;var Y=r.startsWith("yt-icons:"),V=_.FG(this.emojiManager,r);if(V||Y){var S=document.createElement("emoji");S.classList.add("yt-emoji-fountain-view-model");S.classList.add(HCi[Math.floor(Math.random()*HCi.length)]);var h=document.createElement("div");h.classList.add("yt-emoji-fountain-view-model");h.classList.add("horizontal-container");h.classList.add(iCs[Math.floor(Math.random()*iCs.length)]);f?(I=document.createElement("div"),
I.classList.add("user-reaction-bubble"),I.classList.add("yt-emoji-fountain-view-model"),h.appendChild(I)):(I&&(S.style.animationDuration=I+"ms",h.style.animationDuration=I+"ms"),C&&(S.style.width=C+"px",S.style.height=C+"px"));Y?(Y=document.createElement("yt-icon"),Y.polymerController.icon=r,C&&(Y.style.width=C+"px",Y.style.height=C+"px"),r=Y):r=this.emojiManager.createEmoji(V,!1);r.classList.add("yt-emoji-fountain-view-model");h.appendChild(r);S.appendChild(h);this.emojiContainer.appendChild(S);
S.addEventListener("animationend",function(){S.remove()});
var w,n;if((w=this.data)==null?0:(n=w.loggingDirectives)==null?0:n.trackingParams)f=f?_.pQ(183501):_.pQ(183500),yuU(this.data.loggingDirectives.trackingParams,f),_.Guu(f);setTimeout(function(){S&&S.remove()},2E3)}};
_.l.getEmojiDelayMsFromDistribution=function(r){return Math.random()*(r||1)*1E3};
_.l.getEmojiDelayMsFromTargetEps=function(r){return Math.random()*2*(1/r)*1E3};
_.l.linearInterpolateBounded=function(r,f,I,C,Y){Y=Math.min(Math.max(Y,r),I);return(f*(I-Y)+C*(Y-r))/(I-r)};
K5.prototype.onEmojiFountainDataEntityUpdate=K5.prototype.onEmojiFountainDataEntityUpdate;K5.prototype.desktopFountainEmojiSizePxChanged=K5.prototype.desktopFountainEmojiSizePxChanged;K5.prototype.isActiveChanged=K5.prototype.isActiveChanged;_.A([_.K(),_.B("design:type",_.$n)],K5.prototype,"emojiManager",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],K5.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.FT),_.B("design:type",Object)],K5.prototype,"ytLiveChatReduxBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],K5.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],K5.prototype,"data",void 0);_.A([_.K({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(r,f){return _.f2(r.entities,"emojiFountainDataEntity",f)}}),
_.B("design:type",Object)],K5.prototype,"emojiFountainData",void 0);_.A([_.K(),_.B("design:type",Boolean)],K5.prototype,"isActive",void 0);_.A([_.Bt("isActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],K5.prototype,"isActiveChanged",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],K5.prototype,"isDarkTheme",void 0);_.A([_.K(),_.B("design:type",String)],K5.prototype,"lastEmojiRequestedForTesting",void 0);
_.A([_.K({value:function(){return _.Bw("desktop_fountain_emoji_size_px",20)}}),
_.B("design:type",Number)],K5.prototype,"desktopFountainEmojiSizePx",void 0);_.A([_.Bt("desktopFountainEmojiSizePx"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],K5.prototype,"desktopFountainEmojiSizePxChanged",null);_.A([_.uA("#emoji-container"),_.B("design:type",HTMLElement)],K5.prototype,"emojiContainer",void 0);
_.A([_.Bt("emojiFountainData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],K5.prototype,"onEmojiFountainDataEntityUpdate",null);K5=_.A([_.zX({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],K5);
_.Q(K5,"yt-emoji-fountain-view-model",function(){if(j4B===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;JDd===void 0&&(JDd=document.createElement("template"));var C=JDd;I.call(f,C.content.cloneNode(!0),r.content.firstChild);j4B=r}r=j4B;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var ROp;var vsV;var y4=function(){return _.y.apply(this,arguments)||this};
_.t(y4,_.y);y4.prototype.onChoiceChanged=function(){this.data&&_.Zh(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
y4.prototype.onChoiceChanged=y4.prototype.onChoiceChanged;_.A([_.K(),_.B("design:type",Object)],y4.prototype,"data",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],y4.prototype,"onChoiceChanged",null);y4=_.A([_.U({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],y4);
_.Q(y4,"yt-live-chat-banner-poll-choice",function(){if(vsV===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;ROp===void 0&&(ROp=document.createElement("template"));var C=ROp;I.call(f,C.content.cloneNode(!0),r.content.firstChild);vsV=r}r=vsV;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var KE3;var yDq;var Uz=function(){var r=_.y.apply(this,arguments)||this;r.modern=_.N("web_button_rework_with_live");r.small=!1;return r};
_.t(Uz,_.y);Uz.prototype.computeIsSmall=function(){var r;return((r=this.buttonOverrides)==null?void 0:r.size)==="S"};
Uz.prototype.computeId=function(){return this.data&&this.data.targetId};
_.A([_.J(_.PD.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],Uz.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.A([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.B("design:type",String)],Uz.prototype,"id",void 0);_.A([_.K(),_.B("design:type",Object)],Uz.prototype,"buttonOverrides",void 0);_.A([_.K(),_.B("design:type",Object)],Uz.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Uz.prototype,"modern",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.B("design:type",Object)],Uz.prototype,"small",void 0);Uz=_.A([_.U({disableElementRegistration:!0,is:"yt-live-chat-button"})],Uz);
_.Q(Uz,"yt-live-chat-button",function(){if(yDq===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;KE3===void 0&&(KE3=document.createElement("template"));var C=KE3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);yDq=r}r=yDq;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var UE7;var s4q;var sz=function(){var r=_.y.apply(this,arguments)||this;r.inCollapsedBanner=!1;r.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};r.questionButtonOverrides={style:"mono",type:"filled"};return r};
_.t(sz,_.y);_.l=sz.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(r){this.ytLiveChatItemBehavior.showContextMenu(r)};
_.l.onYtRendererstamperFinished=function(){this.menuButton=_.e(this.hostElement).querySelector("#menu-button")};
_.l.dataChanged=function(){var r,f;if((f=_.F((r=this.data)==null?void 0:r.overflowMenuButton,_.Ll))==null?0:f.command)this.data.contextMenuEndpoint=_.F(this.data.overflowMenuButton,_.Ll).command};
_.l.onButtonClick=function(){var r,f=_.F((r=this.data)==null?void 0:r.askQuestionButton,_.Ll);if(f){if(f.trackingParams&&(r=_.VH(f.trackingParams))){var I=_.t1();I&&_.im(I,r)}_.kA(this.hostElement,"innertube-command",f.command)}};
sz.prototype.onYtRendererstamperFinished=sz.prototype.onYtRendererstamperFinished;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],sz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.FT),_.B("design:type",Object)],sz.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.J(_.TJ.YtLiveChatItemBehavior),_.B("design:type",_.c2)],sz.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.K({observer:"dataChanged"}),_.B("design:type",Object)],sz.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],sz.prototype,"inCollapsedBanner",void 0);_.A([_.K(),_.B("design:type",Object)],sz.prototype,"buttonOverrides",void 0);_.A([_.K(),_.B("design:type",Object)],sz.prototype,"questionButtonOverrides",void 0);_.A([_.kO("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sz.prototype,"onYtRendererstamperFinished",null);
sz=_.A([_.U({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],sz);
_.Q(sz,"yt-live-chat-call-for-questions-renderer",function(){if(s4q===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;UE7===void 0&&(UE7=document.createElement("template"));var C=UE7;I.call(f,C.content.cloneNode(!0),r.content.firstChild);s4q=r}r=s4q;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var OC1={};OC1.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 r=this;window.requestAnimationFrame(function(){r.restoreFocusNode_||(r.restoreFocusNode_=document.activeElement);var f=_.ZF8(r.hostElement);f.length&&f[f.length-1].focus()})},
isAttachedChanged_:function(r,f){r?this.focusChild_():f&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(r){this.hidden||_.JN(r).indexOf(this.hostElement)!==-1||(r.stopPropagation(),this.focusChild_())}};var osU;var Q4s;var Oz=function(){return _.y.apply(this,arguments)||this};
_.t(Oz,_.y);Oz.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Oz.prototype.onClick=function(r){r.target!==this.confirmButton&&r.target!==this.cancelButton&&(this.hidden=!0)};
_.A([_.uA("#confirm_button"),_.B("design:type",Object)],Oz.prototype,"confirmButton",void 0);_.A([_.uA("#cancel_button"),_.B("design:type",Object)],Oz.prototype,"cancelButton",void 0);_.A([_.K(),_.B("design:type",ADY)],Oz.prototype,"data",void 0);_.A([_.K({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],Oz.prototype,"hidden",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Oz.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(OC1.YtLiveChatDialogBehavior),_.B("design:type",Object)],Oz.prototype,"ytLiveChatDialogBehavior",void 0);Oz=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Oz);
var ADY=_.Q(Oz,"yt-live-chat-dialog-renderer",function(){if(Q4s===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;osU===void 0&&(osU=document.createElement("template"));var C=osU;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Q4s=r}r=Q4s;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var ZC7;var G0V,k0V=function(){if(G0V!==void 0)return G0V;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;ZC7===void 0&&(ZC7=document.createElement("template"));var C=ZC7;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return G0V=r};var BCp;var qx3;var oe=function(){var r=_.y.apply(this,arguments)||this;r.tooltip=null;r.data=null;r.id="";r.active=!1;r.icon="";r.disabled=!1;r.showTooltip=!1;r.useToggledActiveState=!0;r.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return r};
_.t(oe,_.y);_.l=oe.prototype;
_.l.dataChanged=function(){var r;((r=this.data)==null?0:r.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,_.AN)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var f;if((f=this.data)==null?0:f.disabled)this.disabled=!0};
_.l.computeId=function(r){return r};
_.l.computeIcon=function(r,f){if(!r)return"";if(this.useToggledActiveState)return"yt-icons:"+r.toLowerCase();var I,C;return f&&((I=this.data)==null?0:(C=I.toggledIcon)==null?0:C.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+r.toLowerCase()};
_.l.logPDGEntryPoint=function(){_.p2E(_.Dx("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 r=_.e(this.hostElement).querySelector("#tooltip");r.animationDelay=0;r.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};r.show()};
_.l.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.l.onClick=function(r){var f;((f=this.data)==null?0:f.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(),r.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.kA(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.l.computeShowTooltip=function(r,f){return!!(r&&r.tooltip&&f)};
_.l.maybeUpdateTooltipText=function(){var r=this,f;if((f=this.data)==null?0:f.tooltip){var I=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.AN)(r.tooltip).textContent=I},250)}};
_.l.handleLiveChatActions=function(r){var f=this;r.length&&(this.id!=="creator"&&this.id!=="product-picker"||r.forEach(function(I){(I=f.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",I))&&I.durationSec===I.fullDurationSec&&f.startBubble(f.colorFromDecimal(I.startBackgroundColor))}))};
_.l.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.l.startBubble=function(r){_.Zh(this.hostElement,{"--yt-live-chat-monetization-button-glow":r});this.hostElement.setAttribute("bubble","")};
_.l.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.l.colorFromDecimal=function(r){typeof r==="string"&&(r=Number(r));return"rgba("+[r>>16&255,r>>8&255,r&255,(r>>24&255)/255].join()+")"};
oe.prototype.onAnimationEnd=oe.prototype.onAnimationEnd;oe.prototype.disabledChanged=oe.prototype.disabledChanged;oe.prototype.dataChanged=oe.prototype.dataChanged;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],oe.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],oe.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.PD.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],oe.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],oe.prototype,"data",void 0);_.A([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.B("design:type",Object)],oe.prototype,"id",void 0);_.A([_.K({notify:!0,reflectToAttribute:!0}),_.B("design:type",Object)],oe.prototype,"active",void 0);
_.A([_.K({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.B("design:type",Object)],oe.prototype,"icon",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],oe.prototype,"disabled",void 0);_.A([_.K({computed:"computeShowTooltip(data, disabled)"}),_.B("design:type",Object)],oe.prototype,"showTooltip",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],oe.prototype,"useToggledActiveState",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oe.prototype,"dataChanged",null);_.A([_.Bt("disabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oe.prototype,"disabledChanged",null);_.A([_.kO("animationend"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],oe.prototype,"onAnimationEnd",null);
oe=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],oe);
_.Q(oe,"yt-live-chat-icon-toggle-button-renderer",function(){if(qx3===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;BCp===void 0&&(BCp=document.createElement("template"));var C=BCp;I.call(f,C.content.cloneNode(!0),r.content.firstChild);qx3=r}r=qx3;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var ueY;var DE2;var Q4=function(){return _.y.apply(this,arguments)||this};
_.t(Q4,_.y);Q4.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.A([_.K(),_.B("design:type",Object)],Q4.prototype,"data",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Q4.prototype,"ytRendererstamperBehavior",void 0);Q4=_.A([_.U({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],Q4);
_.Q(Q4,"yt-live-chat-message-input-prompt-header-renderer",function(){if(DE2===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;ueY===void 0&&(ueY=document.createElement("template"));var C=ueY;I.call(f,C.content.cloneNode(!0),r.content.firstChild);DE2=r}r=DE2;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var rO3;var fgB;var Igp;var C86;var Y3Y;var lg6;var AE=function(){return _.y.apply(this,arguments)||this};
_.t(AE,_.y);_.A([_.K(),_.B("design:type",Object)],AE.prototype,"data",void 0);AE=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],AE);
_.Q(AE,"yt-live-chat-message-subtext-renderer",function(){if(lg6===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;Y3Y===void 0&&(Y3Y=document.createElement("template"));var C=Y3Y;I.call(f,C.content.cloneNode(!0),r.content.firstChild);lg6=r}r=lg6;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var ZX=function(){var r=_.y.apply(this,arguments)||this;r.subtextOnBottom=!1;r.buttonOverrides={style:"mono",type:"tonal"};return r};
_.t(ZX,_.y);ZX.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"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ZX.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ZX.prototype,"subtextOnBottom",void 0);_.A([_.K(),_.B("design:type",Object)],ZX.prototype,"buttonOverrides",void 0);
ZX=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],ZX);
_.Q(ZX,"yt-live-chat-message-renderer",function(){if(C86===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;Igp===void 0&&(Igp=document.createElement("template"));var C=Igp;I.call(f,C.content.cloneNode(!0),r.content.firstChild);C86=r}r=C86;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var V1d;var EzU;var GV=function(){var r=_.y.apply(this,arguments)||this;r.isRemovable=!1;r.hasPrefilledText=!1;r.isInputDirty=!1;r.overCharacterLimit=!1;r.underCharacterLimit=!1;r.showErrorMessage=!1;return r};
_.t(GV,_.y);_.l=GV.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 _.e(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.l.clearInput=function(){_.e(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(r){r=r.detail&&r.detail.characterCount;r!==void 0&&(this.characterCount=r,r!==0&&(this.isInputDirty=!0))};
_.l.onInputFocusOut=function(){this.isInputDirty=!0};
_.l.onClickCloseButton=function(){_.kA(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
GV.prototype.handleTextInputCharCountChanged=GV.prototype.handleTextInputCharCountChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],GV.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],GV.prototype,"data",void 0);_.A([_.K({computed:"computeId(data.id)"}),_.B("design:type",String)],GV.prototype,"id",void 0);_.A([_.K({computed:"computeInputData(data.inputData)"}),_.B("design:type",Object)],GV.prototype,"inputData",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.B("design:type",Object)],GV.prototype,"isRemovable",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.B("design:type",Object)],GV.prototype,"hasPrefilledText",void 0);_.A([_.K({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.B("design:type",Number)],GV.prototype,"charactersRemaining",void 0);
_.A([_.K(),_.B("design:type",Number)],GV.prototype,"characterCount",void 0);_.A([_.K(),_.B("design:type",Object)],GV.prototype,"isInputDirty",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.B("design:type",Object)],GV.prototype,"overCharacterLimit",void 0);_.A([_.K({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.B("design:type",Object)],GV.prototype,"underCharacterLimit",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.B("design:type",Object)],GV.prototype,"showErrorMessage",void 0);_.A([_.kO("yt-live-chat-text-input-field-renderer-character-count-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],GV.prototype,"handleTextInputCharCountChanged",null);
GV=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],GV);
_.Q(GV,"yt-live-chat-poll-editor-input",function(){if(EzU===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;V1d===void 0&&(V1d=document.createElement("template"));var C=V1d;I.call(f,C.content.cloneNode(!0),r.content.firstChild);EzU=r}r=EzU;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var S3p;var xR6;var h81={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},kQ=function(){var r=_.y.apply(this,arguments)||this;r.modern=_.N("web_button_rework_with_live");r.closeButtonOverrides={iconPosition:"icon-only"};r.startButtonOverrides={style:"mono",type:"filled"};r.addOptionButtonOverrides={style:"mono",type:"text"};return r};
_.t(kQ,_.y);_.l=kQ.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 r;_.F((r=this.data)==null?void 0:r.startButton,_.Ll)&&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 r=0;r<this.pollEditorInfoWithDefaults.minPollOptions;r++)this.addPollOptionData()};
_.l.getIsValidPoll=function(){var r=this;if(!this.pollEditorInfoWithDefaults)return!1;var f=this.pollEditorInfoWithDefaults,I=f.minPollOptionChars,C=f.maxPollOptionChars,Y=f.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>f.maxPollQuestionChars)return!1;f=_.e(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(f).every(function(V,S){V=V.characterCount;!V&&Y[S]&&(V=r.ytRendererBehavior.getSimpleString(Y[S]).length);return V!==void 0&&V>=I&&V<=C})};
_.l.isValidPollChanged=function(){var r;_.F((r=this.data)==null?void 0:r.startButton,_.Ll)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.l.addPollOptionData=function(){var r=this.pollEditorInfoWithDefaults,f=r.maxPollOptionChars,I=r.optionPlaceholderText,C=r.customOptionPlaceholderText,Y=r.pollOptionData;this.currentNumPollOptions>=r.maxPollOptions||(r={liveChatPollOptionInput:{inputData:{placeholder:C[this.currentNumPollOptions]||I,maxCharacterLimit:f},maxCharacterLimit:f,minCharacterLimit:r.minPollOptionChars,hasPrefilledText:!!C[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=r.minPollOptions}},Y.charCountErrorText&&
(r.liveChatPollOptionInput.charCountErrorText=Y.charCountErrorText),Y.charsRemainingAltLabel&&(r.liveChatPollOptionInput.charsRemainingAltLabel=Y.charsRemainingAltLabel),Y.removeOptionAltText&&(r.liveChatPollOptionInput.removeOptionAltText=Y.removeOptionAltText),this.push("pollOptionsData",r),Y=Array.from(_.e(_.e(this.hostElement).querySelector("#poll-options")).children),Y.forEach(function(V,S){V.polymerController.set("data.id",S)}),_.e(Y[Y.length-1]).querySelector("#input").focus())};
_.l.getPollOptionInputValues=function(){var r=this,f=[],I=_.e(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),C=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(I).forEach(function(Y,V){var S=null;Y=Y.getLiveChatRichMessageInput();var h;(Y==null?0:(h=Y.textSegments)==null?0:h.length)?S=_.t8(Y):C[V]&&(S=r.formattedStringToLiveChatRichMessageInput(C[V]));f.push(S)});
return f};
_.l.requestCreateAndStartPoll=function(r){var f=this.getPollOptionInputValues();if(!f.some(function(C){return!C})){f={optionText:f};
var I=_.e(_.e(this.hostElement).querySelector("#poll-question")).firstChild;I&&I.liveChatRichMessageInput&&(f.questionText=_.t8(I.liveChatRichMessageInput));_.Do(this.hostElement,[r,f])}};
_.l.selectedChanged=function(){if(this.selected){var r=_.e(_.e(this.hostElement).querySelector("#start-button")).firstElementChild;if(r){var f;(f=_.e(r).querySelector("#button")||_.Oi(r).querySelector("button"))==null||f.focus()}}};
_.l.handleTextInputChanged=function(r){var f;((f=r.target)==null?void 0:f.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=r.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.l.handleStartButtonAction=function(r){r.detail.actionName==="yt-service-request"&&(r.stopPropagation(),(r=r.detail.args[1])&&this.requestCreateAndStartPoll(r))};
_.l.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.l.handleServiceRequestCompleted=function(r){this.createPollRequestInFlight=!1;(r=r.detail&&r.detail.data)&&r.success&&(_.kA(this.hostElement,"picker-cancelled"),_.Bj(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.l.onCloseClick=function(){_.kA(this.hostElement,"picker-cancelled");_.Bj(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.l.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.l.handlePollEditorInputClosed=function(r){var f=this.pollOptionsData.findIndex(function(I){return I.liveChatPollOptionInput.id===r.detail.id});
this.splice("pollOptionsData",f,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 r=_.e(_.e(this.hostElement).querySelector("#poll-question")).firstChild;r&&r.setLiveChatRichMessageInput(null);if(r=_.e(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){r=_.E(Array.from(r));for(var f=r.next();!f.done;f=r.next())f.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.l.formattedStringToLiveChatRichMessageInput=function(r){return r.simpleText?{text_segments:[r.simpleText]}:{text_segments:r.runs}};
_.OC.Object.defineProperties(kQ.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(h81,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
kQ.prototype.onPickerCancelled=kQ.prototype.onPickerCancelled;kQ.prototype.handlePollEditorInputClosed=kQ.prototype.handlePollEditorInputClosed;kQ.prototype.handleServiceRequestCompleted=kQ.prototype.handleServiceRequestCompleted;kQ.prototype.handleServiceRequestSent=kQ.prototype.handleServiceRequestSent;kQ.prototype.handleTextInputChanged=kQ.prototype.handleTextInputChanged;kQ.prototype.selectedChanged=kQ.prototype.selectedChanged;kQ.prototype.isValidPollChanged=kQ.prototype.isValidPollChanged;
kQ.prototype.shouldInitializePollChanged=kQ.prototype.shouldInitializePollChanged;kQ.prototype.dataChanged=kQ.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],kQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],kQ.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],kQ.prototype,"modern",void 0);
_.A([_.K(),_.B("design:type",Object)],kQ.prototype,"closeButtonOverrides",void 0);_.A([_.K(),_.B("design:type",Object)],kQ.prototype,"startButtonOverrides",void 0);_.A([_.K(),_.B("design:type",Object)],kQ.prototype,"addOptionButtonOverrides",void 0);_.A([_.K({computed:"computeId(data.id)",reflectToAttribute:!0}),_.B("design:type",String)],kQ.prototype,"id",void 0);_.A([_.K({value:function(){return[]}}),
_.B("design:type",Array)],kQ.prototype,"pollOptionsData",void 0);_.A([_.R("pollEditorInfoWithDefaults"),_.B("design:type",Object),_.B("design:paramtypes",[])],kQ.prototype,"pollQuestionData",null);_.A([_.K({value:0}),_.B("design:type",Number)],kQ.prototype,"pollQuestionCharacterCount",void 0);_.A([_.R("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.B("design:type",Object),_.B("design:paramtypes",[])],kQ.prototype,"pollQuestionCharactersRemaining",null);
_.A([_.K({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.B("design:type",Boolean)],kQ.prototype,"overQuestionCharacterLimit",void 0);_.A([_.R("data.pollEditorInfo"),_.B("design:type",Object),_.B("design:paramtypes",[])],kQ.prototype,"pollEditorInfoWithDefaults",null);_.A([_.K({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.B("design:type",Number)],kQ.prototype,"currentNumPollOptions",void 0);
_.A([_.K({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.B("design:type",Boolean)],kQ.prototype,"hasMaxNumPollOptions",void 0);_.A([_.R("pollEditorInfoWithDefaults","pollOptionsData"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kQ.prototype,"shouldInitializePoll",null);_.A([_.K(),_.B("design:type",Object)],kQ.prototype,"isValidPoll",void 0);
_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],kQ.prototype,"createPollRequestInFlight",void 0);_.A([_.K(),_.B("design:type",Object)],kQ.prototype,"selected",void 0);_.A([_.K({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.B("design:type",Boolean)],kQ.prototype,"showQuestionErrorMessage",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kQ.prototype,"dataChanged",null);_.A([_.Bt("shouldInitializePoll"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kQ.prototype,"shouldInitializePollChanged",null);_.A([_.Bt("isValidPoll"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kQ.prototype,"isValidPollChanged",null);
_.A([_.Bt("selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kQ.prototype,"selectedChanged",null);_.A([_.kO("yt-live-chat-text-input-field-renderer-character-count-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],kQ.prototype,"handleTextInputChanged",null);
_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kQ.prototype,"handleServiceRequestSent",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],kQ.prototype,"handleServiceRequestCompleted",null);
_.A([_.kO("yt-live-chat-poll-editor-input-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],kQ.prototype,"handlePollEditorInputClosed",null);_.A([_.kO("picker-cancelled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kQ.prototype,"onPickerCancelled",null);kQ=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],kQ);
_.Q(kQ,"yt-live-chat-poll-editor-panel-renderer",function(){if(xR6===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;S3p===void 0&&(S3p=document.createElement("template"));var C=S3p;I.call(f,C.content.cloneNode(!0),r.content.firstChild);xR6=r}r=xR6;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var wb6;var bbB;var B$=function(){return _.y.apply(this,arguments)||this};
_.t(B$,_.y);B$.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
B$.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.OC.Object.defineProperties(B$.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var r,f;return(r=this.data)==null?void 0:(f=r.title)==null?void 0:f.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var r;return _.aB((r=this.data)==null?void 0:r.onTapCommand)}}});
_.A([_.J(_.DG.YtEndpointBehavior),_.B("design:type",Object)],B$.prototype,"ytEndpointBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],B$.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],B$.prototype,"itemId",null);
_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],B$.prototype,"hasPromotion",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],B$.prototype,"innertubeCommand",null);B$=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],B$);
_.Q(B$,"yt-live-chat-product-picker-panel-item-view-model",function(){if(bbB===void 0){var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;wb6===void 0&&(wb6=document.createElement("template"));var C=wb6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);bbB=r}r=bbB;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var pb1;var nz6;var qx=function(){var r=_.y.apply(this,arguments)||this;r.id="product-picker";r.selected=!1;r.closeButtonId="close-button";r.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return r};
_.t(qx,_.y);_.l=qx.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 r=_.e(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");r.length&&r[0].focus()};
_.l.onCloseBuyFlow=function(){_.kA(this.hostElement,"picker-cancelled")};
_.l.onCloseClick=function(){_.kA(this.hostElement,"picker-cancelled");var r;((r=this.data)==null?0:r.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.F(this.data.closeButton,_.NI))};
_.l.onCloseEngageWithAudienceEditorPanels=function(){_.kA(this.hostElement,"picker-cancelled")};
qx.prototype.observeSelected=qx.prototype.observeSelected;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],qx.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],qx.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],qx.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],qx.prototype,"id",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],qx.prototype,"selected",void 0);_.A([_.K(),_.B("design:type",Object)],qx.prototype,"closeButtonId",void 0);_.A([_.Bt("selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qx.prototype,"observeSelected",null);
qx=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],qx);
_.Q(qx,"yt-live-chat-product-picker-panel-view-model",function(){if(nz6===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;pb1===void 0&&(pb1=document.createElement("template"));var C=pb1;I.call(f,C.content.cloneNode(!0),r.content.firstChild);nz6=r}r=nz6;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var dRV;var z8i;var uP=function(){var r=_.y.apply(this,arguments)||this;r.iconId="";r.icon="";r.disabled=!1;r.systemIcons=_.N("kevlar_system_icons");return r};
_.t(uP,_.y);_.l=uP.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.l.computeIconId=function(r){return r&&r.icon&&r.icon.iconType?r.icon.iconType.toLowerCase():""};
_.l.computeIcon=function(r){return r&&r.icon&&r.icon.iconType?(r=r.icon.iconType.toLowerCase(),(r.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+r):""};
_.l.computeDisabled=function(r){return!!r};
_.l.computeCommand=function(r,f){return f?void 0:r};
_.l.computeTooltip=function(r,f){return f&&r?r:""};
_.l.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.A([_.J(_.DG.YtEndpointBehavior),_.B("design:type",Object)],uP.prototype,"ytEndpointBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],uP.prototype,"data",void 0);_.A([_.K({computed:"computeIconId(data)",reflectToAttribute:!0}),_.B("design:type",Object)],uP.prototype,"iconId",void 0);
_.A([_.K({computed:"computeIcon(data)",reflectToAttribute:!0}),_.B("design:type",Object)],uP.prototype,"icon",void 0);_.A([_.K({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.B("design:type",Object)],uP.prototype,"disabled",void 0);_.A([_.K({computed:"computeCommand(data.command, disabled)"}),_.B("design:type",Object)],uP.prototype,"command",void 0);_.A([_.K({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.B("design:type",String)],uP.prototype,"tooltip",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],uP.prototype,"systemIcons",void 0);uP=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],uP);
_.Q(uP,"yt-live-chat-product-button-renderer",function(){if(z8i===void 0){var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" disabled$="[[disabled]]" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;dRV===void 0&&(dRV=document.createElement("template"));var C=dRV;I.call(f,C.content.cloneNode(!0),r.content.firstChild);z8i=r}r=z8i;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var M16;var gz1;var DX=function(){var r=_.y.apply(this,arguments)||this;r.selected=!1;r.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return r};
_.t(DX,_.y);_.l=DX.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(r){return r.id||""};
_.l.onCloseClick=function(){_.kA(this.hostElement,"picker-cancelled")};
_.l.observeSelected=function(){this.selected&&this.hostElement.focus();var r=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");r.length&&r[0].focus()};
_.l.onCloseBuyFlow=function(){_.kA(this.hostElement,"picker-cancelled")};
_.l.onCloseEngageWithAudienceEditorPanels=function(){_.kA(this.hostElement,"picker-cancelled")};
DX.prototype.observeSelected=DX.prototype.observeSelected;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],DX.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],DX.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],DX.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],DX.prototype,"data",void 0);
_.A([_.K({computed:"computeId(data)",reflectToAttribute:!0}),_.B("design:type",String)],DX.prototype,"id",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],DX.prototype,"selected",void 0);_.A([_.Bt("selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DX.prototype,"observeSelected",null);DX=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],DX);
_.Q(DX,"yt-live-chat-product-picker-renderer",function(){if(gz1===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;M16===void 0&&(M16=document.createElement("template"));var C=M16;I.call(f,C.content.cloneNode(!0),r.content.firstChild);gz1=r}r=gz1;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var agi;var Xb3;var N16;var $RU;var rq=function(){return _.y.apply(this,arguments)||this};
_.t(rq,_.y);rq.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()};
rq.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
rq.prototype.created=function(){this.ids={background:_.N1(),maskOne:_.N1(),maskTwo:_.N1(),gradient:_.N1(),largeBackground:_.N1(),largeGradientOne:_.N1(),largeGradientTwo:_.N1(),largeGradientPath:_.N1()}};
rq.prototype.maybeLoadAnimationBackground=rq.prototype.maybeLoadAnimationBackground;_.A([_.K({value:!1}),_.B("design:type",Boolean)],rq.prototype,"useLargeBackground",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],rq.prototype,"useAnimationBackground",void 0);_.A([_.K({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.B("design:type",Boolean)],rq.prototype,"useRegularBackground",void 0);
_.A([_.K(),_.B("design:type",Object)],rq.prototype,"ids",void 0);_.A([_.K(),_.B("design:type",Object)],rq.prototype,"lottieAnimation",void 0);_.A([_.uA("#animation-background"),_.B("design:type",HTMLDivElement)],rq.prototype,"animationBackground",void 0);_.A([_.Bt("useAnimationBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rq.prototype,"maybeLoadAnimationBackground",null);
rq=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],rq);
_.Q(rq,"yt-live-interactivity-component-background",function(){if($RU===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;N16===void 0&&(N16=document.createElement("template"));var C=N16;I.call(f,C.content.cloneNode(!0),r.content.firstChild);$RU=r}r=$RU;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var ft=function(){var r=_.y.apply(this,arguments)||this;r.characterCount=0;r.showInputErrorMessage=!1;r.startQnaRequestInFlight=!1;r.modern=_.N("web_button_rework_with_live");r.buttonOverrides={style:"mono",type:"filled"};r.closeButtonOverrides={iconPosition:"icon-only"};r.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return r};
_.t(ft,_.y);_.l=ft.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(r){var f,I,C,Y,V=(I=_.F(this==null?void 0:(f=this.data)==null?void 0:f.creatorCallForQuestions,IlV))==null?void 0:(C=I.inputField)==null?void 0:(Y=C.liveChatTextInputFieldRenderer)==null?void 0:Y.maxCharacterLimit,S,h;V!=null&&(r==null?void 0:(S=r.detail)==null?void 0:S.characterCount)!=null&&_.F(this==null?void 0:(h=this.data)==null?void 0:h.startButton,_.Ll)&&(f=r.detail.characterCount>V,this.set("data.startButton.buttonRenderer.isDisabled",r.detail.characterCount===
0||f),this.showInputErrorMessage=f)};
_.l.onCloseClick=function(){_.kA(this.hostElement,"picker-cancelled");_.Bj(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.l.onPickerCancelled=function(){var r=_.e(this.hostElement).querySelector("#qna-creator-text-input-field");r&&r.setLiveChatRichMessageInput(null)};
_.l.handleOpenQnaStartPanel=function(){var r=_.e(this.hostElement).querySelector("#qna-creator-text-input-field");r&&r.focus()};
_.l.handleStartButtonAction=function(r){var f=this;if(r.detail.actionName==="yt-service-request"&&(r.stopPropagation(),r=r.detail.args[1])){var I=_.e(this.hostElement).querySelector("#qna-creator-text-input-field"),C;(I==null?0:(C=I.liveChatRichMessageInput)==null?0:C.textSegments)&&I.liveChatRichMessageInput.textSegments.length!==0&&(C={rich_message:_.t8(I.liveChatRichMessageInput)},_.Do(this.hostElement,[r,C]).then(function(){_.kA(f.hostElement,"picker-cancelled")}))}};
_.l.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.l.handleServiceRequestCompleted=function(r){var f;r=r==null?void 0:(f=r.detail)==null?void 0:f.data;(r==null?0:r.actions)&&r.actions.length>0?this.startQnaRequestInFlight=!1:_.Bj(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.l.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
ft.prototype.handleServiceRequestError=ft.prototype.handleServiceRequestError;ft.prototype.handleServiceRequestCompleted=ft.prototype.handleServiceRequestCompleted;ft.prototype.handleServiceRequestSent=ft.prototype.handleServiceRequestSent;ft.prototype.onPickerCancelled=ft.prototype.onPickerCancelled;ft.prototype.onCharacterCountChanged=ft.prototype.onCharacterCountChanged;_.A([_.K(),_.B("design:type",Object)],ft.prototype,"characterCount",void 0);
_.A([_.K(),_.B("design:type",Object)],ft.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ft.prototype,"showInputErrorMessage",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ft.prototype,"startQnaRequestInFlight",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ft.prototype,"modern",void 0);_.A([_.K(),_.B("design:type",Object)],ft.prototype,"buttonOverrides",void 0);
_.A([_.K(),_.B("design:type",Object)],ft.prototype,"closeButtonOverrides",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ft.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.FT),_.B("design:type",Object)],ft.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.J(_.TJ.YtLiveChatItemBehavior),_.B("design:type",_.c2)],ft.prototype,"ytLiveChatItemBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],ft.prototype,"ytActionHandlerBehavior",void 0);_.A([_.kO("yt-live-chat-text-input-field-renderer-character-count-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ft.prototype,"onCharacterCountChanged",null);_.A([_.kO("picker-cancelled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ft.prototype,"onPickerCancelled",null);
_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ft.prototype,"handleServiceRequestSent",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ft.prototype,"handleServiceRequestCompleted",null);
_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ft.prototype,"handleServiceRequestError",null);ft=_.A([_.U({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],ft);
_.Q(ft,"yt-live-chat-qna-start-panel-renderer",function(){if(Xb3===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;agi===void 0&&(agi=document.createElement("template"));var C=agi;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Xb3=r}r=Xb3;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var FUV;var P87;var In=function(){return _.y.apply(this,arguments)||this};
_.t(In,_.y);In.prototype.dismiss=function(){_.kA(this.hostElement,"yt-live-chat-error-message-dismiss")};
In.prototype.edit=function(){_.kA(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.A([_.K(),_.B("design:type",Object)],In.prototype,"data",void 0);In=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],In);
_.Q(In,"yt-live-chat-text-actions-error-message-renderer",function(){if(P87===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;FUV===void 0&&(FUV=document.createElement("template"));var C=FUV;I.call(f,C.content.cloneNode(!0),r.content.firstChild);P87=r}r=P87;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var t1d;var T1B;var cO7;var WUB;var Ct=function(){var r=_.y.apply(this,arguments)||this;r.isDarkTheme=document.documentElement.hasAttribute("dark");r.newnessDotEligible=!1;return r};
_.t(Ct,_.y);Ct.prototype.sendReaction=function(){var r,f,I=((r=this.data)==null?void 0:r.emojiId)||((f=this.data)==null?void 0:f.emoteId),C;I&&((C=this.data)==null?0:C.shouldTriggerAnimation)&&_.Bj(this.hostElement,"yt-create-user-reaction-animation",[I]);var Y;(r=_.aB((Y=this.data)==null?void 0:Y.onTap))&&_.u7(r,this.hostElement);this.showNewnessDot&&_.Bj(this.hostElement,"yt-hide-newness-dot")};
Ct.prototype.onClick=function(r){(!r||r.clientX||r.clientY)&&this.sendReaction()};
Ct.prototype.onKeyDown=function(r){r.key!=="Enter"&&r.key!==" "||r.repeat||this.sendReaction()};
_.OC.Object.defineProperties(Ct.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var r,f;return!!(((r=this.data)==null?0:r.emojiId)||((f=this.data)==null?0:f.emoteId))}}});
_.A([_.K(),_.B("design:type",Object)],Ct.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Ct.prototype,"isDarkTheme",void 0);_.A([_.K(),_.B("design:type",Object)],Ct.prototype,"newnessDotEligible",void 0);_.A([_.R("data.maybeShowNewnessDot"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ct.prototype,"showNewnessDot",null);_.A([_.R("data.emojiId","data.emoteId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ct.prototype,"useYtImage",null);
Ct=_.A([_.zX({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Ct);
_.Q(Ct,"yt-reaction-control-panel-button-view-model",function(){if(WUB===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;cO7===void 0&&(cO7=document.createElement("template"));var C=cO7;I.call(f,C.content.cloneNode(!0),r.content.firstChild);WUB=r}r=WUB;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var LUs;var mRs;var Yu=function(){var r=_.y.apply(this,arguments)||this;r.reactionControlPanelExpanded=!1;r.isDarkTheme=document.documentElement.hasAttribute("dark");r.newnessDotEligible=!1;return r};
_.t(Yu,_.y);_.l=Yu.prototype;_.l.expandedButtonsChanged=function(){var r,f;_.Zh(this.hostElement,{"--expanded-buttons-height":((f=(r=this.expandedButtonsData)==null?void 0:r.length)!=null?f: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 r=this;this.collapseTimer=setTimeout(function(){r.reactionControlPanelExpanded=!1},500)};
_.l.onFocusIn=function(){this.onMouseEnter()};
_.l.onFocusOut=function(){this.onMouseLeave()};
_.l.onCollapsedButtonFocusIn=function(){var r=this;setTimeout(function(){var f;(f=r.expandedButtons.querySelector("button"))==null||f.focus()},100)};
_.l.onCollapsedButtonFocusOut=function(r){r.stopPropagation()};
_.OC.Object.defineProperties(Yu.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var r,f;return _.X0.unsafeClone((r=this.liveReactionsData)==null?void 0:r.emojiButtonData)||((f=this.data)==null?void 0:f.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var r;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((r=this.data)==null||!r.maybeShowNewnessDot)}}});
Yu.prototype.expandedButtonsChanged=Yu.prototype.expandedButtonsChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Yu.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.FT),_.B("design:type",Object)],Yu.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Yu.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Yu.prototype,"reactionControlPanelExpanded",void 0);_.A([_.K({selectorArgs:["data.liveReactionsDataEntityKey"],selector:vSq}),_.B("design:type",Object)],Yu.prototype,"liveReactionsData",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Yu.prototype,"isDarkTheme",void 0);_.A([_.K(),_.B("design:type",Object)],Yu.prototype,"newnessDotEligible",void 0);
_.A([_.R("liveReactionsData","data.expandedButtons"),_.B("design:type",Object),_.B("design:paramtypes",[])],Yu.prototype,"expandedButtonsData",null);_.A([_.R("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.K({reflectToAttribute:!0}),_.B("design:type",Object),_.B("design:paramtypes",[])],Yu.prototype,"showNewnessDot",null);_.A([_.uA("#expanded-buttons"),_.B("design:type",HTMLElement)],Yu.prototype,"expandedButtons",void 0);
_.A([_.Bt("expandedButtonsData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Yu.prototype,"expandedButtonsChanged",null);Yu=_.A([_.zX({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Yu);
_.Q(Yu,"yt-reaction-control-panel-view-model",function(){if(mRs===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;LUs===void 0&&(LUs=document.createElement("template"));var C=LUs;I.call(f,C.content.cloneNode(!0),r.content.firstChild);mRs=r}r=mRs;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var lG=new _.WW("yt-live-chat"),e87=Date.parse("2024-7-24"),VL=function(){var r=_.y.apply(this,arguments)||this;r.emojiManager=_.ti;r.newnessDotEligible=!1;r.newnessDotImpressionCounted=!1;r.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return r};
_.t(VL,_.y);_.l=VL.prototype;_.l.emojiCustomizationEnabledChanged=function(){var r;((r=this.data)==null?0:r.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((r=lG.getCreationTime("emoji-customization-count"))&&r<e87&&lG.set("emoji-customization-count","0"),r=Number(lG.get("emoji-customization-count"))||0,r<3&&(this.newnessDotEligible=!0,lG.set("emoji-customization-count",(r+1).toString())),this.newnessDotImpressionCounted=!0)};
_.l.hideNewnessDot=function(){this.newnessDotEligible=!1;lG.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.l.handleReactionsMute=function(r){var f=_.t1(),I=_.pQ(206221),C={checkboxData:{state:r?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};f&&_.im(f,I,C);this.reactionsMuted=r};
_.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}}};
_.OC.Object.defineProperties(VL.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var r;return(!((r=this.liveReactionsData)==null||!r.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
VL.prototype.liveReactionsSettingChanged=VL.prototype.liveReactionsSettingChanged;VL.prototype.emojiCustomizationEnabledChanged=VL.prototype.emojiCustomizationEnabledChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],VL.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.FT),_.B("design:type",Object)],VL.prototype,"ytLiveChatReduxBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],VL.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],VL.prototype,"data",void 0);_.A([_.K(),_.B("design:type",_.$n)],VL.prototype,"emojiManager",void 0);_.A([_.K(),_.B("design:type",Object)],VL.prototype,"newnessDotEligible",void 0);_.A([_.K(),_.B("design:type",Object)],VL.prototype,"newnessDotImpressionCounted",void 0);
_.A([_.K({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:KDp}),_.B("design:type",Boolean)],VL.prototype,"liveReactionsSetting",void 0);_.A([_.K({selectorArgs:["data.liveReactionsDataEntityKey"],selector:vSq}),_.B("design:type",Object)],VL.prototype,"liveReactionsData",void 0);_.A([_.K({value:function(){var r=_.N("enable_lwe_web_mute"),f=lG.get("allow-reactions");return f===void 0?!1:!f&&r}}),
_.B("design:type",Boolean)],VL.prototype,"reactionsMuted",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],VL.prototype,"liveReactionsEnabled",null);_.A([_.Bt("data.emojiCustomizationEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VL.prototype,"emojiCustomizationEnabledChanged",null);
_.A([_.Bt("liveReactionsEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VL.prototype,"liveReactionsSettingChanged",null);VL=_.A([_.zX({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],VL);
_.Q(VL,"yt-reaction-control-panel-overlay-view-model",function(){if(T1B===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;t1d===void 0&&(t1d=document.createElement("template"));var C=t1d;I.call(f,C.content.cloneNode(!0),r.content.firstChild);T1B=r}r=T1B;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var JO7={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(r){var f=this.$.pickers.selected;if(f){_.e(this.hostElement).removeAttribute(f+"-open");var I="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(I="#picker-buttons",f==="emoji"&&_.e(this.hostElement).querySelector("#emoji-picker-button")&&(I="#emoji-picker-button"));if(I=_.e(this.hostElement).querySelector(I).querySelector("#"+f))I.active=!1}I=r;f==r&&(I=null);f!=r&&
_.e(this.hostElement).setAttribute(r+"-open","");this.$.pickers.selected=I;_.Bj(this.hostElement,"yt-live-chat-picker-changed",[I])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var Et=function(){var r=_.y.apply(this,arguments)||this;r.numSentMessages=0;r.timeoutDurationMs=0;r.timeoutMs=0;r.lastTimeoutTimeMs=0;r.pendingMessageId="";r.hasFiredInitialFocusActions=!1;r.isBeforeFocusEnabled=!0;r.id="";r.characterCount=0;r.maxCharacterLimit=0;r.remainingCharacterCount=0;r.inputExpanded=!1;r.buttonOverrides={iconPosition:"icon-only"};r.inReplyPanel=!1;r.countdownRatio=0;r.isTooltipVisible=!1;r.tooltipTimeout=1E4;r.systemIcons=_.N("kevlar_system_icons");r.tallerEmojiPicker=_.N("live_chat_taller_emoji_picker");
r.blockSendMessageWithCountdown=!_.N("live_chat_enable_send_button_in_slow_mode");r.sendReplyMessageInFlight=!1;r.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"};r.onResize=function(){r.maybeToggleCharacterCount()};
return r};
_.t(Et,_.y);_.l=Et.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 r=this,f,I,C,Y;return _.x(function(V){if(r.sendDisabled)return V.return();r.isTooltipVisible&&_.Bj(r.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(r.data.sendButton&&r.data.sendButton.buttonRenderer){r.input.completeEmojis();f=r.data.sendButton.buttonRenderer.serviceEndpoint;if(!f)return V.return();C=((I=_.F(f,_.oc3))==null?void 0:I.clientIdPrefix)||"";Y={client_message_id:C+String(r.numSentMessages++),rich_message:_.t8(r.input.liveChatRichMessageInput)};
r.pendingMessageId=Y.client_message_id;r.inReplyPanel&&(r.sendReplyMessageInFlight=!0);_.Do(r.hostElement,[f,Y]);r.input.setLiveChatRichMessageInput(null)}_.wO(V)})};
_.l.handleSendButtonAction=function(r){r.detail.actionName==="yt-service-request"&&(r.stopPropagation(),this.sendMessage())};
_.l.onSendCompleted=function(r,f){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(r=this.get("timeoutDurationUsec",f.data))&&this.handleTimeout(Number(r)/1E3);this.errorMessage=this.get("errorMessage",f.data);this.pendingMessageId=""};
_.l.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.Bj(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.l.handlePickerButtonToggle=function(r){r=r.detail.targetId;this.ytPickerBehavior.togglePicker_(r);if(r==="emoji")this.input.focus();else if(r==="qna-start-panel"){var f,I;(f=_.e(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(I=f.querySelector("#qna-creator-text-input-field"))==null||I.focus()}};
_.l.onComponentReplaced=function(r){var f,I;r.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((f=r.replacement.liveChatMessageInputRenderer)==null?0:(I=f.headerRenderer)==null?0:I.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.l.onEmojiSelect=function(r){this.input.focus();this.input.insertEmoji(r.detail)};
_.l.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.l.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.Bj(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.Bj(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.l.onOpenPopupAction=function(r,f){var I=this;f===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.Bj(I.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 r=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",r>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.l.computeId=function(){return this.data&&this.data.targetId||""};
_.l.computeSendDisabled=function(r,f,I,C){r=!!(this.blockSendMessageWithCountdown&&I||!r||f&&r>f||C);(f=_.e(this.hostElement).querySelector("#send-button"))&&f.children.length&&(f.children[0].disabled=r);return r};
_.l.handleTimeout=function(r){this.timeoutDurationMs=this.timeoutMs=r;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.l.updateTimeout=function(r){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(r-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=r,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.l.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.l.onErrorMessageEdit=function(r){this.input.setLiveChatRichMessageInput(r.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.l.errorMessageChanged=function(){var r=this;_.Fi(function(){_.Bj(r.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.l.computeAuthorNameColor=function(r){var f;if(_.N("live_chat_author_name_color_usernames")&&(r==null?0:(f=r.authorName)==null?0:f.simpleText))return _.HPB(_.iPK(r.authorName.simpleText));if(_.N("live_chat_seed_color_usernames")&&(r==null?0:r.authorSeedColorArgb))return _.HPB(_.Z1(r.authorSeedColorArgb));if(_.N("live_chat_colored_usernames"))return"#cc0000";var I;return _.N("live_chat_simple_color_usernames")&&(r==null?0:(I=r.authorName)==null?0:I.simpleText)&&(r==null?0:r.authorUsernameColorLight)&&
(r==null?0:r.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.Z1(r.authorUsernameColorDark):_.Z1(r.authorUsernameColorLight):""};
_.l.onIsTooltipVisibleChanged=function(){var r=_.e(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){r.hidden=!1;r.setAttribute("role","alert")},0):(r.hidden=!0,r.removeAttribute("role"))};
_.l.onFocusedChanged=function(r){this.inputFocused=r.detail.value};
_.OC.Object.defineProperties(Et.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 r;return!((r=this.data)==null||!r.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.data)==null?void 0:(f=r.pickers)==null?void 0:f.find(function(I){return I.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var r=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return r?this.ytRendererBehavior.getSimpleString(r):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
Et.prototype.onIsTooltipVisibleChanged=Et.prototype.onIsTooltipVisibleChanged;Et.prototype.errorMessageChanged=Et.prototype.errorMessageChanged;Et.prototype.onErrorMessageEdit=Et.prototype.onErrorMessageEdit;Et.prototype.onErrorMessageDismiss=Et.prototype.onErrorMessageDismiss;Et.prototype.focusChanged=Et.prototype.focusChanged;Et.prototype.characterCountChanged=Et.prototype.characterCountChanged;Et.prototype.onEmojiSelect=Et.prototype.onEmojiSelect;Et.prototype.handlePickerButtonToggle=Et.prototype.handlePickerButtonToggle;
Et.prototype.onSendError=Et.prototype.onSendError;Et.prototype.onSendCompleted=Et.prototype.onSendCompleted;Et.prototype.sendMessage=Et.prototype.sendMessage;Et.prototype.dataChanged=Et.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Et.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.J(JO7.YtPickerBehavior),_.B("design:type",Object)],Et.prototype,"ytPickerBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Et.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.PD.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],Et.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Et.prototype,"hasFiredInitialFocusActions",void 0);
_.A([_.K(),_.B("design:type",Object)],Et.prototype,"isBeforeFocusEnabled",void 0);_.A([_.K(),_.B("design:type",Object)],Et.prototype,"data",void 0);_.A([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.B("design:type",Object)],Et.prototype,"id",void 0);_.A([_.K(),_.B("design:type",Object)],Et.prototype,"characterCount",void 0);_.A([_.K(),_.B("design:type",Object)],Et.prototype,"maxCharacterLimit",void 0);
_.A([_.K(),_.B("design:type",Object)],Et.prototype,"remainingCharacterCount",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Et.prototype,"inputExpanded",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Et.prototype,"inputFocused",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],Et.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.A([_.K(),_.B("design:type",_.mu)],Et.prototype,"participantsManager",void 0);
_.A([_.K(),_.B("design:type",Object)],Et.prototype,"buttonOverrides",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Et.prototype,"inReplyPanel",void 0);_.A([_.R("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Et.prototype,"sendDisabled",null);_.A([_.K(),_.B("design:type",Object)],Et.prototype,"countdownRatio",void 0);
_.A([_.R("countdownRatio"),_.B("design:type",Number),_.B("design:paramtypes",[])],Et.prototype,"countdownStrokeDashOffset",null);_.A([_.R("countdownRatio"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Et.prototype,"countdownActive",null);_.A([_.R("data.interactionMessage"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Et.prototype,"hasInteractionMessage",null);
_.A([_.R("data.emojiPickerButton"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Et.prototype,"hasEmojiPickerButton",null);_.A([_.R("data, characterCount"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Et.prototype,"showAvatar",null);_.A([_.R("data.pickers"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Et.prototype,"hasProductPickerPanelViewModel",null);
_.A([_.K(),_.B("design:type",Object)],Et.prototype,"errorMessage",void 0);_.A([_.K(),_.B("design:type",Object)],Et.prototype,"genericErrorMessage",void 0);_.A([_.K(),_.B("design:type",Object)],Et.prototype,"isTooltipVisible",void 0);_.A([_.K(),_.B("design:type",Object)],Et.prototype,"tooltipTimeout",void 0);_.A([_.R("data.onInitialFocusCommand"),_.B("design:type",String),_.B("design:paramtypes",[])],Et.prototype,"tooltipMessage",null);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Et.prototype,"systemIcons",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Et.prototype,"tallerEmojiPicker",void 0);_.A([_.R("data"),_.B("design:type",String),_.B("design:paramtypes",[])],Et.prototype,"authorNameColor",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Et.prototype,"blockSendMessageWithCountdown",void 0);_.A([_.K(),_.B("design:type",Object)],Et.prototype,"sendReplyMessageInFlight",void 0);
_.A([_.uA("#input"),_.B("design:type",_.Iqq)],Et.prototype,"input",void 0);_.A([_.uA("#count"),_.B("design:type",HTMLElement)],Et.prototype,"count",void 0);_.A([_.uA("#input-container"),_.B("design:type",HTMLElement)],Et.prototype,"inputContainer",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Et.prototype,"dataChanged",null);
_.A([_.kO("yt-live-chat-send-message"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],Et.prototype,"sendMessage",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[Event,_.Hl]),_.B("design:returntype")],Et.prototype,"onSendCompleted",null);_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Et.prototype,"onSendError",null);
_.A([_.kO("yt-live-chat-icon-toggle-button-renderer-toggle"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Et.prototype,"handlePickerButtonToggle",null);_.A([_.kO("yt-emoji-select"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Et.prototype,"onEmojiSelect",null);
_.A([_.Bt("characterCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Et.prototype,"characterCountChanged",null);_.A([_.Bt("inputFocused"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Et.prototype,"focusChanged",null);_.A([_.kO("yt-live-chat-error-message-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Et.prototype,"onErrorMessageDismiss",null);
_.A([_.kO("yt-live-chat-error-message-edit"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Et.prototype,"onErrorMessageEdit",null);_.A([_.Bt("errorMessage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Et.prototype,"errorMessageChanged",null);_.A([_.Bt("isTooltipVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Et.prototype,"onIsTooltipVisibleChanged",null);
Et=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],Et);
_.Q(Et,"yt-live-chat-message-input-renderer",function(){if(fgB===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;rO3===void 0&&(rO3=document.createElement("template"));var C=rO3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);fgB=r}r=fgB;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var j$2;var Hb6;var SE=function(){var r=_.y.apply(this,arguments)||this;r.systemIcons=_.N("kevlar_system_icons");r.firedOnClickCommand=!1;r.inReplyPanel=!1;return r};
_.t(SE,_.y);
SE.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"}}}};
SE.prototype.onButtonToggle=function(r){r.target.disabled||this.ytPickerBehavior.togglePicker_(r.detail.targetId)};
SE.prototype.onClick=function(){var r=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.Bj(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return r.firedOnClickCommand=!1},5E3))};
_.OC.Object.defineProperties(SE.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.data)==null?void 0:(f=r.panels)==null?void 0:f.find(function(I){return I.liveChatProductPickerPanelViewModel}))!==void 0}}});
SE.prototype.onButtonToggle=SE.prototype.onButtonToggle;_.A([_.J(JO7.YtPickerBehavior),_.B("design:type",Object)],SE.prototype,"ytPickerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],SE.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],SE.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],SE.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],SE.prototype,"systemIcons",void 0);_.A([_.K({reflectToAttribute:!1}),_.B("design:type",Object)],SE.prototype,"firedOnClickCommand",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],SE.prototype,"inReplyPanel",void 0);_.A([_.R("data.pickers"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],SE.prototype,"hasProductPickerPanelViewModel",null);
_.A([_.kO("yt-live-chat-icon-toggle-button-renderer-toggle"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],SE.prototype,"onButtonToggle",null);SE=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],SE);
_.Q(SE,"yt-live-chat-restricted-participation-renderer",function(){if(Hb6===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;j$2===void 0&&(j$2=document.createElement("template"));var C=j$2;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Hb6=r}r=Hb6;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var xu=function(){var r=_.y.apply(this,arguments)||this;r.genericErrorMessage=_.iX("Error, try again.");r.inReplyPanel=!1;r.hideBorder=!1;return r};
_.t(xu,_.y);xu.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}}}}}};
_.OC.Object.defineProperties(xu,{template:{configurable:!0,enumerable:!0,get:function(){return k0V()}}});
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],xu.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],xu.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],xu.prototype,"genericErrorMessage",void 0);_.A([_.K(),_.B("design:type",Object)],xu.prototype,"inReplyPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],xu.prototype,"hideBorder",void 0);
xu=_.A([_.zX({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],xu);_.Q(xu,"yt-live-chat-engagement-panel-input-renderer",function(){return k0V()},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var ibd,R8Y;ibd=_.pQ(115994);R8Y=_.pQ(115993);_.hw=function(r,f,I){var C=this;var Y=I.dragDownAction;this.layer=0;this.JSC$19819_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return C.dragDownAction()}}}};
this.JSC$19819_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return C.dragDownAction()}}}};
this.fullscreen=!1;var V=_.IB();_.C3(V,ibd,this.layer);_.C3(V,R8Y,this.layer);this.dragDownAction=function(){Y();_.cl(V,{visualElement:C.fullscreen?ibd:R8Y})};
this.gesture=new _.VN(r,f,this.JSC$19819_watchConfig,"pandown");this.attach()};
_.hw.prototype.attach=function(){this.gesture.attach()};
_.hw.prototype.detach=function(){this.gesture.detach()};
_.hw.prototype.update=function(r){this.fullscreen=r;this.gesture.config=r?this.JSC$19819_watchFullScreenConfig:this.JSC$19819_watchConfig};var vz2={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(r){if(r&&r.length==1&&Array.isArray(r[0].loggingUrls)){r=_.X0.unsafeClone(r[0]);var f=this.macros||{},I=this.getAdModuleClient_();if(!I)return _.fe();r.loggingUrls.forEach(function(C){if(C.baseUrl){var Y=C.baseUrl;var V=f;V=V===void 0?{}:V;Y=I.getOptions().includes("replaceUrlMacros")?_.To_(I,"replaceUrlMacros",{url:Y,additionalMapping:V}):Y;C.baseUrl=Y}},this);
r=[r]}return _.Do(this.hostElement,r)},
getAdModuleClient_:function(){var r=_.sk(this);return r?(r=r.getPlayer())?new _.xh(r):null:null}}]};var KUY;var wq=function(){var r=_.y.apply(this,arguments)||this;r.isCollapsed=!1;r.modernPanels=_.N("kevlar_watch_modern_panels");r.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return r};
_.t(wq,_.y);_.l=wq.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 r=this.get("data.donateButton.buttonRenderer.command");if(r){var f=_.t1(),I=this.get("data.donateButton.buttonRenderer.trackingParams");f&&I&&_.im(f,_.VH(I));this.ytOpenPopupBehavior.openPopup(r)}};
_.l.onShowMore=function(){this.isCollapsed=!1;var r=_.t1(),f=this.get("data.expandButton.buttonRenderer.trackingParams");r&&f&&_.im(r,_.VH(f))};
_.l.onShowLess=function(){this.isCollapsed=!0};
_.l.dataChanged=function(){_.Zh(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.l.onDarkModeToggledAction=function(r){this.isDarkTheme=r};
_.l.handleUpdate=function(r){if(r=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",r))this.set("data.startLabel",r.startLabel),this.set("data.endLabel",r.endLabel),this.set("data.progress",r.progress),this.set("data.amountRaisedLabel",r.amountRaisedLabel),this.dataChanged()};
_.l.handleOpenPopupAction=function(r){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",r)&&_.Bj(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.l.computeHeaderBackgroundUrl=function(r,f){if(r)return f?r.headerBackgroundDarkUrl:r.headerBackgroundUrl};
_.l.isProgressBarVisible=function(r){return!(!r||r.progress===void 0)};
_.l.headerBackgroundClass=function(){return _.Lz("HTML_DIR")==="rtl"?"flip":""};
wq.prototype.dataChanged=wq.prototype.dataChanged;_.A([_.J(_.ug.YtOpenPopupBehavior),_.B("design:type",Object)],wq.prototype,"ytOpenPopupBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],wq.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],wq.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],wq.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],wq.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],wq.prototype,"isCollapsed",void 0);_.A([_.K({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.B("design:type",String)],wq.prototype,"headerBackgroundUrl",void 0);_.A([_.K(),_.B("design:type",Boolean)],wq.prototype,"isDarkTheme",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],wq.prototype,"modernPanels",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wq.prototype,"dataChanged",null);wq=_.A([_.U({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],wq);
_.Q(wq,"ytd-donation-shelf-renderer",function(){if(KUY!==void 0)return KUY;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return KUY=r},{mode:1});var yOB;var bG=function(){return _.y.apply(this,arguments)||this};
_.t(bG,_.y);_.A([_.K(),_.B("design:type",Object)],bG.prototype,"data",void 0);bG=_.A([_.U({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],bG);
_.Q(bG,"ytd-donation-unavailable-renderer",function(){if(yOB!==void 0)return yOB;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return yOB=r},{mode:1});var URB;var pt=function(){return _.y.apply(this,arguments)||this};
_.t(pt,_.y);pt.prototype.computeIconType=function(r){return r?"yt-icons:"+r.toLowerCase():null};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],pt.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],pt.prototype,"data",void 0);pt=_.A([_.U({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],pt);
_.Q(pt,"ytd-limited-state-message-renderer",function(){if(URB!==void 0)return URB;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return URB=r},{mode:1});var s$i;var nt=function(){return _.y.apply(this,arguments)||this};
_.t(nt,_.y);nt.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
nt.prototype.onTap=function(r){var f=this.data&&this.data.endpoint;f&&!_.iB(_.JN(r),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.kA(this.hostElement,"yt-navigate",{endpoint:f})};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],nt.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],nt.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],nt.prototype,"data",void 0);nt=_.A([_.U({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],nt);
_.Q(nt,"ytd-autotagging-metadata-renderer",function(){if(s$i!==void 0)return s$i;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return s$i=r},{mode:1});var Obp;var dq=function(){return _.y.apply(this,arguments)||this};
_.t(dq,_.y);dq.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],dq.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],dq.prototype,"data",void 0);dq=_.A([_.U({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],dq);
_.Q(dq,"ytd-autotagging-metadata-row-renderer",function(){if(Obp!==void 0)return Obp;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Obp=r},{mode:1});var oz1;var Q$i;var zp=function(){var r=_.y.apply(this,arguments)||this;r.engagementPanelContent=!1;return r};
_.t(zp,_.y);zp.prototype.computeHasDividerLine=function(r,f){return r&&!f};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],zp.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.B("design:type",Boolean)],zp.prototype,"hasDividerLine",void 0);_.A([_.K(),_.B("design:type",Object)],zp.prototype,"engagementPanelContent",void 0);
zp=_.A([_.U({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],zp);
_.Q(zp,"ytd-metadata-row-header-renderer",function(){if(Q$i!==void 0)return Q$i;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Q$i=r},{mode:1});var AO1;var MN=function(){return _.y.apply(this,arguments)||this};
_.t(MN,_.y);MN.prototype.computeHasDividerLine=function(r){return r};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],MN.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],MN.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.B("design:type",Boolean)],MN.prototype,"hasDividerLine",void 0);MN=_.A([_.U({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],MN);
_.Q(MN,"ytd-metadata-row-renderer",function(){if(AO1!==void 0)return AO1;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return AO1=r},{mode:1});var Zb3;var gq=function(){return _.y.apply(this,arguments)||this};
_.t(gq,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],gq.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],gq.prototype,"data",void 0);gq=_.A([_.U({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],gq);
_.Q(gq,"ytd-metadata-with-image-row-renderer",function(){if(Zb3!==void 0)return Zb3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Zb3=r},{mode:1});var Gxq;var an=function(){var r=_.y.apply(this,arguments)||this;r.rounded=!0;r.fixie=!1;r.fullWidth=!1;return r};
_.t(an,_.y);_.l=an.prototype;_.l.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.onDataChanged=function(){var r=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(f){r.onEndpointLinkKeyPress(f)}))};
_.l.onEndpointLinkKeyPress=function(r){r.target===this.endpointLink&&r.keyCode===13&&_.kA(this.hostElement,"click")};
_.l.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var r;if((r=this.data)==null?0:r.endpoint)_.rX(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.l.onYtNavigate=function(r){this.endpointHref||(r.stopPropagation(),r.preventDefault())};
_.l.onInformationButtonContainerClick=function(r){r.target.id!=="information-button-container"&&(r.stopPropagation(),r.preventDefault())};
_.l.computeStyle=function(r){return r};
_.l.computeIsThumbnailStyle=function(r){return r==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.l.computeThumbnailWidth=function(r){switch(r){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(r){switch(r){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.OC.Object.defineProperties(an.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?0:r.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
an.prototype.onYtNavigate=an.prototype.onYtNavigate;an.prototype.onClick=an.prototype.onClick;an.prototype.onDataChanged=an.prototype.onDataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],an.prototype,"componentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],an.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],an.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],an.prototype,"componentStyle",void 0);_.A([_.K({computed:"computeIsThumbnailStyle(data.style)"}),_.B("design:type",Boolean)],an.prototype,"isThumbnailStyle",void 0);_.A([_.K({computed:"computeThumbnailObjectFit(data.style)"}),_.B("design:type",String)],an.prototype,"thumbnailObjectFit",void 0);
_.A([_.K({computed:"computeThumbnailWidth(data.style)"}),_.B("design:type",Number)],an.prototype,"thumbnailWidth",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],an.prototype,"rounded",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],an.prototype,"fixie",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],an.prototype,"fullWidth",void 0);_.A([_.uA("#endpoint-link"),_.B("design:type",HTMLAnchorElement)],an.prototype,"endpointLink",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],an.prototype,"onDataChanged",null);_.A([_.R("data.endpoint"),_.B("design:type",Object),_.B("design:paramtypes",[])],an.prototype,"endpointHref",null);_.A([_.kO("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],an.prototype,"onClick",null);
_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],an.prototype,"onYtNavigate",null);an=_.A([_.U({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],an);
_.Q(an,"ytd-rich-metadata-renderer",function(){if(Gxq!==void 0)return Gxq;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Gxq=r},{mode:_.QQ("kevlar_poly_si_batch_j075")?1:2});var kx3;var XP=function(){var r=_.y.apply(this,arguments)||this;r.fixie=!1;r.fullWidth=!1;return r};
_.t(XP,_.y);XP.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
XP.prototype.computeHasDividerLine=function(r){return r};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],XP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],XP.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.B("design:type",Boolean)],XP.prototype,"hasDividerLine",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],XP.prototype,"fixie",void 0);_.A([_.K(),_.B("design:type",Object)],XP.prototype,"fullWidth",void 0);
XP=_.A([_.U({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],XP);
_.Q(XP,"ytd-rich-metadata-row-renderer",function(){if(kx3!==void 0)return kx3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return kx3=r},{mode:1});var NN=function(){var r=_.y.apply(this,arguments)||this;r.engagementPanelContent=!1;r.fixie=!1;r.fullWidth=!1;return r};
_.t(NN,_.y);
NN.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"}}}};
NN.prototype.computeCollapsibleItems=function(r,f,I){return r===void 0||f===void 0||I===void 0||I?[]:r.slice(f)};
NN.prototype.computeAlwaysShownItems=function(r,f){return r&&r.length?r.slice(0,f):[]};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],NN.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],NN.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],NN.prototype,"data",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],NN.prototype,"collapsed",void 0);
_.A([_.K({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.B("design:type",Array)],NN.prototype,"alwaysShownItems",void 0);_.A([_.K({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.B("design:type",Array)],NN.prototype,"collapsibleItems",void 0);_.A([_.K(),_.B("design:type",Object)],NN.prototype,"engagementPanelContent",void 0);_.A([_.K(),_.B("design:type",Object)],NN.prototype,"fixie",void 0);
_.A([_.K(),_.B("design:type",Object)],NN.prototype,"fullWidth",void 0);NN=_.A([_.U({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],NN);
_.Q(NN,"ytd-metadata-row-container-renderer",function(){if(oz1!==void 0)return oz1;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return oz1=r},{mode:1});var B1i;var $u=function(){var r=_.y.apply(this,arguments)||this;r.currentPageUrl="";r.baseUrl="";r.isHiddenByUser=null;r.hidden=!1;r.showAboveScrim=!1;r.watchNextGrid=_.N("kevlar_watch_grid");r.modernButtons=_.N("web_modern_buttons");r.roundedContainer=!0;r.noBorder=!1;r.roundBackground=!_.N("live_chat_round_background_killswitch");r.overflowHideChat=_.N("live_chat_overflow_hide_chat");r.forceDarkTheme=!1;r.theaterWatchWhile=!1;r.isListeningForPlayerProgress=!1;r.JSC$19855_playerEvents=new Map;r.isFrameReady=
!1;r.player=null;r.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 r};
_.t($u,_.y);_.l=$u.prototype;_.l.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.qy(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.l.created=function(){var r=this;this.handleIframeEventListener=function(f){r.handleIframeEvent(f)};
this.handleKeyboardEventListener=function(f){r.handleKeyboardEvent(f)};
this.JSC$19855_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19855_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19855_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19855_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19855_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(r){var f="/live_chat";this.isChatReplay()&&(f="/live_chat_replay");return _.ul(_.qK(_.B7(_.Hh(r),f),null),"").toString()};
_.l.dataChanged=function(){_.N("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.l.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var r=this.url;if(this.isChatReplay()&&this.player){var f=Math.floor(this.player.getProgressState().current*1E3);r=_.RZ(_.Hh(r),"playerOffsetMs",f.toString()).toString()}f=this.chatframe;try{var I=r==="about:blank"?_.Rl_:_.gn(r),C=f.contentDocument.location,Y=_.PL(I);Y!==void 0&&C.replace(Y)}catch(V){f.src=r}}};
_.l.collapsedChanged=function(){_.kA(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.l.handleIframeEvent=function(r){if(r&&this.baseUrl.startsWith(r.origin)&&r.source===this.chatframe.contentWindow&&_.lV(r.data))if(r.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(r);else if(r.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(r.data["yt-show-feedback-dialog"]){var f=_.a().resolve(_.ZY(_.guD));if(f){var I=r.ports,C;I&&I.length&&(C=function(){I[0].postMessage({})});
r=r.data["yt-show-feedback-dialog"];f.showFeedbackDialog(r.customProductData,r.feedbackContent,C,r.bucket)}}else if(r.data["yt-show-survey"])_.kA(this.hostElement,"yt-show-survey",r.data["yt-show-survey"]);else if(r.data["yt-purchase-membership"])_.a().resolve(_.Gg).resolveCommand(r.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(r.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(r.data["yt-tunnel-out-live-service-request"]);else if(r.data["yt-user-activity"])_.AV();
else if(r.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(r.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(r.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(r.data["yt-open-popup"]);else if(r.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(r.data["yt-log-flow-logging-event-command"]);else if(r.data["yt-hide-live-chat"])this.onShowHideChat();else r.data["yt-report-moderation-state-log"]&&
this.player&&(f={cpn:this.player.getVideoData().cpn},_.NW("liveChatBeingModerated",f))};
_.l.attachLiveChatResponseVeTrackingParams=function(r){r=_.VH(r);var f=_.t1(),I=_.jH("liveChatRenderer.trackingParams",this.data);f&&I&&_.mw(f,_.VH(I),r)};
_.l.handleBuyflowMessages=function(r){var f=r.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,I=r.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,C=r.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.RNB(_.CG(_.el),f.replace(/-/g,"+").replace(/_/g,"/"),function(Y){r.ports[0].postMessage({success:!0,buyFlowResponse:Y})},void 0,function(Y){r.ports[0].postMessage({success:!1,
error:Y&&Y.message||"Buyflow rejected without error."})},_.xI().get("hl"),void 0,function(){r.ports[0].postMessage({closed:!0})},I,C)};
_.l.setupPlayerProgressRelay=function(){var r=this;if(!this.isListeningForPlayerProgress){var f=_.Ok();f!=null&&f.getPlayerPromise&&(f.getPlayerPromise().then(function(I){r.playerApiReady(I)}),this.isListeningForPlayerProgress=!0)}};
_.l.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.l.playerApiReady=function(r){this.setPlayer(r)};
_.l.playerProgressHandler=function(){if(this.player){var r=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":r.current})}};
_.l.playerAdStartHandler=function(r){this.postToContentWindow({"yt-player-ad-start":r})};
_.l.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.l.playerStateChangeHandler=function(r){this.postToContentWindow({"yt-player-state-change":r})};
_.l.setPlayer=function(r){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19855_playerEvents);r&&(this.player=r,this.ytPlayerListenerBehavior.listenToPlayerEvents(r,this.JSC$19855_playerEvents),_.kA(this.hostElement,"player-api-ready"))};
_.l.liveChatPageUrl=function(r,f,I,C){return!I||f?"about:blank":I.liveChatRenderer?(f=_.Hh(this.currentPageUrl).JSC$7932_queryData_,eui(f),r=_.Hh(r),f.add("continuation",I.liveChatRenderer.continuations[0].reloadContinuationData.continuation),I=_.Pt()==="USER_INTERFACE_THEME_DARK",(C||I)&&f.add("dark_theme","true"),_.qK(r,f),C=_.Hh(r.toString()),I=C.JSC$7932_queryData_,"SESSION_INDEX"in _.cw&&(I.add("authuser",_.Lz("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.cw&&I.add("pageId",_.Lz("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.cw&&I.add("sdc",_.Lz("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),C.toString()):""};
_.l.isCollapsed=function(r,f){return f!==null?f:this.isChatReplay()||r&&r.conversationBarRenderer&&r.conversationBarRenderer.availabilityMessage?!0:r?r.liveChatRenderer?r.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.N("live_chat_hide_premiere_replay_message")||r.conversationBarRenderer&&r.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.l.isHidden=function(r,f,I){var C=f&&f.conversationBarRenderer&&f.conversationBarRenderer.availabilityMessage,Y=f&&f.liveChatRenderer&&f.liveChatRenderer.showHideButton,V=f&&f.liveChatRenderer&&f.liveChatRenderer.showButton;return I&&r&&!C&&!V||!I&&r&&!C&&!Y?!0:f&&f.liveChatRenderer&&f.liveChatRenderer.initialDisplayState?f.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.l.computeButtonOverride=function(r,f){if(r&&f)return{type:"outline"}};
_.l.setCollapsedState=function(r){_.F(r,_.LlC)&&(this.isHiddenByUser=!!_.F(r,_.LlC).collapsed,!this.isHiddenByUser&&_.N("enable_teaser_framework_web_client")&&_.Bj(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.l.forwardReduxActionToIframe=function(r){this.postToContentWindow({"yt-live-chat-forward-redux-action":r})};
_.l.onLoopRangeChange=function(r){this.showAboveScrim=!(r==null||!r.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(r){this.postToContentWindow({"yt-live-chat-set-dark-theme":r})};
_.l.onLiveChatBuyFlowCallback=function(r){this.postToContentWindow({"yt-live-chat-buy-flow-callback":r})};
_.l.handleKeyboardEvent=function(r){(0,_.X0.containsValue)(LEs,r.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:r.type,keyCode:r.keyCode}})};
_.l.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.l.postToContentWindow=function(r){if(this.isFrameReady)try{var f=window.location.protocol+"//"+window.location.host,I;(I=this.chatframe)!=null&&I.contentWindow?this.chatframe.contentWindow.postMessage(r,f):_.t7(new _.nf("Tried posting a message to an iframe with no content window",r))}catch(C){_.Fo(C)}};
_.l.shouldHideChatFrame=function(r){return r&&_.N("hide_live_chat_button_when_collapsed")};
_.OC.Object.defineProperties($u.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.N("live_chat_overflow_hide_chat")||_.N("web_watch_chat_hide_button_killswitch"))return _.N("live_chat_overflow_hide_chat");var r,f,I,C;return!!((r=this.data)==null?0:(f=r.liveChatRenderer)==null?0:(I=f.header)==null?0:(C=I.liveChatHeaderRenderer)==null?0:C.collapseButton)}}});
$u.prototype.collapsedChanged=$u.prototype.collapsedChanged;$u.prototype.urlChanged=$u.prototype.urlChanged;$u.prototype.dataChanged=$u.prototype.dataChanged;$u.prototype.onShowHideChat=$u.prototype.onShowHideChat;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],$u.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],$u.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.iQ.YtPlayerListenerBehavior),_.B("design:type",_.RN)],$u.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.J(_.ug.YtOpenPopupBehavior),_.B("design:type",Object)],$u.prototype,"ytOpenPopupBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],$u.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],$u.prototype,"currentPageUrl",void 0);
_.A([_.K({computed:"computeBaseUrl(currentPageUrl,data)"}),_.B("design:type",Object)],$u.prototype,"baseUrl",void 0);_.A([_.K({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.B("design:type",String)],$u.prototype,"url",void 0);_.A([_.K(),_.B("design:type",Object)],$u.prototype,"isHiddenByUser",void 0);_.A([_.K({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.B("design:type",Object)],$u.prototype,"hidden",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.B("design:type",Boolean)],$u.prototype,"collapsed",void 0);_.A([_.K({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.B("design:type",Boolean)],$u.prototype,"hideChatFrame",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],$u.prototype,"showAboveScrim",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],$u.prototype,"watchNextGrid",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],$u.prototype,"modernButtons",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],$u.prototype,"roundedContainer",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],$u.prototype,"noBorder",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],$u.prototype,"roundBackground",void 0);
_.A([_.K({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.B("design:type",Object)],$u.prototype,"toggleButtonOverride",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],$u.prototype,"overflowHideChat",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],$u.prototype,"forceDarkTheme",void 0);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$u.prototype,"enableShowWithoutHideChatButton",null);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],$u.prototype,"theaterWatchWhile",void 0);_.A([_.uA("#chatframe"),_.B("design:type",HTMLIFrameElement)],$u.prototype,"chatframe",void 0);_.A([_.kO("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$u.prototype,"onShowHideChat",null);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$u.prototype,"dataChanged",null);
_.A([_.Bt("url"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$u.prototype,"urlChanged",null);_.A([_.Bt("collapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$u.prototype,"collapsedChanged",null);$u=_.A([_.U({is:"ytd-live-chat-frame",disableElementRegistration:!0})],$u);
_.Q($u,"ytd-live-chat-frame",function(){if(B1i!==void 0)return B1i;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return B1i=r},{mode:1});var q3B;var FP=function(){var r=_.y.apply(this,arguments)||this;r.modern=_.N("web_modern_buttons");r.buttonOverrides={style:"call-to-action",type:"filled"};return r};
_.t(FP,_.y);FP.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=_.MG(this.data.backgroundColor)))};
FP.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var r=this.getFormattedStringLoggingDirectives(this.data.headline);r&&this.rendererBehavior.logExplicitClick(r)}};
FP.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var r=this.getFormattedStringLoggingDirectives(this.data.description);r&&this.rendererBehavior.logExplicitClick(r)}};
FP.prototype.getFormattedStringLoggingDirectives=function(r){return r&&r.runs&&r.runs.length>0&&r.runs[0]&&r.runs[0].loggingDirectives?r.runs[0].loggingDirectives:null};
FP.prototype.dataChanged=FP.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],FP.prototype,"rendererBehavior",void 0);_.A([_.J(vz2.YtMacroReplacementBehavior),_.B("design:type",Object)],FP.prototype,"macroReplacementBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],FP.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],FP.prototype,"navigationEndpoint",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],FP.prototype,"enableColors",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],FP.prototype,"modern",void 0);_.A([_.K(),_.B("design:type",Object)],FP.prototype,"buttonOverrides",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],FP.prototype,"dataChanged",null);FP=_.A([_.U({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],FP);
_.Q(FP,"ytd-action-basic-immersive-content-renderer",function(){if(q3B!==void 0)return q3B;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return q3B=r},{mode:1});var u7q;var DRB;var Px=function(){return _.y.apply(this,arguments)||this};
_.t(Px,_.y);Px.prototype.dataChanged=function(){var r;((r=this.data)==null?void 0:r.backgroundColor)!==void 0&&_.Zh(this.hostElement,{"--bgu-color":_.MG(this.data.backgroundColor)})};
Px.prototype.onImageTileClick=function(){var r;((r=this.data)==null?0:r.navigationEndpoint)&&_.kA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var f;((f=this.data)==null?0:f.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.OC.Object.defineProperties(Px.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var r;if(((r=this.data)==null?void 0:r.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 r;return((r=this.data)==null?void 0:r.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var r,f,I;if(((r=this.data)==null?void 0:(f=r.detailsLine)==null?void 0:f.texts)!=null&&((I=this.data)==null?void 0:I.detailsLine.texts.length)>0){var C;return(C=this.data)==null?void 0:C.detailsLine.texts.map(function(Y){return Y.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var r,f,I;if(((r=this.data)==null?void 0:(f=r.optionalDetailsLine)==null?void 0:f.texts)!=null&&((I=this.data)==null?void 0:I.optionalDetailsLine.texts.length)>0){var C;return(C=this.data)==null?void 0:C.optionalDetailsLine.texts.map(function(Y){return Y.text}).join("")}return null}}});
Px.prototype.dataChanged=Px.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Px.prototype,"rendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Px.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Px.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("data.backgroundColor"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Px.prototype,"hasBackgroundColor",null);
_.A([_.R("data.objectFit"),_.B("design:type",Object),_.B("design:paramtypes",[])],Px.prototype,"getObjectFit",null);_.A([_.K({reflectToAttribute:!0}),_.R("data.tileRenderingStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Px.prototype,"hasTileMetadata",null);_.A([_.R("data.detailsLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],Px.prototype,"getSecondaryDetails",null);
_.A([_.R("data.optionalDetailsLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],Px.prototype,"getOptionalDetails",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Px.prototype,"dataChanged",null);Px=_.A([_.U({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Px);
_.Q(Px,"ytd-image-tile-renderer",function(){if(DRB!==void 0)return DRB;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return DRB=r},{mode:1});var rz7;var tw=function(){return _.y.apply(this,arguments)||this};
_.t(tw,_.y);tw.prototype.getOpenLinkIcon=function(){return _.N("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
tw.prototype.onSitelinkTap=function(){_.kA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.N("kevlar_command_handler_migration_killswitch"))_.rX(this.hostElement,this.data.clickCommands,this.hostElement);else for(var r=_.E(this.data.clickCommands),f=r.next();!f.done;f=r.next())this.ytComponentBehavior.resolveCommand(f.value)};
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],tw.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],tw.prototype,"rendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],tw.prototype,"data",void 0);tw=_.A([_.U({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],tw);
_.Q(tw,"ytd-sitelink-renderer",function(){if(rz7!==void 0)return rz7;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return rz7=r},{mode:1});var Tp=function(){var r=_.y.apply(this,arguments)||this;r.paddingFix=_.N("enable_ads_web_ep_buenos_aires_and_padding_fix");return r};
_.t(Tp,_.y);Tp.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"}}}};
Tp.prototype.dataChanged=function(){var r=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(f){f.clickTrackingParams&&delete f.clickTrackingParams;r.ytMacroReplacementBehavior.sendServiceRequestAction([f])})};
Tp.prototype.shouldHideFooter=function(r){return!(r&&_.N("use_ads_engagement_panel_desktop_footer_cta"))};
_.OC.Object.defineProperties(Tp.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.data)==null?void 0:r.imageTileRenderers)===void 0||((f=this.data)==null?void 0:f.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(I){var C;return(C=_.F(I,Ruq))==null?void 0:C.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.data)==null?void 0:r.imageTileRenderers)===void 0||((f=this.data)==null?void 0:f.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(I){var C;return((C=_.F(I,Ruq))==null?void 0:C.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Tp.prototype.dataChanged=Tp.prototype.dataChanged;_.A([_.J(vz2.YtMacroReplacementBehavior),_.B("design:type",Object)],Tp.prototype,"ytMacroReplacementBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Tp.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Tp.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Tp.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Tp.prototype,"paddingFix",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("data.imageTileRenderers"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Tp.prototype,"removeBorderFromImageTiles",null);_.A([_.K({reflectToAttribute:!0}),_.R("data.imageTileRenderers"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Tp.prototype,"useFooteredMetadataRenderingStyle",null);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tp.prototype,"dataChanged",null);Tp=_.A([_.U({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Tp);
_.Q(Tp,"ytd-action-engagement-panel-content-renderer",function(){if(u7q!==void 0)return u7q;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return u7q=r},{mode:1});var ffd;var Ifd=_.Hc(function(r){var f=r.data;var I=r.customCommandResolver;r=_.yy();_.oK(r,function(){return f().interaction},I);
_.ZW(r,{visibilityCallback:function(C){var Y,V=(Y=f().interaction)==null?void 0:Y.onFirstVisible;C&&V&&_.F2(V)},
showOption:_.Kc});return _.p("ad-grid-card-image-full-metadata-view-model",{class:function(){var C;return((C=f().interaction)==null?0:C.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:r,"aria-label":function(){var C,Y;return(C=f().interaction)==null?void 0:(Y=C.accessibility)==null?void 0:Y.label}},_.p("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.p(_.X1,{data:function(){return f().adImage}},{adImageViewModel:function(C){return _.p(_.DM,{data:C.data,
customCommandResolver:I})}})),_.p("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.p(_.M,{cond:function(){return f().headline},
then:function(C){return _.p(_.wW,{text:C,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.p(_.M,{cond:function(){return f().detailsLine},
then:function(C){return _.p("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.p(_.X1,{data:C},{adDetailsLineViewModel:function(Y){return _.p(_.Ac,{data:Y.data,customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.p(_.M,{cond:function(){return f().secondaryDetailsLine},
then:function(C){return _.p("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.p(_.X1,{data:C},{adDetailsLineViewModel:function(Y){return _.p(_.Ac,{data:Y.data,customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"yi");var CSV=_.Hc(function(r){var f=r.data;var I=r.customCommandResolver;r=_.yy();_.oK(r,function(){return f().interaction},I);
_.ZW(r,{visibilityCallback:function(C){var Y,V=(Y=f().interaction)==null?void 0:Y.onFirstVisible;C&&V&&_.F2(V)},
showOption:_.Kc});return _.p("ad-grid-card-image-view-model",{class:function(){var C;return((C=f().interaction)==null?0:C.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:r,"aria-label":function(){var C,Y;return(C=f().interaction)==null?void 0:(Y=C.accessibility)==null?void 0:Y.label}},_.p(_.X1,{data:function(){return f().adImage}},{adImageViewModel:function(C){return _.p(_.DM,{data:C.data,
customCommandResolver:I})}}),_.p("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.p(_.X1,{data:function(){return f().adCardBadge}},{adCardBadgeViewModel:_.kjg})))},"zi");var YM2=_.Hc(function(r){var f=r.data;var I=r.customCommandResolver;r=_.yy();_.oK(r,function(){return f().interaction},I);
_.ZW(r,{visibilityCallback:function(C){var Y,V=(Y=f().interaction)==null?void 0:Y.onFirstVisible;C&&V&&_.F2(V)},
showOption:_.Kc});return _.p("ad-grid-card-text-view-model",{class:function(){var C;return((C=f().interaction)==null?0:C.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:r,"aria-label":function(){var C,Y;return(C=f().interaction)==null?void 0:(Y=C.accessibility)==null?void 0:Y.label}},_.p("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.p(_.M,{cond:function(){return f().title},
then:function(C){return _.p(_.wW,{text:C,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.p("div",{class:function(){return _.N("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.p(_.pz,{each:function(){var C;
return((C=f())==null?void 0:C.descriptions)||[]},
keyBy:"INDEX"},function(C){return _.p(_.wW,{text:C,className:function(){return _.N("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.p("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.p(_.X1,{data:function(){return f().moreInfoButton}},{adButtonViewModel:function(C){return _.p(_.Uq,{data:C.data,
customCommandResolver:I})}})))},"Ai");var lfi=_.Hc(function(r){var f=r.data;var I=r.customCommandResolver;var C=r.adGridCardCollectionStyle;r=_.yy();_.ZW(r,{visibilityCallback:function(Y){var V,S=(V=f().interaction)==null?void 0:V.onFirstVisible;Y&&S&&_.F2(S)},
showOption:_.Kc});return _.p("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:r,style:function(){return"grid-template-columns: repeat("+BSp(C?C():f().style)+", minmax(0, 1fr));"}},_.p(_.X1,{data:function(){var Y;
return(Y=f())==null?void 0:Y.gridCards}},{adGridCardImageViewModel:function(Y){return _.p(CSV,{data:Y.data,
customCommandResolver:I})},
adGridCardImageFullMetadataViewModel:function(Y){return _.p(Ifd,{data:Y.data,customCommandResolver:I})},
adGridCardTextViewModel:function(Y){return _.p(YM2,{data:Y.data,customCommandResolver:I})}}))},"Bi");_.Kv(_.Hc(function(r){var f=r.data;r=_.yy();_.oK(r,function(){return f().interaction},qVB);
_.ZW(r,{visibilityCallback:function(I){var C,Y=(C=f().interaction)==null?void 0:C.onFirstVisible;I&&Y&&_.F2(Y)},
showOption:_.Kc});return _.p("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:r},_.p("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.p(_.M,{cond:_.gsK("(min-width: "+((0,_.$_)()+_.H$)+"px)"),then:function(){return _.p(_.X1,{data:function(){return f().adGridCardCollection}},{adGridCardCollectionViewModel:function(I){return _.p(lfi,{data:I.data,
customCommandResolver:qVB})}})},
else:function(){return _.p(_.X1,{data:function(){return f().adGridCardCollection}},{adGridCardCollectionViewModel:function(I){return _.p(lfi,{data:I.data,
customCommandResolver:qVB,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.p("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.p(_.X1,{data:function(){return f().adButton}},{adButtonViewModel:function(I){return _.p(_.Uq,{data:I.data,
customCommandResolver:qVB})}})))},"Ci"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.jv}});_.Kv(_.Hc(function(r){var f=r.data;r=_.yy();_.oK(r,function(){return f().interaction},uOi);
_.ZW(r,{visibilityCallback:function(I){var C,Y=(C=f().interaction)==null?void 0:C.onFirstVisible;I&&Y&&_.F2(Y)},
showOption:_.Kc});return _.p("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:r},_.p("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.p(_.X1,{data:function(){if(_.gsK("(min-width: "+((0,_.$_)()+_.H$)+"px)")())var I=f().adGridCardCollection;else{I=Object.assign({},_.F(f().adGridCardCollection,vj7));var C;I.gridCards!==void 0&&((C=I.gridCards)==null?void 0:C.length)>1?I.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":I.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";I={adGridCardCollectionViewModel:I}}return I}},{adGridCardCollectionViewModel:function(I){return _.p(lfi,{data:I.data,
customCommandResolver:uOi})}})),_.p("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.p(_.X1,{data:function(){return f().adButton}},{adButtonViewModel:function(I){return _.p(_.Uq,{data:I.data,
customCommandResolver:uOi})}})))},"Di"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.jv}});var cx=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return r};
_.t(cx,_.y);_.l=cx.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 r=this,f=_.sk(this.hostElement);f&&f.getPlayerPromise().then(function(I){r.getCachedDataAndListen(I)})};
_.l.getCachedDataAndListen=function(r){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(r,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(r,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=r)};
_.l.resolveCachedActions=function(){var r=_.jH("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(r=r&&r())&&!_.X0.isEmpty(r)&&this.sendUpdateEngagementPanelAction(r);(r=(r=_.jH("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&r())&&!_.X0.isEmpty(r)&&this.sendChangeEngagementPanelVisibilityAction(r);(r=(r=_.jH("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&r())&&!_.X0.isEmpty(r)&&this.sendScrollToEngagementPanelCommand(r)};
_.l.sendUpdateEngagementPanelAction=function(r){var f;_.Bj(this.hostElement,"yt-update-engagement-panel-action",[(f=_.X0.get(r,"action"))!=null?f:r])};
_.l.sendChangeEngagementPanelVisibilityAction=function(r){_.Bj(this.hostElement,"yt-change-engagement-panel-visibility-action",[r])};
_.l.sendScrollToEngagementPanelCommand=function(r){_.Bj(this.hostElement,"yt-scroll-to-engagement-panel-command",[r])};
_.l.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.N("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.t7(Error("fm"))};
cx.prototype.dataChanged=cx.prototype.dataChanged;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],cx.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],cx.prototype,"componentBehavior",void 0);_.A([_.J(_.iQ.YtPlayerListenerBehavior),_.B("design:type",_.RN)],cx.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],cx.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],cx.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],cx.prototype,"player",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cx.prototype,"dataChanged",null);cx=_.A([_.U({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],cx);
_.Q(cx,"ytd-ads-engagement-panel-content-renderer",function(){if(ffd!==void 0)return ffd;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
return ffd=r},{mode:1});var VCi;var Wx=function(){var r=_.y.apply(this,arguments)||this;r.player=null;r.JSC$19892_playerEvents=new Map;r.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return r};
_.t(Wx,_.y);_.l=Wx.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$19892_playerEvents=new Map;this.JSC$19892_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19892_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19892_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19892_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.l.attached=function(){var r=this,f=_.sk();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));f&&f.getPlayerPromise().then(function(I){r.setPlayer(I);r.set("isPageLoad",!1)})};
_.l.setPlayer=function(r){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19892_playerEvents);this.set("player",r);r&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(r,this.JSC$19892_playerEvents),r.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.l.onLoopRangeChange=function(r){var f=_.a().resolve(_.ZY(_.y2));if((!f||f.isOnWatch())&&this.hostElement.clientHeight){var I;!r&&((I=this.data)==null?0:I.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.l.onVideoProgress=function(r){var f,I,C=((f=this.player)==null?void 0:(I=f.getPresentingPlayerType)==null?void 0:I.call(f))===2;this.isAdPlaying!==C&&this.set("isAdPlaying",C);var Y;if(!C&&(Y=this.player)!=null&&Y.getLoopRange()){I=this.player.getLoopRange();f=I.startTimeMs;I=I.endTimeMs;C=this.player.getProgressState(1).seekableStart;var V;f<C*1E3&&((V=this.data)==null?0:V.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
r=I<r*1E3;var S;((S=this.player)==null?0:S.getLoopRange())&&r&&this.player.seekTo(f/1E3)}};
_.l.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.l.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.l.onYtDeleteClipEngagementPanelCommand=function(r){_.F(r,Dn1).command&&this.ytComponentBehavior.resolveCommand(_.F(r,Dn1).command)};
_.OC.Object.defineProperties(Wx.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.voteCount)||_.iX("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Wx.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Wx.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Wx.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.iQ.YtPlayerListenerBehavior),_.B("design:type",_.RN)],Wx.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Wx.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Wx.prototype,"isAdPlaying",void 0);_.A([_.K({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],Wx.prototype,"isPageLoad",void 0);_.A([_.K({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],Wx.prototype,"isDarkTheme",void 0);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Wx.prototype,"voteCount",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Wx.prototype,"channelEndpoint",null);_.A([_.R("channelEndpoint"),_.B("design:type",Object),_.B("design:paramtypes",[])],Wx.prototype,"channelHref",null);Wx=_.A([_.U({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Wx);
_.Q(Wx,"ytd-clip-attribution-renderer",function(){if(VCi!==void 0)return VCi;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return VCi=r},{mode:1});var E96;var Lt=function(){var r=_.y.apply(this,arguments)||this;r.player=null;r.JSC$19897_playerEvents=new Map;return r};
_.t(Lt,_.y);_.l=Lt.prototype;_.l.created=function(){this.player=null;this.JSC$19897_playerEvents=new Map;this.JSC$19897_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19897_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19897_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.l.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.l.attached=function(){var r=this,f=_.sk();f&&f.getPlayerPromise().then(function(I){r.setPlayer(I);r.set("isPageLoad",!1)})};
_.l.setPlayer=function(r){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19897_playerEvents);this.set("player",r);if(r){this.ytPlayerListenerBehavior.listenToPlayerEvents(r,this.JSC$19897_playerEvents);var f;(r==null?void 0:(f=r.getPresentingPlayerType)==null?void 0:f.call(r))===2&&this.playerAdStartHandler()}};
_.l.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.l.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.l.onVideoProgress=function(){var r,f,I=((r=this.player)==null?void 0:(f=r.getPresentingPlayerType)==null?void 0:f.call(r))===2;this.isAdPlaying!==I&&this.set("isAdPlaying",I)};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Lt.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Lt.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.iQ.YtPlayerListenerBehavior),_.B("design:type",_.RN)],Lt.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Lt.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Lt.prototype,"isAdPlaying",void 0);
_.A([_.K({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],Lt.prototype,"isPageLoad",void 0);Lt=_.A([_.U({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],Lt);
_.Q(Lt,"ytd-clip-section-footer-renderer",function(){if(E96!==void 0)return E96;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return E96=r},{mode:1});var SM6;var xLq;var mn=function(){return _.y.apply(this,arguments)||this};
_.t(mn,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],mn.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],mn.prototype,"data",void 0);mn=_.A([_.U({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],mn);
_.Q(mn,"ytd-clip-ad-state-renderer",function(){if(xLq!==void 0)return xLq;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return xLq=r},{mode:1});var hNq;var eE=function(){var r=_.y.apply(this,arguments)||this;r.value="";r.valid=!1;r.userChangedValue=!1;r.disabled=!1;r.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return r};
_.t(eE,_.y);_.l=eE.prototype;_.l.detached=function(){this.userChangedValue=!1};
_.l.handleKeyDown=function(r){if(_.lf)var f=13;else _.GVc&&_.VF?f=13:f=13;r.keyCode===f&&r.preventDefault()};
_.l.handleInput=function(){var r=_.e(this.hostElement).querySelector("#title");if(r){var f=(r.value||"").replace(/\r|\n/g," ");this.set("value",f);r.value=f;this.valid=r.validate();this.userChangedValue=!0}};
_.l.handleBlur=function(){this.valid=_.e(this.hostElement).querySelector("#title").validate()};
_.l.onValueChanged=function(){_.kA(this.hostElement,"title-changed",{title:this.value})};
_.l.onValidChanged=function(){_.kA(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.l.setInput=function(r,f){var I=_.e(this.hostElement).querySelector("#title");I&&(I.value=r,this.handleInput(),f&&(I.invalid=!1,this.valid=!0))};
_.l.onClipCreationDisable=function(){this.set("disabled",!0)};
_.l.onClipCreationEnable=function(){this.set("disabled",!1)};
_.l.onClipCreationVisibilityChange=function(r){var f=this;r.visible?requestAnimationFrame(function(){var I;((I=_.e(f.hostElement).querySelector("#title"))==null?void 0:I.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
eE.prototype.onValidChanged=eE.prototype.onValidChanged;eE.prototype.onValueChanged=eE.prototype.onValueChanged;eE.prototype.handleBlur=eE.prototype.handleBlur;eE.prototype.handleInput=eE.prototype.handleInput;eE.prototype.handleKeyDown=eE.prototype.handleKeyDown;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],eE.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],eE.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],eE.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],eE.prototype,"value",void 0);_.A([_.K(),_.B("design:type",Object)],eE.prototype,"valid",void 0);_.A([_.K(),_.B("design:type",Object)],eE.prototype,"userChangedValue",void 0);_.A([_.K(),_.B("design:type",Object)],eE.prototype,"disabled",void 0);_.A([_.kO("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],eE.prototype,"handleKeyDown",null);
_.A([_.kO("input"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eE.prototype,"handleInput",null);_.A([_.kO("blur"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eE.prototype,"handleBlur",null);_.A([_.Bt("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eE.prototype,"onValueChanged",null);
_.A([_.Bt("valid"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eE.prototype,"onValidChanged",null);eE=_.A([_.U({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],eE);
_.Q(eE,"ytd-clip-creation-text-input-renderer",function(){if(hNq!==void 0)return hNq;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return hNq=r},{mode:1});var wy3;var br1;var pyq;var n97;var dLU;var Jw=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};r.pendingStoryboardImages_={};r.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];r.tickLabelInterval=30;r.mediumTickInterval=5;r.largeTickInterval=15;r.aboveRulerHeight=32;r.rulerHeight=50;r.smallTickHeight=4;r.mediumTickHeight=8;r.largeTickHeight=16;r.mediaListeners_=
{};return r};
_.t(Jw,_.y);_.l=Jw.prototype;_.l.attached=function(){var r=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(f){f=_.E(["screen and (min-resolution: "+f+")","screen and (max-resolution: "+f+")"]);for(var I=f.next();!I.done;I=f.next()){I=I.value;var C=window.matchMedia(I);C&&(r.mediaListeners_[I]=r.updatePixelRatio_.bind(r),C.addEventListener?C.addEventListener("change",r.mediaListeners_[I]):C.addListener?C.addListener(r.mediaListeners_[I]):delete r.mediaListeners_[I])}})};
_.l.detached=function(){this.setPlayer(null);for(var r=_.E(Object.keys(this.mediaListeners_)),f=r.next();!f.done;f=r.next()){var I=f.value;f=this.mediaListeners_[I];(I=window.matchMedia(I))&&(I.removeEventListener?I.removeEventListener("change",f):I.removeListener&&I.removeListener(f))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.l.onVisibilityChangedAction_=function(r){var f=this;r.visible&&!this.player_&&(r=_.sk())&&r.getPlayerPromise().then(function(I){f.setPlayer(I)})};
_.l.setPlayer=function(r){r&&this.set("player_",r)};
_.l.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.l.setUpCanvas_=function(){var r=this.rulerWidth,f=this.devicePixelRatio_,I=this.visible;this.set("canvasReady_",!1);if(I&&f!==0){I=this.aboveRulerHeight+this.rulerHeight;var C=_.e(this.hostElement).querySelector("#ticks");C.width=r*f;C.height=I*f;C.style.width=r+"px";C.style.height=I+"px";C.getContext("2d").scale(f,f);this.set("canvasReady_",!0)}};
_.l.drawRuler_=function(r,f,I,C,Y,V,S,h,w,n,d,z){r&&I&&f&&(r=_.e(this.hostElement).querySelector("#ticks"),f=r.getContext("2d"),f.clearRect(0,0,r.width,r.height),f.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),f.lineWidth=2,f.beginPath(),f.moveTo(0,this.aboveRulerHeight),f.lineTo(r.width,this.aboveRulerHeight),f.moveTo(0,r.height),f.lineTo(r.width,r.height),f.stroke(),this.drawRulerTicks_(r,V,Y,C),this.drawStoryboardImages_(r,I,V,Y,C),f.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
f.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(S-V,C,!1),this.rulerHeight),I=this.timeToPixels_(h-V,C,!1),f.fillRect(I,this.aboveRulerHeight,r.width-I,this.rulerHeight),this.drawSpeedLines_(r,V,z))};
_.l.drawRulerTicks_=function(r,f,I,C){var Y=r.getContext("2d");Y.save();Y.lineWidth=1;for(var V=Math.floor(Math.max(0,f-this.tickLabelInterval));V<f+I;V++){Y.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var S=(V-f)*C;Y.beginPath();Y.moveTo(S,r.height);var h=this.smallTickHeight;V%this.largeTickInterval===0?h=this.largeTickHeight:V%this.mediumTickInterval===0&&(h=this.mediumTickHeight);Y.lineTo(S,r.height-h);Y.stroke();V%this.tickLabelInterval===0&&(Y.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),Y.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),Y.fillText(TV(V),S+4,12),Y.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),Y.moveTo(S,0),Y.lineTo(S,this.aboveRulerHeight),Y.stroke())}Y.restore()};
_.l.percentToHex_=function(r){r=Math.round(r*255).toString(16);r.length<2&&(r="0"+r);return r};
_.l.drawSpeedLines_=function(r,f,I){var C=r.getContext("2d");C.save();var Y=Math.min(25,Math.abs(I)-15)/25,V=r.width*.3*Y,S=r.width*-.3,h=r.width*1.3,w=this.aboveRulerHeight;r=r.height;var n=Math.round(4*Y),d=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");d.length<7&&(d="#"+d.substring(1,4).repeat(2));var z=this.percentToHex_(.5+Y/2);z=d+z;d+="00";if(Y>0)for(Y=0;Y<n;Y++){var g=S+Math.random()*(h-S),X=w+Math.random()*(r-w),P=V+f%V,W=C.createLinearGradient(g,X,g+P,X);
I<0?(W.addColorStop(0,z),W.addColorStop(.4,z),W.addColorStop(.9,d)):(W.addColorStop(.1,d),W.addColorStop(.6,z),W.addColorStop(1,z));C.strokeStyle=W;C.lineWidth=1;C.beginPath();C.moveTo(g,X);C.lineTo(g+P,X);C.stroke()}C.restore()};
_.l.getStoryboardForTime_=function(r,f,I){I===void 0&&(I=f.getNumberOfStoryboardLevels()-1);r=f.getStoryboardFrameIndex(r,I);return f.getStoryboardFrame(r,I)};
_.l.drawStoryboardImages_=function(r,f,I,C,Y){if(!this.disabled){r=r.getContext("2d");var V=this.getStoryboardForTime_(0,f);if(V){var S=V.width/V.columns;V=V.height/V.rows;var h=S/V,w=this.rulerHeight*h;w=this.tickLabelInterval*(h<this.tickLabelInterval*Y/this.rulerHeight?1/Math.floor(this.tickLabelInterval*Y/w):Math.round(w/(this.tickLabelInterval*Y)));var n=w*Y,d=this.rulerHeight,z=n/this.rulerHeight,g=Math.floor(Math.max(0,I-w));for(g-=g%w;g<I+C;g+=w){var X=this.getStoryboardForTime_(g,f),P=this.getPreloadedStoryboard_(X.url);
if(P){var W=(g-I)*Y,m=this.aboveRulerHeight,v=X.column*S,O=X.row*V;if(h<z){var k=d/(n/h);X=S;k*=V;O+=(V-k)/2}else X=n/(d*h)*S,k=V,v+=(S-X)/2;r.drawImage(P,v,O,X,k,W,m,n,d)}else this.fetchStoryboardImage_(X)}}}};
_.l.getPreloadedStoryboard_=function(r){return this.storyboardImages_.find(function(f){if(f.src==r)return!0;var I=f.src.indexOf(r);return I!=-1&&I==f.src.length-r.length})};
_.l.fetchStoryboardImage_=function(r){var f=this,I=this.getPreloadedStoryboard_(r.url),C=this.pendingStoryboardImages_[r.url];I||C!==void 0||(I=new Promise(function(Y){var V=new Image(r.width,r.height);V.src=r.url;V.onload=function(){Y(V)};
V.onerror=function(){Y(null)}}),this.pendingStoryboardImages_[r.url]=I,I.then(function(Y){Y&&f.push("storyboardImages_",Y);
return Y}).finally(function(){delete f.pendingStoryboardImages_[r.url]}))};
_.l.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.l.timeToPixels_=function(r,f,I){r*=f;return I===void 0||I?r+"px":r};
_.l.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
Jw.prototype.drawRuler_=Jw.prototype.drawRuler_;Jw.prototype.setUpCanvas_=Jw.prototype.setUpCanvas_;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Jw.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Jw.prototype,"ytRendererBehavior",void 0);_.A([_.K({value:0}),_.B("design:type",Number)],Jw.prototype,"start",void 0);_.A([_.K({value:30}),_.B("design:type",Number)],Jw.prototype,"end",void 0);
_.A([_.K({value:!1}),_.B("design:type",Boolean)],Jw.prototype,"visible",void 0);_.A([_.K(),_.B("design:type",Object)],Jw.prototype,"player_",void 0);_.A([_.K(),_.B("design:type",Number)],Jw.prototype,"tickSpacing",void 0);_.A([_.K(),_.B("design:type",Number)],Jw.prototype,"windowSizeSec",void 0);_.A([_.K({value:0}),_.B("design:type",Number)],Jw.prototype,"rulerWidth",void 0);_.A([_.K({value:0}),_.B("design:type",Number)],Jw.prototype,"rulerShift",void 0);
_.A([_.K({value:!1}),_.B("design:type",Boolean)],Jw.prototype,"canvasReady_",void 0);_.A([_.K({value:function(){return[]}}),
_.B("design:type",Array)],Jw.prototype,"storyboardImages_",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Jw.prototype,"disabled",void 0);_.A([_.K({value:0}),_.B("design:type",Number)],Jw.prototype,"forceRender_",void 0);_.A([_.K({value:1}),_.B("design:type",Number)],Jw.prototype,"devicePixelRatio_",void 0);_.A([_.K({value:0}),_.B("design:type",Number)],Jw.prototype,"windowSpeed",void 0);
_.A([_.Bt("visible","devicePixelRatio_","rulerWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Jw.prototype,"setUpCanvas_",null);
_.A([_.Bt("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.B("design:type",Function),_.B("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.B("design:returntype")],Jw.prototype,"drawRuler_",null);Jw=_.A([_.zX({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],Jw);
_.Q(Jw,"yt-clip-creation-scrubber-canvas",function(){if(dLU===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);dLU=r}r=dLU;return r},
{mode:2});var zN6;var MC6;var jE=function(){var r=_.y.apply(this,arguments)||this;r.start=0;r.end=30;r.visible=!1;r.draggingLeft_=!1;r.draggingRight_=!1;r.draggingRuler_=!1;r.draggingWindow_=!1;r.seekableStart=0;r.seekableEnd=0;r.rulerWidth_=0;r.rulerShift_=0;r.windowSlideSpeed=0;r.disabled=!1;r.initialized=!1;r.durationAccessibilityLabel="";r.activeLoopRange_=!1;r.rulerDragMouseStart_=0;r.rulerDragRulerStart_=0;r.rulerDragStartTime_=0;r.rulerDragEndTime_=0;r.dragMouseLastX_=0;r.scrollInterval_=null;r.scrubberVe_=null;r.boundHandlers_=
{};r.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return r};
_.t(jE,_.y);_.l=jE.prototype;
_.l.created=function(){var r=this;this.JSC$19910_playerEvents=new Map;this.JSC$19910_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19910_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19910_playerEvents.set("onStateChange",this.onStateChange_);var f={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(f).forEach(function(I){r.boundHandlers_[I]=f[I].bind(r)})};
_.l.attached=function(){this.activeLoopRange_=!1;_.e(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.e(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.pQ(156731)};
_.l.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.e(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.e(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.l.onVisibilityChangedAction_=function(r){var f=this;r.visible&&!this.player_&&(r=_.sk())&&r.getPlayerPromise().then(function(I){f.setPlayer(I)})};
_.l.setPlayer=function(r){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19910_playerEvents);r&&(this.set("player_",r),this.ytPlayerListenerBehavior.listenToPlayerEvents(r,this.JSC$19910_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(r){this.disabled||(r.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=r.clientX,r.target===_.e(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():r.target===_.e(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(r){this.disabled||(r.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=r.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 r=this;this.scrollInterval_=setInterval(function(){var f=r.windowSlideSpeed;if(f=_.MV3(r.start,r.boundedRulerStartLimit_())?f-.1:_.MV3(r.end,r.boundedRulerEndLimit_())?f+.1:0){var I=r.capRulerOffset_(r.rulerShift_+f);I==r.rulerShift_?f=0:(r.set("rulerShift_",I),_.kA(r.hostElement,"set-fixed-length-range",{start:r.start+f,duration:r.end-r.start}))}r.set("windowSlideSpeed",f)},33)};
_.l.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.l.endDrag_=function(){this.logClick();var r=void 0;this.draggingRight_?r=this.end-1:this.draggingLeft_&&(r=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,r);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_",_.e(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.l.handleMouseDrag_=function(r){r.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(r):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(r):this.draggingWindow_&&this.handleWindowDrag_(r))};
_.l.handleRulerDrag_=function(r){r=this.pixelsToTime_(r.clientX-this.rulerDragMouseStart_);r=this.capRulerOffset_(this.rulerDragRulerStart_-r);this.set("rulerShift_",r);var f=this.rulerDragStartTime_-(this.rulerDragRulerStart_-r);_.kA(this.hostElement,"set-fixed-length-range",{start:f,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-r)-f})};
_.l.handleWindowDrag_=function(r){var f=r.clientX-this.dragMouseLastX_;this.dragMouseLastX_=r.clientX;r=this.pixelsToTime_(f);_.kA(this.hostElement,"set-fixed-length-range",{start:this.start+r,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.l.capRulerOffset_=function(r){var f=this.seekableStart-this.pixelsToTime_(16),I=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(f,r),I)};
_.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(r){var f=r.clientX-this.dragMouseLastX_;this.dragMouseLastX_=r.clientX;r=this.pixelsToTime_(f);if(this.draggingLeft_){var I=this.start+r;var C=this.end}else this.draggingRight_&&(I=this.start,C=this.end+r);_.kA(this.hostElement,"set-range",{start:I,end:C,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.l.onVideoProgress_=function(r){this.disabled||(r=this.timeToPixels_(r-this.rulerShift_,this.tickSpacing_),_.e(this.hostElement).querySelector("#playhead").style.transform="translateX("+r+")")};
_.l.onClipCreationDisable_=function(){this.endDrag_()};
_.l.timeToPixels_=function(r,f,I){r*=f;return I===void 0||I?r+"px":r};
_.l.pixelsToTime_=function(r){return r/this.tickSpacing_};
_.l.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.l.centerRuler_=function(r,f,I){this.set("rulerShift_",this.capRulerOffset_(r+(f-r)/2-I/2))};
_.l.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.l.updateLoopRange_=function(r,f,I,C,Y,V,S){r&&(f&&C&&!I?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(r.pauseVideo(),r.seekTo(Y,!1,void 0,void 0,50)):this.draggingRight_?(r.pauseVideo(),r.seekTo(V-.1,!1,void 0,void 0,50)):(S!==void 0?r.seekTo(S,!0,void 0,void 0,50):(f=r.getCurrentTime(),f<Y||f>V?r.seekTo(Y,!0,void 0,void 0,50):r.seekTo(f,!0,void 0,void 0,50)),r.playVideo()),r.setLoopRange({startTimeMs:Y*1E3,endTimeMs:V*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(r.getCurrentTime())):
this.activeLoopRange_&&(r.setLoopRange(null),this.activeLoopRange_=!1))};
_.l.updateHandles_=function(){_.e(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.e(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.l.updateRuler_=function(){var r=this.end,f=this.start,I=this.draggableStartLimit_(),C=this.draggableEndLimit_();(f<I-.001||r>C+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.l.computeDurationLabel_=function(r,f){return r?r.replace("$clip_length",parseFloat(f).toFixed(1)):""};
_.l.computeDuration_=function(r,f){return this.isValidTime_(r)&&this.isValidTime_(f)&&r<f?f-r:0};
_.l.isValidTime_=function(r){return isNaN(parseFloat(r))||r<0?!1:this.player_?r>=this.seekableStart&&r<=this.seekableEnd:!0};
_.l.computeWindowSizeSec_=function(r,f,I){return Math.min((r||12E4)/1E3,I-f)};
_.l.computeTickSpacing_=function(r,f){return f?f/r:1};
_.l.onDragStateChanged_=function(){_.kA(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.l.centerRangeOnTime_=function(r){var f=this.duration;r=rS3(r-f/2,f,this.seekableStart,this.seekableEnd);_.kA(this.hostElement,"set-fixed-length-range",{start:r.start,duration:r.end-r.start})};
_.l.nearlyLessThan_=function(r,f,I){return r+(I===void 0?1E-6:I)<f};
_.l.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var r=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(r,this.start)||this.nearlyLessThan_(this.end,r))&&this.centerRangeOnTime_(r)}};
_.l.onStateChange_=function(r){this.visible&&!this.disabled&&r==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.l.computeDragState_=function(r,f,I,C){return r?"left":f?"right":I?"ruler":C?"window":"none"};
_.l.logClick=function(){var r=_.t1(),f=_.Pj();r&&f&&this.scrubberVe_&&(_.N("combine_ve_grafts")?_.Ia(_.IB(),this.scrubberVe_,f):_.mw(r,f,this.scrubberVe_),_.im(r,this.scrubberVe_))};
jE.prototype.onDragStateChanged_=jE.prototype.onDragStateChanged_;jE.prototype.updateRuler_=jE.prototype.updateRuler_;jE.prototype.updateHandles_=jE.prototype.updateHandles_;jE.prototype.onUpdateLoopRange=jE.prototype.onUpdateLoopRange;jE.prototype.onInitializedChanged_=jE.prototype.onInitializedChanged_;jE.prototype.onVisibleChanged_=jE.prototype.onVisibleChanged_;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],jE.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.J(_.iQ.YtPlayerListenerBehavior),_.B("design:type",Object)],jE.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],jE.prototype,"start",void 0);_.A([_.K(),_.B("design:type",Object)],jE.prototype,"end",void 0);_.A([_.K({computed:"computeDuration_(start, end)"}),_.B("design:type",Number)],jE.prototype,"duration",void 0);
_.A([_.K(),_.B("design:type",String)],jE.prototype,"lengthTemplate",void 0);_.A([_.K({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.B("design:type",String)],jE.prototype,"durationLabel",void 0);_.A([_.K(),_.B("design:type",Object)],jE.prototype,"visible",void 0);_.A([_.K(),_.B("design:type",Object)],jE.prototype,"player_",void 0);_.A([_.K(),_.B("design:type",Object)],jE.prototype,"draggingLeft_",void 0);_.A([_.K(),_.B("design:type",Object)],jE.prototype,"draggingRight_",void 0);
_.A([_.K(),_.B("design:type",Object)],jE.prototype,"draggingRuler_",void 0);_.A([_.K({value:!1}),_.B("design:type",Object)],jE.prototype,"draggingWindow_",void 0);_.A([_.K({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.B("design:type",Number)],jE.prototype,"tickSpacing_",void 0);_.A([_.K(),_.B("design:type",Object)],jE.prototype,"seekableStart",void 0);_.A([_.K(),_.B("design:type",Object)],jE.prototype,"seekableEnd",void 0);
_.A([_.K(),_.B("design:type",Number)],jE.prototype,"windowSizeMs",void 0);_.A([_.K({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.B("design:type",Number)],jE.prototype,"windowSizeSec_",void 0);_.A([_.K(),_.B("design:type",Object)],jE.prototype,"rulerWidth_",void 0);_.A([_.K(),_.B("design:type",Object)],jE.prototype,"rulerShift_",void 0);_.A([_.K(),_.B("design:type",Object)],jE.prototype,"windowSlideSpeed",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],jE.prototype,"disabled",void 0);_.A([_.K(),_.B("design:type",Object)],jE.prototype,"initialized",void 0);_.A([_.K(),_.B("design:type",Object)],jE.prototype,"durationAccessibilityLabel",void 0);_.A([_.K({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.B("design:type",String)],jE.prototype,"dragState",void 0);
_.A([_.Bt("visible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jE.prototype,"onVisibleChanged_",null);_.A([_.Bt("initialized"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jE.prototype,"onInitializedChanged_",null);_.A([_.Bt("player_","visible","disabled","initialized","start","end"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jE.prototype,"onUpdateLoopRange",null);
_.A([_.Bt("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jE.prototype,"updateHandles_",null);_.A([_.Bt("start","end"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jE.prototype,"updateRuler_",null);
_.A([_.Bt("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jE.prototype,"onDragStateChanged_",null);jE=_.A([_.zX({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],jE);
_.Q(jE,"yt-clip-creation-scrubber-view",function(){if(MC6===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;zN6===void 0&&(zN6=document.createElement("template"));var C=zN6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);MC6=r}r=MC6;return r},{mode:2});var Hx=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};r.startHighlightTimeout=0;r.endHighlightTimeout=0;return r};
_.t(Hx,_.y);_.l=Hx.prototype;_.l.attached=function(){var r=this;this.startInput.addEventListener("input",function(f){return r.handleStartInput_(f)});
this.endInput.addEventListener("input",function(f){return r.handleEndInput_(f)});
this.startInput.addEventListener("focusout",function(f){return r.handleStartBlur_(f)});
this.endInput.addEventListener("focusout",function(f){return r.handleEndBlur_(f)})};
_.l.setPlayer=function(r){this.set("player_",r)};
_.l.onSetFixedLengthRange_=function(r){var f=r.detail;r=f.start;var I=f.duration,C=f.startLimit;f=f.endLimit;C||(C=this.seekableStart_);f||(f=this.seekableEnd_);r=rS3(r,I,C,f);this.start=r.start;this.end=r.end};
_.l.onSetRange_=function(r){var f=r.detail;r=f.start;var I=f.end,C=f.startLimit;f=f.endLimit;C||(C=this.seekableStart_);f||(f=this.seekableEnd_);if(r=fTq(r,I,C,f,this.minLengthSec,this.maxLengthSec))this.start=r.start,this.end=r.end};
_.l.updateInputs_=function(){var r=this.end,f=this.start;this.startInput.focused||(this.startInput.value=TV(f,!0));this.endInput.focused||(this.endInput.value=TV(r,!0))};
_.l.handleStartInput_=function(r){r=DtY(r.target.value);if(r===null)this.set("startValid",!1);else{var f=this.end,I=fTq(r,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);I?(this.set("endWillUpdate",I.end!==f),this.set("startValid",I.start===r)):this.set("startValid",!1)}};
_.l.handleEndInput_=function(r){r=DtY(r.target.value);if(r===null)this.set("endValid",!1);else{var f=this.start,I=ITq(this.start,r,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);I?(this.set("startWillUpdate",I.start!==f),this.set("endValid",I.end===r)):this.set("endValid",!1)}};
_.l.handleStartBlur_=function(r){r=DtY(r.target.value);r===null?this.startInput.value=TV(this.start,!0):this.forceUpdateInputs_(fTq(r,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.l.handleEndBlur_=function(r){r=DtY(r.target.value);r===null?this.endInput.value=TV(this.end,!0):this.forceUpdateInputs_(ITq(this.start,r,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.l.forceUpdateInputs_=function(r){r&&(this.start=r.start,this.end=r.end);this.startInput.value=TV(this.start,!0);this.endInput.value=TV(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.l.initializeClipRange_=function(){var r=this.seekableEnd_,f=this.seekableStart_,I=this.visible_,C=this.player_;if(!C||!I||f===null||!r)this.set("initialized",!1);else if(!this.initialized){var Y=C.getCurrentTime(),V=this.getDefaultLengthSec_();I=C.getVideoData();var S=C.getPlayerState()==1,h=I.isLive;V=Math.min(V,r-f);Y=Math.max(0,Y);r=h?ITq(Y-V,Y,f,r,this.minLengthSec,this.maxLengthSec):S?rS3(Y-V/2,V,f,r):rS3(Y,V,f,r);this.start=r.start;this.end=r.end;this.set("initialized",!0);I.isLive&&C.seekTo(r.start);
this.startInput.value=TV(this.start,!0);this.endInput.value=TV(this.end,!0)}};
_.l.onStartChanged_=function(){var r=this;_.kA(this.hostElement,"start-changed",{start:this.start});var f;isNaN((f=this.oldStart)!=null?f:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){r.set("highlightStart",!1);r.startHighlightTimeout=0;r.oldStart=r.start},3E3))};
_.l.onEndChanged_=function(){var r=this;_.kA(this.hostElement,"end-changed",{end:this.end});var f;isNaN((f=this.oldEnd)!=null?f:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){r.set("highlightEnd",!1);r.endHighlightTimeout=0;r.oldEnd=r.end},3E3))};
_.l.onVisibilityChangedAction_=function(r){var f=this;this.set("visible_",r.visible);this.visible_&&!this.player_&&(r=_.sk())&&r.getPlayerPromise().then(function(I){f.setPlayer(I)})};
_.l.computeMinLengthSec_=function(r){return r/1E3||5};
_.l.computeMaxLengthSec_=function(r){return r/1E3||60};
_.l.computeDefaultLengthSec_=function(r){return r/1E3};
_.l.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.l.computeSeekableStart_=function(r,f){return r&&f?r.getProgressState(1).seekableStart:0};
_.l.computeSeekableEnd_=function(r,f){return r&&f?r.getProgressState(1).seekableEnd:0};
_.l.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.l.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.l.onDragState_=function(r){this.set("highlightStart",r.detail.startChanging);this.set("highlightEnd",r.detail.endChanging)};
Hx.prototype.onDragState_=Hx.prototype.onDragState_;Hx.prototype.onEndChanged_=Hx.prototype.onEndChanged_;Hx.prototype.onStartChanged_=Hx.prototype.onStartChanged_;Hx.prototype.initializeClipRange_=Hx.prototype.initializeClipRange_;Hx.prototype.updateInputs_=Hx.prototype.updateInputs_;Hx.prototype.onSetRange_=Hx.prototype.onSetRange_;Hx.prototype.onSetFixedLengthRange_=Hx.prototype.onSetFixedLengthRange_;
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Hx.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Hx.prototype,"data",void 0);_.A([_.K({value:0}),_.B("design:type",Number)],Hx.prototype,"start",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],Hx.prototype,"startValid",void 0);
_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Hx.prototype,"startWillUpdate",void 0);_.A([_.K({value:30}),_.B("design:type",Number)],Hx.prototype,"end",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],Hx.prototype,"endValid",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Hx.prototype,"endWillUpdate",void 0);_.A([_.K({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.B("design:type",Number)],Hx.prototype,"minLengthSec",void 0);
_.A([_.K({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.B("design:type",Number)],Hx.prototype,"maxLengthSec",void 0);_.A([_.K({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.B("design:type",Number)],Hx.prototype,"defaultLengthSec",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],Hx.prototype,"visible_",void 0);_.A([_.K(),_.B("design:type",Object)],Hx.prototype,"player_",void 0);
_.A([_.K({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.B("design:type",Number)],Hx.prototype,"seekableStart_",void 0);_.A([_.K({computed:"computeSeekableEnd_(player_, visible_)"}),_.B("design:type",Number)],Hx.prototype,"seekableEnd_",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],Hx.prototype,"initialized",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Hx.prototype,"disabled",void 0);
_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Hx.prototype,"highlightStart",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Hx.prototype,"highlightEnd",void 0);_.A([_.uA("#start"),_.B("design:type",HTMLInputElement)],Hx.prototype,"startInput",void 0);_.A([_.uA("#end"),_.B("design:type",HTMLInputElement)],Hx.prototype,"endInput",void 0);
_.A([_.kO("set-fixed-length-range"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Hx.prototype,"onSetFixedLengthRange_",null);_.A([_.kO("set-range"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Hx.prototype,"onSetRange_",null);_.A([_.Bt("start","end"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hx.prototype,"updateInputs_",null);
_.A([_.Bt("player_","visible_","seekableStart_","seekableEnd_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hx.prototype,"initializeClipRange_",null);_.A([_.Bt("start"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hx.prototype,"onStartChanged_",null);_.A([_.Bt("end"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hx.prototype,"onEndChanged_",null);
_.A([_.kO("clips-drag-state"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Hx.prototype,"onDragState_",null);Hx=_.A([_.zX({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],Hx);
_.Q(Hx,"yt-clip-creation-scrubber-renderer",function(){if(n97===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;pyq===void 0&&(pyq=document.createElement("template"));var C=pyq;I.call(f,C.content.cloneNode(!0),r.content.firstChild);n97=r}r=n97;return r},{mode:2});var iG=function(){var r=_.y.apply(this,arguments)||this;r.player_=null;r.JSC$19924_playerEvents=new Map;r.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return r};
_.t(iG,_.y);_.l=iG.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$19924_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19924_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19924_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19924_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.l.detached=function(){this.setPlayer(null)};
_.l.onVisibilityChangedAction_=function(r){var f=this,I;if((I=this.data)==null?0:I.externalVideoId){var C;this.videoId=(C=this.data)==null?void 0:C.externalVideoId}this.getPlayer().then(function(Y){if(r.visible)f.returnTime=Y.getCurrentTime(),f.isAtLiveHead=Y.getProgressState().isAtLiveHead;else{var V=f.returnTime;f.isAtLiveHead&&(V=Number.POSITIVE_INFINITY);Y.seekTo(V,void 0,void 0,void 0,51)}})};
_.l.getPlayer=function(){var r=this;if(!this.player_){var f=_.sk();if(f)return f.getPlayerPromise().then(function(I){r.setPlayer(I);return I})}return Promise.resolve(this.player_)};
_.l.setPlayer=function(r){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19924_playerEvents);if(r){this.player_=r;var f;((f=this.data)==null?0:f.externalVideoId)||this.set("videoId",r.getVideoData().video_id||"");var I;(r==null?void 0:(I=r.getPresentingPlayerType)==null?void 0:I.call(r))===2&&(this.set("isAdPlaying",!0),_.Bj(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(r,this.JSC$19924_playerEvents)}};
_.l.ready=function(){_.e(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.l.onTitleChanged_=function(r){this.set("titleValue",r.detail.title)};
_.l.onStartChanged_=function(r){this.set("start",r.detail.start)};
_.l.onEndChanged_=function(r){this.set("end",r.detail.end)};
_.l.onTitleValidChanged_=function(r){this.set("titleValid",r.detail.valid)};
_.l.onStartValidChanged_=function(r){this.set("startValid",r.detail.valid)};
_.l.onEndValidChanged_=function(r){this.set("endValid",r.detail.valid)};
_.l.onVideoDataChange_=function(){var r;if((r=this.data)==null||!r.externalVideoId){var f;this.set("videoId",((f=this.player_)==null?void 0:f.getVideoData().video_id)||"")}};
_.l.computeFormValid_=function(r,f,I,C){return!!(r&&f&&I&&C)};
_.l.computeCancelButton_=function(r,f,I){return r&&_.F(r,_.Ll)?{buttonRenderer:Object.assign({},_.F(r,_.Ll),{isDisabled:f||I})}:null};
_.l.computeSubmitButton_=function(r,f,I){return r&&_.F(r,_.Ll)?{buttonRenderer:Object.assign({},_.F(r,_.Ll),{command:void 0,isDisabled:!this.formValid||f||I})}:null};
_.l.computeSubmitCommand_=function(r){return r||null};
_.l.onSubmit_=function(r){var f=this;r.stopPropagation();r.preventDefault();this.submitCommand_&&(r={},r.comment_text=this.titleValue,r.clip_external_video_id=this.videoId,r.clip_offset_ms=parseInt(this.start*1E3,10),r.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.Do(this.hostElement,[this.submitCommand_,r]).then(function(){f.set("isLoading_",!1)},function(){f.set("isLoading_",!1)}))};
_.l.playerAdStartHandler_=function(){_.Bj(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.l.playerAdEndHandler_=function(){_.Bj(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.l.onVideoProgress_=function(){var r=this;this.getPlayer().then(function(f){var I,C=(f==null?void 0:(I=f.getPresentingPlayerType)==null?void 0:I.call(f))===2;r.isAdPlaying!==C&&(C?r.playerAdStartHandler_():r.playerAdEndHandler_())})};
iG.prototype.onEndValidChanged_=iG.prototype.onEndValidChanged_;iG.prototype.onStartValidChanged_=iG.prototype.onStartValidChanged_;iG.prototype.onTitleValidChanged_=iG.prototype.onTitleValidChanged_;iG.prototype.onEndChanged_=iG.prototype.onEndChanged_;iG.prototype.onStartChanged_=iG.prototype.onStartChanged_;iG.prototype.onTitleChanged_=iG.prototype.onTitleChanged_;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],iG.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.J(_.iQ.YtPlayerListenerBehavior),_.B("design:type",Object)],iG.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],iG.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],iG.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],iG.prototype,"data",void 0);_.A([_.K({value:""}),_.B("design:type",String)],iG.prototype,"titleValue",void 0);
_.A([_.K({value:!1}),_.B("design:type",Boolean)],iG.prototype,"titleValid",void 0);_.A([_.K({value:0}),_.B("design:type",Number)],iG.prototype,"start",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],iG.prototype,"startValid",void 0);_.A([_.K({value:0}),_.B("design:type",Number)],iG.prototype,"end",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],iG.prototype,"endValid",void 0);_.A([_.K({value:""}),_.B("design:type",String)],iG.prototype,"videoId",void 0);
_.A([_.K({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.B("design:type",Boolean)],iG.prototype,"formValid",void 0);_.A([_.K({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.B("design:type",Object)],iG.prototype,"submitButton_",void 0);_.A([_.K({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.B("design:type",Object)],iG.prototype,"submitCommand_",void 0);
_.A([_.K({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.B("design:type",Object)],iG.prototype,"cancelButton_",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],iG.prototype,"isLoading_",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],iG.prototype,"isAdPlaying",void 0);_.A([_.K({value:0}),_.B("design:type",Number)],iG.prototype,"returnTime",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],iG.prototype,"isAtLiveHead",void 0);
_.A([_.kO("title-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],iG.prototype,"onTitleChanged_",null);_.A([_.kO("start-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],iG.prototype,"onStartChanged_",null);_.A([_.kO("end-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],iG.prototype,"onEndChanged_",null);
_.A([_.kO("title-valid-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],iG.prototype,"onTitleValidChanged_",null);_.A([_.kO("start-valid-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],iG.prototype,"onStartValidChanged_",null);_.A([_.kO("end-valid-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],iG.prototype,"onEndValidChanged_",null);
iG=_.A([_.zX({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],iG);
_.Q(iG,"yt-clip-creation-renderer",function(){if(br1===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;wy3===void 0&&(wy3=document.createElement("template"));var C=wy3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);br1=r}r=br1;return r},{mode:2});var Rn=function(){return _.y.apply(this,arguments)||this};
_.t(Rn,_.y);Rn.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"}}}};
Rn.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(r){return r.hasOwnProperty("clipCreationRenderer")})&&_.Bj(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
Rn.prototype.onPanelContentVisibleChanged=Rn.prototype.onPanelContentVisibleChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Rn.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Rn.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.WD.YtVisibilityBehavior),_.B("design:type",Object)],Rn.prototype,"ytVisibilityBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],Rn.prototype,"ytdReduxBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],Rn.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Rn.prototype,"panelContentVisible",void 0);_.A([_.Bt("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rn.prototype,"onPanelContentVisibleChanged",null);Rn=_.A([_.U({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],Rn);
_.Q(Rn,"ytd-clip-section-renderer",function(){if(SM6!==void 0)return SM6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return SM6=r},{mode:1});var g9U;var vx=function(){return _.y.apply(this,arguments)||this};
_.t(vx,_.y);_.l=vx.prototype;
_.l.onKeyDown=function(r){if(this.snippetElements.length!==0&&(r=r.keyCode,r===38||r===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);r===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.my(this.highlightedIndex,-1,this.snippetElements.length);r=this.snippetElements.length;var f=this.highlightedIndex%r;this.highlightedIndex=f*r<0?f+r:f;r=this.snippetElements[this.highlightedIndex];this.highlightSnippet(r);this.ensureVisible(r)}};
_.l.onKeyUp=function(r){var f=this;HpU(r)&&(r.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.F_.cancelJob(this.inputTimerId),this.inputTimerId=_.F_.addLowPriorityJob(function(){f.typedValue&&(f.fetchSnippets(f.typedValue),f.logInputGesture(f.data))},1E3))};
_.l.onClick=function(r){(r=_.L6g(r.target,null,"snippet-item"))&&this.selectSnippet(r)};
_.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 r=this;this.inputElement.addEventListener("focus",function(){r.snippetsWrapper.style.removeProperty("display")})};
_.l.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.l.getSourceTimelines=function(){if(!this.data)return[];var r=[];if(this.data.searchInVideoSources)for(var f=_.E(this.data.searchInVideoSources),I=f.next();!I.done;I=f.next())I=I.value,I==="SEARCH_IN_VIDEO_SOURCE_ASR"?r.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):I==="SEARCH_IN_VIDEO_SOURCE_OCR"&&r.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return r};
_.l.fetchSnippets=function(r){var f=_.Bj(this.hostElement,"yt-get-current-video-id-action")[0],I=this.getSourceTimelines();r={getSearchInVideoCommand:{externalVideoId:f,query:r!=null?r:"",sourceTimelines:I},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.a().resolve(_.Gg).resolveCommand(r,{form:{element:this.hostElement}})};
_.l.filterSnippets=function(r,f){var I=this;if(f){this.filteredSnippets=(0,_.X0.unsafeClone)(r);var C=RegExp(_.qvR(f),"i");this.filteredSnippets=this.filteredSnippets.filter(function(S){return C.test(I.ytRendererBehavior.getSimpleString(S.snippet))});
r=_.E(this.filteredSnippets);for(var Y=r.next();!Y.done;Y=r.next()){Y=Y.value;var V=this.ytRendererBehavior.getSimpleString(Y.snippet);Y.snippet={runs:[{text:V.substring(0,V.toLowerCase().indexOf(f))},{text:V.substring(V.toLowerCase().indexOf(f),V.toLowerCase().indexOf(f)+f.length),bold:!0},{text:V.substring(V.toLowerCase().indexOf(f)+f.length,V.length)}]}}}else this.filteredSnippets=r};
_.l.onUpdateSearchInVideoResults=function(r){if(!(this.snippets.length>0)){var f,I,C;if((C=(f=_.F(r,Zpq))==null?void 0:(I=f.results)==null?void 0:I.length)!=null&&C){var Y;this.filteredSnippets=this.snippets=((Y=_.F(r,Zpq))==null?void 0:Y.results).map(function(V){var S,h,w;return{startMs:V==null?void 0:(S=V.searchInVideoResultRenderer)==null?void 0:S.startMs,startTimeText:V==null?void 0:(h=V.searchInVideoResultRenderer)==null?void 0:h.startTimeText,snippet:V==null?void 0:(w=V.searchInVideoResultRenderer)==
null?void 0:w.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(r){r.classList.add("highlighted")};
_.l.removeSnippetHighlight=function(r){r.classList.remove("highlighted")};
_.l.selectSnippet=function(r){this.typedValue=String(r.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(r);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.l.ensureVisible=function(r){var f=this.snippetsWrapper.scrollTop,I=f+this.snippetsWrapper.clientHeight,C=r.offsetTop-this.snippetsWrapper.offsetTop;r=C+r.clientHeight;C<f?this.snippetsWrapper.scrollTop-=f-C:r>I&&(this.snippetsWrapper.scrollTop+=r-I)};
_.l.seekPlayer=function(r){var f,I;return _.x(function(C){if(C.nextAddress==1){if(!r)return C.jumpTo(0);f=Number(r.dataset.startOffset);return _.b(C,_.Ok().getPlayerPromise(),3)}I=C.yieldResult;I.seekTo(f/1E3,!0);I.wakeUpControls();_.wO(C)})};
_.l.logInputGesture=function(r){var f=_.t1();f&&(r==null?0:r.trackingParams)&&_.Rl(f,_.VH(r.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.l.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LT("typed-value-changed",this.typedValue))};
_.l.updateTypedValueFromBinding=function(r){this.typedValue=r.currentTarget.value};
vx.prototype.typedValueChangedForBinding=vx.prototype.typedValueChangedForBinding;vx.prototype.dataChanged=vx.prototype.dataChanged;vx.prototype.panelContentVisibleChanged=vx.prototype.panelContentVisibleChanged;vx.prototype.onClick=vx.prototype.onClick;vx.prototype.onKeyUp=vx.prototype.onKeyUp;vx.prototype.onKeyDown=vx.prototype.onKeyDown;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],vx.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],vx.prototype,"data",void 0);_.A([_.K({value:[]}),_.B("design:type",Array)],vx.prototype,"snippets",void 0);_.A([_.K({value:[]}),_.B("design:type",Array)],vx.prototype,"filteredSnippets",void 0);_.A([_.K({value:[]}),_.B("design:type",Array)],vx.prototype,"snippetElements",void 0);
_.A([_.uA("#siv-input"),_.B("design:type",HTMLElement)],vx.prototype,"inputElement",void 0);_.A([_.uA("#siv-snippets-wrapper"),_.B("design:type",HTMLElement)],vx.prototype,"snippetsWrapper",void 0);_.A([_.K(),_.B("design:type",String)],vx.prototype,"typedValue",void 0);_.A([_.K({value:-1}),_.B("design:type",Number)],vx.prototype,"highlightedIndex",void 0);_.A([_.kO("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[_.bl]),_.B("design:returntype")],vx.prototype,"onKeyDown",null);
_.A([_.kO("keyup"),_.B("design:type",Function),_.B("design:paramtypes",[_.bl]),_.B("design:returntype")],vx.prototype,"onKeyUp",null);_.A([_.kO("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],vx.prototype,"onClick",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],vx.prototype,"panelContentVisible",void 0);
_.A([_.Bt("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vx.prototype,"panelContentVisibleChanged",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vx.prototype,"dataChanged",null);_.A([_.Bt("typedValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vx.prototype,"typedValueChangedForBinding",null);
vx=_.A([_.U({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],vx);
_.Q(vx,"ytd-search-in-video-renderer",function(){if(g9U!==void 0)return g9U;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return g9U=r},{mode:1});var afq;var Kt=function(){return _.y.apply(this,arguments)||this};
_.t(Kt,_.y);Kt.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Kt.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]]"}}}}}};
Kt.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var r,f,I,C,Y=(f=_.F((r=this.data)==null?void 0:r.onClickCommand,_.RQ3))==null?void 0:(I=f.item)==null?void 0:(C=I.notificationTextRenderer)==null?void 0:C.successResponseText;Y&&_.lZm(this.hostElement,Y)}};
_.OC.Object.defineProperties(Kt.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var r,f,I,C;return this.isProductPlaceholder&&((r=this.data)==null?void 0:(f=r.hiddenProductOptions)==null?void 0:f.showDropCountdown)&&!!((I=this.data)==null?0:(C=I.hiddenProductOptions)==null?0:C.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var r;return!this.isProductPlaceholder&&!((r=this.data)==null?0:r.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var r,f;return!((r=this.data)==null?0:r.priceReplacementText)&&!((f=this.data)==null||!f.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Kt.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Kt.prototype,"componentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Kt.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Kt.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("isProductPlaceholder"),_.B("design:type",Object),_.B("design:paramtypes",[])],Kt.prototype,"useCenterLayoutContainer",null);_.A([_.K({computed:"computeButtonOverride(data)"}),_.B("design:type",Object)],Kt.prototype,"buttonOverride",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Kt.prototype,"isProductPlaceholder",null);
_.A([_.R("isProductPlaceholder"),_.B("design:type",Object),_.B("design:paramtypes",[])],Kt.prototype,"showDropCountdown",null);_.A([_.R("isProductPlaceholder","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Kt.prototype,"showBrandName",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Kt.prototype,"showPriceReplacementText",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Kt.prototype,"showPrice",null);
_.A([_.R("isProductPlaceholder"),_.B("design:type",Object),_.B("design:paramtypes",[])],Kt.prototype,"showMetadata",null);Kt=_.A([_.U({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Kt);
_.Q(Kt,"ytd-product-list-item-renderer",function(){if(afq!==void 0)return afq;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return afq=r},{mode:1});var Xyd;var yL=function(){return _.y.apply(this,arguments)||this};
_.t(yL,_.y);yL.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
yL.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
yL.prototype.panelContentVisibleChanged=function(){var r=this,f;return _.x(function(I){if(I.nextAddress==1)return r.playerApi?I.jumpTo(2):_.b(I,_.Ok().getPlayerPromise(),3);I.nextAddress!=2&&(r.playerApi=I.yieldResult);(f=r.playerApi)==null||f.productsInVideoVisibilityUpdated(!!r.panelContentVisible);_.wO(I)})};
yL.prototype.panelContentVisibleChanged=yL.prototype.panelContentVisibleChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],yL.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],yL.prototype,"panelContentVisible",void 0);_.A([_.K(),_.B("design:type",Object)],yL.prototype,"data",void 0);
_.A([_.Bt("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],yL.prototype,"panelContentVisibleChanged",null);yL=_.A([_.U({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],yL);
_.Q(yL,"ytd-product-list-renderer",function(){if(Xyd!==void 0)return Xyd;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Xyd=r},{mode:1});var NVp;var Ut=function(){var r=_.y.apply(this,arguments)||this;r.hideTimestamps=!!_.YJ("hide-transcript-timestamps");r.currentCueIndex=-1;r.flatCues=[];r.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};r.TEST_ONLY={getFlatCues:function(){return r.flatCues}};
return r};
_.t(Ut,_.y);_.l=Ut.prototype;_.l.hideTimestampsChanged=function(){_.Ch("hide-transcript-timestamps",this.hideTimestamps)};
_.l.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.l.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.l.dataChanged=function(){var r;if((r=this.data)!=null&&r.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;r=_.E(this.data.cueGroups);for(var f=r.next();!f.done;f=r.next()){f=_.E(_.F(f.value,Gvd).cues);for(var I=f.next();!I.done;I=f.next())this.flatCues.push(Number(_.F(I.value,kv1).startOffsetMs))}}};
_.l.onYtPlayerTimeChanged=function(r){if(!(r<0)){for(var f=this.currentCueIndex,I=f;;){var C=I>=0?this.flatCues[I]/1E3:-1;if(r+.5<C)--I;else if(C=I+1<this.flatCues.length?this.flatCues[I+1]/1E3:Infinity,r+.5>C)I+=1;else break}I!==f&&(f>=0&&((r=this.getCueElement(f))&&r.classList.remove("active"),(f=this.getCueGroupElement(f))&&f.classList.remove("active")),(f=this.getCueElement(I))&&f.classList.add("active"),(f=this.getCueGroupElement(I))&&f.classList.add("active"),this.currentCueIndex=I,this.isHovered||
this.scrollElementToTop(I))}};
_.l.scrollElementToTop=function(r){r=this.getCueElement(r>=3?r-3:0);this.hostElement.scrollTop=Math.min(r.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.l.getCueElement=function(r){return _.e(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[r]+'"]')};
_.l.getCueGroupElement=function(r){return(r=this.getCueElement(r))&&r.parentElement?r.parentElement.parentElement:null};
_.l.onTap=function(r){var f=_.jl(r);r.target.classList.contains("cue")&&this.seekCueElement(f)};
_.l.onKeyPress=function(r){r.keyCode==13&&(r=_.L6g(r.target,null,"cue"))&&this.seekCueElement(r)};
_.l.seekCueElement=function(r){r=Number(r.getAttribute("start-offset"));_.Bj(this.hostElement,"yt-transcript-player-seek",[r/1E3])};
_.l.onMouseEnter=function(){this.isHovered=!0};
_.l.onMouseLeave=function(){this.isHovered=!1};
Ut.prototype.onMouseLeave=Ut.prototype.onMouseLeave;Ut.prototype.onMouseEnter=Ut.prototype.onMouseEnter;Ut.prototype.onKeyPress=Ut.prototype.onKeyPress;Ut.prototype.onTap=Ut.prototype.onTap;Ut.prototype.dataChanged=Ut.prototype.dataChanged;Ut.prototype.hideTimestampsChanged=Ut.prototype.hideTimestampsChanged;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Ut.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Ut.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Ut.prototype,"hideTimestamps",void 0);_.A([_.K(),_.B("design:type",Boolean)],Ut.prototype,"isHovered",void 0);_.A([_.Bt("hideTimestamps"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ut.prototype,"hideTimestampsChanged",null);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ut.prototype,"dataChanged",null);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Ut.prototype,"onTap",null);_.A([_.kO("keypress"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Ut.prototype,"onKeyPress",null);
_.A([_.kO("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ut.prototype,"onMouseEnter",null);_.A([_.kO("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ut.prototype,"onMouseLeave",null);Ut=_.A([_.U({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],Ut);
_.Q(Ut,"ytd-transcript-body-renderer",function(){if(NVp!==void 0)return NVp;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return NVp=r},{mode:1});var $LY;var st=function(){var r=_.y.apply(this,arguments)||this;r.darkerPanels=_.N("web_watch_darker_panels");return r};
_.t(st,_.y);st.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],st.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],st.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],st.prototype,"darkerPanels",void 0);st=_.A([_.U({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],st);
_.Q(st,"ytd-transcript-footer-renderer",function(){if($LY!==void 0)return $LY;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return $LY=r},{mode:1});var F2B;var PSi;var Ot=function(){var r=_.y.apply(this,arguments)||this;r.systemIcons=_.N("kevlar_system_icons");r.showClearButton=!1;return r};
_.t(Ot,_.y);_.l=Ot.prototype;_.l.handleInput=function(r){var f=this;r.target.value.length?_.Pc(this,"ytdTranscriptSearchBoxSearch",function(){f.emitSearchEvent(r)},500):(_.sQl(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=r.target.value.length>0};
_.l.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.l.handleClick=function(){var r,f=(r=this.data)==null?void 0:r.trackingParams;f&&_.lH(_.IB(),f)};
_.l.handleClear=function(){_.sQl(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var r,f,I=(f=_.F((r=this.data)==null?void 0:r.clearButton,_.Ll))==null?void 0:f.trackingParams;I&&_.lH(_.IB(),I);this.clear()};
_.l.emitSearchEvent=function(r){_.kA(this.hostElement,"yt-transcript-search-box-search",{query:r.target.value});var f,I;(r=(I=_.F((f=this.data)==null?void 0:f.searchButton,_.Ll))==null?void 0:I.trackingParams)&&_.lH(_.IB(),r)};
_.l.emitClearEvent=function(){_.kA(this.hostElement,"yt-transcript-search-box-clear")};
_.OC.Object.defineProperties(Ot.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.e(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Ot.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Ot.prototype,"systemIcons",void 0);Ot=_.A([_.U({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Ot);
_.Q(Ot,"ytd-transcript-search-box-renderer",function(){if(PSi!==void 0)return PSi;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return PSi=r},{mode:1});var tC3;var TV3;var on=function(){return _.y.apply(this,arguments)||this};
_.t(on,_.y);on.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var r,f;this.sectionHeaderAriaLabel=(r=this.data)==null?void 0:(f=r.accessibility)==null?void 0:f.accessibilityData.label}};
on.prototype.fireSelectedEvent=function(r){_.kA(this.hostElement,"ytd-transcript-section-header",{startMs:r})};
on.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
on.prototype.handleKeyPress=function(r){this.data&&r.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.OC.Object.defineProperties(on.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var r,f;return(f=(r=this.data)==null?void 0:r.enableTappableTranscriptHeader)!=null?f:!1}}});
on.prototype.dataChanged=on.prototype.dataChanged;_.A([_.K(),_.B("design:type",Object)],on.prototype,"data",void 0);_.A([_.K(),_.B("design:type",String)],on.prototype,"sectionHeaderAriaLabel",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],on.prototype,"enableTappableTranscriptHeader",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],on.prototype,"dataChanged",null);
on=_.A([_.U({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],on);
_.Q(on,"ytd-transcript-section-header-renderer",function(){if(TV3!==void 0)return TV3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return TV3=r},{mode:1});var cz2;var W27;var QL=function(){var r=_.y.apply(this,arguments)||this;r.isEditMode=!1;r.touchCaptionsEnabled=!1;r.deleteCaptionCorrectionPopupCommand=null;r.voteCaptionCorrectionPopupCommand=null;r.roundedContainer=!0;r.mouseOver=!1;r.textChanged=!1;r.messages={suggest_correction:_.VR("suggest_correction",void 0,"Edit caption"),suggested_caption:_.VR("suggested_caption",void 0,"Suggested caption"),submit_correction:_.VR("submit_correction",void 0,"Submit for review"),cancel_correction:_.VR("cancel_correction",
void 0,"Cancel"),replay_segment:_.VR("replay_segment",void 0,"Re-play segment"),delete_correction:_.VR("delete_correction",void 0,"Delete correction")};r.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return r};
_.t(QL,_.y);_.l=QL.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(r){if(this.deleteCaptionCorrectionPopupCommand){var f=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);f&&this.ytdOpenPopupBehavior.openPopup(f);r.stopPropagation()}};
_.l.handleSubmit=function(r){if(this.data&&this.data.submitCaptionCorrectionCommand&&(r.stopPropagation(),this.textChanged)){var f;r=(f=_.F(this.data.submitCaptionCorrectionCommand,_.H3D))==null?void 0:f.params;f=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:r,correctionText:String(this.ironTextAreaElement.value),originalText:_.Rr(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(f);this.isEditMode=!1}};
_.l.handleUpdateSegmentText=function(r){(r=_.F(r,bC6))&&r.targetId&&this.data&&r.targetId===this.data.targetId&&(r.userCorrection&&(this.editedText=r.userCorrection),r.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.Rr(this.data.snippet)),r.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=r.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=r.voteCaptionCorrectionPopupCommand?
r.voteCaptionCorrectionPopupCommand:null,r.accessibility&&(this.segmentAriaLabel=r.accessibility.accessibilityData.label))};
_.l.handleCancel=function(r){this.isEditMode=!1;r.stopPropagation();this.logClientVe(159409)};
_.l.handleEditSegmentCommand=function(r){(r=_.F(r,w6q))&&r.targetId&&this.data&&r.targetId===this.data.targetId&&this.handleEdit()};
_.l.handleEditButtonClick=function(r){this.data&&(this.handleEdit(),r.stopPropagation())};
_.l.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var r;(r=this.ironTextAreaElement.textarea)==null||r.focus();this.logClientVe(159407)}};
_.l.handleMouseEnter=function(){this.mouseOver=!0};
_.l.handleMouseLeave=function(){this.mouseOver=!1};
_.l.handleReplay=function(r){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),r.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(r){this.data&&(this.isEditMode?r.stopPropagation():this.isEnterPress(r)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(r)&&this.logClientVe(138758))};
_.l.handleTextboxClick=function(r){r.stopPropagation()};
_.l.handleTextboxKeydown=function(r){this.isControlEnterPress(r)?this.handleSubmit(r):r.key==="Escape"&&this.handleCancel(r)};
_.l.handleTextboxKeyup=function(){this.textChanged=_.Rr(this.latestText)!==String(this.ironTextAreaElement.value)};
_.l.fireSelectedEvent=function(r){_.kA(this.hostElement,"yt-transcript-segment-selected",{startMs:r})};
_.l.fireReplayEvent=function(r,f){_.kA(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(r-100,0),endMs:f})};
_.l.fireEditEvent=function(r,f){_.kA(this.hostElement,"yt-transcript-segment-edit",{startMs:r,endMs:f})};
_.l.isEnterPress=function(r){return r.key==="Enter"||r.code==="Enter"||r.code==="NumpadEnter"||r.keyCode===13?!0:!1};
_.l.isControlEnterPress=function(r){var f=r.key==="Enter"||r.code==="Enter"||r.code==="NumpadEnter"||r.keyCode===13;return(r.ctrlKey||r.metaKey)&&f};
_.l.isCopyPress=function(r){var f=r.ctrlKey;return r.key==="c"&&f};
_.l.logClick=function(){var r,f=(r=this.data)==null?void 0:r.trackingParams;f&&_.lH(_.IB(),f)};
_.l.logClientVe=function(r){_.YP(_.IB(),_.pQ(r))};
_.OC.Object.defineProperties(QL.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}}});
QL.prototype.handleMouseLeave=QL.prototype.handleMouseLeave;QL.prototype.handleMouseEnter=QL.prototype.handleMouseEnter;QL.prototype.dataChanged=QL.prototype.dataChanged;_.A([_.J(_.o_.YtActionHandlerBehavior),_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],QL.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.RO),_.B("design:type",Object)],QL.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],QL.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],QL.prototype,"isEditMode",void 0);_.A([_.K(),_.B("design:type",Object)],QL.prototype,"touchCaptionsEnabled",void 0);_.A([_.K(),_.B("design:type",Object)],QL.prototype,"editedText",void 0);_.A([_.K(),_.B("design:type",Object)],QL.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.A([_.K(),_.B("design:type",Object)],QL.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.A([_.K(),_.B("design:type",String)],QL.prototype,"segmentAriaLabel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],QL.prototype,"roundedContainer",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],QL.prototype,"mouseOver",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],QL.prototype,"textChanged",void 0);_.A([_.K(),_.B("design:type",Object)],QL.prototype,"messages",void 0);
_.A([_.uA("#suggestion"),_.B("design:type",Object)],QL.prototype,"ironTextAreaElement",void 0);_.A([_.R("data","editedText"),_.B("design:type",Object),_.B("design:paramtypes",[])],QL.prototype,"latestText",null);_.A([_.R("touchCaptionsEnabled","isEditMode"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QL.prototype,"enableEditButton",null);
_.A([_.R("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QL.prototype,"enableUndoButton",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QL.prototype,"dataChanged",null);_.A([_.kO("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QL.prototype,"handleMouseEnter",null);
_.A([_.kO("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QL.prototype,"handleMouseLeave",null);QL=_.A([_.U({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],QL);
_.Q(QL,"ytd-transcript-segment-renderer",function(){if(W27!==void 0)return W27;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return W27=r},{mode:1});var Aw=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};r.isError=!1;r.darkerPanels=_.N("web_watch_darker_panels");r.segmentOffsets=[];r.segmentIndex=-1;return r};
_.t(Aw,_.y);_.l=Aw.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(r){for(var f=this.segmentIndex,I=f;;){if(I>=0){var C=this.segmentOffsets[I].start;var Y=this.segmentOffsets[I].isAutoScrollable}else C=-1,Y=!0;var V=r+.5;if(!Y){C=I+1<this.segmentOffsets.length?this.segmentOffsets[I+1].start:Infinity;if(V>=C){I+=1;continue}I=-1;break}if(V<C)C=I-1>=0&&this.segmentOffsets[I-1].isAutoScrollable,Y=I===0||C?1:2,I-=Y;else if(Y=I+1<this.segmentOffsets.length&&this.segmentOffsets[I+1].isAutoScrollable?1:2,C=I+Y<this.segmentOffsets.length?
this.segmentOffsets[I+Y].start:Infinity,V>C)I+=Y;else{if(I<0)break;I<this.segmentOffsets.length&&V>this.segmentOffsets[I].end&&(I=-1);break}}if(f!==I){if(f>=0){var S;(S=this.getSegmentElement(f))==null||S.classList.remove("active")}this.segmentIndex=I;if(!(I<0)){var h;(h=this.getSegmentElement(I))==null||h.classList.add("active");this.isHovered||this.scrollElementToTop(I)}}};
_.l.handleSegmentEdit=function(r){r.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=r.target,_.Bj(this.hostElement,"yt-transcript-player-edit",[r.detail.startMs/1E3,r.detail.endMs/1E3]))};
_.l.handleSegmentSelected=function(r){_.Bj(this.hostElement,"yt-transcript-player-seek",[r.detail.startMs/1E3])};
_.l.handleSegmentReplay=function(r){_.Bj(this.hostElement,"yt-transcript-player-replay",[r.detail.startMs/1E3,r.detail.endMs/1E3])};
_.l.handleSectionHeaderSelected=function(r){_.Bj(this.hostElement,"yt-transcript-player-seek",[r.detail.startMs/1E3])};
_.l.onMouseEnter=function(){this.isHovered=!0};
_.l.onMouseLeave=function(){this.isHovered=!1};
_.l.onRetryButtonClick=function(){_.kA(this.hostElement,"transcript-retry-button-click")};
_.l.getSegmentElement=function(r){return _.e(this.hostElement).querySelector(":nth-child("+(r+1)+")")};
_.l.scrollElementToTop=function(r){r=this.getSegmentElement(r>=2?r-2:0);this.hostElement.scrollTop=Math.min(r.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.l.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(r){var f,I=(f=r.transcriptSegmentRenderer)!=null?f:r.transcriptSectionHeaderRenderer;return{start:Number(I.startMs)/1E3,end:Number(I.endMs)/1E3,isAutoScrollable:r.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.l.clearHighlightedSegments=function(){var r=_.e(this.hostElement);r=_.E(r.querySelectorAll("ytd-transcript-segment-renderer"));for(var f=r.next();!f.done;f=r.next())f.value.classList.remove("active")};
_.OC.Object.defineProperties(Aw.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.data)==null?void 0:r.searchResultSegments)||((f=this.data)==null?void 0:f.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
Aw.prototype.onMouseLeave=Aw.prototype.onMouseLeave;Aw.prototype.onMouseEnter=Aw.prototype.onMouseEnter;Aw.prototype.handleSectionHeaderSelected=Aw.prototype.handleSectionHeaderSelected;Aw.prototype.handleSegmentReplay=Aw.prototype.handleSegmentReplay;Aw.prototype.handleSegmentSelected=Aw.prototype.handleSegmentSelected;Aw.prototype.handleSegmentEdit=Aw.prototype.handleSegmentEdit;Aw.prototype.segmentsChanged=Aw.prototype.segmentsChanged;
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Aw.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Aw.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Aw.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Aw.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],Aw.prototype,"isError",void 0);
_.A([_.K(),_.B("design:type",Object)],Aw.prototype,"noResultLabel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Aw.prototype,"darkerPanels",void 0);_.A([_.R("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],Aw.prototype,"segments",null);_.A([_.R("segments","noResultLabel"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Aw.prototype,"displayNoResults",null);
_.A([_.Bt("segments"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Aw.prototype,"segmentsChanged",null);_.A([_.kO("yt-transcript-segment-edit"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Aw.prototype,"handleSegmentEdit",null);_.A([_.kO("yt-transcript-segment-selected"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Aw.prototype,"handleSegmentSelected",null);
_.A([_.kO("yt-transcript-segment-replay"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Aw.prototype,"handleSegmentReplay",null);_.A([_.kO("ytd-transcript-section-header"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Aw.prototype,"handleSectionHeaderSelected",null);_.A([_.kO("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Aw.prototype,"onMouseEnter",null);
_.A([_.kO("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Aw.prototype,"onMouseLeave",null);Aw=_.A([_.U({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],Aw);
_.Q(Aw,"ytd-transcript-segment-list-renderer",function(){if(cz2!==void 0)return cz2;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return cz2=r},{mode:1});var ZF=function(){var r=_.y.apply(this,arguments)||this;r.hideTimestamps=!!_.YJ("hide-transcript-timestamps");r.isLoadingTranscripts=!1;r.darkerPanels=_.N("web_watch_darker_panels");r.isError=!1;r.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return r};
_.t(ZF,_.y);_.l=ZF.prototype;_.l.headerChanged=function(){var r,f;this.baseGetTranscriptsCommand=(f=_.F((r=this.data)==null?void 0:r.header,p61))==null?void 0:f.onTextChangeCommand};
_.l.bodyChanged=function(){var r=this.getBodyRenderer();r&&(r.initialSegments&&(this.initialTranscriptsRenderer=r),r.noResultLabel&&(this.noResultLabel=r.noResultLabel),r.retryLabel&&(this.retryLabel=r.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(r){var f=this;if(r){var I=r.detail.query;if(this.baseGetTranscriptsCommand){var C;r=(C=_.F(this.baseGetTranscriptsCommand,_.tX3))==null?void 0:C.params;var Y;C=_.F((Y=this.data)==null?void 0:Y.footer,Br3);var V;if((Y=(V=_.F(C==null?void 0:C.languageMenu,Sx6))==null?void 0:V.subMenuItems)&&Y.length>0&&(V=Y.find(function(w){return w.selected}))){var S,h;
r=(S=V.continuation)==null?void 0:(h=S.reloadContinuationData)==null?void 0:h.continuation}S=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:r,searchQuery:I}});this.ytComponentBehavior.resolveCommand(S,{commandController:{onServerError:function(){f.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});JSs(this.ytContinuationHandlerBehavior,function(){return I===f.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 r={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:r}))};
_.l.hideTimestampsChanged=function(){_.Ch("hide-transcript-timestamps",this.hideTimestamps)};
_.l.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.l.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.l.handleSignalActionCopyTranscript=function(){var r=this,f=this.getBodyRenderer();f&&(f=((f==null?void 0:f.searchResultSegments)||(f==null?void 0:f.initialSegments)||[]).map(function(I){return _.F(I,dEi)}).filter(function(I){return!!I}).map(function(I){return{snippet:I.snippet||{runs:[{text:""}]},
startTimeText:I.startTimeText||{simpleText:""}}}).map(function(I){var C=(I.snippet.runs||[]).reduce(function(Y,V){return Y+V.text},"");
return r.hideTimestamps?C:I.startTimeText.simpleText+" "+C}).join("\n"),this.copyToClipboard(f))};
_.l.copyToClipboard=function(r){navigator.clipboard&&navigator.clipboard.writeText(r)};
_.l.getCurrentSearchBoxText=function(){var r;return(r=this.searchBox)==null?void 0:r.value};
_.l.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.l.getBodyRenderer=function(){var r;return _.F((r=this.data)==null?void 0:r.body,ns6)};
_.l.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.OC.Object.defineProperties(ZF.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.e(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
ZF.prototype.hideTimestampsChanged=ZF.prototype.hideTimestampsChanged;ZF.prototype.searchCleared=ZF.prototype.searchCleared;ZF.prototype.fireSearch=ZF.prototype.fireSearch;ZF.prototype.onReloadContinuationFinish=ZF.prototype.onReloadContinuationFinish;ZF.prototype.bodyChanged=ZF.prototype.bodyChanged;ZF.prototype.headerChanged=ZF.prototype.headerChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],ZF.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ZF.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.cg),_.B("design:type",Object)],ZF.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ZF.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ZF.prototype,"hideTimestamps",void 0);
_.A([_.K(),_.B("design:type",Object)],ZF.prototype,"isLoadingTranscripts",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ZF.prototype,"darkerPanels",void 0);_.A([_.K(),_.B("design:type",Object)],ZF.prototype,"isError",void 0);_.A([_.Bt("data.header"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZF.prototype,"headerChanged",null);
_.A([_.YN("data.body"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZF.prototype,"bodyChanged",null);_.A([_.kO("yt-reload-continuation-finish"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZF.prototype,"onReloadContinuationFinish",null);_.A([_.kO("yt-transcript-search-box-search"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],ZF.prototype,"fireSearch",null);
_.A([_.kO("yt-transcript-search-box-clear"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZF.prototype,"searchCleared",null);_.A([_.Bt("hideTimestamps"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZF.prototype,"hideTimestampsChanged",null);ZF=_.A([_.U({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],ZF);
_.Q(ZF,"ytd-transcript-search-panel-renderer",function(){if(tC3!==void 0)return tC3;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return tC3=r},{mode:1});var Gp=function(){var r=_.y.apply(this,arguments)||this;r.player=null;r.playerPollJobId=0;return r};
_.t(Gp,_.y);_.l=Gp.prototype;_.l.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.l.onLoadReloadContinuation=function(r){_.N("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:r.target.data.continuation}}):(r={clickTrackingParams:r.target.data.clickTrackingParams,getTranscriptEndpoint:{params:r.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.a().resolve(_.Gg).resolveCommand(r,{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 r=this,f;return _.x(function(I){if(I.nextAddress==1)return(f=_.sk())?_.b(I,f.getPlayerPromise(),2):I.return();r.player=I.yieldResult;r.playerPollJobId=_.F_.addLowPriorityJob(function(){r.getPlayerVideoProgress()},1E3);
r.player.addEventListener("onCueRangeEnter",function(C){r.onCueRangeEnter(C)});
r.player.addEventListener("onCueRangeExit",function(C){r.onCueRangeExit(C)});
r.player.addEventListener("onStateChange",function(C){r.onPlayerStateChange(C)});
r.player.addEventListener("SEEK_TO",function(C){r.onPlayerSeek(C)});
_.wO(I)})};
_.l.getPlayerVideoProgress=function(){var r=this;_.F_.cancelJob(this.playerPollJobId);if(this.player){var f=this.player.getCurrentTime();_.Bj(this.hostElement,"yt-player-time-changed",[f])}this.playerPollJobId=_.F_.addLowPriorityJob(function(){r.getPlayerVideoProgress()},1E3)};
_.l.stopPlayerListening=function(){this.player=null;_.F_.cancelJob(this.playerPollJobId)};
_.l.onPlayerStateChange=function(r){r===2&&this.removePendingCue()};
_.l.onPlayerSeek=function(r){var f;if(f=this.pendingReplayCueId)f=this.pendingReplayCueId,f=r===(_.N("web_transcript_cue_id_killswitch")?Number(f):Number(f.split("_")[1]));f||this.removePendingCue()};
_.l.onCueRangeEnter=function(r){YLV(r)&&(this.pendingReplayCueId=r)};
_.l.onCueRangeExit=function(r){YLV(r)&&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(r){this.player&&this.player.seekTo(r,!0)};
_.l.onYtTranscriptPlayerReplay=function(r,f){this.player&&(this.player.addCueRange(CDs(r),r,f),this.player.seekTo(r,!0),this.player.playVideo())};
_.l.onYtTranscriptPlayerEdit=function(r,f){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(CDs(r),r,f),this.player.seekTo(r,!0))};
Gp.prototype.onLoadReloadContinuation=Gp.prototype.onLoadReloadContinuation;Gp.prototype.panelContentVisibleChanged=Gp.prototype.panelContentVisibleChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Gp.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Gp.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Gp.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Gp.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Gp.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Gp.prototype,"panelContentVisible",void 0);_.A([_.Bt("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gp.prototype,"panelContentVisibleChanged",null);
_.A([_.kO("yt-load-reload-continuation"),_.B("design:type",Function),_.B("design:paramtypes",[Object]),_.B("design:returntype")],Gp.prototype,"onLoadReloadContinuation",null);Gp=_.A([_.U({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],Gp);
_.Q(Gp,"ytd-transcript-renderer",function(){if(F2B!==void 0)return F2B;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return F2B=r},{mode:1});var L21;var mLi;var ku=function(){return _.y.apply(this,arguments)||this};
_.t(ku,_.y);ku.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.kA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.rX(this.hostElement,[this.data.clickCommand],this.hostElement))};
ku.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.$_)()+_.H$)+"px)"};
ku.prototype.updateShouldHideFromBinding=function(r){this.shouldHide=r.detail.value};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ku.prototype,"rendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ku.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],ku.prototype,"shouldHide",void 0);ku=_.A([_.U({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],ku);
_.Q(ku,"ytd-ad-engagement-panel-banner-renderer",function(){if(mLi!==void 0)return mLi;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return mLi=r},{mode:_.QQ("kevlar_poly_si_batch_j070")?1:2});var eNq;var Bx=function(){var r=_.y.apply(this,arguments)||this;r.modernPanels=_.N("kevlar_watch_modern_panels");r.buttonUpdate=_.N("web_modern_buttons");r.adsSemanticText=_.N("enable_ads_web_ep_buenos_aires_and_padding_fix");return r};
_.t(Bx,_.y);Bx.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.A([_.K(),_.B("design:type",Object)],Bx.prototype,"data",void 0);_.A([_.K({computed:"computeHideDefaultAdBadge(data)"}),_.B("design:type",Boolean)],Bx.prototype,"hideDefaultAdBadge",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Bx.prototype,"modernPanels",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Bx.prototype,"buttonUpdate",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Bx.prototype,"adsSemanticText",void 0);
Bx=_.A([_.U({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Bx);
_.Q(Bx,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(eNq!==void 0)return eNq;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return eNq=r},{mode:1});var JzY;var qN=function(){var r=_.y.apply(this,arguments)||this;r.darkerPanels=_.N("web_watch_darker_panels");r.enableSqueezebackPanels=_.N("web_shorts_enable_squeezeback_panels");r.enableAnchoredPanel=_.N("desktop_shorts_v2_anchored_panel");r.modernPanels=_.N("kevlar_watch_modern_panels");r.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return r};
_.t(qN,_.y);_.l=qN.prototype;_.l.computeAdsInfoButton=function(){if(_.N("web_modern_buttons")){var r,f;return(f=_.F((r=this.data)==null?void 0:r.subtitleComplex,qL7))==null?void 0:f.adInfoRenderer}};
_.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 r;(r=this.data)!=null&&r.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.N("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.l.focus=function(r){this.titleElement&&_.KW(this.titleElement,r)};
_.l.computeTitleAriaLabel=function(r){var f=[];if(r.title){var I,C;f.push(this.ytRendererBehavior.getSimpleString(r.title)||((I=r.title.accessibility)==null?void 0:(C=I.accessibilityData)==null?void 0:C.label))}r.contextualInfo&&f.push(this.ytRendererBehavior.getSimpleString(r.contextualInfo));return f.join(" ")};
_.l.onHeaderClick=function(r){this.shouldTriggerHeaderClick(r)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.kA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.rX(this.hostElement,[this.data.onClickCommand],this.hostElement)):(r=this.getVisibilityToggleButton())&&r.click())};
_.l.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var r=_.F(this.data.visibilityButton,_.Ll)||_.F(this.data.visibilityButton,_.mR);r&&this.ytRendererBehavior.logExplicitClick(r)}};
_.l.getVisibilityToggleButton=function(){var r=_.e(this.hostElement).querySelector("#visibility-button").firstElementChild;return(r==null?void 0:r.is)==="ytd-toggle-button-renderer"?r:null};
_.l.shouldTriggerHeaderClick=function(r){return!_.iB(_.JN(r),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.l.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(r){r=_.F(r,_.sm2);this.targetId&&(r==null?void 0:r.targetId)===this.targetId&&(r=r.navigationButton)&&this.set("data.navigationButton",r)};
_.OC.Object.defineProperties(qN.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.N("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var r;return!!(((r=this.entity)==null?0:r.isActionButtonHidden)||this.hideActionButton)}}});
qN.prototype.collapsedChanged=qN.prototype.collapsedChanged;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],qN.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],qN.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],qN.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],qN.prototype,"ytdReduxBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],qN.prototype,"data",void 0);_.A([_.K(),_.B("design:type",String)],qN.prototype,"targetId",void 0);_.A([_.K(),_.B("design:type",Boolean)],qN.prototype,"collapsed",void 0);_.A([_.K(),_.B("design:type",Boolean)],qN.prototype,"hideActionButton",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],qN.prototype,"shortsPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],qN.prototype,"liveChatEngagementPanel",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],qN.prototype,"darkerPanels",void 0);_.A([_.uA("#title"),_.B("design:type",HTMLElement)],qN.prototype,"titleElement",void 0);_.A([_.K({computed:"computeAdsInfoButton(data)"}),_.B("design:type",Object)],qN.prototype,"adsInfoButton",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],qN.prototype,"enableSqueezebackPanels",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],qN.prototype,"enableAnchoredPanel",void 0);_.A([_.K({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(r,f){return _.f2(r.entities,"engagementPanelTitleHeaderEntity",f)}}),
_.B("design:type",Object)],qN.prototype,"entity",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],qN.prototype,"modernPanels",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("targetId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],qN.prototype,"adsSemanticText",null);_.A([_.YN("collapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qN.prototype,"collapsedChanged",null);
_.A([_.R("entity","hideActionButton"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],qN.prototype,"isActionButtonHidden",null);qN=_.A([_.U({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],qN);
_.Q(qN,"ytd-engagement-panel-title-header-renderer",function(){if(JzY!==void 0)return JzY;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" on-click="onHeaderClick" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return JzY=r},{mode:1});var j2B;var uG=function(){return _.y.apply(this,arguments)||this};
_.t(uG,_.y);uG.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],uG.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],uG.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],uG.prototype,"data",void 0);uG=_.A([_.U({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],uG);
_.Q(uG,"ytd-macro-markers-info-item-renderer",function(){if(j2B!==void 0)return j2B;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return j2B=r},{mode:1});var HrV;var v9i=function(r,f,I,C,Y,V){_.Mu.call(this);var S=this;this.JSC$20026_containerElement=r;this.hostElement=f;this.supportedSyncItems=I;this.syncEntityKey=C;this.options=Y;this.renderLazyListItems=V;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;ird(this);RN6(this);this.JSC$20026_scrollAnimation=new _.PT(function(h){r.scrollTop=h});
_.V$(this,this.JSC$20026_scrollAnimation);this.addOnDisposeCallback(function(){S.exitBrowsingMode(!1);S.activeItem&&S.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.t(v9i,_.Mu);var ird=function(r){var f=_.wj(_.a().resolve(_.Nb),function(I){return I.entities.markersEngagementPanelSyncEntity||{}},function(I,C){var Y;
I[r.syncEntityKey]!==C[r.syncEntityKey]&&((Y=I[r.syncEntityKey])==null?void 0:Y.activeItemIndex)!==void 0&&r.updatePanelActiveItem(I[r.syncEntityKey].activeItemIndex)});
r.unsubscribeFromTimedMarkersListSyncEntity=f;r.addOnDisposeCallback(f);K2d(r)},K2d=function(r){var f=_.a().resolve(_.Nb);
f=_.Ogq(f.getState(),r.syncEntityKey);(f==null?void 0:f.activeItemIndex)!==void 0&&(f=r.getItemByIndex(f.activeItemIndex))&&r.setActiveItem(f)},RN6=function(r){var f=new _.Gk(r.onScroll,50,r);
_.V$(r,f);var I=function(){f.fire()};
r.JSC$20026_containerElement.addEventListener("scroll",I);r.addOnDisposeCallback(function(){r.JSC$20026_containerElement.removeEventListener("scroll",I)})};
_.l=v9i.prototype;
_.l.updatePanelActiveItem=function(r){var f=this.getItemByIndex(r);if(f){if(this.setActiveItem(f),this.contentVisible)if(this.browsingMode){var I;((I=this.options)==null?void 0:I.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(r=yz6(this),f.offsetTop<this.JSC$20026_containerElement.clientHeight+this.JSC$20026_containerElement.scrollTop&&r&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));ULi(this)}else this.scrollToItem(f)}else _.t7(new _.nf("Could not find "+this.supportedSyncItems+
" sync child to set active.",r,this.JSC$20026_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.l.getItemByIndex=function(r){var f;(f=this.renderLazyListItems)==null||f.call(this,r);f=this.JSC$20026_containerElement.querySelectorAll(this.supportedSyncItems);if(f.length>r)return f[r]};
_.l.setActiveItem=function(r){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));r.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=r};
_.l.scrollToItem=function(r){r=this.getScrollPositionForItem(r);this.JSC$20026_containerElement.scrollTop!==r&&this.JSC$20026_scrollAnimation.start(this.JSC$20026_containerElement.scrollTop,r,300)};
_.l.getScrollPositionForItem=function(r){if(this.JSC$20026_containerElement.querySelectorAll(this.supportedSyncItems)[0]===r)return 0;var f,I=((f=this.options)==null?0:f.percentOffset)?this.JSC$20026_containerElement.clientHeight*this.options.percentOffset:0;r=_.Wk(r).y+this.JSC$20026_containerElement.scrollTop-(_.Wk(this.JSC$20026_containerElement).y+I);return Math.max(0,Math.min(r,this.JSC$20026_containerElement.scrollHeight-this.JSC$20026_containerElement.offsetHeight))};
_.l.onScroll=function(){this.activeItemBelowSyncPosition=yz6(this);if(this.activeItem&&!this.JSC$20026_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20026_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var r;switch((r=this.options)==null?void 0:r.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!s27(this));ULi(this);break;default:this.enterBrowsingMode(!0)}}};
_.l.enterBrowsingMode=function(r){var f=this,I,C;return _.x(function(Y){if(Y.nextAddress==1){if(f.browsingMode)return Y.return();f.browsingMode=!0;r&&f.hostElement.classList.add("browsing-mode");f.playerExitBrowsingModeListener=function(){f.exitBrowsingMode(!1)};
return _.b(Y,_.uB(),2)}I=Y.yieldResult;(C=I)==null||C.addEventListener("SEEK_TO",f.playerExitBrowsingModeListener);_.wO(Y)})};
_.l.exitBrowsingMode=function(r){r=r===void 0?!0:r;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),r&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.l.removePlayerSeekListener=function(){var r=this,f,I;return _.x(function(C){if(C.nextAddress==1)return r.playerExitBrowsingModeListener?_.b(C,_.uB(),3):C.jumpTo(0);f=C.yieldResult;(I=f)==null||I.removeEventListener("SEEK_TO",r.playerExitBrowsingModeListener);r.playerExitBrowsingModeListener=void 0;_.wO(C)})};
var ULi=function(r){var f;((f=r.options)==null?void 0:f.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(s27(r)?r.hostElement.classList.remove("browsing-mode"):r.activeItem&&r.hostElement.classList.add("browsing-mode"))},yz6=function(r){if(!r.activeItem)return!1;
var f,I=((f=r.options)==null?0:f.percentOffset)?r.JSC$20026_containerElement.clientHeight*r.options.percentOffset:0;return r.activeItem.offsetTop>=r.JSC$20026_containerElement.scrollTop+I},s27=function(r){if(!r.activeItem)return!1;
var f=r.activeItem.offsetTop+14<=r.JSC$20026_containerElement.scrollTop+r.JSC$20026_containerElement.clientHeight;return r.activeItem.offsetTop+r.activeItem.clientHeight-14>=r.JSC$20026_containerElement.scrollTop&&f};
v9i.prototype.panelContentVisibleChanged=function(r){(this.contentVisible=r)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var Or2=function(r,f){r.syncEntityKey=f;var I;(I=r.unsubscribeFromTimedMarkersListSyncEntity)==null||I.call(r);ird(r)},o9V=function(r,f){r.options=f};var DF=function(){var r=_.y.apply(this,arguments)||this;r.browsingMode=!1;r.modern=_.N("web_button_rework");r.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return r};
_.t(DF,_.y);_.l=DF.prototype;_.l.activeItemChanged=function(){if(!_.N("synced_panel_scrolling_controller")){var r;((r=this.syncEntity)==null?void 0:r.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.l.created=function(){var r=this;_.N("synced_panel_scrolling_controller")||(this.JSC$20030_scrollAnimation=new _.PT(function(f){r.contents.scrollTop=f}),this.boundExitBrowsingMode=function(){r.exitBrowsingMode(!1)})};
_.l.detached=function(){if(_.N("synced_panel_scrolling_controller")){var r;(r=this.scrollController)==null||r.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 r=this;_.N("synced_panel_scrolling_controller")?_.UC(this,function(){if(r.scrollController){var f;(f=r.scrollController)==null||f.exitBrowsingMode(!1);var I,C,Y;(C=r.scrollController)==null||Or2(C,(Y=(I=r.data)==null?void 0:I.syncModelEntityKey)!=null?Y:"default-macro-markers-list-renderer-entity-key");var V,S,h;(h=r.scrollController)==null||o9V(h,{percentOffset:(V=r.data)==null?void 0:V.selectedItemAlignmentPercentOffset,floatingPillType:(S=r.data)==null?void 0:S.floatingPillType})}else{var w,
n,d,z;r.scrollController=new v9i(r.contents,r.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(z=(w=r.data)==null?void 0:w.syncModelEntityKey)!=null?z:"default-macro-markers-list-renderer-entity-key",{percentOffset:(n=r.data)==null?void 0:n.selectedItemAlignmentPercentOffset,floatingPillType:(d=r.data)==null?void 0:d.floatingPillType},function(g){r.renderLazyListItems(g)})}r.scrollController.panelContentVisibleChanged(!!r.panelContentVisible)}):this.exitBrowsingMode()};
_.l.computeButtonShape=function(){var r=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){r.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.l.computeSyncEnabled=function(r){return!(r==null||!r.syncButtonLabel)};
_.l.renderLazyListItems=function(r){for(var f=this.contents.children,I=0,C=0;C<f.length;C++){var Y=void 0;(Y=f[C].ytLazyListBehavior)==null||Y.fillRemainingListItems();var V=void 0,S=void 0;Y=_.F((V=this.data)==null?void 0:(S=V.contents)==null?void 0:S[C],_.afw);S=V=void 0;if((V=Y)==null?0:(S=V.contents)==null?0:S.length)I+=Y.contents.length;if(I>=r)break}};
_.l.getItemByIndex=function(r){this.renderLazyListItems(r);var f=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(f.length>r)return f[r]};
_.l.setActiveItem=function(r){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);r.active!==void 0&&(r.active=!0);this.currentActiveItem=r};
_.l.handleSetActivePanelItemAction=function(r){if((r=_.F(r,oj7))&&this.panelTargetId===r.panelTargetId){r=r.itemIndex;if(_.N("synced_panel_scrolling_controller")){var f,I;var C=(I=(f=this.data)==null?void 0:f.syncModelEntityKey)!=null?I:"default-macro-markers-list-renderer-entity-key"}else{var Y;C=(Y=this.data)==null?void 0:Y.syncModelEntityKey}if(C){var V;((V=this.syncEntity)==null?void 0:V.activeItemIndex)!==r&&this.ytdReduxBehavior.dispatch(_.hv("markersEngagementPanelSyncEntity",C,{key:C,activeItemIndex:r}))}else this.updatePanelActiveItem(r)}};
_.l.updatePanelActiveItem=function(r){var f=this.getItemByIndex(r);f?(this.setActiveItem(f),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(f)):_.t7(new _.nf("Could not find ytd-macro-markers-list-renderer sync child to set active.",r,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.l.scrollToItem=function(r){r=this.getScrollPositionForItem(r);this.contents.scrollTop!==r&&this.JSC$20030_scrollAnimation.start(this.contents.scrollTop,r,300)};
_.l.getScrollPositionForItem=function(r){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===r)return 0;r=_.Wk(r).y+this.contents.scrollTop-_.Wk(this.contents).y-this.getStickyHeaderHeight(r);return Math.min(r,this.contents.scrollHeight-this.contents.offsetHeight)};
_.l.getStickyHeaderHeight=function(r){if(r.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var f,I,C;return(C=(f=r.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(I=f.header)==null?void 0:I.offsetHeight)!=null?C:0}return 0};
_.l.onScroll=function(){_.N("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20030_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.l.enterBrowsingMode=function(){var r=this;return _.x(function(f){if(f.nextAddress==1){if(r.browsingMode)return f.return();r.browsingMode=!0;return _.b(f,_.Ok().getPlayerPromise(),2)}r.player=f.yieldResult;r.player.addEventListener("SEEK_TO",r.boundExitBrowsingMode);_.wO(f)})};
_.l.exitBrowsingMode=function(r){this.browsingMode&&(this.browsingMode=!1,(r===void 0||r)&&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(_.N("synced_panel_scrolling_controller")){var r;(r=this.scrollController)==null||r.exitBrowsingMode()}else this.exitBrowsingMode()};
_.l.panelContentVisibleChanged=function(){if(_.N("synced_panel_scrolling_controller")){var r;(r=this.scrollController)==null||r.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
DF.prototype.panelContentVisibleChanged=DF.prototype.panelContentVisibleChanged;DF.prototype.dataChanged=DF.prototype.dataChanged;DF.prototype.activeItemChanged=DF.prototype.activeItemChanged;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],DF.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],DF.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],DF.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],DF.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],DF.prototype,"data",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],DF.prototype,"useCustomColors",void 0);_.A([_.K({computed:"computeSyncEnabled(data)"}),_.B("design:type",Boolean)],DF.prototype,"syncEnabled",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],DF.prototype,"panelTargetId",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],DF.prototype,"panelContentVisible",void 0);_.A([_.uA("#contents"),_.B("design:type",HTMLElement)],DF.prototype,"contents",void 0);_.A([_.uA("#sync-container"),_.B("design:type",HTMLElement)],DF.prototype,"syncContainer",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],DF.prototype,"browsingMode",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],DF.prototype,"modern",void 0);_.A([_.K({selectorArgs:["data.syncModelEntityKey"],selector:_.Ogq}),_.B("design:type",Object)],DF.prototype,"syncEntity",void 0);_.A([_.Bt("syncEntity.activeItemIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DF.prototype,"activeItemChanged",null);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DF.prototype,"dataChanged",null);_.A([_.Bt("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DF.prototype,"panelContentVisibleChanged",null);DF=_.A([_.U({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],DF);
_.Q(DF,"ytd-macro-markers-list-renderer",function(){if(HrV!==void 0)return HrV;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return HrV=r},{mode:1});var Q2U;var r3=function(){return _.y.apply(this,arguments)||this};
_.t(r3,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],r3.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],r3.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],r3.prototype,"data",void 0);r3=_.A([_.U({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],r3);
_.Q(r3,"ytd-error-corrections-section-item-renderer",function(){if(Q2U!==void 0)return Q2U;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Q2U=r},{mode:1});var Az6;var f1=function(){return _.y.apply(this,arguments)||this};
_.t(f1,_.y);f1.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],f1.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],f1.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],f1.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],f1.prototype,"data",void 0);f1=_.A([_.U({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],f1);
_.Q(f1,"ytd-error-corrections-section-renderer",function(){if(Az6!==void 0)return Az6;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Az6=r},{mode:1});var Zr6;var II=function(){return _.y.apply(this,arguments)||this};
_.t(II,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],II.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],II.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],II.prototype,"data",void 0);II=_.A([_.U({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],II);
_.Q(II,"ytd-topic-link-renderer",function(){if(Zr6!==void 0)return Zr6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Zr6=r},{mode:1});var GS7;var C1=function(){var r=_.y.apply(this,arguments)||this;r.modern=_.N("kevlar_modern_sd_v2");r.modernLockupV2=_.N("modernize_structured_description_playlist_lockups_v2");r.modernTypography=_.N("web_modern_typography");return r};
_.t(C1,_.y);C1.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"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],C1.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],C1.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],C1.prototype,"modern",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],C1.prototype,"modernLockupV2",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],C1.prototype,"modernTypography",void 0);C1=_.A([_.U({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],C1);
_.Q(C1,"ytd-video-description-course-section-renderer",function(){if(GS7!==void 0)return GS7;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return GS7=r},{mode:1});var kSV;var YW=function(){var r=_.y.apply(this,arguments)||this;r.modern=_.N("kevlar_modern_sd_v2");r.modernTypography=_.N("web_modern_typography");return r};
_.t(YW,_.y);YW.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"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],YW.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],YW.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],YW.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],YW.prototype,"modern",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],YW.prototype,"modernTypography",void 0);
YW=_.A([_.U({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],YW);
_.Q(YW,"ytd-video-description-files-section-renderer",function(){if(kSV!==void 0)return kSV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return kSV=r},{mode:1});var BVd;var lJ=function(){return _.y.apply(this,arguments)||this};
_.t(lJ,_.y);lJ.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"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],lJ.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],lJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],lJ.prototype,"data",void 0);lJ=_.A([_.U({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],lJ);
_.Q(lJ,"ytd-video-description-gaming-section-renderer",function(){if(BVd!==void 0)return BVd;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return BVd=r},{mode:1});var qM1;var Vn=function(){var r=_.y.apply(this,arguments)||this;r.isExpanded=!1;return r};
_.t(Vn,_.y);Vn.prototype.computeHasDefaultMetadataEndpoint=function(r){var f;r=r==null?void 0:(f=r.defaultMetadata)==null?void 0:f.runs;return!(!r||r.length!==1||!r[0].navigationEndpoint)};
Vn.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.OC.Object.defineProperties(Vn.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Vn.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Vn.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Vn.prototype,"isExpanded",void 0);_.A([_.K({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Vn.prototype,"hasDefaultMetadataEndpoint",void 0);
_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Vn.prototype,"isExpandable",null);_.A([_.R("data","isExpandable","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Vn.prototype,"showExpandedMetadata",null);Vn=_.A([_.U({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Vn);
_.Q(Vn,"ytd-info-row-renderer",function(){if(qM1!==void 0)return qM1;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return qM1=r},{mode:1});var uH1;var EO=function(){var r=_.y.apply(this,arguments)||this;r.currentIndex=0;r.supportComponentResize=!0;r.modern=_.N("kevlar_modern_sd_v2");r.JSC$20056_lastScrollContainerWidth=NaN;return r};
_.t(EO,_.y);_.l=EO.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 r;this.JSC$20056_scrollContainer!==void 0&&(r=this.videoLockups)!=null&&r.length&&(r=this.JSC$20056_scrollContainer.clientWidth,r!==this.JSC$20056_lastScrollContainerWidth&&(this.JSC$20056_lastScrollContainerWidth=r,_.Zh(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(r*.8,415)+"px"}),_.kA(this.hostElement,"iron-resize")))};
_.OC.Object.defineProperties(EO.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var r=[],f;if((f=this.data)==null||!f.carouselLockups)return r;f=_.E(this.data.carouselLockups);for(var I=f.next();!I.done;I=f.next()){I=I.value;var C=void 0;((C=_.F(I,al2))==null?0:C.videoLockup)&&r.push(_.F(I,al2).videoLockup)}return r}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.videoLockups)==null||!r.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var r=[],f;if((f=this.data)==null||!f.carouselLockups)return r;var I;return(I=_.F(this.data.carouselLockups[this.scrollCount],al2))==null?void 0:I.infoRows}}});
EO.prototype.dataChanged=EO.prototype.dataChanged;EO.prototype.onIronResize=EO.prototype.onIronResize;EO.prototype.hiddenChanged=EO.prototype.hiddenChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],EO.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],EO.prototype,"componentBehavior",void 0);_.A([_.J(_.ZL.YtdHorizontalListBehavior),_.B("design:type",Object)],EO.prototype,"ytdHorizontalListBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],EO.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],EO.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],EO.prototype,"inlineStructuredDescription",void 0);_.A([_.K({value:2}),_.B("design:type",Number)],EO.prototype,"initialCount",void 0);_.A([_.K(),_.B("design:type",Object)],EO.prototype,"currentIndex",void 0);
_.A([_.K(),_.B("design:type",Number)],EO.prototype,"scrollCount",void 0);_.A([_.K(),_.B("design:type",Object)],EO.prototype,"supportComponentResize",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],EO.prototype,"contentHidden",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],EO.prototype,"modern",void 0);_.A([_.uA("#scroll-container"),_.B("design:type",HTMLDivElement)],EO.prototype,"JSC$20056_scrollContainer",void 0);
_.A([_.Bt("contentHidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EO.prototype,"hiddenChanged",null);_.A([_.R("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],EO.prototype,"videoLockups",null);_.A([_.R("videoLockups"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],EO.prototype,"hasVideoLockups",null);
_.A([_.kO("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EO.prototype,"onIronResize",null);_.A([_.R("data","scrollCount"),_.B("design:type",Object),_.B("design:paramtypes",[])],EO.prototype,"infoRows",null);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EO.prototype,"dataChanged",null);EO=_.A([_.U({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],EO);
_.Q(EO,"ytd-video-description-music-section-renderer",function(){if(uH1!==void 0)return uH1;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return uH1=r},{mode:_.QQ("kevlar_poly_si_batch_j081")?1:2});var DL6;var S6=function(){var r=_.y.apply(this,arguments)||this;r.modern=_.N("kevlar_modern_sd_v2");r.modernTypography=_.N("web_modern_typography");return r};
_.t(S6,_.y);S6.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],S6.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],S6.prototype,"ytRendererBehavior",void 0);_.A([_.K({}),_.B("design:type",Object)],S6.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],S6.prototype,"modern",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],S6.prototype,"modernTypography",void 0);
S6=_.A([_.U({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],S6);
_.Q(S6,"ytd-video-description-transcript-section-renderer",function(){if(DL6!==void 0)return DL6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return DL6=r},{mode:1});var rf2;_.Kv(_.Hc(function(r){var f=_.VS(_.wfq,function(){return r.data().firstProviderLinkStatusEntityKey}),I=_.VS(_.wfq,function(){return r.data().secondProviderLinkStatusEntityKey}),C=function(){var Y,V;
return((Y=f())==null?void 0:Y.linked)||((V=I())==null?void 0:V.linked)};
return _.p("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.p(_.wW,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return r.data().sectionTitle}}),_.p(_.wW,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return C()?r.data().connectedMessage:r.data().notConnectedMessage}}),_.p(_.M,{cond:C,
then:function(){return _.p(_.X1,{data:function(){return r.data().connectedButton}},{buttonViewModel:function(Y){return _.p(_.LF,{data:Y.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.p(_.M,{cond:function(){return!C()},
then:function(){return _.p(_.X1,{data:function(){return r.data().notConnectedButton}},{buttonViewModel:function(Y){return _.p(_.LF,{data:Y.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Ei"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.jv}});_.Kv(_.Hc(function(r){var f=r.data;return _.p("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.p("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.p(_.wW,{text:function(){return f().sectionTitle}})),_.p("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.p(_.wW,{text:function(){return f().bodyHeader}})),_.p("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.p(_.wW,{text:function(){return f().bodyText}})),_.p(_.M,
{cond:function(){return f().attributionText},
then:function(){return _.p("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.p(_.wW,{text:function(){return f().attributionText}}))}}))},"Fi"),"how-this-was-made-section-view-model",{props:{data:_.jv}});_.Kv(_.Hc(function(r){return _.p("yt-video-description-youchat-section-view-model",{class:_.qd("ytVideoDescriptionYouchatSectionViewModelHost")},_.p("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.p(_.wW,{text:function(){return r.data().sectionTitle}})),_.p("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.p(_.wW,{text:function(){return r.data().subHeaderText}})),_.p("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.p(_.LF,{data:function(){return _.F(r.data().primaryButton,
_.NI)}})))},"Gi"),"yt-video-description-youchat-section-view-model",{props:{data:_.jv}});var xW=function(){var r=_.y.apply(this,arguments)||this;r.modern=_.N("kevlar_modern_sd_v2");r.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return r};
_.t(xW,_.y);_.l=xW.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 r,f;this.hasDescriptionOnly=!(((r=this.data)==null?void 0:(f=r.items)==null?void 0:f.length)!==1||!_.F(this.data.items[0],X61))};
_.l.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.l.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.l.autoFocusDescription=function(){var r;((r=_.a().resolve(_.ZY(_.nF)))==null?0:r.isKeyBoardInUse())&&this.description&&_.y9(this.description)};
_.l.resize=function(){if(_.N("kevlar_disable_sd_resize"))this.JSC$20064_cardList&&_.kA(this.JSC$20064_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.kA(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.kA(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.l.scrollToSection=function(r){if(r=this.getSectionElement(r))_.Bj(this.hostElement,"yt-scroll-to-watch-element",[r]),r.focus()};
_.l.getSectionElement=function(r){switch(r){case "infocards-item-section":var f;return(f=this.infocardsSection)!=null?f:null;case "transcript-item-section":var I;return(I=this.transcriptSection)!=null?I:null;case "how-this-was-made-section-item-section":var C;return(C=this.howThisWasMadeSection)!=null?C:null;case "files-item-section":var Y;return(Y=this.filesSection)!=null?Y:null;default:return null}};
_.l.handleSetActiveItemAction=function(r){var f=_.F(r,oj7),I=f&&(f==null?void 0:f.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20064_cardList;if(f&&I){r=this.currentActiveChapter;var C=this.currentActiveProblem;f=I==null?void 0:I.getItemByIndex(f.itemIndex);var Y=I=!0;f&&(f.active=!0,f.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(I=r!==f,Y=!1,this.currentActiveChapter=f):(f==null?void 0:f.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(I=!1,Y=C!==f,this.currentActiveProblem=f));r&&I&&(r.active=!1);C&&Y&&(C.active=!1)}};
_.OC.Object.defineProperties(xW.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.N("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
xW.prototype.onYtExpanderMoreTapped=xW.prototype.onYtExpanderMoreTapped;xW.prototype.onHiddenChanged=xW.prototype.onHiddenChanged;xW.prototype.dataChanged=xW.prototype.dataChanged;xW.prototype.panelContentVisibleChanged=xW.prototype.panelContentVisibleChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],xW.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],xW.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],xW.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.Pq),_.B("design:type",Object)],xW.prototype,"ironResizableBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],xW.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],xW.prototype,"panelContentVisible",void 0);_.A([_.K(),_.B("design:type",Boolean)],xW.prototype,"hasDescriptionOnly",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],xW.prototype,"inlineStructuredDescription",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],xW.prototype,"hidden",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],xW.prototype,"shortsPanel",void 0);_.A([_.K(),_.B("design:type",Object)],xW.prototype,"videoSummary",void 0);_.A([_.K(),_.B("design:type",Object)],xW.prototype,"merchShelf",void 0);
_.A([_.R("videoSummary"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],xW.prototype,"showVideoSummary",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],xW.prototype,"modern",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],xW.prototype,"engagementPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],xW.prototype,"watchWhileSdp",void 0);
_.A([_.uA("ytd-expandable-video-description-body-renderer"),_.B("design:type",Object)],xW.prototype,"description",void 0);_.A([_.uA("ytd-horizontal-card-list-renderer"),_.B("design:type",Object)],xW.prototype,"JSC$20064_cardList",void 0);_.A([_.uA("ytd-horizontal-card-list-renderer[center-items]"),_.B("design:type",Object)],xW.prototype,"problemWalkthroughCardList",void 0);_.A([_.uA("ytd-shelf-renderer"),_.B("design:type",Object)],xW.prototype,"shelfSection",void 0);
_.A([_.uA("ytd-video-description-music-section-renderer"),_.B("design:type",Object)],xW.prototype,"musicMetadataSection",void 0);_.A([_.uA("ytd-video-description-infocards-section-renderer"),_.B("design:type",Object)],xW.prototype,"infocardsSection",void 0);_.A([_.uA("ytd-video-description-transcript-section-renderer"),_.B("design:type",Object)],xW.prototype,"transcriptSection",void 0);
_.A([_.uA("how-this-was-made-section-view-model"),_.B("design:type",Object)],xW.prototype,"howThisWasMadeSection",void 0);_.A([_.uA("ytd-video-description-files-section-renderer"),_.B("design:type",Object)],xW.prototype,"filesSection",void 0);_.A([_.Bt("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xW.prototype,"panelContentVisibleChanged",null);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xW.prototype,"dataChanged",null);_.A([_.Bt("hidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xW.prototype,"onHiddenChanged",null);_.A([_.kO("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xW.prototype,"onYtExpanderMoreTapped",null);
xW=_.A([_.U({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],xW);
_.Q(xW,"ytd-structured-description-content-renderer",function(){if(rf2!==void 0)return rf2;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return rf2=r},{mode:2});var f72;var I7i;var he=function(){return _.y.apply(this,arguments)||this};
_.t(he,_.y);he.prototype.computeAriaLabel=function(r){var f,I;return(r==null?void 0:(f=r.accessibility)==null?void 0:(I=f.accessibilityData)==null?void 0:I.label)||_.VR("LOADING",void 0,"Loading")};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],he.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],he.prototype,"data",void 0);_.A([_.K({computed:"computeAriaLabel(data)"}),_.B("design:type",String)],he.prototype,"ariaLabel",void 0);he=_.A([_.zX({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],he);
_.Q(he,"yt-content-loading-renderer",function(){if(I7i===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;f72===void 0&&(f72=document.createElement("template"));var C=f72;I.call(f,C.content.cloneNode(!0),r.content.firstChild);I7i=r}r=I7i;return r},{mode:_.QQ("kevlar_poly_si_batch_j043")?1:2});_.Kv(_.Hc(function(r){var f=_.E(_.ld(!1,void 0,"WbYeXc")),I=f.next().value,C=f.next().value;f=_.E(_.ld(!1,void 0,"msXkzc"));var Y=f.next().value,V=f.next().value;_.$E(function(){var w=_.F(r.data().collaboratePlaylistCollaborationSetting,xE7);w&&C(w.switchedOnByDefault);var n=_.F(r.data().allowNewCollaboratorsPlaylistCollaborationSetting,xE7);n&&V(n.switchedOnByDefault);if(!w&&!n||!w&&r.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")C(!0),V(!0)});
var S=function(w){C(w);V(w);var n=r.data().playlistCollaborationEntityKey||"";var d=_.Lx().getState();(d=_.f2(d.entities,"playlistCollaborationEntity",n))&&(d==null?void 0:d.isCollaborative)===w||_.Lx().dispatch(_.hv("playlistCollaborationEntity",n,Object.assign({},d,{isCollaborative:w})))},h=function(w){V(w)};
return _.p("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.p("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.p(_.X1,{data:function(){return r.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(w){return _.p(_.g6,{data:w.data,
onSwitch:S})}})),_.p(_.M,{cond:I,
then:function(){return _.p("div",null,_.p("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.p(_.X1,{data:function(){return r.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(w){return _.p(_.g6,{data:w.data,
onSwitch:h,overrideDisabled:!1})}})),_.p(_.M,{cond:Y,
then:function(){return _.p("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.p(_.X1,{data:function(){return r.data().copyLinkButton}},{buttonViewModel:_.LF}))}}),_.p("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.p(_.X1,{data:function(){return r.data().playlistCollaborators}},{contentListItemViewModel:_.PLs})))}}))},"Hi"),"playlist-collaboration-view-model",{props:{data:_.jv}});var Cv2=_.Hc(function(r){var f=r.data;var I=r.customCommandResolver;return _.p(_.B9,null,_.p("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.p(_.X1,{data:function(){return f().adAvatar}},{adAvatarViewModel:function(C){return _.p(_.D0B,{data:C.data,
customCommandResolver:I})}})),_.p("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.p(_.M,{cond:function(){return f().headline},
then:function(C){return _.p(_.wW,{text:C,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.p("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.p(_.X1,{data:function(){return f().adBadge}},{adBadgeViewModel:function(C){return _.p(_.Qd,{data:C.data,
hasDot:function(){return f().primaryDetailsLine!==void 0},
customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.p(_.X1,{data:function(){return f().primaryDetailsLine}},{adDetailsLineViewModel:function(C){return _.p(_.Ac,{data:C.data,
customCommandResolver:I,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Ii"),YYs=_.Hc(function(r){var f=r.data;
var I=r.customCommandResolver;r=_.yy();_.oK(r,function(){return f().interaction},I);
_.ZW(r,{visibilityCallback:function(C){var Y,V=(Y=f().interaction)==null?void 0:Y.onFirstVisible;C&&V&&_.F2(V)},
showOption:_.Kc});return _.p("ad-avatar-lockup-view-model",{class:function(){var C;return((C=f().interaction)==null?0:C.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:r,"aria-label":function(){var C,Y;return(C=f().interaction)==null?void 0:(Y=C.accessibility)==null?void 0:Y.label}},_.p(_.MC,null,_.p(_.nz,{when:function(){return f().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.p(Cv2,{data:f,
customCommandResolver:I})}),_.p(_.dt,null,function(){return null})))},"Ji");_.Kv(_.Hc(function(r){var f=r.data;var I=r.panelContentVisibility;r=_.yy();_.oK(r,function(){return f().interaction},lTV);
_.ZW(r,{visibilityCallback:function(Y){var V,S=(V=f().interaction)==null?void 0:V.onFirstVisible;Y&&S&&_.F2(S)},
showOption:_.Kc});_.Nk(function(){var Y,V;if(V=_.jH("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var S;V=(S=V())==null?void 0:S.onLayoutVisibleCallback}else V=null;(Y=V)==null||Y()});
var C=function(){return I()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.p("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:r},_.p("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.p("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.p(_.M,{cond:_.gsK("(min-width: "+((0,_.$_)()+_.H$)+"px) or (max-width: 600px)"),then:function(){return _.p(_.X1,{data:function(){return f().adImage}},{adImageViewModel:function(Y){return _.p(_.DM,{data:Y.data,
targetHeight:80,customCommandResolver:lTV})}})}})),_.p("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.p("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.p(_.X1,{data:function(){return f().adAvatarLockup}},{adAvatarLockupViewModel:function(Y){return _.p(YYs,{data:Y.data,
customCommandResolver:lTV})}})),_.p(_.M,{cond:C,
then:function(){return _.p(_.X1,{data:function(){return f().adButton}},{adButtonViewModel:function(Y){return _.p(_.Uq,{data:Y.data,
customCommandResolver:lTV})}})},
else:function(){return _.p(_.X1,{data:function(){return f().menu}},{buttonViewModel:_.LF})}}),_.p("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.p(_.X1,{data:function(){var Y=_.F(f().toggleButton,_.$4);
return{toggleButtonViewModel:Object.assign({},Y,{isTogglingDisabled:!0,isToggled:C()})}}},{toggleButtonViewModel:_.F1})))))},"Ki"),"panel-ad-header-image-lockup-view-model",{props:{data:_.jv,
panelContentVisibility:_.jv}});_.Kv(_.Hc(function(r){var f=function(){return _.F(r.data().inputComposerViewModel,hOq)},I=function(){var m;
return((m=f())==null?void 0:m.youchatPendingResponseEntityKey)||""},C=_.VS(_.Axd,I),Y=function(){var m;
return!((m=C())==null||!m.isPendingResponse)},V=_.E(_.ld(!0,void 0,"DR0q1d")),S=V.next().value,h=V.next().value,w=function(){return f().sectionTargetId||"youchat_messages_section"};
V=_.Ue();var n=_.yy(),d=_.VS(G2p,"chat_input_view_model_state"),z=k27(),g=function(){var m;return!((m=d())==null||!m.value)};
_.$E(function(){var m;!g()&&((m=f())==null?0:m.welcomeFeatureContinuation)&&(m={continuationCommand:{token:f().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},_.X2(m),z(!0));var v=w(),O;(O=_.a().resolve(_.ZY(_.rQ)))==null||O.addEventListener("yt-navigate-start",function(){_.MI.remove(v);z(!1)},{once:!0})});
var X=_.IC(function(m){var v=Y()||!1;VA6(n.value);v||m.key!=="Enter"||m.shiftKey||(m.preventDefault(),W());return!1}),P=_.IC(function(){h(n.value.value.length===0);
return!1}),W=function(){var m,v,O,k,Z,Cw,rR,EP,Pu;
return _.x(function(Wu){m=n.value.value;n.value.value="";VA6(n.value);v=EjB(w(),m);_.X2(v);O=_.ZS6(I());_.F2(((k=f())==null?void 0:k.onSubmitCommand)||{});O(!0);Cw=String(Math.floor(((Z=_.Db())==null?void 0:Z.getCurrentTime())||0)*1E3);EP={continuationCommand:{token:(rR=f())==null?void 0:rR.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};Pu={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:m,playerOffsetMs:Cw}};_.X2(EP,{form:{formData:Pu},commandController:{onSuccess:function(){O(!1)},
onServerError:function(){var cu=w();_.X2({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:cu}}]}}});O(!1)}}});
_.wO(Wu)})};
return _.p("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:V},_.p("div",{class:"chatInputViewModelChatInputWrapper"},_.p("form",{class:"chatInputViewModelChatInputForm"},_.p("textarea",{class:"chatInputViewModelChatInput",el:n,"on:keydown":X,"on:keyup":P,placeholder:function(){var m,v;var O=_.F((v=f())==null?void 0:v.inputFormField,Un3);return O==null?void 0:(m=O.contentProperties)==null?void 0:m.placeholderText},
rows:1}),_.p(_.LF,{data:function(){return _.F(r.data().sendButton,_.NI)},
onClick:function(m){m.preventDefault();W();h(n.value.value.length===0)},
buttonOverrides:function(){return{disabled:S()||Y()}}})),_.p(_.wW,{className:"chatInputViewModelChatDisclaimer",
text:function(){var m;return(m=_.F(r.data().disclaimer,_.Tx8))==null?void 0:m.text}})))},"Li"),"yt-chat-input-view-model",{props:{data:_.jv}});var l7s=["engagement-panel-clip-create","engagement-panel-clip-view"],VfU=0,w3=function(){var r=_.y.apply(this,arguments)||this;var f;r.headerData=(f=r.data)==null?void 0:f.header;r.darkerPanels=_.N("web_watch_darker_panels");r.matchContentTheme=_.N("web_watch_panel_content_match_theme");r.disableAutoFill=!1;r.isFullscreen=!1;r.modernPanels=_.N("kevlar_watch_modern_panels");r.liveChatReplyPanel=!1;r.enableAnchoredPanel=_.N("desktop_shorts_v2_anchored_panel");r.disableBackdropFilter=_.N("web_disable_backdrop_filter");
r.trackEngagementPanelVisibility=_.N("web_watch_track_engagement_panel_visibility");r.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 r};
_.t(w3,_.y);_.l=w3.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]]"}},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(r){var f;
if((r==null?void 0:(f=r.webComponentHint)==null?void 0:f.componentVersion)==="WEB_COMPONENT_VERSION_SHARED")return"yt-section-list-renderer";r=r==null?void 0:r.contents;if(!r||r.length<1)return"ytd-section-list-renderer";var I,C;r=(I=r[0])==null?void 0:(C=I.itemSectionRenderer)==null?void 0:C.contents;if(!r||r.length<1)return"ytd-section-list-renderer";var Y;return((Y=r[0])==null?0:Y.youChatItemViewModel)?"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 r;if((r=this.hostElement.parentElement)==null?0:r.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.l.detached=function(){this.updateTheaterDisablement()};
_.l.showPanel=function(){var r=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.F_.addJob(function(){r.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.l.maybeScrollToItemSection=function(r){var f=this,I,C=r==null?void 0:(I=r.sectionListEngagementPanelExtras)==null?void 0:I.scrollToItemSectionIdentifier;C&&_.F_.addJob(function(){var Y;(Y=f.sectionListRendererElement)==null||Y.scrollToItemSection(C)},8)};
_.l.hidePanel=function(){var r=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.F_.addJob(function(){r.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(r,f,I,C){var Y=this;if((r=r==null?void 0:r.engagementPanelSectionListRenderer)||C){if(r){C=r.header;var V=r.content,S=r.footer;(r=r.targetId)&&this.set("data.targetId",r);C&&this.set("data.header",C);V&&this.set("data.content",V);S&&this.set("data.footer",S)}else C&&(r=C.content,V=C.secondaryHeaderContent,(C=C.targetId)&&this.set("data.targetId",C),r&&this.set("data.content",r),V&&(this.secondaryHeaderData=V));this.updateChildVisibilityProperties();if(f){var h;_.N("kevlar_update_panel_focus_scroll_killswitch")||
(h={preventScroll:!0});this.focus(h)}_.UC(this,function(){_.kA(Y.hostElement,"yt-refit");Y.maybeScrollToItemSection(I)})}};
_.l.computeHeaderData=function(){var r,f=(0,_.X0.unsafeClone)((r=this.data)==null?void 0:r.header);if(f){r=new _.q(Object.keys(f)[0]);var I=_.F(f,r),C=_.F(this.secondaryHeaderData,r);C&&_.nv(f,r,Object.assign({},C,I))}return f};
_.l.getReloadContinuation=function(){var r,f,I,C=_.E(((r=this.data)==null?void 0:(f=r.content)==null?void 0:(I=f.sectionListRenderer)==null?void 0:I.continuations)||[]);for(r=C.next();!r.done;r=C.next())if(r=r.value,r.reloadContinuationData)return r.reloadContinuationData.continuation};
_.l.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var r;((r=this.data)==null?0:r.targetId)&&(r=this.contentElement.firstElementChild)&&r.setAttribute("panel-target-id",this.data.targetId)};
_.l.forwardPopupClosedToFlowRootRenderer=function(){var r=_.e(this.hostElement).querySelector("ytd-flow-root-renderer");if(r)r.onPopupClosed()};
_.l.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var r=_.N("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen;if(_.N("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||r){var f;this.visibility=(f=this.data)==null?void 0:f.visibility;var I;this.trackEngagementPanelVisibility&&
((I=this.data)==null?void 0:I.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var C,Y,V,S;this.contentEmpty=!!(((C=this.data)==null?0:(Y=C.content)==null?0:Y.structuredDescriptionContentRenderer)&&Object.keys((V=this.data)==null?void 0:(S=V.content)==null?void 0:S.structuredDescriptionContentRenderer).length===0);(r=_.a().resolve(_.dD))&&r.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility=
"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.l.isFullscreenChanged=function(){this.isFullscreen&&_.N("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.l.focus=function(r){if(this.header)this.header.focus(r);else{var f;(f=_.e(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||f.focus(r)}};
_.l.visibilityChanged=function(){if(!_.N("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var r=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",f=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",I=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",C=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Y=C||!this.lastVisibility,V,S,h=(V=this.data)==null?void 0:(S=V.identifier)==null?void 0:S.tag,
w;if(((w=this.data)==null?0:w.onShowCommands)&&r&&Y)_.rX(this.hostElement,this.data.onShowCommands,this.hostElement),h&&_.K2().dispatch(_.kI({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:h}}));else{var n;((n=this.data)==null?0:n.onHideCommands)&&f&&I&&(_.rX(this.hostElement,this.data.onHideCommands,this.hostElement),h&&_.K2().dispatch(_.kI({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:h}})))}r&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*VfU++));_.N("kevlar_watch_focus_on_engagement_panels")&&
r&&C&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.l.notifyVisibilityChanged=function(r){var f;_.qy(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,r,(f=this.data)==null?void 0:f.targetId])};
_.l.updateTheaterDisablement=function(){if(!_.N("kevlar_watch_theater_disablement_killswitch")){var r=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&l7s.includes(r)&&!_.N("watch_next_grid_ignore_disallowed_panels")){var f=_.XL(_.K2().getState()),I=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";r!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():I?(this.originalTheaterState===void 0&&(this.originalTheaterState=f,this.theaterDisablementPanelIdentifier=
r),f&&_.Bj(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.l.clearTheaterDisablement=function(){_.Bj(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.l.updateChildVisibilityProperties=function(){this.hostElement||_.N("kevlar_panel_property_init_killswitch")||this._enableProperties();var r=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=r);var f,I=(f=this.headerElement)==null?void 0:f.firstElementChild;if(I&&!this.adHeaderImageLockupViewModel){f=r==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";I.collapsed=f;I=_.e(I).querySelector("#visibility-button");if(!I)return;(I=I.firstElementChild)&&
I.polymerController.is==="ytd-toggle-button-renderer"&&I.polymerController.data.isToggled!==f&&I.polymerController.set("data.isToggled",f)}var C;if(f=(C=this.contentElement)==null?void 0:C.firstElementChild)if(r&&r!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")f.removeAttribute("panel-content-visible");else{f.setAttribute("panel-content-visible","");var Y;(Y=f.markDirty)==null||Y.call(f)}};
_.l.onYtChangeEngagementPanelVisibilityAction=function(r){var f=this,I,C=(I=this.data)==null?void 0:I.targetId,Y,V,S;I=((Y=this.data)==null?void 0:(V=Y.identifier)==null?void 0:V.tag)||((S=this.data)==null?void 0:S.panelIdentifier);var h=_.F(r,_.i9V),w;r=C&&(h==null?void 0:h.targetId)===C||I&&(h==null?void 0:(w=h.panelIdentifier)==null?void 0:w.tag)===I;this.dialog&&r&&(h==null?void 0:h.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(C==="engagement-panel-comments-section"?_.Bj(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.Bj(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",I]));C=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";w=this.isFullscreen&&_.N("kevlar_single_panel_fullscreen");C=!r&&(h==null?void 0:h.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&!C&&w;_.N("kevlar_use_engagement_panel_management_component")||(r?(C=h.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&
!C?_.F_.addJob(function(){f.visibility=h.visibility},2,this.hideDelayMs):this.visibility=h.visibility,h.visibility&&this.notifyVisibilityChanged(h.visibility)):C&&this.hidePanel())};
_.l.onYtScrollToEngagementPanelCommand=function(r){var f,I=(f=this.data)==null?void 0:f.targetId,C,Y,V;f=((C=this.data)==null?void 0:(Y=C.identifier)==null?void 0:Y.tag)||((V=this.data)==null?void 0:V.panelIdentifier);r=_.F(r,_.Z93);var S;(I&&(r==null?void 0:r.targetId)===I||f&&(r==null?void 0:(S=r.panelIdentifier)==null?void 0:S.tag)===f)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.Bj(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.l.attachVEs=function(r){var f,I;(r==null?0:(f=r.content)==null?0:(I=f.productListRenderer)==null?0:I.trackingParams)&&_.IB().graftServerVe(r.content.productListRenderer.trackingParams);var C,Y;(r==null?0:(C=r.content)==null?0:(Y=C.transcriptRenderer)==null?0:Y.trackingParams)&&_.IB().graftServerVe(r.content.transcriptRenderer.trackingParams)};
_.l.onYtUpdateEngagementPanelAction=function(r){var f,I=(f=this.data)==null?void 0:f.targetId;r=_.F(r,AS2);I&&(r==null?void 0:r.targetId)===I&&(this.updatePanel({engagementPanelSectionListRenderer:{header:r==null?void 0:r.header,content:r==null?void 0:r.content}},!1),this.attachVEs(r))};
_.l.onYtShowEngagementPanelScrimAction=function(r){var f,I=(f=this.data)==null?void 0:f.targetId;r=_.F(r,Qm1);I&&(r==null?void 0:r.engagementPanelTargetId)===I&&(this.scrimmed=!0)};
_.l.onYtHideEngagementPanelScrimAction=function(r){var f,I=(f=this.data)==null?void 0:f.targetId;r=_.F(r,Op6);I&&(r==null?void 0:r.engagementPanelTargetId)===I&&(this.scrimmed=!1)};
_.l.getIdentifier=function(){var r,f,I;return((r=this.data)==null?void 0:r.panelIdentifier)||((f=this.data)==null?void 0:(I=f.identifier)==null?void 0:I.tag)};
_.l.getSurface=function(){var r,f;return(r=this.data)==null?void 0:(f=r.identifier)==null?void 0:f.surface};
_.OC.Object.defineProperties(w3.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var r=this.getIdentifier();return r==="engagement-panel-youchat"||r==="PAyouchat"}}});
w3.prototype.visibilityChanged=w3.prototype.visibilityChanged;w3.prototype.isFullscreenChanged=w3.prototype.isFullscreenChanged;w3.prototype.dataChanged=w3.prototype.dataChanged;w3.prototype.forwardPopupClosedToFlowRootRenderer=w3.prototype.forwardPopupClosedToFlowRootRenderer;w3.prototype.onYtRendererstamperFinished=w3.prototype.onYtRendererstamperFinished;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],w3.prototype,"actionHandlerBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],w3.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],w3.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],w3.prototype,"ytEventForwardingBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],w3.prototype,"data",void 0);
_.A([_.K({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.B("design:type",Object)],w3.prototype,"headerData",void 0);_.A([_.K(),_.B("design:type",Object)],w3.prototype,"secondaryHeaderData",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],w3.prototype,"visibility",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],w3.prototype,"contentEmpty",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],w3.prototype,"scrimmed",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],w3.prototype,"dialog",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],w3.prototype,"dropdown",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],w3.prototype,"darkerPanels",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],w3.prototype,"matchContentTheme",void 0);_.A([_.K(),_.B("design:type",Object)],w3.prototype,"disableAutoFill",void 0);
_.A([_.K({reflectToAttribute:!0,value:_.N("optimal_reading_width_comments_ep")}),_.B("design:type",Boolean)],w3.prototype,"optimalReadingWidthComments",void 0);_.A([_.K(),_.B("design:type",Number)],w3.prototype,"hideDelayMs",void 0);_.A([_.K({selector:_.Ff,reflectToAttribute:!0}),_.B("design:type",Object)],w3.prototype,"isFullscreen",void 0);_.A([_.K(),_.B("design:type",Number)],w3.prototype,"showDelayMs",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("data.targetId"),_.B("design:type",Object),_.B("design:paramtypes",[])],w3.prototype,"targetId",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],w3.prototype,"webSize",null);_.A([_.K(),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],w3.prototype,"hideFooterBorder",null);_.A([_.K(),_.B("design:type",Object)],w3.prototype,"isWatch",void 0);
_.A([_.K(),_.B("design:type",Object)],w3.prototype,"originalTheaterState",void 0);_.A([_.K(),_.B("design:type",Object)],w3.prototype,"theaterDisablementPanelIdentifier",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],w3.prototype,"modernPanels",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],w3.prototype,"isWatchWhilePanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],w3.prototype,"shortsPanel",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],w3.prototype,"liveChatEngagementPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],w3.prototype,"liveChatReplyPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],w3.prototype,"enableAnchoredPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],w3.prototype,"disableBackdropFilter",void 0);
_.A([_.K(),_.B("design:type",Object)],w3.prototype,"trackEngagementPanelVisibility",void 0);_.A([_.uA("#header"),_.B("design:type",HTMLElement)],w3.prototype,"headerElement",void 0);_.A([_.uA("#header > *"),_.B("design:type",HTMLElement)],w3.prototype,"header",void 0);_.A([_.uA("ytd-section-list-renderer"),_.B("design:type",Object)],w3.prototype,"sectionListRendererElement",void 0);
_.A([_.uA("panel-ad-header-image-lockup-view-model"),_.B("design:type",HTMLElement)],w3.prototype,"adHeaderImageLockupViewModel",void 0);_.A([_.uA("#content"),_.B("design:type",HTMLElement)],w3.prototype,"contentElement",void 0);_.A([_.kO("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],w3.prototype,"onYtRendererstamperFinished",null);
_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],w3.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.A([_.YN("data","isFullscreen"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],w3.prototype,"dataChanged",null);_.A([_.Bt("isFullscreen"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],w3.prototype,"isFullscreenChanged",null);
_.A([_.Bt("visibility"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],w3.prototype,"visibilityChanged",null);w3=_.A([_.U({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],w3);
_.Q(w3,"ytd-engagement-panel-section-list-renderer",function(){if(L21!==void 0)return L21;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return L21=r},{mode:_.QQ("kevlar_poly_si_batch_j028")?1:2});var EdU;var bJ=function(){var r=_.y.apply(this,arguments)||this;r.lastRenderedPanelIds=new Set;r.visiblePanels=[];r.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return r};
_.t(bJ,_.y);_.l=bJ.prototype;_.l.dataChanged=function(){if(this.data){for(var r=[],f=_.E(this.data),I=f.next();!I.done;I=f.next()){I=I.value;var C=void 0,Y=void 0,V=(C=I)==null?void 0:(Y=C.engagementPanelSectionListRenderer)==null?void 0:Y.visibility;Y=C=void 0;((C=I)==null?0:(Y=C.engagementPanelSectionListRenderer)==null?0:Y.targetId)&&V!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&r.push(I)}this.visiblePanels=r}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(r){return this.visiblePanels.filter(function(f){var I;return((I=f.engagementPanelSectionListRenderer)==null?void 0:I.targetId)!==r})};
_.l.onYtChangeEngagementPanelVisibilityAction=function(r){var f=this,I=_.F(r,_.i9V);if(this.data&&(I==null?0:I.targetId)&&(I==null?0:I.visibility)){var C,Y=(C=this.data.find(function(S){var h;return((h=S.engagementPanelSectionListRenderer)==null?void 0:h.targetId)===I.targetId}))==null?void 0:C.engagementPanelSectionListRenderer;
if(Y){var V=this.withoutVisiblePanelById(I.targetId);I.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(r=this.data.find(function(S){var h;return((h=S.engagementPanelSectionListRenderer)==null?void 0:h.targetId)===I.targetId}))&&(V=[r].concat(_.Na(V)));
this.hideDelayMs&&I.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&V.length===0?_.F_.addJob(function(){Y.visibility=I.visibility;f.visiblePanels=V},10,this.hideDelayMs):(Y.visibility=I.visibility,this.visiblePanels=V);
_.qy(this.hostElement,"yt-engagement-panels-visible-changed",[V])}}};
_.l.onRendererstamperFinished=function(){var r=new Set(this.visiblePanels.map(function(f){var I;return(I=f.engagementPanelSectionListRenderer)==null?void 0:I.targetId}));
this.handlePanelVisibilityChange(r,this.lastRenderedPanelIds);this.lastRenderedPanelIds=r};
_.l.handlePanelVisibilityChange=function(r,f){r=r===void 0?new Set:r;f=f===void 0?new Set:f;if(this.data)for(var I=_.E(this.data),C=I.next();!C.done;C=I.next()){C=C.value;var Y=void 0,V=void 0,S=(Y=C)==null?void 0:(V=Y.engagementPanelSectionListRenderer)==null?void 0:V.targetId;if(S&&(Y=f.has(S),V=r.has(S),S=void 0,!Y&&V?(V=Y=void 0,S=(Y=C)==null?void 0:(V=Y.engagementPanelSectionListRenderer)==null?void 0:V.onShowCommands):Y&&!V&&(V=Y=void 0,S=(Y=C)==null?void 0:(V=Y.engagementPanelSectionListRenderer)==
null?void 0:V.onHideCommands),S))for(C=_.E(S),S=C.next();!S.done;S=C.next())this.ytComponentBehavior.resolveCommand(S.value)}};
bJ.prototype.onRendererstamperFinished=bJ.prototype.onRendererstamperFinished;bJ.prototype.dataChanged=bJ.prototype.dataChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],bJ.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],bJ.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],bJ.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],bJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],bJ.prototype,"lastRenderedPanelIds",void 0);_.A([_.K(),_.B("design:type",Number)],bJ.prototype,"hideDelayMs",void 0);_.A([_.K(),_.B("design:type",Array)],bJ.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Array)],bJ.prototype,"visiblePanels",void 0);_.A([_.K(),_.B("design:type",Boolean)],bJ.prototype,"isWatchWhilePanel",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bJ.prototype,"dataChanged",null);_.A([_.kO("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bJ.prototype,"onRendererstamperFinished",null);bJ=_.A([_.U({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],bJ);
_.Q(bJ,"ytd-watch-engagement-panels",function(){if(EdU!==void 0)return EdU;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return EdU=r},{mode:1});var SY7;var p1=function(){return _.y.apply(this,arguments)||this};
_.t(p1,_.y);p1.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.KK(_.e(this.hostElement).querySelector("#text"),_.oCC(_.Z8U,this.data.companionLegalText))};
p1.prototype.computeAutoScrollEnabled=function(r,f){return r&&!f};
p1.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
p1.prototype.onToggleTap=function(){this.expanded=!this.expanded};
p1.prototype.expandedChanged=p1.prototype.expandedChanged;p1.prototype.dataChanged=p1.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.xf6),_.B("design:type",Object)],p1.prototype,"ytdAutoScrollBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],p1.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],p1.prototype,"expanded",void 0);
_.A([_.K({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.B("design:type",Boolean)],p1.prototype,"autoScrollEnabled",void 0);_.A([_.K(),_.B("design:type",String)],p1.prototype,"expanderIcon",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p1.prototype,"dataChanged",null);
_.A([_.Bt("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p1.prototype,"expandedChanged",null);p1=_.A([_.U({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],p1);
_.Q(p1,"ytd-companion-legal-text-renderer",function(){if(SY7!==void 0)return SY7;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return SY7=r},{mode:1});var xY6;var n1=function(){var r=_.y.apply(this,arguments)||this;r.buttonUpdate=_.N("web_modern_buttons");r.kevlarWatchGrid=_.N("kevlar_watch_grid");r.centerAlignDescription=_.N("action_companion_center_align_description");r.truncateDomain=_.N("action_companion_truncate_domain");return r};
_.t(n1,_.y);_.l=n1.prototype;_.l.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.l.getOnLayoutVisibleCallback=function(){var r=_.jH("yt.www.ads.eventcache.getLastCompanionData");return r?(r=r())&&r.onLayoutVisibleCallback:null};
_.l.getLayoutId=function(){var r=_.jH("yt.www.ads.eventcache.getLastCompanionData");return r?(r=r())&&r.layoutId:null};
_.l.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",n1.JSC$20110_DEFAULT_AD_BADGE_RENDERER);var r=this.getOnLayoutVisibleCallback();r&&r()}};
_.l.getButtonRenderer=function(r){return r.actionButton&&_.F(r.actionButton,_.Ll)?(delete _.F(r.actionButton,_.Ll).navigationEndpoint,_.F(r.actionButton,_.Ll)):{}};
_.l.onClick=function(r){var f=this;if((!_.N("web_modern_buttons")||!_.iB(_.JN(r),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){r=_.sk();var I=this.getLayoutId();r&&I&&_.N("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?r.getPlayerPromise().then(function(C){(new _.xh(C)).executeCommand(f.data.navigationEndpoint,I)}):_.N("kevlar_companion_resolve_command_killswitch")?_.kA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.Bj(this.hostElement,"yt-companion-ad-clicked",["action-companion",I])}};
_.OC.Object.defineProperties(n1.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return((r=this.data)==null?0:(f=r.detailsLine)==null?0:(I=f.adRating)==null?0:I.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 r,f,I,C;return((r=this.data)==null?0:(f=r.detailsLine)==null?0:(I=f.adRating)==null?0:(C=I.ratingIcon)==null?0:C.iconType)?_.kN(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var r,f,I,C;return((r=this.data)==null?0:(f=r.detailsLine)==null?0:(I=f.texts)==null?0:(C=I[0])==null?0:C.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 r,f;return((r=this.data)==null?0:(f=r.description)==null?0:f.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var r=_.jH("yt.www.ads.eventcache.getLastCompanionData");return r?(r=r())&&r.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var r=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return r?r.indexOf("/default_banner")!==-1:!0}}});
n1.prototype.onClick=n1.prototype.onClick;n1.prototype.dataChanged=n1.prototype.dataChanged;n1.JSC$20110_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.VR("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],n1.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],n1.prototype,"rendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],n1.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],n1.prototype,"buttonUpdate",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],n1.prototype,"kevlarWatchGrid",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],n1.prototype,"centerAlignDescription",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],n1.prototype,"truncateDomain",void 0);
_.A([_.K({computed:"computeButtonOverride(buttonUpdate)"}),_.B("design:type",Object)],n1.prototype,"buttonOverride",void 0);_.A([_.R("data.detailsLine.adRating.ratingText"),_.B("design:type",Object),_.B("design:paramtypes",[])],n1.prototype,"getRating",null);_.A([_.R("getRating"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],n1.prototype,"computeRatingHidden",null);
_.A([_.R("data.detailsLine.adRating.ratingIcon.iconType"),_.B("design:type",Object),_.B("design:paramtypes",[])],n1.prototype,"iconType",null);_.A([_.R("data.detailsLine.texts.0.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],n1.prototype,"getDetailsLine",null);_.A([_.R("getDetailsLine"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],n1.prototype,"computeDetailsLineHidden",null);
_.A([_.R("data.description.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],n1.prototype,"getDescriptionText",null);_.A([_.R("getDescriptionText"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],n1.prototype,"computeDescriptionTextHidden",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],n1.prototype,"interactionLoggingClientData",null);
_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],n1.prototype,"hideBanner",null);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],n1.prototype,"dataChanged",null);_.A([_.kO("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],n1.prototype,"onClick",null);n1=_.A([_.U({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],n1);
_.Q(n1,"ytd-action-companion-ad-renderer",function(){if(xY6!==void 0)return xY6;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return xY6=r},{mode:_.QQ("kevlar_poly_si_batch_j067")?1:2});var hzV;var wQs;var d3=function(){var r=_.y.apply(this,arguments)||this;r.buttonUpdate=_.N("web_modern_buttons");r.hideLegacyBanner=_.N("enable_dsa_one_click_ata_translators_infeed_elements");r.adInfoButtonStyle="mono";r.adInfoButtonType="text";r.noDotAdBadge=!0;return r};
_.t(d3,_.y);_.l=d3.prototype;_.l.getOnLayoutVisibleCallback=function(){var r=_.jH("yt.www.ads.eventcache.getLastCompanionData");return r?(r=r())&&r.onLayoutVisibleCallback:null};
_.l.getLayoutId=function(){var r=_.jH("yt.www.ads.eventcache.getLastCompanionData");return r?(r=r())&&r.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 r=this.data.image.thumbnail.thumbnails[0];this.imageSrc=r.url?_.gn(r.url):void 0;this.imageWidth=r.width||0;this.imageHeight=r.height||0}this.data.clickthroughEndpoint&&_.F(this.data.clickthroughEndpoint,_.HR)&&(r=_.F(this.data.clickthroughEndpoint,_.HR).url,_.N("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
r||"":r?(r=_.gn(r),this.clickThroughUrl=_.nK(r)):this.clickThroughUrl=void 0);(r=this.getOnLayoutVisibleCallback())&&r()}};
_.l.onClick=function(r){_.iB(_.JN(r),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(r)};
_.l.handleClick=function(){var r=this;this.data&&this.data.clickthroughEndpoint&&(_.kA(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(f){r.macroReplacementBehavior.sendServiceRequestAction([f])}),_.Bj(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.l.onLoad=function(){_.qy(this.hostElement,"yt-refit-popups-action")};
_.OC.Object.defineProperties(d3.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var r=_.jH("yt.www.ads.eventcache.getLastCompanionData");return r?(r=r())&&r.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var r=_.jH("yt.www.ads.eventcache.getLastCompanionData");return r?(r=r())&&r.interactionLoggingClientData:null}}});
d3.prototype.onLoad=d3.prototype.onLoad;d3.prototype.onClick=d3.prototype.onClick;d3.prototype.dataChanged=d3.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],d3.prototype,"rendererBehavior",void 0);_.A([_.J(vz2.YtMacroReplacementBehavior),_.B("design:type",Object)],d3.prototype,"macroReplacementBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],d3.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],d3.prototype,"buttonUpdate",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],d3.prototype,"hideLegacyBanner",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],d3.prototype,"adInfoButtonStyle",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],d3.prototype,"adInfoButtonType",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],d3.prototype,"macros",null);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],d3.prototype,"interactionLoggingClientData",null);_.A([_.K(),_.B("design:type",String)],d3.prototype,"clickThroughUrl",void 0);_.A([_.K(),_.B("design:type",_.wn)],d3.prototype,"imageSrc",void 0);_.A([_.K(),_.B("design:type",Number)],d3.prototype,"imageWidth",void 0);_.A([_.K(),_.B("design:type",Number)],d3.prototype,"imageHeight",void 0);_.A([_.K(),_.B("design:type",Object)],d3.prototype,"noDotAdBadge",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],d3.prototype,"dataChanged",null);_.A([_.kO("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],d3.prototype,"onClick",null);_.A([_.kO("load"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],d3.prototype,"onLoad",null);d3=_.A([_.U({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],d3);
_.Q(d3,"ytd-image-companion-renderer",function(){if(wQs!==void 0)return wQs;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return wQs=r},{mode:_.QQ("kevlar_poly_si_batch_j067")?1:2});var buV;var zR=function(){return _.y.apply(this,arguments)||this};
_.t(zR,_.y);_.l=zR.prototype;_.l.dataChanged=function(){this.set("data.adBadge",zR.JSC$20119_DEFAULT_AD_BADGE_RENDERER);if(this.data){var r=this.getOnLayoutVisibleCallback();r&&r()}};
_.l.getOnLayoutVisibleCallback=function(){var r=_.jH("yt.www.ads.eventcache.getLastCompanionData");return r?(r=r())&&r.onLayoutVisibleCallback:null};
_.l.getLayoutId=function(){var r=_.jH("yt.www.ads.eventcache.getLastCompanionData");return r?(r=r())&&r.layoutId:null};
_.l.onCompanionClicked=function(r){this.data&&(r.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.Bj(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.l.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var r=_.sk(),f=this.getLayoutId(),I=this.data.clickToAdvSiteEndpoint;r&&f&&_.N("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?r.getPlayerPromise().then(function(C){(new _.xh(C)).executeCommand(I,f)}):_.kA(this.hostElement,"yt-navigate",{endpoint:I})}};
_.l.sendTrackingPings=function(r){if(r&&r.length!==0&&r[0].loggingUrls&&(r=r[0].loggingUrls.map(this.getBaseUrl)))for(var f=0;f<r.length;f++)_.jM(r[f])};
_.l.getBaseUrl=function(r){return r.baseUrl||""};
_.OC.Object.defineProperties(zR.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var r=_.jH("yt.www.ads.eventcache.getLastCompanionData");return r?(r=r())&&r.interactionLoggingClientData:null}}});
zR.prototype.onCompanionClicked=zR.prototype.onCompanionClicked;zR.prototype.dataChanged=zR.prototype.dataChanged;zR.JSC$20119_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.VR("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],zR.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],zR.prototype,"data",void 0);_.A([_.uA("#title"),_.B("design:type",HTMLElement)],zR.prototype,"shopTitle",void 0);
_.A([_.YN("data.impressionEndpoints"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zR.prototype,"dataChanged",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],zR.prototype,"interactionLoggingClientData",null);_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],zR.prototype,"onCompanionClicked",null);
zR=_.A([_.U({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],zR);
_.Q(zR,"ytd-shopping-companion-renderer",function(){if(buV!==void 0)return buV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return buV=r},{mode:1});_.Kv(_.Hc(function(r){var f=r.data;var I=_.yy();_.oK(I,function(){return f().interaction},SLV);
_.ZW(I,{visibilityCallback:function(C){var Y,V=(Y=f().interaction)==null?void 0:Y.onFirstVisible;C&&V&&_.F2(V)},
showOption:_.Kc});_.Nk(function(){var C,Y;Y=(Y=_.jH("yt.www.ads.eventcache.getLastCompanionData"))?(Y=Y())&&Y.onLayoutVisibleCallback:null;(C=Y)==null||C()});
r=_.IC(function(){_.qy(I.value,"yt-refit-popups-action")});
return _.p("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":r,el:I,"aria-label":function(){var C,Y;return(C=f().interaction)==null?void 0:(Y=C.accessibility)==null?void 0:Y.label}},_.p("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.p(_.X1,{data:function(){return f().adImage}},{adImageViewModel:function(C){return _.p(_.DM,{data:C.data,
targetHeight:80,customCommandResolver:SLV})}})),_.p("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.p("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.p(_.X1,{data:function(){return f().adBadge}},{adBadgeViewModel:function(C){return _.p(_.Qd,{data:C.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.p("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.p(_.X1,{data:function(){return f().menu}},{buttonViewModel:_.LF}))))},"Mi"),"banner-image-layout-view-model",{props:{data:_.jv}});_.Kv(_.Hc(function(r){var f=r.data;r=_.yy();_.oK(r,function(){return f().interaction},xnV);
_.ZW(r,{visibilityCallback:function(I){var C,Y=(C=f().interaction)==null?void 0:C.onFirstVisible;I&&Y&&_.F2(Y)},
showOption:_.Kc});_.Nk(function(){var I,C;C=(C=_.jH("yt.www.ads.eventcache.getLastCompanionData"))?(C=C())&&C.onLayoutVisibleCallback:null;(I=C)==null||I()});
return _.p("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:r},_.p("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.p(_.X1,{data:function(){return f().adImage}},{adImageViewModel:function(I){return _.p(_.DM,{data:I.data,
targetHeight:80,customCommandResolver:xnV})}})),_.p("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.p("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.p(_.X1,{data:function(){return f().adAvatarLockup}},{adAvatarLockupViewModel:function(I){return _.p(YYs,{data:I.data,
customCommandResolver:xnV})}})),_.p(_.X1,{data:function(){return f().adButton}},{adButtonViewModel:function(I){return _.p(_.Uq,{data:I.data,
customCommandResolver:xnV})}}),_.p("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.p(_.X1,{data:function(){return f().menu}},{buttonViewModel:_.LF}))))},"Ni"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.jv}});var pQV={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"},M9=function(){var r=_.y.apply(this,arguments)||this;r.updateCompanionDataJobId=0;r.contentVideoId=null;r.player=null;r.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return r};
_.t(M9,_.y);_.l=M9.prototype;_.l.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:pQV}}};
_.l.attached=function(){var r=this,f=_.sk();f&&f.getPlayerPromise().then(function(I){r.getCachedDataAndListen(I)})};
_.l.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.l.updateRendererStamper=function(){var r={};if(this.data)for(var f in pQV)if(this.data[f]){r[f]=this.data[f];break}if(this.oneofRenderer!=void 0||Object.keys(r).length)this.oneofRenderer=r};
_.l.getCachedDataAndListen=function(r){var f=this.retrieveCachedCompanionData();f&&Object.keys(f).length&&this.receiveCompanionData(f);this.ytPlayerListenerBehavior.listenToPlayerEvent(r,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=r};
_.l.retrieveCachedCompanionData=function(){return _.Yq.yt&&_.Yq.yt.www&&_.Yq.yt.www.ads&&_.Yq.yt.www.ads.eventcache&&_.Yq.yt.www.ads.eventcache.getLastCompanionData?_.Yq.yt.www.ads.eventcache.getLastCompanionData():null};
_.l.receiveCompanionData=function(r){r&&Object.keys(r).length?(this.contentVideoId=r.contentVideoId,this.setCompanionData(r)):this.setCompanionData(r)};
_.l.setCompanionData=function(r){this.cancelPendingCompanionAdJobs();if(r){this.updateCompanionDataJobId=0;for(var f in pQV)pQV.hasOwnProperty(f)&&(this.data[f]=void 0);r.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",r.shoppingCompanionCarouselRenderer):r.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",r.imageCompanionAdRenderer):r.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",r.actionCompanionAdRenderer),_.qy(this.hostElement,
"yt-hide-unlimited-offer-module"),_.qy(this.hostElement,"yt-hide-tvfilm-offer-module")):r.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",r.bannerImageLayoutViewModel):r.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",r.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.l.dataChanged=function(){var r=this,f=_.sk();f?f.getPlayerPromise().then(function(I){r.contentVideoId&&I.getVideoUrl().includes("v="+r.contentVideoId)||(r.cancelPendingCompanionAdJobs(),r.updateRendererStamper())}):_.Hw(Error("gm"))};
_.l.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.F_.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.l.handleCompanionAdClicked=function(r,f){this.player.onAdUxClicked(r,f);this.player.pauseVideo()};
M9.prototype.dataChanged=M9.prototype.dataChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],M9.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],M9.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],M9.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],M9.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.iQ.YtPlayerListenerBehavior),_.B("design:type",_.RN)],M9.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],M9.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],M9.prototype,"oneofRenderer",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],M9.prototype,"dataChanged",null);M9=_.A([_.U({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],M9);
_.Q(M9,"ytd-companion-slot-renderer",function(){if(hzV!==void 0)return hzV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return hzV=r},{mode:_.QQ("kevlar_poly_si_batch_j067")?
1:2});var nd1;var g3=function(){return _.y.apply(this,arguments)||this};
_.t(g3,_.y);g3.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
g3.prototype.dataChanged=g3.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],g3.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],g3.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],g3.prototype,"companionSlotData",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],g3.prototype,"dataChanged",null);
g3=_.A([_.U({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],g3);
_.Q(g3,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(nd1!==void 0)return nd1;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return nd1=r},{mode:1});var dY1;var aI=function(){var r=_.y.apply(this,arguments)||this;r.skinnyMode=!1;r.COMPACT_EVENT_COUNT=4;r.onShelfToggleButtonTap=function(){r.logTap(r.data);r.showingMore=!r.showingMore};
r.onShelfToggleButtonFocus=function(){r.showingMore||(r.logTap(r.data),r.showingMore=!0,_.UC(r,function(){var f=r.COMPACT_EVENT_COUNT-1,I;(I=_.e(r.hostElement).querySelector("#event-"+f))==null||I.focus()}))};
return r};
_.t(aI,_.y);_.l=aI.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",_.GF(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.GF(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.GF(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.GF(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.GF(this.infoTooltip,this.infoTooltip.hide))};
_.l.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.GF(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.GF(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.GF(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.GF(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.GF(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 r;this.showingMoreChanged((r=this.showingMore)!=null?r:!1)};
_.l.showingMoreChanged=function(r){var f=this.get("data.events")||[];this.set("restEvents",f.slice(1,r?f.length:this.COMPACT_EVENT_COUNT).map(function(I){return I.ticketEventRenderer}));
f.slice(0,r?f.length:this.COMPACT_EVENT_COUNT).forEach(function(I){var C=_.t1();I=I.ticketEventRenderer.trackingParams;_.Pj()&&C&&I&&(I=_.VH(I),C&&_.JZ(C,I))});
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(r){return r.subtitle1+", "+r.subtitle2};
_.l.logTap=function(r){_.Pj()&&this.ytRendererBehavior.logExplicitClick(r)};
_.l.isKeyboardAction=function(r){return this.get("detail.x",r)===0&&this.get("detail.y",r)===0};
_.l.onFirstEventTap=function(r){r.target&&this.handleTap(r.target,this.firstEvent,this.isKeyboardAction(r))};
_.l.onTicketLinkTap=function(r){r.target&&this.handleTap(r.target,r.model.item,this.isKeyboardAction(r))};
_.l.handleTap=function(r,f,I){if(f.buttonCommand)if(f.hasMultipleOffers)Object.assign(_.F(f.buttonCommand,_.Nh),{properties:{source:I?"keyboard":"tap"}}),this.logTap(f),this.popupPositionTarget=r,_.rX(this.hostElement,[f.buttonCommand],this.hostElement);else{var C;if((C=_.F(f.buttonCommand,_.HR))==null?0:C.url)this.logTap(f),_.eF(window,_.F(f.buttonCommand,_.HR).url)}};
aI.prototype.onShowingMoreChanged=aI.prototype.onShowingMoreChanged;aI.prototype.dataChanged=aI.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],aI.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],aI.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],aI.prototype,"firstEvent",void 0);_.A([_.K(),_.B("design:type",Object)],aI.prototype,"restEvents",void 0);_.A([_.K(),_.B("design:type",String)],aI.prototype,"imageUrl",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],aI.prototype,"showingMore",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],aI.prototype,"canShowMore",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],aI.prototype,"skinnyMode",void 0);_.A([_.K(),_.B("design:type",HTMLElement)],aI.prototype,"popupPositionTarget",void 0);_.A([_.uA("#banner-info-tooltip"),_.B("design:type",Object)],aI.prototype,"infoTooltip",void 0);
_.A([_.uA("#info-container"),_.B("design:type",HTMLElement)],aI.prototype,"infoContainer",void 0);_.A([_.uA("#shelf-toggler"),_.B("design:type",HTMLElement)],aI.prototype,"shelfToggleButton",void 0);_.A([_.uA("#separator"),_.B("design:type",HTMLDivElement)],aI.prototype,"separator",void 0);_.A([_.K(),_.B("design:type",String)],aI.prototype,"shelfTogglerLabelText",void 0);_.A([_.K(),_.B("design:type",String)],aI.prototype,"shelfTogglerIcon",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aI.prototype,"dataChanged",null);_.A([_.YN("showingMore"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aI.prototype,"onShowingMoreChanged",null);aI=_.A([_.U({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],aI);
_.Q(aI,"ytd-ticket-shelf-renderer",function(){if(dY1!==void 0)return dY1;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return dY1=r},{mode:1});var zzU;var Mf6;var Xt=function(){return _.y.apply(this,arguments)||this};
_.t(Xt,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Xt.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Xt.prototype,"data",void 0);Xt=_.A([_.U({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Xt);
_.Q(Xt,"ytd-comments-entry-point-message-renderer",function(){if(Mf6!==void 0)return Mf6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Mf6=r},{mode:1});var gdq;var N9=function(){return _.y.apply(this,arguments)||this};
_.t(N9,_.y);_.OC.Object.defineProperties(N9.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.teaserAvatar)}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],N9.prototype,"data",void 0);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],N9.prototype,"hasAvatar",null);N9=_.A([_.U({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],N9);
_.Q(N9,"ytd-comments-entry-point-teaser-renderer",function(){if(gdq!==void 0)return gdq;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return gdq=r},{mode:1});var a7q;var $W=function(){return _.y.apply(this,arguments)||this};
_.t($W,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],$W.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],$W.prototype,"data",void 0);$W=_.A([_.U({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],$W);
_.Q($W,"ytd-comments-simplebox-renderer",function(){if(a7q!==void 0)return a7q;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return a7q=r},{mode:1});var Ft=function(){var r=_.y.apply(this,arguments)||this;r.fullHeight=!_.N("comment_teaser_full_height_kill_switch")&&_.N("kevlar_watch_grid");return r};
_.t(Ft,_.y);Ft.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"}}}};
Ft.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Ft.prototype.onTap=function(){var r=this.tapCommand;r&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(r))};
Ft.prototype.onKeyUp=function(r){if(r.keyCode===13)this.onTap()};
_.OC.Object.defineProperties(Ft.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.data)==null?0:r.onTap)return this.data.onTap;var f,I;if(((f=this.data)==null?0:f.teaserContent)||((I=this.data)==null?0:I.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)!=null&&r.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
Ft.prototype.onKeyUp=Ft.prototype.onKeyUp;Ft.prototype.onTap=Ft.prototype.onTap;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Ft.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ft.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Ft.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Ft.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Ft.prototype,"fullHeight",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ft.prototype,"tapCommand",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ft.prototype,"simpleboxPlaceholder",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ft.prototype,"hasSimpleboxPlaceholder",null);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ft.prototype,"simpleboxAvatar",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ft.prototype,"teaserContent",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ft.prototype,"hasTeaserContent",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ft.prototype,"teaserAvatar",null);
_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ft.prototype,"hasTeaserAvatar",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ft.prototype,"messageText",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ft.prototype,"contentRenderer",null);_.A([_.R("data"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ft.prototype,"hasContents",null);
_.A([_.R("data"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ft.prototype,"hasContentRenderer",null);_.A([_.kO("click"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ft.prototype,"onTap",null);_.A([_.kO("keypress"),_.B("design:type",Function),_.B("design:paramtypes",[_.bl]),_.B("design:returntype")],Ft.prototype,"onKeyUp",null);Ft=_.A([_.U({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Ft);
_.Q(Ft,"ytd-comments-entry-point-header-renderer",function(){if(zzU!==void 0)return zzU;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return zzU=r},{mode:1});var XQ2;_.Z5(_.fQ,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var N$7=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),$YV={numberText:"",heightPx:2*N$7,shouldAnimate:!1},PN=function(){var r=_.y.apply(this,arguments)||this;r.usingAnimatedComponents=!0;r.wasDetailed=!1;r.JSC$20156_browserSupportsAnimation=_.N("web_supports_animations_api");r.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};r.detailed=!1;r.shouldAnimate=!1;r.viewCountProps=$YV;r.dateTextProps=
$YV;r.metadataBadgesInDescription=_.N("web_metadata_badges_in_description");return r};
_.t(PN,_.y);_.l=PN.prototype;_.l.resetAnimationState=function(){this.shouldAnimate=!1};
_.l.updateDynamicMetadata=function(){if(this.JSC$20156_browserSupportsAnimation){if(!this.detailed){var r,f,I,C;var Y=(r=this.videoPrimaryInfoRenderer)==null?void 0:(f=r.viewCount)==null?void 0:(I=f.videoViewCountRenderer)==null?void 0:(C=I.extraShortViewCount)==null?void 0:C.simpleText;var V,S,h,w;var n=(V=this.videoPrimaryInfoRenderer)==null?void 0:(S=V.viewCount)==null?void 0:(h=S.videoViewCountRenderer)==null?void 0:(w=h.shortViewCount)==null?void 0:w.simpleText}if(!n){var d,z,g,X;Y=(d=this.videoPrimaryInfoRenderer)==
null?void 0:(z=d.viewCount)==null?void 0:(g=z.videoViewCountRenderer)==null?void 0:(X=g.unlabeledViewCountValue)==null?void 0:X.simpleText;var P,W,m,v;n=(P=this.videoPrimaryInfoRenderer)==null?void 0:(W=P.viewCount)==null?void 0:(m=W.videoViewCountRenderer)==null?void 0:(v=m.viewCount)==null?void 0:v.simpleText}var O,k,Z;r=Number((O=this.videoPrimaryInfoRenderer)==null?void 0:(k=O.viewCount)==null?void 0:(Z=k.videoViewCountRenderer)==null?void 0:Z.originalViewCount);var Cw,rR;O=(Cw=this.videoPrimaryInfoRenderer)==
null?void 0:(rR=Cw.relativeDateText)==null?void 0:rR.simpleText;var EP;Cw=!((EP=this.videoPrimaryInfoRenderer)==null||!EP.relativeDateText);if(Y&&n&&r&&(O||!Cw)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;EP=n.split(new RegExp("("+Y+")"));Y=dn6(EP[0]);var Pu;n={numberText:(Pu=EP[1])!=null?Pu:"",numberValue:r,heightPx:2*N$7,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Wu;Pu=((Wu=EP[2])!=null?Wu:"")+"  ";this.setViewCount(n,Y,
dn6(Pu));if(!this.detailed&&Cw){Y=O.split(/(\d+)/);Wu=dn6(Y[0]);var cu;Pu={numberText:(cu=Y[1])!=null?cu:"",heightPx:2*N$7,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var OP;cu=((OP=Y[2])!=null?OP:"")+"  ";this.setDateText(Pu,Wu,dn6(cu))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.l.setViewCount=function(r,f,I){_.Rr(f)!==_.Rr(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=f);this.viewCountProps.numberText!==(r==null?void 0:r.numberText)&&(this.viewCountProps=r||$YV);_.Rr(I)!==_.Rr(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=I)};
_.l.setDateText=function(r,f,I){_.Rr(f)!==_.Rr(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=f);this.dateTextProps.numberText!==(r==null?void 0:r.numberText)&&(this.dateTextProps=r||$YV);_.Rr(I)!==_.Rr(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=I)};
_.l.onYtUpdateViewershipAction=function(r){this.videoPrimaryInfoRenderer&&(_.F(r,gs6).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.F(r,gs6).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.F(r,gs6).viewCount)))};
_.l.onYtUpdateDateTextAction=function(r){if(this.videoPrimaryInfoRenderer){r=_.F(r,_.zO7).dateText;this.shouldAnimate=!0;var f;((f=this.videoPrimaryInfoRenderer)==null?0:f.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",r):this.set("videoPrimaryInfoRenderer.dateText",r)}};
_.OC.Object.defineProperties(PN.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return njp(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.Rr(njp(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
hideDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Rr(this.viewCountPreNumberText),this.viewCountProps.numberText,_.Rr(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Rr(this.dateTextPreNumberText),this.dateTextProps.numberText,_.Rr(this.dateTextPostNumberText)].join("")}}});
PN.prototype.updateDynamicMetadata=PN.prototype.updateDynamicMetadata;PN.prototype.resetAnimationState=PN.prototype.resetAnimationState;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],PN.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],PN.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],PN.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],PN.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],PN.prototype,"videoPrimaryInfoRenderer",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],PN.prototype,"detailed",void 0);_.A([_.K(),_.B("design:type",Object)],PN.prototype,"shouldAnimate",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],PN.prototype,"viewCountPreNumberText",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],PN.prototype,"viewCountProps",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],PN.prototype,"viewCountPostNumberText",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],PN.prototype,"dateTextPreNumberText",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],PN.prototype,"dateTextProps",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],PN.prototype,"dateTextPostNumberText",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],PN.prototype,"metadataBadgesInDescription",void 0);_.A([_.R("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.B("design:type",Object),_.B("design:paramtypes",[])],PN.prototype,"infoText",null);
_.A([_.R("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.B("design:type",String),_.B("design:paramtypes",[])],PN.prototype,"descriptionInfoTooltipText",null);_.A([_.R("detailed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],PN.prototype,"hideDescriptionInfoTooltip",null);
_.A([_.R("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.B("design:type",String),_.B("design:paramtypes",[])],PN.prototype,"animatedViewCountAccessibilityLabel",null);_.A([_.R("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.B("design:type",String),_.B("design:paramtypes",[])],PN.prototype,"animatedDateTextAccessibilityLabel",null);
_.A([_.Bt("videoPrimaryInfoRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PN.prototype,"resetAnimationState",null);_.A([_.Bt("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PN.prototype,"updateDynamicMetadata",null);PN=_.A([_.U({disableElementRegistration:!0,is:"ytd-watch-info-text"})],PN);
_.Q(PN,"ytd-watch-info-text",function(){if(XQ2!==void 0)return XQ2;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number id="view-count-number" force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<tp-yt-paper-tooltip hidden="[[hideDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return XQ2=r},{mode:1});var Fr1;var Pv1=_.Hc(function(r){var f=r.data;var I=r.setTapCommand;_.az(function(){var C=_.aB(f().onTap);I(C)});
return _.p("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.p(_.X1,{data:function(){return f().avatar}},{avatarViewModel:_.$U}),_.p("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.p("span",null,function(){return f().simpleboxText})))},"Oi");var tf6=_.Hc(function(r){return _.p("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.p(_.M,{cond:function(){return _.F(r.data().avatar,_.s0)},
then:function(f){return _.p(_.$U,{data:f,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.p("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.p(_.wW,{text:function(){return r.data().teaserText}})))},"Pi");var T$6=_.Hc(function(r){var f=r.data;var I=r.setTapCommand;_.az(function(){var C=_.aB(f().onTap);I(C)});
return _.p("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.p(_.X1,{data:function(){return f().teasers}},{commentsEntryPointTeaserViewModel:tf6}))},"Qi");var cfY=_.Hc(function(r){var f=r.data;var I=r.setTapCommand;_.az(function(){var C=_.aB(f().onTap);I(C)});
return _.p("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.p(_.wW,{text:function(){return f().messageText}}))},"Ri");var Wr3=_.Hc(function(r){var f=r.data;var I=r.setTapCommand;var C=r.isDisabled;_.az(function(){var Y=(C==null?0:C())?void 0:_.aB(f().onTap);I(Y)});
return _.p("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.p(_.V2,{icon:function(){return f().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.p(_.M,{cond:function(){return f().image},
then:function(Y){return _.p(_.J3,{data:Y,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.p(_.wW,{text:function(){return f().text},
className:function(){return f().image||f().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.p(_.X1,{data:function(){return f().button}},{buttonViewModel:function(Y){return _.p(_.LF,{data:Y.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:C==null?void 0:C()}}})}}))},"Si");var Lrp=_.Hc(function(r){var f=r.data;var I=r.itemIndex;var C=r.selectedIndex;var Y=r.indexUpdatedCallback;var V=r.observer;r=r.title;var S=_.yy(),h=function(z){I()===C()&&Y(z)},w=_.XA(Au6),n=_.XA(Zk6),d=function(){var z,g,X;
return((z=f())==null?void 0:z.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!w()||((g=f())==null?void 0:g.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&n().includes("PAposts_by_host")||((X=f())==null?void 0:X.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&n().includes("PAyouchat")};
_.$E(function(){V&&V().observe(S.value)});
return _.p("yt-carousel-item-view-model",{el:S,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":r},_.p(_.X1,{data:function(){var z,g;return(g=(z=_.F(f().carouselItem,yS3))==null?void 0:z.textCarousel)!=null?g:f().carouselItem}},{textCarouselItemViewModel:function(z){return _.p(Wr3,{data:z.data,
setTapCommand:h,isDisabled:d})},
commentTeaserCarouselItemViewModel:function(z){return _.p(T$6,{data:z.data,setTapCommand:h})},
commentInputBoxCarouselItemViewModel:function(z){return _.p(Pv1,{data:z.data,setTapCommand:h})},
commentsEntryPointMessageViewModel:function(z){return _.p(cfY,{data:z.data,setTapCommand:h})}}))},"Ti");var mY7=_.Hc(function(r){var f=r.numDots;var I=r.activeIndex;return _.p("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.p(_.pz,{each:function(){return Array.from({length:f()})},
keyBy:"INDEX"},function(C,Y){return _.p("div",{class:function(){var V={};return _.D5("ytCarouselDotsShapeDot",(V.ytCarouselDotsShapeDotActive=Y===I(),V))}})}))},"Ui");var ez7=_.Hc(function(r){var f=r.data;var I=r.handleCarouselNavigation;var C=r.numItems;var Y=r.selectedIndex;var V=function(){return{disabled:Y()===0}},S=function(){return{disabled:Y()===C()-1}};
return _.p("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.p("div",null,_.p("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return f().title}),_.p(_.M,{cond:function(){return f().subtitle},
then:function(h){return _.p("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return f().subtitleAccessibilityText}},h)}})),_.p(_.M,{cond:function(){return C()>1},
then:function(){return _.p("div",{class:"ytCarouselTitleViewModelNavigation"},_.p(mY7,{numDots:C,activeIndex:Y}),_.p(_.M,{cond:function(){return f().previousButton},
then:function(h){return _.p(_.X1,{data:h},{buttonViewModel:function(w){return _.p(_.LF,{data:w.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return I(-1)},
buttonOverrides:V})}})}}),_.p(_.M,{cond:function(){return f().nextButton},
then:function(h){return _.p(_.X1,{data:h},{buttonViewModel:function(w){return _.p(_.LF,{data:w.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return I(1)},
buttonOverrides:S})}})}}))}}))},"Vi");_.Kv(_.Hc(function(r){var f=r.data;var I=_.yy(),C=_.yy(),Y=_.Lz("HTML_DIR")==="rtl",V=!1,S=0,h=0;r=_.E(_.ld(0,void 0,"m0dtIf"));var w=r.next().value,n=r.next().value;r=_.E(_.ld(0,void 0,"fL6I6"));var d=r.next().value,z=r.next().value;r=_.E(_.ld(!1,void 0,"ZPrwNb"));var g=r.next().value,X=r.next().value,P=function(){var EP,Pu,Wu;return(Wu=(EP=f())==null?void 0:(Pu=EP.carouselTitles)==null?void 0:Pu.length)!=null?Wu:0},W=function(){C.value&&C.value.scrollLeft!==S&&n((Y?C.value.scrollLeft<S:C.value.scrollLeft>
S)?Math.min(w()+1,P()-1):Math.max(w()-1,0))},m;
window.IntersectionObserver&&(m=new IntersectionObserver(function(EP){EP=_.E(EP);for(var Pu=EP.next();!Pu.done;Pu=EP.next())if(Pu.value.isIntersecting){if(V){V=!1;break}W()}else n(h)},{threshold:.2}));
_.az(function(){if(C.value){var EP=(Y?-1:1)*(d()/P()+12)*(g()&&m?h:w());typeof C.value.scrollTo==="function"?C.value.scrollTo({left:EP,behavior:"smooth"}):C.value.scrollLeft=EP;S=EP;h=g()&&m?h:w()}});
var v,O=function(EP){v=EP};
_.$E(function(){var EP=function(){var Wu=C.value.offsetWidth*P(),cu=24*(P()-1);z(Wu+cu)};
EP();if(window.ResizeObserver){var Pu=new ResizeObserver(EP);Pu.observe(C.value);_.$L(function(){Pu.disconnect();m&&m.disconnect()})}});
r=_.IC(function(EP){if(_.v8u(_.Ho(EP),I.value,["BUTTON".toString()])||!v)return!1;_.a().resolve(_.Gg).resolveCommand(v,{forceClickLogging:!0});return!1});
var k=function(EP){EP=w()+EP;EP>=0&&EP<P()&&(V=!0,n(EP))},Z=_.IC(function(){X(!0);
return!1}),Cw=_.IC(function(){m||W();
X(!1);return!1}),rR={};
return _.p("yt-video-metadata-carousel-view-model",{class:_.qd("ytVideoMetadataCarouselViewModelHost",(rR.ytVideoMetadataCarouselViewModelShortMode=_.N("mweb_video_metadata_carousel_short_mode"),rR)),el:I,"on:click":r,"on:touchstart":Z,"on:touchend":Cw,hidden:function(){var EP,Pu;return!((EP=f())==null?0:(Pu=EP.carouselItems)==null?0:Pu.length)}},_.p("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.p(_.M,{cond:function(){return f().carouselTitles},
then:function(EP){return _.p(_.X1,{data:function(){return EP()[g()&&m?h:w()]}},{carouselTitleViewModel:function(Pu){return _.p(ez7,{data:Pu.data,
handleCarouselNavigation:k,numItems:P,selectedIndex:w})}})}})),_.p("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:C},_.p("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+d()+"px;"}},_.p(_.M,{cond:function(){return f().carouselItems},
then:function(EP){return _.p(_.pz,{each:EP},function(Pu,Wu){return _.p(_.X1,{data:function(){return Pu}},{carouselItemViewModel:function(cu){return _.p(Lrp,{data:cu.data,
itemIndex:Wu,selectedIndex:w,indexUpdatedCallback:O,observer:m,title:function(){a:{var OP=Wu();var iU,oR=(iU=f())==null?void 0:iU.carouselTitles;if(oR&&(OP=oR[OP])){var vu;OP=(vu=_.F(OP,KH6))==null?void 0:vu.title;break a}OP=void 0}return OP}})}})})}}))))},"Wi"),"yt-video-metadata-carousel-view-model",{props:{data:_.jv}});var Jf6=_.N("web_action_buttons_update_owner_width")?32:12,te=function(){var r=_.y.apply(this,arguments)||this;r.metadataBadgesInDescription=_.N("web_metadata_badges_in_description");r.descriptionCollapsed=!0;r.useFadedScrimDescription=_.N("kevlar_enable_faded_scrim_on_description");r.skinnyMode=!1;r.playlist=!1;r.isDark=document.documentElement.hasAttribute("dark");r.disableVideoOwnerOnTap=_.N("swatchie_video_owner_on_tap_ks");r.swatcherooDelayLoad=_.N("swatcheroo_enable_ghost_cards");r.primaryMenuWidth=
0;r.videoId="";r.titleHeadlineXs=_.N("web_watch_typography_title_headline_xs");r.titleHeadlineS=_.N("web_watch_typography_title_headline_s");r.titleHeadlineM=_.N("web_watch_typography_title_headline_m");r.titleHashtagBlackLinkified=_.N("web_title_hashtag_black_linkified");r.titleHashtagGreyLinkified=_.N("web_title_hashtag_grey_linkified");r.actionButtonsUpdateOwnerWidth=_.N("web_action_buttons_update_owner_width");r.shouldForceIconOnly=!1;r.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};r.isFullscreen=!1;return r};
_.t(te,_.y);_.l=te.prototype;_.l.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.l.updateOwnerAndDescriptionPosition=function(){_.N("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.JE(this.bottomRowElement,this.ownerElement)):(_.JE(this.bottomRowElement,this.descriptionElement),_.JE(this.topRowElement,this.ownerElement)))};
_.l.titleOnTap=function(r){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.iB(_.JN(r)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var f;((f=window.getSelection())==null?0:f.toString().length)||this.handleExpandDescriptionCommands()}};
_.l.videoOwnerOnTap=function(r){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.iB(_.JN(r)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.l.detached=function(){var r=this,f;return _.x(function(I){(f=r.resizeObserver)==null||f.disconnect();_.wO(I)})};
_.l.maybeAttachResizeObserver=function(){var r=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.Gk(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){r.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.l.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var r=this.hostElement.clientWidth,f=Math.max(this.largerItemWrap?400:350,r/2-Jf6);if(_.N("web_action_buttons_update_owner_width")){var I;f=(((I=document.getElementById("owner"))==null?void 0:I.clientWidth)||0)+Jf6}this.actionsOnSeparateLine=this.primaryMenuWidth>r-f?!0:!1}};
_.l.stripAttributedDescription=function(r){return{content:r.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:_.N("web_modern_buttons"),forceIconButton:!_.N("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:_.N("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 r;if((r=this.videoPrimaryInfoRenderer)==null?0:r.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.l.videoSecondaryInfoRendererChanged=function(){var r,f;(f=(r=this.descriptionInlineExpander).collapse)==null||f.call(r);this.descriptionExpandClientVe=_.pQ(110509);this.descriptionCollapseClientVe=_.pQ(110510);r=_.t1();f=_.Pj();r&&f&&(_.N("combine_ve_grafts")?(_.Ia(_.IB(),this.descriptionExpandClientVe,f),_.Ia(_.IB(),this.descriptionCollapseClientVe,f)):_.e_(r,f,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.l.structuredDescriptionContentRendererChanged=function(){_.N("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.l.updateTopLevelIconsOnly=function(){var r=this;_.N("top_level_update_killswitch")||this.menu&&_.F_.addLowPriorityJob(function(){r.menu.topLevelIconsOnly=r.skinnyMode},_.Bw("swathceroo_delay_flexible_menu_update",100))};
_.l.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.N("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(!_.N("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var r,f;(f=(r=this.structuredDescriptionContentRendererElement).resize)==null||f.call(r)}};
_.l.onRenderStamperFinished=function(r){(r==null?void 0:r.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.l.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.l.onYtExpanderLessTapped=function(){var r,f=(r=this.videoSecondaryInfoRenderer)==null?void 0:r.showLessCommand;f&&this.ytComponentBehavior.resolveCommand(f)};
_.l.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.l.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.l.onDescriptionClick=function(r){if(!_.iB(_.JN(r)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var f;((f=window.getSelection())==null?0:f.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.N("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 r=_.t1();r&&this.descriptionCollapseClientVe&&_.im(r,this.descriptionCollapseClientVe)};
_.l.logExpandClick=function(){var r=_.t1();r&&this.descriptionExpandClientVe&&_.im(r,this.descriptionExpandClientVe)};
_.l.collapseDescription=function(){this.descriptionCollapsed=!0};
_.l.scrollToTopOfContainer=function(){_.Bj(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.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.l.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.l.resize=function(){if(this.descriptionInlineExpander){var r,f;(f=(r=this.descriptionInlineExpander).resize)==null||f.call(r)}else _.t7(new _.nf("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var I;(I=this.menu)==null||I.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.N("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.l.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var r,f,I,C,Y=_.N("web_action_buttons_update_owner_width")?(I=(r=_.e(this.menu).querySelector("#button-shape"))==null?void 0:r.clientWidth)!=null?I:0:(C=(f=_.e(this.menu).querySelector("#button"))==null?void 0:f.clientWidth)!=null?C:0,V,S;r=((S=(V=_.e(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:V.clientWidth)!=null?S:0)+8+Y;var h,w;Y=(w=(h=_.e(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:h.children.length)!=null?w:2;r<=8*Y||(this.primaryMenuWidth=r)}};
_.l.onYtUpdateTitleAction=function(r){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.F(r,Mw3).title)};
_.l.onYtUpdateDescriptionAction=function(r){if(r=_.F(r,_.y98)){var f,I=!((f=this.videoSecondaryInfoRenderer)==null||!f.attributedDescription);r.isEmpty||!r.description&&!r.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):r.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",r.attributedDescription):r.description&&(I?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.dF(r.description)):this.set("videoSecondaryInfoRenderer.description",r.description))}};
_.l.onYtDarkModeToggledAction=function(r){this.isDark=r};
_.l.registerPanel=function(){if(!_.N("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var r=_.N("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen,f=_.a().resolve(_.dD);f&&!r&&f.registerPanel("engagement-panel-structured-description",this)}};
_.l.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.l.showPanel=function(r){this.expandDescription();var f=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;f.resize();var I,C=r==null?void 0:(I=r.sectionListEngagementPanelExtras)==null?void 0:I.scrollToItemSectionIdentifier;C?_.F_.addJob(function(){f==null||f.scrollToSection(C)},8):this.scrollToTopOfContainer()};
_.l.isVisible=function(){return!this.descriptionCollapsed};
_.l.getReloadContinuation=function(){};
_.l.hidePanel=function(){};
_.l.updatePanel=function(){};
_.OC.Object.defineProperties(te.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.structuredDescriptionContentRenderer)!=null&&r.items){var f;r=_.E((f=this.structuredDescriptionContentRenderer)==null?void 0:f.items);for(f=r.next();!f.done;f=r.next())if(f=_.F(f.value,_.Qj4))return f}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.videoPrimaryInfoRenderer)==null?0:r.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return!!((r=this.videoSecondaryInfoRenderer)==null?0:(f=r.owner)==null?0:(I=f.videoOwnerRenderer)==null?0:I.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.N("swatchie_sd_new_line_strip_ks")){var r,f;if((r=this.videoSecondaryInfoRenderer)==null?0:(f=r.attributedDescription)==null?0:f.content){var I,C;return(C=this.stripAttributedDescription((I=this.videoSecondaryInfoRenderer)==null?void 0:I.attributedDescription))!=null?C:{runs:[]}}}var Y,V,S,h;return(h=(S=(Y=this.videoSecondaryInfoRenderer)==null?void 0:Y.description)!=null?S:(V=this.videoSecondaryInfoRenderer)==null?
void 0:V.attributedDescription)!=null?h:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var r,f;return(f=(r=this.videoSecondaryInfoRenderer)==null?void 0:r.headerRuns)!=null?f:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.commentsEntryPointHeaderRenderer)==null||!r.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.videoMetadataCarousel)==null||!r.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.Bw("swatchie_desc_lines",3):this.hasTeaserCarousel?_.Bw("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var r,f,I=Object.assign({},(r=this.videoSecondaryInfoRenderer)==null?void 0:(f=r.metadataRowContainer)==null?void 0:f.metadataRowContainerRenderer);if(I&&I.rows&&I.collapsedItemCount!==void 0&&!(I.rows.length<=I.collapsedItemCount))return I.rows=I.rows.slice(I.collapsedItemCount),I.collapsedItemCount=0,I}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var r,f,I=Object.assign({},(r=this.videoSecondaryInfoRenderer)==null?void 0:(f=r.metadataRowContainer)==null?void 0:f.metadataRowContainerRenderer);if(I&&I.rows&&I.collapsedItemCount!==void 0)return I.rows=I.rows.slice(0,I.collapsedItemCount),I.collapsedItemCount=I.rows.length,I}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var r,f;return!!((r=this.structuredDescriptionContentRenderer)==null?0:(f=r.items)==null?0:f.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var r;return(r=this.videoSecondaryInfoRenderer)==null?void 0:r.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return((r=this.videoSecondaryInfoRenderer)==null?0:(f=r.owner)==null?0:(I=f.videoOwnerRenderer)==null?0:I.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var r,f,I,C;return!!((r=this.videoPrimaryInfoRenderer)==null?0:(f=r.videoActions)==null?0:(I=f.menuRenderer)==null?0:(C=I.flexibleItems)==null?0:C.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.WI(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.WI(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var r=this;if(_.N("web_title_hashtag_grey_delinkified")){var f,I=_.X0.unsafeClone((f=this.videoPrimaryInfoRenderer)==null?void 0:f.title);(f=I==null?void 0:I.runs)&&f.forEach(function(C){if(C==null?0:C.navigationEndpoint)C.textColor=4284506208,r.isDark&&(C.textColor=4289374890)});
return I}return(I=this.videoPrimaryInfoRenderer)==null?void 0:I.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.N("web_title_hashtag_black_delinkified")||_.N("web_title_hashtag_grey_delinkified")}}});
te.prototype.resetDescriptionState=te.prototype.resetDescriptionState;te.prototype.registerPanel=te.prototype.registerPanel;te.prototype.onYtExpanderLessTapped=te.prototype.onYtExpanderLessTapped;te.prototype.onYtExpanderMoreTapped=te.prototype.onYtExpanderMoreTapped;te.prototype.onRenderStamperFinished=te.prototype.onRenderStamperFinished;te.prototype.onYtTextInlineExpanderExpandedChanged=te.prototype.onYtTextInlineExpanderExpandedChanged;te.prototype.onYtTextInlineExpanderCollapseClicked=te.prototype.onYtTextInlineExpanderCollapseClicked;
te.prototype.onYtTextInlineExpanderExpandClicked=te.prototype.onYtTextInlineExpanderExpandClicked;te.prototype.moveActionsElement=te.prototype.moveActionsElement;te.prototype.updateShouldForceIconOnly=te.prototype.updateShouldForceIconOnly;te.prototype.updateTopLevelIconsOnly=te.prototype.updateTopLevelIconsOnly;te.prototype.structuredDescriptionContentRendererChanged=te.prototype.structuredDescriptionContentRendererChanged;te.prototype.videoSecondaryInfoRendererChanged=te.prototype.videoSecondaryInfoRendererChanged;
te.prototype.videoPrimaryInfoRendererChanged=te.prototype.videoPrimaryInfoRendererChanged;te.prototype.maybeUpdateActionsOnSeparateLine=te.prototype.maybeUpdateActionsOnSeparateLine;te.prototype.updateOwnerAndDescriptionPosition=te.prototype.updateOwnerAndDescriptionPosition;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],te.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],te.prototype,"ytComponentBehavior",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],te.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],te.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],te.prototype,"ytdReduxBehavior",void 0);_.A([_.uA("#above-the-fold"),_.B("design:type",HTMLElement)],te.prototype,"aboveTheFoldContainer",void 0);_.A([_.uA("#menu ytd-menu-renderer"),_.B("design:type",Object)],te.prototype,"menu",void 0);
_.A([_.uA("#description-inline-expander"),_.B("design:type",Object)],te.prototype,"descriptionInlineExpander",void 0);_.A([_.uA("#faded-structured-description"),_.B("design:type",Object)],te.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.A([_.uA("#structured-description"),_.B("design:type",Object)],te.prototype,"structuredDescriptionContentRendererElement",void 0);_.A([_.uA("#title"),_.B("design:type",HTMLElement)],te.prototype,"titleElement",void 0);
_.A([_.uA("#description"),_.B("design:type",HTMLElement)],te.prototype,"descriptionElement",void 0);_.A([_.uA("#description-interaction"),_.B("design:type",Object)],te.prototype,"descriptionInteraction",void 0);_.A([_.uA("#owner"),_.B("design:type",HTMLElement)],te.prototype,"ownerElement",void 0);_.A([_.uA("#top-row"),_.B("design:type",HTMLElement)],te.prototype,"topRowElement",void 0);_.A([_.uA("#bottom-row"),_.B("design:type",HTMLElement)],te.prototype,"bottomRowElement",void 0);
_.A([_.uA("#actions"),_.B("design:type",HTMLElement)],te.prototype,"actionsElement",void 0);_.A([_.uA("#bottom-actions"),_.B("design:type",HTMLElement)],te.prototype,"bottomActionsElement",void 0);_.A([_.uA("#ytd-watch-info-text"),_.B("design:type",Object)],te.prototype,"watchInfoTextElement",void 0);_.A([_.K(),_.B("design:type",Object)],te.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],te.prototype,"videoPrimaryInfoRenderer",void 0);
_.A([_.K(),_.B("design:type",Object)],te.prototype,"videoSecondaryInfoRenderer",void 0);_.A([_.K(),_.B("design:type",Object)],te.prototype,"commentsEntryPointHeaderRenderer",void 0);_.A([_.K(),_.B("design:type",Object)],te.prototype,"videoMetadataCarousel",void 0);_.A([_.K(),_.B("design:type",Object)],te.prototype,"structuredDescriptionContentRenderer",void 0);_.A([_.K(),_.B("design:type",Object)],te.prototype,"videoSummary",void 0);
_.A([_.K(),_.B("design:type",Object)],te.prototype,"merchShelf",void 0);_.A([_.K(),_.B("design:type",Object)],te.prototype,"infoPanelBelowMetadata",void 0);_.A([_.R("structuredDescriptionContentRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],te.prototype,"productShelf",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"metadataBadgesInDescription",void 0);
_.A([_.R("videoPrimaryInfoRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],te.prototype,"shouldHideBadges",null);_.A([_.R("productShelf","descriptionCollapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],te.prototype,"shouldShowProductShelf",null);_.A([_.K(),_.B("design:type",Boolean)],te.prototype,"isWatchFlexy",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"descriptionCollapsed",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],te.prototype,"useFadedScrimDescription",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"skinnyMode",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("videoSecondaryInfoRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],te.prototype,"largerItemWrap",null);_.A([_.K(),_.B("design:type",Object)],te.prototype,"playlist",void 0);_.A([_.K(),_.B("design:type",Object)],te.prototype,"clarifyBox",void 0);
_.A([_.K(),_.B("design:type",Object)],te.prototype,"playerAds",void 0);_.A([_.K(),_.B("design:type",Boolean)],te.prototype,"isDark",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],te.prototype,"actionsOnSeparateLine",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"disableVideoOwnerOnTap",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"swatcherooDelayLoad",void 0);
_.A([_.K(),_.B("design:type",Boolean)],te.prototype,"suppressTopLevelMetadataRows",void 0);_.A([_.K(),_.B("design:type",Object)],te.prototype,"primaryMenuWidth",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"videoId",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"titleHeadlineXs",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"titleHeadlineS",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"titleHeadlineM",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"titleHashtagBlackLinkified",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"titleHashtagGreyLinkified",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.A([_.K(),_.B("design:type",Object)],te.prototype,"shouldForceIconOnly",void 0);_.A([_.YN("skinnyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"updateOwnerAndDescriptionPosition",null);_.A([_.YN("skinnyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.A([_.R("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.B("design:type",Object),_.B("design:paramtypes",[])],te.prototype,"descriptionText",null);_.A([_.R("videoSecondaryInfoRenderer.headerRuns"),_.B("design:type",Array),_.B("design:paramtypes",[])],te.prototype,"headerRuns",null);_.A([_.K({value:!1}),_.R("commentsEntryPointHeaderRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],te.prototype,"hasTeaser",null);
_.A([_.K({value:!1,reflectToAttribute:!0}),_.R("videoMetadataCarousel"),_.B("design:type",Object),_.B("design:paramtypes",[])],te.prototype,"hasTeaserCarousel",null);_.A([_.K({value:3}),_.R("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.B("design:type",Object),_.B("design:paramtypes",[])],te.prototype,"descriptionMaxLines",null);_.A([_.R("videoSecondaryInfoRenderer.metadataRowContainer"),_.B("design:type",Object),_.B("design:paramtypes",[])],te.prototype,"collapsibleMetadataRows",null);
_.A([_.R("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.B("design:type",Object),_.B("design:paramtypes",[])],te.prototype,"alwaysVisibleMetadataRows",null);_.A([_.R("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],te.prototype,"hasInlineStructuredDescription",null);
_.A([_.R("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],te.prototype,"showInlineStructuredDescription",null);_.A([_.R("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],te.prototype,"descriptionExpandCommand",null);
_.A([_.R("videoSecondaryInfoRenderer.owner"),_.B("design:type",Object),_.B("design:paramtypes",[])],te.prototype,"videoOwnerCommand",null);_.A([_.K({reflectToAttribute:!0}),_.R("videoPrimaryInfoRenderer.videoActions"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],te.prototype,"flexMenuEnabled",null);_.A([_.K({selector:_.Ff,reflectToAttribute:!0}),_.B("design:type",Object)],te.prototype,"isFullscreen",void 0);
_.A([_.R("descriptionText","useFadedScrimDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],te.prototype,"showAttributedStringDescription",null);_.A([_.R("descriptionText","useFadedScrimDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],te.prototype,"showFormattedStringDescription",null);
_.A([_.R("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],te.prototype,"showFadedStructuredDescription",null);_.A([_.YN("videoPrimaryInfoRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"videoPrimaryInfoRendererChanged",null);_.A([_.R("videoPrimaryInfoRenderer.title"),_.B("design:type",Object),_.B("design:paramtypes",[])],te.prototype,"videoTitle",null);
_.A([_.R("videoPrimaryInfoRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],te.prototype,"noEndpoints",null);_.A([_.YN("videoSecondaryInfoRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"videoSecondaryInfoRendererChanged",null);
_.A([_.Bt("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"structuredDescriptionContentRendererChanged",null);_.A([_.Bt("skinnyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"updateTopLevelIconsOnly",null);
_.A([_.Bt("skinnyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"updateShouldForceIconOnly",null);_.A([_.Bt("skinnyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"moveActionsElement",null);_.A([_.kO("yt-text-inline-expander-expand-clicked"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.A([_.kO("yt-text-inline-expander-collapse-clicked"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.A([_.kO("yt-text-inline-expander-expanded-changed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.A([_.kO("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],te.prototype,"onRenderStamperFinished",null);_.A([_.kO("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"onYtExpanderMoreTapped",null);_.A([_.kO("yt-expander-less-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"onYtExpanderLessTapped",null);
_.A([_.Bt("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"registerPanel",null);_.A([_.Bt("videoSecondaryInfoRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],te.prototype,"resetDescriptionState",null);te=_.A([_.U({disableElementRegistration:!0,is:"ytd-watch-metadata"})],te);
_.Q(te,"ytd-watch-metadata",function(){if(Fr1!==void 0)return Fr1;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Fr1=r},{mode:2});_.UY3=function(r){_.Mu.call(this);this.JSC$20179_watchApi=r;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;jA6(this);Hu6(this);iu6(this);Rz7(this);vd6(this);Kr6(this);yfq(this)};
_.t(_.UY3,_.Mu);var iu6=function(r){var f=function(){_.N("kevlar_is_pupi_enabled")||TR(r)};
r.JSC$20179_watchApi.getRoot().addEventListener("yt-player-updated",f);r.addOnDisposeCallback(function(){r.JSC$20179_watchApi.getRoot().removeEventListener("yt-player-updated",f)})},vd6=function(r){if(_.N("kevlar_endscreen_auto_theater_mode")){var f=r.JSC$20179_watchApi.subscribeToActiveChanged(function(){sAp(r)},!1);
r.addOnDisposeCallback(f)}},jA6=function(r){var f,I,C,Y,V;
_.x(function(S){if(S.nextAddress==1)return _.b(S,r.JSC$20179_watchApi.playerApi,2);f=S.yieldResult;I=function(h){h=!!h;cN(r)&&(h=h?2:1,_.Qk.getInstance().setState(h,!0,!1))};
C=function(h){h&&_.QLU(_.K2().getState())&&(_.Bj(r.JSC$20179_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),r.temporaryTheaterMode=!0)};
Y=function(h){_.N("kevlar_player_update_autonav_on_new_data")&&h.type==="newdata"&&(_.N("kevlar_is_pupi_enabled")||TR(r))};
V=function(h){r.onPlayerStateChange(h)};
_.N("kevlar_endscreen_auto_theater_mode")&&f.addEventListener("onAutonavCancelled",C);f.addEventListener("onAutonavChangeRequest",I);f.addEventListener("onVideoDataChange",Y);f.addEventListener("onStateChange",V);r.addOnDisposeCallback(function(){f.removeEventListener("onAutonavChangeRequest",I);f.removeEventListener("onVideoDataChange",Y);f.removeEventListener("onStateChange",V);_.N("kevlar_endscreen_auto_theater_mode")&&f.removeEventListener("onAutonavCancelled",C)});
_.wO(S)})},Hu6=function(r){r.JSC$20179_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){r.autonavCancelledBySignal=!0;
_.N("kevlar_is_pupi_enabled")||TR(r)});
r.JSC$20179_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(f,I,C){I&&TR(r,C)});
r.JSC$20179_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){cN(r)&&_.Qk.getInstance().setState(2,!0,!0)});
r.JSC$20179_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){cN(r)&&_.Qk.getInstance().setState(1,!0,!0)});
r.addOnDisposeCallback(function(){r.JSC$20179_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");r.JSC$20179_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");r.JSC$20179_watchApi.unregisterActionHandler("yt-enable-autoplay-command");r.JSC$20179_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},Rz7=function(r){var f=r.JSC$20179_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){yfq(r)}),I=r.JSC$20179_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){Kr6(r)});
r.addOnDisposeCallback(function(){r.JSC$20179_watchApi.unsubscribeByKey(f);r.JSC$20179_watchApi.unsubscribeByKey(I)})},yfq=function(r){r.autonavCancelledBySignal=!1;
_.N("kevlar_is_pupi_enabled")||TR(r)},Kr6=function(r){var f=r.JSC$20179_watchApi.getWatchNextResponse(),I,C;
var Y=(f=(C=_.F(f==null?void 0:(Y=f.playerOverlays)==null?void 0:(I=Y.playerOverlayRenderer)==null?void 0:I.autonavToggle,_.sa_))==null?void 0:C.enabled)?2:1;_.N("kevlar_is_pupi_enabled")?_.Qk.getInstance().setState(Y,!1,!1):TR(r);_.N("web_persist_server_autonav_state_on_client")&&typeof f==="boolean"&&_.eWP(Y===2)},cN=function(r){if(r.autonavCancelledBySignal)return!1;
var f,I,C,Y;return!!((f=r.JSC$20179_watchApi.getWatchNextResponse())==null?0:(I=f.contents)==null?0:(C=I.twoColumnWatchNextResults)==null?0:(Y=C.autoplay)==null?0:Y.autoplay)};
_.UY3.prototype.onPlayerStateChange=function(r){if(r===0){r=!_.Qk.getInstance().isAutoplaySetExplicitly();var f=this.JSC$20179_watchApi.getWatchNextResponse(),I,C,Y,V;f=_.F(f==null?void 0:(I=f.contents)==null?void 0:(C=I.twoColumnWatchNextResults)==null?void 0:(Y=C.autoplay)==null?void 0:(V=Y.autoplay)==null?void 0:V.autoplayExplicitChoiceDialogRenderer,_.MZU);cN(this)&&r&&f&&_.qv.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:f},popupType:"DIALOG"}})}else sAp(this)};
var sAp=function(r){r.temporaryTheaterMode&&(r.temporaryTheaterMode=!1,_.Bj(r.JSC$20179_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},TR=function(r,f){f=f===void 0?!1:f;
var I;_.x(function(C){if(C.nextAddress==1)return _.b(C,r.JSC$20179_watchApi.playerApi,2);I=C.yieldResult;cN(r)?I.setAutonavState(_.Qk.getInstance().getState(),f):I.setAutonavState(1,f);_.wO(C)})};var Ous={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"};_.QAd=function(r){_.Mu.call(this);var f=this;this.JSC$20184_watchApi=r;var I=this.JSC$20184_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){odB(f)});
this.addOnDisposeCallback(function(){f.JSC$20184_watchApi.unsubscribeByKey(I)});
odB(this)};
_.t(_.QAd,_.Mu);var odB=function(r){var f=r.JSC$20184_watchApi.getPlayerResponse(),I=r.JSC$20184_watchApi.getWatchNextResponse();if(!_.jAK(f==null?void 0:f.playabilityStatus,I==null?void 0:I.playerOverlays)){var C;var Y=f==null?void 0:(C=f.playabilityStatus)==null?void 0:C.errorScreen}r.JSC$20184_watchApi.provideRenderingData("ERROR_SCREEN",Y)};var Af6=_.Hc(function(r){var f=r.data;r=_.IC(function(){var I=f().onTap;I&&_.a().resolve(_.Gg).resolveCommand(I)});
return _.p("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost","on:click":r},_.p("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.p(_.wW,{text:function(){return f().title}})),_.p("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.p(_.X1,{data:function(){return f().channelAvatar}},{avatarViewModel:_.$U}),_.p(_.wW,{text:function(){return f().subtitle}})))},"Xi");var Zuq=_.Hc(function(r){return _.p("yt-player-quick-action-buttons",{class:_.qd("ytPlayerQuickActionButtonsHost")},_.p(_.pz,{each:r.data},function(f){return _.p(_.X1,{data:function(){return f}},{buttonViewModel:_.LF,
likeButtonViewModel:function(I){return _.p(_.NV,{data:I.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.Xm})}))},"Yi");_.ke2=function(r){_.Mu.call(this);var f=this;this.JSC$20187_watchApi=r;r=_.E(_.ld({},void 0,"ufFdVc"));this.quickActionsViewModel=r.next().value;this.setQuickActionsViewModel=r.next().value;r=_.E(_.ld({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=r.next().value;this.setPlayerOverlayVideoDetailsRenderer=r.next().value;var I=this.JSC$20187_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Gei(f)});
this.addOnDisposeCallback(function(){f.JSC$20187_watchApi.unsubscribeByKey(I)});
Gei(this)};
_.t(_.ke2,_.Mu);
var Gei=function(r){var f,I,C,Y,V,S,h,w,n,d,z,g,X,P;_.x(function(W){if(W.nextAddress==1)return _.b(W,r.JSC$20187_watchApi.playerApi,2);f=W.yieldResult;I=r.JSC$20187_watchApi.getWatchNextResponse();V=(C=I)==null?void 0:(Y=C.playerOverlays)==null?void 0:Y.playerOverlayRenderer;h=_.F((S=V)==null?void 0:S.fullscreenQuickActionsBar,_.uq8);(n=(w=r).setQuickActionsViewModel)==null||n.call(w,h||{});h&&B$2(r,f);g=(d=V)==null?void 0:(z=d.videoDetails)==null?void 0:z.playerOverlayVideoDetailsRenderer;(P=(X=
r).setPlayerOverlayVideoDetailsRenderer)==null||P.call(X,g||{});g&&qY6(r,f);_.wO(W)})},B$2=function(r,f){if(!r.quickActionButtonsContainer){r.quickActionButtonsContainer=document.createElement("div");
f.setFullscreenQuickActions(r.quickActionButtonsContainer);var I=function(){return r.quickActionsViewModel().quickActionButtons||[]},C=_.av(r.quickActionButtonsContainer,function(){return _.p(Zuq,{data:I})});
r.addOnDisposeCallback(function(){f.setFullscreenQuickActions(void 0);C()})}},qY6=function(r,f){if(!r.playerOverlayVideoDetailsRendererContainer){r.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
f.setPlayerOverlayVideoDetailsRenderer(r.playerOverlayVideoDetailsRendererContainer);var I=_.av(r.playerOverlayVideoDetailsRendererContainer,function(){return _.p(Af6,{data:r.playerOverlayVideoDetailsRenderer})});
r.addOnDisposeCallback(function(){f.setPlayerOverlayVideoDetailsRenderer(void 0);I()})}};_.WN=function(r){_.Mu.call(this);var f=this;this.JSC$20192_watchApi=r;this.JSC$20192_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;r=_.wj(_.K2(),_.Ff,function(I){urV(f,I)});
this.addOnDisposeCallback(r);r=_.wj(_.K2(),_.P$,function(I){f.onWatchScroll(I)});
this.addOnDisposeCallback(r);_.N("kevlar_watch_while_v2")&&(r=_.wj(_.K2(),_.Nj,function(I){DYs(f,I)}),this.addOnDisposeCallback(r));
rli(this);fQ3(this);IQp();this.onWatchScroll(_.P$(_.K2().getState()));_.mO("START_IN_FULL_WINDOW_MODE")&&this.JSC$20192_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.t(_.WN,_.Mu);var rli=function(r){r.JSC$20192_watchApi.registerActionHandler("yt-fullscreen-change-action",function(f){var I=r.JSC$20192_watchApi.isActive();f&&!I||_.K2().dispatch(_.kI({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!f}}))});
r.addOnDisposeCallback(function(){r.JSC$20192_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},fQ3=function(r){var f,I;
_.x(function(C){if(C.nextAddress==1)return _.b(C,r.JSC$20192_watchApi.playerApi,2);f=C.yieldResult;I=function(){r.onFullerscreenEduClicked()};
f.addEventListener("onFullerscreenEduClicked",I);r.addOnDisposeCallback(function(){f.removeEventListener("onFullerscreenEduClicked",I)});
_.wO(C)})},urV=function(r,f){var I;
_.x(function(C){if(C.nextAddress==1)return r.isFullscreen=!!_.Qw(),_.b(C,r.JSC$20192_watchApi.playerApi,2);I=C.yieldResult;r.JSC$20192_miniplayerActive||I.setFauxFullscreen(r.isFullscreen);if(f&&(r.JSC$20192_watchApi.focusOnPlayer(),!r.fullerscreenEduButtonShownThisPlayback)){r.fullerscreenEduButtonShownThisPlayback=!0;var Y=_.YJ("yt-fullerscreen-edu-button-shown-count")||0;_.Ch("yt-fullerscreen-edu-button-shown-count",Y+1,31536E3);r.updateFullerscreenEduButtonSubtleModeState()}_.wO(C)})},DYs=function(r,
f){var I;
_.x(function(C){if(C.nextAddress==1)return r.JSC$20192_miniplayerActive=f,_.b(C,r.JSC$20192_watchApi.playerApi,2);I=C.yieldResult;I.setFauxFullscreen(!r.JSC$20192_miniplayerActive&&r.isFullscreen);_.wO(C)})};
_.WN.prototype.onWatchScroll=function(r){var f=this,I,C;return _.x(function(Y){if(Y.nextAddress==1)return _.N("external_fullscreen_with_edu")?_.b(Y,f.JSC$20192_watchApi.playerApi,2):Y.return();I=Y.yieldResult;C=r<=0;f.shouldShowFullerscreenEdu!==C&&(f.shouldShowFullerscreenEdu=C,I.updateFullerscreenEduButtonVisibility(!f.shouldShowFullerscreenEdu));_.wO(Y)})};
_.WN.prototype.onFullerscreenEduClicked=function(){this.JSC$20192_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var r=_.YJ("yt-fullerscreen-edu-button-click-count")||0;_.Ch("yt-fullerscreen-edu-button-click-count",r+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.WN.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var r=this,f,I,C,Y,V,S;return _.x(function(h){if(h.nextAddress==1)return f=_.YJ("yt-fullerscreen-edu-button-click-count")||0,I=_.YJ("yt-fullerscreen-edu-button-shown-count")||0,C=_.Bw("external_fullscreen_button_click_threshold"),Y=_.Bw("external_fullscreen_button_shown_threshold"),V=f>=C||I>=Y,_.b(h,r.JSC$20192_watchApi.playerApi,2);S=h.yieldResult;S.updateFullerscreenEduButtonSubtleModeState(V);_.wO(h)})};
_.WN.prototype.disposeInternal=function(){_.Mu.prototype.disposeInternal.call(this);var r=_.Qw();_.N("kevlar_exit_fullscreen_leaving_watch")&&r&&_.A1(r)};
var IQp=function(){if(_.N("web_watch_add_viewport_meta_tag")){var r=document.querySelector("meta[name=viewport]"),f=document.head;f&&!r&&(r=document.createElement("meta"),r.name="viewport",r.content="width=device-width, initial-scale=1.0, viewport-fit=cover",f.appendChild(r))}};_.L1=function(r){_.Mu.call(this);var f=this;this.JSC$20196_watchApi=r;this.jobId=0;this.pendingRequestId=void 0;var I=this.JSC$20196_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Cji(f)});
this.addOnDisposeCallback(function(){f.JSC$20196_watchApi.unsubscribeByKey(I)});
Cji(this)};
_.t(_.L1,_.Mu);var YFd=function(r){_.F_.cancelJob(r.jobId);r.pendingRequestId=void 0},Cji=function(r){YFd(r);
var f=zu2(r.JSC$20196_watchApi.getWatchNextResponse());if(f){var I=250,C,Y=(C=_.F(f,_.DhV))==null?void 0:C.initialDelayMs;_.N("web_watch_updated_metadata_server_initial_delay")&&Y&&(I=Y);r.jobId=_.F_.addLowPriorityJob(function(){return r.fetchUpdatedMetadata(f)},I)}};
_.L1.prototype.fetchUpdatedMetadata=function(r,f){var I=this,C,Y,V,S,h,w,n,d,z,g,X,P,W,m,v;return _.x(function(O){switch(O.nextAddress){case 1:f&&(C={continuation:f});if(!_.N("web_get_updated_metadata_fantasy_panel_continuation_params")){O.jumpTo(2);break}Y=_.a().resolve(_.dD);V="PAsports_fantasy";return _.b(O,Y.isVisible(V,!0),3);case 3:O.yieldResult&&(n=(h=(S=Y).getUpdatePanelContinuationData)==null?void 0:(w=h.call(S,V))==null?void 0:w.updatePanelContinuationRequest)&&(C||(C={}),C.clientParams=
{panelContinuationParams:{panelContinuation:n}});case 2:d=_.a().resolve(_.pJ);if(!d)return _.Fo(Error("hm")),O.return();z={};I.pendingRequestId=z;return _.b(O,_.mC(d,r,C),4);case 4:g=O.yieldResult;if(z!==I.pendingRequestId)return O.return();W=(X=g)==null?void 0:(P=X.continuation)==null?void 0:P.timedContinuationData;((m=W)==null?0:m.continuation)&&((v=W)==null?0:v.timeoutMs)&&(I.jobId=_.F_.addLowPriorityJob(function(){return I.fetchUpdatedMetadata(r,W.continuation)},W.timeoutMs));
_.wO(O)}})};
_.L1.prototype.disposeInternal=function(){_.Mu.prototype.disposeInternal.call(this);YFd(this)};var lQ3=_.Hc(function(r){var f=_.IC(function(){var C=r.data().videoId;if(r.active())C=_.QR(C),_.a().resolve(_.Gg).resolveCommand(C);else{var Y=r.playerApi(),V=Y.getAvailableAudioTracks(),S,h,w=(S=r.sourceVideoConfig().audioTracks)==null?void 0:(h=S.find(function(n){return n.isDefaultForSource}))==null?void 0:h.id;
if(V=V.find(function(n){return n.getLanguageInfo().getId()===w}))Y.setAudioTrack(V,!0),Y.setCompositeParam({activeVideoId:C}),r.setActiveSourceId(C)}}),I={};
return _.p("ytw-composite-source-video-overlay",{class:_.qd("ytwCompositeSourceVideoOverlayHost",(I.ytwCompositeSourceVideoOverlayActive=r.active,I.ytwCompositeSourceVideoOverlayInteracting=r.interacting,I)),style:_.lB({left:function(){var C;return((C=r.data().topLeftCornerX)!=null?C:0)*100+"%"},
top:function(){var C;return((C=r.data().topLeftCornerY)!=null?C:0)*100+"%"},
width:function(){var C;return((C=r.data().width)!=null?C:0)*100+"%"},
height:function(){var C;return((C=r.data().height)!=null?C:0)*100+"%"}}),
"on:click":f},_.p("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Zi");var V0d=_.Hc(function(r){var f=_.E(_.YZ(function(){var h,w=(h=r.data().sources)==null?void 0:h.find(function(n){return n.isActive});
if(w)return w.videoId})),I=f.next().value,C=f.next().value;
f=_.E(_.ld(!1,void 0,"WI4BUb"));var Y=f.next().value,V=f.next().value;f=_.IC(function(){V(!0)});
var S=_.IC(function(){V(!1)});
return _.p("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":f,"on:mouseout":S},_.p(_.M,{cond:function(){return r.data().sources},
then:function(h){return _.p(_.pz,{each:h},function(w){return _.p(lQ3,{data:w,active:function(){return w.videoId===I()},
setActiveSourceId:C,interacting:Y,playerApi:r.playerApi,sourceVideoConfig:function(){return MA1(r.compositeVideoConfig(),w.videoId)}})})}}))},"$i");_.xgB=function(r){_.Mu.call(this);this.JSC$20212_watchApi=r;r=_.E(_.ld({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=r.next().value;this.setCompositeVideoOverlayRenderer=r.next().value;r=_.E(_.ld({},void 0,"U5hcq"));this.compositeVideoConfig=r.next().value;this.setCompositeVideoConfig=r.next().value;Em2(this);SFp(this)};
_.t(_.xgB,_.Mu);var Em2=function(r){var f=r.JSC$20212_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){SFp(r)});
r.addOnDisposeCallback(function(){r.JSC$20212_watchApi.unsubscribeByKey(f)})},heY=function(r){var f;
return _.x(function(I){if(I.nextAddress==1)return _.b(I,r.JSC$20212_watchApi.playerApi,2);f=I.yieldResult;f.setCompositeVideoOverlayRendererComponent(r.container);_.wO(I)})},wU1=function(r){var f;
return _.x(function(I){if(I.nextAddress==1)return _.b(I,r.JSC$20212_watchApi.playerApi,2);f=I.yieldResult;f.setCompositeVideoOverlayRendererComponent(void 0);_.wO(I)})},bR7=function(r){var f,I;
return _.x(function(C){if(C.nextAddress==1)return _.b(C,r.JSC$20212_watchApi.playerApi,2);f=C.yieldResult;r.container=document.createElement("div");I=_.av(r.container,function(){return _.p(V0d,{data:r.compositeVideoOverlayRenderer,compositeVideoConfig:r.compositeVideoConfig,playerApi:f})});
r.addOnDisposeCallback(I);_.wO(C)})},SFp=function(r){var f,I,C,Y,V,S,h,w;
_.x(function(n){return n.nextAddress==1?(f=r.JSC$20212_watchApi.getPlayerResponse(),V=_.F((I=f)==null?void 0:(C=I.overlay)==null?void 0:(Y=C.playerControlsOverlayRenderer)==null?void 0:Y.compositeVideoOverlay,EsB),w=(S=f)==null?void 0:(h=S.playerConfig)==null?void 0:h.compositeVideoConfig,V&&r.setCompositeVideoOverlayRenderer(V),w&&r.setCompositeVideoConfig(w),V&&w?r.container?n.jumpTo(6):_.b(n,bR7(r),6):pUV(r)?_.b(n,wU1(r),0):n.jumpTo(0)):pUV(r)?n.jumpTo(0):_.b(n,heY(r),0)})},pUV=function(r){var f;
return!((f=r.container)==null||!f.parentElement)};
_.xgB.prototype.disposeInternal=function(){pUV(this)&&wU1(this);_.Mu.prototype.disposeInternal.call(this)};_.gmi=function(r){_.Mu.call(this);var f=this;this.JSC$20218_watchApi=r;var I=this.JSC$20218_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var C=f.JSC$20218_watchApi.getPlayerResponse();if(C){var Y,V;if(C=_.F((Y=C.endscreen)==null?void 0:(V=Y.endscreenRenderer)==null?void 0:V.hideButton,_.$4)){var S;(S=f.setEndscreenHideButton)==null||S.call(f,C);nm3(f)}}});
this.addOnDisposeCallback(function(){f.JSC$20218_watchApi.unsubscribeByKey(I)});
r=_.E(_.ld({},void 0,"PPHRb"));this.endscreenHideButton=r.next().value;this.setEndscreenHideButton=r.next().value;dg7(this);ze2(this);M0p(this)};
_.t(_.gmi,_.Mu);var nm3=function(r){var f,I;_.x(function(C){if(C.nextAddress==1)return r.creatorEndscreenHideButtonContainer?C.return():_.b(C,r.JSC$20218_watchApi.playerApi,2);f=C.yieldResult;r.creatorEndscreenHideButtonContainer=document.createElement("div");_.vh(r.creatorEndscreenHideButtonContainer,!1);f.setCreatorEndscreenHideButton(r.creatorEndscreenHideButtonContainer);I=_.av(r.creatorEndscreenHideButtonContainer,function(){return _.p(_.F1,{data:r.endscreenHideButton,useOutlinedIcon:!0})});
r.addOnDisposeCallback(function(){I();f.setCreatorEndscreenHideButton(void 0)});
_.wO(C)})},dg7=function(r){var f,I;
_.x(function(C){if(C.nextAddress==1)return _.b(C,r.JSC$20218_watchApi.playerApi,2);f=C.yieldResult;I=function(){r.creatorEndscreenHideButtonContainer&&_.vh(r.creatorEndscreenHideButtonContainer,!0)};
f.addEventListener("endscreenelementshown",I);r.addOnDisposeCallback(function(){f.removeEventListener("endscreenelementshown",I)});
_.wO(C)})},ze2=function(r){var f=function(){r.creatorEndscreenHideButtonContainer&&_.vh(r.creatorEndscreenHideButtonContainer,!1)},I=r.JSC$20218_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",f),C=r.JSC$20218_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",f);
r.addOnDisposeCallback(function(){r.JSC$20218_watchApi.unsubscribeByKey(I);r.JSC$20218_watchApi.unsubscribeByKey(C)})},M0p=function(r){r.JSC$20218_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(f){var I=_.F(f,flV);
r.JSC$20218_watchApi.playerApi.then(function(C){C==null||C.setCreatorEndscreenVisibility(!!I.hide)})});
r.addOnDisposeCallback(function(){r.JSC$20218_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.XU6=function(r){_.Mu.call(this);this.JSC$20224_watchApi=r;aQ6(this)};
_.t(_.XU6,_.Mu);var aQ6=function(r){var f,I;_.x(function(C){if(C.nextAddress==1)return _.b(C,r.JSC$20224_watchApi.playerApi,2);f=C.yieldResult;I=function(Y){_.K2().dispatch(_.kI({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:Y}}))};
f.addEventListener("onRetroModeChanged",I);r.addOnDisposeCallback(function(){f.removeEventListener("onRetroModeChanged",I)});
_.wO(C)})};var L5=0,W$=0,mz=0;var N06;N06=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.mj=function(r){_.Mu.call(this);this.JSC$20237_watchApi=r;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;$gY(this)};
_.t(_.mj,_.Mu);
var $gY=function(r){var f,I,C;_.x(function(Y){if(Y.nextAddress==1)return _.b(Y,r.JSC$20237_watchApi.playerApi,2);f=Y.yieldResult;if(r.isDisposed())return Y.return();r.sessionStorage=_.Tsq("yt-sleep-timer");r.sessionStorage||_.t7(new _.nf("SessionStorage for Sleep Timer is undefined."));((I=r.sessionStorage)==null?void 0:I.get("yt-sleep-timer"))==="true"&&(cSi(),(C=r.sessionStorage)==null||C.remove("yt-sleep-timer"),f.syncVolume());Fa1(r,f);Pjd(r,f);t06(r,f);_.wO(Y)})},Fa1=function(r,f){var I=function(n){r.onSleepTimerSettingsChanged(n,
f)},C=function(n){r.onPlayerStateChange(n,f)},Y=function(){r.onLoopChange(f)},V=function(){r.onCloseMiniplayer(f)},S=function(){FH7(f,(0,_.Ad)(),WH6(f),r.selectedOption==="End of video",f.getPlayerState()!==1)},h=function(){r.onSeekComplete(f)},w=function(){_.F_.cancelJob(W$);
var n=f.getCurrentTime()>=f.getDuration(),d=r.selectedOption==="End of video"||r.selectedOption==="End of playlist"&&!XiU(r.playlistId);n&&d&&T0d(r,f)};
f.addEventListener("onSleepTimerSettingsChanged",I);f.addEventListener("onLoopChange",Y);f.addEventListener("onLoopRangeChange",Y);f.addEventListener("onStateChange",C);f.addEventListener("onCloseMiniplayer",V);f.addEventListener("onSleepTimerFeatureAvailable",S);f.addEventListener("SEEK_COMPLETE",h);f.addEventListener("onAdStart",w);r.addOnDisposeCallback(function(){f.removeEventListener("onSleepTimerSettingsChanged",I);f.removeEventListener("onLoopChange",Y);f.removeEventListener("onLoopRangeChange",
Y);f.removeEventListener("onStateChange",C);f.removeEventListener("onCloseMiniplayer",V);f.removeEventListener("onSleepTimerFeatureAvailable",S);f.removeEventListener("SEEK_COMPLETE",h);f.removeEventListener("onAdStart",w)})},Pjd=function(r,f){var I=r.JSC$20237_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var C=f.getVideoData().video_id,Y,V=(Y=gjp(r.JSC$20237_watchApi))==null?void 0:Y.playlistId;
r.pauseAutonavPlayback&&(f.pauseVideo(),f.syncVolume(),r.pauseAutonavPlayback=!1);if(r.selectedOption==="End of video"&&C!==r.videoId)e6(r,f);else{if(r.selectedOption==="End of playlist"){Y=XiU(r.playlistId);if(V!==r.playlistId){e6(r,f);break a}Y?Y&&clV(r,f):Wa7(r,f)}r.videoId=C;r.playlistId=V}}});
r.addOnDisposeCallback(function(){r.JSC$20237_watchApi.unsubscribeByKey(I)})},t06=function(r,f){var I=_.a().resolve(_.Nb),C=_.wj(I,_.WRU,function(V){V&&r.selectedOption!=="Off"&&e6(r,f)}),Y=r.JSC$20237_watchApi.subscribeToActiveChanged(function(V){var S,h;
return _.x(function(w){if(w.nextAddress==1)return _.b(w,_.xP().navigationFinishPromise,2);S=!_.IPC();h=_.a().resolve(_.iO).isMiniplayerActive();V||!c$(r.selectedOption)||h||S||e6(r,f);_.wO(w)})},!1);
I=_.wj(I,function(V){return V.entities.playlistLoopStateEntity||{}},function(V){V=V===void 0?{}:V;
var S=aTi(r.JSC$20237_watchApi);if(S){var h;((h=V[S])==null?void 0:h.state)==="PLAYLIST_LOOP_STATE_ALL"&&c$(r.selectedOption)&&e6(r,f)}});
r.addOnDisposeCallback(C);r.addOnDisposeCallback(I);r.addOnDisposeCallback(Y)};
_.mj.prototype.onSleepTimerSettingsChanged=function(r,f){switch(r){case "Off":this.selectedOption!=="Off"&&e6(this,f);break;case "End of video":case "End of playlist":La2(this,r,f);break;default:La2(this,r,f,N06.get(r))}};
_.mj.prototype.onLoopChange=function(r){(r.getLoopVideo()||r.getLoopRange())&&c$(this.selectedOption)&&e6(this,r)};
_.mj.prototype.onCloseMiniplayer=function(r){c$(this.selectedOption)&&e6(this,r)};
var La2=function(r,f,I,C){mg3(r,I);r.selectedOption=f;r.videoId=I.getVideoData().video_id;r.playlistId="";var Y;(Y=r.sessionStorage)==null||Y.set("yt-sleep-timer","true");r.adjustmentsCount++;FH7(I,(0,_.Ad)(),WH6(I),r.selectedOption==="End of video");if(r.selectedOption==="End of video")Wa7(r,I),eeY(r,I);else if(r.selectedOption==="End of playlist"){eeY(r,I);var V,S;r.playlistId=(S=(V=gjp(r.JSC$20237_watchApi))==null?void 0:V.playlistId)!=null?S:"";XiU(r.playlistId)||Wa7(r,I)}else C&&(r.presetFadeSchedulerId=
_.pF(_.F_,function(){tAY(I,15E3)},C-15E3),r.presetPauseSchedulerId=_.pF(_.F_,function(){T0d(r,I)},C),PD6(I,(0,_.Ad)(),C))},T0d=function(r,f){if(r.JSC$20237_watchApi.isActive()){var I={dismissDialogEndpoint:{}};
var C={commandExecutorCommand:{commands:[I,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};I={buttonViewModel:{title:_.VR("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:I}}};C={buttonViewModel:{title:_.VR("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:C}}};var Y={dialogHeaderViewModel:{headline:{content:_.VR("SLEEP_TIMER_ENDED_TITLE")}}},
V={basicContentViewModel:{paragraphs:[{text:{content:_.VR("SLEEP_TIMER_ENDED_TEXT")}}]}};I={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:Y,content:V,footer:{panelFooterViewModel:{primaryButton:I,secondaryButton:C,shouldHideDivider:!0}}}}}}};_.a().resolve(_.Gg).resolveCommand(I,{form:{element:r}})}else cSi();JlY(r,!1);jSB(r,f);f.pauseVideo();_.Qk.getInstance().getState()===2&&f.getPlayerState()===5&&(r.pauseAutonavPlayback=!0)},e6=function(r,f){JlY(r,!0);
jSB(r,f);cSi()},jSB=function(r,f){mg3(r,f);
r.selectedOption="Off";r.videoId="";r.playlistId="";r.adjustmentsCount=0;var I;(I=r.sessionStorage)==null||I.remove("yt-sleep-timer");_.F_.cancelJob(L5);f.resetSleepTimerMenuSettings()},JlY=function(r,f){f={timer_length_adjustment_times_during_session:r.adjustmentsCount-1,
is_session_cancelled:f};switch(r.selectedOption){case "Off":f.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":f.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":f.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:f.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",f.option_duration_in_minutes=N06.get(r.selectedOption)/6E4}_.NW("sleepTimerSessionFinishEvent",f)};
_.mj.prototype.onPlayerStateChange=function(r,f){r===1?FH7(f,(0,_.Ad)(),WH6(f),this.selectedOption==="End of video"):r===0?(_.F_.cancelJob(W$),f.setVideoTimeLeft($n6(0,0))):r===2&&_.F_.cancelJob(W$);this.selectedOption==="End of video"?r===0?T0d(this,f):r===2&&Tr7(f):this.selectedOption!=="End of playlist"||XiU(this.playlistId)||(r===0?T0d(this,f):r===2&&Tr7(f))};
_.mj.prototype.onSeekComplete=function(r){r.getPlayerState()===2&&FH7(r,(0,_.Ad)(),WH6(r),this.selectedOption==="End of video",!0)};
_.mj.prototype.onCueRangeEnter=function(r,f){r==="sleep-timer-fade-audio"&&tAY(f,(f.getDuration()-f.getProgressState().current)*1E3)};
_.mj.prototype.onCueRangeExit=function(r,f){r==="sleep-timer-fade-audio"&&f.getPlayerState()!==0&&Tr7(f,!0)};
var Wa7=function(r,f){f.addCueRange("sleep-timer-fade-audio",f.getDuration()-15,f.getDuration());f.addEventListener("onCueRangeEnter",function(I){r.onCueRangeEnter(I,f)});
f.addEventListener("onCueRangeExit",function(I){r.onCueRangeExit(I,f)})},clV=function(r,f){f.removeCueRange("sleep-timer-fade-audio");
f.removeEventListener("onCueRangeEnter",function(I){r.onCueRangeEnter(I,f)});
f.removeEventListener("onCueRangeExit",function(I){r.onCueRangeExit(I,f)})},mg3=function(r,f){c$(r.selectedOption)?clV(r,f):(_.F_.cancelJob(r.presetPauseSchedulerId),_.F_.cancelJob(r.presetFadeSchedulerId),r.presetPauseSchedulerId=0,r.presetFadeSchedulerId=0);
Tr7(f,!0)},eeY=function(r,f){f.setLoop(!1);
f.setLoopVideo(!1);f.setLoopRange(null);(r=aTi(r.JSC$20237_watchApi))&&_.a().resolve(_.Nb).dispatch(_.hv("playlistLoopStateEntity",r,{key:r,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.vmU=function(r){_.Mu.call(this);this.JSC$20240_watchApi=r;HRs(this);iRB(this);Re3(this);r=r.getRoot();if(r.is==="ytd-watch-flexy"||r.is==="ytd-watch-grid")r.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.Ut1();_.N("web_watch_log_theater_mode_cookie_state")&&_.xB.get("wide","0")==="1"&&_.PLR("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.t(_.vmU,_.Mu);var HRs=function(r){var f,I;_.x(function(C){if(C.nextAddress==1)return _.b(C,r.JSC$20240_watchApi.playerApi,2);f=C.yieldResult;I=function(Y){Kai(r,!!Y)};
f.addEventListener("SIZE_CLICKED",I);r.addOnDisposeCallback(function(){f.removeEventListener("SIZE_CLICKED",I)});
_.wO(C)})},iRB=function(r){r.JSC$20240_watchApi.registerActionHandler("yt-toggle-theater-mode",function(f,I){Kai(r,f,I===void 0?!0:I)});
r.addOnDisposeCallback(function(){r.JSC$20240_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.vmU.prototype.getState=function(){return _.XL(_.K2().getState())};
var Kai=function(r,f,I){I=I===void 0?!0:I;var C,Y,V,S=_.N("enable_player_resize_transition")&&!!r.JSC$20240_watchApi.getWatchNextResponse()&&!((C=r.JSC$20240_watchApi.getWatchNextResponse())==null?0:(Y=C.contents)==null?0:(V=Y.twoColumnWatchNextResults)==null?0:V.conversationBar);_.W_Y(function(){_.K2().dispatch(_.kI({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:f}}));_.N("theater_mode_scroll_to_top_killswitch")||r.JSC$20240_watchApi.scrollWatchTo(0,!1);_.Qw()&&_.N("external_fullscreen")&&_.A1(document.documentElement);
Re3(r);I&&_.hd("wide",f?"1":"0",-1);_.Bj(r.JSC$20240_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);r.JSC$20240_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:f});f&&_.Ut1()},{shouldWrap:S})},Re3=function(r){var f;
_.x(function(I){if(I.nextAddress==1)return _.b(I,r.JSC$20240_watchApi.playerApi,2);f=I.yieldResult;f.setSizeStyle(!0,r.getState());_.wO(I)})};var sS7=function(r){_.Mu.call(this);var f=this;this.playerApi=r;this.timeToPanelSyncKeyMap={};var I;if(r==null?0:(I=r.isReady)==null?0:I.call(r)){I=_.wj(_.a().resolve(_.Nb),function(Y){return Y.entities.timedMarkersListSyncEntity||{}},function(Y,V){Y=Y===void 0?{}:Y;
V=V===void 0?{}:V;for(var S=_.E(Object.keys(V)),h=S.next();!h.done;h=S.next())h=h.value,Y[h]!==V[h]&&ylU(f,V[h]);V=_.E(Object.keys(Y));for(S=V.next();!S.done;S=V.next())S=S.value,h=Y[S],f.timeToPanelSyncKeyMap[S]&&Ugi(f,h)});
this.addOnDisposeCallback(I);var C=function(Y){f.onCueRangeEnter(Y)};
r.addEventListener("onCueRangeEnter",C);this.addOnDisposeCallback(function(){var Y;(Y=r.removeEventListener)==null||Y.call(r,"onCueRangeEnter",C)})}};
_.t(sS7,_.Mu);
var Ugi=function(r,f){var I,C;if((I=r.playerApi)==null?0:(C=I.isReady)==null?0:C.call(I)){var Y;if((I=f==null?void 0:(Y=f.timedListData)==null?void 0:Y.sections)&&f!=null&&f.key)for(Y=_.E(I),I=Y.next();!I.done;I=Y.next())if(I=I.value,I.timedSyncDataList&&I.sectionId)for(C=0;C<I.timedSyncDataList.length;C++){var V=I.timedSyncDataList[C];V.syncItemId&&r.playerApi.addCueRange(I.sectionId+"_"+f.key+"_"+V.syncItemId,Number(V.videoTimeMs)/1E3,C===I.timedSyncDataList.length-1?0x8000000000000:Number(I.timedSyncDataList[C+
1].videoTimeMs)/1E3)}}},ylU=function(r,f){var I,C;
if((I=r.playerApi)==null?0:(C=I.isReady)==null?0:C.call(I)){var Y;if((I=f==null?void 0:(Y=f.timedListData)==null?void 0:Y.sections)&&f!=null&&f.key)for(Y=_.E(I),I=Y.next();!I.done;I=Y.next())if(I=I.value,I.timedSyncDataList&&I.sectionId){C=_.E(I.timedSyncDataList);for(var V=C.next();!V.done;V=C.next())V=V.value,V.syncItemId&&r.playerApi.removeCueRange(I.sectionId+"_"+f.key+"_"+V.syncItemId)}}};
sS7.prototype.onCueRangeEnter=function(r){for(var f=_.E(Object.keys(this.timeToPanelSyncKeyMap)),I=f.next();!I.done;I=f.next()){I=I.value;var C=_.E(r.split("_"+I+"_")),Y=C.next().value;C=C.next().value;if(Y&&C){r=_.a().resolve(_.Nb);f=this.timeToPanelSyncKeyMap[I];var V=_.Ogq(r.getState(),f);I=ORd(I,Y,C);if(I===-1)break;I={activeSyncId:C,activeItemIndex:I,activeSectionInfo:{sectionIdentifier:Y}};V?r.dispatch(_.Po("markersEngagementPanelSyncEntity",f,I)):r.dispatch(_.hv("markersEngagementPanelSyncEntity",
f,Object.assign({},{key:f},I)));break}}};
var ORd=function(r,f,I){var C=_.a().resolve(_.Nb),Y,V;r=(Y=R7d(C.getState(),r))==null?void 0:(V=Y.timedListData)==null?void 0:V.sections;if(!r)return-1;Y=0;V=_.E(r);for(r=V.next();!r.done;r=V.next()){r=r.value;C=r.timedSyncDataList||[];if(r.sectionId===f)return f=C.findIndex(function(S){return S.syncItemId===I}),f===-1?f:Y+f;
Y+=C.length}return-1};_.AlB=function(r){_.Mu.call(this);var f=this;this.JSC$20252_watchApi=r;this.unresolvedCommands=[];this.JSC$20252_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(I){om1(f,I)});
this.addOnDisposeCallback(function(){f.JSC$20252_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
QS2(this)};
_.t(_.AlB,_.Mu);var QS2=function(r){var f;_.x(function(I){if(I.nextAddress==1)return _.b(I,r.JSC$20252_watchApi.playerApi,2);f=I.yieldResult;if(r.isDisposed())return I.return();r.timedSyncObserver=new sS7(f);r.unresolvedCommands.length&&(r.unresolvedCommands.forEach(function(C){return om1(r,C)}),r.unresolvedCommands=[]);
_.V$(r,r.timedSyncObserver);_.wO(I)})},om1=function(r,f){if(r.timedSyncObserver){var I=_.F(f,C92);
if(I&&I.timedSyncEntityKey&&I.panelSyncEntityKey){r=r.timedSyncObserver;f=I.timedSyncEntityKey;var C=I.panelSyncEntityKey;I=!!I.isEnabled;I=I===void 0?!0:I;var Y=_.a().resolve(_.Nb);Y=R7d(Y.getState(),f);I?r.timeToPanelSyncKeyMap[f]||(r.timeToPanelSyncKeyMap[f]=C,Ugi(r,Y)):(delete r.timeToPanelSyncKeyMap[f],ylU(r,Y))}}else r.unresolvedCommands.push(f)};var ZR2=_.Hc(function(r){var f=r.data,I=r.maybeLogSmartSkipClientData,C=_.yy();_.KF(C,function(){return f().rendererContext},{onTap:function(d,z){z({disableClickTracking:!0})}});
var Y=null,V=null,S=_.N("web_enable_auto_focus_for_timely_action_button"),h=function(){Y=document.activeElement},w=function(){f().smartSkipMetadata&&(Y=document.activeElement,_.m1d(function(){return V}))},n=function(d){if(f().smartSkipMetadata&&(!d||d.key!=="Enter")){Y&&Y.isConnected&&(_.m1d(function(){return Y}),Y=null);
var z;(z=V)==null||z.blur()}};
r=_.IC(function(){I==null||I(!0,f());return!1});
_.ZW(C,{visibilityCallback:function(d){if(S)d?V&&f().smartSkipMetadata&&(w(),document.addEventListener("focusin",h)):(document.removeEventListener("focusin",h),n());else if(d&&_.N("web_ephemeral_actions")){d=_.i6(f().rendererContext);var z=Number(f().maxVisibleDurationMilliseconds),g,X=(g=_.F(f().rendererContext,_.U0))==null?void 0:g.label;d&&z&&X&&(g={label:X,command:d,durationMs:z},_.a().resolve(_.Y_).enqueue(g))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.Xl(function(){if(S){var d;if((V=(d=C.value)==null?void 0:d.querySelector("button"))&&f().smartSkipMetadata){var z;(z=C.value)==null||z.addEventListener("keydown",n)}}});
_.$L(function(){S&&(V&&f().smartSkipMetadata&&V.removeEventListener("keydown",n),document.removeEventListener("focusin",h),n())});
return _.p("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:C,"on:click":r},_.p(_.X1,{data:function(){return f().content}},{buttonViewModel:_.LF}))},"aj");var GmV=_.Hc(function(r){var f=r.data,I=r.playerApi,C=_.a().resolve(_.jIq);r=_.E(_.YZ(function(){f()}));
var Y=r.next().value,V=r.next().value,S=function(){return mn3(f(),Y())},h=function(n,d){var z,g,X=(z=_.F(d==null?void 0:d.rendererContext,_.rtK))==null?void 0:(g=z.loggingDirectives)==null?void 0:g.trackingParams;
if((d=d==null?void 0:d.smartSkipMetadata)&&d.loggingData&&(g=d.loggingData,d=g.algorithmId,z=g.startMilliseconds,g=g.endMilliseconds,d&&z!==void 0&&g!==void 0)){var P,W;n={smartSkipData:Object.assign({},{versionName:d,startMediaTimeMs:z,endMediaTimeMs:g},n&&{userInteractionMediaTimeMs:(Math.floor(((P=_.sk())==null?void 0:(W=P.getPlayer())==null?void 0:W.getCurrentTime())||0)*1E3).toString()})};P=_.t1();var m;X&&(m=_.VH(X));P&&m&&_.vF(P,m,n)}},w=function(n,d){var z=mn3(f(),n);
if(z){var g=_.F(z,e7),X;if(X=d)X=I(),z=_.F(z,e7),X=z!=null&&z.smartSkipMetadata?!(X==null?0:X.isSameMarkerTypeVisible((z==null?void 0:z.smartSkipMetadata.markerKey)||"")):!0;if(X){var P,W;(g==null?0:(P=g.smartSkipMetadata)==null?0:(W=P.loggingData)==null?0:W.isCounterfactual)||(h(!1,g),V(n))}else d||Y()!==n||V(void 0)}};
_.az(function(){var n=f().timelyActions;if(n){n=_.E(n);for(var d=n.next();!d.done;d=n.next()){d=_.F(d.value,e7);var z=void 0;(z=d)!=null&&z.cueRangeId&&C.timelyActionsMap.set(d.cueRangeId,w)}_.$L(function(){C.timelyActionsMap.clear()})}});
return _.p("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.p(_.X1,{data:S},{timelyActionViewModel:function(n){return _.p(ZR2,{data:n.data,maybeLogSmartSkipClientData:function(){h(!0,_.F(S(),e7))}})}}))},"bj");_.B0V=function(r){_.Mu.call(this);this.JSC$20264_watchApi=r;r=_.E(_.ld({},void 0,"pLDp2"));this.timelyActionsOverlay=r.next().value;this.setTimelyActionsOverlay=r.next().value;kmV(this)};
_.t(_.B0V,_.Mu);var kmV=function(r){var f,I,C,Y;_.x(function(V){if(V.nextAddress==1)return qF6(r),u46(r),r.timelyActionsContainer=document.createElement("div"),_.b(V,r.JSC$20264_watchApi.playerApi,2);f=V.yieldResult;(C=(I=f).insertTimelyActionUi)==null||C.call(I,r.timelyActionsContainer);Y=_.av(r.timelyActionsContainer,function(){return _.p(GmV,{data:r.timelyActionsOverlay,playerApi:f})});
r.addOnDisposeCallback(Y);_.wO(V)})},u46=function(r){var f=r.JSC$20264_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){qF6(r)});
r.addOnDisposeCallback(function(){r.JSC$20264_watchApi.unsubscribeByKey(f)})},qF6=function(r){var f=r.JSC$20264_watchApi.getWatchNextResponse();
if(f){var I,C;if(f=_.F((I=f.playerOverlays)==null?void 0:(C=I.playerOverlayRenderer)==null?void 0:C.timelyActionsOverlayViewModel,Yxs)){var Y;(Y=r.setTimelyActionsOverlay)==null||Y.call(r,f)}}};_.rjV=function(r){_.Mu.call(this);this.JSC$20268_watchApi=r;DgY(this)};
_.t(_.rjV,_.Mu);var DgY=function(r){var f,I;_.x(function(C){if(C.nextAddress==1)return _.b(C,r.JSC$20268_watchApi.playerApi,2);f=C.yieldResult;I=function(Y){_.qv.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.F(Y,_.aZ2)},popupType:"TOAST"}})};
f.addEventListener("onYtShowToast",I);r.addOnDisposeCallback(function(){f.removeEventListener("onYtShowToast",I)});
_.wO(C)})};var f_2,Y26,I_7,CYU,S26,Ve7,Ebi,hJq,wv3;f_2=!1;_.l_B=function(r){_.Mu.call(this);this.JSC$20271_watchApi=r;this.fullscreen=this.theater=!1;I_7(this);CYU(this);Y26(this)};
_.t(_.l_B,_.Mu);Y26=function(r){var f,I,C;_.x(function(Y){if(Y.nextAddress==1)return _.b(Y,r.JSC$20271_watchApi.playerApi,2);f=Y.yieldResult;if(r.isDisposed())return Y.return();I=r.JSC$20271_watchApi.getElement("CINEMATICS");if(!I)return Y.return();r.JSC$20271_cinematicController=new _.C5(I,f);_.V$(r,r.JSC$20271_cinematicController);_.s7s(r.JSC$20271_cinematicController);Ve7(r,_.TJB());C=r.JSC$20271_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(V){Ebi(r,V)});
r.addOnDisposeCallback(function(){r.JSC$20271_watchApi.unsubscribeByKey(C)});
S26(r);Ebi(r,r.JSC$20271_cinematicController.isAllowed());_.xOU(r,r.fullscreen,r.theater);hJq(r);_.wO(Y)})};
I_7=function(r){var f=r.JSC$20271_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){S26(r)});
r.addOnDisposeCallback(function(){r.JSC$20271_watchApi.unsubscribeByKey(f)})};
CYU=function(r){var f,I;_.x(function(C){if(C.nextAddress==1)return _.b(C,r.JSC$20271_watchApi.playerApi,2);f=C.yieldResult;I=function(Y){Ve7(r,Y)};
f.addEventListener("cinematicSettingsToggleChange",I);r.addOnDisposeCallback(function(){f.removeEventListener("cinematicSettingsToggleChange",I)});
_.wO(C)})};
S26=function(r){var f=r.JSC$20271_watchApi.getWatchNextResponse(),I;f=_.F(f==null?void 0:(I=f.pageVisualEffects)==null?void 0:I[0],_.aS);var C;(C=r.JSC$20271_cinematicController)==null||_.oD6(C,f)};
Ve7=function(r,f){var I;(I=r.JSC$20271_cinematicController)==null||_.OZV(I,f);wv3(r)};
Ebi=function(r,f){var I;_.x(function(C){if(C.nextAddress==1)return _.N("kevlar_watch_cinematics_invisible")&&(f=!1),_.b(C,r.JSC$20271_watchApi.playerApi,2);I=C.yieldResult;I.updateCinematicSettings(f);wv3(r);_.wO(C)})};
hJq=function(r){var f=_.xI();if(_.N("kevlar_measure_ambient_mode_idle")&&!f.getFlag(192)&&!f_2){f_2=!0;var I=_.dp(_.F_,function(){_.a().resolve(_.P2q).start(1E4)},5E3);
r.addOnDisposeCallback(function(){_.F_.cancelJob(I);_.a().resolve(_.P2q).stop()})}};
_.xOU=function(r,f,I){r.fullscreen=f;r.theater=I;var C;(C=r.JSC$20271_cinematicController)==null||C.setFullscreen(r.fullscreen,r.theater);if(_.N("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(r.theater||r.fullscreen){var Y;(Y=r.JSC$20271_cinematicController)!=null&&(Y=Y.currentCinematicEffect)!=null&&(Y=Y.storyboardManager,Y.paused=!1,_.P$Y(Y),Y.update())}else(r=r.JSC$20271_cinematicController)==null||(Y=r.currentCinematicEffect)!=null&&Y.pause()};
wv3=function(r){if(_.N("web_cinematic_theater_mode")||_.N("web_cinematic_fullscreen")){var f;r.JSC$20271_watchApi.getRoot().toggleCinematicsActive(!((f=r.JSC$20271_cinematicController)==null||!f.isEnabled()))}};_.dOV=function(r){_.Mu.call(this);var f=this;this.JSC$20274_watchApi=r;this.commentsReady=!1;this.setCommentsJobId=0;r=_.wj(_.K2(),_.P$,function(){ba6(f)});
this.addOnDisposeCallback(r);var I=this.JSC$20274_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){pv6(f)}),C=this.JSC$20274_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){pv6(f)});
this.addOnDisposeCallback(function(){f.JSC$20274_watchApi.unsubscribeByKey(I);f.JSC$20274_watchApi.unsubscribeByKey(C)});
var Y=function(){_.N("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&nb2(f,"false")};
this.JSC$20274_watchApi.getRoot().addEventListener("yt-page-data-will-update",Y);this.addOnDisposeCallback(function(){f.JSC$20274_watchApi.getRoot().removeEventListener("yt-page-data-will-update",Y)});
pv6(this)};
_.t(_.dOV,_.Mu);var pv6=function(r){r.commentsReady=!1;_.F_.cancelJob(r.setCommentsJobId);r.setCommentsJobId=_.dp(_.F_,function(){ba6(r)},1E3)},ba6=function(r){if(!r.commentsReady){_.Xc("cmi");
_.F_.cancelJob(r.setCommentsJobId);var f,I,C,Y,V=(f=r.JSC$20274_watchApi.getWatchNextResponse())==null?void 0:(I=f.contents)==null?void 0:(C=I.twoColumnWatchNextResults)==null?void 0:(Y=C.results)==null?void 0:Y.results.contents;f=void 0;if(V&&V.length)for(V=_.E(V),I=V.next();!I.done;I=V.next())if(I=I.value,Y=C=void 0,((C=I)==null?void 0:(Y=C.itemSectionRenderer)==null?void 0:Y.sectionIdentifier)==="comment-item-section"){_.N("web_watch_provide_undefined_comments")?f=I.itemSectionRenderer:r.JSC$20274_watchApi.provideRenderingData("COMMENTS",
I.itemSectionRenderer);nb2(r,"true");break}_.N("web_watch_provide_undefined_comments")&&r.JSC$20274_watchApi.provideRenderingData("COMMENTS",f);r.commentsReady=!0;r.JSC$20274_watchApi.dispatchEvent("yt-watch-comments-ready")}},nb2=function(r,f){var I;
(I=r.JSC$20274_watchApi.getElement("COMMENTS"))==null||I.setAttribute("canScheduleJobs",f)};_.iJ=function(r){_.Mu.call(this);var f=this;this.JSC$20277_watchApi=r;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.N("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.N("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.N("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.Bw("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)zJ6(this);
else{var I=this.JSC$20277_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Je(f);j6(f)}),C=this.JSC$20277_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){HN(f);
j6(f)});
this.JSC$20277_watchApi.getRoot().is==="ytd-watch-grid"&&_.N("swatcheroo_pbs_load_grid")&&(Med(this),gbd(this));this.addOnDisposeCallback(function(){f.JSC$20277_watchApi.unsubscribeByKey(I);f.JSC$20277_watchApi.unsubscribeByKey(C);_.F_.cancelJob(f.provideRichGridJobId)});
Je(this);HN(this)}};
_.t(_.iJ,_.Mu);var zJ6=function(r){var f=r.JSC$20277_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){r.providePlayerJobId=_.aK(_.F_,function(){Je(r);j6(r)},r.provideAllDataDelayMs)}),I=r.JSC$20277_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){r.provideWatchNextJobId=_.aK(_.F_,function(){HN(r);
j6(r)},r.provideAllDataDelayMs)}),C=r.JSC$20277_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){r.provideWatchNextJobId=_.aK(_.F_,function(){HN(r);
j6(r)},r.provideAllDataDelayMs)});
r.JSC$20277_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.dp(_.F_,function(){Je(r);HN(r);j6(r)},100)});
r.JSC$20277_watchApi.addPageDisposeJob(function(){_.F_.cancelJob(r.provideWatchNextJobId);_.F_.cancelJob(r.providePlayerJobId)});
r.addOnDisposeCallback(function(){r.JSC$20277_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");r.JSC$20277_watchApi.unsubscribeByKey(f);r.JSC$20277_watchApi.unsubscribeByKey(I);r.JSC$20277_watchApi.unsubscribeByKey(C);_.F_.cancelJob(r.providePlayerJobId);_.F_.cancelJob(r.provideWatchNextJobId)});
Je(r);HN(r)},Je=function(r){var f=r.JSC$20277_watchApi.getPlayerResponse(),I,C,Y=(C=f==null?void 0:(I=f.playabilityStatus)==null?void 0:I.messageRenderers)!=null?C:[],V,S;
f=(S=f==null?void 0:(V=f.playabilityStatus)==null?void 0:V.messages)!=null?S:[];V=_.E(f);for(S=V.next();!S.done;S=V.next())Y.push({alertRenderer:{text:_.iX(S.value),type:"WARNING"}});r.JSC$20277_watchApi.provideRenderingData("ALERTS",Y)},HN=function(r){var f=[],I,C,Y,V=r.JSC$20277_watchApi.getWatchNextResponse(),S,h,w,n,d=V==null?void 0:(S=V.contents)==null?void 0:(h=S.twoColumnWatchNextResults)==null?void 0:(w=h.results)==null?void 0:(n=w.results)==null?void 0:n.contents;
if(d)for(S=_.E(d),h=S.next();!h.done;h=S.next())if(h=h.value,h.videoPrimaryInfoRenderer)var z=h;else if(h.videoSecondaryInfoRenderer){var g=h;n=w=void 0;h=Object.assign({},(w=h.videoSecondaryInfoRenderer)==null?void 0:(n=w.metadataRowContainer)==null?void 0:n.metadataRowContainerRenderer);if(h.rows&&h.collapsedItemCount!==void 0){h.rows=h.rows.slice(0,h.collapsedItemCount).filter(function(Qq){return!!Qq.richMetadataRowRenderer});
h.collapsedItemCount=h.rows.length;var X={metadataRowContainerRenderer:h}}}else if(h.merchandiseShelfRenderer)var P=h;else if(h.ticketShelfRenderer)var W=h;else if(h.expandableMetadataRenderer)var m=h;else if(h.itemSectionRenderer)if(w=h.itemSectionRenderer.contents,n=void 0,r.directlyProvideComments&&((n=h.itemSectionRenderer)==null?void 0:n.sectionIdentifier)==="comment-item-section")_.Xc("cmi"),r.JSC$20277_watchApi.provideRenderingData("COMMENTS",h.itemSectionRenderer);else if(w)for(h=_.E(w),w=
h.next();!w.done;w=h.next())if(w=w.value,w.commentsEntryPointHeaderRenderer)var v=w;else if(w.clarificationRenderer||w.infoPanelContainerRenderer||w.infoPanelContentRenderer||w.emergencyOneboxRenderer){f.push(w);var O=O||!!g}else w.limitedStateMessageRenderer?C=w:w.videoMetadataCarouselViewModel&&(Y=w);if(_.N("web_watch_merch_in_sd_when_ticket_shelf_present")&&P&&W){var k=P;P=void 0}if(r.provideWatchNextSecondaryResults){var Z,Cw,rR;r.JSC$20277_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
V==null?void 0:(Z=V.contents)==null?void 0:(Cw=Z.twoColumnWatchNextResults)==null?void 0:(rR=Cw.secondaryResults)==null?void 0:rR.secondaryResults)}if(r.JSC$20277_watchApi.getRoot().is==="ytd-watch-grid"){var EP,Pu;r.JSC$20277_watchApi.provideRenderingData("LIVE_CHAT",V==null?void 0:(EP=V.contents)==null?void 0:(Pu=EP.twoColumnWatchNextResults)==null?void 0:Pu.conversationBar)}var Wu,cu,OP,iU;(Z=V==null?void 0:(Wu=V.contents)==null?void 0:(cu=Wu.twoColumnWatchNextResults)==null?void 0:(OP=cu.secondaryResults)==
null?void 0:(iU=OP.secondaryResults)==null?void 0:iU.offerModule)&&(Z.donationShelfRenderer||Z.donationUnavailableRenderer)&&r.JSC$20277_watchApi.getRoot().is!=="ytd-watch-grid"&&(I=Z);Wu=r.JSC$20277_watchApi.getPlayerResponse();if(!Wu||!_.jAK(Wu.playabilityStatus,V==null?void 0:V.playerOverlays)){var oR;if(V==null?0:(oR=V.contents)==null?0:oR.singleColumnWatchNextResults){var vu,wB;var qT=V==null?void 0:(vu=V.contents.singleColumnWatchNextResults.results)==null?void 0:(wB=vu.results)==null?void 0:
wB.contents}else{var gB,C8,Es,J_;oR=!!(d==null?0:(gB=d[0])==null?0:(C8=gB.itemSectionRenderer)==null?0:(Es=C8.contents)==null?0:(J_=Es[0])==null?0:J_.backgroundPromoRenderer);var xC,r2;gB=!!(V==null?0:(xC=V.contents)==null?0:(r2=xC.twoColumnWatchNextResults)==null?0:r2.secondaryResults);oR&&!gB&&(qT=d)}}d=f[0];xC=f[1];O&&f.length===1&&(xC=d,d=void 0);r.JSC$20277_watchApi.provideRenderingData("PRIMARY_INFO",z);r.JSC$20277_watchApi.provideRenderingData("SECONDARY_INFO",g);r.JSC$20277_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
v);r.JSC$20277_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",Y);r.JSC$20277_watchApi.provideRenderingData("CLARIFICATION",d);r.JSC$20277_watchApi.provideRenderingData("RICH_METADATA",X);r.JSC$20277_watchApi.provideRenderingData("MERCH_SHELF",P);_.N("web_watch_merch_in_sd_when_ticket_shelf_present")&&r.JSC$20277_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",k);r.JSC$20277_watchApi.provideRenderingData("TICKET_SHELF",W);r.JSC$20277_watchApi.provideRenderingData("LIMITED_STATE",C);r.JSC$20277_watchApi.getRoot().is!==
"ytd-watch-grid"&&r.JSC$20277_watchApi.provideRenderingData("DONATION_SHELF",I);r.JSC$20277_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",qT);r.JSC$20277_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",xC);r.JSC$20277_watchApi.provideRenderingData("EXPANDABLE_METADATA",m);if(r.swatcherooProvideAllDataOnScheduledJob){var F9,SK,FX,iV,s7,W4;z=V==null?void 0:(F9=V.contents)==null?void 0:(SK=F9.twoColumnWatchNextResults)==null?void 0:(FX=SK.secondaryResults)==null?void 0:(iV=FX.secondaryResults)==
null?void 0:(s7=iV.results)==null?void 0:(W4=s7[0])==null?void 0:W4.richGridRenderer;r.JSC$20277_watchApi.provideRenderingData("RICH_GRID_RENDERER",z)}};
_.iJ.prototype.hasCompanionAds=function(r){var f,I;return(I=r==null?void 0:(f=r.adPlacements)==null?void 0:f.some(function(C){var Y,V,S,h;return(C==null?void 0:(Y=C.adPlacementRenderer)==null?void 0:(V=Y.renderer)==null?void 0:V.actionCompanionAdRenderer)||(C==null?void 0:(S=C.adPlacementRenderer)==null?void 0:(h=S.renderer)==null?void 0:h.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?I:!1};
var j6=function(r){if(!_.N("swaterdoo_ps_wn_handle_ks")){r.swatcherooProvideAllDataOnScheduledJob||gbd(r,3E3);var f=r.JSC$20277_watchApi.getPlayerResponse(),I,C,Y,V,S,h=(I=r.JSC$20277_watchApi.getWatchNextResponse())==null?void 0:(C=I.contents)==null?void 0:(Y=C.twoColumnWatchNextResults)==null?void 0:(V=Y.secondaryResults)==null?void 0:(S=V.secondaryResults)==null?void 0:S.offerModule;f=r.hasCompanionAds(f);var w,n;I=(h==null?void 0:(w=h.tvfilmOfferModuleRenderer)==null?void 0:w.clientShouldSuppressIfCompanionAdDisplayed)||
(h==null?void 0:(n=h.unlimitedOfferModuleRenderer)==null?void 0:n.suppressIfCompanionAds);w=f&&I;r.JSC$20277_watchApi.getRoot().is==="ytd-watch-grid"&&r.JSC$20277_watchApi.provideRenderingData("OFFER_MODULE",w?void 0:h)}},gbd=function(r,f){_.N("swatcheroo_pbs_load_grid")&&(r.provideRichGridJobId&&_.F_.cancelJob(r.provideRichGridJobId),r.provideRichGridJobId=_.aK(_.F_,function(){r.provideRichGridJobId=0;
var I,C,Y,V,S,h,w,n=(I=r.JSC$20277_watchApi.getWatchNextResponse())==null?void 0:(C=I.contents)==null?void 0:(Y=C.twoColumnWatchNextResults)==null?void 0:(V=Y.secondaryResults)==null?void 0:(S=V.secondaryResults)==null?void 0:(h=S.results)==null?void 0:(w=h[0])==null?void 0:w.richGridRenderer;n&&r.JSC$20277_watchApi.provideRenderingData("RICH_GRID_RENDERER",n)},f))},Med=function(r){var f,I;
_.x(function(C){if(C.nextAddress==1)return _.b(C,r.JSC$20277_watchApi.playerApi,2);f=C.yieldResult;I=function(){r.onPlaybackStart()};
f.addEventListener("onPlaybackStartExternal",I);r.addOnDisposeCallback(function(){f.removeEventListener("onPlaybackStartExternal",I)});
_.wO(C)})};
_.iJ.prototype.onPlaybackStart=function(){gbd(this)};_.Xv1=function(r){_.Mu.call(this);var f=this;this.JSC$20287_watchApi=r;r.playerApi.then(function(I){f.player=I});
this.gestures=new _.hw(this.JSC$20287_watchApi.getRoot(),r.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.Okd(_.K2().getState())&&_.P$(_.K2().getState())<=0)if(_.Ff(_.K2().getState())){var I;(I=f.player)==null||I.toggleFullscreen()}else _.Bj(f.JSC$20287_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
a_V(this)};
_.t(_.Xv1,_.Mu);var a_V=function(r){var f=_.wj(_.K2(),_.Ff,function(I){r.gestures&&r.gestures.update(I)});
r.addOnDisposeCallback(f);f=_.wj(_.K2(),_.P$,function(I){r.gestures&&(I>0?r.gestures.detach():r.gestures.attach())});
r.addOnDisposeCallback(f)};_.$OB=function(r){_.Mu.call(this);var f=this;this.JSC$20290_watchApi=r;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(r.subscribeToActiveChanged(function(I){f.onActiveChanged(I)}));
NTq(this)};
_.t(_.$OB,_.Mu);var FPB=function(r){if(_.N("swatcheroo_page_dispose_all_watch_data"))r.pageDisposalDataTypes=Object.values(Ous).filter(function(I){return I!=="PLAYLIST"});
else if(_.N("swatcheroo_page_dispose_rich_grid")){var f;(f=r.pageDisposalDataTypes)==null||f.push("RICH_GRID_RENDERER")}},NTq=function(r){_.N("swatcheroo_enable_ghost_cards")&&(FPB(r),r.JSC$20290_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.F_.cancelJob(r.clearDataJobId);
r.clearDataJobId=0}),r.runPageDisposeJob=function(){var f=_.a().resolve(_.y2).getDestinationPageType()==="watch";
r.clearDataJobId=_.aK(_.F_,r.runClearDataJob,f?0:_.Bw("web_watch_delay_page_dispose_ms",1E4))},r.runClearDataJob=function(){PYd(r)},r.runOnYtNavigateAwayFinish=function(){r.clearDataJobId&&(_.F_.cancelJob(r.clearDataJobId),r.clearDataJobId=0,PYd(r))},document.addEventListener("yt-navigate-finish",r.runOnYtNavigateAwayFinish),r.JSC$20290_watchApi.addPageDisposeJob(r.runPageDisposeJob),r.addOnDisposeCallback(function(){r.JSC$20290_watchApi.removePageDisposeJob(r.runPageDisposeJob);
r.JSC$20290_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",r.runOnYtNavigateAwayFinish)}))},PYd=function(r){r.pageDisposalDataTypes.forEach(function(f){r.JSC$20290_watchApi.provideRenderingData(f,void 0)});
r.clearDataJobId=0};
_.$OB.prototype.onActiveChanged=function(r){r&&((r=document.querySelector("#watch-page-skeleton"))&&_.bE(r),teB(this),document.body.removeAttribute("no-y-overflow"),_.mO("IS_SHELL_LOAD")&&_.iOp())};
var teB=function(r){_.x(function(f){if(f.nextAddress==1)return _.b(f,r.JSC$20290_watchApi.playerApi,2);_.ZN();_.wO(f)})};var TTs;TTs=_.N("kevlar_watch_while_counterfactual")?0:.25;_.RI=function(r){_.Mu.call(this);this.JSC$20293_watchApi=r;this.JSC$20293_watchWhileEnabled=_.N("kevlar_watch_while_v2");this.pipEnabled=_.N("web_enable_pip_on_miniplayer");cj2(this);WPY(this);LPB(this)};
_.t(_.RI,_.Mu);var cj2=function(r){r.JSC$20293_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){mOq(r)});
r.addOnDisposeCallback(function(){r.JSC$20293_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},WPY=function(r){var f,I;
_.x(function(C){if(C.nextAddress==1)return _.b(C,r.JSC$20293_watchApi.playerApi,2);f=C.yieldResult;I=function(){mOq(r)};
f.addEventListener("onCollapseMiniplayer",I);r.addOnDisposeCallback(function(){f.removeEventListener("onCollapseMiniplayer",I)});
_.wO(C)})},LPB=function(r){var f=r.JSC$20293_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&f&&r.JSC$20293_watchWhileEnabled&&(r.playerIntersectionObserver=new IntersectionObserver(function(I){r.handleIntersect(I)},{threshold:[TTs]}),r.playerIntersectionObserver.observe(f),r.addOnDisposeCallback(function(){var I;
(I=r.playerIntersectionObserver)==null||I.disconnect()}))},mOq=function(r){var f,I,C;
_.x(function(Y){if(Y.nextAddress==1){f=_.a().resolve(_.y2);I=f.data;C=_.JlR(I.response,I.playerResponse);_.xP().miniplayerButtonActivation=!0;if(r.pipEnabled)return _.xP().watchPipActivation=!0,Y.jumpTo(2);_.a().resolve(_.iO).collapse();return _.b(Y,_.xP().navigationFinishPromise,2)}if(Y.nextAddress!=4)return _.xP().currentEndpoint=C.watchEndpoint||null,_.b(Y,_.a().resolve(_.iO).activate(r.JSC$20293_watchApi.getElement("PLAYER"),C,I),4);_.xP().userActivation=!0;_.wO(Y)})};
_.RI.prototype.handleIntersect=function(r){eJ3(this,r[r.length-1])};
var eJ3=function(r,f){r.watchWhileJobId&&_.F_.cancelJob(r.watchWhileJobId);r.watchWhileJobId=_.F_.addLowPriorityJob(function(){var I,C;return _.x(function(Y){if(Y.nextAddress==1)return r.watchWhileJobId=void 0,I=_.a().resolve(_.iO),f.intersectionRatio>TTs?I.isMiniplayerActive()?_.b(Y,I.deactivate(),0):Y.jumpTo(0):(C=!I.isMiniplayerActive())?_.b(Y,Jji(r),5):Y.jumpTo(4);Y.nextAddress!=4&&(C=Y.yieldResult);if(!C)return Y.jumpTo(0);_.xP().watchWhileActivation=!0;return _.b(Y,jUd(r),0)})},100)},Jji=function(r){return _.x(function(f){return f.nextAddress==
1?_.N("kevlar_watch_while_paused")?f.return(!0):_.b(f,r.isPlayerPlaying(),2):f.return(f.yieldResult)})};
_.RI.prototype.isPlayerPlaying=function(){var r=this,f;return _.x(function(I){if(I.nextAddress==1)return _.b(I,r.JSC$20293_watchApi.playerApi,2);f=I.yieldResult;return I.return(f.getPlayerStateObject().isPlaying)})};
var jUd=function(r){var f,I;return _.x(function(C){f=_.a().resolve(_.y2).data;I=_.JlR(f.response,f.playerResponse);_.xP().currentEndpoint=I.watchEndpoint||null;return _.b(C,_.a().resolve(_.iO).activate(r.JSC$20293_watchApi.getElement("PLAYER"),I,f),0)})};_.RJY=function(r){_.Mu.call(this);this.JSC$20297_watchApi=r;Ha2(this);ias(this)};
_.t(_.RJY,_.Mu);var ias=function(r){var f,I;_.x(function(C){if(C.nextAddress==1)return _.b(C,r.JSC$20297_watchApi.playerApi,2);f=C.yieldResult;I=function(Y){var V;Y.sessionData&&Y.sessionData.itct&&(V=Y.sessionData.itct);var S=Y.watchEndpoint;if(S&&Y.sessionData&&Y.sessionData.autonav)S=_.rpw(S,V);else{var h;S=_.QR(Y.videoId,(h=Y.listId)!=null?h:void 0,V)}V={endpoint:S};Y.sessionData&&(V.tempData=Y.sessionData);r.JSC$20297_watchApi.dispatchEvent("yt-navigate",V)};
f.addEventListener("onPlayVideo",I);r.addOnDisposeCallback(function(){f.removeEventListener("onPlayVideo",I)});
_.wO(C)})},Ha2=function(r){var f=function(I){r.onYtNavigate(I)};
r.JSC$20297_watchApi.getRoot().addEventListener("yt-navigate",f);r.addOnDisposeCallback(function(){r.JSC$20297_watchApi.getRoot().removeEventListener("yt-navigate",f)})};
_.RJY.prototype.onYtNavigate=function(r){var f=this,I,C,Y,V,S,h,w,n,d;return _.x(function(z){if(z.nextAddress==1){if(!((I=r.detail)==null?0:(C=I.endpoint)==null?0:C.watchEndpoint))return z.return();Y=r.detail.endpoint.watchEndpoint;V=f.JSC$20297_watchApi.getWatchNextResponse();h=_.F((S=V)==null?void 0:S.currentVideoEndpoint,_.vj);if(!h)return z.return();if(Y.videoId!==h.videoId||Y.playlistId&&Y.playlistId!==h.playlistId||typeof Y.startTimeSeconds!=="number")return z.jumpTo(0);r.stopPropagation();
(w=_.N("kevlar_watch_while_v2")&&!_.N("kevlar_watch_while_counterfactual"))&&_.a().resolve(_.iO).isMiniplayerActive()||f.JSC$20297_watchApi.scrollWatchTo(0,!0);return _.b(z,f.JSC$20297_watchApi.playerApi,3)}n=z.yieldResult;d=Y.startTimeSeconds;n.seekTo(d,void 0,void 0,void 0,84);n.wakeUpControls();d<n.getDuration()&&n.playVideo();_.wO(z)})};_.KP7=function(r){_.Mu.call(this);var f=this;this.JSC$20300_watchApi=r;var I=this.JSC$20300_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){vbU(f)});
this.addOnDisposeCallback(function(){f.JSC$20300_watchApi.unsubscribeByKey(I)});
vbU(this)};
_.t(_.KP7,_.Mu);var vbU=function(r){var f=r.JSC$20300_watchApi.getWatchNextResponse();if(f){var I,C=[].concat(_.Na((I=f==null?void 0:f.engagementPanels)!=null?I:[]));C.unshift.apply(C,_.Na(yjV(f)));r.JSC$20300_watchApi.provideRenderingData("ENGAGEMENT_PANELS",C)}},UOU=function(r){var f,I,C,Y=(f=r.engagementPanels)==null?void 0:(I=f.find(function(X){var P;
return((P=X.engagementPanelSectionListRenderer)==null?void 0:P.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(C=I.engagementPanelSectionListRenderer.content)==null?void 0:C.structuredDescriptionContentRenderer,V;
if(_.F(Y==null?void 0:(V=Y.items)==null?void 0:V.find(function(X){return!!_.F(X,NCq)}),NCq))return!0;
var S,h,w,n;if(r=(((S=r.contents)==null?void 0:(h=S.twoColumnWatchNextResults)==null?void 0:(w=h.results)==null?void 0:(n=w.results)==null?void 0:n.contents)||[]).find(function(X){return X.videoPrimaryInfoRenderer})){var d,z,g;
return(((d=r.videoPrimaryInfoRenderer)==null?void 0:(z=d.videoActions)==null?void 0:(g=z.menuRenderer)==null?void 0:g.flexibleItems)||[]).some(function(X){X=_.F(X,_.a4q);if(!X)return!1;var P,W;X=(P=X.topLevelButton)==null?void 0:(W=P.buttonViewModel)==null?void 0:W.onTap;if(!X)return!1;P=_.aB(X);if(!P)return!1;var m;return((m=_.F(P,_.Wa))==null?void 0:m.panelIdentifier)==="PAyouchat"})}return!1},yjV=function(r){var f=[];
if(!_.N("web_watch_inject_placeholder_fantasy_panel_killswitch")){var I,C,Y,V=(I=r.engagementPanels)==null?void 0:(C=I.find(function(h){var w;return((w=h.engagementPanelSectionListRenderer)==null?void 0:w.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Y=C.engagementPanelSectionListRenderer.content)==null?void 0:Y.structuredDescriptionContentRenderer,S;
_.F(V==null?void 0:(S=V.items)==null?void 0:S.find(function(h){return!!_.F(h,uj2)}),uj2)&&(I=_.$LR("PAsports_fantasy"),I.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",f.push(I))}UOU(r)&&(r=_.$LR("PAyouchat"),r.engagementPanelSectionListRenderer.targetId="PAyouchat",r.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",f.push(r));
return f};_.Oaq=function(r){_.Mu.call(this);this.JSC$20303_watchApi=r;sU6(this)};
_.t(_.Oaq,_.Mu);var sU6=function(r){r.JSC$20303_watchApi.registerActionHandler("yt-loop-command",function(f){ob2(r,f)});
r.JSC$20303_watchApi.registerActionHandler("yt-repeat-chapter-command",function(f){QUB(r,f)});
r.addOnDisposeCallback(function(){r.JSC$20303_watchApi.unregisterActionHandler("yt-loop-command");r.JSC$20303_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},ob2=function(r,f){var I;
_.x(function(C){if(C.nextAddress==1)return _.b(C,r.JSC$20303_watchApi.playerApi,2);I=C.yieldResult;_.F(f,rDB).loop?(I.setLoopRange({startTimeMs:Number(_.F(f,rDB).startTimeMs),endTimeMs:Number(_.F(f,rDB).endTimeMs),postId:_.F(f,rDB).postId,type:"clips"}),I.playVideo()):I.setLoopRange(null);_.wO(C)})},QUB=function(r,f){var I,C;
_.x(function(Y){if(Y.nextAddress==1)return _.b(Y,r.JSC$20303_watchApi.playerApi,2);I=Y.yieldResult;C=_.F(f,lls).repeat;C==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(I.setLoopRange({startTimeMs:Number(_.F(f,lls).startTimeMs),endTimeMs:Number(_.F(f,lls).endTimeMs),type:"repeatChapter"}),I.playVideo()):C==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&I.setLoopRange(null);_.wO(Y)})};_.Zas=function(r){_.Mu.call(this);this.JSC$20308_watchApi=r;Aj1(this)};
_.t(_.Zas,_.Mu);var Aj1=function(r){r.JSC$20308_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(f){GP1(r,f)});
r.addOnDisposeCallback(function(){r.JSC$20308_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},GP1=function(r,f){var I,C,Y,V,S,h,w,n,d,z,g;
_.x(function(X){if(X.nextAddress==1)return _.b(X,r.JSC$20308_watchApi.playerApi,2);I=X.yieldResult;if(V=(Y=(C=_.F(f,Vw1))==null?void 0:C.highlightedMenuItemKey)!=null?Y:"")(h=(S=I).highlightSettingsMenuItem)==null||h.call(S,V);if(d=(n=(w=_.F(f,Vw1))==null?void 0:w.openMenuItemKey)!=null?n:"")(g=(z=I).openSettingsMenuItem)==null||g.call(z,d);_.wO(X)})};var kPs=_.rG("/youtube/app/watch/player_state","playerStateEntity");_.q2Y=function(r){_.Mu.call(this);this.JSC$20311_watchApi=r;BTq(this)};
_.t(_.q2Y,_.Mu);var uy6=function(r){switch(r){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"}},BTq=function(r){var f,I;
_.x(function(C){if(C.nextAddress==1)return _.b(C,r.JSC$20311_watchApi.playerApi,2);f=C.yieldResult;I=function(Y){r.onPlayerStateChange(Y)};
f.addEventListener("onStateChange",I);r.addOnDisposeCallback(function(){f.removeEventListener("onStateChange",I)});
_.wO(C)})};
_.q2Y.prototype.onPlayerStateChange=function(r){var f=this,I,C;return _.x(function(Y){if(Y.nextAddress==1)return _.b(Y,f.JSC$20311_watchApi.playerApi,2);I=Y.yieldResult;C=I.getVideoData().video_id;_.Lx().dispatch(_.hv("playerStateEntity",kPs,{key:kPs,playerState:uy6(r),videoId:C}));_.wO(Y)})};_.DO6=function(r){_.Mu.call(this);var f=this;this.JSC$20315_watchApi=r;_.a().resolve(_.WP).setPlayer(this.JSC$20315_watchApi.getElement("PLAYER"));r=this.JSC$20315_watchApi.subscribeToActiveChanged(function(I){f.onActiveChanged(I)});
this.addOnDisposeCallback(r)};
_.t(_.DO6,_.Mu);_.DO6.prototype.onActiveChanged=function(r){var f=this,I=_.a().resolve(_.WP),C=function(){rE6(f)};
r?(r=this.JSC$20315_watchApi.getElement("PLAYLIST_PANEL"))?(I.setPlaylistComponent(r),I.addEventListener("yt-playlist-data-updated",C),this.addOnDisposeCallback(function(){I.removeEventListener("yt-playlist-data-updated",C)}),rE6(this)):_.Hw(Error("im")):(I.removeEventListener("yt-playlist-data-updated",C),I.cancelVideoSkip())};
var rE6=function(r){var f=_.a().resolve(_.WP);r.JSC$20315_watchApi.provideRenderingData("PLAYLIST",f.getPlaylistData())};_.vN=function(r){_.Mu.call(this);var f=this;this.JSC$20318_watchApi=r;this.onPageScroll=function(){f.scrollThrottle.fire();f.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.Gk(this.onThrottledScroll,200,this);_.V$(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.Gk(this.onMastheadThrottledScroll,50,this);_.V$(this,this.mastheadScrollThrottle);this.animation=new _.PT(function(I){f.JSC$20318_watchApi.getRoot().setScrollTop(I)});
r=_.wj(_.K2(),_.Ff,function(){fXi(f)});
this.addOnDisposeCallback(r);IXp(this);CP7(this);this.onThrottledScroll()};
_.t(_.vN,_.Mu);
var fXi=function(r){var f=r.JSC$20318_watchApi.getRoot();!r.pageScrollElement&&f.pageScrollElement?(r.pageScrollElement=f.pageScrollElement,f.pageScrollElement.addEventListener("scroll",r.onPageScroll),r.addOnDisposeCallback(function(){r.pageScrollElement&&r.pageScrollElement.removeEventListener("scroll",r.onPageScroll)})):r.pageScrollElement&&!f.pageScrollElement&&(r.pageScrollElement.removeEventListener("scroll",r.onPageScroll),r.pageScrollElement=void 0)},IXp=function(r){window.addEventListener("scroll",r.onPageScroll);
r.addOnDisposeCallback(function(){window.removeEventListener("scroll",r.onPageScroll)})},CP7=function(r){r.JSC$20318_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(f){a:{var I;
if(I=r.JSC$20318_watchApi.getRoot().contains(f)&&!r.animation.isAnimating()){I=f.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var C,Y,V=(f==null?void 0:(C=f.parentElement)==null?void 0:(Y=C.parentElement)==null?void 0:Y.id)==="fixed-secondary";I=!(I&&V)}if(I){if(_.N("kevlar_watch_scroll_manager_absolute_offset_killswitch"))C=f.offsetTop;else for(C=0,Y=f;Y!==null;)C+=Y.offsetTop,C-=Y.scrollTop,Y=Y.offsetParent;Y=C;C=Y-24;f=Y+f.offsetHeight+24;Y=r.JSC$20318_watchApi.getRoot().getPageScrollingElement();
I=r.JSC$20318_watchApi.getRoot().getScrollTop();V=I+Y.clientHeight-56;if(C<I+56)f=C-56;else if(f>V)f-=Y.clientHeight;else break a;r.scrollWatchTo(Math.max(0,f),!0)}}});
r.addOnDisposeCallback(function(){r.JSC$20318_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.vN.prototype.onThrottledScroll=function(){var r=_.K2(),f=r.dispatch,I=this.JSC$20318_watchApi.getRoot().getScrollTop();f.call(r,_.kI({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:I}}))};
_.vN.prototype.onMastheadThrottledScroll=function(){this.JSC$20318_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20318_watchApi.getRoot().getScrollTop())};
_.vN.prototype.scrollWatchTo=function(r,f){(f===void 0?0:f)?this.animation.start(this.JSC$20318_watchApi.getRoot().getScrollTop(),Math.max(0,r),500):this.JSC$20318_watchApi.getRoot().setScrollTop(r)};_.V76=function(r){_.Mu.call(this);var f=this;this.JSC$20321_watchApi=r;var I=this.JSC$20321_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Yz6(f)}),C=this.JSC$20321_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){lXs(f)});
this.addOnDisposeCallback(function(){f.JSC$20321_watchApi.unsubscribeByKey(I);f.JSC$20321_watchApi.unsubscribeByKey(C)});
Yz6(this);lXs(this)};
_.t(_.V76,_.Mu);
var Yz6=function(r){var f,I,C,Y=(C=(f=r.JSC$20321_watchApi.getPlayerResponse())==null?void 0:(I=f.videoDetails)==null?void 0:I.title)!=null?C:"";r.JSC$20321_watchApi.dispatchEvent("yt-update-title",Y)},lXs=function(r){var f,I,C,Y,V,S,h,w=(h=((S=(f=r.JSC$20321_watchApi.getWatchNextResponse())==null?void 0:(I=f.contents)==null?void 0:(C=I.twoColumnWatchNextResults)==null?void 0:(Y=C.results)==null?void 0:(V=Y.results)==null?void 0:V.contents)!=null?S:[]).find(function(n){return!!n.videoPrimaryInfoRenderer}))==null?
void 0:h.videoPrimaryInfoRenderer;
(f=_.Rr(w==null?void 0:w.title))&&r.JSC$20321_watchApi.dispatchEvent("yt-update-title",f)};_.Sz1=function(r){_.Mu.call(this);this.JSC$20324_watchApi=r;EQ1(this)};
_.t(_.Sz1,_.Mu);var EQ1=function(r){var f,I;_.x(function(C){if(C.nextAddress==1)return _.b(C,r.JSC$20324_watchApi.playerApi,2);f=C.yieldResult;I=function(){r.onYpcContentRequest()};
f.addEventListener("onYpcContentRequest",I);r.addOnDisposeCallback(function(){f.removeEventListener("onYpcContentRequest",I)});
_.wO(C)})};
_.Sz1.prototype.onYpcContentRequest=function(){var r,f,I,C,Y,V=(r=this.JSC$20324_watchApi.getWatchNextResponse())==null?void 0:(f=r.contents)==null?void 0:(I=f.twoColumnWatchNextResults)==null?void 0:(C=I.secondaryResults)==null?void 0:(Y=C.secondaryResults)==null?void 0:Y.offerModule,S,h,w,n;r=(n=(w=(h=(S=V==null?void 0:V.episodeOfferModuleRenderer)!=null?S:V==null?void 0:V.movieOfferModuleRenderer)!=null?h:V==null?void 0:V.unlimitedOfferModuleRenderer)!=null?w:V==null?void 0:V.liveOfferModuleRenderer)!=
null?n:V==null?void 0:V.tvfilmOfferModuleRenderer;var d,z,g;V=(g=V==null?void 0:(d=V.tvfilmOfferModuleRenderer)==null?void 0:(z=d.actionButtons)==null?void 0:z.length)!=null?g:0;z=Math.max(V-1,0);var X,P,W;d=(W=r==null?void 0:(X=r.offerButton)==null?void 0:X.buttonRenderer)!=null?W:r==null?void 0:(P=r.actionButtons)==null?void 0:P[z].buttonRenderer;var m,v;(X=(v=(m=d==null?void 0:d.navigationEndpoint)!=null?m:d==null?void 0:d.serviceEndpoint)!=null?v:d==null?void 0:d.command)&&_.qv.instance.resolveCommand(X)};
}catch(e){_._DumpException(e)}
try{
var kUU,Add,oBs;_.Q17=function(){var r=_.X0.clone(Ofq),f;return(new _.lz(function(I,C){r.onSuccess=function(Y){_.U7K(Y)?I(new oBs(Y)):C(new _.UI("Request failed, status="+_.DY(Y),"net.badstatus",Y))};
r.onError=function(Y){C(new _.UI("Unknown request error","net.unknown",Y))};
r.onTimeout=function(Y){C(new _.UI("Request timed out","net.timeout",Y))};
f=_.lh("//googleads.g.doubleclick.net/pagead/id",r)})).thenCatch(function(I){if(I instanceof _.oV){var C;
(C=f)==null||C.abort()}return _.h3(I)})};
_.Zf7=function(r){a:{var f="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(f="EMBEDDED_PLAYER_MODE_PFL");var I=r.raw_embedded_player_response;if(!I&&(r=r.embedded_player_response))try{I=JSON.parse(r)}catch(Y){break a}if(I)b:for(var C in Add)if(Add[C]==I.embeddedPlayerMode){f=Add[C];break b}}return f==="EMBEDDED_PLAYER_MODE_PFL"};
_.GUp=function(){if(_.N("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.b$R())return Error("pf");var r=_.Lz("PLAYER_VARS",{});if(_.X0.get(r,"privembed",!1)=="1")return Error("qf");if(_.Zf7(r))return Error("rf")};
kUU=function(r){switch(r){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:_.Sd(r,"unknown result type")}};
_.Blp=function(r,f,I){f=_.w2q[f];I={detected:r===0,source:f.r8j,detectionResult:kUU(r),contentCpn:I};_.NW("biscottiBasedDetection",I);_.ZcB.increment(f.r8j,r);f.ufj!==void 0&&_.Ww("CATSTAT",_.xzR(r,f))};
_.sI=function(r,f){var I={};I.key=r;I.value=f;return _.vnl().then(function(C){return new Promise(function(Y,V){try{var S=C.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(I);S.onsuccess=function(){Y()};
S.onerror=function(){V()}}catch(h){V(h)}})})};
_.u86=function(){var r=_.Bw("user_engagement_experiments_rate_limit_ms"),f=qHp.get("last-user-engagement-exp-trigger-timestamp");return!f||(0,_.Ad)()>=f+r?(qHp.set("last-user-engagement-exp-trigger-timestamp",(0,_.Ad)()),!0):!1};
_.OI=function(r,f,I,C,Y){f=f===void 0?null:f;I=I===void 0?null:I;C=C===void 0?null:C;Y=Y===void 0?null:Y;r={youThereEventType:r};I&&(r.lactThresholdMs=I.lactThresholdMs,r.mediaPosSec=I.promptDelaySec,r.lactServerRequestMs=I.lactServerRequestMs,r.triggerReason=I.triggerReason);Y!=null&&(r.renderingMediaPosSec=Math.round(Y));f||(f=_.t1());f&&(r.clientScreenNonce=f);C&&(r.clientPlaybackNonce=C);_.NW("youThere",r)};
Add={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"};oBs=function(r){this.xhr=r};
_.UI=function(r,f,I){_.fw.call(this,r+", errorCode="+f);this.errorCode=f;this.xhr=I;this.name="PromiseAjaxError"};
_.t(_.UI,_.fw);var Ofq={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var qHp=new _.WW("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.tjd=function(r){return _.kI({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:r})};
}catch(e){_._DumpException(e)}
try{
var sO,aXY,X$i,NEs,$x3,t76,H52,i53,Rw6,Fzs,PPp,Lz6,Wz6,yEi;_.gQ7=function(){var r=window.location.hash;r.charAt(0)==="#"&&(r=r.charAt(1)==="!"?r.substring(2):r.substring(1));return _.vw(r)};
sO=function(r,f,I){var C;return _.x(function(Y){if(Y.nextAddress==1)return _.b(Y,f(),2);C=Y.yieldResult;I(C,r);_.wO(Y)})};
aXY=function(){return _.x(function(r){return r.nextAddress==1?_.b(r,(_.GUp()!==void 0?_.h3(Error("sf")):_.Q17()).then(function(){return 1},function(f){if(f.message==="Biscotti id is disabled")return 3;
_.t7("Failed fetching bid");return 0}),2):r.return(r.yieldResult)})};
X$i=function(){return _.qnm(_.Ra)};
NEs=function(){return _.uTm()===0?0:_.DbE()};
$x3=function(){return _.OhR(_.aGd([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"]]]))};
t76=function(){for(var r=function(Y){return _.gJd(Y)},f=[Fzs,
PPp],I=2,C=0;C<f.length&&(I=_.OhR(_.aGd(f[C],r)),I!==0);C++);return I};
_.TEi=function(r){_.x(function(f){switch(f.nextAddress){case 1:return _.b(f,sO("b.f_",aXY,r),2);case 2:return _.b(f,sO("j.s_",_.UbK,r),3);case 3:return _.b(f,sO("r.s_",_.vJR,r),4);case 4:return _.b(f,sO("e.h_",t76,r),5);case 5:if(!_.N("ab_det_sc_inj")){f.jumpTo(6);break}return _.b(f,sO("s.i_",_.kwP,r),6);case 6:if(_.N("ab_deg_unex_thr")){f.jumpTo(8);break}return _.b(f,sO("a.o_",_.Zhw,r),8);case 8:if(_.N("ks_get_o_pp")){f.jumpTo(10);break}return _.b(f,sO("g.o_",_.AKR,r),10);case 10:if(_.N("ks_det_gpbl")){f.jumpTo(12);
break}return _.b(f,sO("p.i_",_.Q_d,r),12);case 12:return _.b(f,sO("f.i_",_.TQl,r),14);case 14:return _.b(f,sO("a.b_",_.ihR,r),15);case 15:return _.b(f,sO("p.m_",_.LgP,r),16);case 16:if(!_.N("ab_det_el_h_v2")){f.jumpTo(17);break}return _.b(f,sO("n.h_",$x3,r),17);case 17:return _.b(f,sO("o.p_",X$i,r),19);case 19:if(_.N("ab_det_apm"))return _.b(f,sO("o.a_",NEs,r),0);f.jumpTo(0)}})};
_.cEs=function(r,f){r={videoId:r};f&&(r.playlistId=f);return r};
_.mxV=function(){if(_.b$R()){var r=_.Lz("PLAYER_VARS",{});if(_.X0.get(r,"privembed",!1)!="1"&&!_.Zf7(r)){var f=function(){Wz6=!0;"google_ad_status"in window?_.Ww("DCLKSTAT",1):_.Ww("DCLKSTAT",2)};
try{_.m0("//static.doubleclick.net/instream/ad_status.js",f)}catch(I){}Lz6.push(_.F_.addLowPriorityJob(function(){if(!(Wz6||"google_ad_status"in window)){try{_.YaK("//static.doubleclick.net/instream/ad_status.js",f)}catch(I){}Wz6=!0;_.Ww("DCLKSTAT",3)}},5E3))}}};
_.ewq=function(r,f){r=r.width-_.L_6();return Math.max(_.Re,Math.min(_.P9d,_.Re+(r-(_.iP+_.Re+_.j7+2*_.j7+f))))};
_.OO=function(r,f,I){I=I===void 0?!1:I;var C=Math.max(r.width,_.FEB);if(_.N("kevlar_watch_feed_big_thumbs")&&r.width>=1550-_.$_()&&r.height>=800)C-=_.WE6;else if(r.width>=_.H$){var Y=_.iP+_.Re+_.j7;_.N("kevlar_watch_feed_big_thumbs")&&(Y=_.cD7);C-=Y}else C-=_.iP;C=Math.min(C,_.tw1);Y=240;I&&(Y=380);f<.5624||(!_.N("kevlar_watch_flexy_disable_small_window_sizing")&&(r.height<630&&r.width>=657||r.height>=630&&r.width>=_.H$&&r.width<1327)?Y=360:!_.N("kevlar_watch_flexy_disable_large_window_sizing")&&
r.height>=630&&r.width>=1327&&(Y=480));var V=Math.min(C*f,r.height-(56+_.$Eq+_.TCs));V=Math.max(V,Y);f<1?C=V/f:r.width>=_.H$&&(C=_.OO(r,.5625,I).width);return new _.EZ(Math.round(C),Math.round(V))};
_.JE6=function(r){var f=0;r.indexOf("h")!=-1&&(r=r.split("h"),f=r[0]*60*60,r=r[1]);r.indexOf("m")!=-1&&(r=r.split("m"),f=r[0]*60+f,r=r[1]);r.indexOf("s")!=-1?(r=r.split("s"),f=r[0]*1+f):f=r*1+f;return f};
_.je2=function(){_.Bw("service_worker_push_logged_out_prompt_watches")!=-1&&_.og("WatchCount").then(function(r){r>=100||_.sI("WatchCount",r+1)})};
H52=function(r){var f=r.externalVideoId||"";return f?(_.N("webfe_watch_shorts_canonical_url_fix")||_.Lz("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&r.isShortsEligible?"https://www.youtube.com/shorts/"+f:"https://www.youtube.com/watch?v="+f:""};
i53=function(r){var f=[];r.viewCount&&f.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:r.viewCount});r.likeCount&&f.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:r.likeCount});return f};
Rw6=function(r){var f,I,C={"@context":"https://schema.org","@type":"VideoObject",description:_.Rr(r.description),duration:"PT"+(r.lengthSeconds||"0")+"S",embedUrl:r.embed?r.embed.iframeUrl:"",name:_.Rr(r.title),thumbnailUrl:((f=r.thumbnail)==null?void 0:(I=f.thumbnails)==null?void 0:I.map(function(d){return d&&d.url||""}))||[],
uploadDate:r.publishDate};_.N("mweb_video_schema_id_killswitch")||(C["@id"]=H52(r));f=i53(r);f.length&&(C.interactionStatistic=f);r.category&&(C.genre=r.category);r.ownerChannelName&&(C.author=r.ownerChannelName);r.liveBroadcastDetails&&(C.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:r.liveBroadcastDetails.startTimestamp,endDate:r.liveBroadcastDetails.endTimestamp}]);if(r.learningResource){r=r.learningResource;C["@type"]=["VideoObject","LearningResource"];var Y;if((Y=r.learningResourceType)==
null?0:Y.length)C.learningResourceType=r.learningResourceType[0];var V;if((V=r.educationalAlignment)==null?0:V.length)C.educationalAlignment={"@type":"AlignmentObject",targetName:r.educationalAlignment[0]};var S;if((S=r.educationalLevel)==null?0:S.length){Y=r.educationalLevel[0];var h;if((h=r.educationalLevelCountry)==null?0:h.length)Y+=" ("+r.educationalLevelCountry+")";C.educationalLevel=Y}var w,n;if(((w=r.learningResourceType)==null?0:w.length)&&r.learningResourceType[0]==="Problem walkthrough"&&
((n=r.problemDescriptions)==null?0:n.length))for(C.hasPart=[],h=_.E(r.problemDescriptions),w=h.next();!w.done;w=h.next())Y=w.value,w=Y.problemDescriptionText,n=Y.startOffset,Y=Y.url,w&&n!==void 0&&Y&&C.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:w,text:w,startOffset:n,url:Y})}return C};
_.vQY=function(r){return _.kI({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:r}})};
Fzs=[["cmltYXJ5I3hvZzd2cnhlN2xyMnA=",null],[null,["LXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjZ2FwanJhZGRsdnM1eXRk","Mml5c3R5bGUtc2NvcGUjdnF2MGxjc256"]],["MWphOWRqa21hc3RoZWFkLWFkI3VubTE=",["Y2gtZ3JpZC1yZW5kZXJlciN1bWpmM256YTN0Mjh5dGQtcmk="]],[null,["Y2gtZ3JpZC1yZW5kZXJlciM3MGtpemx5Z3BxMGt5dGQtcmk=","ODRzc3R5bGUtc2NvcGUjbHFwbnhqcnNk"]],[null,["by1yZW5kZXJlciN1bjRkeXh2YjFoa2x5dGQtYmFubmVyLXByb20=","ODN0c3R5bGUtc2NvcGUjczF1NzV5dmhv"]],[null,["eXRkLWFkLXNsb3QtcmVuZGVyZXIjcTM4Zmo5b2Y4dDJt"]]];
PPp=[["N25kaWdveXBsYXllci1hZHMjdWRmZWc=",null]];Lz6=[];Wz6=!1;_.KzY=["engagement-panel-ads"];yEi=new _.q("updateSentimentBarStateCommand");_.UxV=new _.q("showSurveyCommand");_.oI=new _.q("changeMarkersVisibilityCommand");var O5q,oQi,GV6,Z5Y,AE6,Qn;_.sep=function(r,f){this.playerProvider_=r;this.actionSenderElement_=f;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.sep.prototype.reset=function(){O5q(this);this.isUserPredictedAbsent_=!1};
O5q=function(r,f){!r.youThereData_||r.showWarningJob_||f!==void 0&&f||(_.OI("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.t1(),r.youThereData_,r.clientPlaybackNonce_),_.$l());_.F_.cancelJob(r.showWarningJob_);r.showWarningJob_=0;_.F_.cancelJob(r.showBlockingWarningJob_);r.showBlockingWarningJob_=0;_.F_.cancelJob(r.pausePlaybackJob_);r.pausePlaybackJob_=0;r.youThereData_=null;r.clientPlaybackNonce_=void 0;r.inYouThereFlow_=!1};
_.Qe6=function(r,f){var I,C,Y;_.x(function(V){if(V.nextAddress==1)return r.reset(),_.b(V,r.playerProvider_().getPlayerPromise(),2);I=V.yieldResult;r.clientPlaybackNonce_=I.getVideoData().cpn;r.youThereData_=f.configData.youThereData;if(!r.youThereData_)return V.return();if(r.youThereData_.triggerReason&&r.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.u86())return _.OI("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.t1(),r.youThereData_,r.clientPlaybackNonce_),V.return();C=r.youThereData_.promptDelaySec;
Y=I.getCurrentTime();r.showWarningJob_=_.F_.addLowPriorityJob(function(){return _.x(function(S){r.showWarningJob_=0;return _.b(S,oQi(r),0)})},Math.max(C-Y,0)*1E3);
_.wO(V)})};
oQi=function(r){var f,I,C,Y,V,S;return _.x(function(h){if(h.nextAddress==1)return _.b(h,r.playerProvider_().getPlayerPromise(),2);if(h.nextAddress!=3)return f=h.yieldResult,I=f.getCurrentTime(),_.b(h,AE6(r),3);C=h.yieldResult;if(!C||!r.youThereData_)return h.return();if(_.N("check_user_lact_at_prompt_shown_time_on_web")&&(Y=parseInt(r.youThereData_.lactThresholdMs,10),_.Zs()<Y))return _.OI("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.t1(),r.youThereData_,r.clientPlaybackNonce_),h.return();if(r.youThereData_.playbackPauseDelayMs<=
0)return Z5Y(r),h.return();!_.N("external_fullscreen")&&(V=_.Qw())&&(r.ignoreFullscreenExitUserActivity_=!0,_.F_.addLowPriorityJob(function(){r.ignoreFullscreenExitUserActivity_=!1},2E3),_.A1(V));
r.youThereData_.showToastWarningPrompt&&(Qn(r,r.youThereData_.showWarningActions),r.inYouThereFlow_=!0,_.OI("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.t1(),r.youThereData_,r.clientPlaybackNonce_,I),_.OI("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.t1(),r.youThereData_,r.clientPlaybackNonce_,I));S=0;r.youThereData_.blockingPromptDelayMs&&(S=r.youThereData_.blockingPromptDelayMs);r.showBlockingWarningJob_=_.F_.addLowPriorityJob(function(){return _.x(function(w){r.showBlockingWarningJob_=0;return _.b(w,
GV6(r),0)})},S);
_.wO(h)})};
GV6=function(r){var f,I,C;return _.x(function(Y){if(Y.nextAddress==1)return _.b(Y,AE6(r),2);f=Y.yieldResult;if(!r.youThereData_)return Y.return();f&&(r.youThereData_.showBlockingWarningAction&&(_.OI("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.t1(),r.youThereData_,r.clientPlaybackNonce_),(I=_.F(r.youThereData_.showBlockingWarningAction,_.Il))?Qn(r,I.commands):Qn(r,[r.youThereData_.showBlockingWarningAction]),r.inYouThereFlow_=!0),C=r.youThereData_.playbackPauseDelayMs,r.pausePlaybackJob_=
_.F_.addLowPriorityJob(function(){return _.x(function(V){r.pausePlaybackJob_=0;return _.b(V,Z5Y(r),0)})},C));
_.wO(Y)})};
Z5Y=function(r){var f;return _.x(function(I){if(I.nextAddress==1)return _.b(I,AE6(r),2);f=I.yieldResult;if(!r.youThereData_)return I.return();f&&(_.OI("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.t1(),r.youThereData_,r.clientPlaybackNonce_),Qn(r,r.youThereData_.showPausedActions),r.inYouThereFlow_=!0);_.wO(I)})};
_.sep.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var r=_.F(this.youThereData_.userActiveDuringFlowAction,_.Il);r?Qn(this,r.commands):Qn(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.OI("YOU_THERE_EVENT_TYPE_LACT_RESET",_.t1(),this.youThereData_,this.clientPlaybackNonce_),_.$l());O5q(this,!0)}_.kV3(this,!1)};
_.BE6=function(r){_.OI("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.t1(),r.youThereData_,r.clientPlaybackNonce_)};
AE6=function(r){var f,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,r.playerProvider_().getPlayerPromise(),2);f=C.yieldResult;I=f.getPlayerState();return C.return(I==-1||I==1||I==3)})};
_.kV3=function(r,f){var I;_.x(function(C){if(C.nextAddress==1){if(r.isUserPredictedAbsent_==f)return C.jumpTo(0);r.isUserPredictedAbsent_=f;return _.b(C,r.playerProvider_().getPlayerPromise(),3)}I=C.yieldResult;I.setUserEngagement(f);f&&_.OI("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.t1(),r.youThereData_,r.clientPlaybackNonce_);_.wO(C)})};
Qn=function(r,f){if(_.N("handle_service_request_actions")||_.N("kevlar_youthere_service_endpoint_actions_killswitch"))_.rX(r.actionSenderElement_,f,r.actionSenderElement_);else{f=_.E(f);for(var I=f.next();!I.done;I=f.next())I=I.value,I.commandMetadata&&I.commandMetadata.webCommandMetadata&&I.commandMetadata.webCommandMetadata.sendPost?_.Do(r.actionSenderElement_,[I]):_.rX(r.actionSenderElement_,[I],r.actionSenderElement_)}};var qz3;var uf1;var Ae=function(){var r=_.y.apply(this,arguments)||this;r.systemIcons=_.N("kevlar_system_icons");r.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return r};
_.t(Ae,_.y);Ae.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var r=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(r=this.data.percentIfLiked||0,this.activated=!0):(r=this.data.percentIfIndifferent||0,this.activated=!1);_.e(this.hostElement).querySelector("#like-bar").style.width=r+"%"}};
Ae.prototype.handleUpdateSentimentBarStateCommand=function(r){this.data&&this.set("data.likeStatus",_.F(r,yEi).likeStatus)};
Ae.prototype.observeLikeStatus=Ae.prototype.observeLikeStatus;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ae.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Ae.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Ae.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ae.prototype,"activated",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Ae.prototype,"systemIcons",void 0);_.A([_.Bt("data.likeStatus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ae.prototype,"observeLikeStatus",null);Ae=_.A([_.U({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Ae);
_.Q(Ae,"ytd-sentiment-bar-renderer",function(){if(uf1!==void 0)return uf1;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return uf1=r},{mode:1});var Dx6;var Z6=function(){var r=_.y.apply(this,arguments)||this;r.small=!0;return r};
_.t(Z6,_.y);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Z6.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Z6.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Z6.prototype,"small",void 0);Z6=_.A([_.U({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Z6);
_.Q(Z6,"ytd-video-view-count-renderer",function(){if(Dx6!==void 0)return Dx6;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Dx6=r},{mode:_.QQ("kevlar_poly_si_batch_j080")?1:2});var GR=function(){var r=_.y.apply(this,arguments)||this;r.infoFormattedStrings=[];r.wrapVideoActions=_.N("kevar_watch_wrap_video_actions");r.hideSentimentBar=_.N("kevlar_watch_hide_sentiment_bar");r.actionMap={};return r};
_.t(GR,_.y);_.l=GR.prototype;_.l.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.N("web_modern_buttons"),forceIconButton:!_.N("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.l.dataChanged=function(){_.N("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.l.computeInfoFormattedStrings=function(r){if(!r)return[];var f=[];r.dateText&&f.push(r.dateText);r.stationName&&f.push(r.stationName);r.rating&&f.push(r.rating);r.startEndTimeTemplate&&r.startTimeUtcMillis&&r.endTimeUtcMillis&&f.push(_.iX(_.sL6(_.Rr(r.startEndTimeTemplate),Number(r.startTimeUtcMillis),Number(r.endTimeUtcMillis))));r.upNextProgramText&&f.push(r.upNextProgramText);return f};
_.l.scheduleInitialUpdatedMetadataRequest=function(){var r,f=(r=this.data)==null?void 0:r.updatedMetadataEndpoint;if(f){var I;r=Number((I=_.F(f,_.DhV))==null?void 0:I.initialDelayMs);I=isNaN(r)?250:r;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),I)}};
_.l.setSentimentBarWidth=function(){var r=this;_.UC(this,function(){var f=_.e(r.hostElement).querySelector("ytd-menu-renderer");if(f){f=f.topLevelButtons;for(var I=0,C=0;C<f.length;C++){var Y=f[C],V=r.get("toggleButtonSupportedData.toggleButtonIdData.id",Y.data);if(V==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||V==="TOGGLE_BUTTON_ID_TYPE_LIKE")I+=Y.clientWidth+8;else break}I&&(r.sentiment.style.width=I-8+" px")}})};
_.l.fetchUpdatedMetadata=function(r){var f;r&&(f={continuation:r});var I;(r=(I=this.data)==null?void 0:I.updatedMetadataEndpoint)&&_.a().resolve(_.Gg).resolveCommand(r,{form:Object.assign({},f,{element:this.hostElement})})};
_.l.onYtServiceRequestSent=function(r,f){f.endpoint&&_.F(f.endpoint,_.yU)&&(this.hasUpdateSentimentBarStateCommands()&&!_.N("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.F(f.endpoint,_.yU).status),this.setSentimentBarWidth())};
_.l.hasUpdateSentimentBarStateCommands=function(){var r,f,I,C,Y=(C=(r=this.data)==null?void 0:(f=r.videoActions)==null?void 0:(I=f.menuRenderer)==null?void 0:I.topLevelButtons)!=null?C:[];r=_.E(Y);for(f=r.next();!f.done;f=r.next()){f=f.value;Y=C=I=void 0;var V=(I=f.toggleButtonRenderer)==null?void 0:(C=I.toggleButtonSupportedData)==null?void 0:(Y=C.toggleButtonIdData)==null?void 0:Y.id;if(V==="TOGGLE_BUTTON_ID_TYPE_LIKE"||V==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){C=I=void 0;f=(C=_.F((I=f.toggleButtonRenderer)==
null?void 0:I.defaultServiceEndpoint,_.Il))==null?void 0:C.commands;if(!f)break;f=_.E(f);for(I=f.next();!I.done;I=f.next())if(_.F(I.value,yEi))return!0}}return!1};
_.l.onYtServiceRequestCompleted=function(r,f){var I;(r=(I=f.data)==null?void 0:I.loggingDirectives)&&_.SIu(_.IB(),r);this.get("continuation.timedContinuationData",f.data)&&this.data&&this.data.updatedMetadataEndpoint&&(f=f.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,f.continuation),f.timeoutMs))};
_.l.computeHasDateText=function(r){return!!r&&!!r.dateText};
_.OC.Object.defineProperties(GR.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var r,f,I,C;return!((C=(r=this.data)==null?void 0:(f=r.videoActions)==null?void 0:(I=f.menuRenderer)==null?void 0:I.flexibleItems)==null||!C.length)}}});
GR.prototype.onYtServiceRequestCompleted=GR.prototype.onYtServiceRequestCompleted;GR.prototype.onYtServiceRequestSent=GR.prototype.onYtServiceRequestSent;GR.prototype.dataChanged=GR.prototype.dataChanged;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],GR.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],GR.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],GR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.Kh.YtTaskEmitterBehavior),_.B("design:type",Object)],GR.prototype,"ytTaskEmitterBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],GR.prototype,"data",void 0);_.A([_.K({computed:"computeInfoFormattedStrings(data)"}),_.B("design:type",Array)],GR.prototype,"infoFormattedStrings",void 0);
_.A([_.K({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],GR.prototype,"hasDateText",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],GR.prototype,"wrapVideoActions",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],GR.prototype,"hideSentimentBar",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],GR.prototype,"flexMenuEnabled",null);
_.A([_.uA("#sentiment"),_.B("design:type",Object)],GR.prototype,"sentiment",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GR.prototype,"dataChanged",null);_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],GR.prototype,"onYtServiceRequestSent",null);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],GR.prototype,"onYtServiceRequestCompleted",null);
_.Q(GR,"ytd-video-primary-info-renderer",function(){if(qz3===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);qz3=r}r=qz3;return r},{mode:1});var rwY;var kW=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return r};
_.t(kW,_.y);_.l=kW.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 r;this.descriptionToggled=!((r=this.data)==null||!r.defaultExpanded);var f;this.collapsed=this.descriptionAlwaysCollapsed||!((f=this.data)==null?0:f.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.pQ(110509);this.showLessClientVe=_.pQ(110510);r=_.t1();f=_.Pj();r&&f&&_.e_(r,f,[this.showMoreClientVe,this.showLessClientVe])};
_.l.onYtExpanderMoreTapped=function(){var r,f=(r=this.data)==null?void 0:r.showMoreCommand;f&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(f);(r=_.t1())&&this.showMoreClientVe&&_.im(r,this.showMoreClientVe)};
_.l.onYtExpanderLessTapped=function(){var r=_.t1();r&&this.showLessClientVe&&_.im(r,this.showLessClientVe);var f;(r=(f=this.data)==null?void 0:f.showLessCommand)&&this.componentBehavior.resolveCommand(r)};
_.l.handleUpdateDateTextAction=function(r){this.data&&this.data.dateText&&this.set("data.dateText",_.F(r,_.zO7).dateText)};
_.l.handleUpdateDescriptionAction=function(r){if(r=_.F(r,_.y98))r.isEmpty||!r.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.dF(r.description)):this.set("data.description",r.description)};
_.l.onYtChangeEngagementPanelVisibilityAction=function(r){if(_.N("web_structured_description_show_more")||_.N("web_engagement_panel_open_description")){var f,I=(f=_.F(r,_.i9V))==null?void 0:f.targetId,C;r=((C=_.F(r,_.i9V))==null?void 0:C.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";I==="engagement-panel-structured-description"&&r&&(this.descriptionToggled=!0)}};
_.l.updateCollapsedFromBinding=function(r){this.collapsed=r.detail.value};
_.l.updateDescriptionToggledFromBinding=function(r){this.descriptionToggled=r.detail.value};
_.l.updateCanCollapseFromBinding=function(r){this.canCollapse=r.detail.value};
_.OC.Object.defineProperties(kW.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var r,f,I=(r=this.data)==null?void 0:(f=r.metadataRowContainer)==null?void 0:f.metadataRowContainerRenderer;return!!I&&!!I.rows&&I.rows.length>I.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.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}}});
kW.prototype.onYtExpanderLessTapped=kW.prototype.onYtExpanderLessTapped;kW.prototype.onYtExpanderMoreTapped=kW.prototype.onYtExpanderMoreTapped;kW.prototype.dataChanged=kW.prototype.dataChanged;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],kW.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],kW.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],kW.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],kW.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],kW.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],kW.prototype,"collapsed",void 0);_.A([_.K(),_.B("design:type",Boolean)],kW.prototype,"descriptionToggled",void 0);
_.A([_.K(),_.B("design:type",Boolean)],kW.prototype,"canCollapse",void 0);_.A([_.K(),_.B("design:type",Object)],kW.prototype,"subscribeButtonData",void 0);_.A([_.K(),_.B("design:type",Number)],kW.prototype,"descriptionCollapsedHeight",void 0);_.A([_.K(),_.B("design:type",Object)],kW.prototype,"structuredDescriptionContentRenderer",void 0);_.A([_.K({value:function(){return _.N("web_watch_description_always_collapsed")}}),
_.B("design:type",Boolean)],kW.prototype,"descriptionAlwaysCollapsed",void 0);_.A([_.uA("#description"),_.B("design:type",HTMLDivElement)],kW.prototype,"description",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kW.prototype,"dataChanged",null);_.A([_.kO("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kW.prototype,"onYtExpanderMoreTapped",null);
_.A([_.kO("yt-expander-less-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kW.prototype,"onYtExpanderLessTapped",null);_.A([_.R("data.metadataRowContainer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kW.prototype,"metadataCollapsible",null);_.A([_.R("data","structuredDescriptionContentRenderer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kW.prototype,"hasInlineStructuredDescription",null);
_.A([_.R("data.attributedDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kW.prototype,"hasAttributedDescription",null);_.A([_.R("hasInlineStructuredDescription","collapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kW.prototype,"loadStructuredDescription",null);_.A([_.R("data","structuredDescriptionContentRenderer","collapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kW.prototype,"showInlineStructuredDescription",null);
_.A([_.R("data","hasInlineStructuredDescription","metadataCollapsible"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kW.prototype,"descriptionAlwaysCollapsible",null);
_.Q(kW,"ytd-video-secondary-info-renderer",function(){if(rwY===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);rwY=r}r=rwY;return r},{mode:2});var fF6;var BN=function(){return _.y.apply(this,arguments)||this};
_.t(BN,_.y);BN.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:_.N("web_modern_buttons"),forceIconButton:!_.N("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
BN.prototype.activate=function(r){r.appendTo(this.player);r.getPlayerPromise().then(function(f){f.setMinimized(!0)});
this.active=!0};
BN.prototype.deactivate=function(){var r=this.player.firstElementChild;r.getPlayerPromise().then(function(f){f.setMinimized(!1)});
this.active=!1;return r};
BN.prototype.onScrollUpTap=function(){var r=_.a().resolve(_.y2).getCurrentPage();r&&r.setScrollTop(0)};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],BN.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],BN.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],BN.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],BN.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],BN.prototype,"active",void 0);
_.A([_.K({reflectToAttribute:!0,value:function(){return _.N("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.B("design:type",Boolean)],BN.prototype,"darkLaunch",void 0);_.A([_.uA("#player"),_.B("design:type",HTMLDivElement)],BN.prototype,"player",void 0);BN=_.A([_.U({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],BN);
_.Q(BN,"ytd-miniplayer-bar-renderer",function(){if(fF6!==void 0)return fF6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return fF6=r},{mode:1});_.Kv(_.Hc(function(r){var f=_.yy();_.az(function(){var I;if(I=JSON)I=Rw6(r.data()),I=_.HL(JSON.stringify(I).replace(/</g,"\\u003C"));var C=r.data(),Y=_.Rr(C.title).trim().length===0,V=!C.publishDate||C.publishDate.trim().length===0,S,h,w,n,d=!((S=C.thumbnail)==null?0:(h=S.thumbnails)==null?0:h.length)||!((w=C.thumbnail)==null?0:w.thumbnails[0].url)||((n=C.thumbnail)==null?void 0:n.thumbnails[0].url.trim().length)===0;f.value&&I&&!(Y||V||d)&&_.Rw(f.value,I)});
return _.p("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.p("script",{el:f,type:"application/ld+json"}))},"cj"),"player-microformat-renderer",{props:{data:_.vI}});
}catch(e){_._DumpException(e)}
try{
var dx6;_.xxV=function(r){return r.watch.watchWindowSize};
_.hw7=function(r){return _.kI({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:r}})};
dx6=function(r){_.Mu.call(this);var f=this;this.JSC$20328_watchApi=r;r=_.wj(_.K2(),_.LpE,function(){w$6(f)});
this.addOnDisposeCallback(r);r=_.wj(_.K2(),_.xxV,function(){w$6(f)});
this.addOnDisposeCallback(r);b5q(this);p$d(this);nQ7()};
_.t(dx6,_.Mu);var b5q=function(r){var f=function(C){_.K2().dispatch(_.ips(C.matches))},I=window.matchMedia("(max-width: "+(999+_.$_())+"px)");
I.addListener(f);r.addOnDisposeCallback(function(){I.removeListener(f)});
f(I)},p$d=function(r){r.JSC$20328_watchApi.registerActionHandler("yt-window-resized",function(){nQ7()});
r.addOnDisposeCallback(function(){r.JSC$20328_watchApi.unregisterActionHandler("yt-window-resized")})},nQ7=function(){var r=_.Sl();
_.K2().dispatch(_.kI({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:r.width,height:r.height}}}))},w$6=function(r){var f;
_.x(function(I){if(I.nextAddress==1)return _.b(I,r.JSC$20328_watchApi.playerApi,2);f=I.yieldResult;f.setSize(NaN,NaN);_.wO(I)})};_.K1=function(r){_.QK.call(this);var f=this;this.rootElement=r;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return f.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(I){f.initOrDisposeActiveModules(I)}));
this.onAttached()};
_.t(_.K1,_.QK);_.l=_.K1.prototype;_.l.getRoot=function(){return this.rootElement};
_.l.getElement=function(r){return this.rootElement.getElement(r)};
_.l.setPlayerResponse=function(r){this.playerResponse=r;this.publish("PLAYER_RESPONSE_UPDATED",r)};
_.l.getPlayerResponse=function(){return this.playerResponse};
_.l.setWatchNextResponse=function(r){this.watchNextResponse===r?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=r,this.publish("WATCH_NEXT_RESPONSE_UPDATED",r))};
_.l.getWatchNextResponse=function(){return this.watchNextResponse};
_.l.registerActionHandler=function(r,f){var I=this;if(_.N("web_watch_controller_reg_multiple_handlers_killswitch")){var C={};_.R5(_.iz.getInstance(),(C[r]=f,C),this.getRoot())}else this.actionHandlers.has(r)||(this.actionHandlers.set(r,[]),C={},_.R5(_.iz.getInstance(),(C[r]=function(){var Y=_.XE.apply(0,arguments);return(I.actionHandlers.get(r)||[]).map(function(V){return V.apply(null,_.Na(Y))})},C),this.getRoot())),this.actionHandlers.get(r).push(f)};
_.l.unregisterActionHandler=function(r){if(_.N("web_watch_controller_reg_multiple_handlers_killswitch")){var f={};_.vR(_.iz.getInstance(),(f[r]=!0,f),this.getRoot())}else(f=this.actionHandlers.get(r))?(f.pop(),f.length===0&&(f={},_.vR(_.iz.getInstance(),(f[r]=!0,f),this.getRoot()),this.actionHandlers.delete(r))):_.t7(new _.nf("Attempted to unregister an action handler which is not registered.",r))};
_.l.addPageDisposeJob=function(r){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Zd(this.rootElement.pageDisposeJobs,r)};
_.l.removePageDisposeJob=function(r){this.rootElement.pageDisposeJobs&&_.uU(this.rootElement.pageDisposeJobs,r)};
_.l.dispatchEvent=function(r,f){_.kA(this.rootElement,r,f)};
_.l.provideRenderingData=function(r,f){this.rootElement.provideRenderingData(r,f)};
_.l.scrollWatchTo=function(r,f){var I;(I=this.watchScrollManager)==null||I.scrollWatchTo(r,f)};
_.l.focusOnPlayer=function(){var r=this.getElement("PLAYER");_.UC(r,function(){if(r&&r.firstElementChild){var f=r.querySelector(".html5-video-player");f&&(_.OS(_.a().resolve(_.dW)),f.focus())}else _.t7(Error("jm"))})};
_.l.updateCinematicFullscreenConfig=function(){var r=!!this.rootElement.theater,f=!!this.rootElement.fullscreen,I;(I=this.watchCinematicManager)==null||_.xOU(I,f,r)};
_.l.subscribeToActiveChanged=function(r,f){f=f===void 0?!0:f;var I=_.wj(_.K2(),_.Okd,function(C){r(C)});
f&&r(_.Okd(_.K2().getState()));return I};
_.l.isActive=function(){return _.Okd(_.K2().getState())};
_.l.onAttached=function(){var r=_.N("external_fullscreen");_.N("use_unified_flag_accessor")&&(r=_.a().resolve(_.EiB).retriever.getFlag(_.ziD));(r||_.mO("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var zw1=function(r){return r.getRoot().is==="ytd-watch-flexy"||r.getRoot().is==="ytd-watch-grid"},yn=function(r){return r.getRoot().is==="ytd-watch-fixie"};
_.K1.prototype.initPersistentModules=function(){if(yn(this)||zw1(this)&&_.N("kevlar_watch_flexy_theater_manager")){var r=new _.vmU(this);_.V$(this,r)}r=new _.$OB(this);_.V$(this,r);r=new _.WN(this);_.V$(this,r);r=new _.iJ(this);_.V$(this,r);r=new _.q2Y(this);_.V$(this,r);r=new _.mj(this);_.V$(this,r);if(yn(this)||zw1(this)&&_.N("kevlar_watch_flexy_playlist_manager"))r=new _.DO6(this),_.V$(this,r)};
_.K1.prototype.initOrDisposeActiveModules=function(r){r?(this.watchScrollManager=new _.vN(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.RJY(this)),this.activeModules.push(new _.UY3(this)),yn(this)&&this.activeModules.push(new dx6(this)),this.activeModules.push(new _.V76(this)),this.activeModules.push(new _.RI(this)),(yn(this)||_.N("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.QAd(this)),this.activeModules.push(new _.Oaq(this)),
(yn(this)||_.N("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.Sz1(this)),(yn(this)||_.N("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.rjV(this)),_.N("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.l_B(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.N("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Zas(this)),_.N("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.Xv1(this)),
r=_.N("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.N("kevlar_watch_flexy_comments_manager")&&!r&&this.activeModules.push(new _.dOV(this)),_.N("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.L1(this)),this.activeModules.push(new _.AlB(this)),this.activeModules.push(new _.KP7(this)),_.N("web_enable_timely_actions")&&this.activeModules.push(new _.B0V(this)),_.N("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.gmi(this)),
_.N("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.xgB(this)),_.N("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.ke2(this)),_.N("web_player_rtr_ctrls")&&this.activeModules.push(new _.XU6(this))):(_.GZ(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.K1.prototype.disposeInternal=function(){_.QK.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.OC.Object.defineProperties(_.K1.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var v8B,Ng,KpU,yX1,s8s,OOq,UfB,o82;v8B=function(){var r=_.wX();r.info||(r.info={});return r.info};
Ng=function(r){return Math.round(_.pe()+r)};
KpU=function(){var r;if(_.N("csi_use_performance_navigation_timing")){var f,I,C,Y=_.bm==null?void 0:(r=_.bm.getEntriesByType)==null?void 0:(f=r.call(_.bm,"navigation"))==null?void 0:(I=f[0])==null?void 0:(C=I.toJSON)==null?void 0:C.call(I);Y?(Y.requestStart=Ng(Y.requestStart),Y.responseEnd=Ng(Y.responseEnd),Y.redirectStart=Ng(Y.redirectStart),Y.redirectEnd=Ng(Y.redirectEnd),Y.domainLookupEnd=Ng(Y.domainLookupEnd),Y.connectStart=Ng(Y.connectStart),Y.connectEnd=Ng(Y.connectEnd),Y.responseStart=Ng(Y.responseStart),
Y.secureConnectionStart=Ng(Y.secureConnectionStart),Y.domainLookupStart=Ng(Y.domainLookupStart),Y.isPerformanceNavigationTiming=!0,r=Y):r=_.bm.timing}else r=_.N("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.bm.timing)):_.bm.timing;return r};
yX1=function(){if(_.bm.getEntriesByType){var r=_.bm.getEntriesByType("paint");if(r=_.yE(r,function(I){return I.name==="first-paint"}))return Ng(r.startTime)}var f;
_.N("csi_use_performance_navigation_timing")?f=_.bm.getEntriesByType("first-paint")[0].startTime:f=_.bm.timing.msFirstPaint;return f?Math.max(0,f):0};
s8s=function(){var r=window.location.protocol,f=_.bm.getEntriesByType("resource");f=_.IJ(f,function(I){return I.name.indexOf(r+"//fonts.gstatic.com/s/")===0});
(f=UfB(f,function(I,C){return C.duration>I.duration?C:I}))&&f.startTime>0&&f.responseEnd>0&&(_.ne("wffs",Ng(f.startTime)),_.ne("wffe",Ng(f.responseEnd)))};
OOq=function(r,f){r=document.querySelector(r);if(!r)return!1;var I="",C=r.nodeName;C==="SCRIPT"?(I=r.src,I||(I=r.getAttribute("data-timing-href"))&&(I=window.location.protocol+I)):C==="LINK"&&(I=r.href);_.J6(document)&&r.setAttribute("nonce",_.J6(document));return I?(r=_.bm.getEntriesByName(I))&&r[0]&&(r=r[0],I=_.pe(),_.ne("rsf_"+f,I+Math.round(r.fetchStart)),_.ne("rse_"+f,I+Math.round(r.responseEnd)),r.transferSize!==void 0&&r.transferSize===0)?!0:!1:!1};
_.$m=function(r,f){_.Jn(function(){_.O$c("").info.actionType=r;f&&_.Ww("TIMING_AFT_KEYS",f);_.Ww("TIMING_ACTION",r);var I=_.lVP(_.Lz("TIMING_INFO",{}));Object.keys(I).length>0&&_.dX(I);I={isNavigation:!0,actionType:_.ABB(_.Lz("TIMING_ACTION"))};var C=_.Lz("PREVIOUS_ACTION");C&&(I.previousAction=_.ABB(C));if(C=_.Lz("CLIENT_PROTOCOL"))I.httpProtocol=C;if(C=_.Lz("CLIENT_TRANSPORT"))I.transportProtocol=C;(C=_.t1())&&C!=="UNDEFINED_CSN"&&(I.clientScreenNonce=C);C=_.YEE();if(C===1||C===-1)I.isVisible=!0;
C=_.i$K().loadType==="cold";var Y=v8B();C||(C=Y.yt_lt==="cold");if(C){I.loadType="cold";C=v8B();Y=KpU();var V=_.pe(),S=_.Lz("CSI_START_TIMESTAMP_MILLIS",0);S>0&&!_.N("embeds_web_enable_csi_start_override_killswitch")&&(V=S);V&&(_.ne("srt",Y.responseStart),C.prerender!==1&&_.qaK(V));C=yX1();C>0&&_.ne("fpt",C);C=KpU();C.isPerformanceNavigationTiming&&_.dX({performanceNavigationTiming:!0},void 0);_.ne("nreqs",C.requestStart,void 0);_.ne("nress",C.responseStart,void 0);_.ne("nrese",C.responseEnd,void 0);
C.redirectEnd-C.redirectStart>0&&(_.ne("nrs",C.redirectStart,void 0),_.ne("nre",C.redirectEnd,void 0));C.domainLookupEnd-C.domainLookupStart>0&&(_.ne("ndnss",C.domainLookupStart,void 0),_.ne("ndnse",C.domainLookupEnd,void 0));C.connectEnd-C.connectStart>0&&(_.ne("ntcps",C.connectStart,void 0),_.ne("ntcpe",C.connectEnd,void 0));C.secureConnectionStart>=_.pe()&&C.connectEnd-C.secureConnectionStart>0&&(_.ne("nstcps",C.secureConnectionStart,void 0),_.ne("ntcpe",C.connectEnd,void 0));_.bm&&"getEntriesByType"in
_.bm&&s8s();C=[];if(document.querySelector&&_.bm&&_.bm.getEntriesByName)for(var h in o82)o82.hasOwnProperty(h)&&(Y=o82[h],OOq(h,Y)&&C.push(Y));if(C.length>0)for(I.resourceInfo=[],h=_.E(C),C=h.next();!C.done;C=h.next())I.resourceInfo.push({resourceCache:C.value})}_.dX(I);I=_.vcK();I.preLoggedGelInfos||(I.preLoggedGelInfos=[]);h=I.preLoggedGelInfos;I=_.Klm();C=void 0;for(Y=0;Y<h.length;Y++)if(V=h[Y],V.loadType){C=V.loadType;break}if(_.i$K().loadType==="cold"&&(I.loadType==="cold"||C==="cold")){C=_.RWR();
Y=_.vcK();Y=Y.gelTicks?Y.gelTicks:Y.gelTicks={};for(var w in C)if(!(w in Y))if(typeof C[w]==="number")_.ne(w,_.zM(w));else if(_.N("log_repeated_ytcsi_ticks"))for(V=_.E(C[w]),S=V.next();!S.done;S=V.next())S=S.value,_.ne(w.slice(1),S);w={};C=!1;h=_.E(h);for(Y=h.next();!Y.done;Y=h.next())C=Y.value,_.KTc(I,C),_.KTc(w,C),C=!0;C&&_.dX(w)}_.E6m(!0);w=_.Lz("TIMING_ACTION");_.jH("ytglobal.timingready_")&&w&&_.MsR()&&_.VsR()&&_.IVP()})()};
UfB=function(r,f){return Array.prototype.reduce.call(r,f,{duration:0})};
o82={'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 Q82={};Q82.YtVisibilityRootBehavior=[_.HP4.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Z8(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Lz("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var r=_.Lz("INNERTUBE_CLIENT_NAME")!=="WEB";_.N("kevlar_use_vimio_behavior")&&r&&_.yWg()}}];_.F4={};_.F4.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(r){r.detail.contextProvider=this;r.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
Q82.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.eu();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(r){var f=this;this.pageCount+=1;_.N("kevlar_use_vimio_behavior")&&(_.Lz("INNERTUBE_CLIENT_NAME")==="WEB"?_.F_.addJob(function(){f.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(r)},
loadPage_:function(r){this.data=r},
ytPageBehaviorActiveObserver_:function(r){var f=this;_.N("kevlar_use_vimio_behavior")&&(r?_.Lz("INNERTUBE_CLIENT_NAME")==="WEB"?_.F_.addJob(function(){f.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(r){if(!this.setScrollTopJobId_){var f=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){f.setScrollTopJobId_=0;var I=_.a().resolve(_.ZY(_.dW));I&&_.OS(I);this.getPageScrollingElement().scrollTop=r}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.NB(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var RZ3;var X4=function(){var r=_.y.apply(this,arguments)||this;r.playerListenerConfig=null;r.actionMap={"yt-show-watch-page-survey":"openSurvey"};return r};
_.t(X4,_.y);_.l=X4.prototype;_.l.dataChanged=function(){var r=this,f=_.sk();f&&f.getPlayerPromise().then(function(C){r.maybeRemovePlayerListeners(C)});
var I=this.data&&this.data.survey;I&&((I=(I=I.singleOptionSurveyRenderer||I.checkboxSurveyRenderer||I.multiStageSurveyRenderer)&&I.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(f,I):this.openSurvey())};
_.l.triggerWatchPageSurvey=function(r,f){var I=this,C,Y,V,S,h,w,n,d,z;return _.x(function(g){if(g.nextAddress==1)return r?_.b(g,r.getPlayerPromise(),2):g.return();I.player=g.yieldResult;if(!I.player)return g.return();C={};Y=_.E(f);for(V=Y.next();!V.done;V=Y.next())S=V.value,h=_.E(I.createEventListenerPair(S)),w=h.next().value,n=h.next().value,d=w,z=n,d&&z&&(C[d]=z,I.ytPlayerListenerBehavior.listenToPlayerEvent(I.player,d,z));I.playerListenerConfig=C;_.wO(g)})};
_.l.createEventListenerPair=function(r){var f=r.playbackEventTrigger;return f?this.handlePlaybackTrigger(f):(r=r.watchTimeTrigger)?this.handleWatchTimeTrigger(r):[void 0,void 0]};
_.l.handleWatchTimeTrigger=function(r){var f=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var I=r.videoWatchFraction,C=r.watchTimeSec;return C&&I?["onVideoProgress",function(){f.player&&f.isWatchTimeConditionMet(f.player,I,C)&&f.showSurvey()}]:[void 0,
void 0]};
_.l.isWatchTimeConditionMet=function(r,f,I){var C=r.getProgressState(),Y=C.current-this.lastKnownPlaybackPosition;Y<5&&(this.accumulatedMediaTime+=Y);this.lastKnownPlaybackPosition=C.current;C=Math.round(this.accumulatedMediaTime/C.duration*1E3)/1E3;return r.getPresentingPlayerType&&r.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>I||C>f)};
_.l.handlePlaybackTrigger=function(r){var f=this;r=r.playbackEvent;if(r==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var I="onStateChange";var C=function(Y){Y===0&&f.showSurvey()}}else r==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(I="onVideoProgress",C=function(Y){f.player&&f.player.getPresentingPlayerType&&f.player.getPresentingPlayerType()===1&&Y&&f.showSurvey()}):r==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(I="onAdEnd",C=this.showSurvey);
return[I,C]};
_.l.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.l.openSurvey=function(){var r=this,f=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.tjd(!!f));_.F_.addJob(function(){r.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:f}})},0,0)};
_.l.maybeRemovePlayerListeners=function(r){if(this.playerListenerConfig){for(var f=_.E(Object.keys(this.playerListenerConfig)),I=f.next();!I.done;I=f.next())I=I.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(r,I,this.playerListenerConfig[I]);this.playerListenerConfig=null}};
X4.prototype.dataChanged=X4.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.RO),_.B("design:type",Object)],X4.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.J(_.iQ.YtPlayerListenerBehavior),_.B("design:type",_.RN)],X4.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],X4.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.J(_.PH),_.B("design:type",Object)],X4.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],X4.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],X4.prototype,"playerListenerConfig",void 0);_.A([_.K({value:0}),_.B("design:type",Number)],X4.prototype,"lastKnownPlaybackPosition",void 0);_.A([_.K({value:0}),_.B("design:type",Number)],X4.prototype,"accumulatedMediaTime",void 0);_.A([_.K(),_.B("design:type",Object)],X4.prototype,"player",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],X4.prototype,"dataChanged",null);X4=_.A([_.U({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],X4);
_.Q(X4,"ytd-survey-trigger-renderer",function(){if(RZ3!==void 0)return RZ3;var r=document.createElement("template");_.c(r,"\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");r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return RZ3=r},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Po3=new _.q("promotedSparklesWebRenderer");var tzq=new _.q("relatedChipCommand");var TS7;var cu2;var n5=function(){return _.y.apply(this,arguments)||this};
_.t(n5,_.y);n5.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],n5.prototype,"data",void 0);n5=_.A([_.U({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],n5);
_.Q(n5,"ytd-compact-tvfilm-entry-point-renderer",function(){if(cu2!==void 0)return cu2;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return cu2=r},{mode:1});var WDY;var LDB;var mt2;var dE=function(){return _.y.apply(this,arguments)||this};
_.t(dE,_.y);dE.prototype.ready=function(){this.initializeDefs()};
dE.prototype.initializeDefs=function(){var r=this.meta.byKey("yt-icons"),f=_.e(r).querySelector("#star"),I=_.e(r).querySelector("#star_half");r=_.e(r).querySelector("#star_border");f&&this.defs.appendChild(f.cloneNode(!0));I&&this.defs.appendChild(I.cloneNode(!0));r&&this.defs.appendChild(r.cloneNode(!0))};
dE.prototype.percentChanged=function(){for(var r=this.rating;r.firstChild;)r.removeChild(r.firstChild);var f=Math.round(this.percent/10);r=Math.floor(f/2);f%=2;var I=5-r-f;this.appendStars("star",r,0);this.appendStars("star_half",f,r);this.appendStars("star_border",I,r+f)};
dE.prototype.appendStars=function(r,f,I){for(var C=0;C<f;C++){var Y=(18+this.spacing)*(C+I),V=document.createElementNS("http://www.w3.org/2000/svg","use");_.T5V(V,"#"+r);V.setAttribute("x",""+Y);V.setAttribute("y","0");this.rating.appendChild(V)}};
dE.prototype.percentChanged=dE.prototype.percentChanged;_.A([_.uA("#defs"),_.B("design:type",HTMLElement)],dE.prototype,"defs",void 0);_.A([_.uA("#rating"),_.B("design:type",HTMLElement)],dE.prototype,"rating",void 0);_.A([_.K(),_.B("design:type",Number)],dE.prototype,"percent",void 0);_.A([_.K({value:6}),_.B("design:type",Number)],dE.prototype,"spacing",void 0);_.A([_.K({value:_.z8.create("iron-meta",{type:"iconset"})}),_.B("design:type",_.XS)],dE.prototype,"meta",void 0);
_.A([_.Bt("percent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dE.prototype,"percentChanged",null);dE=_.A([_.U({disableElementRegistration:!0,is:"ytd-ratings"})],dE);
_.Q(dE,"ytd-ratings",function(){if(mt2!==void 0)return mt2;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return mt2=r},{mode:1});var zV=function(){return _.y.apply(this,arguments)||this};
_.t(zV,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],zV.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],zV.prototype,"data",void 0);zV=_.A([_.U({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],zV);
_.Q(zV,"ytd-offer-review-renderer",function(){if(LDB!==void 0)return LDB;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return LDB=r},{mode:1});var Mx=function(){var r=_.y.apply(this,arguments)||this;r.badges=[{textBadge:{label:_.iX("CC")}}];return r};
_.t(Mx,_.y);_.l=Mx.prototype;_.l.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.l.dataChanged=function(){var r=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(r&&r.commandMetadata&&_.F(r.commandMetadata,_.$$)&&_.F(r.commandMetadata,_.$$).fireAutomatically)_.a().resolve(_.Gg).resolveCommand(r,{form:{element:this.hostElement}});else{var f;r&&((f=_.F(r,_.$$))==null?0:f.fireAutomatically)&&_.a().resolve(_.Gg).resolveCommand(r,{form:{element:this.hostElement}})}};
_.l.isEmptyContent=function(r){return this.isStorefrontEntryPointEmpty(r)&&this.shouldHideOfferModule(r)};
_.l.isStorefrontEntryPointEmpty=function(r){return!r||!r.storefrontEntryPoint};
_.l.shouldHideOfferModule=function(r){return!!r.hideVideoDetails};
_.l.isOfferModuleNavigationInactive=function(r){return!r.navigationEndpoint&&!r.serviceEndpoint};
_.l.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.a().resolve(_.Gg).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Mx.prototype.dataChanged=Mx.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Mx.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Mx.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.B("design:type",Boolean)],Mx.prototype,"hidden",void 0);
_.A([_.K(),_.B("design:type",Object)],Mx.prototype,"badges",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mx.prototype,"dataChanged",null);Mx=_.A([_.U({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],Mx);
_.Q(Mx,"ytd-movie-offer-module-renderer",function(){if(WDY!==void 0)return WDY;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return WDY=r},{mode:1});var e76;var gE=function(){return _.y.apply(this,arguments)||this};
_.t(gE,_.y);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],gE.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],gE.prototype,"data",void 0);gE=_.A([_.U({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],gE);
_.Q(gE,"ytd-media-masthead-renderer",function(){if(e76!==void 0)return e76;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return e76=r},{mode:1});var Ju2;_.Kv(_.Zu8,"course-metadata-view-model",{props:{data:_.vI,isOverlay:_.vI}});var ae=function(){var r=_.y.apply(this,arguments)||this;r.isMetadataVisible=!1;r.modernPanels=_.N("kevlar_watch_modern_panels");r.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return r};
_.t(ae,_.y);_.l=ae.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 r;if((r=this.data)==null?0:r.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.l.isExpandButtonToggled=function(){var r,f;return(f=_.F((r=this.data)==null?void 0:r.expandMetadataButton,_.$4))==null?void 0:f.isToggled};
_.l.onVisibilityButtonClick=function(){var r;if((r=this.data)==null?0:r.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.l.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
ae.prototype.expanderChanged=ae.prototype.expanderChanged;ae.prototype.dataChanged=ae.prototype.dataChanged;ae.prototype.descriptionChanged=ae.prototype.descriptionChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ae.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ae.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J([_.o_.YtActionHandlerBehavior]),_.B("design:type",Object)],ae.prototype,"actionHandlerBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],ae.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],ae.prototype,"isMetadataVisible",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ae.prototype,"modernPanels",void 0);_.A([_.uA("#expander"),_.B("design:type",Object)],ae.prototype,"expander",void 0);_.A([_.Bt("data.description"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ae.prototype,"descriptionChanged",null);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ae.prototype,"dataChanged",null);_.A([_.Bt("isMetadataVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ae.prototype,"expanderChanged",null);ae=_.A([_.U({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],ae);
_.Q(ae,"ytd-tvfilm-offer-module-renderer",function(){if(Ju2!==void 0)return Ju2;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Ju2=r},{mode:2});var jLV;var Xf=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return r};
_.t(Xf,_.y);Xf.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Xf.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Xf.prototype.onThumbnailTap=function(r){this.data&&this.data.serviceEndpoint&&(_.a().resolve(_.Gg).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),r.stopPropagation())};
Xf.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
Xf.prototype.dataChanged=Xf.prototype.dataChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Xf.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Xf.prototype,"rendererBehaviors",void 0);_.A([_.J([_.o_.YtActionHandlerBehavior]),_.B("design:type",Object)],Xf.prototype,"actionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Xf.prototype,"data",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Xf.prototype,"dataChanged",null);Xf=_.A([_.U({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Xf);
_.Q(Xf,"ytd-unlimited-offer-module-renderer",function(){if(jLV!==void 0)return jLV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return jLV=r},{mode:1});var HkY;var ikB;var Nx=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return r};
_.t(Nx,_.y);Nx.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Nx.prototype.handleRelatedChipCommand=function(r){r=_.F(r,tzq);var f=r.contents;f?_.qy(this.hostElement,"yt-item-section-replace-action",[f,r.targetSectionIdentifier]):_.qy(this.hostElement,"yt-item-section-continuation-action",[r.continuationData,r.targetSectionIdentifier])};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Nx.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Nx.prototype,"actionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Nx.prototype,"data",void 0);Nx=_.A([_.zX({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Nx);
_.Q(Nx,"yt-related-chip-cloud-renderer",function(){if(ikB===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;HkY===void 0&&(HkY=document.createElement("template"));var C=HkY;I.call(f,C.content.cloneNode(!0),r.content.firstChild);ikB=r}r=ikB;return r},{mode:2});var $Q=function(){var r=_.y.apply(this,arguments)||this;r.isTwoColumns=!0;r.hideOfferModules=!1;r.watchFeedBigThumbs=_.N("kevlar_watch_feed_big_thumbs");r.watchNextGridHideChips=_.N("kevlar_watch_grid_hide_chips");r.eligibleToSwitchToGrid=_.N("web_watch_eligible_to_switch_to_grid");r.disableShortsShelfHeightOverride=_.N("web_shorts_wn_shelf_ratio_tuning");r.isWatchNextGrid=!1;r.reuseComponents=!_.N("kevlar_watch_grid");r.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return r};
_.t($Q,_.y);_.l=$Q.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]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.N("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(){_.Zh(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 r=this.data.results,f=null,I=null,C=0;C<r.length;C++)r[C].relatedChipCloudRenderer?f=r[C].relatedChipCloudRenderer:r[C].itemSectionRenderer&&(I=r[C].itemSectionRenderer);if(f&&I)for(this.set("data.continuations",[]),r=_.F(f.content,_.$sD).chips,f=0;f<r.length;f++)if(C=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",r[f]),C.loadCached||!C.contents){C.contents=I.contents;break}}};
_.l.dataChanged=function(){var r=this,f;if((f=this.data)!=null&&f.results&&this.hasAllowedInstreamAd(this.playerData)){if(f=this.data.results.filter(function(h){return!!h.promotedSparklesWebRenderer})){for(var I=0;I<f.length;I++){var C=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",f[I]);
if(C)for(var Y=0;Y<C.length;Y++)C[Y]&&C[Y].baseUrl&&_.jM(C[Y].baseUrl)}this.set("data.results",this.data.results.filter(function(h){return!h.promotedSparklesWebRenderer}))}if(f=this.data.results.filter(function(h){return!!r.getSparklesAd(h)})){f=_.E(f);
for(Y=f.next();!Y.done;Y=f.next())if(C=I=void 0,Y=(I=this.getSparklesAd(Y.value))==null?void 0:(C=I.errorCommand)==null?void 0:C.loggingUrls)for(I=_.E(Y),C=I.next();!C.done;C=I.next())(C=C.value)&&C.baseUrl&&_.jM(C.baseUrl);var V,S;this.set("data.results",(V=this.data)==null?void 0:(S=V.results)==null?void 0:S.filter(function(h){return!h.adSlotRenderer}))}}};
_.l.getSparklesAd=function(r){var f,I;r=_.F((f=r.adSlotRenderer)==null?void 0:(I=f.fulfillmentContent)==null?void 0:I.fulfilledLayout,_.op3);return _.F(r==null?void 0:r.renderingContent,Po3)};
_.l.hasAllowedInstreamAd=function(r){r=this.get("adPlacements",r)||[];for(var f=0;f<r.length;f++){var I=this.get("adPlacementRenderer.config.adPlacementConfig",r[f]);if(I&&I.suppressDisplayAd)return!0}return!1};
_.l.computeHideUnlimitedOfferModule=function(r,f){return r&&r.offerModule&&f&&r.offerModule.unlimitedOfferModuleRenderer&&r.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(f)?!0:!1};
_.l.hideUnlimitedOfferModuleChanged=function(){var r=_.e(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");r&&(r.hidden=this.hideUnlimitedOfferModule)};
_.l.updateLockupContainerTypes=function(r){if(this.eligibleToSwitchToGrid){var f;(f=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||f.forEach(function(I){I.containerType=r})}};
_.l.computeHideTvfilmOfferModule=function(r,f){var I,C;return!!((r==null?0:(I=r.offerModule)==null?0:(C=I.tvfilmOfferModuleRenderer)==null?0:C.clientShouldSuppressIfCompanionAdDisplayed)&&f&&this.hasCompanionAds(f))};
_.l.hideTvfilmOfferModuleChanged=function(){var r=_.e(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");r&&(r.hidden=this.hideTvfilmOfferModule)};
_.l.hasCompanionAds=function(r){r=this.get("adPlacements",r)||[];for(var f=0;f<r.length;f++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",r[f]))return!0;var I=void 0,C=void 0,Y=void 0;if(!_.N("web_watch_top_banner_companion_check_killswitch")&&((I=r[f])==null?0:(C=I.adPlacementRenderer)==null?0:(Y=C.renderer)==null?0:Y.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.l.hasSuppressedResults=function(r){return r==null?!0:r.filter(function(f){return!f.continuationItemRenderer&&!f.compactPromotedVideoRenderer&&!f.promotedSparklesWebRenderer}).length===0};
_.l.computeShowButton=function(r,f){return this.isWatchNextGrid?r:r||this.hasSuppressedResults(f)};
_.l.showButtonChanged=function(){if(this.isWatchNextGrid){var r=_.e(this.hostElement).querySelector("ytd-rich-grid-renderer");r&&this.showButton!==null&&(r.continuationShowButton=this.showButton)}else{r=_.e(this.hostElement).querySelector("yt-next-continuation");var f=_.e(this.hostElement).querySelector("ytd-continuation-item-renderer"),I=_.e(this.hostElement).querySelector("ytd-item-section-renderer");r&&(r.showButton=this.showButton);f&&(f.showButton=this.showButton);I&&(I.continuationShowButton=
this.showButton)}};
_.l.continuationTap=function(r){var f;if(((f=this.data)==null?void 0:f.continuations)!=null&&r.target.tagName==="TP-YT-PAPER-BUTTON")for(r=this.data.continuations,f=0;f<r.length;f++)r[f].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(r[f].nextContinuationData||{})};
_.l.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LT("shown-items-changed",this.shownItems))};
_.OC.Object.defineProperties($Q.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid&&this.containsLockupViewModel?this.isGridViewEnabled?2:3:3}},
containsLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.shownItems)==null||!r.some(function(f){return!!f.lockupViewModel}))}}});
$Q.prototype.shownItemsChangedForBinding=$Q.prototype.shownItemsChangedForBinding;$Q.prototype.showButtonChanged=$Q.prototype.showButtonChanged;$Q.prototype.hideTvfilmOfferModuleChanged=$Q.prototype.hideTvfilmOfferModuleChanged;$Q.prototype.updateLockupContainerTypes=$Q.prototype.updateLockupContainerTypes;$Q.prototype.hideUnlimitedOfferModuleChanged=$Q.prototype.hideUnlimitedOfferModuleChanged;$Q.prototype.dataChanged=$Q.prototype.dataChanged;$Q.prototype.resultsChanged=$Q.prototype.resultsChanged;
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],$Q.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.AW.YtLazyListBehavior),_.B("design:type",Object)],$Q.prototype,"ytLazyListBehavior",void 0);_.A([_.J(_.Wg.YtNextContinuationBehavior),_.B("design:type",Object)],$Q.prototype,"ytNextContinuationBehavior",void 0);
_.A([_.J(_.cg),_.B("design:type",Object)],$Q.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],$Q.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],$Q.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],$Q.prototype,"playerData",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],$Q.prototype,"autoFill",void 0);_.A([_.K({value:60}),_.B("design:type",Number)],$Q.prototype,"targetFramerate",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],$Q.prototype,"isTwoColumns",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],$Q.prototype,"hideOfferModules",void 0);_.A([_.K(),_.B("design:type",Object)],$Q.prototype,"shownItems",void 0);_.A([_.K({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.B("design:type",Boolean)],$Q.prototype,"hideUnlimitedOfferModule",void 0);
_.A([_.K({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.B("design:type",Boolean)],$Q.prototype,"hideTvfilmOfferModule",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],$Q.prototype,"watchFeedBigThumbs",void 0);_.A([_.K(),_.B("design:type",Object)],$Q.prototype,"watchNextGridHideChips",void 0);_.A([_.K(),_.B("design:type",Object)],$Q.prototype,"eligibleToSwitchToGrid",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],$Q.prototype,"disableShortsShelfHeightOverride",void 0);_.A([_.K({selector:_.eO}),_.B("design:type",Object)],$Q.prototype,"isGridViewEnabled",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],$Q.prototype,"showMoreButton",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],$Q.prototype,"isWatchNextGrid",void 0);
_.A([_.K({computed:"computeShowButton(showMoreButton, data.results)"}),_.B("design:type",Boolean)],$Q.prototype,"showButton",void 0);_.A([_.YN("data.results.*"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$Q.prototype,"resultsChanged",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$Q.prototype,"dataChanged",null);
_.A([_.Bt("hideUnlimitedOfferModule"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$Q.prototype,"hideUnlimitedOfferModuleChanged",null);_.A([_.R("isGridViewEnabled","containsLockupViewModel","data"),_.K({reflectToAttribute:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],$Q.prototype,"lockupContainerType",null);
_.A([_.Bt("lockupContainerType","data"),_.B("design:type",Function),_.B("design:paramtypes",[Number]),_.B("design:returntype")],$Q.prototype,"updateLockupContainerTypes",null);_.A([_.Bt("hideTvfilmOfferModule"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$Q.prototype,"hideTvfilmOfferModuleChanged",null);_.A([_.Bt("showButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$Q.prototype,"showButtonChanged",null);
_.A([_.Bt("shownItems"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$Q.prototype,"shownItemsChangedForBinding",null);_.A([_.R("shownItems"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$Q.prototype,"containsLockupViewModel",null);
_.Q($Q,"ytd-watch-next-secondary-results-renderer",function(){if(TS7===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);TS7=r}r=TS7;return r},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.IF7={};
_.IF7.YtdWatchBehavior=[_.D.YtRendererBehavior,_.iQ.YtPlayerListenerBehavior,_.On.YtRendererstamperBehavior,_.o_.YtActionHandlerBehavior,_.F4.YtPageBehavior,_.DG.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,
value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.mO("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.N("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,value:function(){return _.N("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.mO("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.N("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded, fullscreen)"},richItemMinWidth:{type:Number,value:function(){return _.Bw("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Bw("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!_.N("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.N("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 _.N("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.N("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isTwoColumns_)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.N("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.N("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("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 _.N("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("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 _.N("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var r={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:_.Tq(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Tq(["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"||_.N("swa_prov_panels_ks")?r.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(r.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},r.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return r},
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 r=this;this.watchController=void 0;this.pageDisposeJobs=[function(){r.showMetadataPlaceholder_()},
function(){_.N("web_watch_dont_clear_comments")||r.clearComments_()},
function(){r.clearPlayerAds_()},
function(){r.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;_.N("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.N("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.sep(function(){return _.Uk(r)},this.hostElement);
this.pageDisposeJobs.push(function(){r.youThereManager_.reset()});
_.N("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){r.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.IE;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;_.N("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.N("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));_.N("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.GF(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(r){r&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:r}),r.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(r){_.N("kevlar_watch_flexy_theater_manager")&&(this.theater=r,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(r){!_.N("kevlar_watch_while_v2")&&!_.N("web_watch_pip")||r||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(r){this.active!==void 0&&(this.fullscreen=r,_.N("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(r){this.active!==void 0&&(_.kA(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.N("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.N("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(r>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(r){this.initCsi_();this.updatePageData_(r)},
updatePageData_:function(r){var f=this;if(r)if(this.data===r){this.onPageLoadWithSameData_();var I;(I=this.watchController)==null||I.setWatchNextResponse(this.data)}else this.data=r;this.playlist&&_.gX({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Xc("nw");this.loading=!1;_.dp(_.F_,function(){f.initDclkstatus_();var C,Y=((C=f.player)==null?void 0:C.getVideoData().cpn)||"";_.TEi(function(V,S){_.Blp(V,S,Y)})})},
onPageLoadWithSameData_:function(){_.N("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 r=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!r);this.set("loadingData.playlistLoading",r&&r!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),r=this.watchNextSkeletonEl_.firstElementChild;r;)r.classList.remove("hidden"),r=r.nextElementSibling;if(_.N("kevlar_watch_frame0_loading_state")){var f,I,C;r=(f=this.loadingData)==null?void 0:(I=f.endpoint)==null?void 0:(C=I.watchEndpoint)==null?void 0:C.videoId;var Y;r&&(Y="https://i.ytimg.com/vi/"+r+"/frame0.jpg");_.e(this.hostElement).querySelector("#player").style.backgroundImage=Y?"url("+Y+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var r=_.e(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&r&&(r.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var f,I;(I=(f=this.watchMetadata).updateSentimentBarWidth)==
null||I.call(f);var C,Y;(Y=(C=this.watchMetadata).resize)==null||Y.call(C)}_.N("kevlar_watch_frame0_loading_state")&&(_.e(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(r){var f=_.e(this.hostElement).querySelector(r);f?_.Zo(f,!1):_.t7(new _.nf("Overscroll monitor not found for component: ",r))},
removeSplitScrollMouseTrap:function(r){var f=_.e(this.hostElement).querySelector(r);f?_.GI(f):_.t7(new _.nf("Disposal component for  overscroll monitoring not found: ",r))},
onLoadingChanged_:function(r){r?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(r){var f=this;r?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.F_.addLowPriorityJob(function(){f.onWindowResized_(_.Sl(!0))})},
updateTheaterModeState_:function(r){if(!_.N("kevlar_watch_flexy_theater_manager")){r=r||this.fullWindowMode_;if(this.theater!==void 0||r)this.theater=r;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();r&&_.Ut1()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var r=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.N("external_fullscreen")&&this.fullscreen&&(r=!0);r=r?_.e(this.hostElement).querySelector("#player-full-bleed-container"):_.e(this.hostElement).querySelector("#player-container-inner");var f=this.getPlayerContainer(),I=_.N("kevlar_watch_while_v2")||_.N("web_watch_pip");f.parentElement!==r&&(I&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Uk(this).appendTo(r,
f),r.appendChild(_.e(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var r=this;return _.x(function(f){if(f.nextAddress==1)return _.b(f,_.a().resolve(_.iO).deactivate(),2);r.updatePlayerLocation();_.wO(f)})},
updateCinematicsLocation:function(){var r=this.getElement("CINEMATICS");if(r){var f=this.getCinematicsLocationContainer();r.parentElement!==f&&f.appendChild(r);var I;(I=this.watchController)==null||I.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.e(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.e(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(r,f){var I=document.documentElement.hasAttribute("dark"),C=I&&_.N("web_cinematic_theater_mode"),Y=I&&_.N("web_cinematic_fullscreen");I=!I&&this.cinematicLightTheme;return r&&C||f&&Y||(f||r)&&I},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var r=this,f;(f=this.watchController)==null||f.setWatchNextResponse(this.data);_.N("kevlar_watch_flexy_comments_manager")||this.initComments_();_.N("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.a().resolve(_.WP).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,_.N("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.F_.addLowPriorityJob(function(){_.qy(r.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.N("web_watch_start_chat_in_theater_mode")){var I,C,Y;if((I=this.data)==null?0:(C=I.contents)==null?0:(Y=C.twoColumnWatchNextResults)==null?0:Y.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var V,S;((V=this.data)==null?0:(S=V.contents)==null?0:S.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(r){var f;(f=this.watchController)==null||f.setPlayerResponse(this.playerData);r&&r.playabilityStatus&&(f=this.isVideoPlayable_(r.playabilityStatus,this.getPlayerOverlays_(this.data)),r=this.isLiveStreamOffline_(r.playabilityStatus),f&&!r||_.UC(this,function(){_.Xc("pbu")}));
this.setPlayerAds_();_.qy(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(r,f){if((_.N("kevlar_watch_while_v2")||_.N("web_watch_pip"))&&this.playerData&&f)return this.playerData.videoDetails},
watchPageActiveChanged_:function(r){_.K2().dispatch(_.hw7(this.active));r?this.activate_():this.deactivate_()},
attached:function(){var r=this;this.watchController=new _.K1(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);_.N("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var f=_.Uk(this);_.N("kevlar_disable_prepare_player")||
f.preparePlayer();_.N("kevlar_watch_flexy_playlist_manager")||_.a().resolve(_.WP).setPlayer(f);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();f={"--ytd-watch-flexy-scrollbar-width":_.$_()+"px"};this.is==="ytd-watch-grid"&&(f["--ytd-watch-flexy-sidebar-width"]=_.Re+"px",f["--ytd-watch-grid-horizontal-page-margins"]=_.j7+"px",f["--ytd-watch-grid-columns-top-margins"]=_.$Eq+"px",f["--ytd-watch-grid-min-player-height-medium"]="360px");!_.Bw("kv_pl_mx_sz_ks")&&
_.Bw("kevlar_watch_max_player_width")&&(f["--ytd-watch-flexy-max-player-width-wide-screen"]=_.tw1+"px");_.Bw("kevlar_watch_flexy_metadata_height")&&(f["--ytd-watch-flexy-space-below-player"]=_.TCs+"px");this.safeUpdateStyles(f);_.N("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.hw(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return r.onPlayerTouchPanDown_()}}));
_.N("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.e(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var r=_.$_(),f=_.H$+r,I=f;this.fixedPanels&&(f+=_.Re);var C=657+r;r=1327+r;_.e(this.hostElement).querySelector("#two-column-query").query="(min-width: "+f+"px)";_.e(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(C+"px), (min-height: 630px) and (min-width: ")+(f+"px) and (max-width: ")+(r+"px)");_.e(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(r+"px)");_.e(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+I+"px)"},
calculateCurrentPlayerSize_:function(){var r=_.e(this.hostElement).querySelector("#miniplayer-bar").firstChild,f=this.squeezeback&&!_.N("web_watch_squeezeback_player_size_killswitch");return r&&r.active||this.theater||_.N("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||f||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.EZ(NaN,NaN):_.OO(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.OO(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Z8(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var r=this;this.onWindowResized_(_.Sl());_.N("browse_skeleton_removal_on_watch_killswitch")||_.mO("IS_SHELL_LOAD")&&_.iOp();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var f=_.Uk(this);f.addEventListener("yt-player-updated",_.GF(this,this.onPlayerUpdated_));f.getPlayerPromise().then(function(I){r.playerApiReady_(I)});
_.N("kevlar_watch_flexy_playlist_manager")||(f=_.a().resolve(_.WP),_.N("kevlar_watch_observe_playlist_navigations_killswitch")&&f.addEventListener("yt-navigate",_.GF(this,this.onYtNavigate_)),f.setPlaylistComponent(_.e(this.hostElement).querySelector("#playlist")),f.addEventListener("yt-playlist-data-updated",_.GF(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.F_.addLowPriorityJob(function(){_.kA(r.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Uk(this).removeEventListener("yt-player-updated",_.GF(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.N("kevlar_watch_flexy_playlist_manager")){var r=_.a().resolve(_.WP);_.N("kevlar_watch_observe_playlist_navigations_killswitch")&&r.removeEventListener("yt-navigate",_.GF(this,this.onYtNavigate_));
r.cancelVideoSkip();r.removeEventListener("yt-playlist-data-updated",_.GF(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.N("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.kA(this.hostElement,"yt-autonav-pause-player",!1);r=_.Qw();_.N("kevlar_exit_fullscreen_leaving_watch")&&r&&_.A1(r)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(r){this.player&&this.player.updateVideoData({rvs:r.rvs})},
getPageContents:function(r){return r&&r.contents&&r.contents.twoColumnWatchNextResults&&r.contents.twoColumnWatchNextResults.results&&r.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(r){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",r)},
onRetrieveLocation_:function(r,f){f.hasComments?f.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):f.locationRetrieved("/related_ajax",void 0);r.stopPropagation()},
onSubscriptionChanged_:function(r,f){this.player&&(f?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.$m("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.e(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.e(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(r){this.player=r;this.setPlayerState(r.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.N("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.N("kevlar_unified_player")||_.N("kevlar_player_new_bootstrap_adoption"))&&_.ZN()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(r,f){f=f===void 0?!0:f;_.Qw()&&_.N("external_fullscreen")&&_.A1(document.documentElement);this.theaterRequested_=r;f&&_.hd("wide",r?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.Bj(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.kA(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(r){_.TL(r,typeof this.player),this.player&&_.TL(r,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var r;((r=this.player)==null?0:r.isFullscreen())?this.player.toggleFullscreen():_.Bj(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(r,f){return this.loading?f:!!Object.keys(r).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(r){if(r){r=_.E(r);for(var f=r.next();!f.done;f=r.next())f=f.value,f.youThereRenderer&&_.Qe6(this.youThereManager_,f.youThereRenderer)}},
setPlaylistData_:function(r){return r||{}},
userEngagementConfigDataChanged_:function(r){if(r)if(r.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var f=this.youThereManager_;_.Zs()<r.lowEngagementThresholdMs||_.kV3(f,!0)}else r.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Bj(this.hostElement,"yt-autonav-pause-user-engagement",[r])},
isPlayerUnavailable_:function(r,f,I){return!!r&&!this.isVideoPlayable_(r,I)&&!f},
getPlayerOverlays_:function(r){return(r==null?void 0:r.playerOverlays)||null},
isVideoPlayable_:function(r,f){if(!r)return!1;var I=r.status==="OK"||r.status==="LIVE_STREAM_OFFLINE",C=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",r)||this.get("errorScreen.ypcTrailerRenderer",r);r=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",r);var Y;f=f==null?void 0:(Y=f.playerOverlayRenderer)==null?void 0:Y.gatedActionsOverlayRenderer;return!!I||!!C||!!r||!!f},
hasWatchNextResponseErrorRenderer:function(r){var f=this.getPageContents(r),I,C,Y,V,S;return!(r==null?0:(I=r.contents)==null?0:(C=I.twoColumnWatchNextResults)==null?0:C.secondaryResults)&&!!((Y=f[0])==null?0:(V=Y.itemSectionRenderer)==null?0:(S=V.contents[0])==null?0:S.backgroundPromoRenderer)},
isLiveStreamOffline_:function(r){return r?r.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(r,f,I){var C=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",f),Y=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Y=_.N("web_no_skip_video_on_verification_checks")?(r==null?void 0:r.status)&&Y.includes(r.status):r&&r.status==="AGE_CHECK_REQUIRED";var V=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",r);V==void 0&&(V=!0);!I||this.isVideoPlayable_(r,this.getPlayerOverlays_(f))||
C||Y||!V||_.a().resolve(_.WP).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.je2()},
onPlayerFeedbackStartRequest_:function(r){_.Bj(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:r}])},
onPlayerFeedbackArticleRequest_:function(r){_.Bj(this.hostElement,"yt-help-dialog-requested",[r])},
onPlayerYpcContentRequest_:function(){var r,f,I,C,Y,V,S,h,w=((r=this.data)==null?NaN:(f=r.contents)==null?NaN:(I=f.twoColumnWatchNextResults)==null?NaN:(C=I.secondaryResults)==null?NaN:(Y=C.secondaryResults)==null?NaN:(V=Y.offerModule)==null?NaN:(S=V.tvfilmOfferModuleRenderer)==null?NaN:(h=S.actionButtons)==null?NaN:h.length)-1;r=[".offerButton.buttonRenderer.",".actionButtons."+(w>=0?w:0)+".buttonRenderer."];f=_.E(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(I=f.next();!I.done;I=f.next())for(I=I.value,C=_.E(r),Y=C.next();!Y.done;Y=C.next())if(Y="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+I+Y.value,Y=this.get(Y+"navigationEndpoint",this.data)||this.get(Y+"serviceEndpoint",this.data)||this.get(Y+"command",this.data)){_.u7(Y,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(r){_.kA(this.hostElement,"yt-autonav-pause-player",r)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(r){r()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(r){switch(r){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(r){switch(r){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.kA(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(r)},
setPlayerState:function(r){_.K2().dispatch(_.DVT(r))},
onPlayerSubscribe_:function(r){_.Bj(this.hostElement,"yt-player-subscribe",[r])},
onPlayerUnsubscribe_:function(r){_.Bj(this.hostElement,"yt-player-unsubscribe",[r])},
onPlayerAdYtShowToast_:function(r){_.Bj(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:r.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(r){if(r)return r},
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(r){return!_.N("web_watch_move_summary_to_sd")&&!!r},
computeWatchMetadataRefresh:function(){return _.N("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.N("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var r,f,I,C;this.watchNextSecondaryResults=(r=this.data)==null?void 0:(f=r.contents)==null?void 0:(I=f.twoColumnWatchNextResults)==null?void 0:(C=I.secondaryResults)==null?void 0:C.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.N("swatcheroo_pbs_load_grid")&&!_.N("swatcheroo_provide_all_data_on_scheduled_job")){_.F_.cancelJob(this.setRichGridJobId_);var r,f,I,C,Y,V,S;this.setRichGridRendererData((r=this.data)==null?void 0:(f=r.contents)==null?void 0:(I=f.twoColumnWatchNextResults)==null?void 0:(C=I.secondaryResults)==null?void 0:(Y=C.secondaryResults)==null?void 0:(V=Y.results)==null?void 0:(S=V[0])==null?
void 0:S.richGridRenderer)}},
setRichGridRendererData:function(r){this.richGridRendererData=r},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var r,f=(r=this.data)==null?void 0:r.engagementPanels;if(f==null?0:f.length){r=null;f=_.E(f);for(var I=f.next();!I.done;I=f.next()){I=I.value;var C=void 0;if(((C=I.engagementPanelSectionListRenderer)==null?void 0:C.targetId)==="engagement-panel-structured-description"){r=I;break}}var Y,V,S;r=(Y=r)==null?void 0:(V=Y.engagementPanelSectionListRenderer)==null?void 0:(S=V.content)==null?void 0:S.structuredDescriptionContentRenderer;if(r==null?0:r.items){Y=
[];V=_.E(r.items);for(S=V.next();!S.done;S=V.next()){S=S.value;if(!_.N("sd_horizontal_list_show_nav_killswitch")){var h=C=I=f=r=void 0,w=void 0,n=(r=S.horizontalCardListRenderer)==null?void 0:(f=r.header)==null?void 0:(I=f.richListHeaderRenderer)==null?void 0:(C=I.navigationButton)==null?void 0:(h=C.buttonRenderer)==null?void 0:(w=h.command)==null?void 0:w.commandExecutorCommand;n&&n.commands&&(n.commands=n.commands.filter(function(d){return!_.F(d,_.sm2)}))}S.expandableVideoDescriptionBodyRenderer||
S.videoDescriptionHeaderRenderer||Y.push(S)}return{items:Y}}}},
constructWarning_:function(r){return{text:_.iX(r),type:"WARNING"}},
isPlaShelfEnabled_:function(r){if((this.get("adPlacements",r)||[]).length)return!0;r=this.get("playerAds",r)||[];return!(!r.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",r[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var r=this;_.kA(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.N("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var f=this.getScrollTop()>0;this.gestures_&&(f?this.gestures_.detach():this.gestures_.attach());f!==this.showFullerscreenEdu_&&_.N("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=f,_.Uk(this).getPlayerPromise().then(function(I){I.updateFullerscreenEduButtonVisibility(r.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.kA(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var r=this;this.commentsReady=!1;_.F_.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.dp(_.F_,function(){r.setComments_()},1E3)},
setComments_:function(){if(!_.N("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Xc("cmi");_.F_.cancelJob(this.setCommentsJobId_);var r=this.getPageContents(this.data);if(r&&r.length){r=_.E(r);for(var f=r.next();!f.done;f=r.next())if(f=f.value,this.get("itemSectionRenderer.sectionIdentifier",f)==="comment-item-section"){this.comments=f.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.kA(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.N("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.N("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Xc("cmc")},
doRemoveComments_:function(){this.comments={};_.N("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.F_.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.F_.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(r,f){var I=_.F(f.endpoint,_.vj);I&&(!(f=this.get("data.currentVideoEndpoint.watchEndpoint"))||I.videoId!==f.videoId||I.playlistId&&I.playlistId!==f.playlistId||I.index!==void 0&&I.index!==f.index||typeof I.startTimeSeconds!=="number"||(r.stopPropagation(),this.setScrollTop(0),_.Uk(this).getPlayerPromise().then(function(C){var Y=I.startTimeSeconds;C.seekTo(Y);C.wakeUpControls();Y<C.getDuration()&&C.playVideo()})))},
updatePlayerStartTime_:function(){var r=_.gQ7();"t"in r&&(r=_.JE6(r.t),this.player.seekTo(r,!0))},
updateTitleFromWatchNext:function(r){r=this.getPageContents(r);var f,I;(r=_.Rr(r==null?void 0:(f=r[0])==null?void 0:(I=f.videoPrimaryInfoRenderer)==null?void 0:I.title))&&_.kA(this.hostElement,"yt-update-title",r)},
updateTitle_:function(r){r=this.get("videoDetails.title",r)||"";_.kA(this.hostElement,"yt-update-title",r)},
syncWithRemoteVideo_:function(r,f,I){if(this.active&&this.player){var C=this.player.getVideoData();if(C.video_id===I&&(I=C.list,_.N("polymer_enable_mdx_queue")&&I&&I.startsWith("RQ")&&(I=void 0),C.video_id!==r||I!=f)){var Y;_.N("kevlar_player_watch_endpoint_navigation")?Y=_.rpw(_.cEs(r,f)):Y=this.buildWatchEndpoint_(r,f);_.kA(this.hostElement,"yt-navigate",{endpoint:Y,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(r,f,I){return _.QR(r,f,I)},
initDclkstatus_:function(){_.mxV()},
attachWatchPageSkeleton_:function(){var r=document.querySelector("#watch-page-skeleton");if(r){var f=r.querySelector("#primary-info"),I=r.querySelector("#secondary-info"),C=r.querySelector("#related");f&&_.e(this.hostElement).querySelector("#info-skeleton").appendChild(f);I&&_.e(this.hostElement).querySelector("#meta-skeleton").appendChild(I);C&&(_.e(this.hostElement).querySelector("#related-skeleton").appendChild(C),this.watchNextSkeletonEl_=C);_.bE(r)}},
handlePlayerUpdated_:function(){_.Uk(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(r,f){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof f!=="undefined"){var I=this.watchNextSkeletonEl_.children,C=r&&r.indexSplices.length?r.indexSplices[0].index:0;r=Math.min(this.watchNextShownItems.length,I.length);f||(C=0,r=I.length);for(f=C;f<r;f++)I[f].classList.add("hidden")}},
onPlayerFullscreenChange_:function(r){_.N("external_fullscreen")||_.Bj(this.hostElement,"yt-player-fullscreen",[r.fullscreen])},
onFullscreenChange_:function(r){this.fullscreen=r;this.gestures_&&this.gestures_.update(this.fullscreen);var f=_.Uk(this);f.getPlayerPromise().then(function(I){I.setFauxFullscreen(!!_.Qw())});
this.updateFullBleedElementLocations();r&&(f.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(r,f){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!f},
computeIsDonationShelfCollapsed_:function(r){return r},
computeShouldShowMerchShelf:function(r,f){return f&&!!r},
computeResponseHasComments:function(r){var f,I,C,Y,V;return!!(r==null?0:(f=r.contents)==null?0:(I=f.twoColumnWatchNextResults)==null?0:(C=I.results)==null?0:(Y=C.results)==null?0:(V=Y.contents)==null?0:V.some(function(S){var h;return(S==null?void 0:(h=S.itemSectionRenderer)==null?void 0:h.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(r,f,I,C){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&C?!1:!!r&&!!Object.keys(r).length&&!f},
identity:_.sP,onWindowResized_:function(r){this.windowSize_=r;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_());_.N("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(r){var f=this;r&&r.type!=="dataloaded"&&r.type!=="dataupdated"||_.Uk(this).getPlayerPromise().then(function(I){var C=I.getPlayerState();C!==5&&C!==0&&(I=1/I.getVideoAspectRatio(),f.videoHeightToWidthRatio_!==I&&(f.videoHeightToWidthRatio_=I))})},
schedulePlayerSizeUpdate_:function(r){var f=this,I=_.N("kevlar_watch_while_v2")||_.N("web_watch_pip"),C=function(){if(f.watchMetadata){var Y,V;(V=(Y=f.watchMetadata).resize)==null||V.call(Y)}_.Uk(f).getPlayerPromise().then(function(S){if(_.N("kevlar_set_internal_player_size")){if(!I||!f.isMiniplayerActive()){var h=f.calculateCurrentPlayerSize_();S.setInternalSize(h.width,h.height)}}else S.setSize(NaN,NaN);_.N("kevlar_watch_while")&&f.updateWatchWhileScrollThreshold_()})};
r?C():_.aK(_.F_,C)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(r){this.set("data.survey",r.detail)},
onYtShowSurveyCommand_:function(r){this.set("data.survey",_.F(r,_.UxV).survey)},
onDownloadedVideoDeleted:function(r){var f=this,I,C;return _.x(function(Y){if(Y.nextAddress==1){if(!f.active||(I=f.playerData)==null||!I.offlineState||f.videoId!==r)return Y.return();(C=f.player)==null||C.stopVideo();_.xP().navigatingAwayFromWatchDeletedVideo=!0;_.u7(_.KDd,f.hostElement);return _.b(Y,_.xP().navigationFinishPromise,2)}_.xP().navigatingAwayFromWatchDeletedVideo=!1;_.wO(Y)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var r;this.theater?r=_.my(.5625*this.windowSize_.width,480,this.windowSize_.height-185):r=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==r&&(this.watchWhileScrollThreshold_=r,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var r=_.e(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&r){var f=this.windowSize_.height>=624,I=this.active?this.getScrollTop():0;!r.active&&f&&I>=this.watchWhileScrollThreshold_?(r.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):r.active&&(!f||I<this.watchWhileScrollThreshold_&&!_.Qw())&&(r.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var r=_.e(this.hostElement).querySelector("#secondary-inner");if(r){var f=_.e(this.hostElement).querySelector("#below"),I=_.e(this.hostElement).querySelector("#secondary"),C=_.e(this.hostElement).querySelector("#comments");C&&I&&f&&(this.defaultTwoColumnLayout?(r.appendChild(C),I.appendChild(r)):(f.appendChild(C),_.JE(f,r)))}}},
isTwoColumnsChanged_:function(r,f){if(r!==!0||f!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(r=_.e(this.hostElement).querySelector("#secondary-inner"))){f=_.e(this.hostElement).querySelector("#below");var I=_.e(this.hostElement).querySelector("#secondary"),C=_.e(this.hostElement).querySelector("#comments");C&&I&&f&&(this.isTwoColumns_?(r.appendChild(C),I.appendChild(r)):(f.appendChild(C),
_.JE(f,r)))}}else{r=!_.N("live_chat_over_engagement_panels");f=_.e(this.hostElement).querySelector("#chat-container");I=_.e(this.hostElement).querySelector("#panels");var Y=_.e(this.hostElement).querySelector("#alerts");C=_.e(this.hostElement).querySelector("#playlist");var V=_.e(this.hostElement).querySelector("#related"),S=_.e(this.hostElement).querySelector("#donation-shelf"),h=_.e(this.hostElement).querySelector("#comments");this.isTwoColumns_?(Y=_.e(this.hostElement).querySelector("#secondary-inner"),
r&&Y.appendChild(I),Y.appendChild(C),_.N("web_watch_theater_chat")||Y.appendChild(f),r||Y.appendChild(I),Y.appendChild(S),Y.appendChild(V)):(r&&_.T1(I,Y),_.T1(C,Y),_.N("web_watch_theater_chat")||_.T1(f,Y),r||_.T1(I,Y),_.T1(S,Y),h&&_.T1(V,h));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.N("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.N("web_watch_theater_chat")){var r=_.e(this.hostElement).querySelector("#chat-container"),f=this.theater&&!this.fullscreen||_.N("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&f?_.N("web_watch_theater_chat_beside_player")?(f=_.e(this.hostElement).querySelector("#panels-full-bleed-container"),(r==null?void 0:r.parentElement)!==f&&f.append(r),this.panelsBesidePlayer=!0):
_.N("web_watch_theater_fixed_chat")&&(f=_.e(this.hostElement).querySelector("#columns"),(r==null?void 0:r.parentElement)!==f&&f.append(r),this.fixedPanels=!0):(_.N("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.N("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),f=_.e(this.hostElement).querySelector("#playlist"),r&&f?_.cY(r,f):_.t7(new _.nf("Missing element when updating chat location",{"chatContainer defined":!!r,"playlist defined":!!f})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(r,f){return _.N("sw_metadata_vis_toggle_ks")?!0:!!r||!!f},
computeForceDarkPanelTheme:function(r){return _.N("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&r:!1},
safeUpdateStyles:function(r){try{_.Zh(this.hostElement,r)}catch(f){_.t7(f)}},
videoHeightToWidthRatioChanged_:function(r,f){f&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(r){this.videoHeightToWidthRatio_=1/r},
computeIsVerticalVideo_:function(r){return r>=1},
computeIsFourThreeToSixteenNineVideo_:function(r){return r<=.7501&&r>=.5624},
computeIsExtraWideVideo_:function(r){return r<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Uk(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Uk(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.BE6(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(r){var f=_.YJ(r)||0;_.Ch(r,f+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var r=_.YJ("yt-fullerscreen-edu-button-click-count")||0,f=_.YJ("yt-fullerscreen-edu-button-shown-count")||0,I=_.Bw("external_fullscreen_button_shown_threshold"),C=r>=_.Bw("external_fullscreen_button_click_threshold")||f>=I;_.Uk(this).getPlayerPromise().then(function(Y){Y.updateFullerscreenEduButtonSubtleModeState(C)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(r,f){return f},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.a().resolve(_.WP).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var r=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.F_.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.F_.addLowPriorityJob(function(){r.fullHeightPanelPositionUpdateJobId=0;var f=_.e(r.hostElement).querySelector("#secondary"),I=_.e(r.hostElement).querySelector("#fixed-secondary");f=f.getBoundingClientRect();var C=f.width;r.swatcherooSqueezeback&&
(C+=_.j7);if(r.swatcherooSqueezeback){var Y=_.e(r.hostElement).querySelector("#squeezeback-constraining-container");Y.style.width=C+"px";Y.style.flex="0 0 "+C+"px"}I.style.width=C+"px";I.style.left=f.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var r=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.F_.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.F_.addLowPriorityJob(function(){r.panelMaxHeightUpdateJob_=0;var f;!r.isTwoColumns_||r.theater||r.fullscreen?f=460:f=r.calculateNormalPlayerSize_().height;var I=f+"px";_.N("live_chat_taller_height")&&!r.theater&&(I="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.N("live_chat_medium_height")&&!r.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.N("live_chat_scaled_height")&&!r.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 238px)");r.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":f+"px","--ytd-watch-flexy-chat-max-height":I,"--ytd-watch-flexy-structured-description-max-height":f+"px","--ytd-watch-flexy-comments-panel-max-height":f+"px","--ytd-comments-engagement-panel-content-height":f+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var r=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.N("web_watch_flexy_adjust_sidebar_width"))&&!_.N("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.F_.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.F_.addLowPriorityJob(function(){r.panelMaxHeightUpdateJob_=0;if(r.isTwoColumns_){var f=_.ewq(r.windowSize_,r.calculateNormalPlayerSize_().width);f!==r.currentSidebarWidth&&(r.currentSidebarWidth=
f,r.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":f+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(r){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",r)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.rX(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(r){var f=_.e(this.hostElement).querySelector("#engagement-panel-scrim");r?f.addEventListener("tap",_.GF(this,this.onEngagementPanelScrimClick_)):f.removeEventListener("tap",_.GF(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(r){if(this.hostElement.contains(r)&&!this.scrollToAnimation_.isAnimating()){var f=r.offsetTop-24;r=r.offsetTop+r.offsetHeight+24;var I=this.getPageScrollingElement(),C=this.getScrollTop(),Y=C+I.clientHeight-56;if(f<C+56)f-=56;else if(r>Y)f=r-I.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,f),500)}},
onYtSignalActionScrollToComments:function(){var r=this.hostElement.querySelector("#comments");if(r&&!this.scrollToAnimation_.isAnimating()){r=r.offsetTop-56-24;if(_.N("kevlar_comment_teaser_scroll_to_midpoint")&&(r-=_.Sj().height/3,r<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,r),500)}},
onYtEngagementPanelVisibleChanged:function(r,f,I){if(this.active&&this.trackEngagementPanelVisibility&&!_.KzY.includes(I)){if(f==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback)if(this.onSetPlaylistCollapsed(!0),_.qy(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]),_.N("kevlar_single_panel_fullscreen")){var C=_.a().resolve(_.dD);this.visiblePanelIdentifiers_.forEach(function(Y){Y!==I&&C.hidePanel(Y)})}this.visiblePanelIdentifiers_.add(I)}f!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&f!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(I);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(r){return r?"":"watch-active-metadata"},
computeNewMetadataClass:function(r){return r?"watch-active-metadata":""},
computeFullBleedPlayer:function(r,f,I){return r||f||this.enableFullBleedSingleColumnDefaultPlayer&&!I},
computeDefaultLayout:function(r){return!r},
computeDefaultTwoColumnLayout:function(r,f){return!r&&f},
updatePanelsLocation:function(){if(_.N("web_watch_enable_fs_squeezeback_panels")){var r=_.e(this.hostElement).querySelector("#below"),f=_.e(this.hostElement).querySelector("#panels"),I=_.e(this.hostElement).querySelector("#panels-full-bleed-container"),C=_.e(this.hostElement).querySelector("#secondary-inner");this.fullscreen?I.appendChild(f):this.isTwoColumns_?_.JE(C,f):r.appendChild(f)}},
swatcherooUpdatePanelsLocation:function(r,f,I,C,Y,V){if(this.is==="ytd-watch-grid"){f=r&&!f;this.swatcherooSplitScroll&&(f?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));I=_.e(this.hostElement).querySelector("#panels");var S=_.e(this.hostElement).querySelector("#playlist"),h=_.e(this.hostElement).querySelector("#fixed-secondary"),w=_.e(this.hostElement).querySelector("#fixed-below"),
n=_.e(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),d=_.e(this.hostElement).querySelector("#chat-container");V&&(r?h.appendChild(I):w.appendChild(I));Y?r?h.appendChild(d):w.appendChild(d):_.cY(d,n);C?r?h.appendChild(S):w.appendChild(S):_.cY(S,n);this.swatcherooSplitScroll&&(r=_.e(this.hostElement).querySelector("#secondary"),C=_.e(this.hostElement).querySelector("#columns"),Y=_.e(this.hostElement).querySelector("#fixed-columns-secondary"),f?Y.appendChild(r):
C.appendChild(r))}},
computeMetadataSkinnyMode:function(r,f,I){return this.is!=="ytd-watch-grid"?!1:r?I:f},
computeWatchWhilePanelsActive:function(r,f){return r||f},
computeNoBorderOnChat:function(r){return _.N("web_watch_theater_chat_no_border")&&r},
computeLiveChatPresentAndExpanded:function(r,f){return r&&!f},
computePanelExpanded:function(r,f,I){return r||f||I},
computeSqueezeback:function(r,f){if(_.N("web_watch_enable_fs_squeezeback_panels"))return r&&f},
computeSwatcherooSqueezeback:function(r,f,I){return this.is!=="ytd-watch-grid"||_.N("ww_squeezeback_killswitch")?!1:r&&f&&I},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(r){_.Uk(this).getPlayerPromise().then(function(f){var I;(I=f.changeMarkerVisibility)==null||I.call(f,_.F(r,_.oI).isVisible||!1,_.F(r,_.oI).entityKeys||[],_.F(r,_.oI).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(r){this.liveChatCollapsed=r.detail;_.K2().dispatch(_.vQY(r.detail))},
onSetPlaylistCollapsed:function(r){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!r)},
provideRenderingData:function(r,f){switch(r){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=f;break;case "PRIMARY_INFO":_.N("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=f);this.videoPrimaryInfoRendererValue=f==null?void 0:f.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.N("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=f);this.videoSecondaryInfoRendererValue=f==null?void 0:f.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
f;break;case "CLARIFICATION":this.clarifyBoxValue=f;break;case "LIVE_CHAT":this.conversationBar=f;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=f;break;case "PLAYLIST":this.externalPlaylistData_=f!=null?f:{};break;case "MERCH_SHELF":this.merchShelfValue=f==null?void 0:f.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=f;break;case "TICKET_SHELF":this.ticket=f;break;case "OFFER_MODULE":this.offerModule=f;break;case "LIMITED_STATE":this.limitedStateValue=
f;break;case "DONATION_SHELF":this.donation=f;break;case "ALERTS":this.alertsValue=f;break;case "COMMENTS":this.comments=f;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=f;break;case "ENGAGEMENT_PANELS":this.engagementPanels=f;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=f;break;case "RICH_GRID_RENDERER":this.richGridRendererData=f;break;case "EXPANDABLE_METADATA":this.expandableMetadata=f;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
f}},
toggleCinematicsActive:function(r){this.cinematicsActive=r},
isMiniplayerActive:function(){return _.a().resolve(_.iO).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var rV7;_.DUU=function(r){return r.shorts.isShortsActive};
_.fs7=function(r){return r.findIndex(function(f){return rV7.indexOf(f.tagName)>-1})>-1};
_.Iss=function(r){return _.kI({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:r}})};
_.Cx1=function(){var r=_.a().resolve(_.BP);_.ANR(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(r.isFullscreenEnabled()?_.A1(document.documentElement):_.Xz$(document.documentElement))};
rV7=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.AX=new Map;_.AX.set(32,59972);_.AX.set(27,50765);_.AX.set(70,60102);_.AX.set(76,60221);_.AX.set(77,60222);_.AX.set(74,60223);_.AX.set(84,60224);_.AX.set(38,61941);_.AX.set(40,61942);_.AX.set(73,62521);_.AX.set(67,62522);_.AX.set(80,63390);_.AX.set(78,63397);_.AX.set(75,59972);_.AX.set(188,63385);_.AX.set(190,63384);_.AX.set(36,63387);
_.AX.set(35,63386);_.AX.set(37,63388);_.AX.set(39,63389);_.AX.set(79,63423);_.AX.set(87,63424);_.AX.set(107,63426);_.AX.set(109,63425);_.AX.set(65,63428);_.AX.set(83,63430);_.AX.set(68,63429);_.AX.set(221,63431);_.AX.set(219,63432);_.AX.set(97,63439);_.AX.set(98,63440);_.AX.set(99,63441);_.AX.set(100,63442);_.AX.set(101,63443);_.AX.set(102,63444);_.AX.set(103,63445);_.AX.set(104,63446);_.AX.set(105,63447);_.Zu=new Map;_.Zu.set(80,63390);_.Zu.set(78,63397);_.Zu.set(188,63400);_.Zu.set(190,63401);
_.Zu.set(191,60765);_.Zu.set(13,247917);_.Gc=new Map;_.k8=new Map;
}catch(e){_._DumpException(e)}
try{
var f8Y,YZp,l8q,Vjq;_.qg7=function(r){return r.ui.guideIsVisibleButNotPersistent};
_.uJs=function(r){return r.ui.tabGesturesIsActive};
_.Das=function(){var r=_.qC("service_worker_scope");try{return navigator.serviceWorker.getRegistration(r)}catch(f){return Promise.reject(f)}};
_.ros=function(r){return!(!r||!r.pushManager)};
f8Y=function(){return _.Das().then(_.ros).catch(function(){return!1})};
_.I8V=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?f8Y():Promise.resolve(!1)};
_.C3s=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
YZp=function(){var r,f,I;return _.x(function(C){switch(C.nextAddress){case 1:return _.b(C,_.gj.getInstance(),2);case 2:r=C.yieldResult;if(!r){f=void 0;C.jumpTo(3);break}return _.b(C,r.get("lmqf"),4);case 4:f=C.yieldResult;case 3:switch((I=f)||(I="SD"),I){case "HD":return C.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return C.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return C.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return C.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return C.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
l8q=function(r){var f,I,C;return _.x(function(Y){if(Y.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.N("disable_av1_setting")){var V=window.localStorage["yt-player-av1-pref"];V=V==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":V==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else V="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(f=r===V)return Y.jumpTo(2);C=I=r;return _.b(Y,YZp(),3)}Y.nextAddress!=2&&(f=C===Y.yieldResult);return Y.return(f)})};var EX3;var SZ7=_.gx.IronButtonState,xSd=(0,_.d8)(HTMLElement);
_.wm({_template:function(){if(EX3!==void 0)return EX3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;Vjq===void 0&&(Vjq=document.createElement("template"));var C=Vjq;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return EX3=r},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[SZ7,_.zd,_.aE,_.$7],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(r){var f=(0,_.xf)(this);f.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:r});f.shadowRoot.appendChild(r);return xSd.prototype._attachDom.call(this,r)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var r=this.contentElement;r&&r.selectedItem&&this._setSelectedItem(r.selectedItem)},
get contentElement(){for(var r=_.zI(this.$.content).getDistributedNodes(),f=0,I=r.length;f<I;f++)if(r[f].nodeType===Node.ELEMENT_NODE)return r[f]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(r){this._setSelectedItem(r.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(r){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(r)===this&&this.open()},
_selectedItemChanged:function(r){var f="";r?f=r.label||r.getAttribute("label")||r.textContent.trim():f="";this.value=f;this._setSelectedItemLabel(f)},
_computeMenuVerticalOffset:function(r,f){return f?f:r?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var r=this.opened?"true":"false",f=this.contentElement;f&&f.setAttribute("aria-expanded",r)}});_.jT=new _.q("navigateAction");var h4V=new _.q("formRenderer");var H0=function(){var r=_.rm.apply(this,arguments)||this;r.showInput=!1;return r};
_.t(H0,_.rm);_.l=H0.prototype;_.l.detached=function(){this.showInput&&window.removeEventListener("click",_.GF(this,this.closeOnOutsideClick_))};
_.l.stopPropagation_=function(r){this.showInput&&r.stopPropagation()};
_.l.closeOnOutsideClick_=function(r){this.closeOnOutsideClickCondition(r)&&(this.showInput=!1,window.removeEventListener("click",_.GF(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.l.closeOnOutsideClickCondition=function(){return!0};
_.l.closeOnOutsideClickHandler=function(){};
_.l.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.GF(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.l.openOnClickHandler=function(){};
_.l.showInputChanged=function(){};
_.l.setShowInput=function(r){this.showInput=r};
H0.prototype.setShowInput=H0.prototype.setShowInput;H0.prototype.showInputChanged=H0.prototype.showInputChanged;H0.prototype.openOnClickHandler=H0.prototype.openOnClickHandler;H0.prototype.openOnClick_=H0.prototype.openOnClick_;H0.prototype.closeOnOutsideClickHandler=H0.prototype.closeOnOutsideClickHandler;H0.prototype.closeOnOutsideClickCondition=H0.prototype.closeOnOutsideClickCondition;H0.prototype.closeOnOutsideClick_=H0.prototype.closeOnOutsideClick_;H0.prototype.stopPropagation_=H0.prototype.stopPropagation_;
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],H0.prototype,"showInput",void 0);_.A([_.kO("click"),_.kO("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],H0.prototype,"stopPropagation_",null);_.A([_.Bt("showInput"),_.B("design:type",Function),_.B("design:paramtypes",[Boolean]),_.B("design:returntype")],H0.prototype,"showInputChanged",null);H0=_.A([_.fx()],H0);_.wkq=[H0.prototype];var bo3;var pk3;var ib=function(){return _.y.apply(this,arguments)||this};
_.t(ib,_.y);_.l=ib.prototype;_.l.computePreselectedOption=function(r,f){return f===this.itemSelected_?r:void 0};
_.l.dataChanged_=function(){var r=this;this.preselectedSubreason=this.itemSelected_=-1;var f;(f=this.data)!=null&&f.key&&_.UC(this,function(){var I,C=Number((I=r.data)==null?void 0:I.key);!Number.isNaN(C)&&(r.itemSelected_=C,I=(I=(r.data.items||[])[C])&&I.optionSelectableItemRenderer&&I.optionSelectableItemRenderer.preselectedIndex)&&(r.preselectedSubreason=I)})};
_.l.isSubReasonHidden_=function(r,f){return r!=f};
_.l.onTopItemSelected_=function(r,f){for(var I=_.e(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),C=0,Y=I.length;C<Y;C++)I[C].select(0);_.Bj(this.hostElement,"yt-report-form-update",[f.item.value]);r.stopPropagation()};
_.l.onItemSelected_=function(r,f){_.Bj(this.hostElement,"yt-report-form-update",[f.item.value]);r.stopPropagation()};
_.l.getItem_=function(r){return r.serviceItem?r.serviceItem:r.navigationItem?r.navigationItem:r.optionSelectableItemRenderer?r.optionSelectableItemRenderer:null};
_.l.computeText_=function(r){return(r=this.getItem_(r))?this.ytRendererBehavior.getSimpleString(r.text):null};
_.l.validate=function(){return this.itemSelected_!==-1};
_.l.computeAriaLabel_=function(r){var f=_.Rr(r.text);(r=r.accessibility&&r.accessibility.accessibilityData&&r.accessibility.accessibilityData.label)&&(f+=". "+r);return f};
_.l.computeItemSelected_=function(r){return r};
_.l.preventSelection_=function(r){r.stopPropagation();this.tooltipTapped=!0};
_.l.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.l.updateItemSelectedFromBinding=function(r){this.itemSelected_=r.detail.value};
_.l.save=function(){var r;this.validate()&&(r=this.data)!=null&&r.items&&(r=this.data.items[this.itemSelected_],r!=null&&r.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(r.optionSelectableItemRenderer.submitEndpoint)||_.Do(this.hostElement,[r.optionSelectableItemRenderer.submitEndpoint])))};
ib.prototype.onPaperRippleTransitionEnd_=ib.prototype.onPaperRippleTransitionEnd_;ib.prototype.dataChanged_=ib.prototype.dataChanged_;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],ib.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ib.prototype,"data",void 0);_.A([_.K({value:-1}),_.B("design:type",Number)],ib.prototype,"itemSelected_",void 0);
_.A([_.K({computed:"computeItemSelected_(itemSelected_)"}),_.B("design:type",Number)],ib.prototype,"value",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],ib.prototype,"restoreFocusOnClose",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],ib.prototype,"tooltipTapped",void 0);_.A([_.K({value:-1}),_.B("design:type",Number)],ib.prototype,"preselectedSubreason",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ib.prototype,"dataChanged_",null);_.A([_.kO("transitionend"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ib.prototype,"onPaperRippleTransitionEnd_",null);ib=_.A([_.zX({is:"yt-options-renderer",disableElementRegistration:!0})],ib);
_.Q(ib,"yt-options-renderer",function(){if(pk3===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;bo3===void 0&&(bo3=document.createElement("template"));var C=bo3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);pk3=r}r=pk3;return r},{mode:2});var nXY;var dSq;var z47;var MjB;var gXd;var a8i;var Rg=function(){return _.y.apply(this,arguments)||this};
_.t(Rg,_.y);Rg.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
Rg.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Rg.prototype.onTap=function(r){if(this.hostElement.classList.contains("selected")||_.uy(this.hostElement,"yt-share-panel-can-select-contact-action"))r&&r.detail&&(r.detail.x||r.detail.y)&&_.e(this.hostElement).querySelector("#target").blur(),(r=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),r={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:r?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.Bj(this.hostElement,"yt-share-panel-select-contact-action",[r])};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Rg.prototype,"ytRendererBehavior",void 0);_.A([_.K({observer:"onDataChanged"}),_.B("design:type",Object)],Rg.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.B("design:type",String)],Rg.prototype,"componentTitle",void 0);_.A([_.uA("#thumbnail"),_.B("design:type",Object)],Rg.prototype,"thumbnail",void 0);Rg=_.A([_.zX({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],Rg);
_.Q(Rg,"yt-enrolled-contact-renderer",function(){if(a8i===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;gXd===void 0&&(gXd=document.createElement("template"));var C=gXd;I.call(f,C.content.cloneNode(!0),r.content.firstChild);a8i=r}r=a8i;return r},{mode:2});var Xk6;var N5Y;var v0=function(){return _.y.apply(this,arguments)||this};
_.t(v0,_.y);v0.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
v0.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
v0.prototype.onTap=function(r){if(this.hostElement.classList.contains("selected")||_.uy(this.hostElement,"yt-share-panel-can-select-contact-action"))r&&r.detail&&(r.detail.x||r.detail.y)&&_.e(this.hostElement).querySelector("#target").blur(),(r=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),r={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:r?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.Bj(this.hostElement,"yt-share-panel-select-contact-action",[r])};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);_.A([_.K({observer:"onDataChanged"}),_.B("design:type",Object)],v0.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.B("design:type",String)],v0.prototype,"componentTitle",void 0);_.A([_.uA("#thumbnail"),_.B("design:type",Object)],v0.prototype,"thumbnail",void 0);v0=_.A([_.zX({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],v0);
_.Q(v0,"yt-suggested-contact-renderer",function(){if(N5Y===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;Xk6===void 0&&(Xk6=document.createElement("template"));var C=Xk6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);N5Y=r}r=N5Y;return r},{mode:2});var KS=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-share-panel-reset-action":"onReset"};return r};
_.t(KS,_.y);KS.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"}}}}}};
KS.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.Bj(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
KS.prototype.onReset=function(){for(var r=_.e(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),f=r.length-1;f>=0;f--)r[f].classList.toggle("selected")};
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],KS.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],KS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K({observer:"onDataChanged"}),_.B("design:type",Object)],KS.prototype,"data",void 0);
KS=_.A([_.zX({is:"yt-contact-section-renderer",disableElementRegistration:!0})],KS);
_.Q(KS,"yt-contact-section-renderer",function(){if(MjB===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;z47===void 0&&(z47=document.createElement("template"));var C=z47;I.call(f,C.content.cloneNode(!0),r.content.firstChild);MjB=r}r=MjB;return r},{mode:2});var yj=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return r};
_.t(yj,_.y);_.l=yj.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(r){var f;(r=_.F((f=_.F(r,_.QFs))==null?void 0:f.formRenderer,h4V))&&this.set("data",r)};
_.l.reset=function(){var r=_.e(this.hostElement).querySelector("#fields").children;r=_.E(r);for(var f=r.next();!f.done;f=r.next())f=f.value,f.reset&&f.reset()};
_.l.getForm=function(){var r={},f=_.e(this.hostElement).querySelector("#fields").children;f=_.E(f);for(var I=f.next();!I.done;I=f.next()){I=I.value;if(!I.validate())return null;r[I.data.key]=I.value}return r};
_.l.submitFormFields=function(){if(this.fields)for(var r=_.E(this.fields),f=r.next();!f.done;f=r.next())f=f.value,f.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?f.save():f.nodeName==="YT-OPTIONS-RENDERER"&&f.save()};
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],yj.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],yj.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],yj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],yj.prototype,"data",void 0);_.A([_.Dh("#fields > *"),_.B("design:type",Array)],yj.prototype,"fields",void 0);
yj=_.A([_.zX({is:"yt-form-renderer",disableElementRegistration:!0})],yj);
_.Q(yj,"yt-form-renderer",function(){if(dSq===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;nXY===void 0&&(nXY=document.createElement("template"));var C=nXY;I.call(f,C.content.cloneNode(!0),r.content.firstChild);dSq=r}r=dSq;return r},{mode:2});var $SY;var Uy=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return r};
_.t(Uy,_.y);Uy.prototype.onCheckboxChange=function(r){this.data&&(r=(this.checked=_.jl(r).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.a().resolve(_.Gg).resolveCommand(r,{form:{element:this.hostElement}})};
Uy.prototype.handleUpdateCheckboxCommand=function(r){(r=_.F(r,_.VXC))&&this.data&&this.data.id===r.id&&(this.set("data.disabled",r.disabled),this.set("data.title",r.title))};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Uy.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Uy.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Uy.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],Uy.prototype,"checked",void 0);Uy=_.A([_.U({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Uy);
_.Q(Uy,"ytd-settings-checkbox-renderer",function(){if($SY!==void 0)return $SY;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return $SY=r},{mode:1});var FIp;var sy=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return r};
_.t(sy,_.y);sy.prototype.dataChanged=function(){var r=this,f;return _.x(function(I){if(I.nextAddress==1)return r.radio.removeAttribute("checked"),!r.data||!r.data.id||r.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.C3s()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(f=r.data&&r.data.id)?_.b(I,l8q(r.data.id),4):I.jumpTo(3):(r.set("data.hidden",!0),I.jumpTo(0));I.nextAddress!=3&&(f=I.yieldResult);f&&_.Bj(r.hostElement,"yt-select-settings-radio-option",[r.data.id]);_.wO(I)})};
sy.prototype.onButtonChanged=function(r){_.jl(r).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.a().resolve(_.Gg).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.Bj(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
sy.prototype.onSelectOption=function(r){this.data&&this.data.id&&(this.data.id===r?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
sy.prototype.dataChanged=sy.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],sy.prototype,"ytActionHandlerBehavior",void 0);_.A([_.uA("#radio"),_.B("design:type",Object)],sy.prototype,"radio",void 0);_.A([_.K(),_.B("design:type",Object)],sy.prototype,"data",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],sy.prototype,"dataChanged",null);sy=_.A([_.U({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],sy);
_.Q(sy,"ytd-settings-radio-option-renderer",function(){if(FIp!==void 0)return FIp;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return FIp=r},{mode:1});var P3p;var Oy=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return r};
_.t(Oy,_.y);
Oy.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"}}}};
Oy.prototype.handleUpdateTextCommand=function(r){(r=_.F(r,_.Ek8))&&this.data&&this.data.id===r.id&&this.set("data",r)};
Oy.prototype.handleUpdateConnectedAppRendererCommand=function(r){if(_.F(r,_.h04)&&this.data){var f,I;if(r=(f=_.F(r,_.h04))==null?void 0:(I=f.newConnectedAppRenderer)==null?void 0:I.connectedAppRenderer)this.data=r}};
Oy.prototype.computeConnectedAppStyle=function(r){return r.style?r.style.toLowerCase().replace(/_/g,"-"):""};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Oy.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Oy.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Oy.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.B("design:type",String)],Oy.prototype,"connectedAppStyle",void 0);Oy=_.A([_.U({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],Oy);
_.Q(Oy,"ytd-connected-app-renderer",function(){if(P3p!==void 0)return P3p;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return P3p=r},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Ph("iuT5Oc");

_.ty();
}catch(e){_._DumpException(e)}
try{
_.Ph("L3n37");
var xNq=function(r){return r.watch.isLearningJourneyActive},hFV=_.pQ(115994),wxB=_.pQ(115993),bt6=function(r,f,I){var C=this;
var Y=I.dragDownAction;this.layer=0;this.JSC$20391_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return C.dragDownAction()}}}};
this.JSC$20391_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return C.dragDownAction()}}}};
this.fullscreen=!1;var V=_.IB();_.C3(V,hFV,this.layer);_.C3(V,wxB,this.layer);this.dragDownAction=function(){Y();_.cl(V,{visualElement:C.fullscreen?hFV:wxB})};
this.gesture=new _.VN(r,f,this.JSC$20391_watchConfig,"pandown");this.attach()};
bt6.prototype.attach=function(){this.gesture.attach()};
bt6.prototype.detach=function(){this.gesture.detach()};
bt6.prototype.update=function(r){this.fullscreen=r;this.gesture.config=r?this.JSC$20391_watchFullScreenConfig:this.JSC$20391_watchConfig};var px6=function(r){_.QK.call(this);var f=this;this.rootElement=r;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return f.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(I){f.initOrDisposeActiveModules(I)}));
this.onAttached()};
_.t(px6,_.QK);_.l=px6.prototype;_.l.getRoot=function(){return this.rootElement};
_.l.getElement=function(r){return this.rootElement.getElement(r)};
_.l.setPlayerResponse=function(r){this.playerResponse=r;this.publish("PLAYER_RESPONSE_UPDATED",r)};
_.l.getPlayerResponse=function(){return this.playerResponse};
_.l.setWatchNextResponse=function(r){this.watchNextResponse===r?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=r,this.publish("WATCH_NEXT_RESPONSE_UPDATED",r))};
_.l.getWatchNextResponse=function(){return this.watchNextResponse};
_.l.registerActionHandler=function(r,f){var I=this;if(_.N("web_watch_controller_reg_multiple_handlers_killswitch")){var C={};_.R5(_.iz.getInstance(),(C[r]=f,C),this.getRoot())}else this.actionHandlers.has(r)||(this.actionHandlers.set(r,[]),C={},_.R5(_.iz.getInstance(),(C[r]=function(){var Y=_.XE.apply(0,arguments);return(I.actionHandlers.get(r)||[]).map(function(V){return V.apply(null,_.Na(Y))})},C),this.getRoot())),this.actionHandlers.get(r).push(f)};
_.l.unregisterActionHandler=function(r){if(_.N("web_watch_controller_reg_multiple_handlers_killswitch")){var f={};_.vR(_.iz.getInstance(),(f[r]=!0,f),this.getRoot())}else(f=this.actionHandlers.get(r))?(f.pop(),f.length===0&&(f={},_.vR(_.iz.getInstance(),(f[r]=!0,f),this.getRoot()),this.actionHandlers.delete(r))):_.t7(new _.nf("Attempted to unregister an action handler which is not registered.",r))};
_.l.addPageDisposeJob=function(r){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Zd(this.rootElement.pageDisposeJobs,r)};
_.l.removePageDisposeJob=function(r){this.rootElement.pageDisposeJobs&&_.uU(this.rootElement.pageDisposeJobs,r)};
_.l.dispatchEvent=function(r,f){_.kA(this.rootElement,r,f)};
_.l.provideRenderingData=function(r,f){this.rootElement.provideRenderingData(r,f)};
_.l.scrollWatchTo=function(r,f){var I;(I=this.watchScrollManager)==null||I.scrollWatchTo(r,f)};
_.l.focusOnPlayer=function(){var r=this.getElement("PLAYER");_.UC(r,function(){if(r&&r.firstElementChild){var f=r.querySelector(".html5-video-player");f&&(_.OS(_.a().resolve(_.dW)),f.focus())}else _.t7(Error("jm"))})};
_.l.updateCinematicFullscreenConfig=function(){var r=!!this.rootElement.theater,f=!!this.rootElement.fullscreen,I;(I=this.watchCinematicManager)==null||_.xOU(I,f,r)};
_.l.subscribeToActiveChanged=function(r,f){f=f===void 0?!0:f;var I=_.wj(_.K2(),xNq,function(C){r(C)});
f&&r(xNq(_.K2().getState()));return I};
_.l.isActive=function(){return xNq(_.K2().getState())};
_.l.onAttached=function(){var r=_.N("external_fullscreen");_.N("use_unified_flag_accessor")&&(r=_.a().resolve(_.EiB).retriever.getFlag(_.ziD));(r||_.mO("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.l.initPersistentModules=function(){if(_.N("kevlar_watch_flexy_theater_manager")){var r=new _.vmU(this);_.V$(this,r)}r=new _.$OB(this);_.V$(this,r);r=new _.WN(this);_.V$(this,r);r=new _.iJ(this);_.V$(this,r);r=new _.q2Y(this);_.V$(this,r);r=new _.mj(this);_.V$(this,r);_.N("kevlar_watch_flexy_playlist_manager")&&(r=new _.DO6(this),_.V$(this,r))};
_.l.initOrDisposeActiveModules=function(r){r?(this.watchScrollManager=new _.vN(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.RJY(this)),this.activeModules.push(new _.UY3(this)),this.activeModules.push(new _.V76(this)),this.activeModules.push(new _.RI(this)),_.N("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.QAd(this)),this.activeModules.push(new _.Oaq(this)),_.N("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.Sz1(this)),
_.N("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.rjV(this)),_.N("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.l_B(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.N("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Zas(this)),_.N("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.Xv1(this)),r=_.N("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.N("kevlar_watch_flexy_comments_manager")&&!r&&this.activeModules.push(new _.dOV(this)),_.N("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.L1(this)),this.activeModules.push(new _.AlB(this)),this.activeModules.push(new _.KP7(this)),_.N("web_enable_timely_actions")&&this.activeModules.push(new _.B0V(this)),_.N("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.gmi(this)),_.N("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.xgB(this)),
_.N("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.ke2(this)),_.N("web_player_rtr_ctrls")&&this.activeModules.push(new _.XU6(this))):(_.GZ(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.l.disposeInternal=function(){_.QK.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.OC.Object.defineProperties(px6.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var nup={},dN3=["learning-journey-engagement-panel","PAlearning_chat"];
nup.YtdLearningJourneyWatchBehavior=[_.D.YtRendererBehavior,_.iQ.YtPlayerListenerBehavior,_.On.YtRendererstamperBehavior,_.o_.YtActionHandlerBehavior,_.F4.YtPageBehavior,_.DG.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 _.mO("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.N("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 _.mO("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 _.N("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.N("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 _.Bw("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Bw("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!_.N("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.N("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 _.N("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("web_watch_rounded_player_large")||_.N("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 _.N("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.N("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("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 _.N("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.N("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 _.N("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.Tq(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Tq(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var r=this;this.watchController=void 0;this.pageDisposeJobs=[function(){r.showMetadataPlaceholder_()},
function(){_.N("web_watch_dont_clear_comments")||r.clearComments_()},
function(){r.clearPlayerAds_()},
function(){r.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;_.N("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.N("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.sep(function(){return _.Uk(r)},this.hostElement);
this.pageDisposeJobs.push(function(){r.youThereManager_.reset()});
_.N("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){r.resetFullerscreenEduButtonForNewPlayback_()}));
_.N("kevlar_watch_js_panel_height")&&(this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.IE;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;_.N("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.N("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));_.N("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.GF(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(r){r&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:r}),r.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(r){_.N("kevlar_watch_flexy_theater_manager")&&(this.theater=r,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.N("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(r){!_.N("kevlar_watch_while_v2")&&!_.N("web_watch_pip")||r||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(r){this.active!==void 0&&(this.fullscreen=r,_.N("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(r){this.active!==void 0&&(_.kA(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.N("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.N("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(r>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(r){this.initCsi_();this.updatePageData_(r)},
updatePageData_:function(r){var f=this;if(r)if(this.data===r){this.onPageLoadWithSameData_();var I;(I=this.watchController)==null||I.setWatchNextResponse(this.data)}else this.data=r;this.playlist&&_.gX({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Xc("nw");this.loading=!1;_.dp(_.F_,function(){f.initDclkstatus_();var C,Y=((C=f.player)==null?void 0:C.getVideoData().cpn)||"";_.TEi(function(V,S){_.Blp(V,S,Y)})})},
onPageLoadWithSameData_:function(){_.N("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 r=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!r);this.set("loadingData.playlistLoading",r&&r!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),r=this.watchNextSkeletonEl_.firstElementChild;r;)r.classList.remove("hidden"),r=r.nextElementSibling;if(_.N("kevlar_watch_frame0_loading_state")){var f,I,C;r=(f=this.loadingData)==null?void 0:(I=f.endpoint)==null?void 0:(C=I.watchEndpoint)==null?void 0:C.videoId;var Y;r&&(Y="https://i.ytimg.com/vi/"+r+"/frame0.jpg");_.e(this.hostElement).querySelector("#player").style.backgroundImage=Y?"url("+Y+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var r=_.e(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&r&&(r.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var f,I;(I=(f=this.watchMetadata).updateSentimentBarWidth)==
null||I.call(f);var C,Y;(Y=(C=this.watchMetadata).resize)==null||Y.call(C)}_.N("kevlar_watch_frame0_loading_state")&&(_.e(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(r){var f=_.e(this.hostElement).querySelector(r);f?_.Zo(f,!1):_.t7(new _.nf("Overscroll monitor not found for component: ",r))},
removeSplitScrollMouseTrap:function(r){var f=_.e(this.hostElement).querySelector(r);f?_.GI(f):_.t7(new _.nf("Disposal component for  overscroll monitoring not found: ",r))},
onLoadingChanged_:function(r){r?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(r){var f=this;r?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.F_.addLowPriorityJob(function(){f.onWindowResized_(_.Sl(!0))})},
updateTheaterModeState_:function(r){if(!_.N("kevlar_watch_flexy_theater_manager")){r=r||this.fullWindowMode_;if(this.theater!==void 0||r)this.theater=r;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();r&&_.Ut1()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var r=this.theater;_.N("external_fullscreen")&&this.fullscreen&&(r=!0);r=r?_.e(this.hostElement).querySelector("#player-full-bleed-container"):_.e(this.hostElement).querySelector("#player-container-inner");var f=this.getPlayerContainer(),I=_.N("kevlar_watch_while_v2")||_.N("web_watch_pip");f.parentElement!==r&&(I&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Uk(this).appendTo(r,f),r.appendChild(_.e(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var r=this;return _.x(function(f){if(f.nextAddress==1)return _.b(f,_.a().resolve(_.iO).deactivate(),2);r.updatePlayerLocation();_.wO(f)})},
updateCinematicsLocation:function(){var r=this.getElement("CINEMATICS");if(r){var f=this.getCinematicsLocationContainer();r.parentElement!==f&&f.appendChild(r);var I;(I=this.watchController)==null||I.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.e(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.e(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(r,f){var I=document.documentElement.hasAttribute("dark"),C=I&&_.N("web_cinematic_theater_mode"),Y=I&&_.N("web_cinematic_fullscreen");I=!I&&this.cinematicLightTheme;return r&&C||f&&Y||(f||r)&&I},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var r;(r=this.watchController)==null||r.setWatchNextResponse(this.data);_.N("kevlar_watch_flexy_comments_manager")||this.initComments_();_.N("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.a().resolve(_.WP).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.N("web_watch_start_chat_in_theater_mode")){var f,
I,C;if((f=this.data)==null?0:(I=f.contents)==null?0:(C=I.twoColumnWatchNextResults)==null?0:C.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var Y,V;((Y=this.data)==null?0:(V=Y.contents)==null?0:V.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(r){var f;(f=this.watchController)==null||f.setPlayerResponse(this.playerData);r&&r.playabilityStatus&&(f=this.isVideoPlayable_(r.playabilityStatus,this.getPlayerOverlays_(this.data)),r=this.isLiveStreamOffline_(r.playabilityStatus),f&&!r||_.UC(this,function(){_.Xc("pbu")}));
this.setPlayerAds_();_.qy(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(r){_.K2().dispatch(_.kI({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));r?this.activate_():this.deactivate_()},
attached:function(){var r=this;this.watchController=new px6(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.N("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var f=_.Uk(this);_.N("kevlar_disable_prepare_player")||f.preparePlayer();_.N("kevlar_watch_flexy_playlist_manager")||_.a().resolve(_.WP).setPlayer(f);this.updatePageMediaQueries();f={"--ytd-watch-flexy-scrollbar-width":_.$_()+
"px"};!_.Bw("kv_pl_mx_sz_ks")&&_.Bw("kevlar_watch_max_player_width")&&(f["--ytd-watch-flexy-max-player-width-wide-screen"]=_.tw1+"px");_.Bw("kevlar_watch_flexy_metadata_height")&&(f["--ytd-watch-flexy-space-below-player"]=_.TCs+"px");this.safeUpdateStyles(f);_.N("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new bt6(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return r.onPlayerTouchPanDown_()}}));
_.N("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.e(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var r=_.$_(),f=_.H$+r,I=f;this.fixedPanels&&(f+=_.Re);var C=657+r;r=1327+r;_.e(this.hostElement).querySelector("#two-column-query").query="(min-width: "+f+"px)";_.e(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(C+"px), (min-height: 630px) and (min-width: ")+(f+"px) and (max-width: ")+(r+"px)");_.e(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(r+"px)");_.e(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+I+"px)"},
calculateCurrentPlayerSize_:function(){var r=_.e(this.hostElement).querySelector("#miniplayer-bar").firstChild;return r&&r.active||this.theater||_.N("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.EZ(NaN,NaN):_.OO(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.OO(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Z8(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var r=this;this.onWindowResized_(_.Sl());_.N("browse_skeleton_removal_on_watch_killswitch")||_.mO("IS_SHELL_LOAD")&&_.iOp();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var f=_.Uk(this);f.addEventListener("yt-player-updated",_.GF(this,this.onPlayerUpdated_));f.getPlayerPromise().then(function(I){r.playerApiReady_(I)});
_.N("kevlar_watch_flexy_playlist_manager")||(f=_.a().resolve(_.WP),_.N("kevlar_watch_observe_playlist_navigations_killswitch")&&f.addEventListener("yt-navigate",_.GF(this,this.onYtNavigate_)),f.setPlaylistComponent(_.e(this.hostElement).querySelector("#playlist")),f.addEventListener("yt-playlist-data-updated",_.GF(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.F_.addLowPriorityJob(function(){_.kA(r.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Uk(this).removeEventListener("yt-player-updated",_.GF(this,this.onPlayerUpdated_));if(!_.N("kevlar_watch_flexy_playlist_manager")){var r=_.a().resolve(_.WP);_.N("kevlar_watch_observe_playlist_navigations_killswitch")&&r.removeEventListener("yt-navigate",_.GF(this,this.onYtNavigate_));r.cancelVideoSkip();r.removeEventListener("yt-playlist-data-updated",_.GF(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.N("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.kA(this.hostElement,"yt-autonav-pause-player",!1);r=_.Qw();_.N("kevlar_exit_fullscreen_leaving_watch")&&r&&_.A1(r)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(r){this.player&&this.player.updateVideoData({rvs:r.rvs})},
getPageContents:function(r){return r&&r.contents&&r.contents.twoColumnWatchNextResults&&r.contents.twoColumnWatchNextResults.results&&r.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(r){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",r)},
onRetrieveLocation_:function(r,f){f.hasComments?f.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):f.locationRetrieved("/related_ajax",void 0);r.stopPropagation()},
onSubscriptionChanged_:function(r,f){this.player&&(f?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.$m("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.e(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.e(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(r){this.player=r;this.setPlayerState(r.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.N("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.N("kevlar_unified_player")||_.N("kevlar_player_new_bootstrap_adoption"))&&_.ZN()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(r,f){f=f===void 0?!0:f;_.Qw()&&_.N("external_fullscreen")&&_.A1(document.documentElement);this.theaterRequested_=r;f&&_.hd("wide",r?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.N("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.Bj(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.kA(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(r){_.TL(r,typeof this.player),this.player&&_.TL(r,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var r;((r=this.player)==null?0:r.isFullscreen())?this.player.toggleFullscreen():_.Bj(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(r,f){return this.loading?f:!!Object.keys(r).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(r){if(r){r=_.E(r);for(var f=r.next();!f.done;f=r.next())f=f.value,f.youThereRenderer&&_.Qe6(this.youThereManager_,f.youThereRenderer)}},
setPlaylistData_:function(r){return r||{}},
userEngagementConfigDataChanged_:function(r){if(r)if(r.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var f=this.youThereManager_;_.Zs()<r.lowEngagementThresholdMs||_.kV3(f,!0)}else r.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Bj(this.hostElement,"yt-autonav-pause-user-engagement",[r])},
isPlayerUnavailable_:function(r,f,I){return!!r&&!this.isVideoPlayable_(r,I)&&!f},
getPlayerOverlays_:function(r){return(r==null?void 0:r.playerOverlays)||null},
isVideoPlayable_:function(r,f){if(!r)return!1;var I=r.status==="OK"||r.status==="LIVE_STREAM_OFFLINE",C=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",r)||this.get("errorScreen.ypcTrailerRenderer",r);r=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",r);var Y;f=f==null?void 0:(Y=f.playerOverlayRenderer)==null?void 0:Y.gatedActionsOverlayRenderer;return!!I||!!C||!!r||!!f},
hasWatchNextResponseErrorRenderer:function(r){var f=this.getPageContents(r),I,C,Y,V,S;return!(r==null?0:(I=r.contents)==null?0:(C=I.twoColumnWatchNextResults)==null?0:C.secondaryResults)&&!!((Y=f[0])==null?0:(V=Y.itemSectionRenderer)==null?0:(S=V.contents[0])==null?0:S.backgroundPromoRenderer)},
isLiveStreamOffline_:function(r){return r?r.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(r,f,I){var C=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",f),Y=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Y=_.N("web_no_skip_video_on_verification_checks")?(r==null?void 0:r.status)&&Y.includes(r.status):r&&r.status==="AGE_CHECK_REQUIRED";var V=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",r);V==void 0&&(V=!0);!I||this.isVideoPlayable_(r,this.getPlayerOverlays_(f))||
C||Y||!V||_.a().resolve(_.WP).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.je2()},
onPlayerFeedbackStartRequest_:function(r){_.Bj(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:r}])},
onPlayerFeedbackArticleRequest_:function(r){_.Bj(this.hostElement,"yt-help-dialog-requested",[r])},
onPlayerYpcContentRequest_:function(){var r,f,I,C,Y,V,S,h,w=((r=this.data)==null?NaN:(f=r.contents)==null?NaN:(I=f.twoColumnWatchNextResults)==null?NaN:(C=I.secondaryResults)==null?NaN:(Y=C.secondaryResults)==null?NaN:(V=Y.offerModule)==null?NaN:(S=V.tvfilmOfferModuleRenderer)==null?NaN:(h=S.actionButtons)==null?NaN:h.length)-1;r=[".offerButton.buttonRenderer.",".actionButtons."+(w>=0?w:0)+".buttonRenderer."];f=_.E(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(I=f.next();!I.done;I=f.next())for(I=I.value,C=_.E(r),Y=C.next();!Y.done;Y=C.next())if(Y="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+I+Y.value,Y=this.get(Y+"navigationEndpoint",this.data)||this.get(Y+"serviceEndpoint",this.data)||this.get(Y+"command",this.data)){_.u7(Y,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(r){_.kA(this.hostElement,"yt-autonav-pause-player",r)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(r){r()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(r){switch(r){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(r){switch(r){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.kA(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(r)},
setPlayerState:function(r){_.K2().dispatch(_.DVT(r))},
onPlayerSubscribe_:function(r){_.Bj(this.hostElement,"yt-player-subscribe",[r])},
onPlayerUnsubscribe_:function(r){_.Bj(this.hostElement,"yt-player-unsubscribe",[r])},
onPlayerAdYtShowToast_:function(r){_.Bj(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:r.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(r){if(r)return r},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(r){return!_.N("web_watch_move_summary_to_sd")&&!!r},
computeWatchMetadataRefresh:function(){return _.N("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var r,f,I,C;this.watchNextSecondaryResults=(r=this.data)==null?void 0:(f=r.contents)==null?void 0:(I=f.twoColumnWatchNextResults)==null?void 0:(C=I.secondaryResults)==null?void 0:C.secondaryResults}},
setRichGridRendererData:function(r){this.richGridRendererData=r},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var r,f=(r=this.data)==null?void 0:r.engagementPanels;if(f==null?0:f.length){r=null;f=_.E(f);for(var I=f.next();!I.done;I=f.next()){I=I.value;var C=void 0;if(((C=I.engagementPanelSectionListRenderer)==null?void 0:C.targetId)==="engagement-panel-structured-description"){r=I;break}}var Y,V,S;r=(Y=r)==null?void 0:(V=Y.engagementPanelSectionListRenderer)==null?void 0:(S=V.content)==null?void 0:S.structuredDescriptionContentRenderer;if(r==null?0:r.items){Y=
[];V=_.E(r.items);for(S=V.next();!S.done;S=V.next()){S=S.value;if(!_.N("sd_horizontal_list_show_nav_killswitch")){var h=C=I=f=r=void 0,w=void 0,n=(r=S.horizontalCardListRenderer)==null?void 0:(f=r.header)==null?void 0:(I=f.richListHeaderRenderer)==null?void 0:(C=I.navigationButton)==null?void 0:(h=C.buttonRenderer)==null?void 0:(w=h.command)==null?void 0:w.commandExecutorCommand;n&&n.commands&&(n.commands=n.commands.filter(function(d){return!_.F(d,_.sm2)}))}S.expandableVideoDescriptionBodyRenderer||
S.videoDescriptionHeaderRenderer||Y.push(S)}return{items:Y}}}},
constructWarning_:function(r){return{text:_.iX(r),type:"WARNING"}},
isPlaShelfEnabled_:function(r){if((this.get("adPlacements",r)||[]).length)return!0;r=this.get("playerAds",r)||[];return!(!r.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",r[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var r=this;_.kA(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.N("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var f=this.getScrollTop()>0;this.gestures_&&(f?this.gestures_.detach():this.gestures_.attach());f!==this.showFullerscreenEdu_&&_.N("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=f,_.Uk(this).getPlayerPromise().then(function(I){I.updateFullerscreenEduButtonVisibility(r.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.kA(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var r=this;this.commentsReady=!1;_.F_.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.dp(_.F_,function(){r.setComments_()},1E3)},
setComments_:function(){if(!_.N("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Xc("cmi");_.F_.cancelJob(this.setCommentsJobId_);var r=this.getPageContents(this.data);if(r&&r.length){r=_.E(r);for(var f=r.next();!f.done;f=r.next())if(f=f.value,this.get("itemSectionRenderer.sectionIdentifier",f)==="comment-item-section"){this.comments=f.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.kA(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.N("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.N("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Xc("cmc")},
doRemoveComments_:function(){this.comments={};_.N("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.F_.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.F_.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(r,f){var I=_.F(f.endpoint,_.vj);I&&(!(f=this.get("data.currentVideoEndpoint.watchEndpoint"))||I.videoId!==f.videoId||I.playlistId&&I.playlistId!==f.playlistId||I.index!==void 0&&I.index!==f.index||typeof I.startTimeSeconds!=="number"||(r.stopPropagation(),this.setScrollTop(0),_.Uk(this).getPlayerPromise().then(function(C){var Y=I.startTimeSeconds;C.seekTo(Y);C.wakeUpControls();Y<C.getDuration()&&C.playVideo()})))},
updatePlayerStartTime_:function(){var r=_.gQ7();"t"in r&&(r=_.JE6(r.t),this.player.seekTo(r,!0))},
updateTitleFromWatchNext:function(r){r=this.getPageContents(r);var f,I;(r=_.Rr(r==null?void 0:(f=r[0])==null?void 0:(I=f.videoPrimaryInfoRenderer)==null?void 0:I.title))&&_.kA(this.hostElement,"yt-update-title",r)},
updateTitle_:function(r){r=this.get("videoDetails.title",r)||"";_.kA(this.hostElement,"yt-update-title",r)},
syncWithRemoteVideo_:function(r,f,I){if(this.active&&this.player){var C=this.player.getVideoData();if(C.video_id===I&&(I=C.list,_.N("polymer_enable_mdx_queue")&&I&&I.startsWith("RQ")&&(I=void 0),C.video_id!==r||I!=f)){var Y;_.N("kevlar_player_watch_endpoint_navigation")?Y=_.rpw(_.cEs(r,f)):Y=this.buildWatchEndpoint_(r,f);_.kA(this.hostElement,"yt-navigate",{endpoint:Y,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(r,f,I){return _.QR(r,f,I)},
initDclkstatus_:function(){_.mxV()},
attachWatchPageSkeleton_:function(){var r=document.querySelector("#watch-page-skeleton");if(r){var f=r.querySelector("#primary-info"),I=r.querySelector("#secondary-info"),C=r.querySelector("#related");f&&_.e(this.hostElement).querySelector("#info-skeleton").appendChild(f);I&&_.e(this.hostElement).querySelector("#meta-skeleton").appendChild(I);C&&(_.e(this.hostElement).querySelector("#related-skeleton").appendChild(C),this.watchNextSkeletonEl_=C);_.bE(r)}},
handlePlayerUpdated_:function(){_.Uk(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(r,f){if(this.watchNextSkeletonEl_&&typeof f!=="undefined"){var I=this.watchNextSkeletonEl_.children,C=r&&r.indexSplices.length?r.indexSplices[0].index:0;r=Math.min(this.watchNextShownItems.length,I.length);f||(C=0,r=I.length);for(f=C;f<r;f++)I[f].classList.add("hidden")}},
onPlayerFullscreenChange_:function(r){_.N("external_fullscreen")||_.Bj(this.hostElement,"yt-player-fullscreen",[r.fullscreen])},
onFullscreenChange_:function(r){this.fullscreen=r;this.gestures_&&this.gestures_.update(this.fullscreen);var f=_.Uk(this);f.getPlayerPromise().then(function(I){I.setFauxFullscreen(!!_.Qw())});
this.updateFullBleedElementLocations();r&&(f.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(r,f){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!f},
computeIsDonationShelfCollapsed_:function(r){return r},
computeShouldShowMerchShelf:function(r,f){return f&&!!r},
computeResponseHasComments:function(r){var f,I,C,Y,V;return!!(r==null?0:(f=r.contents)==null?0:(I=f.twoColumnWatchNextResults)==null?0:(C=I.results)==null?0:(Y=C.results)==null?0:(V=Y.contents)==null?0:V.some(function(S){var h;return(S==null?void 0:(h=S.itemSectionRenderer)==null?void 0:h.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(r,f){this.responseHasComments=this.computeResponseHasComments(this.data);return!!r&&!!Object.keys(r).length&&!f},
identity:_.sP,onWindowResized_:function(r){this.windowSize_=r;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.N("kevlar_watch_js_panel_height")&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleSidebarSizeUpdate_()));_.N("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(r){var f=this;r&&r.type!=="dataloaded"&&r.type!=="dataupdated"||_.Uk(this).getPlayerPromise().then(function(I){var C=I.getPlayerState();C!==5&&C!==0&&(I=1/I.getVideoAspectRatio(),f.videoHeightToWidthRatio_!==I&&(f.videoHeightToWidthRatio_=I))})},
schedulePlayerSizeUpdate_:function(r){var f=this,I=_.N("kevlar_watch_while_v2")||_.N("web_watch_pip"),C=function(){if(f.watchMetadata){var Y,V;(V=(Y=f.watchMetadata).resize)==null||V.call(Y)}_.Uk(f).getPlayerPromise().then(function(S){if(_.N("kevlar_set_internal_player_size")){if(!I||!f.isMiniplayerActive()){var h=f.calculateCurrentPlayerSize_();S.setInternalSize(h.width,h.height)}}else S.setSize(NaN,NaN);_.N("kevlar_watch_while")&&f.updateWatchWhileScrollThreshold_()})};
r?C():_.aK(_.F_,C)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(r){this.set("data.survey",r.detail)},
onYtShowSurveyCommand_:function(r){this.set("data.survey",_.F(r,_.UxV).survey)},
onDownloadedVideoDeleted:function(r){var f=this,I,C;return _.x(function(Y){if(Y.nextAddress==1){if(!f.active||(I=f.playerData)==null||!I.offlineState||f.videoId!==r)return Y.return();(C=f.player)==null||C.stopVideo();_.xP().navigatingAwayFromWatchDeletedVideo=!0;_.u7(_.KDd,f.hostElement);return _.b(Y,_.xP().navigationFinishPromise,2)}_.xP().navigatingAwayFromWatchDeletedVideo=!1;_.wO(Y)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var r;this.theater?r=_.my(.5625*this.windowSize_.width,480,this.windowSize_.height-185):r=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==r&&(this.watchWhileScrollThreshold_=r,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var r=_.e(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&r){var f=this.windowSize_.height>=624,I=this.active?this.getScrollTop():0;!r.active&&f&&I>=this.watchWhileScrollThreshold_?(r.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):r.active&&(!f||I<this.watchWhileScrollThreshold_&&!_.Qw())&&(r.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(r,f){if(r!==!0||f!==void 0){r=!_.N("live_chat_over_engagement_panels");f=_.e(this.hostElement).querySelector("#chat-container");var I=_.e(this.hostElement).querySelector("#plj-sidebar"),C=_.e(this.hostElement).querySelector("#panels"),Y=_.e(this.hostElement).querySelector("#plj-panels"),V=_.e(this.hostElement).querySelector("#plj-playlist"),S=_.e(this.hostElement).querySelector("#alerts"),h=_.e(this.hostElement).querySelector("#playlist"),w=_.e(this.hostElement).querySelector("#related"),
n=_.e(this.hostElement).querySelector("#donation-shelf"),d=_.e(this.hostElement).querySelector("#comments");this.isTwoColumns_?(S=_.e(this.hostElement).querySelector("#secondary-inner"),S.appendChild(I),I.appendChild(V),V.appendChild(h),I.appendChild(Y),r&&S.appendChild(C),_.N("web_watch_theater_chat")||S.appendChild(f),r||S.appendChild(C),S.appendChild(n),S.appendChild(w)):(r&&_.T1(C,S),_.T1(h,S),_.N("web_watch_theater_chat")||_.T1(f,S),r||_.T1(C,S),_.T1(n,S),d&&(Y&&_.T1(Y,d),_.T1(w,d)));_.N("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.N("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.N("web_watch_theater_chat")){var r=_.e(this.hostElement).querySelector("#chat-container"),f=this.theater&&!this.fullscreen||_.N("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&f?_.N("web_watch_theater_chat_beside_player")?(f=_.e(this.hostElement).querySelector("#panels-full-bleed-container"),(r==null?void 0:r.parentElement)!==f&&f.append(r),this.panelsBesidePlayer=!0):_.N("web_watch_theater_fixed_chat")&&
(f=_.e(this.hostElement).querySelector("#columns"),(r==null?void 0:r.parentElement)!==f&&f.append(r),this.fixedPanels=!0):(_.N("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.N("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),f=_.e(this.hostElement).querySelector("#playlist"),r&&f?_.cY(r,f):_.t7(new _.nf("Missing element when updating chat location",{"chatContainer defined":!!r,"playlist defined":!!f})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(r,f){return _.N("sw_metadata_vis_toggle_ks")?!0:!!r||!!f},
computeForceDarkPanelTheme:function(r){return _.N("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&r:!1},
safeUpdateStyles:function(r){try{_.Zh(this.hostElement,r)}catch(f){_.t7(f)}},
videoHeightToWidthRatioChanged_:function(r,f){f&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.N("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(r){this.videoHeightToWidthRatio_=1/r},
computeIsVerticalVideo_:function(r){return r>=1},
computeIsFourThreeToSixteenNineVideo_:function(r){return r<=.7501&&r>=.5624},
computeIsExtraWideVideo_:function(r){return r<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Uk(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Uk(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.BE6(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(r){var f=_.YJ(r)||0;_.Ch(r,f+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var r=_.YJ("yt-fullerscreen-edu-button-click-count")||0,f=_.YJ("yt-fullerscreen-edu-button-shown-count")||0,I=_.Bw("external_fullscreen_button_shown_threshold"),C=r>=_.Bw("external_fullscreen_button_click_threshold")||f>=I;_.Uk(this).getPlayerPromise().then(function(Y){Y.updateFullerscreenEduButtonSubtleModeState(C)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(r,f){return f},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.a().resolve(_.WP).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var r=this;this.panelMaxHeightUpdateJob_&&_.F_.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.F_.addLowPriorityJob(function(){r.panelMaxHeightUpdateJob_=0;var f;!r.isTwoColumns_||r.theater||r.fullscreen?f=460:f=r.calculateNormalPlayerSize_().height;var I=f+"px";_.N("live_chat_taller_height")&&!r.theater&&(I="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.N("live_chat_medium_height")&&
!r.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.N("live_chat_scaled_height")&&!r.theater&&(I="calc(100vh - var(--ytd-toolbar-height) - 238px)");r.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":f+"px","--ytd-watch-flexy-chat-max-height":I,"--ytd-watch-flexy-structured-description-max-height":f+"px","--ytd-watch-flexy-comments-panel-max-height":f+"px","--ytd-comments-engagement-panel-content-height":f+"px"})})},
scheduleSidebarSizeUpdate_:function(){var r=this;this.is==="ytd-watch-flexy"&&_.N("web_watch_flexy_adjust_sidebar_width")&&!_.N("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.F_.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.F_.addLowPriorityJob(function(){r.panelMaxHeightUpdateJob_=0;if(r.isTwoColumns_){var f=_.ewq(r.windowSize_,r.calculateNormalPlayerSize_().width);f!==r.currentSidebarWidth&&(r.currentSidebarWidth=f,r.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":f+
"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(r){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",r)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.rX(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(r){var f=_.e(this.hostElement).querySelector("#engagement-panel-scrim");r?f.addEventListener("tap",_.GF(this,this.onEngagementPanelScrimClick_)):f.removeEventListener("tap",_.GF(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(r){if(this.hostElement.contains(r)&&!this.scrollToAnimation_.isAnimating()){var f=r.offsetTop-24;r=r.offsetTop+r.offsetHeight+24;var I=this.getPageScrollingElement(),C=this.getScrollTop(),Y=C+I.clientHeight-56;if(f<C+56)f-=56;else if(r>Y)f=r-I.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,f),500)}},
onYtSignalActionScrollToComments:function(){var r=this.hostElement.querySelector("#comments");if(r&&!this.scrollToAnimation_.isAnimating()){r=r.offsetTop-56-24;if(_.N("kevlar_comment_teaser_scroll_to_midpoint")&&(r-=_.Sj().height/3,r<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,r),500)}},
onYtEngagementPanelVisibleChanged:function(r,f,I){this.active&&this.trackEngagementPanelVisibility&&!_.KzY.includes(I)&&(f==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(I),f!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&f!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(I),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(r){return r?"":"watch-active-metadata"},
computeNewMetadataClass:function(r){return r?"watch-active-metadata":""},
computeFullBleedPlayer:function(r,f){return r||f},
computeDefaultLayout:function(r){return!r},
computeDefaultTwoColumnLayout:function(r,f){return!r&&f},
computeWatchWhilePanelsActive:function(r,f){return r||f},
computeNoBorderOnChat:function(r){return _.N("web_watch_theater_chat_no_border")&&r},
computeLiveChatPresentAndExpanded:function(r,f){return r&&!f},
computePanelExpanded:function(r,f,I){return r||f||I},
onChangeMarkersVisibility:function(r){_.Uk(this).getPlayerPromise().then(function(f){var I;(I=f.changeMarkerVisibility)==null||I.call(f,_.F(r,_.oI).isVisible||!1,_.F(r,_.oI).entityKeys||[],_.F(r,_.oI).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(r){this.liveChatCollapsed=r.detail;_.K2().dispatch(_.vQY(r.detail))},
provideRenderingData:function(r,f){switch(r){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=f;break;case "PRIMARY_INFO":_.N("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=f);this.videoPrimaryInfoRendererValue=f==null?void 0:f.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.N("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=f);this.videoSecondaryInfoRendererValue=f==null?void 0:f.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
f;break;case "CLARIFICATION":this.clarifyBoxValue=f;break;case "LIVE_CHAT":this.conversationBar=f;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=f;break;case "PLAYLIST":this.externalPlaylistData_=f!=null?f:{};break;case "MERCH_SHELF":this.merchShelfValue=f==null?void 0:f.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=f;break;case "OFFER_MODULE":this.offerModule=f;break;case "LIMITED_STATE":this.limitedStateValue=f;break;case "DONATION_SHELF":this.donation=f;break;
case "ALERTS":this.alertsValue=f;break;case "COMMENTS":this.comments=f;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=f;break;case "ENGAGEMENT_PANELS":this.engagementPanels=f;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=f;break;case "RICH_GRID_RENDERER":this.richGridRendererData=f;break;case "EXPANDABLE_METADATA":this.expandableMetadata=f;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=f}},
toggleCinematicsActive:function(r){this.cinematicsActive=r},
isMiniplayerActive:function(){return _.a().resolve(_.iO).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(r){return dN3.map(function(f){return r.find(function(I){var C;return(I==null?void 0:(C=I.engagementPanelSectionListRenderer)==null?void 0:C.targetId)===f})}).filter(function(f){return f!==void 0})},
getNonLearningJourneyEngagementPanels:function(r){return r.filter(function(f){var I;return!dN3.includes((f==null?void 0:(I=f.engagementPanelSectionListRenderer)==null?void 0:I.targetId)||"")})}}];var zFU;var D6=function(){var r=_.y.apply(this,arguments)||this;r.flexy=!0;r.learningJourney=!0;r.roundedInfoPanel=!0;r.viewTransitionEnabled=_.N("enable_player_resize_transition");r.smallerChatMinHeight=_.N("live_chat_smaller_min_height");r.cinematicTheaterMode=_.N("web_cinematic_theater_mode");r.transparentTheaterMode=_.N("web_transparent_theater_mode");r.cinematicFullscreen=_.N("web_cinematic_fullscreen");r.useLargerMaxPlayerValue=_.N("kevlar_flexy_use_larger_player_value");r.cinematicFullscreenV2=_.N("web_cinematic_fullscreen_v2");
r.isDarkTheme=document.documentElement.hasAttribute("dark");r.theaterLargerPlayer=_.N("web_watch_theater_larger_player");r.defaultCollapsePlaylist=_.N("web_watch_default_collapse_playlist");return r};
_.t(D6,_.y);_.l=D6.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 r=this,f=function(){r.onColumnScroll()};
this.primary.addEventListener("scroll",f);this.secondary.addEventListener("scroll",f)};
_.l.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.l.updateIsTwoColumnsFromBinding=function(r){_.N("web_watch_update_narrow_width_killswitch")||_.K2().dispatch(_.ips(!r.detail.value));this.ytdWatchBehavior.isTwoColumns_=r.detail.value};
_.l.updateFlexySmallWindowFromBinding=function(r){this.ytdWatchBehavior.flexySmallWindow_=r.detail.value};
_.l.updateFlexyLargeWindowFromBinding=function(r){this.ytdWatchBehavior.flexyLargeWindow_=r.detail.value};
_.l.updateWatchWhileWindowSizeSufficientFromBinding=function(r){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=r.detail.value};
_.l.updateWatchNextCanShowMoreFromBinding=function(r){this.ytdWatchBehavior.watchNextCanShowMore=r.detail.value};
_.l.updateShownItemsFromBinding=function(r){r.detail.path?this.set(r.detail.path,r.detail.value):this.ytdWatchBehavior.watchNextShownItems=r.detail.value};
_.l.getElement=function(r){switch(r){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20400_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20400_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.OC.Object.defineProperties(D6.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.data)==null||!r.pageVisualEffects)return!1;for(var f=0;f<this.data.pageVisualEffects.length;f++)if(r=_.F(this.data.pageVisualEffects[f],_.aS))return f=void 0,(f=r.config)==null?void 0:f.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.learningJourneyEngagementPanels)==null?void 0:r.length)>0}}});
_.OC.Object.defineProperties(D6,{template:{configurable:!0,enumerable:!0,get:function(){if(zFU===void 0){var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\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-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);zFU=r}r=zFU;return r}}});
D6.prototype.updateMiniplayerIsActiveValue=D6.prototype.updateMiniplayerIsActiveValue;D6.prototype.updateScrollTopValue=D6.prototype.updateScrollTopValue;D6.prototype.updateFullscreenValue=D6.prototype.updateFullscreenValue;D6.prototype.updateTheaterValue=D6.prototype.updateTheaterValue;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],D6.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],D6.prototype,"ytComponentBehavior",void 0);
_.A([_.J(nup.YtdLearningJourneyWatchBehavior),_.B("design:type",Object)],D6.prototype,"ytdWatchBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],D6.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],D6.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],D6.prototype,"playerData",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],D6.prototype,"flexy",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],D6.prototype,"learningJourney",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],D6.prototype,"roundedInfoPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],D6.prototype,"viewTransitionEnabled",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],D6.prototype,"smallerChatMinHeight",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],D6.prototype,"cinematicTheaterMode",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],D6.prototype,"transparentTheaterMode",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],D6.prototype,"cinematicFullscreen",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],D6.prototype,"useLargerMaxPlayerValue",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],D6.prototype,"cinematicFullscreenV2",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],D6.prototype,"isDarkTheme",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],D6.prototype,"theaterLargerPlayer",void 0);_.A([_.K(),_.B("design:type",Object)],D6.prototype,"defaultCollapsePlaylist",void 0);_.A([_.K({selector:_.XL}),_.B("design:type",Object)],D6.prototype,"theaterValue",void 0);
_.A([_.K({selector:_.Ff}),_.B("design:type",Object)],D6.prototype,"fullscreenValue",void 0);_.A([_.K({selector:_.P$}),_.B("design:type",Object)],D6.prototype,"scrollTopValue",void 0);_.A([_.K({selector:_.Nj}),_.B("design:type",Object)],D6.prototype,"miniplayerIsActiveValue",void 0);_.A([_.o8("ytd-player"),_.B("design:type",HTMLElement)],D6.prototype,"ytdPlayer",void 0);_.A([_.uA("#playlist"),_.B("design:type",HTMLElement)],D6.prototype,"JSC$20400_ytdPlaylistPanelRenderer",void 0);
_.A([_.o8("ytd-comments"),_.B("design:type",HTMLElement)],D6.prototype,"ytdComments",void 0);_.A([_.uA("#primary"),_.B("design:type",HTMLElement)],D6.prototype,"primary",void 0);_.A([_.uA("#secondary"),_.B("design:type",HTMLElement)],D6.prototype,"secondary",void 0);_.A([_.uA("#player-container"),_.B("design:type",HTMLElement)],D6.prototype,"playerContainer",void 0);_.A([_.uA("#cinematics"),_.B("design:type",HTMLElement)],D6.prototype,"JSC$20400_cinematics",void 0);
_.A([_.Bt("theaterValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],D6.prototype,"updateTheaterValue",null);_.A([_.Bt("fullscreenValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],D6.prototype,"updateFullscreenValue",null);_.A([_.Bt("scrollTopValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],D6.prototype,"updateScrollTopValue",null);
_.A([_.Bt("miniplayerIsActiveValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],D6.prototype,"updateMiniplayerIsActiveValue",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],D6.prototype,"cinematicLightTheme",null);_.A([_.K({reflectToAttribute:!0}),_.R("learningJourneyEngagementPanels"),_.B("design:type",Object),_.B("design:paramtypes",[])],D6.prototype,"hasLearningJourneyPanels",null);
D6=_.A([_.U({is:"ytd-watch-learning-journey"})],D6);_.gJ.registerService(_.Jjq,D6);
_.ty();
}catch(e){_._DumpException(e)}
try{
_.Ph("Tm0L3c");
var Yts;var lFV;var VEi=function(){return _.y.apply(this,arguments)||this};
_.t(VEi,_.y);VEi=_.A([_.U({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],VEi);
_.Q(VEi,"ytd-ghost-comments-renderer",function(){if(lFV===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);lFV=r}r=lFV;return r},{mode:1});var Euq;var St1=function(){return _.y.apply(this,arguments)||this};
_.t(St1,_.y);St1=_.A([_.U({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],St1);
_.Q(St1,"ytd-ghost-watch-metadata-renderer",function(){if(Euq===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);Euq=r}r=Euq;return r},{mode:1});var uJ=function(){var r=_.y.apply(this,arguments)||this;r.ghostGridRenderer={rows:6};r.roundedInfoPanel=!0;r.hideOfferModules=!0;r.smallerChatMinHeight=_.N("live_chat_smaller_min_height");r.cinematicTheaterMode=_.N("web_cinematic_theater_mode");r.transparentTheaterMode=_.N("web_transparent_theater_mode");r.darkerPanels=_.N("web_watch_darker_panels");r.cinematicFullscreen=_.N("web_cinematic_fullscreen");r.cinematicFullscreenV2=_.N("web_cinematic_fullscreen_v2");r.isDarkTheme=document.documentElement.hasAttribute("dark");
return r};
_.t(uJ,_.y);_.l=uJ.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 r=this,f=function(){r.onColumnScroll()};
this.primary.addEventListener("scroll",f);this.secondary.addEventListener("scroll",f)};
_.l.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.l.updateIsTwoColumnsFromBinding=function(r){this.ytdWatchBehavior.isTwoColumns_=r.detail.value};
_.l.updateFlexySmallWindowFromBinding=function(r){this.ytdWatchBehavior.flexySmallWindow_=r.detail.value};
_.l.updateFlexyLargeWindowFromBinding=function(r){this.ytdWatchBehavior.flexyLargeWindow_=r.detail.value};
_.l.updateWatchWhileWindowSizeSufficientFromBinding=function(r){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=r.detail.value};
_.l.updateWatchNextCanShowMoreFromBinding=function(r){this.ytdWatchBehavior.watchNextCanShowMore=r.detail.value};
_.l.updateShownItemsFromBinding=function(r){_.N("swatcheroo_direct_use_rich_grid")||(r.detail.path?this.set(r.detail.path,r.detail.value):this.ytdWatchBehavior.watchNextShownItems=r.detail.value)};
_.l.getElement=function(r){switch(r){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20388_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20388_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.OC.Object.defineProperties(uJ.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.data)==null||!r.pageVisualEffects)return!1;for(var f=0;f<this.data.pageVisualEffects.length;f++)if(r=_.F(this.data.pageVisualEffects[f],_.aS))return f=void 0,(f=r.config)==null?void 0:f.enableInLightTheme;return!1}}});
uJ.prototype.updateMiniplayerIsActiveValue=uJ.prototype.updateMiniplayerIsActiveValue;uJ.prototype.updateScrollTopValue=uJ.prototype.updateScrollTopValue;uJ.prototype.updateFullscreenValue=uJ.prototype.updateFullscreenValue;uJ.prototype.updateTheaterValue=uJ.prototype.updateTheaterValue;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],uJ.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],uJ.prototype,"ytComponentBehavior",void 0);
_.A([_.J(_.IF7.YtdWatchBehavior),_.B("design:type",Object)],uJ.prototype,"ytdWatchBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],uJ.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],uJ.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],uJ.prototype,"ghostGridRenderer",void 0);_.A([_.K(),_.B("design:type",Object)],uJ.prototype,"playerData",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],uJ.prototype,"roundedInfoPanel",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],uJ.prototype,"hideOfferModules",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],uJ.prototype,"smallerChatMinHeight",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],uJ.prototype,"cinematicTheaterMode",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],uJ.prototype,"transparentTheaterMode",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],uJ.prototype,"darkerPanels",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],uJ.prototype,"cinematicFullscreen",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],uJ.prototype,"cinematicFullscreenV2",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],uJ.prototype,"isDarkTheme",void 0);_.A([_.K({selector:_.XL}),_.B("design:type",Object)],uJ.prototype,"theaterValue",void 0);
_.A([_.K({selector:_.Ff}),_.B("design:type",Object)],uJ.prototype,"fullscreenValue",void 0);_.A([_.K({selector:_.P$}),_.B("design:type",Object)],uJ.prototype,"scrollTopValue",void 0);_.A([_.K({selector:_.Nj}),_.B("design:type",Object)],uJ.prototype,"miniplayerIsActiveValue",void 0);_.A([_.uA("#ytd-player"),_.B("design:type",HTMLElement)],uJ.prototype,"ytdPlayer",void 0);_.A([_.uA("#playlist"),_.B("design:type",HTMLElement)],uJ.prototype,"JSC$20388_ytdPlaylistPanelRenderer",void 0);
_.A([_.uA("#ytd-comments"),_.B("design:type",HTMLElement)],uJ.prototype,"ytdComments",void 0);_.A([_.uA("#primary"),_.B("design:type",HTMLElement)],uJ.prototype,"primary",void 0);_.A([_.uA("#secondary"),_.B("design:type",HTMLElement)],uJ.prototype,"secondary",void 0);_.A([_.uA("#player-container"),_.B("design:type",HTMLElement)],uJ.prototype,"playerContainer",void 0);_.A([_.uA("#cinematics"),_.B("design:type",HTMLElement)],uJ.prototype,"JSC$20388_cinematics",void 0);
_.A([_.Bt("theaterValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uJ.prototype,"updateTheaterValue",null);_.A([_.Bt("fullscreenValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uJ.prototype,"updateFullscreenValue",null);_.A([_.Bt("scrollTopValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uJ.prototype,"updateScrollTopValue",null);
_.A([_.Bt("miniplayerIsActiveValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uJ.prototype,"updateMiniplayerIsActiveValue",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],uJ.prototype,"cinematicLightTheme",null);
_.Q(uJ,"ytd-watch-grid",function(){if(Yts===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);Yts=r}r=Yts;return r},{mode:2});_.gJ.registerService(_.eJ$,uJ);
_.ty();
}catch(e){_._DumpException(e)}
try{
_.Ph("CF909");
var CG6;var q9=function(){var r=_.y.apply(this,arguments)||this;r.flexy=!0;r.roundedInfoPanel=!0;r.viewTransitionEnabled=_.N("enable_player_resize_transition");r.smallerChatMinHeight=_.N("live_chat_smaller_min_height");r.cinematicTheaterMode=_.N("web_cinematic_theater_mode");r.transparentTheaterMode=_.N("web_transparent_theater_mode");r.cinematicFullscreen=_.N("web_cinematic_fullscreen");r.useLargerMaxPlayerValue=_.N("kevlar_flexy_use_larger_player_value");r.cinematicFullscreenV2=_.N("web_cinematic_fullscreen_v2");
r.isDarkTheme=document.documentElement.hasAttribute("dark");r.defaultCollapsePlaylist=_.N("web_watch_default_collapse_playlist");r.retroModeReduxValue=!1;return r};
_.t(q9,_.y);_.l=q9.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(){_.N("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.l.ready=function(){var r=this,f=function(){r.onColumnScroll()};
this.primary.addEventListener("scroll",f);this.secondary.addEventListener("scroll",f)};
_.l.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.l.updateIsTwoColumnsFromBinding=function(r){_.N("web_watch_update_narrow_width_killswitch")||_.K2().dispatch(_.ips(!r.detail.value));this.ytdWatchBehavior.isTwoColumns_=r.detail.value};
_.l.updateFlexySmallWindowFromBinding=function(r){this.ytdWatchBehavior.flexySmallWindow_=r.detail.value};
_.l.updateFlexyLargeWindowFromBinding=function(r){this.ytdWatchBehavior.flexyLargeWindow_=r.detail.value};
_.l.updateWatchWhileWindowSizeSufficientFromBinding=function(r){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=r.detail.value};
_.l.updateWatchNextCanShowMoreFromBinding=function(r){this.ytdWatchBehavior.watchNextCanShowMore=r.detail.value};
_.l.updateShownItemsFromBinding=function(r){r.detail.path?this.set(r.detail.path,r.detail.value):this.ytdWatchBehavior.watchNextShownItems=r.detail.value};
_.l.getElement=function(r){switch(r){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20383_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20383_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.OC.Object.defineProperties(q9.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.data)==null||!r.pageVisualEffects)return!1;for(var f=0;f<this.data.pageVisualEffects.length;f++)if(r=_.F(this.data.pageVisualEffects[f],_.aS))return f=void 0,(f=r.config)==null?void 0:f.enableInLightTheme;return!1}}});
_.OC.Object.defineProperties(q9,{template:{configurable:!0,enumerable:!0,get:function(){if(CG6===void 0){var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);CG6=r}r=CG6;return r}}});
q9.prototype.updateRetroModeReduxValue=q9.prototype.updateRetroModeReduxValue;q9.prototype.updateScrollTopValue=q9.prototype.updateScrollTopValue;q9.prototype.updateFullscreenValue=q9.prototype.updateFullscreenValue;q9.prototype.updateTheaterValue=q9.prototype.updateTheaterValue;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],q9.prototype,"ytComponentBehavior",void 0);
_.A([_.J(_.IF7.YtdWatchBehavior),_.B("design:type",Object)],q9.prototype,"ytdWatchBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],q9.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],q9.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],q9.prototype,"playerData",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],q9.prototype,"flexy",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],q9.prototype,"roundedInfoPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],q9.prototype,"viewTransitionEnabled",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],q9.prototype,"smallerChatMinHeight",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],q9.prototype,"cinematicTheaterMode",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],q9.prototype,"transparentTheaterMode",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],q9.prototype,"cinematicFullscreen",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],q9.prototype,"useLargerMaxPlayerValue",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],q9.prototype,"cinematicFullscreenV2",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],q9.prototype,"isDarkTheme",void 0);_.A([_.K(),_.B("design:type",Object)],q9.prototype,"defaultCollapsePlaylist",void 0);_.A([_.K({selector:_.XL}),_.B("design:type",Object)],q9.prototype,"theaterValue",void 0);_.A([_.K({selector:_.Ff}),_.B("design:type",Object)],q9.prototype,"fullscreenValue",void 0);_.A([_.K({selector:_.P$}),_.B("design:type",Object)],q9.prototype,"scrollTopValue",void 0);
_.A([_.K({selector:_.Nj}),_.B("design:type",Object)],q9.prototype,"miniplayerIsActive",void 0);_.A([_.K({selector:function(r){return r.watch.isWatchRetroMode}}),
_.B("design:type",Object)],q9.prototype,"retroModeReduxValue",void 0);_.A([_.o8("ytd-player"),_.B("design:type",HTMLElement)],q9.prototype,"ytdPlayer",void 0);_.A([_.uA("#playlist"),_.B("design:type",HTMLElement)],q9.prototype,"JSC$20383_ytdPlaylistPanelRenderer",void 0);_.A([_.o8("ytd-comments"),_.B("design:type",HTMLElement)],q9.prototype,"ytdComments",void 0);_.A([_.uA("#primary"),_.B("design:type",HTMLElement)],q9.prototype,"primary",void 0);
_.A([_.uA("#secondary"),_.B("design:type",HTMLElement)],q9.prototype,"secondary",void 0);_.A([_.uA("#player-container"),_.B("design:type",HTMLElement)],q9.prototype,"playerContainer",void 0);_.A([_.uA("#cinematics"),_.B("design:type",HTMLElement)],q9.prototype,"JSC$20383_cinematics",void 0);_.A([_.Bt("theaterValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],q9.prototype,"updateTheaterValue",null);
_.A([_.Bt("fullscreenValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],q9.prototype,"updateFullscreenValue",null);_.A([_.Bt("scrollTopValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],q9.prototype,"updateScrollTopValue",null);_.A([_.Bt("retroModeReduxValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],q9.prototype,"updateRetroModeReduxValue",null);
_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],q9.prototype,"cinematicLightTheme",null);q9=_.A([_.U({is:"ytd-watch-flexy"})],q9);_.gJ.registerService(_.mOw,q9);
_.ty();
}catch(e){_._DumpException(e)}
try{
_.Ph("nmfa2d");
var M7q;var UO=function(){var r=_.y.apply(this,arguments)||this;r.hidden=!1;r.errorScreen=null;r.playlistData={};return r};
_.t(UO,_.y);_.l=UO.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:_.Tq(["aa","eocs"])}}};
_.l.onActiveChanged=function(){_.K2().dispatch(_.hw7(this.ytPageBehavior.active))};
_.l.playerDataChanged=function(){var r;(r=this.watchController)==null||r.setPlayerResponse(this.playerData)};
_.l.dataChanged=function(){var r;(r=this.watchController)==null||r.setWatchNextResponse(this.data)};
_.l.sizeChanged=function(){var r,f;(f=(r=this.metadata).resize)==null||f.call(r)};
_.l.attached=function(){this.watchController=new _.K1(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.l.detached=function(){_.Z8(this.watchController);this.watchController=void 0};
_.l.getPlayerContainer=function(){return this.playerContainer};
_.l.getElement=function(r){switch(r){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20335_playlistPanel}};
_.l.provideRenderingData=function(r,f){switch(r){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=f;break;case "ERROR_SCREEN":this.errorScreen=f!=null?f:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=f;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=f;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=f;break;case "RICH_METADATA":this.richMetadataRowContainer=f;break;case "CLARIFICATION":this.clarificationData=f;break;case "PLAYLIST":this.playlistData=
f!=null?f:{};break;case "MERCH_SHELF":this.merchShelf=f;break;case "TICKET_SHELF":this.ticketShelf=f;break;case "LIMITED_STATE":this.limitedState=f;break;case "DONATION_SHELF":this.donationShelf=f;break;case "ALERTS":this.alerts=f}};
_.OC.Object.defineProperties(UO.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return!this.hidden&&!!((r=this.data)==null?0:(f=r.contents)==null?0:(I=f.twoColumnWatchNextResults)==null?0:I.conversationBar)}}});
UO.prototype.sizeChanged=UO.prototype.sizeChanged;UO.prototype.dataChanged=UO.prototype.dataChanged;UO.prototype.playerDataChanged=UO.prototype.playerDataChanged;UO.prototype.onActiveChanged=UO.prototype.onActiveChanged;_.A([_.J(_.F4.YtPageBehavior),_.B("design:type",Object)],UO.prototype,"ytPageBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],UO.prototype,"ytComponentBehavior",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],UO.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],UO.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],UO.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],UO.prototype,"playerData",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],UO.prototype,"hidden",void 0);_.A([_.uA("#ytd-player"),_.B("design:type",HTMLElement)],UO.prototype,"ytdPlayer",void 0);_.A([_.uA("#player-container"),_.B("design:type",HTMLElement)],UO.prototype,"playerContainer",void 0);_.A([_.uA("#metadata"),_.B("design:type",Object)],UO.prototype,"metadata",void 0);_.A([_.uA("#playlist"),_.B("design:type",HTMLElement)],UO.prototype,"JSC$20335_playlistPanel",void 0);
_.A([_.K({selector:_.QLU,reflectToAttribute:!0}),_.B("design:type",Object)],UO.prototype,"fixie",void 0);_.A([_.K({selector:_.oS3,reflectToAttribute:!0}),_.B("design:type",Object)],UO.prototype,"singleColumn",void 0);_.A([_.K({selector:function(r){return _.XL(r)&&!_.Ff(r)},
reflectToAttribute:!0}),_.B("design:type",Object)],UO.prototype,"theater",void 0);_.A([_.K({selector:_.Ff,reflectToAttribute:!0}),_.B("design:type",Object)],UO.prototype,"fullscreen",void 0);_.A([_.K({selector:_.xxV}),_.B("design:type",Object)],UO.prototype,"windowSize",void 0);_.A([_.K(),_.B("design:type",Object)],UO.prototype,"singleColumnContents",void 0);_.A([_.K(),_.B("design:type",Object)],UO.prototype,"errorScreen",void 0);_.A([_.K(),_.B("design:type",Object)],UO.prototype,"playlistData",void 0);
_.A([_.K(),_.B("design:type",Object)],UO.prototype,"videoPrimaryInfoRenderer",void 0);_.A([_.K(),_.B("design:type",Object)],UO.prototype,"videoSecondaryInfoRenderer",void 0);_.A([_.K(),_.B("design:type",Object)],UO.prototype,"richMetadataRowContainer",void 0);_.A([_.K(),_.B("design:type",Object)],UO.prototype,"clarificationData",void 0);_.A([_.K(),_.B("design:type",Object)],UO.prototype,"commentsEntryPointHeaderRenderer",void 0);_.A([_.K(),_.B("design:type",Object)],UO.prototype,"ticketShelf",void 0);
_.A([_.K(),_.B("design:type",Object)],UO.prototype,"merchShelf",void 0);_.A([_.K(),_.B("design:type",Object)],UO.prototype,"donationShelf",void 0);_.A([_.K(),_.B("design:type",Object)],UO.prototype,"limitedState",void 0);_.A([_.K(),_.B("design:type",Object)],UO.prototype,"alerts",void 0);_.A([_.R("playlistData"),_.B("design:type",Object),_.B("design:paramtypes",[])],UO.prototype,"hasPlaylistData",null);
_.A([_.R("data","hidden"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],UO.prototype,"hasChat",null);_.A([_.Bt("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UO.prototype,"onActiveChanged",null);_.A([_.Bt("playerData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UO.prototype,"playerDataChanged",null);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UO.prototype,"dataChanged",null);_.A([_.Bt("windowSize","singleColumn"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UO.prototype,"sizeChanged",null);
_.Q(UO,"ytd-watch-fixie",function(){if(M7q===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);M7q=r}r=M7q;return r},{mode:1});_.gJ.registerService(_.LPu,UO);
_.ty();
}catch(e){_._DumpException(e)}
try{
_.Ph("xwEKAe");
var Q7i=function(r){var f=_.xI();if(f.getFlag(202))f=f.getFlag(201);else{var I;f=(r==null?void 0:(I=r.config)==null?void 0:I.settingOnByDefault)!==void 0?r.config.settingOnByDefault:!_.N("web_shorts_cinematics_disabled_by_default")}return f},A0V=function(r){var f=_.xI();
_.hZ(0,201,r);_.hZ(0,202,!0);f.save()},ZZs=function(r){return(r=_.cCK(r))?_.LeK(r):0},Gjp=function(r){return r.shorts.isSmallScreenSqueezeback},kj1=function(r){return r.shorts.isPlaybackStarted},BH3=function(r,f,I,C){r=f-r;
I=C-I;return Math.sqrt(r*r+I*I)},q9p=function(r,f){r&&_.a().resolve(_.Gg).resolveCommand(r,{forceClickLogging:!0,
form:{element:f}})},upi=function(r){r.unsubscribeFromStore=_.wj(r.storeWithShorts,_.DUU,function(f){r.initOrDisposeActiveModules(f);
!f&&r.storeWithShorts.getState().shorts.isFullscreen&&(_.A1(document.documentElement),r.storeWithShorts.dispatch(_.Iss(!1)))});
r.initOrDisposeActiveModules(_.DUU(r.storeWithShorts.getState()))},Dwd=function(r){var f=_.a().resolve(_.BP);
f.rootElement=r;upi(f)},ru6=function(){return _.a().resolve(_.BP).dismissedIndices},fD7=function(r){return _.kI({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:r}})},ID3=function(r){return _.kI({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:r}})},YQ=function(r){return _.kI({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:r}})},lP=function(r,f){if(r instanceof lP)this.array_=r.array_;
else{var I;if(I=_.ID(r))a:{for(var C=I=0;C<r.length;C++){if(!_.ID(r[C])||I>0&&r[C].length!=I){I=!1;break a}for(var Y=0;Y<r[C].length;Y++)if(typeof r[C][Y]!=="number"){I=!1;break a}I==0&&(I=r[C].length)}I=I!=0}if(I)this.array_=_.f8(r);else if(r instanceof _.EZ)this.array_=CoU(r.height,r.width);else if(typeof r==="number"&&typeof f==="number"&&r>0&&f>0)this.array_=CoU(r,f);else throw Error("Xl");}this.size_=new _.EZ(this.array_[0].length,this.array_.length)},YV6=function(r,f,I){for(var C=0;C<r.getSize().height;C++)for(var Y=
0;Y<r.getSize().width;Y++)f.call(I,r.array_[C][Y],C,Y,r)},lD2=function(r,f){var I=new lP(r.getSize());
YV6(r,function(C,Y,V){I.array_[Y][V]=f.call(void 0,C,Y,V,r)});
return I},CoU=function(r,f){for(var I=[],C=0;C<r;C++){I[C]=[];
for(var Y=0;Y<f;Y++)I[C][Y]=0}return I};
lP.prototype.add=function(r){if(!_.gD2(this.size_,r.getSize()))throw Error("Yl");return lD2(this,function(f,I,C){return f+r.array_[I][C]})};
lP.prototype.equals=function(r,f){if(this.size_.width!=r.size_.width||this.size_.height!=r.size_.height)return!1;f=f||0;for(var I=0;I<this.size_.height;I++)for(var C=0;C<this.size_.width;C++)if(!_.MV3(this.array_[I][C],r.array_[I][C],f))return!1;return!0};
lP.prototype.getSize=function(){return this.size_};
var V4=function(r,f,I){return f>=0&&f<r.size_.height&&I>=0&&I<r.size_.width?r.array_[f][I]:null};
lP.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var Vz6=function(r,f,I,C){if(!(f>=0&&f<r.size_.height&&I>=0&&I<r.size_.width))throw Error("Zl`"+f+"`"+I+"`"+r.size_.height+"`"+r.size_.width);r.array_[f][I]=C};
lP.prototype.multiply=function(r){if(r instanceof lP){if(this.size_.width!=r.getSize().height)throw Error("$l");return ESV(this,r)}if(typeof r==="number")return SVp(this,r);throw Error("am");};
var ESV=function(r,f){var I=new lP(r.size_.height,f.getSize().width);YV6(I,function(C,Y,V){for(var S=C=0;S<this.size_.width;S++)C+=V4(this,Y,S)*V4(f,S,V);Vz6(I,Y,V,C)},r);
return I},SVp=function(r,f){return lD2(r,function(I){return I*f})};var xt1=new _.q("inlineSurveyRenderer");var h7i=new _.q("interstitialViewModel");var wVB=new _.q("reelNavigateCommand");var bkU=new _.q("reelNonVideoContentDismissalCommand");var pV1=new _.q("showReelsCommentsOverlayCommand");var nSs=new _.q("shortsSuggestedActionViewModel");var dtp=new _.q("videoInteractionPopUpRenderer");var z7d;var MzU;var gS7;var Ez=function(){var r=_.y.apply(this,arguments)||this;r.ctaVisualElement=null;r.currentCsn=null;return r};
_.t(Ez,_.y);_.l=Ez.prototype;_.l.onDataChanged=function(){this.maybeLogShows()};
_.l.computeButtonShape=function(){var r=this;if(this.data)return{buttonText:_.Rr(this.data.text),state:"active",onTap:function(){r.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.l.maybeCreateCtaVe=function(){var r;if((r=this.data)!=null&&r.badgeInteractionLogging){var f;if(r=(f=this.data.badgeInteractionLogging)==null?void 0:f.trackingParams)this.ctaVisualElement=_.VH(r)}};
_.l.maybeLogClicks=function(){this.currentCsn=_.t1(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.im(this.currentCsn,this.ctaVisualElement)};
_.l.maybeLogShows=function(){this.currentCsn=_.t1(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.j_(this.currentCsn,[this.ctaVisualElement])};
_.l.onTap=function(){var r;if((r=this.data)!=null&&r.onClickCommand){var f;this.ytComponentBehavior.resolveCommand((f=this.data)==null?void 0:f.onClickCommand);this.maybeLogClicks()}};
Ez.prototype.onDataChanged=Ez.prototype.onDataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ez.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Ez.prototype,"ytComponentBehavior",void 0);_.A([_.K({}),_.B("design:type",Object)],Ez.prototype,"data",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ez.prototype,"onDataChanged",null);
Ez=_.A([_.U({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],Ez);
_.Q(Ez,"ytd-shopping-overlay-badge-renderer",function(){if(gS7!==void 0)return gS7;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return gS7=r},{mode:1});_.Kv(_.mTY,"reel-sound-metadata-view-model",{props:{data:_.vI,overlayDensity:_.vI}});_.Kv(_.g1p,"player-disclosure-view-model",{props:{data:_.jv}});_.Kv(_.ruT,"pivot-button-view-model",{props:{data:_.vI,className:_.vI}});_.Kv(_.fDs,"reel-action-bar-view-model",{props:{data:_.jv,buttonShapeOverrideables:_.jv}});_.Kv(_.Hc(function(r){function f(){var oR,vu,wB,qT,gB=(vu=_.F((oR=k())==null?void 0:oR.command,_.RQ3))==null?void 0:(wB=vu.item)==null?void 0:(qT=wB.notificationTextRenderer)==null?void 0:qT.successResponseText;if(gB)_.Bj(C.value,"yt-open-popup-action",[_.Ur(gB),C.value]);else if(Z())q9p(Z(),P.value);else{var C8;q9p((C8=k())==null?void 0:C8.command,P.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var I=r.data;var C=_.yy();r=_.E(_.ld("0px",void 0,"O1N7Ce"));var Y=r.next().value,V=r.next().value;r=_.E(_.ld("0px",void 0,"tTDBdb"));var S=r.next().value,h=r.next().value;r=_.E(_.ld(0,void 0,"fh8Zkc"));var w=r.next().value,n=r.next().value;r=_.E(_.ld(0,void 0,"CUjqGd"));var d=r.next().value,z=r.next().value,g=function(){var oR;if(((oR=_.Db())==null?void 0:oR.getPlayerState())!==-1){C.value.style.display="inherit";var vu;(vu=_.Db())==null||vu.removeEventListener("onStateChange",g)}X()},X=function(){var oR=
document.querySelector("video");
if(oR){n(oR.getBoundingClientRect().width);z(oR.getBoundingClientRect().height);var vu;V((oR==null?void 0:(vu=oR.style)==null?void 0:vu.left)||"0px");var wB;h((oR==null?void 0:(wB=oR.style)==null?void 0:wB.top)||"0px")}};
_.az(function(){var oR,vu,wB;if(((oR=_.Db())==null?void 0:oR.getPlayerState())===-1&&Math.round(((wB=(vu=_.Db())==null?void 0:vu.getVideoAspectRatio())!=null?wB:0)*100)!==Math.round(w()/d()*100)){C.value.style.display="none";var qT,gB;z(w()/((gB=(qT=_.Db())==null?void 0:qT.getVideoAspectRatio())!=null?gB:1))}},"VB5m5");
_.Xl(function(){var oR;(oR=_.Db())==null||oR.addEventListener("onStateChange",g);window.addEventListener("resize",X);X();var vu,wB,qT;if((qT=(vu=I())==null?void 0:(wB=vu.regions)==null?void 0:wB[0])==null||!qT.transformationMatrix)throw Error("em");var gB;if((gB=I())==null?0:gB.trackingParams){var C8;_.IB().graftServerVe((C8=I().trackingParams)!=null?C8:"")}_.$L(function(){var Es;(Es=_.Db())==null||Es.removeEventListener("onStateChange",g);window.removeEventListener("resize",X)})});
var P=_.yy(),W=_.E(_.ld(!1,void 0,"TPsTce"));r=W.next().value;var m=W.next().value,v=_.E(_.ld(!1,void 0,"Uz6CHf"));W=v.next().value;var O=v.next().value,k=function(){var oR;return _.F((oR=I())==null?void 0:oR.popUp,dtp)},Z=function(){var oR;
return(oR=I())==null?void 0:oR.command},Cw=function(){return _.F(Z(),_.wu)!==void 0};
v=_.IC(function(){Cw()&&m(!0);O(!0);return!1});
var rR=_.IC(function(){m(!1);O(!1);return!1}),EP=_.IC(function(){Cw()&&m(!0);
return!1}),Pu=_.IC(function(){Cw()&&m(!1);
return!1}),Wu=_.IC(function(){f();
return!1}),cu=_.IC(function(oR){oR.key==="Enter"&&f();
return!1}),OP={},iU={};
return _.p("yt-player-overlay-video-interactions",{el:C},_.p("svg",{"on:mouseover":v,"on:mouseout":rR,"on:keydown":cu,"on:focus":EP,"on:blur":Pu,el:P,tabindex:0,"aria-label":function(){var oR;return(oR=I())==null?void 0:oR.a11yString},
id:"player-overlay-video-interaction-svg",class:_.qd("yt-player-overlay-video-interactions__interactions-svg",(OP["yt-player-overlay-video-interactions__interactions-svg-hover"]=r,OP),(iU["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=W,iU)),role:"button",style:function(){var oR,vu,wB,qT=(wB=(oR=I())==null?void 0:(vu=oR.regions)==null?void 0:vu[0].transformationMatrix)!=null?wB:[];oR=w();vu=d();wB=[];for(var gB=0,C8=-1;gB<qT.length;gB++)gB%3===0&&(C8++,wB[C8]=[]),wB[C8].push(qT[gB]);
qT=new lP(wB);wB=new lP([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);wB=qT.multiply(wB);qT=new lP([[0,0],[0,0],[0,0],[0,0]]);for(gB=0;gB<wB.getSize().width;gB++){C8=V4(wB,0,gB);var Es=V4(wB,1,gB);if(C8===null||Es===null)throw Error("dm`"+(gB+1).toString());Vz6(qT,gB,0,C8*oR);Vz6(qT,gB,1,Es*vu)}oR=V4(qT,0,0);gB=V4(qT,1,0);vu=V4(qT,0,1);C8=V4(qT,1,1);if(oR===null||gB===null||vu===null||C8===null)throw Error("bm");wB=BH3(oR,gB,vu,C8);Es=V4(qT,3,0);qT=V4(qT,3,1);if(Es===null||qT===null)throw Error("cm");qT=BH3(oR,
Es,vu,qT);C8=(Number((C8*-1).toFixed(2))-Number((vu*-1).toFixed(2)))/(Number(gB.toFixed(2))-Number(oR.toFixed(2)));Es=Math.atan(C8)*180/Math.PI;gB=C8===Number.POSITIVE_INFINITY?-90:C8===Number.NEGATIVE_INFINITY?90:Object.is(C8,-0)?180:C8===0?0:C8>0?Es*-1:oR<gB?Es*-1:Math.abs(Es)+180;return"left:calc("+oR+"px + "+Y()+"); top:calc("+(vu+"px + "+S()+"); width:")+(wB+"px; height:")+(qT+"px; transform:rotate(")+(gB+"deg);")},
"on:click":Wu}))},"wi"),"yt-player-overlay-video-interactions",{props:{data:_.jv}});_.Kv(_.FXi,"yt-reel-metapanel-view-model",{props:{data:_.jv,overlayDensity:_.jv}});var S7=function(){var r=_.y.apply(this,arguments)||this;r.showScrubber=!1;r.isWatchWhileMode=!1;r.enableAnchoredPanel=_.N("desktop_shorts_v2_anchored_panel");r.anchoredPanelActive=!1;r.enableLivingroomLayout=_.N("reels_enable_livingroom_layout");r.enablePlayerMetadataContainer=_.N("reels_web_enable_metadata_container");r.enableSqueezebackPanels=_.N("web_shorts_enable_squeezeback_panels");r.isSqueezebackActive=!1;r.smallScreenSqueezeback=!1;r.isPlayerStarted=!1;r.overlayDensity=0;r.isOverlay=!1;r.isImmersive=
!1;r.isImmersiveHorizontal=!1;r.isFullscreen=!1;r.onWindowResized=function(){var f;r.set("isImmersive",((f=window.getComputedStyle(r.hostElement))==null?void 0:f.getPropertyValue("--immersive-mode-on"))==="1");r.set("isImmersiveHorizontal",r.isImmersive&&r.enableLivingroomLayout&&!r.isWatchWhileMode)};
return r};
_.t(S7,_.y);_.l=S7.prototype;_.l.updateIsOverlay=function(r){this.isOverlay=r.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(_.N("web_enable_flexible_overlay")||_.N("web_enable_format_first")||_.N("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(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.qC("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.qC("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(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.VR("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.VR("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.VR("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.VR("SHARE_LABEL",
void 0,"Share")}}});_.N("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.VR("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(){_.N("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}))};
_.OC.Object.defineProperties(S7.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.infoPanel)}}});
S7.prototype.onIsActiveChanged=S7.prototype.onIsActiveChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],S7.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],S7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],S7.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.mB.YtdGuideStateAwareBehavior),_.B("design:type",Object)],S7.prototype,"ytdGuideStateAwareBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],S7.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],S7.prototype,"isActive",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],S7.prototype,"hidden",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],S7.prototype,"useShortsIcon",void 0);_.A([_.K({value:"left"}),_.B("design:type",String)],S7.prototype,"buttonTooltipPosition",void 0);
_.A([_.K({value:_.N("reels_enable_livingroom_layout")?"top":"left"}),_.B("design:type",String)],S7.prototype,"likeButtonTooltipPosition",void 0);_.A([_.K({value:"none"}),_.B("design:type",String)],S7.prototype,"textTransform",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],S7.prototype,"showScrubber",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],S7.prototype,"isWatchWhileMode",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("data.infoPanel"),_.B("design:type",Object),_.B("design:paramtypes",[])],S7.prototype,"hasInfoPanel",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],S7.prototype,"enableAnchoredPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],S7.prototype,"anchoredPanelActive",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],S7.prototype,"enableLivingroomLayout",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],S7.prototype,"enablePlayerMetadataContainer",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],S7.prototype,"enableSqueezebackPanels",void 0);_.A([_.K({selector:_.UwB,reflectToAttribute:!0}),_.B("design:type",Object)],S7.prototype,"isSqueezebackActive",void 0);_.A([_.K({selector:Gjp,reflectToAttribute:!0}),_.B("design:type",Object)],S7.prototype,"smallScreenSqueezeback",void 0);
_.A([_.K({selector:kj1}),_.B("design:type",Object)],S7.prototype,"isPlayerStarted",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],S7.prototype,"overlayDensity",void 0);_.A([_.K(),_.B("design:type",Object)],S7.prototype,"isOverlay",void 0);_.A([_.K({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.B("design:type",Boolean)],S7.prototype,"isShortsOverlay",void 0);_.A([_.K(),_.B("design:type",Object)],S7.prototype,"isImmersive",void 0);
_.A([_.K(),_.B("design:type",Object)],S7.prototype,"isImmersiveHorizontal",void 0);_.A([_.K({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.B("design:type",Boolean)],S7.prototype,"isShortsImmersive",void 0);_.A([_.K({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.B("design:type",Object)],S7.prototype,"buttonOverride",void 0);
_.A([_.K({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.B("design:type",Object)],S7.prototype,"actionBarButtonOverride",void 0);_.A([_.K({selector:_.xU,reflectToAttribute:!0}),_.B("design:type",Object)],S7.prototype,"isFullscreen",void 0);_.A([_.Bt("isActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],S7.prototype,"onIsActiveChanged",null);S7=_.A([_.U({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],S7);
_.Q(S7,"ytd-reel-player-overlay-renderer",function(){if(MzU!==void 0)return MzU;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return MzU=r},{mode:1});var aDd;var xQ=function(){var r=_.y.apply(this,arguments)||this;r.videoDuration=0;r.playedTime=0;r.isActive=!1;r.JSC$19597_playerEvents=new Map;return r};
_.t(xQ,_.y);_.l=xQ.prototype;_.l.created=function(){this.JSC$19597_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19597_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.l.attached=function(){this.getPlayerAndInitializeListeners()};
_.l.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19597_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.GF(this,this.onPageChanged))};
_.l.getPlayerAndInitializeListeners=function(){var r=this,f;return _.x(function(I){if(I.nextAddress==1)return f=_.sk(),f?_.b(I,f.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.GF(r,r.onPageChanged)),I.jumpTo(0));r.player=I.yieldResult;r.initializePlayerListeners();_.wO(I)})};
_.l.onPageChanged=function(r){var f=this;return _.x(function(I){if(I.nextAddress==1)return r.detail.newPageType!=="ytd-shorts"?I.return():_.b(I,_.Ok().getPlayerPromise(),2);f.player=I.yieldResult;f.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.GF(f,f.onPageChanged));_.wO(I)})};
_.l.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19597_playerEvents)};
_.l.onVideoDataChange=function(r){var f=this;return _.x(function(I){if(!f.player||r.type!=="newdata")return I.return();f.videoDuration=_.N("web_shorts_use_progress_state_for_gapless")?f.player.getProgressState(r.playertype).seekableEnd:f.player.getDuration(r.playertype);f.playedTime=0;_.wO(I)})};
_.l.onVideoProgress=function(r){var f=this,I,C;return _.x(function(Y){if(!f.player)return Y.return();I=f.player.getPresentingPlayerType();C=f.player.getPlayerState();f.videoDuration=_.N("web_shorts_use_progress_state_for_gapless")?f.player.getProgressState(I).seekableEnd:f.player.getDuration(I);f.playedTime=C===0?f.videoDuration:r;_.wO(Y)})};
_.l.getPercentPlayed=function(r,f){return r?_.my(f/r,0,1):0};
_.OC.Object.defineProperties(xQ.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 r="";return r=this.videoDuration&&this.playedTime?r+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):r+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],xQ.prototype,"componentBehavior",void 0);_.A([_.J(_.iQ.YtPlayerListenerBehavior),_.B("design:type",_.RN)],xQ.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],xQ.prototype,"player",void 0);_.A([_.K(),_.B("design:type",Object)],xQ.prototype,"videoDuration",void 0);_.A([_.K(),_.B("design:type",Object)],xQ.prototype,"playedTime",void 0);_.A([_.K(),_.B("design:type",Object)],xQ.prototype,"isActive",void 0);
_.A([_.R("videoDuration","playedTime"),_.B("design:type",Number),_.B("design:paramtypes",[])],xQ.prototype,"percentPlayed",null);_.A([_.R("videoDuration","playedTime"),_.B("design:type",Object),_.B("design:paramtypes",[])],xQ.prototype,"percentPlayedStyle",null);_.A([_.R("videoDuration","isActive"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],xQ.prototype,"hideProgressBar",null);
_.Q(xQ,"ytd-progress-bar-line",function(){if(aDd===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);aDd=r}r=aDd;return r},{mode:_.QQ("kevlar_poly_si_batch_j028")?1:2});var XVp;_.Z5(_.MeK,"desktop-shorts-volume-controls",{propNames:["noSlider","orientation"]});var hE=function(){var r=_.y.apply(this,arguments)||this;r.playerState=null;r.isMuted=!1;r.shortsModernControlsEnabled=_.N("web_shorts_modern_controls");r.volumeControlsOrientationState="vertical_down";var f;if(f=_.N("web_shorts_pip_button"))_.a().resolve(_.b86),f=_.xw();r.shortsPipButtonEnabled=f;r.JSC$19600_playerEvents=new Map;return r};
_.t(hE,_.y);_.l=hE.prototype;_.l.created=function(){this.JSC$19600_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19600_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.l.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.pQ(28662);this.playPauseButtonClientVE=_.pQ(36842);this.fullscreenButtonToggleOffClientVE=_.pQ(222256);this.fullscreenButtonToggleOnClientVE=_.pQ(222257);var r=_.t1(),f=_.Pj();r&&f&&(_.N("combine_ve_grafts")?(_.Ia(_.IB(),this.muteButtonClientVE,f),_.Ia(_.IB(),this.playPauseButtonClientVE,f)):_.e_(r,f,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.l.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19600_playerEvents),this.player=null)};
_.l.getPlayerAndInitializeListeners=function(){var r=this,f;return _.x(function(I){if(I.nextAddress==1)return f=_.sk(),f?_.b(I,f.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.GF(r,r.onPageChanged)),I.jumpTo(0));r.player=I.yieldResult;r.initializePlayerListeners();_.wO(I)})};
_.l.onPageChanged=function(r){var f=this;return _.x(function(I){if(I.nextAddress==1)return r.detail.newPageType!=="ytd-shorts"?I.return():_.b(I,_.Ok().getPlayerPromise(),2);f.player=I.yieldResult;f.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.GF(f,f.onPageChanged));_.wO(I)})};
_.l.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19600_playerEvents)};
_.l.onPlayerStateChange=function(r){this.playerState=r};
_.l.onPlayerVolumeChange=function(r){this.isMuted=r.muted};
_.l.onPlayPauseButtonClick=function(){var r=this,f,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,_.Ok().getPlayerPromise(),2);f=C.yieldResult;(I=_.t1())&&r.playPauseButtonClientVE&&_.im(I,r.playPauseButtonClientVE);f.getPlayerState()!==1?f.playVideo():f.pauseVideo();_.wO(C)})};
_.l.computePlayPauseIcon=function(r){return r===2||r===-1||r===5?"PLAY_ARROW_FILLED":_.N("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.l.computeFullscreenLabel=function(r){return r?_.VR("FULLSCREEN_EXIT_LABEL"):_.VR("FULLSCREEN_ENTER_LABEL")};
_.l.computeShortsPipLabel=function(r){return r?_.VR("MINIPLAYER_CLOSE"):_.VR("OPEN_IN_MINIPLAYER")};
_.l.computePlayPauseLabel=function(r){return r===1||r===3?_.VR("PLAYER_LABEL_PAUSE"):_.VR("PLAYER_LABEL_PLAY")};
_.l.onMuteButtonClick=function(){var r=this,f,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,_.Ok().getPlayerPromise(),2);f=C.yieldResult;(I=_.t1())&&r.muteButtonClientVE&&_.im(I,r.muteButtonClientVE);f.isMuted()?f.unMute(!0):f.mute(!0);_.wO(C)})};
_.l.computeMuteIcon=function(r){return r?"miniplayer:volume-off":"miniplayer:volume-up"};
_.l.computeMuteLabel=function(r){return r?_.VR("PLAYER_LABEL_UNMUTE"):_.VR("PLAYER_LABEL_MUTE")};
_.l.onFullscreenButtonClick=function(){var r=_.t1();r&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.im(r,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.im(r,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.Cx1()};
_.l.onShortsPipButtonClick=function(){var r=_.a().resolve(_.BP);if(_.N("web_shorts_pip")){var f=_.a().resolve(_.iO);r.isShortsPipActive()?f.deactivate():f.isMiniplayerActive()||(_.xP().shortsPipActivation=!0,_.c6B(f))}};
_.OC.Object.defineProperties(hE.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var r=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(){r.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"}:{}}}},
shortsPipButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeShortsPipLabel(this.isShortsPipActive),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeShortsPipLabel(this.isShortsPipActive)}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.N("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.N("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}},
shortsPipIcon:{configurable:!0,enumerable:!0,get:function(){return this.isShortsPipActive?"miniplayer_exit":"picture_in_picture"}}});
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],hE.prototype,"componentBehavior",void 0);_.A([_.J(_.iQ.YtPlayerListenerBehavior),_.B("design:type",_.RN)],hE.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],hE.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],hE.prototype,"player",void 0);_.A([_.K(),_.B("design:type",Object)],hE.prototype,"playerState",void 0);_.A([_.K(),_.B("design:type",Object)],hE.prototype,"isMuted",void 0);
_.A([_.K({computed:"computePlayPauseIcon(playerState)"}),_.B("design:type",String)],hE.prototype,"playPauseIcon",void 0);_.A([_.K({computed:"computeMuteIcon(isMuted)"}),_.B("design:type",String)],hE.prototype,"muteIcon",void 0);_.A([_.K({selector:_.xU}),_.B("design:type",Boolean)],hE.prototype,"isFullscreen",void 0);_.A([_.K({selector:_.hH}),_.B("design:type",Boolean)],hE.prototype,"isShortsPipActive",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],hE.prototype,"shortsModernControlsEnabled",void 0);_.A([_.K(),_.B("design:type",Object)],hE.prototype,"volumeControlsOrientationState",void 0);_.A([_.K(),_.B("design:type",Object)],hE.prototype,"shortsPipButtonEnabled",void 0);_.A([_.R("playerState"),_.B("design:type",Object),_.B("design:paramtypes",[])],hE.prototype,"playPauseButtonData",null);
_.A([_.R("isFullscreen"),_.B("design:type",Object),_.B("design:paramtypes",[])],hE.prototype,"fullscreenButtonData",null);_.A([_.R("isShortsPipActive"),_.B("design:type",Object),_.B("design:paramtypes",[])],hE.prototype,"shortsPipButtonData",null);_.A([_.R("isFullscreen"),_.B("design:type",String),_.B("design:paramtypes",[])],hE.prototype,"fullscreenIcon",null);_.A([_.R("isShortsPipActive"),_.B("design:type",String),_.B("design:paramtypes",[])],hE.prototype,"shortsPipIcon",null);
_.Q(hE,"ytd-shorts-player-controls",function(){if(XVp===void 0){var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n<template is="dom-if" if="[[shortsPipButtonEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="shorts-pip-button-shape" data="[[shortsPipButtonData]]" icon-name="[[shortsPipIcon]]" on-click="onShortsPipButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);XVp=r}r=XVp;return r},{mode:1});var NS1;_.Kv(_.tEV,"yt-interstitial-view-model",{props:{data:_.jv}});var $t1=_.Hc(function(r){var f=r.data;return _.p("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.p("h1",{class:"reelWatchBreakViewModelHostTitle"},_.p(_.wW,{text:function(){return f().title}})),_.p("h2",{class:"reelWatchBreakViewModelHostBody"},_.p(_.wW,{text:function(){return f().body},
isOverlay:!0})),_.p(_.X1,{data:function(){return f().buttons}},{buttonViewModel:function(I,C){return _.p("div",{class:function(){return C()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.p(_.LF,{data:I.data}))}}))},"xi");
$t1.idomCompat=!0;_.Kv($t1,"reel-watch-break-view-model",{props:{data:_.jv}});var wE=function(){return _.y.apply(this,arguments)||this};
_.t(wE,_.y);wE.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}}};
_.OC.Object.defineProperties(wE.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var r;return!!_.F((r=this.data)==null?void 0:r.renderer,xt1)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var r;return!!_.F((r=this.data)==null?void 0:r.renderer,h7i)}}});
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],wE.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],wE.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],wE.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],wE.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("data.renderer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],wE.prototype,"isSurvey",null);_.A([_.K({reflectToAttribute:!0}),_.R("data.renderer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],wE.prototype,"isInterstitialViewModel",null);wE=_.A([_.U({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],wE);
_.Q(wE,"ytd-reel-non-video-content-renderer",function(){if(NS1!==void 0)return NS1;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
return NS1=r},{mode:_.QQ("kevlar_poly_si_batch_j028")?1:2});var FD6;_.Kv(_.MF2,"desktop-shorts-player-controls",{});var bP=function(){var r=_.y.apply(this,arguments)||this;r.isPlayerPaused=!1;r.isPlayerStarted=!1;r.showPlayerControls=!1;r.showScrubber=!1;r.autoHideJobId=0;r.modern=_.N("web_button_rework");r.overlayType=_.qC("web_shorts_expanded_overlay_type");r.panelData=void 0;r.isWatchWhileMode=!1;r.hasError=!1;r.panelShowDelayMs=1;r.scrubberComponent={};r.useStamper=_.N("web_shorts_enable_title_deflation");r.isFullscreen=!1;r.shouldHideOverlay=!1;r.enableAnchoredPanel=_.N("desktop_shorts_v2_anchored_panel");
r.enablePersistentAnchoredPanel=_.N("desktop_shorts_v2_persistent_anchored_panel");r.hideWatchWhilePanel=_.N("web_shorts_hide_watch_while_panel");r.isPersistentPanelActive=!1;r.anchoredPanelActive=!1;r.isShortsPipActive=!1;r.smallScreenSqueezeback=!1;r.enableFlexibleOverlay=_.N("web_enable_flexible_overlay");r.overlayDensity=0;r.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
r.onWindowResized=function(){_.Pc(r,"calculateOverlayDensity",function(){r.calculateOverlayDensity()},100)};
return r};
_.t(bP,_.y);_.l=bP.prototype;_.l.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.l.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.l.shouldRenderOverlayControl=function(r){return!this.useStamper&&this.isVideoContent(r)};
_.l.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var r=_.a().resolve(_.dD);this.isWatchWhileMode&&(_.N("web_enable_shorts_new_carousel")?_.F_.addJob(function(){r.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):r.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.l.handleShowReelsCommentsOverlayCommand=function(r){r=_.F(r,pV1);this.isActive&&(r==null?0:r.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(r,f){r&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:f?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:r}})};
_.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&&(_.a().resolve(_.BP).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.l.handleWatchWhilePanelScrimClick=function(){var r=_.a().resolve(_.dD);this.activeWatchWhilePanel&&(r.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:_.N("web_enable_shorts_new_carousel")?0:void 0}}};
_.l.handlePlayerClick=function(r){var f=this,I,C;if((C=(I=window).matchMedia)!=null&&C.call(I,"(any-pointer: coarse)").matches||!r)this.showPlayerControls=!0,_.F_.cancelJob(this.autoHideJobId),this.autoHideJobId=_.dp(_.F_,function(){f.showPlayerControls=!1},4E3)};
_.l.isFirstReel=function(){return this.index===0};
_.l.handleMouseenter=function(){_.F_.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 r;(r=this.data)!=null&&r.thumbnail&&this.isActive&&.5625!==ZZs(this.data.thumbnail)&&_.PLR("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.l.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var r=document.querySelector("#shorts-container");if(r){r=r.offsetWidth/2-this.playerContainer.offsetWidth/2;r=r>=368?1:r>=168?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&r===1&&(r=0);this.isPersistentPanelActive&&(r=0);this.overlayDensity=r;var f;(f=this.onOverlayDensityChanged)==null||f.call(this,this.index,this.overlayDensity)}}};
_.l.onOverlayDensityChange=function(){var r;(r=this.onOverlayDensityChanged)==null||r.call(this,this.index,this.overlayDensity);(r=_.e(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&r.set("overlayDensity",this.overlayDensity);if(r=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))r.overlayDensity=this.overlayDensity};
_.l.isVideoContent=function(r){_.a().resolve(_.BP);return!!_.F(r,_.xO)};
_.l.isNonVideoContent=function(r){_.a().resolve(_.BP);return!!_.F(r,_.c_)};
_.l.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.OC.Object.defineProperties(bP.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var r,f;return _.N("web_enable_format_first")||((r=this.data)==null?void 0:r.adsOverlay)&&_.N("web_enable_format_first_ads_only")||((f=this.data)==null?void 0:f.reelPlayerOverlayRenderer)&&_.N("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var r;return!this.isActive||!this.isPlayerStarted||(r=this.data)!=null&&r.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var r;if(this.useStamper&&((r=this.data)==null?0:r.command)&&this.isVideoContent(this.data.command)){var f,I;if(((f=this.data)==null?0:f.adsOverlay)&&Object.keys((I=this.data)==null?void 0:I.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var C,Y;if(((C=this.data)==null?0:C.reelPlayerOverlayRenderer)&&Object.keys((Y=this.data)==null?void 0:Y.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
bP.prototype.onOverlayDensityChange=bP.prototype.onOverlayDensityChange;bP.prototype.calculateOverlayDensity=bP.prototype.calculateOverlayDensity;bP.prototype.maybeLogNonDefaultAspectRatio=bP.prototype.maybeLogNonDefaultAspectRatio;bP.prototype.onEngagementPanelsChanged=bP.prototype.onEngagementPanelsChanged;bP.prototype.onScrubberDataChange=bP.prototype.onScrubberDataChange;bP.prototype.updateShouldHideOverlay=bP.prototype.updateShouldHideOverlay;
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],bP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],bP.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.mB.YtdGuideStateAwareBehavior),_.B("design:type",Object)],bP.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],bP.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Number)],bP.prototype,"index",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],bP.prototype,"isActive",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],bP.prototype,"isHiddenInDom",void 0);_.A([_.K(),_.B("design:type",Object)],bP.prototype,"isPlayerPaused",void 0);_.A([_.K({selector:kj1}),_.B("design:type",Object)],bP.prototype,"isPlayerStarted",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],bP.prototype,"showPlayerControls",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],bP.prototype,"showScrubber",void 0);_.A([_.K(),_.B("design:type",Object)],bP.prototype,"autoHideJobId",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],bP.prototype,"modern",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],bP.prototype,"overlayType",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],bP.prototype,"ytdReduxBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],bP.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],bP.prototype,"watchWhileEngagementPanels",void 0);_.A([_.K(),_.B("design:type",Object)],bP.prototype,"panelData",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],bP.prototype,"isWatchWhileMode",void 0);_.A([_.K(),_.B("design:type",String)],bP.prototype,"activeWatchWhilePanel",void 0);
_.A([_.K(),_.B("design:type",Object)],bP.prototype,"hasError",void 0);_.A([_.K(),_.B("design:type",Object)],bP.prototype,"panelShowDelayMs",void 0);_.A([_.K(),_.B("design:type",Object)],bP.prototype,"scrubberComponent",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],bP.prototype,"useStamper",void 0);_.A([_.K({selector:_.xU,reflectToAttribute:!0}),_.B("design:type",Object)],bP.prototype,"isFullscreen",void 0);
_.A([_.K(),_.B("design:type",Object)],bP.prototype,"shouldHideOverlay",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],bP.prototype,"enableAnchoredPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],bP.prototype,"enablePersistentAnchoredPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],bP.prototype,"hideWatchWhilePanel",void 0);
_.A([_.K({selector:_.UwB,reflectToAttribute:!0}),_.B("design:type",Object)],bP.prototype,"isPersistentPanelActive",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],bP.prototype,"anchoredPanelActive",void 0);_.A([_.K({selector:_.hH,reflectToAttribute:!0}),_.B("design:type",Object)],bP.prototype,"isShortsPipActive",void 0);_.A([_.K({selector:Gjp,reflectToAttribute:!0}),_.B("design:type",Object)],bP.prototype,"smallScreenSqueezeback",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],bP.prototype,"enableFormatFirst",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],bP.prototype,"enableFlexibleOverlay",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],bP.prototype,"overlayDensity",void 0);_.A([_.K(),_.B("design:type",Function)],bP.prototype,"onOverlayDensityChanged",void 0);
_.A([_.K(),_.R("isActive","hasError"),_.B("design:type",Object),_.B("design:paramtypes",[])],bP.prototype,"shouldRenderPlayerElements",null);_.A([_.K(),_.R("isActive","isWatchWhileMode"),_.B("design:type",Object),_.B("design:paramtypes",[])],bP.prototype,"watchWhileOrPersistentActive",null);_.A([_.Bt("isActive","hasError","showingExpandedOverlay"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bP.prototype,"updateShouldHideOverlay",null);
_.A([_.K({reflectToAttribute:!0}),_.R("isActive","isPlayerStarted","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],bP.prototype,"shouldRenderScrubber",null);_.A([_.Bt("shouldRenderScrubber"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bP.prototype,"onScrubberDataChange",null);_.A([_.R("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],bP.prototype,"overlayComponent",null);
_.A([_.Bt("watchWhileEngagementPanels"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bP.prototype,"onEngagementPanelsChanged",null);_.A([_.uA("#player-container"),_.B("design:type",HTMLElement)],bP.prototype,"playerContainer",void 0);_.A([_.uA("#cinematic-container"),_.B("design:type",HTMLElement)],bP.prototype,"cinematicContainer",void 0);
_.A([_.Bt("isPersistentPanelActive","data.thumbnail"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bP.prototype,"maybeLogNonDefaultAspectRatio",null);_.A([_.Bt("isPersistentPanelActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bP.prototype,"calculateOverlayDensity",null);_.A([_.Bt("overlayDensity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bP.prototype,"onOverlayDensityChange",null);
bP=_.A([_.U({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],bP);
_.Q(bP,"ytd-reel-video-renderer",function(){if(FD6!==void 0)return FD6;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return FD6=r},{mode:_.QQ("kevlar_poly_si_batch_j028")?1:2});var p5=function(){var r=_.y.apply(this,arguments)||this;r.isPreviousPageShorts=!1;r.index=0;r.delayedActiveIndex=0;r.playablePreviousIndex=null;r.isPlayerPaused=!1;r.isPlayerStarted=!1;r.intersectionObserverThreshold=.6;r.fitToVisibleBounds=!1;r.pageSubtype="shorts";r.panelShowDelayMs=_.Bw("enable_shorts_panel_show_delay_ms");r.enablePreviousContinuation=_.N("shorts_in_playlists_web");r.shortsPipEnabled=_.N("web_shorts_pip");r.isDark=document.documentElement.hasAttribute("dark");r.shortsViewTransitions=
_.N("web_shorts_view_transitions");r.isFullscreen=!1;r.isShortsPipActive=!1;r.buttonOverride={iconPosition:"icon-only",size:"XL"};r.anchoredPanelActive=!1;r.isActive=!1;r.smallScreenPersistentPanel=!1;r.isPersistentPanelActive=!1;r.smallScreenSqueezeBack=!1;r.enableScrollIntoViewCenter=_.N("web_scroll_into_view_center");r.formatFirst=_.N("web_enable_format_first")||_.N("web_enable_format_first_ads_only")||_.N("web_enable_format_first_organic_only");r.enableFlexibleOverlay=_.N("web_enable_flexible_overlay");
r.isShortsInitialized=!1;r.hidePreviousButtonImmediately=!1;r.showPreviousButtonImmediately=!1;r.endOfNextContinuation=!1;r.currentPlayerIndex=0;r.nextReelVe=_.pQ(56921);r.prevReelVe=_.pQ(56922);r.loopToggleOffVe=_.pQ(198013);r.loopToggleOnVe=_.pQ(198014);r.ambientModeToggleVe=_.pQ(227860);r.reelPlayerPausedStateRendererVe=_.pQ(141313);r.storedPlaybackSpeed=null;r.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"};r.onOverlayDensityChanged=function(f,I){var C;(C=r.getActiveReelVideo(f))==null||C.setAttribute("overlay-density",String(I))};
return r};
_.t(p5,_.y);_.l=p5.prototype;
_.l.deflateInactivePreviousSlides=function(){var r=_.Bw("web_shorts_deflate_inactive_slides_aggressive_distance");if(r>0&&this.shortsProcessedSequence&&this.activeIndex){r=this.activeIndex-r;for(var f=0;f<=r;f++){var I=void 0;((I=this.shortsProcessedSequence[f].reelPlayerOverlayRenderer)==null?0:I.likeButton)&&this.set("shortsProcessedSequence."+f+".reelPlayerOverlayRenderer",{});I=void 0;((I=this.shortsProcessedSequence[f].adsOverlay)==null?0:I.adSlotMetadata)&&this.set("shortsProcessedSequence."+f+
".adsOverlay",{})}}};
_.l.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.l.onResize=function(){var r=_.K2(),f=r.dispatch,I=this.calculateIsSmallWidth();f.call(r,_.kI({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:I}}));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:_.N("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},properties:{showDelayMs:"[[panelShowDelayMs]]"}}},renderPriority:0}}};
_.l.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var r=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,f=r,I=0;r<250&&(f=r+this.shortsInnerContainer.clientWidth,I=24);_.Zh(this.hostElement,{"--ytd-shorts-header-width":f+"px","--ytd-shorts-top-spacing":I+"px"})}};
_.l.isFirstShorts=function(r){return r?this.index===-r.length:this.index===0};
_.l.isActiveReel=function(r,f,I){I&&(f=this.calculatePrevIndex(f,I));return r===f};
_.l.onFullscreenChange=function(){if(_.N("web_fullscreen_shorts")){var r;(r=this.getActiveReelVideo(this.activeIndex))==null||r.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.a().resolve(_.iO).close(!0)}};
_.l.engagementPanelsChanged=function(){var r;this.watchWhileEngagementPanels=(r=this.data)==null?void 0:r.engagementPanels};
_.l.unregisterPanels=function(){var r=_.a().resolve(_.dD);if(this.watchWhileEngagementPanels)for(var f=_.E(this.watchWhileEngagementPanels),I=f.next();!I.done;I=f.next()){var C=void 0,Y=void 0;I=(C=I.value.engagementPanelSectionListRenderer)==null?void 0:(Y=C.identifier)==null?void 0:Y.tag;r&&I&&r.panelMap.delete(I)}};
_.l.isVideoContent=function(r){return this.isVideoContentCommand(r==null?void 0:r.command)};
_.l.getActiveReelVideo=function(r){return _.e(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+r+'"]')};
_.l.calculatePrevIndex=function(r,f){return f?r-((f==null?void 0:f.length)||0):-1};
_.l.onKeydown=function(r){var f=_.JN(r)||[];if(!_.fs7(f))if(r.code==="ArrowUp")r.preventDefault(),this.handlePrevButtonClick();else if(r.code==="ArrowDown")r.preventDefault(),this.handleNextButtonClick();else if(r.code==="KeyM")this.toggleMuteUnmuteVideo();else if(r.code==="KeyK"||r.code==="Space")this.togglePlayPauseVideo();else if((r.code==="KeyA"||r.code==="ArrowLeft")&&_.N("web_shorts_keyboard_enable_seek_shortcuts")){var I;(I=this.player)==null||I.seekBy(-5)}else if((r.code==="KeyD"||r.code===
"ArrowRight")&&_.N("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var C;(C=this.player)==null||C.seekBy(5)}};
_.l.onServiceRequestCompleted=function(r,f){r=f.data;r.continuationEndpoint&&r.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:r.entries,continuationEndpoint:r.continuationEndpoint}}):r.prevContinuationEndpoint&&r.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:r.prevEntries,prevContinuationEndpoint:r.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.l.handleEngagementPanelVisibilityChanged=function(r,f){var I=_.a().resolve(_.dD);if(r&&I){var C,Y=((C=r.identifier)==null?void 0:C.tag)||r.panelIdentifier||r.targetId;if(f==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==Y){I.hidePanel(this.activePanel);var V;this.activePanel=((V=r.identifier)==null?void 0:V.tag)||r.panelIdentifier}else this.isPersistentPanelActive=!0,_.K2().dispatch(fD7(!0)),this.anchoredPanelActive=!0,this.activePanel=Y;else f==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===Y&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.K2().dispatch(fD7(!1)))}};
_.l.handlePanelScrimClick=function(){var r=_.a().resolve(_.dD);this.activePanel&&(r.hidePanel(this.activePanel),_.K2().dispatch(fD7(!1)))};
_.l.getShortsLoopSetting=function(){var r,f,I,C,Y;return _.x(function(V){switch(V.nextAddress){case 1:return _.N("kevlar_shorts_auto_advance")?_.b(V,_.gj.getInstance(),2):V.return(!0);case 2:return(r=V.yieldResult)?_.b(V,r.get("sfvles"),3):V.return(!0);case 3:return I=(f=V.yieldResult)!=null?f:!1,_.b(V,r.get("sfvle"),4);case 4:return Y=(C=V.yieldResult)!=null?C:!0,I?V.return(Y):V.return(!0)}})};
_.l.handleSignalActionToggleLoopShortsOff=function(){var r=this,f,I,C;return _.x(function(Y){switch(Y.nextAddress){case 1:if(!r.player)return Y.return();r.player.setLoopVideo(!1);f=_.IB();_.YP(f,r.loopToggleOffVe);return _.b(Y,_.gj.getInstance(),2);case 2:return(I=Y.yieldResult)?_.b(Y,I.set("sfvle",!1),3):Y.return();case 3:return _.b(Y,I.set("sfvles",!0),4);case 4:C=_.xI(),_.hZ(0,203,!1),_.hZ(0,204,!0),C.save(),_.wO(Y)}})};
_.l.handleSignalActionToggleLoopShortsOn=function(){var r=this,f,I,C;return _.x(function(Y){switch(Y.nextAddress){case 1:if(!r.player)return Y.return();r.player.setLoopVideo(!0);f=_.IB();_.YP(f,r.loopToggleOnVe);return _.b(Y,_.gj.getInstance(),2);case 2:return(I=Y.yieldResult)?_.b(Y,I.set("sfvle",!0),3):Y.return();case 3:return _.b(Y,I.set("sfvles",!0),4);case 4:C=_.xI(),_.hZ(0,203,!0),_.hZ(0,204,!0),C.save(),_.wO(Y)}})};
_.l.handleSignalActionToggleCinematicShortsOn=function(){A0V(!0);var r;(r=this.JSC$19625_cinematicController)==null||_.OZV(r,!0);_.YP(_.IB(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.l.handleSignalActionToggleCinematicShortsOff=function(){A0V(!1);var r;(r=this.JSC$19625_cinematicController)==null||_.OZV(r,!1);_.YP(_.IB(),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 r=this.overlayContainer.querySelector("#experiment-overlay");r&&_.F_.addLowPriorityJob(function(){r.style.display="unset"},100)}};
_.l.getCurrentShort=function(){if(this.currentEndpoint){var r=this.currentEndpoint;if(this.isNonVideoContentCommand(r)){var f=_.F(r,_.c_);return{reelNonVideoContentRenderer:_.F(f==null?void 0:f.renderer,_.wqV),command:r}}if(this.data){var I;f=(I=_.F(this.currentEndpoint,_.xO))==null?void 0:I.thumbnail;var C;I=(C=this.data.overlay)==null?void 0:C.reelPlayerOverlayRenderer;_.a().resolve(_.BP);r=this.data;var Y,V;C=(Y=r.overlay)==null?void 0:(V=Y.shortsAdsRenderer)==null?void 0:V.adSlots;if(C!==void 0)C.length===
0?(_.Bo("Shorts ads returned no ad slots."),r=void 0):(C.length>1&&_.Bo("Shorts ads has more than one ad slots."),r=_.F(C[0],_.As3));else{var S,h;r=_.F((S=r.overlay)==null?void 0:(h=S.shortsAdsRenderer)==null?void 0:h.overlay,_.As3)}S=r;r=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.F(this.currentEndpoint,_.xO),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:I,thumbnail:f,command:r,adsOverlay:S}}}};
_.l.created=function(){var r=this;this.scrollToVideoThrottle=new _.Gk(function(f){var I;(I=r.getActiveReelVideo(f))==null||I.scrollIntoView({behavior:"smooth",block:"nearest",inline:r.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.Gk(function(f){var I;(I=r.getActiveReelVideo(f))==null||I.scrollIntoView({behavior:"auto",block:"nearest",inline:r.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.l.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.l.attached=function(){var r=this;Dwd(this);this.pageScrollElement=_.e(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.GF(this,this.processResetAction));_.N("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.N("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var f=r.getActiveReelVideo(r.activeIndex);
r.maybeCreateIntersectionObserver();f==null||f.scrollIntoView({behavior:"instant",block:"nearest",inline:r.enableScrollIntoViewCenter?"center":"start"});r.shortsContainer.style.overflowY="scroll"}))};
_.l.calculateSqueezebackPanelSize=function(){var r=this,f=window.innerWidth-456-(window.innerHeight-106)*.5625;_.F_.addLowPriorityJob(function(){f<360?_.K2().dispatch(ID3(!0)):(r.hostElement.style.setProperty("--anchored-panel-width",Math.min(f,480)+"px"),_.K2().dispatch(ID3(!1)))})};
_.l.detached=function(){var r=_.a().resolve(_.BP);r.rootElement=void 0;var f;(f=r.unsubscribeFromStore)==null||f.call(r);r.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.GF(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.l.onResizeFinished=function(r,f){var I=this,C=new ResizeObserver(function(){I.shortsContainer.style.overflowY="hidden";_.F_.addLowPriorityJob(function(){f()},100)});
C.observe(r);return C};
_.l.resetDocumentScrollTop=function(){var r,f;if((r=document)==null?0:(f=r.scrollingElement)==null?0:f.scrollTop)document.scrollingElement.scrollTop=0};
_.l.loadPage_=function(r){var f=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),r){var I;if((I=_.F(this.currentEndpoint,_.xO))==null?0:I.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=r;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){f.isPlayerStarted&&
(f.handleOnPlaybackCommand(),f.afterPlayerStarted=function(){})};
this.registerPanel(r)}};
_.l.afterPlayerStarted=function(){};
_.l.handleOnPlaybackCommand=function(){if(_.N("web_shorts_comment_stickers")&&this.isPlayerStarted){var r,f=(r=_.F(this.currentEndpoint,_.xO))==null?void 0:r.onPlaybackCommand;f&&this.ytComponentBehavior.resolveCommand(f)}};
_.l.maybeCreateIntersectionObserver=function(){var r=this,f=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==f){this.intersectionObserverThreshold=f;var I={rootMargin:"0px",threshold:f},C;(C=this.intersectionObserver)==null||C.disconnect();this.intersectionObserver=new IntersectionObserver(function(Y){Y=_.E(Y);for(var V=Y.next();!V.done;V=Y.next())if(V=V.value,V.intersectionRatio>f){V=Number(V.target.id);if(isNaN(V))break;if(V===r.index)break;
_.pJB();r.loadVideo(V);_.$I("r_vtc")}},I);
this.observeShorts()}};
_.l.observeShorts=function(){var r=[].concat(_.Na(_.e(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));r=_.E(r);for(var f=r.next();!f.done;f=r.next()){f=f.value;var I=void 0;(I=this.intersectionObserver)==null||I.observe(f)}};
_.l.initCsi=function(){_.$m("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var r={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"}},f,I;if((f=this.playerData)==null?0:(I=f.cacheMetadata)==null?0:I.isCacheHit)r.isCacheHit=!0;var C;if(f=(C=_.F(this.currentEndpoint,_.xO))==null?void 0:
C.prefetchTaskId)r.prefetchInfo={taskId:f};_.gX(r)};
_.l.isAd=function(){var r,f;return!!((r=_.F(this.currentEndpoint,_.xO))==null?0:(f=r.adClientParams)==null?0:f.isAd)};
_.l.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.l.getPlayerContainer=function(){var r;return(r=_.e(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:r.playerContainer};
_.l.onPlayerStateChange=function(r){var f=this;this.isPlayerPaused=r===2;r!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?r===1&&this.index===0&&(this.isPlayerStarted||_.K2().dispatch(YQ(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.K2().dispatch(YQ(!0)));this.player&&!this.player.getLoopVideo()&&_.F_.addLowPriorityJob(function(){f.getShortsLoopSetting().then(function(I){var C;(C=f.player)==null||C.setLoopVideo(I)})});
this.isPlayerPaused&&_.N("web_shorts_paused_state_logging")&&_.j_(_.t1(),[this.reelPlayerPausedStateRendererVe])};
_.l.isInBackground=function(){var r=window.document.visibilityState;return!(!r||r==="visible")};
_.l.isShortPlayable=function(){if(_.N("kevlar_playable_short_killswitch"))return!0;var r;return(r=this.playerData)!=null&&r.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.l.setNormalPlaybackSpeed=function(){var r=this,f,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,r.getPlayer().getPlayerPromise(),2);f=C.yieldResult;I=f.getPlaybackRate();I!==1&&(r.storedPlaybackSpeed=I,f.setPlaybackRate(1));_.wO(C)})};
_.l.restorePlaybackSpeed=function(){var r=this,f;return _.x(function(I){if(I.nextAddress==1)return r.storedPlaybackSpeed===null?I.jumpTo(0):_.b(I,r.getPlayer().getPlayerPromise(),3);f=I.yieldResult;f.setPlaybackRate(r.storedPlaybackSpeed);r.storedPlaybackSpeed=null;_.wO(I)})};
_.l.playerDataChanged=function(){var r=this,f,I,C,Y,V,S,h,w,n;return _.x(function(d){if(d.nextAddress==1){f=r.getPlayer();_.N("web_shorts_dynamic_intersection_observer_threshold")&&((I=r.intersectionObserver)==null||I.disconnect());if(r.playerData){if(((C=r.playerData.videoDetails)==null?void 0:C.videoId)!==((Y=f.getPlayer())==null?void 0:Y.getVideoData().video_id)){V={};if(S=_.F(r.currentEndpoint,_.xO))V.watch_endpoint=S,S.endTimeSeconds&&(V.end=S.endTimeSeconds);f.loadVideoWithPlayerResponse(r.playerData,
V)}}else return d.return();return r.player?d.jumpTo(2):_.b(d,f.getPlayerPromise(),3)}d.nextAddress!=2&&(r.player=d.yieldResult,r.JSC$19625_playerStateChangeListener=r.onPlayerStateChange.bind(r),r.player.addEventListener("onStateChange",r.JSC$19625_playerStateChangeListener),_.N("kevlar_client_enable_shorts_player_bootstrap")&&_.ZN(),r.scrollToVideoThrottle.fire(r.index),r.movePlayerToVideo(r.index),_.F_.addLowPriorityJob(function(){r.getShortsLoopSetting().then(function(z){var g;(g=r.player)==null||
g.setLoopVideo(z)})}),_.Q94.resolve(r.player),r.player.syncVolume(),r.getPlayer().focusOnPlayer());
_.N("web_shorts_caption_language_entity_killswitch")||_.F_.addLowPriorityJob(function(){var z=_.a().resolve(_.BP),g,X=(g=r.player)==null?void 0:g.getOption("captions","track");g=_.rG("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(X){var P;((P=_.VS(_.aaU,g)())==null?void 0:P.value)!==X.displayName&&z.store.dispatch(_.hv("stringEntity",g,{key:g,value:X.displayName||""}))}else z.store.dispatch(_.hv("stringEntity",g,{key:g,value:"CAPTIONS_UNAVAILABLE"}))});
_.F_.addLowPriorityJob(function(){r.observeShorts()},100);
h=r.player.getPlayerState(r.player.getPresentingPlayerType());h!==1||r.isPlayerStarted||_.K2().dispatch(YQ(!0));r.updateBackNavContainerWidth();w=_.F(r.currentEndpoint,_.xO);((n=w)==null?0:n.startTimeSeconds)&&r.player.seekTo(w.startTimeSeconds);if(r.JSC$19625_cinematicController||r.cinematicsInitializeJobId)return d.return();r.cinematicsInitializeJobId=_.F_.addLowPriorityJob(function(){r.initCinematicController();r.cinematicsInitializeJobId=void 0});
_.wO(d)})};
_.l.onShortUndoDismiss=function(){var r=this,f=ru6().pop();f!==void 0&&(_.UC(this,function(){r.showCardWithIndex(f)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.l.onShortsDismiss=function(r){if(r=r.detail.reelDismissalActionRenderer)(r=_.F(r.onDismissalCompletionRenderer,_.aZ2))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:r}}}),this.scrollAndDismissCard()};
_.l.processReelNonVideoContentDismissalCommand=function(r){var f=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);r=_.F(r,bkU);this.activeDimissalTimeout=setTimeout(function(){f.scrollAndDismissCard()},Number(r==null?void 0:r.delayMs))};
_.l.scrollAndDismissCard=function(){var r=this,f=this.index;ru6().push(f);_.UC(this,function(){var I=r.getPlayableNextIndex();I!==null&&(I=r.getActiveReelVideo(I),r.hideCardWithIndex(f),I==null||I.scrollIntoView({behavior:"smooth",block:"nearest",inline:r.enableScrollIntoViewCenter?"center":"start"}))})};
_.l.hideCardWithIndex=function(r){if(r=this.getActiveReelVideo(r))r.hidden=!0};
_.l.showCardWithIndex=function(r){if(r=this.getActiveReelVideo(r))r.hidden=!1};
_.l.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.l.activeChanged=function(r){_.K2().dispatch(_.kI({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:r}}));if(r)document.addEventListener("keydown",_.GF(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var f;(f=this.player)==null||f.sendAbandonmentPing()}var I;(I=this.player)==null||I.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.GF(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.l.graftClientVisualElements=function(){if(this.data){var r=_.IB();_.oGs(r,_.fe({response:this.reelWatchSequenceResponse}));_.Ia(r,this.nextReelVe);_.Ia(r,this.prevReelVe);_.N("kevlar_shorts_auto_advance")&&(_.Ia(r,this.loopToggleOffVe),_.Ia(r,this.loopToggleOnVe));_.Ia(r,this.ambientModeToggleVe);_.j_(_.t1(),[this.nextReelVe,this.prevReelVe]);_.N("web_shorts_paused_state_logging")&&_.Ia(r,this.reelPlayerPausedStateRendererVe)}};
_.l.graftNvcRenderer=function(){var r,f,I,C,Y=this.index<0?(r=this.shortsProcessedPrevSequence)==null?void 0:(f=r[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:f.command:(I=this.shortsProcessedSequence)==null?void 0:(C=I[this.index])==null?void 0:C.command;if(Y&&this.isNonVideoContentCommand(Y)){r=_.F(Y,_.c_);var V,S;(r=(V=_.F(r==null?void 0:r.renderer,_.wqV))==null?void 0:(S=V.loggingDirectives)==null?void 0:S.trackingParams)&&_.IB().graftServerVe(r)}};
_.l.setActiveIndex=function(){_.a().resolve(_.BP).setActiveIndex(this.index)};
_.l.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.l.lazyUpdateMiniplayerData=function(){var r=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.F_.addLowPriorityJob(function(){r.updateMiniplayerData();r.updateMiniplayerDataJobId=void 0}))};
_.l.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.F_.cancelJob(this.updateMiniplayerDataJobId)};
_.l.updateMiniplayerData=function(){var r,f,I,C=_.a().resolve(_.iO),Y={shortsData:this.getCurrentShort(),previousButtonDisabled:!((r=this.prevButtonData)==null||!r.isDisabled),nextButtonDisabled:!((f=this.nextButtonData)==null||!f.isDisabled),playabilityStatus:(I=this.playerData)==null?void 0:I.playabilityStatus};_.zq(C,Y)};
_.l.resetPlayerLocation=function(){var r=this.getPlayer();this.initialPlayerContainer&&(r.appendTo(this.initialPlayerContainer,void 0,!0),this.overlayContainer&&(this.initialPlayerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0))};
_.l.movePlayerToVideo=function(r,f){var I=this;f=f===void 0?!0:f;var C=this.getActiveReelVideo(r),Y=this.getPlayer();if(C){this.overlayContainer||(this.overlayContainer=_.e(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||Y.appendTo(this.overlayContainer.playerContainer,void 0,!0));C.appendChild(this.overlayContainer);var V;(V=this.player)==null||V.setSize(NaN,NaN);this.isActive||_.dp(_.F_,function(){I.isActive=!0});
Y.style.visibility="visible";_.N("reels_web_disable_rtr_tick")||_.N("reels_web_use_pbs_first_shorts")&&r===0||_.Xc("r_tr");this.currentPlayerIndex=r;C.appendChild(this.errorScreenContainer);this.maybeMoveCinematicsToVideo()}else f?_.F_.addLowPriorityJob(function(){I.movePlayerToVideo(I.index,!1)}):Math.random()<=_.Bw("web_shorts_error_logging_threshold")&&_.PR(new _.nf("Trying to movePlayerToVideo with undefined container.",{firstAttempt:f,
index:r}))};
_.l.enableFormatFirst=function(r){return _.N("web_enable_format_first")||r.adsOverlay&&_.N("web_enable_format_first_ads_only")||r.reelPlayerOverlayRenderer&&_.N("web_enable_format_first_organic_only")};
_.l.getAspectRatio=function(r){if(r!=null&&r.thumbnail&&this.enableFormatFirst(r))return"--ytd-shorts-player-ratio: "+ZZs(r.thumbnail)};
_.l.getBackgroundImage=function(r){if(r!=null&&r.thumbnail)return(r=_.U6(r.thumbnail.thumbnails))?'background-image:url("'+r+'");':"background-color:black;"};
_.l.onPersistentPanelActiveChanged=function(){var r=this.getCurrentShort();if(r&&this.enableFormatFirst(r)&&(r==null?0:r.thumbnail)&&ZZs(r.thumbnail)!==.5625){var f;(f=this.player)==null||f.setSize(NaN,NaN)}};
_.l.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.l.maybeMoveCinematicsToVideo=function(){var r=this;this.cinematicTransitionJobId&&_.F_.cancelJob(this.cinematicTransitionJobId);this.cinematicTransitionJobId=_.F_.addLowPriorityJob(function(){r.moveCinematicsToVideo()},500)};
_.l.moveCinematicsToVideo=function(){var r;(r=this.JSC$19625_cinematicController)!=null&&(r=r.currentCinematicEffect)!=null&&(r=r.storyboardManager,r.paused=!1,_.P$Y(r),r.update());r=_.e(this.hostElement).querySelector("ytd-reel-video-renderer");(r==null?0:r.cinematicContainer)&&r.cinematicContainer!==this.shortsCinematicContainer.parentElement&&r.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.l.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.l.updatePrevButtonData=function(){var r=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(r){var f;this.prevButtonData=r=Object.assign({},r,{accessibility:{label:_.VR("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:r.isDisabled||this.index===-(((f=this.shortsProcessedPrevSequence)==null?void 0:f.length)||0),tooltip:this.isUpArrowHidden?"":_.VR("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=r=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.l.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.l.updateNextButtonData=function(){var r=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(r){var f;this.nextButtonData=r=Object.assign({},r,{accessibility:{label:_.VR("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:r.isDisabled||this.index===((f=this.shortsProcessedSequence)==null?void 0:f.length),tooltip:_.VR("NEXT_VIDEO_LABEL")||""})}};
_.l.getPlayablePreviousIndex=function(){for(var r,f=this.index-1;f>=-(((r=this.prevShortsSequence)==null?void 0:r.length)||0);f--)if(!ru6().includes(f))return f;return null};
_.l.getIndexInSequence=function(r,f){return r.findIndex(function(I){var C;return((C=_.F(I.command,_.xO))==null?void 0:C.videoId)===f})};
_.l.handlePrevButtonClick=function(r){var f=this,I,C;return _.x(function(Y){I=f.getPlayablePreviousIndex();if(I===null)return Y.return();f.gestureType=((C=r)==null?void 0:C.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";I===0&&(f.hidePreviousButtonImmediately=!0);if(f.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){f.transitionToVideoThrottle.fire(I)}),Y.return();
f.scrollToVideoThrottle.fire(I);_.wO(Y)})};
_.l.getPlayableNextIndex=function(){for(var r,f=this.index+1;f<(((r=this.shortsProcessedSequence)==null?void 0:r.length)||0);f++)if(!ru6().includes(f))return f;return null};
_.l.handleNextButtonClick=function(r,f){var I=this,C,Y;return _.x(function(V){C=I.getPlayableNextIndex();if(C===null)return V.return();C===1&&(I.showPreviousButtonImmediately=!0);I.gestureType=((Y=r)==null?void 0:Y.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";f&&(I.gestureType=f);if(I.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){I.transitionToVideoThrottle.fire(C)}),V.return();
I.scrollToVideoThrottle.fire(C);_.wO(V)})};
_.l.handleReelNavigateCommand=function(r,f,I){(r=_.F(r,wVB))&&f&&r.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(I)};
_.l.loadVideo=function(r,f){f=f===void 0?!1:f;if(r!==this.currentPlayerIndex){_.K2().dispatch(YQ(!1));if(this.isAd()&&!f){var I;(I=this.player)==null||I.notifyShortsAdSwipeEvent()}this.cinematicTransitionJobId&&_.F_.cancelJob(this.cinematicTransitionJobId);if((f=this.JSC$19625_cinematicController)!=null){var C;(C=f.currentCinematicEffect)==null||C.pause()}if((C=this.JSC$19625_cinematicController)!=null){var Y;(Y=C.currentCinematicEffect)==null||Y.clear()}C=r>this.index;this.isShortsMiniplayerActive()&&
(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(C));this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var V,S,h,w;Y=r<0?(V=this.shortsProcessedPrevSequence)==null?void 0:(S=V[this.shortsProcessedPrevSequence.length+r])==null?void 0:S.command:(h=this.shortsProcessedSequence)==null?void 0:(w=h[r])==null?void 0:w.command;this.index=r;this.gestureType||(this.gestureType=C?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");Y&&this.isVideoContentCommand(Y)&&(this.ytComponentBehavior.resolveCommand(Y,{form:{createScreenConfig:{clickedVisualElement:C?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(Y&&this.isNonVideoContentCommand(Y)){this.currentEndpoint=Y;this.data=void 0;V=_.IB();S=_.F(Y,_.c_);var n,d;(S=(n=_.F(S==null?void 0:S.renderer,_.wqV))==null?void 0:(d=n.screenLoggingData)==null?void 0:d.screenVeType)&&_.f3(V,
S);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo()}n=_.Bw("reels_enable_early_continuation_offset")<=0?1:_.Bw("reels_enable_early_continuation_offset");var z,g;if(((z=this.reelWatchSequenceResponse)==null?0:z.continuationEndpoint)&&((g=this.reelWatchSequenceResponse)==null?0:g.entries)&&r===this.reelWatchSequenceResponse.entries.length-n){var X,P;z={contentPlaybackContext:_.hN({},(P=_.F((X=this.currentEndpoint)==null?void 0:X.commandMetadata,_.oo))==null?void 0:
P.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:z})}var W,m,v;((W=this.reelWatchSequenceResponse)==null?0:W.prevContinuationEndpoint)&&r===-(((m=this.reelWatchSequenceResponse)==null?void 0:(v=m.prevEntries)==null?void 0:v.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.l.setMiniplayerPreview=function(r){r=(r===void 0?0:r)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var f,I,C=_.a().resolve(_.iO),Y={shortsData:void 0,shortsPreviewThumbnail:r?(f=this.shortsProcessedSequence)==null?void 0:(I=f[r])==null?void 0:I.thumbnail:void 0};_.zq(C,Y)};
_.l.updateTitle=function(r){var f,I;r=(r==null?0:r.adPlacements)?"":(I=r==null?void 0:(f=r.videoDetails)==null?void 0:f.title)!=null?I:"";_.kA(this.hostElement,"yt-update-title",r)};
_.l.registerPanel=function(r){var f=_.a().resolve(_.dD);if(f){r=_.E(r.engagementPanels||[]);for(var I=r.next();!I.done;I=r.next()){I=I.value;var C=I.engagementPanelSectionListRenderer,Y=void 0,V=void 0,S=void 0,h=void 0,w=((Y=C)==null?void 0:Y.targetId)||((V=C)==null?void 0:V.panelIdentifier)||((S=C)==null?void 0:(h=S.identifier)==null?void 0:h.tag);Y=C=void 0;(Y=(C=f).registerPanelContent)==null||Y.call(C,w,I)}}};
_.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;_.K2().dispatch(YQ(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.K2().dispatch(fD7(!1));var r=_.a().resolve(_.BP);r.dismissedIndices=[];r.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.a().resolve(_.iO).close(!0)};
_.l.processAppendReelWatchSequenceContinuationEntriesAction=function(r){var f=this,I;(I=this.intersectionObserver)==null||I.disconnect();r=r.appendReelWatchSequenceContinuationEntriesAction;if(r==null?0:r.entries){var C;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.Na(((C=this.reelWatchSequenceResponse)==null?void 0:C.entries)||[]),_.Na(r.entries)),continuationEndpoint:r.continuationEndpoint})}else if(r==null?0:r.prevEntries){var Y;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.Na(((Y=this.reelWatchSequenceResponse)==null?void 0:Y.prevEntries)||[]),_.Na(r.prevEntries)),prevContinuationEndpoint:r.prevContinuationEndpoint});_.F_.addLowPriorityJob(function(){f.movePlayerToVideo(f.index);var V;(V=f.getActiveReelVideo(f.index))==null||V.scrollIntoView({block:"nearest",inline:f.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.F_.addLowPriorityJob(function(){f.observeShorts()},100)};
_.l.processWatchSequence=function(r){var f=this;return r.map(function(I){I=I.command;if(f.isVideoContentCommand(I)){var C=_.F(I,_.xO);return{reelPlayerOverlayRenderer:_.F(C==null?void 0:C.overlay,_.b7T),thumbnail:C.thumbnail,command:I}}return f.isNonVideoContentCommand(I)?(C=_.F(I,_.c_),{reelNonVideoContentRenderer:_.F(C==null?void 0:C.renderer,_.wqV),command:I}):{command:I}})};
_.l.calculateIntersectionObserverThreshold=function(){if(!_.N("web_shorts_dynamic_intersection_observer_threshold"))return.6;var r=_.e(this.hostElement).querySelector("ytd-reel-video-renderer"),f=1;(r==null?0:r.offsetHeight)&&(r==null?0:r.offsetWidth)&&(f=Math.min(r.offsetHeight,this.shortsContainer.offsetHeight)/r.offsetHeight*(Math.min(r.offsetWidth,this.shortsContainer.offsetWidth)/r.offsetWidth));return Math.round(f*.6*10)/10};
_.l.isVideoContentCommand=function(r){_.a().resolve(_.BP);return!!_.F(r,_.xO)};
_.l.isNonVideoContentCommand=function(r){_.a().resolve(_.BP);return!!_.F(r,_.c_)};
_.l.initCinematicController=function(){var r=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19625_cinematicController=new _.C5(this.shortsCinematicContainer,this.player);var f,I=_.F((f=this.data)==null?void 0:f.background,_.aS);_.oD6(this.JSC$19625_cinematicController,I);_.OZV(this.JSC$19625_cinematicController,Q7i(I));_.s7s(this.JSC$19625_cinematicController);_.F_.addLowPriorityJob(function(){r.moveCinematicsToVideo()})}};
_.l.handleMiniplayerNavigateShorts=function(r){r==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():r==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.l.shouldDisplayReelVideoOverlay=function(r,f){return _.N("web_enable_shorts_new_carousel")?Math.abs(r-f)<2:!0};
_.OC.Object.defineProperties(p5.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.reelWatchSequenceResponse)!=null&&r.prevEntries)return this.processWatchSequence([].concat(_.Na(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var r=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!r)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var f=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.Na(this.prevShortsSequence.slice(0,f)),[r],_.Na(this.prevShortsSequence.slice(f+
1)))}f=this.index+this.shortsProcessedPrevSequence.length;r.thumbnail=this.shortsProcessedPrevSequence[f].thumbnail;return[].concat(_.Na(this.shortsProcessedPrevSequence.slice(0,f)),[r],_.Na(this.shortsProcessedPrevSequence.slice(f+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.reelWatchSequenceResponse)!=null&&r.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var r=this.getCurrentShort();if(!r||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[r];if(r==null||!r.reelNonVideoContentRenderer){var f=this.getIndexInSequence(this.shortsSequence,_.F(this.currentEndpoint,_.xO).videoId);if(this.index===0&&f!==-1)return this.currentPlayerIndex=this.index=f,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.Na(this.shortsSequence.slice(0,this.index)),[r],_.Na(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){r.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var I,C,Y,V;f=((C=_.F((I=this.shortsProcessedSequence[0])==null?void 0:I.command,_.xO))==null?void 0:C.videoId)===((V=_.F((Y=this.shortsSequence[0])==null?void 0:Y.command,_.xO))==null?void 0:V.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.Na(this.shortsProcessedSequence.slice(0,
this.index)),[r],_.Na(this.shortsSequence.slice(f)))}return[r].concat(_.Na(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var r=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;r&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(r)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 r,f;return this.index===((r=this.reelWatchSequenceResponse)==null?void 0:(f=r.entries)==null?void 0:f.length)}var I;return!((I=this.reelWatchSequenceResponse)==null?0:I.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var r;(r=this.delayedActiveIndexUpdateDebouncer)==null||r.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return this.isShortPlayable()||((f=_.F((r=this.data)==null?void 0:r.watchStatus,_.NxV))==null?void 0:(I=f.style)==null?void 0:I.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var r=this,f=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),I;if((this.data||f)&&(((I=this.data)==null?0:I.engagementPanels)||this.isAd()||f)){f=!1;this.activePanel="shorts-comments-panel";var C;I=_.E(((C=this.data)==null?void 0:C.engagementPanels)||[]);for(C=I.next();!C.done;C=I.next()){C=C.value.engagementPanelSectionListRenderer;var Y=void 0,V=void 0,S=void 0,h=void 0;if((((Y=C)==null?void 0:(V=Y.identifier)==
null?void 0:V.tag)||((S=C)==null?void 0:S.targetId)||((h=C)==null?void 0:h.panelIdentifier))===this.activePanel){f=!0;break}}if(this.isPersistentPanelActive){var w=_.a().resolve(_.dD);_.dp(_.F_,function(){w.showPanel(r.activePanel,void 0,void 0,void 0,null)},100)}var n;
I=[].concat(_.Na(Object.values(((n=this.data)==null?void 0:n.engagementPanels)||{})));if(_.N("enable_preview_panel_for_shorts_search_suggested_action")){var d,z,g,X,P;((X=_.F((d=this.data)==null?void 0:(z=d.overlay)==null?void 0:(g=z.reelPlayerOverlayRenderer)==null?void 0:g.metapanel,_.hbq))==null?void 0:(P=X.metadataItems)==null?void 0:P.find(function(W){var m,v;return((m=_.F(W,nSs))==null?void 0:(v=m.icon)==null?void 0:v.iconType)==="SEARCH"}))!==void 0&&I.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}n=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);d=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return n===void 0&&d===void 0||(n==null?0:n.isDisabled)||(d==null?void 0:d.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!f?(f=I==null?void 0:I.findIndex(function(W){var m,
v;return((m=W.engagementPanelSectionListRenderer)==null?void 0:(v=m.identifier)==null?void 0:v.tag)==="shorts-comments-panel"}),f===-1||f===void 0||I!=null&&I.splice(f,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.VR("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.VR("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:_.VR("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.VR("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(_.Na(Object.values(I||
{})))):I}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.shortsProcessedSequence)==null?void 0:r[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var r=this,f,I,C;if((f=this.playerData)==null?0:(I=f.playabilityStatus)==null?0:(C=I.errorScreen)==null?0:C.playerInterstitialRenderer)return _.F_.addLowPriorityJob(function(){r.movePlayerToVideo(r.index)}),this.playerData.playabilityStatus.errorScreen;
var Y,V;return((Y=this.data)==null?void 0:Y.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((V=this.data)==null?0:V.watchStatus)&&_.F(this.data.watchStatus,_.FlV)?(_.F_.addLowPriorityJob(function(){r.movePlayerToVideo(r.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.OC.Object.defineProperties(p5,{template:{configurable:!0,enumerable:!0,get:function(){if(z7d===void 0){var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);z7d=r}r=z7d;return r}}});
p5.prototype.onNextButtonDataChange=p5.prototype.onNextButtonDataChange;p5.prototype.onPrevButtonDataChange=p5.prototype.onPrevButtonDataChange;p5.prototype.onPersistentPanelActiveChanged=p5.prototype.onPersistentPanelActiveChanged;p5.prototype.lazyUpdateMiniplayerData=p5.prototype.lazyUpdateMiniplayerData;p5.prototype.onShortsPipActiveChanged=p5.prototype.onShortsPipActiveChanged;p5.prototype.setActiveIndex=p5.prototype.setActiveIndex;p5.prototype.graftNvcRenderer=p5.prototype.graftNvcRenderer;
p5.prototype.graftClientVisualElements=p5.prototype.graftClientVisualElements;p5.prototype.onActiveChanged=p5.prototype.onActiveChanged;p5.prototype.onShortsDismiss=p5.prototype.onShortsDismiss;p5.prototype.onShortUndoDismiss=p5.prototype.onShortUndoDismiss;p5.prototype.playerDataChanged=p5.prototype.playerDataChanged;p5.prototype.afterPlayerStarted=p5.prototype.afterPlayerStarted;p5.prototype.unhideCurrentOverlay=p5.prototype.unhideCurrentOverlay;p5.prototype.onServiceRequestCompleted=p5.prototype.onServiceRequestCompleted;
p5.prototype.engagementPanelsChanged=p5.prototype.engagementPanelsChanged;p5.prototype.onFullscreenChange=p5.prototype.onFullscreenChange;p5.prototype.onResize=p5.prototype.onResize;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],p5.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.F4.YtPageBehavior),_.B("design:type",Object)],p5.prototype,"ytPageBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],p5.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.J(_.Pq),_.B("design:type",Object)],p5.prototype,"ironResizableBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],p5.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],p5.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.J(_.mB.YtdGuideStateAwareBehavior),_.B("design:type",Object)],p5.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],p5.prototype,"ytdReduxBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],p5.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],p5.prototype,"playerData",void 0);_.A([_.K(),_.B("design:type",Object)],p5.prototype,"reelWatchSequenceResponse",void 0);_.A([_.K(),_.B("design:type",Object)],p5.prototype,"cachedReelWatchSequenceResponse",void 0);_.A([_.K(),_.B("design:type",Object)],p5.prototype,"currentEndpoint",void 0);_.A([_.K(),_.B("design:type",Object)],p5.prototype,"nextButtonData",void 0);
_.A([_.K(),_.B("design:type",Object)],p5.prototype,"prevButtonData",void 0);_.A([_.K(),_.B("design:type",Object)],p5.prototype,"isPreviousPageShorts",void 0);_.A([_.K(),_.B("design:type",Object)],p5.prototype,"index",void 0);_.A([_.K(),_.B("design:type",Object)],p5.prototype,"delayedActiveIndex",void 0);_.A([_.K(),_.B("design:type",Object)],p5.prototype,"playablePreviousIndex",void 0);_.A([_.K(),_.B("design:type",Object)],p5.prototype,"player",void 0);
_.A([_.K(),_.B("design:type",Object)],p5.prototype,"isPlayerPaused",void 0);_.A([_.K({selector:kj1}),_.B("design:type",Object)],p5.prototype,"isPlayerStarted",void 0);_.A([_.K(),_.B("design:type",Object)],p5.prototype,"intersectionObserver",void 0);_.A([_.K(),_.B("design:type",Number)],p5.prototype,"cinematicsInitializeJobId",void 0);_.A([_.K(),_.B("design:type",Number)],p5.prototype,"cinematicTransitionJobId",void 0);
_.A([_.K(),_.B("design:type",Number)],p5.prototype,"updateMiniplayerDataJobId",void 0);_.A([_.K(),_.B("design:type",Object)],p5.prototype,"fitToVisibleBounds",void 0);_.A([_.K(),_.B("design:type",Object)],p5.prototype,"pageSubtype",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],p5.prototype,"panelShowDelayMs",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],p5.prototype,"enablePreviousContinuation",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],p5.prototype,"shortsPipEnabled",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],p5.prototype,"isDark",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],p5.prototype,"shortsViewTransitions",void 0);_.A([_.K({selector:_.xU,reflectToAttribute:!0}),_.B("design:type",Object)],p5.prototype,"isFullscreen",void 0);
_.A([_.K({selector:_.hH,reflectToAttribute:!0}),_.B("design:type",Object)],p5.prototype,"isShortsPipActive",void 0);_.A([_.uA("#shorts-inner-container"),_.B("design:type",HTMLElement)],p5.prototype,"shortsInnerContainer",void 0);_.A([_.uA("#back-nav-button ytd-button-renderer"),_.B("design:type",_.KT)],p5.prototype,"backNavButton",void 0);_.A([_.uA("#shorts-container"),_.B("design:type",HTMLElement)],p5.prototype,"shortsContainer",void 0);
_.A([_.o8("error-screen"),_.B("design:type",HTMLElement)],p5.prototype,"errorScreenContainer",void 0);_.A([_.o8("player"),_.B("design:type",Object)],p5.prototype,"playerElement",void 0);_.A([_.o8("shorts-cinematic-container"),_.B("design:type",HTMLElement)],p5.prototype,"shortsCinematicContainer",void 0);_.A([_.o8("initial-player-container"),_.B("design:type",HTMLElement)],p5.prototype,"initialPlayerContainer",void 0);_.A([_.K(),_.B("design:type",Object)],p5.prototype,"buttonOverride",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],p5.prototype,"anchoredPanelActive",void 0);_.A([_.K(),_.B("design:type",String)],p5.prototype,"activePanel",void 0);_.A([_.K(),_.B("design:type",Object)],p5.prototype,"isActive",void 0);_.A([_.K({selector:Gjp,reflectToAttribute:!0}),_.B("design:type",Object)],p5.prototype,"smallScreenPersistentPanel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],p5.prototype,"isPersistentPanelActive",void 0);
_.A([_.K(),_.B("design:type",Object)],p5.prototype,"smallScreenSqueezeBack",void 0);_.A([_.K(),_.B("design:type",Object)],p5.prototype,"enableScrollIntoViewCenter",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],p5.prototype,"formatFirst",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],p5.prototype,"enableFlexibleOverlay",void 0);_.A([_.K(),_.B("design:type",Object)],p5.prototype,"panelContainer",void 0);
_.A([_.K(),_.B("design:type",Object)],p5.prototype,"overlayContainer",void 0);_.A([_.K(),_.B("design:type",Object)],p5.prototype,"isShortsInitialized",void 0);_.A([_.R("reelWatchSequenceResponse"),_.B("design:type",Object),_.B("design:paramtypes",[])],p5.prototype,"prevShortsSequence",null);_.A([_.R("data","prevShortsSequence"),_.B("design:type",Object),_.B("design:paramtypes",[])],p5.prototype,"shortsProcessedPrevSequence",null);
_.A([_.R("reelWatchSequenceResponse"),_.B("design:type",Object),_.B("design:paramtypes",[])],p5.prototype,"shortsSequence",null);_.A([_.R("data","shortsSequence"),_.B("design:type",Object),_.B("design:paramtypes",[])],p5.prototype,"shortsProcessedSequence",null);
_.A([_.K({reflectToAttribute:!0}),_.R("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],p5.prototype,"isUpArrowHidden",null);_.A([_.K({reflectToAttribute:!0}),_.R("reelWatchSequenceResponse","index","endOfNextContinuation"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],p5.prototype,"isDownArrowHidden",null);
_.A([_.K(),_.R("index"),_.B("design:type",Number),_.B("design:paramtypes",[])],p5.prototype,"activeIndex",null);_.A([_.R("isShortPlayable","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],p5.prototype,"shouldRenderOfflineContent",null);_.A([_.kO("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p5.prototype,"onResize",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],p5.prototype,"anchoredEngagementPanels",null);
_.A([_.K(),_.B("design:type",Object)],p5.prototype,"watchWhileEngagementPanels",void 0);_.A([_.Bt("isFullscreen"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p5.prototype,"onFullscreenChange",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p5.prototype,"engagementPanelsChanged",null);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],p5.prototype,"onServiceRequestCompleted",null);_.A([_.R("data","shortsSequence","index"),_.B("design:type",Object),_.B("design:paramtypes",[])],p5.prototype,"activeReel",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p5.prototype,"unhideCurrentOverlay",null);
_.A([_.Bt("isPlayerStarted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p5.prototype,"afterPlayerStarted",null);_.A([_.R("playerData","reelWatchSequenceResponse","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],p5.prototype,"errorScreen",null);_.A([_.R("errorScreen"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],p5.prototype,"hasError",null);
_.A([_.Bt("playerData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],p5.prototype,"playerDataChanged",null);_.A([_.kO("yt-dismissible-item-undo-feedback"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p5.prototype,"onShortUndoDismiss",null);_.A([_.kO("yt-disable-lockup-interaction"),_.B("design:type",Function),_.B("design:paramtypes",[Object]),_.B("design:returntype")],p5.prototype,"onShortsDismiss",null);
_.A([_.YN("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p5.prototype,"onActiveChanged",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p5.prototype,"graftClientVisualElements",null);_.A([_.Bt("currentPlayerIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p5.prototype,"graftNvcRenderer",null);
_.A([_.Bt("index"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p5.prototype,"setActiveIndex",null);_.A([_.Bt("isShortsPipActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p5.prototype,"onShortsPipActiveChanged",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p5.prototype,"lazyUpdateMiniplayerData",null);
_.A([_.K(),_.B("design:type",Object)],p5.prototype,"onOverlayDensityChanged",void 0);_.A([_.Bt("isPersistentPanelActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p5.prototype,"onPersistentPanelActiveChanged",null);_.A([_.Bt("index","data","isUpArrowHidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p5.prototype,"onPrevButtonDataChange",null);
_.A([_.Bt("index","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],p5.prototype,"onNextButtonDataChange",null);p5=_.A([_.U({is:"ytd-shorts"})],p5);_.gJ.registerService(_.WPR,p5);
_.ty();
}catch(e){_._DumpException(e)}
try{
_.Ph("JzFVk");
var Zm3=function(r){return _.p("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},A$6(r.data.ctaButton,{buttonViewModel:{}}),_.p(_.wW,{text:r.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var Gad;var kaU;var Jj=function(){return _.y.apply(this,arguments)||this};
_.t(Jj,_.y);Jj.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Jj.prototype.computeBlueBottomLink=function(r){return r};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Jj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Jj.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Jj.prototype,"data",void 0);_.A([_.K({computed:"computeIcon_(data.bottomIcon)"}),_.B("design:type",String)],Jj.prototype,"bottomIcon",void 0);
_.A([_.K({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Jj.prototype,"enableBlueBottomLink",void 0);Jj=_.A([_.U({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],Jj);
_.Q(Jj,"ytd-web-answer-renderer",function(){if(kaU!==void 0)return kaU;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return kaU=r},{mode:_.QQ("kevlar_poly_si_batch_j035")?1:2});var Boq;var je=function(){var r=_.y.apply(this,arguments)||this;r.hasChipBar=!1;return r};
_.t(je,_.y);je.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}}};
je.prototype.computeHasChipBar=function(r){return!(r==null||!r.chipBar)};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],je.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],je.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.B("design:type",Object)],je.prototype,"hasChipBar",void 0);je=_.A([_.U({is:"ytd-search-header-renderer",disableElementRegistration:!0})],je);
_.Q(je,"ytd-search-header-renderer",function(){if(Boq!==void 0)return Boq;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Boq=r},{mode:1});var qh6;var Hv=function(){return _.y.apply(this,arguments)||this};
_.t(Hv,_.y);Hv.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Hv.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Hv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Hv.prototype,"data",void 0);Hv=_.A([_.U({disableElementRegistration:!0,is:"ytd-page-continuation"})],Hv);
_.Q(Hv,"ytd-page-continuation",function(){if(qh6!==void 0)return qh6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return qh6=r},{mode:1});var uad;var DZY;var r0i;var iY=function(){return _.y.apply(this,arguments)||this};
_.t(iY,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],iY.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],iY.prototype,"data",void 0);iY=_.A([_.U({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],iY);
_.Q(iY,"ytd-watch-card-one-vs-one-event",function(){if(r0i!==void 0)return r0i;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return r0i=r},{mode:1});var RU=function(){return _.y.apply(this,arguments)||this};
_.t(RU,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],RU.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],RU.prototype,"data",void 0);RU=_.A([_.U({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],RU);
_.Q(RU,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(DZY!==void 0)return DZY;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return DZY=r},{mode:1});var fZ6;var vv=function(){return _.y.apply(this,arguments)||this};
_.t(vv,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],vv.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],vv.prototype,"data",void 0);vv=_.A([_.U({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],vv);
_.Q(vv,"ytd-banner-and-box-hero-image-renderer",function(){if(fZ6!==void 0)return fZ6;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return fZ6=r},{mode:1});var IZ6;var Ka=function(){var r=_.y.apply(this,arguments)||this;r.modern=_.N("web_modern_buttons");return r};
_.t(Ka,_.y);Ka.prototype.computeIcon=function(){var r,f,I=(r=this.data)==null?void 0:(f=r.icon)==null?void 0:f.iconType;if(I)return _.kN(I)};
Ka.prototype.computeButtonShape=function(){var r;return{buttonText:_.Rr((r=this.data)==null?void 0:r.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.OC.Object.defineProperties(Ka.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"}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Ka.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Ka.prototype,"modern",void 0);_.A([_.K({type:_.N("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.R("data.style"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ka.prototype,"buttonColor",null);
Ka=_.A([_.U({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],Ka);
_.Q(Ka,"ytd-call-to-action-button-renderer",function(){if(IZ6!==void 0)return IZ6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return IZ6=r},{mode:1});var C$7;var yP=function(){return _.y.apply(this,arguments)||this};
_.t(yP,_.y);yP.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.e(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.yH(this.data.leftThumbnail.thumbnails,216)+")")};
yP.prototype.onLeftThumbnailChanged=yP.prototype.onLeftThumbnailChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],yP.prototype,"data",void 0);_.A([_.Bt("data.leftThumbnail"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yP.prototype,"onLeftThumbnailChanged",null);yP=_.A([_.U({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],yP);
_.Q(yP,"ytd-collage-hero-image-renderer",function(){if(C$7!==void 0)return C$7;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return C$7=r},{mode:1});var Y96;var U2=function(){return _.y.apply(this,arguments)||this};
_.t(U2,_.y);U2.prototype.computeStyle=function(r){return r};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],U2.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],U2.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],U2.prototype,"componentStyle",void 0);U2=_.A([_.U({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],U2);
_.Q(U2,"ytd-single-hero-image-renderer",function(){if(Y96!==void 0)return Y96;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Y96=r},{mode:1});var lZU;var s2=function(){return _.y.apply(this,arguments)||this};
_.t(s2,_.y);_.l=s2.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:_.N("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.l.computeSubtitle=function(r){if(this.data){var f;if(this.data.upcomingEventData){r=_.Rr(r.subtitle);var I=Number(this.data.upcomingEventData.startTime);isNaN(I)||(f=_.iX(_.mV(r,I)))}else f=r.subtitle;return f}};
_.l.onHeroTap=function(r){r.preventDefault();var f=this.data&&this.data.navigationEndpoint;!f||!_.iB(_.JN(r),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.iB(_.JN(r),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.N("kevlar_watchcard_hero_video_renderer_killswitch")?_.kA(this.hostElement,"yt-navigate",{navigationEndpoint:f}):this.ytComponentBehavior.resolveCommand(f))};
_.l.computeHeroTabIndex=function(r){return r&&r.simpleText?-1:0};
_.l.computeHeroRole=function(r){return r&&r.simpleText?"":"link"};
_.l.computeIsReminderButtonPresent=function(r){return!(!r||!r.reminderButton)};
_.l.computeHideBottomItems=function(r){return!(this.computeIsReminderButtonPresent(r)||r.subtitle)};
_.l.dataChanged=function(){var r=this.get("data.buttons.buttonRenderer.serviceEndpoint"),f;((f=_.F(r==null?void 0:r.commandMetadata,_.$$))==null?0:f.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(r)};
s2.prototype.dataChanged=s2.prototype.dataChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],s2.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],s2.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],s2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],s2.prototype,"data",void 0);
_.A([_.K({computed:"computeSubtitle(data)"}),_.B("design:type",String)],s2.prototype,"subtitle",void 0);_.A([_.K({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],s2.prototype,"isReminderButtonPresent",void 0);_.A([_.K({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],s2.prototype,"hideBottomItems",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s2.prototype,"dataChanged",null);s2=_.A([_.U({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],s2);
_.Q(s2,"ytd-watch-card-hero-video-renderer",function(){if(lZU!==void 0)return lZU;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return lZU=r},{mode:1});var VV3;var O2=function(){return _.y.apply(this,arguments)||this};
_.t(O2,_.y);_.l=O2.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(r){return r?[r]:[]};
_.l.computeHeaderStyle=function(r){return r?r.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.l.computeAvatarAriaLabel=function(r){if(r){var f,I,C,Y;return(Y=(f=r.avatar)==null?void 0:(I=f.accessibility)==null?void 0:(C=I.accessibilityData)==null?void 0:C.label)!=null?Y:_.Rr(r==null?void 0:r.title)}};
_.l.computeAvatarHeight=function(r){return r==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.l.computeBadgeRowClass=function(r){return(r==null?0:r[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],O2.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],O2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],O2.prototype,"data",void 0);_.A([_.K({computed:"computeTitleBadges(data.titleBadge)"}),_.B("design:type",Array)],O2.prototype,"titleBadges",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.B("design:type",String)],O2.prototype,"headerStyle",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.B("design:type",String)],O2.prototype,"badgeRowClass",void 0);O2=_.A([_.U({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],O2);
_.Q(O2,"ytd-watch-card-rich-header-renderer",function(){if(VV3!==void 0)return VV3;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return VV3=r},{mode:1});var EDV;var S96;var oU=function(){return _.y.apply(this,arguments)||this};
_.t(oU,_.y);oU.prototype.onMetadataTap=function(r){var f=this.data&&this.data.navigationEndpoint;f&&!_.iB(_.JN(r),this.hostElement,["A".toString()])&&_.kA(this.hostElement,"yt-navigate",{endpoint:f})};
_.OC.Object.defineProperties(oU.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 r;if(this.data.upcomingEventData){var f=_.Rr(this.data.subtitle),I=Number(this.data.upcomingEventData.startTime);isNaN(I)||(r=_.iX(_.mV(f,I)))}else r=this.data.subtitle;return r}}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],oU.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],oU.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("data.style"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oU.prototype,"isCondensed",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],oU.prototype,"subtitle",null);
oU=_.A([_.U({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],oU);
_.Q(oU,"ytd-watch-card-compact-video-renderer",function(){if(S96!==void 0)return S96;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return S96=r},{mode:1});var xwi;var QP=function(){return _.y.apply(this,arguments)||this};
_.t(QP,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],QP.prototype,"data",void 0);QP=_.A([_.U({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],QP);
_.Q(QP,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(xwi!==void 0)return xwi;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return xwi=r},{mode:1});var Aj=function(){return _.y.apply(this,arguments)||this};
_.t(Aj,_.y);Aj.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}}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Aj.prototype,"ytRendererStamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Aj.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Aj.prototype,"data",void 0);Aj=_.A([_.U({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],Aj);
_.Q(Aj,"ytd-vertical-watch-card-list-renderer",function(){if(EDV!==void 0)return EDV;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return EDV=r},{mode:1});var hYB;var Z_=function(){var r=_.y.apply(this,arguments)||this;r.ariaExpanded="false";return r};
_.t(Z_,_.y);_.l=Z_.prototype;_.l.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.l.dataChanged=function(){var r;this.currentSeasonIndex=((r=this.data)==null?void 0:r.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.l.computeEpisodesInfo=function(r,f,I){if(r!==void 0&&f.length===r.length)return r[I]};
_.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(r){return this.ytRendererBehavior.getSimpleString(r).toUpperCase()};
_.l.updateCurrentSeasonIndexFromBinding=function(r){this.currentSeasonIndex=r.detail.value};
Z_.prototype.onIronOverlayClosed=Z_.prototype.onIronOverlayClosed;Z_.prototype.currentSeasonIndexChanged=Z_.prototype.currentSeasonIndexChanged;Z_.prototype.dataChanged=Z_.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Z_.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Z_.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",String)],Z_.prototype,"label",void 0);_.A([_.K({value:0}),_.B("design:type",Number)],Z_.prototype,"currentSeasonIndex",void 0);_.A([_.K({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.B("design:type",Object)],Z_.prototype,"episodesInfo",void 0);_.A([_.K({value:"false"}),_.B("design:type",Object)],Z_.prototype,"ariaExpanded",void 0);_.A([_.uA("#lists"),_.B("design:type",Object)],Z_.prototype,"lists",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z_.prototype,"dataChanged",null);_.A([_.YN("currentSeasonIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z_.prototype,"currentSeasonIndexChanged",null);_.A([_.kO("iron-overlay-closed"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Z_.prototype,"onIronOverlayClosed",null);
Z_=_.A([_.U({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Z_);
_.Q(Z_,"ytd-watch-card-section-dropdown-renderer",function(){if(hYB!==void 0)return hYB;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return hYB=r},{mode:1});var wed;var GP=function(){var r=_.y.apply(this,arguments)||this;r.isSearch=!1;return r};
_.t(GP,_.y);GP.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}}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],GP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],GP.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],GP.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],GP.prototype,"isSearch",void 0);GP=_.A([_.U({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],GP);
_.Q(GP,"ytd-watch-card-section-sequence-renderer",function(){if(wed!==void 0)return wed;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
return wed=r},{mode:1});var A$6=_.zk({buttonViewModel:_.LF});_.GL(Zm3);_.Z5(Zm3,"ytd-button-banner-view-model",{propNames:["data"]});var kb=function(){var r=_.y.apply(this,arguments)||this;r.isSearch=!1;return r};
_.t(kb,_.y);
kb.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"}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],kb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],kb.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],kb.prototype,"rounded",void 0);_.A([_.K(),_.B("design:type",Object)],kb.prototype,"isSearch",void 0);
kb=_.A([_.U({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],kb);
_.Q(kb,"ytd-universal-watch-card-renderer",function(){if(uad!==void 0)return uad;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return uad=r},{mode:1});var bZ7;_.Kv(_.Hc(function(r){var f=r.data;var I;r=!((I=_.a().resolve(_.ZY(_.cI)))==null||!I());I={};return _.p("overview-message-view-model",{class:_.qd("ytwOverviewMessageViewModelHost",(I.ytwOverviewMessageViewModelDarkBackground=r,I.ytwOverviewMessageViewModelLightBackground=!r,I))},_.p(_.M,{cond:function(){return f().primaryImage},
then:function(C){return _.p(_.J3,{data:C,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.p(_.M,{cond:function(){return f().primaryText},
then:function(){return _.p("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.p(_.wW,{text:function(){return f().primaryText}}))}}),_.p(_.M,{cond:function(){return f().secondaryText},
then:function(){return _.p("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.p(_.wW,{text:function(){return f().secondaryText}}))}}))},"vi"),"overview-message-view-model",{props:{data:_.jv}});_.Z5(_.CjC,"ytd-overview-answer-view-model",{propNames:["data"]});var Bv=function(){return _.y.apply(this,arguments)||this};
_.t(Bv,_.y);Bv.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"}}}};
Bv.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Bv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Bv.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.cg),_.B("design:type",Object)],Bv.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Bv.prototype,"data",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],Bv.prototype,"isSearch",void 0);
Bv=_.A([_.U({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],Bv);
_.Q(Bv,"ytd-secondary-search-container-renderer",function(){if(bZ7!==void 0)return bZ7;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
return bZ7=r},{mode:1});var ped;var qO=function(){var r=_.y.apply(this,arguments)||this;r.renderSecondarySearchContainer=!1;r.isSearch=!1;r.isSearchDova=_.N("dova_on_search");return r};
_.t(qO,_.y);_.l=qO.prototype;_.l.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.l.created=function(){var r=this;this.boundStampSecondarySearchContainerIfFits=function(){r.stampSecondarySearchContainerIfFits()};
_.Ww("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.l.computeIsSearchFrictionPage=function(r){var f,I,C,Y,V;r=r==null?void 0:(f=r.primaryContents)==null?void 0:(I=f.sectionListRenderer)==null?void 0:(C=I.contents)==null?void 0:(Y=C[0])==null?void 0:(V=Y.itemSectionRenderer)==null?void 0:V.contents;if(!r)return!1;f=_.E(r);for(I=f.next();!I.done;I=f.next())if(C=void 0,(C=I.value)==null?0:C.searchFrictionViewModel)return!0;return!1};
_.l.computeShowSecondaryColumn=function(r,f){return!!(f&&f.secondaryContents&&r)};
_.l.activeChanged=function(){var r=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.GF(this,this.debounceStampSecondarySearchContainerIfFits)),_.Fi(function(){r.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.GF(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(){_.Pc(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.l.onRetrieveLocation=function(r,f){f.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);r.stopPropagation()};
_.l.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
qO.prototype.dataChanged=qO.prototype.dataChanged;qO.prototype.onRetrieveLocation=qO.prototype.onRetrieveLocation;qO.prototype.persistentGuideChanged=qO.prototype.persistentGuideChanged;qO.prototype.activeChanged=qO.prototype.activeChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],qO.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],qO.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.mB.YtdGuideStateAwareBehavior),_.B("design:type",Object)],qO.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.J(_.Pq),_.B("design:type",Object)],qO.prototype,"ironResizableBehavior",void 0);_.A([_.K(),_.B("design:type",Boolean)],qO.prototype,"active",void 0);_.A([_.K(),_.B("design:type",Object)],qO.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.N("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],qO.prototype,"useBiggerThumbs",void 0);_.A([_.K({reflectToAttribute:!0,value:function(){return _.qC("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],qO.prototype,"biggerThumbsStyle",void 0);_.A([_.K(),_.B("design:type",Object)],qO.prototype,"renderSecondarySearchContainer",void 0);_.A([_.K({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.B("design:type",Boolean)],qO.prototype,"showSecondaryColumn",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.B("design:type",Boolean)],qO.prototype,"isSearchFrictionPage",void 0);
_.A([_.K(),_.B("design:type",Object)],qO.prototype,"isSearch",void 0);_.A([_.K(),_.B("design:type",Object)],qO.prototype,"isSearchDova",void 0);_.A([_.Bt("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qO.prototype,"activeChanged",null);_.A([_.Bt("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qO.prototype,"persistentGuideChanged",null);
_.A([_.kO("yt-retrieve-location"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],qO.prototype,"onRetrieveLocation",null);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qO.prototype,"dataChanged",null);qO=_.A([_.U({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],qO);
_.Q(qO,"ytd-two-column-search-results-renderer",function(){if(ped!==void 0)return ped;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return ped=r},{mode:1});var uY=function(){var r=_.y.apply(this,arguments)||this;r.hasSearchHeader=!1;r.hasSecondaryContent=!1;r.hasBiggerThumbs=_.N("enable_desktop_search_bigger_thumbs");r.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return r};
_.t(uY,_.y);_.l=uY.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:_.Tq(["aa","eocs"])}}};
_.l.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.l.loadPage_=function(r){this.initCsi();r&&(this.data=r,_.Ww("REFINEMENTS_TUPLE",["FromSearchResponse",r.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.y9(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.l.initCsi=function(){_.$m("results",["ol","cpt"])};
_.l.updateTitle=function(){var r=_.Jy(window.location.href,"q");r||(r=_.Jy(window.location.href,"search_query"));_.kA(this.hostElement,"yt-update-title",r||"")};
_.l.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.l.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.N("web_srp_data_changed_terminate_imp_killswitch")||_.Bj(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(r){var f;r=r==null?void 0:(f=r.header)==null?void 0:f.searchHeaderRenderer;return!!r&&(!!r.searchFilterButton||!!r.chipBar)};
_.l.computeHasSecondaryContent=function(r){var f,I;return!!(r==null?0:(f=r.contents)==null?0:(I=f.twoColumnSearchResultsRenderer)==null?0:I.secondaryContents)};
_.OC.Object.defineProperties(uY,{template:{configurable:!0,enumerable:!0,get:function(){if(Gad===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);Gad=r}r=Gad;return r}}});
uY.prototype.onReloadContinuationFinish=uY.prototype.onReloadContinuationFinish;uY.prototype.dataChanged=uY.prototype.dataChanged;_.A([_.J(_.F4.YtPageBehavior),_.B("design:type",Object)],uY.prototype,"ytPageBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],uY.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],uY.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],uY.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.cg),_.B("design:type",Object)],uY.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],uY.prototype,"data",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],uY.prototype,"monitorScroll",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],uY.prototype,"hasSearchHeader",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],uY.prototype,"hasSecondaryContent",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],uY.prototype,"hasBiggerThumbs",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uY.prototype,"dataChanged",null);
_.A([_.kO("yt-reload-continuation-finish"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uY.prototype,"onReloadContinuationFinish",null);uY=_.A([_.U({is:"ytd-search"})],uY);_.gJ.registerService(_.cjU,uY);
_.ty();
}catch(e){_._DumpException(e)}
try{
_.Ph("h8y2qb");
var AX2=function(r){if(r=_.cCK(r)){var f;(f=r.sources)!=null&&f[0]?(f=_.LeK(r),f=f<1?"VERTICAL":f>1?"HORIZONTAL":"SQUARE"):f=void 0;return f}},PU=function(r){_.MJ.call(this,"upload");
this.opts.query=r},GcY=function(r,f){return _.p(ZOp,{data:r,
onYtNavigate:f})},BZ3=function(r,f){return r.map(function(I){if(I.tabRenderer)return kc3(I.tabRenderer);
if(I.expandableTabRenderer&&f){var C=I.expandableTabRenderer;return{customTabRenderable:function(){return f(C)}}}return{}})},kc3=function(r){return{identifier:r.tabIdentifier,
aTagConfig:_.Nd({innertubeCommand:r.endpoint,forceNewState:!0}),title:r.title,selected:r.selected,disabled:r.unselectable,icon:r.icon}},qI7=function(r,f){return _.f2(r.entities,"pageHeaderEntity",f)},us6=function(r){return _.kI({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:r})},Df6=function(r){if(!_.oC(document,"gtm-noscript")){var f=document.createElement("noscript");
f.id="gtm-noscript";f.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+r+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(f)}};_.rh(PU,_.MJ);PU.prototype.JSC$7974_setLabel=function(r){PU.superClass_.JSC$7974_setLabel.call(this,r);return this};
PU.prototype.addUploadMetadata=function(r,f){PU.superClass_.addUploadMetadata.call(this,r,f);return this};var rMp=function(r){if(r!=="youtubebanner"&&r!=="youtube-channel-banner")throw Error("Tl");PU.call(this,r)};
_.t(rMp,PU);rMp.prototype.JSC$7974_setLabel=function(r){PU.prototype.JSC$7974_setLabel.call(this,r);return this};
rMp.prototype.addUploadMetadata=function(r,f){PU.prototype.addUploadMetadata.call(this,r,f);return this};var fIq=[_.Pq,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(r){_.zI(r).path[0]!==this&&(this.resetLayout(),r.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var r=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.f6(this._layoutDebouncer,_.xY,r);_.IG(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var r=this;requestAnimationFrame(function(){r.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(r){this.resizerShouldNotify(r)&&this._notifyDescendant(r)},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 II6=[_.mm3,{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(r,f){var I=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[r];if(!I)throw new ReferenceError(this._getUndefinedMsg(r));r=this._boundEffect(I,f||{});r.setUp();return r},
_effectsChanged:function(r,f,I){this._tearDownEffects();r&&I&&(r.split(" ").forEach(function(C){var Y;C!==""&&((Y=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[C])?this._effects.push(this._boundEffect(Y,f[C])):console.warn(this._getUndefinedMsg(C)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(r,f){f=f||{};var I=parseFloat(f.startsAt||0),C=parseFloat(f.endsAt||1),Y=C-I,V=function(){};
C=I===0&&C===1?r.run:function(S,h){r.run.call(this,Math.max(0,(S-I)/Y),h)};
return{setUp:r.setUp?r.setUp.bind(this,f):V,run:r.run?C.bind(this):V,tearDown:r.tearDown?r.tearDown.bind(this):V}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(r){r.setUp()!==!1&&this._effectsRunFn.push(r.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(r){r.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(r,f){this._effectsRunFn&&this._effectsRunFn.forEach(function(I){I(r,f)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var r=this._clampedScrollTop;this._updateScrollState(r);this.threshold>0&&this._setThresholdTriggered(r>=this.threshold)}},
_getDOMRef:function(r){console.warn("_getDOMRef","`"+r+"` is undefined")},
_getUndefinedMsg:function(r){return"Scroll effect `"+r+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+r+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Ul`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(r){var f={};r=parseFloat(r.scalar);f.background=this._getDOMRef("background");f.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");f.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");f.deltaBg=f.backgroundFrontLayer.offsetHeight-f.background.offsetHeight;f.deltaBg===0?(isNaN(r)&&(r=.8),f.deltaBg=(this._dHeight||0)*r):(isNaN(r)&&(r=
1),f.deltaBg*=r);this._fxParallaxBackground=f},
run:function(r){var f=this._fxParallaxBackground;this.transform("translate3d(0px, "+f.deltaBg*Math.min(1,r)+"px, 0px)",f.backgroundFrontLayer);f.backgroundRearLayer&&this.transform("translate3d(0px, "+f.deltaBg*Math.min(1,r)+"px, 0px)",f.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var Ced;var YAp;var lI6=function(){};
_.l=lI6.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(){};
lI6=_.wm({_template:function(){if(YAp!==void 0)return YAp;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;Ced===void 0&&(Ced=document.createElement("template"));var C=Ced;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return YAp=r},
is:"tp-yt-app-header",behaviors:[II6,fIq],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 r=_.zI(this.$.slot).getDistributedNodes(),f=0,I;I=r[f];f++)if(I.nodeType===Node.ELEMENT_NODE)if(I.hasAttribute("sticky")){this._stickyElRef=I;break}else this._stickyElRef||(this._stickyElRef=I);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var r=this._clampedScrollTop,f=this._height===0||r===0,I=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;f||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();f?this._updateScrollState(r,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=I}},
_updateScrollState:function(r,f){if(this._height!==0){var I=0,C=this._top;var Y=this._maxHeaderTop;var V=r-this._lastScrollTop,S=Math.abs(V),h=r>this._lastScrollTop,w=performance.now();this._mayMove()&&(I=this._clamp(this.reveals?C+V:r,0,Y));r>=this._dHeight&&(I=this.condenses&&!this.fixed?Math.max(this._dHeight,I):I,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&S<100){if(w-this._initTimestamp>300||this._wasScrollingDown!==h)this._initScrollTop=r,this._initTimestamp=w;r>=Y&&
(Math.abs(this._initScrollTop-r)>30||S>10?(h&&r>=Y?I=Y:!h&&r>=this._dHeight&&(I=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((I-C)/(V/(w-this._lastTimestamp)),0,300)+"ms"):I=this._top)}Y=this._dHeight===0?r>0?1:0:I/this._dHeight;f||(this._lastScrollTop=r,this._top=I,this._wasScrollingDown=h,this._lastTimestamp=w);if(f||Y!==this._progress||C!==I||r===0)this._progress=Y,this._runEffects(Y,I),this._transformHeader(I)}},
_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(r){this.translate3d(0,-r+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&r>=this._stickyElTop?Math.min(r,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(r,f,I){return Math.min(I,Math.max(f,r))},
_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),_.zI(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(r){switch(r){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.zI(this).querySelector("[main-title]");case "condensedTitle":return _.zI(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var VIV;var EeU;_.wm({_template:function(){if(EeU!==void 0)return EeU;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;VIV===void 0&&(VIV=document.createElement("template"));var C=VIV;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return EeU=r},
is:"tp-yt-app-header-layout",behaviors:[fIq],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.zI(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var r=this.header;if(this.isAttached&&r){this.$.wrapper.classList.remove("initializing");r.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)r.style.left=
"",r.style.right="";else{var f=this.getBoundingClientRect(),I=document.documentElement.clientWidth-f.right;r.style.left=f.left+"px";r.style.right=I+"px"}f=this.$.contentContainer.style;I=r.offsetHeight;r.fixed&&!r.condenses&&this.hasScrollingRegion?(f.marginTop=I+"px",f.paddingTop=""):(f.paddingTop=I+"px",f.marginTop="")}}});var SAp=new _.q("replaceFeedContentAction");var x0Y=new _.q("alertCommand");var hyU=new _.q("manageLabsStateCommand");var wni=new _.q("channelBannerEditorRenderer");var b4q=new _.q("inlineFormRenderer");var tl=new _.q("playlistSidebarPrimaryInfoRenderer");var pn2=new _.q("productDetailsThumbnailRenderer"),ne6=new _.q("productDetailsVariantRenderer"),d06=new _.q("productDetailsVariantOptionRenderer"),zyp=new _.q("productDetailsOffersContainerRenderer"),MI2=new _.q("productDetailsOfferRenderer");var ge3=new _.q("shoppingFlaggingRenderer");var aIB=new _.q("playlistBylineRenderer");var XnY=new _.q("insertChannelTabCommand");var Tm=function(){return _.rm.apply(this,arguments)||this};
_.t(Tm,_.rm);_.l=Tm.prototype;_.l.activeChanged=function(){if(this.active){var r=_.e(this.hostElement).querySelector("#header");r&&_.kA(r,"iron-resize");window.addEventListener("scroll",_.GF(this,this.onScroll))}else window.removeEventListener("scroll",_.GF(this,this.onScroll)),_.kA(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.l.guideVisibleChanged=function(){var r=_.e(this.hostElement).querySelector("#header");r&&_.kA(r,"iron-resize")};
_.l.onScroll=function(){var r=this;_.Pc(this,"onScroll",function(){var f=_.e(r.hostElement).querySelector("#header");f&&f.polymerController&&(f=f.polymerController.getScrollState().progress===1?"standard":"seamed",_.kA(r.hostElement,"yt-request-panel-mode-change",{mode:f}))},10)};
_.l.tabsChanged=function(){if(this.tabs){for(var r=null,f=0,I=this.tabs.length;f<I;++f){var C=this.tabs[f].tabRenderer;if(C&&C.selected){r=f;break}}this.selected=r}};
_.l.onTabsActivate=function(r){_.kA(this.hostElement,"yt-navigate",{endpoint:this.tabs[r.detail.selected].tabRenderer.endpoint})};
Tm.prototype.tabsChanged=Tm.prototype.tabsChanged;Tm.prototype.guideVisibleChanged=Tm.prototype.guideVisibleChanged;Tm.prototype.activeChanged=Tm.prototype.activeChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Tm.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.mB.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Tm.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.K(),_.B("design:type",Array)],Tm.prototype,"tabs",void 0);
_.A([_.K(),_.B("design:type",Object)],Tm.prototype,"selected",void 0);_.A([_.K(),_.B("design:type",Boolean)],Tm.prototype,"active",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Tm.prototype,"disableHeaderFluidWidth",void 0);_.A([_.Bt("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tm.prototype,"activeChanged",null);
_.A([_.Bt("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tm.prototype,"guideVisibleChanged",null);_.A([_.Bt("tabs"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tm.prototype,"tabsChanged",null);Tm=_.A([_.fx()],Tm);var Nc1=[_.D.YtRendererBehavior,_.mB.YtdGuideStateAwareBehavior,Tm.prototype];var $06=2/3,F17=_.pQ(130749),Pe1=function(r,f){var I=this;this.element=r;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){I.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:$06,moveAction:function(C){I.moveAction(C)},
triggerAction:function(){I.element.isReloading=!0;_.cl(_.IB(),{visualElement:F17});_.qv.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:I.element}})}}}};
_.C3(_.IB(),F17,this.layer);this.gesture=new _.VN(r,f,this.refreshConfig,"pan-down");this.attach()};
_.l=Pe1.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(r){this.element.rotation=r*360};var tIq=_.pQ(130750),cU=function(r,f,I,C,Y){var V=this;this.element=r;this.parent=I;this.channelHeader=C;this.ytdReduxDispatch=Y;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){V.tabsStartAtInPx=V.channelHeader.clientHeight-48;var S;(S=V.selectedTab)!=null&&S.title&&(S=_.a().resolve(_.ZY(_.y2)))&&(S=S.getCurrentPage(),V.lastVisitedTabScrollPosition=S.getScrollTop(),V.previousTab&&
((V.lastVisitedTabScrollPosition===void 0?0:V.lastVisitedTabScrollPosition<V.channelHeader.clientHeight-48)?V.scrollPositionForTabs.has(V.selectedTab.title)&&V.scrollPositionForTabs.delete(V.selectedTab.title):V.scrollPositionForTabs.set(V.selectedTab.title,S.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:TcU(),triggerAction:function(){V.navigate(V.previousTab)},
moveAction:function(S,h){V.moveAction(S,h)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-TcU(),triggerAction:function(){V.navigate(V.nextTab)},
moveAction:function(S,h){V.moveAction(S,h)}}}};
_.C3(_.IB(),tIq,this.layer);this.gesture=new _.VN(r,f,this.tabConfig);this.attach()};
cU.prototype.attach=function(){this.gesture.attach()};
cU.prototype.detach=function(){this.gesture.detach()};
cU.prototype.tabsChanged=function(r){if(r){var f=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;r=_.E(r);for(var I=r.next();!I.done;I=r.next()){I=I.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=I);var C=void 0;if((C=I)==null?0:C.selected)this.previousTab=f,this.selectedTab=I;f=I}f=this.gesture;r=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}});
f.config=r;this.scrollPositionNeedsUpdate=!0}};
cU.prototype.moveAction=function(r,f){if(!this.tabsElement){var I;this.tabsElement=(I=this.parent.header)==null?void 0:I.tabsElement;f==="right"&&this.previousTab?_.L53(_.uH.instance,this.previousTab.endpoint,{},""):f==="left"&&this.nextTab&&_.L53(_.uH.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}I=this.tabsElement._pos;f==="right"&&(r*=-1);this.tabsElement._positionBar(I.width,I.left*1+I.width*r)};
var TcU=function(){var r,f;return(f=(r=_.a().resolve(_.y2).getCurrentPage())==null?void 0:r.clientWidth)!=null?f:0};
cU.prototype.navigate=function(r){this.element.data=void 0;if(r=r==null?void 0:r.endpoint)this.ytdReduxDispatch(us6(!0)),_.cl(_.IB(),{visualElement:tIq}),_.qv.instance.resolveCommand({navigateAction:{endpoint:r}},{form:{element:this.element}})};var cMp;var W1U;var WU=function(){return _.y.apply(this,arguments)||this};
_.t(WU,_.y);WU.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],WU.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],WU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],WU.prototype,"data",void 0);WU=_.A([_.U({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],WU);
_.Q(WU,"ytd-labs-edit-renderer",function(){if(W1U!==void 0)return W1U;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return W1U=r},{mode:1});var L16;var LR=function(){var r=_.y.apply(this,arguments)||this;r.dark=!1;r.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";r.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";r.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return r};
_.t(LR,_.y);LR.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
LR.prototype.ready=function(){var r=document.documentElement.hasAttribute("dark");this.setBackgroundImage(r);this.dark=r};
LR.prototype.onDarkModeToggledAction=function(r){this.setBackgroundImage(r);this.dark=r};
LR.prototype.setBackgroundImage=function(r){_.Zh(this.hostElement,{"--yt-labs-header-background":"url("+(r?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],LR.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],LR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],LR.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],LR.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],LR.prototype,"dark",void 0);
LR=_.A([_.U({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],LR);
_.Q(LR,"ytd-labs-header-renderer",function(){if(L16!==void 0)return L16;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return L16=r},{mode:1});var m01;var ma=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return r};
_.t(ma,_.y);ma.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"}}}}}};
ma.prototype.onYtToggleButton=function(r){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",r.detail.toggled)};
ma.prototype.onManageLabsState=function(r){if(r=_.F(r,hyU))r.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?r.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&r.labsItemId===this.data.labsItemId&&(r.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.Bj(this.hostElement,"yt-check-labs-opted-in-state").some(function(f){return f})&&this.data.confirmationDialogCommand?_.rX(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.a().resolve(_.Gg).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&r.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.a().resolve(_.Gg).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
ma.prototype.onCheckLabsOptedInState=function(){var r=this.get("data.primaryButton.toggleButtonRenderer");return r?r.isToggled:!1};
_.OC.Object.defineProperties(ma.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
ma.prototype.onYtToggleButton=ma.prototype.onYtToggleButton;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ma.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],ma.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ma.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ma.prototype,"itemStyle",null);_.A([_.kO("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ma.prototype,"onYtToggleButton",null);ma=_.A([_.U({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],ma);
_.Q(ma,"ytd-labs-item-renderer",function(){if(m01!==void 0)return m01;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return m01=r},{mode:1});var eyV;var JMi;var e0=function(){return _.y.apply(this,arguments)||this};
_.t(e0,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],e0.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],e0.prototype,"data",void 0);e0=_.A([_.U({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],e0);
_.Q(e0,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(JMi!==void 0)return JMi;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return JMi=r},{mode:1});var jqB;var Jl=function(){return _.y.apply(this,arguments)||this};
_.t(Jl,_.y);Jl.prototype.observeSuperchatChip=function(){if(this.data){var r={"--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)};_.Zh(this.hostElement,r)}};
Jl.prototype.colorFromDecimal=function(r){return _.g_(Number(r||0))};
Jl.prototype.observeSuperchatChip=Jl.prototype.observeSuperchatChip;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Jl.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Jl.prototype,"data",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Jl.prototype,"observeSuperchatChip",null);Jl=_.A([_.U({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Jl);
_.Q(Jl,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(jqB!==void 0)return jqB;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return jqB=r},{mode:1});var j0=function(){return _.y.apply(this,arguments)||this};
_.t(j0,_.y);j0.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"}}}};
_.OC.Object.defineProperties(j0.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],j0.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],j0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.TD),_.B("design:type",Object)],j0.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],j0.prototype,"data",void 0);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],j0.prototype,"hideMessageBlock",null);
j0=_.A([_.U({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],j0);
_.Q(j0,"ytd-live-chat-history-entry-renderer",function(){if(eyV!==void 0)return eyV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return eyV=r},{mode:1});var H4q;var HU=function(){return _.y.apply(this,arguments)||this};
_.t(HU,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],HU.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],HU.prototype,"data",void 0);HU=_.A([_.U({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],HU);
_.Q(HU,"ytd-channel-options-renderer",function(){if(H4q!==void 0)return H4q;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return H4q=r},{mode:1});var i4d;var ij=function(){return _.y.apply(this,arguments)||this};
_.t(ij,_.y);ij.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ij.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ij.prototype,"data",void 0);ij=_.A([_.U({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],ij);
_.Q(ij,"ytd-settings-email-item-renderer",function(){if(i4d!==void 0)return i4d;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return i4d=r},{mode:1});var RyU;var RS=function(){return _.y.apply(this,arguments)||this};
_.t(RS,_.y);RS.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"}}}};
RS.prototype.getExpansionIcon=function(r){return r?"arrow_drop_up":"arrow_drop_down"};
RS.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.OC.Object.defineProperties(RS.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],RS.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],RS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],RS.prototype,"data",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],RS.prototype,"expanded",void 0);_.A([_.R("expanded"),_.B("design:type",String),_.B("design:paramtypes",[])],RS.prototype,"emailListExpanded",null);
_.A([_.uA("#options"),_.B("design:type",Object)],RS.prototype,"options",void 0);RS=_.A([_.U({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],RS);
_.Q(RS,"ytd-settings-email-list-renderer",function(){if(RyU!==void 0)return RyU;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return RyU=r},{mode:1});var ve6;var vU=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return r};
_.t(vU,_.y);vU.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"}}}};
vU.prototype.handleSignalActionSubmitForm=function(){var r,f=(r=this.formRenderer)==null?void 0:r.getForm();f&&this.data.serviceEndpoint&&_.a().resolve(_.Gg).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},f,{element:this.hostElement})})};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],vU.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],vU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],vU.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],vU.prototype,"data",void 0);_.A([_.uA("yt-form-renderer"),_.B("design:type",Object)],vU.prototype,"formRenderer",void 0);
vU=_.A([_.U({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],vU);
_.Q(vU,"ytd-settings-gaia-link-renderer",function(){if(ve6!==void 0)return ve6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ve6=r},{mode:1});var K1d;var KR=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return r};
_.t(KR,_.y);KR.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.C3s()&&this.set("data.hidden",!1)};
KR.prototype.onSwitchReady=function(){var r=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.N("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.I8V().then(function(f){f&&(Notification.permission==="default"?r.set("data.hidden",!1):Notification.permission==="granted"&&_.og("NotificationsDisabled").then(function(I){I||_.Bj(r.hostElement,"yt-toggle-settings-switch",[r.data.id,!I]);r.set("data.hidden",!1)}).catch(function(){}))})})};
KR.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}}}}};
KR.prototype.handleUpdateOptionsCommand=function(r){(r=_.F(r,_.SUD))&&this.data&&this.data.id===r.id&&(this.set("data.hidden",r.hidden),r.text!==void 0&&this.set("data.text",r.text),r.clearOptions&&this.set("data.options",[]))};
KR.prototype.onSwitchReady=KR.prototype.onSwitchReady;KR.prototype.dataChanged=KR.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],KR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],KR.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],KR.prototype,"data",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],KR.prototype,"dataChanged",null);_.A([_.kO("yt-settings-switch-ready"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],KR.prototype,"onSwitchReady",null);KR=_.A([_.U({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],KR);
_.Q(KR,"ytd-settings-options-renderer",function(){if(K1d!==void 0)return K1d;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return K1d=r},{mode:1});var yM6;var yN=function(){return _.y.apply(this,arguments)||this};
_.t(yN,_.y);yN.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
yN.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
yN.prototype.onYtExpanderMoreTapped=yN.prototype.onYtExpanderMoreTapped;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],yN.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],yN.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],yN.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],yN.prototype,"data",void 0);
_.A([_.kO("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yN.prototype,"onYtExpanderMoreTapped",null);yN=_.A([_.U({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],yN);
_.Q(yN,"ytd-product-details-description-renderer",function(){if(yM6!==void 0)return yM6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return yM6=r},{mode:1});var U0B;var UF=function(){var r=_.y.apply(this,arguments)||this;r.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";r.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";r.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";r.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return r};
_.t(UF,_.y);UF.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.OC.Object.defineProperties(UF.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.data)==null?void 0:(f=r.offerData)==null?void 0:f.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.data)==null?void 0:r.purchaseButtonRenderers)!==void 0&&((f=this.data)==null?void 0:f.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var r,f;return!((r=this.data)==null||!r.formattedFromMerchantText)&&(!((f=this.data)==null||!f.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],UF.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],UF.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],UF.prototype,"data",void 0);
_.A([_.K({type:_.N("kevlar_property_type_migration_killswitch")?String:void 0}),_.B("design:type",Object)],UF.prototype,"shippingIcon",void 0);_.A([_.K({type:_.N("kevlar_property_type_migration_killswitch")?String:void 0}),_.B("design:type",Object)],UF.prototype,"shippingAddressIcon",void 0);_.A([_.K({type:_.N("kevlar_property_type_migration_killswitch")?String:void 0}),_.B("design:type",Object)],UF.prototype,"googleGuaranteeIcon",void 0);
_.A([_.K({type:_.N("kevlar_property_type_migration_killswitch")?String:void 0}),_.B("design:type",Object)],UF.prototype,"returnPolicyIcon",void 0);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],UF.prototype,"showAdditionalFees",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],UF.prototype,"showMultiPurchaseButtons",null);
_.A([_.R("data","showMultiPurchaseButtons"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],UF.prototype,"showPurchaseData",null);UF=_.A([_.U({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],UF);
_.Q(UF,"ytd-product-details-hero-offer-renderer",function(){if(U0B!==void 0)return U0B;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return U0B=r},{mode:1});var sqd;var O4Y;var sF=function(){return _.y.apply(this,arguments)||this};
_.t(sF,_.y);_.l=sF.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(r){r=r.keyCode;r!==13&&r!==32||this.handleSelection()};
_.l.onMouseEnterImage=function(){var r;((r=this.data)==null?void 0:r.thumbnailDetails)!==void 0&&_.qy(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.l.onMouseLeaveImage=function(){_.qy(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.l.handleSelection=function(){this.data&&_.kA(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.OC.Object.defineProperties(sF.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.isSelected)}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],sF.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],sF.prototype,"data",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],sF.prototype,"isSelected",null);sF=_.A([_.U({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],sF);
_.Q(sF,"ytd-product-details-thumbnail-renderer",function(){if(O4Y!==void 0)return O4Y;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return O4Y=r},{mode:1});var OF=function(){var r=_.y.apply(this,arguments)||this;var f={};r.actionMap=(f["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",f["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",f);r.selectedThumbnailIndex=0;r.selectItem=function(I){I.target.onKeyDown(I)};
return r};
_.t(OF,_.y);_.l=OF.prototype;_.l.handlePreviewImageSelect=function(r){this.hoverThumbnail=r};
_.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(r,f){this.selectedThumbnailIndex=f};
_.l.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.l.updateOffset=function(){var r=_.e(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-r));this.ytdHorizontalListBehavior.reposition_()};
_.OC.Object.defineProperties(OF.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.data)==null?0:r.imageRenderer){var f,I;return((f=this.data)==null?void 0:(I=f.imageRenderer)==null?void 0:I.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var r;if((r=this.data)==null?0:r.imageRenderer){var f;return(f=_.F(this.data.imageRenderer[this.selectedThumbnailIndex],pn2))==null?void 0:f.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var r=this,f,I,C,Y=(C=(f=this.data)==null?void 0:(I=f.imageRenderer)==null?void 0:I.map(function(V,S){return{productDetailsThumbnailRenderer:Object.assign({},_.F(V,pn2),{index:S,isSelected:S===r.selectedThumbnailIndex})}}))!=null?C:[];
return Object.assign({},this.data,{imageRenderer:Y})}}});
OF.prototype.updateOffset=OF.prototype.updateOffset;OF.prototype.dataChanged=OF.prototype.dataChanged;OF.prototype.onThumbnailSelected=OF.prototype.onThumbnailSelected;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],OF.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],OF.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.ZL.YtdHorizontalListBehavior),_.B("design:type",Object)],OF.prototype,"ytdHorizontalListBehavior",void 0);
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],OF.prototype,"componentBehavior",void 0);_.A([_.J([_.o_.YtActionHandlerBehavior]),_.B("design:type",Object)],OF.prototype,"actionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],OF.prototype,"data",void 0);_.A([_.K({value:"$.items.children"}),_.B("design:type",String)],OF.prototype,"itemsPath",void 0);_.A([_.K({value:3}),_.B("design:type",Number)],OF.prototype,"initialCount",void 0);
_.A([_.uA("#items"),_.B("design:type",Object)],OF.prototype,"items",void 0);_.A([_.K(),_.B("design:type",Object)],OF.prototype,"selectedThumbnailIndex",void 0);_.A([_.K(),_.B("design:type",Object)],OF.prototype,"hoverThumbnail",void 0);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],OF.prototype,"showThumbnails",null);
_.A([_.kO("ytd-product-details-thumbnail-renderer-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Number]),_.B("design:returntype")],OF.prototype,"onThumbnailSelected",null);_.A([_.R("data","selectedThumbnailIndex","hoverThumbnail"),_.B("design:type",Object),_.B("design:paramtypes",[])],OF.prototype,"thumbnailDetails",null);_.A([_.R("data","selectedThumbnailIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],OF.prototype,"populatedData",null);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OF.prototype,"dataChanged",null);_.A([_.kO("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OF.prototype,"updateOffset",null);OF=_.A([_.U({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],OF);
_.Q(OF,"ytd-product-details-image-carousel-renderer",function(){if(sqd!==void 0)return sqd;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return sqd=r},{mode:_.QQ("kevlar_poly_si_batch_j079")?1:2});var oeq;var oS=function(){return _.y.apply(this,arguments)||this};
_.t(oS,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],oS.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],oS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],oS.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],oS.prototype,"data",void 0);oS=_.A([_.U({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],oS);
_.Q(oS,"ytd-product-details-offer-renderer",function(){if(oeq!==void 0)return oeq;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return oeq=r},{mode:1});var Qq1;var QN=function(){var r=_.y.apply(this,arguments)||this;r.isOffersHidden=!0;return r};
_.t(QN,_.y);QN.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var r,f=_.F((r=this.data)==null?void 0:r.viewOffersButton,_.Ll);f&&this.ytRendererBehavior.logExplicitClick(f)};
QN.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.OC.Object.defineProperties(QN.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var r,f,I,C;return(I=_.F((r=this.data)==null?void 0:(f=r.offers)==null?void 0:f[0],MI2))==null?void 0:(C=I.offerData)==null?void 0:C.vendorLogoUrl}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],QN.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],QN.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],QN.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],QN.prototype,"isOffersHidden",void 0);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],QN.prototype,"firstOfferVendorLogoUrl",null);QN=_.A([_.U({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],QN);
_.Q(QN,"ytd-product-details-offers-container-renderer",function(){if(Qq1!==void 0)return Qq1;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Qq1=r},{mode:1});var AM2;var Z42;var Al=function(){return _.y.apply(this,arguments)||this};
_.t(Al,_.y);Al.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
Al.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.qy(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
Al.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.qy(this,"ytd-product-details-variant-image-unselect")};
_.OC.Object.defineProperties(Al.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 r;return((r=this.data)==null?void 0:r.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return((r=this.data)==null?void 0:r.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((f=this.data)==null?void 0:f.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((I=this.data)==null?void 0:I.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var r;if(((r=this.data)==null?void 0:r.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var r,f;return this.isUnavailable?(r=this.data)==null?void 0:r.variantOptionUnavailableAccessibilityLabel:(f=this.data)==null?void 0:f.variantOptionAccessibilityLabel}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Al.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Al.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Al.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Al.prototype,"data",void 0);_.A([_.K(),_.B("design:type",String)],Al.prototype,"displayType",void 0);
_.A([_.R("displayType","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Al.prototype,"isImageButton",null);_.A([_.R("displayType","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Al.prototype,"isPillButton",null);_.A([_.R("data"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Al.prototype,"isActive",null);
_.A([_.R("data"),_.K({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Al.prototype,"isUnavailable",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Al.prototype,"thumbnailDetails",null);_.A([_.R("isUnavailable","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Al.prototype,"accessibilityLabel",null);Al=_.A([_.U({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],Al);
_.Q(Al,"ytd-product-details-variant-option-renderer",function(){if(Z42!==void 0)return Z42;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Z42=r},{mode:1});var Glq;var ZQ=function(){var r=_.y.apply(this,arguments)||this;r.variantsExpanded=!1;r.hideShowMoreLessVariantButton=!0;r.initialized=!1;r.computeVariantsDebouncer=null;r.computeVariants=function(f){f=f===void 0?!1:f;r.variantsExpanded||r.showOptions()||!f||(r.variantsExpanded=!0);if(r.variantsExpanded){f=_.E(r.items.children);for(var I=f.next();!I.done;I=f.next())I.value.hidden=!1}r.initialized=!0};
return r};
_.t(ZQ,_.y);_.l=ZQ.prototype;_.l.ready=function(){var r=this;setTimeout(function(){r.computeVariants(!0)})};
_.l.showOptions=function(){for(var r=_.E(this.items.children),f=r.next();!f.done;f=r.next())f.value.hidden=!0;var I=this.container.getBoundingClientRect().width,C=0,Y=r=0;f=!1;for(var V=_.E(this.items.children),S=V.next();!S.done;S=V.next()){S=S.value;S.hidden=!1;var h=S.getBoundingClientRect().width;if(C+h<I)C+=h;else if(++Y<2)C=h;else break;r+=1;S.hasAttribute("is-active")&&(f=!0)}for(I=r;I<this.items.children.length;I++)this.items.children[I].hidden=!0;this.hideShowMoreLessVariantButton=r===this.items.children.length;
return f};
_.l.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.f6(this.computeVariantsDebouncer,_.OE.after(100),this.computeVariants)};
_.l.onShowMoreLessVariantsButtonClick=function(){var r;(r=this.data)!=null&&r.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]]"}}}}}};
_.OC.Object.defineProperties(ZQ.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var r,f,I=(r=this.data)==null?void 0:(f=r.variantOptionRenderers)==null?void 0:f.find(function(V){return _.F(V,d06).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),C,Y;
return(Y=(C=_.F(I,d06))==null?void 0:C.name)!=null?Y:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.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"}}}});
ZQ.prototype.debouncedComputeVariants=ZQ.prototype.debouncedComputeVariants;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ZQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],ZQ.prototype,"componentBehavior",void 0);_.A([_.J(_.Pq),_.B("design:type",Object)],ZQ.prototype,"ironResizableBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],ZQ.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],ZQ.prototype,"variantsExpanded",void 0);_.A([_.K(),_.B("design:type",Object)],ZQ.prototype,"hideShowMoreLessVariantButton",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ZQ.prototype,"initialized",void 0);_.A([_.uA("#items"),_.B("design:type",HTMLDivElement)],ZQ.prototype,"items",void 0);_.A([_.uA("#container"),_.B("design:type",HTMLDivElement)],ZQ.prototype,"container",void 0);
_.A([_.uA("#more-variants-button"),_.B("design:type",HTMLElement)],ZQ.prototype,"moreVariantsButton",void 0);_.A([_.R("data"),_.B("design:type",String),_.B("design:paramtypes",[])],ZQ.prototype,"selectedOptionName",null);_.A([_.Bt("data","variantsExpanded"),_.kO("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZQ.prototype,"debouncedComputeVariants",null);
_.A([_.R("data"),_.B("design:type",String),_.B("design:paramtypes",[])],ZQ.prototype,"displayType",null);_.A([_.R("displayType"),_.B("design:type",Object),_.B("design:paramtypes",[])],ZQ.prototype,"variantItemsClassname",null);ZQ=_.A([_.U({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],ZQ);
_.Q(ZQ,"ytd-product-details-variant-renderer",function(){if(Glq!==void 0)return Glq;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Glq=r},{mode:1});var Gm=function(){return _.y.apply(this,arguments)||this};
_.t(Gm,_.y);
Gm.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"}}}};
_.OC.Object.defineProperties(Gm.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var r,f,I=(f=_.F((r=this.data)==null?void 0:r.offersContainerRenderer,zyp))==null?void 0:f.offers;return I!==void 0&&(I==null?void 0:I.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 r,f,I;return((I=(r=this.data)==null?void 0:(f=r.variants)==null?void 0:f.map(function(C){var Y,V;C=(V=(Y=_.F(C,ne6))==null?void 0:Y.variantOptionRenderers)==null?void 0:V.find(function(h){var w;return((w=_.F(h,d06))==null?void 0:w.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var S;return(S=_.F(C,d06))==null?void 0:S.name}).filter(function(C){return typeof C==="string"}))!=null?I:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var r,f,I,C=(f=_.F((r=this.data)==null?void 0:r.shoppingFlaggingRenderer,ge3))==null?void 0:(I=f.reportButton)==null?void 0:I.buttonRenderer;if(C)return{text:C.text,command:C.command,icon:{iconType:"FLAG"},accessibilityData:C.accessibilityData,trackingParams:C.trackingParams,loggingDirectives:C.loggingDirectives}}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Gm.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Gm.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Gm.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Gm.prototype,"data",void 0);_.A([_.uA("#image-carousel-renderer"),_.B("design:type",Object)],Gm.prototype,"imageCarouselRenderer",void 0);
_.A([_.uA("#hero-offer-renderer"),_.B("design:type",Object)],Gm.prototype,"productDetailsHeroOfferRenderer",void 0);_.A([_.uA("#variants"),_.B("design:type",Object)],Gm.prototype,"productDetailsVariantRenderer",void 0);_.A([_.uA("#offers"),_.B("design:type",Object)],Gm.prototype,"productDetailsOffersContainerRenderer",void 0);_.A([_.uA("#description-renderer"),_.B("design:type",Object)],Gm.prototype,"productDetailsDescriptionRenderer",void 0);
_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Gm.prototype,"showPurchaseData",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Gm.prototype,"showHeroOfferRenderer",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Gm.prototype,"showBrandText",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Gm.prototype,"showOffers",null);
_.A([_.R("showOffers","showPurchaseData"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Gm.prototype,"showBuySeparator",null);_.A([_.R("showOffers","showPurchaseData"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Gm.prototype,"showBuyCard",null);_.A([_.R("data"),_.B("design:type",String),_.B("design:paramtypes",[])],Gm.prototype,"selectedVariantsText",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Gm.prototype,"shoppingReportingButtonData",null);
Gm=_.A([_.U({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],Gm);
_.Q(Gm,"ytd-product-details-renderer",function(){if(AM2!==void 0)return AM2;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return AM2=r},{mode:1});var kl6;var Bcp;var qAq;var km=function(){return _.y.apply(this,arguments)||this};
_.t(km,_.y);km.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.OC.Object.defineProperties(km.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],km.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],km.prototype,"data",void 0);_.A([_.K(),_.B("design:type",String)],km.prototype,"formattedAmount",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],km.prototype,"ariaLabel",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("data.style"),_.B("design:type",String),_.B("design:paramtypes",[])],km.prototype,"vcBalanceWidgetStyle",null);km=_.A([_.zX({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],km);
_.Q(km,"yt-vc-balance-renderer",function(){if(qAq===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;Bcp===void 0&&(Bcp=document.createElement("template"));var C=Bcp;I.call(f,C.content.cloneNode(!0),r.content.firstChild);qAq=r}r=qAq;return r},{mode:2});_.gW("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var BU=function(){return _.y.apply(this,arguments)||this};
_.t(BU,_.y);_.OC.Object.defineProperties(BU.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:""}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],BU.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],BU.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],BU.prototype,"data",void 0);_.A([_.K({selectorArgs:["data.vcBalanceEntityKey"],selector:function(r,f){return _.f2(r.entities,"vcBalanceEntity",f)}}),
_.B("design:type",Object)],BU.prototype,"vcBalanceEntity",void 0);_.A([_.R("vcBalanceEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],BU.prototype,"formattedAmount",null);_.A([_.R("vcBalanceEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],BU.prototype,"vcBalanceAriaLabel",null);BU=_.A([_.U({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],BU);
_.Q(BU,"ytd-vc-balance-renderer",function(){if(kl6!==void 0)return kl6;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return kl6=r},{mode:1});var uU6;var qg=function(){var r=_.y.apply(this,arguments)||this;r.rotation=0;r.isReloading=!1;return r};
_.t(qg,_.y);qg.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
qg.prototype.reset=function(){this.hostElement.style.opacity=""};
qg.prototype.close=function(){var r=this;return _.x(function(f){if(f.nextAddress==1)return _.b(f,r.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);r.hostElement.style.opacity="0";_.wO(f)})};
qg.prototype.rotationChanged=qg.prototype.rotationChanged;_.A([_.K(),_.B("design:type",Object)],qg.prototype,"rotation",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],qg.prototype,"isReloading",void 0);_.A([_.uA("#icon"),_.B("design:type",HTMLElement)],qg.prototype,"icon",void 0);_.A([_.Bt("rotation"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qg.prototype,"rotationChanged",null);
qg=_.A([_.U({disableElementRegistration:!0,is:"ytd-refresh"})],qg);
_.Q(qg,"ytd-refresh",function(){if(uU6!==void 0)return uU6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return uU6=r},{mode:1});var D0s;var r$2;var fOi=function(r,f,I,C,Y,V,S,h){this.minWidth=r;this.minHeight=f;this.recommendedWidth=I;this.recommendedHeight=C;this.JSC$19330_maxFileSize=Y;this.title=V;this.bannerGalleryTitle=S;this.channelId=h;this.picker_=null;r=_.Wuu("yt-banner");f=r.addView;I=(new rMp("youtubebanner")).addUploadMetadata("silo_id","19");I.opts.ytMaxFileSize=this.JSC$19330_maxFileSize;C=this.recommendedHeight;I.opts.ytRecWidth=this.recommendedWidth;I.opts.ytRecHeight=C;f.call(r,I);r.addView(new _.XB);f=r.addView;I=new _.XB;
I.opts.type="ytbanner";f.call(r,I.JSC$7974_setLabel(this.bannerGalleryTitle));f=r.setTitle(this.title).setSize(1E3);f.urlParamMap_.set("thumbs","orig");I=this.minWidth;C=this.minHeight;if(isNaN(I)||isNaN(C))throw Error("kb`"+I+"`"+C);f.urlParamMap_.set("minSize",I+"x"+C);f.urlParamMap_.set("cropMode","ytcb");this.builder_=r};
fOi.prototype.open=function(){var r=this;return new _.lz(function(f,I){_.Tt_(r.builder_,function(C){C.action=="picked"?f(C):C.action=="cancel"&&I(Error("Vl"))});
r.picker_&&r.picker_.dispose();r.picker_=r.builder_.build();r.picker_.setVisible(!0)})};
fOi.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var IO7=function(r){this.channelId=r},C5s=function(r,f){var I="";
f.viewToken&&(I=f.viewToken[2].type);var C=f.docs[0];f=C.crop;r={channel_id:r.channelId,fife_url:C.thumbnails[0].url,photo_id:C.id,is_gallery_image:I=="ytbanner"};f&&(r.crop_top=f.top,r.crop_right=f.right,r.crop_bottom=f.bottom,r.crop_left=f.left);return _.agq("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:r})};var uj=function(){var r=_.y.apply(this,arguments)||this;r.ariaLabel=null;return r};
_.t(uj,_.y);_.l=uj.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(r){return r};
_.l.onTap=function(){var r=this,f;if((f=this.data)==null||!f.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new fOi(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 I;(I=this.picker)==null||I.open().then(function(C){r.handleBannerPicked(C)},function(){})}};
_.l.handleBannerPicked=function(r){var f=this;this.uploader||(this.uploader=new IO7(this.data.channelId||""));this.message=this.data.uploadingText;C5s(this.uploader,r).then(function(I){f.handleBannerUploadSucceeded(I)},function(I){f.handleBannerUploadFailed(I)})};
_.l.handleBannerUploadSucceeded=function(r){r&&r.errors?this.handleBannerUploadFailed(r):(_.kA(this.hostElement,"yt-banner-updated",r),this.message=null)};
_.l.handleBannerUploadFailed=function(r){this.message=r&&r.errors&&r.errors.length?r.errors[0]:null};
uj.prototype.dataChanged=uj.prototype.dataChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],uj.prototype,"componentBehavior",void 0);_.A([_.J(_.cq),_.B("design:type",Object)],uj.prototype,"ironButtonState",void 0);_.A([_.K(),_.B("design:type",Object)],uj.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.B("design:type",Object)],uj.prototype,"ariaLabel",void 0);
_.A([_.K(),_.B("design:type",Object)],uj.prototype,"message",void 0);_.A([_.K(),_.B("design:type",Object)],uj.prototype,"picker",void 0);_.A([_.K(),_.B("design:type",Object)],uj.prototype,"uploader",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uj.prototype,"dataChanged",null);uj=_.A([_.U({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],uj);
_.Q(uj,"ytd-channel-banner-editor-renderer",function(){if(r$2!==void 0)return r$2;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return r$2=r},{mode:1});var Yh6;var lO1=_.op(["#"]),DQ=function(){return _.y.apply(this,arguments)||this};
_.t(DQ,_.y);DQ.prototype.computeHrefWithDefault=function(r){return this.ytComponentBehavior.computeHref_(r,!0)||_.$1(lO1)};
DQ.prototype.dataChanged=function(){var r=this.data;r&&r.targetId&&_.AIg(_.fh(),r.targetId,this.moreIcon)};
DQ.prototype.dataChanged=DQ.prototype.dataChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],DQ.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],DQ.prototype,"data",void 0);_.A([_.uA("#more-icon"),_.B("design:type",Object)],DQ.prototype,"moreIcon",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DQ.prototype,"dataChanged",null);
DQ=_.A([_.U({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],DQ);
_.Q(DQ,"ytd-channel-tagline-renderer",function(){if(Yh6!==void 0)return Yh6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Yh6=r},{mode:1});var Vx6;var rT=function(){return _.y.apply(this,arguments)||this};
_.t(rT,_.y);_.l=rT.prototype;_.l.ready=function(){var r=this;_.e(this.hostElement).querySelector("#form").addEventListener("submit",function(f){r.onSubmit(f)})};
_.l.onDataChanged=function(){var r;((r=this.data)==null?0:r.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.l.onIconButtonKeydown=function(r){r.keyCode===13&&this.iconButton.click()};
_.l.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.l.openOnClickHandler=function(){this.input.focus()};
_.l.onSubmit=function(r){r.preventDefault();return!1};
_.l.submitOnEnterKeyUp=function(r){var f;if(r.keyCode===13&&((f=this.data)==null?0:f.expandedText)){r=this.data.endpoint;f=_.X0.unsafeClone(r);var I;((I=_.F(f==null?void 0:f.commandMetadata,_.oo))==null?0:I.url)?(_.F(f.commandMetadata,_.oo).url=_.mN(_.F(f.commandMetadata,_.oo).url,"query",this.data.expandedText),_.F(f,_.lA)&&(_.F(f,_.lA).query=this.data.expandedText),_.kA(this.hostElement,"yt-navigate",{endpoint:f,tempData:{disableCache:!0}})):(I=new _.nf("Error: Trying to navigate to an endpoint without url",
r),_.Fo(I))}};
_.l.updateDataExpandedTextFromBinding=function(r){this.set("data.expandedText",r.detail.value)};
rT.prototype.onDataChanged=rT.prototype.onDataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.wkq),_.B("design:type",Object)],rT.prototype,"ytdExpandableInputBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],rT.prototype,"data",void 0);_.A([_.uA("#input"),_.B("design:type",Object)],rT.prototype,"input",void 0);_.A([_.uA("#icon-button"),_.B("design:type",HTMLElement)],rT.prototype,"iconButton",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rT.prototype,"onDataChanged",null);rT=_.A([_.U({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],rT);
var ZOp=_.os()(rT,"ytd-expandable-tab-renderer",function(){if(Vx6===void 0){var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="yt-icons:search" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);Vx6=r}r=Vx6;return r},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var EvY;var Shd=_.op(["#"]),fa=function(){return _.y.apply(this,arguments)||this};
_.t(fa,_.y);fa.prototype.computeHrefWithDefault=function(r){return this.ytComponentBehavior.computeHref_(r,!0)||_.$1(Shd)};
_.OC.Object.defineProperties(fa.prototype,{primaryLinkEndpoint:{configurable:!0,enumerable:!0,get:function(){var r;return _.aB((r=this.data)==null?void 0:r.primaryLinkOnTap)}},
moreEndpoint:{configurable:!0,enumerable:!0,get:function(){var r;return _.aB((r=this.data)==null?void 0:r.moreOnTap)}}});
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],fa.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],fa.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],fa.prototype,"usePageHeaderStyle",void 0);_.A([_.R("data.primaryOnTap"),_.B("design:type",Object),_.B("design:paramtypes",[])],fa.prototype,"primaryLinkEndpoint",null);
_.A([_.R("data.moreOnTap"),_.B("design:type",Object),_.B("design:paramtypes",[])],fa.prototype,"moreEndpoint",null);fa=_.A([_.U({disableElementRegistration:!0,is:"ytd-channel-header-links-view-model"})],fa);
_.Q(fa,"ytd-channel-header-links-view-model",function(){if(EvY!==void 0)return EvY;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-header-links-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-header-links-view-model">\n  <yt-attributed-string id="first-link" data="[[data.firstLink]]" ellipsis-truncate="true" hidden="[[!data.firstLink]]" link-inherit-color="true" user-input="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <yt-attributed-string id="more" data="[[data.more]]" hidden="[[!data.more]]" link-inherit-color="true" no-wrap="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <a id="primary-link" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(primaryLinkEndpoint)]]" data="[[primaryLinkEndpoint]]" dir="ltr" hidden="[[!data.primaryLink]]">\n    [[data.primaryLink]]\n  </a>\n  <a id="suffix" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(moreEndpoint)]]" data="[[moreEndpoint]]" hidden="[[!data.suffix]]">\n    [[data.suffix]]\n  </a>\n</div>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return EvY=r},{mode:1});var xZV;var IU=function(){var r=_.y.apply(this,arguments)||this;r.avatarSize=80;r.ariaLabel=_.VR("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return r};
_.t(IU,_.y);IU.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
IU.prototype.computeHref=function(r){var f;return((f=_.F(r,_.HR))==null?0:f.url)?this.componentBehavior.computeHref_(r):null};
IU.prototype.onTap=function(){var r,f;(r=this.data)==null||!r.editAvatarServiceEndpoint||((f=_.F(this.data.editAvatarServiceEndpoint,_.HR))==null?0:f.url)||_.a().resolve(_.Gg).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.A([_.J(_.cq),_.B("design:type",Object)],IU.prototype,"ironButtonState",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],IU.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],IU.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],IU.prototype,"avatarSize",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],IU.prototype,"ariaLabel",void 0);IU=_.A([_.U({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],IU);
_.Q(IU,"ytd-channel-avatar-editor",function(){if(xZV!==void 0)return xZV;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return xZV=r},{mode:1});_.Kv(_.nmX,"yt-tab-group-shape",{props:{shape:_.jv}});var Ca=function(){var r=_.y.apply(this,arguments)||this;r.expandableCustomTabRenderable=function(f){return GcY(f,function(){return void r.onSearchNavigate()})};
r.isRichGrid=!1;r.richGridMiniMode=!1;r.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-unsubscribe-action":"handleUnsubscribeAction","yt-window-resized":"onWindowResize"};return r};
_.t(Ca,_.y);_.l=Ca.prototype;_.l.areAllFalse=function(r,f,I){return!r&&!f&&!I};
_.l.updateJoinButtonOverrides=function(){var r;(r=_.e(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||r.set("overrides",this.joinButtonOverrides)};
_.l.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.sponsorButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},
"data.editChannelButtons":{id:"edit-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.otherButtons":{id:"other-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.tagline":{id:"channel-tagline",mapping:{channelTaglineRenderer:"ytd-channel-tagline-renderer"}},"data.headerLinks":{id:"channel-header-links",mapping:{channelHeaderLinksViewModel:{component:"ytd-channel-header-links-view-model",properties:{usePageHeaderStyle:"[[usePageHeaderStyle]]"}}}}}};
_.l.attached=function(){this.data&&this.dataChanged();if(!_.N("web_c4_tabbed_header_error_ks")&&Math.random()<.05){var r=new _.nf("Rendered C4TabbedHeaderRenderer",window.location.href);_.Fo(r)}};
_.l.computeHeaderDisabled=function(r,f){return f||!r};
_.l.handleButtonRefreshAction=function(r){(r=_.F(r,_.KtV))&&this.set("data.sponsorButton",r.membershipButton)};
_.l.handleInsertTabCommand=function(r){var f=_.F(r,XnY);f&&f.externalChannelId===this.data.channelId&&(f.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(I){return I.tabRenderer&&I.tabRenderer.tabIdentifier===f.tabIdentifier})||this.splice("tabs",f.tabIndex||-1,0,f.tab))};
_.l.handleRefreshChannelTabAction=function(r){var f,I=(f=this.tabs)==null?void 0:f.filter(function(V){var S;return(S=V.tabRenderer)==null?void 0:S.selected});
f=(I==null?void 0:I.length)===1?I[0]:void 0;var C;if((f==null?void 0:(C=f.tabRenderer)==null?void 0:C.tabIdentifier)===r){var Y;_.kA(this.hostElement,"yt-navigate",{endpoint:(Y=f.tabRenderer)==null?void 0:Y.endpoint,tempData:{disableCache:!0}})}};
_.l.onWindowResize=function(){_.e(this.hostElement).querySelector("#header").fire("iron-resize")};
_.l.dataChanged=function(){var r=this.hasChannelArt;this.hasChannelArt=!1;if(this.data&&this.data.banner){var f=_.yH(this.data.banner.thumbnails,this.hostElement.clientWidth);f&&(f.indexOf("//")===0&&(f="https:"+f),this.hasChannelArt=!0,_.Zh(this.hostElement,{"--yt-channel-banner":"url("+f+")"}))}this.hasChannelArt!==r&&_.e(this.hostElement).querySelector("#header").fire("iron-resize")};
_.l.onBannerUpdated=function(r,f){r=window.devicePixelRatio>1?f.hq_url:f.url;r.indexOf("//")===0&&(r="https:"+r);this.hasChannelArt=!0;_.Zh(this.hostElement,{"--yt-channel-banner":"url("+r+")"})};
_.l.observeLightsourcePalette=function(){var r,f,I=(r=this.data)==null?void 0:(f=r.headerColorPalette)==null?void 0:f.lightsourceColorPaletteData;I&&_.zY(this.hostElement,I)};
_.l.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Zh(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.l.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.l.handleUnsubscribeAction=function(){var r,f;((f=_.F((r=this.data)==null?void 0:r.sponsorButton,_.Ll))==null?void 0:f.style)==="STYLE_PRIMARY"&&_.e(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").set("data.style","STYLE_SUGGESTIVE")};
_.l.onFocusedChanged=function(r){(r=_.jl(r))&&r.is==="tp-yt-paper-tab"&&r.hasRipple()&&(r.getRipple().holdDown=!r.pointerDown&&r.focused)};
_.l.updateSelectedFromBinding=function(r){this.ytdTabbedHeaderBehavior.selected=r.detail.value};
_.OC.Object.defineProperties(Ca.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:BZ3(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasChannelHeaderLinks:{configurable:!0,enumerable:!0,get:function(){var r,f;return!!((r=this.data)==null?0:(f=r.headerLinks)==null?0:f.channelHeaderLinksViewModel)}},
subscribeKey:{configurable:!0,enumerable:!0,get:function(){return this.get("subscribeButton.subscribeButtonRenderer.subscribedEntityKey",this.data)}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.subscriptionStateEntity)==null||!r.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono",buttonType:this.subscribed?"filled":"tonal"}}},
useModernStyle:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.style)==="C4_TABBED_HEADER_RENDERER_STYLE_MODERN"}},
usePageHeaderStyle:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.style)==="C4_TABBED_HEADER_RENDERER_STYLE_PAGE_HEADER"}},
avatarSize:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?160:this.useModernStyle?128:80}},
shouldInlineChannelName:{configurable:!0,enumerable:!0,get:function(){var r=this.channelHandleDisplayStyle;return r==="MODERN"||r==="PAGE_HEADER"}},
hideBannerEndpoint:{configurable:!0,enumerable:!0,get:function(){var r;return this.usePageHeaderStyle||!((r=this.data)==null?0:r.bannerLinkEndpoint)}},
hideBannerVisibleArea:{configurable:!0,enumerable:!0,get:function(){var r;return this.usePageHeaderStyle||!((r=this.data)==null||!r.bannerLinkEndpoint)}},
showBannerEditor:{configurable:!0,enumerable:!0,get:function(){var r;return!!_.F((r=this.data)==null?void 0:r.bannerEditor,wni)}},
bannerEffects:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:"parallax-background"}},
effectsConfig:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:{"parallax-background":{scalar:.5}}}},
shouldShowPageHeaderBanner:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle&&!!this.hasChannelArt}},
isChannelHandlePresent:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.channelHandleText)}},
channelHandleDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelHandlePresent?this.usePageHeaderStyle?"PAGE_HEADER":this.useModernStyle?"MODERN":"CLASSIC":"NOT_AVAILABLE"}},
shouldShowChannelPronouns:{configurable:!0,enumerable:!0,get:function(){var r;return _.N("enable_view_pronouns_on_main_app")&&!((r=this.data)==null||!r.channelPronouns)}},
shouldShowSubscriberCount:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.subscriberCountText)}},
shouldShowVideosCount:{configurable:!0,enumerable:!0,get:function(){var r;return(this.useModernStyle||this.usePageHeaderStyle)&&!((r=this.data)==null||!r.videosCountText)}}});
Ca.prototype.observerRichGridItemsPerRow=Ca.prototype.observerRichGridItemsPerRow;Ca.prototype.observeLightsourcePalette=Ca.prototype.observeLightsourcePalette;Ca.prototype.onBannerUpdated=Ca.prototype.onBannerUpdated;Ca.prototype.dataChanged=Ca.prototype.dataChanged;Ca.prototype.updateJoinButtonOverrides=Ca.prototype.updateJoinButtonOverrides;_.A([_.J(_.WH),_.B("design:type",Object)],Ca.prototype,"ytdGridStateAwareBehavior",void 0);
_.A([_.J(Nc1),_.B("design:type",Object)],Ca.prototype,"ytdTabbedHeaderBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Ca.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Ca.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.mB.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Ca.prototype,"ytdGuideStateAwareBehavior",void 0);
_.A([_.J(_.PH),_.B("design:type",Object)],Ca.prototype,"ytdReduxBehavior",void 0);_.A([_.uA("#tabs"),_.B("design:type",Object)],Ca.prototype,"tabsElement",void 0);_.A([_.K(),_.B("design:type",Array)],Ca.prototype,"tabs",void 0);_.A([_.R("tabs.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ca.prototype,"tabGroupShape",null);_.A([_.K(),_.B("design:type",Object)],Ca.prototype,"expandableCustomTabRenderable",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Ca.prototype,"isRichGrid",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.ar}),_.B("design:type",Object)],Ca.prototype,"richGridMiniMode",void 0);_.A([_.K({selector:_.XN}),_.B("design:type",Number)],Ca.prototype,"richGridItemsPerRow",void 0);_.A([_.K(),_.B("design:type",Object)],Ca.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ca.prototype,"hasChannelArt",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ca.prototype,"hasChannelHeaderLinks",null);_.A([_.K({selector:_.qg7,reflectToAttribute:!0}),_.B("design:type",Boolean)],Ca.prototype,"guideIsVisibleButNotPersistent",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ca.prototype,"subscribeKey",null);
_.A([_.K({selectorArgs:["subscribeKey"],selector:_.qm}),_.B("design:type",Object)],Ca.prototype,"subscriptionStateEntity",void 0);_.A([_.R("subscriptionStateEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ca.prototype,"subscribed",null);_.A([_.R("subscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ca.prototype,"joinButtonOverrides",null);
_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ca.prototype,"useModernStyle",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ca.prototype,"usePageHeaderStyle",null);_.A([_.R("useModernStyle","usePageHeaderStyle"),_.B("design:type",Number),_.B("design:paramtypes",[])],Ca.prototype,"avatarSize",null);
_.A([_.R("channelHandleDisplayStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ca.prototype,"shouldInlineChannelName",null);_.A([_.R("data","usePageHeaderStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ca.prototype,"hideBannerEndpoint",null);_.A([_.R("data","usePageHeaderStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ca.prototype,"hideBannerVisibleArea",null);
_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ca.prototype,"showBannerEditor",null);_.A([_.R("usePageHeaderStyle"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ca.prototype,"bannerEffects",null);_.A([_.R("usePageHeaderStyle"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ca.prototype,"effectsConfig",null);_.A([_.R("usePageHeaderStyle","hasChannelArt"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ca.prototype,"shouldShowPageHeaderBanner",null);
_.A([_.R("data.channelHandleText"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ca.prototype,"isChannelHandlePresent",null);_.A([_.R("isChannelHandlePresent","useModernStyle","usePageHeaderStyle"),_.B("design:type",String),_.B("design:paramtypes",[])],Ca.prototype,"channelHandleDisplayStyle",null);_.A([_.R("data.channelPronouns"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ca.prototype,"shouldShowChannelPronouns",null);
_.A([_.R("data.subscriberCountText"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ca.prototype,"shouldShowSubscriberCount",null);_.A([_.R("useModernStyle","data.videosCountText"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ca.prototype,"shouldShowVideosCount",null);_.A([_.Bt("joinButtonOverrides"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ca.prototype,"updateJoinButtonOverrides",null);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ca.prototype,"dataChanged",null);_.A([_.kO("yt-banner-updated"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Ca.prototype,"onBannerUpdated",null);_.A([_.Bt("data.headerColorPalette.lightsourceColorPaletteData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ca.prototype,"observeLightsourcePalette",null);
_.A([_.Bt("richGridItemsPerRow","isRichGrid"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ca.prototype,"observerRichGridItemsPerRow",null);Ca=_.A([_.U({is:"ytd-c4-tabbed-header-renderer",disableElementRegistration:!0})],Ca);
_.Q(Ca,"ytd-c4-tabbed-header-renderer",function(){if(D0s!==void 0)return D0s;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-c4-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-c4-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent)]]" effects="[[bannerEffects]]" effects-config="[[effectsConfig]]" fixed="" class="style-scope ytd-c4-tabbed-header-renderer"><a class="banner-visible-area yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" aria-label$="[[data.banner.accessibility.accessibilityData.label]]" data="[[data.bannerLinkEndpoint]]" hidden="[[hideBannerEndpoint]]" href="[[computeHref_(data.bannerLinkEndpoint)]]"></a><template is="dom-if" if="[[!hideBannerVisibleArea]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="banner-visible-area style-scope ytd-c4-tabbed-header-renderer"><div id="banner-editor" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><template is="dom-if" if="[[shouldShowPageHeaderBanner]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-sizer style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-image style-scope ytd-c4-tabbed-header-renderer"></div><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><div id="channel-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow id="avatar" hidden="[[data.editAvatarServiceEndpoint]]" thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><ytd-channel-avatar-editor id="avatar-editor" avatar-size="[[avatarSize]]" data="[[data]]" disable-upgrade$="[[!data.editAvatarServiceEndpoint]]" hidden="[[!data.editAvatarServiceEndpoint]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-avatar-editor><div id="inner-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="meta" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" has-channel-art="[[hasChannelArt]]" wrap-text="" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-name><p hidden="[[!equals(channelHandleDisplayStyle, \'CLASSIC\')]]" class="style-scope ytd-c4-tabbed-header-renderer"><yt-formatted-string id="channel-handle" class="meta-item style-scope ytd-c4-tabbed-header-renderer" respect-lang-dir="" text="[[data.channelHandleText]]"></yt-formatted-string></p><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldInlineChannelName]]"><yt-formatted-string id="channel-handle" respect-lang-dir="" text="[[data.channelHandleText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowChannelPronouns, shouldShowSubscriberCount, shouldShowVideosCount)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowChannelPronouns]]"><yt-formatted-string id="channel-pronouns" text="[[data.channelPronouns]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowSubscriberCount, shouldShowVideosCount, false)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowSubscriberCount]]"><yt-formatted-string id="subscriber-count" text="[[data.subscriberCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]"><yt-formatted-string id="videos-count" text="[[data.videosCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></span><div id="channel-tagline" class="style-scope ytd-c4-tabbed-header-renderer"></div><div id="channel-header-links" class="style-scope ytd-c4-tabbed-header-renderer"></div></div><div id="buttons" class="style-scope ytd-c4-tabbed-header-renderer"><div id="purchase-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="subscribe-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="sponsor-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="edit-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="other-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div></div></div></div><div id="links-holder" class="style-scope ytd-c4-tabbed-header-renderer"><div id="primary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.primaryLinks]]" as="primaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint container style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(primaryLink.navigationEndpoint)]]" data="[[primaryLink.navigationEndpoint]]" title$="[[getSimpleString(primaryLink.title)]]"><div class="icon-container style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow height="16" thumbnail="[[primaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><yt-formatted-string text="[[primaryLink.title]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></div></a></template></div><div id="secondary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.secondaryLinks]]" as="secondaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(secondaryLink.navigationEndpoint)]]" data="[[secondaryLink.navigationEndpoint]]" title$="[[getSimpleString(secondaryLink.title)]]"><yt-img-shadow height="16" thumbnail="[[secondaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow></a></template></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-divider" class="style-scope ytd-c4-tabbed-header-renderer"></div><tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-c4-tabbed-header-renderer"><yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-tab-group-shape></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return D0s=r},{mode:1});var ha7;var Yb=function(){return _.y.apply(this,arguments)||this};
_.t(Yb,_.y);Yb.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"}}}};
Yb.prototype.dataChanged=function(){if(this.data){var r=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var f=_.yH(this.data.banner.thumbnails,this.hostElement.clientWidth);f&&(f.indexOf("//")===0&&(f="https:"+f),this.hasBannerArt=!0,_.Zh(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+f+")"}))}this.hasBannerArt!==r&&_.e(this.hostElement).querySelector("#header").fire("iron-resize")}};
Yb.prototype.updateSelectedFromBinding=function(r){this.selected=r.detail.value};
Yb.prototype.dataChanged=Yb.prototype.dataChanged;_.A([_.J(Nc1),_.B("design:type",Object)],Yb.prototype,"ytdTabbedHeaderBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Yb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.WH),_.B("design:type",Object)],Yb.prototype,"ytdGridStateAwareBehavior",void 0);_.A([_.J(_.mB.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Yb.prototype,"ytdGuideStateAwareBehavior",void 0);
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Yb.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Yb.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Number)],Yb.prototype,"selected",void 0);_.A([_.K(),_.B("design:type",Boolean)],Yb.prototype,"active",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Yb.prototype,"hasBannerArt",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Yb.prototype,"dataChanged",null);Yb=_.A([_.U({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],Yb);
_.Q(Yb,"ytd-interactive-tabbed-header-renderer",function(){if(ha7!==void 0)return ha7;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ha7=r},{mode:1});var wX1;var lY=function(){return _.y.apply(this,arguments)||this};
_.t(lY,_.y);lY.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
lY.prototype.computeActionsAlignment=function(r){return(r==null?void 0:r.actionsAlignment)||""};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],lY.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],lY.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],lY.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.B("design:type",String)],lY.prototype,"actionsAlignment",void 0);
lY=_.A([_.U({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],lY);
_.Q(lY,"ytd-page-footer-renderer",function(){if(wX1!==void 0)return wX1;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return wX1=r},{mode:1});var bm3;var pXs;var VP=function(){var r=_.y.apply(this,arguments)||this;r.isEditing=!1;r.useSlot=!1;r.isMultiline=!1;return r};
_.t(VP,_.y);_.l=VP.prototype;_.l.onKeydown=function(r){if(r.keyCode===13&&!this.isMultiline)this.onSave();else if(r.keyCode===27)this.onCancel()};
_.l.computeComponentStyle=function(r){return(r==null?0:r.style)?r.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.l.computeisMultiline=function(r){if(this.multilineOverride!==void 0)return this.multilineOverride;var f,I;return!!(r==null?0:(f=r.formField)==null?0:(I=f.textInputFormFieldRenderer)==null?0:I.isMultiline)};
_.l.computeTextDisplayed=function(r,f){if(r)return r;if(f)return f};
_.l.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.l.onSave=function(){if(this.textForm.validate()){this.textForm.save();var r=this.textForm.value;if(r)this.set("data.textDisplayed",_.iX(r));else{var f;((f=this.data)==null?0:f.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.LT("inline-form-changed",this.data));this.isEditing=!1}};
_.l.onCancel=function(){var r=_.Rr(this.data.textDisplayed);r===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(r);this.isEditing=!1};
VP.prototype.onKeydown=VP.prototype.onKeydown;_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],VP.prototype,"ytEventForwardingBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],VP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],VP.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],VP.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],VP.prototype,"isEditing",void 0);_.A([_.K(),_.B("design:type",Object)],VP.prototype,"useSlot",void 0);_.A([_.K(),_.B("design:type",Boolean)],VP.prototype,"multilineOverride",void 0);_.A([_.K(),_.B("design:type",Boolean)],VP.prototype,"enableOverlayTheme",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.B("design:type",String)],VP.prototype,"componentStyle",void 0);
_.A([_.K({computed:"computeisMultiline(data)"}),_.B("design:type",Object)],VP.prototype,"isMultiline",void 0);_.A([_.uA("#text-form"),_.B("design:type",Object)],VP.prototype,"textForm",void 0);_.A([_.kO("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],VP.prototype,"onKeydown",null);VP=_.A([_.U({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],VP);
_.Q(VP,"ytd-inline-form-renderer",function(){if(pXs!==void 0)return pXs;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return pXs=r},{mode:1});var nvi;var E2=function(){var r=_.y.apply(this,arguments)||this;r.previousSelectValue=void 0;r.selectedItemMessage=void 0;return r};
_.t(E2,_.y);E2.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
E2.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var r,f,I,C,Y=(r=this.data)==null?void 0:(f=r.dropdown)==null?void 0:(I=f.dropdownRenderer)==null?void 0:(C=I.entries)==null?void 0:C.map(function(h){return h.privacyDropdownItemRenderer});
r=_.E(Y!=null?Y:[]);for(f=r.next();!f.done;f=r.next())if((f=f.value)&&f.int32Value===this.selectedValue){this.selectedItemMessage=f.itemMessage;break}}else this.selectedItemMessage=void 0;var V;(V=this.onValueChanged)==null||V.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var S;(S=this.data)!=null&&S.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
E2.prototype.onValueChangedForSelectedValue=function(r){this.selectedValue=r.detail.value};
E2.prototype.selectedValueChanged=E2.prototype.selectedValueChanged;_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],E2.prototype,"ytEventForwardingBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],E2.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],E2.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],E2.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],E2.prototype,"data",void 0);_.A([_.K(),_.B("design:type",String)],E2.prototype,"theme",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Number)],E2.prototype,"selectedValue",void 0);_.A([_.K(),_.B("design:type",Function)],E2.prototype,"onValueChanged",void 0);
_.A([_.YN("selectedValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],E2.prototype,"selectedValueChanged",null);E2=_.A([_.U({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],E2);
_.Q(E2,"ytd-dropdown-form-field-renderer",function(){if(nvi!==void 0)return nvi;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return nvi=r},{mode:_.QQ("kevlar_poly_si_batch_j025")?1:2});var dZp;var Se=function(){return _.y.apply(this,arguments)||this};
_.t(Se,_.y);_.OC.Object.defineProperties(Se.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var r=[],f=_.E(this.data||[]),I=f.next();!I.done;I=f.next())(I=_.F(I.value,aIB))&&r.push(I);return r}}});
_.A([_.K(),_.B("design:type",Array)],Se.prototype,"data",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Se.prototype,"byline",null);Se=_.A([_.U({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],Se);
_.Q(Se,"ytd-playlist-byline-renderer",function(){if(dZp!==void 0)return dZp;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return dZp=r},{mode:1});var zaU;var xb=function(){var r=_.y.apply(this,arguments)||this;r.rtlBullet=_.N("web_playlist_stats_rtl_bullet_icon_killswitch");r.modern=_.N("web_modern_buttons");r.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return r};
_.t(xb,_.y);_.l=xb.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(r){return r?!!r.playlistCustomThumbnailRenderer:!1};
_.l.onYtNavigate=function(r,f){if(f&&f.actions&&f.actions.indexOf("shuffle")>-1){r=_.a().resolve(_.WP);var I=f.tempData||{};I.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);f.tempData=I;r.isShuffleNextPlaylist=!0}};
_.l.onUpdatePlaylistAction=function(r){var f;r=(f=_.F(r,_.yJ3))==null?void 0:f.updatedRenderer;if(f=_.F(r,tl))this.data=f};
_.l.computeStyleType=function(r){return r?r.toLowerCase().replace(/_/g,"-"):""};
_.l.computeThumbnailWidth=function(r){return r==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.l.computeHideThumbnailAria=function(r){if(r==null?0:r.thumbnailOverlays)for(var f=0;f<r.thumbnailOverlays.length;f++){var I=void 0;if((I=r.thumbnailOverlays[f])==null?0:I.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
xb.prototype.onYtNavigate=xb.prototype.onYtNavigate;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],xb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],xb.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],xb.prototype,"ytComponentBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],xb.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],xb.prototype,"rtlBullet",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.B("design:type",String)],xb.prototype,"styleType",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.B("design:type",Number)],xb.prototype,"thumbnailWidth",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],xb.prototype,"modern",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.B("design:type",Boolean)],xb.prototype,"isCustomThumbnail",void 0);_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[Event,Object]),_.B("design:returntype")],xb.prototype,"onYtNavigate",null);
xb=_.A([_.U({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],xb);
_.Q(xb,"ytd-playlist-sidebar-primary-info-renderer",function(){if(zaU!==void 0)return zaU;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return zaU=r},{mode:1});var Mx6;var hj=function(){return _.y.apply(this,arguments)||this};
_.t(hj,_.y);hj.prototype.computeOwnerVisibility=function(r){return!(!r.videoOwner&&!r.button)};
hj.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"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],hj.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],hj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],hj.prototype,"data",void 0);hj=_.A([_.U({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],hj);
_.Q(hj,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(Mx6!==void 0)return Mx6;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Mx6=r},{mode:1});var gv7;var wT=function(){var r=_.y.apply(this,arguments)||this;r.expanded=!1;r.isCompact=!1;return r};
_.t(wT,_.y);_.l=wT.prototype;_.l.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.l.dataChanged=function(){this.data&&_.KK(_.e(this.text),_.oCC(_.Z8U,_.Rr(this.data.text||null)))};
_.l.computeAutoScrollEnabled=function(r,f){return r&&!f};
_.l.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.l.toggleOnTap=function(){this.expanded=!this.expanded};
wT.prototype.expandedChanged=wT.prototype.expandedChanged;wT.prototype.dataChanged=wT.prototype.dataChanged;_.A([_.J(_.xf6),_.B("design:type",Object)],wT.prototype,"ytdAutoScrollBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],wT.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],wT.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],wT.prototype,"expanded",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],wT.prototype,"isCompact",void 0);_.A([_.K({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.B("design:type",Boolean)],wT.prototype,"autoScrollEnabled",void 0);_.A([_.uA("#text"),_.B("design:type",Object)],wT.prototype,"text",void 0);_.A([_.uA("#expander-icon"),_.B("design:type",Object)],wT.prototype,"expanderIcon",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wT.prototype,"dataChanged",null);_.A([_.Bt("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wT.prototype,"expandedChanged",null);wT=_.A([_.U({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],wT);
_.Q(wT,"ytd-channel-legal-info-renderer",function(){if(gv7!==void 0)return gv7;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return gv7=r},{mode:1});var aOp;var XX3=_.VR("DOWNLOAD",{},"Download"),NoY=_.VR("DOWNLOADING",{},"Downloading"),$Z1=_.VR("DOWNLOADED",{},"Downloaded"),bY=function(){var r=_.y.apply(this,arguments)||this;r.downloadProgress=0;r.isDownloadComplete=!1;r.transferState="TRANSFER_STATE_UNKNOWN";return r};
_.t(bY,_.y);_.l=bY.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.dataChanged=function(){var r;(r=this.data)!=null&&r.tooltip||(r=_.P1(_.K2().getState(),this.playlistId),this.updateButtonState(r))};
_.l.computePlaylistId=function(r){return r};
_.l.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.l.updateButtonState=function(r){if(this.data&&(this.data.tooltip!==NoY||!_.hQ(r))){this.isDownloadComplete=!1;switch(r){case "TRANSFER_STATE_UNKNOWN":r=XX3;var f="OFFLINE_DOWNLOAD";var I="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":r=$Z1;f="OFFLINE_PIN";I="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":r=NoY;f="OFFLINE_DOWNLOADING_ZERO";I="ACTION_REMOVE_WITH_PROMPT";
break;default:r=XX3,f="OFFLINE_DOWNLOAD",I="ACTION_ADD"}var C=Object.assign({},this.data);C.tooltip=r;C.accessibilityData={accessibilityData:{label:r}};C.icon={iconType:f};C.size="SIZE_DEFAULT";_.F(C.command,_.Y4)&&(_.F(C.command,_.Y4).action=I);this.set("data",C)}};
_.l.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var r="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?r="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?r="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?r="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?r="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?r="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(r="OFFLINE_PIN",this.isDownloadComplete=!0);var f;r!==((f=this.data.icon)==null?void 0:f.iconType)&&(f=Object.assign({},this.data),f.tooltip=NoY,f.accessibilityData={accessibilityData:{label:NoY}},f.icon={iconType:r},_.F(f.command,_.Y4)&&(_.F(f.command,_.Y4).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",f))}};
bY.prototype.updateProgress=bY.prototype.updateProgress;bY.prototype.onTransferStateChanged=bY.prototype.onTransferStateChanged;bY.prototype.dataChanged=bY.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],bY.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],bY.prototype,"ytdReduxBehavior",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],bY.prototype,"forceIconButton",void 0);
_.A([_.K({value:!0}),_.B("design:type",Boolean)],bY.prototype,"forceIconOnly",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],bY.prototype,"overrides",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],bY.prototype,"buttonTooltipPosition",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],bY.prototype,"styleActionButton",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],bY.prototype,"disableTextTransform",void 0);
_.A([_.K({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.B("design:type",String)],bY.prototype,"playlistId",void 0);_.A([_.K(),_.B("design:type",Object)],bY.prototype,"data",void 0);_.A([_.K({selector:_.yLd,selectorArgs:["playlistId"]}),_.B("design:type",Object)],bY.prototype,"downloadProgress",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],bY.prototype,"isDownloadComplete",void 0);
_.A([_.K({selector:_.P1,selectorArgs:["playlistId"]}),_.B("design:type",String)],bY.prototype,"transferState",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],bY.prototype,"showTooltips",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],bY.prototype,"sendCommandWhenDisabled",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],bY.prototype,"disabled",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bY.prototype,"dataChanged",null);_.A([_.YN("transferState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bY.prototype,"onTransferStateChanged",null);_.A([_.YN("downloadProgress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bY.prototype,"updateProgress",null);
bY=_.A([_.U({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],bY);
_.Q(bY,"ytd-download-playlist-button-renderer",function(){if(aOp!==void 0)return aOp;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return aOp=r},{mode:1});var Fs3;_.Kv(_.Rt,"thumbnail-overlay-button-view-model",{props:{data:_.jv,lockupExperiments:_.jv}});var pa=function(){var r=_.y.apply(this,arguments)||this;r.isSquare=!1;r.isVertical=!1;return r};
_.t(pa,_.y);pa.prototype.computeIsSquare=function(r){return r!=null&&r.thumbnail?AX2(r.thumbnail)==="SQUARE":!1};
pa.prototype.computeIsVertical=function(r){return r!=null&&r.thumbnail?AX2(r.thumbnail)==="VERTICAL":!1};
pa.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],pa.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.B("design:type",Object)],pa.prototype,"isSquare",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.B("design:type",Object)],pa.prototype,"isVertical",void 0);
_.A([_.K(),_.B("design:type",Object)],pa.prototype,"data",void 0);pa=_.A([_.U({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],pa);
_.Q(pa,"ytd-hero-playlist-thumbnail-renderer",function(){if(Fs3!==void 0)return Fs3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Fs3=r},{mode:1});var na=function(){var r=_.y.apply(this,arguments)||this;r.isDarkTheme=!1;r.isUltraWide=!1;r.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return r};
_.t(na,_.y);_.l=na.prototype;_.l.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.a();var r;(r=_.a().resolve(_.ZY(_.ip)))!=null&&(r.headerElement=this.hostElement)};
_.l.detached=function(){var r;(r=_.a().resolve(_.ZY(_.ip)))!=null&&(r.headerElement=void 0)};
_.l.onUpdateHeader=function(r){(r=r.detail)&&this.set("data",r)};
_.l.computeTextDisplayed=function(r){if(r)return r.textDisplayed?r.textDisplayed:r.placeholder};
_.l.gradientColorToLinearGradientStop=function(r){var f=this.isDarkTheme?r.darkThemeColor:r.lightThemeColor;return f?_.g_(f)+" "+((r==null?void 0:r.startLocation)||0)*100+"%":"transparent"};
_.l.onWindowResize=function(){var r;((r=this.data)==null?0:r.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.l.onIronResize=function(r){this.isUltraWide=!r.detail.value};
_.l.onDarkModeToggledAction=function(r){this.isDarkTheme=r};
_.l.onUpdatePlaylistName=function(r){var f=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},r.detail.value));_.UC(this,function(){var I;(I=f.editableTitle)==null||I.resize()})};
_.l.onUpdatePlaylistDescription=function(r){var f=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},r.detail.value));_.UC(this,function(){var I;(I=f.editableDescriptionInlineExpander)==null||I.resize()})};
_.l.getCinematicData=function(r){return _.F(r==null?void 0:r.cinematicContainer,_.aS)};
_.OC.Object.defineProperties(na.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 r,f=(r=this.getCinematicData(this.data))==null?void 0:r.config;return(r=this.isDarkTheme?f==null?void 0:f.darkThemeBackgroundColor:f==null?void 0:f.lightThemeBackgroundColor)?"background-color:"+_.MG(r)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var r;return _.F((r=this.data)==null?void 0:r.descriptionForm,b4q)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var r=this,f,I,C;return"background:linear-gradient(to bottom, "+(((C=(f=this.getCinematicData(this.data))==null?void 0:(I=f.gradientColorConfig)==null?void 0:I.map(function(Y){return r.gradientColorToLinearGradientStop(Y)}))==null?void 0:C.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var r;return _.Rr((r=this.data)==null?void 0:r.descriptionTapText)}}});
na.prototype.onUpdateHeader=na.prototype.onUpdateHeader;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],na.prototype,"actionHandlerBehavior",void 0);_.A([_.uA("#description-inline-expander"),_.B("design:type",Object)],na.prototype,"descriptionInlineExpander",void 0);
_.A([_.uA("#editable-description-inline-expander"),_.B("design:type",Object)],na.prototype,"editableDescriptionInlineExpander",void 0);_.A([_.K(),_.B("design:type",Object)],na.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],na.prototype,"isUltraWide",void 0);_.A([_.uA("#editable-title-display"),_.B("design:type",Object)],na.prototype,"editableTitle",void 0);_.A([_.R("isUltraWide"),_.B("design:type",Object),_.B("design:paramtypes",[])],na.prototype,"maxDescriptionLines",null);
_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],na.prototype,"noCinematicData",null);_.A([_.kO("yt-new-playlist-header"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],na.prototype,"onUpdateHeader",null);_.A([_.R("data","isDarkTheme"),_.B("design:type",Object),_.B("design:paramtypes",[])],na.prototype,"backgroundStyle",null);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],na.prototype,"descriptionFormData",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],na.prototype,"getDropdownTheme",null);_.A([_.R("data","isDarkTheme"),_.B("design:type",String),_.B("design:paramtypes",[])],na.prototype,"gradientStyle",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],na.prototype,"descriptionTapText",null);
na=_.A([_.U({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],na);
_.Q(na,"ytd-playlist-header-renderer",function(){if(bm3!==void 0)return bm3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return bm3=r},{mode:_.QQ("kevlar_poly_si_batch_j078")?1:2});var P52;var txV;var dT=function(){return _.y.apply(this,arguments)||this};
_.t(dT,_.y);dT.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],dT.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],dT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],dT.prototype,"data",void 0);dT=_.A([_.U({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],dT);
_.Q(dT,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(txV!==void 0)return txV;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return txV=r},{mode:1});var zP=function(){return _.y.apply(this,arguments)||this};
_.t(zP,_.y);
zP.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}}}}};
zP.prototype.computeUsePremiumShowStyle=function(r){if(!r||!r.items)return!1;for(var f=0;f<r.items.length;f++)if(_.F(r.items[f],tl)){var I=void 0;return((I=_.F(r.items[f],tl))==null?void 0:I.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],zP.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],zP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],zP.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.B("design:type",Boolean)],zP.prototype,"usePremiumShowStyle",void 0);
zP=_.A([_.U({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],zP);
_.Q(zP,"ytd-playlist-sidebar-renderer",function(){if(P52!==void 0)return P52;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return P52=r},{mode:1});var ToU;var c$q=_.Hc(function(r){var f=r.data;var I=r.noPadding;var C=r.enableBanner;var Y=r.cinematicContainerTopbarOffset;var V=r.allowCinematicContainerOverflow;var S=r.displayAsSidebar;r=r.className;_.az(function(){f().tagManagerId&&(_.hK(f().tagManagerId,_.Lz("GL")),Df6(f().tagManagerId))});
var h=_.VS(qI7,function(){return f().pageHeaderEntityKey});
return _.p("yt-page-header-renderer",{class:_.qd("page-header-renderer-wiz",r)},_.p(_.X1,{data:function(){var w;return((w=h())==null?0:w.header)?h().header:(S==null?0:S())&&f().sidebarContent?f().sidebarContent:f().content}},{pageHeaderViewModel:function(w){return _.p(_.urq,{data:w.data,
noPadding:I,enableBanner:C,cinematicContainerTopbarOffset:Y,allowCinematicContainerOverflow:V,displayAsSidebar:function(){return(S==null?void 0:S())&&f().enableSidebarView}})}}))},"ti");
c$q.idomCompat=!0;_.Kv(c$q,"yt-page-header-renderer",{props:{data:_.jv,noPadding:_.jv,enableBanner:_.jv,cinematicContainerTopbarOffset:_.jv,allowCinematicContainerOverflow:_.jv,displayAsSidebar:_.jv,className:_.jv}});_.Kv(_.B$V,"yt-image-banner-view-model",{props:{data:_.jv,isPositionRelative:_.jv}});var MO=function(){var r=_.y.apply(this,arguments)||this;r.expandableCustomTabRenderable=function(f){return GcY(f,function(){return void r.onSearchNavigate()})};
r.isRichGrid=!1;r.isConstrainedList=!1;r.richGridMiniMode=!1;r.richGridStyle="RICH_GRID_STYLE_UNKNOWN";r.isRichGridShorts=!1;r.responsiveSizing="COMPACT";r.disableGridStateAware=!1;r.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return r};
_.t(MO,_.y);_.l=MO.prototype;_.l.computeHeaderDisabled=function(r,f){return f||!r||this.tabsHidden};
_.l.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.l.computeIsRichGridShorts=function(r){return r==="RICH_GRID_STYLE_SHORTS_GRID"||r==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.l.computeImageBannerViewModel=function(){var r,f;return _.F((f=_.F((r=this.data)==null?void 0:r.content,_.TjD))==null?void 0:f.banner,_.Nj8)};
_.l.computeHasCinematicContainer=function(){var r,f;return!((f=_.F((r=this.data)==null?void 0:r.content,_.TjD))==null||!f.background)};
_.l.handleHeaderResize=function(){var r=_.e(this.hostElement).querySelector("#header");r&&_.kA(r,"iron-resize")};
_.l.handleInsertTabCommand=function(r){var f=_.F(r,XnY);f&&(f.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(I){return I.tabRenderer&&I.tabRenderer.tabIdentifier===f.tabIdentifier})||this.splice("tabs",f.tabIndex||-1,0,f.tab))};
_.l.handleRefreshChannelTabAction=function(r){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===r&&_.kA(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.l.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Zh(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.l.observerRichGridSlimItemsPerRow=function(){_.Zh(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.l.updateCssVars=function(){this.richGridItemsPerRow&&_.Zh(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Bw("rich_grid_max_item_width",500))+16)-16+"px"})};
_.l.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Zh(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.l.onDataChanged=function(){this.handleHeaderResize()};
_.l.onWindowResize=function(){this.handleHeaderResize()};
_.l.onFocusedChanged=function(r){(r=_.jl(r))&&r.is==="tp-yt-paper-tab"&&r.hasRipple()&&(r.getRipple().holdDown=!r.pointerDown&&r.focused)};
_.l.updateSelectedFromBinding=function(r){this.ytdTabbedHeaderBehavior.selected=r.detail.value};
_.l.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.OC.Object.defineProperties(MO.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:BZ3(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.imageBannerViewModel)==null?void 0:r.style)==="IMAGE_BANNER_STYLE_INSET"}}});
MO.prototype.onDataChanged=MO.prototype.onDataChanged;MO.prototype.updateCssVarsForResponsiveGrid=MO.prototype.updateCssVarsForResponsiveGrid;MO.prototype.updateCssVars=MO.prototype.updateCssVars;MO.prototype.observerRichGridSlimItemsPerRow=MO.prototype.observerRichGridSlimItemsPerRow;MO.prototype.observerRichGridItemsPerRow=MO.prototype.observerRichGridItemsPerRow;_.A([_.J(_.WH),_.B("design:type",Object)],MO.prototype,"ytdGridStateAwareBehavior",void 0);
_.A([_.J(Nc1),_.B("design:type",Object)],MO.prototype,"ytdTabbedHeaderBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],MO.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],MO.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.mB.YtdGuideStateAwareBehavior),_.B("design:type",Object)],MO.prototype,"ytdGuideStateAwareBehavior",void 0);
_.A([_.J(_.PH),_.B("design:type",Object)],MO.prototype,"ytdReduxBehavior",void 0);_.A([_.uA("#tabs"),_.B("design:type",Object)],MO.prototype,"tabsElement",void 0);_.A([_.K(),_.B("design:type",Array)],MO.prototype,"tabs",void 0);_.A([_.K(),_.B("design:type",Object)],MO.prototype,"expandableCustomTabRenderable",void 0);_.A([_.R("tabs.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],MO.prototype,"tabGroupShape",null);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],MO.prototype,"isRichGrid",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],MO.prototype,"isConstrainedList",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.ar}),_.B("design:type",Object)],MO.prototype,"richGridMiniMode",void 0);_.A([_.K({selector:function(r){return r.ui.richGridStyle}}),
_.B("design:type",Object)],MO.prototype,"richGridStyle",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.B("design:type",Object)],MO.prototype,"isRichGridShorts",void 0);_.A([_.K({selector:_.XN}),_.B("design:type",Number)],MO.prototype,"richGridItemsPerRow",void 0);_.A([_.K({selector:function(r){return r.ui.richGridContainerWidth}}),
_.B("design:type",Number)],MO.prototype,"richGridContainerWidth",void 0);_.A([_.K({selector:_.t8$}),_.B("design:type",Number)],MO.prototype,"richGridSlimItemsPerRow",void 0);_.A([_.K(),_.B("design:type",Object)],MO.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],MO.prototype,"responsiveSizing",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],MO.prototype,"disableGridStateAware",void 0);
_.A([_.K({computed:"computeImageBannerViewModel(data)"}),_.B("design:type",Object)],MO.prototype,"imageBannerViewModel",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.B("design:type",Boolean)],MO.prototype,"hasCinematicContainer",void 0);_.A([_.K({selector:_.qg7,reflectToAttribute:!0}),_.B("design:type",Boolean)],MO.prototype,"guideIsVisibleButNotPersistent",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("imageBannerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],MO.prototype,"hasBanner",null);_.A([_.K({reflectToAttribute:!0}),_.R("imageBannerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],MO.prototype,"hasInsetBanner",null);_.A([_.K({computed:"computeTabsHidden(tabs)",value:!0}),_.B("design:type",Boolean)],MO.prototype,"tabsHidden",void 0);
_.A([_.Bt("richGridItemsPerRow","isRichGrid"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],MO.prototype,"observerRichGridItemsPerRow",null);_.A([_.Bt("richGridSlimItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],MO.prototype,"observerRichGridSlimItemsPerRow",null);
_.A([_.Bt("richGridItemsPerRow","richGridMiniMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],MO.prototype,"updateCssVars",null);_.A([_.Bt("richGridContainerWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],MO.prototype,"updateCssVarsForResponsiveGrid",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],MO.prototype,"onDataChanged",null);
MO=_.A([_.U({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],MO);
_.Q(MO,"ytd-tabbed-page-header",function(){if(ToU!==void 0)return ToU;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ToU=r},{mode:1});var Ws6;var gT=function(){return _.y.apply(this,arguments)||this};
_.t(gT,_.y);gT.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Zh(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.OC.Object.defineProperties(gT.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var r,f;return this.componentBehavior.computeIcon_(((f=_.F((r=this.data)==null?void 0:r.badge,_.aeX))==null?void 0:f.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var r,f;return(f=_.F((r=this.data)==null?void 0:r.badge,_.aeX))==null?void 0:f.label}}});
gT.prototype.observerRichGridItemsPerRow=gT.prototype.observerRichGridItemsPerRow;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],gT.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],gT.prototype,"componentBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],gT.prototype,"ytdReduxBehavior",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.ar}),_.B("design:type",Boolean)],gT.prototype,"richGridMiniMode",void 0);
_.A([_.K({selector:_.XN}),_.B("design:type",Number)],gT.prototype,"richGridItemsPerRow",void 0);_.A([_.K(),_.B("design:type",Object)],gT.prototype,"data",void 0);_.A([_.Bt("richGridItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gT.prototype,"observerRichGridItemsPerRow",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],gT.prototype,"badgeIconName",null);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],gT.prototype,"badgeLabel",null);gT=_.A([_.U({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],gT);
_.Q(gT,"ytd-member-hub-profile-renderer",function(){if(Ws6!==void 0)return Ws6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Ws6=r},{mode:1});var Ls3;var aU=function(){return _.y.apply(this,arguments)||this};
_.t(aU,_.y);aU.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],aU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],aU.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],aU.prototype,"data",void 0);aU=_.A([_.U({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],aU);
_.Q(aU,"ytd-settings-sidebar-renderer",function(){if(Ls3!==void 0)return Ls3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Ls3=r},{mode:1});var mZ6;var Xy=function(){var r=_.y.apply(this,arguments)||this;r.expandableCustomTabRenderable=function(f){return GcY(f,function(){return void r.onSearchNavigate()})};
return r};
_.t(Xy,_.y);Xy.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Xy.prototype.onSearchNavigate=function(){this.selected=void 0};
Xy.prototype.onTabsChange=function(){var r,f=(r=this.tabs)==null?void 0:r.findIndex(function(I){var C;return I==null?void 0:(C=I.tabRenderer)==null?void 0:C.selected});
f!==void 0&&(this.selected=f)};
Xy.prototype.onTabsActive=function(r){if(this.tabs!==void 0){var f,I;(r=(f=this.tabs[r.detail.selected])==null?void 0:(I=f.tabRenderer)==null?void 0:I.endpoint)&&_.kA(this.hostElement,"yt-navigate",{endpoint:r})}};
_.OC.Object.defineProperties(Xy.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:BZ3(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
Xy.prototype.onTabsChange=Xy.prototype.onTabsChange;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Xy.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.WH),_.B("design:type",Object)],Xy.prototype,"ytdGridStateAwareBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.mB.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Xy.prototype,"ytdGuideStateAwareBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],Xy.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Array)],Xy.prototype,"tabs",void 0);_.A([_.K(),_.B("design:type",Number)],Xy.prototype,"selected",void 0);_.A([_.R("tabs.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],Xy.prototype,"tabGroupShape",null);_.A([_.K(),_.B("design:type",Object)],Xy.prototype,"expandableCustomTabRenderable",void 0);
_.A([_.R("tabs"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Xy.prototype,"tabsEnabled",null);_.A([_.YN("tabs"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Xy.prototype,"onTabsChange",null);Xy=_.A([_.U({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],Xy);
_.Q(Xy,"ytd-topic-channel-details-renderer",function(){if(mZ6!==void 0)return mZ6;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return mZ6=r},{mode:1});var ead;var NO=function(){var r=_.y.apply(this,arguments)||this;r.disableGridStateAware=!1;return r};
_.t(NO,_.y);NO.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]]"}}}}}};
NO.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
NO.prototype.updateCssVars=function(){_.Zh(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Bw("rich_grid_max_item_width",500))+16)-16+"px"})};
NO.prototype.updateCssVars=NO.prototype.updateCssVars;NO.prototype.activeChanged=NO.prototype.activeChanged;_.A([_.J(_.mB.YtdGuideStateAwareBehavior),_.B("design:type",Object)],NO.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],NO.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],NO.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],NO.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],NO.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Array)],NO.prototype,"tabs",void 0);_.A([_.K(),_.B("design:type",Boolean)],NO.prototype,"active",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],NO.prototype,"disableGridStateAware",void 0);
_.A([_.K({selector:_.XN}),_.B("design:type",Number)],NO.prototype,"richGridItemsPerRow",void 0);_.A([_.K({selector:_.ar}),_.B("design:type",Boolean)],NO.prototype,"richGridMiniMode",void 0);_.A([_.uA("ytd-carousel-item-renderer"),_.B("design:type",Object)],NO.prototype,"carousel",void 0);_.A([_.Bt("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NO.prototype,"activeChanged",null);
_.A([_.Bt("richGridItemsPerRow","richGridMiniMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NO.prototype,"updateCssVars",null);NO=_.A([_.U({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],NO);
_.Q(NO,"ytd-carousel-header-renderer",function(){if(ead!==void 0)return ead;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return ead=r},{mode:1});var J$d;var jW6=_.op(["https://www.google-analytics.com/analytics.js"]),$b=function(){var r=_.y.apply(this,arguments)||this;r.scriptAnalyticsAdded=!1;return r};
_.t($b,_.y);$b.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var r,f=(r=this.data)==null?void 0:r.tagManagerId;f&&(_.hK(f,_.Lz("GL")),Df6(f))};
$b.prototype.sendGoogleAnalyticsPageview=function(r){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var I=_.XE.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(I)};
var f=window.ga;f("set","page",window.location.pathname);f.l=+new Date;f("set","forceSSL",!0);f("create",r,"'auto'");f("send","pageview")};
$b.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var r=_.wL("SCRIPT");r.name="ga-analytics";var f=_.u_(jW6);_.vL(r,f);r.async=!0;_.e(this.hostElement).appendChild(r)};
$b.prototype.dataChanged=$b.prototype.dataChanged;_.A([_.K(),_.B("design:type",Object)],$b.prototype,"data",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$b.prototype,"dataChanged",null);$b=_.A([_.U({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],$b);
_.Q($b,"ytd-channel-metadata-renderer",function(){if(J$d!==void 0)return J$d;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return J$d=r},{mode:1});var Hm6;var ims;var Fy=function(){return _.y.apply(this,arguments)||this};
_.t(Fy,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Fy.prototype,"data",void 0);Fy=_.A([_.U({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],Fy);
_.Q(Fy,"ytd-sub-feed-option-renderer",function(){if(ims!==void 0)return ims;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ims=r},{mode:1});var Ra6;var Pv=function(){return _.y.apply(this,arguments)||this};
_.t(Pv,_.y);Pv.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Pv.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Pv.prototype,"ytRendererStamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Pv.prototype,"data",void 0);Pv=_.A([_.U({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],Pv);
_.Q(Pv,"ytd-sub-feed-selector-renderer",function(){if(Ra6!==void 0)return Ra6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Ra6=r},{mode:1});var tj=function(){return _.y.apply(this,arguments)||this};
_.t(tj,_.y);
tj.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}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],tj.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],tj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],tj.prototype,"data",void 0);tj=_.A([_.U({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],tj);
_.Q(tj,"ytd-browse-feed-actions-renderer",function(){if(Hm6!==void 0)return Hm6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Hm6=r},{mode:1});var vvU;var Ks6;var TP=function(){return _.y.apply(this,arguments)||this};
_.t(TP,_.y);TP.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],TP.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],TP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],TP.prototype,"data",void 0);TP=_.A([_.U({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],TP);
_.Q(TP,"ytd-mini-channel-renderer",function(){if(Ks6!==void 0)return Ks6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Ks6=r},{mode:1});var y$V;var cv=function(){return _.y.apply(this,arguments)||this};
_.t(cv,_.y);cv.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],cv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],cv.prototype,"data",void 0);cv=_.A([_.U({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],cv);
_.Q(cv,"ytd-vertical-channel-section-renderer",function(){if(y$V!==void 0)return y$V;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return y$V=r},{mode:1});var Wv=function(){return _.y.apply(this,arguments)||this};
_.t(Wv,_.y);Wv.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Wv.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Wv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Wv.prototype,"data",void 0);Wv=_.A([_.U({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Wv);
_.Q(Wv,"ytd-browse-secondary-contents-renderer",function(){if(vvU!==void 0)return vvU;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
return vvU=r},{mode:1});var UZY;var La=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};r.notActive=!1;r.isConstrainedList=!1;return r};
_.t(La,_.y);_.l=La.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(r){var f;return(r==null?void 0:(f=r.webComponentHint)==null?void 0:f.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(r,f){var I="data.tabs.#"+f+".";r.tabs[f].tabRenderer?I+="tabRenderer.":r.tabs[f].expandableTabRenderer&&(I+="expandableTabRenderer.");return I+"content.sectionListRenderer"};
_.l.computeDisplayedContent=function(r){this.unlinkPaths("content");if(r&&r.tabs)for(var f=r.tabs.length,I=0;I<f;I++){var C=r.tabs[I].tabRenderer||r.tabs[I].expandableTabRenderer;if(C.selected&&C.content)return this.linkPaths("content",this.getPath(r,I)),C.content}return null};
_.l.computeHasSecondaryColumnData=function(r){return!!r&&!!r.secondaryContents};
_.l.onRetrieveLocation=function(r,f){f.locationRetrieved(f.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);r.stopPropagation()};
_.l.onYtServiceRequestSent=function(r,f){_.N("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(f)};
_.l.onYtServiceRequestCompleted=function(r,f){_.N("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(f)};
_.l.onReplaceFeedContentAction=function(r){if(!_.N("replace_feed_content_action_killswitch")&&!this.notActive){var f;(r=(f=_.F(r,SAp))==null?void 0:f.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(r)}};
_.l.handleServiceRequestActions=function(r){if(r=r.actions){r=_.E(r);for(var f=r.next();!f.done;f=r.next()){f=f.value;var I=void 0;((I=_.F(f,SAp))==null?0:I.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.F(f,SAp).items)}}};
La.prototype.onYtServiceRequestCompleted=La.prototype.onYtServiceRequestCompleted;La.prototype.onYtServiceRequestSent=La.prototype.onYtServiceRequestSent;La.prototype.onRetrieveLocation=La.prototype.onRetrieveLocation;_.A([_.J(_.WH),_.B("design:type",Object)],La.prototype,"ytdGridStateAwareBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],La.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],La.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],La.prototype,"data",void 0);_.A([_.K({computed:"computeDisplayedContent(data)"}),_.B("design:type",Object)],La.prototype,"content",void 0);
_.A([_.K({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],La.prototype,"hasSecondaryColumnData",void 0);_.A([_.K({value:function(){return window.outerHeight>1024?3:2}}),
_.B("design:type",Number)],La.prototype,"initialCount",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],La.prototype,"pageSubtype",void 0);_.A([_.uA("ytd-section-list-renderer"),_.B("design:type",Object)],La.prototype,"listRenderer",void 0);_.A([_.K(),_.B("design:type",Object)],La.prototype,"notActive",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],La.prototype,"isConstrainedList",void 0);
_.A([_.K(),_.B("design:type",String)],La.prototype,"responsiveSizing",void 0);_.A([_.kO("yt-retrieve-location"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],La.prototype,"onRetrieveLocation",null);_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],La.prototype,"onYtServiceRequestSent",null);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],La.prototype,"onYtServiceRequestCompleted",null);La=_.A([_.U({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],La);
_.Q(La,"ytd-two-column-browse-results-renderer",function(){if(UZY!==void 0)return UZY;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return UZY=r},{mode:2});var sW6;var Omi;var mP=function(){var r=_.y.apply(this,arguments)||this;r.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"]);r.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"]);r.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return r};
_.t(mP,_.y);_.l=mP.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(r){r&&this.elementsPerRow!==r&&(this.elementsPerRow=r)};
_.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(r){return r};
_.l.observerElementsPerRow=function(){this.elementsPerRow&&_.Zh(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.l.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.l.requestElementsPerRow=function(){_.kA(this.hostElement,"yt-request-elements-per-row")};
mP.prototype.onIsVisibleChanged_=mP.prototype.onIsVisibleChanged_;mP.prototype.observerElementsPerRow=mP.prototype.observerElementsPerRow;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],mP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],mP.prototype,"actionHandlerBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],mP.prototype,"data",void 0);_.A([_.K({value:6,reflectToAttribute:!0}),_.B("design:type",Number)],mP.prototype,"elementsPerRow",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],mP.prototype,"wrapButtons",void 0);_.A([_.K({value:_.Lz("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.B("design:type",Boolean)],mP.prototype,"isMusic",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.B("design:type",String)],mP.prototype,"alertStyle",void 0);_.A([_.K({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.B("design:type",Function)],mP.prototype,"dismissBoundButtonTap_",void 0);_.A([_.K({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.B("design:type",Function)],mP.prototype,"acceptBoundButtonTap_",void 0);_.A([_.Bt("elementsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mP.prototype,"observerElementsPerRow",null);_.A([_.Bt("data.isVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mP.prototype,"onIsVisibleChanged_",null);mP=_.A([_.zX({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],mP);
_.Q(mP,"yt-alert-with-actions-renderer",function(){if(Omi===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;sW6===void 0&&(sW6=document.createElement("template"));var C=sW6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Omi=r}r=Omi;return r},{mode:2});_.Kv(_.Hc(function(r){function f(O){var k={};return _.p(_.wW,{text:O,className:_.qd("ytPersonalGreetingViewModelHeadline",(k.ytPersonalGreetingViewModelHeadlineSmall=function(){return h()===48},k))})}
function I(O,k){return _.p("span",{el:O,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},f(k))}
var C=_.yy(),Y=_.yy(),V=_.yy(),S=function(){return r.data().canvasPromoData},h=function(){var O;
return(O=r.data().bannerHeight)!=null?O:56},w=_.E(_.ld({content:""},void 0,"rcUSic")),n=w.next().value,d=w.next().value,z=_.ipR(C,{throttleMs:100}),g=_.ipR(Y,{throttleMs:100}),X=_.ipR(V,{throttleMs:100});
w=_.E(_.ld(!0,void 0,"b0Yv9d"));var P=w.next().value,W=w.next().value;w=_.E(_.ld(!0,void 0,"ByEGnd"));var m=w.next().value,v=w.next().value;_.az(function(){v(g.width()-z.width()>1);W(X.width()+(r.data().avatar?48:0)-z.width()>1);d(P()?r.data().shorterGreeting:r.data().greeting)},"nSIsDe");
_.KF(C,function(){var O;return(O=r.data())==null?void 0:O.rendererContext},void 0,void 0,void 0,!0);
return _.p("yt-personal-greeting-view-model",{el:C,"aria-hidden":function(){return m()},
class:_.qd(r.className,"ytPersonalGreetingViewModelHost"),style:_.lB({height:(0,_.d6)(function(){return m()?0:h()})})},_.p(_.M,{cond:function(){return r.data().avatar&&!P()},
then:function(){return _.p(_.X1,{data:function(){return r.data().avatar}},{decoratedAvatarViewModel:function(O){return _.p(_.dN,{data:O.data,
className:_.qd("ytPersonalGreetingViewModelAvatar")})}})}}),_.p("h1",null,f(function(){var O;
return(S==null?void 0:(O=S())==null?void 0:O.headline)||n()})),I(V,function(){return r.data().greeting}),I(Y,function(){return r.data().shorterGreeting}))},"ui"),"yt-personal-greeting-view-model",{props:{data:_.jv,
className:_.jv}});var ee=function(){var r=_.y.apply(this,arguments)||this;r.hidden=!1;r.isConstrainedList=!1;r.darkerDarkTheme=_.N("web_darker_dark_theme");r.responsiveSizing="COMPACT";r.attachedPlayers=_.N("kevlar_channel_trailer_multi_attach")?[]:void 0;r.player=null;r.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return r};
_.t(ee,_.y);_.l=ee.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:{c4TabbedHeaderRenderer:{component:"ytd-c4-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[fluidWidth]]"},noInjection:!0},pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",
isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",
tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.l.created=function(){var r=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){r.disposeMastheadAd()}]};
_.l.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new Pe1(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 r=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=r)};
_.l.tabsChanged=function(){var r=this,f,I,C,Y;if(this.pageSubtype==="channels"||_.N("kevlar_tab_gestures_for_tabbed_header_data")&&(((f=this.data)==null?0:(I=f.header)==null?0:I.c4TabbedHeaderRenderer)||((C=this.data)==null?0:(Y=C.header)==null?0:Y.carouselHeaderRenderer)))this.tabGestures=new cU(this.contents,this.contents,this.hostElement,this.header,function(w){r.ytdReduxBehavior.dispatch(w)});
var V,S,h;f=(V=this.data)==null?void 0:(S=V.contents)==null?void 0:(h=S.twoColumnBrowseResultsRenderer)==null?void 0:h.tabs;this.header&&this.header.firstChild&&(this.header.firstChild.tabs=f);this.tabGestures&&this.tabGestures.tabsChanged(f)};
_.l.channelIdChanged=function(){if(this.tabGestures){var r,f,I,C=this.tabGestures,Y=(r=this.data)==null?void 0:(f=r.header)==null?void 0:(I=f.c4TabbedHeaderRenderer)==null?void 0:I.channelId;Y&&Y!==C.currentChannelId&&(C.scrollPositionForTabs.clear(),C.currentChannelId=Y,C.lastVisitedTabScrollPosition=void 0,C.tabsStartAtInPx=0)}};
_.l.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.l.engagementPanelsChanged=function(){var r=_.a().resolve(_.dD);if(r){if(this.engagementPanels)for(var f=_.E(this.engagementPanels),I=f.next();!I.done;I=f.next()){var C=void 0;(I=(C=I.value.identifier)==null?void 0:C.tag)&&r.panelMap.delete(I)}this.engagementPanels=[];var Y;f=_.E(((Y=this.data)==null?void 0:Y.panels)||[]);for(Y=f.next();!Y.done;Y=f.next()){Y=_.F(Y.value,_.fui);var V=I=void 0,S=void 0,h=void 0;if(C=((I=Y)==null?void 0:I.targetId)||((V=Y)==null?void 0:V.panelIdentifier)||((S=Y)==null?
void 0:(h=S.identifier)==null?void 0:h.tag))V=I=void 0,(V=(I=r).registerPanelContent)==null||V.call(I,C,{engagementPanelSectionListRenderer:Y}),this.engagementPanels.push(Y)}}};
_.l.onStampFinished=function(){var r=this;_.UC(this,function(){if(r.tabGestures){var f=r.tabGestures;if(f.scrollPositionNeedsUpdate){var I=_.a().resolve(_.ZY(_.y2)),C;if((C=f.selectedTab)!=null&&C.title&&I&&(C=I.getCurrentPage())){if(f.scrollPositionForTabs.has(f.selectedTab.title)){var Y,V;I=(V=(Y=I.getCurrentPage())==null?void 0:Y.clientHeight)!=null?V:0;Y=f.scrollPositionForTabs.get(f.selectedTab.title);C.setScrollTop(Y);I>Y+100&&(f.scrollPositionNeedsUpdate=!1)}else C.setScrollTop(Math.min(f.lastVisitedTabScrollPosition!==
void 0?f.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,f.tabsStartAtInPx)),f.scrollPositionNeedsUpdate=!1;f.ytdReduxDispatch(us6(!1))}}}})};
_.l.loadPage_=function(r){this.initCsi();r&&(this.data=r);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.l.getTitle=function(r){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",r))return this.get("microformat.microformatDataRenderer.title",r);if(this.get("header.c4TabbedHeaderRenderer.title",r))return this.get("header.c4TabbedHeaderRenderer.title",r);if(this.get("header.feedTabbedHeaderRenderer.title",r))return _.Rr(this.get("header.feedTabbedHeaderRenderer.title",r));if(this.get("header.interactiveTabbedHeaderRenderer.title",r))return this.get("header.interactiveTabbedHeaderRenderer.title",
r);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",r))return _.Rr(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
r));var f,I;return _.N("enable_page_header_page_title")&&(r==null?0:(f=r.header)==null?0:(I=f.pageHeaderRenderer)==null?0:I.pageTitle)?r.header.pageHeaderRenderer.pageTitle:""};
_.l.updateTitle=function(r){_.kA(this.hostElement,"yt-update-title",this.getTitle(r))};
_.l.initCsi=function(){_.$m(this.pageSubtype||"browse",["ol","cpt"])};
_.l.getPlayer=function(){if(_.N("kevlar_channel_trailer_multi_attach")){for(var r=_.E(this.attachedPlayers),f=r.next();!f.done;f=r.next())if(f=f.value,f.isConnected||_.e4(this.hostElement,f))return f;return null}return this.player};
_.l.getPlayerContainer=function(){return null};
_.l.onPlayerAttached=function(r,f){_.N("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(f):this.player=f};
_.l.onPlayerDetached=function(r,f){_.N("kevlar_channel_trailer_multi_attach")?(r=this.attachedPlayers.indexOf(f),r<0||this.attachedPlayers.splice(r,1)):this.player=null};
_.l.getServiceTrackingParams=function(){var r,f;return((r=this.data)==null?void 0:(f=r.responseContext)==null?void 0:f.serviceTrackingParams)||[]};
_.l.setMastheadAd=function(r){r&&r.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=r&&r.mastheadAd};
_.l.dataChanged=function(){var r=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.iOp();_.UC(this,function(){_.qy(r.hostElement,"ytd-update-grid-state-action")})};
_.l.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.l.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var r=this.data.alerts;return r&&r.find(function(f){return!!f.alertWithActionsRenderer})}};
_.l.computeGreetingData=function(){if(this.data&&this.data.alerts){var r=this.data.alerts;return r&&r.find(function(f){return!!f.personalGreetingViewModel})}};
_.l.computeHasC4TabbedHeaderRenderer=function(r){var f;return!!(r==null?0:(f=r.header)==null?0:f.c4TabbedHeaderRenderer)};
_.l.computeHasMemberHubProfileRenderer=function(r){var f;return!!(r==null?0:(f=r.header)==null?0:f.memberHubProfileRenderer)};
_.l.handleAlertCommand=function(r){this.get("alertCommand.alert.alertWithActionsRenderer",r)&&(r=_.F(r,x0Y),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",r.alert))};
_.l.handleYtPlaylistDeletionRedirect=function(r){r=this.get("playlistDeletionRedirectCommand.redirectEndpoint",r);_.kA(this.hostElement,"yt-navigate",{endpoint:r})};
_.l.computeFluidWidth=function(r,f,I){if(f==="mini_app"||I)return!0;var C,Y,V;r=r==null?void 0:(C=r.contents)==null?void 0:(Y=C.twoColumnBrowseResultsRenderer)==null?void 0:(V=Y.tabs)==null?void 0:V.find(function(w){var n;return w==null?void 0:(n=w.tabRenderer)==null?void 0:n.selected});
if(!r)return!1;var S,h;return!!((S=r.tabRenderer)==null?0:(h=S.content)==null?0:h.richGridRenderer)&&!["channel","channels","playables"].includes(f)};
_.l.computeHeaderFluidWidth=function(r){return r==="hashtag-landing-page"};
_.l.computeHasSidebar=function(r){var f;return!!(r.sidebar||((f=r.header)==null?0:f.playlistHeaderRenderer))};
_.l.computeHasPageHeaderSidebar=function(r){var f,I;return!!((f=r.header)==null?0:(I=f.pageHeaderRenderer)==null?0:I.enableSidebarView)};
_.l.computeUseUnifiedShowPageLayout=function(r){if(!r||this.pageSubtype!=="show"||!r.sidebar||!r.sidebar.playlistSidebarRenderer)return!1;r=r.sidebar.playlistSidebarRenderer;if(!r.items)return!1;for(var f=0;f<r.items.length;f++)if(_.F(r.items[f],tl)){var I=void 0;return((I=_.F(r.items[f],tl))==null?void 0:I.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.l.computeIsConstrainedList=function(r){return _.N("web_enable_constrained_list_subscriptions_channels")&&r==="subscriptions-channels"};
_.l.computeResponsiveSizing=function(r){return r==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.OC.Object.defineProperties(ee.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var r,f;return((r=this.data)==null?0:(f=r.header)==null?0:f.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var r,f;if(!((r=this.data)==null?0:(f=r.sidebar)==null?0:f.playlistSidebarRenderer))return!1;var I;return(I=this.data)!=null&&I.header?!1:!0}}});
_.OC.Object.defineProperties(ee,{template:{configurable:!0,enumerable:!0,get:function(){if(cMp===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);cMp=r}r=cMp;return r}}});
ee.prototype.dataChanged=ee.prototype.dataChanged;ee.prototype.onPlayerDetached=ee.prototype.onPlayerDetached;ee.prototype.onPlayerAttached=ee.prototype.onPlayerAttached;ee.prototype.onStampFinished=ee.prototype.onStampFinished;ee.prototype.engagementPanelsChanged=ee.prototype.engagementPanelsChanged;ee.prototype.scrollAtTopChanged=ee.prototype.scrollAtTopChanged;ee.prototype.channelIdChanged=ee.prototype.channelIdChanged;ee.prototype.tabsChanged=ee.prototype.tabsChanged;
ee.prototype.activeChanged=ee.prototype.activeChanged;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],ee.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.RO),_.B("design:type",Object)],ee.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ee.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],ee.prototype,"ytdReduxBehavior",void 0);
_.A([_.J(_.F4.YtPageBehavior),_.B("design:type",Object)],ee.prototype,"ytPageBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ee.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.mB.YtdGuideStateAwareBehavior),_.B("design:type",Object)],ee.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],ee.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ee.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ee.prototype,"hidden",void 0);_.A([_.K(),_.B("design:type",Object)],ee.prototype,"mastheadAdData",void 0);_.A([_.K({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.B("design:type",Object)],ee.prototype,"alertBannerData",void 0);_.A([_.K({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.B("design:type",Object)],ee.prototype,"greetingData",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],ee.prototype,"pageSubtype",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasC4TabbedHeaderRenderer(data)"}),_.B("design:type",Boolean)],ee.prototype,"hasC4TabbedHeaderRenderer",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.B("design:type",Boolean)],ee.prototype,"hasMemberHubProfileRenderer",void 0);
_.A([_.K({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],ee.prototype,"hasSidebar",void 0);_.A([_.K({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],ee.prototype,"hasPageHeaderSidebar",void 0);_.A([_.K({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],ee.prototype,"roundedContainer",void 0);
_.A([_.K({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],ee.prototype,"useUnifiedShowPageLayout",void 0);_.A([_.K({computed:"computeIsConstrainedList(pageSubtype)"}),_.B("design:type",Object)],ee.prototype,"isConstrainedList",void 0);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ee.prototype,"usePlaylistHeaderRenderer",null);
_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ee.prototype,"useOldPlaylistSidebarRenderer",null);_.A([_.K({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.B("design:type",Boolean)],ee.prototype,"fluidWidth",void 0);_.A([_.K({selector:function(r){return r.ui.scrollAtTop}}),
_.B("design:type",Boolean)],ee.prototype,"scrollAtTop",void 0);_.A([_.K({selector:_.uJs}),_.B("design:type",Boolean)],ee.prototype,"tabGesturesIsActive",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ee.prototype,"darkerDarkTheme",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.B("design:type",Boolean)],ee.prototype,"disableHeaderFluidWidth",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.B("design:type",String)],ee.prototype,"responsiveSizing",void 0);_.A([_.uA("ytd-two-column-browse-results-renderer"),_.B("design:type",HTMLElement)],ee.prototype,"contents",void 0);_.A([_.uA("#header"),_.B("design:type",HTMLElement)],ee.prototype,"header",void 0);_.A([_.uA("ytd-refresh"),_.B("design:type",Object)],ee.prototype,"refresh",void 0);
_.A([_.Bt("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ee.prototype,"activeChanged",null);_.A([_.Bt("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ee.prototype,"tabsChanged",null);_.A([_.Bt("data.header.c4TabbedHeaderRenderer.channelId"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ee.prototype,"channelIdChanged",null);
_.A([_.Bt("scrollAtTop"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ee.prototype,"scrollAtTopChanged",null);_.A([_.K(),_.B("design:type",Object)],ee.prototype,"engagementPanels",void 0);_.A([_.Bt("data.panels"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ee.prototype,"engagementPanelsChanged",null);
_.A([_.kO("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ee.prototype,"onStampFinished",null);_.A([_.kO("yt-player-attached"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Element]),_.B("design:returntype")],ee.prototype,"onPlayerAttached",null);_.A([_.kO("yt-player-detached"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Element]),_.B("design:returntype")],ee.prototype,"onPlayerDetached",null);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ee.prototype,"dataChanged",null);ee=_.A([_.U({is:"ytd-browse"})],ee);_.gJ.registerService(_.TTR,ee);
_.ty();
}catch(e){_._DumpException(e)}
try{
_.Ph("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 Bf=function(r){if(!r)return"browse";var f=r.page,I=r.url,C,Y,V,S=(C=r.response)==null?void 0:(Y=C.responseContext)==null?void 0:(V=Y.webResponseContextExtensionData)==null?void 0:V.pageTheme;if(S)f=S.toLowerCase().replace(/_/g,"-");else if(f!=="watch"&&f!=="learning_journey_watch"){var h,w;if((f==="browse"||f==="settings")&&((h=r.response)==null?0:(w=h.sidebar)==null?0:w.settingsSidebarRenderer))f="WEB_PAGE_TYPE_SETTINGS";else{var n,d;f==="browse"&&((n=r.response)==null?0:(d=n.metadata)==null?
0:d.channelMetadataRenderer)?f="channel":I&&(f=_.CJ(I)||f)}}return f},VM2=function(){var r=_.jH("yt.aba.att");
return r?r:_.oX.instance!==void 0?_.oX.instance.rff.bind(_.oX.instance):null},Eo6=function(r,f){var I;
return _.x(function(C){return(I=VM2())?C.return(I(r,f,6E4)):C.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},Sjd=function(r,f,I,C,Y){f=f===void 0?[]:f;
Y=Y?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:Y}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.AZ(r),dialogMessages:f.map(function(V){return _.AZ(V)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.AZ(I),serviceEndpoint:Y}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.AZ(C)}}}}}},x4V=function(r){var f=!!_.jN().queueProxy;
var I,C,Y;r=r==null?void 0:(I=r.response)==null?void 0:(C=I.currentVideoEndpoint)==null?void 0:(Y=C.watchEndpoint)==null?void 0:Y.playlistId;return!(!f&&!r)},h9i=function(r,f){var I=_.xP();
if(x4V(r))return I.playlistWatchPageActivation=!0;switch(Bf(f)){case "yts-products":return I.productDetailsPageActivation=!0;case "mini_app":return I.miniAppPageActivation=!0;case "playables":return I.playablesDestPageActivation=!0;default:return!1}},wWV=function(r,f,I){for(var C=typeof r==="string"?r.split(""):r,Y=r.length-1;Y>=0;--Y)Y in C&&f.call(I,C[Y],Y,r)},bWB=function(r,f){f=_.MKE(r,f);
f>=0&&_.GB(r,f)},pW1=function(r){return Array.prototype.concat.apply([],arguments)},nos=function(r){var f=0;
f=f===void 0?0:f;if(!_.X3(r))throw _.NT("uint64");var I=typeof r;switch(f){case 512:switch(I){case "string":return _.hgK(r);case "bigint":return String((0,_.i2)(64,r));default:return _.Ssu(r)}case 1024:switch(I){case "string":return _.w4R(r);case "bigint":return _.uV((0,_.i2)(64,r));default:return _.xTR(r)}case 0:switch(I){case "string":return _.hgK(r);case "bigint":return _.uV((0,_.i2)(64,r));default:return _.ECU(r)}default:return _.Sd(f,"Unknown format requested type for int64")}},d43=function(r){r!=
null&&(r=r.JSC$6710_value_||"",r=typeof r==="string"?r:new Uint8Array(r));
return r},z93=function(r){for(var f=_.XE.apply(1,arguments),I=r[0],C=0;C<r.length-1;C++)I+=String(f[C]),I+=r[C+1];
f=document.implementation.createHTMLDocument("");C=f.createElement("style");f.head.appendChild(C);f=C.sheet;f.insertRule(I,0);if(f.cssRules.length===1&&(I=f.cssRules[0],I instanceof CSSStyleRule))return new _.sR(I.cssText.replace(/</g,"\\3C "))},MMs=function(r,f){if(/-[a-z]/.test(f))return null;
if(_.hL4&&r.dataset){if(_.SPl()&&!(f in r.dataset))return null;r=r.dataset[f];return r===void 0?null:r}return r.getAttribute("data-"+_.S5(f))},asB=function(){var r=go3;
_.jH("yt.ads.biscotti.getId_")||_.OH("yt.ads.biscotti.getId_",r)},XWV=function(r){_.OH("yt.ads.biscotti.lastId_",r)},$46=function(){var r={};
for(_.a1=new NUd(r.handleError===void 0?_.PR:r.handleError,r.logEvent===void 0?_.NW:r.logEvent);_.X8.length>0;)switch(r=_.X8.shift(),r.type){case "ERROR":_.a1.logError(r.payload);break;case "EVENT":_.a1.logEvent(r.eventType,r.payload)}},F8d=function(r,f,I){return _.oAw(function(C){return I?C.userIdentifier!==void 0&&!r.includes(C.userIdentifier)&&I.includes(C.publicName):C.userIdentifier!==void 0&&!r.includes(C.userIdentifier)},f)},Px6=function(r){var f,I;
return _.x(function(C){if(C.nextAddress==1)return f=_.bh("YtIdbMeta hasAnyMeta other"),_.b(C,_.oAw(function(Y){return Y.userIdentifier!==void 0&&Y.userIdentifier!==f},r),2);
I=C.yieldResult;return C.return(I.length>0)})},TUd=function(r,f){tM3||(tM3=_.F_.addLowPriorityJob(function(){var I,C,Y,V,S;
return _.x(function(h){switch(h.nextAddress){case 1:return _.b(h,_.o1(),2);case 2:I=h.yieldResult;if(!I)return h.return();C=!0;_.l_(h,3);return _.b(h,F8d(r,I,f),5);case 5:Y=h.yieldResult;if(!Y.length){C=!1;h.jumpTo(6);break}V=Y[0];return _.b(h,_.ih(V.actualName),7);case 7:return _.b(h,_.Kf(V.actualName,I),6);case 6:_.Hd(h,4);break;case 3:S=_.ha(h),_.$B(S),C=!1;case 4:_.F_.cancelJob(tM3),tM3=0,C&&TUd(r,f),_.wO(h)}})}))},cVs=function(){var r;
return _.x(function(f){return f.nextAddress==1?_.b(f,_.o1(),2):(r=f.yieldResult)?f.return(Px6(r)):f.return(!1)})},W8s=function(r){var f=100;
f=f===void 0?500:f;var I,C,Y,V,S,h;return _.x(function(w){return w.nextAddress==1?(I=_.Lz("INNERTUBE_CONTEXT_CLIENT_NAME",0),C=[I,(0,_.Ad)()-2592E6],Y=[I,(0,_.Ad)()],V=IDBKeyRange.bound(C,Y),_.b(w,_.zEB(r),2)):w.nextAddress!=3?(S=w.yieldResult,h=[],_.b(w,_.vd(S,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(n){h.length=0;return _.Zy(n.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:V,direction:"prev"},function(d){if(d.getValue()&&h.length<f)return h.push(d.getValue()),
d.delete().then(function(){return d.continue()})})}),3)):w.return(h)})},L8i=function(){var r;
return _.x(function(f){if(f.nextAddress==1)return _.b(f,_.o1(),2);r=f.yieldResult;if(!r||!_.pf()&&!_.N("nwl_init_require_datasync_id_killswitch")||!_.K4m())return f.jumpTo(0);_.UGR=!0;_.yNK.isNwlInitialized=_.UGR;return _.b(f,_.gf4().awaitInitialization(),0)})},qf=function(r,f){_.C7l[r]=!0;
var I=_.GO();I&&I.publish.apply(I,arguments);_.C7l[r]=!1},e9q=function(){if(_.ekw()&&!m4B){var r=function(I){I=I.data;
if(I.op==="serializedGelBatch"){var C=_.Y6q.get(I.key);C&&(_.V$E(I.serializedBatch,C.client,C.resolve,C.networklessOptions,C.isIsolated,C.useVSSEndpoint,C.dangerousLogToVisitorSession,C.requestsOutstanding),_.Y6q.delete(I.key))}},f=_.mjw();
f&&(f.addEventListener("message",r),f.onerror=function(){_.Y6q.clear()});
m4B=!0}},uL=function(){this.relativeTimeStart_=_.Dc()},JV7=function(r,f){r!=null&&this.append.apply(this,arguments)},jh1=function(){return _.Wj("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},HWq=function(r,f,I){I=I===void 0?!1:I;
var C,Y,V,S,h;return _.x(function(w){switch(w.nextAddress){case 1:_.hd("SOCS",r,34128E3,"youtube.com",!0);if(_.Sg)return Y=fetch(f,{method:"POST",mode:_.Hj(f),credentials:_.j5(f),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),V=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Hj("/upgrade_visitor_cookie?eom=1"),credentials:_.j5("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.b(w,Promise.all([Y,V]).then(function(n){return n[1]}),5);
fetch(f,{method:"POST",mode:_.Hj(f),credentials:_.j5(f),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.b(w,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Hj("/upgrade_visitor_cookie?eom=1"),credentials:_.j5("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:C=w.yieldResult;w.jumpTo(3);break;case 5:C=S=w.yieldResult;case 3:if(!C.ok)throw Error("nf");return _.b(w,C.text(),7);case 7:h=w.yieldResult,
!h.includes('"state_switch":true')&&!I||h.includes("skip_reload_for_test")||window.location.reload(),_.wO(w)}})},iW6=function(r){return _.x(function(f){return f.nextAddress==1?_.b(f,HWq(r.socsCookie,r.savePreferenceUrl,!0),2):f.return()})},R9q=function(r){return _.x(function(f){return f.nextAddress==1?_.b(f,HWq(r.socsCookie,r.savePreferenceUrl),2):f.return()})},K87=function(r){r=r.xhr.responseText;
if(!_.xq(r,")]}'"))throw new Du;r=JSON.parse(r.substr(4));if((r.type||1)>1)throw new Du;r=r.id;XWV(r);rc=_.Kl(r);voV(18E5,2);return r},U42=function(r,f){f=new yVq(f);
XWV("");rc=_.ihD(f);r>0&&voV(12E4,r-1);throw f;},voV=function(r,f){_.rl(function(){_.Q17().then(K87,function(I){return U42(f,I)}).thenCatch(_.n9)},r)},go3=function(){var r=_.GUp();
if(r!==void 0)return _.h3(r);rc||(rc=_.Q17().then(K87).thenCatch(function(f){return U42(2,f)}));
return rc},shB=function(){var r=document;
return _.yE(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(f){return"on"+f.toLowerCase()in r})},OWq=function(r){r.addEventListener("click",function(f){var I=f.target;
I&&I.getAttribute("href")&&(I=I.getAttribute("href"),_.eF(window,I,"_blank"),f.preventDefault(),f.stopImmediatePropagation())})},oo2=function(r){var f,I,C,Y=(C=(I=((f=r.mainDownloadsListEntity)!=null?f:{})[_.a0P])==null?void 0:I.refresh)!=null?C:"",V;
r=(V=r.refresh)==null?void 0:V[Y];Y=r!=null?r:{};return(Y==null?0:Y.refreshTime)?Number(Y==null?void 0:Y.refreshTime):0},Qh7=function(r,f){var I=_.dG(r);
return f.every(function(C){var Y;C=C==null?void 0:(Y=C.playbackDataEntity)==null?void 0:Y.key;if(!C)return!1;Y=_.rG(_.qo(C).entityId,"mainVideoEntity");return!!I[Y]})},AV6=function(r){r=_.bX(r.entities);
return _.I4K(r).length},ZW6=function(r,f){if(f){var I;
r=(I=_.f2(r.entities,"downloadQualityPickerEntity",f))!=null?I:void 0}else r=void 0;return r},BUs=function(){GO6||(_.H1=_.dA$,GO6=new kO6);
return GO6},qj3=function(r){var f=document.getElementsByTagName("ytd-enforcement-message-view-model");
f.length===0||getComputedStyle(f[0]).display==="none"?r(0,"p.h_"):r(1,"p.h_")},u_q=function(){f4=0;
var r=[_.Sl(!0)];Iq&&_.qy(Iq,"yt-window-resized",r)},D4U=function(){f4||(f4=_.F_.addLowPriorityJob(u_q,200))},fW1=function(){C4=0;
r73=_.x6s(document);var r=[r73];Iq&&_.qy(Iq,"yt-window-scrolled",r)},IWp=function(){C4||(C4=_.F_.addLowPriorityJob(fW1,200))},YeU=function(r){r=r===void 0?null:r;
CzB.push(_.oh(window,"resize",D4U));CzB.push(_.oh(window,"scroll",IWp));r&&(Iq=r)},lWq=function(r){_.x(function(f){if(f.nextAddress==1)return _.b(f,r.delete("yt-appshell-assets"),2);
_.wO(f)})},Vq1=function(r){return _.R1((0,_.Cus)(),r)},Sep=function(){var r;
_.x(function(f){return f.nextAddress==1?_.b(f,Ye.getInstance(),2):(r=f.yieldResult)?_.b(f,ElU(r),0):f.jumpTo(0)})},hc6=function(){var r;
_.x(function(f){return f.nextAddress==1?_.b(f,le.getInstance(),2):(r=f.yieldResult)?_.b(f,xW6(r),0):f.jumpTo(0)})},wR1=function(r){lWq(r);
Sep();hc6()},bNd=function(r){var f,I;
return _.x(function(C){if(C.nextAddress==1)return _.b(C,_.QOU(r),2);if(f=C.yieldResult){var Y;a:{if(f.headers&&(Y=f.headers.get("date"))&&(Y=Date.parse(Y),!isNaN(Y))){Y=Math.round((0,_.Ad)()-Y);break a}Y=-1}I=Y;if(I>-1)return C.return(I)}return C.return(-1)})},pRq=function(){var r=_.Yq.caches,f=_.mO("IS_SHELL_LOAD"),I,C;
_.x(function(Y){if(Y.nextAddress==1)return I=-1,f?_.b(Y,bNd(r),3):(C=_.pe(),I=Math.round((0,_.Ad)()-C),Y.jumpTo(2));Y.nextAddress!=2&&(I=Y.yieldResult);I>=0&&I<2147483648&&_.gX({appInstallDataAgeMs:I});_.wO(Y)})},nlp=function(r){var f=_.Hh(_.Yq.location.href),I={};
"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(C){var Y=f.JSC$7932_queryData_.getValues(C);if(Y==null?0:Y.length)I[C]=Y});
return _.Dj(r,new Map(Object.entries(I)))},dW1=function(r){r=r.match(/(.*)::.*::.*/);
if(r!==null)return r[1]},zc1=function(r){if(_.xMK()){var f=Object.keys(window.localStorage);
f=_.E(f);for(var I=f.next();!I.done;I=f.next()){I=I.value;var C=dW1(I);C===void 0||r.includes(C)||self.localStorage.removeItem(I)}}},Mq1=function(){if(!_.xMK())return!1;
var r=_.bh(),f=Object.keys(window.localStorage);f=_.E(f);for(var I=f.next();!I.done;I=f.next())if(I=dW1(I.value),I!==void 0&&I!==r)return!0;return!1},gl3=function(r){return _.sI("NotificationsDisabled",r)},aWs=function(){return Notification.permission!="granted"?Promise.resolve():_.Das().then(function(r){return r?r.pushManager.getSubscription().then(function(f){if(f)return Promise.resolve();
f={userVisibleOnly:!0,applicationServerKey:_.MT("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return r.pushManager.subscribe(f).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},XR6=function(r){return _.Das().then(function(f){if(!f||!f.active)return Promise.reject(new _.nf("serviceworker.postMessage",r,f));
try{return f.active.postMessage(r),Promise.resolve()}catch(I){return Promise.reject(I)}})},NpV=function(){XR6({type:"notifications_register",
data:_.Lz("ID_TOKEN")})},FN2=function(){var r={isWide:_.xB.get("wide","0")==="1"},f=_.xI();
if(f=f.getFlag(165)||f.getFlag(174))r.theme=_.Pt(!0);if(_.cWE()){var I=_.Fd()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";r.systemTheme=I}!f&&_.N("parent_tools_enable_app_settings")&&_.Kz(window.location.href).theme!==void 0&&(r.theme=_.Pt());if((f=V6)?!_.X0.equals(f,r):r)f={currentValue:r},$Wp&&(f.timeSinceLastSnapshotSecs=Math.round(((0,_.Ad)()-$Wp)/1E3)),V6&&(f.previousValue=V6),_.NW("appSettingsCaptured",f),V6=r,$Wp=(0,_.Ad)()},Pz6=function(){if(!_.mO("LOGGED_IN"))return Promise.resolve(!1);
var r=_.qC("service_worker_push_force_notification_prompt_tag");return r?_.og("PromptTags").then(function(f){if(!f)return!0;var I=[];try{I=JSON.parse(f)}catch(C){return!1}return I&&I.indexOf(r)==-1}):Promise.resolve(!1)},tqq=function(){var r=_.Bw("service_worker_push_prompt_delay_microseconds");
return r?_.og("PromptTime").then(function(f){return Promise.resolve(Date.now()-r>(f||0))}):Promise.resolve(!0)},Tp6=function(){var r=_.Bw("service_worker_push_logged_out_prompt_watches");
return r==-1?Promise.resolve(!1):_.og("WatchCount").then(function(f){return f>=r})},c7s=function(){var r=_.oC(document,"yt-push-prompt-modal-bg");
r&&_.bE(r)},WNd=function(){return _.Bw("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.og("PromptCount").then(function(r){r||(r=0);
return Promise.resolve(r<_.Bw("service_worker_push_prompt_cap"))})},LNY=function(r){return _.mO("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.mO("LOGGED_IN")&&(r===void 0?0:r)?Pz6().then(function(f){if(f)return!0;
f=[WNd(),tqq()];_.mO("LOGGED_IN")||f.push(Tp6());return Promise.all(f).then(function(I){return I.every(function(C){return C})})}):Promise.resolve(!1)},mWV=function(){_.og("PromptCount").then(function(r){return _.sI("PromptCount",r+1)}).then(function(){return _.sI("PromptTime",Date.now())}).then(function(){var r=_.qC("service_worker_push_force_notification_prompt_tag");
if(r)return _.og("PromptTags").then(function(f){var I=[];if(f)try{I=JSON.parse(f)}catch(C){return!1}I||(I=[]);I.push(r);return _.sI("PromptTags",JSON.stringify(I))})})},J76=function(){ecV||c7s()},j56=function(r){r.style.zIndex=2147483648;
r.style.pointerEvents="auto";r.style.backgroundColor="rgba(0, 0, 0, 0.6)";r.style.width="100%";r.style.height="100vh";r.style.position="absolute";r.style.top="0";r.style.left="0";r.style.border="none"},HNB=function(){var r=_.oC(document,"yt-push-prompt-modal-bg");
ecV=_.N("service_worker_push_prompt_modal_ignore_click");r?j56(r):(r=_.$2("div",{id:"yt-push-prompt-modal-bg"}),j56(r),document.body.appendChild(r),_.DGK(document,"click",J76))},iN2=function(){var r=arguments;
_.N("service_worker_push_prompt_modal_enable")&&HNB();return Notification.requestPermission().then(function(f){c7s();var I=document.getElementById("ticker");I&&(I.className=I.classList.remove("show"));if(f=="granted")return aWs().then(function(){gl3(!1);NpV();return Promise.resolve(!0)});
f=="denied"&&NpV();return Promise.resolve(!1)}).catch(function(){c7s();
return Promise.reject.apply(Promise,_.Na(r))})},RcU=function(r){r=r===void 0?!1:r;
var f=_.JWc().client;if(f&&f.browserVersion){var I=f.browserVersion,C=f.browserName=="CHROME"&&_.zB(I,"50.0.0")<0;f=f.browserName=="OPERA"&&_.zB(I,"42.0.0")<0;if(C||f)return Promise.resolve()}return _.I8V().then(function(Y){if(!Y)return Promise.resolve();Y=aWs().then(function(){return XR6({type:"notifications_check_registration",data:_.Lz("ID_TOKEN")})});
return Notification.permission!="default"?Y.catch(function(){}):Y.then(function(){return LNY(r)}).then(function(V){if(V)return mWV(),iN2().then(function(){})}).catch(function(){})})},vls=function(r){return _.ros(r)?RcU():Promise.resolve()},KNq=function(r){var f=r.installing||r.waiting;
return r.active||!f?Promise.resolve(r):new Promise(function(I){var C=function(Y){Y=Y.target;if(Y.state==="activated"||Y.state==="redundant")f.removeEventListener("statechange",C),I(r)};
f.addEventListener("statechange",C)})},y7U=function(){var r=new _.QPK("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.wM(r,{mainAppWeb:_.Wt()});var f=_.FxU;_.N("service_worker_forward_exp_params")&&(f=nlp(f));try{var I=_.iYu(f).catch(function(){_.bO(r,"FAILURE");return new Promise(function(){})});
_.N("service_worker_push_enabled")&&I.then(function(C){_.bO(r,"SUCCESS");return C}).then(KNq).then(vls)}catch(C){if(_.bO(r,"FAILURE"),C.name!=="SecurityError")throw C;
}},UW3=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&y7U()},s5d=function(r,f){var I={};
f&&(I.serializedYpcFamilyCreateLoggingParams=f);_.NW(r,I);_.$l()},ONd=function(r,f){var I={};
I.serializedYpcRefundFlowLoggingParams=f;r&&(I.eventType=r);_.NW("ypcRefundFlowEvent",I);_.$l()},ol7=function(r){r&&_.vGK("transactionFlowSucceeded",r)},Q5s=function(r){r&&_.P0("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",r,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},A72=function(r){var f,I,C,Y,V,S,h;
_.x(function(w){if(w.nextAddress==1)return _.b(w,_.TkP(),2);if(w.nextAddress!=3){if(!w.yieldResult)return w.return(!1);f=[];return _.b(w,_.QH.keys(),3)}I=w.yieldResult;C=_.E(I);for(Y=C.next();!Y.done;Y=C.next())V=Y.value,S=_.PWd(V),h=S.datasyncId,!h||r.includes(h)||f.push(_.QH.delete(V));return w.return(Promise.all(f).then(function(n){return n.some(function(d){return d})}))})},ZNd=function(){var r,f,I,C,Y,V,S;
return _.x(function(h){if(h.nextAddress==1)return _.b(h,_.TkP(),2);if(h.nextAddress!=3){if(!h.yieldResult)return h.return(!1);r=_.bh("cache contains other");return _.b(h,_.QH.keys(),3)}f=h.yieldResult;I=_.E(f);for(C=I.next();!C.done;C=I.next())if(Y=C.value,V=_.PWd(Y),(S=V.datasyncId)&&S!==r)return h.return(!0);return h.return(!1)})},GLq=function(){var r=_.a().resolve(_.ZY(_.ETq));
return r?r.getCurrentTime():0},kLY=function(){var r,f,I,C,Y,V,S,h,w,n,d,z,g,X;
return _.x(function(P){switch(P.nextAddress){case 1:r={},f=_.gTR(),I=_.E(Object.entries(f)),C=I.next();case 4:if(C.done){P.jumpTo(3);break}Y=C.value;V=_.E(Y);S=V.next().value;h=V.next().value;w=S;n=h;if(!n){P.jumpTo(5);break}return _.b(P,n(),8);case 8:r[w]=P.yieldResult;case 5:C=I.next();P.jumpTo(4);break;case 2:d=_.E(void 0),z=d.next();case 9:if(z.done){P.jumpTo(3);break}g=z.value;X=f[g];if(!X){P.jumpTo(10);break}return _.b(P,X(),13);case 13:r[g]=P.yieldResult;case 10:z=d.next();P.jumpTo(9);break;
case 3:return P.return(r)}})},Bpq=function(){var r;
_.x(function(f){if(f.nextAddress==1)return _.b(f,kLY(),2);r=f.yieldResult;return _.b(f,navigator.clipboard.writeText(JSON.stringify(r,null,2)),0)})},qe6=function(r,f){return _.f2(r.entities,"superThanksSelectedTierEntity",f)},uoB=function(r){var f;
return(f=r.sharedUi)==null?void 0:f.currentPageType},DW6=function(r,f){return{popup:{searchSuggestionReportDialog:{searchQuery:r,
title:_.VR("SBOX_INAPPROPRIATE_TITLE"),suggestions:f,categoryLabel:_.VR("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.VR("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.VR("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.VR("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.VR("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.VR("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.VR("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.VR("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.VR("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.VR("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},rqB=function(r){var f,I,C,Y,V,S,h,w,n,d,z,g,X,P,W,m,v,O,k;
return _.x(function(Z){switch(Z.nextAddress){case 1:return _.b(Z,_.Yx(),2);case 2:return(f=Z.yieldResult)?_.b(Z,_.Edm(f),3):Z.return();case 3:I=Z.yieldResult;if(!I)return Z.return();Y=((C=I.offlineVideos)==null?void 0:C.length)||0;S=((V=I.offlinePlaylists)==null?void 0:V.length)||0;if(Y===0&&S===0)return Z.return();h=0;if(I.offlineVideos)for(w=_.E(I.offlineVideos),n=w.next();!n.done;n=w.next())d=n.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===d.videoState&&(h+=1);r.offline_videos_count=Y.toString();_.N("kevlar_log_offline_current_network_type_ks")||
(r.offline_current_network_type=(z=_.M5c())!=null?z:"CONN_INVALID");_.N("kevlar_log_updated_time_for_smart_downloads")&&(g=_.K2().getState().entities,X=_.gG(g),P=oo2(g),r.offline_smart_downloads_last_sync_time_ms=X.toString(),r.offline_smart_downloads_next_sync_time_ms=P.toString());r.offline_videos_playable=h.toString();r.offline_playlists_count=S.toString();if(!_.N("woffle_used_state_report")){Z.jumpTo(4);break}I.offlineVideos&&(W=I.offlineVideos.reduce(function(Cw,rR){rR.downloadedBytes&&(Cw+=
Number(rR.downloadedBytes));return Cw},0).toString())&&(r.offline_used_disk_space_bytes=W);
if(!((m=navigator)==null?0:(v=m.storage)==null?0:v.estimate)){Z.jumpTo(4);break}return _.b(Z,navigator.storage.estimate(),6);case 6:O=Z.yieldResult,r.offline_free_disk_space_bytes=(((k=O)==null?void 0:k.quota)||0).toString();case 4:r.offline_client_state=JSON.stringify(I),_.wO(Z)}})},fm2=function(r){r=r.match(/(.*)::.*::.*/);
if(r!==null)return r[1]},Im6=function(r){if(_.EmU()){var f=Object.keys(window.sessionStorage);
f=_.E(f);for(var I=f.next();!I.done;I=f.next()){I=I.value;var C=fm2(I);C===void 0||r.includes(C)||self.sessionStorage.removeItem(I)}}},CKd=function(){if(!_.EmU())return!1;
var r=_.bh(),f=Object.keys(window.sessionStorage);f=_.E(f);for(var I=f.next();!I.done;I=f.next())if(I=fm2(I.value),I!==void 0&&I!==r)return!0;return!1},EA=function(r,f,I){(_.N("desktop_keyboard_shortcut_usage_log")||I&&_.N("web_shorts_keyboard_shortcut_usage_log"))&&(f?_.Zu.get(r):_.AX.get(r))&&(r=f?_.k8.get(r):_.Gc.get(r))&&_.im(_.t1(),r)},YC7=function(r,f){f.stack&&(r.stack+="\n"+f.stack);
return r},Ef7=function(r){var f=SI(r,"Content-Type");
if(!f)return null;f=f.toLowerCase();if(f.startsWith("application/json"))return f.startsWith("application/json+protobuf")?new lmd:new _.Di;if(f.startsWith("application/x-protobuf")){r=SI(r,"Content-Transfer-Encoding");if(!r)return new xe;if(r.toLowerCase()=="base64")return new VJ6}return null},zRi=function(r,f,I,C){var Y=new SCd(function(h,w){return x7q.has(w)?h.sentinel==="gal"&&h.event!==void 0:!1},function(h){h.event?(h=hRV(h.event),h=!h||w8Y(C,h)?!0:_.dh(r.lastEvent,hM,2,wc)?!_.dh(h,be,1,wc)&&
!_.dh(h,hM,2,wc):!_.dh(h,be,1,wc)&&!_.dh(h,hM,3,wc)):h=!0;
return h});
I=_.Dj(r.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",bEp(I)]]));if(r.nestedOrigins!==void 0)for(var V=_.E(r.nestedOrigins),S=V.next();!S.done;S=V.next())I=_.Dj(I,new Map([["origin",S.value]]));return p87(Y,I,f).then(function(h){h=nf2(h.event);if(_.dh(h,be,1,wc)){var w,n=(w=_.mt(h,be,1,wc))==null?void 0:_.cM(w,2);n&&C.JSC$17015_logErrorEvent(d72(n));w=_.mt(h,be,1,wc);_.cM(w,2)===4?(h=_.mt(h,be,1,wc),h={statusCode:11,statusMessage:_.Tb(h,
3)}):(h=_.mt(h,be,1,wc),h={statusCode:12,statusMessage:_.Tb(h,3)});return h}_.dh(h,hM,3,wc)?(h=_.mt(h,hM,3,wc),h={statusCode:1,consentLanguageKeys:_.Tb(h,2)}):h={statusCode:1};return h}).catch(function(h){return h.errorCode!==void 0?{statusCode:h.errorCode,
statusMessage:h.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},X8i=function(r){var f={};
if(r===void 0||r===null)return f;r.getToken()!==void 0&&MJ6(r.getToken())&&MJ6(r.getToken()).length>0&&(f.scopes=new Set(MJ6(r.getToken())));r.getToken()!==void 0&&gfB(r.getToken())&&gfB(r.getToken()).length>0&&(f.capabilities=new Set(gfB(r.getToken())));_.Tb(r,3)!==void 0&&(f.consistencyKey=_.Tb(r,3));r.getName()!==void 0&&r.getName()!==""&&(f.linkName=r.getName());_.nD(r,ams,4)&&(r=_.kB(r,ams,4),r=Object.assign({},_.Tb(r,1)&&{userId:_.Tb(r,1)},_.Tb(r,2)&&{displayName:_.Tb(r,2)},_.Tb(r,3)&&{email:_.Tb(r,
3)},_.Tb(r,5)&&{username:_.Tb(r,5)},_.Tb(r,4)&&{profilePicture:_.Tb(r,4)}),f.profile=r);return f},Nb6=function(r,f){var I=r.flowParams;
return{serviceId:I.serviceId,sessionId:I.sessionId,currentFlow:r.currentFlow,googleScopesString:f,linkingSessionSerialized:r.session.serialize(),consentLanguageKeys:I.consentLanguageKeys,callerState:r.callerState,dynamicUrlParameters:I.dynamicUrlParameters,partnerConfigMinReadTimestamp:I.partnerConfigMinReadTimestamp}},Tb6=function(r){var f=r.googleScopes!==void 0?Array.from(r.googleScopes).join(","):"";
$76(Nb6(r,f));f=FF6(r);return f===null?Promise.resolve(PKi):f.start().then(function(I){var C,Y=(C=I.link)==null?void 0:C.consistencyKey;return I.statusCode===1&&r.googleScopes!==void 0&&r.googleScopes.size>0&&Y!==void 0?(C=r.flowParams,tJ6(C.serviceId,C.sessionId,r.googleScopes,Y,C.galService,r.config,I)):I})},cq2=function(r){var f=FF6(r);
return f===null?Promise.resolve(p4({statusCode:7,statusMessage:"Failed to create flow object"},r.callerState)):f.complete().then(function(I){var C,Y=(C=I.link)==null?void 0:C.consistencyKey;return I.statusCode===1&&r.googleScopes!==void 0&&r.googleScopes.size>0&&Y!==void 0?(C=r.flowParams,tJ6(C.serviceId,C.sessionId,r.googleScopes,Y,C.galService,r.config,I)):p4(I,r.callerState)},function(I){return p4({statusCode:12,
statusMessage:"Failed to complete the flow: "+I.message},r.callerState)})},tJ6=function(r,f,I,C,Y,V,S){return WF6(Y,{serviceId:r,
sessionId:f,googleScopes:I,consistencyKey:C}).then(function(){return S},function(h){return Y.deleteLink({serviceId:r,
sessionId:f,accountLinkingEntryPoint:V.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+h.message}},function(w){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+w.message}})})},FF6=function(r){switch(r.currentFlow){case 1:var f=r.flowParams;
r=_.kB(r.session,LF6,1);return n4.createOAuthFlow(f,r);case 2:case 3:return f=r.flowParams,r=_.kB(r.session,m7Y,6),dc.createStreamlinedFlow(f,r);default:return null}},eRB=function(r,f){r===2&&(r=3);
var I=0;zl.indexOf(r)!==-1&&(I=zl.indexOf(r)+1);for(r=I;r<zl.length;r++)if(f.has(zl[r]))return zl[r]},HEV=function(r){var f=r.serviceId;
var I=r.sessionId;var C=r.config;var Y=r.galService;var V=r.capabilities;var S=r.scopes;var h=r.loginHint;var w=r.callerState;var n=r.consentLanguageKeys;var d=r.linkName;var z=r.dynamicUrlParameters;var g=r.partnerConfigMinReadTimestamp;r=C.dataUsageNoticeConfig?C.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return Y.startLinkingSession({serviceId:f,sessionId:I,capabilities:V,scopes:S,loginHint:h,callerState:w,supportedFlows:JqB(C.supportedFlows),completionUrl:C.completionUrl,accountLinkingEntryPoint:C.accountLinkingEntryPoint,
consentLanguageKeys:n,dataUsageNoticeConfig:r,linkName:d,dynamicUrlParameters:z,partnerConfigMinReadTimestamp:g}).then(function(X){return new j62(f,I,C,Y,X,void 0,w,n,z,g)})},yqp=function(r,f,I){a:{var C=new iEY;
if(C.storage!==null)try{var Y=C.storage.get("SAVED_SESSION");if(Y===void 0){var V=null;break a}if(Y.serviceId===r){V=Y;break a}}catch(S){}V=null}if(V===null)return Promise.resolve({statusCode:2});RRs(r);C=vfq(V.linkingSessionSerialized);return KFs(new j62(r,V.sessionId,f,I,C,V.googleScopesString!==""&&V.googleScopesString!==void 0?new Set(V.googleScopesString.split(",")):void 0,V.callerState,V.consentLanguageKeys,V.dynamicUrlParameters,V.partnerConfigMinReadTimestamp),V.currentFlow,V.consentLanguageKeys)},
$76=function(r){var f=new iEY;
f.storage!==null&&f.storage.set("SAVED_SESSION",r)},RRs=function(r){var f=new iEY;
if(f.storage!==null){var I=f.storage.get("SAVED_SESSION");I!==void 0&&I.serviceId===r&&f.storage.remove("SAVED_SESSION")}},JqB=function(r){var f=new Set;
r=_.E(r);for(var I=r.next();!I.done;I=r.next())I=I.value,I!==1&&U76.has(I)&&f.add(U76.get(I));return f},p4=function(r,f){f!==void 0&&(r.callerState=f);
return r},s6i=function(r){switch(r){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},Q66=function(){var r={timeout:5E3};
r=r===void 0?{}:r;return OEs!=null?OEs:OEs=of6(r)},Aqp=function(){return new Promise(function(r,f){window.gapi.load("client",{callback:r,
onerror:f})})},of6=function(r){r=r===void 0?{}:r;
var f;return _.x(function(I){if(I.nextAddress==1){if((f=window.gapi)&&f.client&&f.client.load)I=I.return(f);else{var C=_.SF("https://apis.google.com/js/api.js");I=_.b(I,_.To(C,r),2)}return I}if(I.nextAddress!=3){f=window.gapi;if(!f)throw Error("Xj");return f.client&&f.client.load?I.jumpTo(3):_.b(I,Aqp(),3)}return I.return(f)})},G53=function(r,f){f=f===void 0?0:f;
var I=r.auth2.getAuthInstance().currentUser.get(),C=I.getAuthResponse(!0);if(C&&C.expires_at-Date.now()<f){if(ZEp.has(r))return ZEp.get(r);f=Promise.resolve(I.reloadAuthResponse()).finally(function(){ZEp.delete(r)});
ZEp.set(r,f);return f}return Promise.resolve()},k5B=function(r,f){var I;
return r.client.init({apiKey:f.apiKey,clientId:f.clientId,scope:f.scope,discoveryDocs:f.discoveryDocs,hostedDomain:f.hostedDomain,fetchBasicProfile:(I=f.fetchBasicProfile)!=null?I:!0})},Bb3=function(r){if(r.queryParams!=null){var f={},I;
for(I in r.queryParams)r.queryParams[I]!==void 0&&(f[I]=r.queryParams[I]);r.queryParams=f}},D76=function(r){return new qCs(r,new uKU(r))},Io6=function(r,f){f=f===void 0?!1:f;
var I=document.createElement("div");r&&(I.style.transform="scaleX(-1)");I.style.backgroundColor=f?"rgba(138,180,248,.24)":"#e8f0fe";I.style.height="4px";I.style.overflow="hidden";I.style.position="absolute";I.style.top="0";I.style.width="100%";I.style.zIndex="1500";I.setAttribute("aria-label","Loading");I.setAttribute("aria-live","polite");r=document.createElement("style");r.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  }";
I.appendChild(r);r=r1s();r.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";r.style.left="-145.166611%";var C=foU(f);C.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";r.appendChild(C);I.appendChild(r);r=r1s();r.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";r.style.left="-54.888891%";f=foU(f);f.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
r.appendChild(f);I.appendChild(r);return I},r1s=function(){var r=document.createElement("div");
r.style.height="100%";r.style.position="absolute";r.style.transformOrigin="top left";r.style.width="100%";return r},foU=function(r){var f=document.createElement("span");
f.style.borderTop=r?"4px solid #669df6":"4px solid #4285f4";f.style.display="inline-block";f.style.position="absolute";f.style.width="100%";return f},CyB=function(r){return r==null?void 0:_.Mas(r).valueOf()},EAY=function(r){var f=document.body,I=!1,C=function(){I||(I=!0,Yl7(Y,V),setTimeout(function(){f.removeChild(V);
f.removeChild(Y)},150))},Y=loV(r,getComputedStyle(f).direction==="rtl",C),V=V53(C);
Yl7(Y,V);f.appendChild(V);f.appendChild(Y);window.requestAnimationFrame(function(){V.style.opacity="1";Y.style.opacity="1";Y.style.transform="translate(-50%, -50%) scale(1)";Y.children[0].focus()})},loV=function(r,f,I){var C=document.createElement("div");
C.style.position="fixed";C.style.alignItems="center";C.style.backgroundColor=r?"rgb(32, 33, 36)":"white";C.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";C.style.display="flex";C.style.flexDirection="column";C.style.justifyContent="center";C.style.left="50%";C.style.top="50%";C.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";C.style.zIndex="2002";document.body.clientWidth>=660?(C.style.borderRadius="8px",C.style.minHeight="220px",
C.style.maxHeight="90%",C.style.maxWidth="90%",C.style.minWidth="540px"):(C.style.height="100%",C.style.width="100%");C.setAttribute("aria-label","Error");C.setAttribute("aria-modal","true");C.setAttribute("role","alertdialog");C.addEventListener("keydown",function(V){V.key==="Escape"&&I()});
f=Sl1(r,f,I);C.appendChild(xyY(f));C.appendChild(f);var Y=document.createElement("img");Y.src=r?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";Y.style.height="72px";Y.style.width="72px";Y.style.color="#9aa0a6";Y.setAttribute("alt","");C.appendChild(Y);Y=document.createElement("h1");Y.textContent="Something went wrong.  Try again.";
Y.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";Y.style.lineHeight="24px";Y.style.fontSize="16px";Y.style.textAlign="center";Y.style.letterSpacing="0.1px";Y.style.color=r?"rgb(232,234,237)":"#3c4043";C.appendChild(Y);C.appendChild(xyY(f));return C},Sl1=function(r,f,I){var C=document.createElement("button");
C.style.backgroundColor="transparent";C.style.border="none";C.style.borderRadius="50%";C.style.cursor="pointer";C.style.outline="none";C.style.padding="12px";C.setAttribute("aria-label","Close dialog");C.style.position="absolute";C.style.top="0";f?C.style.right="0":C.style.left="0";C.addEventListener("focus",function(){C.style.backgroundColor=r?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
C.addEventListener("blur",function(){C.style.backgroundColor="transparent"});
C.addEventListener("mouseenter",function(){C.style.backgroundColor=r?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
C.addEventListener("mouseleave",function(){C.style.backgroundColor="transparent"});
C.addEventListener("click",I);C.addEventListener("keydown",function(Y){Y.key!=="Enter"&&Y.key!=="Space"||I()});
f=document.createElement("img");f.src=r?"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";f.style.display="block";f.style.height="24px";f.style.width="24px";f.setAttribute("alt","");C.appendChild(f);return C},xyY=function(r){var f=document.createElement("div");
f.setAttribute("tabindex","0");f.setAttribute("aria-hidden","true");f.addEventListener("focus",function(){return void r.focus()});
return f},V53=function(r){var f=document.createElement("div");
f.style.backgroundColor="rgba(32,33,36,0.6)";f.style.bottom="0";f.style.left="0";f.style.position="fixed";f.style.right="0";f.style.top="0";f.style.transition=" opacity 150 ms linear";f.style.zIndex="2001";f.addEventListener("click",r);return f},Yl7=function(r,f){f.style.opacity="0";
r.style.opacity="0";r.style.transform="translate(-50%, -50%) scale(0.8)"},hH6=function(r,f){r.sandbox&&r.sandbox.add&&(r.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),r.sandbox.add("allow-downloads"));
r.src=f},M0=function(r){wj1.call(this,r)},aq=function(r,f){f=f===void 0?!1:f;
this.parsedImageUrl_=null;r instanceof bAY||(pjB==void 0&&(pjB=new nA2),r=pjB.parse(r.toString(),f));r=this.parsedImageUrl_=r;r.JSC$17246_parsedOptions_==void 0&&((f=r.getOptions())||(f=""),r.JSC$17246_parsedOptions_=(new dy6).parse(f));wj1.call(this,r.JSC$17246_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;r=this.parsedImageUrl_;f=r.uri_.JSC$7932_port_;this.JSC$17248_domain_=r.uri_.JSC$7932_domain_+(f?":"+f:"");this.JSC$17248_query_=this.parsedImageUrl_.uri_.JSC$7932_queryData_.toString()},
zHU=function(r){this.mode=4;
this.data=r;this.parsedData=[];r=0;for(var f=this.data.length;r<f;r++){var I=[],C=this.data.charCodeAt(r);C>65536?(I[0]=240|(C&1835008)>>>18,I[1]=128|(C&258048)>>>12,I[2]=128|(C&4032)>>>6,I[3]=128|C&63):C>2048?(I[0]=224|(C&61440)>>>12,I[1]=128|(C&4032)>>>6,I[2]=128|C&63):C>128?(I[0]=192|(C&1984)>>>6,I[1]=128|C&63):I[0]=C;this.parsedData.push(I)}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))},M56=function(r){this.typeNumber=0;
this.errorCorrectLevel=r===void 0?2:r;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},XU=function(r,f){if(r.length==void 0)throw Error("rk`"+r.length+"`"+f);
for(var I=0;I<r.length&&r[I]==0;)I++;this.num=Array(r.length-I+f);for(f=0;f<r.length-I;f++)this.num[f]=r[f+I]},gA6=function(r,f){this.totalCount=r;
this.dataCount=f},aod=function(){this.buffer=[];
this.length=0},Xj2=function(){var r=!1;
if(_.bwR()){r=_.Mc();var f="";_.dcw()?(f=/Windows (?:NT|Phone) ([0-9.]+)/,f=(r=f.exec(r))?r[1]:"0.0"):_.RR()?(f=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,f=(r=f.exec(r))&&r[1].replace(/_/g,".")):_.nql()?(f=/Mac OS X ([0-9_.]+)/,f=(r=f.exec(r))?r[1].replace(/_/g,"."):"10"):_.nw(_.Mc(),"KaiOS")?(f=/(?:KaiOS)\/(\S+)/i,f=(r=f.exec(r))&&r[1]):_.bwR()?(f=/Android\s+([^\);]+)(\)|;)/,f=(r=f.exec(r))&&r[1]):_.zlR()&&(f=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,f=(r=f.exec(r))&&r[1]);r=f||""}return r},TdV=function(r,
f){this.JSC$17271__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(f)for(var I in f)this.JSC$17271__htOption[I]=f[I];this.JSC$17271__htOption.useSVG&&(Nd6=$y6);this.JSC$17271__android=Xj2();this.JSC$17271__el=r;this._oQRCode=null;this._oDrawing=new Nd6(this.JSC$17271__el,this.JSC$17271__htOption);this.JSC$17271__htOption.text&&(r=this.JSC$17271__htOption.text,this._oQRCode=new M56(this.JSC$17271__htOption.correctLevel),F01(this._oQRCode,r),f=this._oQRCode,PyY(f,!1,t56(f)),this.JSC$17271__el.title=
r,this._oDrawing.draw(this._oQRCode),this.makeImage())},c1Y=function(r,f,I,C,Y){r.save();
var V=new Path2D;V.roundRect(f,I,C*7,C*7,C*2);V.roundRect(f+C,I+C,C*5,C*5,C*1.3);V.roundRect(f+2*C,I+2*C,C*3,C*3,C);r.clip(V,"evenodd");r.fillStyle=Y;r.fillRect(0,0,r.canvas.width,r.canvas.height);r.restore()},N0=function(r,f){if(typeof r!=="function")throw Error("uk");
return _.Yq.setTimeout(function(){r()},f)},$e=function(){},L0U=function(r,f,I,C,Y){(new $e).debug("TestLoadImageWithRetries: "+Y);
if(C==0)I(!1);else{var V=Y||0;C--;W0p(r,f,function(S){S?I(!0):_.Yq.setTimeout(function(){L0U(r,f,I,C,V)},V)})}},W0p=function(r,f,I){var C=new $e;
C.debug("TestLoadImage: loading "+r);var Y=new Image;Y.onload=function(){try{C.debug("TestLoadImage: loaded"),my1(Y),I(!0)}catch(V){}};
Y.onerror=function(){try{C.debug("TestLoadImage: error"),my1(Y),I(!1)}catch(V){}};
Y.onabort=function(){try{C.debug("TestLoadImage: abort"),my1(Y),I(!1)}catch(V){}};
Y.ontimeout=function(){try{C.debug("TestLoadImage: timeout"),my1(Y),I(!1)}catch(V){}};
_.Yq.setTimeout(function(){if(Y.ontimeout)Y.ontimeout()},f);
Y.src=r},my1=function(r){r.onload=null;
r.onerror=null;r.onabort=null;r.ontimeout=null},eH3=function(){this.front_=[];
this.back_=[]},J1B=function(r,f){_.Mu.call(this);
this.delay_=new _.aZ(this.JSC$17397_onTick_,0,this);_.V$(this,this.delay_);this.JSC$17395_interval_=5E3;this.nextTickTime_=0;if(typeof r==="function")f&&(r=(0,_.gL)(r,f));else if(r&&typeof r.handleEvent==="function")r=(0,_.gL)(r.handleEvent,r);else throw Error("Ca");this.JSC$17397_listener_=r},FU=function(r,f,I,C,Y,V,S,h,w,n,d,z,g,X){I=I===void 0?!1:I;
C=C===void 0?function(){return""}:C;
Y=Y===void 0?!1:Y;V=V===void 0?!1:V;S=S===void 0?!1:S;h=h===void 0?function(){return _.fe({})}:h;
w=w===void 0?!1:w;d=d===void 0?!1:d;z=z===void 0?!1:z;g=g===void 0?!1:g;X=X===void 0?!1:X;this.JSC$17398_pathPrefix_=r;this.defaultQueryParams_=f;this.pubsub_=new _.EH;this.reconnectTimer_=new J1B(this.safeReconnect_,this);this.JSC$17398_channel_=null;this.JSC$17398_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17398_pendingMessages_=[];this.enableAsyncTest_=I;this.JSC$17398_getXsrfToken_=C;this.useAsyncBrowserChannelHandler_=V;this.getAuthorizationHeader_=
h;this.getAuthorizationHeaderSync_=n;this.enableCachedUpdateAuthorizationHeader_=S;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.fe();this.enableLoungeTokenRefresh_=Y;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=w;this.disableMdxAuthForNonPlaybackMessages_=d;this.disableMdxAuthForAdMessages_=z;this.enableMdxAuthForConnectionOnly_=g;this.disableMdxAuthForShortsMessages_=X;this.JSC$17398_channelOpenedCounter=new joU;this.JSC$17398_channelClosedCounter=new HAq;this.channelMessageSentCounter=
new iA7;this.JSC$17398_channelMessageReceivedCounter=new RHU;this.JSC$17398_channelErrorCounter=new vAV;this.pendingMapsOnClosedCounter=new K0s;this.undeliveredMapsOnClosedCounter=new y13},Pn=function(r){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;r=r||document.location.href;var f=Number(_.sQ(r)[4]||null)||"";f&&(this.port=":"+f);this.domain=_.OQ(r)||"";r=_.Mc();r.search("MSIE")>=0&&_.zB(r.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},tM=function(r){r=r||{};
this.name=r.name||"";this.id=r.id||r.screenId||"";this.token=r.token||r.loungeToken||"";this.uuid=r.uuid||r.dialId||"";this.idType=r.screenIdType||"normal"},Uy6=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var f=Math.random()*16|0;
return(r=="x"?f:f&3|8).toString(16)})},so6=function(r){return _.$X(r,function(f){return{key:f.id,
name:f.name}})},OAV=function(r,f){return _.yE(r,function(I){return I||f?!I!=!f?!1:I.id==f.id:!0})},cn=function(r,f){return _.yE(r,function(I){return Tl(I,f)})},GIY=function(){var r=oAq(),f=Qo1();
if(A1p()){var I=r,C=_.NRd(I,f);C<0&&_.XuE(I,-(C+1),0,f)}r=ZA3(r);if(r.length==0)try{_.pju("remote_sid")}catch(Y){}else try{_.hd("remote_sid",r.join(","),-1)}catch(Y){}},oAq=function(){var r=_.YJ("yt-remote-connected-devices")||[];
r.sort(_.bV);return r},ZA3=function(r){if(r.length==0)return[];
var f=r[0].indexOf("#"),I=f==-1?r[0]:r[0].substring(0,f);return _.$X(r,function(C,Y){return Y==0?C:C.substring(I.length)})},kIq=function(r){_.Ch("yt-remote-connected-devices",r,86400)},Qo1=function(){if(Bdq)return Bdq;
var r=_.YJ("yt-remote-device-id");r||(r=Uy6(),_.Ch("yt-remote-device-id",r,31536E3));for(var f=oAq(),I=1,C=r;_.Am(f,C);)I++,C=r+"#"+I;return Bdq=C},ql3=function(){return _.YJ("yt-remote-session-browser-channel")},A1p=function(){return _.YJ("yt-remote-session-screen-id")},rZ3=function(r){r.length>5&&(r=r.slice(r.length-5));
var f=_.$X(u66(),function(C){return C.loungeToken}),I=_.$X(r,function(C){return C.loungeToken});
_.VWU(I,function(C){return!_.Am(f,C)})&&DyU();
_.Ch("yt-remote-local-screens",r,31536E3)},u66=function(){return _.YJ("yt-remote-local-screens")||[]},DyU=function(){_.Ch("yt-remote-lounge-token-expiration",!0,86400)},Wn=function(r){r||(_.lg("yt-remote-session-screen-id"),_.lg("yt-remote-session-video-id"));
GIY();r=oAq();_.uU(r,Qo1());kIq(r)},Iki=function(){fk7();
return L4?!!L4.get("yt-remote-use-staging-server"):!1},fk7=function(){if(!L4){var r=_.$yK();
r&&(L4=new _.dl(r))}},V_i=function(r,f,I,C,Y){I=I===void 0?function(){return""}:I;
var V=function(){return new FU(m1(r,"/bc"),f,!1,I,C)};
return _.N("enable_mdx_web_channel_desktop")?new Cm6(function(){return new Y_s(m1(r,"/wc"),f,I)}):new lki(V,Y)},hdp=function(){var r=EI7;
S_B();eI.push(r);xo6()},JM=function(r,f){S_B();
var I=wFB(r,String(f));eI.length==0?bes(I):(xo6(),_.Rv(eI,function(C){C(I)}))},jI=function(r){JM("CP",r)},S_B=function(){eI||(eI=_.jH("yt.mdx.remote.debug.handlers_")||[],_.OH("yt.mdx.remote.debug.handlers_",eI))},bes=function(r){var f=(Hn+1)%50;
Hn=f;pFU[f]=r;nId||(nId=f==49)},xo6=function(){var r=eI;
if(pFU[0]){var f=nId?Hn:-1,I={};do I={record$jscomp$13:void 0},f=(f+1)%50,I.record$jscomp$13=pFU[f],_.Rv(r,function(C){return function(Y){Y(C.record$jscomp$13)}}(I));
while(f!=Hn);pFU=Array(50);Hn=-1;nId=!1}},wFB=function(r,f){var I=(Date.now()-do6)/1E3;
I.toFixed&&(I=I.toFixed(3));var C=[];C.push("[",I+"s","] ");C.push("[","yt.mdx.remote","] ");C.push(r+": "+f,"\n");return C.join("")},ie=function(r){_.QK.call(this);
this.JSC$17422_logName_=r;this.screens=[]},vn=function(r){ie.call(this,"LocalScreenService");
this.JSC$17429_http_=r;this.loungeTokenRefreshTimer_=NaN;Rq(this);this.info("Initializing with "+zdd(this.screens))},K4=function(r,f){f=f===void 0?!1:f;
ie.call(this,"ScreenService");this.JSC$17435_http_=r;this.disableAutomaticScreenCache_=f;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};M_7(this)},y6=function(r,f,I){_.QK.call(this);
this.JSC$17439_logName_=I;this.JSC$17439_screenService_=r;this.receiver_=f;this.screen_=null},JZs=function(r,f,I){I.disableCastApi?UA("Cannot initialize because disabled by Mdx config."):gIi()?aks(r,I)&&(XFq(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?NX3(f):(window.__onGCastApiAvailable=function(C,Y){C?NX3(f):(sA("Failed to load cast API: "+Y),$oq(!1),XFq(!1),_.lg("yt-remote-cast-available"),_.lg("yt-remote-cast-receiver"),Fwd(),f(!1))},I.loadCastApiSetupScript?_.m0("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?Pmd()>=60&&t_3():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?TX1():Pmd()>=89?cZ6():(Wwp(),LwB(moY.map(ed6))))):UA("Cannot initialize because not running Chrome")},Fwd=function(){UA("dispose");
var r=OA();r&&r.dispose();_.OH("yt.mdx.remote.cloudview.instance_",null);jlq(!1);_.Y$R(Hed);Hed.length=0},ie6=function(){return!!_.YJ("yt-remote-cast-installed")},Rd6=function(){var r=_.YJ("yt-remote-cast-receiver");
return r?r.friendlyName:null},vI6=function(){UA("clearCurrentReceiver");
_.lg("yt-remote-cast-receiver")},Kw7=function(){return ie6()?OA()?OA().getCastSession():(sA("getCastSelector: Cast is not initialized."),null):(sA("getCastSelector: Cast API is not installed!"),null)},Uo6=function(r,f){yZ3()?OA().setConnectedScreenStatus(r,f):sA("setConnectedScreenStatus called before ready.")},gIi=function(){var r=_.Mc().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.xp||r},aks=function(r,f){var I=!1;
OA()||(r=new oq(r,f),r.subscribe("yt-remote-cast2-availability-change",function(C){_.Ch("yt-remote-cast-available",C);qf("yt-remote-cast2-availability-change",C)}),r.subscribe("yt-remote-cast2-receiver-selected",function(C){UA("onReceiverSelected: "+C.friendlyName);
_.Ch("yt-remote-cast-receiver",C);qf("yt-remote-cast2-receiver-selected",C)}),r.subscribe("yt-remote-cast2-receiver-resumed",function(C){UA("onReceiverResumed: "+C.friendlyName);
_.Ch("yt-remote-cast-receiver",C);qf("yt-remote-cast2-receiver-resumed",C)}),r.subscribe("yt-remote-cast2-session-change",function(C){UA("onSessionChange: "+sli(C));
C||_.lg("yt-remote-cast-receiver");qf("yt-remote-cast2-session-change",C)}),_.OH("yt.mdx.remote.cloudview.instance_",r),I=!0);
UA("cloudview.createSingleton_: "+I);return I},OA=function(){return _.jH("yt.mdx.remote.cloudview.instance_")},NX3=function(r){$oq(!0);
XFq(!1);OA().init(!1,function(f){f?(jlq(!0),_.l1q("yt-remote-cast2-api-ready")):(sA("Failed to initialize cast API."),$oq(!1),_.lg("yt-remote-cast-available"),_.lg("yt-remote-cast-receiver"),Fwd());r(f)})},UA=function(r){JM("cloudview",r)},sA=function(r){JM("cloudview",r)},$oq=function(r){UA("setCastInstalled_ "+r);
_.Ch("yt-remote-cast-installed",r)},yZ3=function(){return!!_.jH("yt.mdx.remote.cloudview.apiReady_")},jlq=function(r){UA("setApiReady_ "+r);
_.OH("yt.mdx.remote.cloudview.apiReady_",r)},XFq=function(r){_.OH("yt.mdx.remote.cloudview.initializing_",r)},Q6=function(r){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(r)},Oe6=function(){var r,f;
return _.x(function(I){if(I.nextAddress==1)return(_.sbR()||_.N("use_new_nwl"))&&_.vOq().isNetworkAvailable()?_.b(I,_.o1(),2):I.return();if(I.nextAddress!=3)return(r=I.yieldResult)?_.b(I,W8s(r),3):I.return();f=I.yieldResult;if(!f.length)return I.return();f.forEach(function(C){var Y={timestamp:C.timestamp};C=C.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:C.appShellAssetLoadReport,options:Y}:C.clientError?{payloadName:"clientError",payload:C.clientError,options:Y}:void 0;C&&
_.NW(C.payloadName,C.payload,C.options)});
f.length===100&&_.F_.addLowPriorityJob(Oe6);_.wO(I)})},oI2=function(r){if(r.playerResponse){if(r=r.playerResponse,r.messages&&r.messages.length>0&&(r=r.messages.find(function(f){return!(!f||!f.mealbarPromoRenderer)}))&&r.mealbarPromoRenderer)return r.mealbarPromoRenderer}else if(r.response&&(r=r.response)&&r.overlay&&r.overlay.mealbarPromoRenderer)return r.overlay.mealbarPromoRenderer},Ql7=function(r){if(r.response){var f=r.response;
if(f&&f.overlay&&f.overlay.tooltipRenderer)return f.overlay.tooltipRenderer}if(r.playerResponse&&(r=r.playerResponse,r.messages&&r.messages.length>0&&(r=r.messages.find(function(I){return!(!I||!I.tooltipRenderer)}))&&r.tooltipRenderer))return r.tooltipRenderer},Ze7=function(r){if(!AZB&&(r=r||_.Lz("ZWIEBACK_PING_URLS"))&&r.length){AZB=!0;
for(var f=0;f<r.length;f++)_.jM(r[f])}},kM1=function(r){if(_.X0.get(_.Lz("PLAYER_VARS",{}),"privembed",!1)!="1"){r&&asB();
try{GMq().then(function(){},function(){}),_.rl(kM1,18E5)}catch(f){_.eH(f)}}},BXq=function(){var r=_.xI(),f=r.getFlag(119),I=window.devicePixelRatio>1;
document.body&&_.RP(document.body,"exp-invert-logo")&&(I&&!_.RP(document.body,"inverted-hdpi")?_.j$(document.body,"inverted-hdpi"):!I&&_.RP(document.body,"inverted-hdpi")&&_.e$(document.body,"inverted-hdpi"));f!=I&&(_.hZ(0,119,I),r.save())},q_i=function(r){return r.filter(function(f){return"ypcGetCartEndpoint"in f||"ypcFixInstrumentEndpoint"in f})},ucY=function(r){return r.filter(function(f){return!_.F(f,_.aGU)})},rQd=function(r){r=_.E(r);
for(var f=r.next(),I={};!f.done;I={setter$jscomp$6:void 0},f=r.next()){var C=f.value;f=C.params;C=C.service;f&&C&&(I.setter$jscomp$6=Doi[C],I.setter$jscomp$6&&f.forEach(function(Y){return function(V){var S=V.key;V=V.value;S&&V&&(0,Y.setter$jscomp$6)(S,V)}}(I)))}},Ixi=function(r,f){var I,C,Y,V,S,h,w;
_.x(function(n){switch(n.nextAddress){case 1:I=_.ct.getInstance();C=_.qv.instance;Y=_.Wl.instance;if(!Y)return fx3(r,C,f),n.return();_.l_(n,2);r.onLoadingCommand&&C.resolveCommand(r.onLoadingCommand);return _.b(n,I.getCurrentPositionFromGeolocation(),4);case 4:V=n.yieldResult;if(!r.resolveLocationCommand){n.jumpTo(5);break}S=I.createLocationInfo(V);return _.b(n,_.mC(Y,r.resolveLocationCommand,{locationInfo:S}),6);case 6:h=n.yieldResult;if(!h||"error"in h&&h.error||h.errorMetadata)return fx3(r,C,f),
n.return();var d;if(h==null?0:(d=h.onResponseReceivedActions)==null?0:d.length){d=_.E(h.onResponseReceivedActions);for(var z=d.next();!z.done;z=d.next())C.resolveCommand(z.value)}(_.F(r.onSuccessCommand,_.vj)||_.F(r.onSuccessCommand,_.lA))&&_.kA(f.hostElement,"yt-navigate",{endpoint:r.onSuccessCommand,reload:!0});case 5:_.Hd(n,0);break;case 2:w=_.ha(n);if(w instanceof GeolocationPositionError&&w.code===GeolocationPositionError.PERMISSION_DENIED)return r.onDeniedCommand&&C.resolveCommand(r.onDeniedCommand),
n.return();fx3(r,C,f);_.wO(n)}})},fx3=function(r,f,I){r.onFailureCommand&&(f.resolveCommand(r.onFailureCommand),_.Bj(I.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},Yrs=function(r,f){var I=_.F(r,_.UB4);
if(I&&f){r=I.videoIds||[I.videoId];var C;f=(C=_.kA(f,"yt-lockup-requested",{videoIds:r}).detail)==null?void 0:C.returnValue;var Y;I.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?Y=f?f:r.map(function(V){return{videoId:V,navigationEndpoint:I.videoCommand}}):f&&(Y=f);
Y&&(C=Y.map(function(V){var S=Object,h=S.assign;var w=V.navigationEndpoint;if(!_.F(w,_.xO)){var n=_.F(w,_.vj);if(n){if(delete n.index,delete n.playlistId,n=_.F(w==null?void 0:w.commandMetadata,_.oo),n==null?0:n.url){var d=n.url;d=_.Ol(d,"list");d=_.Ol(d,"index");n.url=d}}else w=void 0}return h.call(S,{},V,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:w})}),CX3(C,I))}},lxV=function(r){var f=_.jN();
if(r=_.F(r,_.sFg))r.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&f.clearQueue(),r.closeMiniplayer&&_.a().resolve(_.iO).close(!0)},ExU=function(r){Vo6(_.jN(),r)},Sr6=function(r){var f;
(r=(f=_.F(r,_.KYV))==null?void 0:f.setVideoIds)&&r.forEach(function(I){_.erU(_.jN(),I)})},hki=function(r){xjV(_.jN(),r)},w16=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(r){return!1}},b2U=function(r,f,I){return{horizontalAlignment:r.x+I.width/2<f.width/2?"west":"east",
verticalAlignment:r.y+I.height/2<f.height/2?"north":"south"}},djs=function(r,f,I,C,Y){Y=Y===void 0?new _.F0(0,0):Y;
return p16(nx6(r,f,I,C),Y)},nx6=function(r,f,I,C){return new _.F0(r==="west"?16:I.width-C.width-16,f==="north"?16:I.height-C.height-16)},zkd=function(r,f){var I=0;
r&&(I+=76);f&&(I+=285);return I},Mo1=function(r){var f=["h",
"m","s"],I=_.f8(f);I.reverse();var C={};r=(r.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(S){var h=(S.match(/[hms]/)||[""])[0];return h?(C[h]=parseInt(S.match(/\d+/)[0],10),!1):!0});
for(r.reverse();r.length&&I.length;){var Y=I.shift();Y in C||(C[Y]=parseInt(r.shift(),10))}if(r.length||C.s>59||C.m>59||C.h>9)return null;var V="";f.forEach(function(S){C[S]&&(V+=""+C[S]+S)});
return V||null},gxq=function(r){r=r.data;
return _.p("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.p("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.p(_.J3,{data:{thumbnails:[{url:r.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.p("div",{class:"profile-badge-view-model-wiz__content"},_.p("div",{class:"profile-badge-view-model-wiz__badge-description"},r.badgeDesc),r.badgeSubtitle?_.p("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},r.badgeSubtitle):null))},axV=function(r){r=
r.data;
var f=_.yy();_.vo(f,r.rendererContext);return _.p("yt-comment-interaction-view-model",{el:f,class:"yt-comment-interaction-view-model-wiz"},_.p("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":r.onTapA11yLabel,"on:keydown":_.jO(),tabindex:0},_.p("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.p("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},r.headerPrefix,' "',r.videoTitle),_.p("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.p("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.p("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},r.commentContent),_.p("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.p(_.J3,{data:{thumbnails:[{url:r.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},NG7=function(r){r=r.data;
return _.p("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},X16(r.avatar),_.p("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},r.channelName))},FQ6=function(r){r=r.data;
var f;return _.p("div",{class:"yt-profile-info-view-model-wiz__activity"},_.p("div",{class:"yt-profile-info-view-model-wiz__header"},_.p("div",{class:"yt-profile-info-view-model-wiz__section-title"},r.commentsInteractionTitle)),(f=r.comments)==null?void 0:f.map(function(I){return _.p("div",{class:"yt-profile-info-view-model-wiz__activity"},$jB(I))}))},PX7=function(r){r=r.data;
var f=_.Nd({elementsCommand:r.subscriptionsAccessButtonCommand}),I=_.yy();_.aIu(I,_.aB(r.subscriptionsAccessButtonCommand));var C=_.IC(function(V){if(f==null?0:f.onclick)f.onclick(V);return!1}),Y;
return _.p("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.p("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.p("a",{el:I,"on:click":C,class:"yt-profile-info-view-model-wiz__another-header"},_.p("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},r.sharedSubscriptionsTitle),_.p("div",null,$jB(r.subscriptionsAccessButton)))),_.p("div",{class:"yt-profile-info-view-model-wiz__subs"},(Y=r.sharedSubscriptions)==null?void 0:Y.slice(0,5).map(function(V){return _.p("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",$jB(V))})))},toB=function(r){r=r.data;
var f;return _.p("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.p("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.p("h2",{class:"yt-profile-info-view-model-wiz__section-title"},r.sharedSubscriptionsTitle)),_.p("div",{class:"yt-profile-info-view-model-wiz__subs"},(f=r.sharedSubscriptions)==null?void 0:f.slice(0,5).map(function(I){return _.p("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",$jB(I))})))},TG3=function(r){r=r.data;
return _.p("div",{class:"yt-profile-info-view-model-wiz__activity"},[r.profileBadgeInfoYtWide,r.profileBadgeInfoChannelWide].map(function(f){var I,C,Y,V,S;return f?_.p(_.B9,null,_.p("div",{class:"yt-profile-info-view-model-wiz__header"},_.p("div",{class:"yt-profile-info-view-model-wiz__section-title"},f==null?void 0:f.profileSectionTitle),_.p("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.p("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},f==null?void 0:(I=f.commentBadge)==
null?void 0:I.commentDesc),(f==null?0:(C=f.commentBadge)==null?0:C.blackHeartDesc)?_.p("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.p("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.p(_.J3,{data:{thumbnails:[{url:f==null?void 0:(Y=f.commentBadge)==null?void 0:Y.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.p("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},f==null?void 0:(V=
f.commentBadge)==null?void 0:V.blackHeartDesc))),_.p("div",{class:"yt-profile-info-view-model-wiz__badge"},f==null?void 0:(S=f.badges)==null?void 0:S.map(function(h){return _.p(gxq,{data:h})}))):null}))},cQ3=function(r){r=r.data;
return _.p("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.p(TG3,{data:r}),r.comments?_.p(FQ6,{data:r}):null,r.sharedSubscriptionsTitle?r.subscriptionsAccessButtonCommand?_.p(PX7,{data:r}):_.p(toB,{data:r}):null)},LQi=function(r){var f=r.data;
r=f?WQp(f.profileIdentityInfo):void 0;f=f?WQp(f.profileInfo):void 0;return _.p("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},r,f)},mjq=function(r,f){var I=_.XM_(f,{},r,!0);
return new Promise(function(C,Y){I.listenOnce("n",function(){Y(Error("el`"+I.JSC$25706_getErrorDescription()))});
I.listenOnce("l",function(){var V=I.getResponseCode();if(V!==200)Y(Error("fl`"+f+"`"+r.type+"`"+r.size+"`"+V));else try{C(JSON.parse(I.getResponseText()).encryptedBlobId)}catch(S){Y(S)}});
I.run()})},ekq=function(r){return r.substring(r.indexOf(":")+1,r.indexOf(";"))},JQp=function(r){return new Promise(function(f,I){var C=new FileReader;
C.onloadend=function(){try{var Y=new Uint8Array(C.result);Y.length<8&&I(void 0);var V=Y.subarray(0,8);Y="";for(var S=0;S<V.length;S++)Y+=("0"+V[S].toString(16)).substr(-2);Y.startsWith("ffd8ff")?f("image/jpeg"):Y.startsWith("47494638")?f("image/gif"):Y.startsWith("89504e470d0a1a0a")?f("image/png"):Y.startsWith("424d")?f("image/bmp"):f(void 0)}catch(h){I(h)}};
C.onerror=I;C.readAsArrayBuffer(r)})},jri=function(r){return new Promise(function(f,I){var C=new Image;
C.crossOrigin="anonymous";C.onload=function(){var Y=document.createElement("canvas");Y.width=C.naturalWidth;Y.height=C.naturalHeight;var V=Y.getContext("2d");if(!V)throw Error("gl");V.drawImage(C,0,0);V=ekq(r);Y.toBlob(function(S){S?f(S):I()},V)};
C.src=r})},i23=function(r,f){var I;
if(((I=_.F(r,_.xO))==null?void 0:I.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var C;_.kA((C=f.hostElement)!=null?C:f,"yt-shorts-reset");_.t9X(_.a().resolve(_.BP),r).then(function(V){H2s(V,f,r)})}else{var Y;
_.Do((Y=f.hostElement)!=null?Y:f,[r]).then(function(V){V&&H2s(V.data,f,r)})}},H2s=function(r,f,I){if(r){var C=_.F(r.replacementEndpoint,_.xO);
if(C){r.sequenceContinuation&&(C.sequenceParams=r.sequenceContinuation);var Y;_.kA((Y=f.hostElement)!=null?Y:f,"yt-navigate",{endpoint:r.replacementEndpoint})}else if((r==null?void 0:r.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(r==null?0:r.watchStatus)&&_.F(r.watchStatus,_.FlV)){var V;_.kA((V=f.hostElement)!=null?V:f,"yt-navigate",{endpoint:I})}}},RkB=function(){var r=_.a().resolve(_.Nb),f=uoB(r.getState())||"";
r=_.Tcm(r.getState())||"";return{disableCache:f==="ytd-browse"&&r==="home"}},vx2=function(r){if(!r)return!1;
try{if(r.host&&r.host.tagName==="YT-FORMATTED-STRING"&&r.host.id==="contenteditable-textarea"||r.nodeType===Node.ELEMENT_NODE&&r.tagName==="YTD-COMMENT-INPUT")return!0}catch(f){return!1}return vx2(r.parentNode)},AM=function(r){return r?r.tagName==="A"&&r.href&&r.classList.contains("yt-simple-endpoint"):!1},KQi=function(r){return r?r.tagName==="IMG"&&r.classList.contains("emoji"):!1},yQp=function(r,f,I){if(!r)return null;
var C=AM(r);if(C&&I)return f=r.pathname.substring(r.pathname.indexOf("/channel/")+9),document.createTextNode("@"+f);if(C&&!I)return document.createTextNode("");if(KQi(r))return I=r.alt,r=r.dataset.emojiId,!r&&f&&(f=_.b1(f,I))&&f.isCustomEmoji&&(r=f.emojiId),r?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+r+">"):document.createTextNode(I);C=r.cloneNode(!1);for(var Y=0;Y<r.childNodes.length;++Y){var V=yQp(r.childNodes[Y],f,I);V&&C.appendChild(V)}return C},ZI=function(r){return r?AM(r)?r:ZI(r.lastChild):
null},Uj7=function(r){return r?AM(r)?r:Uj7(r.firstChild):null},sri=function(r){if(!r)return null;
for(var f=r.previousSibling;f;)if(f.nodeType===Node.ELEMENT_NODE&&f.nodeName==="BR")f=f.previousSibling;else if(f.nodeType===Node.TEXT_NODE&&/\s+/.test(f.textContent))f=f.previousSibling;else break;(f=ZI(f))?r=f:r=(r=r.parentNode)?ZI(r.previousElementSibling):null;return r},O2q=function(r){if(!r)return null;
for(var f=r.nextSibling;f;)if(f.nodeType===Node.ELEMENT_NODE&&f.nodeName==="BR")f=f.nextSibling;else if(f.nodeType===Node.TEXT_NODE&&/\s+/.test(f.textContent))f=f.nextSibling;else break;return(f=Uj7(f))?f:O2q(r.parentNode)},ox3=function(r){var f=_.nH(),I=f.JSC$9151_getStartNode();
if(!vx2(I.parentNode))return null;f=f.JSC$9151_getStartOffset();if(I.nodeType===Node.TEXT_NODE){var C=_.mI(I,AM);if(C){if(r&&f===0||!r&&f===I.length)return C}else{if(r&&f===I.length)return!I||I.nodeName==="BR"||I.nextElementSibling&&_.dY(I.nextElementSibling,"display")==="block"?null:Uj7(I.nextElementSibling);if(!r&&f===0)return I?ZI(I.previousElementSibling):null}}if(I.nodeType===Node.ELEMENT_NODE)if(r){if(0<=f&&f<I.childNodes.length)return Uj7(I.childNodes[f])}else if(0<f&&f<=I.childNodes.length)return ZI(I.childNodes[f-
1]);return null},Qr3=function(r,f,I){if(!r)return null;
if(r.nodeType===Node.TEXT_NODE)if(I){var C=sri(r);if(C&&!/^\s+\S/.test(r.wholeText.substr(0,f)))return C}else if((C=O2q(r))&&!/\S\s+/.test(r.wholeText.substr(f,r.wholeText.length)))return C;return r.nodeType===Node.ELEMENT_NODE?I?sri(r.childNodes[f]):O2q(r.childNodes[f]):Qr3(r.parentNode,f,I)},AQU=function(r){if(r.hasChildNodes())switch(r.tagName){case "DIV":case "A":case "SPAN":var f="";
for(r=r.firstChild;r;r=r.nextSibling)f+=AQU(r);return f;default:return""}else switch(r.nodeType){case 3:return r.textContent;default:return""}},Z27=function(r){r=r.data;
return _.p("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.p("div",null,_.p(_.wW,{text:r.title})),r.subtitle?_.p("div",{class:"ytd-menu-title-renderer__subtitle"},_.p(_.wW,{text:r.subtitle})):null)},G3Y=function(r){switch(r){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"}},k3s=function(r){return r.map(function(f){return{settingsRadioOptionRenderer:{title:_.GM(f.name),
asideText:_.GM(f.approximateSize),id:G3Y(f.format)}}})},qr7=function(r){if(r&&r.length!==0)return r.filter(BG1()).map(function(f){return{settingsRadioOptionRenderer:{title:f.name,
asideText:f.approximateSize,id:G3Y(f.formatType)}}})},Gl=function(r){if(r)return r.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},uN6=function(r,f){r=new Set(r!=null?r:[]);
if(r.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(r.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(r.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(r.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(r.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(f)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},Dji=function(r){var f=r.indexOf("(");
return f!==-1?r.substring(f+1,r.length-1):r},rN2=function(r){switch(r){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},Ih6=function(r,f,I,C,Y,V){var S=_.X0.clone(fhB);
S.locale=_.Lz("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;S.report={description:Y||"<empty>"};Y=_.Lz("SBOX_SETTINGS",{});f=f.join(",");var h=Date.now();r={choice_cc:C,choice_id_cc:I,choices_sc:f,gl:Y.REQUEST_DOMAIN,hl:Y.REQUEST_LANGUAGE,query:r,time:h};V&&(r.choice_additional_comment_cc=V);_.Th_(S,r)},CA6=function(r){var f=new Map;
f.set("authuser",_.Lz("SESSION_INDEX","0"));return _.Dj(r,f)},lhs=function(r){var f;
return _.x(function(I){switch(I.nextAddress){case 1:if(!r||!YiV(r))return I.return(null);f=null;switch(_.Lz("INNERTUBE_CLIENT_NAME")){case "WEB":return I.jumpTo(2);case "WEB_REMIX":f=r.getPlayer()}I.jumpTo(3);break;case 2:return _.b(I,r.getPlayerPromise(),4);case 4:f=I.yieldResult;I.jumpTo(3);break;case 3:return I.return(f)}})},YiV=function(r){return["ytd-player",
"ytmusic-player"].includes(String(r.tagName||"").toLowerCase())},Vld=function(r){r=Math.round(r);
return r%2?r-1:r},EO3=function(r){r=Math.round(r);
return r%2===0?r-1:r},Si3=function(r){var f,I,C;
if(r=(f=r.createPlaylistDialogFormSchema)==null?void 0:(I=f.fieldSchemas)==null?void 0:(C=I.title)==null?void 0:C.validationSchema)for(f=[r.syncStep,r.asyncStep].filter(function(Y){return Y!==void 0}),f=_.E(f),I=f.next();!I.done;I=f.next()){I=I.value.rules;
if(!I)break;I=_.E(I);for(I=I.next();!I.done;I=I.next())return _.F(I.value,_.NLq)}},hE6=function(r){var f,I,C;
if(r=(f=r.createPlaylistDialogFormSchema)==null?void 0:(I=f.fieldSchemas)==null?void 0:(C=I.visibility)==null?void 0:C.validationSchema)for(f=[r.syncStep,r.asyncStep].filter(function(Y){return Y!==void 0}),f=_.E(f),I=f.next();!I.done;I=f.next()){I=I.value.rules;
if(!I)break;I=_.E(I);for(C=I.next();!C.done;C=I.next())if(C=_.F(C.value,xGV))return f=void 0,(f=C.translations)==null?void 0:f.visibilityNotValidErrorMessage}},wt6=function(){var r,f;
return(f=(r=_.a().resolve(_.ZY(_.cI)))==null?void 0:r())!=null?f:!1},bJV=function(r,f){a:switch(f){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":f="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:f="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:r,style:f,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},pti=function(r){var f=21;
if(!r)return f;f+=r.headerTitle?27:0;f+=r.headerTitle&&r.hasHeaderActionHeader?4:0;return f+=r.headerTitle&&r.headerSubtitle?16:0},nO1=function(r){var f=0;
if(!r)return f;f+=r.hasFooterPrimaryButton||r.hasFooterSecondaryButton?48:0;f+=r.footerTrailingLabel||r.footerLeadingLabel?30:0;return f+=r.hasFooterPrimaryButton||r.hasFooterSecondaryButton||!r.footerTrailingLabel&&!r.footerLeadingLabel?0:12},dGq=function(r){var f=new _.EH,I=r;
return{subscribe:function(C){f.subscribe("changed",C)},
dispatch:function(C,Y){var V=I;C==="Touch Start"?I=Object.assign({},V,{isAnimating:!1,initialY:Y.event.touches[0].clientY}):C==="Touch Move"?(C=Math.min(Y.fullContentWrapperHeight,Y.contentHeightMap[Y.contentWrapperId]+pti(Y.header)-nO1(Y.footer)),I=Object.assign({},V,{currentY:Math.max(Y.contentScrollable?-1*(V.initialY-24):0,Y.event.touches[0].clientY-V.initialY),maxHeightForContentWrapper:Math.min(C,Math.max(0,(V.isFullScreen?C:Y.contentWrapperHeight)-V.currentY))})):I=C==="Snap To Full Screen"?
Object.assign({},V,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:Y.maxHeight}):C==="Snap To Neutral Position"?Object.assign({},V,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:Y.maxHeight}):C==="Close Sheet"?Object.assign({},V,{isAnimating:!0,currentY:Y.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:Y.maxHeight}):V;f.publish("changed",I)}}},zE6=function(r){return _.IC(function(f){r(f);
return!1})},Ml3=function(){_.a().resolve(_.z7).closeSheet()},gOY=function(r){var f,I,C,Y,V,S,h,w,n,d,z;
return{headerTitle:(f=r.headerTitle)==null?void 0:f.call(r),headerSubtitle:(I=r.headerSubtitle)==null?void 0:I.call(r),headerActionHeader:r.headerActionHeader,footerPrimaryButton:r.footerPrimaryButton,footerSecondaryButton:r.footerSecondaryButton,footerButtonType:(C=r.footerButtonType)==null?void 0:C.call(r),footerLeadingLabel:(Y=r.footerLeadingLabel)==null?void 0:Y.call(r),footerTrailingLabel:(V=r.footerTrailingLabel)==null?void 0:V.call(r),shouldShowIcons:(S=r.shouldShowIcons)==null?void 0:S.call(r),
skipContentClick:(h=r.skipContentClick)==null?void 0:h.call(r),additionalClassName:(w=r.additionalClassName)==null?void 0:w.call(r),onClosedCallback:r.onClosedCallback,focusOnClose:(n=r.focusOnClose)==null?void 0:n.call(r),isDisabled:(d=r.isDisabled)==null?void 0:d.call(r),disabledCommand:(z=r.disabledCommand)==null?void 0:z.call(r),headerFn:r.headerFn,contentFn:r.contentFn,footerFn:r.footerFn,hasHeaderFn:r.hasHeaderFn(),hasContentFn:r.hasContentFn(),hasFooterFn:r.hasFooterFn(),hasFooterPrimaryButton:r.hasFooterPrimaryButton(),
hasFooterSecondaryButton:r.hasFooterSecondaryButton(),hasHeaderActionHeader:r.hasHeaderActionHeader()}},ahi=function(r){switch(r){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""}},Xtd=function(r){switch(r){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""}},N_3=function(r){switch(r){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""}},$Gp=function(r,f,I){f.forEach(function(C){_.lH(_.a().resolve(_.Ef),C)});
_.Bj(r,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",I])},T_Y=function(r,f,I,C){var Y=_.F(I,_.H_).commandLifeCycleConfig;
Y&&Y.onStartCommand&&_.rX(r,[Y.onStartCommand],f);_.QU(f);var V=_.Wl.instance;V&&_.LQ(V,I)?_.mC(V,I,C).then(function(S){if(!S||(S==null?0:S.error))return S=_.F(I,_.H_).serializedTransactionFlowLoggingParams,_.AH(f),_.h3(new ke("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",S));_.AH(f);return{data:S}}).then(function(S){_.AH(f);
F46(S.data);var h=S.data.command;h&&_.rX(r,[h],f);h=PA1(I,S.data);if(!h){var w=S.data;S=!1;if(w&&w.command&&_.F(w.command,_.Il)){var n;w=((n=_.F(w.command,_.Il))==null?void 0:n.commands)||[];for(n=0;n<w.length;n++)if(_.F(w[n],_.IGs)){S=!0;break}}S||_.wQ('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!h&&Y&&Y.onSuccessCommand?_.rX(r,[Y.onSuccessCommand],f):h&&Y&&Y.onFailureCommand&&_.rX(r,[Y.onFailureCommand],f)},function(){_.AH(f);
Y&&Y.onFailureCommand&&_.rX(r,[Y.onFailureCommand],f);tlp(I)}):_.Fo(Error("xl"),"ERROR")},cN6=function(r,f,I){var C=[f];
I&&C.push(I);return _.Do(r,C).then(function(Y){var V=_.F(f,_.H_).serializedTransactionFlowLoggingParams,S=Y.data,h=PA1(f,S);h?Y=_.h3(new ke(h,V)):F46(S);return Y},function(){var Y=_.F(f,_.H_).serializedTransactionFlowLoggingParams;
tlp(f);return _.h3(new ke("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Y))})},PA1=function(r,f){r=_.F(r,_.H_).serializedTransactionFlowLoggingParams;
var I=null;switch(f.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":I="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":I="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":I="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}I?_.m4(I,r):ol7(r);return I},tlp=function(r){_.m4("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.F(r,_.H_).serializedTransactionFlowLoggingParams)},
F46=function(r){if(r.trackingParams){var f=_.t1(),I=_.Pj();
f&&I&&_.mw(f,I,_.VH(r.trackingParams))}},W4d=function(r,f,I){var C=_.Wl.instance,Y=_.j2u(_.Lz("YPC_MB_URL")),V=(new _.eNw).init(),S=_.JzR(),h=_.F(I,_.ugg).languageCode;
h===void 0?_.Fo(Error("Ci"),"ERROR"):_.aP([V,Y]).then(function(){var w={ctk:payments.business.integration.ClientTokenFactory.createClientToken(h,S)};C&&_.LQ(C,I)?_.mC(C,I,w).then(function(n){return{data:n}}).then(function(n){_.kA(f,"yt-service-request-completed",n);
n.code!=="ERROR"&&(n=n.data.command)&&_.rX(r,[n],f)}):_.Fo(Error("xl"),"ERROR")})},eE6=function(r,f,I,C){var Y=_.Wl.instance;
Y&&_.LQ(Y,I)?_.mC(Y,I,C).then(function(V){return{data:V}}).then(function(V){L4B(r,f,I,V)},function(){mGB(I)}):(Y=_.a().resolve(_.ZY(_.bA)))&&Y.requestDataForServiceEndpoint(I,C).then(function(V){L4B(r,f,I,V)},function(){mGB(I)})},L4B=function(r,f,I,C){_.kA(f,"yt-service-request-completed",C);
if(C.code&&C.code=="ERROR")mGB(I);else{(C=C.data.commands)&&_.rX(r,C,f);var Y;(r=(Y=_.F(I,_.Yng))==null?void 0:Y.serializedYpcPauseFlowLoggingParams)&&r&&_.P0("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",r)}},mGB=function(r){var f;
(r=(f=_.F(r,_.Yng))==null?void 0:f.serializedYpcPauseFlowLoggingParams)&&r&&_.P0("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",r,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},HJB=function(r,f,I){var C=_.Wl.instance;
C&&_.LQ(C,I)?_.mC(C,I).then(function(Y){return{data:Y}}).then(function(Y){JN2(r,f,I,Y)},function(){jbi(I)}):(C=_.a().resolve(_.ZY(_.bA)))&&C.requestDataForServiceEndpoint(I).then(function(Y){JN2(r,f,I,Y)},function(){jbi(I)})},JN2=function(r,f,I,C){_.kA(f,"yt-service-request-completed",C);
C.code&&C.code=="ERROR"?jbi(I):((C=C.data.commands)&&_.rX(r,C,f),(r=_.F(I,_.lGs).serializedYpcResumeFlowLoggingParams)&&r&&_.P0("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",r))},jbi=function(r){(r=_.F(r,_.lGs).serializedYpcResumeFlowLoggingParams)&&r&&_.P0("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",r,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},iJY=function(r){r=r===void 0?{}:r;
_.a().resolve(_.guD).showFeedbackDialog(r.customProductData,r.feedbackContent,r.onFeedbackSubmitted,r.bucket)},REU=function(r){r=r===void 0?{}:r;
_.a().resolve(_.guD).showHelpDialog(r.helpContext,r.articleId,r.productData)},vOi=function(){REU()},K4U=function(){iJY()},UGY=function(r,f,I){var C,Y,V,S,h,w,n;
return _.x(function(d){switch(d.nextAddress){case 1:C=_.F(r,yNd);if((Y=C)==null?0:Y.productId){w={productId:C.productId,bucket:C.bucket,enableAnonymousFeedback:(h=C.enableAnonymousFeedback)!=null?h:!0,allowNonLoggedInFeedback:!0};n={feedbackChoice:I.feedbackChoice};if(!_.N("web_collect_offline_state")){d.jumpTo(8);break}_.l_(d,9);return _.b(d,rqB(n),11)}S={bucket:(V=C)==null?void 0:V.bucket};if(!_.N("web_collect_offline_state")){d.jumpTo(4);break}S.customProductData={};_.l_(d,5);return _.b(d,rqB(S.customProductData),
7);case 7:_.Hd(d,4);break;case 5:_.ha(d);case 4:iJY(S);d.jumpTo(0);break;case 11:_.Hd(d,8);break;case 9:_.ha(d);case 8:_.T1u(n),_.t1K("GFEEDBACK",n),C.productId==="5295751"&&(n.client_attestation=Number(_.Lz("CATSTAT",0))),C.productId==="5295751"&&(n.client_time=Date.now()/1E3/3600),C.productId==="5295751"&&(n.original_playback_id=_.Oc4||""),_.Th_(w,n),_.wO(d)}})},sbs=function(r){if(r=_.F(r,_.Y8q)){var f={bucket:r.bucketIdentifier};
r.additionalDatas&&(f.customProductData={},r.additionalDatas.forEach(function(I){if(I=I.userFeedbackEndpointProductSpecificValueData)f.customProductData[I.key]=I.value}));
iJY(f)}},OJi=function(r){var f=_.iz.getInstance();
var I=_.VR("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var C=_.VR("DELETE",void 0,"Delete"),Y=_.VR("CANCEL",void 0,"Cancel");I=Sjd(I,void 0,C,Y,{signal:"DELETE_ALL_DOWNLOADS"});_.WJ(f,[{openPopupAction:I}],r)},Qb7=function(){return _.x(function(r){return r.nextAddress==1?_.b(r,_.a().resolve(_.A5),2):_.b(r,oO2(),0)})},ANY=function(r){var f,I;
return _.x(function(C){return C.nextAddress==1?(I=(f=_.F(r,_.J7))==null?void 0:f.targetId)?_.b(C,_.a().resolve(_.A5),3):C.jumpTo(0):_.b(C,_.a().resolve(_.Q5).deleteVideo(I),0)})},GFY=function(r){var f,I;
return _.x(function(C){return C.nextAddress==1?(I=(f=_.F(r,_.J7))==null?void 0:f.targetId)?_.b(C,_.a().resolve(_.A5),3):C.jumpTo(0):_.b(C,ZJ6(_.a().resolve(_.Q5),I),0)})},B_Y=function(r){var f,I;
return _.x(function(C){return(I=(f=_.F(r,_.J7))==null?void 0:f.targetId)?_.b(C,kF7(I),0):C.jumpTo(0)})},udB=function(){_.N("kevlar_woffle_refresh_dl_load_killswitch")||qi2()},rGi=function(){_.N("kevlar_woffle")&&_.TF.instance&&DG6()},I1U=function(r){var f;
if((f=_.F(r,_.CF))==null||!f.videoId)return!1;f16(_.a().resolve(_.Q5),_.F(r,_.CF),r.clickTrackingParams);return!0},Y$Y=function(r){var f;
if((f=_.F(r,_.Y4))==null||!f.playlistId)return!1;C71(_.a().resolve(_.Q5),_.F(r,_.Y4),r.clickTrackingParams);return!0},VS3=function(r){var f=_.F(r,_.fv_);
(f==null?void 0:f.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(f==null?void 0:f.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||l1i(_.a().resolve(_.Q5),_.F(r,_.fv_))},S$3=function(r){r=_.F(r,_.Lmg);
var f;(r==null?0:(f=r.actions)==null?0:f.length)&&EN2(r)},wcY=function(r){var f,I;
return _.x(function(C){f=_.F(r,xvd);return(I=f)!=null&&I.localWatchHistoryCommandType?_.b(C,hDp(f),0):C.return()})},bx6=function(r){setTimeout(function(){requestAnimationFrame(r)},80)},pcs=function(r){return Object.entries(r).map(function(f){return f.join(":")}).join(";")},dv6=function(r){var f,I,C;
_.x(function(Y){if(Y.nextAddress==1)return _.b(Y,nNi(),2);f=Y.yieldResult;I=_.qv.instance;switch(f){case "granted":C=r.getLocationCommand;break;case "denied":C=r.openDeniedDialogAction;break;case "prompt":C=r.openCollectionDialogAction;break;default:C=r.openCollectionDialogAction}C&&I.resolveCommand(C);_.wO(Y)})},nNi=function(){var r,f;
return _.x(function(I){if(I.nextAddress==1)return r="prompt",navigator.permissions?_.b(I,navigator.permissions.query({name:"geolocation"}),3):I.jumpTo(2);I.nextAddress!=2&&(f=I.yieldResult,r=f.state);return I.return(r)})},MS1=function(){_.x(function(r){return _.b(r,_.zDB(),0)})},gNs=function(){var r,f,I;
return _.x(function(C){if(C.nextAddress==1)return r=_.a().resolve(_.pJ),r?_.b(C,_.mC(r,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.t7(Error("Al")),C.return(void 0));if(f=C.yieldResult){if(f.errorMetadata)return _.t7(Error("Bl`"+f.errorMetadata.status+"`"+f.error)),C.return(void 0);I=f.datasyncIds;_.zCs=I.length;return C.return(I)}_.t7(Error("Cl"));return C.return(void 0)})},a1d=function(){gNs().then(function(r){r&&(TUd(r),A72(r),zc1(r),Im6(r))})},Xc1=function(r){_.F_.addLowPriorityJob(function(){var f,
I,C,Y,V;
return _.x(function(S){switch(S.nextAddress){case 1:if(_.N("ytidb_clear_optimizations_killswitch")){S.jumpTo(2);break}f=_.bh("clear");if(f.startsWith("V")&&f.endsWith("||")){var h=[f];TUd(h);A72(h);zc1(h);Im6(h);return S.return()}I=Mq1();C=CKd();return _.b(S,ZNd(),3);case 3:return Y=S.yieldResult,_.b(S,cVs(),4);case 4:if(V=S.yieldResult,!(I||C||Y||V))return S.return();case 2:r.isNetworkAvailable()?a1d():r.listenOnce("publicytnetworkstatus-online",a1d),_.wO(S)}})})},Bn=function(r){r={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.iX(r)}}}};_.qv.instance&&_.qv.instance.resolveCommand(r)},Nmq=function(r){if(r){var f=_.IB();
_.f3(f,3854,void 0,{layer:0,parentLayer:4});switch(r){case 1:var I=238708;break;case 2:I=238715;break;case 3:I=238710;break;case 6:I=238709}I&&(r=_.fv(f,{veType:I}))&&_.YP(f,r)}},$vp=function(r){if(r){var f=_.IB();
_.f3(f,3854,void 0,{layer:0,parentLayer:4});switch(r){case 1:var I=238714;break;case 2:I=238711;break;case 8:I=238709;break;case 7:I=238713;break;case 3:case 4:case 5:I=238712}I&&(r=_.fv(f,{veType:I}))&&_.YP(f,r)}},FWB=function(r){switch(r.latencyType){case 0:_.al("consent_primitive_flow");
_.Xc("cpit",r.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Xc("cpist",r.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Xc("cprtif",r.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Xc("cprtli",r.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Xc("cprt",r.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Xc("cpdt",r.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.Xc("cpjct",r.timestampEpochMillis,"consent_primitive_flow")}},
jsB=function(r,f){var I,C,Y,V,S,h,w,n,d,z,g,X,P,W,m,v,O,k,Z,Cw;
return _.x(function(rR){switch(rR.nextAddress){case 1:_.l_(rR,2);(C=(I=_.F(r,P77))==null?void 0:I.serializedConsentRequest)||(C=(Y=_.F(r,tSi))==null?void 0:Y.serializedConsentRequest);C&&(V=Tms(_.MT(C)));if(V===void 0)return rR.return();S=cG1(V);S.latencyCallback=FWB;f&&WWs(S,function(){f.then(function(EP){EP.pauseVideo();(new LWi).increment()})});
return((h=_.F(r,P77))==null?void 0:h.consentAction)==="CONSENT_ACTION_PREWARM"||((w=_.F(r,tSi))==null?void 0:w.consentAction)==="CONSENT_ACTION_PREWARM"?_.b(rR,mvV(S),5):_.b(rR,eD6(S),6);case 6:n=rR.yieldResult;d=_.aJ(n,q0);if(d===1){if(((z=_.mt(n,ue,1,q0))==null?void 0:_.cM(z,1))===1||((g=_.mt(n,ue,1,q0))==null?void 0:_.cM(g,1))===2||((X=_.mt(n,ue,1,q0))==null?void 0:_.cM(X,1))===3)_.F(r,tSi)?Bn(_.VR("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Bn(_.VR("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));Nmq((P=_.mt(n,ue,1,q0))==null?void 0:_.cM(P,1),_.Bk(n,JG2,3,_.qS()))}else d===2?(((W=DI(n))==null?void 0:_.cM(W,1))===5?_.F(r,tSi)?Bn(_.VR("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Bn(_.VR("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((m=DI(n))==null?void 0:_.cM(m,1))===1||((v=DI(n))==null?void 0:_.cM(v,1))===4?Bn(_.VR("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((O=DI(n))==null?void 0:_.cM(O,1))===7&&((k=V)==null?void 0:(Z=_.kB(k,ro,4))==null?void 0:_.cM(Z,4))!==1&&Bn(_.VR("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),$vp((Cw=DI(n))==null?void 0:_.cM(Cw,1))):Bn(_.VR("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));rR.jumpTo(5);break;case 5:_.Hd(rR,0);break;case 2:_.ha(rR),Bn(_.VR("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.wO(rR)}})},ixs=function(){if(!Hxs.has("Worker")){Hxs.set("Worker",
!0);
var r={api:"BROWSER_API_WEB_WORKER"};r.available="Worker"in window?!0:!1;_.NW("apiTest",r)}},RDV=function(r){return typeof r==="undefined"?"-1":String(Math.ceil(r/1048576))},Uvi=function(r,f){vNq(new KWd(_.F(f,yGY).addToken,_.F(f,yGY).commonToken)).then(function(){_.kA(r,"yt-invoke-instrument-manager-action-completed")},function(I){_.kA(r,"yt-invoke-instrument-manager-action-error",I)})},ssY=function(r){return _.RJ(r)},Ox6=function(r){var f=1;
r=r.split(":");for(var I=[];f>0&&r.length;)I.push(r.shift()),f--;r.length&&I.push(r.join(":"));return I},oN6=function(r,f){f=r.aspectRatio()<=f.aspectRatio()?f.width/r.width:f.height/r.height;
r.scale(f)},Qs6=function(r,f){f=r.aspectRatio()>f.aspectRatio()?f.width/r.width:f.height/r.height;
return r.scale(f)},AG3=function(r){var f=new _.Yk;
return _.eg(f,11,r)},ZxV=function(r){var f={};
r=r.getAllResponseHeaders().split("\r\n");for(var I=0;I<r.length;I++)if(!_.bU(r[I])){var C=Ox6(r[I]),Y=C[0];C=C[1];if(typeof C==="string"){C=C.trim();var V=f[Y]||[];f[Y]=V;V.push(C)}}return _.X0.map(f,function(S){return S.join(", ")})},SI=function(r,f){return r.JSC$7695_xhr_?r.JSC$7695_xhr_.getResponseHeader(f):null},fm=function(r,f,I){Array.isArray(I)||(I=[String(I)]);
_.ho4(r.JSC$7932_queryData_,f,I);return r},DG6=function(){var r=_.TF.instance;
_.x(function(f){return r.deferredInstallPrompt?_.b(f,r.deferredInstallPrompt.prompt(),0):f.jumpTo(0)})},GXd=function(r,f,I){if(_.ID(r))_.Rv(r,f,I);
else for(r=_.Mqg(r);;){var C=r.next();if(C.done)break;f.call(I,C.value,void 0,r)}},kXB={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}"]},QBs,A3V,Zv3,Gi1,ki7,BFq,q62,u2B,Dd6,kF7,ZJ6,oO2,r8q,fb7,Ibq,CB6,Yk6,C71,f16,lb6,Vu6,EZV,qi2,l1i,Skq,EN2,xmi,hDp,hh6,wl1,bQ6,pl6,nZ3,dm3,zhU,Eh,MuY,gZs,
Vo6,CX3,ab6,Sx,xv,h$,wo,Xl7,NW3,$mp,FC6,PB6,tup,TWi,c86,WCp,LC7;kXB={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 BmV=function(r,f){var I=[];GXd(f,function(C){try{var Y=_.uK.prototype.getWrapper.call(this,C,!0)}catch(V){if(V=="Storage: Invalid value was encountered")return;throw V;}Y===void 0?I.push(C):_.zcg(Y)&&I.push(C)},r);
return I},q$i=function(r,f){BmV(r,f).forEach(function(I){_.uK.prototype.remove.call(this,I)},r)},uiV=function(r){var f=_.vq;
f._minimumZ=Math.max(f._minimumZ,r)},DvU=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],r3B=function(r,f){_.Z8(r.k9);r.k9=f},f52=function(r,f,I,C){r.setState(5);
var Y=!!r.yfc&&DvU.includes(_.OQ(r.yfc)||"");try{var V=new _.W7({program:f,globalName:I,l0:{disable:!_.N("att_web_record_metrics")||!_.N("att_skip_metrics_for_cookieless_domains_ks")&&Y,zl:"aGIf"}});V.oBS.then(function(){r.setState(6);C&&C(f)});
r3B(r,V)}catch(S){r.setState(7),S instanceof Error&&_.t7(S)}},I5i=function(r,f,I,C,Y,V){var S=S===void 0?"trayride":S;
I?(r.setState(2),_.m0(I,function(){if(window[S])f52(r,C,S,Y);else{r.setState(3);var h=_.lBR(I),w=document.getElementById(h);w&&(_.ENU(h),w.parentNode.removeChild(w));_.t7(new _.nf("BL:ULB",I))}},V)):f?(V=_.wL("SCRIPT"),f instanceof _.jF?_.Rw(V,f):V.textContent=f,V.nonce=_.J6(document),document.head.appendChild(V),document.head.removeChild(V),window[S]?f52(r,C,S,Y):(r.setState(4),_.t7(new _.nf("BL:ULBJ")))):_.t7(new _.nf("BL:ULV"))},CT7=function(){this.state=1;
this.k9=null;this.yfc=void 0};
_.l=CT7.prototype;_.l.initialize=function(r,f,I,C){this.yfc=C;if(r.program){var Y;C=(Y=r.interpreterUrl)!=null?Y:null;if(r.interpreterSafeScript)Y=_.TG$(r.interpreterSafeScript);else{var V;Y=(V=r.interpreterScript)!=null?V:null}r.interpreterSafeUrl&&(C=_.PW(r.interpreterSafeUrl).toString());I5i(this,Y,C,r.program,f,I)}else _.t7(Error("lf"))};
_.l.isInitialized=function(){return!!this.k9};
_.l.getState=function(){return this.state};
_.l.isLoading=function(){return this.state===2};
_.l.invoke=function(r){r=r===void 0?{}:r;var f;this.k9?f=_.DaB(this.k9,{mF:r}):f=null;return f};
_.l.dispose=function(){r3B(this,null);this.setState(8)};
_.l.setState=function(r){this.state=r};
var Y6i=function(r,f){return r.k9.snapshot(f)},l5d=function(r,f){var I=_.Bw("botguard_async_snapshot_timeout_ms",3E3);
f=f===void 0?{}:f;I=I===void 0?3E3:I;return r.k9?new Promise(function(C,Y){var V=!1,S=_.F_.addJob(function(){V=!0;Y(Error("mf"))},1,I);
r.k9?Y6i(r,{mF:f}).then(function(h){_.F_.cancelJob(S);V||C(h)}).catch(function(h){_.F_.cancelJob(S);
V||Y(h)}):(_.F_.cancelJob(S),C(null))}):Promise.resolve(null)},V$V=["att/log"],EYp;
EYp={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var S6d={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},xd3=function(r,f){return _.Er(r,{mode:"readwrite",enableRetries:!0},function(I){return _.UXu(I,f,"settingEntity")})},hs7=function(r,f,I){return _.Er(r,{mode:"readonly",
enableRetries:!0},function(C){return _.WJ3(C,f,I)})},wIp=function(r){if(!r.storage)return!1;
a:{if(r.storage){try{var f=r.storage.get("TLPQtimestamp")}catch(I){}r=Number(f);if(!isNaN(r))break a}r=void 0}return r?Date.now()-r<864E5:!1},bvV=function(r){if(r.storage){try{var f=r.storage.get("TLPQindex")}catch(I){}r=Number(f);
if(!isNaN(r))return r}},pIi=function(r,f){r.queueProxy&&f.forEach(function(I){if(I.videoId&&I.trackingParams&&r.queueProxy instanceof _.t9){var C=_.t1();
r.queueProxy.attributionData.set(I.videoId,{enqueueingVe:_.VH(I.trackingParams).getAsJson(),enqueueingCsn:C?C:void 0,clientEnqueueingTimeMs:Math.floor((0,_.Ad)()).toString()})}})},nYY=function(r){var f=_.Ehg(r);
f!=r.currentSnapState_&&(r.currentSnapState_=f,r.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},IW=function(r){this.JSC$10873_networkManager_=r;
this.partCallbacks_=[]};
IW.prototype.getCacheKeyForEndpoint=function(r){return _.NJm(r,!1)};
IW.prototype.onPartsCallback_=function(r){this.partCallbacks_.forEach(function(f){r&&f(r)})};
var Cm=function(r,f,I){IW.call(this,r);this.player_=f;this.autoplayData_=I};
_.t(Cm,IW);Cm.prototype.getCacheKeyForEndpoint=function(r){return _.NJm(r,!!this.autoplayData_)};
Cm.prototype.getTempData=function(r,f){f=f.timeBeforeNextVideo;r={itct:r.clickTrackingParams,lact:_.Zs(),pbis:f,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(r.autonav=1);return r};
Cm.prototype.getXhrParams=function(r){return Object.assign({pbj:"prefetch"},r)};
Cm.prototype.getParams=function(r){r={frags:r.fragmentsRequested.join(",")};_.N("kevlar_droppable_prefetchable_requests")&&(r.prefetch=1);return r};
var dd6=function(r){r.playerEvents_.forEach(function(f){r.player.removeEventListener(f.eventName,f.callback)});
r.playerEvents_.length=0},Yv=function(r,f,I){this.player=r;
this.JSC$10883_taskManager=f;this.prefetchDelay=I;this.completionResolver_=null;this.playerEvents_=[]};
Yv.prototype.start=function(){var r=this;this.completionResolver_=_.eu();_.XZ(this.completionResolver_.promise,function(){dd6(r);r.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var zsp=function(r,f,I){r.player.addEventListener(f,I);r.playerEvents_.push({eventName:f,callback:I})},M$B={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},gYB={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},a5s=function(r,f,I){Yv.call(this,r,f,I);this.cueId_="playbackTrigger-"+Math.random()};
_.t(a5s,Yv);
a5s.prototype.prepareTrigger=function(r){var f=this,I=this.player.getDuration(),C=this.player.getVideoData(),Y=C.isLive&&C.hasProgressBarBoundaries;if(Y&&C.progressBarEndPositionUtcTimeMillis){var V=C.progressBarEndPositionUtcTimeMillis/1E3;isNaN(V)||(I=V)}var S=0;this.prefetchDelay>=0?Y?C.progressBarStartPositionUtcTimeMillis&&(C=C.progressBarStartPositionUtcTimeMillis/1E3,isNaN(C)||(S=C+this.prefetchDelay)):S=this.prefetchDelay:S=I+this.prefetchDelay;Y?this.player.addUtcCueRange(this.cueId_,S,I):
this.player.addCueRange(this.cueId_,S,I);_.XZ(r.promise,function(){f.player.removeCueRange(f.cueId_)});
zsp(this,"onCueRangeEnter",function(h){h==f.cueId_&&r.resolve(I-S)})};
var XIB=function(r,f){r.fragmentConfiguration_[f].requiredKeys.every(function(I){return!!r.prefetchedData_[I]})&&(r.validatedFragments_.push(f),f=r.missingFragments_.indexOf(f),f!==-1&&r.missingFragments_.splice(f,1))},NFd=function(r){r.prefetchedFragments_.forEach(function(f){XIB(r,f)})},$di=function(r,f,I){this.pageFragments_=r;
this.prefetchedFragments_=f;this.fragmentConfiguration_=gYB;this.prefetchedData_=I;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;NFd(this)},Fv2=function(){},PT2=function(r){this.JSC$10897_playlistManager_=r};
_.t(PT2,Fv2);PT2.prototype.getPrefetchEndpoint=function(){return this.JSC$10897_playlistManager_.getAutoplayEndpoint()};
var t$6=function(r){this.autonavEndpoints_=r};
_.t(t$6,Fv2);t$6.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var TFs=function(r,f,I,C,Y){this.autonavEndpoints=r;this.foregroundTrigger=f;this.backgroundTrigger=I;this.pageType=C;this.isInPlaylist=Y},c33=function(r,f){if(r.webPrefetchData&&r.webPrefetchData.navigationEndpoints&&r.webPrefetchData.navigationEndpoints.length){r=r.webPrefetchData.navigationEndpoints;
var I=_.F(r[0],_.vj);if(I.watchEndpointSupportedPrefetchConfig&&I.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var C=I.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;I=C.playbackRelativeSecondsPrefetchCondition;I=typeof I==="number"&&Math.abs(I)<f.videoDuration?I:void 0;C=C.countdownUiRelativeSecondsPrefetchCondition;C=typeof C!=="number"||_.N("prefetch_job_config_cleanup_ks")&&f.inPlaylist?void 0:C;if(typeof C==="number")return new TFs(r,f.makeUpNextTrigger(C),f.makePlaybackTrigger(C),
"watch",f.inPlaylist);if(typeof I==="number")return new TFs(r,f.makePlaybackTrigger(I),null,"watch",f.inPlaylist)}}},Wvs=function(r){return r.prefetchJobConfig_.backgroundTrigger?_.Jn(_.YEE)()==0?r.prefetchJobConfig_.backgroundTrigger:r.prefetchJobConfig_.foregroundTrigger:r.prefetchJobConfig_.foregroundTrigger},Lv1=function(r){_.di(document,"visibilitychange",r.onVisibilityChange_,!1,r)},l5=function(r){IW.call(this,r)};
_.t(l5,IW);l5.prototype.getCacheKeyForEndpoint=function(r){return IW.prototype.getCacheKeyForEndpoint.call(this,r)};
l5.prototype.getTempData=function(){return{}};
l5.prototype.getXhrParams=function(r){return r};
l5.prototype.getParams=function(){return{}};
var md7=function(r,f,I){var C=r.prefetchDelay*1E3;if(Math.abs(C)>f)I.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var Y=C,V=f-C;C<0&&(Y=f+C,V=Math.abs(C));var S=r.JSC$10883_taskManager.addJob(function(){I.resolve(V/1E3)},10,Y);
I.promise.thenCatch(function(){r.JSC$10883_taskManager.cancelJob(S)})}},esV=function(r,f,I){Yv.call(this,r,f,I)};
_.t(esV,Yv);esV.prototype.prepareTrigger=function(r){var f=this;zsp(this,"onAutonavCoundownStarted",function(I){md7(f,I,r)})};
var J3U=function(r){r.pendingPrefetchJob_&&(r.pendingPrefetchJob_.cancel(),r.pendingPrefetchJob_=null)},jBU=function(r,f,I){if(!r.triggeredTargets.has(f)){var C=_.QQ_(r,f);
C.action=I;_.OBg(r,f,C)}},Hvp=function(r){_.HnB();
_.z_w("cpt")&&_.t7(Error("kh"));_.Yq.requestAnimationFrame(function(){_.Yq.setTimeout(function(){_.Xc("cpt");var f=_.Fc("vpl"),I=_.Fc("cpt");f&&I&&_.Xc("ol",Math.max(f,I))})});
try{_.Xc("fr_s"),r()}catch(f){_.Fo(f)}_.Yq.requestAnimationFrame(function(){_.Xc("bcp")})},ivp=function(r,f){r.serviceEndpointHandlers.push(f)},Rs2=function(r,f){f=r.pendingPages_.indexOf(f);
f>-1&&r.pendingPages_.splice(f,1)},vYV=function(r,f){var I=_.kr4.indexOf(f);
I>-1&&_.kr4.splice(I,1);r.targetPage_==f?(r.abort(),_.q8D(r)):Rs2(r,f)},Kv2=function(r,f,I,C){f={challenge:f};
I&&(f.webResponse=I);return _.cP(r.innertubeTransportService,f,_.yC(V$V),C)},y3s=function(r,f,I){if(!f.challenge)throw Error("mi");
if(f.botguardData&&f.botguardData.program){var C=new CT7;C.initialize(f.botguardData,function(){l5d(C,{atr_challenge:f.challenge}).then(function(Y){if(!Y)throw Error("ni");return Kv2(r,f.challenge,Y,I)}).catch(function(Y){_.t7(Y);
return Kv2(r,f.challenge,void 0,I)})},void 0)}else Kv2(r,f.challenge,void 0,I)},UdY=function(r,f,I){var C={};
f.ids&&(C.ids=[].concat(_.Na(f.ids)));f.engagementType&&(C.engagementType=f.engagementType);return _.cP(r.innertubeTransportService,C,_.yC(_.Q_U),I).then(function(Y){if(!Y)throw new _.nf("GetAttestationChallenge returned falsy");y3s(r,Y,I)}).thenCatch(function(Y){_.Fo(Y)})},sB2=function(r,f,I){return new _.lz(function(C,Y){var V;
return _.x(function(S){if(S.nextAddress==1){var h=f.engagementType,w=f.ids,n={};w=_.E(w!=null?w:[]);for(var d=w.next();!d.done;d=w.next())d=d.value,d.encryptedVideoId?n.encryptedVideoId=d.encryptedVideoId:d.externalChannelId?n.externalChannelId=d.externalChannelId:d.commentId?n.commentId=d.commentId:d.externalOwnerId?n.externalOwnerId=d.externalOwnerId:d.artistId?n.artistId=d.artistId:d.playlistId?n.playlistId=d.playlistId:d.externalPostId?n.externalPostId=d.externalPostId:d.shareId&&(n.shareId=d.shareId);
return _.b(S,Eo6(h,n),2)}V=S.yieldResult;if(!V.challenge)return _.t7(Error("oi")),UdY(r,f,I).then(C,Y),S.return();h=V;n={challenge:h.challenge};n.webResponse=h.webResponse;n.engagementType=f.engagementType;n.ids=f.ids;_.cP(r.innertubeTransportService,n,_.yC(V$V),I).then(C,Y);_.wO(S)})})},xjV=function(r,f){var I,C,Y,V;
_.x(function(S){if(S.nextAddress==1){I=_.F(f,_.o2q);if(!(I&&I.listId&&r.response&&r.response.playingVideoId)||r.listId!==I.listId)return S.return();r.index===void 0&&(r.index=0);return _.b(S,_.x5B(r.JSC$10703_playlistNetworkManager,I.listId,r.index,r.response.playingVideoId),2)}C=S.yieldResult;if(!C)return S.return();Y=C.playlistId;V=C.playlistPanelRenderer;r.setPlaylistData(Y,V,C.autoplayRenderer);_.wO(S)})},OvV=function(r,f,I){var C=r.getParams(I),Y=_.y3R(f,C),V=r.getTempData(f,I);
V.endpoint=JSON.stringify(f);_.N("enable_unknown_lact_fix_on_html5")&&(_.a().resolve(_.dW),V.lact=_.Zs());var S={headers:{"X-YouTube-STS":_.Lz("STS"),"x-youtube-csoc":1}};_.sl(Y,V);return new _.lz(function(h,w){var n=r.getXhrParams(C),d;_.N("kevlar_cache_on_ttl_player")&&(d=_.uH.instance);d&&_.NAC(d,f)?_.L53(d,f,V,window.location.href).then(function(z){z?h(z):w()},w):_.Zgg(r.JSC$10873_networkManager_,f,n,r.onPartsCallback_.bind(r),S).then(function(z){z?h(z):w()},w)})},oY1=function(r,f){r.triggerPromise_=
f.start();
r.triggerPromise_.then(function(I){var C=r.prefetchEndpointProvider_.getPrefetchEndpoint();if(C){var Y=M$B[r.prefetchJobConfig_.pageType].prefetchedFragments;r.prefetchRequestPromise_=OvV(r.JSC$10909_networkPrefetchRequest_,C,{fragmentsRequested:Y,timeBeforeNextVideo:I});r.prefetchResponseCacheKey_=r.JSC$10909_networkPrefetchRequest_.getCacheKeyForEndpoint(C);Lv1(r);r.prefetchRequestPromise_.then(function(V){r.storePrefetchedDataCallback_(r.prefetchResponseCacheKey_,V);if(_.N("web_prefetch_preload_video")&&
Y.length===1&&Y[0]==="pl"&&V&&!V.playerAds&&!V.adPlacements){var S=_.F(C,_.xO),h=S!=null,w={raw_player_response:V,watch_endpoint:S};(V=_.a().resolve(h?_.AYV:_.Zb))&&C&&V.then(function(n){h&&_.N("web_queue_preload_video")?(w.prefer_gapless=!0,n.queueNextVideo(w)):n.preloadVideoByPlayerVars(w)})}})}})},Vx=function(r,f,I,C){this.prefetchEndpointProvider_=r;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=f;this.prefetchJobConfig_=I;this.JSC$10909_networkPrefetchRequest_=C;this.prefetchResponseCacheKey_=null};
Vx.prototype.enqueue=function(){this.triggerPromise_||(oY1(this,Wvs(this)),_.S$(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
Vx.prototype.resolve=function(){this.cancel()};
Vx.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.");Lv1(this)};
Vx.prototype.onVisibilityChange_=function(){var r=this;_.Jn(_.YEE)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){r.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||oY1(this,Wvs(this))};
QBs=function(r,f,I,C,Y){f&&(f==null?0:f.videoId)&&I&&I.entries&&_.N("kevlar_enable_shorts_prefetch_in_sequence")&&(J3U(r),f=I.entries.map(function(V){var S;return(S=_.F(V.command,_.xO))==null?void 0:S.videoId}).indexOf(f.videoId),I=I.entries[f+1],I!=null&&I.command&&!_.F(I==null?void 0:I.command,_.c_)&&(C=new TFs([I.command],new a5s(C,_.F_,1),null,"shorts",!1),r.pendingPrefetchJob_=new Vx(new t$6(C.autonavEndpoints),function(){return!1},C,new l5(Y)),r.pendingPrefetchJob_.enqueue()))};
A3V=function(r,f,I,C,Y,V){var S=_.Qk.getInstance();if(!_.N("block_all_player_prefetch_requests")){J3U(r);var h=!!I.getPlaylistId(),w=I.getVideoData().isLive&&I.getVideoData().hasProgressBarBoundaries;if((S.getState()==2||h||w)&&(!I.getVideoData().isLive||w)){S={inPlaylist:h,videoDuration:I.getDuration(),makeUpNextTrigger:function(d){return new esV(I,_.F_,d)},
makePlaybackTrigger:function(d){return new a5s(I,_.F_,d)}};
var n=c33(f,S);n&&(r.pendingPrefetchJob_=new Vx(n.isInPlaylist?new PT2(Y):new t$6(n.autonavEndpoints),function(d,z){z=new $di(M$B[n.pageType].pageFragments,M$B[n.pageType].prefetchedFragments,z);return _.jQ4(z)?(r.prefetchCache_.set(d,z),!0):!1},n,new Cm(C,I,V,Y)),r.pendingPrefetchJob_.enqueue())}}};
Zv3=function(){var r=_.jN();r.signals.parkOrScheduleJob(function(){var f=r.storage;if(f.storage)if(wIp(f)){var I=f.getPlaylistId();f=bvV(f);I=!!I&&f!==void 0}else f.clear(),I=!1;else I=!1;if(I){I=r.pageManager.isOnWatch();a:{var C=r.storage;if(C.storage&&wIp(C)&&(f=C.getPlaylistId(),C=bvV(C),f&&C!==void 0)){I={recoverPlaylistCommand:{listId:f,index:C,openMiniplayer:!I,openListPanel:I,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}I=void 0}I&&_.WJ(r.JSC$10703_actionRouter,[I],null)}},0,"ma")};
Gi1=function(r,f,I,C,Y,V){var S=_.pQ(7111);_.Ia(r.JSC$16021_screenManager,S,V?_.VH(V):void 0);_.YP(r.JSC$16021_screenManager,S,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:C,offlineId:f,offlineabilityFormatType:I,isDefaultFormatType:Y==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:Y}})};
ki7=function(r,f,I,C,Y){var V,S,h,w,n;return _.x(function(d){if(d.nextAddress==1)return _.b(d,r.JSC$16021_playerApiPromise,2);V=d.yieldResult;Gi1(r,f,I,"OFFLINE_OBJECT_TYPE_PLAYLIST",C,Y);if(h=_.i_4[r.entityTypeMap.listEntityType])n={},S=(n[h]={maximumDownloadQuality:(w=I)!=null?w:void 0},n);return _.b(d,V.queueOfflineAction(f,r.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",S),0)})};
BFq=function(r,f){var I,C,Y,V;return _.x(function(S){if(S.nextAddress==1)return _.b(S,r.JSC$16021_persistentStorePromiseAccessor(),2);if(S.nextAddress!=3){I=S.yieldResult;if(!I)return _.t7(new _.nf("PES is undefined")),S.return();C=_.rG(f,"downloadStatusEntity");return _.b(S,hs7(I,C,"downloadStatusEntity"),3)}Y=S.yieldResult;return S.return((V=Y)==null?void 0:V.downloadState)})};
q62=function(r,f,I,C,Y){var V,S,h,w,n,d;return _.x(function(z){switch(z.nextAddress){case 1:return _.b(z,r.JSC$16021_playerApiPromise,2);case 2:V=z.yieldResult;Gi1(r,f,I,"OFFLINE_OBJECT_TYPE_VIDEO",C,Y);if(h=_.i_4[r.entityTypeMap.singleEntityType])n={},S=(n[h]={maximumDownloadQuality:(w=I)!=null?w:void 0},n);return _.b(z,BFq(r,f),3);case 3:d=z.yieldResult;if(d!=="DOWNLOAD_STATE_USER_DELETED"){z.jumpTo(4);break}return _.b(z,r.deleteVideo(f),4);case 4:return _.b(z,V.queueOfflineAction(f,r.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",S),0)}})};
u2B=function(r,f,I,C,Y){return _.x(function(V){return V.nextAddress==1?_.b(V,r.deleteVideo(f,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.b(V,q62(r,f,I,C,Y),0)})};
Dd6=function(r,f,I){var C,Y;return _.x(function(V){if(V.nextAddress==1)return _.b(V,r.JSC$16021_playerApiPromise,2);C=V.yieldResult;Y=_.rG(f,"mainVideoDownloadStateEntity");return _.b(V,C.updateDownloadState(Y,I),0)})};
kF7=function(r){var f=_.a().resolve(_.Q5);return _.x(function(I){if(I.nextAddress==1)return f.previousDownloadStateForVideo[r]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&f.previousDownloadStateForVideo[r]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?I.jumpTo(2):_.b(I,f.resumeVideoDownload(r),2);if(I.nextAddress!=4)return _.b(I,Dd6(f,r,f.previousDownloadStateForVideo[r]),4);delete f.previousDownloadStateForVideo[r];_.wO(I)})};
ZJ6=function(r,f){var I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,r.JSC$16021_playerApiPromise,2);I=C.yieldResult;return _.b(C,I.queueOfflineAction(f,r.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
oO2=function(){var r=_.a().resolve(_.Q5),f,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,r.JSC$16021_playerApiPromise,2);if(C.nextAddress!=3)return f=C.yieldResult,I={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.b(C,f.queueOfflineAction("!*$_ALL_ENTITIES_!*$",r.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",I),3);var Y=r.JSC$16021_commandHandler,V=Y.resolveCommand,S=_.VR("DELETING_ALL",void 0,"Downloads are being deleted");
V.call(Y,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.AZ(S)}},popupType:"TOAST"}});_.wO(C)})};
r8q=function(r){var f,I;return _.x(function(C){if(C.nextAddress==1)return _.b(C,r.JSC$16021_prefStorage,2);f=C.yieldResult;return C.return((I=f)==null?void 0:I.get("sdois"))})};
fb7=function(r){var f,I,C,Y,V,S;return _.x(function(h){if(h.nextAddress==1)return _.b(h,r.JSC$16021_persistentStorePromiseAccessor(),2);if(h.nextAddress!=3){f=h.yieldResult;if(!f)return _.t7(new _.nf("PES is undefined")),h.return();I=_.rG("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.b(h,hs7(f,I,"settingEntity"),3)}C=h.yieldResult;return h.return((S=(Y=C)==null?void 0:(V=Y.settingOptionValue)==null?void 0:V.boolValue)!=null?S:!1)})};
Ibq=function(r,f){var I,C,Y,V;return _.x(function(S){switch(S.nextAddress){case 1:return((I=f)==null?void 0:I.formatType)===void 0?S.return():_.b(S,r.JSC$16021_prefStorage,2);case 2:C=S.yieldResult;if(C===void 0)return S.return();if(((Y=f)==null?void 0:Y.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.b(S,C.set("lmqf",f.formatType),8);if(((V=f)==null?void 0:V.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){S.jumpTo(0);break}return _.b(S,C.set("lmqf",f.formatType),
6);case 6:return _.b(S,C.set("lmqflst",Math.floor((0,_.Ad)())),0);case 8:return _.b(S,C.remove("lmqflst"),0)}})};
CB6=function(r){var f,I;return _.x(function(C){switch(C.nextAddress){case 1:return _.b(C,r.JSC$16021_prefStorage,2);case 2:f=C.yieldResult;if(!f){C.jumpTo(3);break}return _.b(C,f.get("lmqflst"),4);case 4:if(I=C.yieldResult,I!==void 0)return C.return(I);case 3:return C.return(0)}})};
Yk6=function(r){var f,I;return _.x(function(C){switch(C.nextAddress){case 1:return _.b(C,r.JSC$16021_prefStorage,2);case 2:f=C.yieldResult;if(f===void 0){C.jumpTo(3);break}return _.b(C,f.get("lmqf"),4);case 4:if(I=C.yieldResult,I!==void 0)return C.return(I);case 3:return C.return("SD")}})};
C71=function(r,f,I){var C,Y,V,S,h,w,n,d;_.x(function(z){switch(z.nextAddress){case 1:return _.b(z,Ibq(r,(C=f)==null?void 0:C.actionParams),2);case 2:Y=f.playlistId;if(!Y)return z.return();if(f.action==="ACTION_ADD")return((S=f.actionParams)==null?0:S.formatType)?_.b(z,ki7(r,Y,f.actionParams.formatType,(d=f.actionParams)==null?void 0:d.settingsAction,I),0):_.b(z,r.offlineWebClientEligibility,14);if(f.action==="ACTION_REMOVE_WITH_PROMPT"){var g=r.JSC$16021_commandHandler,X=g.resolveCommand,P=_.Lz("INNERTUBE_CLIENT_NAME");
var W=P==="WEB_REMIX"?_.VR("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.VR("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var m=P==="WEB_REMIX"?[_.VR("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];P=P==="WEB_REMIX"?_.VR("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.VR("DELETE",void 0,"Delete");var v=_.VR("CANCEL",void 0,"Cancel");W=Sjd(W,m,P,v,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:Y});X.call(g,{openPopupAction:W});
return z.return()}if(f.action==="ACTION_REMOVE")return _.b(z,ZJ6(r,Y),0);if(f.action!=="ACTION_SYNC"){z.jumpTo(0);break}return _.b(z,r.JSC$16021_playerApiPromise,9);case 9:return V=z.yieldResult,_.b(z,V.queueOfflineAction(Y,r.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return h=z.yieldResult,_.b(z,Yk6(r),15);case 15:return w=z.yieldResult,_.b(z,CB6(r),16);case 16:n=z.yieldResult,f.onAddCommand&&r.JSC$16021_commandHandler.resolveCommand(f.onAddCommand,{form:{preferredFormatType:w,
offlineWebClientEligibility:h,lastOfflineQualitySettingsSavedMs:n.toString()}}),z.jumpTo(0)}})};
f16=function(r,f,I){var C,Y,V,S,h,w,n,d,z,g,X,P,W,m;_.x(function(v){switch(v.nextAddress){case 1:return _.b(v,Ibq(r,(C=f)==null?void 0:C.actionParams),2);case 2:Y=f.videoId;if(!Y)return v.return();if(f.action==="ACTION_REMOVE_WITH_PROMPT"){var O=r.JSC$16021_commandHandler,k=O.resolveCommand,Z=_.Lz("INNERTUBE_CLIENT_NAME");var Cw=Z==="WEB_REMIX"?_.VR("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.VR("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var rR=Z==="WEB_REMIX"?[_.VR("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];Z=Z==="WEB_REMIX"?_.VR("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.VR("DELETE",void 0,"Delete");var EP=_.VR("CANCEL",void 0,"Cancel");Cw=Sjd(Cw,rR,Z,EP,{signal:"DELETE_DOWNLOAD",targetId:Y});k.call(O,{openPopupAction:Cw});return v.return()}if(f.action==="ACTION_ADD")return((g=f.actionParams)==null?0:g.formatType)?_.b(v,q62(r,Y,f.actionParams.formatType,(m=f.actionParams)==null?void 0:m.settingsAction,I),0):_.b(v,r.offlineWebClientEligibility,
23);if(f.action==="ACTION_RETRY")return _.b(v,Yk6(r),19);if(f.action==="ACTION_PAUSE")return _.b(v,r.pauseVideoDownload(Y),0);if(f.action==="ACTION_RESUME")return _.b(v,r.resumeVideoDownload(Y),0);if(f.action!=="ACTION_REMOVE"){v.jumpTo(0);break}return _.b(v,BFq(r,Y),13);case 13:return V=v.yieldResult,r.previousDownloadStateForVideo[Y]=(S=V)!=null?S:"DOWNLOAD_STATE_UNKNOWN",_.b(v,Dd6(r,Y,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(r.previousDownloadStateForVideo[Y]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
r.previousDownloadStateForVideo[Y]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){v.jumpTo(15);break}return _.b(v,r.pauseVideoDownload(Y),15);case 15:O=_.VR("DELETED_VIDEO",void 0,"Video deleted from downloads.");k=_.VR("UNDO_ACTION",void 0,"Undo");Cw=_.VR("CLOSE",void 0,"Close");h={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.AZ(O),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.AZ(k),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:Y}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:O+" "+k}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:Y}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:Cw}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};r.JSC$16021_commandHandler.resolveCommand(h);
v.jumpTo(0);break;case 19:w=v.yieldResult;w==="UNKNOWN_FORMAT_TYPE"&&(w="SD");n="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((d=f.actionParams)==null?0:d.formatType)w=f.actionParams.formatType,n=(z=f.actionParams)==null?void 0:z.settingsAction;return _.b(v,u2B(r,Y,w,n,I),20);case 20:return v.return();case 23:return X=v.yieldResult,_.b(v,Yk6(r),24);case 24:return P=v.yieldResult,_.b(v,CB6(r),25);case 25:W=v.yieldResult,f.onAddCommand&&r.JSC$16021_commandHandler.resolveCommand(f.onAddCommand,
{form:{preferredFormatType:P,offlineWebClientEligibility:X,lastOfflineQualitySettingsSavedMs:W.toString()}}),v.jumpTo(0)}})};
lb6=function(r,f){var I,C,Y,V,S,h,w;return _.x(function(n){if(n.nextAddress==1)return _.b(n,r.JSC$16021_persistentStorePromiseAccessor(),2);I=n.yieldResult;if(!I)return _.t7(new _.nf("PES is undefined")),n.return();if((C=f)==null||!C.settingItemId)return n.return();Y=f;V=Y.settingItemId;S=Y.boolValue;h=_.rG(V,"settingEntity");w={key:h,settingOptionValue:{boolValue:S}};return _.b(n,xd3(I,w),0)})};
Vu6=function(r,f){var I,C,Y,V,S,h,w;return _.x(function(n){switch(n.nextAddress){case 1:return _.b(n,r.JSC$16021_prefStorage,2);case 2:return I=n.yieldResult,C=_.xI(),_.b(n,r.JSC$16021_persistentStorePromiseAccessor(),3);case 3:return Y=n.yieldResult,I?Y?_.b(n,I.get("sdois"),4):(_.t7(new _.nf("PES is undefined")),n.return()):(_.t7(new _.nf("prefStorage is undefined")),n.return());case 4:V=n.yieldResult;h=(S=f)==null?void 0:S.boolValue;h===void 0||_.N("kevlar_set_sd_enabled_flag_killswitch")||_.hZ(0,
197,!0);V===void 0&&h===void 0&&(h=!1);if(h===void 0){n.jumpTo(0);break}return _.b(n,I.set("sdois",h),6);case 6:return _.N("kevlar_set_sd_enabled_flag_killswitch")||(_.hZ(0,196,h),C.save()),w={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:h},_.b(n,lb6(r,w),0)}})};
EZV=function(r,f,I){var C,Y,V,S,h;return _.x(function(w){switch(w.nextAddress){case 1:return _.b(w,r8q(r),2);case 2:return C=w.yieldResult,_.b(w,Vu6(r,I),3);case 3:return _.b(w,r8q(r),4);case 4:return Y=w.yieldResult,V=Y!==C,_.b(w,fb7(r),5);case 5:S=w.yieldResult&&!_.N("kevlar_modern_downloads_page");if((h=!Y&&!S)||V)return _.b(w,f.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);w.jumpTo(0)}})};
qi2=function(){var r=_.a().resolve(_.Q5),f;_.x(function(I){switch(I.nextAddress){case 1:return _.b(I,r.JSC$16021_playerApiPromise,2);case 2:f=I.yieldResult;if(!_.N("kevlar_force_refresh_smart_downloads")){I.jumpTo(3);break}return _.b(I,f.refreshAllStaleEntities(0),4);case 4:return I.return();case 3:return _.b(I,f.refreshAllStaleEntities(),5);case 5:return _.b(I,EZV(r,f),0)}})};
l1i=function(r,f){var I,C;_.x(function(Y){switch(Y.nextAddress){case 1:return _.b(Y,r.JSC$16021_playerApiPromise,2);case 2:I=Y.yieldResult;switch((C=f)==null?void 0:C.settingItemId){case "SMART_DOWNLOADS_ENABLED":return Y.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return Y.jumpTo(4)}Y.jumpTo(0);break;case 3:return _.b(Y,EZV(r,I,f),6);case 6:Y.jumpTo(0);break;case 4:return _.b(Y,lb6(r,f),7);case 7:Y.jumpTo(0)}})};
Skq=function(r,f){var I,C,Y;return _.x(function(V){if(V.nextAddress==1)return _.b(V,r.JSC$16021_persistentStorePromiseAccessor(),2);if(V.nextAddress!=3){I=V.yieldResult;if(!I)return _.t7(new _.nf("PES is undefined")),V.return(!1);if(!f)return V.return(!1);C=_.rG(f,"mainVideoEntity");return _.b(V,hs7(I,C,"mainVideoEntity"),3)}Y=V.yieldResult;return V.return(Y!==void 0)})};
EN2=function(r){var f=_.a().resolve(_.Q5),I,C,Y,V,S,h,w,n,d,z,g;_.x(function(X){switch(X.nextAddress){case 1:return _.b(X,f.JSC$16021_playerApiPromise,2);case 2:I=X.yieldResult;Y=(C=r)==null?void 0:C.actions;if(!Y)return X.return();V=_.E(Y);S=V.next();case 3:if(S.done){X.jumpTo(0);break}h=S.value;n=w=void 0;if(!(((w=h)==null?0:w.entityKey)&&((n=h)==null?0:n.actionType))){X.jumpTo(4);break}d=_.qo(h.entityKey);z=d.entityId;g=d.entityType;return _.b(X,I.queueOfflineAction(z,g,h.actionType),4);case 4:S=
V.next(),X.jumpTo(3)}})};
xmi=function(r,f){var I,C,Y,V,S;return _.x(function(h){if(h.nextAddress==1)return _.b(h,r.JSC$16021_prefStorage,2);if(h.nextAddress!=3)return(I=h.yieldResult)?_.b(h,I.get("psi"),3):h.return();C=h.yieldResult;S={isPaused:f,lastSyncTimestamp:(V=(Y=C)==null?void 0:Y.lastSyncTimestamp)!=null?V:"0"};return _.b(h,I.set("psi",S),0)})};
hDp=function(r){var f=_.a().resolve(_.Q5),I,C,Y,V,S,h,w,n;return _.x(function(d){switch(d.nextAddress){case 1:return _.b(d,f.JSC$16021_playerApiPromise,2);case 2:I=d.yieldResult;Y=((C=r)==null?void 0:C.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((h=r)==null?void 0:h.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":V="!*$_ALL_ENTITIES_!*$";S="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return d.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return d.jumpTo(4)}d.jumpTo(5);break;case 3:return _.b(d,xmi(f,Y),6);case 6:d.jumpTo(5);break;case 4:return _.b(d,Skq(f,(w=r)==null?void 0:w.videoId),7);case 7:d.yieldResult&&(V=(n=r)==null?void 0:n.videoId,S="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");d.jumpTo(5);break;case 5:if(V&&S)return _.b(d,I.queueOfflineAction(V,"videoPlaybackPositionEntity",S),0);d.jumpTo(0)}})};
hh6=function(r,f){var I;f!==1||((I=r.currentPersistentToast)==null?0:I.isOpened())?r.openToast():r.currentPersistentToast=void 0};
wl1=function(){var r,f,I,C;return _.x(function(Y){if(Y.nextAddress==1)return r=navigator,(f=r.storage)!=null&&f.persisted?_.b(Y,(I=r.storage)==null?void 0:I.persisted(),2):Y.return("PERSISTED_STATE_NOT_SUPPORTED");C=Y.yieldResult;return Y.return(C?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
bQ6=function(){var r,f,I,C;return _.x(function(Y){if(Y.nextAddress==1)return r=navigator,(f=r.storage)!=null&&f.persist?_.b(Y,(I=r.storage)==null?void 0:I.persist(),2):Y.return("PERSISTED_STATE_NOT_SUPPORTED");C=Y.yieldResult;return Y.return(C?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
pl6=function(){var r,f;return _.x(function(I){switch(I.nextAddress){case 1:return r="PERSISTED_STATE_NOT_SUPPORTED",_.l_(I,2),_.b(I,wl1(),4);case 4:r=I.yieldResult;if(r!=="PERSISTED_STATE_NOT_GRANTED"){I.jumpTo(5);break}return _.b(I,bQ6(),6);case 6:r=I.yieldResult;case 5:_.Hd(I,3);break;case 2:f=_.ha(I),f instanceof Error&&_.Fo(f);case 3:return _.NW("persistentStorageStateChecked",{persistedState:r}),I.return(r)}})};
nZ3=function(r,f){var I=[],C=!1;f=_.E(f);for(var Y=f.next();!Y.done;Y=f.next()){Y=r.moduleRegistry[Y.value];var V=void 0,S=void 0;((V=Y)==null?0:V.isFetching)&&((S=Y)==null?0:S.resolver)?(I.push(Y.resolver.promise),C=!0):(Y=new _.uX,Y.resolve(void 0),I.push(Y.promise))}return C?Promise.all(I):void 0};
dm3=function(r,f,I){I=I===void 0?{}:I;var C=r.defaultViewTransitionOptions,Y=f.map(function(S){return S.beforeTransition}),V=f.map(function(S){return S.afterTransition});
return Object.assign({},C,I,{beforeTransition:function(){var S;(S=C.beforeTransition)==null||S.call(C);var h,w;(w=(h=I).beforeTransition)==null||w.call(h);S=_.E(Y);for(h=S.next();!h.done;h=S.next())h=h.value,h()},
afterTransition:function(){var S;(S=C.afterTransition)==null||S.call(C);var h,w;(w=(h=I).afterTransition)==null||w.call(h);S=_.E(V);for(h=S.next();!h.done;h=S.next())h=h.value,h()}})};
zhU=function(r,f,I){var C,Y,V,S,h,w,n;_.x(function(d){if(r.config.disableAllTransitions)return d.return(f());if((C=I)==null||!C.transitionName)return d.return(_.W_Y(f,(Y=I)==null?void 0:Y.viewTransitionOptions));V=I;S=V.transitionName;h=V.viewTransitionOptions;w=r.config.transitionConfigs.get(S);if(!w)return d.return(f());var z;n=(z=r.transitionTasksMap.get(S))!=null?z:[];return d.return(_.W_Y(f,dm3(w,n,h)))})};
Eh=function(r,f,I){r.transitionTasksMap.has(f)?r.transitionTasksMap.get(f).push(I):(r=new _.nf("Transition task registered for unknown transition name",f),_.Fo(r))};
MuY=function(r,f,I){if(r.isInitialized()){var C=Bf(I),Y=C==="watch";C=C==="shorts";var V=Bf(f)==="watch";if(Y)V||(r.backgroundPageData=f),r.watchPipMode&&V||r.deactivate(I.endpoint);else if(C){if(Bf(f)!=="shorts"){var S;(S=r.getPlayerElement())==null||S.pause()}}else V&&!r.watchPipMode&&(h9i(f,I)?(r.watchWhileMode&&_.J6s(r,!1),_.Tn6(r,f)):r.isMiniplayerActive()&&r.watchWhileMode&&r.deactivate());V&&_.HKU(r);r.shortsPipMode&&!C&&(window.focus(),r.deactivate());if(r.pictureInPictureEnabled())if(C&&
r.shortsPipEnabled||Y&&r.watchPipEnabled)_.dYl(r.handleMediaSessionPipActivation);else if(!r.isMiniplayerActive()&&(r.shortsPipEnabled||r.watchPipEnabled)&&_.xw()&&_.wuU("Chromium")>=120){r=_.ndl().mediaSession;try{r.setActionHandler("enterpictureinpicture",null)}catch(h){}}}};
gZs=function(r,f){var I,C;_.x(function(Y){if(Y.nextAddress==1){if(!r||!r.navigationEndpoint)return Y.return();_.xP().lockupActivation=!0;var V;f?V=_.iX(_.VR("QUEUE",void 0,"Queue")):V=r.longBylineText;C=(I=V)&&r.title?{miniplayerTitle:r.title,miniplayerSubtitle:I,playlistData:null}:void 0;return _.b(Y,_.yO4(_.a().resolve(_.iO),r.navigationEndpoint,!0,C),2)}_.xP().userActivation=!0;_.wO(Y)})};
Vo6=function(r,f){var I,C,Y,V,S,h;_.x(function(w){if(w.nextAddress==1){I=_.F(f,_.O9q);if(!I||!I.listId)return w.return();r.index=I.index||r.index||0;C=r.response&&r.response.playingVideoId||void 0;return _.b(w,_.x5B(r.JSC$10703_playlistNetworkManager,I.listId,r.index,C),2)}Y=w.yieldResult;if(!Y)return w.return();V=Y.playlistId;S=Y.playlistPanelRenderer;!r.queueProxy&&V&&S&&V.startsWith("TLPQ")&&(r.queueProxy=new _.t9(r.JSC$10703_playlistNetworkManager,V,r.setPlaylistData.bind(r),r.clearQueue.bind(r),
_.pDE(S),r.storage));if(I.openMiniplayer&&(h=_.nJm(S))&&!r.pageManager.isOnWatch()){var n=h,d=I.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";r.isMiniplayerActive()?r.openToast(n):gZs(n,d)}r.setPlaylistData(V,S,Y.autoplayRenderer);_.wO(w)})};
CX3=function(r,f){var I=_.jN();I.index===void 0&&(I.index=0);I.temporaryItems.push.apply(I.temporaryItems,_.Na(r));if((f.videoId||f.videoIds)&&I.index!==void 0&&f.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!I.queueProxy){var C=[];if(I.response){var Y=_.a().resolve(_.iO).isMiniplayerActive();if(I.response.playlistPanelRenderer&&I.response.playlistId&&!I.response.playlistId.startsWith("TLPQ")){if(I.pageManager.isOnWatch()||Y)C=_.pDE(I.response.playlistPanelRenderer)}else I.response.playingVideoId&&
!f.openMiniplayer?C.push(I.response.playingVideoId):Y&&I.response.playingVideoId&&f.openMiniplayer&&C.push(I.response.playingVideoId)}I.queueProxy=new _.t9(I.JSC$10703_playlistNetworkManager,"",I.setPlaylistData.bind(I),I.clearQueue.bind(I),C,I.storage);I.queueProxy.JSC$10649_setCurrentIndex(I.index)}I.queueProxy.addVideos(f.videoIds||[f.videoId],f)}pIi(I,r);I.response&&_.HP(I,_.iH(I,I.response.autoplayRenderer));I.pageManager.isOnWatch()?I.isMiniplayerActive()&&I.openToast(r[0]):(r=r[0],f=f.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",I.isMiniplayerActive()?I.openToast(r):gZs(r,f))};
ab6=function(r){var f=_.z6(r);if(f=="object"||f=="array"){if(typeof r.clone==="function")return r.clone();if(typeof Map!=="undefined"&&r instanceof Map)return new Map(r);if(typeof Set!=="undefined"&&r instanceof Set)return new Set(r);f=f=="array"?[]:{};for(var I in r)f[I]=ab6(r[I]);return f}return r};
Sx=function(r,f){return _.kB$(_.pD(r,f,void 0,_.bf))};
xv=function(r,f){return _.tU(_.pD(r,f,void 0,_.bf))};
h$=function(r,f){return _.nCP(_.pD(r,f,void 0,_.bf))};
wo=function(r,f){return _.pD(r,f,void 0,_.bf,_.ds)};
Xl7=_.Ag(function(r,f,I){if(r.nextWireType_!==0)return!1;_.Z$(f,I,_.HM(r.decoder_,_.Yi));return!0},_.ur,_.yF);
NW3=_.Ag(function(r,f,I,C){if(r.nextWireType_!==0)return!1;_.M2(f,I,C,_.HM(r.decoder_,_.Yi));return!0},_.ur,_.yF);
$mp=_.Ag(function(r,f,I){if(r.nextWireType_!==1)return!1;var C=r.decoder_;r=_.vM(C);C=_.vM(C);r=_.IY(r,C);_.Z$(f,I,r);return!0},_.AUq,_.EWu);
FC6=_.Ag(function(r,f,I){if(r.nextWireType_!==5)return!1;_.Z$(f,I,_.vM(r.decoder_));return!0},function(r,f,I){f=_.cB(f);
f!=null&&(_.kH(r,I,5),_.qe(r.encoder_,f))},_.V6R);
PB6=_.Ag(function(r,f,I){if(r.nextWireType_!==0)return!1;r=_.ywK(r.decoder_);_.Z$(f,I,r===!1?void 0:r);return!0},_.ZqK,_.I6u);
tup=_.Ag(function(r,f,I){if(r.nextWireType_!==2)return!1;r=_.AwK(r);_.Z$(f,I,r===""?void 0:r);return!0},_.k6P,_.CJm);
TWi=_.Ag(function(r,f,I){if(r.nextWireType_!==2)return!1;r=_.Ztu(r);_.Z$(f,I,r===_.ss()?void 0:r);return!0},_.u3U,_.hCU);
c86=_.viR(function(r,f,I){if(r.nextWireType_!==0&&r.nextWireType_!==2)return!1;f=_.cE(f,f[_.L8]|0,I);r.nextWireType_==2?_.GpB(r,ssY,f):f.push(_.RJ(r.decoder_));return!0},function(r,f,I){f=_.R1u(_.tU,f,!0);
if(f!=null&&f.length){I=_.pBU(r,I);for(var C=0;C<f.length;C++)_.OqU(r.encoder_,f[C]);_.niw(r,I)}},_.wNq);
WCp=_.Ag(function(r,f,I){if(r.nextWireType_!==0)return!1;r=_.RJ(r.decoder_);_.Z$(f,I,r===0?void 0:r);return!0},_.D6U,_.wNq);
LC7=_.Ag(function(r,f,I,C){if(r.nextWireType_!==0)return!1;_.M2(f,I,C,_.RJ(r.decoder_));return!0},_.D6U,_.wNq);
_.sR=function(r){this.privateDoNotAccessOrElseWrappedStyleSheet=r};
_.sR.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var p16=function(r,f){return new _.F0(r.x+f.x,r.y+f.y)},mmd=function(r){return r.previousElementSibling!==void 0?r.previousElementSibling:_.z18(r.previousSibling,!1)},eh6=function(r,f){var I=[];
for(f=f||0;f<r.length;f+=2)_.l$3(r[f],r[f+1],I);return I.join("&")},J8V=function(r,f){var I=arguments.length==2?eh6(arguments[1],0):eh6(arguments,1);
return _.YWD(r,I)},jC3=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(jC3,_.Kj);jC3.prototype.getValue=function(){var r=_.pD(this,2);if(Array.isArray(r)||r instanceof _.Kj)throw Error("aa");return _.zb(this,2)};
var joU=function(){var r=_.G3();this.JSC$7813_streamzService=r;r.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.fX("channel_type"))};
joU.prototype.increment=function(r){this.JSC$7813_streamzService.JSC$7686_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",r)};
var HAq=function(){var r=_.G3();this.JSC$7816_streamzService=r;r.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.fX("channel_type"))};
HAq.prototype.increment=function(r){this.JSC$7816_streamzService.JSC$7686_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",r)};
var RHU=function(){var r=_.G3();this.JSC$7819_streamzService=r;r.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.fX("channel_type"))};
RHU.prototype.increment=function(r){this.JSC$7819_streamzService.JSC$7686_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",r)};
var iA7=function(){var r=_.G3();this.JSC$7822_streamzService=r;r.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
iA7.prototype.increment=function(){this.JSC$7822_streamzService.JSC$7686_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var vAV=function(){var r=_.G3();this.JSC$7825_streamzService=r;r.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.fX("channel_type"),_.fX("error_type"))};
vAV.prototype.increment=function(r,f){this.JSC$7825_streamzService.JSC$7686_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",r,f)};
var K0s=function(){var r=_.G3();this.JSC$7828_streamzService=r;r.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
K0s.prototype.increment=function(){this.JSC$7828_streamzService.JSC$7686_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var y13=function(){var r=_.G3();this.JSC$7831_streamzService=r;r.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
y13.prototype.increment=function(){this.JSC$7831_streamzService.JSC$7686_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var LWi=function(){var r=_.G3();this.JSC$7837_streamzService=r;r.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
LWi.prototype.increment=function(){this.JSC$7837_streamzService.JSC$7686_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var HQ7=function(r){return r.getCount&&typeof r.getCount=="function"?r.getCount():_.ID(r)||typeof r==="string"?r.length:_.X0.getCount(r)},iQi=function(r,f){if(typeof r.every=="function")return r.every(f,void 0);
if(_.ID(r)||typeof r==="string")return Array.prototype.every.call(r,f,void 0);for(var I=_.f3s(r),C=_.AA(r),Y=C.length,V=0;V<Y;V++)if(!f.call(void 0,C[V],I&&I[V],r))return!1;return!0},Rh1=function(r,f,I,C){var Y=new _.KA(null);
r&&_.Ze(Y,r);f&&_.Gh(Y,f);I&&_.kk(Y,I);C&&_.B7(Y,C);return Y},vZ1=function(){var r=_.Wd&&_.zB(_.pds,10)>=0,f;
if(f=_.rwR)f=_.zB(_.bfV,10)>=0;var I=_.xp&&_.zB(_.pds,85)>=0;return _.lf||r||f||I},KCp=function(r){var f=_.K6X(r);
return f&&vZ1()?-r.scrollLeft:f&&_.m9(r,"overflowX")!="visible"?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft},y87=function(r,f){f=Math.max(f,0);
_.K6X(r)?vZ1()?r.scrollLeft=-f:r.scrollLeft=r.scrollWidth-f-r.clientWidth:r.scrollLeft=f},tM3=0,m4B=!1;
uL.prototype.set=function(r){this.relativeTimeStart_=r};
uL.prototype.reset=function(){this.set(_.Dc())};
uL.prototype.get=function(){return this.relativeTimeStart_};
var Um2=null,sC3=function(){Um2||(Um2=new uL)},OQY=function(){Um2||(Um2=new uL)};
_.rh(OQY,sC3);_.l=JV7.prototype;_.l.JSC$9160_buffer_="";_.l.set=function(r){this.JSC$9160_buffer_=""+r};
_.l.append=function(r,f,I){this.JSC$9160_buffer_+=String(r);if(f!=null)for(var C=1;C<arguments.length;C++)this.JSC$9160_buffer_+=arguments[C];return this};
_.l.clear=function(){this.JSC$9160_buffer_=""};
_.l.getLength=function(){return this.JSC$9160_buffer_.length};
_.l.toString=function(){return this.JSC$9160_buffer_};
var oZ3=function(){var r={type:"unit",style:"narrow"};this.listType_=r&&r.type?r.type:"conjunction";this.listStyle_=r&&r.style?r.style:"long";this.listSymbols_=kXB;r=0;switch(this.listStyle_){case "short":r=1;break;case "narrow":r=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[r];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[r];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[r];this.listEndPattern_=
this.listSymbols_.AND_END[r];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[r];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[r];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[r];this.listEndPattern_=this.listSymbols_.OR_END[r];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[r],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[r],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[r],this.listEndPattern_=this.listSymbols_.UNIT_END[r]}};
oZ3.prototype.format=function(r){return QC6(this,r)};
var QC6=function(r,f){var I=f.length;switch(I){case 0:return"";case 1:return String(f[0]);case 2:return r.listTwoPattern_.replace("{0}",String(f[0])).replace("{1}",String(f[1]))}for(var C=r.listStartPattern_.replace("{0}",String(f[0])).replace("{1}",String(f[1])),Y=2;Y<I-1;++Y)C=r.listMiddlePattern_.replace("{0}",C).replace("{1}",String(f[Y]));return r.listEndPattern_.replace("{0}",C).replace("{1}",String(f[I-1]))},kO6=function(){var r={style:1};
this.style_=(r==null?void 0:r.style)||0;this.durationSymbols_=_.v0U||_.GFD},A8d=function(r,f){switch(f){default:case "years":return r.durationSymbols_.YEAR;
case "months":return r.durationSymbols_.MONTH;case "weeks":return r.durationSymbols_.WEEK;case "days":return r.durationSymbols_.DAY;case "hours":return r.durationSymbols_.HOUR;case "minutes":return r.durationSymbols_.MINUTE;case "seconds":return r.durationSymbols_.SECOND}},b5=function(r,f,I){a:{I=A8d(r,I);
switch(r.style_){case 1:if(I.LONG!=void 0){r=I.LONG;break a}case 2:if(I.NARROW!=void 0){r=I.NARROW;break a}default:r=I.SHORT;break a}r=void 0}return r?(new _.zD4("{DURATION_VALUE,plural,"+r+"}")).format({DURATION_VALUE:f}):""};
kO6.prototype.format=function(r){var f=[],I=r.years,C=r.months,Y=r.weeks,V=r.days,S=r.hours,h=r.minutes;r=r.seconds;I!=null&&f.push(b5(this,I,"years"));C!=null&&f.push(b5(this,C,"months"));Y!=null&&f.push(b5(this,Y,"weeks"));V!=null&&f.push(b5(this,V,"days"));S!=null&&f.push(b5(this,S,"hours"));h!=null&&f.push(b5(this,h,"minutes"));r!=null&&f.push(b5(this,r,"seconds"));return(new oZ3).format(f)};
var ZQq=!1,yVq=function(r){_.fw.call(this,r.message||r.description||r.name);this.isMissing=r instanceof Du;this.isTimeout=r instanceof _.UI&&r.errorCode=="net.timeout";this.isCanceled=r instanceof _.oV};
_.t(yVq,_.fw);yVq.prototype.name="BiscottiError";var Du=function(){_.fw.call(this,"Biscotti ID is missing from server")};
_.t(Du,_.fw);Du.prototype.name="BiscottiMissingError";var rc=null,GMq=function(){try{var r=_.jH("yt.ads.biscotti.getId_");return r?r():go3()}catch(f){return _.h3(f)}},GO6,GYp=function(r){return _.kI({type:"SET_GUIDE_IS_EXPANDED",
payload:r})},kYV=function(r){return _.kI({type:"SET_ONLINE_STATUS",
payload:r})},BWV=function(r,f){return _.kI({type:"SET_TRANSCRIPTION_STATE",
payload:{high:r,low:f}})},qks=function(r){return _.kI({type:"SET_OVERLAY_STATE",
payload:r})},uAq=0,DmY=function(r,f,I){var C=this;
this.priority=f;this.delay=I;this.jobId=0;this.completionCallback=_.n9;this.wrappedJob=function(){r();C.completionCallback()};
this.id=++uAq};
DmY.prototype.enqueue=function(r){this.completionCallback=r;this.jobId=_.F_.addJob(this.wrappedJob,this.priority,this.delay)};
var pm=function(){_.qJ.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.t(pm,_.qJ);pm.prototype.addJob=function(r,f,I){r=new DmY(r,f,I);this.taskIdToTask.set(r.id,r);this.isActive?rv3(this,r):this.suspendedTasks.add(r);return r.id};
var rv3=function(r,f){r.scheduledTasks.add(f);f.enqueue(function(){r.scheduledTasks.delete(f)})};
pm.prototype.cancelJob=function(r){(r=this.taskIdToTask.get(r))&&(this.scheduledTasks.delete(r)?_.F_.cancelJob(r.jobId):this.suspendedTasks.delete(r))};
pm.prototype.pause=function(){var r=this;this.isActive=!1;this.scheduledTasks.forEach(function(f){_.F_.cancelJob(f.jobId);r.suspendedTasks.add(f)});
this.scheduledTasks.clear()};
pm.prototype.start=function(){var r=this;this.isActive=!0;this.suspendedTasks.forEach(function(f){rv3(r,f)});
this.suspendedTasks.clear()};
pm.prototype.reset=function(){this.scheduledTasks.forEach(function(r){_.F_.cancelJob(r.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var nm=function(r,f){this.JSC$10833_networkService_=r;this.pageRequestPromise=f};
nm.prototype.fetchData=function(r){fK6(this,this.JSC$10833_networkService_.fetchData(r))};
nm.prototype.postData=function(r,f){fK6(this,this.JSC$10833_networkService_.postData(r,f))};
nm.prototype.requestDataForServiceEndpoint=function(r,f){fK6(this,this.JSC$10833_networkService_.requestDataForServiceEndpoint(r,f))};
var fK6=function(r,f){f.then(r.pageRequestPromise.onSuccess,r.pageRequestPromise.onFailure,r.pageRequestPromise)};
nm.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var za=function(r){this.buildNetworkRequest_=r;this.pendingRequests_=new Set};
za.prototype.reset=function(){this.pendingRequests_.forEach(function(r){r.cancel()});
this.pendingRequests_.clear()};
za.prototype.fetchData=function(r){var f=IKi(this);f.fetchData(r);return f.pageRequestPromise};
za.prototype.postData=function(r,f){var I=IKi(this);I.postData(r,f);return I.pageRequestPromise};
za.prototype.requestDataForServiceEndpoint=function(r,f){var I=IKi(this);I.requestDataForServiceEndpoint(r,f);return I.pageRequestPromise};
var IKi=function(r){var f=r.buildNetworkRequest_();r.pendingRequests_.add(f);var I=function(){r.pendingRequests_.delete(f)};
f.pageRequestPromise.then(I,I);return f},C6d=function(r){var f=new pm;
this.JSC$10840_networkService_=r;this.JSC$10840_taskManager_=f;this.JSC$10840_networkManager_=new za(this.networkRequestFactory_.bind(this))};
_.l=C6d.prototype;_.l.networkRequestFactory_=function(){return new nm(this.JSC$10840_networkService_,new _.kP(this.JSC$10840_taskManager_))};
_.l.reset=function(){this.JSC$10840_taskManager_.reset();this.JSC$10840_networkManager_.reset()};
_.l.start=function(){this.JSC$10840_taskManager_.start()};
_.l.pause=function(){this.JSC$10840_taskManager_.pause()};
_.l.getTaskManager=function(){return this.JSC$10840_taskManager_};
_.l.getNetworkManager=function(){return this.JSC$10840_networkManager_};
var r73=null,CzB=[],f4=0,C4=0,Iq=null,Y0d=function(){var r=(0,_.DPU)();r&&q$i(r,r.mechanism.__iterator__(!0))},le=function(r){this.token=r};
le.getInstance=function(){var r;return _.x(function(f){if(f.nextAddress==1)return _.b(f,_.o1(),2);r=f.yieldResult;if(!r)return f.return();le.instance||(le.instance=new le(r));return f.return(le.instance)})};
var xW6=function(r){var f;return _.x(function(I){if(I.nextAddress==1)return _.b(I,Vq1(r.token),2);f=I.yieldResult;return I.return(f.clear("resource-manifest-assets"))})},Ye=function(r){this.token=r};
Ye.getInstance=function(){var r;return _.x(function(f){if(f.nextAddress==1)return _.b(f,_.o1(),2);r=f.yieldResult;if(!r)return f.return();Ye.instance||(Ye.instance=new Ye(r));return f.return(Ye.instance)})};
var ElU=function(r){var f;return _.x(function(I){if(I.nextAddress==1)return _.b(I,Vq1(r.token),2);f=I.yieldResult;return _.b(I,f.clear("auth"),0)})},lKs=!1,V6=null,$Wp=void 0,ecV=!1,VOs=function(r){_.fw.call(this,r)};
_.t(VOs,_.Ga3);var Pmd=function(){var r=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return r?parseInt(r[1],10):0},E46=function(r){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+r)!=-1||document.currentScript.src.indexOf("&"+r)!=-1)},S07=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},LwB=function(r){r.length?xIB(r.shift(),function(){LwB(r)}):TX1()},ed6=function(r){return"chrome-extension://"+r+"/cast_sender.js"},xIB=function(r,
f,I){var C=document.createElement("script");
C.onerror=f;I&&(C.onload=I);_.vL(C,_.XF(r));(document.head||document.documentElement).appendChild(C)},h3V=function(){var r=Pmd(),f=[];
if(r>1){var I=r-1;f.push("//www.gstatic.com/eureka/clank/"+r+"/cast_sender.js");f.push("//www.gstatic.com/eureka/clank/"+I+"/cast_sender.js")}return f},TX1=function(){var r=S07();
r&&r(!1,"No cast extension found")},Wwp=function(){if(wos){var r=2,f=S07(),I=function(){r--;
r==0&&f&&f(!0)};
window.__onGCastApiAvailable=I;xIB("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",TX1,I)}},t_3=function(){Wwp();
var r=h3V();r.push("//www.gstatic.com/eureka/clank/cast_sender.js");LwB(r)},cZ6=function(){Wwp();
var r=h3V();r.push.apply(r,_.Na(moY.map(ed6)));r.push("//www.gstatic.com/eureka/clank/cast_sender.js");LwB(r)},wos=E46("loadCastFramework")||E46("loadCastApplicationFramework"),moY=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var bFV=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(bFV,_.Kj);var po6=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(po6,_.Kj);var n4q=function(){var r=new po6;return _.Js(r,1,3)};var MZ=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(MZ,_.Kj);var ams=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(ams,_.Kj);var dI2=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(dI2,_.Kj);dI2.prototype.getToken=function(){return _.Tb(this,1)};
dI2.prototype.setToken=function(r){return _.kU(this,1,r)};
var MJ6=function(r){return _.X9(r,3,_.yV,_.qS())},gfB=function(r){return _.X9(r,6,_.yV,_.qS())};var go=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(go,_.Kj);go.prototype.getToken=function(){return _.kB(this,dI2,2)};
go.prototype.setToken=function(r){return _.CK(this,2,r)};
go.prototype.getName=function(){return _.Tb(this,6)};
var z3q=_.fK(go);var MO6=function(r,f,I){this.requestMessage=r;this.methodDescriptor=f;this.metadata=I};
MO6.prototype.getMetadata=function(){return this.metadata};var g4V=function(r,f){f=f===void 0?{}:f;this.responseMessage=r;this.metadata=f;this.status=null};
g4V.prototype.getMetadata=function(){return this.metadata};
g4V.prototype.getStatus=function(){return this.status};var aW=function(r,f,I,C,Y){this.name=r;this.methodType="unary";this.requestType=f;this.responseType=I;this.requestSerializeFn=C;this.responseDeserializeFn=Y},aKd=function(r,f,I){I=I===void 0?{}:I;
return new MO6(f,r,I)};
aW.prototype.getName=function(){return this.name};var Xa=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Xa,_.Kj);Xa.prototype.setHeader=function(r){return _.CK(this,1,r)};
Xa.prototype.hasHeader=function(){return _.nD(this,MZ,1)};var Xo6=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Xo6,_.Kj);var NuY=new aW("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",Xa,Xo6,function(r){return r.serialize()},_.fK(Xo6));var NZ=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(NZ,_.Kj);NZ.prototype.setHeader=function(r){return _.CK(this,1,r)};
NZ.prototype.hasHeader=function(){return _.nD(this,MZ,1)};var $I1=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t($I1,_.Kj);var FVd=new aW("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",NZ,$I1,function(r){return r.serialize()},_.fK($I1));var $v=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t($v,_.Kj);$v.prototype.setHeader=function(r){return _.CK(this,1,r)};
$v.prototype.hasHeader=function(){return _.nD(this,MZ,1)};var P66=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(P66,_.Kj);P66.prototype.getLink=function(){return _.kB(this,go,1)};var tOB=new aW("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",$v,P66,function(r){return r.serialize()},_.fK(P66));var Fa=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Fa,_.Kj);Fa.prototype.setHeader=function(r){return _.CK(this,1,r)};
Fa.prototype.hasHeader=function(){return _.nD(this,MZ,1)};var Tup=new aW("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Fa,go,function(r){return r.serialize()},z3q);var cv3=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(cv3,_.Kj);var WVs=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(WVs,_.Kj);WVs.prototype.getUrl=function(){return _.Tb(this,2)};
WVs.prototype.setUrl=function(r){return _.kU(this,2,r)};var LV3=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(LV3,_.Kj);var mI6=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(mI6,_.Kj);var e3s=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(e3s,_.Kj);var m7Y=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(m7Y,_.Kj);var LF6=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(LF6,_.Kj);var JvB=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(JvB,_.Kj);var vfq=_.fK(JvB);var jKp=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(jKp,_.Kj);var PX=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(PX,_.Kj);PX.prototype.setHeader=function(r){return _.CK(this,1,r)};
PX.prototype.hasHeader=function(){return _.nD(this,MZ,1)};
PX.prototype.getCompletionUrl=function(){return _.Tb(this,6)};
PX.prototype.getDeviceId=function(){return _.Tb(this,11)};var HFB=new aW("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",PX,JvB,function(r){return r.serialize()},vfq);var iFd=new Set(["SAPISIDHASH","APISIDHASH"]);var R36=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(R36,_.Kj);R36.prototype.getMessage=function(){return _.Tb(this,2)};
var v42=_.fK(R36);var t$=function(r,f){this.xhrNodeReadableStream_=r.nodeReadableStream;this.grpcResponseDeserializeFn_=f;this.JSC$16940_xhr_=r.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16940_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&KVV(this)},QK2=function(r,f){var I=new yv6;
_.S$(r.JSC$16940_xhr_,"complete",function(){if(r.JSC$16940_xhr_.isSuccess()){var C=r.JSC$16940_xhr_.getResponseText();var Y;if(Y=f)Y=r.JSC$16940_xhr_,Y.JSC$7695_xhr_&&Y.isComplete()?(Y=Y.JSC$7695_xhr_.getResponseHeader("Content-Type"),Y=Y===null?void 0:Y):Y=void 0,Y=Y==="text/plain";if(Y){if(!atob)throw Error("Ij");C=atob(C)}try{var V=r.grpcResponseDeserializeFn_(C)}catch(h){Ta(r,YC7(new _.$k(13,"Error when deserializing response data; error: "+h+(", response: "+C)),I));return}C=_.rRm(r.JSC$16940_xhr_.getStatus());
UIB(r,sKU(r));C==0?OFY(r,V):Ta(r,YC7(new _.$k(C,"Xhr succeeded but the status code is not 200"),I))}else{C=r.JSC$16940_xhr_.getResponseText();V=sKU(r);if(C){var S=o46(r,C);C=S.code;Y=S.details;S=S.metadata}else C=2,Y="Rpc failed due to xhr error. uri: "+String(r.JSC$16940_xhr_.JSC$7695_lastUri_)+", error code: "+r.JSC$16940_xhr_.JSC$7695_lastErrorCode_+", error: "+r.JSC$16940_xhr_.getLastError(),S=V;UIB(r,V);Ta(r,YC7(new _.$k(C,Y,S),I))}})},KVV=function(r){r.xhrNodeReadableStream_.on("data",function(f){if("1"in
f){var I=f["1"];
try{var C=r.grpcResponseDeserializeFn_(I)}catch(Y){Ta(r,new _.$k(13,"Error when deserializing response data; error: "+Y+(", response: "+I)))}C&&OFY(r,C)}if("2"in f)for(f=o46(r,f["2"]),I=0;I<r.onStatusCallbacks_.length;I++)r.onStatusCallbacks_[I](f)});
r.xhrNodeReadableStream_.on("end",function(){UIB(r,sKU(r));for(var f=0;f<r.onEndCallbacks_.length;f++)r.onEndCallbacks_[f]()});
r.xhrNodeReadableStream_.on("error",function(){if(r.JSC$16940_onErrorCallbacks_.length!=0){var f=r.JSC$16940_xhr_.JSC$7695_lastErrorCode_;f!==0||r.JSC$16940_xhr_.isSuccess()||(f=6);var I=-1;switch(f){case 0:var C=2;break;case 7:C=10;break;case 8:C=4;break;case 6:I=r.JSC$16940_xhr_.getStatus();C=_.rRm(I);break;default:C=14}UIB(r,sKU(r));f=_.jkX(f)+", error: "+r.JSC$16940_xhr_.getLastError();I!=-1&&(f+=", http status code: "+I);Ta(r,new _.$k(C,f))}})},sKU=function(r){var f={},I=ZxV(r.JSC$16940_xhr_);
Object.keys(I).forEach(function(C){f[C]=I[C]});
return f},o46=function(r,f){var I=2,C={};
try{var Y=v42(f);I=_.u3(Y,1);var V=Y.getMessage();_.Bk(Y,jC3,3,_.qS()).length&&(C["grpc-web-status-details-bin"]=f)}catch(S){r.JSC$16940_xhr_&&r.JSC$16940_xhr_.getStatus()===404?(I=5,V="Not Found: "+String(r.JSC$16940_xhr_.JSC$7695_lastUri_)):(I=14,V="Unable to parse RpcStatus: "+S)}return{code:I,details:V,metadata:C}};
t$.prototype.on=function(r,f){r=="data"?this.onDataCallbacks_.push(f):r=="metadata"?this.onMetadataCallbacks_.push(f):r=="status"?this.onStatusCallbacks_.push(f):r=="end"?this.onEndCallbacks_.push(f):r=="error"&&this.JSC$16940_onErrorCallbacks_.push(f);return this};
var cX=function(r,f){f=r.indexOf(f);f>-1&&r.splice(f,1)};
t$.prototype.removeListener=function(r,f){r=="data"?cX(this.onDataCallbacks_,f):r=="metadata"?cX(this.onMetadataCallbacks_,f):r=="status"?cX(this.onStatusCallbacks_,f):r=="end"?cX(this.onEndCallbacks_,f):r=="error"&&cX(this.JSC$16940_onErrorCallbacks_,f);return this};
t$.prototype.cancel=function(){this.JSC$16940_xhr_.abort()};
var OFY=function(r,f){for(var I=0;I<r.onDataCallbacks_.length;I++)r.onDataCallbacks_[I](f)},UIB=function(r,f){for(var I=0;I<r.onMetadataCallbacks_.length;I++)r.onMetadataCallbacks_[I](f)},Ta=function(r,f){for(var I=0;I<r.JSC$16940_onErrorCallbacks_.length;I++)r.JSC$16940_onErrorCallbacks_[I](f)};
t$.prototype.cancel=t$.prototype.cancel;t$.prototype.removeListener=t$.prototype.removeListener;t$.prototype.on=t$.prototype.on;var yv6=function(){var r=Error.call(this);this.message=r.message;"stack"in r&&(this.stack=r.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.t(yv6,Error);var WX=function(r){this.JSC$16949_worker_=r.worker||null;this.JSC$16949_streamBinaryChunks_=r.streamBinaryChunks||!1;this.JSC$16949_credentialsMode_=void 0};
_.rh(WX,_.I3R);WX.prototype.createInstance=function(){var r=new Lm(this.JSC$16949_worker_,this.JSC$16949_streamBinaryChunks_);this.JSC$16949_credentialsMode_&&r.setCredentialsMode(this.JSC$16949_credentialsMode_);return r};
WX.prototype.setCredentialsMode=function(r){this.JSC$16949_credentialsMode_=r};
var Lm=function(r,f){_.zh.call(this);this.JSC$16953_worker_=r;this.JSC$16953_streamBinaryChunks_=f;this.JSC$16953_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$16953_responseHeaders_=null;this.JSC$16953_method_="GET";this.JSC$16953_url_="";this.inProgress_=!1;this.JSC$16953_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.rh(Lm,_.zh);Lm.prototype.open=function(r,f){if(this.readyState!=0)throw this.abort(),Error("Jj");this.JSC$16953_method_=r;this.JSC$16953_url_=f;this.readyState=1;ms(this)};
Lm.prototype.send=function(r){if(this.readyState!=1)throw this.abort(),Error("Kj");this.inProgress_=!0;var f={headers:this.requestHeaders_,method:this.JSC$16953_method_,credentials:this.JSC$16953_credentialsMode_,cache:void 0};r&&(f.body=r);(this.JSC$16953_worker_||_.Yq).fetch(new Request(this.JSC$16953_url_,f)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
Lm.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,ex(this));this.readyState=0};
Lm.prototype.handleResponse_=function(r){if(this.inProgress_&&(this.fetchResponse_=r,this.JSC$16953_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16953_responseHeaders_=r.headers,this.readyState=2,ms(this)),this.inProgress_&&(this.readyState=3,ms(this),this.inProgress_)))if(this.responseType==="arraybuffer")r.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Yq.ReadableStream!==
"undefined"&&"body"in r){this.currentReader_=r.body.getReader();if(this.JSC$16953_streamBinaryChunks_){if(this.responseType)throw Error("Lj");this.response=[]}else this.response=this.responseText="",this.JSC$16953_textDecoder_=new TextDecoder;AvV(this)}else r.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var AvV=function(r){r.currentReader_.read().then(r.handleDataFromStream_.bind(r)).catch(r.handleSendFailure_.bind(r))};
Lm.prototype.handleDataFromStream_=function(r){if(this.inProgress_){if(this.JSC$16953_streamBinaryChunks_&&r.value)this.response.push(r.value);else if(!this.JSC$16953_streamBinaryChunks_){var f=r.value?r.value:new Uint8Array(0);if(f=this.JSC$16953_textDecoder_.decode(f,{stream:!r.done}))this.response=this.responseText+=f}r.done?ex(this):ms(this);this.readyState==3&&AvV(this)}};
Lm.prototype.handleResponseText_=function(r){this.inProgress_&&(this.response=this.responseText=r,ex(this))};
Lm.prototype.handleResponseArrayBuffer_=function(r){this.inProgress_&&(this.response=r,ex(this))};
Lm.prototype.handleSendFailure_=function(){this.inProgress_&&ex(this)};
var ex=function(r){r.readyState=4;r.fetchResponse_=null;r.currentReader_=null;r.JSC$16953_textDecoder_=null;ms(r)};
Lm.prototype.setRequestHeader=function(r,f){this.requestHeaders_.append(r,f)};
Lm.prototype.getResponseHeader=function(r){return this.JSC$16953_responseHeaders_?this.JSC$16953_responseHeaders_.get(r.toLowerCase())||"":""};
Lm.prototype.getAllResponseHeaders=function(){if(!this.JSC$16953_responseHeaders_)return"";for(var r=[],f=this.JSC$16953_responseHeaders_.entries(),I=f.next();!I.done;)I=I.value,r.push(I[0]+": "+I[1]),I=f.next();return r.join("\r\n")};
Lm.prototype.setCredentialsMode=function(r){this.JSC$16953_credentialsMode_=r};
var ms=function(r){r.onreadystatechange&&r.onreadystatechange.call(r)};
Object.defineProperty(Lm.prototype,"withCredentials",{get:function(){return this.JSC$16953_credentialsMode_==="include"},
set:function(r){this.setCredentialsMode(r?"include":"same-origin")}});var ZFq=function(r){var f="";_.X0.forEach(r,function(I,C){f+=C;f+=":";f+=I;f+="\r\n"});
return f},Gk6=function(r,f,I){if(_.X0.isEmpty(I))return r;
I=ZFq(I);if(typeof r==="string")return _.vY(r,_.ik(f),I);_.RZ(r,f,I);return r};var kk7=function(){this.isInputValid_=!0;this.JSC$16959_streamPos_=0;this.leftoverInput_=""};
kk7.prototype.isInputValid=function(){return this.isInputValid_};var xe=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16962_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
xe.prototype.isInputValid=function(){return this.state_!=3};
var J$=function(r,f,I,C){r.state_=3;r.errorMessage_="The stream is broken @"+r.JSC$16962_streamPos_+"/"+I+". Error: "+C+". With input:\n"+f;throw Error(r.errorMessage_);};
xe.prototype.acceptsBinaryInput=function(){return!0};
xe.prototype.parse=function(r){function f(w){w&128&&J$(V,S,h,"invalid tag");(w&7)!=2&&J$(V,S,h,"invalid wire type");V.tag_=w>>>3;V.tag_!=1&&V.tag_!=2&&V.tag_!=15&&J$(V,S,h,"unexpected tag");V.state_=1;V.length_=0;V.countLengthBytes_=0}
function I(w){V.countLengthBytes_++;V.countLengthBytes_==5&&w&240&&J$(V,S,h,"message length too long");V.length_|=(w&127)<<(V.countLengthBytes_-1)*7;w&128||(V.state_=2,V.countMessageBytes_=0,typeof Uint8Array!=="undefined"?V.messageBuffer_=new Uint8Array(V.length_):V.messageBuffer_=Array(V.length_),V.length_==0&&Y())}
function C(w){V.messageBuffer_[V.countMessageBytes_++]=w;V.countMessageBytes_==V.length_&&Y()}
function Y(){if(V.tag_<15){var w={};w[V.tag_]=V.messageBuffer_;V.result_.push(w)}V.state_=0}
for(var V=this,S=r instanceof Array?r:new Uint8Array(r),h=0;h<S.length;){switch(V.state_){case 3:J$(V,S,h,"stream already broken");break;case 0:f(S[h]);break;case 1:I(S[h]);break;case 2:C(S[h]);break;default:throw Error("Nj`"+V.state_);}V.JSC$16962_streamPos_++;h++}r=V.result_;V.result_=[];return r.length>0?r:null};var VJ6=function(){this.errorMessage_=null;this.JSC$16965_streamPos_=0;this.base64Decoder_=new kk7;this.pbParser_=new xe};
VJ6.prototype.isInputValid=function(){return this.errorMessage_===null};
var BuV=function(r,f,I){r.errorMessage_="The stream is broken @"+r.JSC$16965_streamPos_+". Error: "+I+". With input:\n"+f;throw Error(r.errorMessage_);};
VJ6.prototype.acceptsBinaryInput=function(){return!1};
VJ6.prototype.parse=function(r){this.errorMessage_!==null&&BuV(this,r,"stream already broken");var f=null;try{var I=this.base64Decoder_;if(!I.isInputValid_)throw I.isInputValid_=!1,Error("Mj`"+I.JSC$16959_streamPos_+"`stream already broken`"+r);I.leftoverInput_+=r;var C=Math.floor(I.leftoverInput_.length/4);if(C==0)var Y=null;else{try{var V=_.URu(I.leftoverInput_.slice(0,C*4))}catch(w){var S=I.leftoverInput_,h=w.message;I.isInputValid_=!1;throw Error("Mj`"+I.JSC$16959_streamPos_+"`"+h+"`"+S);}I.JSC$16959_streamPos_+=
C*4;I.leftoverInput_=I.leftoverInput_.slice(C*4);Y=V}f=Y===null?null:this.pbParser_.parse(Y)}catch(w){BuV(this,r,w.message)}this.JSC$16965_streamPos_+=r.length;return f};var lmd=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16968_streamPos_=0;this.result_=[];this.statusParsed_=!1};
lmd.prototype.isInputValid=function(){return this.errorMessage_===null};
lmd.prototype.acceptsBinaryInput=function(){return!1};
lmd.prototype.parse=function(r){function f(w){V.state_=6;V.errorMessage_="The stream is broken @"+V.JSC$16968_streamPos_+"/"+S+". Error: "+w+". With input:\n";throw Error(V.errorMessage_);}
function I(){V.jsonStreamParser_=new _.Di({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function C(w){if(w)for(var n=0;n<w.length;n++){var d={};d[1]=w[n];V.result_.push(d)}}
function Y(w){if(w){(V.statusParsed_||w.length>1)&&f("extra status: "+w);V.statusParsed_=!0;var n={};n[2]=w[0];V.result_.push(n)}}
for(var V=this,S=0;S<r.length;){var h;if(h=V.state_!==2){a:{for(;S<r.length;){if(!_.uC(r[S])){h=!0;break a}S++;V.JSC$16968_streamPos_++}h=!1}h=!h}if(h)return null;switch(V.state_){case 6:f("stream already broken");break;case 0:r[S]==="["?(V.state_=1,S++,V.JSC$16968_streamPos_++):f("unexpected input token");break;case 1:r[S]==="["?(V.state_=2,I()):r[S]===","||r.slice(S,S+5)=="null,"?V.state_=3:r[S]==="]"?(V.state_=5,S++,V.JSC$16968_streamPos_++):f("unexpected input token");break;case 2:h=V.jsonStreamParser_.parse(r.substring(S));
C(h);V.jsonStreamParser_.done()?(V.state_=3,h=V.jsonStreamParser_.JSC$9287_buffer_,V.JSC$16968_streamPos_+=r.length-S-h.length,r=h,S=0):(V.JSC$16968_streamPos_+=r.length-S,S=r.length);break;case 3:r[S]===","||r.slice(S,S+5)=="null,"?(V.state_=4,I(),V.jsonStreamParser_.parse("["),S+=r[S]===","?1:5,V.JSC$16968_streamPos_++):r[S]==="]"&&(V.state_=5,S++,V.JSC$16968_streamPos_++);break;case 4:h=V.jsonStreamParser_.parse(r.substring(S));Y(h);V.jsonStreamParser_.done()?(V.state_=5,h=V.jsonStreamParser_.JSC$9287_buffer_,
V.JSC$16968_streamPos_+=r.length-S-h.length,r=h,S=0):(V.JSC$16968_streamPos_+=r.length-S,S=r.length);break;case 5:f("extra input after stream end")}}return V.result_.length>0?(r=V.result_,V.result_=[],r):null};var q06=function(r){this.JSC$16971_xhr_=r;this.JSC$16971_parser_=null;this.status_=this.JSC$16971_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16971_textDecoder_=null;this.JSC$16971_eventHandler_=new _.B8(this);this.JSC$16971_eventHandler_.listen(this.JSC$16971_xhr_,"readystatechange",this.JSC$16973_readyStateChangeHandler_)},jx=function(r,f){r.status_!=f&&(r.status_=f,r.statusHandler_&&r.statusHandler_())},HX=function(r){r.JSC$16971_eventHandler_.removeAll();
if(r.JSC$16971_xhr_){var f=r.JSC$16971_xhr_;r.JSC$16971_xhr_=null;f.abort();f.dispose()}};
q06.prototype.getStatus=function(){return this.status_};
q06.prototype.JSC$16973_readyStateChangeHandler_=function(r){r=r.target;try{if(r==this.JSC$16971_xhr_)a:{var f=_.tA(this.JSC$16971_xhr_),I=this.JSC$16971_xhr_.JSC$7695_lastErrorCode_,C=this.JSC$16971_xhr_.getStatus(),Y=this.JSC$16971_xhr_.getResponseText();r=[];if(this.JSC$16971_xhr_.getResponse()instanceof Array){var V=this.JSC$16971_xhr_.getResponse();V.length>0&&V[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,r=V)}if(!(f<3||f==3&&!Y&&r.length==0))if(C=C==200||C==206,f==4&&(I==8?jx(this,
7):I==7?jx(this,8):C||jx(this,3)),this.JSC$16971_parser_||(this.JSC$16971_parser_=Ef7(this.JSC$16971_xhr_),this.JSC$16971_parser_==null&&jx(this,5)),this.status_>2)HX(this);else{if(r.length>this.JSC$16971_pos_){var S=r.length;I=[];try{if(this.JSC$16971_parser_.acceptsBinaryInput())for(var h=0;h<S;h++){var w=this.JSC$16971_parser_.parse(Array.from(r[h]));w&&(I=I.concat(w))}else{w="";if(!this.JSC$16971_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Oj");this.JSC$16971_textDecoder_=new TextDecoder}for(h=
0;h<S;h++)w+=this.JSC$16971_textDecoder_.decode(r[h],{stream:f==4&&h==S-1});I=this.JSC$16971_parser_.parse(w)}r.splice(0,S);I&&this.dataHandler_(I)}catch(d){jx(this,5);HX(this);break a}}else if(Y.length>this.JSC$16971_pos_){h=Y.slice(this.JSC$16971_pos_);this.JSC$16971_pos_=Y.length;try{var n=this.JSC$16971_parser_.parse(h);n!=null&&this.dataHandler_&&this.dataHandler_(n)}catch(d){jx(this,5);HX(this);break a}}f==4?(Y.length!=0||this.hasStreamingResponseData_?jx(this,2):jx(this,4),HX(this)):jx(this,
1)}}}catch(d){jx(this,6),HX(this)}};var u1s=function(r){r=this.xhrReader_=r;var f=(0,_.gL)(this.onData_,this);r.dataHandler_=f;r=this.xhrReader_;f=(0,_.gL)(this.onStatusChange_,this);r.statusHandler_=f;this.JSC$16975_callbackMap_={};this.callbackOnceMap_={}};
_.l=u1s.prototype;_.l.on=function(r,f){var I=this.JSC$16975_callbackMap_[r];I||(I=[],this.JSC$16975_callbackMap_[r]=I);I.push(f);return this};
_.l.addListener=function(r,f){this.on(r,f);return this};
_.l.removeListener=function(r,f){var I=this.JSC$16975_callbackMap_[r];I&&_.uU(I,f);(r=this.callbackOnceMap_[r])&&_.uU(r,f);return this};
_.l.once=function(r,f){var I=this.callbackOnceMap_[r];I||(I=[],this.callbackOnceMap_[r]=I);I.push(f);return this};
_.l.onData_=function(r){var f=this.JSC$16975_callbackMap_.data;f&&DIp(r,f);(f=this.callbackOnceMap_.data)&&DIp(r,f);this.callbackOnceMap_.data=[]};
var DIp=function(r,f){for(var I={},C=0;C<r.length;I={message$jscomp$968:void 0},C++)I.message$jscomp$968=r[C],f.forEach(function(Y){return function(V){try{V(Y.message$jscomp$968)}catch(S){}}}(I))};
u1s.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:rHU(this,"readable");break;case 5:case 6:case 4:case 7:case 3:rHU(this,"error");break;case 8:rHU(this,"close");break;case 2:rHU(this,"end")}};
var rHU=function(r,f){var I=r.JSC$16975_callbackMap_[f];I&&I.forEach(function(C){try{C()}catch(Y){}});
(I=r.callbackOnceMap_[f])&&I.forEach(function(C){C()});
r.callbackOnceMap_[f]=[]};var fNi=function(){var r={format:"jspb"};r=r===void 0?{}:r;this.suppressCorsPreflight=r.suppressCorsPreflight||_.jH("suppressCorsPreflight",r)||!1;this.withCredentials=r.withCredentials||_.jH("withCredentials",r)||!1;this.streamInterceptors=r.streamInterceptors||[];this.unaryInterceptors=r.unaryInterceptors||[];this.workerScope=r.workerScope;this.chunkedServerStreaming=r.useFetchDownloadStreams||!1},Y1d=function(r,f,I,C,Y,V){V=V===void 0?{}:V;
var S=f.substring(0,f.length-Y.name.length),h,w=(h=V)==null?void 0:h.signal;return IN6(function(n){return new Promise(function(d,z){if(w==null?0:w.aborted){var g=new _.$k(1,"Aborted");g.cause=w.reason;z(g)}else{var X={},P=C1B(r,n,S);P.on("error",function(W){return void z(W)});
P.on("metadata",function(W){X=W});
P.on("data",function(W){var m=X;m=m===void 0?{}:m;d(new g4V(W,m))});
w&&w.addEventListener("abort",function(){P.cancel();var W=new _.$k(1,"Aborted");W.cause=w.reason;z(W)})}})},r.unaryInterceptors).call(r,aKd(Y,I,C)).then(function(n){return n.responseMessage})},i5=function(r,f,I,C,Y){var V=V===void 0?{}:V;
return Y1d(r,f,I,C,Y,V)};
fNi.prototype.serverStreaming=function(r,f,I,C){var Y=this,V=r.substring(0,r.length-C.name.length);return lN2(function(S){var h=S.methodDescriptor,w=S.getMetadata(),n=VBV(Y,!1);w=EU6(Y,w,n,V+h.getName());var d=S11(n,h.responseDeserializeFn,!0);S=h.requestSerializeFn(S.requestMessage);n.send(w,"POST",S);return d},this.streamInterceptors).call(this,aKd(C,f,I))};
var C1B=function(r,f,I){var C=f.methodDescriptor,Y=f.getMetadata(),V=VBV(r,!0);r=EU6(r,Y,V,I+C.getName());I=S11(V,C.responseDeserializeFn,!1);QK2(I,Y["X-Goog-Encode-Response-If-Executable"]==="base64");f=C.requestSerializeFn(f.requestMessage);V.send(r,"POST",f);return I},VBV=function(r,f){f=r.chunkedServerStreaming&&!f;
return r.workerScope||f?new _.P7(new WX({worker:r.workerScope,streamBinaryChunks:f})):new _.P7},EU6=function(r,f,I,C){f["Content-Type"]="application/json+protobuf";
f["X-User-Agent"]="grpc-web-javascript/0.1";var Y=f.Authorization;if(Y&&iFd.has(Y.split(" ")[0])||r.withCredentials)I.JSC$7695_withCredentials_=!0;if(r.suppressCorsPreflight)C=Gk6(C,"$httpHeaders",f);else for(r=_.E(Object.keys(f)),Y=r.next();!Y.done;Y=r.next())Y=Y.value,I.headers.set(Y,f[Y]);return C},S11=function(r,f,I){if(I){I=new q06(r);
var C=new u1s(I)}return new t$({xhr:r,nodeReadableStream:C},f)},lN2=function(r,f){return f.reduce(function(I,C){return function(Y){return C.intercept(Y,I)}},r)},IN6=function(r,f){return f.reduce(function(I,C){return function(Y){return C.intercept(Y,I)}},r)};var xp7=function(r){this.client_=new fNi;this.hostname_=r==void 0?r:r.replace(/\/+$/,"")};
_.l=xp7.prototype;_.l.JSC$16994_depositGoogleCredential=function(r,f){return i5(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",r,f||{},FVd)};
_.l.deleteLink=function(r,f){return i5(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",r,f||{},NuY)};
_.l.JSC$16994_finishOAuth=function(r,f){return i5(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",r,f||{},tOB)};
_.l.getLink=function(r,f){return i5(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",r,f||{},Tup)};
_.l.startLinkingSession=function(r,f){return i5(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",r,f||{},HFB)};var htU=[0,PB6,1,c86,[0,_.QF,[0,tup,-1]],[0,TWi],[0,WCp,-1]];var wSd=function(){this.storage=new Map},pS6=function(r,f,I,C,Y){if(!r.storage.has(f))return null;
r=_.E(r.storage.get(f));for(f=r.next();!f.done;f=r.next())if(f=f.value,!Y||f.linkName===Y)if(I&&f.scopes&&bHU(f.scopes,I)||C&&f.capabilities&&bHU(f.capabilities,C))return f;return null},nU7=function(r,f,I){if(!I)r.storage.delete(f);
else if(r.storage.has(f)){var C=r.storage.get(f).filter(function(Y){return Y.linkName!==I});
C.length>0?r.storage.set(f,C):r.storage.delete(f)}},bHU=function(r,f){f=_.E(f);
for(var I=f.next();!I.done;I=f.next())if(!r.has(I.value))return!1;return!0};var dpV=function(){var r=_.Lz("LINK_GAL_DOMAIN");this.alsDomain1p=_.Lz("LINK_GAL_DOMAIN");this.alsDomain3p=r;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},zt2=function(r,f){r.apiKey=f;
return r};
dpV.prototype.build=function(){var r={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Pj");r.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Qj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Rj");r.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(r.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)r.apiKey=
this.apiKey,r.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Sj");r.oauthToken=this.oauthToken;r.alsDomain=this.alsDomain3p}r.clientXd3=this.clientXd3;r.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(r.authUser=this.authUser);this.bucket!==void 0&&(r.bucket=this.bucket);this.completionUrl!==void 0&&(r.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(r.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(r.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(r.locale=this.locale);r.loggerType=this.loggerType;r.clientEnvironment=this.clientEnvironment;r.colorScheme=this.colorScheme;r.showCloseOption=this.showCloseOption;return r};var hM=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(hM,_.Kj);var MB7=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(MB7,_.Kj);var gUs=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(gUs,_.Kj);var be=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(be,_.Kj);var aNB=function(r){return _.cM(r,1)};var XS3=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(XS3,_.Kj);var nf2=_.fK(XS3),wc=[1,2,3,4,5];var hRV=function(r){try{return nf2(r)}catch(f){return null}},NYi=function(){},w8Y=function(r,f){switch(_.aJ(f,wc)){case 4:return(f=_.mt(f,gUs,4,wc))&&r.logStateTransition(_.cM(f,1)),!0;
case 5:return(f=_.mt(f,MB7,5,wc))&&r.logInternalEvent(_.cM(f,1)),!0}return!1},d72=function(r){switch(r){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Sd(r)}};var SCd=function(r,f){var I=this;this.validator=r;this.messageListener=f;this.dismissCallback=function(){$p2(I,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17023_receiveMessage=function(C){C.type==="message"&&(C=C.event_,C!==null&&(new URL(I.iframe.src)).origin===C.origin&&I.validator(C.data,C.origin)&&!I.messageListener(C.data)&&(I.JSC$17023_resolveCb!==void 0&&I.JSC$17023_resolveCb(C.data),FG2(I)))}},p87=function(r,f,I){r.uiHandler!==void 0&&$p2(r,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(C,Y){r.JSC$17023_resolveCb=C;r.JSC$17023_rejectCb=Y;r.iframe=document.createElement("iframe");_.LK(r.iframe,f);r.uiHandler=I.displayContent(r.iframe,r.dismissCallback);_.S$(window,"message",r.JSC$17023_receiveMessage,!1,r)})},$p2=function(r,f){r.JSC$17023_rejectCb!==void 0&&r.JSC$17023_rejectCb(f);
FG2(r)},FG2=function(r){r.uiHandler!==void 0&&r.uiHandler.hideContent();
_.di(window,"message",r.JSC$17023_receiveMessage,!1,r);r.JSC$17023_resolveCb=void 0;r.JSC$17023_rejectCb=void 0;r.uiHandler=void 0;r.iframe=void 0};var P12=function(r){if(r===2){var f;r=((f=window)==null?0:f.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return r},bEp=function(r){r=P12(r);
switch(r){case 0:return"light";case 1:return"dark";default:_.Sd(r)}};var x7q=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),tBs=function(r,f){this.JSC$17035_linkingSession=r;this.noticeConfig=f;this.displayInfoMap=new Map;var I=new Map;if(_.nD(this.JSC$17035_linkingSession,LV3,7))for(r=_.kB(this.JSC$17035_linkingSession,LV3,7),r=_.Bk(r,WVs,1,_.qS()),r=_.E(r),f=r.next();!f.done;f=r.next())f=f.value,I.set(_.cM(f,1),_.szK(_.kB(f,_.AOl,3)));if(I.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){f=this.noticeConfig.enabledDataUsageNoticeUis;r=f.has(0)?I.get(1):void 0;f=f.has(1)?I.get(2):void 0;I=r!==void 0&&f!==void 0?I.get(3):void 0;var C=this.noticeConfig.nestedOrigins;var Y=new XS3;var V=new hM;Y=_.Y1(Y,2,wc,V);V=new XS3;var S=new hM;V=_.Y1(V,3,wc,S);S=[];r!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:r,lastEvent:Y,nestedOrigins:C}]),S.push({trustedUrl:r,lastEvent:Y,nestedOrigins:C}));f!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:f,lastEvent:V,nestedOrigins:C}]),S.push({trustedUrl:f,lastEvent:V,nestedOrigins:C}));I!==void 0?this.displayInfoMap.set(3,[{trustedUrl:I,lastEvent:V,nestedOrigins:C}]):this.displayInfoMap.set(3,S)}};var TYU=function(r){var f=new wSd;this.galService=r;this.galCache=f};
TYU.prototype.getLink=function(r){var f=r.serviceId;var I=r.scopes;var C=r.capabilities;var Y=r.linkName;var V=this,S;return _.x(function(h){if(C!==void 0&&I!==void 0)throw Error("Tj");S=pS6(V.galCache,f,I,C,Y);return S!==null?h.return(S):h.return(V.galService.getLink({serviceId:f,sessionId:Math.floor(Math.random()*2147483648),scopes:I,capabilities:C,linkName:Y}).then(function(w){w=X8i(w);var n=V.galCache;n.storage.has(f)?n.storage.get(f).push(w):n.storage.set(f,[w]);return w}))})};
TYU.prototype.deleteLink=function(r,f,I){var C=this;return _.x(function(Y){nU7(C.galCache,r,I);return Y.return(C.galService.deleteLink({serviceId:r,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:f,linkName:I}).then(function(){return!0}))})};var WGU=function(r,f){var I=this;this.validator=r;this.msgHandler=f;this.closedPopupTimeout=this.JSC$17057_rejectCb=this.JSC$17057_resolveCb=this.popup=null;this.JSC$17057_receiveMessage=function(C){if(C!==null&&(C=C.event_,C.source===I.popup)){var Y=C.data;if(I.validator(Y,C.origin)){var V;(V=I.msgHandler)!=null&&V.call(I,Y)||(I.JSC$17057_resolveCb!==null&&I.JSC$17057_resolveCb(Y),cHV(I))}}}};
WGU.prototype.open=function(r,f){var I=this;this.popup!==null&&LGp(this);return new Promise(function(C,Y){I.JSC$17057_resolveCb=C;I.JSC$17057_rejectCb=Y;I.popup=_.eF(window,r,"",f);_.S$(window,"message",I.JSC$17057_receiveMessage,!1,I);mpV(I)})};
var LGp=function(r,f){r.JSC$17057_rejectCb!==null&&r.JSC$17057_rejectCb(f);cHV(r)},cHV=function(r){r.closedPopupTimeout&&(r.closedPopupTimeout.cancel(),r.closedPopupTimeout=null);
r.popup&&r.popup.close();_.di(window,"message",r.JSC$17057_receiveMessage,!1,r);r.popup=null;r.JSC$17057_resolveCb=null;r.JSC$17057_rejectCb=null},mpV=function(r){r.closedPopupTimeout=_.W_D(100).then(function(){r.popup?r.popup.closed?eti(r):mpV(r):LGp(r,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},eti=function(r){r.closedPopupTimeout=_.W_D(100).then(function(){LGp(r,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var JHs=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),jVp=function(r,f,I,C,Y,V,S,h,w,n){var d=this;this.serviceId=r;this.sessionId=f;this.galService=I;this.oauthDetails=C;this.galLogger=Y;this.interactionMode=V;this.redirectServiceUrl=S;this.consentLanguageKeys=h;this.dynamicUrlParameters=w;this.partnerConfigMinReadTimestamp=n;this.started=!1;this.JSC$17063_dataValidator=function(z,
g){var X=JHs.has(g);X||d.redirectServiceUrl===void 0||(X=d.redirectServiceUrl===g);return X?z.sentinel==="gdi":!1}};
jVp.prototype.complete=function(){var r=this,f;return _.x(function(I){if(r.interactionMode!==1)return I.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));f=n4.getRedirectStateFromUri();return f===null?I.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):I.return(HH6(r,f))})};
jVp.prototype.start=function(){var r=this,f;return _.x(function(I){if(r.started)return I.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.Tb(r.oauthDetails,1))return I.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(r.interactionMode===1)return n4.setLocation(_.Tb(r.oauthDetails,1)),I.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));r.started=!0;r.galLogger.logStateTransition(5);
f=n4.getPostMessagePopup(r.JSC$17063_dataValidator);return I.return(f.open(_.Tb(r.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(C){r.started=!1;var Y=r.galLogger;if((C==null?void 0:C.error)!==void 0)throw Y.logInternalEvent(59),Error("Uj");if((C==null?void 0:C.redirect_state)===void 0)throw Y.logInternalEvent(131),Error("Vj");return HH6(r,C.redirect_state)}).catch(function(C){r.started=
!1;
return C.errorCode!==void 0?{statusCode:C.errorCode,statusMessage:C.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var HH6=function(r,f){return _.x(function(I){return I.return(iHU(r.galService,{serviceId:r.serviceId,sessionId:r.sessionId,dynamicUrlParameters:r.dynamicUrlParameters,redirectState:f,consentLanguageKeys:r.consentLanguageKeys,partnerConfigMinReadTimestamp:r.partnerConfigMinReadTimestamp}).then(function(C){var Y={statusCode:1,link:X8i(C.getLink())};d43(_.zb(C,3))!==void 0&&(Y.callerState=d43(_.zb(C,3)));r.galLogger.logInternalEvent(134);return Y}))})},n4={getPostMessagePopup:function(r){return new WGU(r)},
getRedirectStateFromUri:function(){var r=_.Hh(n4.getLocation()).fragment_;return(new _.rP(r)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(r){_.Qs(window.location,_.gn(r))},
createOAuthFlow:function(r,f){return new jVp(r.serviceId,r.sessionId,r.galService,f,r.galLogger,r.interactionMode,r.redirectServiceUrl,r.consentLanguageKeys,r.dynamicUrlParameters,r.partnerConfigMinReadTimestamp)}};var Rt3=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Rt3,_.Kj);var vUp=_.fK(Rt3);var KGq=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),yHs=function(r,f,I,C,Y,V,S,h,w){var n=this;this.serviceId=r;this.sessionId=f;this.galService=I;this.gsiWebFlowDetails=C;this.colorScheme=Y;this.showCloseOption=V;this.galLogger=S;this.interactionMode=h;this.redirectServiceUrl=w;this.started=!1;this.JSC$17075_dataValidator=function(d,z){var g=KGq.has(z);g||n.redirectServiceUrl===
void 0||(g=n.redirectServiceUrl===z);return g?d.sentinel==="gal":!1};
this.logEventProcessor=function(d){return d.result?(d=hRV(d.result))?w8Y(n.galLogger,d):!1:!1}};
yHs.prototype.complete=function(){var r=this,f,I;return _.x(function(C){if(r.interactionMode!==1)return C.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));f=dc.getRedirectStateFromUri();if(f===void 0)return r.galLogger.JSC$17015_logErrorEvent(131),C.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return I=UpB(r,f),C.return(sVB(r,I))}catch(Y){return C.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
yHs.prototype.start=function(){var r=this,f;return _.x(function(I){if(r.started)return I.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.Tb(r.gsiWebFlowDetails,1))return I.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(r.interactionMode===1)return dc.setLocation(OH7(r,_.Tb(r.gsiWebFlowDetails,1))),I.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
r.started=!0;f=dc.getPostMessagePopup(r.JSC$17075_dataValidator,r.logEventProcessor);return I.return(f.open(OH7(r,_.Tb(r.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(C){r.started=!1;if((C==null?void 0:C.result)===void 0)throw r.galLogger.JSC$17015_logErrorEvent(131),Error("Vj");C=UpB(r,C.result);return sVB(r,C)}).catch(function(C){r.started=!1;
return C.errorCode!==void 0?{statusCode:C.errorCode,statusMessage:C.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var OH7=function(r,f){r=["result_channel",r.interactionMode===1?"2":"1","color_scheme",bEp(r.colorScheme),"show_close_option",r.showCloseOption];return J8V(f,r)},sVB=function(r,f){if(f!==null&&_.nD(f,be,2)){var I,C=f==null?void 0:(I=_.kB(f,be,2))==null?void 0:_.cM(I,2);
C&&r.galLogger.JSC$17015_logErrorEvent(d72(C));return aNB(_.kB(f,be,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 r.galService.getLink({serviceId:r.serviceId,sessionId:r.sessionId,consistencyKey:_.Tb(f,1)}).then(function(Y){Y=X8i(Y);r.galLogger.logInternalEvent(134);return{statusCode:1,link:Y}})},UpB=function(r,f){f=vUp(f);
if(!_.nD(f,be,2)&&_.Tb(f,1)==="")throw r.galLogger.JSC$17015_logErrorEvent(5),Error("Wj");return f},dc={getPostMessagePopup:function(r,f){return new WGU(r,f)},
getRedirectStateFromUri:function(){return _.iE(_.Hh(dc.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(r){_.Qs(window.location,_.gn(r))},
createStreamlinedFlow:function(r,f){return new yHs(r.serviceId,r.sessionId,r.galService,f,r.colorScheme,r.showCloseOption,r.galLogger,r.interactionMode,r.redirectServiceUrl)}};var iEY=function(){var r=_.F0l("GAL");this.storage=r?new _.dl(r):null};var RW=function(){};
_.t(RW,NYi);RW.prototype.logStateTransition=function(){};
RW.prototype.logInternalEvent=function(){};
RW.prototype.JSC$17015_logErrorEvent=function(){};var oUV=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(oUV,_.Kj);oUV.prototype.getCompletionUrl=function(){return _.Tb(this,15)};var vX=function(r,f,I,C,Y,V){this.serviceId=r;this.environment=f;this.sessionId=I;this.colorSchemeSelected=C;this.colorThemeDisplayed=Y;this.JSC$17088_transport=V;this.currentState=1};
_.t(vX,NYi);vX.prototype.logStateTransition=function(r){var f=QV3(this);f=_.Bd(f,3,this.currentState);f=_.Bd(f,1,r);this.currentState=r;r=AG3(1);this.dispatch(f,r)};
vX.prototype.logInternalEvent=function(r){r=AG3(r);this.dispatch(QV3(this),r)};
vX.prototype.JSC$17015_logErrorEvent=function(r){var f=QV3(this);f=_.Bd(f,1,10);r=AG3(r);this.dispatch(f,r)};
var QV3=function(r){var f=new oUV;f=_.Bd(f,1,r.currentState);f=_.w5(f,7,r.serviceId);var I,C;var Y=((I=window)==null?0:(C=I.location)==null?0:C.href)?_.Hh(window.location.href).JSC$7932_domain_:"NO_PACKAGE_NAME";I=_.w5(f,8,Y);I=_.Bd(I,6,r.environment);I=_.w5(I,5,"100");I=_.Bd(I,11,r.colorSchemeSelected);return _.Bd(I,12,r.colorThemeDisplayed)};
vX.prototype.dispatch=function(r,f){f===void 0&&(f=new _.Yk);var I=f;r=r.serialize();I=_.w5(I,8,r);_.pN(I,12,this.sessionId);this.JSC$17088_transport.dispatch(f)};var AH6=function(r,f){this.loggerType=r;this.sessionIndex=f!=null?f:0},ZH6;
AH6.prototype.create=function(r,f,I,C,Y){switch(this.loggerType){case 0:return new RW;case 1:return ZH6||(ZH6=(new _.lE(555,this.sessionIndex.toString())).build()),new vX(r,f,I,C,Y,ZH6);default:_.Sd(this.loggerType,"unknown logger type")}};var zl=[6,2,3,1],U76=new Map([[4,1],[1,6],[2,2],[3,3]]),PKi={statusCode:7,statusMessage:"Failed to create flow object"},j62=function(r,f,I,C,Y,V,S,h,w,n){this.serviceId=r;this.sessionId=f;this.config=I;this.galService=C;this.JSC$17095_linkingSession=Y;this.googleScopes=V;this.callerState=S;this.consentLanguageKeys=h;this.dynamicUrlParameters=w;this.partnerConfigMinReadTimestamp=n;this.currentFlow=0;C=this.JSC$17095_linkingSession;Y=new Set;_.nD(C,LF6,1)&&Y.add(1);_.nD(C,e3s,2)&&_.nD(C,m7Y,6)&&Y.add(2);
_.nD(C,mI6,3)&&_.nD(C,m7Y,6)&&Y.add(3);_.nD(C,cv3,4)&&Y.add(6);this.supportedFlows=Y;C=I.loggerType;Y=I.clientEnvironment;a:{V=I.colorScheme;switch(V){case 0:V=1;break a;case 1:V=2;break a;case 2:V=3;break a;default:_.Sd(V)}V=void 0}a:{S=I.colorScheme;S=P12(S);switch(S){case 0:S=1;break a;case 1:S=2;break a;default:_.Sd(S)}S=void 0}this.galLogger=(new AH6(C,I.authUser)).create(r,Y,f,V,S)},kNV=function(r){return new Promise(function(f){var I,C,Y,V,S,h,w,n,d,z;
return _.x(function(g){switch(g.nextAddress){case 1:I=eRB(r.currentFlow,r.supportedFlows),C=!1,Y=new tBs(r.JSC$17095_linkingSession,r.config.dataUsageNoticeConfig);case 2:if(I===void 0){g.jumpTo(4);break}_.l_(g,5);var X=Y,P=I,W=void 0;C?P===1&&(W=X.displayInfoMap.get(2)):P===2||P===3?W=X.displayInfoMap.get(1):P===1&&(W=X.displayInfoMap.get(3));V=W?W:[];S=r.consentLanguageKeys;h=_.E(V);w=h.next();case 7:if(w.done)return r.currentFlow=I,_.b(g,Tb6(GN3(r,S)),11);n=w.value;return _.b(g,zRi(n,r.config.dataUsageNoticeConfig.uiAdapter,
r.config.colorScheme,r.galLogger),10);case 10:d=g.yieldResult;if(d.statusCode!==1)return RRs(r.serviceId),r.currentFlow=0,f(p4({statusCode:d.statusCode,statusMessage:d.statusMessage},r.callerState)),g.return();d.consentLanguageKeys!==void 0&&(S=d.consentLanguageKeys);w=h.next();g.jumpTo(7);break;case 11:z=g.yieldResult;if(z.statusCode!==10)return z.statusCode!==6&&(RRs(r.serviceId),r.currentFlow=0),z.statusCode!==1&&r.callerState!==void 0&&(z.callerState=r.callerState),f(z),g.return();_.Hd(g,6);break;
case 5:_.ha(g);case 6:I=eRB(r.currentFlow,r.supportedFlows);C=!0;g.jumpTo(2);break;case 4:RRs(r.serviceId),r.currentFlow=0,f(p4({statusCode:12,statusMessage:"Linking failed"},r.callerState)),_.wO(g)}})})},KFs=function(r,f,I){r.currentFlow=f;
return cq2(GN3(r,I)).then(function(C){return C.statusCode===10&&r.config.interactionMode===1&&eRB(r.currentFlow,r.supportedFlows)!==void 0?kNV(r):C})},GN3=function(r,f){return{flowParams:{serviceId:r.serviceId,
sessionId:r.sessionId,galService:r.galService,galLogger:r.galLogger,interactionMode:r.config.interactionMode,redirectServiceUrl:r.config.redirectServiceUrl,colorScheme:r.config.colorScheme,consentLanguageKeys:f,dynamicUrlParameters:r.dynamicUrlParameters,showCloseOption:r.config.showCloseOption,partnerConfigMinReadTimestamp:r.partnerConfigMinReadTimestamp},currentFlow:r.currentFlow,config:r.config,session:r.JSC$17095_linkingSession,googleScopes:r.googleScopes,callerState:r.callerState}};var qCs=function(r,f){this.config=r;this.galService=f.getService();this.JSC$17108_galRepository=f.JSC$17145_galRepository};
qCs.prototype.getLink=function(r,f){return BY6(this,r,f)};
var BY6=function(r,f,I){return r.JSC$17108_galRepository.getLink({serviceId:f,scopes:void 0,capabilities:void 0,linkName:I}).then(function(C){return{statusCode:1,link:C}}).catch(function(C){return{statusCode:s6i(C.code),
statusMessage:C.message}})};
qCs.prototype.deleteLink=function(r,f){return this.JSC$17108_galRepository.deleteLink(r,this.config.accountLinkingEntryPoint,f).then(function(){return{statusCode:1}}).catch(function(I){return{statusCode:s6i(I.code),
statusMessage:I.message}})};
qCs.prototype.startLinkingSession=function(r){var f=r.serviceId;var I=r.sessionId;return HEV({serviceId:f,sessionId:I!==void 0?I:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:r.loginHint,callerState:r.callerState,consentLanguageKeys:r.consentLanguageKeys,linkName:r.linkName,dynamicUrlParameters:r.dynamicUrlParameters,partnerConfigMinReadTimestamp:r.partnerConfigMinReadTimestamp})};var OEs=null,ZEp=new WeakMap;var q1d=function(){};
q1d.prototype.send=function(r,f){Bb3(r);return this.makeRequest(r).then(function(I){if(f){var C=new f;if(I!=null){if(f==null)throw Error("Yj");new f;throw Error("$j");}I=C}return I})};var und=function(r,f,I,C,Y){this.gapiUrl=r;this.gapiKey=f;this.gapiConfigUpdates=I||{};this.gapiAuthParams=C||{};this.defaultApiId=Y};
_.t(und,q1d);var rFq=function(r){return Q66().then(function(f){f=f||window.gapi;Dp6(r,f);return k5B(f,{apiKey:r.gapiKey,clientId:r.gapiAuthParams.clientId,scope:r.gapiAuthParams.scope,hostedDomain:r.gapiAuthParams.hostedDomain,fetchBasicProfile:r.gapiAuthParams.fetchBasicProfile}).then(function(){return f})})};
und.prototype.makeRequest=function(r){var f=this;return rFq(this).then(function(I){return _.x(function(C){if(C.nextAddress==1)return f.gapiAuthParams.minAuthTokenTimeRemaining===void 0?C.jumpTo(2):_.b(C,G53(I,f.gapiAuthParams.minAuthTokenTimeRemaining),2);Dp6(f,I);return C.return(fcq(I.client.request({root:f.gapiUrl,path:r.path,method:r.httpMethod,body:r.body,params:r.queryParams,headers:r.headers,authType:r.authType,apiId:r.apiId||f.defaultApiId})))})})};
var fcq=function(r){return new Promise(function(f,I){r.then(function(C){f(C.result===!1&&C.body!=null?{data:C.body}:C.result)},function(C){I(C.result===!1&&C.body!=null?{data:C.body}:C.result)})})},Dp6=function(r,f){for(var I in r.gapiConfigUpdates)if(r.gapiConfigUpdates.hasOwnProperty(I)){var C=f,Y=I,V=r.gapiConfigUpdates[I],S=C.config.get(Y);
V!==S&&C.config.update(Y,V)}};
und.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var Km=function(r,f,I,C,Y,V,S,h){this.apiKey=f;this.authUser=I;this.oauthToken=C;this.bucket=Y;this.locale=S;this.galSdkEventHandler=h;if(C===void 0){if(f===void 0)throw Error("ak");this.requestService=new und(r,f,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":V===void 0||V===!1,"client/xd3":V===!0})}this.galServiceClient=new xp7(r)};
Km.prototype.deleteLink=function(r){var f=r.serviceId;var I=r.sessionId;var C=r.accountLinkingEntryPoint;var Y=r.linkName;var V=this,S;return _.x(function(h){var w=(new Xa).setHeader(yx(V,I));var n=IcU({serviceId:f,linkName:Y});w=_.CK(w,2,n);S=_.Js(w,3,C);return h.return(V.makeRequest(V.galServiceClient.deleteLink,S,[1,3],[2,4]))})};
var iHU=function(r,f){var I=f.serviceId;var C=f.sessionId;var Y=f.dynamicUrlParameters;var V=f.redirectState;var S=f.consentLanguageKeys;var h=f.partnerConfigMinReadTimestamp;var w;return _.x(function(n){var d=(new $v).setHeader(yx(r,C,Y));d=_.kU(d,2,I);w=_.kU(d,4,V);S!==void 0&&_.kU(w,5,S);h!==void 0&&_.CK(w,6,h);return n.return(r.makeRequest(r.galServiceClient.JSC$16994_finishOAuth,w,[1,3],[2,4]))})};
Km.prototype.getLink=function(r){var f=r.serviceId;var I=r.sessionId;var C=r.scopes;var Y=r.capabilities;var V=r.consistencyKey;var S=r.linkName;var h=this,w;return _.x(function(n){var d=(new Fa).setHeader(yx(h,I)),z=IcU({serviceId:f,scopes:C,capabilities:Y,linkName:S});w=_.CK(d,2,z);V!==void 0&&(d=n4q(),d=_.kU(d,2,V),_.CK(w,3,d));return n.return(h.makeRequest(h.galServiceClient.getLink,w,[1,3],[2,4]))})};
var WF6=function(r,f){var I=f.serviceId;var C=f.sessionId;var Y=f.googleScopes;var V=f.consistencyKey;var S;return _.x(function(h){var w=(new NZ).setHeader(yx(r,C));w=_.kU(w,2,I);var n=Array.from(Y.values());w=_.PE(w,3,n,_.vB);n=n4q();n=_.kU(n,2,V);S=_.CK(w,4,n);return h.return(r.makeRequest(r.galServiceClient.JSC$16994_depositGoogleCredential,S,[1,3],[2,4]))})};
Km.prototype.startLinkingSession=function(r){var f=r.serviceId;var I=r.sessionId;var C=r.scopes;var Y=r.capabilities;var V=r.loginHint;var S=r.supportedFlows;var h=r.completionUrl;var w=r.usePingPong;var n=r.twoWayLinking;var d=r.accountLinkingEntryPoint;var z=r.callerState;var g=r.consentLanguageKeys;var X=r.googleScopes;var P=r.dataUsageNoticeConfig;var W=r.linkName;var m=r.dynamicUrlParameters;var v=r.partnerConfigMinReadTimestamp;var O=this,k,Z;return _.x(function(Cw){if(Y!==void 0&&C!==void 0)throw Error("Tj");
var rR=(new PX).setHeader(yx(O,I,m));k=_.kU(rR,2,f);W!==void 0&&_.kU(k,14,W);if(Y!==void 0){rR=k;var EP=Array.from(Y.values());_.PE(rR,5,EP,_.vB)}else C!==void 0&&(rR=k,EP=Array.from(C.values()),_.PE(rR,3,EP,_.vB));h!==void 0&&_.kU(k,6,h);w!==void 0&&_.X6(k,15,w);S!==void 0&&(rR=k,EP=Array.from(S.values()),_.PE(rR,4,EP,_.$i));if(n!==void 0){if(n&&(!X||X.size===0))throw Error("bk");_.X6(k,8,n)}d!==void 0&&_.Js(k,9,d);V!==void 0&&_.kU(k,13,V);z!==void 0&&(rR=k,EP=(new TextEncoder).encode(z),_.Ty(rR,
12,_.Os(EP,!1),_.ss()));g!==void 0&&_.kU(k,16,g);v!==void 0&&_.CK(k,18,v);if(P!==void 0&&P.size>0||X!==void 0&&X.size>0)Z=new jKp,X!==void 0&&X.size>0&&(rR=Z,EP=Array.from(X.values()),_.PE(rR,1,EP,_.vB)),P!==void 0&&(P.has(0)&&_.Eiu(Z,2,_.$i,1,_.F3),P.has(1)&&_.Eiu(Z,2,_.$i,2,_.F3)),_.CK(k,17,Z);return Cw.return(O.makeRequest(O.galServiceClient.startLinkingSession,k,[1],[2]))})};
Km.prototype.getMetadata=function(){var r=this,f,I,C;return _.x(function(Y){if(Y.nextAddress==1)return f={},r.requestService?_.b(Y,rFq(r.requestService),3):(f.Authorization="Bearer "+r.oauthToken,Y.jumpTo(2));Y.nextAddress!=2&&(I=Y.yieldResult,f["X-Goog-Api-Key"]=r.apiKey,f["X-Goog-AuthUser"]=r.authUser!==void 0?r.authUser.toString():"0",(C=I.auth.getAuthHeaderValueForFirstParty([]))&&(f.Authorization=C));r.locale&&(f["accept-language"]=r.locale);return Y.return(f)})};
Km.prototype.makeRequest=function(r,f,I,C){var Y=this,V;return _.x(function(S){if(S.nextAddress==1)return _.b(S,Y.getMetadata(),2);V=S.yieldResult;COV(Y,I);return S.return(r.bind(Y.galServiceClient)(f,V).finally(function(){COV(Y,C)}))})};
var COV=function(r,f){r.galSdkEventHandler!==void 0&&f.forEach(function(I){r.galSdkEventHandler.onEvent(I)})},yx=function(r,f,I){var C=new MZ;
f=_.Ty(C,2,_.PB(f),0);f=_.Js(f,5,3);I=_.PE(f,8,I,_.vB);r.bucket!==void 0&&_.kU(I,1,r.bucket);return I},IcU=function(r){var f=r.serviceId;
var I=r.scopes;var C=r.capabilities;r=r.linkName;if(C!==void 0&&I!==void 0)throw Error("Tj");var Y=new bFV;f=_.kU(Y,1,f);C!==void 0?(I=Array.from(C.values()),_.PE(f,5,I,_.vB)):I!==void 0&&(I=Array.from(I.values()),_.PE(f,3,I,_.vB));r!==void 0&&_.kU(f,6,r);return f};var uKU=function(r){this.galService=new Km(r.alsDomain,r.apiKey,r.authUser,r.oauthToken,r.bucket,r.clientXd3,r.locale,r.galSdkEventHandler);this.JSC$17145_galRepository=new TYU(this.galService)};
uKU.prototype.getService=function(){return this.galService};var Yd7=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Yd7,_.Kj);var lcs=function(r){var f=new Yd7;return _.Bd(f,1,r)};
Yd7.prototype.setErrorMessage=function(r){return _.w5(this,2,r)};var VQB=[0,_.Zn,_.oJ,_.Zn];var Uh=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Uh,_.Kj);var Ew6=[0,[1,2,3],_.As,[0,Xl7,FC6,-1],_.As,[0,$mp,-1],_.$9E];var Sds=[0,_.sv,1,_.Zn,_.oJ,-1,1,_.t6R,_.Uv,_.Zn,-1,Ew6];var xi1=[0,_.Zn,[0,_.t6R,_.Uv,[0,_.oJ]],_.Ov,[0,_.Zn,-1]];var ro=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(ro,_.Kj);var hB6=[0,_.oJ,_.Zn,-2,_.sv,_.Zn,_.sv,_.Zn,-2,1,_.Ov];var wa6=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(wa6,_.Kj);var bGY=[0,_.sv];var pa1=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(pa1,_.Kj);var nws=[0,_.Zn,xi1,bGY,hB6,Sds];var Tms=_.D$(pa1,nws);var did=[0,htU];var JG2=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(JG2,_.Kj);var zBq=[0,[1,3],LC7,_.Zn,LC7];var ue=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(ue,_.Kj);var MQ7=[0,_.Zn];var gwd=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(gwd,_.Kj);var DI=function(r){return _.mt(r,Yd7,2,q0)},acY=function(r){var f=new gwd;
return _.Y1(f,2,q0,r)},q0=[1,
2];var Xa6=[0,q0,_.As,MQ7,_.As,VQB,_.QF,zBq,1,_.Zn,did];var NMd=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(NMd,_.Kj);var Fy3=function(r){var f=new NMd;return _.Y1(f,3,$i2,r)},$i2=[2,
3];var sh=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(sh,_.Kj);var POq=function(r,f){return _.CK(r,2,f)},tQU=function(r,f){return _.CK(r,8,f)},TMY=function(r,f){return _.CK(r,3,f)};var cFB=[0,_.Zn,Xa6,nws,_.Lo3,[0,[5,6],[0,_.Zn,-2],[0,_.sv,_.Zn,_.oJ],[0,Ew6],[0,_.oJ,_.Zn,-1,_.WoX,_.Zn],_.As,[0,[0,_.sv],_.Zn,-1],_.As,[0,[3,4],_.Zn,-1,_.As,[0,[0,_.Zn,_.Ov]],_.As,[0,[0,[0,[1,2],_.As,[0],_.As,[0]]]]]],_.Lo3,-1,[0,$i2,_.Zn,_.As,MQ7,_.As,VQB,_.QF,zBq,[0,htU]]];var WyV=_.D$(sh,cFB),LyU=_.rn(cFB);var mip=function(){_.Mu.call(this)};
_.t(mip,_.Mu);mip.prototype.init=function(){};
new mip;var eBq=_.op(["data-"]),JFB=_.op(["aria-"]),jpU=_.op(["aria-"]),Oh=function(r,f){this.isLatencyMeasurementExperiment=r===void 0?!1:r;this.enableDialogA11yFix=f===void 0?!1:f;this.JSC$17174_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.rg3(_.Yq.location.href)},WWs=function(r,f){r.onConsentPrimitiveShownCallback=f},HGq=function(r,f){return r.overriddenIframeLoadTimeout?r.overriddenIframeLoadTimeout:f!==void 0?f:5E3},mvV=function(r){if(r.prewarmPromise!==void 0)return r.prewarmPromise;
r.prewarmPromise=new Promise(function(f,I){oW(r,1);iGV(r,RB6(r,!0),vw1(r));r.iframe?r.prewarmChannel||Kys(r,r.iframe,f):I(Error("ck"))});
r.prewarmPromise.finally(function(){r.prewarmPromise=void 0});
return r.prewarmPromise};
Oh.prototype.showPrimitive=function(){var r=this;if(this.consentPromise!==void 0)return this.consentPromise;var f=Date.now();yFB(this,f);this.consentPromise=new Promise(function(I,C){oW(r,0,f);var Y=r.isDarkTheme();r.isLatencyMeasurementExperiment||r.initialLoadingStrategy===1||r.initialLoadingStrategy===2||(r.loadingBar||(r.loadingBar=Io6(getComputedStyle(document.body).direction==="rtl",Y),r.loadingBar.style.position="fixed",r.loadingBar.style.zIndex="15000"),document.body.appendChild(r.loadingBar));
iGV(r,RB6(r),vw1(r));r.iframe?r.channel||Ui7(r,r.iframe,I,C):(spd(r),C(Error("ck")))});
this.consentPromise.finally(function(){r.consentPromise=void 0});
return this.consentPromise};
var Ui7=function(r,f,I,C){var Y,V;_.x(function(S){switch(S.nextAddress){case 1:oW(r,3);Y=!1;setTimeout(function(){if(!Y){spd(r);OG2(r);owV(r);var h=lcs(7).setErrorMessage("Timeout connecting to iframe");I(tQU(POq(new sh,acY(h)),Fy3(h)))}},HGq(r,Qpd(r)));
if(!r.prewarmPromise){S.jumpTo(2);break}_.l_(S,3);return _.b(S,r.prewarmPromise,5);case 5:_.Hd(S,2);break;case 3:_.ha(S),V=lcs(4).setErrorMessage("Error while prewarming."),I(tQU(POq(new sh,acY(V)),Fy3(V)));case 2:r.prewarmChannel&&r.prewarmChannel.send(LyU(TMY(new sh,r.consentPrimitiveRequest))),r.channel=_.BM({destination:r.JSC$17174_win,iframe:f,origin:AFB(r),channelName:"cpw",onEstablished:function(){Y=!0;spd(r);r.isLatencyMeasurementExperiment||(r.JSC$17174_previousBodyOverflow=document.body.style.overflow,
r.JSC$17174_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,r.JSC$17174_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",r.enableDialogA11yFix&&window.addEventListener("blur",r.focusChangeListener));var h=r.iframe;h.style.bottom="0";h.style.position="fixed";h.style.right="0";h.style.border="none";h.style.left="0";h.style.top=
"0";h.style.zIndex="5000";h.style.pointerEvents="";h.style.visibility="";r.initialLoadingStrategy===2||r.initialLoadingStrategy===3?oW(r,4):oW(r,6);var w;(w=r.onConsentPrimitiveShownCallback)==null||w.call(r)},
onMessage:function(h){h=WyV(h.data);switch(_.cM(h,1)){case 1:OG2(r);var w=CyB(_.kB(h,_.i1,7));w&&(r.initialLoadingStrategy!==2&&r.initialLoadingStrategy!==3||oW(r,6,w),oW(r,5,w));if(w=CyB(_.kB(h,_.i1,6)))oW(r,7,w),oW(r,8);var n,d;((n=_.kB(h,gwd,2))==null?void 0:_.aJ(n,q0))!==0&&((d=_.kB(h,NMd,8))==null?void 0:_.aJ(d,$i2))!==0||C(Error("dk"));I(h);break;case 2:owV(r)}}}),_.wO(S)}})},Kys=function(r,f,I){r.prewarmChannel=_.BM({destination:r.JSC$17174_win,
iframe:f,origin:AFB(r),channelName:"pwcp",onEstablished:function(){oW(r,2);I()}})},AFB=function(r){var f=_.x1(r.src).toString();
return f&&f.indexOf("://")<0&&f.indexOf("//")!==0?r.origin:_.rg3(f)},RB6=function(r,f){f=f===void 0?!1:f;
var I,C=new Map([["origin",r.origin],["hl",(I=ZGB(r))!=null?I:null]]);f&&C.set("pw","1");f=_.E([["cpr",r.consentPrimitiveRequest.serialize()]]);for(I=f.next();!I.done;I=f.next()){var Y=_.E(I.value);I=Y.next().value;Y=Y.next().value;C.set(I,Y)}r.isDarkTheme()&&C.set("color_scheme","dark");return _.Dj(r.src,C)},spd=function(r){r.isLatencyMeasurementExperiment||r.loadingBar&&document.body.removeChild(r.loadingBar)};
Oh.prototype.getSrc=function(){var r=_.OQ(this.origin),f;var I=(f=_.kB(this.consentPrimitiveRequest,wa6,3))==null?void 0:_.u3(f,1);f="consent.google.com";I=I?"/u/"+encodeURIComponent(I.toString()):"";(r==null?0:r.endsWith("youtube.com"))?f="consent.youtube.com":(r=r==null?void 0:r.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(f="consent.google."+((r[1]?"co.":"")+encodeURIComponent(r[2])));return _.SF("https://"+f+"/signedin"+I+"/landing")};
var iGV=function(r,f,I){r.iframe||(r.iframe=document.createElement("iframe"),r.iframe.style.width="100%",r.iframe.style.height="100%",I!==112496729&&(r.iframe.style.colorScheme="auto"),r.isLatencyMeasurementExperiment&&(r.iframe.style.display="none"),_.LK(r.iframe,f),r.iframe.setAttribute("jsname","C5o1O"),GW6(r.iframe),document.body.appendChild(r.iframe))},GW6=function(r){r.style.bottom="-200vh";
r.style.position="fixed";r.style.right="-200vw";r.style.border="";r.style.left="";r.style.top="";r.style.zIndex="";r.style.pointerEvents="none";r.style.visibility="hidden"},OG2=function(r){r.iframe&&(r.isLatencyMeasurementExperiment||(r.JSC$17174_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=r.JSC$17174_previousHtmlOverscroll),r.JSC$17174_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=r.JSC$17174_previousBodyOverscroll),r.JSC$17174_previousBodyOverflow!==
void 0&&(document.body.style.overflow=r.JSC$17174_previousBodyOverflow),r.enableDialogA11yFix&&kWp(r,!1)),GW6(r.iframe))};
Oh.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(kWp(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var kWp=function(r,f){var I,C,Y=(I=r.iframe)==null?void 0:(C=I.parentElement)==null?void 0:C.children;if(Y)for(I=0;I<Y.length;I++)C=Y[I],C!==r.iframe&&(f?(C.hasAttribute("aria-hidden")&&_.ys([_.BG(eBq)],C,"data-old-aria-hidden",C.getAttribute("aria-hidden")),_.ys([_.BG(JFB)],C,"aria-hidden","true")):(C.removeAttribute("aria-hidden"),C.hasAttribute("data-old-aria-hidden")&&(_.ys([_.BG(jpU)],C,"aria-hidden",C.getAttribute("data-old-aria-hidden")),C.removeAttribute("data-old-aria-hidden"))))},oW=function(r,
f,I){var C;
(C=r.latencyCallback)==null||C.call(r,{latencyType:f,timestampEpochMillis:I!=null?I:Date.now()})};var BMB=function(r,f,I){Oh.call(this,f,I===void 0?!1:I);this.consentPrimitiveRequest=r;r=ZGB(this);if(!(0,_.NqR)(r))throw Error("H``"+String(r));this.src=this.getSrc();var C;this.initialLoadingStrategy=(C=_.kB(this.consentPrimitiveRequest,ro,4))==null?void 0:_.cM(C,4)},qdY;
_.t(BMB,Oh);var cG1=function(r){var f=_.N("enable_primitive_dialog_aria_hide_siblings");r={request:r,enableDialogA11yFix:f===void 0?!1:f};qdY||(qdY=new BMB(r.request,r.isLatencyMeasurementExperiment||_.cM(r.request,1)===2,r.enableDialogA11yFix));return qdY},ZGB=function(r){var f;
return(f=_.kB(r.consentPrimitiveRequest,ro,4))==null?void 0:_.Tb(f,1)},yFB=function(r,f){if(!_.nD(r.consentPrimitiveRequest,Uh,5)){var I=r.consentPrimitiveRequest,C=new Uh;
_.CK(I,5,C)}var Y;if((Y=_.kB(r.consentPrimitiveRequest,Uh,5))==null||_.b8B(_.pD(Y,8))==null){var V;(V=_.kB(r.consentPrimitiveRequest,Uh,5))!=null&&_.pN(V,8,f)}},vw1=function(r){var f;
return(f=_.kB(r.consentPrimitiveRequest,Uh,5))==null?void 0:_.u3(f,1)};
BMB.prototype.isDarkTheme=function(){var r;return((r=_.kB(this.consentPrimitiveRequest,ro,4))==null?void 0:_.cM(r,2))===2};
var Qpd=function(r){var f;return((f=_.kB(r.consentPrimitiveRequest,ro,4))==null?void 0:_.u3(f,5))||void 0},owV=function(r){r.channel=void 0;
r.prewarmChannel=void 0;r.iframe&&(document.body.contains(r.iframe)&&document.body.removeChild(r.iframe),r.iframe=void 0);qdY=void 0},eD6=function(r){return Oh.prototype.showPrimitive.call(r).then(function(f){return _.kB(f,gwd,2)})};for(var Qx={},uC6=(Qx[64]="ma",Qx[73]="ogb",Qx[89]="cr",Qx[21]="test",Qx[0]="unkn",Qx[137]="con",Qx[155]="hl",Qx[78]="yt",Qx[171]="lp",Qx[172]="ap",Qx[177]="amo",Qx[178]="pqe",Qx[74]="gg",Qx[1]="gm",Qx[140]="am",Qx),Di2=_.E(Object.keys(uC6)),rs7=Di2.next();!rs7.done;rs7=Di2.next());var fnV=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(fnV,_.Kj);var InY=[0,[2,3,4],_.Zn,NW3,LC7,_.$9E];var Cfp=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(Cfp,_.Kj);var Yvq=_.D$(Cfp,[0,WCp,_.oJ,_.Zn,_.oJ,_.Zn,InY]);var lnq=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(lnq,_.Kj);lnq.prototype.getCommand=function(){return _.cM(this,1)};
var Vg6=function(){var r=new lnq;return _.Js(r,1,0)};var Ep1=_.rn([0,WCp,_.oJ,[0,_.Zn,_.oJ,-1]]);var SvB=new _.hA("s"),x27=new _.hA("t"),hQ2=new _.hA("u"),wM6=new _.hA("v"),bDY=function(r,f,I){_.wi.call(this,SvB);this.mediaKey=r;this.photoUrl=f;this.photoSource=I};
_.t(bDY,_.wi);var pM2=function(){_.wi.call(this,x27)};
_.t(pM2,_.wi);var npi=function(r){r=r===void 0?!1:r;_.wi.call(this,hQ2);this.isError=r};
_.t(npi,_.wi);var d23=function(){_.wi.call(this,wM6)};
_.t(d23,_.wi);var zQ6=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,XMU=function(r){if(typeof r=="string"){if(r.charAt(0)==".")return Mg1(r.substr(1));if(r.charAt(0)=="["){var f=zQ6.exec(r);r=r.indexOf("=")==-1?void 0:f[3];return gp7(f[1],r)}return an6(r)}return r},Mg1=function(r){return function(f){return f.getAttribute&&_.RP(f,r)}},gp7=function(r,f){return function(I){return f!==void 0?I.getAttribute&&I.getAttribute(r)==f:I.hasAttribute&&I.hasAttribute(r)}},an6=function(r){r=r.toUpperCase();
return function(f){return(f=f.tagName)&&f.toUpperCase()==r}},Nhp=function(){return!0};var A$=function(r,f){this.JSC$17202_key_=r;this.JSC$17202_value_=f},ZO=function(r){throw Error("ek`"+r.JSC$17202_key_);
},$2U=function(r,f){return new TypeError("fk`"+f+"`"+r.JSC$17202_key_+"`"+r.JSC$17202_value_+"`"+typeof r.JSC$17202_value_)};
A$.prototype.string=function(r){if(arguments.length==0)var f=Ft3(this);else{var I;f=(I=Pfi(this))!=null?I:r}return f};
var Ft3=function(r){var f=Pfi(r);f===null&&ZO(r);return f},Pfi=function(r){var f=r.JSC$17202_value_;
if(f==null)return null;if(typeof f==="string")return f;throw $2U(r,"string");};
A$.prototype.bool=function(r){if(arguments.length==0){var f=this.optionalBool();f===null&&ZO(this)}else{var I;f=(I=this.optionalBool())!=null?I:r}return f};
A$.prototype.optionalBool=function(){var r=this.JSC$17202_value_;if(r==null)return null;if(typeof r==="boolean")return r;if(typeof r==="string"){r=r.toLowerCase();if(r==="true"||r==="1")return!0;if(r==="false"||r==="0")return!1}throw $2U(this,"boolean");};
A$.prototype.number=function(r){if(arguments.length==0){var f=tg3(this);f===null&&ZO(this)}else{var I;f=(I=tg3(this))!=null?I:r}return f};
var tg3=function(r){var f=r.JSC$17202_value_;if(f==null)return null;if(typeof f==="number")return f;if(typeof f==="string"){var I=Number(f);if(!isNaN(I)&&(I!==0||f.trim().length!==0))return I}throw $2U(r,"number");};
A$.prototype.toString=function(){return Ft3(this)};
A$.prototype.array=function(r){if(arguments.length==0){var f=ThU(this);f===null&&ZO(this);return f}f=ThU(this);return f==null?r:f};
var ThU=function(r){var f=r.JSC$17202_value_;if(f==null)return null;Array.isArray(f)||(typeof f!=="string"?f=[f]:(f=f.trim(),f=f==""?[]:f.split(",").map(function(I){return I.trim()})));
return css(r,f)},css=function(r,f){var I=r.JSC$17202_key_+"[";
return Array.from(f,function(C,Y){return new A$(I+Y+"]",C)})};
A$.prototype.object=function(r){var f=this.JSC$17202_value_;if(f==null)return r===void 0&&ZO(this),r;if(typeof f==="object"&&f.constructor===Object){r={};var I=this.JSC$17202_key_+".",C;for(C in f)r[C]=new A$(I+C,f[C]);return r}throw $2U(this,"object");};var Ga=function(r){this.list_=Wts(r)},Wts=function(r){if(r instanceof Ga)r=r.list_;
else if(r[0]instanceof Ga){for(var f=new Set,I=0;I<r.length;I++)for(var C=_.E(r[I].list_),Y=C.next();!Y.done;Y=C.next())f.add(Y.value);r=f}return[].concat(_.Na(r))};
_.l=Ga.prototype;_.l.each=function(r,f,I){((I===void 0?0:I)?wWV:_.Rv)(this.list_,r,f);return this};
_.l.size=function(){return this.list_.length};
_.l.isEmpty=function(){return this.list_.length===0};
_.l.get=function(r){return this.list_[r]||null};
_.l.el=function(){return this.list_[0]||null};
_.l.map=function(r,f){return _.$X(this.list_,r,f)};
_.l.equals=function(r){return this===r||_.n8(this.list_,r.list_)};
_.l.first=function(){return this.list_.length==0?null:new kv(this.list_[0])};
_.l.find=function(r){var f=[];this.each(function(I){I=I.querySelectorAll(String(r));for(var C=0;C<I.length;C++)f.push(I[C])});
return new Ga(f)};
_.l.parent=function(){var r=[];this.each(function(f){(f=f.parentElement||null)&&!_.Am(r,f)&&r.push(f)});
return new Ga(r)};
_.l.children=function(){var r=[];this.each(function(f){f=_.WY(f);for(var I=0;I<f.length;I++)r.push(f[I])});
return new Ga(r)};
_.l.filter=function(r){r=_.IJ(this.list_,XMU(r));return new Ga(r)};
_.l.closest=function(r){var f=[],I=XMU(r),C=function(Y){return _.Uj(Y)&&I(Y)};
this.each(function(Y){(Y=_.mI(Y,C,!0))&&!_.Am(f,Y)&&f.push(Y)});
return new Ga(f)};
_.l.next=function(r){return Lt7(this,_.Mdq,r)};
_.l.prev=function(r){return Lt7(this,mmd,r)};
var Lt7=function(r,f,I){var C=[];var Y=I?XMU(I):Nhp;r.each(function(V){(V=f(V))&&Y(V)&&C.push(V)});
return new Ga(C)};
Ga.prototype.setClass=function(r){return this.each(function(f){_.il(f,r)})};
var m26=function(r,f){return r.each(function(I){_.j$(I,f)})},eQV=function(r,f){return r.each(function(I){_.e$(I,f)})};
Ga.prototype.toggleClass=function(r,f){return f===!0?m26(this,r):f===!1?eQV(this,r):this.each(function(I){_.RP(I,r)?_.e$(I,r):_.j$(I,r)})};
Ga.prototype.setText=function(r){return this.each(function(f){_.L9(f,r)})};
var JsV=function(r){r.each(function(f){f.removeAttribute("aria-hidden")})};
Ga.prototype.getStyle=function(r){if(this.list_.length>0){var f=this.list_[0],I=f.style[_.xA(r)];return typeof I!=="undefined"?I:f.style[_.m6s(f,r)]||""}};
Ga.prototype.getData=function(r){if(this.list_.length===0)return new A$(r,null);var f=MMs(this.list_[0],r);return new A$(r,f)};
Ga.prototype.focus=function(r){try{r?this.el().focus(r):this.el().focus()}catch(f){}return this};
Ga.prototype.click=function(){var r=_.TZ(this.el());if(r.createEvent){var f=r.createEvent("MouseEvents");f.initMouseEvent("click",!0,!0,r.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(f)}else r=r.createEventObject(),r.clientX=0,r.clientY=0,r.screenX=0,r.screenY=0,r.altKey=!1,r.ctrlKey=!1,r.shiftKey=!1,r.button=0,this.el().fireEvent("onclick",r)};
var BX=function(r,f,I,C){function Y(h,w,n){var d=w;w&&w.parentNode&&(d=w.cloneNode(!0));h(d,n)}
C=C===void 0?!1:C;if(r.list_.length==1){var V=r.list_[0],S=function(h){return f(h,V)};
I instanceof Ga?I.each(S,void 0,C):Array.isArray(I)?(C?wWV:_.Rv)(I,S):S(I);return r}return r.each(function(h){I instanceof Ga?I.each(function(w){Y(f,w,h)}):Array.isArray(I)?_.Rv(I,function(w){Y(f,w,h)}):Y(f,I,h)})};
_.l=Ga.prototype;_.l.append=function(r){return BX(this,function(f,I){f&&I.appendChild(f)},r)};
_.l.appendTo=function(r){(new Ga([r])).append(this);return this};
_.l.remove=function(){return BX(this,function(r,f){_.bE(f)},null)};
_.l.empty=function(){return BX(this,function(r,f){_.tJ(f)},null)};
_.l.after=function(r,f){return BX(this,function(I,C){I&&_.cY(I,C)},r,!(f===void 0||f))};
_.l.before=function(r){return BX(this,function(f,I){f&&_.T1(f,I)},r)};
_.l.replaceWith=function(r){return BX(this,function(f,I){f&&_.ni8(f,I)},r)};
_.l.toggle=function(r){return this.each(function(f){_.vh(f,r)})};
_.l.show=function(){return this.toggle(!0)};
_.l.hide=function(){return this.toggle(!1)};
_.l.trigger=function(r,f,I,C){return jJB(this,r,f,I,C)};
var jJB=function(r,f,I,C,Y){return r.each(function(V){_.JnK(_.TZ(V)).triggerWizEventInternal(V,f,I,C,Y)})},kv=function(r,f){r instanceof Ga&&(f=r.list_,r=null);
this.list_=Wts(r!=null?[r]:f)};
_.rh(kv,Ga);_.l=kv.prototype;_.l.children=function(){return new Ga(Array.prototype.slice.call(_.WY(this.list_[0])))};
_.l.each=function(r,f){r.call(f,this.list_[0],0);return this};
_.l.size=function(){return 1};
_.l.el=function(){return this.list_[0]};
_.l.first=function(){return this};var qZ=function(r,f){f=f===void 0?window:f;this.hostId=r;this.JSC$17213_win=f;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$17213_previousHtmlOverscroll=this.JSC$17213_previousBodyOverscroll=this.JSC$17213_previousBodyOverflow="";this.eventTarget=new _.zh;this.JSC$17213_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
RQd=function(r){var f=HD3(HD3(HD3(new iD6(78),"po"),"hppp"),"hhc");
f.authUser=Number(_.Lz("SESSION_INDEX","0"));f.colorScheme=r;return f};
qZ.prototype.getOrigin=function(){return this.origin?this.origin:_.kk(_.Gh(_.Ze(new _.KA,this.JSC$17213_win.location.protocol),this.JSC$17213_win.location.hostname),this.JSC$17213_win.location.port).toString()};
qZ.prototype.getTargetOrigin=function(){return _.kk(_.Gh(_.Ze(new _.KA,this.scheme),this.domain),this.port)};
qZ.prototype.preloadIframe=function(r){var f=this;if(this.iframeLoadPromise===void 0){var I=document.createElement("iframe");this.iframe=I;hH6(I,r);this.iframeLoadPromise=new Promise(function(C,Y){var V=!1,S=function(h){h.stopPropagation();I.removeEventListener("error",S);I.removeEventListener("securitypolicyviolation",S);Y(Error("gk",{cause:h}))};
I.addEventListener("error",S);I.addEventListener("securitypolicyviolation",S);setTimeout(function(){V||Y(Error("hk"))},3E4);
vpV(f,I,function(){V=!0;I.removeEventListener("error",S);I.removeEventListener("securitypolicyviolation",S);C()})});
Kt2(this);r=this.getTargetOrigin().toString();I.setAttribute("allow","camera "+r+"; display-capture "+r);this.parentElement.appendChild(I)}return this.iframeLoadPromise};
var sJ3=function(r,f){var I,C;return _.x(function(Y){if(Y.nextAddress==1)return I=Io6(getComputedStyle(r.parentElement).direction==="rtl"),r.parentElement.appendChild(I),document.activeElement instanceof HTMLElement&&(r.elementToFocusAfterClose=document.activeElement),_.l_(Y,2),_.b(Y,r.preloadIframe(f),4);if(Y.nextAddress!=2){r.parentElement.removeChild(I);r.JSC$17213_previousBodyOverflow=r.parentElement.style.overflow;r.JSC$17213_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
r.JSC$17213_previousBodyOverscroll=r.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";r.parentElement.style.overscrollBehavior="contain";r.parentElement.style.overflow="hidden";var V=r.iframe;V.style.bottom="0";V.style.border="none";V.style.height="100%";V.style.left="0";V.style.position=r.iframePosition;V.style.right="0";V.style.top="0";V.style.width="100%";V.style.zIndex="2202";V.setAttribute("aria-hidden","false");V.setAttribute("aria-modal","true");
r.opened=!0;ys2(r);return _.Hd(Y,0)}C=_.ha(Y);r.parentElement.removeChild(I);EAY(r.isDarkTheme());U26(r,!1);throw Error("ik",{cause:C});})},U26=function(r,f){f=f===void 0?!0:f;
r.iframe!==void 0&&(OD2(r),document.documentElement.style.overscrollBehavior=r.JSC$17213_previousHtmlOverscroll,r.parentElement.style.overscrollBehavior=r.JSC$17213_previousBodyOverscroll,r.parentElement.style.overflow=r.JSC$17213_previousBodyOverflow,r.elementToFocusAfterClose!==void 0&&(r.elementToFocusAfterClose.focus(),r.elementToFocusAfterClose=void 0),f?Kt2(r):(r.parentElement.removeChild(r.iframe),r.iframe=void 0,r.iframeLoadPromise=void 0,r.mainChannel=void 0),r.opened=!1)},OD2=function(r){r.backgroundElementsAriaHiddenIsNull&&
(JsV(r.backgroundElementsAriaHiddenIsNull),r.backgroundElementsAriaHiddenIsNull=void 0);
r.backgroundElementsAriaHiddenIsFalse&&(r.backgroundElementsAriaHiddenIsFalse.each(function(f){f.setAttribute("aria-hidden","false")}),r.backgroundElementsAriaHiddenIsFalse=void 0);
r.backgroundElementsWithoutInert&&(r.backgroundElementsWithoutInert.each(function(f){f.removeAttribute("inert")}),r.backgroundElementsWithoutInert=void 0)},ys2=function(r){r.backgroundElementsAriaHiddenIsNull=(new kv(r.iframe.parentElement)).children().filter(function(f){return f.getAttribute("aria-hidden")===null&&f!==r.iframe});
r.backgroundElementsAriaHiddenIsNull.each(function(f){f.setAttribute("aria-hidden","true")});
r.backgroundElementsAriaHiddenIsFalse=(new kv(r.iframe.parentElement)).children().filter(function(f){return f.getAttribute("aria-hidden")==="false"&&f!==r.iframe});
r.backgroundElementsAriaHiddenIsFalse.each(function(f){f.setAttribute("aria-hidden","true")});
r.backgroundElementsWithoutInert=(new kv(r.iframe.parentElement)).children().filter(function(f){return!f.hasAttribute("inert")&&f!==r.iframe});
r.backgroundElementsWithoutInert.each(function(f){f.setAttribute("inert","true")})},Kt2=function(r){r=r.iframe;
r.style.bottom="-1000px";r.style.position="fixed";r.style.right="-1000px";r.style.border="";r.style.height="";r.style.left="";r.style.top="";r.style.width="";r.style.zIndex="";r.setAttribute("aria-hidden","true");r.setAttribute("aria-modal","false")};
qZ.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var iD6=function(r,f){qZ.call(this,uC6[r],f);this.options=[];this.style=""};
_.t(iD6,qZ);var opd=function(r){r.style="youtube";return r},QJ7=function(r,f){r.eventTarget.listen(hQ2,f);
return r},Asd=function(r,f){r.eventTarget.listen(SvB,f);
return r},HD3=function(r,f){r.options.push(f);
return r},ZD1=function(r){var f=[r.getOrigin()];
r.ancestorOrigins&&f.push.apply(f,_.Na(r.ancestorOrigins));var I=new _.KA(r.JSC$17213_win.location.href),C=r.startUrl?r.startUrl:r.options.includes("po")?"profile-picture/art":"profile-picture";f=fm(_.B7(r.getTargetOrigin(),C),"origin",f);r.startUrl&&_.RZ(f,"startPath",r.startUrl);r.authUser>0&&_.RZ(f,"authuser",r.authUser);r.pageId!==void 0&&_.RZ(f,"pageId",r.pageId);_.RZ(f,"hostId",r.hostId);r.jsMode!==void 0&&_.RZ(f,"jsmode",r.jsMode);r.options.length>0&&_.RZ(f,"opts",r.options.join(","));try{for(var Y=
_.E(["utm_source","utm_medium","utm_campaign","utm_content"]),V=Y.next();!V.done;V=Y.next()){var S=V.value;_.iE(I,S)&&_.RZ(f,S,_.iE(I,S))}var h,w=(h=r.hl)!=null?h:_.iE(I,"hl");w!==void 0&&_.RZ(f,"hl",w)}catch(n){if(!(n instanceof URIError))throw n;}r.colorScheme&&_.RZ(f,"theme",r.colorScheme);r.style&&_.RZ(f,"style",r.style);return f},GbU=function(r,f){r.mainChannel=_.BM({destination:r.JSC$17213_win,
iframe:f,origin:r.getTargetOrigin().toString(),channelName:"ow",onMessage:function(I){I=Yvq(I.data);if(f===r.iframe)switch(_.cM(I,1)){case 1:r.eventTarget.dispatchEvent(new npi);U26(r);break;case 2:r.eventTarget.dispatchEvent(new bDY(_.Tb(I,4),_.Tb(I,2),_.cM(I,5),_.kB(I,fnV,6)));break;case 0:var C;r.eventTarget.dispatchEvent(new pM2(_.Tb(I,2),(C=_.cM(I,3))!=null?C:0));break;case 3:r.eventTarget.dispatchEvent(new npi(!0));U26(r,!1);break;case 4:r.eventTarget.dispatchEvent(new d23)}}})},vpV=function(r,
f,I){_.BM({destination:r.JSC$17213_win,
iframe:f,origin:_.kk(_.Gh(_.Ze(new _.KA,r.scheme),r.domain),r.port).toString(),channelName:"owi",onMessage:function(C){f===r.iframe&&(I!==void 0&&I(),GbU(r,f),r.opened&&r.mainChannel.send(Ep1(Vg6())),C.reply(),vpV(r,f))}})};
iD6.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?qZ.prototype.preloadIframe.call(this,ZD1(this).toString()):this.iframeLoadPromise};
iD6.prototype.openPicker=function(r){var f=this;return _.x(function(I){if(I.nextAddress==1)return f.startUrl=r?r:f.options.includes("po")?"profile-picture/art":"profile-picture",_.b(I,sJ3(f,ZD1(f).toString()),2);if(f.mainChannel){var C=f.mainChannel,Y=C.send;var V=Vg6();V=_.w5(V,2,f.startUrl);Y.call(C,Ep1(V))}_.wO(I)})};var kbq=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(kbq,_.Kj);_.l=kbq.prototype;_.l.getSize=function(){return xv(this,1)};
_.l.setSize=function(r){return _.eg(this,1,r)};
_.l.getWidth=function(){return xv(this,12)};
_.l.getHeight=function(){return xv(this,13)};
_.l.setCenterCrop=function(r){return _.IZ(this,20,r)};
_.l.getHtml=function(){return _.Fz(this,4)};
_.l.getToken=function(){return _.xa(this,24)};
_.l.setToken=function(r){return _.w5(this,24,r)};
_.l.getBackgroundColor=function(){return xv(this,87)};
_.l.hasBackgroundColor=function(){return _.tU(_.pD(this,87))!=null};
_.l.getStoryboardLevel=function(){return xv(this,109)};var u5=function(r){this.JSC$17221_value_=void 0;this.childNodes_={};if(r){var f=_.f3s(r);r=_.AA(r);for(var I=0;I<f.length;I++)this.set(f[I],r[I])}};
u5.prototype.set=function(r,f){Bh3(this,r,f,!1)};
u5.prototype.add=function(r,f){Bh3(this,r,f,!0)};
var Bh3=function(r,f,I,C){for(var Y=0;Y<f.length;Y++){var V=f.charAt(Y);r.childNodes_[V]||(r.childNodes_[V]=new u5);r=r.childNodes_[V]}if(C&&r.JSC$17221_value_!==void 0)throw Error("jk`"+f);r.JSC$17221_value_=I},qvY=function(r,f){for(var I=0;I<f.length;I++)if(r=r.childNodes_[f.charAt(I)],!r)return;
return r};
u5.prototype.get=function(r){return(r=qvY(this,r))?r.JSC$17221_value_:void 0};
u5.prototype.getValues=function(){var r=[];uz2(this,r);return r};
var uz2=function(r,f){r.JSC$17221_value_!==void 0&&f.push(r.JSC$17221_value_);for(var I in r.childNodes_)uz2(r.childNodes_[I],f)};
u5.prototype.getKeys=function(r){var f=[];if(r){for(var I=this,C=0;C<r.length;C++){var Y=r.charAt(C);if(!I.childNodes_[Y])return[];I=I.childNodes_[Y]}D2B(I,r,f)}else D2B(this,"",f);return f};
var D2B=function(r,f,I){r.JSC$17221_value_!==void 0&&I.push(f);for(var C in r.childNodes_)D2B(r.childNodes_[C],f+C,I)};
_.l=u5.prototype;_.l.containsKey=function(r){return this.get(r)!==void 0};
_.l.containsValue=function(r){if(this.JSC$17221_value_===r)return!0;for(var f in this.childNodes_)if(this.childNodes_[f].containsValue(r))return!0;return!1};
_.l.clear=function(){this.childNodes_={};this.JSC$17221_value_=void 0};
_.l.remove=function(r){for(var f=this,I=[],C=0;C<r.length;C++){var Y=r.charAt(C);if(!f.childNodes_[Y])throw Error("kk`"+r);I.push([f,Y]);f=f.childNodes_[Y]}r=f.JSC$17221_value_;for(delete f.JSC$17221_value_;I.length>0;)if(C=I.pop(),f=C[0],C=C[1],f.childNodes_[C].isEmpty())delete f.childNodes_[C];else break;return r};
_.l.clone=function(){return new u5(this)};
_.l.getCount=function(){return HQ7(this.getValues())};
_.l.isEmpty=function(){return this.JSC$17221_value_===void 0&&_.X0.isEmpty(this.childNodes_)};var dy6=function(){if(!rJ6){var r=rJ6=new u5,f;for(f in fRi)r.add(f,fRi[f])}},rJ6,DO=function(r,f){this.types=r;
this.setters=f},fRi={a:new DO([3,
0],[function(r,f){_.IZ(r,21,f)},
function(r,f){_.eg(r,56,f)}]),
al:new DO([3],[function(r,f){_.IZ(r,74,f)}]),
b:new DO([3,0],[function(r,f){_.IZ(r,23,f)},
function(r,f){_.eg(r,38,f)}]),
ba:new DO([0],[function(r,f){_.eg(r,85,f)}]),
bc:new DO([0],[function(r,f){_.eg(r,87,f)}]),
br:new DO([0],[function(r,f){_.eg(r,86,f)}]),
c:new DO([3,0],[function(r,f){_.IZ(r,2,f)},
function(r,f){_.eg(r,39,f)}]),
cc:new DO([3],[function(r,f){_.IZ(r,51,f)}]),
ci:new DO([3],[function(r,f){_.IZ(r,32,f)}]),
ckm:new DO([3],[function(r,f){_.IZ(r,104,f)}]),
cp:new DO([0],[function(r,f){_.eg(r,92,f)}]),
cr:new DO([3],[function(r,f){_.IZ(r,108,f)}]),
cv:new DO([0],[function(r,f){_.eg(r,94,f)}]),
d:new DO([3],[function(r,f){_.IZ(r,3,f)}]),
dc:new DO([5],[function(r,f){_.w5(r,99,f)}]),
df:new DO([3],[function(r,f){_.IZ(r,80,f)}]),
dv:new DO([3],[function(r,f){_.IZ(r,90,f)}]),
e:new DO([0],[function(r,f){_.eg(r,15,f)}]),
em:new DO([0],[function(r,f){_.eg(r,107,f)}]),
f:new DO([4],[function(r,f){_.w5(r,16,f)}]),
fg:new DO([3],[function(r,f){_.IZ(r,34,f)}]),
fh:new DO([3],[function(r,f){_.IZ(r,30,f)}]),
fm:new DO([3],[function(r,f){_.IZ(r,84,f)}]),
fo:new DO([2],[function(r,f){_.qU(r,79,_.xi(f))}]),
ft:new DO([3],[function(r,f){_.IZ(r,50,f)}]),
fv:new DO([3],[function(r,f){_.IZ(r,31,f)}]),
g:new DO([3],[function(r,f){_.IZ(r,14,f)}]),
gce:new DO([4],[function(r,f){_.w5(r,112,f)}]),
gd:new DO([3],[function(r,f){_.IZ(r,83,f)}]),
gm:new DO([3],[function(r,f){_.IZ(r,105,f)}]),
h:new DO([3,0],[function(r,f){_.IZ(r,4,f)},
function(r,f){_.eg(r,13,f)}]),
i:new DO([3],[function(r,f){_.IZ(r,22,f)}]),
ic:new DO([0],[function(r,f){_.eg(r,71,f)}]),
id:new DO([3],[function(r,f){_.IZ(r,70,f)}]),
il:new DO([3],[function(r,f){_.IZ(r,96,f)}]),
ip:new DO([3],[function(r,f){_.IZ(r,54,f)}]),
iv:new DO([0],[function(r,f){_.pN(r,75,f)}]),
j:new DO([1],[function(r,f){f=f==null?f:nos(f);_.qU(r,29,f)}]),
k:new DO([3,0],[function(r,f){_.IZ(r,17,f)},
function(r,f){_.eg(r,42,f)}]),
l:new DO([0],[function(r,f){_.eg(r,44,f)}]),
lf:new DO([3],[function(r,f){_.IZ(r,65,f)}]),
lo:new DO([3],[function(r,f){_.IZ(r,97,f)}]),
m:new DO([0],[function(r,f){_.eg(r,63,f)}]),
md:new DO([3],[function(r,f){_.IZ(r,91,f)}]),
mm:new DO([4],[function(r,f){_.w5(r,81,f)}]),
mo:new DO([3],[function(r,f){_.IZ(r,73,f)}]),
mv:new DO([3],[function(r,f){_.IZ(r,66,f)}]),
n:new DO([3],[function(r,f){r.setCenterCrop(f)}]),
nc:new DO([3],[function(r,f){_.IZ(r,55,f)}]),
nd:new DO([3],[function(r,f){_.IZ(r,53,f)}]),
ng:new DO([3],[function(r,f){_.IZ(r,95,f)}]),
ngm:new DO([3],[function(r,f){_.IZ(r,106,f)}]),
no:new DO([3],[function(r,f){_.IZ(r,37,f)}]),
ns:new DO([3],[function(r,f){_.IZ(r,40,f)}]),
nt0:new DO([4],[function(r,f){_.w5(r,36,f)}]),
ntm:new DO([3],[function(r,f){_.IZ(r,114,f)}]),
nu:new DO([3],[function(r,f){_.IZ(r,46,f)}]),
nw:new DO([3],[function(r,f){_.IZ(r,48,f)}]),
o:new DO([1,3],[function(r,f){f=f==null?f:nos(f);_.qU(r,7,f)},
function(r,f){_.IZ(r,27,f)}]),
p:new DO([3,0],[function(r,f){_.IZ(r,19,f)},
function(r,f){_.eg(r,43,f)}]),
pa:new DO([3],[function(r,f){_.IZ(r,61,f)}]),
pc:new DO([0],[function(r,f){_.eg(r,88,f)}]),
pd:new DO([3],[function(r,f){_.IZ(r,60,f)}]),
pf:new DO([3],[function(r,f){_.IZ(r,67,f)}]),
pg:new DO([3],[function(r,f){_.IZ(r,72,f)}]),
pi:new DO([2],[function(r,f){_.qU(r,76,_.xi(f))}]),
pp:new DO([3],[function(r,f){_.IZ(r,52,f)}]),
pt:new DO([4],[function(r,f){_.w5(r,111,f)}]),
q:new DO([4],[function(r,f){_.w5(r,28,f)}]),
r:new DO([3,0],[function(r,f){_.IZ(r,6,f)},
function(r,f){_.eg(r,26,f)}]),
ra:new DO([3],[function(r,f){_.IZ(r,103,f)}]),
rf:new DO([3],[function(r,f){_.IZ(r,100,f)}]),
rg:new DO([3],[function(r,f){_.IZ(r,59,f)}]),
rh:new DO([3],[function(r,f){_.IZ(r,49,f)}]),
rj:new DO([3],[function(r,f){_.IZ(r,57,f)}]),
ro:new DO([2],[function(r,f){_.qU(r,78,_.xi(f))}]),
rp:new DO([3],[function(r,f){_.IZ(r,58,f)}]),
rw:new DO([3],[function(r,f){_.IZ(r,35,f)}]),
rwa:new DO([3],[function(r,f){_.IZ(r,64,f)}]),
rwu:new DO([3],[function(r,f){_.IZ(r,41,f)}]),
s:new DO([3,0],[function(r,f){_.IZ(r,33,f)},
function(r,f){r.setSize(f)}]),
sb:new DO([0],[function(r,f){_.eg(r,110,f)}]),
sc:new DO([0],[function(r,f){_.eg(r,89,f)}]),
sg:new DO([3],[function(r,f){_.IZ(r,82,f)}]),
sl:new DO([0],[function(r,f){_.eg(r,109,f)}]),
sm:new DO([3],[function(r,f){_.IZ(r,93,f)}]),
t:new DO([4],[function(r,f){r.setToken(f)}]),
tm:new DO([3],[function(r,f){_.IZ(r,113,f)}]),
u:new DO([3],[function(r,f){_.IZ(r,18,f)}]),
ut:new DO([3],[function(r,f){_.IZ(r,45,f)}]),
v:new DO([0],[function(r,f){_.eg(r,62,f)}]),
vb:new DO([0],[function(r,f){_.pN(r,68,f)}]),
vf:new DO([4],[function(r,f){_.w5(r,102,f)}]),
vl:new DO([0],[function(r,f){_.pN(r,69,f)}]),
vm:new DO([3],[function(r,f){_.IZ(r,98,f)}]),
w:new DO([0],[function(r,f){_.eg(r,12,f)}]),
x:new DO([0],[function(r,f){_.eg(r,9,f)}]),
y:new DO([0],[function(r,f){_.eg(r,10,f)}]),
ya:new DO([2],[function(r,f){_.qU(r,77,_.xi(f))}]),
z:new DO([0],[function(r,f){_.eg(r,11,f)}])};
dy6.prototype.parse=function(r){var f=new kbq,I=new kbq;if(r=="")r=!0;else{r=r.split("-");for(var C=!0,Y=0;Y<r.length;Y++){var V=r[Y];if(V.length==0)C=!1;else{var S=V,h=!1;var w=S;var n=S.charAt(0);n!=n.toLowerCase()&&(h=!0,w=S.charAt(0).toLowerCase()+S.substring(1));var d=rJ6;for(n=1;n<=w.length;++n){var z=d,g=w.substring(0,n);if(g.length==0?z.isEmpty():!qvY(z,g))break}w=n==1?null:(w=d.get(w.substring(0,n-1)))?{option:S.substring(0,n-1),value:S.substring(n-1),signed:h,attributes:w}:null;if(w){S=
[];h=[];n=!1;for(d=0;d<w.attributes.types.length;d++){z=w.attributes.types[d];var X=w.value;g=Y;if(w.signed&&z==1)for(var P=X.length;P<12&&g<r.length-1;)X+="-"+r[g+1],P=X.length,++g;else if(z==2)for(;g<r.length-1&&r[g+1].match(/^[\d\.]/);)X+="-"+r[g+1],++g;P=w.attributes.setters[d];X=IRp(this,z)(w.option,X,f,I,P);if(X===null){n=!0;Y=g;break}else S.push(z),h.push(X)}if(!n)for(w=0;w<h.length;w++)d=S[w],X=h[w],Cwd(this,d)(V,X);C=C&&n}else C=!1}}r=C}return new YoY(f,I,r)};
var rH=function(r,f,I,C,Y,V){Y(I,f);r=r.charAt(0);V=V(r==r.toUpperCase());Y(C,V)};
_.l=dy6.prototype;_.l.parseAndSetIntOption_=function(r,f,I,C,Y){if(f=="")return 0;isFinite(f)&&(f=String(f));f=typeof f==="string"?/^\s*-?0x/i.test(f)?parseInt(f,16):parseInt(f,10):NaN;if(isNaN(f))return 1;rH(r,f,I,C,Y,Number);return null};
_.l.logIntParseError_=function(){};
_.l.parseAndSetFloatOption_=function(r,f,I,C,Y){if(f=="")return 0;var V=Number(f);f=V==0&&_.bU(f)?NaN:V;if(isNaN(f))return 1;rH(r,f,I,C,Y,Number);return null};
_.l.logFloatParseError_=function(){};
_.l.parseAndSetBoolOption_=function(r,f,I,C,Y){if(f!="")return 2;rH(r,!0,I,C,Y,Boolean);return null};
_.l.logBoolParseError_=function(){};
_.l.parseAndSetStringOption_=function(r,f,I,C,Y){if(f=="")return 0;rH(r,f,I,C,Y,function(V){return V?"1":""});
return null};
_.l.logStringParseError_=function(){};
_.l.parseAndSetUint64Base64Option_=function(r,f,I,C,Y){if(f=="")return 0;rH(r,f,I,C,Y,function(V){return V?1:0});
return null};
var IRp=function(r,f){switch(f){case 0:return(0,_.gL)(r.parseAndSetIntOption_,r);case 2:return(0,_.gL)(r.parseAndSetFloatOption_,r);case 3:return(0,_.gL)(r.parseAndSetBoolOption_,r);case 4:return(0,_.gL)(r.parseAndSetStringOption_,r);case 1:return(0,_.gL)(r.parseAndSetUint64Base64Option_,r);default:return function(){}}},Cwd=function(r,f){switch(f){case 0:return(0,_.gL)(r.logIntParseError_,r);
case 2:return(0,_.gL)(r.logFloatParseError_,r);case 3:return(0,_.gL)(r.logBoolParseError_,r);case 4:case 1:return(0,_.gL)(r.logStringParseError_,r);default:return function(){}}},YoY=function(r,f,I){this.valueProto_=r;
this.signatureFlagProto_=f;this.JSC$17233_valid_=I};
YoY.prototype.isValid=function(){return this.JSC$17233_valid_};var wj1=function(r){this.JSC$17234_parser_=null;this.JSC$17234_components_=[];this.JSC$17234_parsedOptions_=null;lRY(this,r)},V22=function(r){r.JSC$17234_parser_==null&&(r.JSC$17234_parser_=new dy6);
return r.JSC$17234_parser_},lRY=function(r,f){r.JSC$17234_parsedOptions_=f?typeof f==="string"?V22(r).parse(f):f:V22(r).parse("")},fZ=function(r,f){return r==f?!1:!0};
_.l=wj1.prototype;_.l.JSC$17236_setCrop=function(r){r=r||void 0;var f=this.JSC$17234_parsedOptions_,I=f.valueProto_;fZ(r,_.Fz(I,2),_.Fz(f.signatureFlagProto_,2))&&_.IZ(I,2,r);return this};
_.l.JSC$17236_setCircleCrop=function(r){r=r||void 0;var f=this.JSC$17234_parsedOptions_,I=f.valueProto_;fZ(r,Sx(I,51),Sx(f.signatureFlagProto_,51))&&_.IZ(I,51,r);return this};
_.l.JSC$17236_setImageCrop=function(r){r=r||void 0;var f=this.JSC$17234_parsedOptions_,I=f.valueProto_;fZ(r,Sx(I,32),Sx(f.signatureFlagProto_,32))&&_.IZ(I,32,r);return this};
_.l.JSC$17236_setHeight=function(r){var f=this.JSC$17234_parsedOptions_,I=f.valueProto_;fZ(r,I.getHeight(),f.signatureFlagProto_.getHeight())&&_.eg(I,13,r);return this};
_.l.setCenterCrop=function(r){r=r||void 0;var f=this.JSC$17234_parsedOptions_,I=f.valueProto_;fZ(r,_.Fz(I,20),_.Fz(f.signatureFlagProto_,20))&&I.setCenterCrop(r);return this};
_.l.JSC$17236_setSmartCrop=function(r){r=r||void 0;var f=this.JSC$17234_parsedOptions_,I=f.valueProto_;fZ(r,_.Fz(I,19),_.Fz(f.signatureFlagProto_,19))&&_.IZ(I,19,r);return this};
_.l.JSC$17236_setPad=function(r){r=r||void 0;var f=this.JSC$17234_parsedOptions_,I=f.valueProto_;fZ(r,Sx(I,60),Sx(f.signatureFlagProto_,60))&&_.IZ(I,60,r);return this};
_.l.JSC$17236_setSmartCropUseFace=function(r){r=r||void 0;var f=this.JSC$17234_parsedOptions_,I=f.valueProto_;fZ(r,_.Fz(I,67),_.Fz(f.signatureFlagProto_,67))&&_.IZ(I,67,r);return this};
_.l.JSC$17236_setSmartCropNoClip=function(r){r=r||void 0;var f=this.JSC$17234_parsedOptions_,I=f.valueProto_;fZ(r,_.Fz(I,52),_.Fz(f.signatureFlagProto_,52))&&_.IZ(I,52,r);return this};
_.l.setSize=function(r){var f=this.JSC$17234_parsedOptions_,I=f.valueProto_;fZ(r,I.getSize(),f.signatureFlagProto_.getSize())&&I.setSize(r);return this};
_.l.setToken=function(r){r=r||void 0;var f=this.JSC$17234_parsedOptions_,I=f.valueProto_;fZ(r,I.getToken(),f.signatureFlagProto_.getToken())&&I.setToken(r);return this};
_.l.JSC$17236_setWidth=function(r){var f=this.JSC$17234_parsedOptions_,I=f.valueProto_;fZ(r,I.getWidth(),f.signatureFlagProto_.getWidth())&&_.eg(I,12,r);return this};
_.l.clearOptions=function(){lRY(this,"");return this};
_.l.build=function(){this.JSC$17234_components_.length=0;var r=this.JSC$17234_parsedOptions_,f=r.valueProto_;r=r.signatureFlagProto_;I7(this,"s",f.getSize(),r.getSize());I7(this,"w",f.getWidth(),r.getWidth());CZ(this,"c",_.Fz(f,2),_.Fz(r,2));CZ(this,"d",_.Fz(f,3),_.Fz(r,3));I7(this,"h",f.getHeight(),r.getHeight());CZ(this,"s",Sx(f,33),Sx(r,33));CZ(this,"h",f.getHtml(),r.getHtml());CZ(this,"p",_.Fz(f,19),_.Fz(r,19));CZ(this,"pp",_.Fz(f,52),_.Fz(r,52));CZ(this,"pf",_.Fz(f,67),_.Fz(r,67));CZ(this,"n",
_.Fz(f,20),_.Fz(r,20));I7(this,"r",xv(f,26),xv(r,26));CZ(this,"r",_.Fz(f,6),_.Fz(r,6));CZ(this,"o",Sx(f,27),Sx(r,27));var I=_.$p(f,7,_.bf);YD(this,"o",I,_.$p(r,7,_.bf));I=_.$p(f,29,_.bf);YD(this,"j",I,_.$p(r,29,_.bf));I7(this,"x",xv(f,9),xv(r,9));I7(this,"y",xv(f,10),xv(r,10));I7(this,"z",xv(f,11),xv(r,11));CZ(this,"g",_.Fz(f,14),_.Fz(r,14));I7(this,"e",xv(f,15),xv(r,15));YD(this,"f",_.xa(f,16),_.xa(r,16));CZ(this,"k",Sx(f,17),Sx(r,17));CZ(this,"u",Sx(f,18),!0);CZ(this,"ut",Sx(f,45),!0);CZ(this,"i",
Sx(f,22),!0);CZ(this,"a",Sx(f,21),Sx(r,21));CZ(this,"b",_.Fz(f,23),_.Fz(r,23));I7(this,"b",xv(f,38),xv(r,38));I7(this,"c",xv(f,39),xv(r,39),16,8);YD(this,"q",_.xa(f,28),_.xa(r,28));CZ(this,"fh",Sx(f,30),Sx(r,30));CZ(this,"fv",Sx(f,31),Sx(r,31));CZ(this,"fg",_.Fz(f,34),_.Fz(r,34));CZ(this,"ci",Sx(f,32),Sx(r,32));YD(this,"t",f.getToken(),r.getToken());YD(this,"nt0",_.xa(f,36),_.xa(r,36));CZ(this,"rw",_.Fz(f,35),_.Fz(r,35));CZ(this,"rwu",_.Fz(f,41),_.Fz(r,41));CZ(this,"rwa",_.Fz(f,64),_.Fz(r,64));CZ(this,
"nw",_.Fz(f,48),_.Fz(r,48));CZ(this,"rh",_.Fz(f,49),_.Fz(r,49));CZ(this,"no",_.Fz(f,37),_.Fz(r,37));CZ(this,"ns",Sx(f,40),Sx(r,40));I7(this,"k",xv(f,42),xv(r,42));I7(this,"p",xv(f,43),xv(r,43));I7(this,"l",xv(f,44),xv(r,44));I7(this,"v",xv(f,62),xv(r,62));CZ(this,"nu",Sx(f,46),Sx(r,46));CZ(this,"ft",Sx(f,50),Sx(r,50));CZ(this,"cc",Sx(f,51),Sx(r,51));CZ(this,"nd",Sx(f,53),Sx(r,53));CZ(this,"ip",Sx(f,54),Sx(r,54));CZ(this,"nc",Sx(f,55),Sx(r,55));I7(this,"a",xv(f,56),xv(r,56));CZ(this,"rj",Sx(f,57),
Sx(r,57));CZ(this,"rp",Sx(f,58),Sx(r,58));CZ(this,"rg",Sx(f,59),Sx(r,59));CZ(this,"pd",Sx(f,60),Sx(r,60));CZ(this,"pa",Sx(f,61),Sx(r,61));I7(this,"m",xv(f,63),xv(r,63));I7(this,"vb",h$(f,68),h$(r,68));I7(this,"vl",h$(f,69),h$(r,69));CZ(this,"lf",Sx(f,65),Sx(r,65));CZ(this,"mv",Sx(f,66),Sx(r,66));CZ(this,"id",Sx(f,70),Sx(r,70));I7(this,"ic",xv(f,71),!0);CZ(this,"pg",_.Fz(f,72),_.Fz(r,72));CZ(this,"mo",Sx(f,73),Sx(r,73));CZ(this,"al",Sx(f,74),Sx(r,74));I7(this,"iv",h$(f,75),h$(r,75));I7(this,"pi",wo(f,
76),wo(r,76));I7(this,"ya",wo(f,77),wo(r,77));I7(this,"ro",wo(f,78),wo(r,78));I7(this,"fo",wo(f,79),wo(r,79));CZ(this,"df",Sx(f,80),Sx(r,80));YD(this,"mm",_.xa(f,81),_.xa(r,81));CZ(this,"sg",Sx(f,82),Sx(r,82));CZ(this,"gd",Sx(f,83),Sx(r,83));CZ(this,"fm",Sx(f,84),Sx(r,84));I7(this,"ba",xv(f,85),xv(r,85));I7(this,"br",xv(f,86),xv(r,86));I7(this,"bc",f.getBackgroundColor(),r.getBackgroundColor(),16,8);I7(this,"pc",xv(f,88),xv(r,88),16,8);I7(this,"sc",xv(f,89),xv(r,89),16,8);CZ(this,"dv",Sx(f,90),Sx(r,
90));CZ(this,"md",Sx(f,91),Sx(r,91));I7(this,"cp",xv(f,92),xv(r,92));CZ(this,"sm",Sx(f,93),Sx(r,93));I7(this,"cv",xv(f,94),xv(r,94));CZ(this,"ng",Sx(f,95),Sx(r,95));CZ(this,"il",Sx(f,96),Sx(r,96));CZ(this,"lo",Sx(f,97),Sx(r,97));CZ(this,"vm",Sx(f,98),Sx(r,98));YD(this,"dc",_.xa(f,99),_.xa(r,99));CZ(this,"rf",Sx(f,100),Sx(r,100));YD(this,"vf",_.xa(f,102),_.xa(r,102));CZ(this,"ra",_.Fz(f,103),_.Fz(r,103));CZ(this,"ckm",Sx(f,104),Sx(r,104));CZ(this,"gm",Sx(f,105),Sx(r,105));CZ(this,"ngm",Sx(f,106),Sx(r,
106));I7(this,"em",xv(f,107),xv(r,107));CZ(this,"cr",Sx(f,108),Sx(r,108));I7(this,"sl",f.getStoryboardLevel(),r.getStoryboardLevel());I7(this,"sb",xv(f,110),xv(r,110));YD(this,"pt",_.xa(f,111),_.xa(r,111));YD(this,"gce",_.xa(f,112),_.xa(r,112));CZ(this,"tm",Sx(f,113),Sx(r,113));CZ(this,"ntm",Sx(f,114),Sx(r,114));return this.JSC$17234_components_.join("-")};
var I7=function(r,f,I,C,Y,V){if(I!=null){var S=Y==void 0||Y!=10&&Y!=16?10:Y;I=Number(I).toString(S);Y=new JV7;Y.append(S==16?"0x":"");S=Y.append;V==void 0?V="":(V-=I.length,V=V<=0?"":(0,_.r_q)("0",V));S.call(Y,V);Y.append(I);E2d(r,f,Y.toString(),!!Number(C))}},CZ=function(r,f,I,C){I&&E2d(r,f,"",!!C)},YD=function(r,f,I,C){I&&E2d(r,f,String(I),!!Number(C))},E2d=function(r,f,I,C){C&&(f=f.charAt(0).toUpperCase()+f.substring(1));
r.JSC$17234_components_.push(f+I)};_.rh(M0,wj1);_.l=M0.prototype;_.l.JSC$17236_setCrop=function(r){r&&l$(this);return M0.superClass_.JSC$17236_setCrop.call(this,r)};
_.l.JSC$17236_setHeight=function(r){r=r==null||r<0?void 0:r;r!=null&&this.setSize();return M0.superClass_.JSC$17236_setHeight.call(this,r)};
_.l.JSC$17236_setImageCrop=function(r){r&&l$(this);return M0.superClass_.JSC$17236_setImageCrop.call(this,r)};
_.l.JSC$17236_setCircleCrop=function(r){r&&l$(this);return M0.superClass_.JSC$17236_setCircleCrop.call(this,r)};
_.l.setSize=function(r){_.lV(r)&&(r=Math.max(r.width,r.height));r=r==null||r<0?void 0:r;r!=null&&(this.JSC$17236_setWidth(),this.JSC$17236_setHeight());return M0.superClass_.setSize.call(this,r)};
_.l.JSC$17236_setSmartCrop=function(r){r&&l$(this);return M0.superClass_.JSC$17236_setSmartCrop.call(this,r)};
_.l.JSC$17236_setSmartCropNoClip=function(r){r&&l$(this);return M0.superClass_.JSC$17236_setSmartCropNoClip.call(this,r)};
_.l.JSC$17236_setSmartCropUseFace=function(r){r&&l$(this);return M0.superClass_.JSC$17236_setSmartCropUseFace.call(this,r)};
_.l.setCenterCrop=function(r){r&&l$(this);return M0.superClass_.setCenterCrop.call(this,r)};
_.l.JSC$17236_setPad=function(r){r&&l$(this);return M0.superClass_.JSC$17236_setPad.call(this,r)};
_.l.JSC$17236_setWidth=function(r){r=r==null||r<0?void 0:r;r!=null&&this.setSize();return M0.superClass_.JSC$17236_setWidth.call(this,r)};
var So6=function(r){r.clearOptions();var f=r.JSC$17234_parsedOptions_,I=f.valueProto_;fZ(!0,_.Fz(I,3),_.Fz(f.signatureFlagProto_,3))&&_.IZ(I,3,!0);return r},l$=function(r){r.setCenterCrop();
r.JSC$17236_setCircleCrop();r.JSC$17236_setCrop();r.JSC$17236_setImageCrop();r.JSC$17236_setPad();r.JSC$17236_setSmartCrop();r.JSC$17236_setSmartCropNoClip();r.JSC$17236_setSmartCropUseFace()};
M0.prototype.build=function(){var r=this.JSC$17234_parsedOptions_.valueProto_;Sx(r,18)||Sx(r,45)?r.getSize()||this.setSize(0):(r=this.JSC$17234_parsedOptions_.valueProto_,r.getSize()||r.getWidth()||r.getHeight()||(this.setSize(),this.JSC$17236_setHeight(),this.JSC$17236_setWidth(),l$(this)));return M0.superClass_.build.call(this)};var xB3=/^[^\/]*\/\//,V0=function(r,f){f=f===void 0?!1:f;this.original_=r;this.originalPrefix_="";(r=this.original_.match(xB3))&&r[0]?(this.originalPrefix_=r[0],r=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):r="http://"+this.original_;this.uri_=_.Hh(r,!0);this.isFreeformUrl_=f;this.JSC$17240_valid_=!0;this.obfuscated_=!1},hvs=function(r,f){r.JSC$17242_pathPrefix_=r.JSC$17242_pathPrefix_?r.JSC$17242_pathPrefix_+("/"+f):f},E9=function(r){if(r.JSC$17242_components_==
void 0){var f=r.uri_.getPath().substring(1);
r.JSC$17242_pathPrefix_=null;if(r.isFreeformUrl_){r.JSC$17242_components_=[];if((f.match(/=/g)||[]).length>1)return r.JSC$17240_valid_=!1,r.JSC$17242_components_;var I=f.indexOf("=");I!=-1?(r.JSC$17242_components_.push(f.substr(0,I)),r.JSC$17242_components_.push(f.substr(I+1))):r.JSC$17242_components_.push(f);return r.JSC$17242_components_}r.JSC$17242_components_=f.split("/");f=r.JSC$17242_components_.length;f>2&&r.JSC$17242_components_[0]=="u"&&(hvs(r,r.JSC$17242_components_[0]+"/"+r.JSC$17242_components_[1]),
r.JSC$17242_components_.shift(),r.JSC$17242_components_.shift(),f-=2);if(f==0||f==4||f>7)return r.JSC$17240_valid_=!1,r.JSC$17242_components_;if(f==2)hvs(r,r.JSC$17242_components_[0]);else if(r.JSC$17242_components_[0]=="image")hvs(r,r.JSC$17242_components_[0]);else if(f==7||f==3)return r.JSC$17240_valid_=!1,r.JSC$17242_components_;if(f<=3){r.obfuscated_=!0;f==3&&(hvs(r,r.JSC$17242_components_[1]),r.JSC$17242_components_.shift(),--f);--f;I=r.JSC$17242_components_[f];var C=I.indexOf("=");C!=-1&&(r.JSC$17242_components_[f]=
I.substr(0,C),r.JSC$17242_components_.push(I.substr(C+1)))}}return r.JSC$17242_components_};
V0.prototype.isValid=function(){E9(this);return this.JSC$17240_valid_};
V0.prototype.isObfuscated=function(){E9(this);return this.obfuscated_};
var wYB=function(r){E9(r);return r.isFreeformUrl_},SV=function(r){E9(r);
r.JSC$17242_pathPrefix_==void 0&&(r.JSC$17242_pathPrefix_=null);return r.JSC$17242_pathPrefix_},b9i=function(r){switch(E9(r).length){case 7:return!0;
case 6:return SV(r)==null;case 5:return!1;case 3:return!0;case 2:return SV(r)==null;case 1:return!1;default:return!1}},xD=function(r,f){if(wYB(r))a:{switch(f){case 7:f=0;
break;case 4:if(!b9i(r)){r=null;break a}f=1;break;default:r=null;break a}r=E9(r)[f]}else if(r.isObfuscated())a:{var I=SV(r)!=null?1:0;switch(f){case 6:f=I;break;case 4:if(!b9i(r)){r=null;break a}f=1+I;break;default:r=null;break a}r=E9(r)[f]}else a:{I=SV(r)!=null?1:0;switch(f){case 0:f=I;break;case 1:f=1+I;break;case 2:f=2+I;break;case 3:f=3+I;break;case 4:if(!b9i(r)){r=null;break a}f=4+I;break;case 5:f=b9i(r)?1:0;f=4+I+f;break;default:r=null;break a}r=E9(r)[f]}return r};
V0.prototype.getOptions=function(){this.options_==void 0&&(this.options_=xD(this,4));return this.options_};var nA2=function(){};
nA2.prototype.parse=function(r,f){return new bAY(r,f===void 0?!1:f)};
var bAY=function(r,f){V0.call(this,r,f===void 0?!1:f)};
_.t(bAY,V0);_.rh(aq,M0);var pjB;aq.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
aq.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var r=aq.superClass_.build.call(this),f=[];SV(this.parsedImageUrl_)!=null&&f.push(SV(this.parsedImageUrl_));var I=wYB(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var C=this.parsedImageUrl_;C.obfuscatedData_==void 0&&(C.obfuscatedData_=xD(C,6));f.push(C.obfuscatedData_+(r?"="+r:""))}else if(I){C=f.push;var Y=this.parsedImageUrl_;Y.freeformUrlPath_===void 0&&(Y.freeformUrlPath_=xD(Y,
7));C.call(f,Y.freeformUrlPath_);r&&f.push(r)}else C=f.push,Y=this.parsedImageUrl_,Y.obfuscatedGaiaId_==void 0&&(Y.obfuscatedGaiaId_=xD(Y,0)),C.call(f,Y.obfuscatedGaiaId_),C=f.push,Y=this.parsedImageUrl_,Y.photoId_==void 0&&(Y.photoId_=xD(Y,1)),C.call(f,Y.photoId_),C=f.push,Y=this.parsedImageUrl_,Y.imageVersion_==void 0&&(Y.imageVersion_=xD(Y,2)),C.call(f,Y.imageVersion_),C=f.push,Y=this.parsedImageUrl_,Y.signature_==void 0&&(Y.signature_=xD(Y,3)),C.call(f,Y.signature_),r&&f.push(r),r=f.push,C=this.parsedImageUrl_,
C.filename_==void 0&&(C.filename_=xD(C,5)),r.call(f,C.filename_);f=I?f.join("="):f.join("/");f=_.Hh(this.protocolPrefix_+this.JSC$17248_domain_+"/"+f+(this.JSC$17248_query_?"?"+this.JSC$17248_query_:"")).toString();f.startsWith("%3a//")&&(f=f.replace("%3a//","://"));return f};var pYB=_.op(["viewBox"]),YEV=_.op(["width"]),lV7=_.op(["height"]),VsY=_.op(["fill"]),E6U=_.op(["id"]),SE7=_.op(["x"]),xrq=_.op(["y"]);zHU.prototype.getLength=function(){return this.parsedData.length};
zHU.prototype.write=function(r){for(var f=0,I=this.parsedData.length;f<I;f++)r.put(this.parsedData[f],8)};
var F01=function(r,f){var I=new zHU(f);r.dataList.push(I);I=r.errorCorrectLevel;var C=1,Y=encodeURI(f).toString().replace(/%[0-9a-fA-F]{2}/g,"a");f=Y.length+(Y.length!=f?3:0);Y=0;for(var V=h0.length;Y<=V;Y++){var S=0;switch(I){case 1:S=h0[Y][0];break;case 0:S=h0[Y][1];break;case 3:S=h0[Y][2];break;case 2:S=h0[Y][3]}if(f<=S)break;else C++}if(C>h0.length)throw Error("tk");r.typeNumber=C;r.dataCache=null};
M56.prototype.isDark=function(r,f){if(r<0||this.moduleCount<=r||f<0||this.moduleCount<=f)throw Error("lk`"+r+"`"+f);return this.modules[r][f]};
for(var PyY=function(r,f,I){r.moduleCount=r.typeNumber*4+17;r.modules=Array(r.moduleCount);for(var C=0;C<r.moduleCount;C++){r.modules[C]=Array(r.moduleCount);for(var Y=0;Y<r.moduleCount;Y++)r.modules[C][Y]=null}h_2(r,0,0);h_2(r,r.moduleCount-7,0);h_2(r,0,r.moduleCount-7);C=wJ2[r.typeNumber-1];for(Y=0;Y<C.length;Y++)for(var V=0;V<C.length;V++){var S=C[Y],h=C[V];if(r.modules[S][h]==null)for(var w=-2;w<=2;w++)for(var n=-2;n<=2;n++)r.modules[S+w][h+n]=w==-2||w==2||n==-2||n==2||w==0&&n==0?!0:!1}for(C=
8;C<r.moduleCount-8;C++)r.modules[C][6]==null&&(r.modules[C][6]=C%2==0);for(C=8;C<r.moduleCount-8;C++)r.modules[6][C]==null&&(r.modules[6][C]=C%2==0);C=r.errorCorrectLevel<<3|I;for(Y=C<<10;wH(Y)-wH(1335)>=0;)Y^=1335<<wH(Y)-wH(1335);C=(C<<10|Y)^21522;for(Y=0;Y<15;Y++)V=!f&&(C>>Y&1)==1,Y<6?r.modules[Y][8]=V:Y<8?r.modules[Y+1][8]=V:r.modules[r.moduleCount-15+Y][8]=V;for(Y=0;Y<15;Y++)V=!f&&(C>>Y&1)==1,Y<8?r.modules[8][r.moduleCount-Y-1]=V:Y<9?r.modules[8][15-Y-1+1]=V:r.modules[8][15-Y-1]=V;r.modules[r.moduleCount-
8][8]=!f;if(r.typeNumber>=7){C=r.typeNumber;for(Y=C<<12;wH(Y)-wH(7973)>=0;)Y^=7973<<wH(Y)-wH(7973);C=C<<12|Y;for(Y=0;Y<18;Y++)V=!f&&(C>>Y&1)==1,r.modules[Math.floor(Y/3)][Y%3+r.moduleCount-8-3]=V;for(Y=0;Y<18;Y++)V=!f&&(C>>Y&1)==1,r.modules[Y%3+r.moduleCount-8-3][Math.floor(Y/3)]=V}if(r.dataCache==null){Y=r.typeNumber;V=r.dataList;f=r.errorCorrectLevel;C=bV6(Y,f);if(C==void 0)throw Error("sk`"+Y+"`"+f);S=C.length/3;f=[];for(h=0;h<S;h++){w=C[h*3];n=C[h*3+1];for(var d=C[h*3+2],z=0;z<w;z++)f.push(new gA6(n,
d))}C=new aod;for(S=0;S<V.length;S++)h=V[S],C.put(h.mode,4),C.put(h.getLength(),pJ6(h.mode,Y)),h.write(C);for(S=Y=0;S<f.length;S++)Y+=f[S].dataCount;if(C.length>Y*8)throw Error("mk`"+C.length+"`"+Y*8);for(C.length+4<=Y*8&&C.put(0,4);C.length%8!=0;)n63(C,!1);for(;!(C.length>=Y*8);){C.put(236,8);if(C.length>=Y*8)break;C.put(17,8)}V=Y=n=0;S=Array(f.length);h=Array(f.length);for(w=0;w<f.length;w++){z=f[w].dataCount;var g=f[w].totalCount-z;Y=Math.max(Y,z);V=Math.max(V,g);S[w]=Array(z);for(d=0;d<S[w].length;d++)S[w][d]=
255&C.buffer[d+n];n+=z;d=g;z=new XU([1],0);for(g=0;g<d;g++)z=z.multiply(new XU([1,dr1(g)],0));d=z;z=(new XU(S[w],d.getLength()-1)).mod(d);h[w]=Array(d.getLength()-1);for(d=0;d<h[w].length;d++)g=d+z.getLength()-h[w].length,h[w][d]=g>=0?z.get(g):0}for(d=C=0;d<f.length;d++)C+=f[d].totalCount;C=Array(C);for(d=n=0;d<Y;d++)for(w=0;w<f.length;w++)d<S[w].length&&(C[n++]=S[w][d]);for(d=0;d<V;d++)for(w=0;w<f.length;w++)d<h[w].length&&(C[n++]=h[w][d]);r.dataCache=C}f=r.dataCache;C=-1;Y=r.moduleCount-1;V=7;S=
0;for(h=r.moduleCount-1;h>0;h-=2)for(h==6&&h--;;){for(w=0;w<2;w++)r.modules[Y][h-w]==null&&(n=!1,S<f.length&&(n=(f[S]>>>V&1)==1),z_q(I,Y,h-w)&&(n=!n),r.modules[Y][h-w]=n,V--,V==-1&&(S++,V=7));Y+=C;if(Y<0||r.moduleCount<=Y){Y-=C;C=-C;break}}},h_2=function(r,f,I){for(var C=-1;C<=7;C++)if(!(f+C<=-1||r.moduleCount<=f+C))for(var Y=-1;Y<=7;Y++)I+Y<=-1||r.moduleCount<=I+Y||(r.modules[f+C][I+Y]=0<=C&&C<=6&&(Y==0||Y==6)||0<=Y&&Y<=6&&(C==0||C==6)||2<=C&&C<=4&&2<=Y&&Y<=4?!0:!1)},t56=function(r){for(var f=0,
I=0,C=0;C<8;C++){PyY(r,!0,C);
var Y=r;for(var V=Y.moduleCount,S=0,h=0;h<V;h++)for(var w=0;w<V;w++){for(var n=0,d=Y.isDark(h,w),z=-1;z<=1;z++)if(!(h+z<0||V<=h+z))for(var g=-1;g<=1;g++)w+g<0||V<=w+g||(z!=0||g!=0)&&d==Y.isDark(h+z,w+g)&&n++;n>5&&(S+=3+n-5)}for(h=0;h<V-1;h++)for(w=0;w<V-1;w++)if(n=0,Y.isDark(h,w)&&n++,Y.isDark(h+1,w)&&n++,Y.isDark(h,w+1)&&n++,Y.isDark(h+1,w+1)&&n++,n==0||n==4)S+=3;for(h=0;h<V;h++)for(w=0;w<V-6;w++)Y.isDark(h,w)&&!Y.isDark(h,w+1)&&Y.isDark(h,w+2)&&Y.isDark(h,w+3)&&Y.isDark(h,w+4)&&!Y.isDark(h,w+5)&&
Y.isDark(h,w+6)&&(S+=40);for(w=0;w<V;w++)for(h=0;h<V-6;h++)Y.isDark(h,w)&&!Y.isDark(h+1,w)&&Y.isDark(h+2,w)&&Y.isDark(h+3,w)&&Y.isDark(h+4,w)&&!Y.isDark(h+5,w)&&Y.isDark(h+6,w)&&(S+=40);for(w=n=0;w<V;w++)for(h=0;h<V;h++)Y.isDark(h,w)&&n++;Y=S+=Math.abs(100*n/V/V-50)/5*10;if(C==0||f>Y)f=Y,I=C}return I},wJ2=[[],
[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]],wH=function(r){for(var f=0;r!=0;)f++,r>>>=1;return f},z_q=function(r,f,I){switch(r){case 0:return(f+I)%2==0;
case 1:return f%2==0;case 2:return I%3==0;case 3:return(f+I)%3==0;case 4:return(Math.floor(f/2)+Math.floor(I/3))%2==0;case 5:return f*I%2+f*I%3==0;case 6:return(f*I%2+f*I%3)%2==0;case 7:return(f*I%3+(f+I)%2)%2==0;default:throw Error("nk`"+r);}},pJ6=function(r,f){if(1<=f&&f<10)switch(r){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("ok`"+r);}else if(f<27)switch(r){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("ok`"+r);}else if(f<41)switch(r){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("ok`"+r);}else throw Error("pk`"+f);},b$=function(r){if(r<1)throw Error("qk`"+r);
return MsY[r]},dr1=function(r){for(;r<0;)r+=255;
for(;r>=256;)r-=255;return pZ[r]},pZ=Array(256),MsY=Array(256),g6d=0;g6d<8;g6d++)pZ[g6d]=1<<g6d;
for(var nZ=8;nZ<256;nZ++)pZ[nZ]=pZ[nZ-4]^pZ[nZ-5]^pZ[nZ-6]^pZ[nZ-8];for(var aV1=0;aV1<255;aV1++)MsY[pZ[aV1]]=aV1;XU.prototype.get=function(r){return this.num[r]};
XU.prototype.getLength=function(){return this.num.length};
XU.prototype.multiply=function(r){for(var f=Array(this.getLength()+r.getLength()-1),I=0;I<this.getLength();I++)for(var C=0;C<r.getLength();C++)f[I+C]^=dr1(b$(this.get(I))+b$(r.get(C)));return new XU(f,0)};
XU.prototype.mod=function(r){if(this.getLength()-r.getLength()<0)return this;for(var f=b$(this.get(0))-b$(r.get(0)),I=Array(this.getLength()),C=0;C<this.getLength();C++)I[C]=this.get(C);for(C=0;C<r.getLength();C++)I[C]^=dr1(b$(r.get(C))+f);return(new XU(I,0)).mod(r)};
var XJU=[[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]],bV6=function(r,f){switch(f){case 1:return XJU[(r-1)*4];case 0:return XJU[(r-1)*4+1];case 3:return XJU[(r-1)*4+2];case 2:return XJU[(r-1)*4+3]}};
aod.prototype.get=function(r){return(this.buffer[Math.floor(r/8)]>>>7-r%8&1)==1};
aod.prototype.put=function(r,f){for(var I=0;I<f;I++)n63(this,(r>>>f-I-1&1)==1)};
var n63=function(r,f){var I=Math.floor(r.length/8);r.buffer.length<=I&&r.buffer.push(0);f&&(r.buffer[I]|=128>>>r.length%8);r.length++},h0=[[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]],$y6=function(){var r=function(f,I){this.JSC$17268__el=f;this.JSC$17268__htOption=I};
r.prototype.draw=function(f){function I(d,z){d=document.createElementNS("http://www.w3.org/2000/svg",d);for(var g in z)z.hasOwnProperty(g)&&(g==="href"?_.T5V(d,z[g]):_.ys([_.BG(pYB),_.BG(YEV),_.BG(lV7),_.BG(VsY),_.BG(E6U),_.BG(SE7),_.BG(xrq)],d,g,z[g]));return d}
var C=this.JSC$17268__htOption,Y=this.JSC$17268__el,V=f.moduleCount;this.clear();var S=I("svg",{viewBox:"0 0 "+String(V)+" "+String(V),width:"100%",height:"100%",fill:C.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});Y.appendChild(S);S.appendChild(I("rect",{fill:C.colorLight,width:"100%",height:"100%"}));S.appendChild(I("rect",{fill:C.colorDark,width:"1",height:"1",id:"template"}));for(var h=0;h<V;h++)for(var w=0;w<V;w++)if(f.isDark(h,w)){var n=I("use",{x:String(h),y:String(w),href:"#template"});
S.appendChild(n)}};
r.prototype.clear=function(){for(;this.JSC$17268__el.hasChildNodes();)this.JSC$17268__el.removeChild(this.JSC$17268__el.lastChild)};
return r}(),Nd6=document.documentElement.tagName.toLowerCase()==="svg"?$y6:typeof CanvasRenderingContext2D!="undefined"?function(){var r=function(f,I){this._bIsPainted=!1;
Xj2();this.JSC$17268__htOption=I;this._elCanvas=document.createElement("canvas");this._elCanvas.width=I.width;this._elCanvas.height=I.height;f.appendChild(this._elCanvas);this.JSC$17268__el=f;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$17268__el.appendChild(this._elImage);this._bSupportDataURI=null};
r.prototype._onMakeImage=function(){var f=this._elCanvas.toDataURL("image/png");this._elImage.src=f;this._elImage.style.display="block";this._elCanvas.style.display="none"};
r.prototype._safeSetDataURI=function(f,I){var C=this;C._fFail=I;C._fSuccess=f;C._bSupportDataURI===null?(f=_.wL("IMG"),I=function(){C._bSupportDataURI=!1;C._fFail&&C._fFail.call(C)},f.onabort=I,f.onerror=I,f.onload=function(){C._bSupportDataURI=!0;
C._fSuccess&&C._fSuccess.call(C)},f.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):C._bSupportDataURI===!0&&C._fSuccess?C._fSuccess.call(C):C._bSupportDataURI===!1&&C._fFail&&C._fFail.call(C)};
r.prototype.draw=function(f){var I=this._oContext,C=this.JSC$17268__htOption,Y=f.moduleCount,V=C.width/Y,S=C.height/Y,h=Math.round(V),w=Math.round(S);this._elImage.style.display="none";this.clear();for(var n=0;n<Y;n++)for(var d=0;d<Y;d++){var z=f.isDark(n,d),g=d*V,X=n*S;I.strokeStyle=z?C.colorDark:C.colorLight;I.lineWidth=1;I.fillStyle=z?C.colorDark:C.colorLight;I.fillRect(g,X,V,S);I.strokeRect(Math.floor(g)+.5,Math.floor(X)+.5,h,w);I.strokeRect(Math.ceil(g)-.5,Math.ceil(X)-.5,h,w)}this._bIsPainted=
!0};
r.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
r.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
r.prototype.round=function(f){return f?Math.floor(f*1E3)/1E3:f};
return r}():function(){var r=function(f,I){this.JSC$17268__el=f;
this.JSC$17268__htOption=I};
r.prototype.draw=function(f){for(var I=this.JSC$17268__htOption,C=this.JSC$17268__el,Y=f.moduleCount,V=Math.floor(I.width/Y),S=Math.floor(I.height/Y),h=['<table style="border:0;border-collapse:collapse;">'],w=0;w<Y;w++){h.push("<tr>");for(var n=0;n<Y;n++)h.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+V+"px;height:"+S+"px;background-color:"+(f.isDark(w,n)?I.colorDark:I.colorLight)+';"></td>');h.push("</tr>")}h.push("</table>");f=h.join("");f=_.oCC(_.A_B,f);_.KK(C,f);
f=C.childNodes[0];Y=(I.width-f.offsetWidth)/2;V=(I.height-f.offsetHeight)/2;Y>0&&V>0&&(f.style.margin=V+"px "+Y+"px")};
r.prototype.clear=function(){this.JSC$17268__el.textContent=""};
return r}();
TdV.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17271__android||this.JSC$17271__android>=3)&&this._oDrawing.makeImage()};
TdV.prototype.clear=function(){this._oDrawing.clear()};
_.Yq.QRCode=TdV;var NfU={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var dH=function(){};
dH.prototype.stringify=function(r){return _.Yq.JSON.stringify(r,void 0)};
dH.prototype.parse=function(r){return _.Yq.JSON.parse(r,void 0)};var $r1=function(){_.wi.call(this,"z")};
_.rh($r1,_.wi);var FdB=function(){_.wi.call(this,"y")};
_.rh(FdB,_.wi);var P0q=null,ts1=function(){return P0q=P0q||new _.zh},TfY=function(r){_.wi.call(this,"serverreachability",r)};
_.rh(TfY,_.wi);var zj=function(r){var f=ts1();f.dispatchEvent(new TfY(f,r))},ckV=function(r){_.wi.call(this,"statevent",r)};
_.rh(ckV,_.wi);var Mw=function(r){var f=ts1();f.dispatchEvent(new ckV(f,r))},WdU=function(r,f,I,C){_.wi.call(this,"timingevent",r);
this.size=f;this.rtt=I;this.retries=C};
_.rh(WdU,_.wi);var Ld2=function(r,f,I){var C=ts1();C.dispatchEvent(new WdU(C,r,f,I))},gH=function(r,f){if(typeof r!=="function")throw Error("uk");
return _.Yq.setTimeout(function(){r()},f)};var a7=function(){this.redactEnabled_=!0};
a7.prototype.disableRedact=function(){this.redactEnabled_=!1};
var mrV=function(r,f,I,C,Y,V){r.info(function(){if(r.redactEnabled_)if(V){var S="";for(var h=V.split("&"),w=0;w<h.length;w++){var n=h[w].split("=");if(n.length>1){var d=n[0];n=n[1];var z=d.split("_");S=z.length>=2&&z[1]=="type"?S+(d+"="+n+"&"):S+(d+"=redacted&")}}}else S=null;else S=V;return"XMLHTTP REQ ("+C+") [attempt "+Y+"]: "+f+"\n"+I+"\n"+S})},e_7=function(r,f,I,C,Y,V,S){r.info(function(){return"XMLHTTP RESP ("+C+") [ attempt "+Y+"]: "+f+"\n"+I+"\n"+V+" "+S})},Xp=function(r,f,I,C){r.info(function(){return"XMLHTTP TEXT ("+
f+"): "+JkY(r,I)+(C?" "+C:"")})},jj2=function(r,f){r.info(function(){return"TIMEOUT: "+f})};
a7.prototype.debug=function(){};
a7.prototype.info=function(){};
a7.prototype.warning=function(){};
var JkY=function(r,f){if(!r.redactEnabled_)return f;if(!f)return null;try{var I=JSON.parse(f);if(I)for(var C=0;C<I.length;C++)if(Array.isArray(I[C])){var Y=I[C];if(!(Y.length<2)){var V=Y[1];if(Array.isArray(V)&&!(V.length<1)){var S=V[0];if(S!="noop"&&S!="stop"&&S!="close")for(var h=1;h<V.length;h++)V[h]=""}}}return(0,_.FZ)(I)}catch(w){return r.debug("Exception parsing expected JS array - probably was not JS"),f}};var Nw=function(r,f,I,C,Y){this.JSC$17293_channel_=r;this.JSC$17293_channelDebug_=f;this.sid_=I;this.JSC$17293_rid_=C;this.JSC$17293_retryId_=Y||1;this.JSC$17293_eventHandler_=new _.B8(this);this.timeout_=45E3;this.JSC$17293_extraHeaders_=null;this.JSC$17293_successful_=!1;this.JSC$17293_postData_=this.JSC$17293_requestUri_=this.JSC$17293_baseUri_=this.JSC$17293_type_=this.JSC$17293_requestStartTime_=this.JSC$17293_watchDogTimeoutTime_=this.JSC$17293_watchDogTimerId_=null;this.JSC$17293_pendingMessages_=
[];this.JSC$17293_xmlHttp_=null;this.JSC$17293_xmlHttpChunkStart_=0;this.JSC$17293_lastError_=this.JSC$17293_verb_=null;this.JSC$17293_lastStatusCode_=-1;this.JSC$17293_cancelled_=!1;this.JSC$17293_readyStateChangeThrottleMs_=0;this.JSC$17293_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new HV2},HV2=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},iVi=function(r,f){switch(r){case 0:return"Non-200 return code ("+f+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},R_1={},v66={};
Nw.prototype.setTimeout=function(r){this.timeout_=r};
var yks=function(r,f,I){r.JSC$17293_type_=1;r.JSC$17293_baseUri_=_.IH(f.clone());r.JSC$17293_postData_=I;r.decodeChunks_=!0;Kdi(r,null)},Kdi=function(r,f){r.JSC$17293_requestStartTime_=Date.now();
Ur7(r);r.JSC$17293_requestUri_=r.JSC$17293_baseUri_.clone();fm(r.JSC$17293_requestUri_,"t",r.JSC$17293_retryId_);r.JSC$17293_xmlHttpChunkStart_=0;var I=r.JSC$17293_channel_.JSC$17312_supportsCrossDomainXhrs_;r.fetchResponseState_=new HV2;r.JSC$17293_xmlHttp_=sj6(r.JSC$17293_channel_,I?f:null,!r.JSC$17293_postData_);r.JSC$17293_readyStateChangeThrottleMs_>0&&(r.JSC$17293_readyStateChangeThrottle_=new _.Gk((0,_.gL)(r.JSC$17297_xmlHttpHandler_,r,r.JSC$17293_xmlHttp_),r.JSC$17293_readyStateChangeThrottleMs_));
r.JSC$17293_eventHandler_.listen(r.JSC$17293_xmlHttp_,"readystatechange",r.JSC$17297_readyStateChangeHandler_);f=r.JSC$17293_extraHeaders_?_.X0.clone(r.JSC$17293_extraHeaders_):{};r.JSC$17293_postData_?(r.JSC$17293_verb_||(r.JSC$17293_verb_="POST"),f["Content-Type"]="application/x-www-form-urlencoded",r.JSC$17293_xmlHttp_.send(r.JSC$17293_requestUri_,r.JSC$17293_verb_,r.JSC$17293_postData_,f)):(r.JSC$17293_verb_="GET",r.JSC$17293_xmlHttp_.send(r.JSC$17293_requestUri_,r.JSC$17293_verb_,null,f));zj(1);
mrV(r.JSC$17293_channelDebug_,r.JSC$17293_verb_,r.JSC$17293_requestUri_,r.JSC$17293_rid_,r.JSC$17293_retryId_,r.JSC$17293_postData_)};
Nw.prototype.JSC$17297_readyStateChangeHandler_=function(r){r=r.target;var f=this.JSC$17293_readyStateChangeThrottle_;f&&_.tA(r)==3?(this.JSC$17293_channelDebug_.debug("Throttling readystatechange."),f.fire()):this.JSC$17297_xmlHttpHandler_(r)};
Nw.prototype.JSC$17297_xmlHttpHandler_=function(r){try{r==this.JSC$17293_xmlHttp_?OV2(this):this.JSC$17293_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(f){this.JSC$17293_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),o67(this)}finally{}};
var OV2=function(r){var f=_.tA(r.JSC$17293_xmlHttp_),I=r.JSC$17293_xmlHttp_.JSC$7695_lastErrorCode_,C=r.JSC$17293_xmlHttp_.getStatus();if(!(f<3||f==3&&!o67(r))){r.JSC$17293_cancelled_||f!=4||I==7||(I==8||C<=0?zj(3):zj(2));QjB(r);var Y=r.JSC$17293_xmlHttp_.getStatus();r.JSC$17293_lastStatusCode_=Y;I=Ak1(r);o67(r)||r.JSC$17293_channelDebug_.debug(function(){return"No response text for uri "+r.JSC$17293_requestUri_+" status "+Y});
r.JSC$17293_successful_=Y==200;e_7(r.JSC$17293_channelDebug_,r.JSC$17293_verb_,r.JSC$17293_requestUri_,r.JSC$17293_rid_,r.JSC$17293_retryId_,f,Y);if(r.JSC$17293_successful_){if(r.decodeInitialResponse_&&!r.initialResponseDecoded_)if(C=ZVU(r))Xp(r.JSC$17293_channelDebug_,r.JSC$17293_rid_,C,"Initial handshake response via X-HTTP-Initial-Response"),r.initialResponseDecoded_=!0,G97(r,C);else{r.JSC$17293_successful_=!1;r.JSC$17293_lastError_=3;Mw(12);r.JSC$17293_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
r.JSC$17293_rid_+")");$D(r);Fp(r);return}r.decodeChunks_?k9U(r,f,I):(Xp(r.JSC$17293_channelDebug_,r.JSC$17293_rid_,I,null),G97(r,I));f==4&&$D(r);r.JSC$17293_successful_&&!r.JSC$17293_cancelled_&&(f==4?Bfi(r.JSC$17293_channel_,r):(r.JSC$17293_successful_=!1,Ur7(r)))}else ZxV(r.JSC$17293_xmlHttp_),Y==400&&I.indexOf("Unknown SID")>0?(r.JSC$17293_lastError_=3,Mw(12),r.JSC$17293_channelDebug_.warning("XMLHTTP Unknown SID ("+r.JSC$17293_rid_+")")):(r.JSC$17293_lastError_=0,Mw(13),r.JSC$17293_channelDebug_.warning("XMLHTTP Bad status "+
Y+" ("+r.JSC$17293_rid_+")")),$D(r),Fp(r)}},ZVU=function(r){return r.JSC$17293_xmlHttp_&&(r=SI(r.JSC$17293_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.bU(r)?r:null},Ak1=function(r){if(!qE2(r))return r.JSC$17293_xmlHttp_.getResponseText();
var f=r.JSC$17293_xmlHttp_.getResponse();if(f==="")return"";var I="",C=f.length,Y=_.tA(r.JSC$17293_xmlHttp_)==4;if(!r.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return $D(r),Fp(r),"";r.fetchResponseState_.textDecoder=new _.Yq.TextDecoder}for(var V=0;V<C;V++)r.fetchResponseState_.responseArrivedForFetch=!0,I+=r.fetchResponseState_.textDecoder.decode(f[V],{stream:!(Y&&V==C-1)});f.length=0;r.fetchResponseState_.responseBuffer+=I;r.JSC$17293_xmlHttpChunkStart_=0;return r.fetchResponseState_.responseBuffer},
o67=function(r){return r.JSC$17293_xmlHttp_?r.fetchResponseState_.responseArrivedForFetch?!0:!(!r.JSC$17293_xmlHttp_.getResponseText()&&!r.JSC$17293_xmlHttp_.getResponse()):!1},qE2=function(r){return r.JSC$17293_xmlHttp_?r.JSC$17293_verb_=="GET"&&r.JSC$17293_type_!=2&&r.JSC$17293_channel_.usesFetchStreams_:!1},k9U=function(r,f,I){for(var C=!0,Y;!r.JSC$17293_cancelled_&&r.JSC$17293_xmlHttpChunkStart_<I.length;)if(Y=uVs(r,I),Y==v66){f==4&&(r.JSC$17293_lastError_=4,Mw(14),C=!1);
Xp(r.JSC$17293_channelDebug_,r.JSC$17293_rid_,null,"[Incomplete Response]");break}else if(Y==R_1){r.JSC$17293_lastError_=4;Mw(15);Xp(r.JSC$17293_channelDebug_,r.JSC$17293_rid_,I,"[Invalid Chunk]");C=!1;break}else Xp(r.JSC$17293_channelDebug_,r.JSC$17293_rid_,Y,null),G97(r,Y);qE2(r)&&r.JSC$17293_xmlHttpChunkStart_!=0&&(r.fetchResponseState_.responseBuffer=r.fetchResponseState_.responseBuffer.slice(r.JSC$17293_xmlHttpChunkStart_),r.JSC$17293_xmlHttpChunkStart_=0);f!=4||I.length!=0||r.fetchResponseState_.responseArrivedForFetch||
(r.JSC$17293_lastError_=1,Mw(16),C=!1);r.JSC$17293_successful_=r.JSC$17293_successful_&&C;C?I.length>0&&!r.firstByteReceived_&&(r.firstByteReceived_=!0,f=r.JSC$17293_channel_,f.JSC$17312_backChannelRequest_==r&&f.detectBufferingProxy_&&!f.bpDetectionDone_&&(f.JSC$17312_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+I.length),DrB(f),f.bpDetectionDone_=!0,Mw(11))):(Xp(r.JSC$17293_channelDebug_,r.JSC$17293_rid_,I,"[Invalid Chunked Response]"),$D(r),Fp(r))},uVs=function(r,f){var I=
r.JSC$17293_xmlHttpChunkStart_,C=f.indexOf("\n",I);
if(C==-1)return v66;I=Number(f.substring(I,C));if(isNaN(I))return R_1;C+=1;if(C+I>f.length)return v66;f=f.slice(C,C+I);r.JSC$17293_xmlHttpChunkStart_=C+I;return f};
Nw.prototype.cancel=function(){this.JSC$17293_cancelled_=!0;$D(this)};
var Ur7=function(r){r.JSC$17293_watchDogTimeoutTime_=Date.now()+r.timeout_;rh1(r,r.timeout_)},rh1=function(r,f){if(r.JSC$17293_watchDogTimerId_!=null)throw Error("vk");
r.JSC$17293_watchDogTimerId_=gH((0,_.gL)(r.JSC$17297_onWatchDogTimeout_,r),f)},QjB=function(r){r.JSC$17293_watchDogTimerId_&&(_.Yq.clearTimeout(r.JSC$17293_watchDogTimerId_),r.JSC$17293_watchDogTimerId_=null)};
Nw.prototype.JSC$17297_onWatchDogTimeout_=function(){this.JSC$17293_watchDogTimerId_=null;var r=Date.now();r-this.JSC$17293_watchDogTimeoutTime_>=0?(jj2(this.JSC$17293_channelDebug_,this.JSC$17293_requestUri_),this.JSC$17293_type_!=2&&(zj(3),Mw(17)),$D(this),this.JSC$17293_lastError_=2,Fp(this)):(this.JSC$17293_channelDebug_.warning("WatchDog timer called too early"),rh1(this,this.JSC$17293_watchDogTimeoutTime_-r))};
var Fp=function(r){r.JSC$17293_channel_.state_==0||r.JSC$17293_cancelled_||Bfi(r.JSC$17293_channel_,r)},$D=function(r){QjB(r);
_.Z8(r.JSC$17293_readyStateChangeThrottle_);r.JSC$17293_readyStateChangeThrottle_=null;r.JSC$17293_eventHandler_.removeAll();if(r.JSC$17293_xmlHttp_){var f=r.JSC$17293_xmlHttp_;r.JSC$17293_xmlHttp_=null;f.abort();f.dispose()}};
Nw.prototype.getLastError=function(){return this.JSC$17293_lastError_};
var G97=function(r,f){try{var I=r.JSC$17293_channel_;if(I.state_!=0&&(I.JSC$17312_backChannelRequest_==r||fi2(I.forwardChannelRequestPool_,r)))if(!r.initialResponseDecoded_&&fi2(I.forwardChannelRequestPool_,r)&&I.state_==3){try{var C=I.wireCodec_.JSC$17307_parser_.parse(f)}catch(h){C=null}if(Array.isArray(C)&&C.length==3){f=C;if(f[0]==0)a:if(I.JSC$17312_channelDebug_.debug("Server claims our backchannel is missing."),I.JSC$17312_backChannelTimerId_)I.JSC$17312_channelDebug_.debug("But we are currently starting the request.");
else{if(I.JSC$17312_backChannelRequest_)if(I.JSC$17312_backChannelRequest_.JSC$17293_requestStartTime_+3E3<r.JSC$17293_requestStartTime_)Ii6(I),CC1(I);else break a;else I.JSC$17312_channelDebug_.warning("We do not have a BackChannel established");Y5B(I);Mw(18)}else{I.JSC$17312_lastPostResponseArrayId_=f[1];var Y=I.JSC$17312_lastPostResponseArrayId_-I.JSC$17312_lastArrayId_;if(0<Y){var V=f[2];I.JSC$17312_channelDebug_.debug(V+" bytes (in "+Y+" arrays) are outstanding on the BackChannel");V<37500&&
I.enableStreaming_&&I.JSC$17312_backChannelRetryCount_==0&&!I.JSC$17312_deadBackChannelTimerId_&&(I.JSC$17312_deadBackChannelTimerId_=gH((0,_.gL)(I.JSC$17314_onBackChannelDead_,I),6E3))}}if(liB(I.forwardChannelRequestPool_)<=1&&I.forwardChannelFlushedCallback_){try{I.forwardChannelFlushedCallback_()}catch(h){}I.forwardChannelFlushedCallback_=void 0}}else I.JSC$17312_channelDebug_.debug("Bad POST response data returned"),Pe(I,11)}else if((r.initialResponseDecoded_||I.JSC$17312_backChannelRequest_==
r)&&Ii6(I),!_.bU(f)){var S=I.wireCodec_.JSC$17307_parser_.parse(f);I.onInput_(S,r)}zj(4)}catch(h){}};var Vr6=function(r,f){this.JSC$17300_mapId=r;this.map=f;this.context=null};var E3q=function(r){this.maxPoolSizeConfigured_=r||10;_.Yq.PerformanceNavigationTiming?(r=_.Yq.performance.getEntriesByType("navigation"),r=r.length>0&&(r[0].nextHopProtocol=="hq"||r[0].nextHopProtocol=="h2")):r=!!(_.Yq.chrome&&_.Yq.chrome.loadTimes&&_.Yq.chrome.loadTimes()&&_.Yq.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17303_maxSize_=r?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17303_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17303_request_=null;this.JSC$17303_pendingMessages_=
[]},S5i=function(r){return r.JSC$17303_request_?!0:r.requestPool_?r.requestPool_.size>=r.JSC$17303_maxSize_:!1},liB=function(r){return r.JSC$17303_request_?1:r.requestPool_?r.requestPool_.size:0},fi2=function(r,f){return r.JSC$17303_request_?r.JSC$17303_request_==f:r.requestPool_?r.requestPool_.has(f):!1},xXY=function(r,f){r.requestPool_?r.requestPool_.add(f):r.JSC$17303_request_=f},hm6=function(r,f){r.JSC$17303_request_&&r.JSC$17303_request_==f?r.JSC$17303_request_=null:r.requestPool_&&r.requestPool_.has(f)&&
r.requestPool_.delete(f)};
E3q.prototype.cancel=function(){this.JSC$17303_pendingMessages_=wKV(this);if(this.JSC$17303_request_)this.JSC$17303_request_.cancel(),this.JSC$17303_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var r=_.E(this.requestPool_.values()),f=r.next();!f.done;f=r.next())f.value.cancel();this.requestPool_.clear()}};
var wKV=function(r){if(r.JSC$17303_request_!=null)return r.JSC$17303_pendingMessages_.concat(r.JSC$17303_request_.JSC$17293_pendingMessages_);if(r.requestPool_!=null&&r.requestPool_.size!==0){var f=r.JSC$17303_pendingMessages_;r=_.E(r.requestPool_.values());for(var I=r.next();!I.done;I=r.next())f=f.concat(I.value.JSC$17293_pendingMessages_);return f}return _.f8(r.JSC$17303_pendingMessages_)},b6B=function(r,f){r.JSC$17303_pendingMessages_=r.JSC$17303_pendingMessages_.concat(f)};var pKs=function(r,f){var I=new a7;I.debug("TestLoadImage: loading "+r);if(_.Yq.Image){var C=new Image;C.onload=_.S_(t0,I,"TestLoadImage: loaded",!0,f,C);C.onerror=_.S_(t0,I,"TestLoadImage: error",!1,f,C);C.onabort=_.S_(t0,I,"TestLoadImage: abort",!1,f,C);C.ontimeout=_.S_(t0,I,"TestLoadImage: timeout",!1,f,C);_.Yq.setTimeout(function(){if(C.ontimeout)C.ontimeout()},1E4);
C.src=r}else f(!1)},n3i=function(r,f){var I=new a7,C=new AbortController,Y=setTimeout(function(){C.abort();
t0(I,"TestPingServer: timeout",!1,f)},1E4);
fetch(r,{signal:C.signal}).then(function(V){clearTimeout(Y);V.ok?t0(I,"TestPingServer: ok",!0,f):t0(I,"TestPingServer: server error",!1,f)}).catch(function(){clearTimeout(Y);
t0(I,"TestPingServer: error",!1,f)})},t0=function(r,f,I,C,Y){try{r.debug(f),Y&&(Y.onload=null,Y.onerror=null,Y.onabort=null,Y.ontimeout=null),C(I)}catch(V){}};var dX1=function(){this.JSC$17307_parser_=new dH},zms=function(r,f,I){var C=I||"";
try{_.I3B(r,function(Y,V){var S=Y;_.lV(Y)&&(S=(0,_.FZ)(Y));f.push(C+V+"="+encodeURIComponent(S))})}catch(Y){throw f.push(C+"type="+encodeURIComponent("_badmap")),Y;
}};var Tj=function(r,f,I){return I&&I.internalChannelParams?I.internalChannelParams[r]||f:f},ce=function(r){this.serverVersion_=0;
this.JSC$17312_outgoingMaps_=[];this.JSC$17312_channelDebug_=new a7;this.JSC$17312_hostPrefix_=this.JSC$17312_backChannelUri_=this.JSC$17312_forwardChannelUri_=this.JSC$17312_path_=this.JSC$17312_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17312_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17312_extraHeaders_=null;this.JSC$17312_nextMapId_=this.JSC$17312_nextRid_=0;this.JSC$17312_failFast_=Tj("failFast",!1,r);this.enableStreaming_=this.JSC$17312_deadBackChannelTimerId_=
this.JSC$17312_backChannelTimerId_=this.JSC$17312_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17312_lastPostResponseArrayId_=this.JSC$17312_lastArrayId_=-1;this.JSC$17312_backChannelAttemptId_=this.JSC$17312_backChannelRetryCount_=this.JSC$17312_forwardChannelRetryCount_=0;this.JSC$17312_baseRetryDelayMs_=Tj("baseRetryDelayMs",5E3,r);this.JSC$17312_retryDelaySeedMs_=Tj("retryDelaySeedMs",1E4,r);this.JSC$17312_forwardChannelMaxRetries_=
Tj("forwardChannelMaxRetries",2,r);this.JSC$17312_forwardChannelRequestTimeoutMs_=Tj("forwardChannelRequestTimeoutMs",2E4,r);this.JSC$17312_xmlHttpFactory_=r&&r.xmlHttpFactory||void 0;this.networkTestUrl_=r&&r.networkTestUrl||void 0;this.usesFetchStreams_=r&&r.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17312_supportsCrossDomainXhrs_=r&&r.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new E3q(r&&r.concurrentRequestLimit);this.wireCodec_=new dX1;this.fastHandshake_=
r&&r.fastHandshake||!1;this.encodeInitMessageHeaders_=r&&r.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17312_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=r&&r.blockingHandshake||!1;r&&r.disableRedact&&this.JSC$17312_channelDebug_.disableRedact();r&&r.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
r&&r.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;r&&r.longPollingTimeout&&r.longPollingTimeout>0&&(this.longPollingTimeout_=r.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
ce.prototype.JSC$17314_channelVersion_=8;ce.prototype.state_=1;
ce.prototype.connect=function(r,f,I,C){this.JSC$17312_channelDebug_.debug("connect()");Mw(0);this.JSC$17312_path_=r;this.JSC$17312_extraParams_=f||{};I&&C!==void 0&&(this.JSC$17312_extraParams_.OSID=I,this.JSC$17312_extraParams_.OAID=C);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17312_channelDebug_.debug("connectChannel_()");r=Mr6(this,null,this.JSC$17312_path_);this.JSC$17312_channelDebug_.debug("GetForwardChannelUri: "+r);this.JSC$17312_forwardChannelUri_=r;g3d(this)};
ce.prototype.disconnect=function(){this.JSC$17312_channelDebug_.debug("disconnect()");ai1(this);if(this.state_==3){var r=this.JSC$17312_nextRid_++,f=this.JSC$17312_forwardChannelUri_.clone();_.RZ(f,"SID",this.sid_);_.RZ(f,"RID",r);_.RZ(f,"TYPE","terminate");We(this,f);r=new Nw(this,this.JSC$17312_channelDebug_,this.sid_,r);r.JSC$17293_type_=2;r.JSC$17293_baseUri_=_.IH(f.clone());f=!1;if(_.Yq.navigator&&_.Yq.navigator.sendBeacon)try{f=_.Yq.navigator.sendBeacon(r.JSC$17293_baseUri_.toString(),"")}catch(I){}!f&&
_.Yq.Image&&((new Image).src=r.JSC$17293_baseUri_,f=!0);f||(r.JSC$17293_xmlHttp_=sj6(r.JSC$17293_channel_,null),r.JSC$17293_xmlHttp_.send(r.JSC$17293_baseUri_));r.JSC$17293_requestStartTime_=Date.now();Ur7(r)}XKi(this)};
var CC1=function(r){r.JSC$17312_backChannelRequest_&&(DrB(r),r.JSC$17312_backChannelRequest_.cancel(),r.JSC$17312_backChannelRequest_=null)},ai1=function(r){CC1(r);
r.JSC$17312_backChannelTimerId_&&(_.Yq.clearTimeout(r.JSC$17312_backChannelTimerId_),r.JSC$17312_backChannelTimerId_=null);Ii6(r);r.forwardChannelRequestPool_.cancel();r.JSC$17312_forwardChannelTimerId_&&(typeof r.JSC$17312_forwardChannelTimerId_==="number"&&_.Yq.clearTimeout(r.JSC$17312_forwardChannelTimerId_),r.JSC$17312_forwardChannelTimerId_=null)};
ce.prototype.getState=function(){return this.state_};
var g3d=function(r){S5i(r.forwardChannelRequestPool_)||r.JSC$17312_forwardChannelTimerId_||(r.JSC$17312_forwardChannelTimerId_=!0,_.gi(r.JSC$17314_onStartForwardChannelTimer_,r),r.JSC$17312_forwardChannelRetryCount_=0)},$Xp=function(r,f){if(liB(r.forwardChannelRequestPool_)>=r.forwardChannelRequestPool_.JSC$17303_maxSize_-(r.JSC$17312_forwardChannelTimerId_?1:0))return!1;
if(r.JSC$17312_forwardChannelTimerId_)return r.JSC$17312_channelDebug_.debug("Use the retry request that is already scheduled."),r.JSC$17312_outgoingMaps_=f.JSC$17293_pendingMessages_.concat(r.JSC$17312_outgoingMaps_),!0;if(r.state_==1||r.state_==2||r.JSC$17312_forwardChannelRetryCount_>=(r.JSC$17312_failFast_?0:r.JSC$17312_forwardChannelMaxRetries_))return!1;r.JSC$17312_channelDebug_.debug("Going to retry POST");r.JSC$17312_forwardChannelTimerId_=gH((0,_.gL)(r.JSC$17314_onStartForwardChannelTimer_,
r,f),N8B(r,r.JSC$17312_forwardChannelRetryCount_));r.JSC$17312_forwardChannelRetryCount_++;return!0};
ce.prototype.JSC$17314_onStartForwardChannelTimer_=function(r){if(this.JSC$17312_forwardChannelTimerId_)if(this.JSC$17312_forwardChannelTimerId_=null,this.JSC$17312_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!r){this.JSC$17312_channelDebug_.debug("open_()");this.JSC$17312_nextRid_=Math.floor(Math.random()*1E5);r=this.JSC$17312_nextRid_++;var f=new Nw(this,this.JSC$17312_channelDebug_,"",r),I=this.JSC$17312_extraHeaders_;this.initHeaders_&&(I?(I=_.X0.clone(I),_.X0.extend(I,this.initHeaders_)):
I=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(f.JSC$17293_extraHeaders_=I,I=null);var C;if(this.fastHandshake_)a:{for(var Y=C=0;Y<this.JSC$17312_outgoingMaps_.length;Y++){b:{var V=this.JSC$17312_outgoingMaps_[Y];if("__data__"in V.map&&(V=V.map.__data__,typeof V==="string")){V=V.length;break b}V=void 0}if(V===void 0)break;C+=V;if(C>4096){C=Y;break a}if(C===4096||Y===this.JSC$17312_outgoingMaps_.length-1){C=Y+1;break a}}C=1E3}else C=1E3;C=Fm6(this,f,C);
Y=this.JSC$17312_forwardChannelUri_.clone();_.RZ(Y,"RID",r);_.RZ(Y,"CVER",22);this.httpSessionIdParam_&&_.RZ(Y,"X-HTTP-Session-Id",this.httpSessionIdParam_);We(this,Y);I&&(this.encodeInitMessageHeaders_?C="headers="+_.ik(ZFq(I))+"&"+C:this.httpHeadersOverwriteParam_&&Gk6(Y,this.httpHeadersOverwriteParam_,I));xXY(this.forwardChannelRequestPool_,f);this.blockingHandshake_&&_.RZ(Y,"TYPE","init");this.fastHandshake_?(_.RZ(Y,"$req",C),_.RZ(Y,"SID","null"),f.decodeInitialResponse_=!0,yks(f,Y,null)):yks(f,
Y,C);this.state_=2}}else this.state_==3&&(r?PCi(this,r):this.JSC$17312_outgoingMaps_.length==0?this.JSC$17312_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):S5i(this.forwardChannelRequestPool_)||(PCi(this),this.JSC$17312_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var PCi=function(r,f){var I;f?I=f.JSC$17293_rid_:I=r.JSC$17312_nextRid_++;var C=r.JSC$17312_forwardChannelUri_.clone();_.RZ(C,"SID",r.sid_);_.RZ(C,"RID",I);_.RZ(C,"AID",r.JSC$17312_lastArrayId_);We(r,C);r.httpHeadersOverwriteParam_&&r.JSC$17312_extraHeaders_&&Gk6(C,r.httpHeadersOverwriteParam_,r.JSC$17312_extraHeaders_);I=new Nw(r,r.JSC$17312_channelDebug_,r.sid_,I,r.JSC$17312_forwardChannelRetryCount_+1);r.httpHeadersOverwriteParam_===null&&(I.JSC$17293_extraHeaders_=r.JSC$17312_extraHeaders_);f&&
(r.JSC$17312_outgoingMaps_=f.JSC$17293_pendingMessages_.concat(r.JSC$17312_outgoingMaps_));f=Fm6(r,I,1E3);I.setTimeout(Math.round(r.JSC$17312_forwardChannelRequestTimeoutMs_*.5)+Math.round(r.JSC$17312_forwardChannelRequestTimeoutMs_*.5*Math.random()));xXY(r.forwardChannelRequestPool_,I);yks(I,C,f)},We=function(r,f){r.JSC$17312_extraParams_&&_.X0.forEach(r.JSC$17312_extraParams_,function(I,C){_.RZ(f,C,I)});
r.handler_&&_.I3B({},function(I,C){_.RZ(f,C,I)})},Fm6=function(r,f,I){I=Math.min(r.JSC$17312_outgoingMaps_.length,I);
var C=r.handler_?(0,_.gL)(r.handler_.JSC$17318_badMapError,r.handler_,r):null;a:{for(var Y=r.JSC$17312_outgoingMaps_,V=-1;;){var S=["count="+I];V==-1?I>0?(V=Y[0].JSC$17300_mapId,S.push("ofs="+V)):V=0:S.push("ofs="+V);for(var h=!0,w=0;w<I;w++){var n=Y[w].JSC$17300_mapId,d=Y[w].map;n-=V;if(n<0)V=Math.max(0,Y[w].JSC$17300_mapId-100),h=!1;else try{zms(d,S,"req"+n+"_")}catch(z){C&&C(d)}}if(h){C=S.join("&");break a}}C=void 0}r=r.JSC$17312_outgoingMaps_.splice(0,I);f.JSC$17293_pendingMessages_=r;return C},
trY=function(r){r.JSC$17312_backChannelRequest_||r.JSC$17312_backChannelTimerId_||(r.JSC$17312_backChannelAttemptId_=1,_.gi(r.JSC$17314_onStartBackChannelTimer_,r),r.JSC$17312_backChannelRetryCount_=0)},Y5B=function(r){if(r.JSC$17312_backChannelRequest_||r.JSC$17312_backChannelTimerId_||r.JSC$17312_backChannelRetryCount_>=3)return!1;
r.JSC$17312_channelDebug_.debug("Going to retry GET");r.JSC$17312_backChannelAttemptId_++;r.JSC$17312_backChannelTimerId_=gH((0,_.gL)(r.JSC$17314_onStartBackChannelTimer_,r),N8B(r,r.JSC$17312_backChannelRetryCount_));r.JSC$17312_backChannelRetryCount_++;return!0};
ce.prototype.JSC$17314_onStartBackChannelTimer_=function(){this.JSC$17312_backChannelTimerId_=null;T83(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17312_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17312_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17312_backChannelRequest_+" "+this.handshakeRttMs_);else{var r=2*this.handshakeRttMs_;this.JSC$17312_channelDebug_.info("BP detection timer enabled: "+r);this.bpDetectionTimerId_=gH((0,_.gL)(this.onBpDetectionTimer_,
this),r)}};
ce.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17312_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17312_backChannelRequest_.JSC$17293_xmlHttp_!=null){var r=this.JSC$17312_backChannelRequest_.JSC$17293_xmlHttp_.getResponseText();r&&this.JSC$17312_channelDebug_.warning("Timer should have been cancelled : "+r)}this.JSC$17312_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Mw(10);CC1(this);T83(this)}else this.JSC$17312_channelDebug_.warning("Invalid operation.")};
var DrB=function(r){r.bpDetectionTimerId_!=null&&(r.JSC$17312_channelDebug_.debug("Cancel the BP detection timer."),_.Yq.clearTimeout(r.bpDetectionTimerId_),r.bpDetectionTimerId_=null)},T83=function(r){r.JSC$17312_channelDebug_.debug("Creating new HttpRequest");
r.JSC$17312_backChannelRequest_=new Nw(r,r.JSC$17312_channelDebug_,r.sid_,"rpc",r.JSC$17312_backChannelAttemptId_);r.httpHeadersOverwriteParam_===null&&(r.JSC$17312_backChannelRequest_.JSC$17293_extraHeaders_=r.JSC$17312_extraHeaders_);r.JSC$17312_backChannelRequest_.JSC$17293_readyStateChangeThrottleMs_=0;var f=r.JSC$17312_backChannelUri_.clone();_.RZ(f,"RID","rpc");_.RZ(f,"SID",r.sid_);_.RZ(f,"AID",r.JSC$17312_lastArrayId_);_.RZ(f,"CI",r.enableStreaming_?"0":"1");!r.enableStreaming_&&r.longPollingTimeout_&&
_.RZ(f,"TO",r.longPollingTimeout_);_.RZ(f,"TYPE","xmlhttp");We(r,f);r.httpHeadersOverwriteParam_&&r.JSC$17312_extraHeaders_&&Gk6(f,r.httpHeadersOverwriteParam_,r.JSC$17312_extraHeaders_);r.backChannelRequestTimeoutMs_&&r.JSC$17312_backChannelRequest_.setTimeout(r.backChannelRequestTimeoutMs_);var I=r.JSC$17312_backChannelRequest_,C=r.JSC$17312_hostPrefix_;I.JSC$17293_type_=1;I.JSC$17293_baseUri_=_.IH(f.clone());I.JSC$17293_postData_=null;I.decodeChunks_=!0;Kdi(I,C);r.JSC$17312_channelDebug_.debug("New Request created")};
ce.prototype.JSC$17314_onBackChannelDead_=function(){this.JSC$17312_deadBackChannelTimerId_!=null&&(this.JSC$17312_deadBackChannelTimerId_=null,CC1(this),Y5B(this),Mw(19))};
var Ii6=function(r){r.JSC$17312_deadBackChannelTimerId_!=null&&(_.Yq.clearTimeout(r.JSC$17312_deadBackChannelTimerId_),r.JSC$17312_deadBackChannelTimerId_=null)},Bfi=function(r,f){r.JSC$17312_channelDebug_.debug("Request complete");
var I=null;if(r.JSC$17312_backChannelRequest_==f){Ii6(r);DrB(r);r.JSC$17312_backChannelRequest_=null;var C=2}else if(fi2(r.forwardChannelRequestPool_,f))I=f.JSC$17293_pendingMessages_,hm6(r.forwardChannelRequestPool_,f),C=1;else return;if(r.state_!=0)if(f.JSC$17293_successful_)C==1?(Ld2(f.JSC$17293_postData_?f.JSC$17293_postData_.length:0,Date.now()-f.JSC$17293_requestStartTime_,r.JSC$17312_forwardChannelRetryCount_),g3d(r)):trY(r);else{var Y=f.JSC$17293_lastStatusCode_,V=f.getLastError();if(V==3||
V==0&&Y>0)r.JSC$17312_channelDebug_.debug("Not retrying due to error type"),Y>200&&(r.errorResponseStatusCode_=f.JSC$17293_lastStatusCode_);else{r.JSC$17312_channelDebug_.debug(function(){return"Maybe retrying, last error: "+iVi(V,r.errorResponseStatusCode_)});
if(C==1&&$Xp(r,f)||C==2&&Y5B(r))return;r.JSC$17312_channelDebug_.debug("Exceeded max number of retries")}I&&I.length>0&&b6B(r.forwardChannelRequestPool_,I);r.JSC$17312_channelDebug_.debug("Error: HTTP request failed");switch(V){case 1:Pe(r,5);break;case 4:Pe(r,10);break;case 3:Pe(r,6);break;default:Pe(r,2)}}},N8B=function(r,f){var I=r.JSC$17312_baseRetryDelayMs_+Math.floor(Math.random()*r.JSC$17312_retryDelaySeedMs_);
r.isActive()||(r.JSC$17312_channelDebug_.debug("Inactive channel"),I*=2);return I*f};
ce.prototype.onInput_=function(r,f){for(var I=0;I<r.length;I++){var C=r[I];this.JSC$17312_lastArrayId_=C[0];C=C[1];if(this.state_==2)if(C[0]=="c"){this.sid_=C[1];this.JSC$17312_hostPrefix_=C[2];var Y=C[3];Y!=null&&(this.JSC$17314_channelVersion_=Y,this.JSC$17312_channelDebug_.info("VER="+this.JSC$17314_channelVersion_));Y=C[4];Y!=null&&(this.serverVersion_=Y,this.JSC$17312_channelDebug_.info("SVER="+this.serverVersion_));C=C[5];C!=null&&typeof C==="number"&&C>0&&(this.backChannelRequestTimeoutMs_=
C*=1.5,this.JSC$17312_channelDebug_.info("backChannelRequestTimeoutMs_="+C));if(C=f.JSC$17293_xmlHttp_){var V=SI(C,"X-Client-Wire-Protocol");V&&(Y=this.forwardChannelRequestPool_,!Y.requestPool_&&(_.pw(V,"spdy")||_.pw(V,"quic")||_.pw(V,"h2"))&&(Y.JSC$17303_maxSize_=Y.maxPoolSizeConfigured_,Y.requestPool_=new Set,Y.JSC$17303_request_&&(xXY(Y,Y.JSC$17303_request_),Y.JSC$17303_request_=null)));this.httpSessionIdParam_&&((C=SI(C,"X-HTTP-Session-Id"))?(this.httpSessionId_=C,_.RZ(this.JSC$17312_forwardChannelUri_,
this.httpSessionIdParam_,C)):this.JSC$17312_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17318_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-f.JSC$17293_requestStartTime_,this.JSC$17312_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));C=f;Y=Mr6(this,this.JSC$17312_supportsCrossDomainXhrs_?this.JSC$17312_hostPrefix_:null,this.JSC$17312_path_);this.JSC$17312_channelDebug_.debug("GetBackChannelUri: "+
Y);this.JSC$17312_backChannelUri_=Y;C.initialResponseDecoded_?(this.JSC$17312_channelDebug_.debug("Upgrade the handshake request to a backchannel."),hm6(this.forwardChannelRequestPool_,C),Y=C,(V=this.backChannelRequestTimeoutMs_)&&Y.setTimeout(V),Y.JSC$17293_watchDogTimerId_&&(QjB(Y),Ur7(Y)),this.JSC$17312_backChannelRequest_=C):trY(this);this.JSC$17312_outgoingMaps_.length>0&&g3d(this)}else C[0]!="stop"&&C[0]!="close"||Pe(this,7);else this.state_==3&&(C[0]=="stop"||C[0]=="close"?C[0]=="stop"?Pe(this,
7):this.disconnect():C[0]!="noop"&&this.handler_&&this.handler_.JSC$17318_channelHandleArray(C),this.JSC$17312_backChannelRetryCount_=0)}};
var Pe=function(r,f){r.JSC$17312_channelDebug_.info("Error code "+f);if(f==2){var I=(0,_.gL)(r.testNetworkCallback_,r),C=r.networkTestUrl_,Y=!C;C=new _.KA(C||"//www.google.com/images/cleardot.gif");_.Yq.location&&_.Yq.location.protocol=="http"||_.Ze(C,"https");_.IH(C);Y?pKs(C.toString(),I):n3i(C.toString(),I)}else Mw(2);r.onError_(f)};
ce.prototype.testNetworkCallback_=function(r){r?(this.JSC$17312_channelDebug_.info("Successfully pinged google.com"),Mw(2)):(this.JSC$17312_channelDebug_.info("Failed to ping google.com"),Mw(1))};
ce.prototype.onError_=function(r){this.JSC$17312_channelDebug_.debug("HttpChannel: error - "+r);this.state_=0;this.handler_&&this.handler_.JSC$17318_channelError(r);XKi(this);ai1(this)};
var XKi=function(r){r.state_=0;r.nonAckedMapsAtChannelClose_=[];if(r.handler_){var f=wKV(r.forwardChannelRequestPool_);if(f.length!=0||r.JSC$17312_outgoingMaps_.length!=0)r.JSC$17312_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+f.length+", outgoing: "+r.JSC$17312_outgoingMaps_.length}),_.YC(r.nonAckedMapsAtChannelClose_,f),_.YC(r.nonAckedMapsAtChannelClose_,r.JSC$17312_outgoingMaps_),r.forwardChannelRequestPool_.JSC$17303_pendingMessages_.length=0,_.f8(r.JSC$17312_outgoingMaps_),
r.JSC$17312_outgoingMaps_.length=0;
r.handler_.JSC$17318_channelClosed()}},chU=function(r){if(r.state_==0)return r.nonAckedMapsAtChannelClose_;
var f=[];_.YC(f,wKV(r.forwardChannelRequestPool_));_.YC(f,r.JSC$17312_outgoingMaps_);return f},Mr6=function(r,f,I){var C=_.Hh(I);
C.JSC$7932_domain_!=""?(f&&_.Gh(C,f+"."+C.JSC$7932_domain_),_.kk(C,C.JSC$7932_port_)):(C=_.Yq.location,C=Rh1(C.protocol,f?f+"."+C.hostname:C.hostname,+C.port,I));f=r.httpSessionIdParam_;I=r.httpSessionId_;f&&I&&_.RZ(C,f,I);_.RZ(C,"VER",r.JSC$17314_channelVersion_);We(r,C);return C},sj6=function(r,f,I){if(f&&!r.JSC$17312_supportsCrossDomainXhrs_)throw Error("wk");
f=r.usesFetchStreams_&&!r.JSC$17312_xmlHttpFactory_?new _.P7(new WX({streamBinaryChunks:I})):new _.P7(r.JSC$17312_xmlHttpFactory_);f.JSC$7695_withCredentials_=r.JSC$17312_supportsCrossDomainXhrs_;return f};
ce.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var Wm6=function(){};
_.l=Wm6.prototype;_.l.JSC$17318_channelOpened=function(){};
_.l.JSC$17318_channelHandleArray=function(){};
_.l.JSC$17318_channelError=function(){};
_.l.JSC$17318_channelClosed=function(){};
_.l.isActive=function(){return!0};
_.l.JSC$17318_badMapError=function(){};var Lm1=function(){},m7=function(r,f){_.zh.call(this);
this.JSC$17321_channel_=new ce(f);this.JSC$17321_url_=r;this.messageUrlParams_=f&&f.messageUrlParams||null;r=f&&f.messageHeaders||null;f&&f.clientProtocolHeaderRequired&&(r?_.X0.set(r,"X-Client-Protocol","webchannel"):r=_.X0.create("X-Client-Protocol","webchannel"));this.JSC$17321_channel_.JSC$17312_extraHeaders_=r;r=f&&f.initMessageHeaders||null;f&&f.messageContentType&&(r?_.X0.set(r,"X-WebChannel-Content-Type",f.messageContentType):r=_.X0.create("X-WebChannel-Content-Type",f.messageContentType));
f&&f.clientProfile&&(r?_.X0.set(r,"X-WebChannel-Client-Profile",f.clientProfile):r=_.X0.create("X-WebChannel-Client-Profile",f.clientProfile));this.JSC$17321_channel_.initHeaders_=r;(r=f&&f.httpHeadersOverwriteParam)&&!_.bU(r)&&(this.JSC$17321_channel_.httpHeadersOverwriteParam_=r);this.supportsCrossDomainXhr_=f&&f.supportsCrossDomainXhr||!1;this.sendRawJson_=f&&f.sendRawJson||!1;(f=f&&f.httpSessionIdParam)&&!_.bU(f)&&(this.JSC$17321_channel_.httpSessionIdParam_=f,_.X0.containsKey(this.messageUrlParams_,
f)&&_.X0.remove(this.messageUrlParams_,f));this.channelHandler_=new LZ(this)};
_.rh(m7,_.zh);m7.prototype.open=function(){this.JSC$17321_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17321_channel_.JSC$17312_supportsCrossDomainXhrs_=!0);this.JSC$17321_channel_.connect(this.JSC$17321_url_,this.messageUrlParams_||void 0)};
m7.prototype.close=function(){this.JSC$17321_channel_.disconnect()};
m7.prototype.send=function(r){var f=this.JSC$17321_channel_;if(typeof r==="string"){var I={};I.__data__=r;r=I}else this.sendRawJson_&&(I={},I.__data__=(0,_.FZ)(r),r=I);f.JSC$17312_outgoingMaps_.push(new Vr6(f.JSC$17312_nextMapId_++,r));f.state_==3&&g3d(f)};
m7.prototype.disposeInternal=function(){this.JSC$17321_channel_.handler_=null;delete this.channelHandler_;this.JSC$17321_channel_.disconnect();delete this.JSC$17321_channel_;m7.superClass_.disposeInternal.call(this)};
var mX6=function(r){$r1.call(this);r.__headers__&&(this.headers=r.__headers__,this.statusCode=r.__status__,delete r.__headers__,delete r.__status__);var f=r.__sm__;f?this.data=(this.metadataKey=_.X0.getAnyKey(f))?_.X0.get(f,this.metadataKey):f:this.data=r};
_.rh(mX6,$r1);var em6=function(r){FdB.call(this);this.status=1;this.errorCode=r};
_.rh(em6,FdB);var LZ=function(r){this.JSC$17328_channel_=r};
_.rh(LZ,Wm6);LZ.prototype.JSC$17318_channelOpened=function(){this.JSC$17328_channel_.dispatchEvent("w")};
LZ.prototype.JSC$17318_channelHandleArray=function(r){this.JSC$17328_channel_.dispatchEvent(new mX6(r))};
LZ.prototype.JSC$17318_channelError=function(r){this.JSC$17328_channel_.dispatchEvent(new em6(r))};
LZ.prototype.JSC$17318_channelClosed=function(){this.JSC$17328_channel_.dispatchEvent("x")};
var Jhs=function(r,f){this.transportChannel_=r;this.JSC$17331_channel_=f},jGB=function(r){return chU(r.JSC$17331_channel_).map(function(f){var I=r.transportChannel_;
f=f.map;"__data__"in f?(f=f.__data__,I=I.sendRawJson_?(0,_.Ja_)(f):f):I=f;return I})};var eV=function(r){H6q.dispatchEvent(new i63(H6q,r))},H6q=new _.zh,i63=function(r){_.wi.call(this,"statevent",r)};
_.t(i63,_.wi);var J0=function(r,f,I,C,Y){this.JSC$17336_channel_=r;this.JSC$17336_channelDebug_=f;this.sid_=I;this.JSC$17336_rid_=C;this.JSC$17336_retryId_=Y||1;this.timeout_=45E3;this.JSC$17336_eventHandler_=new _.B8(this);this.pollingTimer_=new _.kf;this.pollingTimer_.setInterval(250)};
_.l=J0.prototype;_.l.JSC$17338_extraHeaders_=null;_.l.JSC$17338_successful_=!1;_.l.JSC$17338_watchDogTimerId_=null;_.l.JSC$17338_watchDogTimeoutTime_=null;_.l.JSC$17338_requestStartTime_=null;_.l.JSC$17338_type_=null;_.l.JSC$17338_baseUri_=null;_.l.JSC$17338_requestUri_=null;_.l.JSC$17338_postData_=null;_.l.JSC$17338_xmlHttp_=null;_.l.JSC$17338_xmlHttpChunkStart_=0;_.l.trident_=null;_.l.JSC$17338_verb_=null;_.l.JSC$17338_lastError_=null;_.l.JSC$17338_lastStatusCode_=-1;_.l.sendClose_=!0;
_.l.JSC$17338_cancelled_=!1;_.l.JSC$17338_readyStateChangeThrottleMs_=0;_.l.JSC$17338_readyStateChangeThrottle_=null;var RmV=function(r,f){switch(r){case 0:return"Non-200 return code ("+f+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},v3U={},Kmp={};
J0.prototype.setTimeout=function(r){this.timeout_=r};
var UXB=function(r,f,I){r.JSC$17338_type_=1;r.JSC$17338_baseUri_=_.IH(f.clone());r.JSC$17338_postData_=I;r.decodeChunks_=!0;yhU(r,null)},sGU=function(r,f,I,C,Y){r.JSC$17338_type_=1;
r.JSC$17338_baseUri_=_.IH(f.clone());r.JSC$17338_postData_=null;r.decodeChunks_=I;Y&&(r.sendClose_=!1);yhU(r,C)},yhU=function(r,f){r.JSC$17338_requestStartTime_=Date.now();
O62(r);r.JSC$17338_requestUri_=r.JSC$17338_baseUri_.clone();fm(r.JSC$17338_requestUri_,"t",r.JSC$17336_retryId_);r.JSC$17338_xmlHttpChunkStart_=0;r.JSC$17338_xmlHttp_=r.JSC$17336_channel_.JSC$17345_createXhrIo(r.JSC$17336_channel_.JSC$17345_shouldUseSecondaryDomains()?f:null);r.JSC$17338_readyStateChangeThrottleMs_>0&&(r.JSC$17338_readyStateChangeThrottle_=new _.Gk((0,_.gL)(r.JSC$17338_xmlHttpHandler_,r,r.JSC$17338_xmlHttp_),r.JSC$17338_readyStateChangeThrottleMs_));r.JSC$17336_eventHandler_.listen(r.JSC$17338_xmlHttp_,
"readystatechange",r.JSC$17338_readyStateChangeHandler_);f=r.JSC$17338_extraHeaders_?_.X0.clone(r.JSC$17338_extraHeaders_):{};r.JSC$17338_postData_?(r.JSC$17338_verb_="POST",f["Content-Type"]="application/x-www-form-urlencoded",r.JSC$17338_xmlHttp_.send(r.JSC$17338_requestUri_,r.JSC$17338_verb_,r.JSC$17338_postData_,f)):(r.JSC$17338_verb_="GET",r.sendClose_&&!_.VF&&(f.Connection="close"),r.JSC$17338_xmlHttp_.send(r.JSC$17338_requestUri_,r.JSC$17338_verb_,null,f));r.JSC$17336_channel_.notifyServerReachabilityEvent(1);
f=r.JSC$17336_channelDebug_;var I=r.JSC$17338_postData_;if(I){var C="";I=I.split("&");for(var Y=0;Y<I.length;Y++){var V=I[Y].split("=");if(V.length>1){var S=V[0];V=V[1];var h=S.split("_");C=h.length>=2&&h[1]=="type"?C+(S+"="+V+"&"):C+(S+"=redacted&")}}}else C=null;f.info("XMLHTTP REQ ("+r.JSC$17336_rid_+") [attempt "+r.JSC$17336_retryId_+"]: "+r.JSC$17338_verb_+"\n"+r.JSC$17338_requestUri_+"\n"+C)};
J0.prototype.JSC$17338_readyStateChangeHandler_=function(r){r=r.target;var f=this.JSC$17338_readyStateChangeThrottle_;f&&_.tA(r)==3?(this.JSC$17336_channelDebug_.debug("Throttling readystatechange."),f.fire()):this.JSC$17338_xmlHttpHandler_(r)};
J0.prototype.JSC$17338_xmlHttpHandler_=function(r){try{if(r==this.JSC$17338_xmlHttp_)a:{var f=_.tA(this.JSC$17338_xmlHttp_),I=this.JSC$17338_xmlHttp_.JSC$7695_lastErrorCode_,C=this.JSC$17338_xmlHttp_.getStatus();if(_.VF&&!_.Ev("420+")){if(f<4)break a}else if(f<3||f==3&&!this.JSC$17338_xmlHttp_.getResponseText())break a;this.JSC$17338_cancelled_||f!=4||I==7||(I==8||C<=0?this.JSC$17336_channel_.notifyServerReachabilityEvent(3):this.JSC$17336_channel_.notifyServerReachabilityEvent(2));o36(this);var Y=
this.JSC$17338_xmlHttp_.getStatus();this.JSC$17338_lastStatusCode_=Y;var V=this.JSC$17338_xmlHttp_.getResponseText();V||this.JSC$17336_channelDebug_.debug("No response text for uri "+this.JSC$17338_requestUri_+" status "+Y);this.JSC$17338_successful_=Y==200;this.JSC$17336_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17336_rid_+") [ attempt "+this.JSC$17336_retryId_+"]: "+this.JSC$17338_verb_+"\n"+this.JSC$17338_requestUri_+"\n"+f+" "+Y);if(this.JSC$17338_successful_){f==4&&jV(this);if(this.decodeChunks_){for(r=
!0;!this.JSC$17338_cancelled_&&this.JSC$17338_xmlHttpChunkStart_<V.length;){var S=QGB(this,V);if(S==Kmp){f==4&&(this.JSC$17338_lastError_=4,eV(15),r=!1);He(this.JSC$17336_channelDebug_,this.JSC$17336_rid_,null,"[Incomplete Response]");break}else if(S==v3U){this.JSC$17338_lastError_=4;eV(16);He(this.JSC$17336_channelDebug_,this.JSC$17336_rid_,V,"[Invalid Chunk]");r=!1;break}else He(this.JSC$17336_channelDebug_,this.JSC$17336_rid_,S,null),AhV(this,S)}f==4&&V.length==0&&(this.JSC$17338_lastError_=1,
eV(17),r=!1);this.JSC$17338_successful_=this.JSC$17338_successful_&&r;r||(He(this.JSC$17336_channelDebug_,this.JSC$17336_rid_,V,"[Invalid Chunked Response]"),jV(this),Z6V(this))}else He(this.JSC$17336_channelDebug_,this.JSC$17336_rid_,V,null),AhV(this,V);this.JSC$17338_successful_&&!this.JSC$17338_cancelled_&&(f==4?this.JSC$17336_channel_.JSC$17345_onRequestComplete(this):(this.JSC$17338_successful_=!1,O62(this)))}else Y==400&&V.indexOf("Unknown SID")>0?(this.JSC$17338_lastError_=3,eV(13),this.JSC$17336_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17336_rid_+")")):(this.JSC$17338_lastError_=0,eV(14),this.JSC$17336_channelDebug_.warning("XMLHTTP Bad status "+Y+" ("+this.JSC$17336_rid_+")")),jV(this),Z6V(this)}else this.JSC$17336_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(h){this.JSC$17336_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var QGB=function(r,f){var I=r.JSC$17338_xmlHttpChunkStart_,C=f.indexOf("\n",I);if(C==-1)return Kmp;I=Number(f.substring(I,C));if(isNaN(I))return v3U;C+=1;if(C+I>f.length)return Kmp;f=f.slice(C,C+I);r.JSC$17338_xmlHttpChunkStart_=C+I;return f};
J0.prototype.cancel=function(){this.JSC$17338_cancelled_=!0;jV(this)};
var O62=function(r){r.JSC$17338_watchDogTimeoutTime_=Date.now()+r.timeout_;G83(r,r.timeout_)},G83=function(r,f){if(r.JSC$17338_watchDogTimerId_!=null)throw Error("vk");
r.JSC$17338_watchDogTimerId_=N0((0,_.gL)(r.JSC$17338_onWatchDogTimeout_,r),f)},o36=function(r){r.JSC$17338_watchDogTimerId_&&(_.Yq.clearTimeout(r.JSC$17338_watchDogTimerId_),r.JSC$17338_watchDogTimerId_=null)};
J0.prototype.JSC$17338_onWatchDogTimeout_=function(){this.JSC$17338_watchDogTimerId_=null;var r=Date.now();r-this.JSC$17338_watchDogTimeoutTime_>=0?(this.JSC$17336_channelDebug_.info("TIMEOUT: "+this.JSC$17338_requestUri_),this.JSC$17338_type_!=2&&this.JSC$17336_channel_.notifyServerReachabilityEvent(3),jV(this),this.JSC$17338_lastError_=2,eV(18),Z6V(this)):(this.JSC$17336_channelDebug_.warning("WatchDog timer called too early"),G83(this,this.JSC$17338_watchDogTimeoutTime_-r))};
var Z6V=function(r){r.JSC$17336_channel_.JSC$17345_isClosed()||r.JSC$17338_cancelled_||r.JSC$17336_channel_.JSC$17345_onRequestComplete(r)},jV=function(r){o36(r);
_.Z8(r.JSC$17338_readyStateChangeThrottle_);r.JSC$17338_readyStateChangeThrottle_=null;r.pollingTimer_.stop();r.JSC$17336_eventHandler_.removeAll();if(r.JSC$17338_xmlHttp_){var f=r.JSC$17338_xmlHttp_;r.JSC$17338_xmlHttp_=null;f.abort();f.dispose()}r.trident_&&(r.trident_=null)};
J0.prototype.getLastError=function(){return this.JSC$17338_lastError_};
var AhV=function(r,f){try{r.JSC$17336_channel_.JSC$17345_onRequestData(r,f),r.JSC$17336_channel_.notifyServerReachabilityEvent(4)}catch(I){}};var He=function(r,f,I,C){var Y=r.info;a:if(I&&I!="y2f%"){try{var V=JSON.parse(I);if(V)for(var S=0;S<V.length;S++)if(Array.isArray(V[S])){var h=V[S];if(!(h.length<2)){var w=h[1];if(Array.isArray(w)&&!(w.length<1)){var n=w[0];if(n!="noop"&&n!="stop")for(var d=1;d<w.length;d++)w[d]=""}}}var z=(0,_.FZ)(V);break a}catch(g){r.debug("Exception parsing expected JS array - probably was not JS");z=I;break a}z=void 0}else z=I;Y.call(r,"XMLHTTP TEXT ("+f+"): "+z+(C?" "+C:""))};
$e.prototype.debug=function(r){this.info(r)};
$e.prototype.info=function(){};
$e.prototype.warning=function(){};var k86=function(r,f){this.JSC$17343_channel_=r;this.JSC$17343_channelDebug_=f;this.JSC$17343_parser_=new dH};
_.l=k86.prototype;_.l.JSC$17345_extraHeaders_=null;_.l.JSC$17345_request_=null;_.l.receivedIntermediateResult_=!1;_.l.JSC$17345_path_=null;_.l.state_=null;_.l.JSC$17345_lastStatusCode_=-1;_.l.JSC$17345_hostPrefix_=null;_.l.blockedPrefix_=null;
_.l.connect=function(r){this.JSC$17345_path_=r;r=B86(this.JSC$17343_channel_,this.JSC$17345_path_);eV(3);Date.now();var f=this.JSC$17343_channel_.firstTestResults_;f!=null?(this.JSC$17345_hostPrefix_=f[0],(this.blockedPrefix_=f[1])?(this.state_=1,q5p(this)):(this.state_=2,uqq(this))):(fm(r,"MODE","init"),this.JSC$17345_request_=new J0(this,this.JSC$17343_channelDebug_),this.JSC$17345_request_.JSC$17338_extraHeaders_=this.JSC$17345_extraHeaders_,sGU(this.JSC$17345_request_,r,!1,null,!0),this.state_=
0)};
var q5p=function(r){var f=DXi(r.JSC$17343_channel_,r.blockedPrefix_,"/mail/images/cleardot.gif");_.IH(f);L0U(f.toString(),5E3,(0,_.gL)(r.checkBlockedCallback_,r),3,2E3);r.notifyServerReachabilityEvent(1)};
k86.prototype.checkBlockedCallback_=function(r){if(r)this.state_=2,uqq(this);else{eV(4);var f=this.JSC$17343_channel_;f.JSC$17346_channelDebug_.debug("Test Connection Blocked");f.JSC$17350_lastStatusCode_=f.connectionTest_.JSC$17345_lastStatusCode_;i$(f,9)}r&&this.notifyServerReachabilityEvent(2)};
var uqq=function(r){r.JSC$17343_channelDebug_.debug("TestConnection: starting stage 2");var f=r.JSC$17343_channel_.secondTestResults_;f!=null?(r.JSC$17343_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+f?"Buffered":"Unbuffered"),eV(5),f?(eV(11),R7(r.JSC$17343_channel_,r,!1)):(eV(12),R7(r.JSC$17343_channel_,r,!0))):(r.JSC$17345_request_=new J0(r,r.JSC$17343_channelDebug_),r.JSC$17345_request_.JSC$17338_extraHeaders_=r.JSC$17345_extraHeaders_,f=rP3(r.JSC$17343_channel_,
r.JSC$17345_hostPrefix_,r.JSC$17345_path_),eV(5),fm(f,"TYPE","xmlhttp"),sGU(r.JSC$17345_request_,f,!1,r.JSC$17345_hostPrefix_,!1))};
_.l=k86.prototype;_.l.JSC$17345_createXhrIo=function(r){return this.JSC$17343_channel_.JSC$17345_createXhrIo(r)};
_.l.abort=function(){this.JSC$17345_request_&&(this.JSC$17345_request_.cancel(),this.JSC$17345_request_=null);this.JSC$17345_lastStatusCode_=-1};
_.l.JSC$17345_isClosed=function(){return!1};
_.l.JSC$17345_onRequestData=function(r,f){this.JSC$17345_lastStatusCode_=r.JSC$17338_lastStatusCode_;if(this.state_==0)if(this.JSC$17343_channelDebug_.debug("TestConnection: Got data for stage 1"),f){try{var I=this.JSC$17343_parser_.parse(f)}catch(C){f4i(this.JSC$17343_channel_,this);return}this.JSC$17345_hostPrefix_=I[0];this.blockedPrefix_=I[1]}else this.JSC$17343_channelDebug_.debug("TestConnection: Null responseText"),f4i(this.JSC$17343_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(eV(7),Date.now()):f=="11111"?(eV(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17345_lastStatusCode_=200,this.JSC$17345_request_.cancel(),this.JSC$17343_channelDebug_.debug("Test connection succeeded; using streaming connection"),eV(12),R7(this.JSC$17343_channel_,this,!0)):(eV(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.l.JSC$17345_onRequestComplete=function(){this.JSC$17345_lastStatusCode_=this.JSC$17345_request_.JSC$17338_lastStatusCode_;this.JSC$17345_request_.JSC$17338_successful_?this.state_==0?(this.JSC$17343_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,q5p(this)):(this.state_=2,uqq(this))):this.state_==2&&(this.JSC$17343_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17343_channelDebug_.debug("Test connection succeeded; using streaming connection"),
eV(12),R7(this.JSC$17343_channel_,this,!0)):(this.JSC$17343_channelDebug_.debug("Test connection failed; not using streaming"),eV(11),R7(this.JSC$17343_channel_,this,!1))):(this.JSC$17343_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?eV(9):this.state_==2&&eV(10),f4i(this.JSC$17343_channel_,this,this.JSC$17345_request_.getLastError()))};
_.l.JSC$17345_shouldUseSecondaryDomains=function(){return this.JSC$17343_channel_.JSC$17345_shouldUseSecondaryDomains()};
_.l.isActive=function(){return this.JSC$17343_channel_.isActive()};
_.l.notifyServerReachabilityEvent=function(r){this.JSC$17343_channel_.notifyServerReachabilityEvent(r)};var ve=function(r,f,I){this.state_=1;this.JSC$17346_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17346_channelDebug_=new $e;this.JSC$17346_parser_=new dH;this.firstTestResults_=r||null;this.secondTestResults_=f!=null?f:null;this.asyncTest_=I||!1},I46=function(r,f){this.JSC$17348_mapId=r;
this.map=f;this.context=null};
_.l=ve.prototype;_.l.JSC$17350_extraHeaders_=null;_.l.JSC$17350_extraParams_=null;_.l.forwardChannelRequest_=null;_.l.JSC$17350_backChannelRequest_=null;_.l.JSC$17350_path_=null;_.l.JSC$17350_forwardChannelUri_=null;_.l.JSC$17350_backChannelUri_=null;_.l.JSC$17350_hostPrefix_=null;_.l.JSC$17350_nextRid_=0;_.l.JSC$17350_nextMapId_=0;_.l.handler_=null;_.l.JSC$17350_forwardChannelTimerId_=null;_.l.JSC$17350_backChannelTimerId_=null;_.l.JSC$17350_deadBackChannelTimerId_=null;_.l.connectionTest_=null;
_.l.useChunked_=null;_.l.JSC$17350_lastArrayId_=-1;_.l.JSC$17350_lastPostResponseArrayId_=-1;_.l.JSC$17350_lastStatusCode_=-1;_.l.JSC$17350_forwardChannelRetryCount_=0;_.l.JSC$17350_backChannelRetryCount_=0;_.l.JSC$17350_channelVersion_=8;var CN2={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},YKV=function(r,f,I,C){_.wi.call(this,"timingevent",r);this.size=f;this.rtt=I;this.retries=C};
_.rh(YKV,_.wi);var l4V=function(r){_.wi.call(this,"serverreachability",r)};
_.rh(l4V,_.wi);ve.prototype.connect=function(r,f,I,C,Y){this.JSC$17346_channelDebug_.debug("connect()");eV(0);this.JSC$17350_path_=f;this.JSC$17350_extraParams_=I||{};C&&Y!==void 0&&(this.JSC$17350_extraParams_.OSID=C,this.JSC$17350_extraParams_.OAID=Y);this.asyncTest_?(N0((0,_.gL)(this.connectTest_,this,r),100),VZU(this)):this.connectTest_(r)};
ve.prototype.disconnect=function(){this.JSC$17346_channelDebug_.debug("disconnect()");E7Y(this);if(this.state_==3){var r=this.JSC$17350_nextRid_++,f=this.JSC$17350_forwardChannelUri_.clone();_.RZ(f,"SID",this.sid_);_.RZ(f,"RID",r);_.RZ(f,"TYPE","terminate");KZ(this,f);r=new J0(this,this.JSC$17346_channelDebug_,this.sid_,r);r.JSC$17338_type_=2;r.JSC$17338_baseUri_=_.IH(f.clone());(new Image).src=r.JSC$17338_baseUri_.toString();r.JSC$17338_requestStartTime_=Date.now();O62(r)}SKY(this)};
ve.prototype.connectTest_=function(r){this.JSC$17346_channelDebug_.debug("connectTest_()");this.connectionTest_=new k86(this,this.JSC$17346_channelDebug_);this.connectionTest_.JSC$17345_extraHeaders_=this.JSC$17350_extraHeaders_;this.connectionTest_.JSC$17343_parser_=this.JSC$17346_parser_;this.connectionTest_.connect(r)};
var VZU=function(r){r.JSC$17346_channelDebug_.debug("connectChannel_()");r.JSC$17350_ensureInState_(1,0);r.JSC$17350_forwardChannelUri_=B86(r,r.JSC$17350_path_);xs3(r)},E7Y=function(r){r.connectionTest_&&(r.connectionTest_.abort(),r.connectionTest_=null);
r.JSC$17350_backChannelRequest_&&(r.JSC$17350_backChannelRequest_.cancel(),r.JSC$17350_backChannelRequest_=null);r.JSC$17350_backChannelTimerId_&&(_.Yq.clearTimeout(r.JSC$17350_backChannelTimerId_),r.JSC$17350_backChannelTimerId_=null);hbV(r);r.forwardChannelRequest_&&(r.forwardChannelRequest_.cancel(),r.forwardChannelRequest_=null);r.JSC$17350_forwardChannelTimerId_&&(_.Yq.clearTimeout(r.JSC$17350_forwardChannelTimerId_),r.JSC$17350_forwardChannelTimerId_=null)},wq2=function(r,f){if(r.state_==0)throw Error("yk");
r.JSC$17346_outgoingMaps_.length==1E3&&r.JSC$17346_parser_.stringify(f);r.JSC$17346_outgoingMaps_.push(new I46(r.JSC$17350_nextMapId_++,f));r.state_!=2&&r.state_!=3||xs3(r)};
ve.prototype.JSC$17345_isClosed=function(){return this.state_==0};
ve.prototype.getState=function(){return this.state_};
var xs3=function(r){r.forwardChannelRequest_||r.JSC$17350_forwardChannelTimerId_||(r.JSC$17350_forwardChannelTimerId_=N0((0,_.gL)(r.JSC$17350_onStartForwardChannelTimer_,r),0),r.JSC$17350_forwardChannelRetryCount_=0)};
ve.prototype.JSC$17350_onStartForwardChannelTimer_=function(r){this.JSC$17350_forwardChannelTimerId_=null;b76(this,r)};
var b76=function(r,f){r.JSC$17346_channelDebug_.debug("startForwardChannel_");if(r.state_==1){if(!f){r.JSC$17346_channelDebug_.debug("open_()");r.JSC$17350_nextRid_=Math.floor(Math.random()*1E5);f=r.JSC$17350_nextRid_++;var I=new J0(r,r.JSC$17346_channelDebug_,"",f);I.JSC$17338_extraHeaders_=r.JSC$17350_extraHeaders_;var C=pqq(r),Y=r.JSC$17350_forwardChannelUri_.clone();_.RZ(Y,"RID",f);_.RZ(Y,"CVER","1");KZ(r,Y);UXB(I,Y,C);r.forwardChannelRequest_=I;r.state_=2}}else r.state_==3&&(f?n76(r,f):r.JSC$17346_outgoingMaps_.length==
0?r.JSC$17346_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):r.forwardChannelRequest_||(n76(r),r.JSC$17346_channelDebug_.debug("startForwardChannel_ finished, sent request")))},n76=function(r,f){if(f)if(r.JSC$17350_channelVersion_>6){r.JSC$17346_outgoingMaps_=r.pendingMaps_.concat(r.JSC$17346_outgoingMaps_);
r.pendingMaps_.length=0;var I=r.JSC$17350_nextRid_-1;f=pqq(r)}else I=f.JSC$17336_rid_,f=f.JSC$17338_postData_;else I=r.JSC$17350_nextRid_++,f=pqq(r);var C=r.JSC$17350_forwardChannelUri_.clone();_.RZ(C,"SID",r.sid_);_.RZ(C,"RID",I);_.RZ(C,"AID",r.JSC$17350_lastArrayId_);KZ(r,C);I=new J0(r,r.JSC$17346_channelDebug_,r.sid_,I,r.JSC$17350_forwardChannelRetryCount_+1);I.JSC$17338_extraHeaders_=r.JSC$17350_extraHeaders_;I.setTimeout(1E4+Math.round(1E4*Math.random()));r.forwardChannelRequest_=I;UXB(I,C,f)},
KZ=function(r,f){r.handler_&&(r=r.handler_.JSC$17357_getAdditionalParams())&&_.X0.forEach(r,function(I,C){_.RZ(f,C,I)})},pqq=function(r){var f=Math.min(r.JSC$17346_outgoingMaps_.length,1E3),I=["count="+f];
if(r.JSC$17350_channelVersion_>6&&f>0){var C=r.JSC$17346_outgoingMaps_[0].JSC$17348_mapId;I.push("ofs="+C)}else C=0;for(var Y={},V=0;V<f;Y={mapId$jscomp$3:void 0},V++){Y.mapId$jscomp$3=r.JSC$17346_outgoingMaps_[V].JSC$17348_mapId;var S=r.JSC$17346_outgoingMaps_[V].map;Y.mapId$jscomp$3=r.JSC$17350_channelVersion_<=6?V:Y.mapId$jscomp$3-C;try{_.X0.forEach(S,function(h){return function(w,n){I.push("req"+h.mapId$jscomp$3+"_"+n+"="+encodeURIComponent(w))}}(Y))}catch(h){I.push("req"+Y.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}r.pendingMaps_=r.pendingMaps_.concat(r.JSC$17346_outgoingMaps_.splice(0,f));
return I.join("&")},dsV=function(r){r.JSC$17350_backChannelRequest_||r.JSC$17350_backChannelTimerId_||(r.JSC$17350_backChannelAttemptId_=1,r.JSC$17350_backChannelTimerId_=N0((0,_.gL)(r.JSC$17350_onStartBackChannelTimer_,r),0),r.JSC$17350_backChannelRetryCount_=0)},MZp=function(r){if(r.JSC$17350_backChannelRequest_||r.JSC$17350_backChannelTimerId_||r.JSC$17350_backChannelRetryCount_>=3)return!1;
r.JSC$17346_channelDebug_.debug("Going to retry GET");r.JSC$17350_backChannelAttemptId_++;r.JSC$17350_backChannelTimerId_=N0((0,_.gL)(r.JSC$17350_onStartBackChannelTimer_,r),zbs(r,r.JSC$17350_backChannelRetryCount_));r.JSC$17350_backChannelRetryCount_++;return!0};
ve.prototype.JSC$17350_onStartBackChannelTimer_=function(){this.JSC$17350_backChannelTimerId_=null;this.JSC$17346_channelDebug_.debug("Creating new HttpRequest");this.JSC$17350_backChannelRequest_=new J0(this,this.JSC$17346_channelDebug_,this.sid_,"rpc",this.JSC$17350_backChannelAttemptId_);this.JSC$17350_backChannelRequest_.JSC$17338_extraHeaders_=this.JSC$17350_extraHeaders_;this.JSC$17350_backChannelRequest_.JSC$17338_readyStateChangeThrottleMs_=0;var r=this.JSC$17350_backChannelUri_.clone();_.RZ(r,
"RID","rpc");_.RZ(r,"SID",this.sid_);_.RZ(r,"CI",this.useChunked_?"0":"1");_.RZ(r,"AID",this.JSC$17350_lastArrayId_);KZ(this,r);_.RZ(r,"TYPE","xmlhttp");sGU(this.JSC$17350_backChannelRequest_,r,!0,this.JSC$17350_hostPrefix_,!1);this.JSC$17346_channelDebug_.debug("New Request created")};
var R7=function(r,f,I){r.JSC$17346_channelDebug_.debug("Test Connection Finished");r.useChunked_=r.secondTestResults_==null?I:!r.secondTestResults_;r.JSC$17350_lastStatusCode_=f.JSC$17345_lastStatusCode_;r.asyncTest_||VZU(r)},f4i=function(r,f){r.JSC$17346_channelDebug_.debug("Test Connection Failed");
r.JSC$17350_lastStatusCode_=f.JSC$17345_lastStatusCode_;i$(r,2)};
ve.prototype.JSC$17345_onRequestData=function(r,f){if(this.state_!=0&&(this.JSC$17350_backChannelRequest_==r||this.forwardChannelRequest_==r))if(this.JSC$17350_lastStatusCode_=r.JSC$17338_lastStatusCode_,this.forwardChannelRequest_==r&&this.state_==3)if(this.JSC$17350_channelVersion_>7){try{var I=this.JSC$17346_parser_.parse(f)}catch(C){I=null}if(Array.isArray(I)&&I.length==3)if(f=I,f[0]==0)a:if(this.JSC$17346_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17350_backChannelTimerId_)this.JSC$17346_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17350_backChannelRequest_)if(this.JSC$17350_backChannelRequest_.JSC$17338_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17338_requestStartTime_)hbV(this),this.JSC$17350_backChannelRequest_.cancel(),this.JSC$17350_backChannelRequest_=null;else break a;else this.JSC$17346_channelDebug_.warning("We do not have a BackChannel established");MZp(this);eV(19)}else this.JSC$17350_lastPostResponseArrayId_=f[1],r=this.JSC$17350_lastPostResponseArrayId_-this.JSC$17350_lastArrayId_,0<
r&&(f=f[2],this.JSC$17346_channelDebug_.debug(f+" bytes (in "+r+" arrays) are outstanding on the BackChannel"),f<37500&&this.useChunked_&&this.JSC$17350_backChannelRetryCount_==0&&!this.JSC$17350_deadBackChannelTimerId_&&(this.JSC$17350_deadBackChannelTimerId_=N0((0,_.gL)(this.JSC$17350_onBackChannelDead_,this),6E3)));else this.JSC$17346_channelDebug_.debug("Bad POST response data returned"),i$(this,11)}else f!="y2f%"&&(this.JSC$17346_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
i$(this,11));else this.JSC$17350_backChannelRequest_==r&&hbV(this),_.bU(f)||(r=this.JSC$17346_parser_.parse(f),this.onInput_(r))};
ve.prototype.JSC$17350_onBackChannelDead_=function(){this.JSC$17350_deadBackChannelTimerId_!=null&&(this.JSC$17350_deadBackChannelTimerId_=null,this.JSC$17350_backChannelRequest_.cancel(),this.JSC$17350_backChannelRequest_=null,MZp(this),eV(20))};
var hbV=function(r){r.JSC$17350_deadBackChannelTimerId_!=null&&(_.Yq.clearTimeout(r.JSC$17350_deadBackChannelTimerId_),r.JSC$17350_deadBackChannelTimerId_=null)};
ve.prototype.JSC$17345_onRequestComplete=function(r){this.JSC$17346_channelDebug_.debug("Request complete");if(this.JSC$17350_backChannelRequest_==r){hbV(this);this.JSC$17350_backChannelRequest_=null;var f=2}else if(this.forwardChannelRequest_==r)this.forwardChannelRequest_=null,f=1;else return;this.JSC$17350_lastStatusCode_=r.JSC$17338_lastStatusCode_;if(this.state_!=0)if(r.JSC$17338_successful_)if(f==1){f=r.JSC$17338_postData_?r.JSC$17338_postData_.length:0;r=Date.now()-r.JSC$17338_requestStartTime_;
var I=H6q;I.dispatchEvent(new YKV(I,f,r,this.JSC$17350_forwardChannelRetryCount_));xs3(this);this.handler_&&this.handler_.JSC$17357_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else dsV(this);else{I=r.getLastError();if(I==3||I==7||I==0&&this.JSC$17350_lastStatusCode_>0)this.JSC$17346_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17346_channelDebug_.debug("Maybe retrying, last error: "+RmV(I,this.JSC$17350_lastStatusCode_));var C;if(C=f==1)this.forwardChannelRequest_||
this.JSC$17350_forwardChannelTimerId_||this.state_==1||this.JSC$17350_forwardChannelRetryCount_>=2?C=!1:(this.JSC$17346_channelDebug_.debug("Going to retry POST"),this.JSC$17350_forwardChannelTimerId_=N0((0,_.gL)(this.JSC$17350_onStartForwardChannelTimer_,this,r),zbs(this,this.JSC$17350_forwardChannelRetryCount_)),this.JSC$17350_forwardChannelRetryCount_++,C=!0);if(C||f==2&&MZp(this))return;this.JSC$17346_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17346_channelDebug_.debug("Error: HTTP request failed");
switch(I){case 1:i$(this,5);break;case 4:i$(this,10);break;case 3:i$(this,6);break;case 7:i$(this,12);break;default:i$(this,2)}}};
var zbs=function(r,f){var I=5E3+Math.floor(Math.random()*1E4);r.isActive()||(r.JSC$17346_channelDebug_.debug("Inactive channel"),I*=2);return I*f};
ve.prototype.onInput_=function(r){for(var f=0;f<r.length;f++){var I=r[f];this.JSC$17350_lastArrayId_=I[0];I=I[1];this.state_==2?I[0]=="c"?(this.sid_=I[1],this.JSC$17350_hostPrefix_=I[2],I=I[3],I!=null?this.JSC$17350_channelVersion_=I:this.JSC$17350_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17357_channelOpened(),this.JSC$17350_backChannelUri_=rP3(this,this.JSC$17350_hostPrefix_,this.JSC$17350_path_),dsV(this)):I[0]=="stop"&&i$(this,7):this.state_==3&&(I[0]=="stop"?i$(this,7):
I[0]!="noop"&&this.handler_&&this.handler_.JSC$17357_channelHandleArray(I),this.JSC$17350_backChannelRetryCount_=0)}};
ve.prototype.JSC$17350_ensureInState_=function(r){if(!_.Am(arguments,this.state_))throw Error("zk`"+this.state_);};
var i$=function(r,f){r.JSC$17346_channelDebug_.info("Error code "+f);if(f==2||f==9){var I=null;r.handler_&&(I=null);var C=(0,_.gL)(r.testGoogleComCallback_,r);I||(I=new _.KA("//www.google.com/images/cleardot.gif"),_.IH(I));W0p(I.toString(),1E4,C)}else eV(2);r.onError_(f)};
ve.prototype.testGoogleComCallback_=function(r){r?(this.JSC$17346_channelDebug_.info("Successfully pinged google.com"),eV(2)):(this.JSC$17346_channelDebug_.info("Failed to ping google.com"),eV(1),this.onError_(8))};
ve.prototype.onError_=function(r){this.JSC$17346_channelDebug_.debug("HttpChannel: error - "+r);this.state_=0;this.handler_&&this.handler_.JSC$17357_channelError(r);SKY(this);E7Y(this)};
var SKY=function(r){r.state_=0;r.JSC$17350_lastStatusCode_=-1;if(r.handler_)if(r.pendingMaps_.length==0&&r.JSC$17346_outgoingMaps_.length==0)r.handler_.JSC$17357_channelClosed();else{r.JSC$17346_channelDebug_.debug("Number of undelivered maps, pending: "+r.pendingMaps_.length+", outgoing: "+r.JSC$17346_outgoingMaps_.length);var f=_.f8(r.pendingMaps_),I=_.f8(r.JSC$17346_outgoingMaps_);r.pendingMaps_.length=0;r.JSC$17346_outgoingMaps_.length=0;r.handler_.JSC$17357_channelClosed(f,I)}},B86=function(r,
f){f=DXi(r,null,f);
r.JSC$17346_channelDebug_.debug("GetForwardChannelUri: "+f);return f},rP3=function(r,f,I){f=DXi(r,r.JSC$17345_shouldUseSecondaryDomains()?f:null,I);
r.JSC$17346_channelDebug_.debug("GetBackChannelUri: "+f);return f},DXi=function(r,f,I){var C=_.Hh(I);
if(C.JSC$7932_domain_!="")f&&_.Gh(C,f+"."+C.JSC$7932_domain_),_.kk(C,C.JSC$7932_port_);else{var Y=window.location;C=Rh1(Y.protocol,f?f+"."+Y.hostname:Y.hostname,+Y.port,I)}r.JSC$17350_extraParams_&&_.X0.forEach(r.JSC$17350_extraParams_,function(V,S){_.RZ(C,S,V)});
_.RZ(C,"VER",r.JSC$17350_channelVersion_);KZ(r,C);return C};
ve.prototype.JSC$17345_createXhrIo=function(r){if(r)throw Error("wk");r=new _.P7;r.JSC$7695_withCredentials_=!1;return r};
ve.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
ve.prototype.notifyServerReachabilityEvent=function(r){var f=H6q;f.dispatchEvent(new l4V(f,r))};
ve.prototype.JSC$17345_shouldUseSecondaryDomains=function(){return!1};
new OQY;var g72=function(){};
_.l=g72.prototype;_.l.JSC$17357_channelOpened=function(){};
_.l.JSC$17357_channelHandleArray=function(){};
_.l.JSC$17357_channelSuccess=function(){};
_.l.JSC$17357_channelError=function(){};
_.l.JSC$17357_channelClosed=function(){};
_.l.JSC$17357_getAdditionalParams=function(){return{}};
_.l.isActive=function(){return!0};var a4V=function(r){r.front_.length===0&&(r.front_=r.back_,r.front_.reverse(),r.back_=[])};
_.l=eH3.prototype;_.l.enqueue=function(r){this.back_.push(r)};
_.l.peek=function(){a4V(this);return _.Kw(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(r){return _.Am(this.front_,r)||_.Am(this.back_,r)};
_.l.remove=function(r){var f=this.front_;var I=Array.prototype.lastIndexOf.call(f,r,f.length-1);I>=0?(_.GB(f,I),f=!0):f=!1;return f||_.uU(this.back_,r)};
_.l.getValues=function(){for(var r=[],f=this.front_.length-1;f>=0;--f)r.push(this.front_[f]);f=this.back_.length;for(var I=0;I<f;++I)r.push(this.back_[I]);return r};var y0=function(r){this.JSC$17361_map_=new _.IE;this.size=0;r&&this.addAll(r)},Xqi=function(r){var f=typeof r;
return f=="object"&&r||f=="function"?"o"+_.S3(r):f.charAt(0)+r};
_.l=y0.prototype;_.l.getCount=function(){return this.JSC$17361_map_.size};
_.l.add=function(r){this.JSC$17361_map_.set(Xqi(r),r);this.size=this.JSC$17361_map_.size};
_.l.addAll=function(r){r=_.AA(r);for(var f=r.length,I=0;I<f;I++)this.add(r[I]);this.size=this.JSC$17361_map_.size};
_.l.removeAll=function(r){r=_.AA(r);for(var f=r.length,I=0;I<f;I++)this.remove(r[I]);this.size=this.JSC$17361_map_.size};
_.l.delete=function(r){r=this.JSC$17361_map_.remove(Xqi(r));this.size=this.JSC$17361_map_.size;return r};
_.l.remove=function(r){return this.delete(r)};
_.l.clear=function(){this.JSC$17361_map_.clear();this.size=0};
_.l.isEmpty=function(){return this.JSC$17361_map_.size===0};
_.l.has=function(r){return this.JSC$17361_map_.containsKey(Xqi(r))};
_.l.contains=function(r){return this.JSC$17361_map_.containsKey(Xqi(r))};
_.l.getValues=function(){return this.JSC$17361_map_.getValues()};
_.l.values=function(){return this.JSC$17361_map_.values()};
_.l.clone=function(){return new y0(this)};
_.l.equals=function(r){return this.getCount()==HQ7(r)&&Nx2(this,r)};
var Nx2=function(r,f){var I=HQ7(f);if(r.getCount()>I)return!1;!(f instanceof y0)&&I>5&&(f=new y0(f));return iQi(r,function(C){var Y=f;return Y.contains&&typeof Y.contains=="function"?Y.contains(C):Y.containsValue&&typeof Y.containsValue=="function"?Y.containsValue(C):_.ID(Y)||typeof Y==="string"?_.Am(Y,C):_.X0.containsValue(Y,C)})};
y0.prototype.__iterator__=function(){return this.JSC$17361_map_.__iterator__(!1)};
y0.prototype[Symbol.iterator]=function(){return this.values()};var $sY={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(r){return(this._clampValue(r)-this.min)/(this.max-this.min)},
_clampValue:function(r){return Math.min(this.max,Math.max(this.min,this._calcStep(r)))},
_calcStep:function(r){r=parseFloat(r);if(!this.step)return r;r=Math.round((r-this.min)/this.step);return this.step<1?r/(1/this.step)+this.min:r*this.step+this.min},
_validateValue:function(){var r=this._clampValue(this.value);this.value=this.oldValue=isNaN(r)?this.oldValue:r;return this.value!==r},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var FiV;var PNd;_.wm({_template:function(){if(PNd!==void 0)return PNd;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;FiV===void 0&&(FiV=document.createElement("template"));var C=FiV;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return PNd=r},
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(){_.UC(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(r){r.keyCode===27&&(r.preventDefault(),this.close())},
_track:function(r){if(!this.persistent&&!this.disableSwipe)switch(r.preventDefault(),r.detail.state){case "start":this._trackStart(r);break;case "track":this._trackMove(r);break;case "end":this._trackEnd(r)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var r=this.$.contentContainer.getBoundingClientRect();this._savedWidth=r.width;this._translateOffset=this.position==="left"?r.left:r.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(r){this._trackDetails&&(this._translateDrawer(r.detail.dx+this._translateOffset),this._trackDetails.push({dx:r.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(r){if(this._trackDetails){var f=r.detail.dx+this._translateOffset,I=this.getWidth();f=this.position==="left"?f>=0||f<=-I:f<=0||f>=I;if(!f){var C=this._trackDetails;this._trackDetails=null;this._flingDrawer(r,C);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}I/=2;r.detail.dx<-I?this.opened=this.position==="right":r.detail.dx>I&&(this.opened=this.position==="left");f?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(r,f){for(var I=Date.now(),C=I-100,Y,V=0,S=f.length-1;V<=S;){var h=V+S>>1,w=f[h];w.timeStamp>=C?(Y=w,S=h-1):V=h+1}return Y?(r.detail.dx-Y.dx)/(I-Y.timeStamp||1):0},
_flingDrawer:function(r,f){f=this._calculateVelocity(r,f);if(!(Math.abs(f)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;r=r.detail.dx+this._translateOffset;var I=this.getWidth(),C=this.position==="left",Y=f>0;Y?(f=Math.max(f,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(f=Math.min(f,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");f=this._FLING_INITIAL_SLOPE*(!Y&&C?-(r+I):Y&&!C?I-r:-r)/f;this._styleTransitionDuration(f);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,f)}},
_styleTransitionDuration:function(r){this.style.transitionDuration=r+"ms";this.$.contentContainer.style.transitionDuration=r+"ms";this.$.scrim.style.transitionDuration=r+"ms"},
_styleTransitionTimingFunction:function(r){this.$.contentContainer.style.transitionTimingFunction=r;this.$.scrim.style.transitionTimingFunction=r},
_translateDrawer:function(r){var f=this.getWidth();this.position==="left"?(r=Math.max(-f,Math.min(r,0)),this.$.scrim.style.opacity=1+r/f):(r=Math.max(0,Math.min(r,f)),this.$.scrim.style.opacity=1-r/f);this.translate3d(r+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var r=this._drawerState;r===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;r!==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=""),r!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var r=_.zI(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"])');r.length>0?(this._firstTabStop=r[0],this._lastTabStop=r[r.length-1]):
this._lastTabStop=this._firstTabStop=null;(r=this.getAttribute("tabindex"))&&parseInt(r,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(r){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||r.keyCode!==9||(r.shiftKey?this._firstTabStop&&_.zI(r).localTarget===this._firstTabStop&&(r.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.zI(r).localTarget===this._lastTabStop&&(r.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(r,f){this.toggleClass("visible",r&&!f,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 tZ1;var Txq;_.wm({_template:function(){if(Txq!==void 0)return Txq;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;tZ1===void 0&&(tZ1=document.createElement("template"));var C=tZ1;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return Txq=r},
is:"tp-yt-paper-progress",behaviors:[$sY],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(r){this.toggleClass("indeterminate",r,this.$.primaryProgress)},
_transformProgress:function(r,f){r.style.transform=r.style.webkitTransform="scaleX("+f/100+")"},
_mainRatioChanged:function(r){this._transformProgress(this.$.primaryProgress,r)},
_progressChanged:function(r,f,I,C,Y){r=this._clampValue(r);f=this._clampValue(f);var V=this._calcRatio(r)*100,S=this._calcRatio(f)*100;this._setSecondaryRatio(V);this._transformProgress(this.$.secondaryProgress,V);this._transformProgress(this.$.primaryProgress,S);this.secondaryProgress=r;Y?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",f);this.setAttribute("aria-valuemin",I);this.setAttribute("aria-valuemax",C)},
_disabledChanged:function(r){this.setAttribute("aria-disabled",r?"true":"false")},
_hideSecondaryProgress:function(r){return r===0}});var cP6;var WiB;var Lid=function(){};
_.l=Lid.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(){};
Lid=_.wm({_template:function(){if(WiB!==void 0)return WiB;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;cP6===void 0&&(cP6=document.createElement("template"));var C=cP6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return WiB=r},
is:"tp-yt-paper-slider",behaviors:[_.dx,_.aE,_.pS3,$sY],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&&_.P8(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(r,f,I){this.setAttribute("aria-valuemin",f);this.setAttribute("aria-valuemax",I);this.setAttribute("aria-valuenow",r);this._positionKnob(this._calcRatio(r)*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(r){this._setImmediateValue(this._calcStep(this._calcKnobPosition(r)));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(r){return(this.max-this.min)*r/100+this.min},
_onTrack:function(r){r.stopPropagation();switch(r.detail.state){case "start":this._trackStart(r);break;case "track":this._trackX(r);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(r){this.dragging||this._trackStart(r);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,r.detail.dx*(this._isRTL?-1:1)));r=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(r);r=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(r+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var r=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;r.transform=r.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(r){this._expandKnob();r.preventDefault();this.focus()},
_bartrack:function(r){this._allowBarEvent(r)&&this._onTrack(r)},
_barclick:function(r){this._w=this.$.sliderBar.offsetWidth;var f=this.$.sliderBar.getBoundingClientRect();f=(r.detail.x-f.left)/this._w*100;this._isRTL&&(f=100-f);var I=this.ratio;this._setTransiting(!0);this._positionKnob(f);I===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
r.preventDefault();this.focus()},
_bardown:function(r){this._allowBarEvent(r)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(r))},
_knobTransitionEnd:function(r){r.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(r,f,I,C){C||this._setMarkers([]);f=Math.round((I-f)/this.step);f>r&&(f=r);if(f<0||!isFinite(f))f=0;this._setMarkers(Array(f))},
_mergeClasses:function(r){return Object.keys(r).filter(function(f){return r[f]}).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(r){return!this.ignoreBarTouch||r.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(r){this._isRTL?this._incrementKey(r):this._decrementKey(r)},
_rightKey:function(r){this._isRTL?this._decrementKey(r):this._incrementKey(r)},
_incrementKey:function(r){this.disabled||(r.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),r.preventDefault())},
_decrementKey:function(r){this.disabled||(r.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),r.preventDefault())},
_changeValue:function(r){this.value=r.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(r){r.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.bH_._createRipple.call(this)},
_focusedChanged:function(r){r&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=r?"":"none",this._ripple.holdDown=r)}});var msB;var ebs;var U9=null,JP1=function(){};
_.l=JP1.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(){};
JP1=_.wm({_template:function(){if(ebs!==void 0)return ebs;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;msB===void 0&&(msB=document.createElement("template"));var C=msB;I.call(f,C.content.cloneNode(!0),r.content.firstChild);return ebs=r},
is:"tp-yt-paper-toast",behaviors:[_.ym],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(){_.z8._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.Hq.requestAvailability()},
show:function(r){typeof r=="string"&&(r={text:r});for(var f in r)f.indexOf("_")===0?_.z8._warn('The property "'+f+'" is private and was not set.'):f in this?this[f]=r[f]:_.z8._warn('The property "'+f+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(r){r&&r.target===this&&r.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(U9&&U9!==this&&U9.close(),U9=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):U9===this&&(U9=null);_.K7._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(r){this.positionTarget=r},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var jEq=new _.q("disablePersonalizationAction");var P77=new _.q("showDmaConsentFlowCommand");var tSi=new _.q("showMmgNoticeCommand");var H7V=new _.q("saveConsentAction");var i7Y=function(r){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.YH(r)};
_.t(i7Y,_.Kj);var Rb2=_.I$P(i7Y);var v7d=new _.q("updateTopbarAvatarAction");var KiV=new _.q("channelHandleValidationResultRenderer");var yPV=new _.q("generateHandleFromNameResultRenderer");var Us6=new _.q("channelHandleInputRenderer");var sEB=new _.q("copyLinkRenderer");var O7p=new _.q("timedCommand");var o73=new _.q("clearCookieAction");var QE7=new _.q("getMultiPageMenuAction");var APi=new _.q("addToGuideSectionAction"),Z7d=new _.q("removeFromGuideSectionAction");var GdB=new _.q("updateNotificationsUnseenCountAction");var kdd=new _.q("resetChannelUnreadCountCommand");var Bxd=new _.q("resetSubscriptionsUnreadDotCommand");var qK7=new _.q("selectLanguageCommand");var yNd=new _.q("sendFeedbackAction");var uSq=new _.q("uploadImageToScottyCommand");var DsV=new _.q("registerPromoCommand");var rL7=new _.q("setPushNotificationsEnabledCommand");var f01=new _.q("desktopTopbarRenderer");var I0d=new _.q("surveyFollowUpRenderer");var CRU=new _.q("handlesClaimingRadioOptionRenderer");var Yw6=new _.q("hotkeyDialogRenderer");var l03=new _.q("modifyReportFormCommand");var V86=new _.q("accountLinkCommand");var E$1=new _.q("accountUnlinkCommand");var Sw3=new _.q("logAccountLinkingEventCommand");var xh6=new _.q("guideCollapsibleEntryRenderer");var hq3=new _.q("guideDownloadsEntryRenderer");var s9=new _.q("guideEntryRenderer");var w_1=new _.q("getLocationCommand");var blB=new _.q("locationCollectionCommand");var p_s=new _.q("storiesItemViewModel");var n$1=new _.q("addToRemoteQueueAction");var dhB=new _.q("insertInRemoteQueueAction");var zq7=new _.q("removeFromRemoteQueueAction");var M87=new _.q("notificationRenderer");var xvd=new _.q("localWatchHistoryCommand");var g$6=new _.q("pdgBuyFlowHeaderRenderer");var a07=new _.q("pdgColorSliderRenderer");var X_6=new _.q("pdgCommentOptionRenderer");var Na6=new _.q("pdgCommentPreviewRenderer");var $h3=new _.q("superVodSelectableItemButtonRenderer");var FR6=new _.q("switchButtonRenderer");var PR6=new _.q("upsellDialogRenderer");var t83=new _.q("feedbackQuestionRenderer"),Ta2=new _.q("feedbackOptionRenderer");var cL6=new _.q("sponsorshipsTierRenderer"),WR2=new _.q("sponsorshipsPromotionChannelRenderer");var LRi=new _.q("simpleSurveyMessageRenderer");var yGY=new _.q("invokeInstrumentManagerAction");var mh7=new _.q("logYpcFlowDismissCommand");var eqp=new _.q("logYpcFlowStartCommand");var JL7=new _.q("unlimitedCreateFamilyEndpoint");var jx6=new _.q("iconBadgeRenderer");var xGV=new _.q("collaborativePlaylistVisibilityValidationRule");var HlY=function(r){_.wi.call(this,"channelMessage");this.message=r};
_.t(HlY,_.wi);var ilU=function(r){_.wi.call(this,"channelError");this.error=r};
_.t(ilU,_.wi);var Rqi={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"},v$3={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},KRY={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},
yLp={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},UhV={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var O9=function(r){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 _.IE;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";r&&(this.id=r.id||r.name,this.name=r.name,this.clientName=r.clientName?r.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=r.app,this.type=r.type||"REMOTE_CONTROL",this.username=r.user||"",this.avatar=r.userAvatarUri||"",this.obfuscatedGaiaId=r.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=r.ownerObfuscatedGaiaId||"",this.theme=r.theme||"u",sxs(this,r.capabilities||""),Ol1(this,r.compatibleSenderThemes||""),o$d(this,r.experiments||""),
this.remoteControllerUrl=r.remoteControllerUrl||"",this.localChannelEncryptionKey=r.localChannelEncryptionKey||"",this.deviceContext=r.deviceContext,this.brand=r.brand||"",this.model=r.model||"",this.year=r.year||0,this.os=r.os||"",this.osVersion=r.osVersion||"",this.chipset=r.chipset||"",this.mdxDialServerType=r.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=r.pairingType||"unknown",r=r.deviceInfo)&&(r=JSON.parse(r),this.brand=r.brand||"",this.model=r.model||"",this.year=r.year||
0,this.os=r.os||"",this.osVersion=r.osVersion||"",this.chipset=r.chipset||"",this.clientName=r.clientName?r.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=r.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
O9.prototype.copy=function(){var r={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&&(r.brand=this.brand);
this.model&&(r.model=this.model);this.year&&(r.year=this.year);this.os&&(r.os=this.os);this.osVersion&&(r.osVersion=this.osVersion);this.chipset&&(r.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(r.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(r.mdxDialServerType=this.mdxDialServerType);r=new O9(r);r.connected=this.connected;r.remoteControllerUrl=this.remoteControllerUrl;r.localChannelEncryptionKey=this.localChannelEncryptionKey;r.deviceContext=
this.deviceContext;return r};
O9.prototype.equals=function(r){return r?this.id==r.id:!1};
var sxs=function(r,f){r.capabilities.clear();_.IJ(f.split(","),_.S_(_.X0.contains,Rqi)).forEach(function(I){r.capabilities.add(I)})},Ol1=function(r,f){r.compatibleSenderThemes.clear();
_.IJ(f.split(","),_.S_(_.X0.contains,v$3)).forEach(function(I){r.compatibleSenderThemes.add(I)})},o$d=function(r,f){r.experiments.clear();
f.split(",").forEach(function(I){r.experiments.add(I)})};var Qx1=function(r,f){this.action=r;this.params=f||{}};_.rh(J1B,_.Mu);_.l=J1B.prototype;_.l.JSC$17397_onTick_=function(){this.JSC$17395_interval_=Math.min(3E5,this.JSC$17395_interval_*2);this.JSC$17397_listener_();this.nextTickTime_&&this.start()};
_.l.start=function(){var r=this.JSC$17395_interval_+15E3*Math.random(),f=this.delay_;f.isActive()||f.start(r);this.nextTickTime_=Date.now()+r};
_.l.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.l.isActive=function(){return this.delay_.isActive()};
_.l.reset=function(){this.delay_.stop();this.JSC$17395_interval_=5E3};_.rh(FU,g72);_.l=FU.prototype;_.l.subscribe=function(r,f,I){return this.pubsub_.subscribe(r,f,I)};
_.l.unsubscribe=function(r,f,I){return this.pubsub_.unsubscribe(r,f,I)};
_.l.unsubscribeByKey=function(r){return this.pubsub_.unsubscribeByKey(r)};
_.l.publish=function(r,f){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.l.dispose=function(){this.JSC$17398_disposed_||(this.JSC$17398_disposed_=!0,_.Z8(this.pubsub_),this.disconnect(),_.Z8(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17398_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.fe({})})};
_.l.isDisposed=function(){return this.JSC$17398_disposed_};
_.l.connect=function(r,f,I){var C=this,Y,V,S,h;return _.x(function(w){if(w.nextAddress==1)return _.SP(w,2),C.useAsyncBrowserChannelHandler_?_.b(w,C.connectPromise_,2):w.jumpTo(2);_.VY(w);if(C.JSC$17398_disposed_||C.JSC$17398_channel_&&C.JSC$17398_channel_.getState()==2)return w.return();C.sCookie_="";C.reconnectTimer_.stop();C.connectionParams_=r||null;C.connectUi_=f||0;Y=C.JSC$17398_pathPrefix_+"/test";V=C.JSC$17398_pathPrefix_+"/bind";S=new ve(I?I.firstTestResults:null,I?I.secondTestResults:null,
C.enableAsyncTest_);if(h=C.JSC$17398_channel_)h.handler_=null;S.handler_=C;C.JSC$17398_channel_=S;if(C.useAsyncBrowserChannelHandler_)return C.connectPromise_=ALY(C).then(function(){return ZlU(C,Y,V,h,I)}),w.return(C.connectPromise_.then(function(){C.connectPromise_=_.fe()}));
ZlU(C,Y,V,h,I);return _.xV(w,0)})};
var ZlU=function(r,f,I,C,Y){GKq(r);if(r.JSC$17398_channel_){var V=_.Lz("ID_TOKEN"),S=r.JSC$17398_channel_.JSC$17350_extraHeaders_||{};V?S["x-youtube-identity-token"]=V:delete S["x-youtube-identity-token"];r.JSC$17398_channel_.JSC$17350_extraHeaders_=S}kK2(r);C?(C.getState(),r.JSC$17398_channel_.connect(f,I,r.defaultQueryParams_,C.sid_,C.JSC$17350_lastArrayId_)):Y?r.JSC$17398_channel_.connect(f,I,r.defaultQueryParams_,Y.sessionId,Y.arrayId):r.JSC$17398_channel_.connect(f,I,r.defaultQueryParams_)};
FU.prototype.disconnect=function(r){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.fe())}finally{this.disconnectUi_=r||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),GKq(this),this.JSC$17398_channel_&&(this.JSC$17398_channel_.getState()==3&&b76(this.JSC$17398_channel_),this.JSC$17398_channel_.disconnect()),this.disconnectUi_=0}};
FU.prototype.sendMessage=function(r,f){var I=this,C;return _.x(function(Y){switch(Y.nextAddress){case 1:_.SP(Y,2);if(!I.useAsyncBrowserChannelHandler_){Y.jumpTo(2);break}return _.b(Y,I.connectPromise_,2);case 2:_.VY(Y);if(I.JSC$17398_disposed_)return Y.return();C={_sc:r};f&&_.X0.extend(C,f);if(I.reconnectTimer_.isActive()||(I.JSC$17398_channel_?I.JSC$17398_channel_.getState():0)==2){I.JSC$17398_pendingMessages_.push(C);Y.jumpTo(6);break}if(!I.isChannelOpened()){Y.jumpTo(6);break}_.SP(Y,8);if(!I.useAsyncBrowserChannelHandler_||
Ba6(I,r)){Y.jumpTo(8);break}return _.b(Y,ALY(I),8);case 8:_.VY(Y,0,0,1);I.isChannelOpened()&&(Ba6(I,r)||kK2(I),GKq(I),wq2(I.JSC$17398_channel_,C));_.xV(Y,6,1);break;case 6:_.xV(Y,0)}})};
var Ba6=function(r,f){return r.enableMdxAuthForConnectionOnly_?!0:r.disableMdxAuthForAdMessages_?Object.values(KRY).includes(f):r.disableMdxAuthForNonPlaybackMessages_?!Object.values(yLp).includes(f):r.disableMdxAuthForShortsMessages_?Object.values(UhV).includes(f):!1};
FU.prototype.JSC$17357_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17398_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)qwq(this);else{var r=this.JSC$17398_pendingMessages_;this.JSC$17398_pendingMessages_=[];var f=r.length;kK2(this);uD2(this,r,f);Dh2(this)}else Dh2(this)};
var qwq=function(r){var f,I;_.x(function(C){if(C.nextAddress==1)return _.SP(C,2),_.b(C,ALY(r),2);_.VY(C);f=r.JSC$17398_pendingMessages_;r.JSC$17398_pendingMessages_=[];I=f.length;uD2(r,f,I);Dh2(r);return _.xV(C,0)})},uD2=function(r,f,I){for(var C=0;C<I;++C)wq2(r.JSC$17398_channel_,f[C]);
Dh2(r)},Dh2=function(r){r.publish("handlerOpened");
r.JSC$17398_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.l=FU.prototype;_.l.JSC$17357_channelError=function(r){var f=r==2&&this.JSC$17398_channel_.JSC$17350_lastStatusCode_==401;r==4||f||this.reconnectTimer_.start();this.publish("handlerError",r,f);f=Object.keys(CN2).find(function(I){return CN2[I]===r});
this.JSC$17398_channelErrorCounter.increment("BROWSER_CHANNEL",f!=null?f:"UNKNOWN")};
_.l.JSC$17357_channelClosed=function(r,f){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(f)for(var I=f.length,C=0;C<I;++C){var Y=f[C].map;Y&&this.JSC$17398_pendingMessages_.push(Y)}this.JSC$17398_channelClosedCounter.increment("BROWSER_CHANNEL");r&&this.pendingMapsOnClosedCounter.JSC$7828_streamzService.JSC$7686_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",r.length);f&&this.undeliveredMapsOnClosedCounter.JSC$7831_streamzService.JSC$7686_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
f.length)};
_.l.JSC$17357_channelSuccess=function(r,f){f!=null&&r!=null&&this.channelMessageSentCounter.increment()};
_.l.JSC$17357_getAdditionalParams=function(){var r={v:2};this.sCookie_&&(r.gsessionid=this.sCookie_);this.connectUi_!=0&&(r.ui=""+this.connectUi_);this.disconnectUi_!=0&&(r.ui=""+this.disconnectUi_);this.connectionParams_&&_.X0.extend(r,this.connectionParams_);return r};
_.l.JSC$17357_channelHandleArray=function(r){r[0]=="S"?this.sCookie_=r[1]:r[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17398_channel_.disconnect()):this.publish("handlerMessage",new Qx1(r[0],r[1]));this.JSC$17398_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.l.isChannelOpened=function(){return!!this.JSC$17398_channel_&&this.JSC$17398_channel_.getState()==3};
var GKq=function(r){if(r.JSC$17398_channel_){var f=r.JSC$17398_getXsrfToken_(),I=r.JSC$17398_channel_.JSC$17350_extraHeaders_||{};f?I["x-youtube-lounge-xsrf-token"]=f:delete I["x-youtube-lounge-xsrf-token"];r.JSC$17398_channel_.JSC$17350_extraHeaders_=I}},ALY=function(r){if(r.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.fe();
if(!r.enableCachedUpdateAuthorizationHeader_)return r96(r);r.updateAuthorizationHeaderPromise_===null&&(r.updateAuthorizationHeaderPromise_=r96(r));return r.updateAuthorizationHeaderPromise_},r96=function(r){return _.XZ(r.getAuthorizationHeader_().then(function(f){fvU(r,f)}).thenCatch(function(){}),function(){r.updateAuthorizationHeaderPromise_=null})},fvU=function(r,f){if(r.JSC$17398_channel_){var I=r.JSC$17398_channel_.JSC$17350_extraHeaders_||{};
f&&Object.keys(f).length>0?I=Object.assign({},I,f):delete I.Authorization;r.JSC$17398_channel_.JSC$17350_extraHeaders_=I}},kK2=function(r){r.getAuthorizationHeaderSync_&&!r.useAsyncBrowserChannelHandler_&&fvU(r,r.getAuthorizationHeaderSync_())};
_.l=FU.prototype;_.l.setLoungeToken=function(r){(this.defaultQueryParams_.loungeIdToken=r)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17398_channel_){var f=this.JSC$17398_channel_.JSC$17350_extraHeaders_||{};r?f["X-YouTube-LoungeId-Token"]=r:delete f["X-YouTube-LoungeId-Token"];this.JSC$17398_channel_.JSC$17350_extraHeaders_=f}};
_.l.getDeviceId=function(){return this.defaultQueryParams_.id};
_.l.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.l.reconnect=function(){var r=this.reconnectTimer_;r.delay_.fire();r.start()};
_.l.safeReconnect_=function(){var r=this.JSC$17398_channel_,f=0;r.JSC$17350_backChannelRequest_&&f++;r.forwardChannelRequest_&&f++;f==0&&this.connect(this.connectionParams_,this.connectUi_)};var m1=function(r,f){var I=r.basePath;r.supportCors&&(I=r.scheme+"://"+r.domain+r.port+r.basePath);return _.UQ(I+f,{})};
Pn.prototype.sendRequest=function(r,f,I,C,Y,V,S){r={format:V?"RAW":"JSON",method:r,context:this,timeout:5E3,withCredentials:!!S,onSuccess:_.S_(this.JSC$17403_onSuccess_,C,!V),onError:_.S_(this.onError_,Y),onTimeout:_.S_(this.JSC$17403_onTimeout_,Y)};I&&(r.postParams=I,r.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.lh(f,r)};
Pn.prototype.JSC$17403_onSuccess_=function(r,f,I,C){f?r(C):r({text:I.responseText})};
Pn.prototype.onError_=function(r,f){r(Error("Ak`"+f.status))};
Pn.prototype.JSC$17403_onTimeout_=function(r){r(Error("Bk"))};var Tl=function(r,f){return!!f&&(r.id==f||r.uuid==f)},Iv3=function(r){return{name:r.name,
screenId:r.id,loungeToken:r.token,dialId:r.uuid,screenIdType:r.idType}},CH3=function(r){return new tM(r)},YGi=function(r){return Array.isArray(r)?_.$X(r,CH3):[]},sli=function(r){if(!r)return"null";
var f=r.token?".."+r.token.slice(-6):"-",I=r.uuid?".."+r.uuid.slice(-6):"-";return'{name:"'+r.name+'",id:'+r.id.substr(0,6)+"..,token:"+(f+",uuid:"+I+",idType:"+r.idType+"}")},zdd=function(r){return Array.isArray(r)?"["+_.$X(r,sli).join(",")+"]":"null"};var Bdq="",L4=null;var lki=function(r,f){_.zh.call(this);var I=this;this.handler=r();this.handler.subscribe("handlerOpened",this.JSC$17410_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(C,Y){I.onError(Y)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=f};
_.t(lki,_.zh);_.l=lki.prototype;_.l.connect=function(r,f,I){this.handler.connect(r,f,I)};
_.l.disconnect=function(r){this.handler.disconnect(r)};
_.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$17410_onOpened=function(){this.dispatchEvent("channelOpened");var r=this.handler,f=this.currentScreenId;_.Ch("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!r.JSC$17398_channel_.useChunked_,sessionId:r.JSC$17398_channel_.sid_,arrayId:r.JSC$17398_channel_.JSC$17350_lastArrayId_});_.Ch("yt-remote-session-screen-id",f);r=oAq();f=Qo1();_.Am(r,f)||r.push(f);kIq(r);GIY()};
_.l.onClosed=function(){this.dispatchEvent("channelClosed")};
_.l.onMessage=function(r){this.dispatchEvent(new HlY(r))};
_.l.onError=function(r){this.dispatchEvent(new ilU(r?1:0))};
_.l.sendMessage=function(r,f){this.handler.sendMessage(r,f)};
_.l.setLoungeToken=function(r){this.handler.setLoungeToken(r)};
_.l.dispose=function(){this.handler.dispose()};var Y_s=function(r,f,I){var C=this;I=I===void 0?function(){return""}:I;
var Y=Y===void 0?new Lm1:Y;var V=V===void 0?new _.EH:V;this.pathPrefix=r;this.defaultQueryParams=f;this.getXsrfToken=I;this.JSC$17413_pubsub=V;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new J1B(function(){var S;((S=C.channel)==null?void 0:liB((new Jhs(S,S.JSC$17321_channel_)).JSC$17331_channel_.forwardChannelRequestPool_))===0&&C.connect(C.connectionParams,C.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17413_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17413_channelOpenedCounter=new joU;this.JSC$17413_channelClosedCounter=new HAq;this.JSC$17413_channelMessageReceivedCounter=new RHU;this.JSC$17413_channelErrorCounter=new vAV};
Y_s.prototype.connect=function(r,f){r=r===void 0?{}:r;f=f===void 0?0:f;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=r,this.connectUi=f,lv7(this),(r=_.Lz("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=r: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 m7(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,VNB(this))};
var VNB=function(r){_.S$(r.channel,"w",function(){r.channelState=3;r.reconnectTimer.reset();r.connectionParams=null;r.connectUi=0;for(var f=_.E(r.nonAckedMessagesOnChannelClosed),I=f.next();!I.done;I=f.next())I=I.value,r.channel&&r.channel.send(I);r.nonAckedMessagesOnChannelClosed=[];r.publish("webChannelOpened");r.JSC$17413_channelOpenedCounter.increment("WEB_CHANNEL")});
_.S$(r.channel,"x",function(){r.channelState=0;r.reconnectTimer.isActive()||r.publish("webChannelClosed");var f,I=(f=r.channel)==null?void 0:jGB(new Jhs(f,f.JSC$17321_channel_));I&&(r.nonAckedMessagesOnChannelClosed=[].concat(_.Na(I)));r.JSC$17413_channelClosedCounter.increment("WEB_CHANNEL")});
_.S$(r.channel,"z",function(f){var I=f.data;I[0]==="gracefulReconnect"?(r.reconnectTimer.start(),r.channel&&r.channel.close()):r.publish("webChannelMessage",new Qx1(I[0],I[1]));r.lastStatusCode=f.statusCode;r.JSC$17413_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.S$(r.channel,"y",function(){r.lastStatusCode===401||r.reconnectTimer.start();r.publish("webChannelError");r.JSC$17413_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.l=Y_s.prototype;_.l.disconnect=function(r){this.disconnectUi=r===void 0?0:r;this.reconnectTimer.stop();lv7(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 r=this.reconnectTimer;r.delay_.fire();r.start()};
_.l.sendMessage=function(r,f){this.channel&&(lv7(this),r=Object.assign({},{_sc:r},f),this.channel.send(r))};
_.l.setLoungeToken=function(r){r||this.reconnectTimer.stop();r?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=r:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var lv7=function(r){var f=r.getXsrfToken();f?r.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=f:delete r.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.l=Y_s.prototype;_.l.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.l.publish=function(r){return this.JSC$17413_pubsub.publish.apply(this.JSC$17413_pubsub,[r].concat(_.Na(_.XE.apply(1,arguments))))};
_.l.subscribe=function(r,f,I){return this.JSC$17413_pubsub.subscribe(r,f,I)};
_.l.unsubscribe=function(r,f,I){return this.JSC$17413_pubsub.unsubscribe(r,f,I)};
_.l.unsubscribeByKey=function(r){return this.JSC$17413_pubsub.unsubscribeByKey(r)};
_.l.dispose=function(){this.JSC$17413_disposed||(this.JSC$17413_disposed=!0,_.Z8(this.JSC$17413_pubsub),this.disconnect(),_.Z8(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.l.isDisposed=function(){return this.JSC$17413_disposed};var Cm6=function(r){_.zh.call(this);this.webChannelService=r();this.webChannelService.subscribe("webChannelOpened",this.JSC$17421_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.t(Cm6,_.zh);_.l=Cm6.prototype;_.l.connect=function(r,f){this.webChannelService.connect(r,f)};
_.l.disconnect=function(r){this.webChannelService.disconnect(r)};
_.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$17421_onOpened=function(){this.dispatchEvent("channelOpened")};
_.l.onClosed=function(){this.dispatchEvent("channelClosed")};
_.l.onMessage=function(r){this.dispatchEvent(new HlY(r))};
_.l.onError=function(){this.dispatchEvent(new ilU(this.webChannelService.lastStatusCode===401?1:0))};
_.l.sendMessage=function(r,f){this.webChannelService.sendMessage(r,f)};
_.l.setLoungeToken=function(r){this.webChannelService.setLoungeToken(r)};
_.l.dispose=function(){this.webChannelService.dispose()};var do6=Date.now(),eI=null,pFU=Array(50),Hn=-1,nId=!1;_.rh(ie,_.QK);ie.prototype.getScreens=function(){return this.screens};
ie.prototype.contains=function(r){return!!OAV(this.screens,r)};
ie.prototype.get=function(r){return r?cn(this.screens,r):null};
var EPY=function(r,f){var I=r.get(f.uuid)||r.get(f.id);if(I)return r=I.name,I.id=f.id||I.id,I.name=f.name,I.token=f.token,I.uuid=f.uuid||I.uuid,I.name!=r;r.screens.push(f);return!0},SGp=function(r,f){var I=r.screens.length!=f.length;
r.screens=_.IJ(r.screens,function(V){return!!OAV(f,V)});
for(var C=f.length,Y=0;Y<C;Y++)I=EPY(r,f[Y])||I;return I},xAU=function(r,f){var I=r.screens.length;
r.screens=_.IJ(r.screens,function(C){return!(C||f?!C!=!f?0:C.id==f.id:1)});
return r.screens.length<I};
ie.prototype.info=function(r){JM(this.JSC$17422_logName_,r)};var h62=function(r,f,I,C,Y){_.QK.call(this);this.JSC$17425_http_=r;this.pairingCode_=f;this.deviceId_=I;this.friendlyName_=C;this.enableShortLivedLoungeToken_=Y;this.pollIndex_=0;this.JSC$17425_xhr_=null;this.JSC$17425_timer_=NaN};
_.t(h62,_.QK);_.l=h62.prototype;_.l.start=function(){!this.JSC$17425_xhr_&&isNaN(this.JSC$17425_timer_)&&this.poll_()};
_.l.stop=function(){this.JSC$17425_xhr_&&(this.JSC$17425_xhr_.abort(),this.JSC$17425_xhr_=null);isNaN(this.JSC$17425_timer_)||(_.I1(this.JSC$17425_timer_),this.JSC$17425_timer_=NaN)};
_.l.disposeInternal=function(){this.stop();_.QK.prototype.disposeInternal.call(this)};
_.l.poll_=function(){this.JSC$17425_timer_=NaN;this.JSC$17425_xhr_=_.lh(m1(this.JSC$17425_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.gL)(this.JSC$17427_onSuccess_,this),onError:(0,_.gL)(this.onError_,this),onTimeout:(0,_.gL)(this.JSC$17427_onTimeout_,this)})};
_.l.JSC$17427_onSuccess_=function(r,f){this.JSC$17425_xhr_=null;r=f.screen||{};r.dialId=this.deviceId_;r.name=this.friendlyName_;f=-1;this.enableShortLivedLoungeToken_&&r.shortLivedLoungeToken&&r.shortLivedLoungeToken.value&&r.shortLivedLoungeToken.refreshIntervalMs&&(r.screenIdType="shortLived",r.loungeToken=r.shortLivedLoungeToken.value,f=r.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new tM(r),f)};
_.l.onError_=function(r){this.JSC$17425_xhr_=null;r.status&&r.status==404?this.pollIndex_>=wPp.length?this.publish("pairingFailed",Error("Ck")):(r=wPp[this.pollIndex_],this.JSC$17425_timer_=_.rl((0,_.gL)(this.poll_,this),r),this.pollIndex_++):this.publish("pairingFailed",Error("Dk`"+r.status))};
_.l.JSC$17427_onTimeout_=function(){this.JSC$17425_xhr_=null;this.publish("pairingFailed",Error("Ek"))};
var wPp=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.rh(vn,ie);_.l=vn.prototype;_.l.start=function(){Rq(this)&&this.publish("screenChange");!_.YJ("yt-remote-lounge-token-expiration")&&b31(this);_.I1(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.rl((0,_.gL)(this.start,this),1E4)};
_.l.add=function(r,f){Rq(this);EPY(this,r);pPV(this,!1);this.publish("screenChange");f(r);r.token||b31(this)};
_.l.remove=function(r,f){var I=Rq(this);xAU(this,r)&&(pPV(this,!1),I=!0);f(r);I&&this.publish("screenChange")};
_.l.updateName=function(r,f,I,C){var Y=Rq(this),V=this.get(r.id);V?(V.name!=f&&(V.name=f,pPV(this,!1),Y=!0),I(r)):C(Error("Fk"));Y&&this.publish("screenChange")};
_.l.disposeInternal=function(){_.I1(this.loungeTokenRefreshTimer_);vn.superClass_.disposeInternal.call(this)};
var b31=function(r){if(r.screens.length){var f=_.$X(r.screens,function(C){return C.id}),I=m1(r.JSC$17429_http_,"/pairing/get_lounge_token_batch");
r.JSC$17429_http_.sendRequest("POST",I,{screen_ids:f.join(",")},(0,_.gL)(r.handleLoungeTokens_,r),(0,_.gL)(r.handleLoungeTokenError_,r))}};
vn.prototype.handleLoungeTokens_=function(r){Rq(this);var f=this.screens.length;r=r&&r.screens||[];for(var I=r.length,C=0;C<I;++C){var Y=r[C],V=this.get(Y.screenId);V&&(V.token=Y.loungeToken,--f)}pPV(this,!f);f&&JM(this.JSC$17422_logName_,"Missed "+f+" lounge tokens.")};
vn.prototype.handleLoungeTokenError_=function(r){JM(this.JSC$17422_logName_,"Requesting lounge tokens failed: "+r)};
var Rq=function(r){if(_.N("deprecate_pair_servlet_enabled"))return SGp(r,[]);var f=YGi(u66());f=_.IJ(f,function(I){return!I.uuid});
return SGp(r,f)},pPV=function(r,f){rZ3(_.$X(r.screens,Iv3));
f&&DyU()};var o7=function(r,f){_.QK.call(this);this.getScreensToCheck_=f;f=(f=_.YJ("yt-remote-online-screen-ids")||"")?f.split(","):[];for(var I={},C=this.getScreensToCheck_(),Y=C.length,V=0;V<Y;++V){var S=C[V].id;I[S]=_.Am(f,S)}this.screenIdSet_=I;this.JSC$17432_http_=r;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;nPd("Initialized with "+(0,_.FZ)(this.screenIdSet_))};
_.t(o7,_.QK);o7.prototype.isOnline=function(r){return!!this.screenIdSet_[r]};
o7.prototype.start=function(){var r=parseInt(_.YJ("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.Dc()-144E5<r?0:r)?dA3(this):(this.fastCheckEndTime_=_.Dc()+3E5,_.Ch("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
o7.prototype.isEmpty=function(){return _.X0.isEmpty(this.screenIdSet_)};
o7.prototype.update=function(){nPd("Updating availability on schedule.");var r=this.getScreensToCheck_(),f=_.X0.filter(this.screenIdSet_,function(I,C){return I&&!!cn(r,C)},this);
z67(this,f)};
var MN6=function(r,f,I){var C=m1(r.JSC$17432_http_,"/pairing/get_screen_availability");r.JSC$17432_http_.sendRequest("POST",C,{lounge_token:f.token},(0,_.gL)(function(Y){Y=Y.screens||[];for(var V=Y.length,S=0;S<V;++S)if(Y[S].loungeToken==f.token){I(Y[S].status=="online");return}I(!1)},r),(0,_.gL)(function(){I(!1)},r))};
o7.prototype.disposeInternal=function(){_.I1(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.QK.prototype.disposeInternal.call(this)};
var z67=function(r,f){a:if(_.X0.getCount(f)!=_.X0.getCount(r.screenIdSet_))var I=!1;else{I=_.X0.getKeys(f);for(var C=I.length,Y=0;Y<C;++Y)if(!r.screenIdSet_[I[Y]]){I=!1;break a}I=!0}I||(nPd("Updated online screens: "+(0,_.FZ)(r.screenIdSet_)),r.screenIdSet_=f,r.publish("screenChange"));gP2(r)},dA3=function(r){isNaN(r.refreshTimer_)||_.I1(r.refreshTimer_);
r.refreshTimer_=_.rl((0,_.gL)(r.requestScreenAvailability_,r),r.fastCheckEndTime_>0&&r.fastCheckEndTime_<_.Dc()?2E4:1E4)};
o7.prototype.requestScreenAvailability_=function(){_.I1(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var r=avB(this);if(_.X0.getCount(r)){var f=m1(this.JSC$17432_http_,"/pairing/get_screen_availability"),I={lounge_token:_.X0.getKeys(r).join(",")};this.currentRequest_=this.JSC$17432_http_.sendRequest("POST",f,I,(0,_.gL)(this.onScreenAvailability_,this,r),(0,_.gL)(this.onScreenAvailabilityError_,this))}else z67(this,{}),dA3(this)};
o7.prototype.onScreenAvailability_=function(r,f){this.currentRequest_=null;var I=_.X0.getKeys(avB(this));if(_.n8(I,_.X0.getKeys(r))){f=f.screens||[];I={};for(var C=f.length,Y=0;Y<C;++Y)I[r[f[Y].loungeToken]]=f[Y].status=="online";z67(this,I);dA3(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
o7.prototype.onScreenAvailabilityError_=function(r){this.warn_("Screen availability failed: "+r);this.currentRequest_=null;dA3(this)};
var nPd=function(r){JM("OnlineScreenService",r)};
o7.prototype.warn_=function(r){JM("OnlineScreenService",r)};
var avB=function(r){var f={};_.Rv(r.getScreensToCheck_(),function(I){I.token?f[I.token]=I.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return f},gP2=function(r){r=_.X0.getKeys(_.X0.filter(r.screenIdSet_,function(f){return f}));
r.sort(_.bV);r.length?_.Ch("yt-remote-online-screen-ids",r.join(","),60):_.lg("yt-remote-online-screen-ids")};_.rh(K4,ie);_.l=K4.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(r,f,I){this.localScreenService_.add(r,f,I)};
_.l.remove=function(r,f,I){this.localScreenService_.remove(r,f,I);this.onlineScreenService_.update()};
_.l.updateName=function(r,f,I,C){this.localScreenService_.contains(r)?this.localScreenService_.updateName(r,f,I,C):(r="Updating name of unknown screen: "+r.name,JM(this.JSC$17422_logName_,r),C(Error(r)))};
_.l.getScreens=function(r){return r?this.screens:pW1(this.screens,_.IJ(this.automaticScreens_,function(f){return!this.contains(f)},this))};
_.l.JSC$17437_getOnlineScreens=function(){return _.IJ(this.getScreens(!0),function(r){return this.onlineScreenService_.isOnline(r.id)},this)};
var Njq=function(r,f,I,C,Y,V){r.info("getAutomaticScreenByIds "+I+" / "+f);I||(I=r.deviceToScreenId_[f]);var S=r.getScreens(),h=I?cn(S,I):null;I&&(r.disableAutomaticScreenCache_||h)||(h=cn(S,f));if(h){h.uuid=f;var w=Q0(r,h);MN6(r.onlineScreenService_,w,function(n){Y(n?w:null)})}else I?XPU(r,I,(0,_.gL)(function(n){var d=Q0(this,new tM({name:C,
screenId:I,loungeToken:n,dialId:f||""}));MN6(this.onlineScreenService_,d,function(z){Y(z?d:null)})},r),V):Y(null)};
K4.prototype.JSC$17437_getScreenByPollingPairingCode=function(r,f,I,C,Y,V){var S=this;this.info("getDialScreenByPairingCode "+r+" / "+f);var h=new h62(this.JSC$17435_http_,r,f,I,C);h.subscribe("pairingComplete",function(w,n){_.Z8(h);Y(Q0(S,w),n)});
h.subscribe("pairingFailed",function(w){_.Z8(h);V(w)});
h.start();return(0,_.gL)(h.stop,h)};
var $Aq=function(r,f){for(var I=r.screens.length,C=0;C<I;++C)if(r.screens[C].name==f)return r.screens[C];return null};
K4.prototype.JSC$17437_getScreenByPairingCode=function(r,f,I,C){_.lh(m1(this.JSC$17435_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:r},timeout:5E3,onSuccess:(0,_.gL)(function(Y,V){Y=new tM(V.screen||{});if(!Y.name||$Aq(this,Y.name)){a:{V=Y.name;for(var S=2,h=f(V,S);$Aq(this,h);){S++;if(S>20)break a;h=f(V,S)}V=h}Y.name=V}I(Q0(this,Y))},this),
onError:(0,_.gL)(function(Y){C(Error("Gk`"+Y.status))},this),
onTimeout:(0,_.gL)(function(){C(Error("Hk"))},this)})};
var FZp=function(r,f,I){MN6(r.onlineScreenService_,f,I)};
K4.prototype.disposeInternal=function(){_.Z8(this.localScreenService_);_.Z8(this.onlineScreenService_);K4.superClass_.disposeInternal.call(this)};
var XPU=function(r,f,I,C){r.info("requestLoungeToken_ for "+f);var Y={postParams:{screen_ids:f},method:"POST",context:r,onSuccess:function(V,S){V=S&&S.screens||[];V[0]&&V[0].screenId==f?I(V[0].loungeToken):C(Error("Ik"))},
onError:function(){C(Error("Jk"))}};
_.lh(m1(r.JSC$17435_http_,"/pairing/get_lounge_token_batch"),Y)},PHV=function(r){r.screens=r.localScreenService_.getScreens();
for(var f=_.X0.transpose(r.deviceToScreenId_),I=r.screens.length,C=0;C<I;++C){var Y=r.screens[C];Y.uuid=f[Y.id]||""}r.info("Updated manual screens: "+zdd(r.screens))};
K4.prototype.handleScreenChange_=function(){PHV(this);this.publish("screenChange");this.onlineScreenService_.update()};
var M_7=function(r){tNV(r);r.localScreenService_=new vn(r.JSC$17435_http_);r.localScreenService_.subscribe("screenChange",(0,_.gL)(r.handleScreenChange_,r));PHV(r);r.disableAutomaticScreenCache_||(r.automaticScreens_=YGi(_.YJ("yt-remote-automatic-screen-cache")||[]));tNV(r);r.info("Initializing automatic screens: "+zdd(r.automaticScreens_));r.onlineScreenService_=new o7(r.JSC$17435_http_,(0,_.gL)(r.getScreens,r,!0));r.onlineScreenService_.subscribe("screenChange",(0,_.gL)(function(){this.publish("onlineScreenChange")},
r))},Q0=function(r,f){var I=r.get(f.id);
I?(I.uuid=f.uuid,f=I):((I=cn(r.automaticScreens_,f.uuid))?(I.id=f.id,I.token=f.token,f=I):r.automaticScreens_.push(f),r.disableAutomaticScreenCache_||TjY(r));tNV(r);r.deviceToScreenId_[f.uuid]=f.id;_.Ch("yt-remote-device-id-map",r.deviceToScreenId_,31536E3);return f},TjY=function(r){r=_.IJ(r.automaticScreens_,function(f){return f.idType!="shortLived"});
_.Ch("yt-remote-automatic-screen-cache",_.$X(r,Iv3))},tNV=function(r){r.deviceToScreenId_=_.YJ("yt-remote-device-id-map")||{}};
K4.prototype.dispose=K4.prototype.dispose;_.rh(y6,_.QK);var A0=function(r,f){r.screen_=f;r.publish("sessionScreen",r.screen_)},c91=function(r,f){r.screen_&&(r.screen_.token=f,Q0(r.JSC$17439_screenService_,r.screen_));
r.publish("sessionScreen",r.screen_)};
y6.prototype.onSessionStopped=function(r){this.isDisposed()||(r&&(ZZ(this,""+r),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
y6.prototype.info=function(r){JM(this.JSC$17439_logName_,r)};
var ZZ=function(r,f){JM(r.JSC$17439_logName_,f)};
y6.prototype.JSC$17441_getCastSession=function(){return null};
y6.prototype.setDisplayStatus=function(r){var f=this.receiver_;r?(f.displayStatus=new chrome.cast.ReceiverDisplayStatus(r,[]),f.displayStatus.showStop=!0):f.displayStatus=null;chrome.cast.setReceiverDisplayStatus(f,(0,_.gL)(function(){this.info("Updated receiver status for "+f.friendlyName+": "+r)},this),(0,_.gL)(function(){ZZ(this,"Failed to update receiver status for: "+f.friendlyName)},this))};
y6.prototype.disposeInternal=function(){this.setDisplayStatus("");y6.superClass_.disposeInternal.call(this)};var Gj=function(r,f,I){y6.call(this,r,f,"CastSession");var C=this;this.config_=I;this.JSC$17444_session_=null;this.JSC$17444_boundSessionUpdate_=(0,_.gL)(this.JSC$17446_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.gL)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.rl(function(){WZ1(C,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17444_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17444_isInitLoungeToken_=!1;this.JSC$17444_lastLoungeTokenRefreshError_="unknown"};
_.t(Gj,y6);_.l=Gj.prototype;
_.l.setCastSession=function(r){if(this.JSC$17444_session_){if(this.JSC$17444_session_==r)return;ZZ(this,"Overriding cast session with new session object");LZ6(this);this.JSC$17444_isInitLoungeToken_=!1;this.JSC$17444_lastLoungeTokenRefreshError_="unknown";this.JSC$17444_session_.removeUpdateListener(this.JSC$17444_boundSessionUpdate_);this.JSC$17444_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17444_session_=r;this.JSC$17444_session_.addUpdateListener(this.JSC$17444_boundSessionUpdate_);this.JSC$17444_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);mA6(this,"getMdxSessionStatus")};
_.l.launchWithParams=function(r){this.info("launchWithParams no-op for Cast: "+(0,_.FZ)(r))};
_.l.stop=function(){if(this.JSC$17444_session_)this.JSC$17444_session_.stop((0,_.gL)(function(){this.onSessionStopped()},this),(0,_.gL)(function(){this.onSessionStopped(Error("Kk"))},this));
else this.onSessionStopped(Error("Lk"))};
_.l.setDisplayStatus=function(){};
_.l.disposeInternal=function(){this.info("disposeInternal");LZ6(this);this.JSC$17444_session_&&(this.JSC$17444_session_.removeUpdateListener(this.JSC$17444_boundSessionUpdate_),this.JSC$17444_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17444_session_=null;y6.prototype.disposeInternal.call(this)};
var J96=function(r,f){_.I1(r.getLoungeTokenTimeoutKey_);r.getLoungeTokenTimeoutKey_=0;f==0?e66(r):r.getLoungeTokenTimeoutKey_=_.rl(function(){e66(r)},f)},e66=function(r){mA6(r,"getLoungeToken");
_.I1(r.onLoungeTokenTimeoutKey_);r.onLoungeTokenTimeoutKey_=_.rl(function(){jap(r,null)},3E4)},mA6=function(r,f){r.info("sendYoutubeMessage_: "+f+" "+(0,_.FZ)(void 0));
var I={};I.type=f;r.JSC$17444_session_?r.JSC$17444_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",I,function(){},(0,_.gL)(function(){ZZ(this,"Failed to send message: "+f+".")},r)):ZZ(r,"Sending yt message without session: "+(0,_.FZ)(I))};
Gj.prototype.onYoutubeMessage_=function(r,f){if(!this.isDisposed())if(f)if(f=(0,_.ao)(f),_.lV(f))switch(r=""+f.type,f=f.data||{},this.info("onYoutubeMessage_: "+r+" "+(0,_.FZ)(f)),r){case "mdxSessionStatus":WZ1(this,f);break;case "loungeToken":jap(this,f);break;default:ZZ(this,"Unknown youtube message: "+r)}else ZZ(this,"Unable to parse message.");else ZZ(this,"No data in message.")};
var H3Y=function(r,f){if(f)r.info("onConnectedScreenId_: Received screenId: "+f),r.screen_&&r.screen_.id==f||r.getScreen_(f,function(I){A0(r,I)},function(){return r.onSessionStopped()},5);
else r.onSessionStopped(Error("Mk"))},R62=function(r,f,I){r.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(f));
var C=new tM(f);i3B(r,C,function(Y){Y?(r.JSC$17444_isInitLoungeToken_=!0,Q0(r.JSC$17439_screenService_,C),A0(r,C),r.JSC$17444_lastLoungeTokenRefreshError_="unknown",J96(r,I)):(_.eH(Error("Nk`"+JSON.stringify(f))),r.onSessionStopped())},5)},WZ1=function(r,f){_.I1(r.sessionStatusTimeoutKey_);
r.sessionStatusTimeoutKey_=0;if(f)r.config_.enableCastLoungeToken&&f.loungeToken?f.deviceId?r.screen_&&r.screen_.uuid==f.deviceId||(f.loungeTokenRefreshIntervalMs?R62(r,{name:r.receiver_.friendlyName,screenId:f.screenId,loungeToken:f.loungeToken,dialId:f.deviceId,screenIdType:"shortLived"},f.loungeTokenRefreshIntervalMs):(_.eH(Error("Pk`"+JSON.stringify(f))),H3Y(r,f.screenId))):(_.eH(Error("Ok`"+JSON.stringify(f))),H3Y(r,f.screenId)):H3Y(r,f.screenId);else r.onSessionStopped(Error("Mk"))},jap=function(r,
f){_.I1(r.onLoungeTokenTimeoutKey_);
r.onLoungeTokenTimeoutKey_=0;var I=null;if(f)if(f.loungeToken){var C;((C=r.screen_)==null?void 0:C.token)==f.loungeToken&&(I="staleLoungeToken")}else I="missingLoungeToken";else I="noLoungeTokenResponse";I?(r.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(f)+", error: "+I)),r.JSC$17444_lastLoungeTokenRefreshError_=I,J96(r,3E4)):(c91(r,f.loungeToken),r.JSC$17444_isInitLoungeToken_=!1,r.JSC$17444_lastLoungeTokenRefreshError_="unknown",J96(r,f.loungeTokenRefreshIntervalMs))};
Gj.prototype.getScreen_=function(r,f,I,C){_.I1(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;Njq(this.JSC$17439_screenService_,this.receiver_.label,r,this.receiver_.friendlyName,(0,_.gL)(function(Y){Y?f(Y):C>=0?(ZZ(this,"Screen "+r+" appears to be offline. "+C+" retries left."),this.getScreenTimeoutKey_=_.rl((0,_.gL)(this.getScreen_,this,r,f,I,C-1),300)):I(Error("Qk"))},this),I)};
var i3B=function(r,f,I,C){_.I1(r.JSC$17444_checkScreenAvailabilityTimeoutKey_);r.JSC$17444_checkScreenAvailabilityTimeoutKey_=0;FZp(r.JSC$17439_screenService_,f,function(Y){Y||C<0?I(Y):r.JSC$17444_checkScreenAvailabilityTimeoutKey_=_.rl(function(){i3B(r,f,I,C-1)},300)})};
Gj.prototype.JSC$17441_getCastSession=function(){return this.JSC$17444_session_};
Gj.prototype.JSC$17446_onSessionUpdate_=function(r){this.isDisposed()||r||(ZZ(this,"Cast session died."),this.onSessionStopped())};
var LZ6=function(r){_.I1(r.getScreenTimeoutKey_);r.getScreenTimeoutKey_=0;_.I1(r.JSC$17444_checkScreenAvailabilityTimeoutKey_);r.JSC$17444_checkScreenAvailabilityTimeoutKey_=0;_.I1(r.sessionStatusTimeoutKey_);r.sessionStatusTimeoutKey_=0;_.I1(r.onLoungeTokenTimeoutKey_);r.onLoungeTokenTimeoutKey_=0;_.I1(r.getLoungeTokenTimeoutKey_);r.getLoungeTokenTimeoutKey_=0};var kD=function(r,f,I,C){y6.call(this,r,f,"DialSession");this.config_=C;this.JSC$17448_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17448_theme_=I;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17448_deferredLaunchDeadlineTimer_=NaN;this.JSC$17448_boundSessionUpdate_=(0,_.gL)(this.JSC$17450_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17448_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17448_isInitLoungeToken_=!1;this.JSC$17448_lastLoungeTokenRefreshError_="unknown"};
_.t(kD,y6);kD.prototype.setCastSession=function(r){this.JSC$17448_session_=r;this.JSC$17448_session_.addUpdateListener(this.JSC$17448_boundSessionUpdate_)};
kD.prototype.launchWithParams=function(r){this.connectData_=r;this.deferredLaunch_()};
kD.prototype.stop=function(){vPV(this);if(this.JSC$17448_session_)this.JSC$17448_session_.stop((0,_.gL)(this.onSessionStopped,this,null),(0,_.gL)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
kD.prototype.disposeInternal=function(){vPV(this);this.JSC$17448_session_&&this.JSC$17448_session_.removeUpdateListener(this.JSC$17448_boundSessionUpdate_);this.JSC$17448_session_=null;y6.prototype.disposeInternal.call(this)};
var KZ7=function(r){var f;return!!(r.config_.enableDialLoungeToken&&((f=r.JSC$17448_session_)==null?0:f.getDialAppInfo))},y9q=function(r){r.cancelPolling_=r.JSC$17439_screenService_.JSC$17437_getScreenByPollingPairingCode(r.reversePairingCode_,r.receiver_.label,r.receiver_.friendlyName,KZ7(r),function(f,I){r.cancelPolling_=function(){};
r.JSC$17448_isInitLoungeToken_=!0;A0(r,f);f.idType=="shortLived"&&I>0&&Be(r,I)},function(f){r.cancelPolling_=function(){};
r.onSessionStopped(f)})};
kD.prototype.JSC$17450_onSessionUpdate_=function(r){this.isDisposed()||r||(ZZ(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var UA3=function(r){var f={};f.pairingCode=r.reversePairingCode_;f.theme=r.JSC$17448_theme_;Iki()&&(f.env_useStageMdx=1);return _.VD(f)},saU=function(r){return new Promise(function(f){r.reversePairingCode_=Uy6();
if(r.connectData_){var I=new chrome.cast.DialLaunchResponse(!0,UA3(r));f(I);y9q(r)}else r.deferredLaunch_=function(){_.I1(r.JSC$17448_deferredLaunchDeadlineTimer_);r.deferredLaunch_=function(){};
r.JSC$17448_deferredLaunchDeadlineTimer_=NaN;var C=new chrome.cast.DialLaunchResponse(!0,UA3(r));f(C);y9q(r)},r.JSC$17448_deferredLaunchDeadlineTimer_=_.rl(function(){r.deferredLaunch_()},100)})},oPV=function(r,f,I){r.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(f));
var C=new tM(f);return(new Promise(function(Y){O31(r,C,function(V){V?(r.JSC$17448_isInitLoungeToken_=!0,Q0(r.JSC$17439_screenService_,C),A0(r,C),Be(r,I)):_.eH(Error("Sk`"+JSON.stringify(f)));Y(V)},5)})).then(function(Y){return Y?new chrome.cast.DialLaunchResponse(!1):saU(r)})},Qa2=function(r,f){var I=r.launchData_.receiver.label,C=r.receiver_.friendlyName;
return(new Promise(function(Y){Njq(r.JSC$17439_screenService_,I,f,C,function(V){V&&V.token&&A0(r,V);Y(V)},function(V){ZZ(r,"Failed to get DIAL screen: "+V);
Y(null)})})).then(function(Y){return Y&&Y.token?new chrome.cast.DialLaunchResponse(!1):saU(r)})},O31=function(r,f,I,C){_.I1(r.JSC$17448_checkScreenAvailabilityTimeoutKey_);
r.JSC$17448_checkScreenAvailabilityTimeoutKey_=0;FZp(r.JSC$17439_screenService_,f,function(Y){Y||C<0?I(Y):r.JSC$17448_checkScreenAvailabilityTimeoutKey_=_.rl(function(){O31(r,f,I,C-1)},300)})},Be=function(r,f){r.info("getDialAppInfoWithTimeout_ "+f);
KZ7(r)&&(_.I1(r.getDialAppInfoTimeoutKey_),r.getDialAppInfoTimeoutKey_=0,f==0?A96(r):r.getDialAppInfoTimeoutKey_=_.rl(function(){A96(r)},f))},A96=function(r){KZ7(r)&&r.JSC$17448_session_.getDialAppInfo(function(f){r.info("getDialAppInfo dialLaunchData: "+JSON.stringify(f));
f=f.extraData||{};var I=null;if(f.loungeToken){var C;((C=r.screen_)==null?void 0:C.token)==f.loungeToken&&(I="staleLoungeToken")}else I="missingLoungeToken";I?(r.JSC$17448_lastLoungeTokenRefreshError_=I,Be(r,3E4)):(r.JSC$17448_isInitLoungeToken_=!1,r.JSC$17448_lastLoungeTokenRefreshError_="unknown",c91(r,f.loungeToken),Be(r,f.loungeTokenRefreshIntervalMs))},function(f){r.info("getDialAppInfo error: "+f);
r.JSC$17448_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Be(r,3E4)})},vPV=function(r){_.I1(r.JSC$17448_checkScreenAvailabilityTimeoutKey_);
r.JSC$17448_checkScreenAvailabilityTimeoutKey_=0;_.I1(r.getDialAppInfoTimeoutKey_);r.getDialAppInfoTimeoutKey_=0;r.cancelPolling_();r.cancelPolling_=function(){};
_.I1(r.JSC$17448_deferredLaunchDeadlineTimer_)};var qw=function(r,f){y6.call(this,r,f,"ManualSession");this.JSC$17452_deferredLaunchDeadlineTimer_=_.rl((0,_.gL)(this.launchWithParams,this,null),150)};
_.t(qw,y6);qw.prototype.stop=function(){this.onSessionStopped()};
qw.prototype.setCastSession=function(){};
qw.prototype.launchWithParams=function(){_.I1(this.JSC$17452_deferredLaunchDeadlineTimer_);this.JSC$17452_deferredLaunchDeadlineTimer_=NaN;var r=cn(this.JSC$17439_screenService_.getScreens(),this.receiver_.label);if(r)A0(this,r);else this.onSessionStopped(Error("Tk"))};
qw.prototype.disposeInternal=function(){_.I1(this.JSC$17452_deferredLaunchDeadlineTimer_);this.JSC$17452_deferredLaunchDeadlineTimer_=NaN;y6.prototype.disposeInternal.call(this)};var oq=function(r,f){_.QK.call(this);this.config_=f;this.JSC$17455_screenService_=r;this.JSC$17455_appId_=f.appId||"233637DE";this.JSC$17455_theme_=f.theme||"cl";this.disableDial_=f.disableCastApi||!1;this.forceMirroring_=f.forceMirroring||!1;this.JSC$17455_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.gL)(this.onReceiverAction_,this)};
_.t(oq,_.QK);
oq.prototype.init=function(r,f){chrome.cast.timeout.requestSession=3E4;var I=new chrome.cast.SessionRequest(this.JSC$17455_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.N("desktop_enable_cast_connect")&&(I.androidReceiverCompatible=!0);this.disableDial_||(I.dialRequest=new chrome.cast.DialRequest("YouTube"));var C=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;r=r||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var Y=(0,_.gL)(this.onReceiverUpdated_,
this);I=new chrome.cast.ApiConfig(I,(0,_.gL)(this.onSessionEstablished_,this),Y,C,r);I.customDialLaunchCallback=(0,_.gL)(this.onDialLaunchRequested_,this);chrome.cast.initialize(I,(0,_.gL)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),hdp(),this.JSC$17455_screenService_.subscribe("onlineScreenChange",(0,_.gL)(this.JSC$17457_onScreenChange_,this)),this.customReceivers_=Z3U(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.gL)(function(V){this.warn_("Failed to set initial custom receivers: "+(0,_.FZ)(V))},this)),this.publish("yt-remote-cast2-availability-change",u$(this)),f(!0))},this),(0,_.gL)(function(V){this.warn_("Failed to initialize API: "+(0,_.FZ)(V));
f(!1)},this))};
oq.prototype.setConnectedScreenStatus=function(r,f){DZ("Setting connected screen ID: "+r+" -> "+f);if(this.JSC$17455_session_){var I=this.JSC$17455_session_.screen_;if(!r||I&&I.id!=r)DZ("Unsetting old screen status: "+this.JSC$17455_session_.receiver_.friendlyName),rS(this,null)}if(r&&f){if(!this.JSC$17455_session_){r=cn(this.JSC$17455_screenService_.getScreens(),r);if(!r){DZ("setConnectedScreenStatus: Unknown screen.");return}if(r.idType=="shortLived"){DZ("setConnectedScreenStatus: Screen with id type to be short lived.");
return}I=G$V(this,r);I||(DZ("setConnectedScreenStatus: Connected receiver not custom..."),I=new chrome.cast.Receiver(r.uuid?r.uuid:r.id,r.name),I.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(I),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.gL)(function(C){this.warn_("Failed to set initial custom receivers: "+(0,_.FZ)(C))},this)));
DZ("setConnectedScreenStatus: new active receiver: "+I.friendlyName);rS(this,new qw(this.JSC$17455_screenService_,I),!0)}this.JSC$17455_session_.setDisplayStatus(f)}else DZ("setConnectedScreenStatus: no screen.")};
var G$V=function(r,f){return f?_.yE(r.customReceivers_,function(I){return Tl(f,I.label)},r):null};
oq.prototype.setLaunchParams=function(r){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17455_session_?this.JSC$17455_session_.launchWithParams(r):this.warn_("Setting connection data without a session")};
oq.prototype.JSC$17457_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17455_session_?(this.JSC$17455_session_.stop(),rS(this,null)):DZ("Stopping non-existing session")};
oq.prototype.requestSession=function(){chrome.cast.requestSession((0,_.gL)(this.onSessionEstablished_,this),(0,_.gL)(this.onSessionRequestFailed_,this))};
oq.prototype.disposeInternal=function(){this.JSC$17455_screenService_.unsubscribe("onlineScreenChange",(0,_.gL)(this.JSC$17457_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.uU(_.jH("yt.mdx.remote.debug.handlers_")||[],EI7);_.Z8(this.JSC$17455_session_);_.QK.prototype.disposeInternal.call(this)};
var DZ=function(r){JM("Controller",r)};
oq.prototype.warn_=function(r){JM("Controller",r)};
var EI7=function(r){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(r)},u$=function(r){return r.hasCastReceiver_||!!r.customReceivers_.length||!!r.JSC$17455_session_},rS=function(r,f,I){f!=r.JSC$17455_session_&&(_.Z8(r.JSC$17455_session_),(r.JSC$17455_session_=f)?(I?r.publish("yt-remote-cast2-receiver-resumed",f.receiver_):r.publish("yt-remote-cast2-receiver-selected",f.receiver_),f.subscribe("sessionScreen",(0,_.gL)(r.onSessionScreen_,r,f)),f.subscribe("sessionFailed",
function(){return k$6(r,f)}),f.screen_?r.publish("yt-remote-cast2-session-change",f.screen_):I&&r.JSC$17455_session_.launchWithParams(null)):r.publish("yt-remote-cast2-session-change",null))},k$6=function(r,f){r.JSC$17455_session_==f&&r.publish("yt-remote-cast2-session-failed")};
_.l=oq.prototype;_.l.onSessionScreen_=function(r,f){this.JSC$17455_session_==r&&(f||rS(this,null),this.publish("yt-remote-cast2-session-change",f))};
_.l.onReceiverAction_=function(r,f){if(!this.isDisposed())if(r)switch(r.friendlyName=chrome.cast.unescape(r.friendlyName),DZ("onReceiverAction_ "+r.label+" / "+r.friendlyName+"-- "+f),f){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17455_session_)if(this.JSC$17455_session_.receiver_.label!=r.label)DZ("onReceiverAction_: Stopping active receiver: "+this.JSC$17455_session_.receiver_.friendlyName),this.JSC$17455_session_.stop();else{DZ("onReceiverAction_: Casting to active receiver.");this.JSC$17455_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17455_session_.screen_);break}switch(r.receiverType){case chrome.cast.ReceiverType.CUSTOM:rS(this,new qw(this.JSC$17455_screenService_,r));break;case chrome.cast.ReceiverType.DIAL:rS(this,new kD(this.JSC$17455_screenService_,r,this.JSC$17455_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:rS(this,new Gj(this.JSC$17455_screenService_,r,this.config_));break;default:this.warn_("Unknown receiver type: "+r.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17455_session_&&
this.JSC$17455_session_.receiver_.label==r.label?this.JSC$17455_session_.stop():this.warn_("Stopping receiver w/o session: "+r.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.l.onDialLaunchRequested_=function(r){if(this.isDisposed())return Promise.reject(Error("Uk"));var f=r.receiver;f.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+f.friendlyName),f.receiverType=chrome.cast.ReceiverType.DIAL);var I=this.JSC$17455_session_?this.JSC$17455_session_.receiver_:null;if(!I||I.label!=f.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+f.friendlyName),Promise.reject(Error("Vk"));if(I&&I.label==f.label&&I.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17455_session_.screen_)return DZ("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17455_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+I.receiverType+'" to "dial" for '+f.friendlyName);rS(this,new kD(this.JSC$17455_screenService_,f,this.JSC$17455_theme_,this.config_))}f=this.JSC$17455_session_;f.launchData_=r;f.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(r=f.launchData_.extraData||{},I=r.screenId||null,KZ7(f)&&r.loungeToken?r.loungeTokenRefreshIntervalMs?r=oPV(f,{name:f.receiver_.friendlyName,screenId:r.screenId,loungeToken:r.loungeToken,dialId:f.launchData_.receiver.label,screenIdType:"shortLived"},r.loungeTokenRefreshIntervalMs):(_.eH(Error("Rk`"+JSON.stringify(r))),r=Qa2(f,I)):r=Qa2(f,I)):r=saU(f);return r};
_.l.onSessionEstablished_=function(r){var f=this;if(!this.isDisposed()&&!this.forceMirroring_){DZ("New cast session ID: "+r.sessionId);var I=r.receiver;if(I.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17455_session_)if(I.receiverType==chrome.cast.ReceiverType.CAST)DZ("Got resumed cast session before resumed mdx connection."),I.friendlyName=chrome.cast.unescape(I.friendlyName),rS(this,new Gj(this.JSC$17455_screenService_,I,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var C=this.JSC$17455_session_.receiver_,Y=cn(this.JSC$17455_screenService_.getScreens(),C.label);Y&&Tl(Y,I.label)&&C.receiverType!=chrome.cast.ReceiverType.CAST&&I.receiverType==chrome.cast.ReceiverType.CAST&&(DZ("onSessionEstablished_: manual to cast session change "+I.friendlyName),_.Z8(this.JSC$17455_session_),this.JSC$17455_session_=new Gj(this.JSC$17455_screenService_,I,this.config_),this.JSC$17455_session_.subscribe("sessionScreen",(0,_.gL)(this.onSessionScreen_,this,this.JSC$17455_session_)),
this.JSC$17455_session_.subscribe("sessionFailed",function(){return k$6(f,f.JSC$17455_session_)}),this.JSC$17455_session_.launchWithParams(null));
this.JSC$17455_session_.setCastSession(r)}}};
_.l.JSC$17457_getCastSession=function(){return this.JSC$17455_session_?this.JSC$17455_session_.JSC$17441_getCastSession():null};
_.l.onSessionRequestFailed_=function(r){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.FZ)(r)),r.code!=chrome.cast.ErrorCode.CANCEL&&rS(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.l.onReceiverUpdated_=function(r){DZ("Receiver availability updated: "+r);if(!this.isDisposed()){var f=u$(this);this.hasCastReceiver_=r==chrome.cast.ReceiverAvailability.AVAILABLE;u$(this)!=f&&this.publish("yt-remote-cast2-availability-change",u$(this))}};
var Z3U=function(r){var f=r.JSC$17455_screenService_.JSC$17437_getOnlineScreens(),I=r.JSC$17455_session_&&r.JSC$17455_session_.receiver_;r=_.$X(f,function(C){I&&Tl(C,I.label)&&(I=null);var Y=C.uuid?C.uuid:C.id,V=G$V(this,C);V?(V.label=Y,V.friendlyName=C.name):(V=new chrome.cast.Receiver(Y,C.name),V.receiverType=chrome.cast.ReceiverType.CUSTOM);return V},r);
I&&(I.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(I=new chrome.cast.Receiver(I.label,I.friendlyName),I.receiverType=chrome.cast.ReceiverType.CUSTOM),r.push(I));return r};
oq.prototype.JSC$17457_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=Z3U(this),DZ("Updating custom receivers: "+(0,_.FZ)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.gL)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",u$(this)))};
oq.prototype.setLaunchParams=oq.prototype.setLaunchParams;oq.prototype.setConnectedScreenStatus=oq.prototype.setConnectedScreenStatus;oq.prototype.stopSession=oq.prototype.JSC$17457_stopSession;oq.prototype.getCastSession=oq.prototype.JSC$17457_getCastSession;oq.prototype.requestSession=oq.prototype.requestSession;oq.prototype.init=oq.prototype.init;oq.prototype.dispose=oq.prototype.dispose;var Hed=[];var Bjd=function(r){r.audioTrackId=null;r.trackData=null;r.playerState=-1;r.hasPrevious=!1;r.hasNext=!1;r.playerTime_=0;r.playerTimeAt_=_.Dc();r.seekableStart_=0;r.seekableEnd_=0;r.duration_=0;r.loadedTime=0;r.liveIngestionTime_=NaN;r.isLive_=!1};
_.l=Q6.prototype;
_.l.reset=function(r){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;r&&(this.index=r.index,this.listId=r.listId,this.videoId=r.videoId,this.playerState=r.playerState,this.volume=r.volume,this.muted=r.muted,this.audioTrackId=r.audioTrackId,this.trackData=r.trackData,this.hasPrevious=r.hasPrevious,this.hasNext=r.hasNext,this.playerTime_=r.playerTime,this.playerTimeAt_=r.playerTimeAt,this.seekableStart_=r.seekableStart,this.seekableEnd_=r.seekableEnd,this.duration_=r.duration,this.loadedTime=
r.loadedTime,this.liveIngestionTime_=r.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.l.stopPlayer=function(){this.index=-1;this.videoId="";Bjd(this)};
_.l.isPlaying=function(){return this.playerState==1};
_.l.isBuffering=function(){return this.playerState==3};
_.l.isAdPlaying=function(){return this.playerState==1081};
var fk=function(r,f){r.playerTime_=f;r.playerTimeAt_=_.Dc()},qGd=function(r){switch(r.playerState){case 1:case 1081:return(_.Dc()-r.playerTimeAt_)/1E3+r.playerTime_;
case -1E3:return 0}return r.playerTime_};
Q6.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.Dc()-this.playerTimeAt_)/1E3:0):this.duration_};
var ug1=function(r,f,I){var C=r.videoId;r.videoId=f;r.index=I;f!=C&&Bjd(r)},DAp=function(r){var f={};
f.index=r.index;f.listId=r.listId;f.videoId=r.videoId;f.playerState=r.playerState;f.volume=r.volume;f.muted=r.muted;f.audioTrackId=r.audioTrackId;f.trackData=_.X0.unsafeClone(r.trackData);f.hasPrevious=r.hasPrevious;f.hasNext=r.hasNext;f.playerTime=r.playerTime_;f.playerTimeAt=r.playerTimeAt_;f.seekableStart=r.seekableStart_;f.seekableEnd=r.seekableEnd_;f.duration=r.duration_;f.loadedTime=r.loadedTime;f.liveIngestionTime=r.liveIngestionTime_;return f};
Q6.prototype.clone=function(){return new Q6(DAp(this))};var IL=function(r,f){_.QK.call(this);var I=this;this.state_=0;this.connection_=r;this.contextSubscriptions_=[];this.actionQueue_=new eH3;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.gL)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.gL)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.gL)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.gL)(this.onCloudviewAvailabilityChange_,this);var C=0;r?(C=r.getProxyState(),
C!=3&&(r.subscribe("proxyStateChange",this.setState_,this),rKs(this))):C=3;C!=0&&(f?this.setState_(C):_.rl(function(){I.setState_(C)},0));
(r=Kw7())&&fG6(this,r);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.t(IL,_.QK);IL.prototype.getState=function(){return this.state_};
IL.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
IL.prototype.reconnect=function(){this.connection_.reconnect()};
var Ck=function(r){return new Q6(r.connection_.getPlayerContextData())};
_.l=IL.prototype;_.l.play=function(){YS(this)?(this.castMedia_?this.castMedia_.play(null,_.n9,IG7(this,"play")):lo(this,"play"),Cgq(this,1,qGd(Ck(this))),this.publish("remotePlayerChange")):Vp(this,this.play)};
_.l.pause=function(){YS(this)?(this.castMedia_?this.castMedia_.pause(null,_.n9,IG7(this,"pause")):lo(this,"pause"),Cgq(this,2,qGd(Ck(this))),this.publish("remotePlayerChange")):Vp(this,this.pause)};
_.l.seekTo=function(r){if(YS(this)){if(this.castMedia_){var f=Ck(this),I=new chrome.cast.media.SeekRequest;I.currentTime=r;f.isPlaying()||f.isBuffering()?I.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:I.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(I,_.n9,IG7(this,"seekTo",{newTime:r}))}else lo(this,"seekTo",{newTime:r});Cgq(this,3,r);this.publish("remotePlayerChange")}else Vp(this,_.S_(this.seekTo,r))};
_.l.stop=function(){if(YS(this)){this.castMedia_?this.castMedia_.stop(null,_.n9,IG7(this,"stopVideo")):lo(this,"stopVideo");var r=Ck(this);r.stopPlayer();EV(this,r);this.publish("remotePlayerChange")}else Vp(this,this.stop)};
_.l.setVolume=function(r,f){if(YS(this)){var I=Ck(this);if(this.castSession_){if(I.volume!=r){var C=Math.round(r)/100;this.castSession_.setReceiverVolumeLevel(C,(0,_.gL)(function(){jI("set receiver volume: "+C)},this),(0,_.gL)(function(){this.warn_("failed to set receiver volume.")},this))}I.muted!=f&&this.castSession_.setReceiverMuted(f,(0,_.gL)(function(){jI("set receiver muted: "+f)},this),(0,_.gL)(function(){this.warn_("failed to set receiver muted.")},this))}else{var Y={volume:r,
muted:f};I.volume!=-1&&(Y.delta=r-I.volume);lo(this,"setVolume",Y)}I.muted=f;I.volume=r;EV(this,I)}else Vp(this,_.S_(this.setVolume,r,f))};
_.l.setAudioTrack=function(r,f){YS(this)?(f=f.getLanguageInfo().getId(),lo(this,"setAudioTrack",{videoId:r,audioTrackId:f}),r=Ck(this),r.audioTrackId=f,EV(this,r)):Vp(this,_.S_(this.setAudioTrack,r,f))};
_.l.addVideo=function(r){YS(this)?lo(this,"addVideo",{videoId:r}):Vp(this,_.S_(this.addVideo,r))};
_.l.addPlaylist=function(r){YS(this)?lo(this,"addVideos",{listId:r}):Vp(this,_.S_(this.addPlaylist,r))};
_.l.addVideos=function(r){r.length==0?this.warn_("Ignore add videos request due to empty list"):YS(this)?lo(this,"addVideos",{videoIds:r.join(",")}):Vp(this,_.S_(this.addVideos,r))};
_.l.JSC$17467_removeVideo=function(r){YS(this)?lo(this,"removeVideo",{videoId:r}):Vp(this,_.S_(this.JSC$17467_removeVideo,r))};
_.l.JSC$17467_insertVideo=function(r){YS(this)?lo(this,"insertVideo",{videoId:r}):Vp(this,_.S_(this.JSC$17467_insertVideo,r))};
_.l.playVideo=function(r,f,I,C,Y,V,S){C=C===void 0?null:C;Y=Y===void 0?null:Y;V=V===void 0?null:V;S=S===void 0?null:S;var h=Ck(this),w={videoId:r};I!==void 0&&(w.currentIndex=I);ug1(h,r,I||0);f!==void 0&&(fk(h,f),w.currentTime=f);C&&(w.listId=C);Y&&(w.playerParams=Y);V&&(w.clickTrackingParams=V);S&&(w.locationInfo=(0,_.FZ)(S));lo(this,"setPlaylist",w);C||EV(this,h)};
_.l.nextVideo=function(r,f){if(YS(this)){if(r&&f){var I=Ck(this);ug1(I,r,f);EV(this,I)}lo(this,"next")}else Vp(this,_.S_(this.nextVideo,r,f))};
_.l.clearPlaylist=function(){if(YS(this)){lo(this,"clearPlaylist");var r=Ck(this);r.reset();EV(this,r);this.publish("remotePlayerChange")}else Vp(this,this.clearPlaylist)};
_.l.dispose=function(){if(this.state_!=3){var r=this.state_;this.state_=3;this.publish("proxyStateChange",r,this.state_)}_.QK.prototype.dispose.call(this)};
_.l.disposeInternal=function(){Yn1(this);this.connection_=null;this.actionQueue_.clear();fG6(this,null);_.QK.prototype.disposeInternal.call(this)};
var rKs=function(r){_.Rv("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(f){this.contextSubscriptions_.push(this.connection_.subscribe(f,_.S_(this.onProxyEvent_,f),this))},r)},Yn1=function(r){_.Rv(r.contextSubscriptions_,function(f){this.connection_.unsubscribeByKey(f)},r);
r.contextSubscriptions_.length=0},YS=function(r){return r.getState()==1},Vp=function(r,f){r.actionQueue_.getCount()<50&&r.actionQueue_.enqueue(f)},Cgq=function(r,f,I){var C=Ck(r);
fk(C,I);C.playerState!=-1E3&&(C.playerState=f);EV(r,C)},lo=function(r,f,I){r.connection_.sendMessage(f,I)},EV=function(r,f){Yn1(r);
r.connection_.setPlayerContextData(DAp(f));rKs(r)};
IL.prototype.setState_=function(r){if((r!=this.state_||r==2)&&this.state_!=3&&r!=0){var f=this.state_;this.state_=r;this.publish("proxyStateChange",f,r);if(r==1)for(;!this.actionQueue_.isEmpty();)r=this.actionQueue_,a4V(r),r.front_.pop().apply(this);else r==3&&this.dispose()}};
IL.prototype.onProxyEvent_=function(r,f){this.publish(r,f)};
var fG6=function(r,f){r.castSession_&&(r.castSession_.removeUpdateListener(r.boundCastStatusListener_),r.castSession_.removeMediaListener(r.boundCastMediaListener_),r.onCastMediaChange_(null));r.castSession_=f;if(r.castSession_&&(jI("Setting cast session: "+r.castSession_.sessionId),r.castSession_.addUpdateListener(r.boundCastStatusListener_),r.castSession_.addMediaListener(r.boundCastMediaListener_),r.castSession_.media.length))r.onCastMediaChange_(r.castSession_.media[0])};
IL.prototype.onCastStatusUpdate_=function(r){if(!r)this.onCastMediaChange_(null),fG6(this,null);else if(this.castSession_.receiver.volume){r=this.castSession_.receiver.volume;var f=Ck(this),I=Math.round(100*r.level||0);if(f.volume!=I||f.muted!=r.muted)jI("Cast volume update: "+r.level+(r.muted?" muted":"")),f.volume=I,f.muted=!!r.muted,EV(this,f)}};
IL.prototype.onCastMediaChange_=function(r){jI("Cast media: "+!!r);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=r)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),lG7(this),this.publish("remotePlayerChange")};
var lG7=function(r){var f=r.castMedia_.media,I=r.castMedia_.customData;if(f&&I){var C=Ck(r);f.contentId!=C.videoId&&jI("Cast changing video to: "+f.contentId);C.videoId=f.contentId;C.playerState=I.playerState;fk(C,r.castMedia_.getEstimatedTime());EV(r,C)}else jI("No cast media video. Ignoring state update.")};
IL.prototype.onCastMediaUpdate_=function(r){if(r)lG7(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
IL.prototype.onCloudviewAvailabilityChange_=function(){var r=Kw7();r&&fG6(this,r)};
IL.prototype.warn_=function(r){JM("CP",r)};
var IG7=function(r,f,I){return(0,_.gL)(function(C){this.warn_("Failed to "+f+" with cast v2 channel. Error code: "+C.code);C.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+f+" using MDx browser channel."),lo(this,f,I))},r)};var xS=function(r,f,I,C){C=C===void 0?!1:C;_.QK.call(this);var Y=this;this.connectTimerId_=NaN;this.reconnecting_=!1;this.idleDisconnectTimerId_=this.clientSetVideoTimerId_=this.playingSyncTimerId_=this.reconnectedCheckScreenTimeout_=NaN;this.listeners_=[];this.autoplayMode_=this.autoplayVideoId_=this.clientVideoId_=this.playerContext_=this.channelService=null;this.JSC$17474_http_=r;this.enableConnectWithInitialState_=C;this.listeners_.push(_.oh(window,"beforeunload",function(){Y.JSC$17477_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new Q6;this.currentScreenId_=f.id;this.currentScreenIdType_=f.idType;this.channelService=V_i(this.JSC$17474_http_,I,this.JSC$17477_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){Vvq(Y)});
this.channelService.listen("channelClosed",function(){Sz("Channel closed");isNaN(Y.connectTimerId_)?Wn(!0):Wn();Y.dispose()});
this.channelService.listen("channelError",function(V){Wn();isNaN(Y.getReconnectTimeout_())?(V==1&&Y.currentScreenIdType_=="shortLived"&&Y.publish("browserChannelAuthError",V),Sz("Channel error: "+V+" without reconnection"),Y.dispose()):(Y.reconnecting_=!0,Sz("Channel error: "+V+" with reconnection in "+Y.getReconnectTimeout_()+" ms"),EJ1(Y,2))});
this.channelService.listen("channelMessage",function(V){SnV(Y,V)});
this.channelService.setLoungeToken(f.token);this.subscribe("remoteQueueChange",function(){var V=Y.playerContext_.videoId;A1p()&&_.Ch("yt-remote-session-video-id",V)})};
_.t(xS,_.QK);
xS.prototype.connect=function(r,f){if(f){var I=f.listId,C=f.videoId,Y=f.videoIds,V=f.playerParams,S=f.clickTrackingParams,h=f.index,w={videoId:C},n=f.currentTime,d=f.locationInfo;f=f.loopMode;n!==void 0&&(w.currentTime=n<=5?0:n);V&&(w.playerParams=V);d&&(w.locationInfo=d);S&&(w.clickTrackingParams=S);I&&(w.listId=I);Y&&Y.length>0&&(w.videoIds=Y.join(","));h!==void 0&&(w.currentIndex=h);this.enableConnectWithInitialState_&&(w.loopMode=f||"LOOP_MODE_OFF");I&&(this.playerContext_.listId=I);this.playerContext_.videoId=
C;this.playerContext_.index=h||0;this.playerContext_.state=3;fk(this.playerContext_,n);this.autoplayMode_="UNSUPPORTED";I=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";Sz("Connecting with "+I+" and params: "+(0,_.FZ)(w));this.channelService.connect({method:I,params:(0,_.FZ)(w)},r,ql3())}else Sz("Connecting without params"),this.channelService.connect({},r,ql3());xbV(this)};
xS.prototype.setLoungeToken=function(r){this.channelService.setLoungeToken(r)};
xS.prototype.dispose=function(){this.isDisposed()||(_.OH("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),EJ1(this,3));_.QK.prototype.dispose.call(this)};
xS.prototype.disposeInternal=function(){hM6(this);wD6(this);bhp(this);_.I1(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.I1(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.udu(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.QK.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var pDV=function(r){return _.yE(r.connectedDevices_,function(f){return f.type=="LOUNGE_SCREEN"})},Sz=function(r){JM("conn",r)},EJ1=function(r,f){r.publish("proxyStateChange",f)},xbV=function(r){r.connectTimerId_=_.rl(function(){Sz("Connecting timeout");
r.JSC$17477_disconnect_(1)},2E4)},hM6=function(r){_.I1(r.connectTimerId_);
r.connectTimerId_=NaN},bhp=function(r){_.I1(r.reconnectedCheckScreenTimeout_);
r.reconnectedCheckScreenTimeout_=NaN},nJU=function(r){wD6(r);
r.playingSyncTimerId_=_.rl(function(){hu(r,"getNowPlaying")},2E4)},wD6=function(r){_.I1(r.playingSyncTimerId_);
r.playingSyncTimerId_=NaN},Vvq=function(r){Sz("Channel opened");
r.reconnecting_&&(r.reconnecting_=!1,bhp(r),r.reconnectedCheckScreenTimeout_=_.rl(function(){Sz("Timing out waiting for a screen.");r.JSC$17477_disconnect_(1)},15E3))},zMi=function(r,f){var I=null;
if(f){var C=pDV(r);C&&(I={clientName:C.clientName,deviceMake:C.brand,deviceModel:C.model,osVersion:C.osVersion})}_.OH("yt.mdx.remote.remoteClient_",I);f&&(hM6(r),bhp(r));I=r.channelService.isChannelOpened()&&isNaN(r.connectTimerId_);f==I?f&&(EJ1(r,1),hu(r,"getSubtitlesTrack")):f?(r.getOtherConnectedRemoteId_()&&r.playerContext_.reset(),EJ1(r,1),hu(r,"getNowPlaying"),db6(r)):r.JSC$17477_disconnect_(1)},Mv6=function(r,f){var I=f.params.videoId;
delete f.params.videoId;I==r.playerContext_.videoId&&(_.X0.isEmpty(f.params)?r.playerContext_.trackData=null:r.playerContext_.trackData=f.params,r.publish("remotePlayerChange"))},gJp=function(r,f,I){var C=f.params.videoId||f.params.video_id,Y=parseInt(f.params.currentIndex,10);
r.playerContext_.listId=f.params.listId||r.playerContext_.listId;ug1(r.playerContext_,C,Y);r.publish("remoteQueueChange",I)},aGp=function(r,f){f.params=f.params||{};
gJp(r,f,"NOW_PLAYING_MAY_CHANGE");r.onStateChange_(f);r.publish("autoplayDismissed")};
xS.prototype.onStateChange_=function(r){var f=parseInt(r.params.currentTime||r.params.current_time,10);fk(this.playerContext_,isNaN(f)?0:f);f=parseInt(r.params.state,10);f=isNaN(f)?-1:f;f==-1&&this.playerContext_.playerState==-1E3&&(f=-1E3);this.playerContext_.playerState=f;f=Number(r.params.loadedTime);this.playerContext_.loadedTime=isNaN(f)?0:f;f=Number(r.params.duration);this.playerContext_.duration_=isNaN(f)?0:f;f=this.playerContext_;var I=Number(r.params.liveIngestionTime);f.liveIngestionTime_=
I;f.isLive_=isNaN(I)?!1:!0;f=this.playerContext_;I=Number(r.params.seekableStartTime);r=Number(r.params.seekableEndTime);f.seekableStart_=isNaN(I)?0:I;f.seekableEnd_=isNaN(r)?0:r;this.playerContext_.playerState==1?nJU(this):wD6(this);this.publish("remotePlayerChange")};
xS.prototype.onAdStateChange_=function(r){if(this.playerContext_.playerState!=-1E3){var f=1085;switch(parseInt(r.params.adState,10)){case 1:f=1081;break;case 2:f=1084;break;case 0:f=1083}this.playerContext_.playerState=f;r=parseInt(r.params.currentTime,10);fk(this.playerContext_,isNaN(r)?0:r);this.publish("remotePlayerChange")}};
var XD6=function(r,f){var I=f.params.muted=="true";r.playerContext_.volume=parseInt(f.params.volume,10);r.playerContext_.muted=I;r.publish("remotePlayerChange")},NQU=function(r,f){r.autoplayVideoId_=f.params.videoId;
r.publish("nowAutoplaying",parseInt(f.params.timeout,10))},$bB=function(r,f){r.autoplayVideoId_=f.params.videoId||null;
r.publish("autoplayUpNext",r.autoplayVideoId_)},Fg6=function(r,f){r.autoplayMode_=f.params.autoplayMode;
r.publish("autoplayModeChange",r.autoplayMode_);r.autoplayMode_=="DISABLED"&&r.publish("autoplayDismissed")},Pg2=function(r,f){var I=f.params.hasNext=="true";
r.playerContext_.hasPrevious=f.params.hasPrevious=="true";r.playerContext_.hasNext=I;r.publish("previousNextChange")};
xS.prototype.isCapabilitySupportedOnConnectedDevices_=function(r){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var f=_.E(this.connectedDevices_),I=f.next();!I.done;I=f.next())if(!I.value.capabilities.has(r))return!1;return!0};
var SnV=function(r,f){f=f.message;f.params?Sz("Received: action="+f.action+", params="+(0,_.FZ)(f.params)):Sz("Received: action="+f.action+" {}");switch(f.action){case "loungeStatus":f=(0,_.ao)(f.params.devices);r.connectedDevices_=_.$X(f,function(C){return new O9(C)});
f=!!_.yE(r.connectedDevices_,function(C){return C.type=="LOUNGE_SCREEN"});
zMi(r,f);f=r.isCapabilitySupportedOnConnectedDevices_("mlm");r.publish("multiStateLoopEnabled",f);break;case "loungeScreenDisconnected":bWB(r.connectedDevices_,function(C){return C.type=="LOUNGE_SCREEN"});
zMi(r,!1);break;case "remoteConnected":var I=new O9((0,_.ao)(f.params.device));_.yE(r.connectedDevices_,function(C){return C.equals(I)})||_.Zd(r.connectedDevices_,I);
break;case "remoteDisconnected":I=new O9((0,_.ao)(f.params.device));bWB(r.connectedDevices_,function(C){return C.equals(I)});
break;case "gracefulDisconnect":break;case "playlistModified":gJp(r,f,"QUEUE_MODIFIED");break;case "nowPlaying":aGp(r,f);break;case "onStateChange":r.onStateChange_(f);break;case "onAdStateChange":r.onAdStateChange_(f);break;case "onVolumeChanged":XD6(r,f);break;case "onSubtitlesTrackChanged":Mv6(r,f);break;case "nowAutoplaying":NQU(r,f);break;case "autoplayDismissed":r.publish("autoplayDismissed");break;case "autoplayUpNext":$bB(r,f);break;case "onAutoplayModeChanged":Fg6(r,f);break;case "onHasPreviousNextChanged":Pg2(r,
f);break;case "requestAssistedSignIn":r.publish("assistedSignInRequested",f.params.authCode);break;case "onLoopModeChanged":r.publish("loopModeChange",f.params.loopMode);break;default:Sz("Unrecognized action: "+f.action)}};
_.l=xS.prototype;_.l.getProxyState_=function(){var r=3;this.isDisposed()||(r=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(r=1):r=2);return r};
_.l.JSC$17477_disconnect_=function(r){Sz("Disconnecting with "+r);_.OH("yt.mdx.remote.remoteClient_",null);hM6(this);this.publish("beforeDisconnect",r);r==1&&Wn();this.channelService.disconnect(r);this.dispose()};
_.l.getPlayerContextData_=function(){var r=this.playerContext_;this.clientVideoId_&&(r=this.playerContext_.clone(),ug1(r,this.clientVideoId_,r.index));return DAp(r)};
_.l.setPlayerContextData_=function(r){var f=this,I=new Q6(r);I.videoId&&I.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=I.videoId,_.I1(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.rl(function(){if(f.clientVideoId_){var Y=f.clientVideoId_;f.clientVideoId_=null;f.playerContext_.videoId!=Y&&hu(f,"getNowPlaying")}},5E3));
var C=[];this.playerContext_.listId==I.listId&&this.playerContext_.videoId==I.videoId&&this.playerContext_.index==I.index||C.push("remoteQueueChange");this.playerContext_.playerState==I.playerState&&this.playerContext_.volume==I.volume&&this.playerContext_.muted==I.muted&&qGd(this.playerContext_)==qGd(I)&&(0,_.FZ)(this.playerContext_.trackData)==(0,_.FZ)(I.trackData)||C.push("remotePlayerChange");this.playerContext_.reset(r);_.Rv(C,function(Y){this.publish(Y)},this)};
_.l.getOtherConnectedRemoteId_=function(){var r=this.channelService.getDeviceId(),f=_.yE(this.connectedDevices_,function(I){return I.type=="REMOTE_CONTROL"&&I.id!=r});
return f?f.id:""};
_.l.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.l.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.l.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.l.JSC$17477_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var db6=function(r){_.I1(r.idleDisconnectTimerId_);r.idleDisconnectTimerId_=_.rl(function(){r.JSC$17477_disconnect_(1)},864E5)},hu=function(r,f,I){I?Sz("Sending: action="+f+", params="+(0,_.FZ)(I)):Sz("Sending: action="+f);
r.channelService.sendMessage(f,I)};
xS.prototype.sendMessageWithUserAction_=function(r,f){hu(this,r,f);db6(this)};
xS.prototype.JSC$17477_getXsrfToken_=function(){var r=_.xB.get("SAPISID","")||_.xB.get("__Secure-1PAPISID",void 0)||"",f=_.xB.get("__Secure-3PAPISID","")||"";if(!r&&!f)return"";r=_.Dp(_.zH(r),2);f=_.Dp(_.zH(f),2);return _.Dp(_.zH(","+r+","+f),2)};
xS.prototype.subscribe=xS.prototype.subscribe;xS.prototype.unsubscribeByKey=xS.prototype.unsubscribeByKey;xS.prototype.getProxyState=xS.prototype.getProxyState_;xS.prototype.disconnect=xS.prototype.JSC$17477_disconnect_;xS.prototype.getPlayerContextData=xS.prototype.getPlayerContextData_;xS.prototype.setPlayerContextData=xS.prototype.setPlayerContextData_;xS.prototype.getOtherConnectedRemoteId=xS.prototype.getOtherConnectedRemoteId_;xS.prototype.getReconnectTimeout=xS.prototype.getReconnectTimeout_;
xS.prototype.getAutoplayMode=xS.prototype.getAutoplayMode_;xS.prototype.getAutoplayVideoId=xS.prototype.getAutoplayVideoId_;xS.prototype.reconnect=xS.prototype.JSC$17477_reconnect_;xS.prototype.sendMessage=xS.prototype.sendMessageWithUserAction_;xS.prototype.getXsrfToken=xS.prototype.JSC$17477_getXsrfToken_;xS.prototype.isCapabilitySupportedOnConnectedDevices=xS.prototype.isCapabilitySupportedOnConnectedDevices_;var tvU=function(r){ie.call(this,"ScreenServiceProxy");this.instance_=r;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.gL)(this.JSC$17480_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.gL)(this.onOnlineScreenChange_,this)))};
_.t(tvU,ie);_.l=tvU.prototype;_.l.getScreens=function(r){return this.instance_.$_gs(r)};
_.l.contains=function(r){return!!this.instance_.$_c(r)};
_.l.get=function(r){return this.instance_.$_g(r)};
_.l.start=function(){this.instance_.$_st()};
_.l.add=function(r,f,I){this.instance_.$_a(r,f,I)};
_.l.remove=function(r,f,I){this.instance_.$_r(r,f,I)};
_.l.updateName=function(r,f,I,C){this.instance_.$_un(r,f,I,C)};
_.l.disposeInternal=function(){for(var r=this.subscriptionKeys_.length,f=0;f<r;++f)this.instance_.$_ubk(this.subscriptionKeys_[f]);this.subscriptionKeys_.length=0;this.instance_=null;ie.prototype.disposeInternal.call(this)};
_.l.JSC$17480_onScreenChange_=function(){this.publish("screenChange")};
_.l.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
K4.prototype.$_st=K4.prototype.start;K4.prototype.$_gspc=K4.prototype.JSC$17437_getScreenByPairingCode;K4.prototype.$_gsppc=K4.prototype.JSC$17437_getScreenByPollingPairingCode;K4.prototype.$_c=K4.prototype.contains;K4.prototype.$_g=K4.prototype.get;K4.prototype.$_a=K4.prototype.add;K4.prototype.$_un=K4.prototype.updateName;K4.prototype.$_r=K4.prototype.remove;K4.prototype.$_gs=K4.prototype.getScreens;K4.prototype.$_gos=K4.prototype.JSC$17437_getOnlineScreens;K4.prototype.$_s=K4.prototype.subscribe;
K4.prototype.$_ubk=K4.prototype.unsubscribeByKey;var JKV=function(r){fk7();if(!L4||!L4.get("yt-remote-disable-remote-module-for-dev")){r=_.Lz("MDX_CONFIG")||r;Y0d();GIY();wS||(wS=new Pn(r?r.loungeApiHost:void 0),Iki()&&(wS.basePath="/api/loungedev"));bo||(bo=_.jH("yt.mdx.remote.deferredProxies_")||[],_.OH("yt.mdx.remote.deferredProxies_",bo));TQ1();var f=pk();if(!f){var I=new K4(wS,r?r.disableAutomaticScreenCache||!1:!1);_.OH("yt.mdx.remote.screenService_",I);f=pk();var C={};r&&(C={appId:r.appId,disableDial:r.disableDial,theme:r.theme,loadCastApiSetupScript:r.loadCastApiSetupScript,
disableCastApi:r.disableCastApi,enableDialLoungeToken:r.enableDialLoungeToken,enableCastLoungeToken:r.enableCastLoungeToken,forceMirroring:r.forceMirroring});_.OH("yt.mdx.remote.enableConnectWithInitialState_",r?r.enableConnectWithInitialState||!1:!1);JZs(I,function(V){V?nk()&&Uo6(nk(),"YouTube TV"):I.subscribe("onlineScreenChange",function(){qf("yt-remote-receiver-availability-change")})},C)}if(r&&!_.jH("yt.mdx.remote.initialized_")){_.OH("yt.mdx.remote.initialized_",!0);
dS("Initializing: "+(0,_.FZ)(r));z2.push(_.Ds("yt-remote-cast2-api-ready",function(){qf("yt-remote-api-ready")}));
z2.push(_.Ds("yt-remote-cast2-availability-change",function(){qf("yt-remote-receiver-availability-change")}));
z2.push(_.Ds("yt-remote-cast2-receiver-selected",function(){cK1();qf("yt-remote-auto-connect","cast-selector-receiver")}));
z2.push(_.Ds("yt-remote-cast2-receiver-resumed",function(){qf("yt-remote-receiver-resumed","cast-selector-receiver")}));
z2.push(_.Ds("yt-remote-cast2-session-change",Wgi));z2.push(_.Ds("yt-remote-connection-change",function(V){V?Uo6(nk(),"YouTube TV"):Lg7()||(Uo6(null,null),vI6())}));
z2.push(_.Ds("yt-remote-cast2-session-failed",function(){qf("yt-remote-connection-failed")}));
C=mb1();r.isAuto&&(C.id+="#dial");var Y=r.capabilities||[];Y.length>0&&(C.capabilities=Y);C.name=r.device;C.app=r.app;(r=r.theme)&&(C.theme=r);dS(" -- with channel params: "+(0,_.FZ)(C));C?(_.Ch("yt-remote-session-app",C.app),_.Ch("yt-remote-session-name",C.name)):(_.lg("yt-remote-session-app"),_.lg("yt-remote-session-name"));_.OH("yt.mdx.remote.channelParams_",C);f.start();nk()||eMs()}}},Hh7=function(){var r=pk().instance_.$_gos();
var f=j_d();f&&Mt()&&(OAV(r,f)||r.push(f));return so6(r)},ihY=function(){var r=Hh7(),f=j_d();
f||(f=Lg7());return _.yE(r,function(I){return f&&Tl(f,I.key)?!0:!1})},j_d=function(){var r=nk();
if(!r)return null;var f=pk().getScreens();return cn(f,r)},Wgi=function(r){dS("remote.onCastSessionChange_: "+sli(r));
if(r){var f=j_d();f&&f.id==r.id?(Uo6(f.id,"YouTube TV"),r.idType=="shortLived"&&(r=r.token)&&(f=Mt())&&f.setLoungeToken(r)):(f&&RM6(),vJY(r,1))}else Mt()&&RM6()},RM6=function(){yZ3()?OA().stopSession():sA("stopSession called before API ready.");
var r=Mt();r&&(r.disconnect(1),Kg2(null))},yKY=function(){var r=Mt();
return r&&r.getProxyState()!=3?new IL(Mt(),void 0):null},dS=function(r){JM("remote",r)},pk=function(){if(!Ub6){var r=_.jH("yt.mdx.remote.screenService_");
Ub6=r?new tvU(r):null}return Ub6},nk=function(){return _.jH("yt.mdx.remote.currentScreenId_")},s_i=function(r){_.OH("yt.mdx.remote.currentScreenId_",r)},cK1=function(){_.OH("yt.mdx.remote.connectData_",null)},Mt=function(){return _.jH("yt.mdx.remote.connection_")},Kg2=function(r){var f=Mt();
cK1();r||s_i("");_.OH("yt.mdx.remote.connection_",r);bo&&(_.Rv(bo,function(I){I(r)}),bo.length=0);
f&&!r?qf("yt-remote-connection-change",!1):!f&&r&&qf("yt-remote-connection-change",!0)},Lg7=function(){var r=A1p();
if(!r)return null;var f=pk();if(!f)return null;f=f.getScreens();return cn(f,r)},vJY=function(r,f){s_i(r.id);
r=new xS(wS,r,mb1(),_.jH("yt.mdx.remote.enableConnectWithInitialState_")||!1);r.connect(f,_.jH("yt.mdx.remote.connectData_"));r.subscribe("beforeDisconnect",function(I){qf("yt-remote-before-disconnect",I)});
r.subscribe("beforeDispose",function(){Mt()&&Kg2(null)});
r.subscribe("browserChannelAuthError",function(){var I=j_d();I&&I.idType=="shortLived"&&(yZ3()?OA().handleBrowserChannelAuthError():sA("refreshLoungeToken called before API ready."))});
Kg2(r)},eMs=function(){var r=Lg7();
r?(dS("Resume connection to: "+sli(r)),vJY(r,0)):(Wn(),vI6(),dS("Skipping connecting because no session screen found."))},wS=null,bo=null,Ub6=null,TQ1=function(){var r=mb1();
if(_.X0.isEmpty(r)){r=Qo1();var f=_.YJ("yt-remote-session-name")||"",I=_.YJ("yt-remote-session-app")||"";r={device:"REMOTE_CONTROL",id:r,name:f,app:I,mdxVersion:3};r.authuser=String(_.Lz("SESSION_INDEX","0"));(f=_.Lz("DELEGATED_SESSION_ID"))&&(r.pageId=String(f));_.OH("yt.mdx.remote.channelParams_",r)}},mb1=function(){return _.jH("yt.mdx.remote.channelParams_")||{}},z2=[];var Ohs=new _.WW("yt-menu"),oJd=function(){},AKs=function(r,f,I){r=f=="right-click"?I.rightClickMenuPopupHint:I.menuPopupHint;
if(!(Q_p(f)>10))return f=f||"default",Ohs.set(f+"-impression",Q_p(f)+1),r},Q_p=function(r){return parseInt(Ohs.get((r||"default")+"-impression")||0,10)};
_.uO(oJd);var Zhq=function(){this.contexts_=new WeakMap;this.JSC$17486_networkService_=this.activeContext_=null},Gwd=function(r,f,I){var C=r.contexts_.get(f);
C||(C=new C6d(r.JSC$17486_networkService_),r.contexts_.set(f,C));r.activeContext_=C;I&&r.activeContext_.reset();r.activeContext_.start();return r.activeContext_};var gS=function(){};
gS.prototype.enqueue=function(){var r=this,f;return _.x(function(I){if(r.isCounterfactual())return(f=r.getCounterfactualData())&&r.shouldLogCounterfactualImpression()&&r.sendImpressionEndpoints(f),I.return();r.doEnqueue();_.wO(I)})};
gS.prototype.sendImpressionEndpoints=function(r){_.iz.getInstance().triggerOptionalAction("yt-service-request",{},r[0])};var aL=function(r,f){this.renderer=r;this.page=f};
_.t(aL,gS);aL.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
aL.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
aL.prototype.shouldLogCounterfactualImpression=function(){return!0};
aL.prototype.doEnqueue=function(){var r=_.Uk(this.page);r&&r.pause();this.renderer.impressionCommand&&_.iz.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.WJ(_.iz.getInstance(),[this.renderer.promoCommand],this.page)};var kw7=function(r,f){this.renderer=r;this.resolver=_.eu();this.JSC$17498_enforcementCounter=new _.fE3;f?this.JSC$17498_playerManager=_.Uk(f):this.JSC$17498_playerManager=null;_.Ib(1,!0)};
_.t(kw7,gS);_.l=kw7.prototype;_.l.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var r=[];this.renderer.impressionEndpoints.forEach(function(f){(f=_.aB(f))&&r.push(f)});
return r}};
_.l.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.l.shouldLogCounterfactualImpression=function(){var r=_.HbK();r?(this.JSC$17498_enforcementCounter.increment("POPUP"),_.Ib(3)):_.Ib(2);return r};
_.l.cancel=function(){this.resolver.promise.cancel()};
_.l.doEnqueue=function(){var r=this;_.HbK()?(this.JSC$17498_enforcementCounter.increment("POPUP"),_.Ib(3),BQ7(this)):this.JSC$17498_playerManager?(this.resolver.promise.then(function(){BQ7(r)}),qnU(this.resolver,this.JSC$17498_playerManager)):_.Ib(2)};
var qnU=function(r,f){var I=_.eu();f.getPlayerPromise().then(function(C){I.resolve(C)});
I.promise.then(function(C){C.addEventListener("onAbnormalityDetected",r.resolve);_.XZ(r.promise,function(){C.removeEventListener("onAbnormalityDetected",r.resolve)})});
r.promise.thenCatch(function(){I.promise.cancel()})},BQ7=function(r){_.Ib(3);
var f={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:r.renderer}};f=_.iz.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:f},{});Promise.all(f).then(function(){uTU();r.JSC$17498_playerManager&&r.JSC$17498_playerManager.pause()})},uTU=function(){qj3(function(r,f){_.Blp(r,f);
r===0?_.Ib(7):_.Ib(4)})};var DbV=function(r,f){this.renderer=r;this.page=f;this.resolver=_.eu()};
_.t(DbV,gS);_.l=DbV.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 r=this;this.resolver.promise.then(function(){var I={popup:{mealbarPromoRenderer:r.renderer},popupType:"MEALBAR"};_.iz.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:I},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var f=_.Uk(this.page);f&&ri6(this.resolver,f)}break;default:this.resolver.resolve()}};
var ri6=function(r,f){var I=_.eu();f.getPlayerPromise().then(function(C){I.resolve(C)});
I.promise.then(function(C){C.addEventListener("onAdEnd",r.resolve);_.XZ(r.promise,function(){C.removeEventListener("onAdEnd",r.resolve)})});
r.promise.thenCatch(function(){I.promise.cancel()})};var fH6=function(r,f){this.renderer=r;this.page=f};
_.t(fH6,gS);_.l=fH6.prototype;_.l.cancel=function(){this.JSC$17506_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17506_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17506_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 r=this,f,I;((f=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(I=f.playbackUpsellDialogTriggerConditionData)==null?void 0:I.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17506_downloadedVideosCountSelectorUnsubscriber=_.wj(_.K2(),AV6,function(C,Y){C>Y&&(IHU(r),r.cancel())}):IHU(this)};
var IHU=function(r){var f={popup:{upsellDialogRenderer:r.renderer},popupType:"MODAL"};_.iz.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:f},{});(r=_.Uk(r.page))&&r.pause()};var XO={},Cn6=(XO.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",XO.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",XO.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",XO.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",XO.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",XO.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",XO.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",XO),YfU=function(r,f){this.renderer=r;this.targetManager=
f};
_.t(YfU,gS);_.l=YfU.prototype;_.l.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17513_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17513_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17513_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.l.getCounterfactualData=function(){if(this.isCounterfactual()){var r;return(r=this.renderer.promoConfig)==null?void 0:r.impressionEndpoints}};
_.l.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.l.shouldLogCounterfactualImpression=function(){return!0};
_.l.doEnqueue=function(){var r=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17513_downloadedVideosCountSelectorUnsubscriber=_.wj(_.K2(),AV6,function(f,I){r.renderer.targetId&&f>I&&(jBU(r.targetManager,r.renderer.targetId,lH3(r)),r.cancel())});
break;default:jBU(this.targetManager,this.renderer.targetId,lH3(this))}};
var lH3=function(r){var f;if((f=r.renderer.suggestedPosition)==null?0:f.type)var I=Cn6[r.renderer.suggestedPosition.type];I||(I="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:r.renderer},popupType:"HINT",position:I}}};var VpY=function(){this.previousPage=null},Eni;
VpY.prototype.registerPromoCommand=function(r,f){SfV(this,void 0,void 0,_.F(r.roadblock,PR6),void 0,void 0,f)};
var SfV=function(r,f,I,C,Y,V,S){r.previousPage!==S&&r.pendingTooltipPromo&&r.pendingTooltipPromo.cancel();r.previousPage=S;Y?(r.pendingEnforcementPromo&&r.pendingEnforcementPromo.cancel(),r.pendingEnforcementPromo=new kw7(Y,S),r.pendingEnforcementPromo.enqueue()):V?(r.pendingCommandWrapperPromo=new aL(V,S),r.pendingCommandWrapperPromo.enqueue()):C?(r.pendingRoadblockPromo&&r.pendingRoadblockPromo.cancel(),r.pendingRoadblockPromo=new fH6(C,S),r.pendingRoadblockPromo.enqueue()):f?(r.pendingMealbarPromo&&
r.pendingMealbarPromo.cancel(),r.pendingMealbarPromo=new DbV(f,S),r.pendingMealbarPromo.enqueue()):I&&(r.pendingTooltipPromo&&r.pendingTooltipPromo.cancel(),r.pendingTooltipPromo=new YfU(I,_.fh()),r.pendingTooltipPromo.enqueue())},xzs=function(){Eni||(Eni=new VpY);
return Eni};var AZB=!1;var KWd=function(r,f){var I=_.Lz("SESSION_INDEX");this.actionToken_=r;this.commonToken_=f;this.sessionIndex_=I},vNq=function(r){var f=_.eu(),I=_.jH("payments.business.integration.bootstrap"),C=_.jH("payments.business.integration"),Y=C.Style.create().withMaterialDesignStyle(),V=C.mashupMode.popup("instrument-manager");
I.asMashupMode(V).usingUserIndex(r.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(Y).inStandaloneContext(C.standaloneContextAuthId.forUserId()).instrumentManager(r.actionToken_,r.commonToken_.length>0?r.commonToken_:void 0,function(S){var h=S.instrumentId;h?f.resolve(h):(h=_.jH("payments.business.integration.scenario.InstrumentManager"),f.reject(S.errorCode&&S.errorCode===h.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(S){_.eH(S);
f.reject("instrumentManagerLoadError")});
return f.promise};var ke=function(r,f,I){this.payloadName="transactionFlowFailed";this.payload={errorType:r,serializedTransactionFlowLoggingParams:f,isUserDismiss:I===void 0?!1:I}};
_.OH("yt.ypc.shared.YpcTransactionFlowError",ke);var Nt=function(){return _.rm.apply(this,arguments)||this};
_.t(Nt,_.rm);Nt.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Nt.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Nt.prototype.onErrorMessageDismiss=Nt.prototype.onErrorMessageDismiss;_.A([_.K({readOnly:!0,observer:"errorRendererChanged"}),_.B("design:type",Object)],Nt.prototype,"errorRenderer",void 0);_.A([_.kO("yt-live-chat-error-message-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Nt.prototype,"onErrorMessageDismiss",null);Nt=_.A([_.fx()],Nt);var hVY=[Nt.prototype];var w2i;var bT7;var p2V=new _.WW("yt-live-chat"),nnp=new Map;nnp.set("timestamp_toggle","show-timestamps");nnp.set("reactions_toggle","allow-reactions");var $S=function(){return _.y.apply(this,arguments)||this};
_.t($S,_.y);_.l=$S.prototype;_.l.menuItemIdentifierChanged=function(){var r;(r=this.data)!=null&&r.menuItemIdentifier&&(r=nnp.get(this.data.menuItemIdentifier))&&(_.N("enable_lwe_web_mute")?(r=p2V.get(r),this.isToggled=!(r===void 0?!this.data.isToggled:!r)):this.isToggled=p2V.get(r))};
_.l.onFocus=function(){this.toggleButton.focus()};
_.l.onTap=function(){var r=this.data.command;r&&this.componentBehavior.resolveCommand(r)};
_.l.computeText=function(r,f,I){return this.componentBehavior.getSimpleString(r?I:f)};
_.l.computeIcon=function(r,f,I){return(r=r?I:f)&&r.iconType?_.kN(r.iconType):""};
$S.prototype.onTap=$S.prototype.onTap;$S.prototype.onFocus=$S.prototype.onFocus;$S.prototype.menuItemIdentifierChanged=$S.prototype.menuItemIdentifierChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],$S.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],$S.prototype,"componentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],$S.prototype,"data",void 0);
_.A([_.K({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.B("design:type",String)],$S.prototype,"icon",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],$S.prototype,"isToggled",void 0);_.A([_.uA("tp-yt-paper-toggle-button"),_.B("design:type",Object)],$S.prototype,"toggleButton",void 0);_.A([_.Bt("data.menuItemIdentifier"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$S.prototype,"menuItemIdentifierChanged",null);
_.A([_.kO("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$S.prototype,"onFocus",null);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$S.prototype,"onTap",null);$S=_.A([_.zX({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],$S);
_.Q($S,"yt-live-chat-toggle-renderer",function(){if(bT7===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;w2i===void 0&&(w2i=document.createElement("template"));var C=w2i;I.call(f,C.content.cloneNode(!0),r.content.firstChild);bT7=r}r=bT7;return r},{mode:_.N("live_chat_enable_sink_wrapper")?2:0});var dzU=new _.Go("NAVIGATION_PROGRESS_TOKEN");_.Ww("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var zV6={},Doi=(zV6.CSI=function(r,f){var I={};I[r]=f;r=_.Jn(_.lVP)(I);Object.keys(r).length>0&&_.gX(r)},zV6.ECATCHER=function(r){return function(f,I){_.Lz(r)[f]=I}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),zV6);var MpY={},gnB={},aHd=(gnB[blB.name]=!0,gnB),FO=function(){var r=_.rm.apply(this,arguments)||this;r._noAccessors=!0;r.tabGesturesIsActive=!1;r.actionRouterIsRoot=!0;r.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"};r.pageTitle="";r.titleSuffix="YouTube";r.unseenNotificationCount=
0;r.hasNavigated=!1;r.hasSetScrollTopForNavigation=!1;r.pagePreparer=null;r.zwiebackInitJobId=0;r.dataUpdatePromise=null;r.loadDepsPromise=_.fe();r.hasPendingNavigation=!1;r.pendingPlayerOnResponseReceivedActions=[];return r};
_.t(FO,_.rm);FO.prototype.attached=function(){X2s(this);document.addEventListener("yt-navigate-cache",_.GF(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var r=PV();r.init();r.dispatchElement=this.hostElement};
var X2s=function(r,f){f=f===void 0?0:f;var I=_.a().resolve(_.ZY(_.rQ));if(I)NJU(r,I);else{if(f>=5)throw Error("Wk");setTimeout(function(){X2s(r,f+1)},0)}},NJU=function(r,f){f.addEventListener("yt-navigate-start",_.GF(r,r.onYtNavigateStart));
f.addEventListener("yt-navigate-finish",_.GF(r,r.onYtNavigateFinish));f.addEventListener("yt-navigate-error",_.GF(r,r.onYtNavigateError));f.addEventListener("yt-page-data-fetched",_.GF(r,r.onYtPageDataFetched))};
_.l=FO.prototype;_.l.detached=function(){var r=_.a().resolve(_.rQ);r.removeEventListener("yt-navigate-start",_.GF(this,this.onYtNavigateStart));r.removeEventListener("yt-navigate-finish",_.GF(this,this.onYtNavigateFinish));r.removeEventListener("yt-navigate-error",_.GF(this,this.onYtNavigateError));r.removeEventListener("yt-page-data-fetched",_.GF(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.GF(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.l.setPageOffset=function(r,f){r?_.Bj(this.hostElement,"yt-set-page-offset",[r,f]):_.Fo(Error("Xk"))};
_.l.setPageOffsetForNavigation=function(r,f){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(r,f))};
_.l.onYtNavigateSetPageOffset=function(r,f){this.setPageOffsetForNavigation(f.page,f.offset)};
_.l.getPageOffset=function(){var r=_.e(this.hostElement).querySelector("#page-manager").getCurrentPage(),f=0;r&&(f=_.Bj(this.hostElement,"yt-get-page-offset",[r])[0]);return f};
_.l.onYtHistoryPop=function(r,f){if(_.mO("DISABLE_WARM_LOADS"))r.preventDefault(),window.location.reload();else{var I=_.a().resolve(_.rQ);I.hasPendingNavigation()&&r.preventDefault();I.cancelPendingNavigation();_.qy(this.hostElement,"yt-pending-navigation-cancelled");f.errorMsg&&(r=f.errorMsg.split(" - "),f=Error(r[0]),r.length==2&&r[1]&&(_.TL(f,r[1]),_.t7(f)),window.location.reload())}};
_.l.onYtHistoryLoad=function(r,f){var I=this;if(_.mO("DISABLE_WARM_LOADS"))window.location.reload();else{(r=f.endpoint)&&Object.keys(r).length||(r=null);var C=f.historyEntry,Y=_.a().resolve(_.rQ),V=_.a().resolve(_.y2),S=null;C&&C.rootData&&(S=C.rootData);var h=S&&$zi(S);!S||h||S.filler?r?(Y.navigate(r,!0),Fu1(this,r)):(f.legacyBorder||h||(f.JSC$26391_savedComponentState==null&&S==null?_.t7(new _.nf("Incomplete history entry",f.forward)):_.PR(new _.nf("Malformed history entry",f.JSC$26391_savedComponentState,
f.forward,S))),window.location.reload()):(_.pJB({isHot:!0}),_.gX({webInfo:{navigationReason:"h"}}),_.cpw(),_.Xc("srt"),_.Xc("pdc"),this.cancelPendingTasks(),Pnp(this,f.forward,S),S.player&&(S.player.loaded=!1),Fu1(this,r),_.eTX(Y,r||{},S,2,{},!1,f).then(function(){I.setPageOffset(V.getCurrentPage(),C.scrollTop||0)}))}};
_.l.initHistoryManager=function(r){if(!this.hasNavigated){this.hasNavigated=!0;var f=_.e(this.hostElement).querySelector("#page-manager").getCurrentData();r=isNaN(r)?this.getPageOffset():r;var I=_.a().resolve(_.rQ).currentEndpoint;this.replaceState(I,f,r)}};
_.l.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.l.onYtNavigateStart=function(r,f){this.cancelPendingTasks();f.noProgressBar||(r=_.a().resolve(_.ZY(dzU)))&&r.start();r=this.hasPendingNavigation?null:this.data;var I=_.a().resolve(_.y2),C,Y,V;_.N("kevlar_use_vimio_behavior")&&!((C=f.endpoint)==null?0:(Y=C.commandMetadata)==null?0:(V=Y.webCommandMetadata)==null?0:V.ignoreNavigation)&&(C=I.getCurrentPage())&&C.disconnectVisibilityRoot();I.prepareForNavigation(f.pageType,f.endpoint);_.N("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.Un(1,
"pcl"),_.sn(this.pagePreparer,I.preparePage.bind(I,f.pageType,f.endpoint)));C=this.getPageOffset();this.initHistoryManager(C);f.reload||this.hasPendingNavigation?this.replaceState(f.endpoint,r,C):(r==null?void 0:r.page)==="watch"&&f.pageType==="watch"&&_.N("kevlar_replace_watch_to_watch_history_state")?this.replaceState(f.endpoint,r,C):(r==null?void 0:r.page)!=="shorts"||f.pageType!=="shorts"||f.endpoint.reelWatchEndpoint.sequenceParams||_.N("short_to_short_back_nav_killswitch")?f.type!="navigate-back"&&
f.type!="navigate-forward"&&(f.pageType==="shorts"&&_.kA(this.hostElement,"yt-shorts-reset"),this.saveAndPush(f.url,f.endpoint,r,C)):this.replaceState(f.endpoint,r,0);this.hasPendingNavigation=!0};
var tp6=function(r){r.hasPendingNavigation=!1;(r=_.a().resolve(_.ZY(dzU)))&&r.finish()};
FO.prototype.onYtNavigateError=function(r,f){tp6(this);r=this.get("endpoint.commandMetadata.webCommandMetadata.url",f);var I=_.Kz(window.location.href);r&&!I.pbjreload&&(f=f.navigationErrorReason||"10",_.N("kevlar_parent_on_pbjreload")&&(I={csn:_.t1()},this.get("data.endpoint.clickTrackingParams")&&(I.itct=this.data.endpoint.clickTrackingParams),_.sl(r,I)),_.$O(_.yM(r,{pbjreload:f})))};
FO.prototype.onYtNavigateCache=function(r,f){var I=this,C=f.url,Y=f.endpoint,V=f.data;r=!!f.miniplayer;f=!!f.skipHistory;if(C&&Y&&V){var S=this.getPageOffset(),h=this.data||null;f||this.saveAndPush(C,Y,h,S);C=_.eTX(_.a().resolve(_.rQ),Y,V,r?4:3,{},r);r&&C.then(function(){I.dataUpdatePromise&&I.dataUpdatePromise.then(function(){var w=_.a().resolve(_.y2);I.setPageOffset(w.getCurrentPage(),0)})})}};
FO.prototype.onYtNavigateFinish=function(r,f){var I=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){TJ6(I,f.fromHistory)})};
var TJ6=function(r,f){tp6(r);if(r.pendingPlayerOnResponseReceivedActions){for(var I=_.E(r.pendingPlayerOnResponseReceivedActions),C=I.next();!C.done;C=I.next())_.u7(C.value,r.hostElement);r.pendingPlayerOnResponseReceivedActions=[]}I=_.a().resolve(_.y2);!f&&r.hasNavigated&&((f=I.getCurrentPage())?f.is==="ytd-shorts"||r.tabGesturesIsActive||r.setPageOffsetForNavigation(f,0):_.t7(Error("Yk")));_.Fi(function(){_.Fi(function(){_.Xc("pda")})})};
FO.prototype.onYtNavigate=function(r){if(!r.detail.endpoint){var f=new _.nf("Error: Missing yt-navigate endpoint from target:",r.target,r.target.nodeName);_.Fo(f)}if(f=_.N("cold_missing_history"))f=PV(),f.init(!1),f=!(f.browserHistory.boundHistoryReplaceState&&f.browserHistory.boundHistoryPushState);if(f){_.Ww("DISABLE_WARM_LOADS",!0);f=new _.nf("Failed to initialize history manager",this.getDebugString());var I=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
I?_.t7(f):_.Fo(f)}f=r.detail.endpoint;var C,Y;_.N("debug_forward_web_query_parameters")&&((C=f.commandMetadata)==null?0:(Y=C.webCommandMetadata)==null?0:Y.url)&&(f=JSON.parse(JSON.stringify(f)),f.commandMetadata.webCommandMetadata.url=_.k5u(f.commandMetadata.webCommandMetadata.url,window.location.search));r={type:0,command:f,form:{params:r.detail.params,tempData:r.detail.tempData||{},requestType:r.detail.type,createScreenConfig:r.detail.createScreenConfig,reload:r.detail.reload?r.detail.reload:!1,
requestForm:r.detail}};_.N("kevlar_yt_navigate_command_handler")?(C=_.a().resolve(_.Gg),r.form.skipDefaultElement=!0,C.resolveCommand(f,{form:r.form})):this.handleNavigate(r)};
FO.prototype.handleNavigate=function(r){this.hasSetScrollTopForNavigation=!1;var f=_.a().resolve(_.rQ),I=r.form||{};f.navigate(r.command,I.reload,I.params,I.tempData,I.requestType,I.createScreenConfig,I.ignoreConfirmation,I.requestForm)&&Fu1(this,r.command,I.tempData)};
FO.prototype.onYtPageDataFetched=function(r,f){try{_.HnB().reset();this.data=f.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.a().resolve(_.y2).updatePageData(this.data);var I=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);I&&rQd(I);var C=this.get("response.responseContext.serviceTrackingParams",this.data);C&&rQd(C);var Y=
this.get("playerResponse.onResponseReceivedActions",this.data);Y&&(Y=cid(this,Y));Y&&_.rX(this.hostElement,Y,this.hostElement);var V=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),S=this.get("response.responseContext.consistencyTokenJar",this.data);if(V||S){var h=_.eIw(),w=(0,_.X0.getValues)(h.tokenJars);V&&h.replace(w,V);S&&h.replace(w,S)}}catch(n){_.Fo(n)}};
var Fu1=function(r,f,I){try{r.onYtEndpointChangeHandler(f,I)}catch(C){_.Fo(C)}};
_.l=FO.prototype;_.l.onYtEndpointChangeHandler=function(){};
_.l.setPageTitle=function(r){r=(this.pageTitle=r)?r+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+r};
_.l.onYtUpdateTitle=function(r,f){this.setPageTitle(f)};
_.l.setUnseenNotificationCount=function(r){this.unseenNotificationCount=r;this.setPageTitle(this.pageTitle)};
_.l.handleUpdateNotificationsUnseenCountAction=function(r){_.F(r,GdB)&&((r=_.F(r,GdB).unseenCount)?this.setUnseenNotificationCount(r):this.setUnseenNotificationCount(0))};
_.l.handleClearCookieAction=function(r){var f;(r=(f=_.F(r,o73))==null?void 0:f.cookieName)&&_.pju(r)};
_.l.onYtUpdateUnseenNotificationCount=function(r,f){this.setUnseenNotificationCount(f)};
_.l.loadData=function(r){var f=this;this.loadDepsPromise.then(function(){var I=_.a().resolve(_.ZY(_.rQ));I||_.Fo(Error("Zk"));if(r&&r.response){if(!r.endpoint){var C=_.J1(window.document.location.href)||"/",Y="";if(C==="/"||C.startsWith("/?"))Y="WEB_PAGE_TYPE_BROWSE";r.endpoint={commandMetadata:{webCommandMetadata:{url:C,webPageType:Y,rootVe:3854}}}}_.eTX(I,r.endpoint,r,5,{})}else r.endpoint?I.navigate(r.endpoint):I.navigate(_.h9);_.F_.cancelJob(f.zwiebackInitJobId);f.zwiebackInitJobId=_.F_.addLowPriorityJob(Ze7)})};
var PV=function(){return _.a().resolve(_.C_)};
FO.prototype.getDebugString=function(){return PV().getDebugString()};
FO.prototype.getThirdPartyManipulationSuspected=function(){return PV().getThirdPartyManipulationSuspected()};
FO.prototype.replaceState=function(r,f,I){PV().saveAndReplace(r,f,I)};
FO.prototype.saveAndPush=function(r,f,I,C){PV().saveAndPush(r,f,I,C)};
var $zi=function(r){return _.N("web_honor_cache_for_back")&&(_.F(r.endpoint,_.vj)||_.F(r.endpoint,_.xO))?!0:!r||isNaN(r.expirationTime)?!1:(0,_.Ad)()>r.expirationTime},Pnp=function(r,f,I){var C=r.get("response.trackingParams",I),Y=_.Pj(),V=_.t1();
if(C&&Y&&V&&(C=r.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",I),!C&&I.rootVe&&(C=I.rootVe),Y=f?"forwardButton":"backButton",f=r.get("playerResponse.topbar.desktopTopbarRenderer."+Y+".buttonRenderer.command.clickTrackingParams",r.data),r=r.get("response.topbar.desktopTopbarRenderer."+Y+".buttonRenderer.command.clickTrackingParams",r.data),f=(r=f||r)?_.VH(r):void 0,r=_.IB(),Y=[_.fe(I)],_.f3(r,C,f,{dataPromises:Y,csnToClone:I.csn}),I.graftedVes))for(I=
_.E(I.graftedVes),C=I.next();!C.done;C=I.next())_.Ia(r,C.value)};
FO.prototype.onStoreGraftedVeAction=function(r){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(r)):_.t7(Error("$k"))};
var cid=function(r,f){return f.filter(function(I){for(var C in I)if(aHd[C])return r.pendingPlayerOnResponseReceivedActions.push(I),!0;return!1})};
_.OC.Object.defineProperties(FO.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
FO.prototype.onStoreGraftedVeAction=FO.prototype.onStoreGraftedVeAction;FO.prototype.loadData=FO.prototype.loadData;FO.prototype.onYtUpdateUnseenNotificationCount=FO.prototype.onYtUpdateUnseenNotificationCount;FO.prototype.handleClearCookieAction=FO.prototype.handleClearCookieAction;FO.prototype.handleUpdateNotificationsUnseenCountAction=FO.prototype.handleUpdateNotificationsUnseenCountAction;FO.prototype.setUnseenNotificationCount=FO.prototype.setUnseenNotificationCount;
FO.prototype.onYtUpdateTitle=FO.prototype.onYtUpdateTitle;FO.prototype.setPageTitle=FO.prototype.setPageTitle;FO.prototype.onYtEndpointChangeHandler=FO.prototype.onYtEndpointChangeHandler;FO.prototype.onYtPageDataFetched=FO.prototype.onYtPageDataFetched;FO.prototype.handleNavigate=FO.prototype.handleNavigate;FO.prototype.onYtNavigate=FO.prototype.onYtNavigate;FO.prototype.onYtNavigateFinish=FO.prototype.onYtNavigateFinish;FO.prototype.onYtNavigateCache=FO.prototype.onYtNavigateCache;
FO.prototype.onYtNavigateError=FO.prototype.onYtNavigateError;FO.prototype.onYtNavigateStart=FO.prototype.onYtNavigateStart;FO.prototype.cancelPendingTasks=FO.prototype.cancelPendingTasks;FO.prototype.initHistoryManager=FO.prototype.initHistoryManager;FO.prototype.onYtHistoryLoad=FO.prototype.onYtHistoryLoad;FO.prototype.onYtHistoryPop=FO.prototype.onYtHistoryPop;FO.prototype.onYtNavigateSetPageOffset=FO.prototype.onYtNavigateSetPageOffset;FO.prototype.setPageOffset=FO.prototype.setPageOffset;
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],FO.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],FO.prototype,"data",void 0);_.A([_.kO("yt-navigate-set-page-offset"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],FO.prototype,"onYtNavigateSetPageOffset",null);
_.A([_.kO("yt-history-pop"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],FO.prototype,"onYtHistoryPop",null);_.A([_.kO("yt-history-load"),_.B("design:type",Function),_.B("design:paramtypes",[Event,_.uwg]),_.B("design:returntype")],FO.prototype,"onYtHistoryLoad",null);_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],FO.prototype,"onYtNavigate",null);
_.A([_.kO("yt-update-title"),_.B("design:type",Function),_.B("design:paramtypes",[Event,String]),_.B("design:returntype")],FO.prototype,"onYtUpdateTitle",null);_.A([_.kO("yt-update-unseen-notification-count"),_.B("design:type",Function),_.B("design:paramtypes",[Event,Number]),_.B("design:returntype")],FO.prototype,"onYtUpdateUnseenNotificationCount",null);FO=_.A([_.fx()],FO);MpY.YtdAppBehavior=[_.o_.YtActionHandlerBehavior,FO.prototype];var tu=function(){var r=_.rm.apply(this,arguments)||this;r._noAccessors=!0;return r};
_.t(tu,_.rm);tu.prototype.ready=function(){var r=this;_.e(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){r.onChange_()})};
tu.prototype.dataChanged_=function(){_.e(this.hostElement).querySelector("#checkbox").checked=!1};
tu.prototype.onChange_=function(){var r=_.e(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.kA(this.hostElement,"yt-dismissal-reason-"+r,this.data.feedbackToken)};
tu.prototype.dataChanged_=tu.prototype.dataChanged_;_.A([_.K(),_.B("design:type",Object)],tu.prototype,"data",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tu.prototype,"dataChanged_",null);tu=_.A([_.fx()],tu);var WuB=[tu.prototype];var T2=function(){var r=_.rm.apply(this,arguments)||this;r.timeoutJobId=0;r.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return r};
_.t(T2,_.rm);T2.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
T2.prototype.startTimeout=function(){var r=this,f=this.data&&this.data.displayDurationSeconds;f&&!this.timeoutJobId&&(this.timeoutJobId=_.dp(_.F_,function(){_.Bj(r.hostElement,"yt-close-popup-action",[r.is]);r.timeoutJobId=0},f*1E3))};
T2.prototype.cancelTimeout=function(){_.F_.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
T2.prototype.ytdHatsSurveyBehaviorDataChanged=T2.prototype.ytdHatsSurveyBehaviorDataChanged;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],T2.prototype,"ytActionHandlerBehavior",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],T2.prototype,"ytdHatsSurveyBehaviorDataChanged",null);T2=_.A([_.fx()],T2);var Lup=[_.o_.YtActionHandlerBehavior,T2.prototype];var mz6=function(r,f){return r.SHARED_RENDERERS_.hasOwnProperty(f)?"yt":r.prefix},cV={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}};cV.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.N("kevlar_mealbar_above_player"),modern:_.N("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"}};
cV.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};cV.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};cV.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
cV.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)"}};
cV.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};
cV.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};
cV.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};
cV.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};cV.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"}};
cV.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};cV.TOAST={component:null,properties:{}};var eVd=new function(r,f,I){this.supportedPopups=r;this.navigationEndpointPopupMap=f;this.popupTypeMap=I;this.supportedPopups=r;this.navigationEndpointPopupMap=f;this.popupTypeMap=I}({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:_.N("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"}),JiB=new function(){this.prefix="ytd";this.SHARED_RENDERERS_={aboutThisAdRenderer:!0,
bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,
loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17565_popupConfig=cV;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 jOU=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.aN.getInstance()},WV=function(r,f){var I=r.pageNameToElement.get(f);
if(!I){switch(f){case "watch":var C=_.N("web_watch_force_learning_journey_for_testing")?_.yb("ytd-watch-learning-journey"):_.N("kevlar_watch_fixie")?_.yb("ytd-watch-fixie"):_.N("kevlar_watch_grid")?_.yb("ytd-watch-grid"):_.yb("ytd-watch-flexy");break;case "learning_journey_watch":C=_.yb("ytd-watch-learning-journey");break;case "shorts":C=_.yb("ytd-shorts");break;case "search":C=_.yb("ytd-search");break;case "channel":C=_.yb("ytd-browse");C.pageSubtype="channels";break;case "trending":C=_.yb("ytd-browse");
C.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":C=
_.yb("ytd-browse");C.pageSubtype=f;break;case "browse":C=_.yb("ytd-browse");break;default:_.t7(new _.nf("Error getting page element for type",f))}I=C;r.pageNameToElement.set(f,I)}return I};
jOU.prototype.preparePage=function(r,f,I){I&&(r=_.YO(I)||r);if(r!=="watch"){var C=this.elementPoolPopulator,Y=r;Y!=C.targetPage_&&C.pendingPages_.indexOf(Y)>-1&&(C.targetPage_&&(C.pendingPages_.unshift(C.targetPage_),C.abort()),Rs2(C,Y),_.B43(C,Y))}if((C=WV(this,r))||!_.F(I,_.HR)){C.isAttached||C===f||(C.hidden=!0);if(!(C.data||r==="watch"&&_.N("swatcheroo_page_pool_dont_provide_filler_data"))){var V;if(r=(V=_.Lz("FILLER_DATA",{})[r])==null?void 0:V.response)C.data=r}return C}};var HTB=function(r){this.JSC$28312_clientRoot=r;this.playlistHandlerActionMap={"yt-add-to-playlist-command":Yrs,"yt-end-playlist-command":lxV,"yt-recover-playlist-command":ExU,"yt-refresh-playlist-command":hki,"yt-playlist-remove-videos-action":Sr6};_.R5(_.iz.getInstance(),this.playlistHandlerActionMap,this.JSC$28312_clientRoot);Zv3()},iT2;var Lk=function(r,f,I){this.apiKey=r;this.endpoint=f;this.confidenceThreshold=I===void 0?.5:I;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=f==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||f==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
f==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||f==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new Lm1};
_.l=Lk.prototype;
_.l.start=function(r){if(this.state===0)if(this.isOnline()){r.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=r.supportsHttpHeadersOverwriteParam);r.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=r.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.al("voice_assistant");_.No("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=r.languageCode||"en-US";this.supportsCrossDomainXhr=r.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=r.youtubeAssistantRequest||null;this.listeningHandler=r.listeningHandler||this.listeningHandler;this.audioDetectedHandler=r.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=r.stopHandler||this.stopHandler;this.completeHandler=r.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=r.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=r.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
r.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=r.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=r.accessToken;this.additionalHeaders=r.additionalHeaders||{};var f;this.prefetchResponseTimeoutMs=(f=r.prefetchResponseTimeoutMs)!=null?f:this.prefetchResponseTimeoutMs;RV6(this);this.startAudio();vn1(this)}else this.errorHandler("OFFLINE")};
_.l.stop=function(r){var f=r===void 0?{}:r;r=f.logCancel===void 0?!0:f.logCancel;var I=f.logMicClosed===void 0?!0:f.logMicClosed;var C=f.handleError===void 0?!0:f.handleError;f=f.handleStop===void 0?!0:f.handleStop;this.state!==0&&(r&&mD("voz_cx"),ez(this,{logMicClosed:I,handleStop:f}),C&&this.errorHandler("ABORTED"))};
_.l.getState=function(){return this.state};
_.l.isSupported=function(){return!0};
_.l.stopAudio=function(r){(r===void 0||r)&&mD("voz_mf")};
_.l.startAudio=function(){mD("voz_vp");return _.fe(null)};
var KuV=function(r,f){r.channelOpen&&(r.state!==2&&(r.state=2,mD("voz_ss"),r.listeningHandler()),f=new Uint8Array(f),f='{ "audioIn": "'+_.Dp(f)+'" }',r.channel.send(f))},ez=function(r,f){var I=f===void 0?{}:f;
f=I.logMicClosed===void 0?!0:I.logMicClosed;I=I.handleStop===void 0?!0:I.handleStop;r.vozEndOfDataTimeout>-1&&(clearTimeout(r.vozEndOfDataTimeout),r.vozEndOfDataTimeout=-1);yiq(r);r.stopAudio(f);r.channel&&(r.channelOpen=!1,r.manuallyClosedChannel=!0,r.channel.close(),r.channel=void 0);r.transcribedSpeechResults=[];r.state=0;I&&r.stopHandler()},RV6=function(r){var f={httpHeadersOverwriteParam:r.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},r.additionalHeaders,r.accessToken&&r.isUsingVoz?{Authorization:"Bearer "+r.accessToken}:{"x-goog-api-key":r.apiKey}),supportsCrossDomainXhr:r.supportsCrossDomainXhr};r.channel=new m7(r.endpoint,f);r.channel.open();_.S$(r.channel,"w",function(){var I=r.channel,C=I.send,Y=r.isUsingVoz?"PLACEHOLDER":"example";Y={config:{dialogStateIn:{languageCode:r.languageCode},deviceConfig:{deviceId:Y,deviceModelId:Y},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!r.isUsingVoz)Y.config.requestType=4;else if(r.isUsingVoz&&r.youtubeAssistantRequest){var V=JSON.stringify(r.youtubeAssistantRequest);Y.config.internalIn={youtubeAssistantS3InputJson:V}}C.call(I,Y);r.channelOpen=!0;r.manuallyClosedChannel=!1});
_.S$(r.channel,"x",function(){r.manuallyClosedChannel||(r.channelOpen=!1,r.channel=void 0,ez(r))});
_.S$(r.channel,"z",function(I){if(I.data){yiq(r);for(var C=0;C<I.data.length;C++){var Y=r,V=I.data[C],S=V.speechResults;if(S)a:{var h=[];V=[];var w=!1;S=_.E(S);for(var n=S.next();!n.done;n=S.next()){n=n.value;if(n.noSpeech){ez(Y);Y.errorHandler("NO_SPEECH");break a}n.transcript!==void 0&&n.stability!==void 0&&(n.stability<Y.confidenceThreshold&&(w=!0),w?V.push(n.transcript):h.push(n.transcript))}if(h.length!==0||V.length!==0)h=h.join(" "),V=V.join(" "),Y.receivedEndOfUtterance&&!Y.isUsingVoz?Y.isUsingVoz||
Y.completeHandler([h,V]):(w=Y,S=h,n=V,mD("voz_sf"),w.transcriptionUpdateHandler(S,n),w.transcribedSpeechResults=[S,n]),Y.receivedEndOfUtterance&&(mD("voz_eou"),Y.transcriptionCompleteHandler([h,V]),Y.isUsingVoz&&(Y.prefetchResponseTimeoutMs===0?ez(Y,{logMicClosed:!1,handleStop:!0}):Y.prefetchResponseTimeoutMs>0&&Uz2(Y)))}else Y.isUsingVoz&&(V==null?0:V.internalOut)?(V=JSON.parse(V.internalOut.youtubeAssistantS3OutputJson),V.userHasOptedInToVaa||V.vaaConsent?Y.vaaConsentUpdateHandler(!!V.userHasOptedInToVaa,
!!V.vaaConsent):(sO1(Y),V&&(h=Y.transcribedSpeechResults,mD("voz_rqf"),Y.completeHandler(h,V)))):V.eventType==="END_OF_UTTERANCE"?Y.receivedEndOfUtterance=!0:(mD("voz_err"),Y.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.t7(Error("al")))}}});
_.S$(r.channel,"y",function(I){ez(r);switch(I.status){case 1:I="WEBCHANNEL_NETWORK_ERROR";break;case 2:I="WEBCHANNEL_SERVER_ERROR";break;default:I="WEBCHANNEL_UNKNOWN_ERROR"}r.errorHandler(I);r.logError(Error(I))})};
Lk.prototype.logError=function(r){_.Fo(r)};
Lk.prototype.isOnline=function(){return!0};
var Uz2=function(r){sO1(r);r.prefetchResponseSetTimeoutId=setTimeout(function(){ez(r,{logMicClosed:!1,handleStop:!0})},r.prefetchResponseTimeoutMs)},sO1=function(r){r.prefetchResponseSetTimeoutId>-1&&(clearTimeout(r.prefetchResponseSetTimeoutId),r.prefetchResponseSetTimeoutId=-1)},vn1=function(r){yiq(r);
r.noResponseReceivedTimeout=window.setTimeout(function(){ez(r);r.errorHandler("NO_SPEECH")},11E3)},yiq=function(r){r.noResponseReceivedTimeout>-1&&(window.clearTimeout(r.noResponseReceivedTimeout),r.noResponseReceivedTimeout=-1)},mD=function(r){_.Xc(r,void 0,"voice_assistant")};var Ju=function(){Lk.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.t(Ju,Lk);Ju.prototype.isSupported=function(){return w16()};
Ju.prototype.startAudio=function(){var r=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.h3(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(C){OT6(r,C)};
this.processor.connect(this.audioContext.destination);var f=function(C){r.stream=C;if(!r.audioContext)return _.fe(null);C=r.audioContext.createMediaStreamSource(C);r.processor&&C.connect(r.processor);return _.fe(null)},I={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?f(this.stream):navigator.mediaDevices.getUserMedia(I).then(f).catch(function(C){ez(r);C.name&&C.name==="NotAllowedError"?r.errorHandler("NO_MICROPHONE_PERMISSION"):(r.errorHandler("AUDIO_ERROR"),r.logError(C));return _.h3(null)});
return Lk.prototype.startAudio.call(this)};
Ju.prototype.stopAudio=function(r){r=r===void 0?!0:r;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(f){f.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Lk.prototype.stopAudio.call(this,r)};
Ju.prototype.isOnline=function(){return navigator.onLine};
var OT6=function(r,f){if(r.audioContext)if(window.OfflineAudioContext){var I=r.audioContext.sampleRate,C=f.inputBuffer.getChannelData(0);f=new window.OfflineAudioContext(1,C.length,16E3);for(var Y=f.createBuffer(1,C.length,I),V=Y.getChannelData(0),S=0,h=0;h<C.length;h++)V[h]=C[h],S+=V[h]*V[h];!r.audioDetected&&Math.sqrt(S/C.length)>.01&&(r.audioDetected=!0,r.audioDetectedHandler());C=f.createBufferSource();C.buffer=Y;C.connect(f.destination);C.start(0);f.oncomplete=function(w){w=w.renderedBuffer.getChannelData(0);
for(var n=Math.floor(16384E3/I),d=new Int16Array(n),z=0;z<n;++z)d[z]=Math.max(-1,Math.min(1,w[z]))*32767;KuV(r,d.buffer)};
f.startRendering()}else ons(r,f)},ons=function(r,f){var I=r.audioContext.sampleRate,C=f.inputBuffer.getChannelData(0),Y=Math.floor((I+8E3)/16E3);
I=C.length/Y;f=new Float32Array(I);for(var V=0;V<I;++V)f[V]=C[V*Y];C=new Int16Array(I);for(Y=0;Y<I;++Y)C[Y]=Math.max(-1,Math.min(1,f[Y]))*32767;KuV(r,C.buffer)};var QO2={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var Ais=function(){this.JSC$17630_audioEnabled=!0;this.audioFeedbackHolder={}};
Ais.prototype.isPlaying=function(r){return r.currentTime>0&&!r.paused&&!r.ended&&r.readyState>2};
var ZTd=function(r){for(var f=_.E(Object.values(QO2)),I=f.next();!I.done;I=f.next())I=I.value,r.audioFeedbackHolder[I]=new Audio,r.audioFeedbackHolder[I].src="/s/search/audio/"+I+".mp3",r.audioFeedbackHolder[I].load()},jz=function(r,f){if(r.JSC$17630_audioEnabled!==!1&&f in r.audioFeedbackHolder){for(var I=_.E(Object.values(r.audioFeedbackHolder)),C=I.next();!C.done;C=I.next())C=C.value,r.isPlaying(C)&&C.pause();
r.audioFeedbackHolder[f].currentTime=0;r.audioFeedbackHolder[f].play().catch(function(){})}};var GJ6=function(r,f){var I=this;this.store=r;this.service=f;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){I.setState("offline");I.stop()};
this.audioPlayer=new Ais;var C;(C=this.audioPlayer)==null||ZTd(C)};
_.l=GJ6.prototype;_.l.getService=function(){return this.service};
_.l.isEnabled=function(){return!!this.service};
_.l.isSupported=function(){var r;return(r=this.service)==null?void 0:r.isSupported()};
_.l.start=function(){var r=this,f,I,C,Y,V,S,h,w,n,d,z,g,X;return _.x(function(P){switch(P.nextAddress){case 1:r.store.dispatch(BWV("",""));if(!navigator.onLine)return r.setState("offline"),P.return();window.addEventListener("offline",r.handleOfflineEvent);r.stream=null;if(!r.permissionsSupported){P.jumpTo(2);break}_.l_(P,3);return _.b(P,kJ6(r),5);case 5:f=P.yieldResult;if(!f)return(I=r.audioPlayer)==null||jz(I,"failure"),P.return();r.service.stream=r.stream;r.setState("listening");_.Hd(P,2);break;
case 3:_.ha(P),r.permissionsSupported=!1;case 2:C={context:_.XFw(_.GU())},C.youtubeAssistantParams={searchParams:{inlineSearchResponse:r.enableInlineSearchResponse}},Y=function(W,m){r.store.dispatch(qks("transcribing"));r.store.dispatch(BWV(W,m))},V=function(){var W;
(W=r.audioPlayer)==null||jz(W,"open");r.setState("listening")},S=function(){r.setState("transcribing")},h=function(W){r.setErrorState(W)},w=function(W,m){var v;
(v=r.audioPlayer)==null||jz(v,"success");m&&(_.N("kevlar_voice_search_inline_search")&&(r.responseProcessor=_.a().resolve(_.KPP),r.responseProcessor&&(v=m.navigationAction,W=m.prefetchedSearchResponse,v&&W&&(v=(new _.SP1).JSC$11814_getStoreKey(v),_.yW(r.responseProcessor,W,v)))),r.JSC$17648_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",m))},n=function(){window.removeEventListener("offline",r.handleOfflineEvent)},d=_.Lwu(!1),z=d.Authorization!=null,g=r.enableFirstPartyAuth||
r.enableFPAForSignedInUsers&&z?d:{"X-Goog-Visitor-Id":d["X-Goog-Visitor-Id"]},X={completeHandler:w,
errorHandler:h,listeningHandler:V,audioDetectedHandler:S,stopHandler:n,transcriptionUpdateHandler:Y,youtubeAssistantRequest:C,languageCode:BJq(),additionalHeaders:g,supportsCrossDomainXhr:r.enableFirstPartyAuth||r.enableFPAForSignedInUsers&&z,supportsHttpHeadersOverwriteParam:!r.disableHttpHeadersOverwrite},r.service.start(X),_.wO(P)}})};
_.l.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.l.reset=function(){this.store.dispatch(_.kI({type:"RESET_VOICE_SEARCH_STATE"}))};
_.l.setState=function(r){this.store.dispatch(qks(r))};
_.l.setErrorState=function(r){switch(r){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var f;(f=this.audioPlayer)==null||jz(f,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)kJ6(this);else{var I;(I=this.audioPlayer)==null||jz(I,"failure");this.setState("permission-denied")}break;case "ABORTED":var C;(C=this.audioPlayer)==null||jz(C,"no_input");break;default:var Y;(Y=this.audioPlayer)==
null||jz(Y,"no_input");this.setState("timeout")}};
var kJ6=function(r){var f,I;return _.x(function(C){switch(C.nextAddress){case 1:return _.b(C,navigator.permissions.query({name:"microphone"}),2);case 2:f=C.yieldResult;if(f.state==="granted")return C.return(!0);if(f.state==="denied")return r.setState("permission-denied"),C.return(!1);r.setState("permission");I={audio:{sampleSize:16,channelCount:1},video:!1};_.l_(C,3);return _.b(C,navigator.mediaDevices.getUserMedia(I),5);case 5:return r.stream=C.yieldResult,C.return(!0);case 3:return _.ha(C),r.setState("permission-denied"),
C.return(!1)}})},BJq=function(){var r=_.Lz("INNERTUBE_CONTEXT_HL"),f=_.Lz("INNERTUBE_CONTEXT_GL");
return r.indexOf("-")>-1?r:r+"-"+f};var qf6=function(r,f,I){GJ6.call(this,f,I);this.JSC$17648_actionRouter=r;this.enableInlineSearchResponse=_.N("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.N("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.N("kevlar_voice_search_enable_fpa_signedin_users")},uG6;
_.t(qf6,GJ6);
var Dzp=function(){if(!uG6){var r="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.N("kevlar_voice_search_auth_enabled")||_.N("kevlar_voice_search_use_yt_endpoint")?r="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.N("kevlar_voice_search_use_fp_endpoint")&&(r="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");uG6=
new qf6(_.iz.getInstance(),_.K2(),new Ju(_.Lz("VOZ_API_KEY"),r,.5))}return uG6};var rW6=function(r){this.JSC$17652_clientRoot=r;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$17652_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)]]));r=_.E(this.eventListeners);for(var f=r.next();!f.done;f=r.next()){var I=_.E(f.value);f=I.next().value;I=I.next().value;I=_.E(I);for(var C=I.next();!C.done;C=I.next()){var Y=
_.E(C.value);C=Y.next().value;Y=Y.next().value;f.addEventListener(C,Y)}}_.R5(_.iz.getInstance(),this.autonavPauseActionMap,this.JSC$17652_clientRoot)},fL1,IL6=function(r){return _.N("kevlar_autonav_popup_filtering")?(r=_.jl(r))?r.hasAttribute("prevent-autonav"):!0:!0};
_.l=rW6.prototype;_.l.onIronOverlayOpened=function(r){IL6(r)&&(this.autonavPauseReasons.overlayOpen=!0,HV(this))};
_.l.onIronOverlayClosed=function(r){IL6(r)&&(this.autonavPauseReasons.overlayOpen=!1,HV(this))};
_.l.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;HV(this)};
_.l.onYtAutonavPauseBlur=function(){var r=this;_.F_.addJob(function(){r.isInBackground()||(r.autonavPauseReasons.inputBoxFocus=!1,HV(r))},8,0)};
_.l.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;HV(this)};
_.l.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;HV(this)};
_.l.onYtAutonavPauseScroll=function(){var r=_.a().resolve(_.y2);r.isOnWatch()&&(r=r.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=r.getBoundingClientRect().top<-200,HV(this))};
_.l.onYtAutonavPauseUserEngagement=function(r){var f=this;if(_.N("user_engagement_enable_autoplay_pause_feature")){var I=Number(r.lowEngagementThresholdMs);isNaN(I)||I<=0||r.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.OI("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.a().resolve(_.dW),_.Zs()<I?_.dp(_.F_,function(){_.OI("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.u86()?(this.userEngagementCsn=_.t1(),_.dp(_.F_,function(){_.OI("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
f.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,HV(this)):_.OI("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.RsU(Error("bl`"+JSON.stringify(r)))};
_.l.onYtAutonavPausePlayer=function(r){this.autonavPauseReasons.requestedByPlayer=!!r.detail;HV(this)};
_.l.onYtAutonavVisibilityChanged=function(){var r=this,f,I,C;return _.x(function(Y){if(Y.nextAddress==1)return(f=_.sk())?_.b(Y,f.getPlayerPromise(),2):Y.return();I=Y.yieldResult;C=I.isMuted()||I.getVolume()===0;r.autonavPauseReasons.backgroundAndMute=r.isInBackground()&&C;HV(r);_.wO(Y)})};
_.l.onYtAutonavPausePlayerEnded=function(){_.a().resolve(_.dW);var r=144E5;_.N("user_engagement_enable_autoplay_pause_feature")||_.N("is_part_of_any_user_engagement_experiment")||(r=45E5);this.autonavPauseReasons.longIdle=_.Zs()>r;CQY(this);HV(this)};
_.l.onYtUserActivity=function(){var r=this;this.autonavPauseReasons.userEngagement&&(_.dp(_.F_,function(){_.OI("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",r.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,HV(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.dp(_.F_,function(){_.OI("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",r.userEngagementCsn);_.$l()}),this.autonavPauseReasons.youthereLactExperiment=!1,HV(this));
this.autonavPauseReasons.longIdle&&!_.N("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,HV(this))};
_.l.isInBackground=function(){var r=window.document.visibilityState;return!(!r||r==="visible")};
var HV=function(r){for(var f=!1,I=_.E(Object.values(r.autonavPauseReasons)),C=I.next();!C.done;C=I.next())C=C.value,f=f||C;f?_.Qk.getInstance().pause(r.autonavPauseReasons):(r=_.Qk.getInstance(),r.autonavState_==3?(r.setState(2,!1,!1),r.autonavPauseReason_=void 0):r.autonavState_==1&&(r.disabledAutonavPauseReason_=void 0))},CQY=function(r){var f=!1;
if(_.N("enable_autoplay_pause_by_lact")){_.a().resolve(_.dW);f=_.Bw("autoplay_pause_by_lact_sec")*1E3;var I=_.Bw("autoplay_pause_by_lact_sampling_fraction");(f=_.Zs()>=f&&Math.random()<I)&&!_.u86()&&(_.dp(_.F_,function(){_.OI("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),f=!1)}f!==r.autonavPauseReasons.youthereLactExperiment&&(r.autonavPauseReasons.youthereLactExperiment=f)&&(r.userEngagementCsn=_.t1(),_.dp(_.F_,function(){_.OI("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",r.userEngagementCsn)}));
r.autonavPauseReasons.userEngagement&&_.dp(_.F_,function(){_.OI("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",r.userEngagementCsn)})};
rW6.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.OI("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.$l(),this.autonavPauseReasons.youthereLactExperiment=!1,HV(this));this.autonavPauseReasons.userEngagement&&(_.OI("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,HV(this))};
rW6.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var io=function(){var r=_.y.apply(this,arguments)||this;r.miniGuideVisible=!1;r.guideOpened=_.N("disable_initial_guide_state_fix")?!1:r.canFitPersistentGuide(r.initialBodyClientWidth);r.guideUserStateOpened=r.getInitialGuideUserStateOpened();r.isFullscreenShorts=!1;r.miniGuideWidthThreshold=_.Bw("kevlar_mini_guide_width_threshold",791);r.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");r.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
r.persistentGuideBlockedPagePathRegex=new RegExp(r.persistentGuideBlockedPagesPatterns.join("|"));r.animationTransitionDuration=0;r.lateDataResolver=_.eu();r.initialGuideDataFetchFailed=!1;r.initialLoad=!0;r.guideRenderers=new Set;r.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return r};
_.t(io,_.y);_.l=io.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(){_.a().addProvider({provide:_.LY,useValue:this.hostElement})};
_.l.attached=function(){var r=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.GF(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.GF(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.GF(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.GF(this,this.onYtGuideShow));_.UC(this,function(){r.animationTransitionDuration=200})};
_.l.detached=function(){document.removeEventListener("yt-navigate-finish",_.GF(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.GF(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.GF(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.GF(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.GF(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.GF(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.GF(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.l.getData=function(){return this.data};
_.l.load=function(){var r=this,f,I,C,Y;return _.x(function(V){switch(V.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=r.lateDataResolver.resolve.bind(r),V.return(r.lateDataResolver.promise);if(window.ytInitialGuideData)return f=_.eu(),f.resolve(window.ytInitialGuideData),V.return(f.promise);C=!1;_.l_(V,2);return _.b(V,r.fetchGuideData(),4);case 4:I=V.yieldResult;_.Hd(V,3);break;case 2:Y=_.ha(V),Y.message==="Returned error"&&(C=!0);
case 3:if(I)return V.return(I);r.onYtGuideClose();C||(r.initialGuideDataFetchFailed=!0);return V.return(r.lateDataResolver.promise)}})};
_.l.fetchGuideData=function(){var r=this,f,I,C,Y,V,S,h,w,n;return _.x(function(d){if(d.nextAddress==1)return f=_.a(),r.guidePromise||(_.N("web_guide_fetch_command_ks")?r.guidePromise=_.Do(r.hostElement,[S6d]):(I=f.resolve(_.pJ),r.guidePromise=_.mC(I,S6d))),_.b(d,r.guidePromise,2);if(d.nextAddress!=3)return C=d.yieldResult,Y=f.resolve(_.R0),_.b(d,Y(),3);V=d.yieldResult;if(_.N("web_guide_fetch_command_ks"))return V&&((S=C)==null?0:S.data)&&((h=C.data.responseContext)==null?void 0:h.maxAgeSeconds)!==
0&&V.put("service:guide:fallback",new _.DL({innertubeResponse:C.data})),d.return(C.data);V&&((w=C)==null?void 0:(n=w.responseContext)==null?void 0:n.maxAgeSeconds)!==0&&V.put("service:guide:fallback",new _.DL({innertubeResponse:C}));return d.return(C)})};
_.l.initializeGuideDataIfEmpty=function(){var r=this,f,I;return _.x(function(C){if(C.nextAddress==1){if(!r.initialGuideDataFetchFailed||r.data)return C.return();_.l_(C,2);return _.b(C,r.fetchGuideData(),4)}if(C.nextAddress!=2)return(f=C.yieldResult)&&r.lateDataResolver.resolve(f),_.Hd(C,0);I=_.ha(C);_.t7(I);_.wO(C)})};
_.l.initializeGuideData=function(){var r=this,f;return _.x(function(I){switch(I.nextAddress){case 1:return _.wM(jh1(),{mainAppWeb:_.Wt()}),_.l_(I,2),_.b(I,r.load(),4);case 4:r.data=I.yieldResult;_.Hd(I,3);break;case 2:_.ha(I),_.bO(jh1(),"FAILURE");case 3:f=r.data&&r.data.items&&r.data.items.length>0?"SUCCESS":"FAILURE",_.bO(jh1(),f),_.wO(I)}})};
_.l.setGuideData=function(r){var f=this,I,C;return _.x(function(Y){if(Y.nextAddress==1)return f.disabled?Y.return():f.data?(r.data=f.data,f.guideRenderers.add(r),Y.return()):_.b(Y,f.initializeGuideData(),2);f.graftGuideToPage();I=_.mO("IS_HOMEPAGE_COLD")?"eop":void 0;_.N("disable_element_pool_populator")?f.setGuideDataAfterInit(r):(C=new _.Un(1,I),_.sn(C,f.setGuideDataAfterInit.bind(f,r)));_.wO(Y)})};
_.l.setGuideDataAfterInit=function(r){r.data=this.data;r.markDirty();this.guideRenderers.add(r);_.Fi(function(){_.Xc("gle")});
_.UC(this,function(){_.Xc("gpe")})};
_.l.graftGuideToPage=function(){if(this.data){var r=this.data&&this.data.trackingParams;r&&(r=_.VH(r),_.C3(_.IB(),r))}};
_.l.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.GF(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.l.onDrawerOpenedChanged=function(r,f){!f.value&&this.guideOpened&&(this.guideOpened=!1)};
_.l.onYtGuideToggle=function(r){var f=this.guideOpened;this.guideOpened=!f;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var I=_.xI();_.hZ(0,109,!this.guideUserStateOpened);I.save()}this.updateGuideDrawerElementState();if(this.guideElement){var C;this.guideOpened&&((C=r.detail)==null?0:C.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.GF(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.GF(this,
this.onAppDrawerTransitioned))}f||this.initializeGuideDataIfEmpty()};
_.l.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.GF(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.y9(this.guideElement)};
_.l.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.GF(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(GYp(this.guideOpened))};
_.l.guidePersistentAndVisibleChanged=function(){_.qy(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.l.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.kI({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.l.miniGuideVisibleChanged=function(){_.qy(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.l.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(GYp(this.guideOpened)),this.initialLoad=!1);_.qy(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.l.activeEndpointChanged=function(){_.qy(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 r=this.canFitPersistentGuide(this.cachedClientWidth);r?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=r}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&&_.kA(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.l.computeGuidePersistentAndVisible=function(){var r=this;_.Pc(this,"computeGuidePersistentAndVisible",function(){r.guidePersistentAndVisible=r.guideOpened&&r.guidePersistent;r.guideIsVisibleButNotPersistent=!(!r.guideOpened||r.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(){_.N("web_hide_guide_on_shorts")&&this.closeGuide()};
_.l.onYtNavigateFinish=function(r,f){if(!_.Yp||f){this.activeEndpoint=f.endpoint;this.pageType=f.pageType;this.pageUrl=f.response.url;var I,C;r=(C=_.F((I=f.endpoint)==null?void 0:I.commandMetadata,_.oo))==null?void 0:C.url;!this.pageUrl&&r&&(this.pageUrl=r);_.N("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.l.getVisibleGuideRenderer=function(){for(var r=_.E(this.guideRenderers),f=r.next();!f.done;f=r.next())if(f=f.value,this.miniGuideVisible&&f.is==="ytd-mini-guide-renderer"||this.guideOpened&&f.is==="ytd-guide-renderer")return f;return null};
_.l.markGuideRendererDirty=function(r){if(r){typeof r.markDirty==="function"&&r.markDirty();r=_.E([].concat(_.Na(_.e(r).children)));for(var f=r.next();!f.done;f=r.next())this.markGuideRendererDirty(f.value)}};
_.l.persistentGuideEnabled=function(r,f){if(!f||r==="watch"||r==="settings"||r==="shorts"&&this.isFullscreenShorts||_.N("reels_web_disable_persistent_guide_shorts")&&r==="shorts")return!1;var I=_.Cf(f)||"";return _.N("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(C){return I===C}):!this.persistentGuideBlockedPagePathRegex.test(I)};
_.l.canFitPersistentGuide=function(r){var f=_.Bw("kevlar_persistent_guide_width_threshold",1312);return f===-1||_.N("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:r>f};
_.l.canFitMiniGuide=function(r){return this.miniGuideWidthThreshold===-1?!1:r>this.miniGuideWidthThreshold};
_.l.onResize=function(){var r=this;_.Pc(this,"calculateGuideState",function(){r.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!_.xI().getFlag(109)};
_.OC.Object.defineProperties(io.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Lz("initialBodyClientWidth")||window.innerWidth}}});
io.prototype.onResize=io.prototype.onResize;io.prototype.observeForMiniGuideVisible=io.prototype.observeForMiniGuideVisible;io.prototype.computeGuidePersistentAndVisible=io.prototype.computeGuidePersistentAndVisible;io.prototype.cachedClientWidthChanged=io.prototype.cachedClientWidthChanged;io.prototype.resetGuide=io.prototype.resetGuide;io.prototype.activeEndpointChanged=io.prototype.activeEndpointChanged;io.prototype.guideOpenedChanged=io.prototype.guideOpenedChanged;
io.prototype.miniGuideVisibleChanged=io.prototype.miniGuideVisibleChanged;io.prototype.guideIsVisibleButNotPersistentChanged=io.prototype.guideIsVisibleButNotPersistentChanged;io.prototype.guidePersistentAndVisibleChanged=io.prototype.guidePersistentAndVisibleChanged;io.prototype.onGuideElementChanged=io.prototype.onGuideElementChanged;io.prototype.onGuidePersistentChanged=io.prototype.onGuidePersistentChanged;io.prototype.onRenderGuideChanged=io.prototype.onRenderGuideChanged;
io.prototype.onActiveEndpointChanged=io.prototype.onActiveEndpointChanged;io.prototype.onMiniGuideVisibleChanged=io.prototype.onMiniGuideVisibleChanged;io.prototype.onGuideIsVisibleButNotPersistentChanged=io.prototype.onGuideIsVisibleButNotPersistentChanged;io.prototype.onGuidePersistendAndVisibleChanged=io.prototype.onGuidePersistendAndVisibleChanged;_.A([_.J(_.Pq),_.B("design:type",Object)],io.prototype,"ironResizableBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],io.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],io.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],io.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],io.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],io.prototype,"disabled",void 0);
_.A([_.K(),_.B("design:type",Boolean)],io.prototype,"guidePersistentAndVisible",void 0);_.A([_.Bt("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],io.prototype,"onGuidePersistendAndVisibleChanged",null);_.A([_.K(),_.B("design:type",Boolean)],io.prototype,"guideIsVisibleButNotPersistent",void 0);
_.A([_.Bt("guideIsVisibleButNotPersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],io.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.A([_.K(),_.B("design:type",Object)],io.prototype,"miniGuideVisible",void 0);_.A([_.Bt("miniGuideVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],io.prototype,"onMiniGuideVisibleChanged",null);_.A([_.K(),_.B("design:type",Boolean)],io.prototype,"forceMiniGuideClose",void 0);
_.A([_.K(),_.B("design:type",Object)],io.prototype,"activeEndpoint",void 0);_.A([_.Bt("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],io.prototype,"onActiveEndpointChanged",null);_.A([_.K(),_.B("design:type",Boolean)],io.prototype,"renderGuide",void 0);_.A([_.Bt("renderGuide"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],io.prototype,"onRenderGuideChanged",null);
_.A([_.K(),_.B("design:type",Object)],io.prototype,"guideOpened",void 0);_.A([_.K(),_.B("design:type",Boolean)],io.prototype,"guidePersistent",void 0);_.A([_.Bt("guidePersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],io.prototype,"onGuidePersistentChanged",null);_.A([_.K(),_.B("design:type",Object)],io.prototype,"guideUserStateOpened",void 0);_.A([_.K(),_.B("design:type",String)],io.prototype,"pageUrl",void 0);
_.A([_.K(),_.B("design:type",String)],io.prototype,"pageType",void 0);_.A([_.K(),_.B("design:type",Number)],io.prototype,"cachedClientWidth",void 0);_.A([_.K(),_.B("design:type",Object)],io.prototype,"guideElement",void 0);_.A([_.K({selector:_.xU}),_.B("design:type",Object)],io.prototype,"isFullscreenShorts",void 0);_.A([_.Bt("guideElement"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],io.prototype,"onGuideElementChanged",null);
_.A([_.Bt("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],io.prototype,"guidePersistentAndVisibleChanged",null);_.A([_.YN("guideIsVisibleButNotPersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],io.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.A([_.Bt("miniGuideVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],io.prototype,"miniGuideVisibleChanged",null);_.A([_.YN("guideOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],io.prototype,"guideOpenedChanged",null);_.A([_.Bt("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],io.prototype,"activeEndpointChanged",null);
_.A([_.YN("pageUrl"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],io.prototype,"resetGuide",null);_.A([_.YN("cachedClientWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],io.prototype,"cachedClientWidthChanged",null);_.A([_.Bt("guideOpened","guidePersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],io.prototype,"computeGuidePersistentAndVisible",null);
_.A([_.YN("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],io.prototype,"observeForMiniGuideVisible",null);_.A([_.kO("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],io.prototype,"onResize",null);io=_.A([_.U({disableElementRegistration:!0,is:"yt-guide-manager"})],io);var YS6=_.Q(io,"yt-guide-manager",void 0,{mode:_.QQ("kevlar_poly_si_batch_j081")?1:2});var RL=function(){var r=_.y.apply(this,arguments)||this;r.JSC$17662_keyboardInUse=!1;r.boundHandleCapturedKeydownEvent=function(f){r.handleCapturedKeydownEvent(f)};
return r};
_.t(RL,_.y);_.l=RL.prototype;_.l.attached=function(){this.listenToDocument(document)};
_.l.listenToDocument=function(r){r.addEventListener("keydown",_.GF(this,this.onKeyDownEvent));r.addEventListener("keyup",_.GF(this,this.onKeyUpEvent));r.addEventListener("mousedown",_.GF(this,this.onMouseDownEvent));_.N("desktop_keyboard_capture_keydown_killswitch")||r.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);r.addEventListener("yt-page-data-updated",_.GF(this,this.onPageUpdate))};
_.l.detached=function(){this.unlistenFromDocument(document)};
_.l.unlistenFromDocument=function(r){r.removeEventListener("keydown",_.GF(this,this.onKeyDownEvent));r.removeEventListener("keyup",_.GF(this,this.onKeyUpEvent));r.removeEventListener("mousedown",_.GF(this,this.onMouseDownEvent));_.N("desktop_keyboard_capture_keydown_killswitch")||r.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);r.removeEventListener("yt-page-data-updated",_.GF(this,this.onPageUpdate))};
_.l.ready=function(){_.a().addProvider({provide:_.nF,useValue:this})};
_.l.isKeyBoardInUse=function(){return this.JSC$17662_keyboardInUse};
_.l.handleCapturedKeydownEvent=function(r){if(r.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(r)};
_.l.onMouseDownEvent=function(){this.JSC$17662_keyboardInUse=!1};
_.l.onPageUpdate=function(){if(_.N("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.N("web_shorts_keyboard_shortcut_usage_log")){_.Gc.clear();for(var r=_.E(_.AX),f=r.next();!f.done;f=r.next()){var I=_.E(f.value);f=I.next().value;I=I.next().value;I=_.pQ(I);_.Gc.set(f,I);_.mw(_.t1(),_.Pj(),I)}_.k8.clear();r=_.E(_.Zu);for(f=r.next();!f.done;f=r.next())I=_.E(f.value),f=I.next().value,I=I.next().value,I=_.pQ(I),_.k8.set(f,I),_.mw(_.t1(),_.Pj(),I);_.e_(_.t1(),_.Pj(),[].concat(_.Na(_.k8.values()),
_.Na(_.Gc.values())));_.j_(_.t1(),[].concat(_.Na(_.k8.values()),_.Na(_.Gc.values())))}};
_.l.onMiniplayerActiveChange=function(){var r;(r=_.a().resolve(_.iO).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(r.document):this.unlistenFromDocument(r.document))};
_.l.ignoreKeyEvent=function(r){if(r.ctrlKey||r.altKey)if(_.N("kevlar_macro_markers_keyboard_shortcut")){if(r.keyCode!==37&&r.keyCode!==39)return!0}else return!0;var f=_.JN(r)||[];return _.fs7(f)?!0:r.defaultPrevented?(EA(r.keyCode,r.shiftKey,this.isShortsPage),!0):r.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(r):!1};
_.l.isSpacebarClick=function(r){var f=r||window.event;var I;f.composedPath&&typeof f.composedPath==="function"?I=f.composedPath():I=f.path;I&&I.length?f=I[0]:(f=f||window.event,f=f.target||f.srcElement,f.nodeType==3&&(f=f.parentNode));return f&&r.keyCode===32&&(r=f.tagName==="BUTTON"||f.tagName==="A"||f.tagName==="INPUT",f=(f=f.getAttribute("role"))&&(f==="option"||f==="button"||f.indexOf("menuitem")===0),r||f)?!0:!1};
_.l.onKeyDownEvent=function(r){if(!this.ignoreKeyEvent(r)&&(r.keyCode===191&&(r.shiftKey||r.metaKey?r.repeat!=null&&r.repeat||(this.openHotkeyDialog(),EA(r.keyCode,r.shiftKey,this.isShortsPage)):(this.focusSearchBox(),r.preventDefault())),!r.metaKey)){var f=_.a().resolve(_.iO);switch(r.keyCode){case 9:this.JSC$17662_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(r);break;case 84:f.pipController.getWindow()&&window.focus();this.toggleTheaterMode(r.keyCode,r.shiftKey);break;case 73:f.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(r.keyCode,r.shiftKey);break;case 70:if(this.isShortsPage&&_.N("web_fullscreen_shorts")){_.Cx1();break}this.isMiniplayerActive()?f.pipController.getWindow()&&(f.close(!0),window.focus()):this.passEventToPlayer(r);break;case 27:this.closeMiniplayer(r.keyCode,r.shiftKey)||this.passEventToPlayer(r);break;case 13:r.shiftKey&&_.N("web_ephemeral_actions")&&_.a().resolve(_.Y_).activate(r);break;default:this.passEventToPlayer(r)}}};
_.l.onKeyUpEvent=function(r){if(!this.ignoreKeyEvent(r))if(_.N("web_speedmaster_spacebar_control")&&r.keyCode===32)this.handlePlayerSpaceKey(r,!0);else{var f=this.getPlayerManager();f&&(f=f.getPlayer())&&f.handleGlobalKeyUp(r.keyCode,r.shiftKey,r.ctrlKey,r.altKey,r.metaKey,r.key,r.code)}};
_.l.getPlayerManager=function(){var r=_.sk(),f=_.a().resolve(_.ZY(_.y2));return r&&f&&f.isOnWatch()?r:null};
_.l.passEventToPlayer=function(r,f){var I=this,C,Y,V;return _.x(function(S){if(S.nextAddress==1)return!_.N("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&I.isMiniplayerActive()?C=_.a().resolve(_.iO).getPlayerElement():I.inlinePreviewIsActive?(Y=_.qy(I.hostElement,"yt-get-inline-preview-player-action"))&&Y[0]&&(C=Y[0]):C=_.sk(),C?_.b(S,C.getPlayerPromise(),3):S.jumpTo(0);V=S.yieldResult;f?V.handleGlobalKeyUp(r.keyCode,r.shiftKey,r.ctrlKey,r.altKey,r.metaKey,r.key,r.code,r.repeat):V.handleGlobalKeyDown(r.keyCode,
r.shiftKey,r.ctrlKey,r.altKey,r.metaKey,r.key,r.code,r.repeat);r.keyCode!==38&&r.keyCode!==40&&EA(r.keyCode,r.shiftKey,I.isShortsPage);_.wO(S)})};
_.l.focusSearchBox=function(){_.kA(this.hostElement,"yt-focus-searchbox")};
_.l.openHotkeyDialog=function(){_.kA(this.hostElement,"yt-open-hotkey-dialog")};
_.l.isMiniplayerActive=function(){return _.a().resolve(_.iO).isMiniplayerActive()};
_.l.closeMiniplayer=function(r,f){return this.isMiniplayerActive()?(_.a().resolve(_.iO).close(),EA(r,f,this.isShortsPage),!0):!1};
_.l.toggleTheaterMode=function(r,f){var I=_.XL(_.K2().getState()),C=this.getPlayerManager(),Y=_.N("disable_theater_mode_keyboard")||_.mO("START_IN_FULL_WINDOW_MODE");C&&!Y&&(I=!I,_.Qw()&&_.N("external_fullscreen")&&(I=!0),_.Bj(this.hostElement,"yt-toggle-theater-mode",[I]),EA(r,f,this.isShortsPage))};
_.l.toggleMiniplayer=function(r,f){var I=this.getPlayerManager();if(this.isMiniplayerActive()){var C;((C=_.a().resolve(_.ZY(_.y2)))==null?0:C.isOnWatch())?_.a().resolve(_.iO).close(!0):_.bb(_.a().resolve(_.iO));EA(r,f,this.isShortsPage)}else I&&(_.Bj(this.hostElement,"yt-activate-miniplayer-from-watch-action"),EA(r,f,this.isShortsPage))};
_.l.handlePlayerSpaceKey=function(r,f){var I=!!_.sk()||this.isMiniplayerActive();I=_.N("disable_space_scroll_fix")||I;_.N("global_spacebar_pause")&&!this.isKeyBoardInUse()&&I&&(r.preventDefault(),this.passEventToPlayer(r,f))};
RL.prototype.onMiniplayerActiveChange=RL.prototype.onMiniplayerActiveChange;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],RL.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],RL.prototype,"ytdReduxBehavior",void 0);_.A([_.K({selector:_.LRq}),_.B("design:type",Boolean)],RL.prototype,"inlinePreviewIsActive",void 0);_.A([_.K({selector:_.DUU}),_.B("design:type",Boolean)],RL.prototype,"isShortsPage",void 0);
_.A([_.K({selector:_.Nj}),_.B("design:type",Boolean)],RL.prototype,"miniplayerIsActive",void 0);_.A([_.Bt("miniplayerIsActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RL.prototype,"onMiniplayerActiveChange",null);RL=_.A([_.U({disableElementRegistration:!0,is:"yt-hotkey-manager"})],RL);_.Q(RL,"yt-hotkey-manager",void 0,{mode:_.QQ("kevlar_poly_si_batch_j081")?1:2});var vV=function(){var r=_.y.apply(this,arguments)||this;r.loopStateEntityKey_=null;r.playlistLoopStateEntity_=null;r.isShuffleNextPlaylist=!1;r.PLAYER_EVENTS_=new Map;r.playerListenersSetup_=!1;r.videoSkipJob_=0;r.canAutoAdvance_=!1;r.playerManager_=null;r.TEST_ONLY={};return r};
_.t(vV,_.y);_.l=vV.prototype;_.l.ready=function(){_.a().addProvider({provide:_.WP,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",_.GF(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.GF(this,this.onYtNavigateFinish_))};
_.l.detached=function(){document.removeEventListener("yt-navigate-start",_.GF(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.GF(this,this.onYtNavigateFinish_))};
_.l.updatePlaylistEventListeners=function(r,f){f&&!this.playerListenersSetup_?(this.playerManager_=r,this.registerPlaylistEventListeners_(r)):!f&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(r))};
_.l.setPlayer=function(r){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=r};
_.l.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.l.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.l.registerPlaylistEventListeners_=function(r){var f=this;r.getPlayerPromise().then(function(I){f.playerListenersSetup_||(f.ytPlayerListenerBehavior.listenToPlayerEvents(I,f.PLAYER_EVENTS_),f.playerListenersSetup_=!0)})};
_.l.removePlaylistEventListeners_=function(r){var f=this;r.getPlayerPromise().then(function(I){f.playerListenersSetup_&&(f.ytPlayerListenerBehavior.unlistenFromPlayerEvents(I,f.PLAYER_EVENTS_),f.playerListenersSetup_=!1)})};
_.l.setPlaylistComponent=function(r){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.GF(this,this.onPlaylistYtNavigate_)),r&&(r.data&&this.playlistComponent.data&&r.data.playlistId==this.playlistComponent.data.playlistId?(r.loopOn=this.playlistComponent.loopOn,r.shuffleOn=this.playlistComponent.shuffleOn):(r.loopOn=!1,r.shuffleOn=!1),this.isShuffleNextPlaylist&&(r.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=r;this.playlistComponent.addEventListener("yt-navigate",
_.GF(this,this.onPlaylistYtNavigate_))};
_.l.setAutoplayRenderer=function(r){this.autoplayData=r};
_.l.setPlaylistData=function(r){this.currentPlaylistData_=r;_.kA(this.hostElement,"yt-playlist-data-updated");_.X0.isEmpty(r)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(r)};
_.l.setPlayerPlaybackControlData=function(r){this.playerManager_&&this.playerManager_.updatePlayerComponents(r.playlistPanelRenderer)};
_.l.getPlaylistData=function(){return this.currentPlaylistData_};
_.l.getTempData_=function(r,f){if(this.playlistComponent==null)return null;r={};this.playlistComponent.shuffleOn&&(r.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(r.loop_on=this.playlistComponent.loopOn);f&&(r.autonav="1",_.a().resolve(_.dW),f=_.Zs(),f>0&&(r.lact=f),this.playerManager_&&(f=this.playerManager_.getPlayer())&&f.shouldSendVisibilityState()&&(f=f.getVisibilityState(),f!=0&&(r.vis=f)));_.N("enable_unknown_lact_fix_on_html5")&&(_.a().resolve(_.dW),r.lact=_.Zs());
return r};
_.l.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.l.setLoopStateEntityKey_=function(r){var f;this.loopStateEntityKey_=((f=this.getPlaylistLoopData_(r))==null?void 0:f.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 r=this,f=_.N("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||f)f=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.pF(_.F_,function(){r.onPlaylistNext();r.videoSkipJob_=0},f)};
_.l.cancelVideoSkip=function(){this.videoSkipJob_&&(_.F_.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.l.isInBackground_=function(){var r=window.document.visibilityState;return!(!r||r=="visible")};
_.l.onPlaylistIndex_=function(r){this.playlistComponent&&(r=this.playlistComponent.data.contents[r].playlistPanelVideoRenderer.navigationEndpoint,_.kA(this.hostElement,"yt-navigate",{endpoint:r,tempData:this.getTempData_(r)}))};
_.l.onPlayerStateChange_=function(r){if(r=r==0&&this.playlistComponent&&this.canAutoAdvance_)r=_.Qk.getInstance(),r=!(r.autonavState_===3?r.autonavPauseReason_&&r.autonavPauseReason_.inputBoxFocus===!0:r.autonavState_===1&&r.disabledAutonavPauseReason_&&r.disabledAutonavPauseReason_.inputBoxFocus===!0);r&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.l.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.l.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.l.navigateToAutoplayWatchEndpoint_=function(r,f,I){var C=this.playlistComponent.data.currentIndex,Y=this.getNumPlayableVideos_();r=="NORMAL"&&f=="autoplayVideo"&&C+1>=Y&&I||!(r=this.getVideoEndpoint_(r,f))||(I=this.getTempData_(r,I),_.kA(this.hostElement,"yt-navigate",{endpoint:r,tempData:I}))};
_.l.getNumPlayableVideos_=function(){for(var r=0,f=_.E(this.playlistComponent.data.contents||[]),I=f.next();!I.done;I=f.next())I.value.playlistPanelVideoRenderer&&(r+=1);return r};
_.l.getVideoEndpoint_=function(r,f){if(this.autoplayData&&this.autoplayData.sets)for(var I=0,C=this.autoplayData.sets.length;I<C;I++){var Y=this.autoplayData.sets[I];if(Y.mode==r){if(Y[f])return Y[f];break}}else r=new _.nf("AutoplayData is undefined in playlist manager","Mode: "+r+" endpoint: "+f),_.t7(r)};
_.l.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.l.onPlaylistYtNavigate_=function(r){if(r.detail.endpoint){r.stopPropagation();var f=r.detail;f.tempData=this.getTempData_(r.detail.endpoint);_.kA(this.hostElement,"yt-navigate",f)}};
_.l.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.l.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.l.playlistLoopStateEntityChanged_=function(r){var f=this,I,C,Y;return _.x(function(V){if(V.nextAddress==1){if(!r)return V.return();I=r.state==="PLAYLIST_LOOP_STATE_ONE";return f.playerManager_?_.b(V,f.playerManager_.getPlayerPromise(),3):V.jumpTo(2)}V.nextAddress!=2&&(C=V.yieldResult,C.setLoopVideo(I));Y=r.state==="PLAYLIST_LOOP_STATE_ALL";f.playlistComponent&&(f.playlistComponent.loopOn=Y);_.wO(V)})};
_.l.getPlaylistLoopData_=function(r){var f,I;if(r=r==null?void 0:(f=r.playlistButtons)==null?void 0:(I=f.menuRenderer)==null?void 0:I.topLevelButtons)for(f=_.E(r),I=f.next();!I.done;I=f.next())if(I=I.value,I.playlistLoopButtonRenderer)return I.playlistLoopButtonRenderer};
_.l.getLoopStateCommand_=function(r){var f=this.getPlaylistData(),I;f=((I=this.getPlaylistLoopData_(f))==null?void 0:I.states)||[];var C;r=(C=_.F(f[r?1:2],_.Ni3))==null?void 0:C.button;var Y;return(Y=_.F(r,_.Ll))==null?void 0:Y.command};
_.l.onPlayerLoopChange_=function(r){this.playlistLoopStateEntity_&&(r?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(r=this.getLoopStateCommand_(r))&&this.ytComponentBehavior.resolveCommand(r)};
_.l.onSleepTimerSettingsChanged_=function(r){this.canAutoAdvance_=r!=="End of video"};
vV.prototype.onPlaylistLoopStateEntityChanged=vV.prototype.onPlaylistLoopStateEntityChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],vV.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.iQ.YtPlayerListenerBehavior),_.B("design:type",_.RN)],vV.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],vV.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],vV.prototype,"loopStateEntityKey_",void 0);
_.A([_.K({selectorArgs:["loopStateEntityKey_"],selector:_.Qfd}),_.B("design:type",Object)],vV.prototype,"playlistLoopStateEntity_",void 0);_.A([_.Bt("playlistLoopStateEntity_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vV.prototype,"onPlaylistLoopStateEntityChanged",null);vV=_.A([_.U({disableElementRegistration:!0,is:"yt-playlist-manager"})],vV);_.Q(vV,"yt-playlist-manager",void 0,{mode:_.QQ("kevlar_poly_si_batch_j081")?1:2});var lL3,VW2=function(){if(lL3!==void 0)return lL3;var r=document.createElement("template");_.c(r,"\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");r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return lL3=r};var Kk=function(){var r=_.y.apply(this,arguments)||this;r.lastCallback=null;r.getAccountLinkPromises={};r.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);r.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return r};
_.t(Kk,_.y);_.l=Kk.prototype;_.l.getLocation=function(){return window.location.href};
_.l.getCompletionUrl=function(){return _.Ul(this.getLocation())};
_.l.containsRedirectState=function(r){return(r=_.Pa(_.Psl(r)))?(new URLSearchParams(r)).get("redirect_state")!==null:!1};
_.l.createGalConfig=function(r,f){var I=new dpV;r=I=f?this.getPopupOrRedirectSetting(I,_.Lz("LINK_API_KEY"),_.Lz("LINK_API_KEY_REDIRECT"),r):zt2(I,_.Lz("LINK_API_KEY"));r.authUser=_.Lz("SESSION_INDEX")||0;r.supportedFlows=new Set([4]);return r.build()};
_.l.getPopupOrRedirectSetting=function(r,f,I,C){this.isGalInteractionPopupMode(C)?(r.interactionMode=0,r=zt2(r,f)):(r.interactionMode=1,f=this.getCompletionUrl(),r.completionUrl=f,r=zt2(r,I));return r};
_.l.isGalInteractionPopupMode=function(r){if(this.redirectModeProviderAllowlist.has(r))switch(r){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.N("main_web_redirect_integration_riot");default:return!1}return!0};
_.l.getStatusEntityKeyForProviderId=function(r){return _.rG(r+":all","accountLinkStatusEntity")};
_.l.findNestedPropValue=function(r,f){var I=!1,C=null;JSON.stringify(r,function(Y,V){I||Y!==f||(I=!0,C=V);return I?null:V});
return C};
_.l.findAccountLinkButtonViewModel=function(r,f){var I=null,C=!1;JSON.stringify(r,function(Y,V){C||V.accountLinkStatusEntityKey!==f||V.accountLinkStatusSecondaryEntityKey||(C=!0,I=V);return C?null:V});
return I};
_.l.executeLinkingSuccessOrFailureCommands=function(r,f,I){var C=null,Y;(f==null?0:(Y=f.url)==null?0:Y.includes("account_sharing"))?C=f==null?void 0:f.response:C=f==null?void 0:f.response;(f=this.findAccountLinkButtonViewModel(C,r))?(r=I?this.findNestedPropValue(f,"onSuccessCommand"):this.findNestedPropValue(f,"onFailureCommand"))?_.Ce([r],this.hostElement):_.Hw(Error("cl")):_.Hw(Error("dl`"+r))};
_.l.handleInitializeRequest=function(r,f){var I=this,C=D76(this.createGalConfig(r,!0));this.containsRedirectState(this.getLocation())?yqp(r,C.config,C.galService).then(function(Y){var V=I.getStatusEntityKeyForProviderId(r);if(Y.statusCode===1)f&&I.executeLinkingSuccessOrFailureCommands(V,f,!0),Y=I.getLocation().indexOf("#"),Y!==-1&&window.history.pushState(null,"",I.getLocation().substring(0,Y));else return f&&I.executeLinkingSuccessOrFailureCommands(V,f,!1),Promise.reject(Error(Y.statusMessage))}).catch(function(Y){_.t7(Y);
_.NW("gamingAccountLinkStatusChanged",{serviceId:r,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(Y)}):this.getAccountLinkPromises[r]=C.startLinkingSession({serviceId:r})};
_.l.handleAccountLinkCommand=function(r){_.F(r,V86)&&this.handleLinkRequest(_.F(r,V86))};
_.l.handleLinkRequest=function(r){var f=this,I=r.thirdPartyId;if(I)if(this.isGalInteractionPopupMode(I)){var C=function(){f.closeAndFire("ytd-gaming-account-link-setting-renderer",r.onFailureCommand)},Y=function(){f.closeAndFire("ytd-gaming-account-link-setting-renderer",r.onSuccessCommand)};
this.lastCallback=Y;this.getAccountLinkPromises[I].then(function(V){kNV(V).then(function(S){S.statusCode===1?Y():C()})}).catch(function(){C()})}else this.getAccountLinkPromises[I].then(function(V){kNV(V).then(function(S){if(S.statusCode!==1)return Promise.reject(Error(S.statusMessage))})}).catch(function(V){_.t7(V);
_.NW("gamingAccountLinkStatusChanged",{serviceId:I,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(V)})};
_.l.closeAndFire=function(r,f){_.Bj(this.hostElement,"yt-close-popup-action",[r]);f&&_.Ce([f],this.hostElement)};
_.l.handleAccountUnlinkCommand=function(r){_.F(r,E$1)&&this.handleUnlinkRequest(_.F(r,E$1))};
_.l.handleUnlinkRequest=function(r){var f=this,I=r.thirdPartyId;if(I){var C=function(){f.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",r.onFailureCommand)},Y=function(){f.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",r.onSuccessCommand)};
this.lastCallback=Y;var V=D76(this.createGalConfig(I,!1));this.unlinkUserGal(V,I).then(function(S){S.statusCode===1?Y():C()}).catch(function(){C()})}};
_.l.unlinkUserGal=function(r,f){return r.deleteLink(f)};
_.l.handleLogAccountLinkingEventCommand=function(r){_.N("enable_gel_log_commands")&&_.F(r,Sw3)&&(r=_.F(r,Sw3).event)&&_.NW("gamingAccountLinkStatusChanged",r)};
_.OC.Object.defineProperties(Kk,{template:{configurable:!0,enumerable:!0,get:function(){return VW2()}}});
_.A([_.J(_.ug.YtOpenPopupBehavior),_.B("design:type",Object)],Kk.prototype,"ytOpenPopupBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Kk.prototype,"ytActionHandlerBehavior",void 0);Kk=_.A([_.U({disableElementRegistration:!0,is:"ytd-third-party-manager"})],Kk);_.Q(Kk,"ytd-third-party-manager",function(){return VW2()},{mode:_.QQ("kevlar_poly_si_batch_j081")?1:2});var EGY,SS3=function(){return EGY!==void 0?EGY:EGY=document.createElement("template")};
document.head.appendChild(SS3().content);var xMd,hI2=function(){if(xMd!==void 0)return xMd;var r=document.createElement("template");_.c(r,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");r.content.insertBefore(SS3().content.cloneNode(!0),r.content.firstChild);r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return xMd=r};var wHY=_.op(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),yp=function(){var r=_.y.apply(this,arguments)||this;r.currentPage=void 0;r.renderLoadingStateJobId=0;r.updatePageDataJobId=0;r.pageDisposeJobsets=new WeakMap;r.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"};r.applyZoomTransition=_.qC("web_page_transition_type")==="zoom";r.applySlideTransition=_.qC("web_page_transition_type")==="slide";r.TEST_ONLY=void 0;return r};
_.t(yp,_.y);_.l=yp.prototype;_.l.ready=function(){var r=_.a();r.addProvider({provide:_.y2,useValue:this});r.addProvider({provide:_.vQD,useValue:this})};
_.l.created=function(){this.pagePool=new jOU;this.contextSwitcher=new Zhq};
_.l.attached=function(){_.kA(this.hostElement,"attached");var r=_.a().resolve(_.ZY(_.bA));r&&(this.contextSwitcher.JSC$17486_networkService_=r);this.viewTransitionManager=_.a().resolve(_.ZY(_.cg3));this.setupPageTransitionAnimation()};
_.l.getPageOffset=function(r){return r.getScrollTop()};
_.l.setPageOffset=function(r,f){try{r.setScrollTop(f)}catch(I){}};
_.l.setPageOffsetForNavigation=function(r,f){_.kA(this.hostElement,"yt-navigate-set-page-offset",{page:r,offset:f===void 0?0:f})};
_.l.pauseActiveContext=function(){var r=this.contextSwitcher;r.activeContext_&&r.activeContext_.pause()};
_.l.getModuleNameForType=function(r){return r==="watch"?_.N("kevlar_watch_fixie")?"watchFixie":_.N("kevlar_watch_grid")?"watchGrid":"watchFlexy":r==="shorts"||r==="search"?r:"browse"};
_.l.attachPage=function(r){var f,I=!_.N("pc_is_attached_ks")&&(r==null?void 0:(f=r.polymerController)==null?void 0:f.isAttached);if(!r.isAttached&&!I)try{_.e(this.hostElement).appendChild(r)}catch(Y){var C;_.t7(new _.nf("Error attaching page element for component",{origin:(C=this.currentPage)==null?void 0:C.is,component:r.is}))}};
_.l.setActivePage=function(r){var f=this,I=!1,C=function(){var Y=f.isOnWatch(),V=f.currentPage;if(r)if(r!==f.currentPage){V&&(V.hidden=!0,V.active=!1,V.removeAttribute("role"));f.currentPage=r;var S,h=_.YO((S=f.data)==null?void 0:S.endpoint);V&&_.kA(f.hostElement,"yt-page-type-changed",{oldPageType:V.is,newPageType:r.is,newPageSubtype:h});_.Lx().dispatch(_.kI({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:r.is}));_.Lx().dispatch(_.kI({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:h||""}));r.hidden=
!1;f.attachPage(r);r.active=!0;r.setAttribute("role","main");V&&f.setPageOffsetForNavigation(r,0);_.N("kevlar_remove_page_dom_on_switch")&&!Y&&V&&_.e(f.hostElement).removeChild(V)}else I=!0;else Y=new _.nf("Unable to set active page",V?V.is:"unknown origin",(h=f.data)==null?void 0:h.endpoint),_.Fo(Y)};
this.viewTransitionManager?zhU(this.viewTransitionManager,C,this.viewTransitionConfigForSetActivePage(this.currentPage,r)):C();return I};
_.l.viewTransitionConfigForSetActivePage=function(r,f){return _.N("web_thumbnail_to_watch_transition")&&(r==null?void 0:r.is)==="ytd-browse"&&this.isWatchPage(f)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(r==null?void 0:r.is)==="ytd-browse"&&(f==null?void 0:f.is)==="ytd-browse"&&r!==f?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.l.updatePageData=function(r){var f=this,I=this.data;this.updatePageDataJobId&&_.F_.cancelJob(this.updatePageDataJobId);this.data=r;return new _.lz(function(C){var Y=function(){r.filler?f.performDataUpdate(r,I):Hvp(function(){f.performDataUpdate(r,I)});
var w=_.mZ();_.eN(w,"cr")||w.processSignal("cr");C()},V=function(){r&&r.page==="watch"?f.updatePageDataJobId=_.pF(_.F_,Y):Y()};
if(_.N("kevlar_enable_mss_page_modules_client")&&r){var S=_.a().resolve(_.va),h=f.getModuleNameForType(r.page);(S=nZ3(S,[h]))?S.then(V):V()}else V()})};
_.l.isDownloadsPage=function(r){var f,I;return(r==null?void 0:(f=r.endpoint)==null?void 0:(I=f.browseEndpoint)==null?void 0:I.browseId)==="FEdownloads"};
_.l.setPlayerSyncInterval=function(r){var f;return _.x(function(I){if(I.nextAddress==1)return _.b(I,_.a().resolve(_.Zb),2);f=I.yieldResult;f.setUpPositionSyncInterval(r);_.wO(I)})};
_.l.performDataUpdate=function(r,f){_.N("kevlar_early_popup_close")||_.Bj(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var I=!r.filler;I&&(_.Xc("lps"),_.N("config_age_report_killswitch")||pRq());var C=Bf(r),Y,V=!1;if(_.N("kevlar_remove_page_dom_on_switch")){var S=f&&Bf(f);C===S&&(Y=this.getCurrentPage())}Y||(Y=WV(this.pagePool,C));I&&vYV(this.pagePool.elementPoolPopulator,C);I&&!this.renderLoadingStateJobId&&(V=this.setActivePage(Y));if(Y){S=C==="watch";var h=
C==="shorts",w=C==="learning_journey_watch";_.N("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(Y);if(S||h||w)Y.playerData=r.playerResponse;if(h){r.reelWatchSequenceResponse?Y.reelWatchSequenceResponse=r.reelWatchSequenceResponse:r.cachedReelWatchSequenceResponse&&(Y.reelWatchSequenceResponse=r.cachedReelWatchSequenceResponse);Y.currentEndpoint=r.endpoint;var n;Y.isPreviousPageShorts=!!(f==null?0:(n=f.endpoint)==null?0:n.reelWatchEndpoint);r.cachedReelWatchSequenceResponse=
r.reelWatchSequenceResponse||r.cachedReelWatchSequenceResponse||(f==null?void 0:f.cachedReelWatchSequenceResponse);_.N("web_enable_cached_reel_sequence_fix")?r.cachedReelWatchSequenceResponse&&(Y.cachedReelWatchSequenceResponse=r.cachedReelWatchSequenceResponse):Y.cachedReelWatchSequenceResponse=r.cachedReelWatchSequenceResponse}n=this.isDownloadsPage(r);var d=this.isDownloadsPage(f);n&&!d?this.setPlayerSyncInterval(6E5):!n&&d&&this.setPlayerSyncInterval();_.N("block_all_player_prefetch_requests")||
this.preparePrefetchRequest(r,Y,I,S,h,w);MuY(_.a().resolve(_.iO),f,r);_.OS(_.a().resolve(_.dW));_.N("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(Y);I?(I=typeof Y.loadPage,I==="function"?(Y.pageContext=Gwd(this.contextSwitcher,Y,Y.data!==r.response),I=function(){Y.loadPage(r.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&Y.is==="ytd-browse"&&V&&this.isDifferentBrowseId(r==null?void 0:r.endpoint,f==null?void 0:f.endpoint)?
this.applySlideTransition?zhU(this.viewTransitionManager,I,{transitionName:"slide"}):zhU(this.viewTransitionManager,I,{transitionName:"zoom"}):I()):_.PR(new _.nf("b/38014653 ",[C,
Y.is,Y.nodeName,I,Y.isAttached,f&&Bf(f),this.hostElement.children.length])),_.Xc("pdl")):(Y.hidden=!0,r.response.filler=!0,Y.data=r.response,this.attachPage(Y));_.kA(this.hostElement,"yt-page-data-updated",{pageType:C})}_.dp(_.F_,function(){_.N("logging_avoid_blocking_during_navigation")&&_.S6K().transition("none");var z=xzs(),g=Y;if(r){var X=oI2(r),P=Ql7(r),W;a:{if(r.playerResponse){var m=r.playerResponse,v;if((W=m.auxiliaryUi)==null?0:(v=W.messageRenderers)==null?0:v.upsellDialogRenderer){W=m.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(r.response&&(W=r.response,(m=W.overlay)==null?0:m.upsellDialogRenderer)){W=W.overlay.upsellDialogRenderer;break a}W=void 0}var O;var k;v=(O=r.playerResponse)==null?void 0:(k=O.auxiliaryUi)==null?void 0:k.messageRenderers;O=(v==null?void 0:v.enforcementMessageViewModel)||(v==null?void 0:v.bkaEnforcementMessageViewModel);O=(O==null?void 0:O.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?O:void 0;var Z;a:{if(r.response&&(k=r.response,(Z=k.overlay)==null?0:Z.commandWrapperPromoRenderer)){Z=
k.overlay.commandWrapperPromoRenderer;break a}Z=void 0}SfV(z,X,P,W,O,Z,g)}})};
_.l.preparePrefetchRequest=function(r,f,I,C,Y,V){var S,h,w,n,d,z,g,X,P,W,m,v,O,k,Z;return _.x(function(Cw){if(Cw.nextAddress==1)return!I||!(C||Y||V)||_.N("kevlar_disable_background_prefetch")&&_.Jn(_.YEE)()===0?Cw.return():(S=_.Uk(f))?_.b(Cw,S.getPlayerPromise(),2):Cw.return();h=Cw.yieldResult;w=_.a().resolve(_.ZY(_.bA));if(!w)return Cw.return();if(Y)return n=_.CG(_.Dv),QBs(n,(d=r.endpoint)==null?void 0:d.reelWatchEndpoint,f.reelWatchSequenceResponse,h,w),Cw.return();X=(z=r.response)==null?void 0:
(g=z.responseContext)==null?void 0:g.webResponseContextExtensionData;if(!X)return Cw.return();O=(P=r.response)==null?void 0:(W=P.contents)==null?void 0:(m=W.twoColumnWatchNextResults)==null?void 0:(v=m.autoplay)==null?void 0:v.autoplay;k=_.a().resolve(_.WP);Z=_.CG(_.Dv);A3V(Z,X,h,w,k,O);_.wO(Cw)})};
_.l.movePlayerToWatch=function(r){var f=this,I,C;return _.x(function(Y){I=WV(f.pagePool,"watch");C=I.getPlayerContainer();r.appendTo(C);_.wO(Y)})};
_.l.movePlayerToShorts=function(r){var f=this,I,C,Y;return _.x(function(V){I=WV(f.pagePool,"shorts");C=I.getPlayerContainer();(Y=r)==null||Y.appendTo(C,void 0,!0);_.wO(V)})};
_.l.getPlayerFromWatch=function(){var r=WV(this.pagePool,"watch");return _.Uk(r)};
_.l.getPlayerFromShorts=function(){var r=WV(this.pagePool,"shorts");return _.Uk(r)};
_.l.startLoadingWatch=function(){var r=WV(this.pagePool,"watch");this.renderLoadingStateJobId?(_.F_.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(r)};
_.l.startLoadingShorts=function(){var r=WV(this.pagePool,"shorts");this.setActivePage(r)};
_.l.startLoadingLearningJourney=function(){var r=WV(this.pagePool,"learning_journey_watch");this.setActivePage(r)};
_.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 r;return((r=this.currentPage)==null?void 0:r.is)==="ytd-shorts"};
_.l.isWatchPage=function(r){return!!r&&(r.is==="ytd-watch-flexy"||r.is==="ytd-watch-fixie"||r.is==="ytd-watch-grid")};
_.l.preparePage=function(r,f){var I=this,C=function(){var S=I.pagePool.preparePage(r,I.currentPage,f);S&&I.attachPage(S)},Y=function(S){_.TL(S,f);
_.t7(S)};
if(_.N("kevlar_enable_mss_page_modules_client")){var V=this.getModuleNameForType(r);if(V=nZ3(_.a().resolve(_.va),[V])){V.then(C.bind(this)).catch(Y.bind(this));return}}try{C()}catch(S){Y(S)}};
_.l.lazyPrepareCriticalPages=function(r,f){r=_.YO(f)||r;_.N("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(r).then(this.maybePrepareWatchPage.bind(this,r)):this.maybePrepareWatchPage(r)};
_.l.maybePrepareWatchPage=function(r){r!=="watch"&&_.dp(_.F_,this.preparePage.bind(this,"watch"))};
_.l.downloadPageModules=function(r){r=this.getModuleNameForType(r);var f=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);f.delete(r);var I=_.a().resolve(_.va);I.JSC$16222_loadModules(r);return I.JSC$16222_loadModules.apply(I,_.Na(f))};
_.l.renderPageLoadingState=function(r,f){this.preparePage(r,f);var I=WV(this.pagePool,r);I.loadingData&&(I.loadingData.endpoint=f);I.loading=!0;this.setActivePage(I);r==="watch"&&_.kA(this.hostElement,"yt-guide-close")};
_.l.prepareForNavigation=function(r,f){var I=this;if(this.currentPage&&this.data){var C=_.YO(f)||r;this.destinationPageType=C;Bf(this.data)==C&&_.kA(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(r==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.F_.cancelJob(this.renderLoadingStateJobId);_.a().resolve(_.iO).deactivate(f);var Y=this.data;this.renderLoadingStateJobId=_.aK(_.F_,function(){if(I.data!=Y){var V=WV(I.pagePool,r);I.setActivePage(V)}else I.renderPageLoadingState(r,
f);I.renderLoadingStateJobId=0},150)}};
_.l.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var r=new _.Un(1);this.currentPage.pageDisposeJobs.forEach(function(f){_.sn(r,f)});
this.pageDisposeJobsets.set(this.currentPage,r)}};
_.l.flushPageDisposeJobset=function(r){var f=this.pageDisposeJobsets.get(r);f&&(f.flushJobs(),this.pageDisposeJobsets.delete(r))};
_.l.onYtStopOldPlayer=function(r,f){f=f===void 0?!1:f;var I,C=_.uk("kevlar_new_stop_old_player_logic_pages");if(_.N("kevlar_check_current_page_on_stop_old_player")&&(C.length===0||this.currentPage&&C.includes(this.currentPage.is)))if(this.data&&(I=Bf(this.data)),Bf(r)===I&&this.currentPage&&Bf(this.currentPage.data)!==I)var Y=_.Uk(this.currentPage);else I=Bf(this.data),Y=WV(this.pagePool,I),Y=_.Uk(Y);else this.data&&(I=Bf(this.data),Y=WV(this.pagePool,I),Y=_.Uk(Y));if(Y)if(r=Bf(r),C=WV(this.pagePool,
r),C=_.Uk(C),Y==C)f&&!_.N("kevlar_disable_preemptive_player_reset")&&Y.resetForNewPlayback();else if(f=I==="watch"&&r!=="watch",!f||r==="shorts"||_.IPC()&&!x4V(this.data)&&r!=="yts-products"&&r!="mini_app"&&r!="playables")I=_.a().resolve(_.iO),f&&I.isMiniplayerActive()&&I.pipController.getWindow()||Y.stop()};
_.l.setupPageTransitionAnimation=function(){var r=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){Eh(this.viewTransitionManager,"slide",{beforeTransition:function(){r.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){r.hostElement.style.viewTransitionName=""}});
Eh(this.viewTransitionManager,"zoom",{beforeTransition:function(){r.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){r.hostElement.style.viewTransitionName=""}});
var f=_.Bw("web_page_transition_exit_ms"),I=_.Bw("web_page_transition_wait_ms"),C=_.Bw("web_page_transition_enter_ms");if(!isNaN(f)||!isNaN(I)||!isNaN(C))if(f=z93(wHY,f,I,C))I=document.createElement("style"),I.textContent=_.Prm(f),document.head.appendChild(I)}};
_.l.isDifferentBrowseId=function(r,f){r=_.F(r,_.lA);f=_.F(f,_.lA);return(r==null?void 0:r.browseId)!==(f==null?void 0:f.browseId)};
_.OC.Object.defineProperties(yp,{template:{configurable:!0,enumerable:!0,get:function(){return hI2()}}});
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],yp.prototype,"ytActionHandlerBehavior",void 0);yp=_.A([_.U({disableElementRegistration:!0,is:"ytd-page-manager"})],yp);_.Q(yp,"ytd-page-manager",function(){return hI2()},{mode:_.QQ("kevlar_poly_si_batch_j081")?1:2});var UV=function(r,f,I){I=I===void 0?!1:I;_.Mu.call(this);this.draggableElement=r;this.callbacks=f;this.allowClicks=I;this.dragOccurred=!1;this.internalDragger=new _.em(this.draggableElement);this.dragDelay=new _.Aq(this.delayedDrag.bind(this));bYs(this);this.allowClicks&&(_.NlX(this.internalDragger,5),r.addEventListener("click",_.GF(this,this.validateClick),{capture:!0}))};
_.t(UV,_.Mu);var bYs=function(r){_.S$(r.internalDragger,"earlycancel",function(){r.allowClicks&&(r.dragOccurred=!1)});
_.S$(r.internalDragger,"start",function(f){var I,C;(C=(I=r.callbacks).onStartDrag)==null||C.call(I,f);!f.defaultPrevented&&r.allowClicks&&(r.dragOccurred=!0)});
_.S$(r.internalDragger,"beforedrag",function(f){f.preventDefault();r.lastOffset=new _.F0(f.clientX-r.internalDragger.startX,f.clientY-r.internalDragger.startY);r.dragDelay.start()});
_.S$(r.internalDragger,"end",function(){r.dragDelay.stop();var f,I;(I=(f=r.callbacks).onEndDrag)==null||I.call(f);r.lastOffset=void 0})};
UV.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
UV.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.GF(this,this.validateClick),{capture:!0})};
UV.prototype.validateClick=function(r){this.dragOccurred&&(this.dragOccurred=!1,r.stopPropagation(),r.preventDefault())};var sV=function(r,f){_.Mu.call(this);this.JSC$17687_resizeContainer=r;this.callbacks=f;this.aspectRatio=16/9;this.JSC$17687_resizers=[];r=_.E(this.JSC$17687_resizeContainer.children);for(f=r.next();!f.done;f=r.next())pHs(this,f.value)};
_.t(sV,_.Mu);sV.prototype.disposeInternal=function(){for(var r=_.E(this.JSC$17687_resizers),f=r.next();!f.done;f=r.next())f.value.dispose();r=_.E(this.JSC$17687_resizeContainer.children);for(f=r.next();!f.done;f=r.next())f.value.setAttribute("disabled","");this.JSC$17687_resizers.length=0};
sV.prototype.setSize=function(r){this.currentMiniplayerSize=r};
sV.prototype.setAspectRatio=function(r){this.aspectRatio=r};
sV.prototype.update=function(r,f){for(var I=_.E(this.JSC$17687_resizeContainer.children),C=I.next();!C.done;C=I.next()){C=C.value;var Y=C.getAttribute("alignment");_.QB(C,"disabled",Y===r||Y===f)}};
var pHs=function(r,f){var I=f.getAttribute("alignment"),C=new UV(f,{onStartDrag:function(Y){if(f.hasAttribute("disabled"))Y.preventDefault();else{r.dragStartSize=r.currentMiniplayerSize;var V,S;(S=(V=r.callbacks).onStartResize)==null||S.call(V)}},
onDrag:function(Y){if(r.dragStartSize){I!=="north"&&I!=="west"||Y.scale(-1);var V=I==="north"||I==="south";Y=V?Y.y:Y.x;V&&r.aspectRatio>=1?Y*=r.aspectRatio:!V&&r.aspectRatio<1&&(Y/=r.aspectRatio);r.callbacks.onResize(r.dragStartSize+Y)}}});
r.JSC$17687_resizers.push(C)};var nG6,dMq=function(){return nG6!==void 0?nG6:nG6=document.createElement("template")};
document.head.appendChild(dMq().content);var zI6;var MW7=_.Hc(function(r){var f=_.yy(),I=r.onDrag,C=r.onDragStart,Y=r.onDragEnd,V=_.jS(r,{allowClicks:!1,dragThreshold:5}),S=V.dragThreshold,h=V.allowClicks;r=V.children;V=V.className;var w=void 0,n=void 0,d=new _.F0(0,0),z=!1;_.$E(function(){w=new _.em(f.value);n=new _.Aq(X);g(w,n);if(h()){_.NlX(w,S());var W;(W=f.value)==null||W.addEventListener("click",P,{capture:!0})}_.$L(function(){var m;(m=w)==null||m.dispose();if(h()){var v;(v=f.value)==null||v.removeEventListener("click",P,{capture:!0})}})});
var g=function(W,m){_.S$(W,"earlycancel",function(){h()&&(z=!1)});
_.S$(W,"start",function(v){C==null||C(v);v.defaultPrevented||h()&&(z=!0)});
_.S$(W,"beforedrag",function(v){w&&n&&(v.preventDefault(),d=new _.F0(v.clientX-w.startX,v.clientY-w.startY),n.start())});
_.S$(W,"end",function(){m.stop();Y==null||Y();d=new _.F0(0,0)})},X=function(){d&&I(d)},P=function(W){z&&(z=!1,W.stopPropagation(),W.preventDefault())};
return _.p("yt-draggable",{el:f,class:_.qd("ytDraggableComponentHost",V)},r)},"eg");var gGs=_.Hc(function(r){var f=_.E(_.ld(0,void 0,"CvAwBd")),I=f.next().value,C=f.next().value;f=function(Y){var V={},S={};return _.p(MW7,{className:_.qd("ytdMiniplayerComponentResizer",(V.ytdMiniplayerComponentResizerDisabled=function(){return Y===r.horizontalAlignment()||Y===r.verticalAlignment()},V.ytdMiniplayerComponentResizerNorth=Y==="north",V.ytdMiniplayerComponentResizerEast=Y==="east",V.ytdMiniplayerComponentResizerSouth=Y==="south",V.ytdMiniplayerComponentResizerWest=Y==="west",V)),
onDragStart:function(){C(r.currentMiniplayerSize());if(r.onResizeStart)r.onResizeStart()},
onDrag:function(h){Y!=="north"&&Y!=="west"||h.scale(-1);var w;h=(w=Y==="north"||Y==="south")?h.y:h.x;var n=r.currentAspectRatio();w&&n>=1?h*=n:!w&&n<1&&(h/=n);w=h;r.onResize(I()+w)}},_.p("div",{class:_.qd("ytdMiniplayerComponentResizerCorner",(S.ytdMiniplayerComponentResizerNorthCorner=Y==="north",S.ytdMiniplayerComponentResizerEastCorner=Y==="east",S.ytdMiniplayerComponentResizerSouthCorner=Y==="south",S.ytdMiniplayerComponentResizerWestCorner=Y==="west",S))}))};
return _.p("div",{class:"ytdMiniplayerComponentResizers"},f("north"),f("east"),f("south"),f("west"))},"fg");var aL6=16/9,XH7=_.Hc(function(){var r=_.yy(),f=_.E(_.ld(new _.EZ(NaN,NaN),void 0,"JiJ5kf")),I=f.next().value,C=f.next().value;f=_.E(_.ld(!1,void 0,"CMsyze"));var Y=f.next().value,V=f.next().value;f=_.E(_.ld(!1,void 0,"Y9gu9"));var S=f.next().value,h=f.next().value;f=_.E(_.ld(!1,void 0,"wtQDL"));var w=f.next().value,n=f.next().value;f=_.E(_.ld(!1,void 0,"Z6mCbc"));var d=f.next().value,z=f.next().value;f=_.E(_.ld(!1,void 0,"idQRGf"));var g=f.next().value,X=f.next().value;f=_.E(_.ld(!1,void 0,"AB2Nue"));
var P=f.next().value,W=f.next().value;f=_.E(_.ld(aL6,void 0,"BRGhle"));var m=f.next().value,v=f.next().value,O=_.E(_.ld(!1,void 0,"Ewniq"));f=O.next().value;var k=O.next().value;O=_.E(_.ld(!1,void 0,"d7QPoc"));var Z=O.next().value,Cw=O.next().value;O=_.E(_.ld(void 0,void 0,"PJ8WYe"));var rR=O.next().value,EP=O.next().value;O=_.E(_.ld(_.Lz("HTML_DIR")==="rtl"?"west":"east",void 0,"e8bI9"));var Pu=O.next().value,Wu=O.next().value;O=_.E(_.ld("south",void 0,"GUiyoe"));var cu=O.next().value,OP=O.next().value;
O=_.E(_.ld(400,void 0,"jEzPzf"));var iU=O.next().value,oR=O.next().value,vu=_.a().resolve(_.iO).miniplayerPropSignalMap[0],wB=vu.data,qT=vu.externalPlaylistData;O=vu.toastData;var gB=vu.playabilityStatus,C8=vu.isReadyToResume,Es=vu.isDisabled,J_=vu.watchWhile,xC=vu.playerVe,r2=vu.expandVe,F9=vu.closeVe,SK=vu.readyToResumeVe,FX=vu.readyToResumeCloseVe,iV=vu.repositionVe,s7=vu.resizeVe;vu=_.E(_.YZ(C8));var W4=vu.next().value,Qq=vu.next().value,Gs=!1,$C=!1,kq;_.$E(function(){C(_.Sl());r.value.addEventListener("animationend",
function(yq){yq.target===r.value&&(X(!1),W(!1))})});
_.KN("yt-window-resized",function(yq){yq&&C(yq)});
var XX=function(){kq&&v(kq.getVideoAspectRatio())},hU=function(){if(kq){var yq=kq.getPlayerState()===1;
W4()&&yq&&Qq(!1)}},P4=function(){var yq=r2();
if(yq){var T6=_.t1(3);T6&&_.im(T6,yq)}},N6=function(){var yq=F9(),T6=FX();
yq&&_.im(_.t1(3),yq);C8()&&T6&&_.im(_.t1(3),T6)};
_.KN("yt-activate-miniplayer",function(yq){var T6;return _.x(function(AU){if(AU.nextAddress==1)return Y()?AU.return():_.b(AU,(T6=_.a().resolve(_.iO).getPlayerElement())==null?void 0:T6.getPlayerPromise(),2);kq=AU.yieldResult;if(!kq)return AU.return();!Z()&&_.N("kevlar_watch_while_v2")&&(OP(yq&&!_.N("kevlar_watch_while_bottom_align")?"north":"south"),Wu(_.Lz("HTML_DIR")==="rtl"?"west":"east"));var w2=kq;w2.addEventListener("onVideoDataChange",XX);w2.addEventListener("onStateChange",hU);w2.addEventListener("onExpandMiniplayer",
P4);w2.addEventListener("onCloseMiniplayer",N6);v(kq.getVideoAspectRatio());V(!0);X(!0);_.wO(AU)})});
_.KN("yt-deactivate-miniplayer",function(yq){return _.x(function(T6){if(!Y())return T6.return();V(!1);Qq(!1);W(yq);X(!0);if(kq){var AU=kq;AU.removeEventListener("onVideoDataChange",XX);AU.removeEventListener("onStateChange",hU);AU.removeEventListener("onExpandMiniplayer",P4);AU.removeEventListener("onCloseMiniplayer",N6)}_.wO(T6)})});
var hg=function(){var yq=!!wB(),T6=g(),AU=J_();return(AU===void 0?0:AU)&&_.N("kevlar_watch_while_modern")?!1:yq||T6},pW=function(){var yq;
return!((yq=qT())==null||!yq.contents)},O7=function(){var yq=iU();
var T6=I();T6=Math.min(Math.min(T6.width,T6.height)-32,720);var AU=m(),w2=hg(),NU=pW()&&S(),to=Math.min(yq,T6);yq=new _.EZ(192,w2?116:192);AU=Qs6(new _.EZ(NU?aL6:AU,1),new _.EZ(to,w2?to-76:to));yq.width<=AU.width&&yq.height<=AU.height||(oN6(AU,yq),AU.width=Math.min(AU.width,T6),AU.height=Math.min(AU.height,T6));return new _.EZ(AU.width,_.my(192,AU.height+zkd(w2,NU),720))},ak=function(){var yq=O7(),T6=hg(),AU=pW()&&S();
return new _.EZ(yq.width,yq.height-zkd(T6,AU))},Xo=function(){var yq=function(T6){T6.target===r.value&&d()&&(z(!1),r.value.removeEventListener("transitionend",yq))};
r.value.addEventListener("transitionend",yq);z(!0);h(!S())};
_.az(function(){var yq=xC(),T6=_.t1(3),AU=_.Pj(3);if(T6&&AU&&yq){_.mw(T6,AU,yq);AU=iV();var w2=s7(),NU=r2(),to=F9(),dI=FX();NU&&to&&dI&&(_.e_(T6,yq,[NU,to,dI]),_.j_(T6,[NU,to]));AU&&w2&&_.e_(T6,yq,[AU,w2])}});
_.az(function(){var yq=W4(),T6=SK();if(T6&&(yq===void 0?0:yq)){yq=_.t1(0);var AU=_.Pj(0);yq&&AU&&(_.mw(yq,AU,T6),_.j_(yq,[T6]))}});
vu={};return _.p("ytd-miniplayer",{el:r,class:_.qd("ytdMiniplayerComponentHost",(vu.ytdMiniplayerComponentVisible=function(){return Y()||g()},vu.ytdMiniplayerComponentAnimatingSnap=w,vu.ytdMiniplayerComponentAnimatingPlaylistExpand=d,vu.ytdMiniplayerComponentAnimatingFade=g,vu),function(){if(g()){var yq=cu();
var T6=Y(),AU=P();yq=T6?yq==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":AU?yq==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":yq==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else yq="";return yq}),
style:_.lB({top:function(){return cu()==="north"?"16px":""},
right:function(){return Pu()==="east"?"16px":""},
bottom:function(){return cu()==="south"?"16px":""},
left:function(){return Pu()==="west"?"16px":""},
width:function(){return O7().width+"px"},
height:function(){return O7().height+"px"},
transform:function(){var yq=rR();return yq?"translate("+yq.x+"px, "+yq.y+"px)":""}})},_.p("div",{class:"ytdMiniplayerComponentContent"},_.p(MW7,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(yq){var T6=djs(Pu(),cu(),I(),O7(),rR()),AU=ak();Math.abs(yq.clientY-(T6.y+AU.height))>15?(k(!0),yq=_.t1(3),T6=iV(),Gs||(Gs=!0,yq&&T6&&_.j_(yq,[T6])),yq&&T6&&_.im(yq,T6)):yq.preventDefault()},
onDrag:function(yq){EP(yq)},
onDragEnd:function(){var yq=b2U(djs(Pu(),cu(),I(),O7(),rR()),I(),O7()),T6=nx6(Pu(),cu(),I(),O7()),AU=nx6(yq.horizontalAlignment,yq.verticalAlignment,I(),O7());AU=new _.F0(AU.x-T6.x,AU.y-T6.y);var w2;T6=T6.y+(((w2=rR())==null?void 0:w2.y)||0)+O7().height/2;var NU=function(){Pu()===yq.horizontalAlignment&&cu()===yq.verticalAlignment||Cw(!0);Wu(yq.horizontalAlignment);OP(yq.verticalAlignment);EP(void 0)},to=function(dI){dI.target===r.value&&w()&&(n(!1),NU(),r.value.removeEventListener("transitionend",
to))};
k(!1);cu()==="south"&&T6>I().height?(NU(),_.a().resolve(_.iO).close()):(r.value.addEventListener("transitionend",to),n(!0),EP(AU))}},_.p(_.M,{cond:Y,
then:function(){return _.p(_.Jg7,{isDisabled:Es,playabilityStatus:gB,size:ak})}}),_.p(_.M,{cond:hg,
then:function(){return _.p(_.med,{isReadyToResume:W4,data:wB,expanded:S,onExpandClick:Xo,playlistData:qT})}}),_.p(_.M,{cond:f,
then:function(){return _.p("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.p(_.M,{cond:function(){return pW()&&S()||d()},
then:function(){return _.p(_.lFq,{className:"ytdMiniplayerComponentPlaylistPanel",data:qT,hideHeaderText:!0,withinMiniplayer:!0})}}),_.p("div",{class:"ytdMiniplayerComponentToast"},_.p(_.jM3,{toastData:O}))),_.p(gGs,{onResize:function(yq){oR(_.my(192,yq,720))},
onResizeStart:function(){var yq=_.t1(3),T6=s7();$C||($C=!0,yq&&T6&&_.j_(yq,[T6]));yq&&T6&&_.im(yq,T6)},
currentAspectRatio:m,currentMiniplayerSize:iU,horizontalAlignment:Pu,verticalAlignment:cu}))},"gg");_.N("ytd_miniplayer_to_wiz")&&_.Kv(XH7,"ytd-miniplayer",{});_.Kv(_.jM3,"ytd-miniplayer-toast",{props:{toastData:_.jv}});var Nvp=16/9,$M6=new _.EZ(400,400/Nvp),OV=function(){var r=_.y.apply(this,arguments)||this;r.active=!1;r.hasNoData=!1;r.enabled=!1;r.expanded=!1;r.readyToResume=!1;r.isDisabled=!1;r.externalPlaylistData={};r.premiumBadges=[];r.watchWhile=!1;r.playerState=null;r.verticalAttachment="south";r.horizontalAttachment=_.Lz("HTML_DIR")==="rtl"?"west":"east";r.isAnimatingFade=!1;r.isAnimatingSnap=!1;r.isAnimatingExpand=!1;r.isDragging=!1;r.playerHidden=!1;r.hasPlaylistData=!1;r.closed=!1;r.expandedClosed=!1;
r.isForReadyToResume=!1;r.watchResponse=null;r.player=null;r.playerVe=null;r.expandVe=null;r.closeVe=null;r.readyToResumeCloseVe=null;r.disabledInitialStateIsPlaying=!1;r.PLAYER_EVENTS=new Map;r.aspectRatio=Nvp;r.currentMiniplayerSize=400;r.userSetSize=!1;r.userSetPosition=!1;r.userHasDragged=!1;r.maxMiniplayerSize=720;r.transform=new _.F0(0,0);r.windowDimensions=new _.EZ(NaN,NaN);r.dimensions=$M6;r.screenLayer=3;r.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return r};
_.t(OV,_.y);_.l=OV.prototype;_.l.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.l.ready=function(){this.setUpDragging();this.setUpResizing()};
_.l.attached=function(){this.onWindowResized(_.Sl());this.hostElement.addEventListener("animationend",_.GF(this,this.resetFadingAnimation))};
_.l.detached=function(){this.hostElement.removeEventListener("animationend",_.GF(this,this.resetFadingAnimation))};
_.l.resetFadingAnimation=function(r){r.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.l.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.l.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.l.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var r=_.t1(this.screenLayer);this.readyToResumeCloseVe&&r&&_.j_(r,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.l.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var r=_.t1(0),f=_.Pj(0);r&&f&&(_.mw(r,f,this.readyToResumeVe),_.j_(r,[this.readyToResumeVe]))}};
_.l.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var r=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=r===-1||r===1||r===3)&&this.player.pauseVideo()}};
_.l.activate=function(r,f){f=f===void 0?!1:f;var I=this,C;return _.x(function(Y){if(Y.nextAddress==1)return I.setInitialActivatePositioning(f),I.enabled=!0,I.active=!0,I.expanded=!1,I.closed=!1,I.expandedClosed=!1,I.watchWhileHidden||(I.isAnimatingFade=!0),_.a().resolve(_.WP).setPlaylistComponent(I.JSC$17698_playlistPanel),r.appendTo(I.playerContainer),_.b(Y,r.getPlayerPromise(),2);C=Y.yieldResult;C.setSizeStyle(!1,!0);I.ytPlayerListenerBehavior.listenToPlayerEvents(C,I.PLAYER_EVENTS);I.player=C;
I.watchWhile&&_.N("kevlar_watch_while_minimum_size")&&I.setMiniplayerSize(192);I.setAspectRatio(I.player.getVideoAspectRatio());I.onIsDisabledChanged();_.wO(Y)})};
_.l.setInitialActivatePositioning=function(r){if(!this.userSetPosition&&_.N("kevlar_watch_while_v2")){this.verticalAttachment=r&&!_.N("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.Lz("HTML_DIR")==="rtl"?"west":"east";var f;(f=this.JSC$17698_resizers)==null||f.update(this.horizontalAttachment,this.verticalAttachment)}};
_.l.deactivate=function(r,f){var I=this;return _.x(function(C){if(!I.active)return C.return();r||(I.expanded?I.expandedClosed=!0:I.closed=!0);I.active=!1;I.isForReadyToResume=!1;f&&_.N("kevlar_watch_while_counterfactual")||(I.isAnimatingFade=!0);I.player&&I.ytPlayerListenerBehavior.unlistenFromPlayerEvents(I.player,I.PLAYER_EVENTS);I.player=null;_.wO(C)})};
_.l.onMetadataTap=function(r){this.expandVe&&(r===void 0||r)&&(r=_.t1(this.screenLayer))&&_.im(r,this.expandVe);_.bb(_.a().resolve(_.iO))};
_.l.onDisabledTap=function(r){r.target===_.e(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.l.onPlaylistExpandTap=function(r){if(this.hasPlaylistData){r=_.JN(r)||[];r=_.E(r);for(var f=r.next();!f.done;f=r.next()){f=f.value;if(f===this.hostElement)break;if(f.classList&&f.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.l.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.GF(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.l.animatedResizePlaylist=function(r){r.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.GF(this,this.animatedResizePlaylist)))};
_.l.getExpandIcon=function(r){return r?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.l.onPlayerVideoDataChange=function(){var r,f=(r=this.player)==null?void 0:r.getVideoAspectRatio();f&&f!==this.aspectRatio&&this.setAspectRatio(f)};
_.l.setAspectRatio=function(r){if(this.active){this.aspectRatio=r;this.updateDimensionsAndResize();var f;(f=this.JSC$17698_resizers)==null||f.setAspectRatio(r)}};
_.l.updateDimensionsAndResize=function(){var r=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),f=this.expanded?Nvp:this.aspectRatio,I=new _.EZ(192,this.showInfoBar?116:192);r=Qs6(new _.EZ(f,1),new _.EZ(r,this.showInfoBar?r-76:r));I.width<=r.width&&I.height<=r.height||(oN6(r,I),r.width=Math.min(r.width,this.maxMiniplayerSize),r.height=Math.min(r.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&f<=1?Math.max(r.width,r.height)+76:Math.max(r.width,r.height)));this.dimensions=
new _.EZ(r.width,this.clamp(r.height+this.getNonPlayerHeight()));this.resize()};
_.l.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var r=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=r.height+"px";var f;(f=this.player)==null||f.setInternalSize(r.width,r.height)};
_.l.getPlayerSize=function(r){var f=Math.max(0,r.height-this.getNonPlayerHeight());return new _.EZ(r.width,f)};
_.l.getNonPlayerHeight=function(){var r=0;this.showInfoBar&&(r+=76);this.expanded&&(r+=285);return r};
_.l.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.a().resolve(_.iO).close()};
_.l.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.l.logClosingClick=function(){this.closeVe&&_.im(_.t1(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.im(_.t1(this.screenLayer),this.readyToResumeCloseVe)};
_.l.onPlayerExpandMiniplayer=function(){if(this.expandVe){var r=_.t1(this.screenLayer);r&&_.im(r,this.expandVe)}};
_.l.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var r=this.playerState===1;this.continueWatching&&r&&(this.continueWatching=!1);this.premiumBadges.length&&r&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.l.getScreenLayer=function(){return this.screenLayer};
_.l.logMiniplayer=function(){var r=_.t1(this.screenLayer),f=_.Pj(this.screenLayer);r&&f&&this.playerVe&&(_.mw(r,f,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.e_(r,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.j_(r,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.e_(r,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.l.computePlaylistData=function(r,f){return f};
_.l.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.l.computeExpandButtonHidden=function(r,f,I){return!r||!f||I};
_.l.computePlaylistIndexHidden=function(r,f){return!r||f};
_.l.computePlaylistPanelHidden=function(r,f){return!f&&!r};
_.l.computeExpandButtonLabel=function(r){return r?_.VR("MINIPLAYER_COLLAPSE_LABEL"):_.VR("MINIPLAYER_EXPAND_LABEL")};
_.l.computeDisabledStateCloseButtonLabel=function(){return _.VR("MINIPLAYER_CLOSE",void 0,"Close")};
_.l.onWindowResized=function(r){r&&(r=this.windowDimensions=r,this.maxMiniplayerSize=Math.min(Math.min(r.width,r.height)-32,720),this.updateDimensionsAndResize())};
_.l.setUpResizing=function(){var r=this;this.JSC$17698_resizers||(this.JSC$17698_resizers=new sV(this.JSC$17698_resizeContainer,{onStartResize:function(){r.handleResizeStart()},
onResize:function(f){r.handleResize(f)}}),this.JSC$17698_resizers.setSize(this.currentMiniplayerSize),this.JSC$17698_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.l.handleResizeStart=function(){var r=_.t1(this.screenLayer);this.userSetSize||(this.userSetSize=!0,r&&this.resizeVe&&_.j_(r,[this.resizeVe]));r&&this.resizeVe&&_.im(r,this.resizeVe)};
_.l.handleResize=function(r){this.setMiniplayerSize(r);this.updateDimensionsAndResize()};
_.l.setUpDragging=function(){var r=this;this.JSC$17698_dragger||(this.JSC$17698_dragger=new UV(this.draggableContainer,{onStartDrag:function(f){!r.isSafeToDrag(f)||r.isAnimatingSnap?f.preventDefault():r.handleDragStart()},
onDrag:function(f){r.transform=f;r.setTransform(r.transform)},
onEndDrag:function(){r.handleDragEnd()}},!0))};
_.l.handleDragStart=function(){this.isDragging=!0;var r=_.t1(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,r&&this.repositionVe&&_.j_(r,[this.repositionVe]));r&&this.repositionVe&&_.im(r,this.repositionVe)};
_.l.handleDragEnd=function(){this.isDragging=!1;var r=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&r>this.windowDimensions.height&&_.a().resolve(_.iO).close();this.animateSnapToCorner()};
_.l.animateSnapToCorner=function(){var r=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),f=this.getNearestAttachments();f=this.getGlobalPositionFromAttachments(f.horizontalAttachment,f.verticalAttachment);r=new _.F0(f.x-r.x,f.y-r.y);this.isAnimatingSnap=!0;this.setTransform(r);this.hostElement.addEventListener("transitionend",_.GF(this,this.endSnapAnimation))};
_.l.endSnapAnimation=function(r){r.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.GF(this,this.endSnapAnimation)),this.endDrag())};
_.l.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.l.setTransform=function(r){this.hostElement.style.transform=r?"translate("+r.x+"px, "+r.y+"px)":""};
_.l.getGlobalPositionFromAttachments=function(r,f){return new _.F0(r==="west"?16:this.windowDimensions.width-this.dimensions.width-16,f==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.l.updateAttachments=function(){var r=this.getNearestAttachments();if(this.horizontalAttachment!==r.horizontalAttachment||this.verticalAttachment!==r.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=r.horizontalAttachment;this.verticalAttachment=r.verticalAttachment;var f;(f=this.JSC$17698_resizers)==null||f.update(this.horizontalAttachment,this.verticalAttachment)};
_.l.getNearestAttachments=function(){var r=this.getCurrentGlobalPosition();return{horizontalAttachment:r.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:r.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.l.getCurrentGlobalPosition=function(){var r=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return p16(r,this.transform)};
_.l.isSafeToDrag=function(r){var f=this.playerContainer.getBoundingClientRect();return Math.abs(r.clientY-(f.y+f.height))>15};
_.l.setMiniplayerSize=function(r){this.currentMiniplayerSize=this.clamp(r);var f;(f=this.JSC$17698_resizers)==null||f.setSize(this.currentMiniplayerSize)};
_.l.clamp=function(r){return _.my(192,r,720)};
_.l.registerViewTransitionTasks=function(){var r=this,f=_.a().resolve(_.ZY(_.cg3));if(f){var I={beforeTransition:function(){r.hostElement&&(r.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){r.hostElement&&(r.hostElement.style.viewTransitionName="")}};
Eh(f,"slide",I);Eh(f,"zoom",I)}};
_.OC.Object.defineProperties(OV.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.N("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.VR("CONTINUE_WATCHING",void 0,"Continue watching")};var r;if((r=this.externalPlaylistData)==null?0:r.contents)return this.externalPlaylistData.titleText;var f;return(f=this.data)==null?void 0:f.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.externalPlaylistData)==null?0:r.contents){var f;return(f=_.nJm(this.externalPlaylistData))==null?void 0:f.title}var I;return(I=this.data)==null?void 0:I.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var r,f,I,C;return((r=this.externalPlaylistData)==null?void 0:r.currentIndex)!==void 0&&((f=this.externalPlaylistData)==null?0:f.totalVideos)&&!((I=this.data)==null?0:(C=I.playlistData)==null?0:C.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.jAK(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.N("kevlar_watch_while_counterfactual")}}});
OV.prototype.onIsDisabledChanged=OV.prototype.onIsDisabledChanged;OV.prototype.readyToResumeVeChanged=OV.prototype.readyToResumeVeChanged;OV.prototype.premiumBrandingChanged=OV.prototype.premiumBrandingChanged;OV.prototype.onPlayerVeChange=OV.prototype.onPlayerVeChange;OV.prototype.hasPlaylistDataChanged=OV.prototype.hasPlaylistDataChanged;_.A([_.J(_.iQ.YtPlayerListenerBehavior),_.B("design:type",_.RN)],OV.prototype,"ytPlayerListenerBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],OV.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],OV.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],OV.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],OV.prototype,"ytdReduxBehavior",void 0);_.A([_.uA("#draggable"),_.B("design:type",HTMLDivElement)],OV.prototype,"draggableContainer",void 0);
_.A([_.uA("#resize-container"),_.B("design:type",HTMLDivElement)],OV.prototype,"JSC$17698_resizeContainer",void 0);_.A([_.uA("#video-container"),_.B("design:type",HTMLDivElement)],OV.prototype,"videoContainer",void 0);_.A([_.uA("#player-container"),_.B("design:type",HTMLDivElement)],OV.prototype,"playerContainer",void 0);_.A([_.uA("#playlist"),_.B("design:type",HTMLDivElement)],OV.prototype,"JSC$17698_playlistPanel",void 0);_.A([_.K(),_.B("design:type",Object)],OV.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],OV.prototype,"active",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],OV.prototype,"hasNoData",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],OV.prototype,"enabled",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],OV.prototype,"expanded",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],OV.prototype,"readyToResume",void 0);
_.A([_.K(),_.B("design:type",Object)],OV.prototype,"isDisabled",void 0);_.A([_.K(),_.B("design:type",Object)],OV.prototype,"externalPlaylistData",void 0);_.A([_.K(),_.B("design:type",Array)],OV.prototype,"premiumBadges",void 0);_.A([_.K(),_.B("design:type",Object)],OV.prototype,"toastData",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],OV.prototype,"watchWhile",void 0);_.A([_.K(),_.B("design:type",Boolean)],OV.prototype,"premiumBranding",void 0);
_.A([_.K(),_.B("design:type",Object)],OV.prototype,"playerState",void 0);_.A([_.K(),_.B("design:type",Boolean)],OV.prototype,"continueWatching",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],OV.prototype,"verticalAttachment",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],OV.prototype,"horizontalAttachment",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],OV.prototype,"isAnimatingFade",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],OV.prototype,"isAnimatingSnap",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],OV.prototype,"isAnimatingExpand",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],OV.prototype,"isDragging",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],OV.prototype,"playerHidden",void 0);
_.A([_.K({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.B("design:type",Object)],OV.prototype,"playlistData",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.B("design:type",Object)],OV.prototype,"hasPlaylistData",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],OV.prototype,"closed",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],OV.prototype,"expandedClosed",void 0);
_.A([_.K({selector:_.cLc}),_.B("design:type",Boolean)],OV.prototype,"isSingleOptionSurveyActive",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.$x}),_.B("design:type",Boolean)],OV.prototype,"isWatchPage",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("watchWhile"),_.B("design:type",Object),_.B("design:paramtypes",[])],OV.prototype,"showInfoBar",null);_.A([_.R("premiumBadges","showInfoBar"),_.B("design:type",Object),_.B("design:paramtypes",[])],OV.prototype,"showOverlayPremiumBadges",null);
_.A([_.K(),_.B("design:type",Object)],OV.prototype,"watchResponse",void 0);_.A([_.K(),_.B("design:type",Object)],OV.prototype,"miniplayerRenderer",void 0);_.A([_.K(),_.B("design:type",Object)],OV.prototype,"playabilityStatus",void 0);_.A([_.K(),_.B("design:type",Object)],OV.prototype,"playerVe",void 0);_.A([_.K(),_.B("design:type",Object)],OV.prototype,"expandVe",void 0);_.A([_.K(),_.B("design:type",Object)],OV.prototype,"closeVe",void 0);
_.A([_.K(),_.B("design:type",Object)],OV.prototype,"readyToResumeCloseVe",void 0);_.A([_.K(),_.B("design:type",_.F6)],OV.prototype,"readyToResumeVe",void 0);_.A([_.K(),_.B("design:type",_.F6)],OV.prototype,"resizeVe",void 0);_.A([_.K(),_.B("design:type",_.F6)],OV.prototype,"repositionVe",void 0);_.A([_.Bt("hasPlaylistData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OV.prototype,"hasPlaylistDataChanged",null);
_.A([_.Bt("playerVe"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OV.prototype,"onPlayerVeChange",null);_.A([_.Bt("premiumBranding"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OV.prototype,"premiumBrandingChanged",null);_.A([_.Bt("readyToResumeVe"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OV.prototype,"readyToResumeVeChanged",null);
_.A([_.Bt("isDisabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OV.prototype,"onIsDisabledChanged",null);_.A([_.R("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.B("design:type",Object),_.B("design:paramtypes",[])],OV.prototype,"miniplayerSubtitle",null);_.A([_.R("data.miniplayerTitle","externalPlaylistData"),_.B("design:type",Object),_.B("design:paramtypes",[])],OV.prototype,"miniplayerTitle",null);
_.A([_.R("externalPlaylistData","continueWatching"),_.B("design:type",Object),_.B("design:paramtypes",[])],OV.prototype,"playlistIndexMessage",null);_.A([_.K({reflectToAttribute:!0}),_.R("playabilityStatus"),_.B("design:type",Object),_.B("design:paramtypes",[])],OV.prototype,"showErrorScreen",null);_.A([_.K({reflectToAttribute:!0}),_.R("watchWhile"),_.B("design:type",Object),_.B("design:paramtypes",[])],OV.prototype,"watchWhileHidden",null);
_.N("ytd_miniplayer_to_wiz")||_.Q(OV,"ytd-miniplayer",function(){if(zI6===void 0){var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
r.content.insertBefore(dMq().content.cloneNode(!0),r.content.firstChild);r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);zI6=r}r=zI6;return r},{mode:2});var FBd;var ZD=function(){var r=_.y.apply(this,arguments)||this;r.useListItemStyles=_.N("web_list_item_style_for_menu_items");r.systemIcons=_.N("kevlar_system_icons");return r};
_.t(ZD,_.y);_.l=ZD.prototype;_.l.ready=function(){this.hostElement.addEventListener("tap",_.GF(this,this.onEndpointTapExtra))};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.l.onFocus=function(){var r;(r=_.e(this.hostElement).querySelector("tp-yt-paper-item"))==null||r.focus()};
_.l.onEndpointTapExtra=function(r){_.kA(this.hostElement,"iron-activate");var f=this.data.navigationEndpoint;f&&_.F(f,_.Y8q)&&(r.stopPropagation(),_.rX(this.hostElement,[f],this.hostElement))};
_.l.computeIcon=function(r){return r&&r.iconType?_.kN(r.iconType):""};
_.l.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.l.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.l.forceUpdateStylesOnLegacyBrowsers=function(){_.N("kevlar_legacy_browsers")&&_.Zh(this.hostElement)};
ZD.prototype.forceUpdateStylesOnLegacyBrowsers=ZD.prototype.forceUpdateStylesOnLegacyBrowsers;ZD.prototype.onFocus=ZD.prototype.onFocus;_.A([_.J(_.RO),_.B("design:type",Object)],ZD.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.J(_.Stg.YtConditionalRendererBehavior),_.B("design:type",Object)],ZD.prototype,"ytConditionalRendererBehavior",void 0);_.A([_.J(_.DG.YtEndpointBehavior),_.B("design:type",Object)],ZD.prototype,"ytEndpointBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],ZD.prototype,"data",void 0);_.A([_.K({computed:"computeIcon(data.icon)",value:""}),_.B("design:type",String)],ZD.prototype,"icon",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],ZD.prototype,"useIcons",void 0);_.A([_.K({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.B("design:type",Boolean)],ZD.prototype,"hasSeparator",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ZD.prototype,"useListItemStyles",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ZD.prototype,"systemIcons",void 0);_.A([_.kO("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZD.prototype,"onFocus",null);_.A([_.Bt("useIcons","hasSeparator"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZD.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.Q(ZD,"ytd-menu-navigation-item-renderer",function(){if(FBd===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);FBd=r}r=FBd;return r},{mode:1});var PQs;var tW7=_.iX(_.VR("DOWNLOAD",{},"Download")),Tv2=_.iX(_.VR("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),cWV=_.iX(_.VR("RETRY",{},"Retry")),WBV=_.iX(_.VR("PAUSE_DOWNLOADING",{},"Pause downloading")),LBd=_.iX(_.VR("RESUME_DOWNLOAD",{},"Resume download")),G2=function(){var r=_.y.apply(this,arguments)||this;r.primaryText=tW7;r.primaryIconType="OFFLINE_DOWNLOAD";r.hasSecondaryContent=!1;r.hasSeparator=!1;r.transferState="TRANSFER_STATE_UNKNOWN";r.isVideoDeletedByUser=!1;r.isHidden=!1;r.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return r};
_.t(G2,_.y);_.l=G2.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(r){var f=this.data.serviceEndpoint;if(f){var I=_.F(f,_.CF);I&&r&&(I.action=r);this.ytComponentBehavior.resolveCommand(f)}};
_.l.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=tW7,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=tW7;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=cWV;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=Tv2;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=LBd;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=Tv2;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
WBV;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=Tv2;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=Tv2;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=tW7,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.l.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.l.isSecondaryEntryHidden=function(r,f){return r?!0:!f};
_.l.computeHasSeparator=function(){var r;return!((r=this.data)==null||!r.hasSeparator)};
G2.prototype.showHideButton=G2.prototype.showHideButton;G2.prototype.onTransferStateChange=G2.prototype.onTransferStateChange;G2.prototype.onFocus=G2.prototype.onFocus;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],G2.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],G2.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],G2.prototype,"ytComponentBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],G2.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],G2.prototype,"primaryText",void 0);_.A([_.K(),_.B("design:type",String)],G2.prototype,"primaryIconType",void 0);_.A([_.K(),_.B("design:type",String)],G2.prototype,"primaryAction",void 0);_.A([_.K(),_.B("design:type",Object)],G2.prototype,"secondaryText",void 0);_.A([_.K(),_.B("design:type",String)],G2.prototype,"secondaryIconType",void 0);
_.A([_.K(),_.B("design:type",String)],G2.prototype,"secondaryAction",void 0);_.A([_.K(),_.B("design:type",Object)],G2.prototype,"hasSecondaryContent",void 0);_.A([_.K({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.B("design:type",Object)],G2.prototype,"hasSeparator",void 0);_.A([_.K({selector:_.FN,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.B("design:type",String)],G2.prototype,"transferState",void 0);
_.A([_.K({selector:_.GKw,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.B("design:type",Object)],G2.prototype,"isVideoDeletedByUser",void 0);_.A([_.K(),_.B("design:type",Object)],G2.prototype,"isHidden",void 0);_.A([_.K({selector:_.sxR,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.B("design:type",Object)],G2.prototype,"offlineabilityState",void 0);_.A([_.uA("#primary-entry"),_.B("design:type",Object)],G2.prototype,"primaryEntry",void 0);
_.A([_.kO("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G2.prototype,"onFocus",null);_.A([_.YN("transferState","isVideoDeletedByUser"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G2.prototype,"onTransferStateChange",null);_.A([_.YN("offlineabilityState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G2.prototype,"showHideButton",null);
_.Q(G2,"ytd-menu-service-item-download-renderer",function(){if(PQs===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);PQs=r}r=PQs;return r},{mode:1});var mMU;var kS=function(){var r=_.y.apply(this,arguments)||this;r.useIcons=!1;r.systemIcons=_.N("kevlar_system_icons");r.useListItemStyles=_.N("web_list_item_style_for_menu_items");return r};
_.t(kS,_.y);_.l=kS.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.l.onFocus=function(){var r;(r=_.e(this.hostElement).querySelector("tp-yt-paper-item"))==null||r.focus()};
_.l.onTap=function(){_.qy(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var r=this.data.serviceEndpoint,f=this.data.command;if(r){var I,C=(I=this.data)==null?void 0:I.trackingParams;I=!!_.F(r,_.PCC);C&&I&&_.K2().dispatch(_.kI({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:C}}));this.ytComponentBehavior.resolveCommand(r)||_.a().resolve(_.Gg).resolveCommand(r,{form:{element:this.hostElement}})}f&&(this.ytComponentBehavior.resolveCommand(f)||_.rX(this.hostElement,
[f],this.hostElement))};
_.l.computeIcon=function(r){return r&&r.iconType?_.kN(r.iconType):""};
_.l.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.l.computeHasSeparator=function(){var r;return!((r=this.data)==null||!r.hasSeparator)};
_.l.forceUpdateStylesOnLegacyBrowsers=function(){_.N("kevlar_legacy_browsers")&&_.Zh(this.hostElement)};
_.l.computeIsSelected=function(){var r;return!((r=this.data)==null||!r.isSelected)};
kS.prototype.forceUpdateStylesOnLegacyBrowsers=kS.prototype.forceUpdateStylesOnLegacyBrowsers;kS.prototype.onTap=kS.prototype.onTap;kS.prototype.onFocus=kS.prototype.onFocus;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],kS.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.RO),_.B("design:type",Object)],kS.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],kS.prototype,"ytComponentBehavior",void 0);
_.A([_.J(_.Stg.YtConditionalRendererBehavior),_.B("design:type",Object)],kS.prototype,"ytConditionalRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],kS.prototype,"data",void 0);_.A([_.K({computed:"computeIcon(data.icon)",value:""}),_.B("design:type",String)],kS.prototype,"icon",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],kS.prototype,"useIcons",void 0);
_.A([_.K({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.B("design:type",Boolean)],kS.prototype,"hasSeparator",void 0);_.A([_.K({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.B("design:type",Boolean)],kS.prototype,"isSelected",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],kS.prototype,"systemIcons",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],kS.prototype,"useListItemStyles",void 0);
_.A([_.kO("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kS.prototype,"onFocus",null);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],kS.prototype,"onTap",null);_.A([_.Bt("useIcons","hasSeparator"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kS.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.Q(kS,"ytd-menu-service-item-renderer",function(){if(mMU===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);mMU=r}r=mMU;return r},{mode:2});var eIq;var BV=function(){return _.y.apply(this,arguments)||this};
_.t(BV,_.y);_.l=BV.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.onDataChanged=function(){var r=this;_.UC(this,function(){r.postbox.openDialog();r.focus();_.kA(r.hostElement,"yt-refit")})};
_.l.focus=function(){this.postbox.focus()};
_.l.closePopup=function(){_.Bj(this.hostElement,"yt-close-popup-action")};
_.l.onYtCommentboxDismiss=function(){this.closePopup()};
BV.prototype.onYtCommentboxDismiss=BV.prototype.onYtCommentboxDismiss;BV.prototype.onDataChanged=BV.prototype.onDataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],BV.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],BV.prototype,"data",void 0);_.A([_.K({value:function(){return _.VR("SBOX_INAPPROPRIATE_CANCEL")}}),
_.B("design:type",String)],BV.prototype,"closeButtonAriaLabel",void 0);_.A([_.uA("#postbox"),_.B("design:type",Object)],BV.prototype,"postbox",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BV.prototype,"onDataChanged",null);_.A([_.kO("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BV.prototype,"onYtCommentboxDismiss",null);
BV=_.A([_.U({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],BV);
_.Q(BV,"ytd-backstage-post-dialog-popup-renderer",function(){if(eIq!==void 0)return eIq;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return eIq=r},{mode:1});var JW6;var qt=function(){return _.y.apply(this,arguments)||this};
_.t(qt,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],qt.prototype,"data",void 0);qt=_.A([_.U({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],qt);
_.Q(qt,"ytd-sender-id-section-renderer",function(){if(JW6!==void 0)return JW6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
return JW6=r},{mode:1});var jNV;var HY2;var iYB;var uo=function(){return _.y.apply(this,arguments)||this};
_.t(uo,_.y);uo.prototype.closePopup=function(){_.Bj(this.hostElement,"yt-close-popup-action")};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],uo.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],uo.prototype,"data",void 0);uo=_.A([_.zX({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],uo);
_.Q(uo,"yt-community-post-section-renderer",function(){if(iYB===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;HY2===void 0&&(HY2=document.createElement("template"));var C=HY2;I.call(f,C.content.cloneNode(!0),r.content.firstChild);iYB=r}r=iYB;return r},{mode:2});var RI1;var vGd;var KB1;var yW1;var UM7;var sNB;var DD=function(){return _.y.apply(this,arguments)||this};
_.t(DD,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],DD.prototype,"data",void 0);DD=_.A([_.zX({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],DD);
_.Q(DD,"yt-share-start-time-with-context-renderer",function(){if(sNB===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;UM7===void 0&&(UM7=document.createElement("template"));var C=UM7;I.call(f,C.content.cloneNode(!0),r.content.firstChild);sNB=r}r=sNB;return r},{mode:2});var rr=function(){return _.y.apply(this,arguments)||this};
_.t(rr,_.y);rr.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],rr.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],rr.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],rr.prototype,"data",void 0);rr=_.A([_.zX({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],rr);
_.Q(rr,"yt-share-panel-title-v15-renderer",function(){if(yW1===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;KB1===void 0&&(KB1=document.createElement("template"));var C=KB1;I.call(f,C.content.cloneNode(!0),r.content.firstChild);yW1=r}r=yW1;return r},{mode:2});var fp=function(){return _.y.apply(this,arguments)||this};
_.t(fp,_.y);fp.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"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],fp.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],fp.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],fp.prototype,"data",void 0);fp=_.A([_.zX({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],fp);
_.Q(fp,"yt-share-panel-header-renderer",function(){if(vGd===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;RI1===void 0&&(RI1=document.createElement("template"));var C=RI1;I.call(f,C.content.cloneNode(!0),r.content.firstChild);vGd=r}r=vGd;return r},{mode:2});var OYV;var oG7;var Im=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-open-popup-action":"onOpen"};return r};
_.t(Im,_.y);_.l=Im.prototype;_.l.attached=function(){this.onOpen()};
_.l.updateTimeSecs=function(r){this.currentTimeSecs=r};
_.l.computeTimeString=function(r){r=r.toString();var f=Math.floor(Number(r)/3600),I=Math.floor(Number(r)%3600%60);return(f>0?f+":":"")+_.Dn(Math.floor(Number(r)%3600/60),f>0?2:1)+":"+_.Dn(I,2)};
_.l.computeTimeStringA11y=function(r){r=_.Bac({seconds:r});var f=r.hours===void 0?0:r.hours,I=r.minutes===void 0?0:r.minutes,C=r.seconds===void 0?0:r.seconds;r=[];if(f>0){var Y=BUs().format({hours:f});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.c1)||f>9999)Y=Y.replace(f.toString(),_.qww(f)),_.c1==="km"&&(Y=Y.replace(".",","));r.push(Y)}I>0&&r.push(BUs().format({minutes:I}));C>0&&r.push(BUs().format({seconds:C}));f="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");I=_.c1==
"am"?"{0}\u1363 ":_.c1=="fa"?"{0}\u060c\u200f ":_.c1=="my"?"{0} - ":_.c1=="ne"?"{0},":_.c1=="th"?"{0} ":_.c1=="ur"?"{0}\u060c ":_.c1=="ar"||_.c1=="ar-XB"?"{0} \u0648":_.c1=="ja"||_.c1=="zh-CN"||_.c1=="zh-HK"||_.c1=="zh-TW"?"{0}\u3001":"{0}, ";C=_.c1=="am"?"\u1363 ":_.c1=="fa"?"\u060c\u200f ":_.c1=="my"?" - ":_.c1=="th"?" ":_.c1=="ur"?"\u060c ":_.c1=="ar"||_.c1=="ar-XB"?" \u0648":_.c1=="ja"||_.c1=="zh-CN"||_.c1=="zh-HK"||_.c1=="zh-TW"?"\u3001":", ";Y=_.c1=="am"?" \u12a5\u1293 {0}":_.c1=="as"?" \u0986\u09f0\u09c1 {0}":
_.c1=="az"?" v\u0259 {0}":_.c1=="bn"?" \u098f\u09ac\u0982 {0}":_.c1=="cs"?" a\u00a0{0}":_.c1=="de"?" und {0}":_.c1=="el"?" \u03ba\u03b1\u03b9 {0}":_.c1=="eu"?" eta {0}":_.c1=="fa"?"\u060c \u0648 {0}":_.c1=="fil"?", at {0}":_.c1=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.c1=="hi"?", \u0914\u0930 {0}":_.c1=="hu"?" \u00e9s {0}":_.c1=="hy"?" \u0587 {0}":_.c1=="id"?", dan {0}":_.c1=="iw"?" \u05d5-{0}":_.c1=="ja"?"\u3001{0}":_.c1=="ka"?" \u10d3\u10d0 {0}":_.c1=="km"?" \u1793\u17b7\u1784 {0}":_.c1=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.c1=="ko"?" \ubc0f {0}":_.c1=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.c1=="lt"?" ir {0}":_.c1=="lv"?" un {0}":_.c1=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.c1=="mr"?" \u0906\u0923\u093f {0}":_.c1=="ms"?" dan {0}":_.c1=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.c1=="ne"?" \u0930 {0}":_.c1=="or"?", \u0b13 {0}":_.c1=="pa"?" \u0a05\u0a24\u0a47 {0}":_.c1=="ro"?" \u0219i {0}":_.c1=="si"?", \u0dc3\u0dc4 {0}":_.c1=="sk"?" a {0}":_.c1=="sl"?" in {0}":_.c1=="sq"?" dhe {0}":_.c1=="sv"?" och {0}":
_.c1=="sw"?" na {0}":_.c1=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.c1=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.c1=="th"?" \u0e41\u0e25\u0e30{0}":_.c1=="tr"?" ve {0}":_.c1=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.c1=="uz"?" va {0}":_.c1=="vi"?" v\u00e0 {0}":_.c1=="zh-HK"?"\u53ca{0}":_.c1=="zu"?", ne-{0}":_.c1=="af"||_.c1=="nl"?" en {0}":_.c1=="ar"||_.c1=="ar-XB"?" \u0648{0}":_.c1=="be"||_.c1=="uk"?" \u0456 {0}":_.c1=="en-GB"||_.c1=="en-IN"?" and {0}":_.c1=="en"||_.c1=="en-XA"?
", and {0}":_.c1=="et"||_.c1=="fi"?" ja {0}":_.c1=="fr"||_.c1=="fr-CA"?" et {0}":_.c1=="zh-CN"||_.c1=="zh-TW"?"\u548c{0}":_.c1=="da"||_.c1=="is"||_.c1=="no"?" og {0}":_.c1=="es"||_.c1=="es-419"||_.c1=="es-US"?" y {0}":_.c1=="kk"||_.c1=="lo"||_.c1=="mn"?", {0}":_.c1=="bg"||_.c1=="mk"||_.c1=="ru"||_.c1=="sr"?" \u0438 {0}":_.c1=="gl"||_.c1=="it"||_.c1=="pt-BR"||_.c1=="pt-PT"?" e {0}":" i {0}";var V=_.c1=="am"?"{0} \u12a5\u1293 {1}":_.c1=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.c1=="az"?"{0} v\u0259 {1}":
_.c1=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.c1=="de"?"{0} und {1}":_.c1=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.c1=="eu"?"{0} eta {1}":_.c1=="fa"?"{0} \u0648 {1}":_.c1=="fil"?"{0} at {1}":_.c1=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.c1=="hi"?"{0} \u0914\u0930 {1}":_.c1=="hu"?"{0} \u00e9s {1}":_.c1=="hy"?"{0} \u0587 {1}":_.c1=="iw"?"{0} \u05d5-{1}":_.c1=="ja"?"{0}\u3001{1}":_.c1=="ka"?"{0} \u10d3\u10d0 {1}":_.c1=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.c1=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.c1=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.c1=="ko"?"{0} \ubc0f {1}":_.c1=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.c1=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.c1=="lt"?"{0} ir {1}":_.c1=="lv"?"{0} un {1}":_.c1=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.c1=="mn"?"{0}, {1}":_.c1=="mr"?"{0} \u0906\u0923\u093f {1}":_.c1=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.c1=="ne"?"{0} \u0930 {1}":_.c1=="or"?"{0} \u0b13 {1}":_.c1=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.c1=="ro"?"{0} \u0219i {1}":_.c1==
"si"?"{0} \u0dc3\u0dc4 {1}":_.c1=="sl"?"{0} in {1}":_.c1=="sq"?"{0} dhe {1}":_.c1=="sv"?"{0} och {1}":_.c1=="sw"?"{0} na {1}":_.c1=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.c1=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.c1=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.c1=="tr"?"{0} ve {1}":_.c1=="ur"?"{0} \u0627\u0648\u0631 {1}":_.c1=="uz"?"{0} va {1}":_.c1=="vi"?"{0} v\u00e0 {1}":_.c1=="zh-HK"?"{0}\u53ca{1}":_.c1=="zu"?"{0} ne-{1}":_.c1=="af"||_.c1=="nl"?"{0} en {1}":_.c1=="ar"||_.c1==
"ar-XB"?"{0} \u0648{1}":_.c1=="be"||_.c1=="uk"?"{0} \u0456 {1}":_.c1=="cs"||_.c1=="sk"?"{0} a\u00a0{1}":_.c1=="et"||_.c1=="fi"?"{0} ja {1}":_.c1=="fr"||_.c1=="fr-CA"?"{0} et {1}":_.c1=="id"||_.c1=="ms"?"{0} dan {1}":_.c1=="zh-CN"||_.c1=="zh-TW"?"{0}\u548c{1}":_.c1=="da"||_.c1=="is"||_.c1=="no"?"{0} og {1}":_.c1=="es"||_.c1=="es-419"||_.c1=="es-US"?"{0} y {1}":_.c1=="bg"||_.c1=="mk"||_.c1=="ru"||_.c1=="sr"?"{0} \u0438 {1}":_.c1=="en"||_.c1=="en-GB"||_.c1=="en-IN"||_.c1=="en-XA"?"{0} and {1}":_.c1==
"gl"||_.c1=="it"||_.c1=="pt-BR"||_.c1=="pt-PT"?"{0} e {1}":"{0} i {1}";_.c1==="sq"?(Y=Y.replace("dhe","e"),V=V.replace("dhe","e")):_.c1==="th"?(C=C.replace("{0}"," {0}"),V=V.replace("{0}","{0} "),V=V.replace("{1}"," {1}")):_.c1==="ne"?C=",":_.c1==="zh-CN"?C="":f.includes(_.c1)&&(C=" ");return r.length<2?r.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(_.c1)?r.length===2?
V.replace("{0}",r[0]).replace("{1}",r[1]):I.replace("{0}",r[0])+r.slice(1,-1).join(C)+Y.replace("{0}",r[r.length-1]):r.join(C)};
_.l.getTimeParam=function(){return Mo1(this.timeString)};
_.l.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var r={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},f;_.lH(_.IB(),(f=this.data)==null?void 0:f.trackingParams,r,7)};
_.l.onChangeStartAtTimestamp=function(){for(var r=this.startAtTimestamp.value.split(":"),f=0,I=1,C=r.length-1;C>=0;C--)f+=Number(r[C])*I,I*=60;this.updateTimeSecs(f);this.setTimestamp()};
_.l.onOpen=function(){var r=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var f=_.sk();f?f.getPlayerPromise().then(function(I){I=I.getCurrentTime();r.updateTimeSecs(I)}):GLq()&&this.updateTimeSecs(GLq())};
_.l.setTimestamp=function(){var r=Math.floor(this.currentTimeSecs);_.Bj(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!r,timestamp:r||""}])};
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Im.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Im.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Im.prototype,"data",void 0);_.A([_.K({value:!1,notify:!0}),_.B("design:type",Boolean)],Im.prototype,"isStartAtChecked",void 0);_.A([_.K(),_.B("design:type",Number)],Im.prototype,"currentTimeSecs",void 0);
_.A([_.K({computed:"computeTimeString(currentTimeSecs)"}),_.B("design:type",String)],Im.prototype,"timeString",void 0);_.A([_.K({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.B("design:type",String)],Im.prototype,"timeStringA11y",void 0);_.A([_.uA("#start-at-timestamp"),_.B("design:type",Object)],Im.prototype,"startAtTimestamp",void 0);Im=_.A([_.zX({is:"yt-start-at-renderer",disableElementRegistration:!0})],Im);
_.Q(Im,"yt-start-at-renderer",function(){if(oG7===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;OYV===void 0&&(OYV=document.createElement("template"));var C=OYV;I.call(f,C.content.cloneNode(!0),r.content.firstChild);oG7=r}r=oG7;return r},{mode:2});var QNY;var AW3;var ZYY=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"]]),GD6=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"]]),kD6=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var Bvq={};Bvq.YtBindingExpressionsBehavior={identity:_.sP,msg:function(r,f){f=f===void 0?{}:f;return _.VR(r,f,r)},
msgPlural:function(r,f){return _.E_(r,f)},
getMusicIconFromType:function(r){if(_.N("music_web_enable_icon_wil"))r=_.kN(r);else if(GD6.has(r))r="yt-sys-icons:"+GD6.get(r);else{var f=ZYY.get(r)||_.kN(r).split(":")[1];f=_.ZPE(f);var I;r=((I=kD6.get(r))!=null?I:"yt-sys-icons:")+f}return r}};var qS7;var uI3;var DMs;var rYs=document.head,fP1=rYs.appendChild,IPi;if(DMs===void 0){var Cad=document.createElement("template");_.c(Cad,'\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>');DMs=Cad}IPi=DMs;fP1.call(rYs,IPi.content);var Cp=function(){var r=_.y.apply(this,arguments)||this;r.screenLayer=7;return r};
_.t(Cp,_.y);Cp.prototype.getScreenLayer=function(){return this.screenLayer};
Cp.prototype.onTap=function(r){r&&r.detail&&(r.detail.x||r.detail.y)&&_.e(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.Do(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(r=this.getScreenLayer(),_.kA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:r}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.OC.Object.defineProperties(Cp.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()}}});
Cp.prototype.onTap=Cp.prototype.onTap;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Cp.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Cp.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Cp.prototype,"data",void 0);_.A([_.R("data.title"),_.B("design:type",Object),_.B("design:paramtypes",[])],Cp.prototype,"title",null);
_.A([_.R("data.serviceName"),_.B("design:type",String),_.B("design:paramtypes",[])],Cp.prototype,"icon",null);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Cp.prototype,"onTap",null);Cp=_.A([_.zX({is:"yt-share-target-renderer",disableElementRegistration:!0})],Cp);
_.Q(Cp,"yt-share-target-renderer",function(){if(uI3===void 0){var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;qS7===void 0&&(qS7=document.createElement("template"));var C=qS7;I.call(f,C.content.cloneNode(!0),r.content.firstChild);uI3=r}r=uI3;return r},{mode:2});var YTd;var lPY;var Yj=function(){var r=_.y.apply(this,arguments)||this;r.SHARE_TARGET_WIDTH=70;r.SHARE_TARGET_MARGIN_RIGHT=8;r.PAGE_SCROLL_SPEED=9;r.actionMap={"yt-share-panel-reset-action":"onReset_"};return r};
_.t(Yj,_.y);_.l=Yj.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&&(_.e(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.e(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.l.onReset_=function(){if(_.e(this.hostElement).querySelector("#list")){var r=_.e(this.hostElement).querySelector("#list");var f=_.e(this.hostElement).querySelector("#list");var I=f.offsetLeft,C=f.offsetParent;C||_.JUg(f)!="fixed"||(C=_.TZ(f).documentElement);if(C){if(_.lf&&!_.Ev(58)){var Y=_.U6D(C);I+=Y.left}else Number(_.hFE)>=8&&!(Number(_.hFE)>=9)&&(Y=_.U6D(C),I-=Y.left);f=_.K6X(C)?C.clientWidth-(I+f.offsetWidth):I}else f=I;y87(r,f);this.updateScrollButtons_()}};
_.l.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.l.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.l.onScrollWheel_=function(r){r.stopPropagation();r.preventDefault();var f=KCp(_.e(this.hostElement).querySelector("#list"));r=Math.abs(r.deltaX)>Math.abs(r.deltaY)?r.deltaX:r.deltaY;y87(_.e(this.hostElement).querySelector("#list"),f+r);this.updateScrollButtons_()};
_.l.smoothScrollByOnePage_=function(r){var f=_.e(this.hostElement).querySelector("#list"),I=(Math.floor(f.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,C=KCp(f),Y=I*(r?1:-1),V=this.PAGE_SCROLL_SPEED,S=this.updateScrollButtons_.bind(this),h=0,w;(function d(){h+=V;w=h/I*2;y87(f,C+Y*(w<1?w*w:-w*w+4*w-2));h<I?window.requestAnimationFrame(d):S()})()};
_.l.updateScrollButtons_=function(){var r=KCp(_.e(this.hostElement).querySelector("#list")),f=_.e(this.hostElement).querySelector("#list").scrollWidth-_.e(this.hostElement).querySelector("#list").clientWidth;_.e(this.hostElement).querySelector("#scroll-button-back").hidden=r<=0;_.e(this.hostElement).querySelector("#scroll-button-forward").hidden=r>=f};
Yj.prototype.onScrollWheel_=Yj.prototype.onScrollWheel_;Yj.prototype.onDataChanged_=Yj.prototype.onDataChanged_;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Yj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Yj.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(Bvq.YtBindingExpressionsBehavior),_.B("design:type",Object)],Yj.prototype,"ytBindingExpressionsBehavior",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Yj.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Yj.prototype,"data",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Yj.prototype,"onDataChanged_",null);_.A([_.kO("wheel"),_.B("design:type",Function),_.B("design:paramtypes",[WheelEvent]),_.B("design:returntype")],Yj.prototype,"onScrollWheel_",null);
Yj=_.A([_.zX({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Yj);
_.Q(Yj,"yt-third-party-share-target-section-renderer",function(){if(lPY===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;YTd===void 0&&(YTd=document.createElement("template"));var C=YTd;I.call(f,C.content.cloneNode(!0),r.content.firstChild);lPY=r}r=lPY;return r},{mode:2});var lD=function(){return _.y.apply(this,arguments)||this};
_.t(lD,_.y);lD.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"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],lD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],lD.prototype,"data",void 0);lD=_.A([_.zX({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],lD);
_.Q(lD,"yt-third-party-network-section-renderer",function(){if(AW3===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;QNY===void 0&&(QNY=document.createElement("template"));var C=QNY;I.call(f,C.content.cloneNode(!0),r.content.firstChild);AW3=r}r=AW3;return r},{mode:2});_.Kv(_.Hc(function(r){return _.p("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.p("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.p(_.X1,{data:function(){return r.data().firstPartyItems}},{listItemViewModel:_.MF})))},"hg"),"first-party-network-section-view-model",{props:{data:_.jv}});var Vcp=_.op(["data:image/svg+xml;charset=UTF-8;base64,",""]),Vi=function(){var r=_.y.apply(this,arguments)||this;r.screenLayer=7;r.qrCodeEnabled=_.N("web_enable_sharing_qr_code");r.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return r};
_.t(Vi,_.y);_.l=Vi.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$17750_scroller&&(this.JSC$17750_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17750_scroller.attached&&typeof this.JSC$17750_scroller.attached==="function"&&this.JSC$17750_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.l.onDataChanged=function(){var r=this,f;(f=this.data)!=null&&f.contents&&(this.hostElement.setAttribute("links-only","true"),_.QB(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.UC(this,function(){_.kA(r.hostElement,"yt-refit");r.focusSharePanelHeader()}))};
_.l.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.l.handleSetTimestamp=function(r){var f=this.shortUrl();r.isSet&&(f=_.vY(f,"t",r.timestamp));this.maybeRenderQrCode(f)};
_.l.shortUrl=function(){var r,f=(r=this.data)==null?void 0:r.contents;if(f)for(r=0;r<f.length;r++){var I=void 0,C=void 0;if((I=f[r])==null?0:(C=I.thirdPartyNetworkSection)==null?0:C.copyLinkContainer){var Y=C=I=void 0;return(Y=_.F((I=f[r])==null?void 0:(C=I.thirdPartyNetworkSection)==null?void 0:C.copyLinkContainer,sEB))==null?void 0:Y.shortUrl}}};
_.l.maybeRenderQrCode=function(r){var f=this,I,C,Y,V,S,h,w,n,d;return _.x(function(z){if(z.nextAddress==1){I=_.e(f.hostElement).querySelector("#qr-code");if(!f.qrCodeEnabled||!r)return I&&(I.style.display="none"),z.return();C=_.E5K(_.a().resolve(_.Bc),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});Y=document.createElement("div");return typeof C==="function"?(C(Y),z.jumpTo(2)):_.b(z,C,3)}z.nextAddress!=2&&(V=z.yieldResult,V(Y));w=(S=Y)==null?void 0:(h=S.firstChild)==null?void 0:h.firstChild;
n=document.createElement("img");d=_.$1(Vcp,btoa(w.outerHTML));n.onload=function(){var g={canvas:I,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:n},X=new M56;F01(X,r);PyY(X,!1,t56(X));var P=X.modules,W=Object.assign({},NfU,g);P=structuredClone(P);g=P.length;var m,v=(m=W.canvas)!=null?m:document.createElement("canvas");m=W.cellSize;X=W.logo;var O,k=(O=W.logoSize)!=null?O:Math.floor(g/4);g%2!==k%2&&k++;var Z=W.logoPadding,Cw=W.backgroundColor;O=g*m;var rR=
W.width,EP=0;rR&&(EP=W.padding,EP=Math.ceil(EP*O/(rR-EP*2)),v.style.width=rR+"px",v.style.height=rR+"px");v.width!==O+EP*2&&(v.width=O+EP*2);v.height!==O+EP*2&&(v.height=O+EP*2);O=v.getContext("2d");W.autoClear&&O.clearRect(0,0,v.width,v.height);O.fillStyle=Cw;O.beginPath();O.roundRect(0,0,v.width,v.height,W.borderRadius);O.fill();O.save();O.translate(EP,EP);if(X)for(v=Math.floor(g-k)/2-Z,Z=Math.floor(g+k)/2+Z,Cw=v;Cw<Z;Cw++)for(rR=v;rR<Z;rR++)P[Cw][rR]=!1;for(v=0;v<g;v++)for(Z=0;Z<g;Z++)(v<7&&Z<
7||v<7&&Z>=g-7||v>=g-7&&Z<7)&&(P[v][Z]=!1);var Pu;v=(Pu=W.markerColor)!=null?Pu:W.color;c1Y(O,0,0,m,v);c1Y(O,m*(g-7),0,m,v);c1Y(O,0,m*(g-7),m,v);switch(W.cellStyle){case 0:Pu=P;P=Pu.length;v=W.cellSize;O.beginPath();for(Z=0;Z<P;Z++)for(Cw=0;Cw<P;Cw++)Pu[Z][Cw]&&O.rect(Z*v,Cw*v,v,v);O.fillStyle=W.color;O.fill();break;case 1:Pu=P;P=Pu.length;v=W.cellSize;Z=v*W.relativeCircleSize;O.fillStyle=W.color;O.beginPath();for(W=0;W<P;W++)for(Cw=0;Cw<P;Cw++)Pu[W][Cw]&&(O.beginPath(),O.ellipse((W+.5)*v,(Cw+.5)*
v,Z/2,Z/2,0,0,2*Math.PI),O.fill());O.fill();break;case 2:Pu=P;P=Pu.length;v=W.cellSize;O.fillStyle=W.color;W=[[1,1],[-1,1],[-1,-1],[1,-1]];O.beginPath();for(Z=0;Z<P;Z++)for(Cw=0;Cw<P;Cw++)if(Pu[Z][Cw])O.roundRect(Z*v,Cw*v,v,v,v/2),Z+1<P&&Pu[Z+1][Cw]&&O.rect(Z*v+v/2,Cw*v,v,v),Cw+1<P&&Pu[Z][Cw+1]&&O.rect(Z*v,Cw*v+v/2,v,v);else{rR=Z*v+v/2;EP=Cw*v+v/2;for(var Wu=0;Wu<4;Wu++){var cu=_.E(W[Wu]),OP=cu.next().value;cu=cu.next().value;Z+OP>=0&&Z+OP<P&&Cw+cu>=0&&Cw+cu<P&&Pu[Z+OP][Cw]&&Pu[Z][Cw+cu]&&Pu[Z+OP][Cw+
cu]&&(OP=Wu*Math.PI/2,cu=v/2,O.moveTo(rR+cu*Math.cos(OP),EP+cu*Math.sin(OP)),O.arc(rR,EP,v/2,OP,OP+Math.PI/2,!1),O.lineTo(rR+cu*(Math.cos(OP)-Math.sin(OP)),EP+cu*(Math.cos(OP)+Math.sin(OP))),O.lineTo(rR+cu*Math.cos(OP),EP+cu*Math.sin(OP)))}}O.fill()}X&&O.drawImage(X,(g-k)*m/2,(g-k)*m/2,k*m,k*m);O.restore();I.style.removeProperty("display")};
n.src=_.nK(d);_.wO(z)})};
_.l.hasCommunityPostRenderer=function(){var r,f,I,C;return!!((r=this.data)==null?0:(f=r.header)==null?0:(I=f.sharePanelHeaderRenderer)==null?0:(C=I.communityPost)==null?0:C.communityPostSectionRenderer)};
_.l.onTapClose=function(){_.Bj(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.l.getScreenLayer=function(){return this.screenLayer};
_.l.logSharePanelPage=function(){if(!_.N("enable_share_panel_navigation_logging_fix_on_web")){var r;if((r=this.data)!=null&&r.trackingParams){r=this.data.trackingParams;var f=this.parentClickTrackingParams;f=f?_.VH(f):void 0;var I=_.IB();_.f3(I,21760,f,{layer:7,parentLayer:0});I.graftServerVe(r,void 0,7);_.K2().dispatch(_.kI({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
Vi.prototype.onDataChanged=Vi.prototype.onDataChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Vi.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Vi.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],Vi.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Vi.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],Vi.prototype,"data",void 0);_.A([_.K({value:_.VR("SBOX_INAPPROPRIATE_CANCEL")}),_.B("design:type",String)],Vi.prototype,"closeButtonAriaLabel",void 0);_.A([_.uA("yt-share-panel-header-renderer"),_.B("design:type",HTMLElement)],Vi.prototype,"header",void 0);_.A([_.K({selector:function(r){return r.share.parentClickTrackingParams}}),
_.B("design:type",String)],Vi.prototype,"parentClickTrackingParams",void 0);_.A([_.K(),_.B("design:type",Object)],Vi.prototype,"qrCodeEnabled",void 0);_.A([_.uA("#scroller"),_.B("design:type",Object)],Vi.prototype,"JSC$17750_scroller",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vi.prototype,"onDataChanged",null);Vi=_.A([_.U({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],Vi);
_.Q(Vi,"ytd-unified-share-panel-renderer",function(){if(jNV!==void 0)return jNV;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return jNV=r},{mode:1});var E03;var EL=function(){var r=_.y.apply(this,arguments)||this;r.modernModal=_.N("kevlar_sign_in_modal_modernization");return r};
_.t(EL,_.y);EL.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
EL.prototype.computeShouldHideOldButtons=function(){var r;return!((r=this.data)==null?0:r.button)};
_.OC.Object.defineProperties(EL.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var r,f;if(this.modernModal&&((r=this.data)==null?0:(f=r.button)==null?0:f.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var I,C;return(I=this.data)==null?void 0:(C=I.button)==null?void 0:C.buttonRenderer}}});
_.A([_.K(),_.B("design:type",Object)],EL.prototype,"data",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],EL.prototype,"ytEventForwardingBehavior",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],EL.prototype,"modernModal",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],EL.prototype,"buttonRendererData",null);
EL=_.A([_.U({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],EL);
_.Q(EL,"ytd-modal-with-title-and-button-renderer",function(){if(E03!==void 0)return E03;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return E03=r},{mode:1});var STs;var SA=function(){return _.y.apply(this,arguments)||this};
_.t(SA,_.y);SA.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LT("page-changed",this.page))};
SA.prototype.pageChangedForBinding=SA.prototype.pageChangedForBinding;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],SA.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],SA.prototype,"data",void 0);_.A([_.K(),_.B("design:type",String)],SA.prototype,"page",void 0);_.A([_.Bt("page"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SA.prototype,"pageChangedForBinding",null);
SA=_.A([_.U({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],SA);
_.Q(SA,"ytd-account-item-section-header-renderer",function(){if(STs!==void 0)return STs;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return STs=r},{mode:1});var xVU;var xj=function(){return _.y.apply(this,arguments)||this};
_.t(xj,_.y);xj.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"}}}};
xj.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],xj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.cg),_.B("design:type",Object)],xj.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],xj.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!1}),_.B("design:type",Function)],xj.prototype,"onAccountItemTap",void 0);
xj=_.A([_.U({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],xj);
_.Q(xj,"ytd-account-item-section-renderer",function(){if(xVU!==void 0)return xVU;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return xVU=r},{mode:1});var hjq;var wr6;var hS=function(){return _.y.apply(this,arguments)||this};
_.t(hS,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],hS.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],hS.prototype,"data",void 0);hS=_.A([_.U({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],hS);
_.Q(hS,"ytd-accounts-dialog-header-renderer",function(){if(wr6!==void 0)return wr6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return wr6=r},{mode:1});var b_Y;var wr=function(){return _.y.apply(this,arguments)||this};
_.t(wr,_.y);wr.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],wr.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],wr.prototype,"data",void 0);wr=_.A([_.U({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],wr);
_.Q(wr,"ytd-google-account-header-renderer",function(){if(b_Y!==void 0)return b_Y;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return b_Y=r},{mode:1});var bD=function(){return _.y.apply(this,arguments)||this};
_.t(bD,_.y);bD.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"}}}};
bD.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LT("page-changed",this.page))};
bD.prototype.pageChangedForBinding=bD.prototype.pageChangedForBinding;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],bD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],bD.prototype,"data",void 0);_.A([_.K(),_.B("design:type",String)],bD.prototype,"page",void 0);
_.A([_.Bt("page"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bD.prototype,"pageChangedForBinding",null);bD=_.A([_.U({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],bD);
_.os()(bD,"ytd-account-section-list-renderer",function(){if(hjq===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);hjq=r}r=hjq;return r},{allowedProps:["data"],
mode:1});var prd;var pp=function(){var r=_.y.apply(this,arguments)||this;r.enableHandlesAccountMenuSwitcher=_.N("enable_handles_account_menu_switcher");return r};
_.t(pp,_.y);pp.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
pp.prototype.dataChanged=pp.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],pp.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],pp.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],pp.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.A([_.uA("#avatar"),_.B("design:type",Object)],pp.prototype,"avatar",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pp.prototype,"dataChanged",null);pp=_.A([_.U({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],pp);
_.os()(pp,"ytd-active-account-header-renderer",function(){if(prd===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);prd=r}r=prd;return r},{allowedProps:["data"],
mode:1});var n02;var dV6;var np=function(){return _.y.apply(this,arguments)||this};
_.t(np,_.y);np.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
np.prototype.onBackTap=function(){_.kA(this.hostElement,"yt-menu-back-tapped")};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],np.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],np.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],np.prototype,"data",void 0);np=_.A([_.U({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],np);
_.os()(np,"ytd-simple-menu-header-renderer",function(){if(dV6===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);dV6=r}r=dV6;return r},{allowedProps:["data"],
mode:2});var zjp;var dr=function(){return _.y.apply(this,arguments)||this};
_.t(dr,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],dr.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],dr.prototype,"data",void 0);dr=_.A([_.U({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],dr);
_.Q(dr,"ytd-comment-video-thumbnail-header-renderer",function(){if(zjp!==void 0)return zjp;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return zjp=r},{mode:1});var McY;var zv=function(){return _.y.apply(this,arguments)||this};
_.t(zv,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],zv.prototype,"data",void 0);zv=_.A([_.U({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],zv);
_.Q(zv,"ytd-abuse-type-selector-renderer",function(){if(McY!==void 0)return McY;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return McY=r},{mode:1});var g03;var Mn=function(){return _.y.apply(this,arguments)||this};
_.t(Mn,_.y);Mn.prototype.attached=function(){var r=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){r.additionalContextInput.focusTextInput()})};
Mn.prototype.handleAdditionalContextChanged=function(){var r=this;_.Pc(this,"ytd-report-channel-additional-context-update",function(){r.ytdReduxBehavior.dispatch(_.kI({type:"ADDITIONAL_CONTEXT_UPDATED",payload:r.additionalContext}))},300)};
Mn.prototype.updateAdditionalContextFromBinding=function(r){this.additionalContext=r.detail.value};
Mn.prototype.handleAdditionalContextChanged=Mn.prototype.handleAdditionalContextChanged;_.A([_.J(_.PH),_.B("design:type",Object)],Mn.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",String)],Mn.prototype,"additionalContext",void 0);_.A([_.K({selector:function(r){return r.reportChannelAbuse.additionalContext}}),
_.B("design:type",String)],Mn.prototype,"additionalContextRedux",void 0);_.A([_.K(),_.B("design:type",Object)],Mn.prototype,"data",void 0);_.A([_.uA("yt-text-input-form-field-renderer"),_.B("design:type",Object)],Mn.prototype,"additionalContextInput",void 0);_.A([_.Bt("additionalContext"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mn.prototype,"handleAdditionalContextChanged",null);
Mn=_.A([_.U({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],Mn);
_.Q(Mn,"ytd-report-channel-modal-additional-context-renderer",function(){if(g03!==void 0)return g03;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return g03=r},{mode:1});var aPU;var gr=function(){var r=_.y.apply(this,arguments)||this;r.nextButtonDisabled=null;r.submitEndpoint=null;r.navigationEndpoint=null;r.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return r};
_.t(gr,_.y);_.l=gr.prototype;_.l.computeNextButtonData=function(r,f,I){var C={};f&&(C.navigationEndpoint=f);I&&(C.serviceEndpoint=I);r&&r.buttonRenderer&&_.X0.extend(C,r.buttonRenderer);return C};
_.l.handleReportChannelModalDisableNextButtonAction=function(r){this.setNextButtonIsDisabled(r)};
_.l.handleReportFormEndpointUpdateAction=function(r){this.setNextButtonIsDisabled(!!r.disableSubmitButton);this.resetEndpointData();r.submitEndpoint?this.submitEndpoint=r.submitEndpoint:r.submitNavigationEndpoint&&(this.navigationEndpoint=r.submitNavigationEndpoint)};
_.l.handleSignalActionSubmitForm=function(){var r,f=Object.keys(((r=this.reportChannelAbuseForm)==null?void 0:r.selectedVideoIds)||{}),I;r=((I=this.reportChannelAbuseForm)==null?void 0:I.additionalContext)||"";var C;I=((C=this.reportChannelAbuseForm)==null?void 0:C.impersonatedChannelUrl)||"";var Y;if((Y=this.data)==null?0:Y.submitEndpoint){f={impersonated_channel_url:I,text:r,video_ids:f};var V;_.a().resolve(_.Gg).resolveCommand((V=this.data)==null?void 0:V.submitEndpoint,{form:Object.assign({},
f,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.l.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.l.onYtServiceRequestError=function(r){this.setNextButtonIsDisabled(!1);_.tx(this.hostElement,r.detail.error.message)};
_.l.setNextButtonIsDisabled=function(r){this.set("data.nextButton.buttonRenderer.isDisabled",r)};
_.l.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
gr.prototype.onYtServiceRequestError=gr.prototype.onYtServiceRequestError;gr.prototype.onYtServiceRequestCompleted=gr.prototype.onYtServiceRequestCompleted;_.A([_.K(),_.B("design:type",Object)],gr.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],gr.prototype,"nextButtonDisabled",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],gr.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],gr.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],gr.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],gr.prototype,"submitEndpoint",void 0);_.A([_.K(),_.B("design:type",Object)],gr.prototype,"navigationEndpoint",void 0);_.A([_.K({selector:function(r){return r.reportChannelAbuse}}),
_.B("design:type",Object)],gr.prototype,"reportChannelAbuseForm",void 0);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gr.prototype,"onYtServiceRequestCompleted",null);_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gr.prototype,"onYtServiceRequestError",null);
gr=_.A([_.U({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],gr);
_.Q(gr,"ytd-report-channel-modal-footer-renderer",function(){if(aPU!==void 0)return aPU;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return aPU=r},{mode:1});var XrY;var am=function(){var r=_.y.apply(this,arguments)||this;r.boundOnTapDismissButton=function(){r.closePopup()};
return r};
_.t(am,_.y);am.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
am.prototype.handleDataChanged=function(){_.KW(this.hostElement)};
am.prototype.closePopup=function(){_.Bj(this.hostElement,"yt-close-popup-action")};
am.prototype.handleDataChanged=am.prototype.handleDataChanged;_.A([_.K(),_.B("design:type",Object)],am.prototype,"boundOnTapDismissButton",void 0);_.A([_.K(),_.B("design:type",Object)],am.prototype,"data",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],am.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],am.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],am.prototype,"handleDataChanged",null);am=_.A([_.U({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],am);
_.Q(am,"ytd-report-channel-modal-header-renderer",function(){if(XrY!==void 0)return XrY;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return XrY=r},{mode:1});var ND6;var Xj=function(){var r=_.y.apply(this,arguments)||this;r.autoValidate=!1;r.invalid=!1;r.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return r};
_.t(Xj,_.y);_.l=Xj.prototype;_.l.attached=function(){var r=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){r.channelUrlInput.focusTextInput()})};
_.l.disableNextButton=function(r){_.Bj(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[r])};
_.l.handleImpersonatedChannelUrlChanged=function(){var r=this;this.disableNextButton(!0);this.invalid=!1;_.Pc(this,"ytd-report-channel-impersonated-channel-update",function(){var f=r.impersonatedChannelUrl.trim();r.ytdReduxBehavior.dispatch(_.kI({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:f}));var I;((I=r.data)==null?0:I.submitEndpoint)&&f&&_.a().resolve(_.Gg).resolveCommand(r.data.submitEndpoint,{form:{impersonated_channel_url:f,element:r.hostElement}})},500)};
_.l.handleModifyReportFormCommand=function(r){this.invalid=this.get("modifyReportFormCommand.action",r)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.l.updateInvalidFromBinding=function(r){this.invalid=r.detail.value};
_.l.updateImpersonatedChannelUrlFromBinding=function(r){this.impersonatedChannelUrl=r.detail.value};
Xj.prototype.handleImpersonatedChannelUrlChanged=Xj.prototype.handleImpersonatedChannelUrlChanged;_.A([_.J(_.PH),_.B("design:type",Object)],Xj.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Xj.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Xj.prototype,"autoValidate",void 0);_.A([_.K(),_.B("design:type",Object)],Xj.prototype,"invalid",void 0);
_.A([_.K(),_.B("design:type",String)],Xj.prototype,"impersonatedChannelUrl",void 0);_.A([_.K({selector:function(r){return r.reportChannelAbuse.impersonatedChannelUrl}}),
_.B("design:type",String)],Xj.prototype,"impersonatedChannelUrlRedux",void 0);_.A([_.K(),_.B("design:type",Object)],Xj.prototype,"data",void 0);_.A([_.uA("#text-input"),_.B("design:type",Object)],Xj.prototype,"channelUrlInput",void 0);_.A([_.Bt("impersonatedChannelUrl"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Xj.prototype,"handleImpersonatedChannelUrlChanged",null);
Xj=_.A([_.U({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Xj);
_.Q(Xj,"ytd-report-channel-modal-impersonation-renderer",function(){if(ND6!==void 0)return ND6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ND6=r},{mode:1});var $V1;var FJ7;var Nn=function(){return _.y.apply(this,arguments)||this};
_.t(Nn,_.y);Nn.prototype.onCheckboxToggled=function(r){var f,I,C=(I=_.F((f=this.data)==null?void 0:f.video,_.e8))==null?void 0:I.videoId;C&&this.ytdReduxBehavior.dispatch(r.target.checked?_.kI({type:"VIDEO_SELECTED",payload:C}):_.kI({type:"VIDEO_UNSELECTED",payload:C}))};
Nn.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.OC.Object.defineProperties(Nn.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var r,f=(r=this.data)==null?void 0:r.video;if(!f)return{};var I;r=(I=_.F(f,_.e8))==null?void 0:I.navigationEndpoint;if(!r)return f;_.F(r==null?void 0:r.commandMetadata,_.oo)&&(_.F(r.commandMetadata,_.oo).ignoreNavigation=!0);return f}}});
_.A([_.K({reflectToAttribute:!0,selector:function(r,f){return f in r.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.B("design:type",Boolean)],Nn.prototype,"checked",void 0);_.A([_.K(),_.B("design:type",Object)],Nn.prototype,"data",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Nn.prototype,"video",null);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Nn.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.PH),_.B("design:type",Object)],Nn.prototype,"ytdReduxBehavior",void 0);Nn=_.A([_.U({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],Nn);
_.Q(Nn,"ytd-selectable-video-renderer",function(){if(FJ7!==void 0)return FJ7;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return FJ7=r},{mode:1});var Fj=function(){var r=_.y.apply(this,arguments)||this;r.monitorScroll=!0;return r};
_.t(Fj,_.y);Fj.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Fj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Fj.prototype,"data",void 0);Fj=_.A([_.U({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Fj);
_.Q(Fj,"ytd-selectable-video-list-renderer",function(){if($V1!==void 0)return $V1;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return $V1=r},{mode:1});var Pa2;_.gW("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Pi=function(){return _.y.apply(this,arguments)||this};
_.t(Pi,_.y);Pi.prototype.onChange=function(r){if(r=_.jl(r).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.N("kevlar_command_handler_migration_killswitch"))_.rX(this.hostElement,r,this.hostElement);else{r=_.E(r);for(var f=r.next();!f.done;f=r.next())this.ytComponentBehavior.resolveCommand(f.value)}};
Pi.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Pi.prototype.updateDataToggledFromBinding=function(r){this.set("data.toggled",r.detail.value)};
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Pi.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Pi.prototype,"data",void 0);_.A([_.K({computed:"isEnabled(data)"}),_.B("design:type",Boolean)],Pi.prototype,"enabled",void 0);Pi=_.A([_.U({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Pi);
_.Q(Pi,"ytd-toggle-item-renderer",function(){if(Pa2!==void 0)return Pa2;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Pa2=r},{mode:1});var tcU;var TDp;var cY6;var tS=function(){var r=_.y.apply(this,arguments)||this;r.setVisible=!1;r.boundOnSubmitButtonClick=function(){r.onSubmitButtonClick()};
r.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return r};
_.t(tS,_.y);tS.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}}}}}};
tS.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
tS.prototype.onSubmitButtonClick=function(){var r;((r=this.data)==null?0:r.submitEndpoint)&&!_.N("enable_ytc_refunds_submit_form_signal_action")&&_.Do(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
tS.prototype.handleSignalActionSubmitForm=function(){var r;((r=this.data)==null?0:r.submitEndpoint)&&_.Do(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.OC.Object.defineProperties(tS.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.hiddenByDefault)&&!this.setVisible}}});
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],tS.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],tS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],tS.prototype,"setVisible",void 0);_.A([_.K(),_.B("design:type",Object)],tS.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Object)],tS.prototype,"surveyFeedbackData",void 0);_.A([_.K(),_.B("design:type",Object)],tS.prototype,"boundOnSubmitButtonClick",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("data","setVisible"),_.B("design:type",Object),_.B("design:paramtypes",[])],tS.prototype,"visibilityHidden",null);tS=_.A([_.zX({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],tS);
_.Q(tS,"yt-flow-footer-renderer",function(){if(cY6===void 0){var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;TDp===void 0&&(TDp=document.createElement("template"));var C=TDp;I.call(f,C.content.cloneNode(!0),r.content.firstChild);cY6=r}r=cY6;return r},{mode:2});var Tv=function(){return _.y.apply(this,arguments)||this};
_.t(Tv,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Tv.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],Tv.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Tv.prototype,"data",void 0);_.A([_.K({selector:function(r){return r.ypc.surveyFeedbackData}}),
_.B("design:type",Object)],Tv.prototype,"surveyFeedbackData",void 0);Tv=_.A([_.U({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Tv);
_.Q(Tv,"ytd-flow-footer-renderer",function(){if(tcU!==void 0)return tcU;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return tcU=r},{mode:_.QQ("kevlar_poly_si_batch_j025")?1:2});var WJ6;var LJ1;var ci=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return r};
_.t(ci,_.y);_.l=ci.prototype;_.l.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.aC("multiPageMenuSectionItems")}}};
_.l.handleHideEnclosingAction_=function(r){if(this.data&&this.data.items)for(var f=0;f<this.data.items.length;f++){var I=this.data.items[f].notificationRenderer;if(I&&I.notificationId==r.hideEnclosingAction.notificationId){this.splice("data.items",f,1);_.Bj(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&&_.QB(this.hostElement,"hidden",!0)};
_.l.updateMenu_=function(r){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&r&&!r.doNotRefreshInbox){r=this.data.continuations;for(var f=0;f<r.length;f++)if(r[f].invalidationContinuationData){var I=void 0;var C=(I=r[f].invalidationContinuationData)==null?void 0:I.continuation;break}r=_.X0.clone(this.data.continuationUpdateEndpoint||null);r.continuation=C;r.click_tracking_params=this.data.trackingParams;_.Do(this.hostElement,[r])}};
_.l.onServiceRequestCompleted_=function(r,f){if(this.data&&(r=f.actions)){f=0;for(var I=r.length;f<I;f++){var C=_.F(r[f],_.H9D);if(!C)break;if((C.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||C.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&C.continuationItems&&this.data.items){var Y=this.data.items.length-1;this.data.items[Y].continuationItemRenderer&&this.splice.apply(this,["data.items",Y,1].concat(C.continuationItems))}}}};
ci.prototype.onServiceRequestCompleted_=ci.prototype.onServiceRequestCompleted_;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ci.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],ci.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ci.prototype,"data",void 0);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],ci.prototype,"onServiceRequestCompleted_",null);ci=_.A([_.zX({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],ci);
_.os()(ci,"yt-multi-page-menu-section-renderer",function(){if(LJ1===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;WJ6===void 0&&(WJ6=document.createElement("template"));var C=WJ6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);LJ1=r}r=LJ1;return r},{allowedProps:["data"],
mode:2});var mV6;var ej7;var Wi=function(){return _.y.apply(this,arguments)||this};
_.t(Wi,_.y);Wi.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.OC.Object.defineProperties(Wi.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.progress)==null?0:this.data.progress*100}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Wi.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Wi.prototype,"data",void 0);_.A([_.R("data.progress"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Wi.prototype,"showProgressBar",null);
_.A([_.R("data.progress"),_.B("design:type",Number),_.B("design:paramtypes",[])],Wi.prototype,"progress",null);Wi=_.A([_.zX({is:"yt-flow-header-renderer",disableElementRegistration:!0})],Wi);
_.Q(Wi,"yt-flow-header-renderer",function(){if(ej7===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;mV6===void 0&&(mV6=document.createElement("template"));var C=mV6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);ej7=r}r=ej7;return r},{mode:2});var JY6;var j9Y;var Lp=function(){return _.y.apply(this,arguments)||this};
_.t(Lp,_.y);Lp.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Lp.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Lp.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Lp.prototype,"data",void 0);Lp=_.A([_.zX({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],Lp);
_.Q(Lp,"yt-post-confirmation-flow-step-renderer",function(){if(j9Y===void 0){var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;JY6===void 0&&(JY6=document.createElement("template"));var C=JY6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);j9Y=r}r=j9Y;return r},{mode:2});var H_d;var i_6;var mH=function(){return _.y.apply(this,arguments)||this};
_.t(mH,_.y);
mH.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"}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],mH.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],mH.prototype,"data",void 0);mH=_.A([_.zX({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],mH);
_.Q(mH,"yt-refund-confirmation-flow-step-renderer",function(){if(i_6===void 0){var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;H_d===void 0&&(H_d=document.createElement("template"));var C=H_d;I.call(f,C.content.cloneNode(!0),r.content.firstChild);i_6=r}r=i_6;return r},{mode:2});_.GL(gxq);_.GL(axV);var X16=_.zk({avatarViewModel:_.$U});_.GL(NG7);var $jB=_.zk({commentInteractionViewModel:axV,sharedSubscriptionViewModel:NG7,buttonViewModel:_.LF});_.GL(FQ6);_.GL(PX7);_.GL(toB);_.GL(TG3);_.GL(cQ3);var WQp=_.zk({profileIdentityInfoViewModel:_.US3,profileInfoViewModel:cQ3});_.GL(LQi);_.Z5(LQi,"yt-profile-card-view-model",{propNames:["data"]});var eA=function(){var r=_.y.apply(this,arguments)||this;r.enableFocusFix=_.N("music_web_enable_focus_on_setting_menu_fix")&&_.mO("IS_MOBILE_WEB",!1);r.covered=!1;r.hideMenu=!1;r.isCommentNotificationOnProfileCard=!1;r.scrolledByTouch=!1;r.disableBackdropFilter=_.N("web_disable_backdrop_filter");r.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return r};
_.t(eA,_.y);_.l=eA.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 r=this;this.JSC$17859_containerElement.addEventListener("scroll",function(){r.ytRendererBehavior.markDirty()})};
_.l.attributeChanged=function(r,f){r==="menu-style"&&_.Bj(this.hostElement,"yt-multi-page-menu-closed-action",[f])};
_.l.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.GF(this,this.focusOnStampFinished))};
_.l.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.GF(this,this.focusOnStampFinished))};
_.l.reset=function(){this.closeJobId&&(_.F_.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.l.focusOnStampFinished=function(r){r.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.GF(this,this.focusOnStampFinished)),this.doFocus())};
_.l.doFocus=function(){var r=_.ZF8(this.sectionsElement);r.length&&r[0].focus()};
_.l.computeMenuStyle=function(r){return r?r.toLowerCase().replace(/_/g,"-"):""};
_.l.computeIsCommentNotificationOnProfileCard=function(r){return _.N("enable_profile_cards_on_comments")&&r.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.l.computeHideMenu=function(r,f){return r||!(!f||!f.showLoadingSpinner)};
_.l.onPopupClosed=function(){this.isPopUpOpen=!1;_.Bj(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.l.onPopupOpened=function(r,f){this.isPopUpOpen=!0;f.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.kA(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.kI({type:"CHANNEL_REPORT_RESET"})))};
_.l.onYtNavigate=function(r,f){this.shouldCloseOnNavigateEvent(f.endpoint)&&_.Bj(this.hostElement,"yt-close-all-popups-action")};
_.l.handleEndpoint=function(r){r=_.F(r,_.tL);!this.isCommentNotificationOnProfileCard&&r&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17859_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.l.handleActions=function(r){for(var f=0,I=r.length;f<I;f++){var C=_.F(r[f],QE7);C&&this.handleGetMultiPageMenuAction(C);(C=_.F(r[f],_.H9D))&&this.handleAppendContinuationItemsAction(C)}};
_.l.onServiceRequestSentOrCompleted=function(r,f){r.detail&&r.detail.endpoint&&this.handleEndpoint(r.detail.endpoint);f.actions&&this.handleActions(f.actions)};
_.l.handleGetMultiPageMenuAction=function(r){var f=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.e(this.submenuElement).appendChild(f);(r=r.menu.multiPageMenuRenderer)&&this.logSubmenu(r);f.data=r;f.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.l.handleAppendContinuationItemsAction=function(r){if(this.data&&r.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&r.continuationItems&&this.data.sections){var f=this.data.sections.length-1;this.data.sections[f].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),f--);if(this.data.sections[f].multiPageMenuNotificationSectionRenderer&&r.continuationItems){r=_.E(r==null?void 0:r.continuationItems);for(var I=r.next();!I.done;I=r.next())if(I=I.value,_.F(I,M87)){var C=
void 0,Y=void 0,V=void 0,S=void 0,h=void 0;((C=this)==null?0:(Y=C.data)==null?0:(V=Y.sections)==null?0:(S=V[f])==null?0:(h=S.multiPageMenuNotificationSectionRenderer)==null?0:h.items)&&this.push("data.sections."+f+".multiPageMenuNotificationSectionRenderer.items",I)}else if(_.F(I,_.X73)||_.F(I,_.Ip))this.push("data.sections",I),f++}}};
_.l.logSubmenu=function(r){if(!_.N("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var f=this.ytRendererBehavior.getScreenLayer(),I=_.t1(f),C=_.Pj(f);if((r=r.trackingParams)&&I&&C){var Y=_.VH(r);_.N("combine_ve_grafts")?_.IB().graftServerVe(r,C,f):_.mw(I,C,Y)}}};
_.l.emptySubmenuContainer=function(){for(var r=_.e(this.submenuElement);r.firstChild;)r.removeChild(r.firstChild)};
_.l.onMenuBackTap=function(r){_.kA(this.hostElement,"yt-submenu-closed");r.stopPropagation()};
_.l.onSubmenuClosed=function(r){_.jl(r)!==this.hostElement&&(this.covered=!1,_.kA(this.hostElement,"yt-refit"),r.stopPropagation())};
_.l.onRetrieveLocation=function(r,f){f.hasComments&&(f.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),r.stopPropagation())};
_.l.shouldCloseOnNavigateEvent=function(r){if(!r)return!0;if(_.F(r,_.MrT)||_.F(r,_.g33)||_.F(r,_.zmB)||_.F(r,_.HR))return!1;var f;return((f=_.F(r==null?void 0:r.commandMetadata,_.oo))==null?0:f.ignoreNavigation)?!1:!0};
_.l.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.l.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.l.refitAfterRender=function(){var r=this;_.UC(this,function(){_.kA(r.hostElement,"yt-refit")})};
eA.prototype.refitAfterRender=eA.prototype.refitAfterRender;eA.prototype.onRetrieveLocation=eA.prototype.onRetrieveLocation;eA.prototype.onSubmenuClosed=eA.prototype.onSubmenuClosed;eA.prototype.onMenuBackTap=eA.prototype.onMenuBackTap;eA.prototype.onServiceRequestSentOrCompleted=eA.prototype.onServiceRequestSentOrCompleted;eA.prototype.onYtNavigate=eA.prototype.onYtNavigate;eA.prototype.onPopupOpened=eA.prototype.onPopupOpened;eA.prototype.onPopupClosed=eA.prototype.onPopupClosed;
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],eA.prototype,"ytEventForwardingBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],eA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],eA.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],eA.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Object)],eA.prototype,"enableFocusFix",void 0);_.A([_.K(),_.B("design:type",Object)],eA.prototype,"covered",void 0);_.A([_.K({computed:"computeHideMenu(covered, data)"}),_.B("design:type",Object)],eA.prototype,"hideMenu",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.B("design:type",String)],eA.prototype,"menuStyle",void 0);
_.A([_.K({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.B("design:type",Object)],eA.prototype,"isCommentNotificationOnProfileCard",void 0);_.A([_.K(),_.B("design:type",Boolean)],eA.prototype,"isPopUpOpen",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],eA.prototype,"scrolledByTouch",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],eA.prototype,"disableBackdropFilter",void 0);
_.A([_.uA("#sections"),_.B("design:type",HTMLElement)],eA.prototype,"sectionsElement",void 0);_.A([_.uA("#spinner"),_.B("design:type",HTMLElement)],eA.prototype,"spinnerElement",void 0);_.A([_.uA("#header"),_.B("design:type",HTMLElement)],eA.prototype,"headerElement",void 0);_.A([_.uA("#container"),_.B("design:type",HTMLElement)],eA.prototype,"JSC$17859_containerElement",void 0);_.A([_.uA("#submenu"),_.B("design:type",HTMLElement)],eA.prototype,"submenuElement",void 0);
_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eA.prototype,"onPopupClosed",null);_.A([_.kO("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],eA.prototype,"onPopupOpened",null);_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],eA.prototype,"onYtNavigate",null);
_.A([_.kO("yt-service-request-completed"),_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],eA.prototype,"onServiceRequestSentOrCompleted",null);_.A([_.kO("yt-menu-back-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],eA.prototype,"onMenuBackTap",null);
_.A([_.kO("yt-submenu-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],eA.prototype,"onSubmenuClosed",null);_.A([_.kO("yt-retrieve-location"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],eA.prototype,"onRetrieveLocation",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eA.prototype,"refitAfterRender",null);
eA=_.A([_.U({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],eA);
_.Q(eA,"ytd-multi-page-menu-renderer",function(){if(n02!==void 0)return n02;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return n02=r},{mode:1});var Rjd;var JS=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return r};
_.t(JS,_.y);_.l=JS.prototype;_.l.created=function(){this.showTooltips=!0};
_.l.computeAccessibility_=function(r){return this.get("accessibility.accessibilityData",r)||null};
_.l.onTap=function(){var r=_.qy(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(r&&r.length===1&&r[0])_.Bj(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var f;if((f=this.data)==null?0:f.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var I;((I=this.data)==null?0:I.menuRequest)&&_.Do(this.hostElement,[this.data.menuRequest])}}};
_.l.handleTopbarMenuClosedAction=function(r){var f,I;(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(r)===((f=this.data)==null?void 0:(I=f.icon)==null?void 0:I.iconType)&&this.toggleIconState(!1)};
_.l.toggleIconState=function(r){_.N("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=r)};
_.l.handleUpdateTopbarAvatarAction=function(r){var f;r=(f=_.F(r,v7d))==null?void 0:f.avatarUrl;var I,C;f=(I=this.data)==null?void 0:(C=I.avatar)==null?void 0:C.thumbnails;r&&f&&(I={thumbnails:[Object.assign({},f[0],{url:r})]},this.set("data.avatar",I))};
_.OC.Object.defineProperties(JS.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.e(this.hostElement).querySelector("#button")}}});
JS.prototype.onTap=JS.prototype.onTap;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],JS.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],JS.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.RO),_.B("design:type",Object)],JS.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.J(_.Le3.YtButtonBehavior),_.B("design:type",Object)],JS.prototype,"ytButtonBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],JS.prototype,"data",void 0);
_.A([_.uA("yt-icon-button#button"),_.B("design:type",Object)],JS.prototype,"iconButton",void 0);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JS.prototype,"onTap",null);JS=_.A([_.U({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],JS);
_.Q(JS,"ytd-topbar-menu-button-renderer",function(){if(Rjd!==void 0)return Rjd;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Rjd=r},{mode:1});var v0p;var jA=function(){return _.y.apply(this,arguments)||this};
_.t(jA,_.y);jA.prototype.getSelected=function(){return this.reasons.selected};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],jA.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],jA.prototype,"data",void 0);_.A([_.uA("#reasons"),_.B("design:type",Object)],jA.prototype,"reasons",void 0);jA=_.A([_.U({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],jA);
_.Q(jA,"ytd-ad-feedback-content",function(){if(v0p!==void 0)return v0p;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return v0p=r},{mode:1});var KJ2;var Hi=function(){return _.y.apply(this,arguments)||this};
_.t(Hi,_.y);_.l=Hi.prototype;_.l.onPopupOpened=function(){_.Bj(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.l.computeConfirmButton=function(r){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:r.confirmLabel}};
_.l.computeCancelButton=function(r){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:r.cancelLabel}};
_.l.onConfirmTap=function(){var r=this.content.getSelected();r!==void 0&&(r=this.data.reasons[r].endpoint)&&(_.a().resolve(_.Gg).resolveCommand(r,{form:{element:this.hostElement}}),_.Bj(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.l.sendFeedbackSubmitToastAction=function(){var r;(r=this.data)!=null&&r.completionMessage&&_.Bj(this.hostElement,"yt-open-popup-action",[_.Ur(this.data.completionMessage),this])};
_.l.onCancelTap=function(){_.Bj(this.hostElement,"yt-close-popup-action")};
Hi.prototype.onPopupOpened=Hi.prototype.onPopupOpened;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Hi.prototype,"data",void 0);_.A([_.uA("#content"),_.B("design:type",Object)],Hi.prototype,"content",void 0);_.A([_.kO("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Hi.prototype,"onPopupOpened",null);
Hi=_.A([_.U({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],Hi);
_.Q(Hi,"ytd-ad-feedback-renderer",function(){if(KJ2!==void 0)return KJ2;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return KJ2=r},{mode:1});var yYp;var iD=function(){return _.y.apply(this,arguments)||this};
_.t(iD,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],iD.prototype,"data",void 0);iD=_.A([_.U({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],iD);
_.Q(iD,"ytd-ad-info-dialog-content",function(){if(yYp!==void 0)return yYp;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return yYp=r},{mode:1});var UVY;var Rm=function(){return _.y.apply(this,arguments)||this};
_.t(Rm,_.y);Rm.prototype.computeConfirmButton=function(r){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:r.confirmLabel}};
Rm.prototype.onConfirmTap=function(){_.Bj(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
Rm.prototype.computeShouldShowTitle=function(){var r;return!((r=this.data)==null||!r.title)};
Rm.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.a().resolve(_.Gg).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
Rm.prototype.onPopupClosed=Rm.prototype.onPopupClosed;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Rm.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Rm.prototype,"data",void 0);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Rm.prototype,"onPopupClosed",null);Rm=_.A([_.U({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],Rm);
_.Q(Rm,"ytd-ad-info-dialog-renderer",function(){if(UVY!==void 0)return UVY;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return UVY=r},{mode:1});var s9Y;var vi=function(){var r=_.y.apply(this,arguments)||this;r.actionButtonClass="action-button";r.dismissButtonId="dismiss-button";r.dialogDismiss=!0;return r};
_.t(vi,_.y);_.l=vi.prototype;_.l.computeInPlayer=function(r){return(r==null?void 0:r.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.l.computedLogo=function(){var r,f;return this.isDarkTheme()?(r=this.data)==null?void 0:r.logoDark:(f=this.data)==null?void 0:f.logo};
_.l.computedHeaderImage=function(){var r,f;return this.isDarkTheme()?(r=this.data)==null?void 0:r.headerImageDark:(f=this.data)==null?void 0:f.headerImage};
_.l.computeLogoIconId=function(){var r,f,I,C=(r=this.computedLogo())==null?void 0:(f=r.sources)==null?void 0:(I=f[0])==null?void 0:I.height;return C&&C%31===0?"logo-icon-with-padding":"logo-icon"};
_.l.computeLogoIconHeight=function(){var r,f,I,C=(r=this.computedLogo())==null?void 0:(f=r.sources)==null?void 0:(I=f[0])==null?void 0:I.height;return C&&C%31===0?"31":"24"};
_.l.onPopupClosed=function(){_.a().resolve(_.kR).dispose()};
_.l.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.l.onShow=function(){this.inPlayer&&_.Ib(6)};
_.l.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var r=0;r<this.data.impressionEndpoints.length;r++){var f=_.F(this.data.impressionEndpoints[r],_.gF);f&&this.ytComponentBehavior.resolveCommand(f)}};
_.l.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.Bj(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.OC.Object.defineProperties(vi.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var r,f;return!((r=this.data)==null||!r.headerImageDark)&&!((f=this.data)==null||!f.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.secondaryButton)}}});
vi.prototype.onPopupClosed=vi.prototype.onPopupClosed;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],vi.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.WD.YtVisibilityBehavior),_.B("design:type",Object)],vi.prototype,"ytVisibilityBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],vi.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Object)],vi.prototype,"actionButtonClass",void 0);_.A([_.K(),_.B("design:type",Object)],vi.prototype,"dismissButtonId",void 0);_.A([_.K(),_.B("design:type",Object)],vi.prototype,"dialogDismiss",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],vi.prototype,"hasHeaderImage",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],vi.prototype,"hasPremiumButton",null);
_.A([_.K({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.B("design:type",Boolean)],vi.prototype,"inPlayer",void 0);_.A([_.uA("#dismiss-button"),_.B("design:type",HTMLElement)],vi.prototype,"dismissButton",void 0);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],vi.prototype,"onPopupClosed",null);vi=_.A([_.U({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],vi);
_.Q(vi,"ytd-enforcement-message-view-model",function(){if(s9Y!==void 0)return s9Y;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return s9Y=r},{mode:1});var O_s;var o0U;var Kp=function(){var r=_.y.apply(this,arguments)||this;r.TEST_ONLY={immediateValidation:function(){r.immediateValidation()},
onValidationResponse:function(f){r.onValidationResponse(f)},
onGenerateHandleFromNameResponse:function(f){r.onGenerateHandleFromNameResponse(f)}};
return r};
_.t(Kp,_.y);_.l=Kp.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(r){this.handleDir=this.getHandleDir(r);this.handleInput.value=r;this.validationState={status:"PENDING"};this.immediateValidation()};
_.l.getHandleDir=function(r){var f=r===""&&!1;return(f=_.yV8.test.call(_.yV8,r))?"rtl":"ltr"};
_.l.onDataChanged=function(){var r,f;this.handleDir=this.getHandleDir((f=(r=this.data)==null?void 0:r.handle)!=null?f:"");var I;this.validationState=((I=this.data)==null?0:I.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var C;((C=this.data)==null?0:C.validateOnInit)&&this.immediateValidation()};
_.l.stopPropagation=function(r){r.stopPropagation()};
_.l.onInput=function(){var r;this.handleDir=this.getHandleDir((r=this.handleInput.value)!=null?r:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.l.onFocusout=function(r){this.handleInput.contains(r.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.l.delayedValidation=function(){var r,f;this.debouncedValidation((f=(r=this.data)==null?void 0:r.validationDelayMs)!=null?f:1E3)};
_.l.immediateValidation=function(){this.debouncedValidation(0)};
_.l.debouncedValidation=function(r){var f=this;_.Pc(this,"debouncedValidation",function(){var I,C=f.staticValidation((I=f.handleInput.value)!=null?I:"");if(C!==void 0)f.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:C};else{var Y;if((Y=f.data)!=null&&Y.validateChannelHandleCommand){f.validationState={status:"LOADING"};var V;f.ytComponentBehavior.resolveCommand(f.data.validateChannelHandleCommand,{form:{handle:(V=f.handleInput.value)!=null?V:""},commandController:{onSuccess:function(S,
h){f.onValidationResponse(h)},
onServerError:function(S,h){f.onValidationServerError(h)}}})}else f.handleUnexpectedValidationError(new _.nf("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",f.data))}},r)};
_.l.staticValidation=function(r){var f;if(((f=this.data)==null?void 0:f.channelHandleStaticValidationParams)!==void 0){f=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(r)&&f.validValueRegexpErrorMessage!==void 0)return f.validValueRegexpErrorMessage;if(f.minLength!==void 0&&r.length<f.minLength&&f.minLengthErrorMessage!==void 0)return f.minLengthErrorMessage;if(f.maxLength!==void 0&&r.length>f.maxLength&&f.maxLengthErrorMessage!==void 0)return f.maxLengthErrorMessage}};
_.l.onValidationResponse=function(r){var f=_.F(r.result,KiV);f===void 0?this.handleUnexpectedValidationError(new _.nf("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",r)):this.handleValidationResultRenderer(f)};
_.l.onValidationServerError=function(r){this.handleUnexpectedValidationError(new _.nf("ValidateChannelHandle request failed.",r))};
_.l.handleValidationResultRenderer=function(r){if(r.handle===void 0)this.handleUnexpectedValidationError(new _.nf("ChannelHandleValidationResultRenderer does not contain handle.",r));else if(r.handle===this.handleInput.value)switch(r.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:r.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:r.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.nf("Unrecognized ChannelHandleValidationResult",r));break;default:_.Sd(r.result)}};
_.l.handleUnexpectedValidationError=function(r){var f;this.validationState={status:"UNKNOWN",handle:(f=this.handleInput.value)!=null?f:""};_.t7(r)};
_.l.stopEventPropagation=function(r){r.stopPropagation()};
_.l.updateHandleOnChannelNameInputChange=function(r){if(!this.wasEdited){var f,I;this.debouncedGenerateHandleFromName(r,(I=(f=this.data)==null?void 0:f.validationDelayMs)!=null?I:1E3)}};
_.l.debouncedGenerateHandleFromName=function(r,f){var I=this;_.Pc(this,"debouncedGenerateHandleFromName",function(){var C;(C=I.data)!=null&&C.validateChannelHandleCommand?I.ytComponentBehavior.resolveCommand(I.data.validateChannelHandleCommand,{form:{name:r},commandController:{onSuccess:function(Y,V){I.onGenerateHandleFromNameResponse(V)},
onServerError:function(Y,V){_.t7(new _.nf("Error calling GenerateHandleFromName",V))}}}):_.t7(new _.nf("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",I.data))},f)};
_.l.onGenerateHandleFromNameResponse=function(r){this.wasEdited||((r=_.F(r.result,yPV))?this.setHandleInputValue(r.handle):_.t7(new _.nf("Invalid results when generate handle from name")))};
_.OC.Object.defineProperties(Kp.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var r;if(r=this.validationState)r=this.validationState,r=r.status==="OK"||r.status==="UNKNOWN";if(r)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var r;if(((r=this.validationState)==null?void 0:r.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 r,f=(r=this.channelHandleEntity)==null?void 0:r.handleEdit;this.handleDir=this.getHandleDir(f!=null?f:"");return f}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var r,f;if(((r=this.data)==null?void 0:(f=r.channelHandleStaticValidationParams)==null?void 0:f.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Kp.prototype.stopEventPropagation=Kp.prototype.stopEventPropagation;Kp.prototype.onDataChanged=Kp.prototype.onDataChanged;Kp.prototype.applyHandleEdit=Kp.prototype.applyHandleEdit;Kp.prototype.onValueChanged=Kp.prototype.onValueChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Kp.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],Kp.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Kp.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Boolean)],Kp.prototype,"wasEdited",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],Kp.prototype,"handleDir",void 0);_.A([_.uA("#handle-input"),_.B("design:type",Object)],Kp.prototype,"handleInput",void 0);_.A([_.K(),_.R("validationState"),_.B("design:type",Object),_.B("design:paramtypes",[])],Kp.prototype,"value",null);
_.A([_.Bt("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kp.prototype,"onValueChanged",null);_.A([_.R("validationState"),_.B("design:type",Object),_.B("design:paramtypes",[])],Kp.prototype,"errorIndicator",null);_.A([_.K({reflectToAttribute:!0}),_.R("errorIndicator"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Kp.prototype,"borderErrorIndicator",null);
_.A([_.K({selectorArgs:["data.channelHandleEntityKey"],selector:function(r,f){return _.f2(r.entities,"channelHandle",f)}}),
_.B("design:type",Object)],Kp.prototype,"channelHandleEntity",void 0);_.A([_.R("channelHandleEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Kp.prototype,"handleEdit",null);_.A([_.Bt("handleEdit"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kp.prototype,"applyHandleEdit",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kp.prototype,"onDataChanged",null);
_.A([_.R("data.channelHandleStaticValidationParams.validValueRegexp"),_.B("design:type",Object),_.B("design:paramtypes",[])],Kp.prototype,"validValueRegexp",null);_.A([_.kO("yt-service-request-sent"),_.kO("yt-service-request-completed"),_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Kp.prototype,"stopEventPropagation",null);Kp=_.A([_.U({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Kp);
_.Q(Kp,"ytd-channel-handle-input-renderer",function(){if(o0U!==void 0)return o0U;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return o0U=r},{mode:_.QQ("kevlar_poly_si_batch_j025")?1:2});var yi=function(){var r=_.y.apply(this,arguments)||this;r.data=null;r.errorMessage=null;r.isLoading=!0;r.hideContainer=!1;r.enableNewChannelCreationOnIdForAll=_.N("enable_new_channel_creation_for_id4all");r.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"};r.testOnly={setErrorMessage:function(f){r.resetErrorState();
r.setErrorState(f)}};
return r};
_.t(yi,_.y);_.l=yi.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 r;((r=this.zeroStepErrorMessageEntity)==null?0:r.value)&&this.set("errorMessage",_.iX(this.zeroStepErrorMessageEntity.value))};
_.l.onCreateTap=function(){var r=this;if(this.data&&this.data.channelCreationEndpoint){var f,I;if(!((f=this.data.createChannelButton)==null?0:(I=f.buttonRenderer)==null?0:I.isDisabled)){var C;if((C=this.nameInput)!=null&&C.value){this.setLoadingState();var Y,V;f=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(Y=this.handleInput)==null?void 0:Y.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((V=this.handleInput)==null?void 0:V.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:f,commandController:{onSuccess:function(S,h){r.onChannelCreationEndpointSuccess(h);r.obakeImageSource&&_.NW("channelCreatedWithObakeImage",{imageSourceType:r.obakeImageSource})},
onServerError:function(){r.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.l.endpointRequiresServiceRequestAction=function(r){return!!_.F(r,_.Wa)||!!_.F(r,v7d)};
_.l.isNavigateAction=function(r){var f;return!!_.F(r,_.jT)||!!_.F((f=_.F(r,O7p))==null?void 0:f.command,_.jT)};
_.l.isPlaylistAction=function(r){return!!_.F(r,_.TK)||!!_.F(r,_.JL)};
_.l.onChannelCreationEndpointSuccess=function(r){if(r.createChannelError){var f;this.setErrorState((f=r.createChannelError)==null?void 0:f.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.N("enable_secondary_channel_creation_form")&&r.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(r.navigationEndpoint);if(r.actions){f=_.E(r.actions);for(var I=f.next();!I.done;I=f.next())if(I=I.value,this.endpointRequiresServiceRequestAction(I)&&this.ytComponentBehavior.resolveCommand(I),
this.isNavigateAction(I)){var C=void 0;I=_.F((C=_.F(I,O7p))==null?void 0:C.command,_.jT);C=void 0;this.isPlaylistAction((C=I)==null?void 0:C.endpoint)&&(_.Bj(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),C=void 0,this.ytComponentBehavior.resolveCommand((C=I)==null?void 0:C.endpoint))}}r.actions&&r.actions.some(function(Y){var V;return _.F(Y,_.jT)||_.F((V=_.F(Y,O7p))==null?void 0:V.command,_.jT)})||_.Bj(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 r,f,I;if(!((r=this.data)==null?0:(f=r.cancelButton)==null?0:(I=f.buttonRenderer)==null?0:I.isDisabled)){var C,Y,V;r=(C=this.data)==null?void 0:(Y=C.cancelButton)==null?void 0:(V=Y.buttonRenderer)==null?void 0:V.command;if(!r||!_.F(r,_.i0B)){var S;this.nameInput&&((S=this.data)==null?0:S.name)&&(this.nameInput.value=this.data.name);var h;this.handleInput&&((h=this.data)==null?0:h.channelHandleInput)&&(this.handleInput.data=_.F(this.data.channelHandleInput,Us6));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 r,f,I;((r=this.data)==null?0:(f=r.clearProfilePhotoButton)==null?0:(I=f.buttonRenderer)==null?0:I.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.l.onEditAvatarTap=function(){var r,f,I;((r=this.data)==null?0:(f=r.editAvatarButton)==null?0:(I=f.buttonRenderer)==null?0:I.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 r;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((r=this.data)==null?0:r.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.l.setErrorState=function(r){this.resetErrorState();if(r)this.set("errorMessage",r);else{var f;if((f=this.zeroStepErrorMessageEntity)==null?0:f.value)this.set("errorMessage",_.iX(this.zeroStepErrorMessageEntity.value));else{var I;((I=this.data)==null?0:I.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.l.fetchImageBlobWithAlr=function(r,f){f=f===void 0?5:f;var I=this,C,Y,V,S,h;return _.x(function(w){switch(w.nextAddress){case 1:return _.b(w,fetch(r,{method:"GET",mode:"cors"}),2);case 2:C=w.yieldResult;if(C.ok){w.jumpTo(3);break}if(f===0)throw Error();Y=I.addJitter(Math.pow(2,5-f));return _.b(w,new Promise(function(n){setTimeout(n,Y*1E3)}),4);
case 4:return w.return(I.fetchImageBlobWithAlr(r,f-1));case 3:if(!C.headers.get("content-type").split(";").some(function(n){return n.trim()==="text/plain"})){w.jumpTo(5);
break}V=I;S=V.fetchImageBlobWithAlr;return _.b(w,C.text(),6);case 6:return w.return(S.call(V,w.yieldResult,f-1));case 5:return _.b(w,C.blob(),7);case 7:return h=w.yieldResult,w.return(h)}})};
_.l.addJitter=function(r){var f=r*.3*Math.random();Math.random()>.5&&(f*=-1);return r+f};
_.l.openProfilePicturePicker=function(){var r=this,f,I,C,Y,V;return _.x(function(S){if(S.nextAddress==1){f=r.data.scottyUploadUrl;if(!f)return S.return();I=document.documentElement.hasAttribute("dark");C=document.body.style.colorScheme;I&&(document.body.style.colorScheme="dark");Y=QJ7(Asd(opd(RQd(I?"dark":"light")),function(h){var w,n,d,z,g;return _.x(function(X){if(X.nextAddress==1)return w=_.vY(So6(new aq(h.photoUrl,!1)).build(),"alr","yes"),r.obakeImageSource=r.pictureChangeSourceToObakeImageSourceType(h.photoSource),
_.l_(X,2),r.setLoadingState(),_.b(X,r.fetchImageBlobWithAlr(w),4);if(X.nextAddress!=2)return n=X.yieldResult,d=new FileReader,d.addEventListener("load",function(){var P,W,m,v,O,k;return _.x(function(Z){if(Z.nextAddress==1){if(n.size>15728640)return r.setErrorState((P=r.data)==null?void 0:P.imageSizeErrorMessage),_.t7(Error("hl")),Z.return();if(!d.result)return r.setErrorState((W=r.data)==null?void 0:W.genericImageLoadErrorMessage),_.t7(Error("il")),Z.return();m=d.result;_.l_(Z,2);return _.b(Z,mjq(n,
f),4)}if(Z.nextAddress!=2)return v=Z.yieldResult,r.handleImageUpdatedAction(m,v),r.resetErrorState(),_.Hd(Z,0);O=_.ha(Z);r.setErrorState((k=r.data)==null?void 0:k.uploadErrorMessage);if(O instanceof Error)_.Fo(O);else{var Cw=new _.nf(JSON.stringify(O));_.Fo(Cw)}_.wO(Z)})}),d.readAsDataURL(n),_.Hd(X,0);
z=_.ha(X);r.setErrorState((g=r.data)==null?void 0:g.genericImageLoadErrorMessage);z instanceof Error?_.Fo(z):_.PR(new _.nf(JSON.stringify(z)));_.wO(X)})}),function(){r.hideContainer=!1;
document.body.style.colorScheme=C});
_.l_(S,2);return _.b(S,Y.openPicker(),4)}if(S.nextAddress!=2)return _.Hd(S,0);_.ha(S);r.setErrorState((V=r.data)==null?void 0:V.selectImageErrorMessage);_.wO(S)})};
_.l.pictureChangeSourceToObakeImageSourceType=function(r){switch(r){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.l.logScreenVe=function(){_.f3(_.IB(),124448)};
_.l.graftServerVe=function(){var r=_.Pj(),f,I,C=(f=this.data)==null?void 0:(I=f.loggingDirectives)==null?void 0:I.trackingParams;C&&r&&(this.channelCreationFormVe=_.IB().graftServerVe(C,r),r={visualElement:this.channelCreationFormVe},_.rF().reportShown(r))};
_.l.isNameChanged=function(r){var f;return((f=this.data)==null?void 0:f.name)!==r};
_.l.isHandleChanged=function(r){var f,I=_.F((f=this.data)==null?void 0:f.channelHandleInput,Us6);return I&&r?I.handle!==r:!1};
_.l.handleImageUpdatedAction=function(r,f){this.hideContainer=!1;this.previewDataUrl=r;this.encryptedBlobId=f};
_.l.handleImageSelectionErrorAction=function(r){this.hideContainer=!1;this.setErrorState(r)};
_.l.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.l.showContainer=function(){this.hideContainer=!1};
_.l.maybeWipeZeroStepErrorMessage=function(){var r,f=(r=this.data)==null?void 0:r.zeroStepErrorMessageEntityKey,I;f&&((I=this.zeroStepErrorMessageEntity)==null?0:I.value)&&this.ytdReduxBehavior.dispatch(_.hv("stringEntity",f,{key:f,value:""}))};
_.OC.Object.defineProperties(yi.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 r;return((r=this.photoThumbnail)==null?0:r.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 r;return!((r=this.data)==null||!r.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.descriptionInfo}}});
yi.prototype.dataChanged=yi.prototype.dataChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],yi.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],yi.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],yi.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],yi.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],yi.prototype,"errorMessage",void 0);
_.A([_.K(),_.B("design:type",Object)],yi.prototype,"isLoading",void 0);_.A([_.K(),_.B("design:type",String)],yi.prototype,"previewDataUrl",void 0);_.A([_.K(),_.B("design:type",Number)],yi.prototype,"obakeImageSource",void 0);_.A([_.K(),_.B("design:type",Object)],yi.prototype,"hideContainer",void 0);_.A([_.uA("#title-input"),_.B("design:type",Object)],yi.prototype,"nameInput",void 0);_.A([_.uA("#handle-input"),_.B("design:type",Object)],yi.prototype,"handleInput",void 0);
_.A([_.K(),_.B("design:type",Boolean)],yi.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.A([_.K({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.aaU}),_.B("design:type",Object)],yi.prototype,"zeroStepErrorMessageEntity",void 0);_.A([_.R("data","data.isDefaultProfilePhoto","previewDataUrl"),_.B("design:type",Object),_.B("design:paramtypes",[])],yi.prototype,"photoThumbnail",null);
_.A([_.R("data","data.isDefaultProfilePhoto","photoThumbnail"),_.B("design:type",Object),_.B("design:paramtypes",[])],yi.prototype,"userSetPhotoThumbnailUrl",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yi.prototype,"hideProfilePhotoButtonLayer",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yi.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.A([_.YN("data","zeroStepErrorMessageEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yi.prototype,"dataChanged",null);_.A([_.K({reflectToAttribute:!0}),_.R("data.descriptionInfo","zeroStepErrorMessageEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],yi.prototype,"description",null);yi=_.A([_.U({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],yi);
_.Q(yi,"ytd-channel-creation-dialog-renderer",function(){if(O_s!==void 0)return O_s;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return O_s=r},{mode:1});var Q96;var UL=function(){var r=_.y.apply(this,arguments)||this;r.isLoading=!1;r.isDisabled=!1;return r};
_.t(UL,_.y);UL.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
UL.prototype.updateDisabled=function(){var r;this.isDisabled=this.isLoading||((r=this.handleInput)==null?void 0:r.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
UL.prototype.onSaveClick=function(){var r=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var f;((f=this.data)==null?void 0:f.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 I;if((I=r.data)==null?0:I.nextEndpoint){var C;r.ytComponentBehavior.resolveCommand((C=r.data)==null?void 0:C.nextEndpoint)}else r.isLoading=
!1,r.closeDialog()},
onServerError:function(){r.isLoading=!1;r.handleInput.validate();var I;r.errorMessage=(I=r.data)==null?void 0:I.errorMessage}}}))}};
UL.prototype.closeDialog=function(){_.Bj(this.hostElement,"yt-close-popup-action",[this.is])};
UL.prototype.updateDisabled=UL.prototype.updateDisabled;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],UL.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],UL.prototype,"data",void 0);_.A([_.uA("#handle-input"),_.B("design:type",Object)],UL.prototype,"handleInput",void 0);_.A([_.Bt("isLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UL.prototype,"updateDisabled",null);
UL=_.A([_.U({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],UL);
_.Q(UL,"ytd-channel-handle-edit-dialog-renderer",function(){if(Q96!==void 0)return Q96;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Q96=r},{mode:1});var AY2;var sL=function(){return _.y.apply(this,arguments)||this};
_.t(sL,_.y);sL.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],sL.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],sL.prototype,"data",void 0);sL=_.A([_.U({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],sL);
_.Q(sL,"ytd-channel-switcher-footer-renderer",function(){if(AY2!==void 0)return AY2;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return AY2=r},{mode:1});var Z_Y;var G7d;var OL=function(){return _.y.apply(this,arguments)||this};
_.t(OL,_.y);OL.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
OL.prototype.onIronChange=OL.prototype.onIronChange;_.A([_.K(),_.B("design:type",Object)],OL.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!1}),_.B("design:type",Function)],OL.prototype,"onDontAskAgainChanged",void 0);_.A([_.uA("#checkbox"),_.B("design:type",Object)],OL.prototype,"checkbox",void 0);_.A([_.kO("iron-change"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OL.prototype,"onIronChange",null);
OL=_.A([_.U({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],OL);
_.Q(OL,"ytd-identity-prompt-footer-renderer",function(){if(G7d!==void 0)return G7d;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return G7d=r},{mode:1});var om=function(){var r=_.y.apply(this,arguments)||this;r.dontAskAgain=!1;r.showPopup=!1;r.boundDontAskAgainChanged=function(f){r.dontAskAgainChanged(f)};
r.boundOnAccountItemTap=function(f){r.onAccountItemTap(f)};
return r};
_.t(om,_.y);_.l=om.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 r=this;_.e(this.hostElement).querySelector("#container").addEventListener("scroll",function(){r.ytRendererBehavior.markDirty()})};
_.l.dontAskAgainChanged=function(r){this.dontAskAgain=r};
_.l.onAccountItemTap=function(r){if(r){var f={};this.dontAskAgain&&(f={dont_ask_again:this.dontAskAgain});_.$O(r,f)}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.l.redirectOnlyAccount=function(r){r.sections&&r.sections.length>0&&(r=_.F(r.sections[0],_.eQq),(r==null?0:r.contents)&&(r==null?void 0:r.contents.length)<=1?(r=_.Kz(window.location.href),(r==null?0:r.next)&&_.WFK(r.next)?_.$O(r.next):_.$O("/")):this.showPopup=!0)};
om.prototype.dataChanged=om.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],om.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],om.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!1}),_.B("design:type",Object)],om.prototype,"dontAskAgain",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],om.prototype,"showPopup",void 0);_.A([_.K({reflectToAttribute:!1}),_.B("design:type",Object)],om.prototype,"boundDontAskAgainChanged",void 0);_.A([_.K({reflectToAttribute:!1}),_.B("design:type",Object)],om.prototype,"boundOnAccountItemTap",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],om.prototype,"dataChanged",null);
om=_.A([_.U({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],om);
_.Q(om,"ytd-channel-switcher-renderer",function(){if(Z_Y!==void 0)return Z_Y;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Z_Y=r},{mode:1});var k7s;var Qi=function(){return _.y.apply(this,arguments)||this};
_.t(Qi,_.y);_.OC.Object.defineProperties(Qi.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.A([_.K(),_.B("design:type",Object)],Qi.prototype,"data",void 0);_.A([_.R("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],Qi.prototype,"steps",null);Qi=_.A([_.U({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Qi);
_.Q(Qi,"ytd-channel-transfer-stepper-renderer",function(){if(k7s!==void 0)return k7s;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return k7s=r},{mode:1});var BDV;var AS=function(){var r=_.y.apply(this,arguments)||this;r.data=null;r.isError=!1;r.isLoading=!1;return r};
_.t(AS,_.y);_.l=AS.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(r){return r?r.givenNameValue+" "+r.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)};
AS.prototype.onYtServiceRequestError=AS.prototype.onYtServiceRequestError;AS.prototype.onYtServiceRequestSent=AS.prototype.onYtServiceRequestSent;AS.prototype.dataChanged=AS.prototype.dataChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],AS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],AS.prototype,"data",void 0);
_.A([_.K({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.B("design:type",String)],AS.prototype,"profileName",void 0);_.A([_.K(),_.B("design:type",Object)],AS.prototype,"isError",void 0);_.A([_.K(),_.B("design:type",Object)],AS.prototype,"isLoading",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],AS.prototype,"dataChanged",null);
_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],AS.prototype,"onYtServiceRequestSent",null);_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],AS.prototype,"onYtServiceRequestError",null);AS=_.A([_.U({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],AS);
_.Q(AS,"ytd-channel-warm-welcome-cont-renderer",function(){if(BDV!==void 0)return BDV;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return BDV=r},{mode:1});var qT6;var ZT=function(){var r=_.y.apply(this,arguments)||this;r.data=null;return r};
_.t(ZT,_.y);ZT.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ZT.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ZT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ZT.prototype,"data",void 0);ZT=_.A([_.U({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],ZT);
_.Q(ZT,"ytd-channel-warm-welcome-renderer",function(){if(qT6!==void 0)return qT6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return qT6=r},{mode:1});var umq;var Gv=function(){return _.y.apply(this,arguments)||this};
_.t(Gv,_.y);_.OC.Object.defineProperties(Gv.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.authorThumbnail)||{}}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Gv.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Gv.prototype,"data",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Gv.prototype,"thumbnailDetails",null);Gv=_.A([_.U({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Gv);
_.Q(Gv,"ytd-comment-preview-renderer",function(){if(umq!==void 0)return umq;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return umq=r},{mode:1});var DV6;var kj=function(){return _.y.apply(this,arguments)||this};
_.t(kj,_.y);kj.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.OC.Object.defineProperties(kj.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.submitButton}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],kj.prototype,"data",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],kj.prototype,"submitButton",null);kj=_.A([_.U({is:"ytd-notice-renderer",disableElementRegistration:!0})],kj);
_.Q(kj,"ytd-notice-renderer",function(){if(DV6!==void 0)return DV6;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return DV6=r},{mode:1});var rci;var Bi=function(){return _.y.apply(this,arguments)||this};
_.t(Bi,_.y);Bi.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Bi.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Bi.prototype,"data",void 0);Bi=_.A([_.U({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],Bi);
_.Q(Bi,"ytd-preview-comment-dialog-content",function(){if(rci!==void 0)return rci;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return rci=r},{mode:1});var f2V;var qn=function(){return _.y.apply(this,arguments)||this};
_.t(qn,_.y);qn.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
qn.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],qn.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],qn.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],qn.prototype,"data",void 0);qn=_.A([_.U({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],qn);
_.Q(qn,"ytd-preview-comment-dialog-renderer",function(){if(f2V!==void 0)return f2V;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return f2V=r},{mode:1});var I2B;var Cc3=_.N("web_button_rework")&&_.mO("BUTTON_REWORK")||_.N("web_button_rework_with_live"),uD=function(){var r=_.y.apply(this,arguments)||this;r.selectedAmountIndex=1;r.privacyCheckboxValue=!1;r.useAmsterdamStyle=Cc3;r.amountPlaceholderIndex=-1;return r};
_.t(uD,_.y);_.l=uD.prototype;_.l.onAmountClick=function(r){this.selectedAmountIndex=_.e(this.hostElement).querySelector("#amounts").indexForElement(r.currentTarget)};
_.l.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.Bj(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.l.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.Bj(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.Bj(this.hostElement,"yt-close-popup-action",[this.is]);var r;(r=_.sk())==null||r.getPlayerPromise().then(function(f){f.pauseVideo()})}};
_.l.donationCallback=function(r){r.success?(this.hostElement.hasAttribute("live-chat")&&r.response&&r.response.data&&r.response.data.actions&&_.Bj(this.hostElement,"yt-live-chat-open-popup",[r.response.data.actions[0]]),_.Bj(this.hostElement,"yt-close-popup-action",[this.is]),_.Bj(this.hostElement,"yt-live-chat-close-buy-flow")):r.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(r.errorMessageRenderer)};
_.l.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.e(this.hostElement).querySelector("#custom-amount-input").focus()};
_.l.updateConfirmationDialogTextWithAmount=function(r){var f=this.getConfirmDialogRuns();f&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(f),"text"],this.getFormattedAmount(r))};
_.l.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.l.getAmountPlaceholderIndex=function(r){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=r.findIndex(function(f){return f.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.l.getFormattedAmount=function(r){var f;return(new _.W1(4,((f=this.data)==null?void 0:f.currencyCode)||"")).format(r)};
_.l.isAmountValid=function(r){if(r==="")return!1;r=Number(r)*1E6;var f=this.get("minAmountMicros",this.data),I=this.get("maxAmountMicros",this.data);return f&&r<f||I&&r>I?!1:!0};
_.l.setInputError=function(){this.shouldShowValidationError?_.e(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.e(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.l.setInitialCheckboxValue=function(){var r;this.privacyCheckboxValue=!((r=this.data)==null||!r.privacyCheckboxInitialState)};
_.l.updateCustomAmountInputFromBinding=function(r){this.customAmountInput=r.detail.value};
_.l.updatePrivacyCheckboxValueFromBinding=function(r){this.privacyCheckboxValue=r.detail.value};
_.OC.Object.defineProperties(uD.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var r=this,f,I;return((f=this.data)==null?void 0:(I=f.suggestedAmounts)==null?void 0:I.map(function(C,Y){return{buttonRenderer:{style:r.selectedAmountIndex===Y?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:C.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 r;return!((r=this.data)==null||!r.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 r=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(r&&this.amountMicros!==null)return Object.assign({},r,{ypcGetCartEndpoint:Object.assign({},r.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 r=this.get("confirmLargeAmount",this.data);if(r&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),r}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var r=this.get("donateButton.buttonRenderer",this.data);if(r)return Object.assign({},r,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
uD.prototype.setInitialCheckboxValue=uD.prototype.setInitialCheckboxValue;uD.prototype.setInputError=uD.prototype.setInputError;uD.prototype.setFocusOnCustomAmountInput=uD.prototype.setFocusOnCustomAmountInput;_.A([_.J(hVY),_.B("design:type",Object)],uD.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],uD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],uD.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],uD.prototype,"selectedAmountIndex",void 0);_.A([_.K(),_.B("design:type",String)],uD.prototype,"customAmountInput",void 0);_.A([_.K(),_.B("design:type",Object)],uD.prototype,"privacyCheckboxValue",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],uD.prototype,"useAmsterdamStyle",void 0);_.A([_.Bt("customAmount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uD.prototype,"setFocusOnCustomAmountInput",null);_.A([_.R("data","selectedAmountIndex"),_.B("design:type",Array),_.B("design:paramtypes",[])],uD.prototype,"suggestedAmountButtons",null);
_.A([_.R("data","selectedAmountIndex"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],uD.prototype,"isCustomAmountSelected",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],uD.prototype,"showPrivacyCheckbox",null);_.A([_.R("data","selectedAmountIndex","customAmount"),_.B("design:type",Object),_.B("design:paramtypes",[])],uD.prototype,"amountMicros",null);
_.A([_.R("isCustomAmountSelected","customAmountInput"),_.B("design:type",Object),_.B("design:paramtypes",[])],uD.prototype,"customAmount",null);_.A([_.R("customAmount"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],uD.prototype,"shouldShowValidationError",null);_.A([_.R("customAmount"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],uD.prototype,"isDonateButtonEnabled",null);
_.A([_.R("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.B("design:type",Object),_.B("design:paramtypes",[])],uD.prototype,"donateCommand",null);_.A([_.R("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.B("design:type",Object),_.B("design:paramtypes",[])],uD.prototype,"donateCommandWithConfirmation",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],uD.prototype,"largeDonationThreshold",null);
_.A([_.R("customAmount","donateCommand","amountMicros"),_.B("design:type",Object),_.B("design:paramtypes",[])],uD.prototype,"confirmLargeAmountCommand",null);_.A([_.R("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.B("design:type",Object),_.B("design:paramtypes",[])],uD.prototype,"donateButtonRenderer",null);_.A([_.Bt("shouldShowValidationError"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uD.prototype,"setInputError",null);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uD.prototype,"setInitialCheckboxValue",null);uD=_.A([_.U({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],uD);
_.Q(uD,"ytd-donation-amount-picker-renderer",function(){if(I2B!==void 0)return I2B;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" 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">\n      </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">\n          [[getSimpleString(data.campaignTitle)]]\n        </div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignSubtitle)]]\n        </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">\n            [[getSimpleString(data.campaignDescription)]]\n          </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">\n        [[getSimpleString(data.campaignDescription)]]\n      </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">\n      </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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return I2B=r},{mode:1});var YqV;var DT=function(){return _.y.apply(this,arguments)||this};
_.t(DT,_.y);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],DT.prototype,"ytComponentBehavior",void 0);_.A([_.K({}),_.B("design:type",Object)],DT.prototype,"data",void 0);DT=_.A([_.U({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],DT);
_.Q(DT,"ytd-donation-post-transaction-content",function(){if(YqV!==void 0)return YqV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return YqV=r},{mode:1});var l2V;var rC=function(){return _.y.apply(this,arguments)||this};
_.t(rC,_.y);rC.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],rC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],rC.prototype,"ytRendererBehavior",void 0);_.A([_.K({}),_.B("design:type",Object)],rC.prototype,"data",void 0);rC=_.A([_.U({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],rC);
_.Q(rC,"ytd-donation-post-transaction-renderer",function(){if(l2V!==void 0)return l2V;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return l2V=r},{mode:1});var Vi6;var Eg6;var fC=function(){return _.y.apply(this,arguments)||this};
_.t(fC,_.y);fC.prototype.computeIsStreamingProvider=function(r){return!!r.isStreamingShelf};
fC.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],fC.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],fC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],fC.prototype,"data",void 0);_.A([_.K({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],fC.prototype,"isStreamingProvider",void 0);
fC=_.A([_.U({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],fC);
_.Q(fC,"ytd-media-provider-renderer",function(){if(Eg6!==void 0)return Eg6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Eg6=r},{mode:1});var Sq1;var I4=function(){return _.y.apply(this,arguments)||this};
_.t(I4,_.y);I4.prototype.observeLightsourcePalette=function(){var r,f=(r=this.data)==null?void 0:r.vibrantsourceColorPaletteData;f&&_.zY(this.hostElement,f)};
I4.prototype.observeLightsourcePalette=I4.prototype.observeLightsourcePalette;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],I4.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],I4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],I4.prototype,"data",void 0);
_.A([_.Bt("data.vibrantsourceColorPaletteData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],I4.prototype,"observeLightsourcePalette",null);I4=_.A([_.U({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],I4);
_.Q(I4,"ytd-streaming-pop-up-dialog",function(){if(Sq1!==void 0)return Sq1;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Sq1=r},{mode:1});var CC=function(){return _.y.apply(this,arguments)||this};
_.t(CC,_.y);CC.prototype.onPopupOpened_=function(){var r;((r=this.data)==null?0:r.serviceEndpoint)&&_.a().resolve(_.Gg).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
CC.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
CC.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"}}}}};
CC.prototype.onPopupOpened_=CC.prototype.onPopupOpened_;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],CC.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],CC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.cg),_.B("design:type",Object)],CC.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],CC.prototype,"data",void 0);
_.A([_.kO("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CC.prototype,"onPopupOpened_",null);CC=_.A([_.U({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],CC);
_.Q(CC,"ytd-brandconnect-popup-renderer",function(){if(Vi6!==void 0)return Vi6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Vi6=r},{mode:1});var x5s;var Ys=function(){return _.y.apply(this,arguments)||this};
_.t(Ys,_.y);_.l=Ys.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 r=0;r<this.getOptionRenderers().length;r++)this.notifyPath("data.options."+r+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+r+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.l.updateSubmitButton=function(r){this.set("data.submitButton.buttonRenderer.isDisabled",!r)};
_.l.computeAlt=function(r){return _.Rr(r)};
_.l.onDismissTap=function(){_.Bj(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.a().resolve(_.Gg).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.l.getOptionRenderers=function(r){return(r=r||this.data)&&r.options?r.options.reduce(function(f,I){I.checkboxSurveyOptionRenderer&&f.push(I.checkboxSurveyOptionRenderer);return f},[]):[]};
_.l.onOptionChange=function(r){var f=this,I=!1;if(r.detail.checked)for(var C=this.getOptionRenderers().find(function(h){return h.value===r.detail.value}),Y=this.getOptionRenderers(),V=0;V<Y.length;V++){var S=Y[V];
this.notifyPath("data.options."+V+".checkboxSurveyOptionRenderer.checked");S.checked&&((C==null?0:C.isExclusiveOption)?!S.isExclusiveOption:S.isExclusiveOption)?this.set("data.options."+V+".checkboxSurveyOptionRenderer.checked",!1):S.checked&&(I=!0)}else I=this.getOptionRenderers().some(function(h,w){f.notifyPath("data.options."+w+".checkboxSurveyOptionRenderer.checked");return h.checked});
this.updateSubmitButton(I)};
_.l.onSubmitTap=function(){var r=this.getOptionRenderers().filter(function(V){return V.checked});
if(r.length!==0){var f=r.map(function(V){return V.responseEndpoint});
r=[];for(var I=1;I<f.length;I++){var C=void 0,Y=(C=_.F(f[I],_.LG))==null?void 0:C.feedbackToken;Y&&r.push(Y)}f=[f[0]];r.length&&f.push({extra_feedback_tokens:r});_.Do(this.hostElement,f);_.Bj(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);r=this.data&&this.data.submitActions||[];if(_.N("kevlar_command_handler_migration_killswitch"))_.rX(this.hostElement,r,this.hostElement);else for(r=_.E(r),f=r.next();!f.done;f=r.next())this.ytComponentBehavior.resolveCommand(f.value)}};
Ys.prototype.onOptionChange=Ys.prototype.onOptionChange;Ys.prototype.dataChanged=Ys.prototype.dataChanged;_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],Ys.prototype,"ytEventForwardingBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Ys.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Ys.prototype,"ytComponentBehavior",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ys.prototype,"ytRendererBehavior",void 0);_.A([_.J(Lup),_.B("design:type",Object)],Ys.prototype,"ytdHatsSurveyBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Ys.prototype,"data",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ys.prototype,"dataChanged",null);
_.A([_.kO("ytd-checkbox-survey-option-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ys.prototype,"onOptionChange",null);Ys=_.A([_.U({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Ys);
_.Q(Ys,"ytd-checkbox-survey-renderer",function(){if(x5s!==void 0)return x5s;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return x5s=r},{mode:1});var hri;var w36;var l9=function(){return _.y.apply(this,arguments)||this};
_.t(l9,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],l9.prototype,"ytRendererBehavior",void 0);_.A([_.J(WuB),_.B("design:type",Object)],l9.prototype,"ytdDismissalReasonBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],l9.prototype,"data",void 0);l9=_.A([_.U({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],l9);
_.Q(l9,"ytd-dismissal-reason-text-renderer",function(){if(w36!==void 0)return w36;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return w36=r},{mode:1});var bc6;var Vl=function(){return _.y.apply(this,arguments)||this};
_.t(Vl,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Vl.prototype,"ytRendererBehavior",void 0);_.A([_.J(WuB),_.B("design:type",Object)],Vl.prototype,"ytdDismissalReasonBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Vl.prototype,"data",void 0);Vl=_.A([_.U({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],Vl);
_.Q(Vl,"ytd-dismissal-reason-video-renderer",function(){if(bc6!==void 0)return bc6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return bc6=r},{mode:1});var Ex=function(){var r=_.y.apply(this,arguments)||this;r.darkerDarkTheme=_.N("web_darker_dark_theme");return r};
_.t(Ex,_.y);_.l=Ex.prototype;_.l.created=function(){this.selectedFeedbackTokens=new y0};
_.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(r,f){_.kA(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(f);this.hasReasonsSelected=!0};
_.l.onDismissalReasonDeselected=function(r,f){_.kA(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(f);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.l.onCancelTap=function(){_.Bj(this.hostElement,"yt-close-popup-action")};
_.l.onSubmitTap=function(){var r=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(r={feedback_tokens:r},_.a().resolve(_.Gg).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},r,{element:this.hostElement})}));_.Bj(this.hostElement,"yt-close-popup-action")};
Ex.prototype.onDismissalReasonDeselected=Ex.prototype.onDismissalReasonDeselected;Ex.prototype.onDismissalReasonSelected=Ex.prototype.onDismissalReasonSelected;Ex.prototype.dataChanged=Ex.prototype.dataChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Ex.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ex.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Ex.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Boolean)],Ex.prototype,"hasReasonsSelected",void 0);_.A([_.K(),_.B("design:type",y0)],Ex.prototype,"selectedFeedbackTokens",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Ex.prototype,"darkerDarkTheme",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ex.prototype,"dataChanged",null);
_.A([_.kO("yt-dismissal-reason-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,String]),_.B("design:returntype")],Ex.prototype,"onDismissalReasonSelected",null);_.A([_.kO("yt-dismissal-reason-deselected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,String]),_.B("design:returntype")],Ex.prototype,"onDismissalReasonDeselected",null);Ex=_.A([_.U({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],Ex);
_.Q(Ex,"ytd-dismissal-follow-up-renderer",function(){if(hri!==void 0)return hri;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return hri=r},{mode:1});var p31;var Sw=function(){return _.y.apply(this,arguments)||this};
_.t(Sw,_.y);_.l=Sw.prototype;_.l.onCheckedChange=function(){this.multiselect||_.kA(this.hostElement,"yt-feedback-single-select-changed");_.e(this.hostElement).querySelector("#freeform").focus();_.kA(this.hostElement,"yt-refit")};
_.l.showTextBox=function(r,f){return r&&f};
_.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(r){this.set("data.checked",r.detail.value)};
_.l.updateDataResultTextFromBinding=function(r){this.set("data.resultText",r.detail.value)};
Sw.prototype.dataChanged=Sw.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Sw.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Sw.prototype,"data",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],Sw.prototype,"multiselect",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Sw.prototype,"dataChanged",null);
Sw=_.A([_.U({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Sw);
_.Q(Sw,"ytd-feedback-option-renderer",function(){if(p31!==void 0)return p31;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return p31=r},{mode:1});var ng3;var xs=function(){return _.y.apply(this,arguments)||this};
_.t(xs,_.y);xs.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
xs.prototype.onSingleSelectCheckedChanged=function(r){r=_.jl(r);for(var f=0;f<this.data.options.length;f++)if(r.data!==_.F(this.data.options[f],Ta2)){var I="data.options."+f+".feedbackOptionRenderer.checked";this.notifyPath(I);this.set(I,!1)}};
xs.prototype.onSingleSelectCheckedChanged=xs.prototype.onSingleSelectCheckedChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],xs.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],xs.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],xs.prototype,"data",void 0);
_.A([_.kO("yt-feedback-single-select-changed"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],xs.prototype,"onSingleSelectCheckedChanged",null);xs=_.A([_.U({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],xs);
_.Q(xs,"ytd-feedback-question-renderer",function(){if(ng3!==void 0)return ng3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ng3=r},{mode:1});var d57;var hD=function(){return _.y.apply(this,arguments)||this};
_.t(hD,_.y);hD.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
hD.prototype.getSelectedFeedbackResults=function(){for(var r={},f=0;f<this.data.questions.length;f++)for(var I=_.F(this.data.questions[f],t83),C=0;C<I.options.length;C++){var Y=_.F(I.options[C],Ta2);Y&&Y.checked&&(r[Y.optionKey]=Y.resultText)}return r};
hD.prototype.onKeyUp=function(){var r=this;_.oB(_.F_,function(){_.kA(r.hostElement,"yt-refit")});
_.F_.start()};
hD.prototype.submitSurvey=function(){var r=this.getSelectedFeedbackResults();Object.keys(r).length>0&&this.data.submitFeedbackEndpoint&&(r={survey_results:r,is_feedback_token_unencrypted:!0},_.a().resolve(_.Gg).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},r,{element:this.hostElement})}))};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],hD.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],hD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],hD.prototype,"data",void 0);hD=_.A([_.U({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],hD);
_.Q(hD,"ytd-feedback-survey-renderer",function(){if(d57!==void 0)return d57;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return d57=r},{mode:1});var zr3;var Mi6;var wC=function(){return _.y.apply(this,arguments)||this};
_.t(wC,_.y);wC.prototype.computeAlt=function(r){return _.Rr(r)};
wC.prototype.submitResponse=function(){var r,f;(r=this.data)!=null&&r.feedbackToken&&((f=this.data)==null?void 0:f.nextStageIndex)!==void 0&&(_.qy(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.qy(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
wC.prototype.onClick=function(){this.submitResponse()};
wC.prototype.onClick=wC.prototype.onClick;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],wC.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],wC.prototype,"vertical",void 0);_.A([_.kO("click"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wC.prototype,"onClick",null);
wC=_.A([_.U({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],wC);
_.Q(wC,"ytd-single-select-answer-option-renderer",function(){if(Mi6!==void 0)return Mi6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Mi6=r},{mode:1});var ggp;var b9=function(){var r=_.y.apply(this,arguments)||this;r.darkerDarkTheme=_.N("web_darker_dark_theme");r.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return r};
_.t(b9,_.y);b9.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
b9.prototype.dataChanged=function(){var r,f;this.vertical=((f=(r=this.data)==null?void 0:r.answerOrientation)!=null?f:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
b9.prototype.submitFeedback=function(r){var f;((f=this.data)==null?0:f.responseEndpoint)&&r&&_.Do(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[r]}])};
b9.prototype.dataChanged=b9.prototype.dataChanged;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],b9.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],b9.prototype,"eventForwardingBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],b9.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],b9.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],b9.prototype,"vertical",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],b9.prototype,"darkerDarkTheme",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],b9.prototype,"dataChanged",null);b9=_.A([_.U({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],b9);
_.Q(b9,"ytd-single-select-question-renderer",function(){if(ggp!==void 0)return ggp;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return ggp=r},{mode:1});var pC=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return r};
_.t(pC,_.y);_.l=pC.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(r){var f,I;if((f=this.data)==null?0:(I=f.stages)==null?0:I[r])this.currentStage=this.data.stages[r],this.refitAfterRender()};
_.l.computeAlt=function(r){return _.Rr(r)};
_.l.computeSimpleMessage=function(r){var f;return(f=_.F(r,LRi))==null?void 0:f.messageText};
_.l.computeHideDismiss=function(r){var f;return(f=_.F(r,I0d))==null?void 0:f.hideParentDismissButton};
_.l.onDismissTap=function(){_.Bj(this.hostElement,"yt-close-popup-action");_.F(this.currentStage,LRi)||this.data.dismissalEndpoint&&_.a().resolve(_.Gg).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.l.refitAfterRender=function(){var r=this;_.UC(this,function(){_.kA(r.hostElement,"yt-refit")})};
pC.prototype.dataChanged=pC.prototype.dataChanged;_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],pC.prototype,"eventForwardingBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],pC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],pC.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.J(Lup),_.B("design:type",Object)],pC.prototype,"ytdHatsSurveyBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],pC.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],pC.prototype,"currentStage",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pC.prototype,"dataChanged",null);pC=_.A([_.U({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],pC);
_.Q(pC,"ytd-multi-stage-survey-renderer",function(){if(zr3!==void 0)return zr3;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return zr3=r},{mode:1});var a2i;var nC=function(){return _.y.apply(this,arguments)||this};
_.t(nC,_.y);nC.prototype.computeAlt=function(r){return _.Rr(r)};
nC.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.a().resolve(_.Gg).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.Bj(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.tjd(!1)))};
nC.prototype.onTap=function(){this.vertical&&this.submitResponse()};
nC.prototype.onTap=nC.prototype.onTap;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],nC.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],nC.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],nC.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],nC.prototype,"vertical",void 0);
_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nC.prototype,"onTap",null);nC=_.A([_.U({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],nC);
_.Q(nC,"ytd-single-option-survey-option-renderer",function(){if(a2i!==void 0)return a2i;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return a2i=r},{mode:1});var X36;var dC=function(){return _.y.apply(this,arguments)||this};
_.t(dC,_.y);_.l=dC.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 r,f;this.vertical=(((r=this.data)==null?void 0:(f=r.surveyOrientation)==null?void 0:f.type)||"HORIZONTAL")==="VERTICAL"};
_.l.computeAlt=function(r){return _.Rr(r)};
_.l.onDismissTap=function(){_.Bj(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.a().resolve(_.Gg).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.tjd(!1))};
dC.prototype.dataChanged=dC.prototype.dataChanged;_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],dC.prototype,"eventForwardingBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],dC.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],dC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(Lup),_.B("design:type",Object)],dC.prototype,"ytdHatsSurveyBehavior",void 0);
_.A([_.J(_.PH),_.B("design:type",Object)],dC.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],dC.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],dC.prototype,"vertical",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dC.prototype,"dataChanged",null);dC=_.A([_.U({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],dC);
_.Q(dC,"ytd-single-option-survey-renderer",function(){if(X36!==void 0)return X36;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return X36=r},{mode:1});var NN7;var z0=function(){var r=_.y.apply(this,arguments)||this;r.darkerDarkTheme=_.N("web_darker_dark_theme");return r};
_.t(z0,_.y);z0.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
z0.prototype.onDismissTap=function(){_.Bj(this.hostElement,"yt-close-popup-action")};
z0.prototype.onNavigate=function(){_.Bj(this.hostElement,"yt-close-popup-action")};
z0.prototype.onNavigate=z0.prototype.onNavigate;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],z0.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],z0.prototype,"ytEventForwardingBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],z0.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],z0.prototype,"darkerDarkTheme",void 0);
_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],z0.prototype,"onNavigate",null);z0=_.A([_.U({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],z0);
_.Q(z0,"ytd-survey-follow-up-renderer",function(){if(NN7!==void 0)return NN7;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return NN7=r},{mode:1});var $5s;var Fq1;var Pcs;var ME=function(){var r=_.y.apply(this,arguments)||this;r.polymer2="Element"in Polymer;return r};
_.t(ME,_.y);_.l=ME.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 _.LT("minutes-changed",this.minutes))};
_.l.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LT("seconds-changed",this.seconds))};
_.l.updateMinutesFromBinding=function(r){this.minutes=r.detail.value};
_.l.updateSecondsFromBinding=function(r){this.seconds=r.detail.value};
ME.prototype.secondsChangedForBinding=ME.prototype.secondsChangedForBinding;ME.prototype.minutesChangedForBinding=ME.prototype.minutesChangedForBinding;ME.prototype.secondsChanged=ME.prototype.secondsChanged;_.A([_.K(),_.B("design:type",String)],ME.prototype,"minutes",void 0);_.A([_.K(),_.B("design:type",String)],ME.prototype,"seconds",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],ME.prototype,"polymer2",void 0);
_.A([_.uA("#seconds"),_.B("design:type",Object)],ME.prototype,"secondsEl",void 0);_.A([_.Bt("seconds"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ME.prototype,"secondsChanged",null);_.A([_.Bt("minutes"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ME.prototype,"minutesChangedForBinding",null);
_.A([_.Bt("seconds"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ME.prototype,"secondsChangedForBinding",null);ME=_.A([_.zX({is:"yt-timestamp-input",disableElementRegistration:!0})],ME);
_.Q(ME,"yt-timestamp-input",function(){if(Pcs===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;Fq1===void 0&&(Fq1=document.createElement("template"));var C=Fq1;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Pcs=r}r=Pcs;return r},{mode:2});var gC=function(){return _.y.apply(this,arguments)||this};
_.t(gC,_.y);_.l=gC.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18031_scroller.dialogElement=this.hostElement.parentNode};
_.l.dataChanged=function(){var r=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.Ok().getPlayerPromise().then(function(f){f=f.getCurrentTime();r.minutes=Math.floor(f/60).toString();r.seconds=(Math.floor(f)%60).toString()})};
_.l.onTapSubmit=function(r){r.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(r={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(r.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(r.minutes=this.minutes,r.seconds=this.seconds),_.a().resolve(_.Gg).resolveCommand(this.serviceEndpoint,{form:Object.assign({},r,{element:this.hostElement})}))};
_.l.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.l.onYtServiceRequestCompleted=function(r,f){f=f.actions;if(Array.isArray(f))for(var I=0,C=f.length;I<C;I++)_.F(f[I],_.Nh)&&(r.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(f[I]))};
_.l.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.l.toggleSubmitButton=function(r){this.set("submitButton.isDisabled",!r)};
_.l.handleInput=function(){var r=this.issueType,f=this.affiliation,I=this.minutes,C=this.seconds;I=!this.showTimestamp||!!I&&!!C;this.toggleSubmitButton(!!this.descriptionText&&!!r&&!!f&&I)};
_.l.computeServiceEndpoint=function(r){return this.get("submitButton.buttonRenderer.serviceEndpoint",r)};
_.l.computeSubmitButton=function(r){(r=this.get("submitButton.buttonRenderer",r))&&(r=Object.assign({},r,{serviceEndpoint:void 0}));return r};
_.l.computeShowTimestamp=function(r){return!!r};
_.l.onValueChangedForIssueType=function(r){this.issueType=r.detail.value};
_.l.onValueChangedForAffiliation=function(r){this.affiliation=r.detail.value};
_.l.updateDescriptionTextFromBinding=function(r){this.descriptionText=r.detail.value};
_.l.updateFullNameTextFromBinding=function(r){this.fullNameText=r.detail.value};
_.l.updateMinutesFromBinding=function(r){this.minutes=r.detail.value};
_.l.updateSecondsFromBinding=function(r){this.seconds=r.detail.value};
gC.prototype.handleInput=gC.prototype.handleInput;gC.prototype.onYtServiceRequestError=gC.prototype.onYtServiceRequestError;gC.prototype.onYtServiceRequestCompleted=gC.prototype.onYtServiceRequestCompleted;gC.prototype.onYtServiceRequestSent=gC.prototype.onYtServiceRequestSent;gC.prototype.dataChanged=gC.prototype.dataChanged;_.A([_.J(_.ug.YtOpenPopupBehavior),_.B("design:type",Object)],gC.prototype,"ytOpenPopupBehavior",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],gC.prototype,"ytRendererBehavior",void 0);_.A([_.uA("#scroller"),_.B("design:type",Object)],gC.prototype,"JSC$18031_scroller",void 0);_.A([_.uA("#description"),_.B("design:type",HTMLInputElement)],gC.prototype,"description",void 0);_.A([_.uA("#full-name"),_.B("design:type",Object)],gC.prototype,"fullName",void 0);_.A([_.K(),_.B("design:type",Object)],gC.prototype,"data",void 0);
_.A([_.K({computed:"computeShowTimestamp(data.timestampLabel)"}),_.B("design:type",Boolean)],gC.prototype,"showTimestamp",void 0);_.A([_.K({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.B("design:type",Object)],gC.prototype,"serviceEndpoint",void 0);_.A([_.K({computed:"computeSubmitButton(data)"}),_.B("design:type",Object)],gC.prototype,"submitButton",void 0);_.A([_.K(),_.B("design:type",String)],gC.prototype,"descriptionText",void 0);
_.A([_.K(),_.B("design:type",Number)],gC.prototype,"issueType",void 0);_.A([_.K(),_.B("design:type",Number)],gC.prototype,"affiliation",void 0);_.A([_.K(),_.B("design:type",String)],gC.prototype,"fullNameText",void 0);_.A([_.K(),_.B("design:type",String)],gC.prototype,"minutes",void 0);_.A([_.K(),_.B("design:type",String)],gC.prototype,"seconds",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gC.prototype,"dataChanged",null);
_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],gC.prototype,"onYtServiceRequestSent",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],gC.prototype,"onYtServiceRequestCompleted",null);
_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gC.prototype,"onYtServiceRequestError",null);_.A([_.Bt("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gC.prototype,"handleInput",null);gC=_.A([_.U({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],gC);
_.Q(gC,"ytd-legal-report-details-form-renderer",function(){if($5s!==void 0)return $5s;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return $5s=r},{mode:1});var ti6;var a4=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return r};
_.t(a4,_.y);a4.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
a4.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var r=this.formRenderer.getForm();r&&this.data.submitEndpoint&&(_.a().resolve(_.Gg).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},r,{element:this.hostElement})}),_.Bj(this.hostElement,"yt-close-popup-action"))}};
a4.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.Bj(this.hostElement,"yt-close-popup-action"))};
a4.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
a4.prototype.onPopupClosed=a4.prototype.onPopupClosed;_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],a4.prototype,"ytEventForwardingBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],a4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],a4.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],a4.prototype,"ytRendererBehavior",void 0);
_.A([_.uA("yt-form-renderer"),_.B("design:type",Object)],a4.prototype,"formRenderer",void 0);_.A([_.K(),_.B("design:type",Object)],a4.prototype,"data",void 0);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],a4.prototype,"onPopupClosed",null);a4=_.A([_.U({is:"ytd-form-popup-content",disableElementRegistration:!0})],a4);
_.Q(a4,"ytd-form-popup-content",function(){if(ti6!==void 0)return ti6;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return ti6=r},{mode:1});var TNY;var Xe=function(){return _.y.apply(this,arguments)||this};
_.t(Xe,_.y);Xe.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Xe.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Xe.prototype.onPopupOpened=function(){_.kA(this.hostElement,"yt-invalidate-popup-tabbables")};
Xe.prototype.onYtServiceRequestCompleted=function(r,f){f.data&&f.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.kA(this.hostElement,"yt-invalidate-popup-tabbables"))};
Xe.prototype.onYtServiceRequestCompleted=Xe.prototype.onYtServiceRequestCompleted;Xe.prototype.onPopupOpened=Xe.prototype.onPopupOpened;_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],Xe.prototype,"ytEventForwardingBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Xe.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Xe.prototype,"ytRendererBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],Xe.prototype,"data",void 0);_.A([_.kO("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Xe.prototype,"onPopupOpened",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],Xe.prototype,"onYtServiceRequestCompleted",null);Xe=_.A([_.U({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],Xe);
_.Q(Xe,"ytd-form-popup-renderer",function(){if(TNY!==void 0)return TNY;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return TNY=r},{mode:1});var ccB;var NE=function(){var r=_.y.apply(this,arguments)||this;r.isLoading=!1;return r};
_.t(NE,_.y);_.l=NE.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");OWq(this.hostElement)};
_.l.onYtServiceRequestSent=function(){this.isLoading=!0};
_.l.onYtServiceRequestCompleted=function(){_.Bj(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.l.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.rX(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 r=this.get("data.headerImage.thumbnails");r&&(r=_.yH(r,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+r+")")}};
_.l.onYtNavigate=function(r){(r=_.jl(r))&&r.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
NE.prototype.onYtNavigate=NE.prototype.onYtNavigate;NE.prototype.onHeaderImageChanged=NE.prototype.onHeaderImageChanged;NE.prototype.closePopupHandler=NE.prototype.closePopupHandler;NE.prototype.onYtServiceRequestCompleted=NE.prototype.onYtServiceRequestCompleted;NE.prototype.onYtServiceRequestSent=NE.prototype.onYtServiceRequestSent;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],NE.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],NE.prototype,"ytEventForwardingBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],NE.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],NE.prototype,"isLoading",void 0);_.A([_.uA("#header"),_.B("design:type",HTMLDivElement)],NE.prototype,"header",void 0);_.A([_.uA("#confirm-button"),_.B("design:type",_.Yn)],NE.prototype,"confirmButton",void 0);
_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],NE.prototype,"onYtServiceRequestSent",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],NE.prototype,"onYtServiceRequestCompleted",null);
_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],NE.prototype,"closePopupHandler",null);_.A([_.Bt("data.headerImage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NE.prototype,"onHeaderImageChanged",null);_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],NE.prototype,"onYtNavigate",null);
NE=_.A([_.U({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],NE);
_.Q(NE,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(ccB!==void 0)return ccB;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ccB=r},{mode:1});var Wq2;var $s=function(){var r=_.y.apply(this,arguments)||this;r.isLoading=!1;return r};
_.t($s,_.y);_.l=$s.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);OWq(this.hostElement)};
_.l.onYtServiceRequestCompleted=function(){_.Bj(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.l.onYtServiceRequestError=function(r){_.tx(this.hostElement,r.detail.error.message)};
_.l.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.l.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.Bj(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.l.onDataChanged=function(){this.isLoading=!1;var r=this.get("data.headerImage.thumbnails");r&&(r=_.yH(r,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+r+")");r=_.t1();var f=_.Pj(),I=this.get("data.trackingParams");I&&f&&r&&_.mw(r,f,_.VH(I))};
_.OC.Object.defineProperties($s.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
$s.prototype.onDataChanged=$s.prototype.onDataChanged;$s.prototype.onDomChange=$s.prototype.onDomChange;$s.prototype.onYtServiceRequestError=$s.prototype.onYtServiceRequestError;$s.prototype.onYtServiceRequestCompleted=$s.prototype.onYtServiceRequestCompleted;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],$s.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],$s.prototype,"ytRendererBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],$s.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],$s.prototype,"isLoading",void 0);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$s.prototype,"hasDescription",null);_.A([_.uA("tp-yt-paper-dialog-scrollable"),_.B("design:type",Object)],$s.prototype,"scrollable",void 0);_.A([_.uA("#header"),_.B("design:type",HTMLElement)],$s.prototype,"header",void 0);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],$s.prototype,"onYtServiceRequestCompleted",null);_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],$s.prototype,"onYtServiceRequestError",null);
_.A([_.kO("dom-change"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],$s.prototype,"onDomChange",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$s.prototype,"onDataChanged",null);$s=_.A([_.U({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],$s);
_.Q($s,"ytd-gaming-account-link-setting-renderer",function(){if(Wq2!==void 0)return Wq2;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Wq2=r},{mode:1});var LqY;var m5V;var Fe=function(){var r=_.y.apply(this,arguments)||this;r.isHeader=!1;r.getEndpointForm=RkB;return r};
_.t(Fe,_.y);_.l=Fe.prototype;_.l.triggerHintActions=function(){var r=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var f=_.qy(r.hostElement,"yt-get-opened-popups-action");!(f&&f.length===1?f[0]:[]).some(function(I){I=I.openPopupAction.popupType;return I==="SURVEY"||I==="MEALBAR"||I==="HINT"})&&r.data.hintActions&&r.guideOpened&&(_.rX(r.hostElement,r.data.hintActions,r.hostElement),r.data.hintActions=void 0)})};
_.l.getBadgeIconType=function(r){return r&&r.liveBroadcasting?"live":null};
_.l.onDown=function(){this.interaction.triggerDown()};
_.l.onUp=function(){this.interaction.triggerUp()};
_.l.onTap=function(r){if(this.data.serviceEndpoint){var f;_.N("shorts_controller_retrieve_seedless_sequence_v2")&&((f=_.F(this.data.serviceEndpoint,_.xO))==null?void 0:f.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):i23(this.data.serviceEndpoint,this);r.preventDefault()}else this.data.navigationEndpoint&&!_.iB(_.JN(r),this.hostElement,["A".toString()])&&_.kA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.l.computeActive=function(r,f){if(!r)return!1;var I=r.navigationEndpoint;r=r.serviceEndpoint;if(!I&&!r||!f)return!1;if(I){r=(r=_.YO(f))&&["subscriptions","filteredsubscriptions"].includes(r);if(_.F(I,_.lA)&&_.F(f,_.lA)&&!r){var C=_.F(I,_.lA).browseId;f=_.F(f,_.lA).browseId;return C!==void 0&&f!==void 0&&(C===f||C==="VLWL"&&f==="FEwatch_later"||C==="FEwatch_later"&&f==="VLWL")}var Y;I=(Y=_.F(I.commandMetadata,_.oo))==null?void 0:Y.url;f=(C=_.F(f.commandMetadata,_.oo))==null?void 0:C.url;return!(!I||
!f||I!==f&&I!==_.Cf(f))}return this.isActiveShortsTab(r,f)};
_.l.isActiveShortsTab=function(r,f){f=!!_.F(f,_.xO)||!!_.F(f,_.c_);return(!!_.F(r,_.xO)||!!_.F(r,_.c_))&&f};
_.l.computeIsPrimary=function(r){return!!r};
_.OC.Object.defineProperties(Fe.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 r=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&r)return r}}});
Fe.prototype.onTap=Fe.prototype.onTap;Fe.prototype.onUp=Fe.prototype.onUp;Fe.prototype.onDown=Fe.prototype.onDown;Fe.prototype.triggerHintActions=Fe.prototype.triggerHintActions;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Fe.prototype,"componentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Fe.prototype,"rendererBehavior",void 0);_.A([_.J(_.Kh.YtTaskEmitterBehavior),_.B("design:type",Object)],Fe.prototype,"taskEmitterBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],Fe.prototype,"activeEndpoint",void 0);_.A([_.K(),_.B("design:type",Object)],Fe.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],Fe.prototype,"guideOpened",void 0);_.A([_.K(),_.B("design:type",String)],Fe.prototype,"type",void 0);_.A([_.uA("yt-interaction"),_.B("design:type",Object)],Fe.prototype,"interaction",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Fe.prototype,"isHeader",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("data","activeEndpoint"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Fe.prototype,"active",null);_.A([_.K({reflectToAttribute:!0}),_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Fe.prototype,"isPrimary",null);_.A([_.K({reflectToAttribute:!0}),_.R("data.count","data.presentationStyle","data.badges.*"),_.B("design:type",String),_.B("design:paramtypes",[])],Fe.prototype,"lineEndStyle",null);
_.A([_.R("lineEndStyle"),_.B("design:type",Object),_.B("design:paramtypes",[])],Fe.prototype,"ariaLabel",null);_.A([_.Bt("data.hintActions","guideOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fe.prototype,"triggerHintActions",null);_.A([_.kO("down"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fe.prototype,"onDown",null);
_.A([_.kO("up"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fe.prototype,"onUp",null);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Fe.prototype,"onTap",null);Fe=_.A([_.U({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],Fe);
_.Q(Fe,"ytd-guide-entry-renderer",function(){if(m5V!==void 0)return m5V;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return m5V=r},{mode:1});var P6=function(){var r=_.y.apply(this,arguments)||this;r.userToggled=!1;return r};
_.t(P6,_.y);_.l=P6.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(r){var f=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.N("kevlar_guide_expandable_items_killswitch")&&_.UC(this,function(){_.y9(f.expandableItems)});
r.preventDefault()};
_.l.onCollapserItemTapped=function(r){var f=this;this._setExpanded(!1);this.userToggled=!0;r.preventDefault();this.expandableItems&&!_.N("kevlar_guide_collapsible_items_killswitch")&&_.UC(this,function(){_.KW(f.hostElement)})};
_.l.observeActiveEndpoint=function(){for(var r=this.activeEndpoint,f=this.data,I=this.expandableItems.children,C=0,Y=I.length;C<Y;C++)I[C].activeEndpoint=r;f&&f.autoExpandCommand&&r&&!this.userToggled&&(I=this.data.autoExpandCommand,f=!(!_.F(I,_.lA)||!_.F(r,_.lA)||_.F(I,_.lA).browseId!==_.F(r,_.lA).browseId),r=this.get("commandMetadata.webCommandMetadata.url",r),I=this.get("commandMetadata.webCommandMetadata.url",I),f=f||!!(r&&I&&r.includes(I)),this._setExpanded(f),f&&this.ytLazyListBehavior.fillRemainingListItems())};
P6.prototype.observeActiveEndpoint=P6.prototype.observeActiveEndpoint;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],P6.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.AW.YtLazyListBehavior),_.B("design:type",Object)],P6.prototype,"ytLazyListBehavior",void 0);_.A([_.uA("#expandable-items"),_.B("design:type",HTMLElement)],P6.prototype,"expandableItems",void 0);
_.A([_.K(),_.B("design:type",Object)],P6.prototype,"data",void 0);_.A([_.K({readOnly:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],P6.prototype,"expanded",void 0);_.A([_.K({value:0}),_.B("design:type",Number)],P6.prototype,"initialCount",void 0);_.A([_.K(),_.B("design:type",Object)],P6.prototype,"activeEndpoint",void 0);_.A([_.Bt("data","activeEndpoint","canShowMore"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],P6.prototype,"observeActiveEndpoint",null);
P6=_.A([_.U({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],P6);
_.Q(P6,"ytd-guide-collapsible-entry-renderer",function(){if(LqY!==void 0)return LqY;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return LqY=r},{mode:_.QQ("kevlar_poly_si_batch_j079")?1:2});var erp;var Jc6;var tD=function(){var r=_.y.apply(this,arguments)||this;r.allVideosCount=0;r.renderGuideEntry=!1;return r};
_.t(tD,_.y);tD.prototype.observeRenderEntry=function(){var r;this.renderGuideEntry=!((r=this.data)==null||!r.alwaysShow)||!!this.allVideosCount};
tD.prototype.observeRenderEntry=tD.prototype.observeRenderEntry;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],tD.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],tD.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],tD.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],tD.prototype,"activeEndpoint",void 0);_.A([_.K({selector:_.Rqq}),_.B("design:type",Object)],tD.prototype,"allVideosCount",void 0);
_.A([_.K(),_.B("design:type",Object)],tD.prototype,"renderGuideEntry",void 0);_.A([_.YN("allVideosCount","data.alwaysShow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tD.prototype,"observeRenderEntry",null);tD=_.A([_.U({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],tD);
_.Q(tD,"ytd-guide-downloads-entry-renderer",function(){if(Jc6===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);Jc6=r}r=Jc6;return r},{mode:1});var T0=function(){var r=_.y.apply(this,arguments)||this;r.youtab=_.N("web_enable_youtab");r.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return r};
_.t(T0,_.y);_.l=T0.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 r=this.sectionItems.children,f=0,I=r.length;f<I;f++)r[f].activeEndpoint=this.activeEndpoint}};
_.l.handleAddToGuideSectionAction=function(r){var f=_.F(r,APi);if(f&&this.data&&(r=f.items,f=f.handlerData,r&&f&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(f)>-1)){f=0;for(var I=r.length;f<I;f++)r[f].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,r[f])}};
_.l.handleRemoveFromGuideSectionAction=function(r){var f=_.F(r,Z7d);f&&this.data&&(r=f.guideEntryId,f=f.handlerData,r&&f&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(f)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(r,this.data.sectionItems),this.removeFromCollapsedSection(r,this.data.sectionItems)))};
_.l.removeFromExpandedSection=function(r,f){r=this.getEntryIndexMatchingId(r,f);r!==-1&&this.splice("data.sectionItems",r,1)};
_.l.removeFromCollapsedSection=function(r,f){var I=f.findIndex(function(C){return!!_.F(C,xh6)});
I&&I!==-1&&f[I]&&_.F(f[I],xh6)&&(f=_.F(f[I],xh6).expandableItems)&&(r=this.getEntryIndexMatchingId(r,f),r!==-1&&this.splice("data.sectionItems."+I+".guideCollapsibleEntryRenderer.expandableItems",r,1))};
_.l.getEntryIndexMatchingId=function(r,f){var I=this;return f.findIndex(function(C){return I.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",C)===r})};
T0.prototype.activeEndpointChanged=T0.prototype.activeEndpointChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],T0.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],T0.prototype,"actionHandlerBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],T0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.uA("#section-items"),_.B("design:type",HTMLDivElement)],T0.prototype,"sectionItems",void 0);
_.A([_.uA("#header-entry"),_.B("design:type",Object)],T0.prototype,"headerEntry",void 0);_.A([_.K(),_.B("design:type",Object)],T0.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],T0.prototype,"activeEndpoint",void 0);_.A([_.K(),_.B("design:type",Object)],T0.prototype,"youtab",void 0);_.A([_.Bt("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],T0.prototype,"activeEndpointChanged",null);
T0=_.A([_.U({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],T0);
_.Q(T0,"ytd-guide-collapsible-section-entry-renderer",function(){if(erp===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);erp=r}r=erp;return r},{mode:1});var jt6;var Hcq;var c6=function(){var r=_.y.apply(this,arguments)||this;r.modernTypography=_.N("web_modern_typography");r.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 r};
_.t(c6,_.y);_.l=c6.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 r=_.qy(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);r&&r.length===1&&r[0]&&_.qy(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.l.handleResetChannelUnreadCountCommand=function(r){var f;(r=(f=_.F(r,kdd))==null?void 0:f.channelId)&&this.data&&this.data.items&&(f=this.getPathToEntryMatchingId(r))&&(this.set(f+".guideEntryRenderer.count",0),this.set(f+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.l.handleResetSubscriptionsUnreadDotCommand=function(r){var f,I=(f=_.F(r,Bxd))==null?void 0:f.targetId,C;I&&(C=this.data)!=null&&C.items&&(r=this.data.items.findIndex(function(Y){var V;return((V=Y.guideEntryRenderer)==null?void 0:V.targetId)===I}),r<0||this.set("data.items."+r+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.l.getPathToEntryMatchingId=function(r){if(this.data&&this.data.items){var f=this.getEntryIndexMatchingId(r,this.data.items);if(f>-1)return"data.items."+f;for(var I=0;I<this.data.items.length;I++)if(f=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[I]))if(f=this.getEntryIndexMatchingId(r,f),f>-1)return"data.items."+I+".guideCollapsibleEntryRenderer.expandableItems."+f}};
_.l.handleAddToGuideSectionAction=function(r){var f=this;if(_.F(r,APi)){var I=_.F(r,APi).items;r=_.F(r,APi).handlerData;var C,Y;I&&r&&((C=this.data)==null?void 0:(Y=C.handlerDatas)==null?void 0:Y.indexOf(r))>-1&&(I=I.filter(function(V){return(V=f.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",V))&&!f.isGuideItemPresent(V)}),this.unshift.apply(this,["data.items"].concat(_.Na(I))))}};
_.l.isGuideItemPresent=function(r){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(r,this.data.items)!==-1)return!0;var f=this.data.items.find(function(I){return!!I.guideCollapsibleEntryRenderer});
if((f==null?0:f.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(r,f.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.l.getEntryIndexMatchingId=function(r,f){var I=this;return f.findIndex(function(C){return I.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",C)===r})};
_.l.handleRemoveFromGuideSectionAction=function(r){if(_.F(r,Z7d)){var f=_.F(r,Z7d).guideEntryId;r=_.F(r,Z7d).handlerData;var I,C;f&&r&&((I=this.data)==null?void 0:(C=I.handlerDatas)==null?void 0:C.indexOf(r))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(f,this.data.items),this.removeFromCollapsedSection(f,this.data.items))}};
_.l.removeFromExpandedSection=function(r,f){r=this.getEntryIndexMatchingId(r,f);r!==-1&&this.splice("data.items",r,1)};
_.l.removeFromCollapsedSection=function(r,f){var I=f.findIndex(function(C){return!!C.guideCollapsibleEntryRenderer});
I!==-1&&(f=f[I].guideCollapsibleEntryRenderer.expandableItems)&&(r=this.getEntryIndexMatchingId(r,f),r!==-1&&this.splice("data.items."+I+".guideCollapsibleEntryRenderer.expandableItems",r,1))};
_.l.activeEndpointChanged=function(){for(var r=_.e(this.hostElement).querySelector("#items").children,f=0,I=r.length;f<I;f++)r[f].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.l.guideOpenedChanged=function(){for(var r=_.e(this.hostElement).querySelector("#items").children,f=0,I=r.length;f<I;f++)r[f].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
c6.prototype.guideOpenedChanged=c6.prototype.guideOpenedChanged;c6.prototype.activeEndpointChanged=c6.prototype.activeEndpointChanged;c6.prototype.persistentGuideChanged=c6.prototype.persistentGuideChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],c6.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],c6.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.AW.YtLazyListBehavior),_.B("design:type",Object)],c6.prototype,"ytLazyListBehavior",void 0);_.A([_.J(_.mB.YtdGuideStateAwareBehavior),_.B("design:type",Object)],c6.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],c6.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],c6.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],c6.prototype,"modernTypography",void 0);_.A([_.K(),_.B("design:type",String)],c6.prototype,"type",void 0);_.A([_.K({value:20}),_.B("design:type",Number)],c6.prototype,"initialCount",void 0);_.A([_.K({value:10}),_.B("design:type",Number)],c6.prototype,"targetFramerate",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],c6.prototype,"autoFill",void 0);_.A([_.K({value:50}),_.B("design:type",Number)],c6.prototype,"renderDelay",void 0);
_.A([_.Bt("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],c6.prototype,"persistentGuideChanged",null);_.A([_.YN("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],c6.prototype,"activeEndpointChanged",null);_.A([_.YN("guideOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],c6.prototype,"guideOpenedChanged",null);
c6=_.A([_.U({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],c6);
_.Q(c6,"ytd-guide-section-renderer",function(){if(Hcq!==void 0)return Hcq;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Hcq=r},{mode:_.QQ("kevlar_poly_si_batch_j073")?1:2});var ics;var W6=function(){return _.y.apply(this,arguments)||this};
_.t(W6,_.y);_.OC.Object.defineProperties(W6.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],W6.prototype,"rendererBehaviors",void 0);_.A([_.K(),_.B("design:type",Object)],W6.prototype,"data",void 0);_.A([_.K(),_.R("data.signInButton.buttonRenderer.style"),_.B("design:type",Object),_.B("design:paramtypes",[])],W6.prototype,"alignByText",null);W6=_.A([_.U({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],W6);
_.Q(W6,"ytd-guide-signin-promo-renderer",function(){if(ics===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);ics=r}r=ics;return r},{mode:1});var LC=function(){var r=_.y.apply(this,arguments)||this;r.showFooter=!1;return r};
_.t(LC,_.y);LC.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}}}}};
LC.prototype.attached=function(){var r=this,f;return _.x(function(I){if(I.nextAddress==1){f=_.a().resolve(_.ZY(_.LY));if(!f)return I.jumpTo(0);f.setGuideData(r.hostElement);return _.b(I,0,3)}r.ytLazyListBehavior.initialCount=2;return I.return()})};
LC.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
LC.prototype.dataChanged=LC.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],LC.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],LC.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.AW.YtLazyListBehavior),_.B("design:type",Object)],LC.prototype,"ytLazyListBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],LC.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],LC.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],LC.prototype,"showFooter",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],LC.prototype,"autoFill",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],LC.prototype,"dataChanged",null);LC=_.A([_.U({is:"ytd-guide-renderer",disableElementRegistration:!0})],LC);
_.Q(LC,"ytd-guide-renderer",function(){if(jt6!==void 0)return jt6;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return jt6=r},{mode:_.QQ("kevlar_poly_si_batch_j073")?1:2});var RrU;var mE=function(){var r=_.y.apply(this,arguments)||this;r.systemIcons=_.N("kevlar_system_icons");r.frostedGlass=_.N("web_frosted_glass");r.getEndpointForm=RkB;return r};
_.t(mE,_.y);_.l=mE.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",_.Rr(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(r){if(this.data.serviceEndpoint){var f;_.N("shorts_controller_retrieve_seedless_sequence_v2")&&((f=_.F(this.data.serviceEndpoint,_.xO))==null?void 0:f.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):i23(this.data.serviceEndpoint,this);r.preventDefault()}else{var I;((I=this.data)==null?0:I.navigationEndpoint)&&!_.iB(_.JN(r),this.hostElement,["A".toString()])&&_.kA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.l.computeActive=function(r,f){if(!r)return!1;var I=r.navigationEndpoint;r=r.serviceEndpoint;if(!I&&!r||!f)return!1;if(I){r=_.F(I,_.lA);var C=_.F(f,_.lA);if(r&&C)return r.browseId===C.browseId&&r.params===C.params;var Y;I=(Y=_.F(I.commandMetadata,_.oo))==null?void 0:Y.url;var V;f=(V=_.F(f.commandMetadata,_.oo))==null?void 0:V.url;return!(!I||!f||I!==f&&I!==_.Cf(f))}return this.isActiveShortsTab(r,f)};
_.l.isActiveShortsTab=function(r,f){f=!!_.F(f,_.xO)||!!_.F(f,_.c_);return(!!_.F(r,_.xO)||!!_.F(r,_.c_))&&f};
_.l.computeTitle=function(r,f){return f?"":_.Rr(r)};
_.OC.Object.defineProperties(mE.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
mE.prototype.onTap=mE.prototype.onTap;mE.prototype.onUp=mE.prototype.onUp;mE.prototype.onDown=mE.prototype.onDown;mE.prototype.onActiveStateChange=mE.prototype.onActiveStateChange;mE.prototype.dataChanged=mE.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],mE.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],mE.prototype,"ytComponentBehavior",void 0);
_.A([_.J(_.cq),_.B("design:type",Object)],mE.prototype,"ironButtonState",void 0);_.A([_.K(),_.B("design:type",Object)],mE.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],mE.prototype,"activeEndpoint",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],mE.prototype,"noLabels",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.B("design:type",Boolean)],mE.prototype,"isActive",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],mE.prototype,"systemIcons",void 0);_.A([_.uA("yt-interaction"),_.B("design:type",Object)],mE.prototype,"interaction",void 0);_.A([_.R("isActive"),_.B("design:type",Object),_.B("design:paramtypes",[])],mE.prototype,"ariaSelected",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],mE.prototype,"frostedGlass",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mE.prototype,"dataChanged",null);_.A([_.Bt("isActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mE.prototype,"onActiveStateChange",null);_.A([_.kO("down"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mE.prototype,"onDown",null);
_.A([_.kO("up"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mE.prototype,"onUp",null);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],mE.prototype,"onTap",null);mE=_.A([_.U({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],mE);
_.Q(mE,"ytd-mini-guide-entry-renderer",function(){if(RrU!==void 0)return RrU;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return RrU=r},{mode:_.QQ("kevlar_poly_si_batch_j063")?1:2});var vg7;var ew=function(){var r=_.y.apply(this,arguments)||this;r.allVideosCount=0;r.noLabels=_.N("kevlar_mini_guide_no_labels");r.frostedGlass=_.N("web_frosted_glass");return r};
_.t(ew,_.y);_.l=ew.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")};
_.l.visibleChanged=function(){if(this.visible&&!this.data){var r=_.a().resolve(_.ZY(_.LY));r&&r.setGuideData(this.hostElement)}};
_.l.dataChanged=function(){var r=[],f;if((f=this.data)!=null&&f.items){f=_.E(this.data.items);for(var I=f.next();!I.done;I=f.next()){I=I.value;var C=void 0;if((C=I.guideSectionRenderer)==null?0:C.items)for(C=void 0,I=_.E((C=I.guideSectionRenderer)==null?void 0:C.items),C=I.next();!C.done;C=I.next())if(C=C.value,C.guideEntryRenderer)C=C.guideEntryRenderer,C.isPrimary&&r.push({guideEntryRenderer:C});else if(C.guideCollapsibleSectionEntryRenderer){var Y=void 0;((Y=_.F(C.guideCollapsibleSectionEntryRenderer.headerEntry,
s9))==null?0:Y.isPrimary)&&r.push({guideEntryRenderer:_.F(C.guideCollapsibleSectionEntryRenderer.headerEntry,s9)});if(C=C.guideCollapsibleSectionEntryRenderer.sectionItems)for(C=_.E(C),Y=C.next();!Y.done;Y=C.next()){var V=Y.value;Y=_.F(V,hq3);var S=void 0;((S=_.F(V,s9))==null?0:S.isPrimary)?r.push({guideEntryRenderer:_.F(V,s9)}):Y&&(V=void 0,_.F((V=Y)==null?void 0:V.entryRenderer,s9)&&(Y.alwaysShow||this.allVideosCount)&&r.push({guideEntryRenderer:_.F(Y.entryRenderer,s9)}))}}}}this.miniGuideItems=
r};
_.l.activeEndpointChanged=function(){for(var r=this.items.children,f=0;f<r.length;f++)r[f].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
ew.prototype.activeEndpointChanged=ew.prototype.activeEndpointChanged;ew.prototype.dataChanged=ew.prototype.dataChanged;ew.prototype.visibleChanged=ew.prototype.visibleChanged;_.A([_.J(_.PH),_.B("design:type",Object)],ew.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ew.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],ew.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.J(_.mB.YtdGuideStateAwareBehavior),_.B("design:type",Object)],ew.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],ew.prototype,"ytComponentBehavior",void 0);_.A([_.uA("#items"),_.B("design:type",Object)],ew.prototype,"items",void 0);_.A([_.K(),_.B("design:type",Object)],ew.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],ew.prototype,"visible",void 0);
_.A([_.K(),_.B("design:type",Object)],ew.prototype,"miniGuideItems",void 0);_.A([_.K({selector:_.Rqq}),_.B("design:type",Object)],ew.prototype,"allVideosCount",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ew.prototype,"noLabels",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ew.prototype,"frostedGlass",void 0);_.A([_.YN("visible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ew.prototype,"visibleChanged",null);
_.A([_.YN("data","allVideosCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ew.prototype,"dataChanged",null);_.A([_.YN("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ew.prototype,"activeEndpointChanged",null);ew=_.A([_.U({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],ew);
_.Q(ew,"ytd-mini-guide-renderer",function(){if(vg7===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);vg7=r}r=vg7;return r},{mode:1});var Kqs;var yci=/^[\x00-\x7F]+$/,JD=function(){var r=_.y.apply(this,arguments)||this;r.darkerDarkTheme=_.N("web_darker_dark_theme");return r};
_.t(JD,_.y);_.OC.Object.defineProperties(JD.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var r,f=_.Rr((r=this.data)==null?void 0:r.handle);if(f)return _.iX("@"+f)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var r=_.Rr(this.displayHandle),f,I=_.Rr((f=this.data)==null?void 0:f.handleUrl);if(r&&I)return _.iX(I+r)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var r=_.Rr(this.displayHandle);if(r&&!yci.test(r)){var f;return(f=this.data)==null?void 0:f.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var r=_.Rr(this.displayHandleUrl),f,I=_.Rr((f=this.data)==null?void 0:f.urlInfoText);if(r&&I)return _.iX(I+" "+r)}}});
_.A([_.K(),_.B("design:type",Object)],JD.prototype,"data",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],JD.prototype,"displayHandle",null);_.A([_.R("displayHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],JD.prototype,"displayHandleUrl",null);_.A([_.R("displayHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],JD.prototype,"warningText",null);
_.A([_.R("displayHandleUrl"),_.B("design:type",Object),_.B("design:paramtypes",[])],JD.prototype,"urlInfoTextWithUrl",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],JD.prototype,"darkerDarkTheme",void 0);JD=_.A([_.U({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],JD);
_.Q(JD,"ytd-handles-claiming-confirm-dialog-content",function(){if(Kqs!==void 0)return Kqs;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Kqs=r},{mode:1});var U5B;var jw=function(){var r=_.y.apply(this,arguments)||this;r.okButtonOverride={style:"mono",type:"outline",size:"M"};return r};
_.t(jw,_.y);jw.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
jw.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],jw.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],jw.prototype,"okButtonOverride",void 0);_.A([_.K(),_.B("design:type",Object)],jw.prototype,"data",void 0);jw=_.A([_.U({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],jw);
_.Q(jw,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(U5B!==void 0)return U5B;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return U5B=r},{mode:1});var st2;var Oc6=/^[\x00-\x7F]+$/,H6=function(){var r=_.y.apply(this,arguments)||this;r.isLoading=!1;r.darkerDarkTheme=_.N("web_darker_dark_theme");return r};
_.t(H6,_.y);H6.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var r;this.selectedHandle=(r=this.handleInput)==null?void 0:r.value;this.onSelectedHandleChanged(this.selectedHandle);_.qy(this.hostElement,"yt-refit-popups-action")}};
_.OC.Object.defineProperties(H6.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var r;return(r=this.data)==null?void 0:r.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.iX("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.iX(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!Oc6.test(this.selectedHandle)){var r;return(r=this.data)==null?void 0:r.warningText}}}});
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],H6.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],H6.prototype,"data",void 0);_.A([_.K(),_.B("design:type",String)],H6.prototype,"selectedHandle",void 0);_.A([_.K(),_.B("design:type",Object)],H6.prototype,"isLoading",void 0);_.A([_.K(),_.B("design:type",Function)],H6.prototype,"onSelectedHandleChanged",void 0);_.A([_.uA("#channel-handle-input"),_.B("design:type",Object)],H6.prototype,"handleInput",void 0);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],H6.prototype,"handleUrlPrefix",null);_.A([_.R("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],H6.prototype,"displayHandle",null);_.A([_.R("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],H6.prototype,"displayHandleUrl",null);_.A([_.R("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],H6.prototype,"warningText",null);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],H6.prototype,"darkerDarkTheme",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],H6.prototype,"ytRendererBehavior",void 0);H6=_.A([_.U({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],H6);
_.Q(H6,"ytd-handles-claiming-edit-dialog-content",function(){if(st2!==void 0)return st2;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return st2=r},{mode:1});var ogi;var i9=function(){var r=_.y.apply(this,arguments)||this;r.actionButtonOverride={style:"mono",type:"filled",size:"M"};r.cancelButtonOverride={style:"mono",type:"text",size:"M"};r.selectButtonDisabled=!1;r.isLoading=!1;r.hasSelectedHandleEventListener=!1;r.selectedHandleChanged=function(f){r.selectedHandle=f};
return r};
_.t(i9,_.y);_.l=i9.prototype;_.l.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.l.onDataChanged=function(){var r,f;this.selectedHandle=(f=_.F((r=this.data)==null?void 0:r.inputField,Us6))==null?void 0:f.handle};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.onCancel=function(){this.selectedHandle="";_.Bj(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.onSelectHandle=function(){var r=this;if(this.selectedHandle!==void 0){var f;((f=this.data)==null?void 0:f.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(I,C){if(C.newHandleUpdateStatus!==void 0&&C.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&C.newHandleUpdateStatus.errorMessage)_.tx(r.hostElement,_.Rr(C.newHandleUpdateStatus.errorMessage)),
r.isLoading=!1;else{var Y;if((Y=r.data)==null?0:Y.onChannelUpdateSuccess){I=r.data.onChannelUpdateSuccess;var V,S;if(C=(V=_.F(I,_.Nh))==null?void 0:(S=V.popup)==null?void 0:S.handlesClaimingConfirmDialogRenderer)C.handle=_.iX(r.selectedHandle);r.ytComponentBehavior.resolveCommand(I);_.Bj(r.hostElement,"yt-close-popup-action",[r.is])}else r.isLoading=!1}},
onServerError:function(){var I;r.content&&((I=r.content)==null?0:I.handleInput)&&r.content.handleInput.validate();r.isLoading=!1;_.tx(r.hostElement,_.VR("TRY_AGAIN_LATER"))}}}))}};
_.l.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
i9.prototype.onDataChanged=i9.prototype.onDataChanged;i9.prototype.onSelectedHandleChanged=i9.prototype.onSelectedHandleChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],i9.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],i9.prototype,"actionButtonOverride",void 0);_.A([_.K(),_.B("design:type",Object)],i9.prototype,"cancelButtonOverride",void 0);_.A([_.K(),_.B("design:type",Object)],i9.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",String)],i9.prototype,"selectedHandle",void 0);_.A([_.K(),_.B("design:type",Object)],i9.prototype,"selectButtonDisabled",void 0);_.A([_.K(),_.B("design:type",Object)],i9.prototype,"isLoading",void 0);_.A([_.K(),_.B("design:type",Object)],i9.prototype,"hasSelectedHandleEventListener",void 0);_.A([_.K(),_.B("design:type",Object)],i9.prototype,"handleInput",void 0);
_.A([_.Bt("selectedHandle"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],i9.prototype,"onSelectedHandleChanged",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],i9.prototype,"onDataChanged",null);_.A([_.uA("ytd-handles-claiming-edit-dialog-content"),_.B("design:type",Object)],i9.prototype,"content",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],i9.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],i9.prototype,"ytRendererstamperBehavior",void 0);i9=_.A([_.U({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],i9);
_.Q(i9,"ytd-handles-claiming-edit-dialog-renderer",function(){if(ogi!==void 0)return ogi;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ogi=r},{mode:1});var Qt6;var R4=function(){return _.y.apply(this,arguments)||this};
_.t(R4,_.y);_.OC.Object.defineProperties(R4.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.data)==null?0:r.handle){var f;return _.iX("@"+_.Rr((f=this.data)==null?void 0:f.handle))}}}});
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],R4.prototype,"formattedHandle",null);_.A([_.K(),_.B("design:type",Object)],R4.prototype,"data",void 0);R4=_.A([_.U({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],R4);
_.Q(R4,"ytd-handles-claiming-radio-option-renderer",function(){if(Qt6!==void 0)return Qt6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Qt6=r},{mode:1});var AcB;var Zcs=/^[\x00-\x7F]+$/,v6=function(){var r=_.y.apply(this,arguments)||this;r.initialRadioIndex="-1";r.isLoading=!1;r.darkerDarkTheme=_.N("web_darker_dark_theme");r.maybeSubmitFeedback=function(){r.feedbackSurveyRenderer.submitSurvey()};
return r};
_.t(v6,_.y);v6.prototype.updateSelectedHandleIndexFromBinding=function(r){this.selectedRadioIndex=+r.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(r)};
v6.prototype.selectedHandleChanged=function(r){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var f;this.selectedHandle=(f=this.handleInput)==null?void 0:f.value;this.onSelectedHandleChanged(r)}};
_.OC.Object.defineProperties(v6.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var r;return(((r=this.data)==null?void 0:r.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var r;return this.ytRendererBehavior.getSimpleString((r=this.data)==null?void 0:r.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.iX("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.iX(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!Zcs.test(this.selectedHandle)){var r;return(r=this.data)==null?void 0:r.warningText}}}});
_.A([_.K(),_.B("design:type",Object)],v6.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],v6.prototype,"initialRadioIndex",void 0);_.A([_.K(),_.B("design:type",Number)],v6.prototype,"selectedRadioIndex",void 0);_.A([_.K(),_.B("design:type",String)],v6.prototype,"selectedHandle",void 0);_.A([_.K(),_.B("design:type",Object)],v6.prototype,"isLoading",void 0);_.A([_.K(),_.B("design:type",Function)],v6.prototype,"onSelectedHandleChanged",void 0);
_.A([_.K(),_.B("design:type",Function)],v6.prototype,"onSelectedRadioIndexChanged",void 0);_.A([_.uA("#channel-handle-input"),_.B("design:type",Object)],v6.prototype,"handleInput",void 0);_.A([_.uA("ytd-feedback-survey-renderer"),_.B("design:type",Object)],v6.prototype,"feedbackSurveyRenderer",void 0);_.A([_.R("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],v6.prototype,"radioButtonLength",null);
_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],v6.prototype,"handleUrlPrefix",null);_.A([_.R("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],v6.prototype,"displayHandle",null);_.A([_.R("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],v6.prototype,"displayHandleUrl",null);_.A([_.R("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],v6.prototype,"warningText",null);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],v6.prototype,"darkerDarkTheme",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],v6.prototype,"ytRendererBehavior",void 0);v6=_.A([_.U({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],v6);
_.Q(v6,"ytd-handles-claiming-select-dialog-content",function(){if(AcB!==void 0)return AcB;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return AcB=r},{mode:1});var Gt6;var KC=function(){var r=_.y.apply(this,arguments)||this;r.actionButtonOverride={style:"mono",type:"filled",size:"M"};r.cancelButtonOverride={style:"mono",type:"text",size:"M"};r.initialRadioIndex="-1";r.selectButtonDisabled=!1;r.isLoading=!1;r.selectedRadioIndexChanged=function(f){r.selectedRadioIndex=Number(f.detail.value)};
r.selectedHandleChanged=function(f){r.selectedHandle=f.detail.value};
r.darkerDarkTheme=_.N("web_darker_dark_theme");return r};
_.t(KC,_.y);_.l=KC.prototype;_.l.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.l.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.l.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.qy(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;_.Bj(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.onSelectHandle=function(){var r=this;if(this.selectedHandle!==void 0){var f;((f=this.data)==null?void 0:f.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(I,C){if(C.newHandleUpdateStatus!==void 0&&C.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&C.newHandleUpdateStatus.errorMessage)_.tx(r.hostElement,_.Rr(C.newHandleUpdateStatus.errorMessage)),
r.isLoading=!1;else{var Y;if((Y=r.data)==null?0:Y.onChannelUpdateSuccess){I=r.data.onChannelUpdateSuccess;C=_.F(I,_.Nh);var V;if(C==null?0:(V=C.popup)==null?0:V.handlesClaimingConfirmDialogRenderer)C.popup.handlesClaimingConfirmDialogRenderer.handle=_.iX(r.selectedHandle);r.ytComponentBehavior.resolveCommand(I);_.Bj(r.hostElement,"yt-close-popup-action",[r.is])}else r.isLoading=!1}},
onServerError:function(){if(r.selectedRadioIndex===r.radioButtonLength){var I;r.content&&((I=r.content)==null?0:I.handleInput)&&r.content.handleInput.validate()}r.isLoading=!1;_.tx(r.hostElement,_.VR("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 r,f;this.selectedHandle=(r=this.content)==null?void 0:(f=r.handleInput)==null?void 0:f.value}else this.selectedRadioIndex>=0&&((r=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(r==null?void 0:r.handle):this.selectedHandle=void 0)};
_.l.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.l.getRadioItem=function(r){if(this.radioButtonLength>r&&r>=0)return _.F(this.data.radioButton[r],CRU)};
_.OC.Object.defineProperties(KC.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var r;return(((r=this.data)==null?void 0:r.radioButton)||[]).length}}});
KC.prototype.onSelectedHandleChanged=KC.prototype.onSelectedHandleChanged;KC.prototype.onSelectedHandleIndexChanged=KC.prototype.onSelectedHandleIndexChanged;KC.prototype.onDataChanged=KC.prototype.onDataChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],KC.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],KC.prototype,"actionButtonOverride",void 0);_.A([_.K(),_.B("design:type",Object)],KC.prototype,"cancelButtonOverride",void 0);
_.A([_.K(),_.B("design:type",Object)],KC.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],KC.prototype,"initialRadioIndex",void 0);_.A([_.K(),_.B("design:type",Number)],KC.prototype,"selectedRadioIndex",void 0);_.A([_.K(),_.B("design:type",String)],KC.prototype,"selectedHandle",void 0);_.A([_.K(),_.B("design:type",Object)],KC.prototype,"selectButtonDisabled",void 0);_.A([_.K(),_.B("design:type",Object)],KC.prototype,"isLoading",void 0);
_.A([_.R("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],KC.prototype,"radioButtonLength",null);_.A([_.uA("ytd-handles-claiming-select-dialog-content"),_.B("design:type",Object)],KC.prototype,"content",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],KC.prototype,"onDataChanged",null);
_.A([_.Bt("selectedRadioIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],KC.prototype,"onSelectedHandleIndexChanged",null);_.A([_.Bt("selectedHandle"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],KC.prototype,"onSelectedHandleChanged",null);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],KC.prototype,"darkerDarkTheme",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],KC.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],KC.prototype,"ytRendererstamperBehavior",void 0);KC=_.A([_.U({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],KC);
_.Q(KC,"ytd-handles-claiming-select-dialog-renderer",function(){if(Gt6!==void 0)return Gt6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Gt6=r},{mode:1});var ktd;var BN6;var yl=function(){return _.y.apply(this,arguments)||this};
_.t(yl,_.y);yl.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],yl.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],yl.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],yl.prototype,"data",void 0);yl=_.A([_.U({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],yl);
_.Q(yl,"ytd-hotkey-dialog-section-option-renderer",function(){if(BN6!==void 0)return BN6;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return BN6=r},{mode:1});var qqB;var Ux=function(){return _.y.apply(this,arguments)||this};
_.t(Ux,_.y);Ux.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Ux.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ux.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Ux.prototype,"data",void 0);Ux=_.A([_.U({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Ux);
_.Q(Ux,"ytd-hotkey-dialog-section-renderer",function(){if(qqB!==void 0)return qqB;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return qqB=r},{mode:1});var sx=function(){var r=_.y.apply(this,arguments)||this;r.darkerDarkTheme=_.N("web_darker_dark_theme");return r};
_.t(sx,_.y);sx.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],sx.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],sx.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],sx.prototype,"darkerDarkTheme",void 0);sx=_.A([_.U({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],sx);
_.Q(sx,"ytd-hotkey-dialog-content",function(){if(ktd!==void 0)return ktd;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ktd=r},{mode:1});var uu6;var Ox=function(){return _.y.apply(this,arguments)||this};
_.t(Ox,_.y);Ox.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var r=document.querySelector("ytd-hotkey-dialog-content #scrollable");r&&(r.dialogElement=this.hostElement.parentElement)};
Ox.prototype.onCloseTap=function(){_.Bj(this.hostElement,"yt-close-popup-action")};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ox.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Ox.prototype,"data",void 0);Ox=_.A([_.U({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Ox);
_.Q(Ox,"ytd-hotkey-dialog-renderer",function(){if(uu6!==void 0)return uu6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return uu6=r},{mode:1});var D5d;var o4=function(){return _.y.apply(this,arguments)||this};
_.t(o4,_.y);o4.prototype.onYtServiceRequestError=function(){if(this.blocked){var r;var f=(r=this.data)==null?void 0:r.defaultServiceEndpoint}else{var I;f=(I=this.data)==null?void 0:I.toggledServiceEndpoint}var C;(f=(C=_.F(f,_.tmg))==null?void 0:C.onFailureAction)&&this.ytComponentBehavior.resolveCommand(f);this.updateBlockState(!this.blocked)};
o4.prototype.onYtToggleButton=function(r){this.updateBlockState(r.detail.toggled)};
o4.prototype.updateBlockState=function(r){if(r!==this.blocked){var f=this.blockedEntityKey;f&&this.ytdReduxBehavior.dispatch(_.hv("blockStateEntity",f,{key:f,blocked:r}));this.set("data.isToggled",r)}};
_.OC.Object.defineProperties(o4.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)}}});
o4.prototype.onYtToggleButton=o4.prototype.onYtToggleButton;o4.prototype.onYtServiceRequestError=o4.prototype.onYtServiceRequestError;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],o4.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],o4.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],o4.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],o4.prototype,"blockedEntityKey",void 0);
_.A([_.K({selectorArgs:["blockedEntityKey"],selector:function(r,f){return _.f2(r.entities,"blockStateEntity",f)}}),
_.B("design:type",Object)],o4.prototype,"blockStateEntity",void 0);_.A([_.R("data","blockStateEntity"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],o4.prototype,"blocked",null);_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],o4.prototype,"onYtServiceRequestError",null);
_.A([_.kO("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],o4.prototype,"onYtToggleButton",null);o4=_.A([_.U({is:"ytd-block-button",disableElementRegistration:!0})],o4);
_.Q(o4,"ytd-block-button",function(){if(D5d!==void 0)return D5d;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return D5d=r},
{mode:1});var rIp;var fMp;var Ql=function(){return _.y.apply(this,arguments)||this};
_.t(Ql,_.y);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Ql.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Ql.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Ql.prototype,"data",void 0);Ql=_.A([_.U({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],Ql);
_.Q(Ql,"ytd-kids-blocklist-picker-item-renderer",function(){if(fMp!==void 0)return fMp;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return fMp=r},{mode:1});var AD=function(){return _.y.apply(this,arguments)||this};
_.t(AD,_.y);AD.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],AD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],AD.prototype,"data",void 0);AD=_.A([_.U({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],AD);
_.Q(AD,"ytd-kids-blocklist-picker-content",function(){if(rIp!==void 0)return rIp;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return rIp=
r},{mode:_.QQ("kevlar_poly_si_batch_j025")?1:2});var IMi;var Zl=function(){var r=_.y.apply(this,arguments)||this;r.hasAnyRequestSucceeded=!1;r.hasAnyRequestFailed=!1;r.numPendingRequests=0;return r};
_.t(Zl,_.y);_.l=Zl.prototype;_.l.attached=function(){this.hostElement.setAttribute("dialog","")};
_.l.onDoneButtonTap=function(){_.Bj(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(r){var f,I;if(((f=r.detail)==null?void 0:(I=f.popup)==null?void 0:I.is)==="tp-yt-paper-dialog"){var C;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((C=this.data)==null?0:C.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.Ur(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
Zl.prototype.onPopupClosed=Zl.prototype.onPopupClosed;Zl.prototype.onYtServiceRequestError=Zl.prototype.onYtServiceRequestError;Zl.prototype.onYtServiceRequestCompleted=Zl.prototype.onYtServiceRequestCompleted;Zl.prototype.onYtServiceRequestSent=Zl.prototype.onYtServiceRequestSent;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Zl.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Zl.prototype,"ytRendererBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],Zl.prototype,"data",void 0);_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zl.prototype,"onYtServiceRequestSent",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zl.prototype,"onYtServiceRequestCompleted",null);
_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zl.prototype,"onYtServiceRequestError",null);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Zl.prototype,"onPopupClosed",null);Zl=_.A([_.U({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],Zl);
_.Q(Zl,"ytd-kids-blocklist-picker-renderer",function(){if(IMi!==void 0)return IMi;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return IMi=r},{mode:1});var CFB;var YJ6;var G0=function(){return _.y.apply(this,arguments)||this};
_.t(G0,_.y);G0.prototype.setTip=function(r){var f=this;this.data&&(this.tip=AKs(oJd.getInstance(),r,this.data),_.UC(this,function(){_.kA(f.hostElement,"yt-refit")}))};
G0.prototype.clearTip=function(){this.tip=void 0};
G0.prototype.computeHidden=function(r){return!r};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],G0.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],G0.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.B("design:type",Boolean)],G0.prototype,"hidden",void 0);_.A([_.K(),_.B("design:type",Object)],G0.prototype,"tip",void 0);G0=_.A([_.U({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],G0);
_.Q(G0,"ytd-menu-popup-tip-renderer",function(){if(YJ6!==void 0)return YJ6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);
return YJ6=r},{mode:1});var lMd;var ks=function(){var r=_.y.apply(this,arguments)||this;r.useIcons=!1;r.systemIcons=_.N("kevlar_system_icons");r.useListItemStyles=_.N("web_list_item_style_for_menu_items");return r};
_.t(ks,_.y);_.l=ks.prototype;_.l.onFocus=function(){var r;(r=_.e(this.hostElement).querySelector("tp-yt-paper-item"))==null||r.focus()};
_.l.onTap=function(){var r=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(r&&_.F(r,_.Il))this.componentBehavior.resolveCommand(r),this.updateToggledStateInEntity();else if(r){this.componentBehavior.resolveCommand(r)||_.a().resolve(_.Gg).resolveCommand(r,{form:{element:this.hostElement}});var f;((f=_.F(r,_.YI))==null?void 0:f.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 r=this.data.toggleMenuServiceItemEntityKey,f=!this.data.isToggled;r&&this.ytdReduxBehavior.dispatch(_.hv("toggleMenuServiceItemEntity",r,{key:r,isToggled:f}))};
_.l.computeIcon=function(r,f,I){return(r=r?I:f)&&r.iconType?_.kN(r.iconType):""};
_.l.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.l.isIconActive=function(r){return!_.N("toggle_menu_active_icon_killswitch")&&r};
_.OC.Object.defineProperties(ks.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return((r=this.data)==null?0:r.isToggled)?(f=this.data)==null?void 0:f.toggledText:(I=this.data)==null?void 0:I.defaultText}}});
ks.prototype.toggledStateEntityChanged=ks.prototype.toggledStateEntityChanged;ks.prototype.onYtServiceRequestCompleted=ks.prototype.onYtServiceRequestCompleted;ks.prototype.onTap=ks.prototype.onTap;ks.prototype.onFocus=ks.prototype.onFocus;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ks.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],ks.prototype,"componentBehavior",void 0);
_.A([_.J(_.PH),_.B("design:type",Object)],ks.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],ks.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ks.prototype,"useIcons",void 0);_.A([_.K({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.B("design:type",String)],ks.prototype,"icon",void 0);
_.A([_.K({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(r,f){return _.f2(r.entities,"toggleMenuServiceItemEntity",f)}}),
_.B("design:type",Object)],ks.prototype,"toggleMenuServiceItemEntity",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ks.prototype,"systemIcons",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],ks.prototype,"useListItemStyles",void 0);_.A([_.kO("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ks.prototype,"onFocus",null);
_.A([_.R("data.isToggled"),_.B("design:type",Object),_.B("design:paramtypes",[])],ks.prototype,"toggleButtonText",null);_.A([_.kO("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ks.prototype,"onTap",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ks.prototype,"onYtServiceRequestCompleted",null);
_.A([_.Bt("toggleMenuServiceItemEntity.isToggled","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ks.prototype,"toggledStateEntityChanged",null);ks=_.A([_.U({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],ks);
_.Q(ks,"ytd-toggle-menu-service-item-renderer",function(){if(lMd!==void 0)return lMd;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return lMd=r},{mode:1});var V9U;var B6=function(){return _.y.apply(this,arguments)||this};
_.t(B6,_.y);B6.prototype.onFocus=function(){var r;(r=_.e(this.hostElement).querySelector("tp-yt-paper-item"))==null||r.focus()};
_.OC.Object.defineProperties(B6.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.gn(this.data.iconUrl)}}});
B6.prototype.onFocus=B6.prototype.onFocus;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],B6.prototype,"rendererBehavior",void 0);_.A([_.J(_.DG.YtEndpointBehavior),_.B("design:type",Object)],B6.prototype,"ytEndpointBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],B6.prototype,"data",void 0);_.A([_.kO("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],B6.prototype,"onFocus",null);
_.A([_.R("data.iconUrl"),_.B("design:type",Object),_.B("design:paramtypes",[])],B6.prototype,"imageSource",null);B6=_.A([_.U({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],B6);
_.Q(B6,"ytd-menu-custom-icon-item-renderer",function(){if(V9U!==void 0)return V9U;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return V9U=r},{mode:_.QQ("kevlar_poly_si_batch_j028")?1:2});_.Kv(_.MF,"yt-list-item-view-model",{props:{data:_.jv,isMenuItem:_.jv,isCompact:_.jv,onTap:_.vI,trailingAccessory:_.vI,hideSelectionTextChevron:_.jv,disabled:_.jv,inPopup:_.jv,disableHorizontalPadding:_.jv,isOverlay:_.jv}});var qE=function(){var r=_.y.apply(this,arguments)||this;r.disableBackdropFilter=_.N("web_disable_backdrop_filter");return r};
_.t(qE,_.y);_.l=qE.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(r){return r};
_.l.onPopupOpened=function(){this.items.selected=0;for(var r=_.E(_.e(this.items).children),f=r.next();!f.done;f=r.next())f.value.popupPositionTarget=this.positionTarget;if(r=this.popupTip||void 0)r.setTip(this.source||""),this.source=void 0;this.veData&&(r=_.t1())&&_.j_(r,[this.veData])};
_.l.onPopupClosed=function(){var r=this.popupTip||void 0;r&&r.clearTip()};
_.l.onIronActivate=function(r){this.shouldPersist(r)||_.Bj(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(r=_.t1())&&_.im(r,this.veData)};
_.l.shouldPersist=function(r){var f,I;if(((f=r.detail)==null?void 0:f.selected)===void 0||(I=this.data)==null||!I.items)return!1;var C,Y;return!((Y=(C=this.data.items[r.detail.selected])==null?void 0:C.toggleMenuServiceItemRenderer)==null||!Y.persistentOnMenuPopup)};
_.l.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(r){return r.menuNavigationItemRenderer?!!r.menuNavigationItemRenderer.icon:r.menuServiceItemRenderer?!!r.menuServiceItemRenderer.icon:r.menuConditionalServiceItemRenderer?!!r.menuConditionalServiceItemRenderer.icon:r.menuConditionalNavigationItemRenderer?!!r.menuConditionalNavigationItemRenderer.icon:r.toggleMenuServiceItemRenderer?!!r.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
qE.prototype.onPopupClosed=qE.prototype.onPopupClosed;qE.prototype.onPopupOpened=qE.prototype.onPopupOpened;_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],qE.prototype,"ytEventForwardingBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],qE.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],qE.prototype,"ytRendererBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],qE.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],qE.prototype,"veData",void 0);_.A([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.B("design:type",String)],qE.prototype,"ariaLabel",void 0);_.A([_.K({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],qE.prototype,"useIcons",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],qE.prototype,"disableBackdropFilter",void 0);_.A([_.uA("#items"),_.B("design:type",Object)],qE.prototype,"items",void 0);_.A([_.uA("ytd-menu-popup-tip-renderer"),_.B("design:type",Object)],qE.prototype,"popupTip",void 0);_.A([_.kO("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qE.prototype,"onPopupOpened",null);
_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qE.prototype,"onPopupClosed",null);qE=_.A([_.U({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],qE);
_.Q(qE,"ytd-menu-popup-renderer",function(){if(CFB!==void 0)return CFB;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return CFB=r},{mode:1});var Eh1;var SJB=_.Hc(function(r){r=_.jS(r,{icon:void 0});var f=r.data;r=r.icon;var I=function(){return f().iconBadgeText},C={},Y=_.qd("yt-spec-icon-badge-shape",function(){a:switch(f().iconBadgeType){case "notification":var V="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":V="yt-spec-icon-badge-shape--type-cart";break a;default:V=""}return V},function(){a:switch(f().iconBadgeStyle){case "overlay":var V="yt-spec-icon-badge-shape--style-overlay";
break a;default:V=""}return V},(C["yt-spec-icon-badge-shape--text-size-small"]=function(){var V=I();
return!!((V==null?0:V.length)&&V.length>2)},C));
return _.p("yt-icon-badge-shape",null,_.p(_.M,{cond:r,then:function(V){return _.p("div",{class:Y},_.p("div",{class:"yt-spec-icon-badge-shape__icon"},_.p(_.V2,{icon:V})),_.p(_.M,{cond:I,then:function(S){return _.p("div",{class:"yt-spec-icon-badge-shape__badge"},S)}}))}}))},"ig");
SJB.idomCompat=!0;_.Kv(SJB,"yt-icon-badge-shape",{props:{data:_.jv,icon:_.jv}});var u9=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};r.unseenCount=0;r.isOverlay=!1;return r};
_.t(u9,_.y);_.l=u9.prototype;_.l.attached=function(){var r=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(f){r.onServiceWorkerMessage(f)})};
_.l.onDataChanged=function(){this.isAttached&&!this.JSC$18162_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18162_lastData=this.data};
_.l.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.l.computeIcon=function(){var r,f;return(r=this.data)==null?void 0:(f=r.icon)==null?void 0:f.iconType};
_.l.onServiceWorkerMessage=function(r){r.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&&!!_.F(this.data.updateUnseenCountEndpoint,_.YI)&&_.F(this.data.updateUnseenCountEndpoint,_.YI).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.l.handleUpdateNotificationsUnseenCountAction=function(r){var f=this;r=_.F(r,GdB);r!=null&&r.unseenCount&&r.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(r.unseenCount),_.F_.addLowPriorityJob(function(){f.data.updateUnseenCountEndpoint&&f.ytComponentBehavior.resolveCommand(f.data.updateUnseenCountEndpoint)},r.timeoutMs))};
_.l.onClick=function(){_.kA(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var r=_.qy(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),f=this.data.menuRequest;r&&r.length===1&&r[0]?_.Bj(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):f&&this.ytComponentBehavior.resolveCommand(f)};
_.l.handleTopbarMenuClosedAction=function(r){r==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.l.toggleIconState=function(r){this.iconButton&&(this.iconButton.pressed=r)};
_.l.sendUnseenCountRequest=function(r){var f=this;_.dp(_.F_,function(){f.ytComponentBehavior.resolveCommand(r)})};
_.l.updateCountUI=function(r){this.set("unseenCount",r<9?r:"9+")};
_.OC.Object.defineProperties(u9.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
u9.prototype.handleUpdateNotificationsUnseenCountAction=u9.prototype.handleUpdateNotificationsUnseenCountAction;u9.prototype.onDataChanged=u9.prototype.onDataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],u9.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],u9.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.RO),_.B("design:type",Object)],u9.prototype,"ytdOpenPopupBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],u9.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],u9.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],u9.prototype,"unseenCount",void 0);_.A([_.K(),_.B("design:type",Object)],u9.prototype,"isOverlay",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],u9.prototype,"showTooltips",void 0);_.A([_.uA("yt-icon-button"),_.B("design:type",Object)],u9.prototype,"iconButton",void 0);
_.A([_.R("unseenCount"),_.B("design:type",Object),_.B("design:paramtypes",[])],u9.prototype,"showNotificationCount",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],u9.prototype,"onDataChanged",null);_.A([_.kO("yt-update-notifications-unseen-count-action"),_.B("design:type",Function),_.B("design:paramtypes",[Object]),_.B("design:returntype")],u9.prototype,"handleUpdateNotificationsUnseenCountAction",null);
u9=_.A([_.U({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],u9);
_.Q(u9,"ytd-notification-topbar-button-renderer",function(){if(Eh1!==void 0)return Eh1;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Eh1=r},{mode:_.QQ("kevlar_poly_si_batch_j025")?1:2});var xPi;var Dl=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return r};
_.t(Dl,_.y);Dl.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}}}}}};
Dl.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
Dl.prototype.onDarkModeToggled=function(r){this.dark=r};
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Dl.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Dl.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Dl.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Dl.prototype,"data",void 0);_.A([_.K({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],Dl.prototype,"dark",void 0);
Dl=_.A([_.U({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],Dl);
_.Q(Dl,"yt-pdg-buy-flow-header-renderer",function(){if(xPi!==void 0)return xPi;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return xPi=r},{mode:1});var hX7;var wg1;var r1=function(){var r=_.y.apply(this,arguments)||this;r.immediateValue=0;r.isDarkTheme=!1;r.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return r};
_.t(r1,_.y);_.l=r1.prototype;_.l.created=function(){_.Hq.requestAvailability()};
_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.dataChanged=function(){var r=_.e(this.hostElement).querySelector("#color-slider");r.immediateValue&&this.updateSliderKnobAndGradientStyles(r.immediateValue);this.data.notches[0].knobColorArgb&&_.Zh(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.g_(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Lz("HTML_DIR")==="rtl"&&_.e(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.l.onSliderImmediateChange=function(){var r=_.e(this.hostElement).querySelector("#color-slider");r.dragging&&(r.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(r.immediateValue),this.updateSliderKnobAndGradientStyles(r.immediateValue)),this.updateSliderAria())};
_.l.onSliderChange=function(){var r=_.e(this.hostElement).querySelector("#color-slider");r.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(r.immediateValue),this.updateSliderKnobAndGradientStyles(r.immediateValue));this.updateSliderAria()};
_.l.updateSliderAria=function(){var r=_.e(this.hostElement).querySelector("#color-slider"),f=_.e(this.hostElement).querySelector("#color-slider");f=_.Rr(this.data.notches[f.immediateValue].tierValue);_.jK()&&_.kA(this.hostElement,"iron-announce",{text:f});r.setAttribute("aria-valuetext",f)};
_.l.updateSuperThanksSelectedTierEntity=function(r){if(r!==this.immediateValue){var f,I,C=this==null?void 0:(f=this.data)==null?void 0:(I=f.superThanksSelectedTierEntity)==null?void 0:I.key;C&&C.length>0&&this.ytdReduxBehavior.dispatch(_.hv("superThanksSelectedTierEntity",C,{key:C,index:r}))}};
_.l.onDarkModeToggledAction=function(r){this.isDarkTheme=r};
_.l.updateSliderKnobAndGradientStyles=function(r){this.immediateValue=r;r=this.data.notches[r];if(r==null?0:r.knobColorArgb)var f={"--ytd-pdg-color-slider-knob-color":_.g_(r.knobColorArgb)};(r==null?0:r.linearGradientCssStyle)&&f!==null&&(f=Object.assign({},f,{"--ytd-pdg-color-slider-active-color":r==null?void 0:r.linearGradientCssStyle}));f!==null&&_.Zh(this.hostElement,f)};
r1.prototype.onSliderChange=r1.prototype.onSliderChange;r1.prototype.onSliderImmediateChange=r1.prototype.onSliderImmediateChange;r1.prototype.dataChanged=r1.prototype.dataChanged;_.A([_.K(),_.B("design:type",Object)],r1.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],r1.prototype,"immediateValue",void 0);_.A([_.K(),_.B("design:type",Number)],r1.prototype,"maxMarkers",void 0);
_.A([_.K({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:qe6}),_.B("design:type",Object)],r1.prototype,"superThanksSelectedTierEntity",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],r1.prototype,"isDarkTheme",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],r1.prototype,"ytdReduxBehavior",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],r1.prototype,"dataChanged",null);
_.A([_.kO("immediate-value-change"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],r1.prototype,"onSliderImmediateChange",null);_.A([_.kO("change"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],r1.prototype,"onSliderChange",null);r1=_.A([_.U({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],r1);
_.Q(r1,"ytd-pdg-color-slider-renderer",function(){if(wg1!==void 0)return wg1;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return wg1=r},{mode:1});var bB2;var pgY;var fb=null;
_.wm({is:"ytd-comment-input",_template:function(){if(pgY!==void 0)return pgY;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return pgY=r},
behaviors:[_.X3K.YtHostElementBehavior,_.dx,_.tK.YtComponentBehavior,_.On.YtRendererstamperBehavior,_.lrC.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 _.ti}},
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",_.GF(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;_.V8();this.focus()},
detached:function(){document.removeEventListener("tap",_.GF(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(r){r=r.detail;r=r.isCustomEmoji?r.shortcuts[0]:r.emojiId;var f=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(f,r);this.maybeUpdateTextDirection_();_.kA(this.hostElement,"input")},
getInputRange_:function(){var r=_.nH();if(r){r=r.getBrowserRangeObject();for(var f=r.commonAncestorContainer;f;){if(f===this.getEditableTextArea_())return r;f=f.parentNode}}r=this.getEditableTextArea_();r=_.L6(r,r.childNodes.length);r.select();return r.getBrowserRangeObject()},
insertTextWithEmojis_:function(r,f,I){(f=this.emojiManager.createDocumentFragment(f,!0,!1,I===void 0?!0:I))&&f.childNodes.length!==0&&(r.collapsed||r.deleteContents(),I=f.lastChild,r.insertNode(f),_.k3B(I).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var r=_.nH();if(r){var f=r.JSC$9151_getStartNode(),I=r.JSC$9151_getEndNode();if(vx2(f)&&vx2(I)){var C=r.JSC$9151_getStartOffset(),Y;if(_.Sg&&f.nodeType===Node.ELEMENT_NODE&&(Y=_.Vd8(f)))_.L6(Y,0).select();else{Y=AM(f)?f:_.mI(f,AM);var V=AM(I)?I:_.mI(I,AM);if(Y||V)if(r.isCollapsed()){if(f.nodeType===Node.TEXT_NODE){r=!0;C===f.length&&(r=!1);if(fb==="end"||fb==="right")r=!1;f=f.parentNode;r=[].concat(_.Na(f.parentNode.childNodes)).indexOf(f)+(r?0:1);_.L6(f.parentNode,r).select()}}else Y?
Y.previousSibling&&Y.previousSibling.length>0?_.mm(I,r.JSC$9151_getEndOffset(),Y.previousSibling,Y.previousSibling.length-1).select():(f=document.createTextNode("\u200b"),Y.parentNode.insertBefore(f,Y),_.mm(I,r.JSC$9151_getEndOffset(),f,0).select()):V&&(V.nextSibling&&V.nextSibling.length>0?_.mm(f,r.JSC$9151_getStartOffset(),V.nextSibling,1).select():(I=document.createTextNode("\u200b"),V.parentNode.insertBefore(I,V.nextSibling),_.mm(f,r.JSC$9151_getStartOffset(),I,I.length).select()));fb=null}}else fb=
null}else fb=null},
leftKeyPressed_:function(){fb="left"},
rightKeyPressed_:function(){fb="right"},
endKeyPressed_:function(){fb="end"},
maybeDeleteChip_:function(){var r=ox3(!0);if(r){var f=_.nH(),I=f.JSC$9151_getStartNode();f=f.JSC$9151_getStartOffset();_.PK(I,f,r,r.childNodes.length).select()}},
maybeBackspaceChip_:function(){var r=ox3(!1);if(r){var f=_.nH(),I=f.JSC$9151_getStartNode();f=f.JSC$9151_getStartOffset();_.PK(I,f,r,0).select()}},
maybeBackspaceChipWordMode_:function(r){var f=_.nH();if(f.isCollapsed()){var I=f.JSC$9151_getStartNode();f=f.JSC$9151_getStartOffset();var C=Qr3(I,f,!0);C&&(_.PK(I,f,C,0).select(),document.execCommand("delete"),r.preventDefault(),r.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(r){var f=_.nH();if(f.isCollapsed()){var I=f.JSC$9151_getStartNode();f=f.JSC$9151_getStartOffset();var C=Qr3(I,f,!1);C&&(_.PK(I,f,C,C.childNodes.length).select(),document.execCommand("delete"),r.preventDefault(),r.stopImmediatePropagation())}},
onContentClick:function(r){r.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(r){r.defaultPrevented||r.currentTarget.tagName==="YTD-COMMENT-INPUT"&&AM(r.target)&&r.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.e(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.e(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(r,f){r=yQp(r,this.emojiManager,f).cloneNode(!0);for(f=r.firstChild;f;)if(f.nodeType!==1)f=f.nextSibling;else switch(f.tagName){case "BR":var I=_.FW();_.ni8(I,f);f=I.nextSibling;break;case "DIV":(I=f.lastChild)&&f.nextSibling&&_.cY(_.FW(),I);f.previousSibling&&(f.previousSibling.nodeType===1||f.previousSibling.nodeType===3&&!f.previousSibling.textContent.endsWith("\n"))&&_.T1(_.FW(),f);I&&I.nodeName==="BR"&&_.bE(I);I=f;f.hasChildNodes()?(f=f.firstChild,
_.d6B(I)):(f=f.nextSibling,_.bE(I));break;default:f=f.nextSibling}return AQU(r)},
setTextAreaValue:function(r){r||(r="");var f=this.getEditableFormattedString_();f.text="";this.getEditableTextArea_().innerText="";typeof r==="string"&&(r={runs:[{text:r}]});f.text=r},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();fb=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var r=this.getEditableTextArea_();r&&(_.L6(r,r.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Lz("HTML_DIR")==="rtl"){var r=this.getEditableTextArea_(),f=this.getTextAreaValue()!==""?"auto":"rtl";r.setAttribute("dir",f)}},
handleInputEvent_:function(){var r=null;if(this.isEmojiButtonDisplayed){var f=this.getInputRange_();f&&(r=this.emojiInput.retrieveTextBeforeRange(f))}this.insertText_(r,!0);this.updateCharCount_();r=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=r.scrollHeight>r.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var r=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:r})},
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(r){this.isEmojiButtonDisplayed&&(r.preventDefault(),r.stopImmediatePropagation(),r=r.clipboardData.getData("text/plain"),this.insertText_(r,!1,!1),_.kA(this.hostElement,"input"))},
insertText_:function(r,f,I){f=f===void 0?!1:f;I=I===void 0?!0:I;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&r){var C=this.getInputRange_().cloneRange();this.emojiManager&&C&&(f&&this.emojiInput.offsetStartOfRangeBy(C,r.length),this.insertTextWithEmojis_(C,r,I),KQi(this.getEditableTextArea_().lastChild)||(C=this.getInputRange_().cloneRange()),C&&(this.emojiInput.updateSuggestions(C,r),this.updateSuggestionOffset_(C)))}},
getSimpleString:_.Rr,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(r){return r?"focused":"not-focused"},
computePlaceholderText_:function(r){return this.getSimpleString(r)},
computeEditableText_:function(r){return this.getSimpleString(r)},
onPrefilledContentDismissed_:function(r){r.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(r,f){r?this.fire("yt-autonav-pause-focus"):f!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(r){var f=this.getEditableTextArea_();[].concat(_.Na(r.dataTransfer.items)).forEach(function(I){I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(C){f.appendChild(document.createTextNode(C))})});
r.preventDefault()},
preventDefault_:function(r){r.preventDefault()},
onSuggestionInsert_:function(r){this.insertTextWithEmojis_(r.detail.range,r.detail.text)},
onEmojiSuggestionClick_:function(r){this.emojiInput.insertSuggestion(r.detail)},
updateSuggestionOffset_:function(r){if(this.emojiInput&&_.e(this.emojiInput).querySelector("#dropdown")){var f=this.getEditableTextArea_().getBoundingClientRect().bottom,I=r.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(f-I)+5;f=this.getEditableTextArea_().getBoundingClientRect().left;r=r.getBoundingClientRect().left-f;_.e(this.emojiInput).querySelector("#dropdown").style.marginLeft=r+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.WW("yt-post"));return this.localStorage}});var I$=function(){var r=_.y.apply(this,arguments)||this;r.currentCommentOptionIndex=0;r.isEmojiPickerDisplayed=!1;r.emojiManager=_.ti;r.isUgcEmpty=!1;r.userGeneratedCommentChangedHandler=function(){_.kA(r.hostElement,"ytd-pdg-user-generated-comment-changed");r.isEmojiYtdCommentInputEnabled&&(r.isUgcEmpty=!r.ytdCommentInputEl.getTextAreaValue())};
r.pasteHandler=function(f){f.preventDefault();f.stopImmediatePropagation();var I;if(f=(I=f.clipboardData)==null?void 0:I.getData("text/plain"))I=document.getSelection().getRangeAt(0),I.collapsed||I.deleteContents(),f=document.createTextNode(f),I.insertNode(f),I.selectNodeContents(f),I.collapse(!1),f=window.getSelection(),f.removeAllRanges(),f.addRange(I)};
r.onDocumentClick=function(f){if(r.isEmojiPickerDisplayed){var I,C,Y;!(f.target instanceof Node)||(I=f.composedPath())!=null&&I.includes(r.editableTextEl)||(C=f.composedPath())!=null&&C.includes(r.emojiButtonEl)||(Y=f.composedPath())!=null&&Y.includes(r.emojiPickerEl)||(r.isEmojiPickerDisplayed=!1)}};
return r};
_.t(I$,_.y);_.l=I$.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 r;(r=this.contentEl)==null||r.removeEventListener("input",this.userGeneratedCommentChangedHandler);var f;(f=this.contentEl)==null||f.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 r;this.contentEl.textContent=this.rendererBehavior.getSimpleString((r=this.data)==null?void 0:r.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.l.reloadEmojis=function(){this.emojiPickerEl&&_.F(this.emojiPicker,_.RWB)&&this.emojiPickerEl.updateEmojiCategories()};
_.l.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Zh(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.l.handleBackgroundColorStyling=function(){var r;if((r=this.currentCommentOption)==null?0:r.commentBackgroundColorArgb){var f;_.Zh(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.g_((f=this.currentCommentOption)==null?void 0:f.commentBackgroundColorArgb)})}else _.Zh(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 r;(r=this.contentEl)==null||r.focus()}};
_.l.onEditButtonClick=function(r){var f=document.getSelection();f&&this.contentEl&&(r.stopPropagation(),r.preventDefault(),f.selectAllChildren(this.contentEl),f.collapseToEnd())};
_.l.onContentDrop=function(r){var f=this;if(r.dataTransfer){r=_.E(r.dataTransfer.items);for(var I=r.next();!I.done;I=r.next())I=I.value,I.kind==="string"&&I.type.match("^text/plain")&&I.getAsString(function(C){var Y;(Y=f.contentEl)==null||Y.appendChild(document.createTextNode(C))})}};
_.l.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.l.getUserGeneratedCommentText=function(){var r,f=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(r=this.contentEl)==null?void 0:r.textContent;return f?f.trim():""};
_.l.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.l.onEmojiSelect=function(r){this.ytdCommentInputEl.onEmojiSelect(r)};
_.OC.Object.defineProperties(I$.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.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 r;return!((r=this.currentCommentOption)==null||!r.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var r;if(_.F((r=this.currentCommentOption)==null?void 0:r.chipRenderer,_.Z6q)){var f;return _.F((f=this.currentCommentOption)==null?void 0:f.chipRenderer,_.Z6q)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var r,f;return((r=this.data)==null?0:r.commentOptionRenderers)?_.F((f=this.data)==null?void 0:f.commentOptionRenderers[this.superThanksSelectedTierEntity.index],X_6):void 0}var I,C;return((I=this.data)==null?0:I.commentOptionRenderers)?_.F((C=this.data)==null?void 0:C.commentOptionRenderers[this.currentCommentOptionIndex],X_6):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var r;return this.rendererBehavior.getSimpleString((r=this.data)==null?void 0:r.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var r;return this.rendererBehavior.getSimpleString((r=this.data)==null?void 0:r.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var r,f;return(f=_.F((r=this.data)==null?void 0:r.commentDialog,_.WYX))==null?void 0:f.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var r,f;return(f=_.F((r=this.data)==null?void 0:r.commentDialog,_.WYX))==null?void 0:f.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var r,f;return(f=_.F((r=this.data)==null?void 0:r.commentDialog,_.WYX))==null?void 0:f.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var r,f,I=(f=_.F((r=this.data)==null?void 0:r.commentDialog,_.WYX))==null?void 0:f.emojiPicker;if(!_.F(I,_.RWB)||!_.F(I,_.RWB).categories)return!1;r=function(V){return V.emojiPickerCategoryRenderer?V.emojiPickerCategoryRenderer.emojiIds&&V.emojiPickerCategoryRenderer.emojiIds.length>0:V.emojiPickerUpsellCategoryRenderer?V.emojiPickerUpsellCategoryRenderer.emojis&&V.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var C,Y;return((C=_.F(I,_.RWB))==null?0:(Y=C.categories)==null?0:Y.find(r))?!0:!1}}});
I$.prototype.onEmojiSelect=I$.prototype.onEmojiSelect;I$.prototype.dataChanged=I$.prototype.dataChanged;I$.prototype.currentCommentOptionChanged=I$.prototype.currentCommentOptionChanged;_.A([_.J(_.PH),_.B("design:type",Object)],I$.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],I$.prototype,"rendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],I$.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.uA("#content-dom-if"),_.B("design:type",_.px)],I$.prototype,"contentDomIfEl",void 0);_.A([_.uA("#content-no-emojis"),_.B("design:type",HTMLElement)],I$.prototype,"contentEl",void 0);_.A([_.uA("#container"),_.B("design:type",HTMLElement)],I$.prototype,"containerEl",void 0);_.A([_.uA("#comment-chip-container"),_.B("design:type",HTMLElement)],I$.prototype,"paidCommentChipContainerEl",void 0);_.A([_.uA("#text-input"),_.B("design:type",HTMLElement)],I$.prototype,"editableTextEl",void 0);
_.A([_.uA("#emoji-button"),_.B("design:type",HTMLElement)],I$.prototype,"emojiButtonEl",void 0);_.A([_.uA("#emoji-picker > yt-emoji-picker-renderer"),_.B("design:type",Object)],I$.prototype,"emojiPickerEl",void 0);_.A([_.uA("#text-input > ytd-comment-input"),_.B("design:type",Object)],I$.prototype,"ytdCommentInputEl",void 0);_.A([_.K(),_.B("design:type",Object)],I$.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],I$.prototype,"currentCommentOptionIndex",void 0);
_.A([_.K({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:qe6}),_.B("design:type",Object)],I$.prototype,"superThanksSelectedTierEntity",void 0);_.A([_.K(),_.B("design:type",Object)],I$.prototype,"isEmojiPickerDisplayed",void 0);_.A([_.K(),_.B("design:type",Object)],I$.prototype,"emojiManager",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],I$.prototype,"isUgcEmpty",void 0);
_.A([_.Bt("currentCommentOption"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],I$.prototype,"currentCommentOptionChanged",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],I$.prototype,"dataChanged",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],I$.prototype,"isEmojiYtdCommentInputEnabled",null);
_.A([_.R("data.title"),_.B("design:type",Object),_.B("design:paramtypes",[])],I$.prototype,"title",null);_.A([_.R("data.authorText"),_.B("design:type",Object),_.B("design:paramtypes",[])],I$.prototype,"channelName",null);_.A([_.R("data.commentOptionRenderers","currentCommentOption"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],I$.prototype,"shouldShowPaidCommentChipRenderer",null);
_.A([_.R("data.commentOptionRenderers","currentCommentOption"),_.B("design:type",Object),_.B("design:paramtypes",[])],I$.prototype,"paidCommentChipRenderer",null);_.A([_.R("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],I$.prototype,"currentCommentOption",null);
_.A([_.R("data.defaultCommentText","superThanksSelectedTierEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],I$.prototype,"commentText",null);_.A([_.R("data.placeholderText"),_.B("design:type",Object),_.B("design:paramtypes",[])],I$.prototype,"placeholderText",null);_.A([_.R("data.commentDialog.commentDialogRenderer.editableText"),_.B("design:type",Object),_.B("design:paramtypes",[])],I$.prototype,"editableText",null);
_.A([_.R("data.commentDialog.commentDialogRenderer.emojiButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],I$.prototype,"emojiButton",null);_.A([_.R("data.commentDialog.commentDialogRenderer.emojiPicker"),_.B("design:type",Object),_.B("design:paramtypes",[])],I$.prototype,"emojiPicker",null);
_.A([_.R("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],I$.prototype,"isEmojiButtonDisplayed",null);_.A([_.kO("yt-emoji-select"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],I$.prototype,"onEmojiSelect",null);I$=_.A([_.U({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],I$);
_.Q(I$,"ytd-pdg-comment-preview-renderer",function(){if(bB2!==void 0)return bB2;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return bB2=r},{mode:2});var nhd;var Cb=function(){var r=_.y.apply(this,arguments)||this;r.selected=!1;return r};
_.t(Cb,_.y);_.l=Cb.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&&(_.Oi(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Zh(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.g_(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.g_(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(){_.kA(this.hostElement,"tap");this.onClick()};
_.l.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Cb.prototype.onClick=Cb.prototype.onClick;Cb.prototype.selectedChanged=Cb.prototype.selectedChanged;Cb.prototype.dataChanged=Cb.prototype.dataChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Cb.prototype,"componentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.dx),_.B("design:type",Object)],Cb.prototype,"ironA11yKeysBehavior",void 0);
_.A([_.J(_.TX),_.B("design:type",Object)],Cb.prototype,"ironSelectableBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Cb.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],Cb.prototype,"shownThumbnail",void 0);_.A([_.K(),_.B("design:type",Object)],Cb.prototype,"basePriceText",void 0);_.A([_.K(),_.B("design:type",Object)],Cb.prototype,"purchaseCommand",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Cb.prototype,"selected",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cb.prototype,"dataChanged",null);_.A([_.Bt("selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cb.prototype,"selectedChanged",null);_.A([_.kO("click"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cb.prototype,"onClick",null);
Cb=_.A([_.U({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],Cb);
_.Q(Cb,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(nhd!==void 0)return nhd;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return nhd=r},{mode:1});var Yz=function(){var r=_.y.apply(this,arguments)||this;r.selectedItemIndex=0;r.buyButtonDisabled=!1;return r};
_.t(Yz,_.y);_.l=Yz.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 r;var f=(r=_.F(this.data.colorSlider,a07))==null?void 0:r.notches[this.selectedItemIndex].purchaseCommand}else{var I;f=(I=_.F(this.data.selectableItemButtons[this.selectedItemIndex],$h3))==null?void 0:I.purchaseCommand}if(f){r=_.F(f,_.aGU);r.productData||(r.productData={});var C;r.productData={pdgData:{commentMessageText:(C=this.commentPreviewRenderer)==null?void 0:C.getUserGeneratedCommentText()}};
_.kA(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(f)}}};
_.l.dataChanged=function(){if(this.data){_.ti.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.Kfg(_.ti,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.ti.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var r;this.buyButtonDisabled=!((r=_.F(this.data.commentPreview,Na6))==null||!r.placeholderText);this.updatePriceSelectorStatus();var f;if((f=this.data)==null?0:f.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;r=[];this.data.preloadImages&&(r=this.data.preloadImages);
r=r.map(function(I){return _.yH(I.thumbnails,1920)});
r=_.E(r);for(f=r.next();!f.done;f=r.next())(f=f.value)&&_.Z0P(f).thenCatch(function(){_.t7(Error("jl"))})}};
_.l.superThanksSelectedTierEntityChanged=function(){var r;(this==null?void 0:(r=this.superThanksSelectedTierEntity)==null?void 0:r.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.l.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.l.updatePriceSelectorStatus=function(){this.isColorSlider?(_.e(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.e(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.e(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.e(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.l.closeBuyFlow=function(){_.Bj(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.l.onUserGeneratedContentChanged=function(){var r;this.buyButtonDisabled=!((r=this.commentPreviewRenderer)==null?0:r.getUserGeneratedCommentText())};
_.l.updateSelectedItemIndexFromBinding=function(r){this.selectedItemIndex=r.detail.value};
_.OC.Object.defineProperties(Yz.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var r;return!((r=this.data)==null||!r.disclaimerText)}}});
Yz.prototype.onUserGeneratedContentChanged=Yz.prototype.onUserGeneratedContentChanged;Yz.prototype.closeBuyFlow=Yz.prototype.closeBuyFlow;Yz.prototype.selectedItemIndexChanged=Yz.prototype.selectedItemIndexChanged;Yz.prototype.superThanksSelectedTierEntityChanged=Yz.prototype.superThanksSelectedTierEntityChanged;Yz.prototype.dataChanged=Yz.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Yz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Yz.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Yz.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],Yz.prototype,"selectedItemIndex",void 0);_.A([_.K(),_.B("design:type",Boolean)],Yz.prototype,"isColorSlider",void 0);
_.A([_.K(),_.B("design:type",Object)],Yz.prototype,"buyButtonDisabled",void 0);_.A([_.K({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:qe6}),_.B("design:type",Object)],Yz.prototype,"superThanksSelectedTierEntity",void 0);_.A([_.uA("ytd-pdg-comment-preview-renderer"),_.B("design:type",Object)],Yz.prototype,"commentPreviewRenderer",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],Yz.prototype,"ytdReduxBehavior",void 0);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Yz.prototype,"dataChanged",null);_.A([_.Bt("superThanksSelectedTierEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Yz.prototype,"superThanksSelectedTierEntityChanged",null);_.A([_.Bt("selectedItemIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Yz.prototype,"selectedItemIndexChanged",null);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Yz.prototype,"closeBuyFlow",null);_.A([_.kO("ytd-pdg-user-generated-comment-changed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Yz.prototype,"onUserGeneratedContentChanged",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Yz.prototype,"isDisclaimerTextShown",null);
Yz=_.A([_.U({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],Yz);
_.Q(Yz,"yt-super-vod-buy-flow-content-renderer",function(){if(hX7!==void 0)return hX7;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return hX7=r},{mode:1});var dP2;var l8=function(){var r=_.y.apply(this,arguments)||this;r.lottieAnimationRef={};return r};
_.t(l8,_.y);_.l=l8.prototype;_.l.created=function(){_.Hq.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.GF(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&&_.kA(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.l.detached=function(){this.autoCloseJobId&&_.F_.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.GF(this,this.onPopupIronOverlayOpened))};
_.l.dataChanged=function(){var r=this;this.data&&this.data.autoCloseDelay&&(_.Bj(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.oB(_.F_,function(){r.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Zh(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.l.onDOMLoadedLottie=function(){var r=this,f,I,C=Number((f=this.data)==null?void 0:(I=f.autoCloseDelay)==null?void 0:I.seconds)||0;this.fadeOutJobId=_.oB(_.F_,function(){r.lottiePlayerEl.classList.add("fadeout")},(C-.25)*1E3);
this.autoCloseJobId=_.oB(_.F_,function(){r.closePopup()},C*1E3)};
_.l.openPopup=function(){this.ironOverlayBehavior.open()};
_.l.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.Bj(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.rX(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.a().resolve(_.Gg).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.F_.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.F_.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.l.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var r,f;(r=this.lottieAnimationRef)==null||(f=r.lottieEl)==null||f.destroy();r=this.data.lottie;var I,C;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:r.url+"_"+Math.random(),path:r.url,autoplay:!0,loop:(C=(I=r.settings)==null?void 0:I.loop)!=null?C:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.OC.Object.defineProperties(l8.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var r,f;return!!((r=this.data)==null?0:(f=r.lottie)==null?0:f.url)}}});
l8.prototype.maybeInitializeLottie=l8.prototype.maybeInitializeLottie;l8.prototype.dataChanged=l8.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],l8.prototype,"rendererBehavior",void 0);_.A([_.J(_.ym),_.B("design:type",Object)],l8.prototype,"ironOverlayBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],l8.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],l8.prototype,"lottiePlayerProps",void 0);
_.A([_.K(),_.B("design:type",Object)],l8.prototype,"lottieAnimationRef",void 0);_.A([_.uA("ytd-lottie-player"),_.B("design:type",HTMLElement)],l8.prototype,"lottiePlayerEl",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],l8.prototype,"dataChanged",null);_.A([_.R("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],l8.prototype,"hasLottieAnimation",null);
_.A([_.Bt("data.lottie.url"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],l8.prototype,"maybeInitializeLottie",null);l8=_.A([_.U({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],l8);
_.Q(l8,"ytd-desktop-image-overlay-renderer",function(){if(dP2!==void 0)return dP2;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return dP2=r},{mode:1});var zX3;var V_=function(){return _.y.apply(this,arguments)||this};
_.t(V_,_.y);_.l=V_.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",_.GF(this,this.closePopup))};
_.l.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.GF(this,this.closePopup))};
_.l.dataChanged=function(){_.qy(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.F(this.data.header,g$6)&&(this.hasBackgroundBanner=!!_.F(this.data.header,g$6).backgroundBanner)};
_.l.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.GF(this,this.closePopup))};
_.l.closePopup=function(){this.data&&this.data.onCloseCommand&&_.Do(this.hostElement,[this.data.onCloseCommand])};
V_.prototype.handleBuyflowSelectionSubmitted=V_.prototype.handleBuyflowSelectionSubmitted;V_.prototype.dataChanged=V_.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],V_.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],V_.prototype,"data",void 0);
_.A([_.K({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],V_.prototype,"hasBackgroundBanner",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],V_.prototype,"dataChanged",null);_.A([_.kO("yt-pdg-buy-flow-selection-submitted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],V_.prototype,"handleBuyflowSelectionSubmitted",null);
V_=_.A([_.U({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],V_);
_.Q(V_,"ytd-pdg-buy-flow-renderer",function(){if(zX3!==void 0)return zX3;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return zX3=r},{mode:1});var M96;var E3=function(){var r=_.y.apply(this,arguments)||this;r.isOpen=!1;r.isPlaylistCreated=!1;return r};
_.t(E3,_.y);_.l=E3.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();_.kA(this.hostElement,"yt-refit")};
_.l.onCreateTap=function(){var r=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.Do(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(f,I){if(!_.N("killswitch_ep_in_create_playlist_response")&&(I==null?0:I.actions))for(f=_.E(I.actions),I=f.next();!I.done;I=f.next())I=I.value,_.F(I,_.Wa)&&r.ytComponentBehavior.resolveCommand(I)}}]),this.isPlaylistCreated=!0)};
_.l.onKeydown=function(r){if(r.keyCode===13)this.onCreateTap()};
_.l.onServiceRequestCompleted=function(r){r.stopPropagation();_.Bj(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.l.computePrivacyBadge=function(r){return r?[{metadataBadgeRenderer:r}]:[]};
E3.prototype.onServiceRequestCompleted=E3.prototype.onServiceRequestCompleted;E3.prototype.onKeydown=E3.prototype.onKeydown;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],E3.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],E3.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],E3.prototype,"isOpen",void 0);
_.A([_.K(),_.B("design:type",Object)],E3.prototype,"isPlaylistCreated",void 0);_.A([_.K({value:{REQUIRED_LABEL:_.VR("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.VR("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.B("design:type",Object)],E3.prototype,"addToStrings",void 0);_.A([_.K({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.B("design:type",Array)],E3.prototype,"privacyBadge",void 0);
_.A([_.uA("#privacy-input"),_.B("design:type",Object)],E3.prototype,"privacyInput",void 0);_.A([_.uA("#name-input"),_.B("design:type",Object)],E3.prototype,"nameInput",void 0);_.A([_.kO("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],E3.prototype,"onKeydown",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],E3.prototype,"onServiceRequestCompleted",null);
E3=_.A([_.U({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],E3);
_.Q(E3,"ytd-add-to-playlist-create-renderer",function(){if(M96!==void 0)return M96;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return M96=r},{mode:1});var ghB;var aMd;var S1=function(){var r=_.y.apply(this,arguments)||this;r.transferState="TRANSFER_STATE_UNKNOWN";return r};
_.t(S1,_.y);S1.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
S1.prototype.onCheckboxChange=function(r){var f=this;this.data&&_.Pc(this,"yt-playlist-checkbox-changed",function(){var I=_.jl(r).checked?f.data.addToPlaylistServiceEndpoint:f.data.removeFromPlaylistServiceEndpoint;I&&_.a().resolve(_.Gg).resolveCommand(I,{form:{element:f.hostElement}});_.N("dl_playlist_killswitch")||f.transferState!=="TRANSFER_STATE_UNKNOWN"&&f.transferState!=="TRANSFER_STATE_FAILED"&&f.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:f.data.playlistId,action:"ACTION_SYNC"}})},
100)};
S1.prototype.computeIconType=function(r){return r?"yt-icons:"+r.toLowerCase():null};
S1.prototype.dataChanged=S1.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],S1.prototype,"data",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],S1.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],S1.prototype,"ytComponentBehavior",void 0);_.A([_.uA("#checkbox"),_.B("design:type",HTMLInputElement)],S1.prototype,"checkbox",void 0);
_.A([_.K({selector:_.P1,selectorArgs:["data.playlistId"]}),_.B("design:type",String)],S1.prototype,"transferState",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],S1.prototype,"dataChanged",null);S1=_.A([_.U({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],S1);
_.Q(S1,"ytd-playlist-add-to-option-renderer",function(){if(aMd!==void 0)return aMd;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return aMd=r},{mode:1});_.GL(Z27);_.Z5(Z27,"ytd-menu-title-renderer",{propNames:["data"]});var xz=function(){var r=_.y.apply(this,arguments)||this;r.addToStrings={ADD_TO_DROPDOWN_LABEL:_.VR("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};r.closeButtonAriaLabel=_.VR("SBOX_INAPPROPRIATE_CANCEL");r.dialog=_.N("desktop_add_to_playlist_renderer_dialog_popup");return r};
_.t(xz,_.y);_.l=xz.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(){_.ob(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.l.onPopupClosed=function(){_.ob(this.playlists,"scrollable",!1)};
_.l.computeAriaLabel=function(){var r;if(this==null?0:(r=this.data)==null?0:r.actions){r=_.E(this.data.actions);for(var f=r.next();!f.done;f=r.next())if(f=f.value,f.menuTitleRenderer)return _.Rr(f.menuTitleRenderer.title)}};
_.l.onTapClose=function(){_.Bj(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.OC.Object.defineProperties(xz.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var r;if(this==null?0:(r=this.data)==null?0:r.actions){r=_.E(this.data.actions);for(var f=r.next();!f.done;f=r.next())if(f=f.value,f.menuTitleRenderer)return f.menuTitleRenderer}return!1}}});
xz.prototype.onPopupClosed=xz.prototype.onPopupClosed;xz.prototype.onPopupOpened=xz.prototype.onPopupOpened;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],xz.prototype,"ytEventForwardingBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],xz.prototype,"ytRendererStamperBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],xz.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],xz.prototype,"addToStrings",void 0);_.A([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.B("design:type",String)],xz.prototype,"ariaLabel",void 0);_.A([_.K(),_.B("design:type",String)],xz.prototype,"closeButtonAriaLabel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],xz.prototype,"dialog",void 0);
_.A([_.uA("#playlists"),_.B("design:type",HTMLElement)],xz.prototype,"playlists",void 0);_.A([_.uA("ytd-add-to-playlist-create-renderer"),_.B("design:type",Object)],xz.prototype,"createRenderer",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],xz.prototype,"menuTitleRenderer",null);_.A([_.kO("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xz.prototype,"onPopupOpened",null);
_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xz.prototype,"onPopupClosed",null);xz=_.A([_.U({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],xz);
_.Q(xz,"ytd-add-to-playlist-renderer",function(){if(ghB!==void 0)return ghB;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return ghB=r},{mode:1});var Xg3;var hO=function(){var r=_.y.apply(this,arguments)||this;r.isPlaylistEditComplete=!1;r.isCollabEngagementDisabled=!1;r.closeButtonAriaLabel=_.VR("SBOX_INAPPROPRIATE_CANCEL");r.saveButton={title:_.VR("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"};r.onValueChanged=function(){r.updateSaveButtonState();r.computeCollabEngagementDisabled()};
return r};
_.t(hO,_.y);_.l=hO.prototype;_.l.attached=function(){this.JSC$18218_scroller&&(this.JSC$18218_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18218_scroller.attached&&typeof this.JSC$18218_scroller.attached==="function"&&this.JSC$18218_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(){_.Bj(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.l.onClickSave=function(){var r=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var f=[];this.nameInput.value!==null&&f.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&f.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var I=Number(this.privacyInput.value);isNaN(I)||f.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:I})}this.votingInput.value!==null&&(I=this.votingInput.value)&&f.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:I});if(f.length>0){var C;_.F((C=this.data)==null?void 0:C.updateSettingsEndpoint,_.TK).actions=f;var Y;if((Y=this.data)==null?0:Y.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){r.close()}}}),this.isPlaylistEditComplete=!0}}};
_.l.computePrivacyBadge=function(r){return r?[{metadataBadgeRenderer:r}]:[]};
_.l.computeEditorData=function(r){var f,I;return r==null?void 0:(f=r.sections)==null?void 0:(I=f[0])==null?void 0:I.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 r,f,I,C=(r=this.data)==null?void 0:(f=r.sections)==null?void 0:(I=f[0])==null?void 0:I.playlistSettingsEditorCasualSectionRenderer;return _.Rr(C==null?void 0:C.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 r,f,I;return(((r=this.editorData)==null?void 0:(f=r.name)==null?void 0:(I=f.textInputFormFieldRenderer)==null?void 0:I.value)||"")!==(this.nameInput.value||"")};
_.l.isDescriptionChanged=function(){var r,f,I;return(((r=this.editorData)==null?void 0:(f=r.description)==null?void 0:(I=f.textInputFormFieldRenderer)==null?void 0:I.value)||"")!==(this.descriptionInput.value||"")};
_.l.isPrivacyChanged=function(){var r,f,I,C,Y,V,S,h;return((S=(r=this.editorData)==null?void 0:(f=r.privacy)==null?void 0:(I=f.dropdownFormFieldRenderer)==null?void 0:(C=I.dropdown)==null?void 0:(Y=C.dropdownRenderer)==null?void 0:(V=Y.entries)==null?void 0:V.find(function(w){var n;return w==null?void 0:(n=w.privacyDropdownItemRenderer)==null?void 0:n.isSelected}))==null?void 0:(h=S.privacyDropdownItemRenderer)==null?void 0:h.int32Value)!==this.privacyInput.value};
_.l.isVotingChanged=function(){var r,f,I,C,Y,V,S,h;return((S=(r=this.editorData)==null?void 0:(f=r.voting)==null?void 0:(I=f.dropdownFormFieldRenderer)==null?void 0:(C=I.dropdown)==null?void 0:(Y=C.dropdownRenderer)==null?void 0:(V=Y.entries)==null?void 0:V.find(function(w){var n;return w==null?void 0:(n=w.privacyDropdownItemRenderer)==null?void 0:n.isSelected}))==null?void 0:(h=S.privacyDropdownItemRenderer)==null?void 0:h.int32Value)!==this.votingInput.value};
hO.prototype.onPopupClosed=hO.prototype.onPopupClosed;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],hO.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],hO.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],hO.prototype,"ytEventForwardingBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],hO.prototype,"ytRendererStamperBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],hO.prototype,"data",void 0);_.A([_.K({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.B("design:type",Array)],hO.prototype,"privacyBadge",void 0);_.A([_.K({computed:"computeEditorData(data)"}),_.B("design:type",Object)],hO.prototype,"editorData",void 0);_.A([_.K(),_.B("design:type",Object)],hO.prototype,"isPlaylistEditComplete",void 0);_.A([_.K(),_.B("design:type",Object)],hO.prototype,"isCollabEngagementDisabled",void 0);
_.A([_.K({value:{REQUIRED_LABEL:_.VR("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.VR("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.B("design:type",Object)],hO.prototype,"addToStrings",void 0);_.A([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.B("design:type",String)],hO.prototype,"ariaLabel",void 0);_.A([_.K(),_.B("design:type",String)],hO.prototype,"closeButtonAriaLabel",void 0);
_.A([_.K(),_.B("design:type",Object)],hO.prototype,"saveButton",void 0);_.A([_.uA("#name-input"),_.B("design:type",Object)],hO.prototype,"nameInput",void 0);_.A([_.uA("#description-input"),_.B("design:type",Object)],hO.prototype,"descriptionInput",void 0);_.A([_.uA("#privacy-input"),_.B("design:type",Object)],hO.prototype,"privacyInput",void 0);_.A([_.uA("#voting-input"),_.B("design:type",Object)],hO.prototype,"votingInput",void 0);
_.A([_.uA("#scroller"),_.B("design:type",Object)],hO.prototype,"JSC$18218_scroller",void 0);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hO.prototype,"onPopupClosed",null);_.A([_.K(),_.B("design:type",Object)],hO.prototype,"onValueChanged",void 0);hO=_.A([_.U({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],hO);
_.Q(hO,"ytd-playlist-settings-editor-renderer",function(){if(Xg3===void 0){var r=document.createElement("template");_.c(r,'\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]]" 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]]" 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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);Xg3=r}r=Xg3;return r},{mode:1});var NAi;_.gW("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var w1=function(){return _.y.apply(this,arguments)||this};
_.t(w1,_.y);_.l=w1.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 r=this.get("data.nextButton.buttonRenderer.navigationEndpoint");r&&(this.nextNavigationEndpoint=r,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 r={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",r)}}};
_.l.onPopupOpened=function(r){r.detail!==this&&r.detail!==this.hostElement||!_.N("enable_premium_voluntary_pause")||_.Bj(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.l.onNextButtonTap=function(){var r=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);r&&this.ytdOpenPopupBehavior.openPopup(r)};
_.l.updateSelectedResponseIndexFromBinding=function(r){this.selectedResponseIndex=r.detail.value};
w1.prototype.onPopupOpened=w1.prototype.onPopupOpened;w1.prototype.onSelectedResponseIndexChange=w1.prototype.onSelectedResponseIndexChange;w1.prototype.dataChanged=w1.prototype.dataChanged;_.A([_.J(_.RO),_.B("design:type",Object)],w1.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],w1.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],w1.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],w1.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Number)],w1.prototype,"selectedResponseIndex",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],w1.prototype,"dataChanged",null);_.A([_.Bt("selectedResponseIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],w1.prototype,"onSelectedResponseIndexChange",null);
_.A([_.kO("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],w1.prototype,"onPopupOpened",null);w1=_.A([_.U({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],w1);
_.Q(w1,"ytd-red-cancel-survey-renderer",function(){if(NAi!==void 0)return NAi;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return NAi=r},{mode:1});var $Ps;var b8=function(){var r=_.y.apply(this,arguments)||this;r.closeButtonAriaLabel=_.VR("SBOX_INAPPROPRIATE_CANCEL");return r};
_.t(b8,_.y);b8.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
b8.prototype.onClickClose=function(){_.Bj(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],b8.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],b8.prototype,"rendererStamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],b8.prototype,"data",void 0);_.A([_.K(),_.B("design:type",String)],b8.prototype,"closeButtonAriaLabel",void 0);b8=_.A([_.U({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],b8);
_.Q(b8,"ytd-search-filter-options-dialog-renderer",function(){if($Ps!==void 0)return $Ps;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return $Ps=r},{mode:1});var F5U;var BG1=function(){return function(r){r=r.availabilityType;return r===void 0||r==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||r==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var pb=function(){var r=_.y.apply(this,arguments)||this;r.qualityOptions=[];r.upsellOptions=[];r.showUpsellSection=!1;r.darkerDarkTheme=_.N("web_darker_dark_theme");r.rememberSettingsChecked=!1;return r};
_.t(pb,_.y);_.l=pb.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)_.Bj(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var r=[],f=[];this.showUpsellSection=!1;for(var I=_.E(this.formats),C=I.next();!C.done;C=I.next())(C=C.value)&&(C.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?f.push(C):r.push(C));r.length&&(this.qualityOptions=k3s(r));f.length&&(this.showUpsellSection=!0,this.upsellOptions=k3s(f))}};
_.l.updateRememberString=function(){if(this.downloadQualityPickerEntity)var r=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var f;r=(f=this.data)==null?void 0:f.premiumRememberSettingString}else{var I;r=(I=this.data)==null?void 0:I.rememberSettingString}r=r===void 0?_.VR("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):r;this.rememberSettingsCheckboxRenderer={title:_.AZ(r),disabled:!1}};
_.l.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.OC.Object.defineProperties(pb.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var r;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(r=this.data)==null?void 0:r.qualityFormats}}});
pb.prototype.updateRememberString=pb.prototype.updateRememberString;pb.prototype.updateQualityOptions=pb.prototype.updateQualityOptions;pb.prototype.dataChanged=pb.prototype.dataChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],pb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],pb.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],pb.prototype,"data",void 0);
_.A([_.J(_.PH),_.B("design:type",Object)],pb.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Boolean)],pb.prototype,"selectedUpsellQuality",void 0);_.A([_.K({computed:"computeIcon_(data.premiumIcon)",value:""}),_.B("design:type",String)],pb.prototype,"premiumIcon",void 0);_.A([_.K({selector:ZW6,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.B("design:type",Object)],pb.prototype,"downloadQualityPickerEntity",void 0);
_.A([_.K(),_.B("design:type",Array)],pb.prototype,"qualityOptions",void 0);_.A([_.K(),_.B("design:type",Array)],pb.prototype,"upsellOptions",void 0);_.A([_.K(),_.B("design:type",Object)],pb.prototype,"showUpsellSection",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],pb.prototype,"darkerDarkTheme",void 0);_.A([_.K(),_.B("design:type",Object)],pb.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.A([_.uA("#remember-settings"),_.B("design:type",HTMLInputElement)],pb.prototype,"rememberSettingsCheckbox",void 0);_.A([_.K(),_.B("design:type",Object)],pb.prototype,"rememberSettingsChecked",void 0);_.A([_.K(),_.B("design:type",Function)],pb.prototype,"onRememberSettingsCheckedChanged",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pb.prototype,"dataChanged",null);
_.A([_.Bt("downloadQualityPickerEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pb.prototype,"updateQualityOptions",null);_.A([_.Bt("selectedUpsellQuality"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pb.prototype,"updateRememberString",null);pb=_.A([_.U({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],pb);
_.Q(pb,"ytd-download-quality-selector-content",function(){if(F5U!==void 0)return F5U;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return F5U=r},{mode:1});var PF3;var nb=function(){var r=_.y.apply(this,arguments)||this;r.selectedUpsellQuality=!1;r.qualityOptions=[];r.darkerDarkTheme=_.N("web_darker_dark_theme");r.useUpsellDismissAlternate=_.N("use_not_now_dl_upsell_dismiss_cta");r.shouldShowAlternateUpsellDimiss=!1;r.rememberSettings=!1;r.rememberSettingsChecked=!1;r.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};r.rememberSettingsCheckedChanged=function(f){r.rememberSettingsChecked=f};
return r};
_.t(nb,_.y);_.l=nb.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:_.AZ(_.VR("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.AZ(_.VR("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.AZ(_.VR("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.AZ(_.VR("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.l.updateQualityOptions=function(){this.formats===void 0?_.Bj(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=k3s(this.formats)};
_.l.onQualityOptionsSelect=function(r){if(this.qualityOptions&&r){r!==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 f=_.E(this.qualityOptions.entries()),I=f.next();!I.done;I=
f.next()){I=_.E(I.value);var C=I.next().value;I=I.next().value;var Y=void 0,V=void 0;if(((Y=I)==null?void 0:(V=Y.settingsRadioOptionRenderer)==null?void 0:V.id)===r){this.selectedQualityIndex=C;r=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((r=this.formats[C])==null?void 0:r.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.l.onClickSubmit=function(){var r;if((r=this.downloadButtonRenderer)==null||!r.isDisabled){var f,I;r=(I=(f=this.data)==null?void 0:f.onSubmitEndpoint)!=null?I:{};var C,Y;if(this.formats&&(((C=_.F(r,_.CF))==null?0:C.videoId)||((Y=_.F(r,_.Y4))==null?0:Y.playlistId))){var V,S,h,w,n,d;f={formatType:(w=(V=this.formats)==null?void 0:(S=V[(h=this.selectedQualityIndex)!=null?h:0])==null?void 0:S.format)!=null?w:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(n=this.getOfflineEndpoint(r))==null?void 0:(d=n.actionParams)==null?void 0:d.settingsAction)};this.getOfflineEndpoint(r).actionParams=f;this.ytComponentBehavior.resolveCommand(r)}_.Bj(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.l.onClickUpsell=function(){var r;if((r=this.upsellButtonRenderer)==null||!r.isDisabled){var f,I;r=(I=(f=this.data)==null?void 0:f.upsellEndpoint)!=null?I:{};this.ytComponentBehavior.resolveCommand(r);_.Bj(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);f="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var C,Y,V,S;f=(S=(C=this.formats)==null?void 0:(Y=C[(V=this.selectedQualityIndex)!=null?V:0])==null?void 0:Y.format)!=null?S:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:f}})}};
_.l.onClickClose=function(){_.Bj(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.l.getOfflineSettingsAction=function(r,f){return r?f===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":f:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.l.getOfflineEndpoint=function(r){return _.F(r,_.CF)?_.F(r,_.CF):_.F(r,_.Y4)};
_.OC.Object.defineProperties(nb.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.AZ(_.VR("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var r;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(r=this.data)==null?void 0:r.qualityFormats}}});
nb.prototype.updateQualityOptions=nb.prototype.updateQualityOptions;nb.prototype.dataChanged=nb.prototype.dataChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],nb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],nb.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],nb.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],nb.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],nb.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Number)],nb.prototype,"selectedQualityIndex",void 0);_.A([_.K(),_.B("design:type",Object)],nb.prototype,"selectedUpsellQuality",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],nb.prototype,"ytdReduxBehavior",void 0);
_.A([_.K({selector:ZW6,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.B("design:type",Object)],nb.prototype,"downloadQualityPickerEntity",void 0);_.A([_.K(),_.B("design:type",Array)],nb.prototype,"qualityOptions",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],nb.prototype,"darkerDarkTheme",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],nb.prototype,"useUpsellDismissAlternate",void 0);
_.A([_.K(),_.B("design:type",Object)],nb.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.A([_.K(),_.B("design:type",Object)],nb.prototype,"downloadButtonRenderer",void 0);_.A([_.K(),_.B("design:type",Object)],nb.prototype,"upsellButtonRenderer",void 0);_.A([_.K(),_.B("design:type",Object)],nb.prototype,"cancelButtonRenderer",void 0);_.A([_.K(),_.B("design:type",Object)],nb.prototype,"upsellCancelButtonRenderer",void 0);_.A([_.K(),_.B("design:type",Object)],nb.prototype,"rememberSettings",void 0);
_.A([_.K(),_.B("design:type",Object)],nb.prototype,"rememberSettingsChecked",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nb.prototype,"dataChanged",null);_.A([_.Bt("downloadQualityPickerEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nb.prototype,"updateQualityOptions",null);nb=_.A([_.U({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],nb);
_.Q(nb,"ytd-download-quality-selector-renderer",function(){if(PF3!==void 0)return PF3;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return PF3=r},{mode:1});var t93;var d1=function(){var r=_.y.apply(this,arguments)||this;r.darkerDarkTheme=_.N("web_darker_dark_theme");return r};
_.t(d1,_.y);d1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
d1.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"}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],d1.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],d1.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],d1.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],d1.prototype,"darkerDarkTheme",void 0);_.A([_.K({computed:"computeIcon_(data.infoIcon)"}),_.B("design:type",Object)],d1.prototype,"infoIcon",void 0);
_.A([_.K({computed:"computeIcon_(data.warningIcon)"}),_.B("design:type",Object)],d1.prototype,"warningIcon",void 0);d1=_.A([_.U({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],d1);
_.Q(d1,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(t93!==void 0)return t93;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return t93=r},{mode:1});var TAp;var zx=function(){var r=_.y.apply(this,arguments)||this;r.darkerDarkTheme=_.N("web_darker_dark_theme");return r};
_.t(zx,_.y);zx.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zx.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"}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],zx.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],zx.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],zx.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],zx.prototype,"darkerDarkTheme",void 0);zx=_.A([_.U({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],zx);
_.Q(zx,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(TAp!==void 0)return TAp;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return TAp=r},{mode:1});var cIV;var MR=function(){var r=_.y.apply(this,arguments)||this;r.darkerDarkTheme=_.N("web_darker_dark_theme");return r};
_.t(MR,_.y);MR.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
MR.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"}}}}};
MR.prototype.onServiceRequestSentOrCompleted=function(r,f){f&&f.actions&&f.actions.length>0&&_.Bj(this.hostElement,"yt-close-popup-action",[this.is])};
MR.prototype.onServiceRequestSentOrCompleted=MR.prototype.onServiceRequestSentOrCompleted;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],MR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],MR.prototype,"darkerDarkTheme",void 0);_.A([_.K(),_.B("design:type",Object)],MR.prototype,"data",void 0);
_.A([_.kO("yt-service-request-completed"),_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],MR.prototype,"onServiceRequestSentOrCompleted",null);MR=_.A([_.U({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],MR);
_.Q(MR,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(cIV!==void 0)return cIV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return cIV=r},{mode:1});var W5p;var g1=function(){var r=_.y.apply(this,arguments)||this;r.darkerDarkTheme=_.N("web_darker_dark_theme");r.submitButtonDisabled=!0;return r};
_.t(g1,_.y);_.l=g1.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 r,f,I;if(((r=this.data)==null?void 0:(f=r.confirmButton)==null?void 0:(I=f.buttonRenderer)==null?void 0:I.isDisabled)!==void 0){var C,Y,V;this.submitButtonDisabled=(C=this.data)==null?void 0:(Y=C.confirmButton)==null?void 0:(V=Y.buttonRenderer)==null?void 0:V.isDisabled}};
_.l.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.l.updateSubmitButtonDisabledFromBinding=function(r){this.submitButtonDisabled=r.detail.value};
_.l.updateSubmitButtonDisabledFromConfirmCheckbox=function(r){this.submitButtonDisabled=!r.detail.value};
g1.prototype.onDataChanged=g1.prototype.onDataChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],g1.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],g1.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],g1.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],g1.prototype,"darkerDarkTheme",void 0);
_.A([_.K(),_.B("design:type",Object)],g1.prototype,"submitButtonDisabled",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],g1.prototype,"onDataChanged",null);g1=_.A([_.U({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],g1);
_.Q(g1,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(W5p!==void 0)return W5p;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return W5p=r},{mode:1});var L56;var a$=function(){return _.y.apply(this,arguments)||this};
_.t(a$,_.y);_.OC.Object.defineProperties(a$.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var r,f,I;return((r=this.data)==null?void 0:r.title)+" "+((f=this.data)==null?void 0:f.metadataPrimary)+" "+((I=this.data)==null?void 0:I.metadataSecondary)}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],a$.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],a$.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],a$.prototype,"data",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],a$.prototype,"ariaLabel",null);a$=_.A([_.U({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],a$);
_.Q(a$,"ytd-compact-product-list-item-renderer",function(){if(L56!==void 0)return L56;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return L56=r},{mode:1});var mPi;var X7=function(){return _.y.apply(this,arguments)||this};
_.t(X7,_.y);X7.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]]"}}}}}};
_.OC.Object.defineProperties(X7.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],X7.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],X7.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],X7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],X7.prototype,"data",void 0);X7=_.A([_.U({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],X7);
_.Q(X7,"ytd-compact-product-list-renderer",function(){if(mPi!==void 0)return mPi;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return mPi=r},{mode:1});var eXB;var NR=function(){var r=_.y.apply(this,arguments)||this;r.darkerDarkTheme=_.N("web_darker_dark_theme");return r};
_.t(NR,_.y);_.l=NR.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 r=this.get("data.headerImage.thumbnails");return r?"url("+_.yH(r,this.hostElement.clientWidth)+")":""};
_.l.onDataChanged=function(){var r=this.getBackgroundUrl();r&&(this.header.style.backgroundImage=r);r=_.t1();var f=_.Pj(),I=this.get("data.trackingParams");I&&f&&r&&_.mw(r,f,_.VH(I));r=_.E(this.hostElement.querySelectorAll("yt-img-shadow"));for(f=r.next();!f.done;f=r.next())f.value.onShow()};
_.l.onPopupClosed=function(r){_.jl(r).localName==="ytd-membership-post-cancel-renderer"&&_.Bj(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
NR.prototype.onPopupClosed=NR.prototype.onPopupClosed;NR.prototype.onDataChanged=NR.prototype.onDataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],NR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],NR.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],NR.prototype,"darkerDarkTheme",void 0);
_.A([_.uA("#header"),_.B("design:type",HTMLDivElement)],NR.prototype,"header",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NR.prototype,"onDataChanged",null);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],NR.prototype,"onPopupClosed",null);NR=_.A([_.U({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],NR);
_.Q(NR,"ytd-membership-post-cancel-renderer",function(){if(eXB!==void 0)return eXB;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return eXB=r},{mode:1});var JI6;var $z=function(){var r=_.y.apply(this,arguments)||this;r.darkerDarkTheme=_.N("web_darker_dark_theme");return r};
_.t($z,_.y);$z.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
$z.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],$z.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],$z.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],$z.prototype,"darkerDarkTheme",void 0);_.A([_.uA("ytd-feedback-survey-renderer"),_.B("design:type",Object)],$z.prototype,"feedbackSurveyRenderer",void 0);$z=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],$z);
_.Q($z,"ytd-sponsorship-confirm-cancel-content",function(){if(JI6!==void 0)return JI6;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return JI6=r},{mode:1});var jQ6;var F7=function(){var r=_.y.apply(this,arguments)||this;r.darkerDarkTheme=_.N("web_darker_dark_theme");r.maybeSubmitFeedback=function(){r.content&&r.content.maybeSubmitFeedback()};
return r};
_.t(F7,_.y);_.l=F7.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(r,f){f===this&&this.data&&this.data.onOpenCommands&&_.rX(this.hostElement,this.data.onOpenCommands,this.hostElement);_.Bj(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.l.onYtPopupClosed=function(r,f){(f&&f.canceled===!0||f&&f.canceled===!1&&f.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.rX(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.l.onYtServiceRequestCompleted=function(){_.Bj(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.l.onYtServiceRequestError=function(r){_.tx(this.hostElement,r.detail.error.message)};
_.l.onDataChanged=function(){if(this.isAttached){var r=this.backgroundUrl;r&&(_.e(this.hostElement).querySelector("#header").style.backgroundImage=r)}};
_.OC.Object.defineProperties(F7.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var r=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return r?"url("+_.yH(r,this.hostElement.clientWidth)+")":""}}});
F7.prototype.onDataChanged=F7.prototype.onDataChanged;F7.prototype.onYtServiceRequestError=F7.prototype.onYtServiceRequestError;F7.prototype.onYtServiceRequestCompleted=F7.prototype.onYtServiceRequestCompleted;F7.prototype.onYtPopupClosed=F7.prototype.onYtPopupClosed;F7.prototype.onYtPopupOpened=F7.prototype.onYtPopupOpened;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],F7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],F7.prototype,"data",void 0);_.A([_.K({value:function(){return _.VR("SBOX_INAPPROPRIATE_CANCEL")}}),
_.B("design:type",String)],F7.prototype,"closeButtonAriaLabel",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],F7.prototype,"darkerDarkTheme",void 0);_.A([_.uA("#scrollable"),_.B("design:type",Object)],F7.prototype,"scrollable",void 0);_.A([_.uA("ytd-sponsorship-confirm-cancel-content"),_.B("design:type",Object)],F7.prototype,"content",void 0);
_.A([_.kO("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],F7.prototype,"onYtPopupOpened",null);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],F7.prototype,"onYtPopupClosed",null);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],F7.prototype,"onYtServiceRequestCompleted",null);_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],F7.prototype,"onYtServiceRequestError",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],F7.prototype,"onDataChanged",null);
F7=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],F7);
_.Q(F7,"ytd-sponsorship-confirm-cancel-renderer",function(){if(jQ6!==void 0)return jQ6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return jQ6=r},{mode:_.QQ("kevlar_poly_si_batch_j081")?1:2});var HB7;var Pb=function(){var r=_.y.apply(this,arguments)||this;r.darkerDarkTheme=_.N("web_darker_dark_theme");return r};
_.t(Pb,_.y);Pb.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Pb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Pb.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Pb.prototype,"darkerDarkTheme",void 0);Pb=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Pb);
_.Q(Pb,"ytd-sponsorships-celebration-content",function(){if(HB7!==void 0)return HB7;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return HB7=
r},{mode:1});var iB6;var RXs=_.op(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),tO=function(){var r=_.y.apply(this,arguments)||this;r.scriptsAppended=!1;r.buttonOverrides={type:"tonal",style:"overlay-dark"};return r};
_.t(tO,_.y);_.l=tO.prototype;
_.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:_.N("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.onDataChanged=function(){var r;(r=this.header)==null||r.style.setProperty("background-color",this.backgroundColor);if(r=this.headerImageUrl){var f;(f=this.header)==null||f.style.setProperty("background-image",r)}f=_.t1(4);r=_.Pj(4);var I=this.get("data.trackingParams");if(I&&r&&f){var C=_.VH(I);_.mw(f,r,C);_.N("combine_ve_grafts")?_.IB().graftServerVe(I,r,4):_.mw(f,r,C)}f=_.E(this.hostElement.querySelectorAll("yt-img-shadow"));for(r=f.next();!r.done;r=f.next())r.value.onShow();if(f=this.get("data.gtmId"))_.hK(f,
_.Lz("GL","")),this.setupConversionTracking()};
_.l.setupConversionTracking=function(){if(!this.scriptsAppended){var r=document.createElement("script");var f=_.HL(RXs.join(""));_.Rw(r,f);document.head.appendChild(r);r=document.createElement("noscript");r.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(r);this.scriptsAppended=!0}};
_.l.onPopupClosed=function(r){if(_.jl(r).localName==="ytd-sponsorships-celebration-renderer"){_.Bj(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var f;this.data&&((f=this.data)==null?0:f.dismissCommand)&&_.qv.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.OC.Object.defineProperties(tO.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var r=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.g_(r)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var r=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return r?"url("+_.yH(r,this.hostElement.getBoundingClientRect().width)+")":""}}});
tO.prototype.onPopupClosed=tO.prototype.onPopupClosed;tO.prototype.onDataChanged=tO.prototype.onDataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],tO.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],tO.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],tO.prototype,"data",void 0);_.A([_.uA("#header"),_.B("design:type",HTMLElement)],tO.prototype,"header",void 0);
_.A([_.K(),_.B("design:type",Object)],tO.prototype,"scriptsAppended",void 0);_.A([_.K(),_.B("design:type",Object)],tO.prototype,"buttonOverrides",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tO.prototype,"onDataChanged",null);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],tO.prototype,"onPopupClosed",null);
tO=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],tO);
_.Q(tO,"ytd-sponsorships-celebration-renderer",function(){if(iB6!==void 0)return iB6;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return iB6=r},{mode:1});var vh6;var Tx=function(){var r=_.y.apply(this,arguments)||this;r.isToggleChecked=!1;return r};
_.t(Tx,_.y);Tx.prototype.onDataChanged=function(){var r;this.isToggleChecked=((r=this.data)==null?void 0:r.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
Tx.prototype.close=function(){var r;((r=this.data)==null?0:r.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
Tx.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var r,f=_.F((r=this.data)==null?void 0:r.switchButton,FR6);f&&(this.isToggleChecked&&f.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(f.switchOnInnertubeCommand),!this.isToggleChecked&&f.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(f.switchOffInnertubeCommand))};
Tx.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Tx.prototype.onDataChanged=Tx.prototype.onDataChanged;_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Tx.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Tx.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Tx.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],Tx.prototype,"isToggleChecked",void 0);_.A([_.K({value:_.VR("CLOSE")}),_.B("design:type",String)],Tx.prototype,"closeButtonAriaLabel",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tx.prototype,"onDataChanged",null);Tx=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],Tx);
_.Q(Tx,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(vh6!==void 0)return vh6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return vh6=r},{mode:1});var K5d;var cb=function(){return _.y.apply(this,arguments)||this};
_.t(cb,_.y);_.l=cb.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(){_.Bj(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.l.onYtServiceRequestError=function(r){_.tx(this.hostElement,r.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(r,f){return!r||!r.tiers||f<0?null:_.F(r.tiers[f],cL6)};
_.l.moreThanOne=function(r){return!!(r&&r.length>1)};
_.l.tierOverviewTap=function(r){var f=this;this.selectedTier=r.model.index;_.UC(this,function(){_.kA(f.hostElement,"yt-refit")})};
_.l.computeSelectedClass=function(r,f){return this.isSelected(r,f)?"selected":""};
_.l.computeButtonAriaPressed=function(r,f){return this.isSelected(r,f)?"true":"false"};
_.l.isSelected=function(r,f){return r===f};
_.l.onDataChanged=function(){_.e(this.hostElement).querySelector("#header-overlay").style.visibility="";_.e(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 r=_.E(this.hostElement.querySelectorAll("yt-img-shadow")),
f=r.next();!f.done;f=r.next())f.value.onShow();var I;this.set("selectedTier",(I=this.get("data.targetTierIndex"))!=null?I:0);var C;(r=(C=this.data)==null?void 0:C.onVisible)&&this.ytComponentBehavior.resolveCommand(r)};
_.l.initializeVe=function(r){var f=_.t1(),I=_.Pj(),C=this.get("data.trackingParams");I&&f&&(this.screenLayer=4,f=_.Jn(_.TfR)(void 0,69877,{clientScreenNonce:f,visualElement:I},void 0,void 0,void 0),_.idw(f,69877,4),I=_.Pj(4),C&&I&&(C=_.VH(C),_.mw(f,I,C),r&&(this.offerVideoVe=_.pQ(74659),_.mw(f,C,this.offerVideoVe))))};
_.l.setHeaderBackground=function(){var r=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.e(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.g_(r);if(r=this.getHeaderImage())r=_.yH(r,screen.width),_.e(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+r+")"};
_.l.getHeaderImage=function(){var r=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&r?r:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.l.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.l.setupVideoPlayer=function(r){var f=this,I,C,Y,V;return _.x(function(S){if(S.nextAddress==1)return I=f.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),C=f.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.N("kevlar_player_update_killswitch")?f.playerElement.update({args:{autoplay:I,video_id:r,player_params:C}}):f.playerElement.loadVideoWithPlayerVars({autoplay:I,video_id:r,player_params:C}),
_.b(S,f.playerElement.getPlayerPromise(),2);Y=S.yieldResult;Y.addEventListener("onStateChange",function(h){f.onPlayerStateChange(h)});
Y.setScreenLayer(f.screenLayer);(V=_.t1(4))&&f.offerVideoVe&&_.JZ(V,f.offerVideoVe);I&&(f.pauseOtherPlayers(),f.playerElement.focusOnPlayer(),f.playerElement.getPlayer().hideControls(),_.dp(_.F_,function(){f.fadeOutHeaderOverlay()},4E3));
_.wO(S)})};
_.l.onPlayerStateChange=function(r){r===1?this.backgroundPlayerElement&&(r=this.backgroundPlayerElement.player_.getPlayerState(),r!==1&&r!==3||this.backgroundPlayerElement.pause()):r===0&&(_.e(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.e(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.l.fadeOutHeaderOverlay=function(){_.e(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.l.onHeaderTap=function(){if(this.offerVideo){_.e(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var r;((r=this.playerElement.player_)==null?void 0:r.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(r=_.t1(4))&&this.offerVideoVe&&_.im(r,this.offerVideoVe)}};
_.l.getBackgroundImageLayerClass=function(r){return r?"background-image-layer-with-video":""};
_.l.getHeaderClass=function(r){return r?"header-with-video":""};
_.l.getHeaderOverlayClass=function(r){return r?"header-overlay-with-video":""};
_.l.getTitleContainerClass=function(r,f){return r?"title-container-with-video":f?"title-container-without-video-flexible":"title-container-without-video"};
_.l.tierTitleDisplayStatus=function(r){return this.moreThanOne(r)?"hide":"show"};
_.l.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.a().resolve(_.iO).getPlayerElement():this.backgroundPlayerElement=_.sk();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var r=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=r===1||r===3;this.backgroundPlayerElement.pause()}};
_.l.isMiniplayerActive=function(){return _.a().resolve(_.iO).isMiniplayerActive()};
_.l.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LT("selected-tier-changed",this.selectedTier))};
cb.prototype.selectedTierChangedForBinding=cb.prototype.selectedTierChangedForBinding;cb.prototype.onDataChanged=cb.prototype.onDataChanged;cb.prototype.onYtPopupClosed=cb.prototype.onYtPopupClosed;cb.prototype.onYtPopupOpened=cb.prototype.onYtPopupOpened;cb.prototype.onYtServiceRequestError=cb.prototype.onYtServiceRequestError;cb.prototype.onYtServiceRequestCompleted=cb.prototype.onYtServiceRequestCompleted;
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],cb.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],cb.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],cb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],cb.prototype,"data",void 0);_.A([_.K({value:0}),_.B("design:type",Number)],cb.prototype,"selectedTier",void 0);
_.A([_.K({value:""}),_.B("design:type",String)],cb.prototype,"offerVideo",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],cb.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.A([_.K({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.S3(this)}}),
_.B("design:type",String)],cb.prototype,"playerId",void 0);_.A([_.uA("tp-yt-paper-dialog-scrollable"),_.B("design:type",Object)],cb.prototype,"scrollable",void 0);_.A([_.uA("ytd-sponsorships-tier-renderer"),_.B("design:type",Object)],cb.prototype,"tierRenderer",void 0);_.A([_.uA("#player"),_.B("design:type",Object)],cb.prototype,"playerElement",void 0);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],cb.prototype,"onYtServiceRequestCompleted",null);_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],cb.prototype,"onYtServiceRequestError",null);
_.A([_.kO("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cb.prototype,"onYtPopupOpened",null);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cb.prototype,"onYtPopupClosed",null);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cb.prototype,"onDataChanged",null);
_.A([_.Bt("selectedTier"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cb.prototype,"selectedTierChangedForBinding",null);cb=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],cb);
_.Q(cb,"ytd-sponsorships-offer-renderer",function(){if(K5d!==void 0)return K5d;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return K5d=r},{mode:_.QQ("kevlar_poly_si_batch_j077")?1:2});var yIs;var Wb=function(){var r=_.y.apply(this,arguments)||this;r.buttonOverrides={type:"filled",style:"mono"};return r};
_.t(Wb,_.y);Wb.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}}}}}};
Wb.prototype.backgroundColorChanged=function(){var r,f,I,C=(f=_.F((r=this.data)==null?void 0:r.content,WR2))==null?void 0:(I=f.backgroundColor)==null?void 0:I.backgroundColor;C&&(r=_.MG(C),_.e(this.hostElement).querySelector("#banner").style.backgroundColor=r,_.e(this.hostElement).querySelector("#abstract-art").style.backgroundColor=r)};
Wb.prototype.attached=function(){this.JSC$18304_scroller&&(this.JSC$18304_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18304_scroller.attached&&typeof this.JSC$18304_scroller.attached==="function"&&this.JSC$18304_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Wb.prototype.backgroundColorChanged=Wb.prototype.backgroundColorChanged;_.A([_.K(),_.B("design:type",Object)],Wb.prototype,"data",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Wb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.uA("#scroller"),_.B("design:type",Object)],Wb.prototype,"JSC$18304_scroller",void 0);_.A([_.K(),_.B("design:type",Object)],Wb.prototype,"buttonOverrides",void 0);
_.A([_.Bt("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Wb.prototype,"backgroundColorChanged",null);Wb=_.A([_.U({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],Wb);
_.Q(Wb,"ytd-sponsorships-promotion-celebration-renderer",function(){if(yIs!==void 0)return yIs;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return yIs=r},{mode:_.QQ("kevlar_poly_si_batch_j077")?1:2});var UPB;var sQ1;var Lb=function(){return _.y.apply(this,arguments)||this};
_.t(Lb,_.y);Lb.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
Lb.prototype.computeIsInitiallyChecked=function(r){return r===1};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Lb.prototype,"data",void 0);_.A([_.uA("#checkbox"),_.B("design:type",Object)],Lb.prototype,"checkbox",void 0);Lb=_.A([_.U({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],Lb);
_.Q(Lb,"ytd-subscription-toggle-option-renderer",function(){if(sQ1!==void 0)return sQ1;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return sQ1=r},{mode:1});var mU=function(){var r=_.y.apply(this,arguments)||this;r.darkerDarkTheme=_.N("web_darker_dark_theme");r.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return r};
_.t(mU,_.y);mU.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"}}}};
mU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
mU.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var r=_.e(this.hostElement).querySelector("#options").selected;r=this.data.options[r].subscriptionRadioOptionRenderer.serviceEndpoint;var f=_.e(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");f&&r&&r.modifyChannelNotificationPreferenceEndpoint&&(f=f.getValue())&&(r.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[f]);_.a().resolve(_.Gg).resolveCommand(r,{form:{element:this.hostElement}});
_.Bj(this.hostElement,"yt-close-popup-action")};
_.OC.Object.defineProperties(mU.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var r=this.data.options,f=0;f<r.length;f++){var I=r[f].subscriptionRadioOptionRenderer;if(I&&I.selected)return f}return null}}});
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],mU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],mU.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],mU.prototype,"eventForwardingBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],mU.prototype,"ytRendererBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],mU.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],mU.prototype,"darkerDarkTheme",void 0);_.A([_.R("data.options"),_.B("design:type",Object),_.B("design:paramtypes",[])],mU.prototype,"initialIndex",null);mU=_.A([_.U({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],mU);
_.Q(mU,"ytd-subscription-notification-options-renderer",function(){if(UPB!==void 0)return UPB;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return UPB=r},{mode:1});var OB1;var e1=function(){return _.y.apply(this,arguments)||this};
_.t(e1,_.y);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],e1.prototype,"data",void 0);e1=_.A([_.U({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],e1);
_.Q(e1,"ytd-tvfilm-offer-groups-renderer",function(){if(OB1!==void 0)return OB1;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return OB1=r},{mode:1});var oh6;var JO=function(){var r=_.y.apply(this,arguments)||this;r.darkerDarkTheme=_.N("web_darker_dark_theme");return r};
_.t(JO,_.y);_.l=JO.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(r){return r.thumbnailOverlays?r.isShow?"thumbnail-show":"thumbnail-movie":r.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.l.computeCommerceSectionClass=function(r){return r.offers&&r.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.l.computeTitleClass=function(r){return r.offers&&r.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.l.onDataChanged=function(){[].concat(_.Na(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(r){r.onShow()})};
JO.prototype.onDataChanged=JO.prototype.onDataChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],JO.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],JO.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],JO.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],JO.prototype,"darkerDarkTheme",void 0);
_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JO.prototype,"onDataChanged",null);JO=_.A([_.U({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],JO);
_.Q(JO,"ytd-ypc-offers-overlay-renderer",function(){if(oh6!==void 0)return oh6;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return oh6=r},{mode:_.QQ("kevlar_poly_si_batch_j028")?1:2});var QQU;var AI1=function(){this.usedMethods=new Set};
AI1.prototype.add=function(r){this.usedMethods.add(r)};
AI1.prototype.reset=function(){this.usedMethods.clear()};var kf7=function(r,f){this.query=r;this.previousSearchQuery=f;this.id=ZBV++;if(!Gfd){f=_.Lz("SBOX_SETTINGS");r="https://"+((f==null?void 0:f.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var I=f==null?void 0:f.REQUEST_LANGUAGE;I&&(r+="&hl="+I);(I=f==null?void 0:f.REQUEST_DOMAIN)&&(r+="&gl="+I);r+="&client=youtube&gs_ri=youtube";(I=f==null?void 0:f.SUGG_EXP_ID)&&(r+="&sugexp="+encodeURIComponent(I));(I=f==null?void 0:f.PSUGGEST_TOKEN)&&(r+="&tok="+I);(f=
f==null?void 0:f.SESSION_INDEX)&&(r+="&authuser="+f);_.N("desktop_enable_visual_suggest")&&(r+="&h=180&w=320&ytvs=1");Gfd=r}},BAd=function(r){var f="q="+encodeURIComponent(r.query);
r.previousSearchQuery&&(f+="&pq="+encodeURIComponent(r.previousSearchQuery));return f},qJi=function(){var r=_.Lz("SBOX_SETTINGS"),f={};
if(r==null?0:r.SEND_VISITOR_DATA)f["X-Goog-Visitor-Id"]=r==null?void 0:r.VISITOR_DATA;return f},uh3=function(r){var f=Gfd;
f+="&gs_id="+r.id.toString(36);f+="&q="+encodeURIComponent(r.query);f+="&cp="+r.query.length;r.previousSearchQuery&&(f+="&pq="+encodeURIComponent(r.previousSearchQuery));(r=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(f+="&video_id="+r);return f},ZBV=0,Gfd="";var DPp=_.KO.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,r22=_.KO.SEARCH_ENTITY_SUGGESTION_MOVIE,fSp=_.KO.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,ISi=_.KO.SEARCH_ENTITY_SUGGESTION_TV_SHOW,Cu7=function(r,f){this.text=r;this.bold=f},YX1=function(r,f,I){this.input=f;
this.index=I;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=r[0];this.type=r[1];this.subtypes=r[2];var C;this.displayText=Gl((C=r[3])==null?void 0:C.b);var Y;this.ignoredPrefix=Gl((Y=r[3])==null?void 0:Y.a);var V,S;this.hasNewVideo=((V=r[3])==null?void 0:(S=V.zam)==null?void 0:S.toString())==="true"?!0:!1;var h;this.visualSuggestUrl=(h=r[3])==null?void 0:h.zai;var w;this.entityType=Gl((w=r[3])==null?void 0:w.zap);var n;this.entityName=Gl((n=r[3])==null?void 0:n.zao);var d;f=Gl((d=
r[3])==null?void 0:d.zaf);var z;this.entityMid=(z=r[3])==null?void 0:z.zae;d=uN6(this.subtypes,this.entityMid);if(f&&d){if(f){z="";switch(d){case "YOUTUBE_ENTITY_TYPE_SONG":z=fSp;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":z=DPp;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":z=ISi;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":z=r22}d=d==="YOUTUBE_ENTITY_TYPE_SONG"||d==="YOUTUBE_ENTITY_TYPE_ALBUM"?z+" \u2022  \u2022 "+f:f}else d="";this.entitySubtitle=d}var g;this.externalChannelId=(g=r[3])==null?void 0:g.zav},lSU=
function(r){var f=[],I,C=(I=r.displayText)!=null?I:r.text;
if(r.type===33)return f.push(new Cu7(C,!1)),f;if(C.length>=r.input.length&&C.substring(0,r.input.length)===r.input)f.push(new Cu7(r.input,!1)),f.push(new Cu7(C.substring(r.input.length),!0));else{var Y=new Set(r.input.split(/\s/)),V=C.split(/\s/);f=V.map(function(S,h){return new Cu7(S.trim()+(h===V.length-1?"":" "),!Y.has(S))})}return f},Vn6=function(r){var f=!!uN6(r.subtypes);
r=!!r.entityMid;return f||r};var ErU=function(r){this.rawResponse=["",[],{}];this.suggestions=[];try{var f=JSON.parse(Dji(r));if(typeof f==="object"&&f!==null)this.rawResponse=f;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(C){console.log("Suggest: Failed to parse SuggestResponse!");return}var I=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(C,Y){return new YX1(C,I,Y)})};var SX7=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new AI1;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18340_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},xQ7,h26=function(){xQ7||(xQ7=new SX7);
return xQ7};
SX7.prototype.updateSuggestions=function(r){var f=this;this.availableSuggestions.forEach(function(I){f.previousSuggestions[I]=!0});
this.availableSuggestions=r.map(function(I){var C=I.type.toString();I.subtypes.length>0&&(C+="i"+I.subtypes.join("i"),C+="k"+I.suggestionSources.COMPLETE_SERVER.toString());return C})};
var wZY=function(r,f){var I=Date.now();r.firstEditTime<0&&(r.firstEditTime=I);f&&(r.lastQueryBuildTime=I);r.lastEditTime=I};
SX7.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18340_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var bUd=function(r){var f="";r.availableSuggestions.forEach(function(Y){delete r.previousSuggestions[Y]});
for(var I=_.E(Object.keys(r.previousSuggestions)),C=I.next();!C.done;C=I.next())C=C.value,r.previousSuggestions[C]&&(f+=(f?"j":"")+C);return f},pZ7=function(r,f){var I=[];
f&&(I[1]=f.toString());I[0]="youtube";I[7]=Date.now()-r.startTime;I[6]=r.sessionNumber;r.zeroPrefixSuggestionCount>=0&&(I[33]=r.zeroPrefixSuggestionCount);I[13]=r.outOfSyncResponseCount;if(r.availableSuggestions.length>0){for(var C=f="",Y=0,V=_.E(r.availableSuggestions),S=V.next();!S.done;S=V.next())S=S.value,S!==C&&(Y>1&&(f+="l"+Y),f+=(C?"j":"")+S,Y=0,C=S),Y+=1;Y>1&&(f+="l"+Y);I[3]=f}I[35]=bUd(r);r.selectedSuggestionIndex>=0&&(I[2]=r.selectedSuggestionIndex);var h;if(f=(h=_.Lz("SBOX_SETTINGS"))==
null?void 0:h.SUGG_EXP_ID)I[19]=r.normalize(f),h=0,r.experimentTriggeredBeforeFinal&&(h|=1),r.experimentTriggeredFinal&&(h|=2),I[20]=h;I[26]=Array.from(r.inputMethodsTracker.usedMethods).join("j");if(r.JSC$18340_totalRoundTripTime>0){I[15]=r.JSC$18340_totalRoundTripTime;I[14]=r.maxRoundTripTime;h=[];for(Y=f=0;Y<10;Y++)C=r.roundTripTimeHistogram[Y],C===0?f++:(f>1?h.push(Y+"-"+C):f===1?h.push("0j"+C):h.push(C.toString()),f=0);h=h.join("j");I[16]=h}r.zeroPrefixRoundTripTime>0&&(I[36]=r.zeroPrefixRoundTripTime);
r.lastQueryBuildTime>0&&(I[18]=r.lastQueryBuildTime-r.startTime);r.firstEditTime>0&&(I[4]=r.firstEditTime-r.startTime);r.lastEditTime>0&&(I[5]=r.lastEditTime-r.startTime);return I.join(".")};
SX7.prototype.normalize=function(r){return r.replaceAll(".","-")};
var nrY=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var j1=function(){var r=_.y.apply(this,arguments)||this;r.microphoneSpinnerActive=!1;r.noAnimations=!1;r.boundExitClick=function(){r.onExitButtonClick()};
r.speechOverlayClassName="";r.isLevelAnimating=!1;r.playCloseDialogAudioFeedback=!0;r.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return r};
_.t(j1,_.y);_.l=j1.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=Dzp()};
_.l.dataChanged=function(){this.logDialog()};
_.l.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var r;(r=this.manager.audioPlayer)!=null&&(r.JSC$17630_audioEnabled=!1)}this.manager.stop();(r=this.manager.audioPlayer)!=null&&(r.JSC$17630_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.l.handleSpeechQueryCompleteAction=function(r){var f=r.navigationAction;f&&(r.trackingParams&&_.IB().graftServerVe(r.trackingParams,this.dialogVe,5),_.kA(this.hostElement,"yt-navigate",{endpoint:f,tempData:this.getNavigationParams(f),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.l.onExitButtonClick=function(){this.closeDialog()};
_.l.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var r;if((r=this.manager)!=null){var f;(f=r.audioPlayer)==null||jz(f,"failure");r.setState("microphone-off");r.stop()}}else(r=this.manager)==null||r.start()};
_.l.transcriptionChanged=function(){var r,f;(((r=this.transcription)==null?0:r.low)||((f=this.transcription)==null?0:f.high))&&this.setState("transcribing",this.transcription)};
_.l.stateChanged=function(){this.setState(this.state,this.transcription)};
_.l.logDialog=function(){var r;(r=this.data)!=null&&r.trackingParams&&(r=_.IB(),_.f3(r,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=r.graftServerVe(this.data.trackingParams,void 0,5))};
_.l.getNavigationParams=function(r){var f={};if(_.N("web_yt_searchbox")){var I=h26();I.inputMethodsTracker.add(6);I=pZ7(I,15);f.gs_l=I;var C;f.oq=((C=_.F(r,_.VB))==null?void 0:C.query)||""}else if(r=window.ytvoicesearchloggingparams){if(r=r())f.oq=r.oq,f.gs_l=r.gs_l}else _.Hw(Error("kl"));return f};
_.l.closeDialog=function(){_.Bj(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.l.setState=function(r,f){if(this.data){var I=this.data,C={};switch(r){case "listening":C={headerText:I.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:I.microphoneButtonAriaLabel};break;case "timeout":C={headerText:I.promptHeader,microphoneState:"try-again",microphoneLabel:I.promptMicrophoneLabel,microphoneAriaLabel:I.promptMicrophoneLabel};break;case "microphone-off":C={headerText:I.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:I.promptMicrophoneLabel,
microphoneAriaLabel:I.promptMicrophoneLabel};break;case "transcribing":(f==null?0:f.low)||(f==null?0:f.high)?C={transcriptionLow:f==null?void 0:f.low,transcriptionHigh:f==null?void 0:f.high,microphoneState:"speaking",microphoneAriaLabel:I.microphoneButtonAriaLabel}:C={headerText:I.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:I.microphoneButtonAriaLabel};break;case "processing":C={headerText:I.loadingHeader,microphoneState:"processing",microphoneAriaLabel:I.microphoneButtonAriaLabel};
break;case "offline":C={headerText:I.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:I.connectionErrorMicrophoneLabel,microphoneAriaLabel:I.connectionErrorMicrophoneLabel};break;case "permission":C={headerText:I.permissionsHeader,bodyLine1:I.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:I.permissionsSubtext};break;case "permission-denied":C={headerText:I.disabledHeader,bodyLine1:I.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:I.disabledSubtext}}C.className=
r;this.speechOverlayState=C;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.l.setMicrophoneState=function(r){var f=this.isLevelAnimating;this.isLevelAnimating=r==="speaking";!f&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=r==="processing"&&!this.noAnimations};
_.l.setClass=function(r){this.speechOverlayClassName&&_.ob(this.hostElement,this.speechOverlayClassName,!1);r&&(this.speechOverlayClassName=r,_.ob(this.hostElement,r,!0))};
_.l.runLevelAnimation=function(){var r=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var f=1+Math.random()*.75,I=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+I/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+f+")");_.F_.addJob(function(){r.runLevelAnimation()},3,I)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
j1.prototype.stateChanged=j1.prototype.stateChanged;j1.prototype.transcriptionChanged=j1.prototype.transcriptionChanged;j1.prototype.onPopupClosed=j1.prototype.onPopupClosed;j1.prototype.dataChanged=j1.prototype.dataChanged;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],j1.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],j1.prototype,"rendererStamperBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],j1.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],j1.prototype,"eventForwardingBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],j1.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],j1.prototype,"speechOverlayState",void 0);
_.A([_.K(),_.B("design:type",Object)],j1.prototype,"microphoneSpinnerActive",void 0);_.A([_.K({type:_.N("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.B("design:type",Object)],j1.prototype,"noAnimations",void 0);_.A([_.K({selector:function(r){var f;return(f=r.voiceSearch)==null?void 0:f.transcription}}),
_.B("design:type",Object)],j1.prototype,"transcription",void 0);_.A([_.K({selector:function(r){var f;return(f=r.voiceSearch)==null?void 0:f.overlay}}),
_.B("design:type",String)],j1.prototype,"state",void 0);_.A([_.K(),_.B("design:type",Object)],j1.prototype,"boundExitClick",void 0);_.A([_.uA("#microphone-levels"),_.B("design:type",HTMLElement)],j1.prototype,"level",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j1.prototype,"dataChanged",null);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j1.prototype,"onPopupClosed",null);
_.A([_.YN("transcription"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j1.prototype,"transcriptionChanged",null);_.A([_.YN("state"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j1.prototype,"stateChanged",null);j1=_.A([_.U({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],j1);
_.Q(j1,"ytd-voice-search-dialog-renderer",function(){if(QQU!==void 0)return QQU;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return QQU=r},{mode:1});var dQB;var Hb=function(){var r=_.y.apply(this,arguments)||this;r.isOverlay=!1;r.hidden=!1;return r};
_.t(Hb,_.y);_.l=Hb.prototype;_.l.onPopupClosed=function(){this.toggleIconState(!1)};
_.l.computeIcon=function(){var r,f,I;return(f=_.F((r=this.data)==null?void 0:r.icon,jx6))==null?void 0:(I=f.icon)==null?void 0:I.iconType};
_.l.computeIconBadgeShape=function(){var r;return{iconBadgeType:"cart",iconBadgeText:(r=this.iconBadgeEntity)==null?void 0:r.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.l.onClick=function(){var r;(r=this.data)!=null&&r.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.l.computeHidden=function(r){return!r};
_.l.toggleIconState=function(r){this.iconButton&&(this.iconButton.pressed=r)};
Hb.prototype.onPopupClosed=Hb.prototype.onPopupClosed;_.A([_.J(_.PH),_.B("design:type",Object)],Hb.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Hb.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Hb.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Hb.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],Hb.prototype,"isOverlay",void 0);
_.A([_.K({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.B("design:type",Object)],Hb.prototype,"hidden",void 0);_.A([_.K({selectorArgs:["data.iconBadgeEntityKey"],selector:function(r,f){return _.f2(r.entities,"iconBadgeEntity",f)}}),
_.B("design:type",Object)],Hb.prototype,"iconBadgeEntity",void 0);_.A([_.uA("yt-icon-button"),_.B("design:type",HTMLButtonElement)],Hb.prototype,"iconButton",void 0);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hb.prototype,"onPopupClosed",null);Hb=_.A([_.U({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Hb);
_.Q(Hb,"ytd-icon-badge-topbar-button-renderer",function(){if(dQB!==void 0)return dQB;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return dQB=r},{mode:1});var z21;var i8=function(){var r=_.y.apply(this,arguments)||this;r.premiumOptions=[];r.darkerDarkTheme=_.N("web_darker_dark_theme");return r};
_.t(i8,_.y);i8.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.OC.Object.defineProperties(i8.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],i8.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],i8.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Array)],i8.prototype,"premiumOptions",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],i8.prototype,"darkerDarkTheme",void 0);_.A([_.R("premiumOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],i8.prototype,"hasPremiumOptions",null);
i8=_.A([_.U({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],i8);
_.Q(i8,"ytd-offline-promo-content",function(){if(z21!==void 0)return z21;var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return z21=r},{mode:1});var Mn3;var R$=function(){var r=_.y.apply(this,arguments)||this;r.premiumOptions=[];return r};
_.t(R$,_.y);R$.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var r;this.premiumOptions=qr7((r=this.data)==null?void 0:r.formats)};
R$.prototype.onClickSubmit=function(){_.Bj(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var r;(r=_.sk())==null||r.pause()};
R$.prototype.attached=function(){this.JSC$18360_scroller&&(this.JSC$18360_scroller.dialogElement=this.hostElement.parentNode)};
_.OC.Object.defineProperties(R$.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
R$.prototype.dataChanged=R$.prototype.dataChanged;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],R$.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],R$.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],R$.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],R$.prototype,"data",void 0);
_.A([_.K({computed:"computeIcon_(data.headersIcon)",value:""}),_.B("design:type",String)],R$.prototype,"headersIcon",void 0);_.A([_.K(),_.B("design:type",Array)],R$.prototype,"premiumOptions",void 0);_.A([_.uA("#scroller"),_.B("design:type",Object)],R$.prototype,"JSC$18360_scroller",void 0);_.A([_.R("headersIcon"),_.B("design:type",Object),_.B("design:paramtypes",[])],R$.prototype,"showIcon",null);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],R$.prototype,"dataChanged",null);R$=_.A([_.U({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],R$);
_.Q(R$,"ytd-offline-promo-renderer",function(){if(Mn3!==void 0)return Mn3;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Mn3=r},{mode:1});var grY;var vb=function(){var r=_.y.apply(this,arguments)||this;r.playbackPauseInterval=NaN;r.isLoading=!1;r.hasError=!1;r.dialogClass="";r.youtubeLabel=_.VR("LOGO_ALT_LABEL",{},"YouTube Home");r.logoName="yt-logos-ext:yt-logo-updated";r.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return r};
_.t(vb,_.y);_.l=vb.prototype;_.l.onDataChange=function(){var r;if(this.showEOMV1Text=!((r=this.data)==null||!r.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(r){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[r.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(r){var f=this;this.showLoadingSpinner();this.showLoadingSpinner();iW6(_.F(r,H7V)).catch(function(I){_.t7(new _.nf("Something went wrong when save consent "+(I.message?I.message:I)+"."));f.hideLoadingSpinner();f.showErrorMessage()})};
_.l.handleDisablePersonalization=function(r){var f=this;this.showLoadingSpinner();R9q(_.F(r,jEq)).then(function(){f.dialog.close();f.resumePlayer()}).catch(function(I){_.t7(new _.nf("Something went wrong when disable personalization "+(I.message?I.message:I)+"."));
f.hideLoadingSpinner();f.showErrorMessage()})};
_.l.showLoadingSpinner=function(){var r=this;this.showSpinnerJobId=_.F_.addLowPriorityJob(function(){r.isLoading=!0},500)};
_.l.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.F_.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.l.showErrorMessage=function(){var r=this;this.hasError=!0;_.F_.addLowPriorityJob(function(){r.hasError=!1},2E3)};
_.l.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.ff(function(){try{var r=_.sk();r&&r.pause()}catch(f){}},100))};
_.l.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var r=_.sk();r&&r.play()}catch(f){}};
_.OC.Object.defineProperties(vb.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.data)==null||!r.eomV1Text)return[];r=[];for(var f=["SHIELD","WARNING","BAR_CHART"],I=this.data.eomV1Text.essentialCookieMsg.items,C=0;C<f.length&&C<I.length;C++)r.push({icon:f[C],text:I[C]});return r}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var r;if((r=this.data)==null||!r.eomV1Text)return[];r=[];for(var f=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],I=this.data.eomV1Text.nonEssentialCookieMsg.items,C=0;C<f.length&&C<I.length;C++)r.push({icon:f[C],text:I[C]});return r}}});
vb.prototype.onDataChange=vb.prototype.onDataChange;_.A([_.K(),_.B("design:type",Object)],vb.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],vb.prototype,"showEOMV1Text",void 0);_.A([_.K(),_.B("design:type",Object)],vb.prototype,"isLoading",void 0);_.A([_.K(),_.B("design:type",Object)],vb.prototype,"hasError",void 0);_.A([_.K(),_.B("design:type",Number)],vb.prototype,"showSpinnerJobId",void 0);_.A([_.K(),_.B("design:type",Object)],vb.prototype,"dialogClass",void 0);
_.A([_.uA("#dialog"),_.B("design:type",Object)],vb.prototype,"dialog",void 0);_.A([_.uA("#cb-header"),_.B("design:type",HTMLElement)],vb.prototype,"header",void 0);_.A([_.uA("#lang-select"),_.B("design:type",HTMLElement)],vb.prototype,"langSelect",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],vb.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],vb.prototype,"ytComponentBehavior",void 0);
_.A([_.K(),_.B("design:type",String)],vb.prototype,"youtubeLabel",void 0);_.A([_.K(),_.B("design:type",Object)],vb.prototype,"logoName",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vb.prototype,"onDataChange",null);_.A([_.R("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],vb.prototype,"eomEssentialCookieMsgItems",null);
_.A([_.R("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],vb.prototype,"eomNonEssentialCookieMsgItems",null);vb=_.A([_.U({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],vb);
_.Q(vb,"ytd-consent-bump-v2-lightbox",function(){if(grY!==void 0)return grY;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return grY=r},{mode:1});var aS1;var Kb=function(){return _.y.apply(this,arguments)||this};
_.t(Kb,_.y);Kb.prototype.ready=function(){if(!_.wl()||ZQq)var r=!0;else ZQq=!0,r=!1;r||(r=document.querySelector("ytd-app"),r||(r=document.body),this.internalLightBox=_.e(r).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.A([_.K(),_.B("design:type",Object)],Kb.prototype,"data",void 0);_.A([_.uA("#lightbox"),_.B("design:type",Object)],Kb.prototype,"lightBox",void 0);Kb=_.A([_.U({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Kb);
_.Q(Kb,"ytd-consent-bump-v2-renderer",function(){if(aS1!==void 0)return aS1;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return aS1=r},{mode:1});var XZ2;var NK2;var $Q2;var y_=function(){var r=_.y.apply(this,arguments)||this;r.ephemeralActionsEnabled=_.N("web_ephemeral_actions");return r};
_.t(y_,_.y);_.l=y_.prototype;_.l.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&hh6(this.toastManager,this.toastType)};
_.l.open=function(r){this.toast&&(this.ephemeralAction&&_.a().resolve(_.Y_).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=r!=null?r:0,this.toastManager.enqueue(this.toast,r)):this.toast.open())};
_.l.close=function(r){var f;(f=this.toast)==null||f.close();this.toastManager&&r===1&&hh6(this.toastManager,r)};
_.l.refit=function(){var r;(r=this.toast)==null||r.refit()};
_.l.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var r;(r=this.toast)==null||r.close()}};
_.l.setVerticalOffset=function(r){this.toast&&(this.toast.verticalOffset=r,this.toast.fit())};
_.l.computeButtonClass_=function(r){return r?"toast-button":""};
_.l.computeText_=function(r){return _.Rr(r)};
_.l.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.LT("toast-opened-changed",this.toastOpened))};
_.l.updateToastOpenedFromBinding=function(r){this.toastOpened=r.detail.value};
_.OC.Object.defineProperties(y_.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var r,f,I=(r=this.data)==null?void 0:(f=r.actionButton)==null?void 0:f.buttonRenderer;return(I==null?void 0:I.command)||(I==null?void 0:I.serviceEndpoint)||(I==null?void 0:I.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var r=[],f;((f=this.data)==null?0:f.responseText)&&r.push(_.Rr(this.data.responseText));var I;((I=this.data)==null?0:I.subText)&&r.push(_.Rr(this.data.subText));var C,Y;if((C=this.data)==null?0:(Y=C.actionButton)==null?0:Y.buttonRenderer){var V,S;r.push(((V=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(S=V.accessibilityData)==null?void 0:S.label)||_.Rr(this.data.actionButton.buttonRenderer.text))}return r.filter(function(h){return h}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var r,f;return(f=(r=this.toast)==null?void 0:r.opened)!=null?f:!1}}});
y_.prototype.toastOpenedChangedForBinding=y_.prototype.toastOpenedChangedForBinding;y_.prototype.toastOpenedChanged=y_.prototype.toastOpenedChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],y_.prototype,"ytEventForwardingBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],y_.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],y_.prototype,"duration",void 0);
_.A([_.K(),_.B("design:type",Number)],y_.prototype,"toastType",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],y_.prototype,"useCloseButton",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],y_.prototype,"closeToastOnActionButtonClick",void 0);_.A([_.K({value:function(){return _.VR("SBOX_INAPPROPRIATE_CANCEL")}}),
_.B("design:type",String)],y_.prototype,"closeButtonAriaLabel",void 0);_.A([_.K(),_.B("design:type",Boolean)],y_.prototype,"toastOpened",void 0);_.A([_.K(),_.B("design:type",Boolean)],y_.prototype,"hasOpened",void 0);_.A([_.K(),_.B("design:type",Object)],y_.prototype,"ephemeralActionsEnabled",void 0);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],y_.prototype,"command",null);
_.A([_.R("ephemeralActionsEnabled","labelText","command","duration"),_.B("design:type",Object),_.B("design:paramtypes",[])],y_.prototype,"ephemeralAction",null);_.A([_.R("ephemeralAction"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],y_.prototype,"hasEphemeralAction",null);_.A([_.uA("#toast"),_.B("design:type",Object)],y_.prototype,"toast",void 0);_.A([_.K({value:function(){return{style:"call-to-action-inverse"}}}),
_.B("design:type",Object)],y_.prototype,"buttonOverrides",void 0);_.A([_.K({value:{style:"mono-inverse"}}),_.B("design:type",Object)],y_.prototype,"closeButtonOverrides",void 0);_.A([_.K({value:function(){return _.a().resolve(_.ZY(_.$T6))}}),
_.B("design:type",Object)],y_.prototype,"toastManager",void 0);_.A([_.R("data.responseText","data.subText","data.actionButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],y_.prototype,"labelText",null);_.A([_.Bt("toastOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],y_.prototype,"toastOpenedChanged",null);
_.A([_.Bt("toastOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],y_.prototype,"toastOpenedChangedForBinding",null);y_=_.A([_.zX({is:"yt-notification-action-renderer",disableElementRegistration:!0})],y_);
_.Q(y_,"yt-notification-action-renderer",function(){if($Q2===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;NK2===void 0&&(NK2=document.createElement("template"));var C=NK2;I.call(f,C.content.cloneNode(!0),r.content.firstChild);$Q2=r}r=$Q2;return r},{mode:2});var U3=function(){var r=_.y.apply(this,arguments)||this;r.duration=4E3;r.downloadingCount=0;r.downloadedCount=0;r.downloadingOnlySmartDownloads=!1;r.sessionTotalDownloads=0;r.sessionDownloaded=0;r.previousSessionsDownloaded=0;r.totalDownloadPercentage=0;r.currentDownloadProgress=0;r.currentDownloadPercentage=0;r.isLeaderTab=!0;r.isFullScreen=!1;r.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};r.boundBeforeUnload=function(f){r.isLeaderTab&&r.downloadingCount>0&&(f.preventDefault(),
f.returnValue=!0)};
return r};
_.t(U3,_.y);_.l=U3.prototype;
_.l.open=function(){this.updateDownloadState();if(this.data){var r=this.sessionDownloaded+1,f=this.sessionTotalDownloads>1?_.VR("VIDEOS_DOWNLOADING_RATIO",{downloaded:r.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+r+"/"+this.sessionTotalDownloads):_.VR("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(f=this.sessionTotalDownloads>1?_.VR("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:r.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
r+"/"+this.sessionTotalDownloads):_.VR("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));r=this.isLeaderTab?_.VR("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.Rr(this.data.responseText)!==f||_.Rr(this.data.subText)!==r)this.set("data.responseText",_.iX(f)),this.set("data.subText",_.iX(r)),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 r=this.downloadedCount-this.previousSessionsDownloaded;r<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-r);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.l.handleFullscreenChange=function(r){(this.isFullScreen=r)||this.updatePopup()};
U3.prototype.updateCurrentDownloadProgress=U3.prototype.updateCurrentDownloadProgress;U3.prototype.updatePopup=U3.prototype.updatePopup;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],U3.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],U3.prototype,"ytEventForwardingBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],U3.prototype,"actionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],U3.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],U3.prototype,"duration",void 0);_.A([_.K({selector:function(r){return _.VZm(r.entities).length}}),
_.B("design:type",Object)],U3.prototype,"downloadingCount",void 0);_.A([_.K({selector:AV6}),_.B("design:type",Object)],U3.prototype,"downloadedCount",void 0);_.A([_.K({selector:function(r){var f=_.VZm(r.entities);return Qh7(r.entities,f)}}),
_.B("design:type",Object)],U3.prototype,"downloadingOnlySmartDownloads",void 0);_.A([_.K(),_.B("design:type",Object)],U3.prototype,"sessionTotalDownloads",void 0);_.A([_.K(),_.B("design:type",Object)],U3.prototype,"sessionDownloaded",void 0);_.A([_.K(),_.B("design:type",Object)],U3.prototype,"previousSessionsDownloaded",void 0);_.A([_.K(),_.B("design:type",Object)],U3.prototype,"totalDownloadPercentage",void 0);
_.A([_.K({selector:function(r){var f;r=(f=_.VZm(r.entities))!=null?f:[];return r.length>0?_.k8c(r.slice(-1)):0}}),
_.B("design:type",Object)],U3.prototype,"currentDownloadProgress",void 0);_.A([_.K(),_.B("design:type",Object)],U3.prototype,"currentDownloadPercentage",void 0);_.A([_.K({selector:_.UhE}),_.B("design:type",Object)],U3.prototype,"isLeaderTab",void 0);_.A([_.uA("yt-notification-action-renderer"),_.B("design:type",Object)],U3.prototype,"notificationActionRenderer",void 0);
_.A([_.YN("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U3.prototype,"updatePopup",null);_.A([_.YN("currentDownloadProgress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U3.prototype,"updateCurrentDownloadProgress",null);U3=_.A([_.U({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],U3);
_.Q(U3,"ytd-video-download-toast-renderer",function(){if(XZ2!==void 0)return XZ2;var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return XZ2=r},{mode:1});var Fxp;var PuY;var s3=function(){return _.y.apply(this,arguments)||this};
_.t(s3,_.y);s3.prototype.computeIsRedLogo=function(r,f){!r&&f&&(r=f);return r==="YOUTUBE_RED_LOGO"||r==="YOUTUBE_PREMIUM_LOGO"};
s3.prototype.computeLogoName=function(r){r=this.componentBehavior.computeIcon_(r);return r===""?"yt-logos-ext:yt-logo-updated":r};
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],s3.prototype,"componentBehavior",void 0);_.A([_.K({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.B("design:type",Boolean)],s3.prototype,"isRedLogo",void 0);_.A([_.K({computed:"computeLogoName(data)"}),_.B("design:type",String)],s3.prototype,"logoName",void 0);_.A([_.K({value:{}}),_.B("design:type",Object)],s3.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Object)],s3.prototype,"logoType",void 0);s3=_.A([_.U({disableElementRegistration:!0,is:"ytd-logo"})],s3);
_.Q(s3,"ytd-logo",function(){if(PuY!==void 0)return PuY;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return PuY=r},{mode:_.QQ("kevlar_poly_si_batch_j074")?1:2});var O3=function(){var r=_.y.apply(this,arguments)||this;r.animationRef={};return r};
_.t(O3,_.y);_.l=O3.prototype;_.l.attached=function(){document.addEventListener("yt-navigate-finish",_.GF(this,this.logYoodle))};
_.l.detached=function(){document.removeEventListener("yt-navigate-finish",_.GF(this,this.logYoodle))};
_.l.logYoodle=function(){var r,f;if((r=this.data)==null?0:(f=r.loggingDirectives)==null?0:f.trackingParams)this.ytRendererBehavior.markDirty(),_.IB().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.l.computeHideImg=function(r,f){return!!r||!!f};
_.l.computeHideYtdLogo=function(r,f){return!r||!!f};
_.l.computeHideLottie=function(r){return!r};
_.l.computeIsRedLogo=function(r){return r==="YOUTUBE_RED_LOGO"||r==="YOUTUBE_PREMIUM_LOGO"};
_.l.renderLogoEntity=function(){var r=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),f=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),I=this.getLogoTitleText(this.data),C=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==r&&(this.url=r);this.animatedUrl!==f&&(this.animatedUrl=f);this.logoTitleText!==I&&(this.logoTitleText=I);this.lottieUrl!==C&&(this.lottieUrl=C,this.lottiePlayerProps=this.computeLottiePlayerProps(C))};
_.l.getSanitizedThumbnail=function(r){return r&&r.thumbnails?_.dHE(r.thumbnails,122)||"":""};
_.l.getThumbnailUrl=function(r,f){if(!f)return"";var I,C;r=r?(I=f.darkThemeLogo)==null?void 0:I.thumbnail:(C=f.lightThemeLogo)==null?void 0:C.thumbnail;return this.getSanitizedThumbnail(r)};
_.l.getAnimatedThumbnailUrl=function(r,f){return f?this.getSanitizedThumbnail(r?f.darkThemeAnimatedLogo:f.lightThemeAnimatedLogo):""};
_.l.getLogoTitleText=function(r){if(r)return _.Rr(r.tooltipText)};
_.l.computeLogoIcon=function(r,f){if(f){var I,C;return r?(I=f.darkThemeLogo)==null?void 0:I.icon:(C=f.lightThemeLogo)==null?void 0:C.icon}};
_.l.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.l.getLottieUrl=function(r,f){var I,C,Y,V;return r?f==null?void 0:(I=f.darkThemeLogo)==null?void 0:(C=I.lottieAnimation)==null?void 0:C.url:f==null?void 0:(Y=f.lightThemeLogo)==null?void 0:(V=Y.lottieAnimation)==null?void 0:V.url};
_.l.computeLottiePlayerProps=function(r){if(r){var f;if((f=this.animationRef)==null?0:f.lottieEl){var I;(I=this.animationRef)==null||I.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:r,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&&_.kA(this.hostElement,"yoodle-error")};
_.l.onImgError=function(){this.data&&!this.lottieUrl&&_.kA(this.hostElement,"yoodle-error")};
O3.prototype.playAnimation=O3.prototype.playAnimation;O3.prototype.renderLogoEntity=O3.prototype.renderLogoEntity;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],O3.prototype,"data",void 0);_.A([_.K({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.B("design:type",Boolean)],O3.prototype,"hideImg",void 0);
_.A([_.K({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.B("design:type",Boolean)],O3.prototype,"hideYtdLogo",void 0);_.A([_.K({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.B("design:type",Boolean)],O3.prototype,"hideLottie",void 0);_.A([_.K({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.B("design:type",Boolean)],O3.prototype,"isRedLogo",void 0);
_.A([_.K(),_.B("design:type",Boolean)],O3.prototype,"useDarkThemeYoodle",void 0);_.A([_.K(),_.B("design:type",String)],O3.prototype,"url",void 0);_.A([_.K(),_.B("design:type",String)],O3.prototype,"animatedUrl",void 0);_.A([_.K(),_.B("design:type",String)],O3.prototype,"logoTitleText",void 0);_.A([_.K({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.B("design:type",Object)],O3.prototype,"logoIcon",void 0);_.A([_.K(),_.B("design:type",Object)],O3.prototype,"logoType",void 0);
_.A([_.K(),_.B("design:type",String)],O3.prototype,"lottieUrl",void 0);_.A([_.K(),_.B("design:type",Object)],O3.prototype,"lottiePlayerProps",void 0);_.A([_.K(),_.B("design:type",Object)],O3.prototype,"animationRef",void 0);_.A([_.Bt("data"),_.Bt("useDarkThemeYoodle"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],O3.prototype,"renderLogoEntity",null);
_.A([_.kO("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],O3.prototype,"playAnimation",null);O3=_.A([_.U({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],O3);
_.Q(O3,"ytd-yoodle-renderer",function(){if(Fxp!==void 0)return Fxp;var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return Fxp=r},{mode:_.QQ("kevlar_poly_si_batch_j074")?1:2});var tns;var TK7;var o$=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return r};
_.t(o$,_.y);_.l=o$.prototype;_.l.onYoodleError=function(){_.N("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.l.computeLogoName=function(r){r=this.componentBehavior.computeIcon_(r);return r===""?"yt-logos-ext:yt-logo-updated":r};
_.l.computeTitle=function(r,f,I){return I&&(f==null?0:f.tooltipText)?_.Rr(f.tooltipText):_.Rr(r)};
_.l.computeAriaLabel=function(r,f,I){return I&&(f==null?0:f.tooltipText)?_.Rr(r):""};
_.l.computeShowYoodle=function(r,f,I){return!r||!f&&!!I&&!_.X0.isEmpty(I)};
_.l.onNavigateHomeAction=function(){if(_.N("kevlar_miniplayer_navigate_home_from_app_killswitch")){var r;(r=_.e(this.hostElement).querySelector(".yt-simple-endpoint"))==null||r.click()}};
_.l.computeLogoHref=function(r,f,I){var C;(I==null?0:I.onTapCommand)?C=this.componentBehavior.computeHref_(I.onTapCommand):r&&(C=this.componentBehavior.computeHref_(r));return C?C:f};
_.l.computeCommand=function(r,f){return(f==null?void 0:f.onTapCommand)||r};
_.l.getEndpointForm=function(){if(_.N("kevlar_topbar_disable_cache_only_home")){var r=_.a().resolve(_.Nb),f=uoB(r.getState())||"";r=_.Tcm(r.getState())||"";return{disableCache:f==="ytd-browse"&&r==="home"}}return{disableCache:!0}};
o$.prototype.onYoodleError=o$.prototype.onYoodleError;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],o$.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],o$.prototype,"componentBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],o$.prototype,"ytdReduxBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],o$.prototype,"data",void 0);_.A([_.K(),_.B("design:type",String)],o$.prototype,"countryCode",void 0);_.A([_.K({selectorArgs:["data.overrideEntityKey"],selector:function(r,f){return _.f2(r.entities,"logoEntity",f)}}),
_.B("design:type",Object)],o$.prototype,"logoEntity",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.B("design:type",Boolean)],o$.prototype,"showYoodle",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],o$.prototype,"yoodleError",void 0);_.A([_.K({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.B("design:type",String)],o$.prototype,"titleText",void 0);
_.A([_.K({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.B("design:type",String)],o$.prototype,"ariaLabelText",void 0);_.A([_.K({value:"/"}),_.B("design:type",String)],o$.prototype,"defaultEndpointUrl",void 0);_.A([_.K({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.B("design:type",String)],o$.prototype,"endpointUrl",void 0);
_.A([_.K({computed:"computeCommand(data.endpoint, logoEntity)"}),_.B("design:type",String)],o$.prototype,"command",void 0);_.A([_.K(),_.B("design:type",Object)],o$.prototype,"logoType",void 0);_.A([_.K({}),_.B("design:type",Boolean)],o$.prototype,"useDarkThemeYoodle",void 0);_.A([_.kO("yoodle-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],o$.prototype,"onYoodleError",null);o$=_.A([_.U({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],o$);
_.Q(o$,"ytd-topbar-logo-renderer",function(){if(TK7!==void 0)return TK7;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return TK7=r},{mode:_.QQ("kevlar_poly_si_batch_j027")?1:2});var c2d=0;var Wx3=_.KO.SEARCH_APPEND_LABEL,Lx6=_.KO.SUGGESTION_NEW_VIDEOS_TEXT,mQ6=_.KO.SUGGESTION_THUMBNAIL_LABEL,e22=_.Hc(function(r){function f($C){var kq,XX;return _.x(function(hU){if(hU.nextAddress==1)return kq=new Request($C),_.l_(hU,2),_.b(hU,fetch(kq,{credentials:"include"}),4);if(hU.nextAddress!=2)return J_(!0),_.Hd(hU,0);XX=_.ha(hU);_.t7(XX);_.wO(hU)})}
var I=r.isHighlighted;var C=r.suggestion;var Y=r.onClickCallback;var V=r.onHoverUpdateCallback;var S=r.labels;var h=r.queryBuilderFunction;var w=r.onRemoveCallback;var n=r.suggestionIndex;var d=r.generateUniqueId;var z=r.highlightedId;var g=r.useScrollMargin;var X=r.isKeyboardMode;var P=null,W=null,m=_.yy(),v=_.yy(),O=_.Ue(function($C){$C&&_.eQ(237477,$C,W,function(kq){W=kq})}),k=_.Ue(function($C){$C&&_.eQ(237477,$C,W,function(kq){W=kq})}),Z=_.IC(function($C){if(($C==null?void 0:$C.button)===2)return $C.preventDefault(),
!1;
var kq=_.t1();kq&&P&&_.Rl(kq,P,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var XX;Y($C,C().text,C().index,C().entityMid,$C==null?void 0:(XX=$C.detail)==null?void 0:XX.wasSelectedByKeyboard);return!1}),Cw=function(){return C().type===35},rR=function(){return _.N("desktop_enable_single_suggestion_highlight")},EP=function(){return _.N("desktop_enable_entity_suggest")},Pu=function(){return _.Bw("desktop_suggestions_panel_row_height")||0},Wu=function(){var $C;
return _.N("desktop_enable_new_video_metadata")&&(($C=C())==null?void 0:$C.hasNewVideo)===!0},cu=function(){return _.N("desktop_enable_visual_suggest")},OP=function(){return C().entitySubtitle},iU=function(){return rR()?(I==null?void 0:I())||F9()&&!(X==null?0:X()):(I==null?void 0:I())||F9()},oR=function(){var $C=_.Lz("SBOX_SETTINGS");
return Cw()&&!($C==null?0:$C.HIDE_REMOVE_LINK)},vu=function(){return lSU(C())},wB,qT=!((wB=_.a().resolve(_.ZY(_.cI)))==null||!wB()),gB=function(){return Cw()?"ARROW_TIME":"SEARCH"},C8=function(){return S==null?void 0:S().SUGGESTION_DISMISS_LABEL},Es=function(){return S==null?void 0:S().SUGGESTION_DISMISSED_LABEL};
wB=_.E(_.ld(!1,void 0,"kHLOZe"));r=wB.next().value;var J_=wB.next().value;wB=_.E(_.ld(!1,void 0,"SGF2sd"));var xC=wB.next().value,r2=wB.next().value,F9=xC,SK=_.IC(function(){h(v.value.innerText);return!1}),FX=_.IC(function($C){$C.preventDefault();
return!1}),iV=_.IC(function($C){var kq=C().text,XX=_.Lz("SBOX_SETTINGS"),hU="https://"+(XX.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
hU+="&delq="+encodeURIComponent(kq);(kq=XX==null?void 0:XX.PSUGGEST_TOKEN)&&(hU+="&tok="+kq);(XX=XX==null?void 0:XX.SESSION_INDEX)&&(hU+="&authuser="+XX);f(hU);$C.preventDefault();($C=_.t1())&&W&&_.Rl($C,W,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");w(n==null?void 0:n());return!1}),s7=_.IC(function(){if(rR()&&(X==null?0:X()))return!1;
r2(!0);V(!0);return!1}),W4=_.IC(function(){r2(!1);
V(!1);return!1});
wB=_.E(_.ld("",void 0,"yaN19c"));var Qq=wB.next().value,Gs=wB.next().value;_.Xl(function(){oR()&&Gs(d==null?void 0:d(n==null?void 0:n()));m.value&&_.eQ(12453,m.value,P,function($C){P=$C})});
return _.p(_.M,{cond:r,then:function(){var $C={};return _.p("div",{class:_.qd("ytSuggestionComponentRemovedText",($C.ytSuggestionComponentLargerRemovedText=function(){return cu()},$C)),
style:function(){return Pu()>0?"height: "+Pu()+"px;":""},
role:"button"},Es)},
else:function(){var $C={},kq={};return _.p("div",{class:_.qd("ytSuggestionComponentSuggestion",($C.ytSuggestionComponentSuggestionHover=function(){return!rR()},$C.ytSuggestionComponentHighlighted=iU,$C.ytSuggestionComponentPersonalizedSuggestion=Cw,$C.ytSuggestionComponentMweb=!1,$C.ytSuggestionComponentLargerSuggestion=function(){return Wu()||cu()},$C.ytSuggestionComponentThumbnailSuggestion=function(){return cu()},$C.ytSuggestionComponentRoundedSuggestion=function(){return _.N("desktop_enable_scrollable_suggestions_panel")&&
_.N("desktop_enable_suggestions_panel_padding")},$C.ytSuggestionComponentThumbnailPadding=function(){return cu()&&!Cw()},$C)),
style:function(){return Pu()>0?"height: "+Pu()+"px;":""},
role:"presentation","on:mousedown":Z,"on:mouseover":s7,"on:mouseout":W4,el:m},_.p("div",{class:_.qd("ytSuggestionComponentText",(kq.ytSuggestionComponentScrollMargin=g,kq)),"aria-label":function(){return Wu()?C().text+" "+Lx6:C().text},
id:function(){return d==null?void 0:d(n==null?void 0:n())},
"on:mousedown":Z,role:"option"},_.p(_.M,{cond:function(){return C().type!==33},
then:function(){return _.p(_.V2,{icon:gB,className:"ytSuggestionComponentIcon"})}}),_.p("div",{class:"ytSuggestionComponentLeftContainer"},_.p("span",{el:v,
role:"button",tabindex:0},_.p(_.pz,{each:vu},function(XX){return XX.bold?_.p("span",{class:"ytSuggestionComponentBold"},XX.text):_.p("span",null,XX.text)})),_.p(_.M,{cond:function(){return EP()&&Vn6(C())&&!!C().entitySubtitle},
then:function(){return _.p("div",{class:"ytSuggestionComponentEntitySubtitle"},OP)}}),_.p(_.M,{cond:function(){return Wu()},
then:function(){return _.p("div",{class:"ytSuggestionComponentNewVideoContainer"},_.p("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.p("div",{class:"ytSuggestionComponentNewVideoText"},Lx6))}}))),_.p("div",{class:"ytSuggestionComponentRightContainer"},_.p(_.M,{cond:function(){return cu()&&C().visualSuggestUrl!==void 0},
then:function(){var XX={};return _.p("div",{class:"ytSuggestionComponentThumbnailContainer"},_.p("img",{"aria-label":mQ6,class:_.qd("ytSuggestionComponentVisualSuggestThumbnail",(XX.ytSuggestionComponentCircularFrame=function(){return EP()&&Vn6(C())&&C().subtypes.includes(790)},XX.ytSuggestionComponentEntitySuggestThumbnail=function(){return EP()&&Vn6(C())},XX)),
src:function(){return C().visualSuggestUrl}}))}}),_.p(_.MC,null,_.p(_.nz,{when:function(){return cu()&&oR()}},function(){var XX={};
return _.p("button",{class:_.qd("ytSuggestionComponentRemoveLinkClearButton",(XX.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return Qq()&&Qq()===(z==null?void 0:z())},XX.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!iU()},XX)),
el:k,"on:mousedown":iV,"aria-label":C8,id:function(){return Qq()}},_.p(_.V2,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.p(_.nz,{when:function(){return!(cu()&&C().visualSuggestUrl!==void 0)&&oR()}},function(){var XX={};
return _.p("a",{class:_.qd("ytSuggestionComponentRemoveLink",(XX.ytSuggestionComponentRemoveLinkDark=qT,XX.ytSuggestionComponentRemoveLinkSelected=function(){return Qq()&&Qq()===(z==null?void 0:z())},XX)),
el:O,"on:mousedown":iV,"aria-label":C8,tabindex:0,role:"button",id:function(){return Qq()}},C8)}),_.p(_.nz,{when:function(){return!1}},function(){return _.p("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":SK,"on:mousedown":FX,role:"button","aria-label":Wx3},_.p(_.V2,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"jg");var J27=_.Hc(function(){var r=_.IC(function(){h26().inputMethodsTracker.add(3);var f,I=(f=_.Lz("SBOX_SETTINGS"))==null?void 0:f.REQUEST_LANGUAGE;if(I)return _.m0("//www.google.com/textinputassistant/14/"+I+"_tia.js"),!1});
return _.p("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.p("button",{class:"ytdTextInputAssistantButton","on:click":r},_.p("img",{class:"ytdTextInputAssistantIcon",tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"kg");var ju6=function(){this.cache=new Map},HUU=function(r){for(var f=_.E(r.cache.entries()),I=f.next();!I.done;I=f.next()){var C=_.E(I.value);
I=C.next().value;C=C.next().value;C.suggestions.some(function(Y){return Y.type===35})&&r.cache.delete(I)}};var iUq=_.KO.SEARCH,R27=_.KO.SEARCH_CLEAR_LABEL,vr6=new _.Go("FAKE_SUGGEST_RESPONSE");_.Kv(_.Hc(function(r){function f(){$C||($C=setTimeout(function(){XX()},1E3))}
function I(aD,z4,pq){if(aD.trim()){Gs=aD;_.Ww("REFINEMENTS_TUPLE",void 0);W4=!0;var tg;z4=pZ7(F9,z4);var Vq=(tg=r.searchEndpoint)==null?void 0:tg.call(r);tg=Es.value.value;Vq||(Vq=EYp);var N3;(N3=_.F(Vq.commandMetadata,_.oo))!=null&&N3.url||(N3=Error("ll`"+JSON.stringify(Vq)),_.Fo(N3),Vq=EYp);N3=_.X0.unsafeClone(Vq);Vq=_.mN(_.F(N3.commandMetadata,_.oo).url,"search_query",aD);_.Jy(location.href,"sv")==="1"&&(_.F(N3,_.VB).params="EgOAAgE%3D",Vq=_.mN(Vq,"sv","1"));_.F(N3,_.VB)&&(_.F(N3,_.VB).query=aD);
Vq=Vq.replace(/%20/g,"+");_.F(N3.commandMetadata,_.oo).url=Vq;pq=_.N("desktop_enable_entity_suggest")?{entityMid:pq}:{};_.a().resolve(_.Gg).resolveCommand(N3,{form:{tempData:Object.assign({},{gs_l:z4,oq:tg!=null?tg:aD},pq)}});XX();Es.value.value=aD;Es.value.blur();F9.reset()}}
function C(aD){return _.x(function(z4){return z4.return(new Promise(function(pq){var tg=new XMLHttpRequest;tg.open("GET",uh3(aD),!0);tg.withCredentials=!0;var Vq=_.Lz("SBOX_SETTINGS");(Vq==null?0:Vq.SEND_VISITOR_DATA)&&tg.setRequestHeader("X-Goog-Visitor-Id",Vq==null?void 0:Vq.VISITOR_DATA);tg.onload=function(){pq(tg.responseText)};
tg.onerror=function(){_.t7(Error("ml"));pq(null)};
setTimeout(function(){tg.abort()},1E4);
tg.send(null)}))})}
function Y(aD){var z4,pq,tg,Vq;return _.x(function(N3){switch(N3.nextAddress){case 1:return z4={credentials:"include",headers:qJi()},window.AbortController&&(pq=new AbortController,setTimeout(function(){pq.abort("ytsbox-suggest-timeout")},1E4),z4.signal=pq.signal),_.l_(N3,2),_.b(N3,fetch(uh3(aD),z4),4);
case 4:tg=N3.yieldResult.text();_.Hd(N3,3);break;case 2:return Vq=_.ha(N3),Vq!=="ytsbox-abort-last"&&Vq!=="ytsbox-suggest-timeout"&&_.t7(Vq),N3.return(null);case 3:return N3.return(tg)}})}
function V(aD){var z4,pq,tg;return _.x(function(Vq){switch(Vq.nextAddress){case 1:if(z4=_.a().resolve(_.ZY(vr6)))return Vq.return(z4);pq=Date.now();f();return _.N("yt_searchbox_xhr")?_.b(Vq,C(aD),5):_.b(Vq,Y(aD),4);case 4:tg=Vq.yieldResult;Vq.jumpTo(3);break;case 5:tg=Vq.yieldResult;case 3:if(tg){$C&&(clearTimeout($C),$C=null);var N3=F9,zA=pq,RM=aD.query.length===0;zA=Date.now()-zA;RM?N3.zeroPrefixRoundTripTime=zA:(N3.JSC$18340_totalRoundTripTime+=zA,N3.maxRoundTripTime=Math.max(N3.maxRoundTripTime,
zA),RM=Math.floor(zA/100),RM>=nrY.length?++N3.roundTripTimeHistogram[9]:++N3.roundTripTimeHistogram[nrY[RM]])}return Vq.return(tg)}})}
function S(aD){var z4,pq,tg;return _.x(function(Vq){if(Vq.nextAddress==1)return(z4=r2.cache.get(BAd(aD)))?Vq.return(z4):_.b(Vq,V(aD),2);pq=Vq.yieldResult;if(pq===null)return Vq.return(null);tg=new ErU(pq);aD.query.length===0&&tg.suggestions.length===0||r2.cache.set(BAd(aD),tg);return Vq.return(tg)})}
function h(aD){var z4,pq;return _.x(function(tg){if(tg.nextAddress==1){Qq=!1;var Vq=Gs;Vq=_.bZP()==="search"?(_.Jy(location.href,"search_query")||_.Jy(location.href,"q"))===Vq:!1;z4=new kf7(aD,Vq?Gs:null);return _.b(tg,S(z4),2)}pq=tg.yieldResult;if(pq===null)return tg.return();z4.query.length===0&&(F9.zeroPrefixSuggestionCount=pq.suggestions.length);if(z4.id<=kq)return F9.outOfSyncResponseCount++,tg.return();if(document.activeElement!==Es.value)return tg.return();kq=z4.id;var N3=F9,zA=pq.rawResponse[2]||
{};N3.experimentTriggeredBeforeFinal||(N3.experimentTriggeredBeforeFinal=N3.experimentTriggeredFinal);N3.experimentTriggeredFinal=!!zA.e;F9.updateSuggestions(pq.suggestions);m(-1);wB([]);pq.suggestions!==X()&&YB(pq.suggestions.length);P(pq.suggestions);Pu(pq.suggestions.length>0&&pq.suggestions[0].type===33);xC&&(xC.hidden=pq.suggestions.length===0,EP()?(xC.style.minWidth="",N3=xC.style,zA=(Vq=X()[0])==null?void 0:Vq.ignoredPrefix,N3.marginLeft=(zA?Math.min(zA.length*6,J_.value.offsetWidth):0).toString()+
"px"):(xC.style.minWidth=J_.value.offsetWidth+"px",xC.style.marginLeft="0"),k1());_.wO(tg)})}
function w(){if(!W4)return!1;var aD=_.Lz("REFINEMENTS_TUPLE");return aD?(aD=aD[1].map(function(z4,pq){return new YX1([z4,0,[71]],Es.value.value,pq)}),X()!==aD&&YB(aD.length),wB([]),P(aD),F9.updateSuggestions(aD),W4=!1,xC.hidden=aD.length===0,Qq=aD.length>0,!0):!1}
function n(){var aD=Es.value.value;(typeof aD==="string"||aD instanceof String)&&aD!==""?Z(!0):Z(!1)}
function d(){if(_.bZP()==="search"){var aD=window.location.href;try{var z4=_.Jy(aD,"search_query")||_.Jy(aD,"q")||""}catch(pq){z4=""}z4&&(Es.value.value=z4,Z(!0))}}
var z=_.E(_.ld([],void 0,"kGFAjf")),g=z.next().value;z=z.next().value;var X=g,P=z;g=_.E(_.ld(-1,void 0,"mLGL9e"));var W=g.next().value,m=g.next().value;g=_.E(_.ld(-1,void 0,"u2rYdc"));var v=g.next().value,O=g.next().value;g=_.E(_.ld(!1,void 0,"W9DFC"));var k=g.next().value,Z=g.next().value;g=_.E(_.ld(!1,void 0,"Ip4dNc"));var Cw=g.next().value,rR=g.next().value;z=_.E(_.ld(!1,void 0,"ZNKSQb"));g=z.next().value;z=z.next().value;var EP=g,Pu=z;z=_.E(_.ld(!1,void 0,"JBrGLd"));g=z.next().value;var Wu=z.next().value;
z=_.E(_.ld(!1,void 0,"P2pD6e"));var cu=z.next().value,OP=z.next().value;z=_.E(_.ld(1,void 0,"SjP20c"));var iU=z.next().value,oR=z.next().value;z=_.E(_.ld([],void 0,"h4dRaf"));var vu=z.next().value,wB=z.next().value;z=_.E(_.ld(!1,void 0,"TUTzaf"));var qT=z.next().value,gB=z.next().value;z=_.N("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var C8=_.yy(),Es=_.yy(),J_=_.yy(),xC,r2=new ju6,F9=h26(),SK=_.a().resolve(_.ZY(_.cI)),
FX=function(){var aD;return((aD=r.forceDarkMode)==null?void 0:aD.call(r))||!(SK==null||!SK())},iV=function(){return _.N("desktop_enable_scrollable_suggestions_panel")},s7="i"+c2d++,W4=!1,Qq=!1,Gs="",$C=null,kq=-1,XX=function(){wB([]);
P([]);Pu(!1);xC&&(xC.hidden=!0);$C&&(clearTimeout($C),$C=null);m(-1)},hU=function(aD,z4){aD.preventDefault();
gB(!0);xC&&(xC.hidden=!1);var pq=W();aD=X();var tg=vu();z4=rN2(z4);pq+=z4;for(pq>=aD.length?pq=-1:pq<-1&&(pq=aD.length-1);pq!==-1&&(tg.includes(pq)||pq>=aD.length||pq<0);)pq+=z4,pq>=aD.length&&(pq=-1);m(pq);W()>=0&&(Es.value.value=X()[W()].text,O(0),n(),aD=W(),tg=v(),(tg=document.getElementById(to[aD][tg]))&&iV()&&(aD===X().length-1?xC.scrollTop=xC.scrollHeight:tg.scrollIntoView({block:"nearest",inline:"start"})))},P4=_.IC(function(aD){if(!(aD.relatedTarget instanceof Element&&aD.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){rR(!0);
var z4;(z4=r.focusCallback)==null||z4.call(r,!0);w()||(Qq?xC.hidden=!1:(_.kA(C8.value,"yt-autonav-pause-focus",{}),h(aD.target.value)))}}),N6=_.IC(function(aD){if(!(aD.relatedTarget instanceof Element&&aD.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){rR(!1);
var z4;(z4=r.focusCallback)==null||z4.call(r,!1);xC.scrollTop=0;xC.hidden=!0;_.kA(C8.value,"yt-autonav-pause-blur",{})}}),hg=function(aD){aD=rN2(aD);
var z4;((z4=to[W()])==null?0:z4[v()+aD])&&O(v()+aD)},pW=_.IC(function(aD){var z4=aD.target;
switch(aD.keyCode){case 13:aD.preventDefault();var pq;if((pq=to[W()])==null?0:pq[v()]){var tg;(tg=document.getElementById(to[W()][v()]))==null||tg.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}aD=aD.shiftKey?4:3;pq=F9;tg=W();pq.selectedSuggestionIndex=tg;I(z4.value,aD);break;case 27:xC&&(xC.hidden=!0);break;case 40:hU(aD,40);break;case 38:hU(aD,38);break;case 39:hg(39);break;case 37:hg(37);break;case 229:F9.inputMethodsTracker.add(4);break;default:F9.inputMethodsTracker.add(1),
wZY(F9)}return!1}),O7=_.IC(function(aD){h(aD.target.value);
n();iV()&&xC&&(xC.scrollTop=0);return!1}),ak=_.IC(function(){F9.inputMethodsTracker.add(2);
wZY(F9);return!1});
_.Xl(function(){if(xC){F9.reset();if(window.ResizeObserver){var aD=new ResizeObserver(function(){EP()||(xC.style.minWidth=J_.value.offsetWidth+"px")});
aD.observe(J_.value);(new ResizeObserver(function(){k1()})).observe(xC);
_.$L(function(){aD.disconnect()})}d();
window.addEventListener("yt-navigate-finish",d);window.addEventListener("yt-focus-searchbox",function(){Es.value.focus()});
var z4;Wu((z4=_.Lz("SBOX_SETTINGS"))==null?void 0:z4.HAS_ON_SCREEN_KEYBOARD)}else _.Fo(new _.nf("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var Xo=_.IC(function(aD){aD.preventDefault();I(Es.value.value,12);return!1}),yq=_.IC(function(aD){aD.preventDefault();
var z4,pq;(z4=Es)==null||(pq=z4.value)==null||pq.focus();var tg,Vq;((tg=Es)==null?void 0:(Vq=tg.value)==null?void 0:Vq.value)!==""&&(Es.value.value="",Es.value.dispatchEvent(new Event("input")));return!1}),T6=_.IC(function(){var aD=DW6(Es.value.value,X().filter(function(z4){return z4.type!==35}).map(function(z4){return{label:z4.text}}));
_.Bj(C8.value,"yt-open-popup-action",[{openPopupAction:aD},document.body]);return!1}),AU=_.IC(function(){Es.value.focus();
return!1}),w2=function(aD,z4,pq,tg,Vq){F9.selectedSuggestionIndex=pq;
I(z4,Vq?3:1,tg)},NU=function(aD){Es.value.value=aD;
Es.value.dispatchEvent(new Event("input"));F9.inputMethodsTracker.add(5);wZY(F9,!0)},to=[[]],dI=function(aD){var z4="searchbox-suggestion"+_.TN(_.cS);
to[aD].push(z4);return z4},YB=function(aD){if(X()){to=[[]];
for(var z4=0;z4<aD;z4++)to.push([])}},k1=function(){if(iV()){var aD=xC,z4=aD.scrollTop;
aD=aD.scrollHeight-aD.clientHeight;OP(z4>=aD);z4=Math.abs(aD-z4);z4<=40?oR(1-(40-z4)/40):oR(1)}},z5=function(){return"opacity: "+iU()*100+"%"},X$=_.IC(function(){k1();
return!1}),Jm=_.IC(function(){gB(!1);
return!1}),UP,dB={},l2={},Lj={},b2={};
return _.p("yt-searchbox",{class:_.qd("ytSearchboxComponentHost",(dB.ytSearchboxComponentMweb=!1,dB.ytSearchboxComponentDesktop=!0,dB["yt-searchbox-filled-query"]=function(){return k()},dB["ytd-masthead"]=function(){return!Cw()},dB.ytSearchboxComponentHostDark=FX,dB)),
role:"search",el:C8,"client-ve-type":10349},_.p("div",{el:J_,"on:click":AU,class:_.qd("ytSearchboxComponentInputBox",(l2.ytSearchboxComponentInputBoxDark=FX,l2.ytSearchboxComponentInputBoxHasFocus=Cw,l2))},_.p("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":Xo},_.p(_.M,{cond:Cw,then:function(){return _.p("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.p(_.V2,{icon:"SEARCH"}))}}),_.p("input",{el:Es,
class:_.qd("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":s7,"aria-expanded":!((UP=xC)==null?0:UP.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":N6,"on:focus":P4,"on:input":O7,"on:keydown":pW,"on:paste":ak,placeholder:r.placeholderText,"aria-activedescendant":function(){var aD;return(aD=to[W()])==null?void 0:aD[v()]},
"aria-autocomplete":"list",role:"combobox"})),_.p(_.M,{cond:g,then:function(){return _.p("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.p(J27,null))}}),_.p(_.M,{cond:k,
then:function(){return _.p("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.p("button",{class:"ytSearchboxComponentClearButton","on:click":yq,"aria-label":r.clearButtonAriaLabel||R27},_.p(_.V2,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.p(_.xZ,{model:{}})))}})),_.p("button",{class:_.qd("ytSearchboxComponentSearchButton",(Lj.ytSearchboxComponentSearchButtonDark=FX,Lj)),
"on:click":Xo,"aria-label":iUq,title:r.placeholderText},_.p(_.V2,{icon:"SEARCH"})),_.p(_.M,{cond:function(){if(w16()&&_.N("mweb_voice_search")&&r.voiceSearchButton)return r.voiceSearchButton()},
then:function(aD){var z4={};return _.p("div",{class:_.qd("ytSearchboxComponentVoiceSearchWrapper",(z4.ytSearchboxComponentHideVoiceSearchButton=function(){return k()},z4))},_.p(_.X1,{data:aD},{buttonRenderer:function(pq){return _.p(_.mq,{data:pq.data,
onButtonClickCallback:function(){}})}}))}}),_.p("div",{el:_.HI(function(aD){return void(xC=aD)}),
id:s7,class:_.qd("ytSearchboxComponentSuggestionsContainer",(b2.ytSearchboxComponentSuggestionsContainerDark=FX,b2["yt-searchbox-suggestions-container"]=!1,b2.ytSearchboxComponentSuggestionsContainerScrollable=iV(),b2.ytSearchboxComponentSuggestionsContainerAnimated=z,b2)),"on:scroll":X$,"on:mousemove":Jm,role:"listbox",hidden:!0},_.p(_.pz,{each:X},function(aD,z4){return _.p(e22,{suggestion:aD,isHighlighted:function(){return z4()===W()},
onClickCallback:w2,onHoverUpdateCallback:function(pq){if(_.N("desktop_enable_single_suggestion_highlight")){var tg=z4();pq&&(O(0),m(tg))}},
onRemoveCallback:function(pq){HUU(r2);pq===void 0||pq<0||vu().includes(pq)||wB([].concat(_.Na(vu()),[pq]))},
labels:r.labels,queryBuilderFunction:NU,suggestionIndex:z4,generateUniqueId:dI,highlightedId:function(){var pq;return(pq=to[W()])==null?void 0:pq[v()]},
useScrollMargin:iV(),isKeyboardMode:qT})}),_.p(_.M,{cond:function(){return!EP()&&X().find(function(aD){return aD.type!==35})&&_.N("searchbox_reporting")},
then:function(){return _.p("button",{class:"ytSearchboxComponentReportButton","on:mousedown":T6},_.VR("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.p(_.M,{cond:function(){return!cu()&&iV()},
then:function(){return _.p("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.p("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:z5}))}})))},"lg"),"yt-searchbox",{props:{searchEndpoint:_.jv,
placeholderText:_.jv,labels:_.jv,voiceSearchButton:_.jv,focusCallback:_.vI,clearButtonAriaLabel:_.jv,forceDarkMode:_.jv}});var Q_=function(){var r=_.y.apply(this,arguments)||this;r.menuButtonTargetId="topbar-guide-menu";r.narrow=!1;r.menuStrings={BACK_ALT_LABEL:_.VR("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.VR("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.VR("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.VR("SBOX_PLACEHOLDER",void 0,"Search")};r.pageDarkTheme=document.documentElement.hasAttribute("dark");r.watchPageScrollTop=0;r.theater=!1;r.fullscreen=!1;r.desktopUnifiedSearchPanelMode=_.N("desktop_enable_unified_search_panel");
r.cinematicTheaterMode=_.N("web_cinematic_theater_mode");r.ytSearchboxFocused=!1;r.searchboxLabels=_.Lz("SBOX_LABELS");r.topbarIsAboveChipbar=!1;r.isDarkThemeForced=!1;r.areGhostCardsHidden=!1;r.guideKeyboardToggle=!1;r.voiceSearchManager=Dzp();r.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};r.setYtSearchboxFocused=function(f){r.ytSearchboxFocused=f};
return r};
_.t(Q_,_.y);_.l=Q_.prototype;_.l.computeSimpleText=function(r){return _.Rr(r)};
_.l.onDarkChanged=function(){for(var r=_.E(this.buttons||[]),f=r.next();!f.done;f=r.next())f.value.isOverlay=!!this.dark;r=_.E(this.buttonRenderers||[]);for(f=r.next();!f.done;f=r.next())f.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]]"}},
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 r=_.eN(_.mZ(),"aa");_.ob(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||r||(this.isDarkThemeForced=this.dark=!0);this.logoType?(r=this.hostElement.querySelector("#masthead-logo"))&&(_.N("polymer_on_demand_shady_dom")?r.setAttribute("slot","masthead-logo-old"):_.bE(r)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.GF(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.GF(this,this.onSetTheaterModeEnabled))};
_.l.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.GF(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.GF(this,this.onSetTheaterModeEnabled))};
_.l.dataChanged=function(){var r=this.data;r&&(this.voiceEnabled=r.voiceSearchButton?Dzp().isSupported():!1,_.AIg(_.fh(),this.menuButtonTargetId,this.guideButton),r.onReceivedActions&&r.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.rX(this.hostElement,r.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&r&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.ob(this.hostElement,"dark",!1),_.ob(this.hostElement,"theater",!1),
(r=this.hostElement.querySelector("#masthead-logo"))&&(_.N("polymer_on_demand_shady_dom")?r.setAttribute("slot","masthead-logo-old"):_.bE(r))))};
_.l.computeCenterHidden=function(){var r;return this.data&&!((r=this.data.searchbox)==null?0:r.fusionSearchboxRenderer)};
_.l.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.ob(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.l.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.l.onWatchScroll=function(r){this.watchPageScrollTop=r.detail||0;this.updateMastheadBackgroundOpacity()};
_.l.onFullscreenChangeAction=function(r){r||(this.watchPageScrollTop=0);this.fullscreen=r;this.updateMastheadBackgroundOpacity()};
_.l.onSetTheaterModeEnabled=function(r){this.theater=r.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(r){r=this.calculateBackgroundOpacity(r);this.background.style.opacity=""+r};
_.l.calculateBackgroundOpacity=function(r){var f=this.theater&&this.cinematicTheaterMode?.6:0,I=this.hostElement.clientHeight/2;return Math.min(Math.max(r,0),I)/I*(1-f)+f};
_.l.shouldShowCinematicMastHead=function(){var r=_.N("kevlar_watch_grid")&&!_.N("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(r||this.pageDarkTheme)};
_.l.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.l.focusGuide=function(){this.guideButton.focus()};
_.l.onGuideToggleTap=function(){_.kA(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.l.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.l.onGuideToggleHover=function(){_.kA(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(r){for(r=_.JN(r);r[0];){var f=r.shift();if(f instanceof Element&&f.id==="kbd")return!1}return!0};
_.l.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.l.pausePlayer=function(){var r;(r=_.sk())==null||r.pause();this.pauseMiniplayer()};
_.l.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var r;(r=_.a().resolve(_.iO).getPlayerElement())==null||r.pause()}};
_.l.isMiniplayerActive=function(){return _.a().resolve(_.iO).isMiniplayerActive()};
_.l.updateNarrowFromBinding=function(r){this.narrow=r.detail.value};
_.l.onYtSendFeedbackAction=function(){_.Bj(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.OC.Object.defineProperties(Q_.prototype,{shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var r;return(r=this.data)==null?void 0:r.voiceSearchButton}}}});
Q_.prototype.narrowChanged=Q_.prototype.narrowChanged;Q_.prototype.onWatchPageChange=Q_.prototype.onWatchPageChange;Q_.prototype.onRendererStamperFinished=Q_.prototype.onRendererStamperFinished;Q_.prototype.dataChanged=Q_.prototype.dataChanged;Q_.prototype.onDarkChanged=Q_.prototype.onDarkChanged;_.A([_.J(_.Pq),_.B("design:type",Object)],Q_.prototype,"ironResizableBehavior",void 0);_.A([_.J(_.wkq),_.B("design:type",Object)],Q_.prototype,"ytdExpandableInputBehavior",void 0);
_.A([_.J(_.mB.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Q_.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Q_.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Q_.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.PH),_.B("design:type",Object)],Q_.prototype,"ytdReduxBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Q_.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],Q_.prototype,"narrow",void 0);_.A([_.K(),_.B("design:type",Object)],Q_.prototype,"logoType",void 0);_.A([_.K(),_.B("design:type",Boolean)],Q_.prototype,"voiceEnabled",void 0);
_.A([_.K(),_.B("design:type",Object)],Q_.prototype,"menuStrings",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Q_.prototype,"dark",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Q_.prototype,"pageDarkTheme",void 0);_.A([_.K(),_.B("design:type",Object)],Q_.prototype,"watchPageScrollTop",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.$x}),_.B("design:type",Boolean)],Q_.prototype,"isWatchPage",void 0);
_.A([_.K({reflectToAttribute:!0,selector:_.WRU}),_.B("design:type",Boolean)],Q_.prototype,"isShortsPage",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Q_.prototype,"theater",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],Q_.prototype,"fullscreen",void 0);_.A([_.K({reflectToAttribute:!0,selector:_.jxK}),_.B("design:type",String)],Q_.prototype,"frostedGlassMode",void 0);_.A([_.K(),_.B("design:type",Object)],Q_.prototype,"ytSearchboxFocused",void 0);
_.A([_.Dh("#buttons > *"),_.B("design:type",Array)],Q_.prototype,"buttons",void 0);_.A([_.Dh("ytd-button-renderer"),_.B("design:type",Array)],Q_.prototype,"buttonRenderers",void 0);_.A([_.uA("#background"),_.B("design:type",HTMLDivElement)],Q_.prototype,"background",void 0);_.A([_.uA("#guide-button"),_.B("design:type",Object)],Q_.prototype,"guideButton",void 0);_.A([_.uA("#logo"),_.B("design:type",Object)],Q_.prototype,"logo",void 0);
_.A([_.K({computed:"computeButtonOverride(dark)"}),_.B("design:type",Object)],Q_.prototype,"buttonOverrides",void 0);_.A([_.YN("dark"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Q_.prototype,"onDarkChanged",null);_.A([_.K({value:function(){return this.onVoiceTap.bind(this)}}),
_.B("design:type",Function)],Q_.prototype,"boundOnTapVoiceButton",void 0);_.A([_.K(),_.B("design:type",Object)],Q_.prototype,"topbarIsAboveChipbar",void 0);_.A([_.R("voiceEnabled"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Q_.prototype,"shouldShowVoiceSearchButton",null);_.A([_.R("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Q_.prototype,"voiceSearchButton",null);
_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Q_.prototype,"dataChanged",null);_.A([_.kO("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Q_.prototype,"onRendererStamperFinished",null);_.A([_.YN("isWatchPage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Q_.prototype,"onWatchPageChange",null);
_.A([_.YN("narrow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Q_.prototype,"narrowChanged",null);Q_=_.A([_.U({disableElementRegistration:!0,is:"ytd-masthead"})],Q_);
_.Q(Q_,"ytd-masthead",function(){if(tns!==void 0)return tns;var r=document.createElement("template");_.c(r,'\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="yt-icons:menu" 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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return tns=r},{mode:_.QQ("kevlar_poly_si_batch_j036")?1:2});var Kxd;var y26={},UQ6={},suY={},OU3={},ors=(OU3.OFFLINE=(y26["publicytnetworkstatus-online"]="BACK_ONLINE",y26),OU3.ONLINE=(UQ6["publicytnetworkstatus-offline"]="OFFLINE",UQ6),OU3.BACK_ONLINE=(suY["publicytnetworkstatus-offline"]="OFFLINE",suY.TIMER_TRIGGER="ONLINE",suY),OU3),AO=function(){var r=_.y.apply(this,arguments)||this;r.currentState="ONLINE";r.scheduledJobId=0;r.bannerString="";r.bannerVe=null;r.networkStatusManagerInstance=new _.ix;return r};
_.t(AO,_.y);_.l=AO.prototype;_.l.attached=function(){var r=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){r.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){r.stateChangeHandler("publicytnetworkstatus-offline")})};
_.l.detached=function(){var r=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){r.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){r.stateChangeHandler("publicytnetworkstatus-offline")})};
_.l.enterState=function(r){var f=this;this.scheduledJobId&&_.F_.cancelJob(this.scheduledJobId);r==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):r==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.VR("NO_INTERNET_CONNECTION",void 0,"No internet connection")):r==="BACK_ONLINE"&&(this.bannerString=_.VR("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.dp(_.F_,function(){f.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=r};
_.l.stateChangeHandler=function(r){(r=ors[this.currentState][r])&&this.enterState(r)};
_.l.logVisibility=function(r){var f=_.t1();this.createBannerVe(r);f&&this.bannerVe&&(r?_.j_(f,[this.bannerVe]):_.HF(f,[this.bannerVe]))};
_.l.createBannerVe=function(r){!this.bannerVe&&r&&(this.bannerVe=_.pQ(37929),_.C3(_.IB(),this.bannerVe))};
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",String)],AO.prototype,"currentState",void 0);_.A([_.K(),_.B("design:type",Object)],AO.prototype,"scheduledJobId",void 0);_.A([_.K(),_.B("design:type",Object)],AO.prototype,"bannerString",void 0);AO=_.A([_.U({disableElementRegistration:!0,is:"ytd-network-status-banner"})],AO);
_.Q(AO,"ytd-network-status-banner",function(){if(Kxd!==void 0)return Kxd;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return Kxd=
r},{mode:1});var QuV;var Zg=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};r.hidden=!0;r.frostedGlass=_.N("web_frosted_glass");return r};
_.t(Zg,_.y);Zg.prototype.computeHidden=function(r){return r&&r.status?!1:!0};
Zg.prototype.handleUpdatePermissionRoleCommand=function(r){if(r=_.F(r,_.k8T))if(r=_.F(r.renderer,_.G8X))this.data=r};
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],Zg.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Zg.prototype,"componentBehavior",void 0);_.A([_.K({value:!0,computed:"computeHidden(data)"}),_.B("design:type",Object)],Zg.prototype,"hidden",void 0);_.A([_.K(),_.B("design:type",Object)],Zg.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],Zg.prototype,"frostedGlass",void 0);
Zg=_.A([_.U({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Zg);
_.Q(Zg,"ytd-permission-role-bottom-bar-renderer",function(){if(QuV!==void 0)return QuV;var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);return QuV=r},{mode:1});var A2s;var ZUs;var fhB={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Gx=function(){return _.y.apply(this,arguments)||this};
_.t(Gx,_.y);_.l=Gx.prototype;_.l.attached=function(){this.JSC$18442_scroller&&(this.JSC$18442_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18442_scroller.attached&&typeof this.JSC$18442_scroller.attached==="function"&&this.JSC$18442_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(I){I.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var r=_.e(this.hostElement);r.querySelector("tp-yt-paper-radio-group").selected="";var f=r.querySelector("#reason-text");f&&(f.value="");r.querySelector("#description-text").value=""}};
_.l.canSubmit=function(r,f){_.kA(this.hostElement,"yt-invalidate-popup-tabbables");return!(r&&f)};
_.l.onCancel=function(){_.Bj(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.l.onSubmit=function(){var r=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(V){return V.active}).map(function(V){return V.innerText.trim()}),f=this.hostElement.querySelector("tp-yt-paper-radio-group"),I=f.selectedItem,C=I.name;
I=I.innerText.trim();var Y=f.querySelector("#reason-text");f=void 0;Y&&(f=Y.value);(Y=this.descriptionText.value)&&(Y=Y.trim());Ih6(this.data.searchQuery,r,C,I,Y,f);_.Bj(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.l.sendFormSubmitToast=function(){var r=_.sr(_.VR("SBOX_INAPPROPRIATE_TOAST"));_.Bj(this.hostElement,"yt-open-popup-action",[r,this])};
_.l.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(r){return r.active})};
_.l.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Gx.prototype.onIronSelect=Gx.prototype.onIronSelect;Gx.prototype.onIronChange=Gx.prototype.onIronChange;Gx.prototype.dataChanged=Gx.prototype.dataChanged;_.A([_.K(),_.B("design:type",Object)],Gx.prototype,"data",void 0);_.A([_.K({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.B("design:type",Boolean)],Gx.prototype,"submitDisabled",void 0);_.A([_.K(),_.B("design:type",Boolean)],Gx.prototype,"suggestionSelected",void 0);
_.A([_.K(),_.B("design:type",Boolean)],Gx.prototype,"catagorySelected",void 0);_.A([_.uA("#scroller"),_.B("design:type",Object)],Gx.prototype,"JSC$18442_scroller",void 0);_.A([_.uA("#description-text"),_.B("design:type",Object)],Gx.prototype,"descriptionText",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gx.prototype,"dataChanged",null);
_.A([_.kO("iron-change"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gx.prototype,"onIronChange",null);_.A([_.kO("iron-select"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gx.prototype,"onIronSelect",null);Gx=_.A([_.U({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Gx);
_.Q(Gx,"ytd-search-suggestion-report-dialog",function(){if(ZUs!==void 0)return ZUs;var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return ZUs=r},{mode:1});var kz=function(r){var f=r.openPopupAction;var I=r.target;var C=r.container;var Y=r.popupContainerConfig;var V=r.getElement;r=r.removeWhenClosed===void 0?!1:r.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=f;this.target=I;this.container=C;this.popupContainerConfig=Y;this.getElement=V;this.JSC$18448_popupConfig=this.popupContainerConfig.JSC$17565_popupConfig[this.openPopupAction.popupType];this.rendererName=(f=this.getName())?_.OvE(f,mz6(this.popupContainerConfig,
f)):"";_.N("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=r);this.createPopup()};
kz.prototype.updatePopup=function(r){this.openPopupAction=r;this.JSC$18448_popupConfig=this.popupContainerConfig.JSC$17565_popupConfig[this.openPopupAction.popupType];GQ6(this);_.N("reorder_popup_updates_killswitch")&&kQ7(this);_.N("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var uv1=function(r,f,I){r.target=I;var C;I=((C=r.target.polymerController)!=null?C:r.target).popupPositionTarget||r.target;r.JSC$18448_popupConfig.targetContainer&&(I=r.container);r.popup.positionTarget=I;r.popupContent.positionTarget=I;_.N("reorder_popup_updates_killswitch")||kQ7(r);r.JSC$18448_popupConfig.forceFocus&&(r.popupContent.style.outline="none");r.popupContent.tabIndex=-1;r.JSC$18448_popupConfig.narrowProperties&&(r.popup.style.position="static");r.JSC$18448_popupConfig.preventAutonav&&
r.popup.setAttribute("prevent-autonav",!0);r.JSC$18448_popupConfig.forceCloseOnOutsideClick&&r.popup.setAttribute("force-close-on-outside-click",!0);BKY(r,f);qX6(r,r.JSC$18448_popupConfig.styles);r.isRtl()&&qX6(r,r.JSC$18448_popupConfig.rtlStyles);if(!r.openPopupAction.shouldStopParentSignal){var Y;f=(Y=r.target.polymerController)!=null?Y:r.target;(r.popupContent.startForwardingEvents||r.popupContainerConfig.forwardingEnabledPopups.has(r.rendererName))&&f.parentComponent!==r.popupContent&&r.popupContent!==
r.target&&r.target!==document.body&&(r.popupContent.startForwardingEvents?r.popupContent.startForwardingEvents(r.popupContainerConfig.forwardedEvents,r.target):(r.JSC$18448_eventForwarder||(r.JSC$18448_eventForwarder=new _.hF(r.popupContent)),r.JSC$18448_eventForwarder.start(r.popupContainerConfig.forwardedEvents,r.target)))}};
kz.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var BKY=function(r,f){DQ1(r,f&&r.JSC$18448_popupConfig.narrowProperties?r.JSC$18448_popupConfig.narrowProperties:r.JSC$18448_popupConfig.properties);r.isRtl()&&DQ1(r,r.JSC$18448_popupConfig.rtlProperties);kQ7(r)};
kz.prototype.createPopup=function(){var r=this.JSC$18448_popupConfig.component;if(this.popupContent=rrB(this,this.rendererName)){if(r){this.popup=rrB(this,r);var f=this.popupContent;_.N("web_enable_wrapper_for_cow_component_in_popup")&&(f=document.createElement("div"),f.appendChild(this.popupContent));_.N("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18448_popupConfig.slotName&&f.setAttribute("slot",this.JSC$18448_popupConfig.slotName);r=this.popup;var I=this.container.tagName.toLowerCase(),
C=_.Ht(f);_.McR(_.Rb(r),_.yB(f,I,C));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.N("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.e(this.container).appendChild(this.popup)}};
var GQ6=function(r){var f,I,C=(f=r.openPopupAction.accessibilityData)==null?void 0:(I=f.accessibilityData)==null?void 0:I.label;C&&(r.popup.ariaLabel=C);var Y;((Y=r.popupContent.polymerController)!=null?Y:r.popupContent).data=(0,_.X0.unsafeClone)(r.openPopupAction.popup[r.getName()]);r.popupContent.duration=fAq(r);r.popupContent.positionType=r.openPopupAction.position;var V=r.openPopupAction.properties;V&&Object.keys(V).forEach(function(S){r.popupContent[S]=V[S]})},DQ1=function(r,f){if(f)for(var I=
_.E(Object.keys(f)),C=I.next();!C.done;C=I.next())C=C.value,r.popup[C]=f[C]},kQ7=function(r){if(r.openPopupAction.position){var f=r.JSC$18448_popupConfig.positionalProperties&&r.JSC$18448_popupConfig.positionalProperties[r.openPopupAction.position],I=r.JSC$18448_popupConfig.rtlPositionalProperties&&r.JSC$18448_popupConfig.rtlPositionalProperties[r.openPopupAction.position];
f=r.isRtl()&&I?I:f;f.shiftedHorizontalOffset&&(I=r.popup.style.display,r.popup.style.display="block",r.popupContent&&r.popup.positionTarget&&r.popupContent.clientWidth>r.popup.positionTarget.clientWidth&&(f.horizontalOffset=r.popup.positionTarget.clientWidth/2-f.shiftedHorizontalOffset),r.popup.style.display=I);DQ1(r,f)}},qX6=function(r,f){if(f)for(var I=_.E(Object.keys(f)),C=I.next();!C.done;C=I.next())C=C.value,r.popup.style[C]=f[C]};
kz.prototype.getName=function(){return _.Tg(this.openPopupAction.popup,"renderer")||_.Tg(this.openPopupAction.popup,"dialog")||_.Tg(this.openPopupAction.popup,"model")||void 0};
var fAq=function(r){r=r.openPopupAction.durationHintMs;return r===0?r:Math.max(4E3,r||4E3)};
kz.prototype.isRtl=function(){return _.Lz("HTML_DIR")==="rtl"};
var rrB=function(r,f){r=r.getElement(f,r.target);r==null&&_.t7(new _.nf("popup getElement returned null",f));return r};var IA3={};
IA3.YtPopupContainerBehavior=[_.tK.YtComponentBehavior,_.o_.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.Zo(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.GI(this.hostElement)},
closePopup:function(r){var f=this.createCacheKey(void 0,r);this.popups_[f]&&this.handleClosePopupAction_(void 0,r)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.F_.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.F_.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(r){r.opened&&r.keepBelowPlayer&&this.ensurePopupBelowPlayer(r)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var r in this.popups_){var f=this.popups_[r];if(f.popup.scrollAction==="refit"){var I=f.popup.positionTarget.getBoundingClientRect(),C=f.popup;I=I.top;var Y=f;if(!Y.naturalHeight){Y.popup.hidden=!1;Y.popup.style.position="fixed";Y.popup.style.top="0px";Y.popup.style.left="0px";var V=Y.popup.getBoundingClientRect();Y.naturalHeight=V.bottom-V.top;Y.popup.refit()}C.hidden=!(I>=Y.naturalHeight+60);f.popupContent.clientHeight===0&&f.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(r){this.popupContainerConfig=r},
handleOpenPopupAction:function(r,f){var I=r.openPopupAction,C=_.a().resolve(_.ZY(_.$T6))&&I.popupType==="TOAST";C&&!I.uniqueId&&(I.uniqueId=_.N1());if(!_.N("popup_container_parent_target_killswitch")){var Y;f=(Y=this.getParentTarget(f))!=null?Y:f}var V=this.ensurePopup_(I,f);return new _.lz(function(S){V.then(function(h){if(!h)return S();this.maybeCreateNarrowMediaQuery_();var w=this.createCacheKey(h.rendererName,h.openPopupAction.uniqueId);if(I.showOncePerUniqueId){if(this.shownPopupKeys_.has(w))return S();
this.shownPopupKeys_.add(w)}w=this.popups_[w];var n=!(!w||!w.openPopupAction.beReused);n=!!I.reusePopup||n;if(h.popup.opened&&!n){C&&!h.openPopupAction.replacePopup||this.handleClosePopupAction_(h.rendererName,h.openPopupAction.uniqueId);n=I.popupType==="DIALOG"&&!_.N("popup_container_dialog_reopen_killswitch");if(!C&&!n&&w&&w.target==f&&!h.openPopupAction.replacePopup)return S();_.UC(h.popup,function(){this.completeOpenPopupAction_(I,f,h);S()}.bind(this))}else h.popup.opened?h.updatePopup(I):this.completeOpenPopupAction_(I,
f,h),S()}.bind(this))}.bind(this))},
getParentTarget:function(r){if(r&&r instanceof HTMLElement)for(var f=_.E(Object.entries(this.popups_)),I=f.next();!I.done;I=f.next())if(I=_.E(I.value),I.next(),I=I.next().value,I.popup.tagName==="TP-YT-IRON-DROPDOWN"&&I.popup.opened&&r.closest(I.rendererName))return I.target},
completeOpenPopupAction_:function(r,f,I){_.N("reorder_popup_updates_killswitch")?(uv1(I,this.narrowMediaQuery_.queryMatches,f),I.updatePopup(r)):(I.updatePopup(r),uv1(I,this.narrowMediaQuery_.queryMatches,f));r=I.popup;r.addEventListener("iron-overlay-opened",_.GF(this,this.onPopupIronOverlayOpened_));r.addEventListener("iron-overlay-closed",_.GF(this,this.onPopupIronOverlayClosed_));r.addEventListener("iron-overlay-canceled",_.GF(this,this.onPopupIronOverlayCanceled_));r.addEventListener("yt-refit",
_.GF(this,this.refitPopup_));r.addEventListener("yt-invalidate-popup-tabbables",_.GF(this,this.handleInvalidatePopupTabbables_));r.open()},
getPopupDurationMs_:function(r){return r.durationHintMs===0?r.durationHintMs:Math.max(4E3,r.durationHintMs||4E3)},
handleClosePopupAction_:function(r,f){var I=_.N("web_popup_cache_key_killswitch")||!!f;if(r||I){var C=this.createCacheKey(r,f);r=(r=this.popups_[C])&&r.popup}else r=_.Buq(_.vq);if(r&&r.close){if(f=_.a().resolve(_.ZY(_.nF)))r.restoreFocusOnClose=f.isKeyBoardInUse();r.close();this.removePopup_(r,C)}},
handleClosePopupCommand_:function(r){r.closePopupCommand&&r.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,r.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(r){var f={},I;for(I in this.popups_)if(f={key$jscomp$1162:f.key$jscomp$1162},f.key$jscomp$1162=I,!r||!r.some(function(V){return function(S){return S==V.key$jscomp$1162}}(f))){var C=this.popups_[f.key$jscomp$1162],Y=C.popup;
_.a().resolve(_.ZY(_.$T6))&&C.openPopupAction.popupType==="TOAST"||(Y&&Y.close&&Y.close(),this.removePopup_(Y,f.key$jscomp$1162))}},
handleClosePopupsAction_:function(r){r.forEach(function(f){var I=this.popups_[f];I&&((I=I.popup)&&I.close&&I.close(),this.removePopup_(I,f))}.bind(this))},
handleGetPopupOpenedAction_:function(r,f){return(f=this.createCacheKey(r,f))&&this.popups_[f]?this.popups_[r].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var r=[],f;for(f in this.popups_){var I=this.popups_[f];I.popup.opened&&r.push(I)}return r},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(r,f){_.N("ytpopup_disable_default_html_caching")&&r&&r.removeWhenClosed&&(_.e(this.hostElement).removeChild(r),f&&this.popups_[f]&&delete this.popups_[f])},
shouldReusePopup_:function(r){return!(!r||!r.reusePopup)||!(!r||!r.beReused)},
ensurePopup_:function(r,f){this.maybeCreateNarrowMediaQuery_();var I=_.Tg(r.popup,"renderer")||_.Tg(r.popup,"dialog")||_.Tg(r.popup,"model");if(!I)return _.fe();I=_.OvE(I,mz6(this.popupContainerConfig,I));return _.fe(this.getAndMaybeCreatePopup_(r,I,f))},
getAndMaybeCreatePopup_:function(r,f,I){var C=this.createCacheKey(f,r.uniqueId);if(this.popups_[C])return this.popups_[C];r=new kz({openPopupAction:r,target:I,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(f)});return this.popups_[C]=r},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(r){return _.N("ytpopup_disable_default_html_caching")?r&&r.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",_.GF(this,this.openPopupQueryMatchesChanged_)),_.e(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(r){r=r.detail.value;for(var f in this.popups_)BKY(this.popups_[f],r)},
onPopupIronOverlayClosed_:function(r){var f=r.currentTarget,I=_.v0d(f);I=I.length>0?I[0]:f;if(I.is!=="ytd-reel-watch-while-dialog-renderer"||r.target.is!=="tp-yt-iron-dropdown"){r.detail.popup=f;r.detail.popupRenderer=I;var C,Y={context:{openingElement:((C=this.popups_[(I==null?void 0:I.is)||""])==null?void 0:C.target)||void 0}};Object.assign(Y,r.detail);var V;_.kA((V=I.hostElement)!=null?V:I,"yt-popup-closed",Y);f.removeEventListener("yt-refit",_.GF(this,this.refitPopup_));f.removeEventListener("yt-invalidate-popup-tabbables",
_.GF(this,this.handleInvalidatePopupTabbables_));f.removeEventListener("iron-overlay-canceled",_.GF(this,this.onPopupIronOverlayCanceled_));f.removeEventListener("iron-overlay-closed",_.GF(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(f)}},
onPopupIronOverlayCanceled_:function(r,f){var I=r.currentTarget,C=_.v0d(I);C=C.length>0?C[0]:I;if(C.is!=="ytd-reel-watch-while-dialog-renderer"||r.target.is!=="tp-yt-iron-dropdown"){var Y;_.kA((Y=C.hostElement)!=null?Y:C,"yt-popup-canceled",r.detail);Y=f?_.JN(f):null;(!f||["click","tap"].includes(f.type))&&!I.hasAttribute("force-close-on-outside-click")&&I.positionTarget&&Y&&Y.includes(I.positionTarget)&&r.preventDefault();I.restoreFocusOnClose=_.dx.keyboardEventMatchesKeys(f,"esc")}},
onPopupIronOverlayOpened_:function(r){r=r.currentTarget;var f=_.v0d(r);f=f.length>0?f[0]:r;var I,C;_.kA((I=f.hostElement)!=null?I:f,"yt-popup-opened",(C=f.hostElement)!=null?C:f);r.keepBelowPlayer&&(this.ensurePopupBelowPlayer(r,!0),this.dynamicallyPositionedElements_.add(r));I=_.a().resolve(_.ZY(_.nF));C=!!f.querySelector("#toast");I&&I.isKeyBoardInUse()&&!C&&(typeof f.focusFirstItem==="function"?f.focusFirstItem():(f=_.ZF8(r),f.length&&f[0].focus()));r.removeEventListener("iron-overlay-opened",
_.GF(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(r){r=r.currentTarget;r.refit&&r.refit()},
refitPopups_:function(){for(var r in this.popups_)this.popups_[r].refit()},
handleInvalidatePopupTabbables_:function(r){r=r.currentTarget;r.invalidateTabbables&&r.invalidateTabbables()},
createCacheKey:function(r,f){return _.N("web_popup_cache_key_killswitch")?f?r+"#"+f:r:f?"#"+f:r},
openSheet:function(r,f){var I=r==null?void 0:r.openPopupActionCommand;!I&&(r==null?0:r.viewModel)&&(I={openPopupAction:{popup:{sheetViewModel:r.viewModel},popupType:"CONTEXTUAL_SHEET"}});I&&this.handleOpenPopupAction(I,f)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var r=this;return _.x(function(f){return f.return(r.handleGetOpenedPopupsAction_().filter(function(I){var C;return((C=I.openPopupAction)==null?void 0:C.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(r,f,I){if(_.N("web_dialog_utils_killswitch")){var C=r==null?void 0:r.openPopupActionCommand,Y=(I==null?0:I.ariaLabel)?{accessibilityData:{accessibilityData:{label:I.ariaLabel}}}:void 0;!C&&(r==null?0:r.viewModel)&&(C={openPopupAction:Object.assign({},{popup:{dialogViewModel:r.viewModel},popupType:(I==null?0:I.isModal)?"MODAL":"DIALOG"},Y&&Y)});C&&this.handleOpenPopupAction(C,f)}else{if(Y=r==null?void 0:r.viewModel){var V=I=I===void 0?{}:I;I=V.ariaLabel;Y={popup:{dialogViewModel:Y},
popupType:V.isModal?"MODAL":"DIALOG"};V={accessibilityData:{label:I}};I&&(Y.accessibilityData=V);Y={openPopupAction:Y}}else Y=void 0;(Y=(C=Y)!=null?C:r==null?void 0:r.openPopupActionCommand)&&this.handleOpenPopupAction(Y,f)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var r=this;return _.x(function(f){return f.return(r.handleGetOpenedPopupsAction_().filter(function(I){var C;return((C=I.openPopupAction)==null?void 0:C.popupType)==="DIALOG"}).length>0)})}}];var C47;var Yp7;var lAq=_.op(["about:blank"]),Bb=function(){var r=_.y.apply(this,arguments)||this;r.isMuted=!1;r.pageLoadTimeoutId=void 0;return r};
_.t(Bb,_.y);_.l=Bb.prototype;_.l.dataChanged=function(){var r=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var f=this.data.url,I=_.PW(f);_.N("enable_yt_ata_iframe_authuser")?(I=_.PW(f),_.LK(this.iframe,CA6(I))):_.LK(this.iframe,I);this.pageLoadTimeoutId=_.dp(_.tF(),function(){return void r.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.BM({destination:window,iframe:this.iframe,origin:_.rg3(I.toString()),channelName:"ataiframe",onMessage:_.wuV(i7Y,function(C){Rb2(C.data)?(C=_.X9(C.data,1,_.F3,_.qS()),C.length!==1?_.t7(Error("nl")):(C=C[0],C===3?(r.isMuted=!0,r.logStateChanged({adMuteRequested:!0})):C===1&&r.close())):_.t7(Error("ol"))}),
onEstablished:function(){r.cancelPageLoadTimeout();r.logStateChanged({pageLoadSucceeded:!0})}})}};
_.l.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.tF().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.l.logStateChanged=function(r){var f;if((f=this.data)==null?0:f.trackingParams)r={adsClientData:{aboutThisAdData:r}},_.IB().stateChanged(this.data.trackingParams,r)};
_.l.close=function(){_.Bj(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.handlesPopupClosed=function(r,f){var I=this,C,Y;return _.x(function(V){if(V.nextAddress==1)return _.Lz("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.Bj(I.hostElement,"on-about-this-ad-popup-closed",[I.isMuted,f]),V.jumpTo(0)):r&&YiV(r)?_.b(V,lhs(r),4):(I.isMuted&&_.Bj(I.hostElement,"yt-mute-ad-action",[I.is,I]),V.jumpTo(0));if(C=V.yieldResult){var S=Y=new _.xh(C),h=I.isMuted;S.getOptions().includes("onAboutThisAdPopupClosed")?_.To_(S,"onAboutThisAdPopupClosed",{isMuted:h,layoutId:f}):_.Bo("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.wO(V)})};
_.l.onPopupClosed=function(r){var f=this,I,C;return _.x(function(Y){I=_.u_(lAq);_.LK(f.iframe,I);f.cancelPageLoadTimeout();if(!f.data)return Y.jumpTo(0);f.ytRendererBehavior.markDirty();C=r.detail.context.openingElement;return _.b(Y,f.handlesPopupClosed(C,f.data.layoutId),0)})};
_.l.detached=function(){this.cancelPageLoadTimeout()};
_.l.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Bb.prototype.onPopupClosed=Bb.prototype.onPopupClosed;Bb.prototype.dataChanged=Bb.prototype.dataChanged;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Bb.prototype,"ytRendererBehavior",void 0);_.A([_.uA("#iframe"),_.B("design:type",HTMLIFrameElement)],Bb.prototype,"iframe",void 0);_.A([_.K(),_.B("design:type",Object)],Bb.prototype,"data",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Bb.prototype,"dataChanged",null);
_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype",Promise)],Bb.prototype,"onPopupClosed",null);Bb=_.A([_.zX({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Bb);
_.Q(Bb,"yt-about-this-ad-renderer",function(){if(Yp7===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;C47===void 0&&(C47=document.createElement("template"));var C=C47;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Yp7=r}r=Yp7;return r},{mode:2});var Vyd;var EM1;var hz=function(r){var f=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=f.message;"stack"in f&&(this.stack=f.stack);this.maxFileSizeMB=r;Object.setPrototypeOf(this,hz.prototype)};
_.t(hz,Error);var SpV=function(r,f){var I=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=I.message;"stack"in I&&(this.stack=I.stack);this.minWidth=r;this.minHeight=f;Object.setPrototypeOf(this,SpV.prototype)};
_.t(SpV,Error);var xDB=function(r){this.requirements=r;this.JSC$18476_maxFileSize=r.maxFileSizeMB*1024*1024},h$6=function(r,f){if(f.size>r.JSC$18476_maxFileSize)throw new hz(r.requirements.maxFileSizeMB);
};var wOB=function(r,f){this.canvas=r;this.imageEditorBuilder=f};
wOB.prototype.addEventListeners=function(r){var f=function(Y){bP6(r,Y)};
this.JSC$18482_mouseDownEvent=f;var I=function(Y){pO6(r,Y)};
this.JSC$18482_mouseMoveEvent=I;var C=function(){nM7(r)};
this.JSC$18482_mouseUpEvent=C;this.canvas.addEventListener("mousedown",f);this.canvas.addEventListener("mousemove",I);document.addEventListener("mouseup",C)};
wOB.prototype.removeEventListeners=function(){this.JSC$18482_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18482_mouseDownEvent);this.JSC$18482_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18482_mouseMoveEvent);this.JSC$18482_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18482_mouseUpEvent)};
var dD6=function(r,f){r.removeEventListeners();return new Promise(function(I){var C=new Image;C.crossOrigin="anonymous";C.onload=function(){var Y=r.imageEditorBuilder(r.canvas,C);r.addEventListeners(Y);I(Y)};
C.src=f})},wV=function(r,f,I,C,Y,V,S,h){this.canvas=r;
this.image=f;this.requiredRatio=I;this.minImageCropDimension=C;this.minOutputImageResolution=Y;this.component=V;this.styleFocusedCorner=h===void 0?!0:h;this.action=2;this.focusedCorner=this.resizeCorner=0;r=this.canvas.getContext("2d");if(!r)throw Error("pl");this.ctx=r;this.canvasMargin=S!=null?S:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;S=this.image;r=this.canvasInnerWidth/S.width;S.height*r>912&&(r=S.width/S.height*912/S.width);S=r;this.scaledImageWidth=this.canvas.width%2?
EO3(this.image.width*S):Vld(this.image.width*S);this.scaledImageHeight=Math.round(this.image.height*S);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18485_overlayMarginBottom=this.JSC$18485_overlayMarginTop=this.canvasMargin;this.JSC$18485_overlayMarginRight=this.JSC$18485_overlayMarginLeft=this.horizontalMargin;this.JSC$18485_overlayWidth=this.scaledImageWidth;this.JSC$18485_overlayHeight=this.scaledImageHeight;
r=this.image.width/this.image.height;r>this.requiredRatio?(this.JSC$18485_overlayWidth=this.canvas.width%2?EO3(this.scaledImageHeight*this.requiredRatio):Vld(this.scaledImageHeight*this.requiredRatio),this.JSC$18485_overlayMarginRight=this.JSC$18485_overlayMarginLeft=(this.canvas.width-this.JSC$18485_overlayWidth)/2):r<this.requiredRatio&&(this.JSC$18485_overlayHeight=this.canvas.height%2?EO3(this.scaledImageWidth/this.requiredRatio):Vld(this.scaledImageWidth/this.requiredRatio),this.JSC$18485_overlayMarginBottom=
this.JSC$18485_overlayMarginTop=(this.canvas.height-this.JSC$18485_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*S,this.scaledImageWidth);z$6(this)};
wV.prototype.getContext=function(){return this.ctx};
var bP6=function(r,f){f={x:Math.round(f.pageX-r.canvas.getBoundingClientRect().left),y:Math.round(f.pageY-r.canvas.getBoundingClientRect().top)};r.dragStart=f;My2(r,f)!==0?(r.action=1,gM2(r,f),r.resizeCorner=My2(r,f)):f.x>r.JSC$18485_overlayMarginLeft&&f.x<r.JSC$18485_overlayMarginLeft+r.JSC$18485_overlayWidth&&f.y>r.JSC$18485_overlayMarginTop&&f.y<r.JSC$18485_overlayMarginTop+r.JSC$18485_overlayHeight&&(r.action=0)},aA7=function(r,f){switch(f){case 1:return{x:r.JSC$18485_overlayMarginLeft,
y:r.JSC$18485_overlayMarginTop};case 2:return{x:r.JSC$18485_overlayMarginLeft,y:r.JSC$18485_overlayMarginTop+r.JSC$18485_overlayHeight};case 3:return{x:r.JSC$18485_overlayMarginLeft+r.JSC$18485_overlayWidth,y:r.JSC$18485_overlayMarginTop};case 4:return{x:r.JSC$18485_overlayMarginLeft+r.JSC$18485_overlayWidth,y:r.JSC$18485_overlayMarginTop+r.JSC$18485_overlayHeight};default:throw Error("ql");}},Nzs=function(r,f){if(r.focusedCorner!==0){r.dragStart=aA7(r,r.focusedCorner);
r.action=1;r.resizeCorner=r.focusedCorner;var I=r.dragStart.x,C=r.dragStart.y;switch(f){case 0:r.focusedCorner===1||r.focusedCorner===4?(I-=10,C-=10):(I-=10,C+=10);break;case 1:r.focusedCorner===1||r.focusedCorner===4?(I+=10,C+=10):(I+=10,C-=10);break;case 2:I=r.focusedCorner===1||r.focusedCorner===4?I-10:I+10;C-=10;break;case 3:I=r.focusedCorner===1||r.focusedCorner===4?I+10:I-10;C+=10;break;default:throw Error("rl");}XO6(r,{x:I,y:C});z$6(r);r.action=2;r.dragStart=void 0}},pO6=function(r,f){f={x:Math.round(f.pageX-
r.canvas.getBoundingClientRect().left),
y:Math.round(f.pageY-r.canvas.getBoundingClientRect().top)};gM2(r,f);switch(r.action){case 1:XO6(r,f);break;case 0:r.dragStart&&(r.JSC$18485_overlayMarginLeft=Math.max(r.horizontalMargin,Math.min(r.JSC$18485_overlayMarginLeft-(r.dragStart.x-f.x),r.horizontalMargin+r.scaledImageWidth-r.JSC$18485_overlayWidth)),r.JSC$18485_overlayMarginRight=r.canvas.width-r.JSC$18485_overlayMarginLeft-r.JSC$18485_overlayWidth,r.JSC$18485_overlayMarginTop=Math.max(r.canvasMargin,Math.min(r.JSC$18485_overlayMarginTop-
(r.dragStart.y-f.y),r.scaledImageHeight-r.JSC$18485_overlayHeight+r.canvasMargin)),r.JSC$18485_overlayMarginBottom=r.canvas.height-(r.JSC$18485_overlayMarginTop+r.JSC$18485_overlayHeight));break;default:return}z$6(r);r.dragStart=f},nM7=function(r){r.action=2;
r.dragStart=void 0;document.body.style.cursor="auto"},gM2=function(r,f){switch(My2(r,f)){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:r.action!==1&&(document.body.style.cursor="auto")}},My2=function(r,f){var I=r.JSC$18485_overlayMarginLeft-5,C=r.JSC$18485_overlayMarginTop-5,Y=r.JSC$18485_overlayMarginLeft+r.JSC$18485_overlayWidth-5;
r=r.JSC$18485_overlayMarginTop+r.JSC$18485_overlayHeight-5;return $Dp(f,{x:I,y:C})?1:$Dp(f,{x:Y,y:C})?3:$Dp(f,{x:I,y:r})?2:$Dp(f,{x:Y,y:r})?4:0},$Dp=function(r,f){return r.x>=f.x&&r.x<=f.x+10&&r.y>=f.y&&r.y<=f.y+10},XO6=function(r,f){if(r.dragStart)switch(r.resizeCorner){case 2:Math.abs((r.JSC$18485_overlayMarginLeft+r.JSC$18485_overlayWidth-f.x)/(f.y-r.JSC$18485_overlayMarginTop))>=r.requiredRatio?F$2(r,f.x):P41(r,f.y);
break;case 1:Math.abs((r.JSC$18485_overlayMarginLeft+r.JSC$18485_overlayWidth-f.x)/(r.JSC$18485_overlayMarginTop+r.JSC$18485_overlayHeight-f.y))>=r.requiredRatio?tyi(r,f.x):P41(r,f.y);break;case 4:Math.abs((f.x-r.JSC$18485_overlayMarginLeft)/(f.y-r.JSC$18485_overlayMarginTop))>=r.requiredRatio?F$2(r,f.x):Tzs(r,f.y);break;case 3:Math.abs((f.x-r.JSC$18485_overlayMarginLeft)/(r.JSC$18485_overlayMarginTop+r.JSC$18485_overlayHeight-f.y))>=r.requiredRatio?tyi(r,f.x):Tzs(r,f.y);break;default:throw Error("sl");
}},F$2=function(r,f){var I=r.JSC$18485_overlayMarginTop;
r.JSC$18485_overlayMarginBottom=cr3(r,f);r.JSC$18485_overlayHeight=r.canvas.height-r.JSC$18485_overlayMarginBottom-I;r.JSC$18485_overlayWidth=Math.round(r.JSC$18485_overlayHeight*r.requiredRatio);W$V(r)},tyi=function(r,f){var I=r.JSC$18485_overlayMarginTop+r.JSC$18485_overlayHeight;
r.JSC$18485_overlayMarginTop=cr3(r,f);r.JSC$18485_overlayHeight=I-r.JSC$18485_overlayMarginTop;r.JSC$18485_overlayWidth=Math.round(r.JSC$18485_overlayHeight*r.requiredRatio);W$V(r)},W$V=function(r){switch(r.resizeCorner){case 2:case 1:r.JSC$18485_overlayMarginLeft=r.canvas.width-r.JSC$18485_overlayMarginRight-r.JSC$18485_overlayWidth;
break;case 4:case 3:r.JSC$18485_overlayMarginRight=r.canvas.width-r.JSC$18485_overlayMarginLeft-r.JSC$18485_overlayWidth;break;default:throw Error("sl");}},P41=function(r,f){var I=r.JSC$18485_overlayMarginLeft+r.JSC$18485_overlayWidth;
r.JSC$18485_overlayMarginLeft=L$i(r,f);r.JSC$18485_overlayWidth=I-r.JSC$18485_overlayMarginLeft;r.JSC$18485_overlayHeight=Math.round(r.JSC$18485_overlayWidth/r.requiredRatio);mD3(r)},Tzs=function(r,f){var I=r.JSC$18485_overlayMarginLeft;
r.JSC$18485_overlayMarginRight=L$i(r,f);r.JSC$18485_overlayWidth=r.canvas.width-r.JSC$18485_overlayMarginRight-I;r.JSC$18485_overlayHeight=Math.round(r.JSC$18485_overlayWidth/r.requiredRatio);mD3(r)},mD3=function(r){switch(r.resizeCorner){case 2:case 4:r.JSC$18485_overlayMarginBottom=r.canvas.height-r.JSC$18485_overlayMarginTop-r.JSC$18485_overlayHeight;
break;case 1:case 3:r.JSC$18485_overlayMarginTop=r.canvas.height-r.JSC$18485_overlayMarginBottom-r.JSC$18485_overlayHeight;break;default:throw Error("sl");}},cr3=function(r,f){switch(r.resizeCorner){case 2:f=r.canvas.height-(r.JSC$18485_overlayMarginTop+e$2(r,f));
break;case 4:f=r.canvas.height-(r.JSC$18485_overlayMarginTop+Jr7(r,f));break;case 1:f=r.JSC$18485_overlayMarginTop+r.JSC$18485_overlayHeight-e$2(r,f);break;case 3:f=r.JSC$18485_overlayMarginTop+r.JSC$18485_overlayHeight-Jr7(r,f);break;default:throw Error("sl");}return Math.max(f,r.canvasMargin)},e$2=function(r,f){f=r.JSC$18485_overlayMarginLeft+r.JSC$18485_overlayWidth-Math.max(f,r.horizontalMargin);
f=f<0?r.JSC$18485_overlayWidth:Math.max(f,r.minOverlayWidth);return Math.round(f/r.requiredRatio)},Jr7=function(r,f){f=r.canvas.width-Math.max(r.canvas.width-f,r.horizontalMargin)-r.JSC$18485_overlayMarginLeft;
f=f<0?r.JSC$18485_overlayWidth:Math.max(f,r.minOverlayWidth);return Math.round(f/r.requiredRatio)},L$i=function(r,f){switch(r.resizeCorner){case 2:f=r.canvas.width-r.JSC$18485_overlayMarginRight-jid(r,f);
break;case 4:f=r.canvas.width-r.JSC$18485_overlayMarginLeft-jid(r,f);break;case 1:f=r.canvas.width-r.JSC$18485_overlayMarginRight-HP6(r,f);break;case 3:f=r.canvas.width-r.JSC$18485_overlayMarginLeft-HP6(r,f);break;default:throw Error("sl");}return Math.max(f,r.horizontalMargin)},jid=function(r,f){f=r.canvas.height-Math.max(r.canvas.height-f,r.canvasMargin)-r.JSC$18485_overlayMarginTop;
return f<0?r.JSC$18485_overlayWidth:Math.max(Math.round(f*r.requiredRatio),r.minOverlayWidth)},HP6=function(r,f){f=r.JSC$18485_overlayMarginTop+r.JSC$18485_overlayHeight-Math.max(f,r.canvasMargin);
return f<0?r.JSC$18485_overlayWidth:Math.max(Math.round(f*r.requiredRatio),r.minOverlayWidth)},z$6=function(r){r.ctx.clearRect(0,0,r.canvas.width,r.canvas.height);
r.ctx.drawImage(r.image,0,0,r.image.width,r.image.height,r.horizontalMargin,r.canvasMargin,r.canvas.width-2*r.horizontalMargin,r.scaledImageHeight);r.ctx.fillStyle="rgba(0, 0, 0, 0.7)";r.ctx.fillRect(r.horizontalMargin,r.JSC$18485_overlayMarginTop,r.JSC$18485_overlayMarginLeft-r.horizontalMargin,r.JSC$18485_overlayHeight);r.ctx.fillRect(r.JSC$18485_overlayMarginLeft+r.JSC$18485_overlayWidth,r.JSC$18485_overlayMarginTop,r.JSC$18485_overlayMarginRight-r.horizontalMargin,r.JSC$18485_overlayHeight);r.ctx.fillRect(r.horizontalMargin,
r.canvasMargin,r.scaledImageWidth,r.JSC$18485_overlayMarginTop-r.canvasMargin);r.ctx.fillRect(r.horizontalMargin,r.JSC$18485_overlayMarginTop+r.JSC$18485_overlayHeight,r.scaledImageWidth,r.JSC$18485_overlayMarginBottom-r.canvasMargin);r.drawOverlay();r.component&&_.kA(r.component,"image-updated")};
wV.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18485_overlayMarginLeft,this.JSC$18485_overlayMarginTop,this.JSC$18485_overlayWidth,this.JSC$18485_overlayHeight);iP6(this)};
var iP6=function(r){var f=r.JSC$18485_overlayMarginLeft-5,I=r.JSC$18485_overlayMarginTop-5,C=r.JSC$18485_overlayMarginLeft+r.JSC$18485_overlayWidth-5,Y=r.JSC$18485_overlayMarginTop+r.JSC$18485_overlayHeight-5;r.ctx.fillStyle="#FFF";r.ctx.fillRect(f,I,10,10);r.ctx.strokeRect(f,I,10,10);r.ctx.fillRect(C,I,10,10);r.ctx.strokeRect(C,I,10,10);r.ctx.fillRect(f,Y,10,10);r.ctx.strokeRect(f,Y,10,10);r.ctx.fillRect(C,Y,10,10);r.ctx.strokeRect(C,Y,10,10);if(r.focusedCorner!==0&&r.styleFocusedCorner){r.ctx.lineWidth=
4;r.ctx.strokeStyle="#3EA6FF";switch(r.focusedCorner){case 1:--f;--I;break;case 2:--f;I=Y-1;break;case 3:f=C-1;--I;break;case 4:f=C-1;I=Y-1;break;default:return}r.ctx.strokeRect(f,I,12,12)}};
wV.prototype.crop=function(r,f){f=f===void 0?!0:f;var I=this.image.width/this.scaledImageWidth,C=document.createElement("canvas"),Y=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],V=this.JSC$18485_overlayWidth*I,S=this.JSC$18485_overlayHeight*I;C.width=Math.max(V,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);C.height=Math.max(S,Y);r&&(C.width=Math.min(C.width,C.height),C.height=Math.min(C.width,C.height));
r=C.getContext("2d");if(!r)throw Error("gl");Y=(this.JSC$18485_overlayMarginLeft-this.horizontalMargin)*I;I*=this.JSC$18485_overlayMarginTop-this.canvasMargin;f||(r.fillStyle="white",r.fillRect(0,0,C.width,C.height));r.drawImage(this.image,Y,I,V,S,0,0,C.width,C.height);return C};var R$Y=function(r,f,I,C,Y){wV.call(this,r,f,I,C,void 0,Y,8,!1)};
_.t(R$Y,wV);R$Y.prototype.drawOverlay=function(){var r=this.getContext(),f=this.JSC$18485_overlayWidth,I=this.JSC$18485_overlayHeight,C=this.JSC$18485_overlayMarginTop,Y=this.JSC$18485_overlayMarginLeft;r.lineWidth=2;r.strokeStyle="#3EA6FF";r.beginPath();r.arc(Y+f/2,C+I/2,f/2,0,2*Math.PI);r.stroke();r.strokeRect(Y,C,f,I);iP6(this)};
var vM6={maxFileSizeMB:15,minWidth:98,minHeight:98},K$V=["image/png","image/jpeg","image/gif"],bS=function(){var r=_.y.apply(this,arguments)||this;r.fileSelectorFocusListener=null;r.errorMessage=null;r.isLoading=!0;r.hideContainer=!0;r.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return r};
_.t(bS,_.y);_.l=bS.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(r){return r==="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||_.Bj(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.l.setErrorState=function(r){this.resetErrorState();r&&(this.errorMessage=r)};
_.l.showPopup=function(){var r=this;this.hideContainer=!1;_.dp(_.F_,function(){_.kA(r.hostElement,"yt-refit")});
this.isLoading=!1};
_.l.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.l.closePopup=function(){this.resetFileSelector();_.Bj(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.onCancelTap=function(){this.isPlaylistThumbnail||_.Bj(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.l.openFileSelector=function(){var r=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.dp(_.F_,function(){setTimeout(function(){if(!r.fileSelector.files||r.fileSelector.files.length===0)r.onCancelTap();r.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(f){f instanceof Error?_.Fo(f):_.PR(new _.nf(JSON.stringify(f)))}};
_.l.handleFileSelection=function(){var r=this,f,I,C,Y,V,S;return _.x(function(h){switch(h.nextAddress){case 1:_.l_(h,2);if(!r.fileSelector.files||!r.imageEditorCanvas)return r.onCancelTap(),h.return();f=r.fileSelector.files[0];h$6(r.imageChecker,f);_.l_(h,4);return _.b(h,JQp(f),6);case 6:r.mimeType=h.yieldResult;_.Hd(h,5,2);break;case 4:_.ha(h,2),_.Bj(r.hostElement,"yt-image-selection-error-action",[(I=r.data)==null?void 0:I.genericImageLoadErrorMessage]),r.onCancelTap();case 5:C=new FileReader;C.addEventListener("load",
function(){var w,n;return _.x(function(d){if(d.nextAddress==1){if(!C.result)return _.t7(Error("il")),d.return();w=C.result;n=new Image;n.src=w;n.onload=function(){try{var z=r.imageChecker;if(n.width<z.requirements.minWidth||n.height<z.requirements.minHeight)throw new SpV(z.requirements.minWidth,z.requirements.minHeight);}catch(X){if(X instanceof SpV){var g;_.Bj(r.hostElement,"yt-image-selection-error-action",[(g=r.data)==null?void 0:g.imageDimensionErrorMessage]);r.logImageDimensionErrorVe()}else X instanceof
Error?_.Fo(X):(z=new _.nf(JSON.stringify(X)),_.Fo(z));r.onCancelTap()}r.showPopup()};
n.onerror=function(){var z;_.Bj(r.hostElement,"yt-image-selection-error-action",[(z=r.data)==null?void 0:z.genericImageLoadErrorMessage]);r.onCancelTap()};
return _.b(d,dD6(r.imageEditorCanvas,w),2)}r.imageEditor=d.yieldResult;r.updatePositionOfAllCorners();r.addEventListeners(r.imageEditor);_.wO(d)})},!1);
C.readAsDataURL(f);_.Hd(h,0);break;case 2:Y=_.ha(h),Y instanceof hz?_.Bj(r.hostElement,"yt-image-selection-error-action",[(V=r.data)==null?void 0:V.imageSizeErrorMessage]):(Y instanceof Error?_.Fo(Y):_.PR(new _.nf(JSON.stringify(Y))),_.Bj(r.hostElement,"yt-image-selection-error-action",[(S=r.data)==null?void 0:S.genericImageLoadErrorMessage])),r.onCancelTap(),_.wO(h)}})};
_.l.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var r=_.fv(_.IB(),{veType:232707,visualElement:_.pQ(232707)});r&&(r={visualElement:r},_.rF().reportShown(r))}};
_.l.handleImageSelectionErrorAction=function(r){this.isPlaylistThumbnail&&_.lZm(this.hostElement,r)};
_.l.convertToImageFormatBundle=function(r){var f=this,I,C,Y;return _.x(function(V){switch(V.nextAddress){case 1:return I=r.toDataURL(f.outputMimeType,1),_.b(V,jri(I),2);case 2:C=V.yieldResult;_.l_(V,3);h$6(f.imageChecker,C);_.Hd(V,4);break;case 3:Y=_.ha(V);if(!(Y instanceof hz))throw Y;_.t7(new _.nf("Output size is bigger than input size for image",f.mimeType,f.outputMimeType,C.size));I=r.toDataURL("image/jpeg",.95);return _.b(V,jri(I),6);case 6:C=V.yieldResult;case 4:return V.return({dataUrl:I,imageFile:C})}})};
_.l.handleUploadImageToScottyCommand=function(r){var f=this,I,C,Y,V,S,h,w,n,d,z;return _.x(function(g){switch(g.nextAddress){case 1:if(!f.imageEditor||!_.F(r,uSq))return g.return();I=_.F(r,uSq).scottyUploadUrl;if(!I){var X=new _.nf("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.Fo(X);return g.return()}_.l_(g,2);f.setLoadingState();C=f.imageEditor.crop(!1,!1);return _.b(g,f.convertToImageFormatBundle(C),4);case 4:return Y=g.yieldResult,_.b(g,mjq(Y.imageFile,I),5);case 5:V=
g.yieldResult;((S=f.data)==null?0:S.onUploadEndpoint)?(h=f.buildUploadServiceEndpoint(V),f.ytComponentBehavior.resolveCommand(h),w=_.F(h,_.TK),((n=w)==null?0:n.params)?f.closePopup():f.resetFileSelector()):(_.Bj(f.hostElement,"yt-image-updated-action",[Y.dataUrl,V]),f.closePopup());_.Hd(g,0);break;case 2:d=_.ha(g),f.setErrorState((z=f.data)==null?void 0:z.uploadErrorMessage),d instanceof Error?_.Fo(d):(X=new _.nf(JSON.stringify(d)),_.Fo(X)),_.wO(g)}})};
_.l.buildUploadServiceEndpoint=function(r){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",r),this.data.onUploadEndpoint):null};
_.l.dataChanged=function(){var r=this,f;return _.x(function(I){if(I.nextAddress==1){if(!r.data||!r.canvasElement)return I.return();r.data.imageRatio&&r.data.minImageCropWidth||_.PR(new _.nf("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));f=function(C,Y){return r.data.imageType==="IMAGE_TYPE_AVATAR"?new R$Y(C,Y,r.data.imageRatio,[r.data.minImageCropWidth,r.data.minImageCropWidth/r.data.imageRatio],r.hostElement):new wV(C,Y,r.data.imageRatio,[r.data.minImageCropWidth,
r.data.minImageCropWidth/r.data.imageRatio],void 0,r.hostElement,8,!1)};
r.imageEditorCanvas=new wOB(r.canvasElement,f);return r.data.url?_.b(I,dD6(r.imageEditorCanvas,r.data.url),3):(r.hideContainer=!0,r.openFileSelector(),I.jumpTo(0))}r.imageEditor=I.yieldResult;r.showPopup();r.addEventListeners(r.imageEditor);_.wO(I)})};
_.l.addEventListeners=function(r){this.removeEventListeners();var f=function(Y){bP6(r,Y)};
this.JSC$18493_mouseDownEvent=f;var I=function(Y){pO6(r,Y)};
this.JSC$18493_mouseMoveEvent=I;var C=function(){nM7(r)};
this.JSC$18493_mouseUpEvent=C;this.topLeftCorner.addEventListener("mousedown",f);this.topLeftCorner.addEventListener("mousemove",I);this.topLeftCorner.addEventListener("mouseup",C);this.topRightCorner.addEventListener("mousedown",f);this.topRightCorner.addEventListener("mousemove",I);this.topRightCorner.addEventListener("mouseup",C);this.bottomLeftCorner.addEventListener("mousedown",f);this.bottomLeftCorner.addEventListener("mousemove",I);this.bottomLeftCorner.addEventListener("mouseup",C);this.bottomRightCorner.addEventListener("mousedown",
f);this.bottomRightCorner.addEventListener("mousemove",I);this.bottomRightCorner.addEventListener("mouseup",C)};
_.l.removeEventListeners=function(){this.JSC$18493_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18493_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18493_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18493_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18493_mouseDownEvent));this.JSC$18493_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18493_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18493_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18493_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18493_mouseMoveEvent));this.JSC$18493_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18493_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18493_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18493_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18493_mouseUpEvent))};
_.l.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var r=document.activeElement;r&&r.shadowRoot&&r.shadowRoot.activeElement;)r=r.shadowRoot.activeElement;switch(r){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(r,f){var I=r.y-f.offsetHeight/2+4;f.style.left=r.x-f.offsetWidth/2+16+"px";f.style.top=I+"px"};
_.l.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var r=_.E([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),f=r.next();!f.done;f=r.next()){f=f.value;var I=aA7(this.imageEditor,f.corner);this.updatePositionOfCorner(I,f.div)}};
_.l.onLeft=function(r){this.imageEditor&&this.setFocusInImageEditor()&&(Nzs(this.imageEditor,0),this.updatePositionOfAllCorners(),r.preventDefault())};
_.l.onRight=function(r){this.imageEditor&&this.setFocusInImageEditor()&&(Nzs(this.imageEditor,1),this.updatePositionOfAllCorners(),r.preventDefault())};
_.l.onUp=function(r){this.imageEditor&&this.setFocusInImageEditor()&&(Nzs(this.imageEditor,2),this.updatePositionOfAllCorners(),r.preventDefault())};
_.l.onDown=function(r){this.imageEditor&&this.setFocusInImageEditor()&&(Nzs(this.imageEditor,3),this.updatePositionOfAllCorners(),r.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};
_.OC.Object.defineProperties(bS.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&K$V.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var r,f,I;((f=this.data)==null?0:f.imageRatio)&&((I=this.data)==null?0:I.minImageCropWidth)?r={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:r=vM6;return new xDB(r)}}});
bS.prototype.updatePositionOfAllCorners=bS.prototype.updatePositionOfAllCorners;bS.prototype.dataChanged=bS.prototype.dataChanged;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],bS.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],bS.prototype,"ytComponentBehavior",void 0);_.A([_.J(_.dx),_.B("design:type",Object)],bS.prototype,"ironA11yKeysBehavior",void 0);
_.A([_.uA("#canvas"),_.B("design:type",HTMLCanvasElement)],bS.prototype,"canvasElement",void 0);_.A([_.uA("#file-selector"),_.B("design:type",HTMLInputElement)],bS.prototype,"fileSelector",void 0);_.A([_.uA("#top-left-corner"),_.B("design:type",HTMLDivElement)],bS.prototype,"topLeftCorner",void 0);_.A([_.uA("#top-right-corner"),_.B("design:type",HTMLDivElement)],bS.prototype,"topRightCorner",void 0);
_.A([_.uA("#bottom-left-corner"),_.B("design:type",HTMLDivElement)],bS.prototype,"bottomLeftCorner",void 0);_.A([_.uA("#bottom-right-corner"),_.B("design:type",HTMLDivElement)],bS.prototype,"bottomRightCorner",void 0);_.A([_.K(),_.B("design:type",Object)],bS.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],bS.prototype,"errorMessage",void 0);_.A([_.K(),_.B("design:type",Object)],bS.prototype,"isLoading",void 0);_.A([_.K(),_.B("design:type",Object)],bS.prototype,"hideContainer",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.B("design:type",Boolean)],bS.prototype,"isPlaylistThumbnail",void 0);_.A([_.YN("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],bS.prototype,"dataChanged",null);_.A([_.kO("image-updated"),_.kO("yt-refit"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bS.prototype,"updatePositionOfAllCorners",null);
bS=_.A([_.zX({is:"yt-image-editor-renderer",disableElementRegistration:!0})],bS);
_.Q(bS,"yt-image-editor-renderer",function(){if(EM1===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;Vyd===void 0&&(Vyd=document.createElement("template"));var C=Vyd;I.call(f,C.content.cloneNode(!0),r.content.firstChild);EM1=r}r=EM1;return r},{mode:2});var yr3;var UDi;var pr=function(){return _.y.apply(this,arguments)||this};
_.t(pr,_.y);pr.prototype.updateMinutesFromBinding=function(r){this.handleMinutesChanged&&this.handleMinutesChanged(r)};
pr.prototype.updateSecondsFromBinding=function(r){this.handleSecondsChanged&&this.handleSecondsChanged(r)};
pr.prototype.updateDescriptionFromBinding=function(r){this.handleDescriptionChanged&&this.handleDescriptionChanged(r)};
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],pr.prototype,"ytComponentBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],pr.prototype,"data",void 0);_.A([_.K(),_.B("design:type",String)],pr.prototype,"minutes",void 0);_.A([_.K(),_.B("design:type",String)],pr.prototype,"seconds",void 0);_.A([_.K(),_.B("design:type",String)],pr.prototype,"description",void 0);_.A([_.K(),_.B("design:type",Function)],pr.prototype,"handleMinutesChanged",void 0);
_.A([_.K(),_.B("design:type",Function)],pr.prototype,"handleSecondsChanged",void 0);_.A([_.K(),_.B("design:type",Function)],pr.prototype,"handleDescriptionChanged",void 0);_.A([_.K(),_.B("design:type",Number)],pr.prototype,"characterLimit",void 0);_.A([_.K(),_.B("design:type",Number)],pr.prototype,"textNumRows",void 0);pr=_.A([_.zX({is:"yt-report-details-form-content",disableElementRegistration:!0})],pr);
_.Q(pr,"yt-report-details-form-content",function(){if(UDi===void 0){var r=document.createElement("template");_.c(r,'\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>');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;yr3===void 0&&(yr3=document.createElement("template"));var C=yr3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);UDi=r}r=UDi;return r},{mode:2});var sis;var OPi;var nr=function(){var r=_.y.apply(this,arguments)||this;r.updateMinutesFromBinding=function(f){r.minutes=f.detail.value};
r.updateSecondsFromBinding=function(f){r.seconds=f.detail.value};
r.updateDescriptionFromBinding=function(f){r.description=f.detail.value};
return r};
_.t(nr,_.y);_.l=nr.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(){_.e(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.l.onSubmitYtAction=function(r){var f=r.detail;f.actionName==="yt-service-request"&&(f=f.args[1],f.flagEndpoint&&(r.stopPropagation(),this.refireAction(f)))};
_.l.refireAction=function(r){var f={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(f.vss_id=this.vssId);_.Do(this.hostElement,[r,f]);this.submitDisabled=!0};
_.l.dataChanged=function(){var r=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var f=_.sk();f&&f.getPlayerPromise().then(function(I){var C=I.getOption("cc","track")||I.getOption("captions","track");C&&(r.vssId=C.vss_id);I=I.getCurrentTime();r.minutes=Math.floor(I/60).toString();r.seconds=(Math.floor(I)%60).toString()})};
_.l.updateSubmitButtonState=function(){var r;((r=this.data)==null?0:r.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(){_.Bj(this.hostElement,"yt-close-popup-action")};
_.l.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.OC.Object.defineProperties(nr.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var r;return((r=this.data)==null?void 0:r.textNumRows)||4}}});
nr.prototype.onYtServiceRequestError=nr.prototype.onYtServiceRequestError;nr.prototype.onYtServiceRequestCompleted=nr.prototype.onYtServiceRequestCompleted;nr.prototype.updateSubmitButtonState=nr.prototype.updateSubmitButtonState;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],nr.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],nr.prototype,"ytRendererBehavior",void 0);
_.A([_.K({observer:"dataChanged"}),_.B("design:type",Object)],nr.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Boolean)],nr.prototype,"submitDisabled",void 0);_.A([_.K(),_.B("design:type",String)],nr.prototype,"minutes",void 0);_.A([_.K(),_.B("design:type",String)],nr.prototype,"seconds",void 0);_.A([_.K(),_.B("design:type",String)],nr.prototype,"description",void 0);_.A([_.K(),_.B("design:type",String)],nr.prototype,"vssId",void 0);
_.A([_.K({value:_.Lz("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.B("design:type",Boolean)],nr.prototype,"isMusic",void 0);_.A([_.R("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],nr.prototype,"characterLimit",null);_.A([_.R("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],nr.prototype,"textNumRows",null);
_.A([_.YN("minutes","seconds","description","submitDisabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nr.prototype,"updateSubmitButtonState",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nr.prototype,"onYtServiceRequestCompleted",null);
_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nr.prototype,"onYtServiceRequestError",null);nr=_.A([_.zX({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],nr);
_.Q(nr,"yt-report-details-form-renderer",function(){if(OPi===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;sis===void 0&&(sis=document.createElement("template"));var C=sis;I.call(f,C.content.cloneNode(!0),r.content.firstChild);OPi=r}r=OPi;return r});var oM3;var Qii;var Ar6;var ZPV;var dV=function(){return _.y.apply(this,arguments)||this};
_.t(dV,_.y);
dV.prototype.onCheckedChanged_=function(){if(this.data){var r=_.e(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.Bj(this.hostElement,"yt-additional-detail-checkbox-update",[r]):this.data.identifier==="yt-hide-user-checkbox"?_.Bj(this.hostElement,"yt-hide-user-checkbox-update",[r]):r&&this.data.enableCommand?_.Bj(this.hostElement,"yt-modify-report-form-command",[_.F(this.data.enableCommand,l03)]):!r&&this.data.disableCommand&&_.Bj(this.hostElement,
"yt-modify-report-form-command",[_.F(this.data.enableCommand,l03)])}};
dV.prototype.onLabelTap_=function(r){r.target.tagName!="A"&&(_.e(this.hostElement).querySelector("#checkbox").checked=!_.e(this.hostElement).querySelector("#checkbox").checked)};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],dV.prototype,"data",void 0);dV=_.A([_.zX({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],dV);
_.Q(dV,"yt-boolean-form-field-v2-renderer",function(){if(ZPV===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;Ar6===void 0&&(Ar6=document.createElement("template"));var C=Ar6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);ZPV=r}r=ZPV;return r});var zS=function(){var r=_.y.apply(this,arguments)||this;r.canShowAdditionalDetailCheckbox=!1;r.canShowCheckbox=!1;r.keepDropdownFocusedAfterSelection=!0;return r};
_.t(zS,_.y);zS.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}}}}};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],zS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],zS.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],zS.prototype,"canShowAdditionalDetailCheckbox",void 0);_.A([_.K(),_.B("design:type",Object)],zS.prototype,"canShowCheckbox",void 0);_.A([_.K(),_.B("design:type",Object)],zS.prototype,"keepDropdownFocusedAfterSelection",void 0);
zS=_.A([_.zX({is:"yt-report-form-modal-content",disableElementRegistration:!0})],zS);
_.Q(zS,"yt-report-form-modal-content",function(){if(Qii===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;oM3===void 0&&(oM3=document.createElement("template"));var C=oM3;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Qii=r}r=Qii;return r},{mode:2});var GT6;var kT6;var ML=function(){var r=_.y.apply(this,arguments)||this;r.submitting=!1;r.submitButtonDisabled=!0;r.command=null;r.canShowCheckbox=!1;r.canShowAdditionalDetailCheckbox=!1;r.canShowNextButton=!1;r.additionalDetailCheckboxChecked=!1;r.refitJob=0;r.keepDropdownFocusedAfterSelection=!0;r.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 r};
_.t(ML,_.y);_.l=ML.prototype;_.l.created=function(){this.refitJob=0};
_.l.attached=function(){this.JSC$18516_scroller&&(this.JSC$18516_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18516_scroller.attached&&typeof this.JSC$18516_scroller.attached==="function"&&this.JSC$18516_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(r){r&&(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,r.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),r.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.l.onYtPopupOpened=function(){var r=_.sk();r&&r.getPlayerPromise().then(function(f){f.pauseVideo()})};
_.l.onYtNavigate=function(r){_.F(r.detail.endpoint,_.hvB)&&(r.stopPropagation(),this.hideReportForm=!0)};
_.l.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.l.onYtServiceRequestCompleted=function(r,f){var I=f.actions;if(I){if(I.length===1&&_.F(I[0],_.Il)){var C;I=((C=_.F(I[0],_.Il))==null?void 0:C.commands)||[]}C=0;for(var Y=I.length;C<Y;C++)_.F(I[C],_.Nh)&&(r.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(I[C]))}if(f.data&&(r=this.get("feedbackResponses",f.data)))for(f=0;f<r.length;f++)if(r[f].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.l.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.l._onDescendantIronResize=function(r){r.stopPropagation();return!1};
_.l.handleReportFormEndpointUpdateAction=function(r){if(r.submitEndpoint){var f=this.command=r.submitEndpoint;f=_.F(f,_.BiB);if(f==null?0:f.additionalDetailCheckboxChecked)f.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else r.submitNavigationEndpoint?(this.command=r.submitNavigationEndpoint,this.toggleSubmitButton(!1)):r.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:r.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;r.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",r));this.refit()};
_.l.handleConfirmDialogCloseAction=function(r){r.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.l.submitButtonDisabledChanged=function(){var r=this.hostElement.parentElement;r&&r.invalidateTabbables&&r.invalidateTabbables()};
_.l.handleModifyReportFormCommand=function(r){r=this.get("action",r);r==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:r==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:r==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:r==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:r==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:r==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.l.updateDialogStyling=function(){var r,f,I,C,Y,V=((Y=(r=this.data)==null?void 0:(f=r.optionsSupportedRenderers)==null?void 0:(I=f.optionsRenderer)==null?void 0:(C=I.items)==null?void 0:C.length)!=null?Y:0)<=2?0:240;_.Zh(this.hostElement,{"--yt-report-form-modal-renderer-min-width":V+"px"})};
_.l.toggleSubmitButton=function(r){this.submitButtonDisabled=!r;this.submitButtonDisabled=r};
_.l.computeSubmitButtonData=function(r,f){var I={};_.F(f,_.hvB)?I.navigationEndpoint=f:I.command=f||void 0;r&&r.buttonRenderer&&_.X0.extend(I,r.buttonRenderer);return I};
_.l.computeNextButtonData=function(r,f){var I={};if(!r||!r.buttonRenderer)return I;_.X0.extend(I,r.buttonRenderer);if(!f)return I;if(_.F(f,_.hvB))I.navigationEndpoint=ab6(f);else if(I.command=ab6(f),r=_.F(I.command,_.BiB))r.legalCheckboxChecked=!0;return I};
_.l.computeShowNextButton=function(r,f,I){return!!r&&f&&I};
_.l.refit=function(){var r=this;this.refitJob||(this.refitJob=_.F_.addLowPriorityJob(function(){_.kA(r.hostElement,"yt-refit");r.refitJob=0}))};
_.l.handleAdditionalDetailCheckboxUpdateAction=function(r){this.additionalDetailCheckboxChecked=r;_.F(this.command,_.BiB).additionalDetailCheckboxChecked=r};
_.OC.Object.defineProperties(ML,{template:{configurable:!0,enumerable:!0,get:function(){if(kT6===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;GT6===void 0&&(GT6=document.createElement("template"));var C=GT6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);kT6=r}r=kT6;return r}}});
ML.prototype.onYtServiceRequestError=ML.prototype.onYtServiceRequestError;ML.prototype.onYtServiceRequestCompleted=ML.prototype.onYtServiceRequestCompleted;ML.prototype.onYtServiceRequestSent=ML.prototype.onYtServiceRequestSent;ML.prototype.onYtNavigate=ML.prototype.onYtNavigate;ML.prototype.onYtPopupOpened=ML.prototype.onYtPopupOpened;_.A([_.J(_.ug.YtOpenPopupBehavior),_.B("design:type",Object)],ML.prototype,"openPopupBehavior",void 0);
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],ML.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],ML.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],ML.prototype,"eventForwardingBehavior",void 0);_.A([_.J(_.Pq),_.B("design:type",Object)],ML.prototype,"ironResizableBehavior",void 0);_.A([_.K({observer:"dataChanged"}),_.B("design:type",Object)],ML.prototype,"data",void 0);
_.A([_.K(),_.B("design:type",Object)],ML.prototype,"submitting",void 0);_.A([_.K({observer:"submitButtonDisabledChanged"}),_.B("design:type",Object)],ML.prototype,"submitButtonDisabled",void 0);_.A([_.K(),_.B("design:type",Object)],ML.prototype,"command",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],ML.prototype,"hideReportForm",void 0);_.A([_.K(),_.B("design:type",Object)],ML.prototype,"canShowCheckbox",void 0);
_.A([_.K(),_.B("design:type",Object)],ML.prototype,"canShowAdditionalDetailCheckbox",void 0);_.A([_.K(),_.B("design:type",Object)],ML.prototype,"canShowNextButton",void 0);_.A([_.K(),_.B("design:type",Object)],ML.prototype,"additionalDetailCheckboxChecked",void 0);_.A([_.K(),_.B("design:type",Object)],ML.prototype,"refitJob",void 0);_.A([_.K(),_.B("design:type",Object)],ML.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.A([_.uA("#scroller"),_.B("design:type",Object)],ML.prototype,"JSC$18516_scroller",void 0);_.A([_.kO("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ML.prototype,"onYtPopupOpened",null);_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ML.prototype,"onYtNavigate",null);
_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],ML.prototype,"onYtServiceRequestSent",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],ML.prototype,"onYtServiceRequestCompleted",null);
_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ML.prototype,"onYtServiceRequestError",null);ML=_.A([_.zX({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],ML);var BzU;var qpY;var gV=function(){return _.y.apply(this,arguments)||this};
_.t(gV,_.y);_.l=gV.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(){if(_.N("web_ephemeral_actions_focus")){var r,f;(f=_.a().resolve(_.ZY(_.Y_)))==null||f.enqueue({label:_.Rr((r=this.data)==null?void 0:r.messageTitle),elementToFocus:this.hostElement})}};
_.l.onThumbnailLoaded=function(){_.kA(this.hostElement,"yt-refit")};
_.l.onDismissTap=function(){_.Bj(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.l.computeAlternateIcon=function(r){return r?r==="BACKSTAGE_ARTWORK"?"backstage:artwork":r:null};
_.l.computeFontFamily=function(r){return r==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.l.computeBackgroundStyle=function(r,f){if(r=this.computeBackgroundImage(r,f))if(r=_.U6(r.thumbnails))return'background-image: url("'+r+'");'};
_.l.computeHasFullHeightImage=function(r){return!(!(r&&r.thumbnails&&r.thumbnails.length>0)||this.modern)};
_.l.isModernStyle=function(r){return r.style==="STYLE_MODERN"};
_.l.computeIcon=function(r,f){if(r&&r.icon)return f?r.iconDark:r.icon};
_.l.computeBackgroundImage=function(r,f){if(r&&r.backgroundImage)return f?r.backgroundImageDark:r.backgroundImage};
_.l.computeLogo=function(r,f){if(r&&r.logo)return f?r.logoDark:r.logo};
_.l.computeShouldShowModernIcon=function(r,f){return r&&!!f};
_.l.getLogoContainerClassName=function(r){return this.logoWithPadding(r)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.l.getLogoImageId=function(r){return this.logoWithPadding(r)?"mealbar-logo-with-padding":"mealbar-logo"};
_.l.logoWithPadding=function(r){var f,I,C;return(r=(f=this.computeLogo(r,this.isDarkTheme))==null?void 0:(I=f.thumbnails)==null?void 0:(C=I[0])==null?void 0:C.height)&&r%31===0?!0:!1};
gV.prototype.onThumbnailLoaded=gV.prototype.onThumbnailLoaded;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],gV.prototype,"ytRendererBehavior",void 0);_.A([_.K({}),_.B("design:type",Object)],gV.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.B("design:type",Boolean)],gV.prototype,"modern",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],gV.prototype,"isDarkTheme",void 0);
_.A([_.K({computed:"computeIcon(data, isDarkTheme)"}),_.B("design:type",Object)],gV.prototype,"icon",void 0);_.A([_.K({computed:"computeLogo(data, isDarkTheme)"}),_.B("design:type",Object)],gV.prototype,"logo",void 0);_.A([_.K({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.B("design:type",Object)],gV.prototype,"backgroundStyle",void 0);_.A([_.K({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.B("design:type",Object)],gV.prototype,"alternateIcon",void 0);
_.A([_.K({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.B("design:type",Boolean)],gV.prototype,"hasFullHeightImage",void 0);_.A([_.K({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.B("design:type",Boolean)],gV.prototype,"useYoutubeSans",void 0);_.A([_.K({computed:"computeShouldShowModernIcon(modern, icon)"}),_.B("design:type",Boolean)],gV.prototype,"shouldShowModernIcon",void 0);
_.A([_.kO("yt-img-shadow-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gV.prototype,"onThumbnailLoaded",null);gV=_.A([_.zX({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],gV);
_.Q(gV,"yt-mealbar-promo-renderer",function(){if(qpY===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;BzU===void 0&&(BzU=document.createElement("template"));var C=BzU;I.call(f,C.content.cloneNode(!0),r.content.firstChild);qpY=r}r=qpY;return r},{mode:2});var ubU;var DDB;var a2=function(){return _.y.apply(this,arguments)||this};
_.t(a2,_.y);_.l=a2.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(r){return!(!r.dismissButton&&!r.acceptButton)};
_.l.computeStyle_=function(r){return r||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.l.observeImpressionEndpoints_=function(){var r=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(f){f.clickTrackingParams&&delete f.clickTrackingParams;_.Do(r.hostElement,[f])})};
_.l.onTap_=function(){_.Bj(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
a2.prototype.observeImpressionEndpoints_=a2.prototype.observeImpressionEndpoints_;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],a2.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],a2.prototype,"ytEventForwardingBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],a2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],a2.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],a2.prototype,"positionType",void 0);_.A([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.B("design:type",Boolean)],a2.prototype,"hasButtons_",void 0);_.A([_.K({value:function(){return this.onTap_.bind(this)}}),
_.B("design:type",Function)],a2.prototype,"boundOnTap_",void 0);_.A([_.K({value:{style:"mono-inverse"}}),_.B("design:type",Object)],a2.prototype,"buttonOverride",void 0);_.A([_.Bt("data.promoConfig.impressionEndpoints"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],a2.prototype,"observeImpressionEndpoints_",null);a2=_.A([_.zX({is:"yt-tooltip-renderer",disableElementRegistration:!0})],a2);
_.Q(a2,"yt-tooltip-renderer",function(){if(DDB===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;ubU===void 0&&(ubU=document.createElement("template"));var C=ubU;I.call(f,C.content.cloneNode(!0),r.content.firstChild);DDB=r}r=DDB;return r},{mode:2});var rtd;var fwV;var Iw2={},CtV=(Iw2.WEB_REMIX="music.youtube.com",Iw2),XH=function(){var r=_.y.apply(this,arguments)||this;r.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return r};
_.t(XH,_.y);_.l=XH.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_=CtV[_.Lz("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.l.ready=function(){_.e(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.l.computeEmbedCode_=function(r,f,I,C,Y){if(!r)return"";var V=r.videoId,S=r.fullListId,h=[];r.attributionId&&h.push("si="+r.attributionId);C||h.push("controls=0");I&&Number(f)>0&&h.push("start="+f);S&&(V="videoseries",h.push("list="+S));I="https://"+(Y?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+V;r.clipId&&(h.push("clip="+r.clipId),h.push("clipt="+r.clipTiming));f=h.length>0?I+"?"+h.join("&amp;"):I;r.encryptedEmbedConfig&&h.push("embed_config="+JSON.stringify({enc:r.encryptedEmbedConfig}));
h=h.length>0?I+"?"+h.join("&amp;"):I;_.N("web_sharing_embed_preview_killswitch")?_.e(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(h,r.previewWidth||854,r.previewHeight||480):(_.tJ(this.videoPreviewContainer),_.e(this.videoPreviewContainer).appendChild(this.buildIframeElement(h)));return this.getEmbedCode_(f,r.width||560,r.height||315)};
_.l.buildIframeElement=function(r){var f=document.createElement("iframe"),I,C;f.width=""+((C=(I=this.data)==null?void 0:I.previewWidth)!=null?C:854);var Y,V;f.height=""+((V=(Y=this.data)==null?void 0:Y.previewHeight)!=null?V:480);_.a$c(f,2,r);f.title="YouTube video player";f.frameBorder="0";f.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";f.referrerPolicy="strict-origin-when-cross-origin";f.allowFullscreen=!0;return f};
_.l.computeIsSquareAspectRatio_=function(r){return r.previewHeight&&r.previewWidth?r.previewHeight==r.previewWidth:!1};
_.l.computeShowEmbedOptions_=function(r){return!!r.enablePrivacyModeOptionLabel||!!r.showPlayerControlsOptionLabel};
_.l.getEmbedCode_=function(r,f,I){return'<iframe width="'+f+'" height="'+I+'" src="'+r+'" 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(){_.e(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.l.handleSetTimestamp_=function(r){this.startAtTimeStamp_=(this.startAtChecked_=r.isSet)?r.timestamp:0};
_.l.closePanel_=function(){_.Bj(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.l.onEmbedCode_=function(){_.e(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.l.onYtPopupClosed_=function(){_.tJ(_.e(this.hostElement).querySelector("#video-preview"))};
_.l.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.F(this.data.actionButtons[0],_.Ll)&&this.ytRendererBehavior.logExplicitClick(_.F(this.data.actionButtons[0],_.Ll))};
XH.prototype.onYtPopupClosed_=XH.prototype.onYtPopupClosed_;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],XH.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],XH.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],XH.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],XH.prototype,"data",void 0);
_.A([_.K({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.B("design:type",String)],XH.prototype,"embedCode_",void 0);_.A([_.K({value:!0}),_.B("design:type",Boolean)],XH.prototype,"isPlayerControlsOptionChecked_",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],XH.prototype,"isPrivacyModeOptionChecked_",void 0);_.A([_.K({value:!1,notify:!0}),_.B("design:type",Boolean)],XH.prototype,"startAtChecked_",void 0);
_.A([_.K({value:0}),_.B("design:type",Number)],XH.prototype,"startAtTimeStamp_",void 0);_.A([_.K({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],XH.prototype,"isSquareAspectRatio_",void 0);_.A([_.uA("#video-preview"),_.B("design:type",HTMLElement)],XH.prototype,"videoPreviewContainer",void 0);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XH.prototype,"onYtPopupClosed_",null);
XH=_.A([_.zX({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],XH);
_.Q(XH,"yt-sharing-embed-renderer",function(){if(fwV===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;rtd===void 0&&(rtd=document.createElement("template"));var C=rtd;I.call(f,C.content.cloneNode(!0),r.content.firstChild);fwV=r}r=fwV;return r},{mode:2});var YB6={};
YB6.YtUnlimitedFamilyInterstitialBehavior=[_.ug.YtOpenPopupBehavior,_.o_.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(r){r=_.L6g(_.jl(r),"yt-button-renderer");return r?r.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(r){this.dialogHistory_.push(r)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var r=this.popFromHistory();if(r){var f={openPopupAction:{popupType:"DIALOG",popup:{}}};f.openPopupAction.popup[r.renderer]=r.data;this.showingPreviousDialog_=!0;this.openPopup(f)}},
handleOpenPopupAction_:function(r){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var f=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(C){return!!r.openPopupAction.popup[C]}),I=this.getElementName_();
f&&this.data&&(this.pushToHistory({renderer:I,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(r){if(r=_.F(r,JL7))this.loading=!0,_.Bj(this.hostElement,"yt-open-create-family-dialog",[r,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var r=this.hostElement.nodeName.split("-").slice(1).map(function(f){return""+f[0].toUpperCase()+f.slice(1).toLowerCase()}).join("");
return r[0].toLowerCase()+r.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var lwB;var VRV;var NL=function(){return _.y.apply(this,arguments)||this};
_.t(NL,_.y);_.l=NL.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");_.Bj(this.hostElement,"yt-register-create-family-dialog");_.e(this.hostElement).querySelector("#thumbnail").onShow()};
_.l.fireOnCloseCommand_=function(){var r;((r=this.data)==null?0:r.onCloseCommand)&&_.rX(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.l.onYtServiceRequestSent_=function(r,f){f&&f.endpoint&&_.F(f.endpoint,_.YI)||(this.loading=!0)};
_.l.onYtServiceRequestCompleted_=function(){var r=this.hostElement.parentElement;r.close&&r.close();this.loading=!1};
_.l.openPopupHandler_=function(r){if(r.detail==this){var f;((f=this.data)==null?0:f.onOpenCommands)&&_.rX(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.l.closePopupHandler_=function(r,f){this.fireOnCloseCommand_();if(f&&f.canceled===!0||f&&f.canceled===!1&&f.confirmed===!1){var I;((I=this.data)==null?0:I.onDismissCommands)&&_.rX(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.l.dataChanged_=function(){this.loading=!1};
NL.prototype.dataChanged_=NL.prototype.dataChanged_;NL.prototype.closePopupHandler_=NL.prototype.closePopupHandler_;NL.prototype.openPopupHandler_=NL.prototype.openPopupHandler_;NL.prototype.onYtServiceRequestCompleted_=NL.prototype.onYtServiceRequestCompleted_;NL.prototype.onYtServiceRequestSent_=NL.prototype.onYtServiceRequestSent_;_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],NL.prototype,"ytEventForwardingBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],NL.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(YB6.YtUnlimitedFamilyInterstitialBehavior),_.B("design:type",Object)],NL.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],NL.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],NL.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],NL.prototype,"loading",void 0);_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],NL.prototype,"onYtServiceRequestSent_",null);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],NL.prototype,"onYtServiceRequestCompleted_",null);
_.A([_.kO("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],NL.prototype,"openPopupHandler_",null);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],NL.prototype,"closePopupHandler_",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NL.prototype,"dataChanged_",null);
NL=_.A([_.zX({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],NL);
_.Q(NL,"yt-unlimited-family-message-interstitial-renderer",function(){if(VRV===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;lwB===void 0&&(lwB=document.createElement("template"));var C=lwB;I.call(f,C.content.cloneNode(!0),r.content.firstChild);VRV=r}r=VRV;return r},{mode:2});var EKY;var SBi;var $9=function(){return _.y.apply(this,arguments)||this};
_.t($9,_.y);$9.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"}}}};
$9.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.e(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(r){r.onShow()});
_.e(this.hostElement).querySelector("#main-thumbnail").onShow()};
$9.prototype.onButtonTap_=function(r){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(r)};
$9.prototype.computeMainThumbnailWidth_=function(r){return r&&r.length!==0?72:96};
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],$9.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],$9.prototype,"ytRendererBehavior",void 0);_.A([_.J(YB6.YtUnlimitedFamilyInterstitialBehavior),_.B("design:type",Object)],$9.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],$9.prototype,"data",void 0);
_.A([_.K({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.B("design:type",Number)],$9.prototype,"mainThumbnailWidth_",void 0);_.A([_.K({value:function(){return this.onButtonTap_.bind(this)}}),
_.B("design:type",Function)],$9.prototype,"boundButtonTap_",void 0);$9=_.A([_.zX({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],$9);
_.Q($9,"yt-unlimited-family-profile-interstitial-renderer",function(){if(SBi===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;EKY===void 0&&(EKY=document.createElement("template"));var C=EKY;I.call(f,C.content.cloneNode(!0),r.content.firstChild);SBi=r}r=SBi;return r},{mode:2});var x8V;var hPV;var FH=function(){var r=_.y.apply(this,arguments)||this;r.sliderAriaValueText_=null;r.selectedIndex_=0;r.messages={PAUSE_SLIDER:_.VR("PAUSE_SLIDER",void 0,"Pause Duration")};return r};
_.t(FH,_.y);_.l=FH.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(r){r.detail==this&&_.N("enable_premium_voluntary_pause")&&(_.Bj(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(r){this.data=r;this.resetSlider_()};
_.l.dataChanged_=function(){this.data&&this.resetSlider_()};
_.l.onSubmitTap_=function(){if(this.data.confirmCommand){var r=this.data.confirmCommand;_.F(r,_.Yng)&&_.Do(this.hostElement,[r,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.l.onExitButtonTap_=function(){_.Bj(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.l.closePopupHandler_=function(r,f){(f&&f.canceled===!0||f.canceled===!1&&f.confirmed===!1)&&this.handleOnDismissCommands_()};
_.l.onSliderChange_=function(){this.selectedIndex_=_.e(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 r=this.data.defaultEndOptionIndex||0,f=_.e(this.hostElement).querySelector("#id-pause-slider");if(f.immediateValue<r)for(;f.immediateValue!=r;)f.increment();else if(r<f.immediateValue)for(;f.immediateValue!=r;)f.decrement();this.selectedIndex_=r;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.l.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.rX(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.l.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.rX(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};
FH.prototype.onYtServiceRequestCompleted=FH.prototype.onYtServiceRequestCompleted;FH.prototype.onYtServiceRequestSent=FH.prototype.onYtServiceRequestSent;FH.prototype.closePopupHandler_=FH.prototype.closePopupHandler_;FH.prototype.dataChanged_=FH.prototype.dataChanged_;FH.prototype.onPopupOpened_=FH.prototype.onPopupOpened_;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],FH.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],FH.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],FH.prototype,"loading",void 0);_.A([_.K(),_.B("design:type",Number)],FH.prototype,"selectIndexMax_",void 0);_.A([_.K(),_.B("design:type",Object)],FH.prototype,"selectedData_",void 0);
_.A([_.K(),_.B("design:type",Object)],FH.prototype,"sliderAriaValueText_",void 0);_.A([_.K({value:function(){return this.onSubmitTap_.bind(this)}}),
_.B("design:type",Function)],FH.prototype,"onButtonTap_",void 0);_.A([_.K({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.B("design:type",Function)],FH.prototype,"onSecondaryTap_",void 0);_.A([_.K(),_.B("design:type",Object)],FH.prototype,"messages",void 0);_.A([_.kO("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],FH.prototype,"onPopupOpened_",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],FH.prototype,"dataChanged_",null);
_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],FH.prototype,"closePopupHandler_",null);_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],FH.prototype,"onYtServiceRequestSent",null);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],FH.prototype,"onYtServiceRequestCompleted",null);FH=_.A([_.zX({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],FH);
_.Q(FH,"yt-unplugged-pause-membership-dialog-renderer",function(){if(hPV===void 0){var r=document.createElement("template");_.c(r,'\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>');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;x8V===void 0&&(x8V=document.createElement("template"));var C=x8V;I.call(f,C.content.cloneNode(!0),r.content.firstChild);hPV=r}r=hPV;return r},{mode:2});var wA6;var bni;var Py=function(){return _.y.apply(this,arguments)||this};
_.t(Py,_.y);Py.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.aC("vcBalanceRenderer")}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Py.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Py.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Py.prototype,"data",void 0);Py=_.A([_.zX({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],Py);
_.Q(Py,"yt-vc-offer-layout-header-renderer",function(){if(bni===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;wA6===void 0&&(wA6=document.createElement("template"));var C=wA6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);bni=r}r=bni;return r},{mode:2});var pAq;var nK6;var d8U;var zPd;var tz=function(){return _.y.apply(this,arguments)||this};
_.t(tz,_.y);tz.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.OC.Object.defineProperties(tz.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)}}});
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],tz.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],tz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.hJ8.YtTappableItemBehavior),_.B("design:type",Object)],tz.prototype,"ytTappableItemBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],tz.prototype,"data",void 0);
_.A([_.K({reflectToAttribute:!0}),_.R("data.accessibilityText"),_.B("design:type",String),_.B("design:paramtypes",[])],tz.prototype,"ariaLabel",null);_.A([_.K({reflectToAttribute:!0}),_.R("data.style"),_.B("design:type",String),_.B("design:paramtypes",[])],tz.prototype,"vcOfferStyle",null);_.A([_.R("data.style","data.titleText"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],tz.prototype,"showTitleText",null);tz=_.A([_.zX({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],tz);
_.Q(tz,"yt-vc-offer-renderer",function(){if(zPd===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;d8U===void 0&&(d8U=document.createElement("template"));var C=d8U;I.call(f,C.content.cloneNode(!0),r.content.firstChild);zPd=r}r=zPd;return r},{mode:2});var TS=function(){return _.y.apply(this,arguments)||this};
_.t(TS,_.y);TS.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}}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],TS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],TS.prototype,"data",void 0);TS=_.A([_.zX({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],TS);
_.Q(TS,"yt-vc-offer-layout-renderer",function(){if(nK6===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;pAq===void 0&&(pAq=document.createElement("template"));var C=pAq;I.call(f,C.content.cloneNode(!0),r.content.firstChild);nK6=r}r=nK6;return r},{mode:2});var MRq;var gKq;var aw6;var XA1;var cy=function(){return _.y.apply(this,arguments)||this};
_.t(cy,_.y);cy.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}}}}}};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],cy.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],cy.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],cy.prototype,"data",void 0);cy=_.A([_.zX({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],cy);
_.Q(cy,"yt-ypc-offers-modal-top-bar-renderer",function(){if(XA1===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;aw6===void 0&&(aw6=document.createElement("template"));var C=aw6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);XA1=r}r=XA1;return r},{mode:2});var Wy=function(){return _.y.apply(this,arguments)||this};
_.t(Wy,_.y);Wy.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"}}}}};
Wy.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
Wy.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var r=this.scrollable;r.attached&&typeof r.attached==="function"&&r.attached()};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Wy.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Wy.prototype,"ytRendererstamperBehavior",void 0);_.A([_.uA("#scrollable"),_.B("design:type",Object)],Wy.prototype,"scrollable",void 0);_.A([_.K(),_.B("design:type",Object)],Wy.prototype,"data",void 0);Wy=_.A([_.zX({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Wy);
_.Q(Wy,"yt-ypc-offers-modal-renderer",function(){if(gKq===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;MRq===void 0&&(MRq=document.createElement("template"));var C=MRq;I.call(f,C.content.cloneNode(!0),r.content.firstChild);gKq=r}r=gKq;return r},{mode:2});var Nyp;var $82;var Lr=function(){return _.y.apply(this,arguments)||this};
_.t(Lr,_.y);_.l=Lr.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");_.e(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.l.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.Bj(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.l.onYtPopupOpened_=function(r,f){(f==null?void 0:f.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.rX(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.l.onYtPopupClosed_=function(r,f){this.continueButtonTapped||f&&(f.canceled===!0||f.canceled===!1&&f.confirmed===!1)&&this.data.onDismissCommands&&_.rX(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.l.onYtServiceRequestError_=function(r){this.set("showSpinner",!1);_.tx(this.hostElement,r.detail.error.message)};
_.l.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.N("enable_ypc_spinners")?_.Bj(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Lr.prototype.onYtServiceRequestError_=Lr.prototype.onYtServiceRequestError_;Lr.prototype.onYtPopupClosed_=Lr.prototype.onYtPopupClosed_;Lr.prototype.onYtPopupOpened_=Lr.prototype.onYtPopupOpened_;Lr.prototype.onYtServiceRequestCompleted_=Lr.prototype.onYtServiceRequestCompleted_;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Lr.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Lr.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.K(),_.B("design:type",Object)],Lr.prototype,"data",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],Lr.prototype,"showSpinner",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],Lr.prototype,"continueButtonTapped",void 0);_.A([_.K({value:function(){return this.onContinueTapped_.bind(this)}}),
_.B("design:type",Function)],Lr.prototype,"bindOnContinueTapped_",void 0);_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Lr.prototype,"onYtServiceRequestCompleted_",null);_.A([_.kO("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Lr.prototype,"onYtPopupOpened_",null);
_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Lr.prototype,"onYtPopupClosed_",null);_.A([_.kO("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Lr.prototype,"onYtServiceRequestError_",null);Lr=_.A([_.zX({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Lr);
_.Q(Lr,"yt-ypc-upgrade-dialog-renderer",function(){if($82===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;Nyp===void 0&&(Nyp=document.createElement("template"));var C=Nyp;I.call(f,C.content.cloneNode(!0),r.content.firstChild);$82=r}r=$82;return r},{mode:2});var Fc6;var Pt6;var m2=function(){return _.y.apply(this,arguments)||this};
_.t(m2,_.y);m2.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
m2.prototype.computeHasButtons_=function(r){return!(!r.dismissButton&&!r.confirmButton)};
m2.prototype.computeStyle_=function(r){return r||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],m2.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],m2.prototype,"ytEventForwardingBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],m2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],m2.prototype,"data",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],m2.prototype,"positionType",void 0);
_.A([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.B("design:type",Boolean)],m2.prototype,"hasButtons_",void 0);_.A([_.K({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.B("design:type",Boolean)],m2.prototype,"style_",void 0);m2=_.A([_.zX({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],m2);
_.Q(m2,"yt-bubble-hint-renderer",function(){if(Pt6===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;Fc6===void 0&&(Fc6=document.createElement("template"));var C=Fc6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Pt6=r}r=Pt6;return r},{mode:2});var tR6;var Ty7;var eC=function(){var r=_.o6.apply(this,arguments)||this;r.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return r};
_.t(eC,_.o6);_.l=eC.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 r=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){r.$.thumbnail.onShow();r.$["header-image"].onShow()})};
_.l.handleCheckBoxUpdateAction_=function(r){this.canShowCheckboxEnabledConfirmButton=r};
_.l.computeUseOverlayForSpinner_=function(r,f){return!!r&&f};
_.l.computeShowSpinner_=function(r,f){return r||!!f};
_.l.fireOnCloseActions_=function(){var r,f=_.E(((r=this.data)==null?void 0:r.onClosedActions)||[]);for(r=f.next();!r.done;r=f.next())this.ytRendererBehavior.resolveCommand(r.value)};
_.l.fireOnOpenCommands_=function(r){var f,I=(f=this.data)==null?void 0:f.onOpenCommands;if(I)for(r.stopImmediatePropagation(),r=_.E(I),f=r.next();!f.done;f=r.next())this.ytRendererBehavior.resolveCommand(f.value)};
_.l.fireOnDismissCommands_=function(r){var f,I=(f=this.data)==null?void 0:f.onDismissCommands;if(I)for(r.stopImmediatePropagation(),r=_.E(I),f=r.next();!f.done;f=r.next())this.ytRendererBehavior.resolveCommand(f.value)};
_.l.openPopupHandler_=function(r){r.detail==this&&this.fireOnOpenCommands_(r)};
_.l.closePopupHandler_=function(r,f){_.qy(this,"yt-confirm-dialog-close-action",[f]);this.fireOnCloseActions_();(f&&f.canceled===!0||f&&f.canceled===!1&&f.confirmed===!1)&&this.fireOnDismissCommands_(r)};
_.l.onHeaderImageChanged_=function(){var r;((r=this.data)==null?0:r.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.l.computeHasHeaderImageWidth_=function(r){return r!=void 0};
_.l.computeHasLoadingMessage=function(r){return!!r};
_.l.onHeaderImageWidthChanged_=function(){var r,f=(r=this.data)==null?void 0:r.headerImageWidth;if(f){if(r=1.25*f*2+f,this.$.main.style.width=r+"px",f=this.$.scroller.firstElementChild)f.style.minWidth=r+"px"}else this.$.main.style.width="100%"};
_.l.onThumbnailChanged_=function(){var r;((r=this.data)==null?0:r.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(r){r=_.jl(r);r instanceof Node&&_.Oi(this.$["confirm-button"]).contains(r)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.l.computePrimaryIsCancel_=function(r){return r};
_.l.computeIsCancelButtonHidden_=function(r){return r.skipCancelButton||!r.cancelButton};
_.l.computeIsCheckboxHidden_=function(r){return!r.checkbox};
_.l.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.l.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.l.onYtServiceRequestCompleted_=function(){var r;((r=this.data)==null?0:r.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.OC.Object.defineProperties(eC,{template:{configurable:!0,enumerable:!0,get:function(){if(Ty7===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;tR6===void 0&&(tR6=document.createElement("template"));var C=tR6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Ty7=r}r=Ty7;return r}}});
eC.prototype.onYtServiceRequestCompleted_=eC.prototype.onYtServiceRequestCompleted_;eC.prototype.onYtServiceRequestSent_=eC.prototype.onYtServiceRequestSent_;eC.prototype.onThumbnailLoaded_=eC.prototype.onThumbnailLoaded_;eC.prototype.onYtNavigate_=eC.prototype.onYtNavigate_;eC.prototype.onThumbnailChanged_=eC.prototype.onThumbnailChanged_;eC.prototype.onHeaderImageWidthChanged_=eC.prototype.onHeaderImageWidthChanged_;eC.prototype.onHeaderImageChanged_=eC.prototype.onHeaderImageChanged_;
eC.prototype.closePopupHandler_=eC.prototype.closePopupHandler_;eC.prototype.openPopupHandler_=eC.prototype.openPopupHandler_;_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],eC.prototype,"ytActionHandlerBehavior",void 0);_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],eC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],eC.prototype,"ytRendererBehavior",void 0);
_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],eC.prototype,"ytEventForwardingBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],eC.prototype,"data",void 0);_.A([_.K({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.B("design:type",Boolean)],eC.prototype,"primaryIsCancel",void 0);_.A([_.K({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.B("design:type",Boolean)],eC.prototype,"isCancelButtonHidden",void 0);
_.A([_.K({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.B("design:type",Boolean)],eC.prototype,"isCheckboxHidden",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],eC.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.A([_.K({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.B("design:type",Boolean)],eC.prototype,"useOverlayForSpinner_",void 0);
_.A([_.K({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.B("design:type",Boolean)],eC.prototype,"showSpinner_",void 0);_.A([_.K({value:!1}),_.B("design:type",Boolean)],eC.prototype,"isActionInProgress_",void 0);_.A([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.B("design:type",Boolean)],eC.prototype,"hasHeaderImageWidth_",void 0);
_.A([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.B("design:type",Boolean)],eC.prototype,"hasLoadingMessage",void 0);_.A([_.kO("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],eC.prototype,"openPopupHandler_",null);_.A([_.kO("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],eC.prototype,"closePopupHandler_",null);
_.A([_.Bt("data.headerImage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eC.prototype,"onHeaderImageChanged_",null);_.A([_.Bt("data.headerImageWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eC.prototype,"onHeaderImageWidthChanged_",null);_.A([_.Bt("data.thumbnail"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eC.prototype,"onThumbnailChanged_",null);
_.A([_.kO("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],eC.prototype,"onYtNavigate_",null);_.A([_.kO("yt-img-shadow-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eC.prototype,"onThumbnailLoaded_",null);_.A([_.kO("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.TY]),_.B("design:returntype")],eC.prototype,"onYtServiceRequestSent_",null);
_.A([_.kO("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.Hl]),_.B("design:returntype")],eC.prototype,"onYtServiceRequestCompleted_",null);eC=_.A([_.zX({is:"yt-confirm-dialog-renderer",noInjection:!0})],eC);var ctB;var Wcs;var Jz=function(){return _.y.apply(this,arguments)||this};
_.t(Jz,_.y);Jz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.e(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
Jz.prototype.computeConfirmButton_=function(r){var f={text:r.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};r.confirmNavigationEndpoint?f.navigationEndpoint=r.confirmNavigationEndpoint:r.confirmServiceEndpoint&&(f.serviceEndpoint=r.confirmServiceEndpoint);return f};
Jz.prototype.computeShowTitle_=function(r){return!(r==null||!r.title)};
_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Jz.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],Jz.prototype,"data",void 0);_.A([_.K({computed:"computeShowTitle_(data)"}),_.B("design:type",Boolean)],Jz.prototype,"showTitle",void 0);Jz=_.A([_.zX({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],Jz);
_.Q(Jz,"yt-fancy-dismissible-dialog-renderer",function(){if(Wcs===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;ctB===void 0&&(ctB=document.createElement("template"));var C=ctB;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Wcs=r}r=Wcs;return r});var Lcq;var m8q;var jC=function(){var r=_.y.apply(this,arguments)||this;r.spinnerActive=!1;return r};
_.t(jC,_.y);jC.prototype.created=function(){uiV(2201)};
jC.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
jC.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
jC.prototype.onIronOverlayClosed=jC.prototype.onIronOverlayClosed;jC.prototype.onIronOverlayOpened=jC.prototype.onIronOverlayOpened;_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.ym),_.B("design:type",Object)],jC.prototype,"tpYtIronOverlayBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],jC.prototype,"data",void 0);_.A([_.K(),_.B("design:type",Object)],jC.prototype,"spinnerActive",void 0);
_.A([_.kO("iron-overlay-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jC.prototype,"onIronOverlayOpened",null);_.A([_.kO("iron-overlay-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jC.prototype,"onIronOverlayClosed",null);jC=_.A([_.zX({is:"yt-loading-renderer",disableElementRegistration:!0})],jC);
_.Q(jC,"yt-loading-renderer",function(){if(m8q===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;Lcq===void 0&&(Lcq=document.createElement("template"));var C=Lcq;I.call(f,C.content.cloneNode(!0),r.content.firstChild);m8q=r}r=m8q;return r},{mode:2});var eP6;var JtV;var Hy=function(){var r=_.y.apply(this,arguments)||this;r.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);r.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);r.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";r.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return r};
_.t(Hy,_.y);_.l=Hy.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(r){this.isDarkTheme=r};
_.l.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.l.openPopupHandler_=function(r){r.detail===this.hostElement&&this.hostElement.hidden&&_.Bj(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.l.onDismissButtonTap_=function(){var r;this.closeOnDismissButton_.has(((r=this.data)==null?void 0:r.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Bj(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.l.onAcceptButtonTap_=function(){var r;this.closeOnAcceptButton_.has(((r=this.data)==null?void 0:r.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Bj(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.l.computeHasHeader_=function(r){return!!r.headerBackgroundImage};
_.l.computeLayoutStyle_=function(r){return r};
_.l.computePopupSize_=function(r){return r};
_.l.computeIconType_=function(r){return r.dialogIcon&&r.dialogIcon.iconType?r.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":r.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":r.dialogIcon.iconType:""};
_.l.computeIsLogo_=function(r){return!!r.dialogIcon&&!!r.dialogIcon.iconType&&(r.dialogIcon.iconType==="YOUTUBE_LOGO"||r.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||r.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.l.computeHasCustomLogo=function(r){return!(r==null||!r.headerForegroundImage)};
_.l.computeCustomLogo=function(r,f){if(r!=null&&r.headerForegroundImage)return r.headerForegroundImageDark?f?r.headerForegroundImageDark:r.headerForegroundImage:r.headerForegroundImage};
_.l.computeHeaderBackgroundImage=function(r,f){if(r!=null&&r.headerBackgroundImage)return f&&(r==null?0:r.headerBackgroundImageDark)?r.headerBackgroundImageDark:r.headerBackgroundImage};
_.l.shouldShowIconContainer=function(r,f){return r&&!f};
_.l.shouldShowNonYouTubeIcon=function(r,f){return!r&&!f};
_.l.getLogoImageId=function(r){var f,I,C;return(r=(f=this.computeCustomLogo(r,this.isDarkTheme))==null?void 0:(I=f.thumbnails)==null?void 0:(C=I[0])==null?void 0:C.height)&&r%31===0?"custom-logo-with-padding":"custom-logo"};
Hy.prototype.openPopupHandler_=Hy.prototype.openPopupHandler_;Hy.prototype.dataChanged_=Hy.prototype.dataChanged_;_.A([_.J(_.On.YtRendererstamperBehavior),_.B("design:type",Object)],Hy.prototype,"ytRendererstamperBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],Hy.prototype,"ytRendererBehavior",void 0);_.A([_.K(),_.B("design:type",Boolean)],Hy.prototype,"isDarkTheme",void 0);
_.A([_.K({computed:"computeCustomLogo(data, isDarkTheme)"}),_.B("design:type",Object)],Hy.prototype,"customLogo",void 0);_.A([_.K({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.B("design:type",Object)],Hy.prototype,"headerBackgroundImage",void 0);_.A([_.K(),_.B("design:type",Object)],Hy.prototype,"data",void 0);_.A([_.K({computed:"computeHasHeader_(data)"}),_.B("design:type",Boolean)],Hy.prototype,"hasHeader",void 0);
_.A([_.K({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.B("design:type",Object)],Hy.prototype,"layoutStyle",void 0);_.A([_.K({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.B("design:type",Object)],Hy.prototype,"popupSize",void 0);_.A([_.K({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Hy.prototype,"hasLogo",void 0);
_.A([_.K({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Hy.prototype,"hasCustomLogo",void 0);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hy.prototype,"dataChanged_",null);_.A([_.kO("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Hy.prototype,"openPopupHandler_",null);
Hy=_.A([_.zX({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],Hy);
_.Q(Hy,"yt-upsell-dialog-renderer",function(){if(JtV===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;eP6===void 0&&(eP6=document.createElement("template"));var C=eP6;I.call(f,C.content.cloneNode(!0),r.content.firstChild);JtV=r}r=JtV;return r},{mode:2});var jy6=_.Hc(function(r){return _.p("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.p(_.M,{cond:r.title,then:function(f){return _.p("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},f)}}))},"mg"),Hns=_.Hc(function(r){return _.p("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.p(_.X1,{data:r.closeButton},{buttonViewModel:function(f){return _.p("div",null,_.p(_.LF,{data:f.data}))}}))},"ng"),in7=_.Hc(function(r){var f=
r.data;
return _.p(_.B9,null,_.p("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.p("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.p(_.M,{cond:function(){return!!f().image&&!!f().title},
then:function(){return _.p(_.J3,{data:function(){return f().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.p("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.p(_.M,{cond:function(){return f().title},
then:function(I){return _.p("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},I)}}),_.p(_.M,{cond:function(){return f().primaryGenre},
then:function(I){return _.p("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},I)}}))),_.p(_.M,{cond:function(){var I=f().description;
return I&&I.length<=150},
then:function(){return _.p("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.p("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return f().description}))}}))},"og"),RPU=_.Hc(function(r){r=r.infoRows;
var f=_.a().resolve(_.t4),I=_.N("enable_displaying_ppn");return _.p("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.p(_.pz,{each:r},function(C){return _.p("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.p(_.M,{cond:function(){return C.label},
then:function(Y){return _.p("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},Y)}}),_.p(_.M,{cond:function(){return C.attributedLabel},
then:function(Y){return _.p("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.p(_.wW,{text:Y,noPreWrap:!0}))}}),_.p(_.M,{cond:function(){return C.value},
then:function(Y){return _.p("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},Y)}}),_.p(_.M,{cond:function(){return C.attributedValue},
then:function(Y){return _.p("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.p(_.wW,{text:Y,noPreWrap:!0}))}}))}),_.p(_.M,{cond:function(){return I&&f.clientData.has("post_play_nonce")},
then:function(){return _.p("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.p("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.p("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},f.getData("post_play_nonce")))}}))},"pg"),vK6=_.Hc(function(r){var f=r.data;
return _.p("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.p(jy6,{title:function(){return f().dialogTitle}}),_.p(in7,{data:f}),_.p(_.M,{cond:function(){return f().infoRow},
then:function(I){return _.p(RPU,{infoRows:I})}}),_.p(Hns,{closeButton:function(){return f().closeButton}}))},"qg");
vK6.idomCompat=!0;_.Kv(vK6,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.jv}});_.Kv(_.Hc(function(r){var f=r.data;return _.p("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.p(_.J3,{data:function(){return f().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.p("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.p("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.p(_.M,{cond:function(){var I=f().ytLogo;return I?I.iconType:null},
then:function(I){return _.p(_.V2,{icon:I,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.p("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.p("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.p(_.wW,{text:function(){return f().title}})),_.p("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.p(_.wW,{text:function(){return f().body}})),_.p("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.p(_.wW,{text:function(){return f().verifyStateText}}))),
_.p("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.p("div",null,_.p(_.X1,{data:function(){return f().dismissButton}},{buttonViewModel:_.LF})),_.p("div",null,_.p(_.X1,{data:function(){return f().linkParentButton}},{buttonViewModel:_.LF})))))},"rg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.jv}});var Kc3=_.Hc(function(r){var f=r.data;return _.p("installment-agreements-view-model",{class:_.qd("ytInstallmentAgreementsViewModelHost")},_.p(_.pz,{each:_.JG(function(){return f().agreements},[])},function(I){return _.p("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.p("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.p(_.wW,{text:I.label})),_.p("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.p(_.X1,{data:function(){return I.openButton}},{buttonViewModel:_.LF})))}))},
"sg");
Kc3.idomCompat=!0;var yt3=_.Hc(function(r){return _.p("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.p("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.p(_.wW,{text:function(){return r.data().inviteMessage}})),_.p("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.p(_.wW,{text:function(){return r.data().attributedAccountSectionHeaderText}})),_.p("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.p(_.X1,{data:function(){return r.data().accountAvatar}},{avatarViewModel:_.$U}),_.p("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.p(_.wW,{text:function(){return r.data().accountName}}),_.p("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.p(_.wW,{text:function(){return r.data().handle}}))),_.p(_.X1,{data:function(){return r.data().trailingButton}},{buttonViewModel:_.LF})),_.p("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.p(_.wW,{text:function(){return r.data().termsOfService}})))},"tg");var U8B=_.Hc(function(r){var f=_.E(_.YZ(function(){var rR,EP;return((rR=r.data().createPlaylistDialogFormSchema)==null?0:(EP=rR.initialValues)==null?0:EP.title)?r.data().createPlaylistDialogFormSchema.initialValues.title:""})),I=f.next().value,C=f.next().value;
f=_.E(_.YZ(function(){r.data();return!1}));
var Y=f.next().value,V=f.next().value;f=_.E(_.YZ(function(){r.data();return!1}));
var S=f.next().value,h=f.next().value;f=_.E(_.YZ(function(){var rR,EP;return(rR=r.data().createPlaylistDialogFormSchema)==null?void 0:(EP=rR.initialValues)==null?void 0:EP.visibility}));
var w=f.next().value,n=f.next().value;f=_.E(_.YZ(function(){r.data();return!1}));
var d=f.next().value,z=f.next().value;f=_.E(_.YZ(function(){var rR,EP;return(rR=r.data().createPlaylistDialogFormSchema)==null?void 0:(EP=rR.initialValues)==null?void 0:EP.isCollaborative}));
var g=f.next().value,X=f.next().value,P=_.yy();_.az(function(){var rR=P.value.querySelector("textarea");rR&&(rR.value=I())});
_.$E(function(){var rR;_.ziY((rR=r.data().createPlaylistDialogFormSchema)==null?void 0:rR.id,{onSubmit:function(){var EP=I();var Pu=w(),Wu=g(),cu=r.data();EP={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:EP,privacyStatus:Pu,videoIds:cu.videoIds,sourcePlaylistId:cu.sourcePlaylistId,params:Wu?cu.createPlaylistParamsCollaborationEnabled:cu.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.a().resolve(_.Gg).resolveCommand(EP)},
isValid:function(){return Y()&&!S()&&!d()}})});
var W=function(rR){if(rR!==void 0&&(C(rR),!Y()&&rR.length>0&&V(!0),Y())){var EP=Si3(r.data());if(EP){var Pu=EP.minLength;EP=EP.maxLength;Pu&&rR.length<Pu?h(!0):EP&&rR.length>EP?h(!0):h(!1)}}},m=function(){var rR=!(!g()||w()!=="PRIVATE");
z(rR)},v=function(rR){rR!==void 0&&(n(rR),m())},O=function(){if(d())return hE6(r.data())},k=function(){X(!g());
m()},Z=function(){return{validate:function(rR){if(Y()){var EP=Si3(r.data());
if(EP){var Pu=EP.minLength;EP=EP.translations;if(Pu&&rR.length<Pu)return EP==null?void 0:EP.minLengthErrorMessage}}}}},Cw=function(){var rR=Si3(r.data()),EP=rR==null?void 0:rR.maxLength,Pu;
rR=rR==null?void 0:(Pu=rR.translations)==null?void 0:Pu.maxLengthErrorMessage;if(EP&&rR)return{maxChars:EP,errorMessage:rR}};
return _.p("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.p("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:P},_.p(_.X1,{data:function(){return r.data().playlistTitle}},{textFormFieldViewModel:function(rR){return _.p(_.ulY,{data:rR.data,
text:I,onInput:W,validation:Z,characterLimit:Cw})},
textFieldViewModel:function(rR){return _.p(_.qQV,{data:rR.data,text:I,onInput:W,validation:Z,characterLimit:Cw})}})),_.p("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.p(_.X1,{data:function(){return r.data().playlistVisibility}},{dropdownViewModel:function(rR){return _.p(_.hG7,{data:rR.data,
onSelected:v,error:O})}})),_.p(_.M,{cond:function(){return!!r.data().playlistCollaborate},
then:function(){return _.p("div",null,_.p(_.X1,{data:function(){return r.data().playlistCollaborate}},{switchListItemViewModel:function(rR){return _.p(_.g6,{data:rR.data,
onTap:k})}}))}}))},"ug");var sys=_.Hc(function(r){var f=_.JG(r.noPadding,!1),I=function(){var Y,V;return(V=(Y=r.data().logo.accessibilityData)==null?void 0:Y.label)!=null?V:""},C={};
return _.p("upsell-view-model",{class:_.qd("ytUpsellViewModelHost",(C.ytUpsellViewModelHostNoPadding=function(){return f()},C))},_.p("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.p(_.M,{cond:function(){return _.ZK(r.data().logo)},
then:function(Y){return _.p(_.J3,{data:Y,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:I})}})),_.p("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.p(_.wW,{text:function(){return r.data().title}})),_.p("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.p(_.pz,{each:function(){var Y;
return(Y=r.data().subtitles)!=null?Y:[]},
keyBy:"INDEX"},function(Y){return _.p("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.p(_.wW,{text:Y}))})),_.p("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.p(_.pz,{each:function(){var Y;
return(Y=r.data().benefitInfos)!=null?Y:[]},
keyBy:"INDEX"},function(Y){return _.p(_.M,{cond:function(){return Y().info},
then:function(V){return _.p("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.p(_.V2,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.p(_.wW,{text:V}))}})})),_.p("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.p(_.pz,{each:function(){var Y;
return(Y=r.data().legalInfos)!=null?Y:[]},
keyBy:"INDEX"},function(Y){return _.p("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.p(_.wW,{text:Y}))})))},"vg");var Onq=_.Hc(function(r){var f=r.data;r={};r=(r.ytMiniAppScoreChallengeViewModelScoreRadial=!0,r.ytMiniAppScoreChallengeViewModelDarkScoreRadial=wt6(),r);return _.p("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.p("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return f().title}),_.p("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return f().subtitle}),_.p("div",{class:_.D5(r)},_.p("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return f().score})),_.p("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return f().prompt}))},"wg");var oK6=function(){this.store=_.Lx();this.formId=""};var Qyd=_.Hc(function(r){function f(h){if(h&&(h=_.F(h,_.b6)))return Object.assign({},h,{isSelected:V()})}
var I=_.E(_.YZ(function(){var h,w;return(w=(h=_.F(r.data().option,_.b6))==null?void 0:h.isSelected)!=null?w:!1})),C=I.next().value,Y=I.next().value,V=C;
_.$E(function(){var h;_.ziY((h=r.data().formSchema)==null?void 0:h.id,{onSubmit:function(){var w=_.a().resolve(_.Gg),n=!!r.data().selectedCommand,d=!!r.data().unselectedCommand;if(V()){if(n)var z=r.data().selectedCommand}else d&&(z=r.data().unselectedCommand);z=_.aB(z);f(r.data().option)&&!z?(w="",!n&&d?w="selected ":n&&!d&&(w="unselected "),n=new _.nf("No "+w+"command found for SelectionListItemFormViewModel"),_.Fo(n)):z&&w.resolveCommand(z)},
isValid:function(){return!0}})});
var S=function(){Y(!V())};
_.$L(function(){var h,w,n=(h=r.data())==null?void 0:(w=h.formSchema)==null?void 0:w.id;n&&_.naV()().delete(n)});
return _.p("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.p("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.p(_.wW,{text:function(){return r.data().paragraph}})),_.p(_.M,{cond:function(){return f(r.data().option)},
then:function(h){return _.p(_.MF,{data:h,isCompact:!0,hideSelectionTextChevron:!0,onTap:S,disableHorizontalPadding:!0})}}))},"xg");var At1=_.Hc(function(r){var f=r.data;var I=r.disablePadding;var C=r.className;var Y=_.yy(),V=function(){return bJV(f().banner,f().assetContainerPaddingStyle)},S=function(){return bJV(f().imageBanner,f().assetContainerPaddingStyle)},h=function(){return f().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.$E(function(){var w=function(){_.Bj(Y.value,"yt-refit-popups-action")},n;
(n=Y.value)==null||n.addEventListener("image-loaded",w);_.$L(function(){var d;(d=Y.value)==null||d.removeEventListener("image-loaded",w)})});
r={};return _.p("yt-dialog-header-view-model",{el:Y,class:_.qd(C,(r.ytDialogHeaderViewModelHost=!0,r.ytDialogHeaderViewModelHostDisablePadding=I,r))},_.p(_.M,{cond:function(){return f().banner},
then:function(){var w={};return _.p("div",{class:_.qd(C,(w.ytDialogHeaderViewModelBanner=!0,w.ytDialogHeaderViewModelBannerFullBleed=h,w)),style:_.lB({"max-height":function(){return f().assetContainerMaxHeight?f().assetContainerMaxHeight+"px":""}})},_.p(_.Oq,{data:V,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.p(_.M,{cond:function(){return f().imageBanner},
then:function(){var w={};return _.p("div",{class:_.qd(C,(w.ytDialogHeaderViewModelBanner=!0,w.ytDialogHeaderViewModelBannerFullBleed=h,w)),style:_.lB({"max-height":function(){return f().assetContainerMaxHeight!==void 0?f().assetContainerMaxHeight+"px":void 0}})},_.p(_.Oq,{data:S,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.p(_.M,{cond:function(){return f().customAssetContainer},
then:function(w){return _.p("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.p(_.X1,{data:w},{avatarStackViewModel:_.zt}))}}),_.p(_.M,{cond:function(){return f().customBanner},
then:function(w){return _.p("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.p(_.X1,{data:w},{avatarStackViewModel:_.zt}))}}),_.p(_.M,{cond:function(){return f().headline},
then:function(w){return _.p("h2",null,_.p(_.wW,{text:w,className:"ytDialogHeaderViewModelText"}))}}))},"yg");
At1.idomCompat=!0;var Zn6=_.Hc(function(r){var f=_.M46(function(){return r.data().formId}),I=f.onSubmit,C=f.isValid;
return _.p("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.p(_.X1,{data:function(){return r.data().panelFooter}},{panelFooterViewModel:function(Y){return _.p(_.Hf,{data:Y.data,
disablePadding:!0,disablePrimaryButton:function(){return!C()},
onClickPrimaryButton:function(){I()}})}}))},"zg");var ByU=_.Hc(function(r){var f=_.jS(r,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),I=f.elRefCallback;r=f.iconWiz;var C=f.assetWiz,Y=f.assetType,V=f.titleWiz,S=f.leadingActionHeaderWiz,h=f.trailingActionHeaderWiz,w=f.headerPosition,n=f.contentWiz,d=f.buttonLayout,z=f.buttonStyle,g=f.primaryButtonWiz,X=f.secondaryButtonWiz,P=f.contentAlignment,W=f.isFullscreen,m=f.width,v=f.maxHeight,O=f.isHeaderWizDefined,
k=f.headerWiz,Z=f.isFooterWizDefined,Cw=f.footerWiz;f=_.yy(function(vu){I==null||I(vu)});
var rR=C?function(){return C({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,EP=g?function(){var vu={};
return g({buttonOverrides:function(){return{style:(z==null?void 0:z())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.qd((vu["yt-spec-dialog-layout__dialog-layout-button"]=!0,vu["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(d==null?void 0:d())===0||(d==null?void 0:d())===2},vu))})}:void 0,Pu=X?function(){var vu={};
return X({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.qd((vu["yt-spec-dialog-layout__dialog-layout-button"]=!0,vu["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(d==null?void 0:d())===0||(d==null?void 0:d())===2},vu))})}:void 0,Wu=function(){return(!!V||!!S||!!h)&&w()===0},cu={},OP={},iU={},oR={};
return _.p("dialog-layout",{el:f,class:_.qd((cu["yt-spec-dialog-layout"]=!0,cu["yt-spec-dialog-layout--dialog-layout-fullscreen"]=W,cu["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!W()},cu["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return v()===1},cu["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(Y==null?void 0:Y())===1},cu)),
style:function(){return(m==null?void 0:m())!==void 0?"width: "+m+"px;":""}},r?_.p("div",{class:_.qd((OP["yt-spec-dialog-layout__dialog-layout-icon"]=!0,OP["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!C&&w()===1},OP["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return P()===1},OP))},_.p(r,null)):null,_.p(_.M,{cond:O,
then:function(){return k?_.p("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.p(k,null)):null},
else:function(){return _.p(_.B9,null,_.p(_.M,{cond:Wu,then:function(){return _.p(Gn7,{contentAlignment:P,LeadingActionHeader:S,TrailingActionHeader:h,Title:V,isAboveAsset:!!rR})}}),rR?_.p("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.p(rR,null)):null)}}),_.p("div",{class:_.qd((iU["yt-spec-dialog-layout__dialog-layout-container"]=!0,iU["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(P==null?void 0:P())===1},iU["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!V&&!k||!!rR&&(w==null?void 0:w())===0},iU))},_.p(_.M,{cond:function(){return V&&!k&&(w==null?void 0:w())===1},
then:function(){return _.p(Gn7,{contentAlignment:P,LeadingActionHeader:S,TrailingActionHeader:h,Title:V,isAboveAsset:!1})}}),n?_.p("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.p("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.p(n,null))):null,_.p(_.M,{cond:Z,
then:function(){return Cw?_.p("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.p(Cw,null)):null}}),EP||Pu?_.p(kns,{footerClasses:_.qd((oR["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,oR["yt-spec-dialog-layout__dialog-layout-footer"]=!0,oR["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(d==null?void 0:d())===2},oR["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(d==null?void 0:d())===1},oR)),
PrimaryButton:EP,SecondaryButton:Pu}):null))},"Ag"),Gn7=_.Hc(function(r){var f=_.jS(r,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),I=f.contentAlignment,C=f.LeadingActionHeader;r=f.Title;var Y=f.TrailingActionHeader,V=f.isAboveAsset,S=f.enableLeadingActionHeader;f={};return _.p("div",{class:_.qd((f["yt-spec-dialog-layout__dialog-header-container"]=!0,f["yt-spec-dialog-layout__dialog-header"]=!0,f["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=V,f["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(I==null?void 0:I())===1&&S()},f))},_.p(_.M,{cond:function(){return S()},
then:function(){return C?_.p("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.p(C,null)):null}}),r?_.p("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.p(r,null)):null,Y?_.p("div",null,_.p(Y,null)):null)},"Bg"),kns=_.Hc(function(r){var f=r.footerClasses;
var I=r.PrimaryButton;r=r.SecondaryButton;return _.p("div",{class:f},r?_.p(r,null):null,I?_.p(I,null):null)},"Cg");var qBU=_.Hc(function(r){var f=r.data;return _.p("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.p("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.p(_.X1,{data:function(){return f().avatar}},{avatarViewModel:_.$U})),_.p("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.p(_.wW,{text:function(){return f().title}})),_.p(_.wW,{text:function(){return f().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Dg");var uQ3=_.Hc(function(r){var f=r.data;return _.p("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.p("div",{class:"ytAccessConfirmationViewModelContent"},_.p(_.X1,{data:function(){return f().dualAvatar}},{dualAvatarViewModel:function(I){return _.p("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.p(_.kVX,{data:I.data}))}}),_.p("h2",{class:"ytAccessConfirmationViewModelTitle"},_.p(_.wW,{text:function(){return f().title}})),_.p(_.wW,{text:function(){return f().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Eg");var D8i=_.Hc(function(r){var f=r.data;var I=void 0;r=_.E(_.ld("",void 0,"O14qgc"));var C=r.next().value,Y=r.next().value,V,S=function(){Y("");var n;(n=I)!=null&&n.store.dispatch(_.kI({type:"RESET_COMMAND_MAP"}))};
_.$E(function(){I=new oK6;window.addEventListener("yt-popup-closed",S)});
_.az(function(){if(I&&V!==f().formId){var n=I,d=f();d.formId&&(n.formId=d.formId,n.store.dispatch(_.kI({type:"SET_CURRENT_FORM_ID",payload:{formId:n.formId}})));V=f().formId}});
_.$L(function(){window.removeEventListener("yt-popup-closed",S)});
var h=function(n,d,z){d.key&&z&&d.key!==C()&&(Y(d.key),I&&d.command&&I.store.dispatch(_.kI({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:z,command:d.command}})))},w=function(){if(_.F(f().content,_.JRp))return!(C==null?0:C())};
return _.p("yt-dialog-view-model",{class:_.qd("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.p(ByU,{headerWiz:function(){return _.p("span",{skip:!0},_.p(_.X1,{data:function(){return f().header}},{dialogHeaderViewModel:function(n){return _.p(At1,{data:n.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!f().header},
contentWiz:function(){return _.p("span",{skip:!0},_.p(_.X1,{data:function(){return f().customContent?f().customContent:f().content}},{basicContentViewModel:_.PV7,
createPlaylistDialogFormViewModel:U8B,collaborativePlaylistInviteMessageViewModel:yt3,miniAppScoreChallengeViewModel:Onq,radioButtonGroupViewModel:function(n){return _.p(_.EBY,{data:n.data,selectedKey:C,onSelected:h})},
selectionListItemFormViewModel:Qyd,upsellViewModel:function(n){return _.p(sys,{data:n.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:qBU,installmentAgreementsViewModel:Kc3,accessConfirmationViewModel:uQ3,listViewModel:_.tfT}))},
footerWiz:function(){return _.p("span",{skip:!0},_.p(_.X1,{data:function(){return f().footer}},{panelFooterViewModel:function(n){return _.p(_.Hf,{data:n.data,
disablePadding:!0,disablePrimaryButton:w})},
formPanelFooterViewModel:Zn6,formFooterViewModel:function(n){return _.p(_.Gg1,{data:n.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!f().footer}}))},"Fg");
D8i.idomCompat=!0;_.Kv(D8i,"yt-dialog-view-model",{props:{data:_.jv},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var rC6=_.Hc(function(r){var f=r.data;r={};return _.p("yt-panel-header-view-model",{class:_.qd("yt-panel-header-view-model-wiz",(r["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!f().shouldHideDivider},r["yt-panel-header-view-model-wiz--compact"]=function(){return!!f().subtitle},r))},_.p("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.p(_.M,{cond:function(){return f().title},
then:function(I){return _.p(_.wW,{text:I,className:"yt-panel-header-view-model-wiz__title"})}}),_.p(_.M,{cond:function(){return f().subtitle},
then:function(I){return _.p(_.wW,{text:I,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.p("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.p(_.X1,{data:function(){return f().trailingButtons}},{buttonViewModel:function(I){return _.p(_.LF,{data:I.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Gg");
rC6.idomCompat=!0;var ftB=_.Hc(function(r){var f=_.IC(function(V){var S;if((S=r.skipContentClick)==null?0:S.call(r))return!1;r.onContentWrapperClick(V);return!0}),I,C,Y;
return _.p("div",{class:_.qd("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return r.isAnimating()?"transform: translateY("+r.currentY()+"px);transition: 0.2s":""}},(I=r.header)==null?void 0:I.call(r),_.p("div",{id:r.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.lB({"max-height":(0,_.d6)(r.maxHeightForContentWrapper)}),"on:scroll":zE6(r.onScroll),"on:touchmove":zE6(function(V){return void V.stopPropagation()})},_.p("div",{el:{onRender:r.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":f},(C=r.body)==null?void 0:C.call(r))),(Y=r.footer)==null?void 0:Y.call(r))},"Hg");
ftB.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var It6=_.Hc(function(r){var f=_.JG(r.leadingLabel),I=_.JG(r.trailingLabel),C=_.JG(r.footerButtonType),Y=function(){return f()||I()||r.hasPrimaryButton()||r.hasSecondaryButton()},V={},S=_.qd("yt-spec-bottom-sheet-layout__primary-button",(V["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return C()===0&&r.hasPrimaryButton()},V["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return C()===1&&r.hasPrimaryButton()},V["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return C()===2&&r.hasPrimaryButton()},V["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return C()===3&&r.hasPrimaryButton()},V));
V={};var h=_.qd("yt-spec-bottom-sheet-layout__secondary-button",(V["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return C()===1&&r.hasSecondaryButton()},V["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return C()===2&&r.hasSecondaryButton()},V["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return C()===3&&r.hasPrimaryButton()},V));
return _.p(_.M,{cond:r.hasFooterOverride,then:function(){var w;return _.p(_.B9,null,(w=r.footerOverride)==null?void 0:w.call(r))},
else:function(){return _.p(_.M,{cond:Y,then:function(){return _.p("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.p(_.M,{cond:function(){return f()||I()},
then:function(){var w={};return _.p("div",{class:_.qd("yt-spec-bottom-sheet-layout__footer-label-wrapper",(w["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!r.hasPrimaryButton()},w))},_.p(_.M,{cond:f,
then:function(){return _.p("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},f)}}),_.p(_.M,{cond:I,
then:function(){return _.p("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},I)}}))}}),_.p(_.M,{cond:function(){return r.hasPrimaryButton()||r.hasSecondaryButton()},
then:function(){var w={};return _.p("div",{class:_.qd("yt-spec-bottom-sheet-layout__footer-button-wrapper",(w["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.NyU,w))},_.p(_.M,{cond:function(){return r.hasSecondaryButton()&&C()!==0},
then:function(){var n;return _.p("div",{class:h},(n=r.secondaryButton)==null?void 0:n.call(r))}}),_.p(_.M,{cond:r.hasPrimaryButton,
then:function(){var n;return _.p("div",{class:S},(n=r.primaryButton)==null?void 0:n.call(r))}}))}}))}})}})},"Ig");
It6.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var CZ3=_.Hc(function(r){var f=_.JG(r.title),I=_.JG(r.subtitle),C=_.IC(function(S){var h;(h=r.touchstart)==null||h.call(r,S);return!1}),Y=_.IC(function(S){var h;
(h=r.touchmove)==null||h.call(r,S);return!1}),V=_.IC(function(S){var h;
(h=r.touchend)==null||h.call(r,S);return!1});
return _.p("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:r.headerId,"on:touchstart":C,"on:touchmove":Y,"on:touchend":V},_.p("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.p(_.M,{cond:r.hasHeaderOverride,then:function(){var S;return _.p(_.B9,null,(S=r.headerOverride)==null?void 0:S.call(r))},
else:function(){var S={};return _.p("div",{class:_.qd((S["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,S["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=f,S))},_.p("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.p(_.M,{cond:f,then:function(){return _.p(_.B9,null,_.p("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},f),_.p(_.M,{cond:I,then:function(){return _.p("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
I)}}))}})),_.p(_.M,{cond:function(){return f()&&r.hasActionHeader()},
then:function(){var h;return _.p("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(h=r.actionHeader)==null?void 0:h.call(r))}}))}}))},"Jg");
CZ3.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.Hc(function(r){function f(rR){if(!v&&typeof MutationObserver!=="undefined"){var EP={childList:!0};"MutationObserver"in window&&(v=new MutationObserver(I.bind(void 0,rR)),v.observe(rR,EP))}}
function I(rR){typeof v!=="undefined"&&(O["content-wrapper"]===void 0&&(O["content-wrapper"]=rR.children[0].clientHeight),X(O["content-wrapper"]),g()>P()||W(g()))}
function C(){z(window.innerHeight);g()>P()||W(g());k.isFullScreen[0]()&&g()>P()?Z().dispatch("Snap To Full Screen",{maxHeight:m()}):Z().dispatch("Snap To Neutral Position",{maxHeight:P()})}
function Y(rR){document.body.style.overscrollBehavior="none";rR.preventDefault();Z().dispatch("Touch Start",{event:rR})}
function V(rR){rR.preventDefault();Z().dispatch("Touch Move",{event:rR,contentScrollable:g()>P(),fullContentWrapperHeight:m(),contentWrapperHeight:P(),contentHeightMap:O,contentWrapperId:"content-wrapper",header:gOY(r),footer:gOY(r)})}
function S(){document.body.style.overscrollBehavior="";k.isFullScreen[0]()?k.currentY[0]()>=60?Z().dispatch("Snap To Neutral Position",{maxHeight:P()}):Z().dispatch("Snap To Full Screen",{maxHeight:m()}):k.currentY[0]()>=60?h():k.currentY[0]()<=-60&&g()>P()?Z().dispatch("Snap To Full Screen",{maxHeight:m()}):Z().dispatch("Snap To Neutral Position",{maxHeight:P()})}
function h(){Z().dispatch("Close Sheet",{clientHeight:d(),maxHeight:0});setTimeout(function(){Ml3()},250)}
var w=_.E(_.ld(window.innerHeight,void 0,"NWeFS")),n=w.next().value;w=w.next().value;var d=n,z=w;w=_.E(_.ld(0,void 0,"oxfm4"));n=w.next().value;w=w.next().value;var g=n,X=w;w=_.E(_.YZ(function(){var rR=gOY(r);return.6*d()-pti(rR)-nO1(rR)}));
n=w.next().value;w=w.next().value;var P=n,W=w,m=function(){var rR=gOY(r);return d()-pti(rR)-nO1(rR)-24-24},v=null,O={},k={initialY:_.ld(0,void 0,"cYBE5c"),
currentY:_.ld(0,void 0,"RndqHc"),isAnimating:_.ld(!1,void 0,"vO9DVd"),isFullScreen:_.ld(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.YZ(P)},Z=function(){var rR=null;return function(){if(!rR){var EP={initialY:k.initialY[0](),currentY:k.currentY[0](),isAnimating:k.isAnimating[0](),isFullScreen:k.isFullScreen[0](),maxHeightForContentWrapper:k.maxHeightForContentWrapper[0]()};rR=dGq(EP)}return rR}}();
_.$E(function(){window.addEventListener("resize",C);Z().subscribe(function(rR){k.initialY[1](rR.initialY);k.currentY[1](rR.currentY);k.isAnimating[1](rR.isAnimating);k.isFullScreen[1](rR.isFullScreen);k.maxHeightForContentWrapper[1](rR.maxHeightForContentWrapper)})});
_.$L(function(){window.removeEventListener("resize",C);v&&(v.disconnect(),v=null)});
var Cw=_.qd({"bottom-sheet-content-without-icon":function(){var rR;return!((rR=r.shouldShowIcons)==null?0:rR.call(r))}});
return _.p("bottom-sheet-layout",null,_.p(ftB,{contentWrapperId:"content-wrapper",isAnimating:function(){return k.isAnimating[0]()},
currentY:function(){return k.currentY[0]()},
maxHeightForContentWrapper:function(){return k.maxHeightForContentWrapper[0]()},
shouldShowIcons:r.shouldShowIcons,skipContentClick:r.skipContentClick,onScroll:function(){var rR=document.getElementById("header-wrapper"),EP=document.getElementById("content-wrapper");if(rR&&EP){var Pu={};Pu=(Pu["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,Pu["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,Pu);rR.className=EP.scrollTop>1?_.D5(Pu):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:Ml3,contentWrapperEl:function(rR){f(rR);requestAnimationFrame(function(){I(rR)})},
header:function(){return _.p(CZ3,{touchstart:Y,touchmove:V,touchend:S,title:r.headerTitle,subtitle:r.headerSubtitle,headerId:"header-wrapper",headerOverride:r.headerFn,hasHeaderOverride:r.hasHeaderFn,actionHeader:r.headerActionHeader,hasActionHeader:r.hasHeaderActionHeader})},
footer:function(){return _.p(It6,{footerButtonType:r.footerButtonType,leadingLabel:r.footerLeadingLabel,trailingLabel:r.footerTrailingLabel,primaryButton:r.footerPrimaryButton,hasPrimaryButton:r.hasFooterPrimaryButton,secondaryButton:r.footerSecondaryButton,hasSecondaryButton:r.hasFooterSecondaryButton,footerOverride:r.footerFn,hasFooterOverride:r.hasFooterFn})},
body:function(){return _.p(_.M,{cond:r.hasContentFn,then:function(){var rR;return _.p("div",{class:Cw},(rR=r.contentFn)==null?void 0:rR.call(r))}})}}))},"Kg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var Y4Y=_.Hc(function(r){var f=_.a().resolve(_.z7),I=_.IC(function(){return void f.closeSheet()});
return _.p("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":I},_.p(_.M,{cond:function(){return!!r.header},
then:function(){return _.p("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},r.header())}}),_.p(_.M,{cond:function(){return!!r.content},
then:function(){return _.p("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},r.content())}}),_.p(_.M,{cond:function(){return!!r.footer},
then:function(){return _.p("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},r.footer())}}))},"Lg");
Y4Y.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var lt6=_.Hc(function(r){r=r.data;var f={};return _.p("yt-sheet-view-model",{class:_.qd("yt-sheet-view-model-wiz",(f["yt-sheet-view-model-wiz--contextual"]=!0,f["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.N("web_disable_backdrop_filter"),f))},_.p(_.M,{cond:r,then:function(I){return _.p(Y4Y,{header:function(){return _.p(_.X1,{data:function(){return I().header}},{panelHeaderViewModel:rC6})},
content:function(){return _.p(_.X1,{data:function(){return I().content}},{listViewModel:function(C){return _.p(_.tfT,{data:C.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:sys,miniAppScoreChallengeViewModel:Onq})},
footer:function(){return _.p(_.X1,{data:function(){return I().footer}},{panelFooterViewModel:_.Hf})}})}}))},"Mg");
lt6.idomCompat=!0;_.Kv(lt6,"yt-sheet-view-model",{props:{data:_.jv}});var Eyi=_.Hc(function(r){var f=function(){var I;return(I=r.data().enableDebuggingFeatures)!=null?I:!1};
return _.p("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.p(_.pz,{each:function(){var I;return(I=r.data().stickers)!=null?I:[]}},function(I){return _.p(Vt6,{data:function(){return I},
debugMode:f})}))},"Ng"),Vt6=_.Hc(function(r){var f=_.jS(r,{debugMode:!1}).debugMode,I=_.JG(function(){var w;
return(w=r.data().region)==null?void 0:w.w},0),C=_.JG(function(){var w;
return(w=r.data().region)==null?void 0:w.h},0),Y=_.JG(function(){var w;
return(w=r.data().region)==null?void 0:w.x},0),V=_.JG(function(){var w;
return(w=r.data().region)==null?void 0:w.y},0),S=_.IC(function(){var w=r.data().onTap;
w&&_.F2(w)}),h={};
return _.p("div",{class:_.qd("ytStoriesStickerLayerViewModelSticker",(h.ytStoriesStickerLayerViewModelDebugMode=f,h)),style:_.lB({width:function(){return 100*I()+"%"},
height:function(){return 100*C()+"%"},
left:function(){return 100*Y()+"%"},
top:function(){return 100*V()+"%"},
"flex-direction":function(){return ahi(r.data().flexDirection)},
"justify-content":function(){return Xtd(r.data().justifyContent)},
"align-items":function(){return N_3(r.data().alignItems)}}),
"on:click":S},_.p(_.X1,{data:function(){return r.data().button||r.data().toggleButton}},{buttonViewModel:function(w){return _.p(_.LF,{data:w.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(w){return _.p(_.F1,{data:w.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Og");var xF2=_.Hc(function(r){var f=function(){return r.data()},I=_.JG(function(){return f().backgroundColor},0),C=_.JG(function(){return f().actionButtons},[]),Y=_.JG(function(){return f().stickerLayer},{}),V={},S=function(){var w,n;
return{animationRef:V,animationConfig:{autoplay:!1,loop:!1,path:(n=(w=f().foregroundAnimation)==null?void 0:w.url)!=null?n:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){r.navigateToNextItemOnLottieComplete()}}}},h=function(){var w,n,d,z,g,X,P,W;
return{animationConfig:{autoplay:(X=(w=f().backgroundAnimation)==null?void 0:(n=w.settings)==null?void 0:n.autoplay)!=null?X:!1,loop:(P=(d=f().backgroundAnimation)==null?void 0:(z=d.settings)==null?void 0:z.loop)!=null?P:!1,path:(W=(g=f().backgroundAnimation)==null?void 0:g.url)!=null?W:"",name:"stories_item_background_animation"}}};
_.az(function(){if(r.isVisible()){var w;(w=V.lottieEl)==null||w.play()}else{var n;(n=V.lottieEl)==null||n.stop()}});
return _.p("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.lB({"background-color":function(){return _.g_(I())+";"}})},_.p("div",{class:"ytStoriesItemViewModelAssetContent"},_.p(_.M,{cond:function(){return!!f().backgroundAnimation},
then:function(){return _.p(_.uT,{data:h,animationName:function(){return h().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.p(_.M,{cond:function(){return!!f().backgroundImage},
then:function(){return _.p(_.J3,{data:function(){return f().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.p(_.M,{cond:function(){return!!f().foregroundAnimation},
then:function(){return _.p(_.uT,{data:S,animationName:function(){return S().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.p(_.M,{cond:function(){return!!f().foregroundImage},
then:function(){return _.p(_.J3,{data:function(){return f().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.p("div",{class:"ytStoriesItemViewModelTopShadow"}),_.p(_.X1,{data:function(){return Y()}},{storiesStickerLayerViewModel:Eyi})),_.p("div",{class:"ytStoriesItemViewModelBottomShadow"},_.p("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.IC(r.pauseAutoNavigation)},_.p(_.pz,{each:C},function(w){return _.p(S4Y,{data:function(){return w}})}))))},"Pg"),S4Y=_.Hc(function(r){var f={};
return _.p("div",{class:_.qd("ytStoriesItemViewModelActionButton",(f.ytStoriesItemViewModelStretchedActionButton=function(){return r.data().size==="STORIES_BUTTON_SIZE_STRETCH"},f))},_.p(_.X1,{data:function(){return r.data().button}},{buttonViewModel:function(I){return _.p(_.LF,{data:I.data,
className:"ytStoriesItemViewModelButton"})}}))},"Qg");_.Kv(_.Hc(function(r){var f=_.E(_.YZ(function(){var O;return(O=r.data().startIndex)!=null?O:0})),I=f.next().value,C=f.next().value;
f=_.E(_.ld(!1,void 0,"klmjc"));var Y=f.next().value,V=f.next().value,S=function(){var O;return(O=r.data().storyItems)!=null?O:[]},h=function(){return r.data().dismissButton},w=function(){var O;
return _.F((O=_.F(h(),_.NI))==null?void 0:O.onTap,_.gF)},n=_.yy(),d,z=function(){var O;
(O=d)==null||O.cancel();d=g(I()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});d.onfinish=function(){g(I()).style.width="100%";var k=_.F(S()[I()],p_s),Z,Cw;k!=null&&k.foregroundAnimation&&((k==null?0:(Z=k.foregroundAnimation)==null?0:Z.url)||(k==null?0:(Cw=k.foregroundAnimation)==null?0:Cw.payload))||(I()!==S().length-1?(C(I()+1),z()):w()&&_.X2(w()))}},g=function(O){return n.value.children[O].children[0]},X=function(){for(var O=0;O<I();O++)g(O).style.width="100%"};
f=_.IC(function(){Y()?V(!1):(I()===S().length-1&&w()&&_.X2(w()),g(I()).style.width="100%",I()!==S().length-1&&(C(I()+1),z()))});
var P=_.IC(function(){Y()?V(!1):(g(I()).style.width="0%",I()!==0?C(I()-1):C(I()),z())}),W=function(){V(!0)},m=function(){g(I()).style.width="100%";
I()!==S().length-1?(C(I()+1),z()):w()&&_.X2(w())},v=_.IC(function(){var O;
(O=d)==null||O.pause()});
_.az(function(){if(Y()){var O;(O=d)==null||O.pause()}else{var k;(k=d)==null||k.play()}});
_.az(function(){X();I()===r.data().startIndex&&z()});
_.$E(function(){X();z()});
return _.p("yt-stories-viewer-view-model",{class:_.qd("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.p("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.p("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":P,"on:mousedown":v}),_.p("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":f,"on:mousedown":v})),_.p(_.X1,{data:S},{storiesItemViewModel:function(O,k){var Z=O.data;return _.p(_.M,{cond:function(){return Math.abs(k()-
I())<=1},
then:function(){var Cw={};return _.p("div",{class:_.qd("ytStoriesViewerViewModelStoryItem",(Cw.ytStoriesViewerViewModelHiddenStoryItem=function(){return k()!==I()},Cw))},_.p(xF2,{data:Z,
pauseAutoNavigation:W,navigateToNextItemOnLottieComplete:m,isVisible:function(){return k()===I()}}))}})}}),_.p("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:n},_.p(_.pz,{each:S},function(){return _.p("div",{class:"ytStoriesViewerViewModelProgressBar"},_.p("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.p("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.p(_.X1,{data:h},{buttonViewModel:_.LF})))},"Rg"),"yt-stories-viewer-view-model",{props:{data:_.jv}});_.Kv(_.Hc(function(r){var f=r.data;var I=_.yy(),C=[];return _.p("yt-gen-ai-feedback-form-view-model",{el:I,class:"ytGenAiFeedbackFormViewModelHost"},_.p(_.wW,{text:function(){return f().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.p("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.p(_.X1,{data:function(){return f().feedbackChips}},{toggleButtonViewModel:function(Y){var V=Y.data;
return _.p(_.F1,{data:V,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(S){var h=V();h=_.F(h,_.$4);h=_.F(h==null?void 0:h.defaultButtonViewModel,_.NI).trackingParams;S?C.push(h):(S=C.indexOf(h),S>-1&&C.splice(S,1))}})}})),_.p(_.wW,{text:function(){return f().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.p("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.p(_.X1,{data:function(){return f().submitButton}},{buttonViewModel:function(Y){return _.p(_.LF,{data:Y.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){$Gp(I.value,C,f().uniqueId)}})}}),_.p(_.X1,{data:function(){return f().moreFeedbackButton}},{buttonViewModel:function(Y){return _.p(_.LF,{data:Y.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Sg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.jv},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var iS=function(){return _.y.apply(this,arguments)||this};
_.t(iS,_.y);iS.prototype.created=function(){uiV(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(JiB);var r=_.a().resolve(_.lUs);r&&(r.container=this.ytPopupContainerBehavior);if(r=_.a().resolve(_.z7))r.container=this.ytPopupContainerBehavior;if(r=_.a().resolve(_.MV)){var f=this.ytPopupContainerBehavior;r.containerWasInjected?_.t7(Error("bj")):r.container=f}};
iS.prototype.ensurePopupBelowPlayer=function(r,f){var I=_.a().resolve(_.ZY(_.y2));if(!I||!I.isOnWatch()||!_.sk())return!1;I=I.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.Sl().height>I+this.getPopupHeight(r,f)?(r.style.top="auto",r.style.bottom="0px"):(r.style.top=I+"px",r.style.bottom="auto");return!0};
iS.prototype.getPopupHeight=function(r,f){f&&(r.cachedPopupHeight=0);if(!r.cachedPopupHeight){f=0;var I=r.clientHeight,C=window.getComputedStyle(r);f+=parseInt(C.marginTop,10);f+=parseInt(C.marginBottom,10);r.cachedPopupHeight=I+f}return r.cachedPopupHeight};
iS.prototype.getElement=function(r){return document.createElement(r)};
_.A([_.J(IA3.YtPopupContainerBehavior),_.B("design:type",Object)],iS.prototype,"ytPopupContainerBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],iS.prototype,"ytComponentBehavior",void 0);iS=_.A([_.U({disableElementRegistration:!0,is:"ytd-popup-container"})],iS);
_.Q(iS,"ytd-popup-container",function(){if(A2s!==void 0)return A2s;var r=document.createElement("template");_.c(r,"\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");r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);return A2s=r},{mode:1});var hfY;var wms={};wms.YtLogYpcFlowCommandsBehavior=[_.o_.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(r){_.F(r,eqp)&&(r=_.F(r,eqp))&&(r.serializedTransactionFlowLoggingParams?_.KBl(r.serializedTransactionFlowLoggingParams):r.serializedYpcCancelFlowLoggingParams?(r=r.serializedYpcCancelFlowLoggingParams)&&_.P0("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",r):r.serializedYpcResumeFlowLoggingParams?(r=r.serializedYpcResumeFlowLoggingParams)&&_.P0("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",r):r.serializedYpcPauseFlowLoggingParams?(r=r.serializedYpcPauseFlowLoggingParams)&&
_.P0("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",r):r.serializedYpcRefundFlowLoggingParams?(r=r.serializedYpcRefundFlowLoggingParams)&&ONd("YPC_EVENT_TYPE_START",r):r.serializedYpcDeactivateFlowLoggingParams?(r=r.serializedYpcDeactivateFlowLoggingParams)&&_.P0("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",r):r.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(r=r.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.P0("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",r))},
handleLogYpcFlowDismiss_:function(r){_.F(r,mh7)&&(r=_.F(r,mh7),r.serializedTransactionFlowLoggingParams?_.yWl(r.serializedTransactionFlowLoggingParams):r.serializedYpcCancelFlowLoggingParams?(r=r.serializedYpcCancelFlowLoggingParams)&&_.P0("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",r):r.serializedYpcResumeFlowLoggingParams?(r=r.serializedYpcResumeFlowLoggingParams)&&_.P0("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",r):r.serializedYpcPauseFlowLoggingParams?(r=
r.serializedYpcPauseFlowLoggingParams)&&_.P0("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",r):r.serializedYpcRefundFlowLoggingParams&&(r=r.serializedYpcRefundFlowLoggingParams)&&ONd("YPC_EVENT_TYPE_CANCEL",r))}}];var bsq={};bsq.YtCancelRecurrenceBehavior=[_.tK.YtComponentBehavior,_.VYV,{attached:function(){var r=this;ivp(this,function(f,I){return r.ypcCancelRecurrenceHandler(f,I)})},
ypcCancelRecurrenceHandler:function(r,f){var I=this;if(!f||!f.ypcCancelRecurrenceEndpoint)return!1;if(!f.ypcCancelRecurrenceEndpoint.params)return _.eH(Error("tl")),!0;_.QU(this.hostElement);var C=_.Wl.instance,Y=_.a().resolve(_.ZY(_.bA));C&&_.LQ(C,f)?_.mC(C,f).then(function(V){I.ypcCancelRecurrenceSuccess_(r,f,{data:V})},function(V){I.ypcCancelRecurrenceFailure_(r,f,V)}).thenCatch(function(){_.eH(Error("ul"))}):Y?Y.requestDataForServiceEndpoint(f).then(function(V){I.ypcCancelRecurrenceSuccess_(r,
f,V)},function(V){I.ypcCancelRecurrenceFailure_(r,f,V)}).thenCatch(function(){_.eH(Error("ul"))}):_.eH(Error("vl"));
return!0},
ypcCancelRecurrenceSuccess_:function(r,f,I){_.AH(this.hostElement);I.data||(I={data:I});I.data&&I.data.actions&&_.rX(this.hostElement,I.data.actions,this.hostElement);I.data.messageRenderer?Q5s(f.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(f=f.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.P0("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",f);_.kA(r,"yt-service-request-completed",I)},
ypcCancelRecurrenceFailure_:function(r,f,I){_.AH(this.hostElement);Q5s(f.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.kA(r,"yt-service-request-error",{error:I,params:[r,f]})}}];var pm3=function(r,f){_.fw.call(this,f)};
_.t(pm3,VOs);var ny7={};ny7.YtCompleteTransactionBehavior=[_.tK.YtComponentBehavior,_.VYV,{attached:function(){var r=this;ivp(this,function(f,I){return r.ypcCompleteTransactionHandler(f,I)})},
completeTransaction:function(r,f){var I=this;f={payments_payload:window.btoa(f.integratorData),buybucket_params:r.data.buybucketParams,offer_params:r.data.offerParams};var C=_.a().resolve(_.bA),Y=r.data.completeTransactionEndpoint,V=this.get("ypcCompleteTransactionEndpoint.actions",Y);V&&_.rX(this.hostElement,V,this.hostElement);return(V=_.Wl.instance)&&_.LQ(V,Y)?_.mC(V,Y,f).then(function(S){return!S||(S==null?0:S.error)?(S=I.get("data.serializedTransactionFlowLoggingParams",r),_.h3(new ke("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
S))):{data:S}}).then(function(S){return I.handleCompleteTransactionSuccess_(S,r)},function(){return I.handleCompleteTransactionFailure_(r)}):C.requestDataForServiceEndpoint(Y,f).then(function(S){return I.handleCompleteTransactionSuccess_(S,r)},function(){return I.handleCompleteTransactionFailure_(r)})},
handleCompleteTransactionSuccess_:function(r,f){r.data||(r={data:r});if(r.data.messageRenderer)return _.h3(new pm3(r.data.messageRenderer));if(r.data.trackingParams){var I=_.t1(),C=_.Pj();I&&C&&_.mw(I,C,_.VH(r.data.trackingParams))}f=this.get("data.serializedTransactionFlowLoggingParams",f);ol7(f);return _.fe(r)},
handleCompleteTransactionFailure_:function(r){r=this.get("data.serializedTransactionFlowLoggingParams",r);_.m4("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",r);return _.h3(new ke("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",r))},
ypcCompleteTransactionHandler:function(r,f){var I=this;if(!f.ypcCompleteTransactionEndpoint)return!1;if(!f.ypcCompleteTransactionEndpoint.transactionParams)return _.eH(Error("wl")),!0;f.ypcCompleteTransactionEndpoint&&f.ypcCompleteTransactionEndpoint.gtmData&&_.wQ(f.ypcCompleteTransactionEndpoint.gtmData);var C=_.a().resolve(_.ZY(_.bA));if(C){_.QU(this.hostElement);var Y=_.Wl.instance;Y&&_.LQ(Y,f)?_.mC(Y,f).then(function(V){return!V||(V==null?0:V.error)?(V=I.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
f),_.h3(new ke("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",V))):{data:V}}).then(function(V){_.kA(r,"yt-service-request-completed");
I.ypcCompleteTransactionSuccess_(f,V)},function(){return I.ypcCompleteTransactionFailure_(f)}):C.requestDataForServiceEndpoint(f).then(function(V){_.kA(r,"yt-service-request-completed");
I.ypcCompleteTransactionSuccess_(f,V)},function(){return I.ypcCompleteTransactionFailure_(f)})}return!0},
ypcCompleteTransactionSuccess_:function(r,f){_.AH(this.hostElement);f.data||(f={data:f});_.Bj(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);f.data.messageRenderer||f.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(r):(_.wQ('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",r));f.data.actions&&(r=q_i(f.data.actions),f=ucY(f.data.actions),r.length&&_.Do(this.hostElement,
r),f.length&&_.rX(this.hostElement,f,this.hostElement))},
ypcCompleteTransactionFailure_:function(r){_.AH(this.hostElement);_.Bj(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",r,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(r,f,I){if(f=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",f))f={serializedTransactionFlowLoggingParams:f},I&&(f.errorType=I),_.NW(r,f),_.$l()}}];var dFV={};dFV.YtEndpointHandlerWithYpcBehavior=[_.VYV,_.o_.YtActionHandlerBehavior,[{openWalletDialog:function(r,f,I,C,Y,V,S){var h=this,w=_.eu();f=f.replace(/-/g,"+").replace(/_/g,"/");var n=_.xI().get("hl");_.RNB(_.CG(_.el),f,w.resolve,Y,function(d){V&&V();w.reject(d)},n,function(d){return h.onServerBackendAnalyticEvent_(r,I,d)},this.onDialogClose_.bind(this),C,S);
return w.promise},
openFixFlowDialog:function(r,f,I,C){r=r.replace(/-/g,"+").replace(/_/g,"/");_.CG(_.el).openFixFlowDialog(r,f,I,C)},
onDialogClose_:function(){_.Bj(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(r,f,I){r.fire("yt-commerce-action-init-done");f&&_.Do(this.hostElement,[f,{backend_analytics:I}])}}],
_.ug.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(r,f){r=this.get("data.nativeFlowEndpoint",f);f=this.get("data.fallbackEndpoint",f);r?_.Do(this.hostElement,[r]):f&&_.kA(this.hostElement,"yt-navigate",{endpoint:f})}}],
bsq.YtCancelRecurrenceBehavior,ny7.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 r=this;ivp(this,function(f,I,C){return r.handleYPCEndpoint(f,I,C)});
this.ypcRegisterActionMapJobId_=_.dp(_.F_,function(){r.registerActionMap(r.buyFlowActionMap_)})},
detached:function(){var r=this;_.F_.cancelJob(this.ypcRegisterActionMapJobId_);_.dp(_.F_,function(){r.unregisterActionMap(r.buyFlowActionMap_)})},
handleYPCEndpoint:function(r,f,I){var C=f.ypcGetCartEndpoint;if(C){_.al("commerce_transaction");var Y=C.gtmId;Y&&_.hK(Y);(C=C.gtmData)&&_.wQ(C)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",f)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(r,f),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",f)!=null?(this.handleYPCFixInstrumentEndpoint_(r,f),!0):f.ypcPauseSubscriptionCommand?(eE6(this.hostElement,r,f,I),
!0):f.ypcResumeSubscriptionCommand?(HJB(this.hostElement,r,f),!0):f.getPaymentInstrumentsParamsCommand?(W4d(this.hostElement,r,f),!0):f.ypcHandleTransactionEndpoint?(T_Y(this.hostElement,r,f,I),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(r,f){var I=this;_.Xc("ttcr",void 0,"commerce_transaction");f=f.ypcGetCartEndpoint;var C=f.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,Y=C.encryptedPurchaseParams,V=C.serializedTransactionFlowLoggingParams,S=C.serializedPaymentsClientParams,h=this.createGetCartResponseFromParams_(C,f.offerParams,V);this.changeButtonState(r,!0);_.XZ(this.openWalletDialog(r,Y,C.ypcLogWalletAnalyticDataEndpoint,V,function(){I.changeButtonState(r,!1)},function(){I.changeButtonState(r,
!1)},S).then(function(w){return I.handleBuyFlowCompleteCallback_(r,h,w)},function(){return I.handleOnLoadError(h)}).then(function(w){return void I.handlePostPurchaseSuccess_(r,h,w)},function(w){return void I.handlePostPurchaseError_(w)}),function(){I.changeButtonState(r,!1);
r instanceof Element&&_.kA(r,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(r,f,I){var C=r.completeTransactionEndpoint,Y=r.handleTransactionEndpoint;f={data:{offerParams:window.btoa(f),serializedTransactionFlowLoggingParams:I}};Y?f.data.handleTransactionEndpoint=Y:f.data.completeTransactionEndpoint=C;r.onCartDismissCommand&&(f.data.onCartDismissCommand=r.onCartDismissCommand);return f},
onGetCartServiceRequestCompleted_:function(r,f){var I=this,C=r.target;if(f&&f.data&&f.data.messageRenderer)_.AH(this.hostElement),this.handleMessageRenderer_(f.data.messageRenderer),this.changeButtonState(C,!1);else{var Y=this.get("data.encryptedPurchaseParams",f),V=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",f),S=this.get("data.ypcLogWalletAnalyticDataEndpoint",f),h=this.get("data.serializedPaymentsClientParams",f),w=this.getLoggingParams_(f);if(w||Y||V)r.stopPropagation(),_.Xc("ttcr",
void 0,"commerce_transaction"),Y||_.AH(this.hostElement),this.changeButtonState(C,!1),V?_.Bj(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Lz("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:V}}},this]):Y&&(this.changeButtonState(C,!0),r=null,r=this.openWalletDialog(C,Y,S,w,function(){_.AH(I.hostElement);I.changeButtonState(C,!1)},function(){_.AH(I.hostElement);
I.changeButtonState(C,!1)},h),_.XZ(r.then(function(n){return I.handleBuyFlowCompleteCallback_(C,f,n)},function(){return I.handleOnLoadError(f)}).then(function(n){return I.handlePostPurchaseSuccess_(C,f,n)},function(n){return I.handlePostPurchaseError_(n)}),function(){I.changeButtonState(C,!1);
_.kA(C,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(r,f){f&&f.endpoint&&f.endpoint.ypcGetCartEndpoint&&!f.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",f.endpoint.ypcGetCartEndpoint)&&_.rX(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",f.endpoint.ypcGetCartEndpoint)],r.target),_.QU(this.hostElement),this.changeButtonState(r.target,!0))},
onServiceRequestError_:function(r,f){if(f&&f.params&&f.params.length){f=_.E(f.params);for(var I=f.next();!I.done;I=f.next())if((I=I.value)&&I.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",I.ypcGetCartEndpoint)&&_.rX(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",I.ypcGetCartEndpoint)],r.target);_.AH(this.hostElement);this.changeButtonState(r.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(r,f,I){var C=I.integratorData;return C==null||C===""||I.error!=null?(C=this.getLoggingParams_(f),String(I.error)==="-1"?(f.data.onCartDismissCommand&&_.rX(this.hostElement,[f.data.onCartDismissCommand],r),_.h3(new ke("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",C,!0))):_.h3(new ke("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",C))):f.data.handleTransactionEndpoint?cN6(this.hostElement,f.data.handleTransactionEndpoint,{payments_payload:C,funds_guarantee_callback_client_data:I.integratorClientCallbackData}):
this.completeTransaction(f,I)},
handlePostPurchaseSuccess_:function(r,f,I){f=I.data;var C=!1,Y,V;if(f&&((Y=f.command)==null?0:(V=Y.commandExecutorCommand)==null?0:V.commands)){var S,h;Y=(S=f.command)==null?void 0:(h=S.commandExecutorCommand)==null?void 0:h.commands;for(S=0;S<Y.length;S++)if(_.F(Y[S],_.IGs)){C=!0;break}}C||(f&&f.gtmDatas&&f.gtmDatas.length?_.wQ(f.gtmDatas[0]):_.wQ('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));I.data&&I.data.actions&&(f=q_i(I.data.actions),I=ucY(I.data.actions),f.length&&
_.Do(this.hostElement,f),I.length&&_.rX(this.hostElement,I,r))},
handlePostPurchaseError_:function(r){r&&r.payload&&r.payload.isUserDismiss||_.Fo(Error("yl"))},
handleOnLoadError:function(r){r=this.getLoggingParams_(r);return _.h3(new ke("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",r))},
getLoggingParams_:function(r){return this.get("data.serializedTransactionFlowLoggingParams",r)},
handleMessageRenderer_:function(r){var f=_.Tg(r,"renderer"),I=_.Lz("openPopupConfig");f==="confirmDialogRenderer"&&I&&_.Bj(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:I.popupTypeMap[f],popup:r}},this])},
handleYPCFixInstrumentEndpoint_:function(r,f){var I=this,C=f.ypcFixInstrumentEndpoint;f=C.encryptedFixInstrumentParameters;this.logFixFopEvent_(C,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(r,!0);this.openFixFlowDialog(f,function(Y,V){I.onFixFlowCompleteCallback_(C,Y,V)},function(){return I.changeButtonState(r,!1)},function(){I.changeButtonState(r,!1);
I.logFixFopEvent_(C,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(r,f,I){var C=_.jH("payments.business.integration.scenario.FixInstrument");if(f==C.IntegratorCallbackType.ON_COMPLETE){f="FIX_FOP_EVENT_TYPE_CANCEL";var Y=null;I.error!=null?I.error!=C.OnCompleteCallbackError.USER_CANCELLED&&(_.rX(this.hostElement,[r.errorAction],this.hostElement),f="FIX_FOP_EVENT_TYPE_FAILURE",Y="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.rX(this.hostElement,[r.successAction],this.hostElement),f="FIX_FOP_EVENT_TYPE_SUCCESS");_.rX(this.hostElement,[r.onFinishAction],
this.hostElement);this.logFixFopEvent_(r,f,Y)}},
logFixFopEvent_:function(r,f,I){(r=r.serializedFixFopLoggingParams)?(f={eventType:f,serializedFixFopLoggingParams:r},I!=null&&(f.errorType=I),_.NW("fixFopFlow",f),_.$l()):_.Fo(Error("zl"))},
changeButtonState:function(r,f){_.N("enable_ypc_spinners")&&r&&(r.is==="yt-button-renderer"||r.is==="ytd-button-renderer")&&(r.disabled=f)}}];var zfU=function(r){this.JSC$28611_clientRoot=r;this.feedbackCollectorActionMap={"yt-help-dialog-requested":REU,"yt-feedback-dialog-requested":iJY,"yt-signal-action-help":vOi,"yt-signal-action-send-feedback":K4U,"yt-send-feedback-action":UGY,"yt-user-feedback-endpoint":sbs};_.R5(_.iz.getInstance(),this.feedbackCollectorActionMap,this.JSC$28611_clientRoot)},Mtp;var gyp=function(r){this.JSC$28616_clientRoot=r;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":OJi.bind(null,this.JSC$28616_clientRoot),"yt-signal-action-delete-all-downloads":Qb7,"yt-signal-action-delete-download":ANY,"yt-signal-action-delete-playlist-download":GFY,"yt-signal-action-install-pwa":rGi,"yt-signal-action-refresh-downloads":udB,"yt-offline-video-endpoint":I1U,"yt-offline-playlist-endpoint":Y$Y,"yt-update-local-app-setting-command":VS3,"yt-offline-orchestration-action-command":S$3,
"yt-signal-action-undo-delete-download":B_Y,"yt-local-watch-history-command":wcY};_.R5(_.iz.getInstance(),this.downloadManagerActionMap,this.JSC$28616_clientRoot);_.TF.instance=new _.TF},atq;var R2=function(){var r=_.y.apply(this,arguments)||this;r.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_"};r.remoteApi_=null;return r};
_.t(R2,_.y);_.l=R2.prototype;
_.l.ready=function(){_.N("polymer_enable_mdx")&&(JKV({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.N("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.N("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.N("enable_cast_short_lived_lounge_token")}),_.Ds("yt-remote-connection-change",this.handleConnectionChange_,this),_.Ds("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=yKY())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.l.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.l.handleConnectionChange_=function(r){(this.mdxConnected=r)?(r=ihY(),!r&&ie6()&&Rd6()&&(r={key:"cast-selector-receiver",name:Rd6()}),r=r.name):r=null;this.receiverName=r;_.Z8(this.remoteApi_);(this.remoteApi_=yKY())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.l.handleReceiverAvailabilityChange_=function(){var r=Hh7();ie6()&&_.YJ("yt-remote-cast-available")&&r.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=r.length>0};
_.l.handleRemoteQueueChange_=function(){var r=this.currentVideoId_,f=this.currentListId_,I=Ck(this.remoteApi_);this.currentVideoId_=I.videoId;this.currentListId_=I.listId;this.currentVideoId_&&_.Bj(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.N("polymer_enable_mdx_queue")?this.currentListId_:null,r,f])};
_.l.handleAddToQueueAction_=function(r){r=_.F(r,n$1);this.remoteApi_&&(r.videoId?this.remoteApi_.addVideo(r.videoId):r.playlistId&&this.remoteApi_.addPlaylist(r.playlistId))};
_.l.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.l.handleInsertInQueueAction_=function(r){r=_.F(r,dhB);this.remoteApi_&&r.videoId&&this.remoteApi_.JSC$17467_insertVideo(r.videoId)};
_.l.handleRemoveFromQueueAction_=function(r){r=_.F(r,zq7);this.remoteApi_&&r.videoId&&this.remoteApi_.JSC$17467_removeVideo(r.videoId)};
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],R2.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K(),_.B("design:type",Object)],R2.prototype,"appId",void 0);_.A([_.K(),_.B("design:type",Boolean)],R2.prototype,"mdxConnected",void 0);_.A([_.K(),_.B("design:type",Boolean)],R2.prototype,"receiverAvailable",void 0);_.A([_.K(),_.B("design:type",Object)],R2.prototype,"receiverName",void 0);_.A([_.K(),_.B("design:type",Object)],R2.prototype,"currentVideoId_",void 0);
_.A([_.K(),_.B("design:type",Object)],R2.prototype,"currentListId_",void 0);R2=_.A([_.zX({is:"yt-mdx-manager",disableElementRegistration:!0})],R2);_.Q(R2,"yt-mdx-manager",void 0,{mode:2});var Xmq;var N67;var vy=function(){var r=_.y.apply(this,arguments)||this;r.APP_IDS={ytr:3,ytm:5};r.JSC$18704_timeoutId_=0;r.actionMap={"yt-open-create-family-dialog":"open"};return r};
_.t(vy,_.y);_.l=vy.prototype;_.l.created=function(){uiV(2200)};
_.l.detached=function(){this.observer_&&this.observer_.disconnect()};
_.l.open=function(r,f){var I=this,C=r.serializedYpcFamilyCreateLoggingParams;this.JSC$18704_timeoutId_=setTimeout(this.abort_.bind(this,r.postFlowErrorEndpoint,C),3E4);f&&(this.onReadyCallback_=f);var Y=_.e(this.hostElement).querySelector("#unicorn-iframe");C&&C&&s5d("ypcFamilyCreateFlowStarted",C);_.tml("family_creation",function(){var V=_.jH("gapi.family_creation.render");_.jH("gapi.config.update")("iframes/family_creation/url",I.getFamilyCreationUrlWithUnicornParams_());var S=3;r.appId&&r.appId in
I.APP_IDS&&(S=I.APP_IDS[r.appId]);S={authUser:_.Lz("SESSION_INDEX")||0,clientId:S,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Lz("HL"),initialflow:[4,5,6,7],m:I.isMobile?1:0,onFlowComplete:I.onUnicornFlowComplete_.bind(I,r.postFlowSuccessEndpoint,C),onError:I.onUnicornFlowError_.bind(I,r.postFlowErrorEndpoint,C),onReady:I.onUnicornFlowReady_.bind(I,r.referencePcidParams)};V(Y,S)})};
_.l.close=function(){_.e(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.l.onUnicornFlowComplete_=function(r,f){this.close();f&&f&&s5d("ypcFamilyCreateFlowSucceeded",f);_.kA(this.hostElement,"yt-navigate",{endpoint:r})};
_.l.onUnicornFlowError_=function(r,f){this.close();f&&s5d("ypcFamilyCreateFlowCancelled",f);_.kA(this.hostElement,"yt-navigate",{endpoint:r})};
_.l.onUnicornFlowReady_=function(r){var f=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();r&&_.jH("gapi.family_creation.setConfig")(0,r);this.observer_=new MutationObserver(function(){_.e(f.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.e(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.e(this.hostElement).querySelector("#dialog").open()};
_.l.getFamilyCreationUrlWithUnicornParams_=function(){return _.Lz("YTR_FAMILY_CREATION_URL")};
_.l.getCurrentUrl_=function(){return document.location.href};
_.l.abort_=function(r,f){this.clearTimeout_();this.onUnicornFlowError_(r,f)};
_.l.clearTimeout_=function(){clearTimeout(this.JSC$18704_timeoutId_)};
_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],vy.prototype,"ytActionHandlerBehavior",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],vy.prototype,"isMobile",void 0);_.A([_.K(),_.B("design:type",Object)],vy.prototype,"onReadyCallback_",void 0);_.A([_.K(),_.B("design:type",Object)],vy.prototype,"observer_",void 0);vy=_.A([_.zX({is:"yt-create-family-dialog",disableElementRegistration:!0})],vy);
_.Q(vy,"yt-create-family-dialog",function(){if(N67===void 0){var r=document.createElement("template");_.c(r,'\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');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);var f=r.content,I=f.insertBefore;Xmq===void 0&&(Xmq=document.createElement("template"));var C=Xmq;I.call(f,C.content.cloneNode(!0),r.content.firstChild);N67=r}r=N67;return r},{mode:2});var $Fi;var Fe2;var Kr=function(){var r=_.y.apply(this,arguments)||this;r.STEP=1;r.BLOCK_ON=80;r.MIN_PROGESS=0;r.MAX_PROGESS=100;return r};
_.t(Kr,_.y);_.l=Kr.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));_.a().addProvider({provide:dzU,useValue:this})};
_.l.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.l.finish=function(){var r=this;this.progress=this.MAX_PROGESS;bx6(function(){r.progress==r.MAX_PROGESS&&(r.hostElement.hidden=!0)})};
_.l.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.OC.Object.defineProperties(Kr.prototype,{progress:{configurable:!0,enumerable:!0,set:function(r){this.progress_=r;var f="scaleX("+r/this.MAX_PROGESS+")",I=_.e(this.hostElement).querySelector("#progress").style;I.transform=f;I.webkitTransform=f;this.hostElement.setAttribute("aria-valuenow",String(r))},
get:function(){return this.progress_}}});
_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],Kr.prototype,"ytComponentBehavior",void 0);Kr=_.A([_.zX({is:"yt-page-navigation-progress",disableElementRegistration:!0})],Kr);
_.Q(Kr,"yt-page-navigation-progress",function(){if(Fe2===void 0){var r=document.createElement("template");_.c(r,'\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');r.content.insertBefore(_.u().content.cloneNode(!0),
r.content.firstChild);var f=r.content,I=f.insertBefore;$Fi===void 0&&($Fi=document.createElement("template"));var C=$Fi;I.call(f,C.content.cloneNode(!0),r.content.firstChild);Fe2=r}r=Fe2;return r},{mode:2});var PZ3={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"},tt7={"font-size":"12px","font-style":"italic"},T6p={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.zDB=function(){return _.x(function(r){_.wO(r)})};_.Kv(_.Hc(function(){var r=_.XA(_.Vfm);return _.p("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var f;return(f=r())==null?void 0:f.announcement})},"Tg"),"yt-ephemeral-actions");var Hxs=new Map;var NUd=function(r,f){var I=this;this.handleError=r;this.logEventInternal=f;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){I.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
NUd.prototype.logError=function(r){this.handleError(r)};
NUd.prototype.logEvent=function(r,f){switch(r){case "IDB_DATA_CORRUPTED":_.N("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",f);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",f);break;case "IS_SUPPORTED_COMPLETED":_.N("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",f);break;case "QUOTA_EXCEEDED":cC6(this,f);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",f);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":r=Object.assign({},f,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",r)}};
var cC6=function(r,f){_.Vj.getInstance().estimate().then(function(I){I=Object.assign({},f,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:RDV(I==null?void 0:I.usage),deviceStorageQuotaMbytes:RDV(I==null?void 0:I.quota)});r.logEventInternal("idbQuotaExceeded",I)})};var yO=function(){var r=_.y.apply(this,arguments)||this;r.tabGesturesIsActive=!1;r.deprecateFullerscreenUi=_.N("web_watch_fullerscreen_deprecation_ui");r.hasDelegation=!1;r.darkerDarkTheme=_.N("web_darker_dark_theme");r.isFrostedGlassInitialized=!1;r.frostedGlassExp=_.N("web_frosted_glass");r.mastheadHiddenFocusWithinKillswitch=_.N("web_masthead_hidden_focus_within_killswitch");r.ephemeralActionsEnabled=_.N("web_ephemeral_actions");r.scrollAtTop=!0;r.guideScrollTop=0;r.isTheaterModeSession=_.mO("START_IN_THEATER_MODE");
r.iMaxTheaterMode=_.N("web_watch_imax_theater_mode");r.isFullWindowSession=_.mO("START_IN_FULL_WINDOW_MODE");r.hasCreateFamilyDialog=!1;r.mastheadHeight=56;r.networkStatusManager=new _.ix;r.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"};r.dynamicActionMap={"yt-run-attestation-command":function(f){var I=_.snD.instance,C=_.F(f,_.csB);return C?_.N("use_rta_manager_for_async")&&
VM2()?sB2(I,C,f.clickTrackingParams):UdY(I,C,f.clickTrackingParams):_.h3(Error("li"))}};
r.isFrostedGlassDisabled=!1;r.isChannelOrPlaylistPage=!1;return r};
_.t(yO,_.y);_.l=yO.prototype;_.l.created=function(){var r=_.a();_.N("kevlar_clear_duplicate_pref_cookie")&&_.dp(_.F_,function(){var f=_.xB.get("PREF");f&&!/f\d=/.test(f)&&(f=_.qC("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=f?"PREF=null;domain="+f+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.N("gzip_gel_with_worker")&&_.i2$();_.N("jspb_serialize_with_worker")&&e9q();_.N("web_worker_availability_check")&&ixs();_.N("nwl_init_killswitch")||L8i().then(function(){_.F_.addLowPriorityJob(Oe6)});
this.pageManagerAttachedPromise=_.eu();this.ytdAppBehavior.loadDepsPromise=_.aP([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.Gk(this.onThrottledScroll,200,this);_.N("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);$46();lKs=!!_.jH("ytappsettings.initialized");V6=_.jH("ytappsettings.previousValue");$Wp=_.jH("ytappsettings.previousSnapshotTime");lKs||(lKs=!0,FN2());kM1();BXq();_.Ww("DEFERRED_DETACH",
_.N("kevlar_tuner_should_defer_detach"));_.Ww("REUSE_COMPONENTS",!0);_.Ww("STAMPER_STABLE_LIST",!0);_.Ww("SCHEDULED_LAZY_LIST",!0);_.Ww("openPopupConfig",eVd);_.Ww("useClickHandler",!0);_.N("kevlar_shell_cleanup")&&_.F_.addLowPriorityJob(wR1.bind(this,_.Yq.caches));_.mO("IS_SHELL_LOAD")&&_.gX({shellStartupDurationMs:Math.round((0,_.Ad)()-_.pe())});Xc1(this.networkStatusManager);_.N("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",pcs(PZ3)),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!",
pcs(tt7)),console.log("%cVisit http://go/join-youtube-web to apply today.",pcs(T6p)));_.$k6(r.resolve(_.Ig),1E3)};
_.l.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var r=shB();r&&!_.N("external_fullscreen_killswitch")&&document.addEventListener(r,this.setFullscreen.bind(this));(r=window.matchMedia("(prefers-color-scheme: dark)"))&&r.addEventListener&&r.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.l.attached=function(){var r=this;_.mZ().processSignal("ci");_.N("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.ld4?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.bO(_.AAK(),"SUCCESS");this.updateIconSet();_.Zo(this.guideInnerContent,!1);_.fh().initVisibilityObserver();this.guideService.guideElement=this.guide;var f=document.createElement("ytd-miniplayer"),I=_.e(this.hostElement).querySelector("#content");
_.e(this.hostElement).insertBefore(f,I);_.mZ().processSignal("ma");_.a().resolve(_.iO).init(f);_.mO("IS_SHELL_LOAD")&&(I=document.createElement("ytd-network-status-banner"),_.e(this.hostElement).insertBefore(I,f));_.N("kevlar_right_click_on_lockups")&&_.vq._onCaptureClick&&document.addEventListener("contextmenu",_.vq._onCaptureClick.bind(_.vq),!0);var C=function(){var Y=_.yb("yt-page-navigation-progress");_.e(r.hostElement).appendChild(Y)};
setTimeout(function(){_.mZ().parkOrScheduleJob(C,0,"eocs",16)},0);
_.N("service_worker_push_enabled")&&_.dp(_.F_,UW3);_.R5(_.iz.getInstance(),this.dynamicActionMap,this.hostElement);_.kA(this.hostElement,"ytd-app-attached");_.mZ().processSignal("aa");YeU(this.hostElement);_.OH("gapi.load",_.tml);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.dp(_.F_,
function(){var Y=document.createElement("ytd-video-preview");_.e(_.e(r.hostElement).querySelector("#video-preview")).appendChild(Y)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.dp(_.F_,function(){MS1();r.registerViewTransitionTasks()});
if(_.tN()&&this.isAppDarkTheme()!==_.Fd())this.onDarkModeToggledAction();else f=_.Pt()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==f&&(_.N("enable_dark_theme_only_on_shorts")?_.$O(_.N("enable_dark_theme_only_on_shorts_control")?window.location.href:_.yM(window.location.href,{theme:"dark"})):_.t7(new _.nf("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(iT2=new HTB(this.hostElement)),atq=new gyp(this.hostElement),Mtp=new zfU(this.hostElement),fL1=new rW6(this.hostElement)};
_.l.getThemeSettingsToLog=function(){var r=_.Pt()==="USER_INTERFACE_THEME_DARK";r=_.tN()?_.Fd()?"os-dark":"os-light":r?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:r,cookiesEnabled:_.wl()}};
_.l.detached=function(){_.GI(this.guideInnerContent);_.F_.cancelJob(f4);f4=0;_.F_.cancelJob(C4);C4=0;_.udu(CzB);CzB.length=0;r73=_.aHK=null;_.fh().dispose();_.N("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.vR(_.iz.getInstance(),iT2.playlistHandlerActionMap,iT2.JSC$28312_clientRoot);_.vR(_.iz.getInstance(),atq.downloadManagerActionMap,atq.JSC$28616_clientRoot);_.vR(_.iz.getInstance(),Mtp.feedbackCollectorActionMap,Mtp.JSC$28611_clientRoot);
for(var r=_.E(fL1.eventListeners),f=r.next();!f.done;f=r.next()){var I=_.E(f.value);f=I.next().value;I=I.next().value;I=_.E(I);for(var C=I.next();!C.done;C=I.next()){var Y=_.E(C.value);C=Y.next().value;Y=Y.next().value;f.removeEventListener(C,Y)}}_.vR(_.iz.getInstance(),fL1.autonavPauseActionMap,fL1.JSC$17652_clientRoot)};
_.l.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.xI().getFlag(186)};
_.l.computeIsInlinePreviewEnabled=function(r,f,I){return!I&&_.gLB({miniplayerIsActive:r,miniplayerPlaybackState:f})};
_.l.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.kI({type:"SET_FROSTED_GLASS_MODE",payload:!_.N("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(r,f,I,C){return r||f||I||C&&_.N("web_frosted_glass_disable_watch")};
_.l.computeIsHomePage=function(r,f){if(!r||f==null||!f.endpoint)return!1;var I;return((I=_.F(f.endpoint,_.lA))==null?void 0:I.browseId)==="FEwhat_to_watch"};
_.l.updateIsChannelOrPlaylistPage=function(){if(_.N("web_frosted_glass")){var r,f,I=(f=(r=_.a().resolve(_.ZY(_.y2)))==null?void 0:r.getCurrentPage())==null?void 0:f.pageSubtype;this.isChannelOrPlaylistPage=I?["channel","channels","playlist"].includes(I):!1}};
_.l.scheduleFrostedGlassInitialization=function(){var r=this;_.N("web_frosted_glass")&&_.mZ().parkOrScheduleJob(function(){r.isFrostedGlassInitialized=!0},0,_.Tq(["eocs",
"cr"]),300)};
_.l.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.um8(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.kI({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.kI({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.l.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(kYV(!0))};
_.l.onYtSignalActionRequestPersistentStorage=function(){if(!_.N("request_persistent_storage_killswitch")){var r=_.a().resolve(_.aU1);r.cachedPersistStatePromise||(r.cachedPersistStatePromise=pl6())}};
_.l.handleYtChannelCreationFormEndpoints=function(r){r&&this.ytComponentBehavior.resolveCommand(r)};
_.l.handleShowEngagementPanelEndpoint=function(r){r&&this.ytComponentBehavior.resolveCommand(r)};
_.l.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(kYV(!1))};
_.l.initIconDefs=function(r,f,I){var C=document.createElement("iron-iconset-svg");C.name=r;r=document.createElementNS("http://www.w3.org/2000/svg","svg");C.appendChild(r);r.appendChild(f);if(I)for(var Y in I)C[Y]=I[Y];document.body.appendChild(C);return C};
_.l.onWindowResized=function(){_.Bj(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var r=_.SJ4.getInstance();r.documentWidth_=document.body.clientWidth;nYY(r)};
_.l.onWindowScrolled=function(){var r=_.a().resolve(_.y2).getCurrentPage();if(r!=null&&r.getScrollTop){var f=this.ytdReduxBehavior,I=f.dispatch;r=r.getScrollTop()<=0;I.call(f,_.kI({type:"SET_SCROLL_AT_TOP",payload:r}))}};
_.l.guideIsVisibleButNotPersistentSelectorChanged=function(){var r=_.a().resolve(_.y2).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=r.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"),
r.setScrollTop(this.guideScrollTop));_.qy(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.l.getCurrentPageScrollableElementType=function(){var r=_.a().resolve(_.y2).getCurrentPage();if(r&&r.getPageScrollingElement())return r.getPageScrollingElement().nodeName};
_.l.observeGuideVisibility=function(){var r=_.SJ4.getInstance(),f=this.miniGuideVisible;r.guidePersistentAndVisible_=this.guidePersistentAndVisible;r.miniGuideVisible_=f;nYY(r)};
_.l.handleEduDismissAction=function(r){r&&r.eduDismissAction&&(_.Bj(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.CF4.getInstance(),_.oa.set(r.eduDismissAction.key+"-dismissed",!0))};
_.l.handleEduImpressionAction=function(r){if(r&&r.eduImpressionAction){var f=_.CF4.getInstance();r=r.eduImpressionAction.key;f.JSC$10805_eduDisplayedThisLoad_[_.IMC[r].setKey||r]=!0;_.oa.set(r+"-impression",parseInt(_.oa.get(r+"-impression")||0,10)+1)}};
_.l.onYtSignalActionConfirmMentionsEdu=function(){_.Bj(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.Zv.getInstance();_.A9.set("edu-dismissed",!0)};
_.l.onYtSignalActionRecordMentionsEduImpression=function(){_.Zv.getInstance();var r=_.A9.set,f=parseInt(_.A9.get("edu-impressions"),10);r.call(_.A9,"edu-impressions",(isFinite(f)?f:0)+1)};
_.l.onYtPageManagerAttached=function(r){var f;((f=_.jl(r))==null?void 0:f.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.l.onInvokeInstrumentManagerAction=function(r,f){Uvi(f,r)};
_.l.updateIconSet=function(){var r=this.hostElement.querySelector("#masthead");if(r){var f=_.Oi(r),I=f.querySelector("g#yt-logo-updated");I&&(r=document.createElementNS("http://www.w3.org/2000/svg","defs"),r.appendChild(I.cloneNode(!0)),(f=f.querySelector("g#yt-logo-red-updated"))&&r.appendChild(f.cloneNode(!0)),this.initIconDefs("yt-logos-ext",r))}};
_.l.updateMastheadData=function(){var r=this,f,I,C,Y,V;return _.x(function(S){if(S.nextAddress==1){f=r.data;I=r.hostElement.querySelector("#masthead");if(!I)return S.return();_.UC(r,function(){I.data=r.topbarData});
if(!r.get("response.topbar",f)||r.get("response.topbar.responseContext.maxAgeSeconds",f)===0)return S.jumpTo(0);if(C=_.a().resolve(_.R0))return _.b(S,C(),6);Y=_.a().resolve(_.uQ);return _.b(S,Y.put("service:topbar:fallback",new _.DL({innertubeResponse:r.get("response.topbar",f)})),0)}return(V=S.yieldResult)?_.b(S,V.put("service:topbar:fallback",new _.DL({innertubeResponse:r.get("response.topbar",f)})),0):S.jumpTo(0)})};
_.l.computeTopbarData=function(r){if(!r)return null;var f;return this.isShortsPage&&this.topbarData&&!_.F((f=r.response)==null?void 0:f.topbar,f01)?this.topbarData:r.response&&"topbar"in r.response?_.F(r.response.topbar,f01)||null:null};
_.l.onSetTheaterModeEnabled=function(r,f){this.isTheaterModeSession=f.enabled;this.setTheaterModeStyles(f.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 r=_.Cf(window.location.href);if(!_.WBE(r)){(r=!!_.Kz(window.location.href).themeRefresh)&&_.t7(new _.nf("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!r){FN2();r={themeRefresh:1};var f=_.a().resolve(_.y2);if(f.isOnWatch()){var I,C;f=((I=f.getPlayerFromWatch())==null?void 0:(C=I.getPlayer())==null?void 0:C.getCurrentTime())||0;f>=1&&(r.time_continue=Math.floor(f))}_.wl()||_.Pt()!=="USER_INTERFACE_THEME_DARK"||(r.theme="dark");_.$O(_.yM(window.location.href,
r))}_.N("web_appshell_refresh_trigger")&&_.Yq.caches&&this.refreshAppShellResponse();I=_.J1(window.location.href);_.I9(_.a().resolve(_.C_),_.Ol(I,"theme"))}};
_.l.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.l.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.l.onPlayerFullscreen=function(r){_.Qw();this.playerFullscreen=r};
_.l.setRestrictedMode=function(r){var f=_.xI();_.hZ(0,58,r);f.save();_.a().resolve(_.rQ).reload()};
_.l.onPageChanged=function(r){r.detail.newPageType==="ytd-watch-flexy"||r.detail.newPageType==="ytd-watch-fixie"||r.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.TW("WEB_PAGE_TYPE_WATCH")):r.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.TW("WEB_PAGE_TYPE_SHORTS")):r.detail.newPageType==="ytd-browse"&&r.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.TW("WEB_PAGE_TYPE_MINI_APP")):_.N("web_frosted_glass")&&r.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.TW("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.TW("WEB_PAGE_TYPE_UNKNOWN"));r.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.l.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.l.onGuideToggleTap=function(){_.kA(this.hostElement,"yt-guide-toggle")};
_.l.onGuideToggleHover=function(){_.kA(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 r=_.Oi(this.hostElement).querySelector("#masthead");r&&(r.dark=r.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),r.isDarkThemeForced=!1)};
_.l.onRequestPanelModeChange=function(r,f){this.hideHeaderShadow=f.mode!=="seamed"};
_.l.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.l.onDrawerIronSelect=function(r){_.jl(r).id==="guide"&&this.processDrawerIronSelect()};
_.l.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var r="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(r="opened"));_.kA(this.hostElement,"yt-autonav-pause-guide-"+r)};
_.l.onAddElementToApp=function(r){_.e(this.hostElement).appendChild(r.detail)};
_.l.onThrottledScroll=function(){var r=_.a().resolve(_.y2).getCurrentPage();r&&(this.scrollAtTop=r.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.l.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.l.setFullscreen=function(){if(_.N("external_fullscreen")||!this.isWatchPage){var r=_.N("kevlar_fullerscreen_root_only_killswitch")?!!_.Qw():!!_.Qw()&&_.Qw()===document.documentElement;r=(this.isWatchPage||_.N("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(r||this.isFullWindowSession);this.fullscreen!==r&&((this.fullscreen=r)&&_.qy(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.K2().dispatch(_.Iss(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.Bj(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.l.setFullscreenLoggingForShorts=function(r){var f,I,C;return _.x(function(Y){if(Y.nextAddress==1)return _.b(Y,(f=_.sk())==null?void 0:f.getPlayerPromise(),2);I=Y.yieldResult;(C=I)==null||C.setAppFullscreen(r);_.wO(Y)})};
_.l.updateMastheadCssHeight=function(){var r=this.mastheadHeight;this.fullscreen&&(r=0);_.Zh(this.hostElement,{"--ytd-masthead-height":r+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.l.updateNetworkStatusBannerDisplayStatus=function(){var r="unset";this.fullscreen&&(r="none");_.Zh(this.hostElement,{"--ytd-network-status-banner-display":r})};
_.l.updateNetworkStatusBannerCssHeight=function(){var r="unset";this.fullscreen&&(r="0px");_.Zh(this.hostElement,{"--ytd-network-status-banner-max-height":r})};
_.l.updateScrollAndMasthead=function(r,f,I,C){this.iMaxTheaterMode||(C=!1);var Y=_.a().resolve(_.y2).getCurrentPage();r||f||C?(document.body.classList.add("no-scroll"),Y.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.GF(this,this.onScroll)),Y.setScrollTop(0),_.Zh(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.$_()+"px"})):I?_.kA(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.kA(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
Y.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.GF(this,this.onScroll)));this.mastheadHidden=r||f||I;this.updateMastheadCssHeight();_.N("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.l.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.l.onYtNavigateAction=function(r){r=this.get("navigateAction.endpoint",r);_.kA(this.hostElement,"yt-navigate",{endpoint:r})};
_.l.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var r=document.createElement("yt-create-family-dialog");_.e(this.hostElement).appendChild(r);this.hasCreateFamilyDialog=!0}};
_.l.onSetPushNotificationsEnabledCommand=function(r){var f=this,I=_.F(r,rL7);I&&typeof I.enabled==="boolean"&&(Notification.permission!=="granted"?iN2().then(function(){Notification.permission==="granted"?(gl3(!I.enabled).then(NpV),I.successAction&&_.Do(f.hostElement,[I.successAction])):I.failureAction&&_.Do(f.hostElement,[I.failureAction])}):(gl3(!I.enabled).then(NpV),I.successAction&&_.Do(this.hostElement,[I.successAction])))};
_.l.onYtSignalActionEnableChromeNotifications=function(){RcU(!0)};
_.l.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.F(this.topbarData.hotkeyDialog,Yw6)}}})};
_.l.onYtSignalActionShowKeyboardShortcutDialog=function(){_.Bj(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.l.onYtEndpointChangeHandler=function(r,f){var I=_.CG(_.Dv);I.pendingPrefetchJob_&&(f=!(!f||f.autonav!="1"),I.pendingPrefetchJob_.resolve(r&&_.X2R(r)?_.NJm(r,f):""),I.pendingPrefetchJob_=null);_.Bj(this.hostElement,"yt-pause-active-page-context");_.Bj(this.hostElement,"ytd-log-youthere-nav");_.Bj(this.hostElement,"yt-prepare-page-dispose")};
_.l.handleCommandWithCommandHandler=function(r,f){_.qv.instance.resolveCommand(r,{form:{element:f}})};
_.l.onYtTimedCommand=function(r){var f=this;r=_.F(r,O7p);var I=r.command;I&&_.aK(_.F_,function(){var C=_.F(I,_.ms4);C?(_.qv.instance.resolveCommand(I),f.maybeLogGetAnswerRequestTick(C)):_.rX(f.hostElement,[I],f.hostElement)},r.timeoutMs||0)};
_.l.maybeLogGetAnswerRequestTick=function(r){r&&r.isFirstRequest&&(_.al("search_overview_answer"),_.Xc("so_rq",void 0,"search_overview_answer"))};
_.l.onYtSignalActionSkipNavigation=function(){var r=_.a().resolve(_.y2).getCurrentPage();_.y9(r)};
_.l.onYtSignalActionCopyDebugData=function(){Bpq()};
_.l.handleEntityUpdateCommand=function(r){_.VC(_.F(r,_.id8).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.l.logFlowLoggingEventCommand=function(r){if(r=_.F(r,_.bnq))if(r.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var f=r.flowEventNamespace,I=r.flowEventType,C=r.flowType;C&&f&&I&&_.p2E(_.Dx(f,I,r.flowEventMetadata),C)}else{f=_.fJ();I=r.flowEventNamespace;C=r.flowEventType;var Y=r.flowType;Y&&I&&C&&_.r_(f,_.Dx(I,C,r.flowEventMetadata),Y,r.flowNonce)}};
_.l.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.l.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.l.onTouchStart=function(){var r=_.I_();_.t1()&&_.cl(r.JSC$10956_screenManager,{visualElement:r.ve})};
_.l.handleSelectLanguageCommand=function(r){if(r=_.F(r,qK7).hl){var f=_.xI();f.set("hl",r);f.save();_.a().resolve(_.rQ).reload()}};
_.l.handleConfirmDialogEndpoint=function(r){(r=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(r))&&this.ytOpenPopupBehavior.openPopup(r)};
_.l.handleOpenPopupNavigationEndpoints=function(r,f){_.N("web_button_rework")&&(r=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(r))&&this.ytOpenPopupBehavior.openPopup(r,f)};
_.l.handleSaveCommandToSessionStorage=function(r){if(r=_.F(r,_.jJ4)){var f=r.key;f&&r.command&&window.sessionStorage.setItem(f,JSON.stringify(r.command))}};
_.l.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(r){r&&r.active&&r.active.postMessage({type:"refresh_shell"})}).catch(function(r){r.name!=="SecurityError"&&_.Fo(r)})};
_.l.onDeviceThemeChanged=function(){var r=_.Fd();_.hZ(_.xI(),185,r);_.xI().save()};
_.l.handleYtRegisterPromoCommand=function(r){if(_.F(r,DsV)){var f=_.a().resolve(_.y2).getCurrentPage()||this.hostElement;xzs().registerPromoCommand(_.F(r,DsV),f)}};
_.l.onYtNavigateHomeAction=function(){if(!_.N("kevlar_miniplayer_navigate_home_from_app_killswitch")){var r,f,I,C,Y=(C=(r=this.topbarData)==null?void 0:(f=r.logo)==null?void 0:(I=f.topbarLogoRenderer)==null?void 0:I.endpoint)!=null?C:_.h9;this.ytComponentBehavior.resolveCommand(Y)}};
_.l.onYtLocationCollectionCommand=function(r){dv6(_.F(r,blB))};
_.l.onYtGetLocationCommand=function(r){Ixi(_.F(r,w_1),this)};
_.l.updateRenderGuideFromBinding=function(r){this.renderGuide=r.detail.value};
_.l.updateGuidePersistentAndVisibleFromBinding=function(r){this.guidePersistentAndVisible=r.detail.value};
_.l.updateMiniGuideVisibleFromBinding=function(r){this.miniGuideVisible=r.detail.value};
_.l.onThemeSelected=function(r,f){var I=_.xI(),C=r||f?r:_.Fd(),Y=(C&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!C&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.WBE(_.Cf(window.location.href));_.hZ(0,165,r);_.hZ(0,174,f);I.save();Y&&_.Bj(this.hostElement,"yt-dark-mode-toggled-action",[C]);_.Bj(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.l.getCurrentTheme=function(){return _.tN()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Pt()};
_.l.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.l.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.l.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.l.handleShowConsentPrimitive=function(r){var f=this,I,C;return _.x(function(Y){if(Y.nextAddress==1){try{I=(C=_.sk())==null?void 0:C.getPlayerPromise()}catch(V){}return _.b(Y,jsB(r,I),2)}_.Bj(f.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.wO(Y)})};
_.l.handleSelectActiveIdentityEndpointInternal=function(r){_.Xd();r=_.F(r,_.BaT);if(r!=null&&r.supportedTokens){r=_.E(r.supportedTokens);for(var f=r.next();!f.done;f=r.next())f=f.value,f.accountSigninToken&&_.$O(f.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.l.handleUpdatePermissionRoleCommand=function(r){if(r=_.F(r,_.k8T)){var f;this.hasDelegation=!((f=_.F(r.renderer,_.G8X))==null||!f.status)}};
_.l.registerViewTransitionTasks=function(){var r=this,f=_.a().resolve(_.ZY(_.cg3));if(f){var I,C=(I=this.guide)==null?void 0:I.querySelector("#scrim"),Y,V=(Y=this.guide)==null?void 0:Y.querySelector("#contentContainer");C&&V&&(I={beforeTransition:function(){var S;(S=r.guide)!=null&&S.persistent||(C.style.viewTransitionName="app-drawer-scrim",V.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var S;(S=r.guide)!=null&&S.persistent||(C.style.viewTransitionName="",V.style.viewTransitionName="")}},Eh(f,"slide",I),Eh(f,"zoom",I))}};
_.OC.Object.defineProperties(yO.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.N("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.OC.Object.defineProperties(yO,{template:{configurable:!0,enumerable:!0,get:function(){if(hfY===void 0){var r=document.createElement("template");_.c(r,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
r.content.insertBefore(_.u().content.cloneNode(!0),r.content.firstChild);hfY=r}r=hfY;return r}}});
yO.prototype.onOpenHotkeyDialog=yO.prototype.onOpenHotkeyDialog;yO.prototype.setFullscreen=yO.prototype.setFullscreen;yO.prototype.onAddElementToApp=yO.prototype.onAddElementToApp;yO.prototype.onDrawerIronSelect=yO.prototype.onDrawerIronSelect;yO.prototype.onGuideOpenButtonHover=yO.prototype.onGuideOpenButtonHover;yO.prototype.onRequestPanelModeChange=yO.prototype.onRequestPanelModeChange;yO.prototype.onPageDataUpdated=yO.prototype.onPageDataUpdated;yO.prototype.onPageChanged=yO.prototype.onPageChanged;
yO.prototype.onSetTheaterModeEnabled=yO.prototype.onSetTheaterModeEnabled;yO.prototype.updateMastheadData=yO.prototype.updateMastheadData;yO.prototype.onYtPageManagerAttached=yO.prototype.onYtPageManagerAttached;yO.prototype.observeGuideVisibility=yO.prototype.observeGuideVisibility;yO.prototype.guideIsVisibleButNotPersistentSelectorChanged=yO.prototype.guideIsVisibleButNotPersistentSelectorChanged;yO.prototype.isInlinePreviewEnabledChanged=yO.prototype.isInlinePreviewEnabledChanged;
yO.prototype.dispatchFrostedGlassMode=yO.prototype.dispatchFrostedGlassMode;_.A([_.J(_.PH),_.B("design:type",Object)],yO.prototype,"ytdReduxBehavior",void 0);_.A([_.J(_.Eq.YtEventForwardingBehavior),_.B("design:type",Object)],yO.prototype,"ytEventForwardingBehavior",void 0);_.A([_.J(_.ug.YtOpenPopupBehavior),_.B("design:type",Object)],yO.prototype,"ytOpenPopupBehavior",void 0);_.A([_.J(_.o_.YtActionHandlerBehavior),_.B("design:type",Object)],yO.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.J({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.iz.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.N("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var r;((r=this.actionRouterNode.hostElement)!=null?r:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var r;((r=this.actionRouterNode.hostElement)!=null?r:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(r){this.actionRouter_.handleAction(r.detail)}}),
_.B("design:type",Object)],yO.prototype,"ytActionRouterBehavior",void 0);_.A([_.J(MpY.YtdAppBehavior),_.B("design:type",Object)],yO.prototype,"ytdAppBehavior",void 0);_.A([_.J(_.DG.YtEndpointBehavior),_.B("design:type",Object)],yO.prototype,"ytEndpointBehavior",void 0);_.A([_.J(dFV.YtEndpointHandlerWithYpcBehavior),_.B("design:type",Object)],yO.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.A([_.J(wms.YtLogYpcFlowCommandsBehavior),_.B("design:type",Object)],yO.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.A([_.J(_.D.YtRendererBehavior),_.B("design:type",Object)],yO.prototype,"ytRendererBehavior",void 0);_.A([_.J(_.tK.YtComponentBehavior),_.B("design:type",Object)],yO.prototype,"ytComponentBehavior",void 0);_.A([_.K({selector:_.uJs}),_.B("design:type",Object)],yO.prototype,"tabGesturesIsActive",void 0);_.A([_.K(),_.B("design:type",Boolean)],yO.prototype,"renderGuide",void 0);
_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],yO.prototype,"guidePersistentAndVisible",void 0);_.A([_.K({selector:_.qg7}),_.B("design:type",Boolean)],yO.prototype,"guideIsVisibleButNotPersistent",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],yO.prototype,"standalone",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],yO.prototype,"miniGuideVisible",void 0);
_.A([_.K({selector:_.eqd}),_.B("design:type",Number)],yO.prototype,"miniplayerPlaybackState",void 0);_.A([_.K({selector:_.Nj,reflectToAttribute:!0}),_.B("design:type",Boolean)],yO.prototype,"miniplayerIsActive",void 0);_.A([_.K({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.B("design:type",Boolean)],yO.prototype,"isInlinePreviewEnabled",void 0);_.A([_.K(),_.B("design:type",Boolean)],yO.prototype,"isInlinePreviewDisabled",void 0);
_.A([_.K({reflectToAttribute:!0,value:function(){return _.mO("START_IN_FULL_WINDOW_MODE")}}),
_.B("design:type",Boolean)],yO.prototype,"mastheadHidden",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],yO.prototype,"playerFullscreen",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],yO.prototype,"deprecateFullerscreenUi",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],yO.prototype,"fullscreen",void 0);_.A([_.K({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],yO.prototype,"hideHeaderShadow",void 0);
_.A([_.K({value:{GUIDE_ALT_LABEL:_.VR("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.B("design:type",Object)],yO.prototype,"menuStrings",void 0);_.A([_.K({computed:"computeTopbarData(data)"}),_.B("design:type",Object)],yO.prototype,"topbarData",void 0);_.A([_.K({selector:_.$x}),_.B("design:type",Boolean)],yO.prototype,"isWatchPage",void 0);_.A([_.K({selector:_.WRU,reflectToAttribute:!0}),_.B("design:type",Boolean)],yO.prototype,"isShortsPage",void 0);
_.A([_.K({selector:function(r){return r.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.B("design:type",Boolean)],yO.prototype,"isMiniAppPage",void 0);_.A([_.K({selector:function(r){return r.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.B("design:type",Boolean)],yO.prototype,"isBrowsePage",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Boolean)],yO.prototype,"scrolling",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],yO.prototype,"hasDelegation",void 0);_.A([_.K({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],yO.prototype,"guideScrolledByTouch",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],yO.prototype,"darkerDarkTheme",void 0);
_.A([_.K(),_.B("design:type",Object)],yO.prototype,"isFrostedGlassInitialized",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],yO.prototype,"frostedGlassExp",void 0);_.A([_.K({selector:function(r){return r.ui.chipBarIsSticky}}),
_.B("design:type",Boolean)],yO.prototype,"chipBarIsSticky",void 0);_.A([_.K({computed:"computeIsHomePage(isBrowsePage, data)"}),_.B("design:type",Boolean)],yO.prototype,"isHomePage",void 0);_.A([_.K({reflectToAttribute:!0}),_.B("design:type",Object)],yO.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.A([_.K(),_.B("design:type",Object)],yO.prototype,"ephemeralActionsEnabled",void 0);_.A([_.o8("guide"),_.B("design:type",Object)],yO.prototype,"guide",void 0);
_.A([_.o8("guide-service"),_.B("design:type",YS6)],yO.prototype,"guideService",void 0);_.A([_.o8("guide-inner-content"),_.B("design:type",HTMLDivElement)],yO.prototype,"guideInnerContent",void 0);_.A([_.K({selector:_.jxK}),_.B("design:type",String)],yO.prototype,"frostedGlassMode",void 0);
_.A([_.Bt("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yO.prototype,"dispatchFrostedGlassMode",null);_.A([_.K({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.B("design:type",Object)],yO.prototype,"isFrostedGlassDisabled",void 0);
_.A([_.R("isHomePage","chipBarIsSticky"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yO.prototype,"applyFrostedGlassToChipBar",null);_.A([_.K(),_.B("design:type",Object)],yO.prototype,"isChannelOrPlaylistPage",void 0);_.A([_.YN("isInlinePreviewEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yO.prototype,"isInlinePreviewEnabledChanged",null);
_.A([_.Bt("guideIsVisibleButNotPersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yO.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);_.A([_.Bt("guidePersistentAndVisible","miniGuideVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yO.prototype,"observeGuideVisibility",null);
_.A([_.kO("attached"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],yO.prototype,"onYtPageManagerAttached",null);_.A([_.Bt("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],yO.prototype,"updateMastheadData",null);_.A([_.kO("yt-set-theater-mode-enabled"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],yO.prototype,"onSetTheaterModeEnabled",null);
_.A([_.kO("yt-page-type-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],yO.prototype,"onPageChanged",null);_.A([_.kO("yt-page-data-updated"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yO.prototype,"onPageDataUpdated",null);_.A([_.kO("yt-request-panel-mode-change"),_.B("design:type",Function),_.B("design:paramtypes",[Event,Object]),_.B("design:returntype")],yO.prototype,"onRequestPanelModeChange",null);
_.A([_.kO("yt-guide-hover"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yO.prototype,"onGuideOpenButtonHover",null);_.A([_.kO("app-drawer-transitioned"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],yO.prototype,"onDrawerIronSelect",null);_.A([_.kO("yt-add-element-to-app"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],yO.prototype,"onAddElementToApp",null);
_.A([_.kO("yt-set-fullerscreen-styles"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yO.prototype,"setFullscreen",null);_.A([_.kO("yt-open-hotkey-dialog"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yO.prototype,"onOpenHotkeyDialog",null);yO=_.A([_.U({is:"ytd-app"})],yO);_.mZ().processSignal("eor");
_.ty();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
